// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.17.7 // @author magicdawn // @description 为 B 站首页添加像 App 一样的推荐 // @license MIT // @icon https://www.bilibili.com/favicon.ico // @homepageURL https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @match https://www.bilibili.com/ // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png // @match https://www.bilibili.com/index.html // @match https://www.bilibili.com/?* // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?* // @match https://www.bilibili.com/index.html?* // @require https://lf9-cdn-tos.bytecdntp.com/cdn/expire-10-y/react/18.2.0/umd/react.production.min.js // @require https://lf9-cdn-tos.bytecdntp.com/cdn/expire-10-y/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.getValue // @grant GM.setClipboard // @grant GM.setValue // @grant GM.xmlHttpRequest // @grant GM_addStyle // @grant unsafeWindow // @downloadURL none // ==/UserScript== (t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const e=document.createElement("style");e.textContent=t,document.head.append(e)})(" ._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-mask_1j5wc_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center}._modal_1j5wc_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_1j5wc_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1j5wc_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1j5wc_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1j5wc_42{margin-left:10px}._btn-close_1j5wc_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1j5wc_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._config-icon_1xtyf_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1xtyf_6{margin-bottom:10px}._settings-group_1xtyf_6 ._settings-group-title_1xtyf_9{font-size:2em;display:flex;align-items:center}._settings-group_1xtyf_6 ._settings-group-sub-title_1xtyf_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20{color:default}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20 button:first-child{margin-left:0}._row_1xtyf_26{display:flex;align-items:center;flex-wrap:wrap}._row_1xtyf_26 .primary-btn:first-child{margin-left:0}._check_1xtyf_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1xtyf_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1xtyf_42{min-height:min(360px,calc(90vh - 121px));max-height:calc(90vh - 121px);overflow-y:scroll}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px;line-height:24px}.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_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}._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}._bili-video-card_mnvtu_1{position:relative}._preview-card-wrapper_mnvtu_4{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_mnvtu_4 ._preview-card-inner_mnvtu_17{width:100%;height:100%}._watch-later_mnvtu_21{z-index:5}._badge_mnvtu_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mnvtu_33{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_mnvtu_48{color:default}._btn-dislike_mnvtu_51{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_mnvtu_51 ._btn-dislike-icon_mnvtu_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mnvtu_51 ._btn-dislike-tip_mnvtu_73{pointer-events:none;-webkit-user-select: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_mnvtu_88{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:var(--video-card-border-radius);border:1px solid #eee}body.dark ._disliked-wrapper_mnvtu_88{border:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-icon_mnvtu_119{margin-bottom:5px}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-reason_mnvtu_122{font-size:20px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-desc_mnvtu_126{font-size:16px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{border-top:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mnvtu_147 .bili-video-card__skeleton--cover,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--text,._skeleton-active_mnvtu_147 .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_mnvtu_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mnvtu_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_t2sr7_9{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_t2sr7_52{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}._video-grid-container_t2sr7_80{container-name:video-grid-container;container-type:inline-size}._video-grid-youtube-like_t2sr7_84{--video-card-border-radius: 12px;grid-gap:40px 16px;grid-template-columns:repeat(5,1fr)}@container video-grid-container (width >= 616px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(5,1fr)}}._narrow-mode_t2sr7_112{grid-template-columns:repeat(2,1fr)!important} "); (async function (f, v0) { '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 v0__namespace = /*#__PURE__*/_interopNamespaceDefault(v0); var s$=Object.defineProperty;var l$=(e,t,n)=>t in e?s$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wt=(e,t,n)=>(l$(e,typeof t!="symbol"?t+"":t,n),n);var Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):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 y0={exports:{}},lc={};/** * @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 v$=f,p$=Symbol.for("react.element"),b$=Symbol.for("react.fragment"),y$=Object.prototype.hasOwnProperty,C$=v$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S$={key:!0,ref:!0,__self:!0,__source:!0};function C0(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)y$.call(t,r)&&!S$.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:p$,type:e,key:i,ref:a,props:o,_owner:C$.current}}lc.Fragment=b$;lc.jsx=C0;lc.jsxs=C0;y0.exports=lc;var Aa=y0.exports;function w$(e){if(e.sheet)return e.sheet;for(var t=0;t0?dn(Gi,--kn):0,Ri--,nn===10&&(Ri=1,uc--),nn}function Hn(){return nn=kn<$0?dn(Gi,kn++):0,Ri++,nn===10&&(Ri=1,uc++),nn}function Sr(){return dn(Gi,kn)}function nl(){return kn}function rs(e,t){return La(Gi,e,t)}function Da(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E0(e){return uc=Ri=1,$0=pr(Gi=e),kn=0,[]}function O0(e){return Gi="",e}function rl(e){return x0(rs(kn-1,Gd(e===91?e+2:e===40?e+1:e)))}function k$(e){for(;(nn=Sr())&&nn<33;)Hn();return Da(e)>2||Da(nn)>3?"":" "}function A$(e,t){for(;--t&&Hn()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return rs(e,nl()+(t<6&&Sr()==32&&Hn()==32))}function Gd(e){for(;Hn();)switch(nn){case e:return kn;case 34:case 39:e!==34&&e!==39&&Gd(nn);break;case 40:e===41&&Gd(e);break;case 92:Hn();break}return kn}function L$(e,t){for(;Hn()&&e+nn!==47+10;)if(e+nn===42+42&&Sr()===47)break;return "/*"+rs(t,kn-1)+"*"+cc(e===47?e:Hn())}function D$(e){for(;!Da(Sr());)Hn();return rs(e,kn)}function I0(e){return O0(ol("",null,null,null,[""],e=E0(e),0,[0],e))}function ol(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,m=0,h=0,g=0,v=1,p=1,b=1,y=0,C="",E=o,S=i,$=r,x=C;p;)switch(g=y,y=Hn()){case 40:if(g!=108&&dn(x,d-1)==58){Ud(x+=Et(rl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=rl(y);break;case 9:case 10:case 13:case 32:x+=k$(g);break;case 92:x+=A$(nl()-1,7);continue;case 47:switch(Sr()){case 42:case 47:ks(z$(L$(Hn(),nl()),t,n),l);break;default:x+="/";}break;case 123*v:s[c++]=pr(x)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(x=Et(x,/\f/g,"")),h>0&&pr(x)-d&&ks(h>32?Tg(x+";",r,n,d-1):Tg(Et(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(ks($=_g(x,t,n,c,u,o,s,C,E=[],S=[],d),i),y===123)if(u===0)ol(x,t,$,$,E,i,d,s,S);else switch(m===99&&dn(x,3)===110?100:m){case 100:case 108:case 109:case 115:ol(e,$,$,r&&ks(_g(e,$,$,0,0,o,s,C,o,E=[],d),S),o,S,d,s,r?E:S);break;default:ol(x,$,$,$,[""],S,0,s,S);}}c=u=h=0,v=b=1,C=x="",d=a;break;case 58:d=1+pr(x),h=g;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&N$()==125)continue}switch(x+=cc(y),y*v){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(pr(x)-1)*b,b=1;break;case 64:Sr()===45&&(x+=rl(Hn())),m=Sr(),u=d=pr(C=x+=D$(nl())),y++;break;case 45:g===45&&pr(x)==2&&(v=0);}}return i}function _g(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,m=o===0?i:[""],h=vm(m),g=0,v=0,p=0;g0?m[b]+" "+y:Et(y,/&\f/g,m[b])))&&(l[p++]=C);return dc(e,t,n,o===0?hm:s,l,c,u)}function z$(e,t,n){return dc(e,t,n,S0,cc(M$()),La(e,2,-2),0)}function Tg(e,t,n,r){return dc(e,t,n,gm,La(e,0,r),La(e,r+1,-1),r)}function _o(e,t){for(var n="",r=vm(e),o=0;o6)switch(dn(e,t+1)){case 109:if(dn(e,t+4)!==45)break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Sl+(dn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Ud(e,"stretch")?R0(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dn(e,t+1)!==115)break;case 6444:switch(dn(e,pr(e)-3-(~Ud(e,"!important")&&10))){case 107:return Et(e,":",":"+$t)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(dn(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+gn+"$2box$3")+e}break;case 5936:switch(dn(e,t+11)){case 114:return $t+e+gn+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+gn+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+gn+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+gn+e+e}return e}var K$=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case gm:t.return=R0(t.value,t.length);break;case w0:return _o([aa(t,{value:Et(t.value,"@","@"+$t)})],o);case hm:if(t.length)return T$(t.props,function(i){switch(_$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _o([aa(t,{props:[Et(i,/:(read-\w+)/,":"+Sl+"$1")]})],o);case"::placeholder":return _o([aa(t,{props:[Et(i,/:(plac\w+)/,":"+$t+"input-$1")]}),aa(t,{props:[Et(i,/:(plac\w+)/,":"+Sl+"$1")]}),aa(t,{props:[Et(i,/:(plac\w+)/,gn+"input-$1")]})],o)}return ""})}},X$=[K$],_0=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(v){var p=v.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""));});}var o=t.stylisPlugins||X$,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var p=v.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 oE={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},iE=/[A-Z]|^ms/g,aE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L0=function(t){return t.charCodeAt(1)===45},Ng=function(t){return t!=null&&typeof t!="boolean"},_u=H$(function(e){return L0(e)?e:e.replace(iE,"-$&").toLowerCase()}),kg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(aE,function(r,o,i){return br={name:o,styles:i,next:br},o})}return oE[t]!==1&&!L0(t)&&typeof n=="number"&&n!==0?n+"px":n};function za(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 br={name:n.name,styles:n.styles,next:br},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)br={name:r.name,styles:r.styles,next:br},r=r.next;var o=n.styles+";";return o}return sE(e,t,n)}case"function":{if(e!==void 0){var i=br,a=n(e);return br=i,za(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function sE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o-1}function bE(e,t){var n=this.__data__,r=xc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=A2}var L2="[object Arguments]",D2="[object Array]",z2="[object Boolean]",j2="[object Date]",B2="[object Error]",H2="[object Function]",F2="[object Map]",W2="[object Number]",V2="[object Object]",U2="[object RegExp]",G2="[object Set]",K2="[object String]",X2="[object WeakMap]",q2="[object ArrayBuffer]",Y2="[object DataView]",Z2="[object Float32Array]",Q2="[object Float64Array]",J2="[object Int8Array]",eO="[object Int16Array]",tO="[object Int32Array]",nO="[object Uint8Array]",rO="[object Uint8ClampedArray]",oO="[object Uint16Array]",iO="[object Uint32Array]",zt={};zt[Z2]=zt[Q2]=zt[J2]=zt[eO]=zt[tO]=zt[nO]=zt[rO]=zt[oO]=zt[iO]=!0;zt[L2]=zt[D2]=zt[q2]=zt[z2]=zt[Y2]=zt[j2]=zt[B2]=zt[H2]=zt[F2]=zt[W2]=zt[V2]=zt[U2]=zt[G2]=zt[K2]=zt[X2]=!1;function aO(e){return jr(e)&&Pm(e.length)&&!!zt[Fo(e)]}function Rm(e){return function(t){return e(t)}}var q0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wa=q0&&typeof module=="object"&&module&&!module.nodeType&&module,sO=wa&&wa.exports===q0,Mu=sO&&W0.process,lO=function(){try{var e=wa&&wa.require&&wa.require("util").types;return e||Mu&&Mu.binding&&Mu.binding("util")}catch{}}();const _i=lO;var Fg=_i&&_i.isTypedArray,cO=Fg?Rm(Fg):aO;const Y0=cO;var uO=Object.prototype,dO=uO.hasOwnProperty;function Z0(e,t){var n=Jn(e),r=!n&&Om(e),o=!n&&!r&&xl(e),i=!n&&!r&&!o&&Y0(e),a=n||r||o||i,s=a?x2(e.length,String):[],l=s.length;for(var c in e)(t||dO.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Im(c,l)))&&s.push(c);return s}var fO=Object.prototype;function _m(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fO;return e===n}function Q0(e,t){return function(n){return e(t(n))}}var mO=Q0(Object.keys,Object);const hO=mO;var gO=Object.prototype,vO=gO.hasOwnProperty;function pO(e){if(!_m(e))return hO(e);var t=[];for(var n in Object(e))vO.call(e,n)&&n!="constructor"&&t.push(n);return t}function J0(e){return e!=null&&Pm(e.length)&&!U0(e)}function is(e){return J0(e)?Z0(e):pO(e)}function bO(e,t){return e&&os(t,is(t),e)}function yO(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var CO=Object.prototype,SO=CO.hasOwnProperty;function wO(e){if(!Qn(e))return yO(e);var t=_m(e),n=[];for(var r in e)r=="constructor"&&(t||!SO.call(e,r))||n.push(r);return n}function Tm(e){return J0(e)?Z0(e,!0):wO(e)}function xO(e,t){return e&&os(t,Tm(t),e)}var ey=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wg=ey&&typeof module=="object"&&module&&!module.nodeType&&module,$O=Wg&&Wg.exports===ey,Vg=$O?mr.Buffer:void 0,Ug=Vg?Vg.allocUnsafe:void 0;function EO(e,t){if(t)return e.slice();var n=e.length,r=Ug?Ug(n):new e.constructor(n);return e.copy(r),r}function ty(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++no?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r0&&n(s)?t>1?dy(s,t-1,n,r,o):Nm(o,s):r||(o[o.length]=s);}return o}function PP(e){var t=e==null?0:e.length;return t?dy(e,1):[]}function RP(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var av=Math.max;function _P(e,t,n){return t=av(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=av(r.length-t,0),a=Array(i);++o0){if(++t>=kP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zP=DP(NP);const jP=zP;function my(e){return jP(_P(e,void 0,PP),e+"")}var BP=1,HP=2,FP=4,WP=my(function(e,t){var n={};if(e==null)return n;var r=!1;t=xm(t,function(i){return i=Ki(i,e),r||(r=i.length>1),i}),os(e,iy(e),n),r&&(n=xa(n,BP|HP|FP,OP));for(var o=t.length;o--;)yP(n,t[o]);return n});const VP=WP;var UP=function(){return mr.Date.now()};const Nu=UP;var GP=/\s/;function KP(e){for(var t=e.length;t--&&GP.test(e.charAt(t)););return t}var XP=/^\s+/;function qP(e){return e&&e.slice(0,KP(e)+1).replace(XP,"")}var sv=0/0,YP=/^[-+]0x[0-9a-f]+$/i,ZP=/^0b[01]+$/i,QP=/^0o[0-7]+$/i,JP=parseInt;function Qd(e){if(typeof e=="number")return e;if(Ec(e))return sv;if(Qn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qn(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=qP(e);var n=ZP.test(e);return n||QP.test(e)?JP(e.slice(2),n?2:8):YP.test(e)?sv:+e}var eR="Expected a function",tR=Math.max,nR=Math.min;function hy(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(eR);t=Qd(t)||0,Qn(n)&&(u=!!n.leading,d="maxWait"in n,i=d?tR(Qd(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function h($){var x=r,w=o;return r=o=void 0,c=$,a=e.apply(w,x),a}function g($){return c=$,s=setTimeout(b,t),u?h($):a}function v($){var x=$-l,w=$-c,O=t-x;return d?nR(O,i-w):O}function p($){var x=$-l,w=$-c;return l===void 0||x>=t||x<0||d&&w>=i}function b(){var $=Nu();if(p($))return y($);s=setTimeout(b,v($));}function y($){return s=void 0,m&&r?h($):(r=o=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function E(){return s===void 0?a:y(Nu())}function S(){var $=Nu(),x=p($);if(r=arguments,o=this,l=$,x){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return S.cancel=C,S.flush=E,S}var rR="Expected a function";function gy(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(rR);return Qn(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),hy(e,t,{leading:r,maxWait:t,trailing:o})}function oR(e,t,n,r){if(!Qn(e))return e;t=Ki(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o0)return a(u);if(m==="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 m=parseFloat(d[1]),h=(d[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return m*i;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*r;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;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,m,h){var g=d>=m*1.5;return Math.round(u/m)+" "+h+(g?"s":"")}return ku}function dR(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=uR(),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 m=0;m{if($==="%%")return "%";E++;const w=n.formatters[x];if(typeof w=="function"){const O=p[E];$=w.call(b,O),p.splice(E,1),E--;}return $}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return v.namespace=u,v.useColors=n.useColors(),v.color=n.selectColor(u),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(u)),g),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(v),v}function r(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const m=(typeof u=="string"?u:"").split(/[\s,]+/),h=m.length;for(d=0;d"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,m;for(d=0,m=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,m=>{m!=="%%"&&(u++,m==="%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=fR(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Jd,Jd.exports);var mR=Jd.exports;const hR=an(mR),fn="bilibili-app-recommend",gR="bilibili_app_recommend",qi=hR(fn),py="https://api.bilibili.com",by="https://app.bilibili.com";var yy={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;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&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(Rr(!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;u=0)&&(n[o]=e[o]);return n}function et(e,t){if(e==null)return {};var n=OR(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 uv(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 ee(e){for(var t=1;t=le.F1&&n<=le.F12)return !1;switch(n){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},Uo=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function nf(e,t,n){return (e-t)/(n-t)}function Bm(e,t,n,r){var o=nf(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 bi(e,t){return Array.isArray(e)?e[t]:e}var IR=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],PR=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,m=et(e,IR),h=f__namespace.useContext(Uo),g=h.min,v=h.max,p=h.direction,b=h.disabled,y=h.keyboard,C=h.range,E=h.tabIndex,S=h.ariaLabelForHandle,$=h.ariaLabelledByForHandle,x=h.ariaValueTextFormatterForHandle,w="".concat(o,"-handle"),O=function(P){b||s(P,a);},R=function(P){if(!b&&y){var M=null;switch(P.which||P.keyCode){case le.LEFT:M=p==="ltr"||p==="btt"?-1:1;break;case le.RIGHT:M=p==="ltr"||p==="btt"?1:-1;break;case le.UP:M=p!=="ttb"?1:-1;break;case le.DOWN:M=p!=="ttb"?-1:1;break;case le.HOME:M="min";break;case le.END:M="max";break;case le.PAGE_UP:M=2;break;case le.PAGE_DOWN:M=-2;break}M!==null&&(P.preventDefault(),d(M,a));}},k=Bm(p,i,g,v),_=f__namespace.createElement("div",Oe({ref:t,className:F(w,(n={},Q(n,"".concat(w,"-").concat(a+1),C),Q(n,"".concat(w,"-dragging"),u),n)),style:ee(ee({},k),l),onMouseDown:O,onTouchStart:O,onKeyDown:R,tabIndex:b?null:bi(E,a),role:"slider","aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":i,"aria-disabled":b,"aria-label":bi(S,a),"aria-labelledby":bi($,a),"aria-valuetext":(r=bi(x,a))===null||r===void 0?void 0:r(i)},m));return c&&(_=c(_,{index:a,prefixCls:o,value:i,dragging:u})),_}),RR=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],_R=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=et(e,RR),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(m){var h;(h=u.current[m])===null||h===void 0||h.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(d,m){return f__namespace.createElement(PR,Oe({ref:function(g){g?u.current[m]=g:delete u.current[m];},dragging:l===m,prefixCls:n,style:bi(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:i,render:s},c))}))});function dv(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function TR(e,t,n,r,o,i,a,s,l){var c=f__namespace.useState(null),u=Z(c,2),d=u[0],m=u[1],h=f__namespace.useState(-1),g=Z(h,2),v=g[0],p=g[1],b=f__namespace.useState(n),y=Z(b,2),C=y[0],E=y[1],S=f__namespace.useState(n),$=Z(S,2),x=$[0],w=$[1],O=f__namespace.useRef(null),R=f__namespace.useRef(null);f__namespace.useEffect(function(){v===-1&&E(n);},[n,v]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",R.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",R.current);}},[]);var k=function(T,L){C.some(function(z,H){return z!==T[H]})&&(L!==void 0&&m(L),E(T),a(T));},_=function(T,L){if(T===-1){var z=x[0],H=x[x.length-1],W=r-z,B=o-H,V=L*(o-r);V=Math.max(V,W),V=Math.min(V,B);var j=i(z+V);V=j-z;var K=x.map(function(Y){return Y+V});k(K);}else {var q=(o-r)*L,G=Qe(C);G[T]=x[T];var U=l(G,q,T,"dist");k(U.values,U.value);}},I=f__namespace.useRef(_);I.current=_;var P=function(T,L){T.stopPropagation();var z=n[L];p(L),m(z),w(n);var H=dv(T),W=H.pageX,B=H.pageY,V=function(q){q.preventDefault();var G=dv(q),U=G.pageX,Y=G.pageY,oe=U-W,ue=Y-B,he=e.current.getBoundingClientRect(),re=he.width,ie=he.height,ce;switch(t){case"btt":ce=-ue/ie;break;case"ttb":ce=ue/ie;break;case"rtl":ce=-oe/re;break;default:ce=oe/re;}I.current(L,ce);},j=function K(q){q.preventDefault(),document.removeEventListener("mouseup",K),document.removeEventListener("mousemove",V),document.removeEventListener("touchend",K),document.removeEventListener("touchmove",V),O.current=null,R.current=null,p(-1),s();};document.addEventListener("mouseup",j),document.addEventListener("mousemove",V),document.addEventListener("touchend",j),document.addEventListener("touchmove",V),O.current=V,R.current=j;},M=f__namespace.useMemo(function(){var N=Qe(n).sort(function(L,z){return L-z}),T=Qe(C).sort(function(L,z){return L-z});return N.every(function(L,z){return L===T[z]})?C:n},[n,C]);return [v,d,M,P]}function MR(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=f__namespace.useContext(Uo),l=s.direction,c=s.min,u=s.max,d=s.disabled,m=s.range,h="".concat(t,"-track"),g=nf(r,c,u),v=nf(o,c,u),p=function(C){!d&&a&&a(C,-1);},b={};switch(l){case"rtl":b.right="".concat(g*100,"%"),b.width="".concat(v*100-g*100,"%");break;case"btt":b.bottom="".concat(g*100,"%"),b.height="".concat(v*100-g*100,"%");break;case"ttb":b.top="".concat(g*100,"%"),b.height="".concat(v*100-g*100,"%");break;default:b.left="".concat(g*100,"%"),b.width="".concat(v*100-g*100,"%");}return f__namespace.createElement("div",{className:F(h,m&&"".concat(h,"-").concat(i+1)),style:ee(ee({},b),n),onMouseDown:p,onTouchStart:p})}function NR(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=f__namespace.useContext(Uo),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,m=r[0];return [{start:Math.min(d,m),end:Math.max(d,m)}]}for(var h=[],g=0;g3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,C=g[p],E=C+v,S=[];r.forEach(function(R){S.push(R.value);}),S.push(e,t),S.push(s(C));var $=v>0?1:-1;b==="unit"?S.push(s(C+$*n)):S.push(s(E)),S=S.filter(function(R){return R!==null}).filter(function(R){return v<0?R<=C:R>=C}),b==="unit"&&(S=S.filter(function(R){return R!==C}));var x=b==="unit"?C:E;y=S[0];var w=Math.abs(y-x);if(S.forEach(function(R){var k=Math.abs(R-x);k1){var O=Qe(g);return O[p]=y,h(O,v-$,p,b)}return y}else {if(v==="min")return e;if(v==="max")return t}},u=function(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g[p],C=c(g,v,p,b);return {value:C,changed:C!==y}},d=function(g){return i===null&&g===0||typeof i=="number"&&g3&&arguments[3]!==void 0?arguments[3]:"unit",y=g.map(l),C=y[p],E=c(y,v,p,b);if(y[p]=E,o===!1){var S=i||0;p>0&&y[p-1]!==C&&(y[p]=Math.max(y[p],y[p-1]+S)),p0;O-=1)for(var R=!0;d(y[O]-y[O-1])&&R;){var k=u(y,-1,O-1);y[O-1]=k.value,R=k.changed;}for(var _=y.length-1;_>0;_-=1)for(var I=!0;d(y[_]-y[_-1])&&I;){var P=u(y,-1,_-1);y[_-1]=P.value,I=P.changed;}for(var M=0;M=0?P:!1},[P,de]),be=f__namespace.useMemo(function(){var Ke=Object.keys(q||{});return Ke.map(function(Ze){var Ue=q[Ze],mt={value:Number(Ze)};return Ue&&at(Ue)==="object"&&!f__namespace.isValidElement(Ue)&&("label"in Ue||"style"in Ue)?(mt.style=Ue.style,mt.label=Ue.label):mt.label=Ue,mt}).filter(function(Ze){var Ue=Ze.label;return Ue||typeof Ue=="number"}).sort(function(Ze,Ue){return Ze.value-Ue.value})},[q]),Re=zR(ne,J,de,be,_,fe),Be=Z(Re,2),_e=Be[0],ae=Be[1],ge=Dt(S,{value:E}),pe=Z(ge,2),we=pe[0],De=pe[1],Ae=f__namespace.useMemo(function(){var Ke=we==null?[]:Array.isArray(we)?we:[we],Ze=Z(Ke,1),Ue=Ze[0],mt=Ue===void 0?ne:Ue,ht=we===null?[]:[mt];if($){if(ht=Qe(Ke),x||we===void 0){var Tt=x>=0?x+1:2;for(ht=ht.slice(0,Tt);ht.length=0&&ie.current.focus(Ke);}dt(null);},[qe]);var me=f__namespace.useMemo(function(){return M&&de===null?!1:M},[M,de]),Se=function(){R==null||R(Ie(xe.current));},te=TR(ce,X,Ae,ne,J,_e,Fe,Se,ae),ye=Z(te,4),Te=ye[0],Ye=ye[1],Le=ye[2],ve=ye[3],Ee=function(Ze,Ue){ve(Ze,Ue),O==null||O(Ie(xe.current));},Me=Te!==-1;f__namespace.useEffect(function(){if(!Me){var Ke=Ae.lastIndexOf(Ye);ie.current.focus(Ke);}},[Me]);var ke=f__namespace.useMemo(function(){return Qe(Le).sort(function(Ke,Ze){return Ke-Ze})},[Le]),st=f__namespace.useMemo(function(){return $?[ke[0],ke[ke.length-1]]:[ne,ke[0]]},[ke,$,ne]),tt=Z(st,2),xt=tt[0],Ht=tt[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){ie.current.focus(0);},blur:function(){var Ze=document,Ue=Ze.activeElement;ce.current.contains(Ue)&&(Ue==null||Ue.blur());}}}),f__namespace.useEffect(function(){d&&ie.current.focus(0);},[]);var Ft=f__namespace.useMemo(function(){return {min:ne,max:J,direction:X,disabled:l,keyboard:u,step:de,included:z,includedStart:xt,includedEnd:Ht,range:$,tabIndex:oe,ariaLabelForHandle:ue,ariaLabelledByForHandle:he,ariaValueTextFormatterForHandle:re}},[ne,J,X,l,u,de,z,xt,Ht,$,oe,ue,he,re]);return f__namespace.createElement(Uo.Provider,{value:Ft},f__namespace.createElement("div",{ref:ce,className:F(o,i,(n={},Q(n,"".concat(o,"-disabled"),l),Q(n,"".concat(o,"-vertical"),T),Q(n,"".concat(o,"-horizontal"),!T),Q(n,"".concat(o,"-with-marks"),be.length),n)),style:a,onMouseDown:Ne},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:V}),f__namespace.createElement(NR,{prefixCls:o,style:W,values:ke,startPoint:H,onStartMove:me?Ee:null}),f__namespace.createElement(DR,{prefixCls:o,marks:be,dots:G,style:j,activeStyle:K}),f__namespace.createElement(_R,{ref:ie,prefixCls:o,style:B,values:Le,draggingIndex:Te,onStartMove:Ee,onOffsetChange:Pe,onFocus:m,onBlur:h,handleRender:U}),f__namespace.createElement(AR,{prefixCls:o,marks:be,onClick:$e})))});function Hm(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 Sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fv(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):VR}function Pc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function UR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Oy(e){return Array.from((of.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Iy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yi())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=UR(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(hv,a),s&&i&&l.setAttribute(gv,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Pc(t),u=c.firstChild;if(r){if(s){var d=Oy(c).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(hv)))return !1;var h=Number(m.getAttribute(gv)||0);return i>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u);}else c.appendChild(l);return l}function Py(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Pc(t);return Oy(n).find(function(r){return r.getAttribute(Ey(t))===e})}function Ry(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Py(e,t);if(n){var r=Pc(t);r.removeChild(n);}}function GR(e,t){var n=of.get(e);if(!n||!WR(document,n)){var r=Iy("",t),o=r.parentNode;of.set(e,o),e.removeChild(r);}}function af(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Pc(n);GR(r,n);var o=Py(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=Iy(e,n);return l.setAttribute(Ey(n),t),l}function KR(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=Z(c,2),m=d[1];return o.internalGet(u)[1]0,void 0),vv+=1;}return wn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Lu=new Wm;function Fa(e){var t=Array.isArray(e)?e:[e];return Lu.has(t)||Lu.set(t,new _y(t)),Lu.get(t)}function El(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof _y?t+=r.id:r&&at(r)==="object"?t+=El(r):t+=r;}),t}function XR(e,t){return Hm("".concat(t,"_").concat(El(e)))}var $a="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Ty="_bAmBoO_";function qR(e,t,n){if(Yi()){var r,o;af(e,$a);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(Ty);return (o=i.parentNode)===null||o===void 0||o.removeChild(i),Ry($a),a}return !1}var Du=void 0;function YR(){return Du===void 0&&(Du=qR("@layer ".concat($a," { .").concat($a,' { content: "').concat(Ty,'"!important; } }'),function(e){e.className=$a;})),Du}var pv=Yi()?f__namespace.useLayoutEffect:f__namespace.useEffect,ZR=function(t,n){var r=f__namespace.useRef(!0);pv(function(){return t(r.current)},n),pv(function(){return r.current=!1,function(){r.current=!0;}},[]);},QR=ee({},f__namespace),bv=QR.useInsertionEffect,JR=function(t,n,r){f__namespace.useMemo(t,r),ZR(function(){return n(!0)},r);},e_=bv?function(e,t,n){return bv(function(){return e(),t()},n)}:JR;const t_=e_;var n_=ee({},f__namespace),r_=n_.useInsertionEffect,o_=function(t){var n=[],r=!1;function o(i){r||n.push(i);}return f__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()});}},t),o},i_=function(){return function(t){t();}},a_=typeof r_<"u"?o_:i_;const s_=a_;function My(e,t,n,r,o){var i=f__namespace.useContext(Fm),a=i.cache,s=[e].concat(Qe(t)),l=s.join("_"),c=s_([l]),u=function(g){a.update(s,function(v){var p=v||[],b=Z(p,2),y=b[0],C=y===void 0?0:y,E=b[1],S=E,$=S||n(),x=[C,$];return g?g(x):x});};f__namespace.useMemo(function(){u();},[l]);var d=a.get(s),m=d[1];return t_(function(){o==null||o(m);},function(h){return u(function(g){var v=Z(g,2),p=v[0],b=v[1];return h&&p===0&&(o==null||o(m)),[p+1,b]}),function(){a.update(s,function(g){var v=g||[],p=Z(v,2),b=p[0],y=b===void 0?0:b,C=p[1],E=y-1;return E===0?(c(function(){return r==null?void 0:r(C,!1)}),null):[y-1,C]});}},[l]),m}var l_={},c_="css",$o=new Map;function u_(e){$o.set(e,($o.get(e)||0)+1);}function d_(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(rf,'="').concat(e,'"]'));n.forEach(function(r){if(r[yi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var f_=0;function m_(e,t){$o.set(e,($o.get(e)||0)-1);var n=Array.from($o.keys()),r=n.filter(function(o){var i=$o.get(o)||0;return i<=0});n.length-r.length>f_&&r.forEach(function(o){d_(o,t),$o.delete(o);});}var Ny=function(t,n,r,o){var i=r.getDerivativeToken(t),a=ee(ee({},i),n);return o&&(a=o(a)),a};function h_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Fm),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?l_:s,c=n.formatToken,u=n.getComputedToken,d=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Qe(t)))},[t]),m=f__namespace.useMemo(function(){return El(d)},[d]),h=f__namespace.useMemo(function(){return El(l)},[l]),g=My("token",[a,e.id,m,h],function(){var v=u?u(d,l,e):Ny(d,l,e,c),p=XR(v,a);v._tokenKey=p,u_(p);var b="".concat(c_,"-").concat(Hm(p));return v._hashId=b,[v,b]},function(v){m_(v[0]._tokenKey,o);});return g}var g_={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},yv="data-ant-cssinjs-cache-path",ky="_FILE_STYLE__",No,Ay=!0;function v_(){if(!No&&(No={},Yi())){var e=document.createElement("div");e.className=yv,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=Z(i,2),s=a[0],l=a[1];No[s]=l;});var n=document.querySelector("style[".concat(yv,"]"));if(n){var r;Ay=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function p_(e){return v_(),!!No[e]}function b_(e){var t=No[e],n=null;if(t&&Yi())if(Ay)n=ky;else {var r=document.querySelector("style[".concat(Mo,'="').concat(No[e],'"]'));r?n=r.innerHTML:delete No[e];}return [n,t]}var Cv=Yi(),y_="_skip_check_",Ly="_multi_value_";function Sv(e){var t=_o(I0(e),P0);return t.replace(/\{%%%\:[^;];}/g,";")}function C_(e){return at(e)==="object"&&e&&(y_ in e||Ly in e)}function S_(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(Qe(l.slice(1))).join(" ")});return i.join(",")}var w_=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 m="",h={};function g(C){var E=C.getName(s);if(!h[E]){var S=e(C.style,n,{root:!1,parentSelectors:a}),$=Z(S,1),x=$[0];h[E]="@keyframes ".concat(C.getName(s)).concat(x);}}function v(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(S){Array.isArray(S)?v(S,E):S&&E.push(S);}),E}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var E=typeof C=="string"&&!o?{}:C;if(typeof E=="string")m+="".concat(E,` `);else if(E._keyframe)g(E);else {var S=d.reduce(function($,x){var w;return (x==null||(w=x.visit)===null||w===void 0?void 0:w.call(x,$))||$},E);Object.keys(S).forEach(function($){var x=S[$];if(at(x)==="object"&&x&&($!=="animationName"||!x._keyframe)&&!C_(x)){var w=!1,O=$.trim(),R=!1;(o||i)&&s?O.startsWith("@")?w=!0:O=S_($,s,c):o&&!s&&(O==="&"||O==="")&&(O="",R=!0);var k=e(x,n,{root:R,injectHash:w,parentSelectors:[].concat(Qe(a),[O])}),_=Z(k,2),I=_[0],P=_[1];h=ee(ee({},h),P),m+="".concat(O).concat(I);}else {let T=function(L,z){var H=L.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),W=z;!g_[L]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),L==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),W=z.getName(s)),m+="".concat(H,":").concat(W,";");};var M,N=(M=x==null?void 0:x.value)!==null&&M!==void 0?M:x;at(x)==="object"&&x!==null&&x!==void 0&&x[Ly]&&Array.isArray(N)?N.forEach(function(L){T($,L);}):T($,N);}});}}),!o)m="{".concat(m,"}");else if(l&&YR()){var b=l.split(","),y=b[b.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(l,"{%%%:%}").concat(m));}return [m,h]};function x_(e,t){return Hm("".concat(e.join("%")).concat(t))}function $_(){return null}function sf(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f__namespace.useContext(Fm),d=u.autoClear;u.mock;var m=u.defaultCache,h=u.hashPriority,g=u.container,v=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,C=n._tokenKey,E=[C].concat(Qe(r)),S=Cv,$=My("style",E,function(){var k=E.join("|");if(p_(k)){var _=b_(k),I=Z(_,2),P=I[0],M=I[1];if(P)return [P,C,M,{},s,c]}var N=t(),T=w_(N,{hashId:o,hashPriority:h,layer:i,path:r.join("-"),transformers:p,linters:b}),L=Z(T,2),z=L[0],H=L[1],W=Sv(z),B=x_(E,W);return [W,C,B,H,s,c]},function(k,_){var I=Z(k,3),P=I[2];(_||d)&&Cv&&Ry(P,{mark:Mo});},function(k){var _=Z(k,4),I=_[0];_[1];var P=_[2],M=_[3];if(S&&I!==ky){var N={mark:Mo,prepend:"queue",attachTo:g,priority:c},T=typeof a=="function"?a():a;T&&(N.csp={nonce:T});var L=af(I,P,N);L[yi]=y.instanceId,L.setAttribute(rf,C),Object.keys(M).forEach(function(z){af(Sv(M[z]),"_effect-".concat(z),N);});}}),x=Z($,3),w=x[0],O=x[1],R=x[2];return function(k){var _;if(!v||S||!m)_=f__namespace.createElement($_,null);else {var I;_=f__namespace.createElement("style",Oe({},(I={},Q(I,rf,O),Q(I,Mo,R),I),{dangerouslySetInnerHTML:{__html:w}}));}return f__namespace.createElement(f__namespace.Fragment,null,_,k)}}var Ct=function(){function e(t,n){Sn(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=n;}return wn(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 Jo(e){return e.notSplit=!0,e}Jo(["borderTop","borderBottom"]),Jo(["borderTop"]),Jo(["borderBottom"]),Jo(["borderLeft","borderRight"]),Jo(["borderLeft"]),Jo(["borderRight"]);var E_=f.createContext({});const Vm=E_;function as(e,t,n){var r=f__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Dy(e){return wy(e)||Sy(e)||jm(e)||xy()}function lf(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!lf(e,t.slice(0,-1))?e:zy(e,t,n,r)}function O_(e){return at(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function wv(e){return Array.isArray(e)?[]:{}}var I_=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function P_(){for(var e=arguments.length,t=new Array(e),n=0;nil.reduce((e,t)=>Object.assign(Object.assign({},e),t),Br.Modal);function k_(e){if(e){const t=Object.assign({},e);return il.push(t),$v(),()=>{il=il.filter(n=>n!==t),$v();}}Object.assign({},Br.Modal);}const A_=f.createContext(void 0),Um=A_,L_=(e,t)=>{const n=f__namespace.useContext(Um),r=f__namespace.useMemo(()=>{var i;const a=t||Br[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?Br.locale:i},[n]);return [r,o]},Zi=L_,D_="internalMark",z_=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>k_(t&&t.Modal),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Um.Provider,{value:o},n)},j_=z_,Wa=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],B_="5.8.4";function mn(e,t){H_(e)&&(e="100%");var n=F_(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 As(e){return Math.min(1,Math.max(0,e))}function H_(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function F_(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Hy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ls(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Po(e){return e.length===1?"0"+e:String(e)}function W_(e,t,n){return {r:mn(e,255)*255,g:mn(t,255)*255,b:mn(n,255)*255}}function Ev(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(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 V_(e,t,n){var r,o,i;if(e=mn(e,360),t=mn(t,100),n=mn(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=ju(s,a,e+1/3),o=ju(s,a,e),i=ju(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function cf(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(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 df={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 hi(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=Z_(e)),typeof e=="object"&&(Nr(e.r)&&Nr(e.g)&&Nr(e.b)?(t=W_(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nr(e.h)&&Nr(e.s)&&Nr(e.v)?(r=Ls(e.s),o=Ls(e.v),t=U_(e.h,r,o),a=!0,s="hsv"):Nr(e.h)&&Nr(e.s)&&Nr(e.l)&&(r=Ls(e.s),i=Ls(e.l),t=V_(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Hy(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 q_="[-\\+]?\\d+%?",Y_="[-\\+]?\\d*\\.\\d+%?",ao="(?:".concat(Y_,")|(?:").concat(q_,")"),Bu="[\\s|\\(]+(".concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")\\s*\\)?"),Hu="[\\s|\\(]+(".concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")\\s*\\)?"),sr={CSS_UNIT:new RegExp(ao),rgb:new RegExp("rgb"+Bu),rgba:new RegExp("rgba"+Hu),hsl:new RegExp("hsl"+Bu),hsla:new RegExp("hsla"+Hu),hsv:new RegExp("hsv"+Bu),hsva:new RegExp("hsva"+Hu),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 Z_(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(df[e])e=df[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=sr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=sr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=sr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=sr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=sr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=sr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=sr.hex8.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),a:Ov(n[4]),format:t?"name":"hex8"}:(n=sr.hex6.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),format:t?"name":"hex"}:(n=sr.hex4.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),a:Ov(n[4]+n[4]),format:t?"name":"hex8"}:(n=sr.hex3.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Nr(e){return !!sr.CSS_UNIT.exec(String(e))}var Vt=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=X_(t)),this.originalInput=t;var o=hi(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=Hy(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=cf(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=cf(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=Ev(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=Ev(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),uf(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),G_(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(mn(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(mn(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="#"+uf(this.r,this.g,this.b,!1),n=0,r=Object.entries(df);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=As(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=As(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=As(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=As(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)-Ds*t:Math.round(e.h)+Ds*t:r=n?Math.round(e.h)+Ds*t:Math.round(e.h)-Ds*t,r<0?r+=360:r>=360&&(r-=360),r}function _v(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Iv*t:t===Wy?r=e.s+Iv:r=e.s+Q_*t,r>1&&(r=1),n&&t===Fy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Tv(e,t,n){var r;return n?r=e.v+J_*t:r=e.v-eT*t,r>1&&(r=1),Number(r.toFixed(2))}function Hr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=hi(e),o=Fy;o>0;o-=1){var i=Pv(r),a=zs(hi({h:Rv(i,o,!0),s:_v(i,o,!0),v:Tv(i,o,!0)}));n.push(a);}n.push(zs(r));for(var s=1;s<=Wy;s+=1){var l=Pv(r),c=zs(hi({h:Rv(l,s),s:_v(l,s),v:Tv(l,s)}));n.push(c);}return t.theme==="dark"?tT.map(function(u){var d=u.index,m=u.opacity,h=zs(nT(hi(t.backgroundColor||"#141414"),hi(n[d]),m*100));return h}):n}var Fu={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={},Wu={};Object.keys(Fu).forEach(function(e){al[e]=Hr(Fu[e]),al[e].primary=al[e][5],Wu[e]=Hr(Fu[e],{theme:"dark",backgroundColor:"#141414"}),Wu[e].primary=Wu[e][5];});var rT=al.blue;const oT=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Vy=oT;function iT(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 Gm={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"},aT=Object.assign(Object.assign({},Gm),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",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}),ss=aT;function Uy(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),m=n(o),h=n(i),g=n(a),v=n(s),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{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:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Vt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const sT=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}},lT=sT;function cT(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},lT(r))}const kr=(e,t)=>new Vt(e).setAlpha(t).toRgbString(),la=(e,t)=>new Vt(e).darken(t).toHexString(),uT=e=>{const t=Hr(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]}},dT=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:kr(r,.88),colorTextSecondary:kr(r,.65),colorTextTertiary:kr(r,.45),colorTextQuaternary:kr(r,.25),colorFill:kr(r,.15),colorFillSecondary:kr(r,.06),colorFillTertiary:kr(r,.04),colorFillQuaternary:kr(r,.02),colorBgLayout:la(n,4),colorBgContainer:la(n,0),colorBgElevated:la(n,0),colorBgSpotlight:kr(r,.85),colorBorder:la(n,15),colorBorderSecondary:la(n,6)}};function fT(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 mT=e=>{const t=fT(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]}},Gy=mT;function ls(e){const t=Object.keys(Gm).map(n=>{const r=Hr(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),Uy(e,{generateColorPalettes:uT,generateNeutralColorPalettes:dT})),Gy(e.fontSize)),iT(e)),Vy(e)),cT(e))}const Ky=Fa(ls),Ol={token:ss,hashed:!0},Xy=f.createContext(Ol);function Vu(e){return e>=0&&e<=255}function js(e,t){const{r:n,g:r,b:o,a:i}=new Vt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Vt(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),m=Math.round((o-l*(1-c))/c);if(Vu(u)&&Vu(d)&&Vu(m))return new Vt({r:u,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Vt({r:n,g:r,b:o,a:1}).toRgbString()}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{delete r[m];});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 m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:js(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:js(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:js(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:js(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 Vt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Vt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Vt("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)}var Mv=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 r=n.getDerivativeToken(e),{override:o}=t,i=Mv(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Km(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Mv(c,["theme"]);let m=d;u&&(m=qy(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=m;}),a};function Kr(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(Xy),o=`${B_}-${t||""}`,i=n||Ky,[a,s]=h_(i,[ss,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:qy,formatToken:Km});return [i,a,t?s:""]}const Yy="anticon",gT=(e,t)=>t||(e?`ant-${e}`:"ant"),Je=f__namespace.createContext({getPrefixCls:gT,iconPrefixCls:Yy}),vT=(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)),m=2*i-u,h=d,g=2*i-l,v=c,p=2*i-a,b=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=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(${C}px 100%, 50% ${C}px, ${2*i-C}px 100%, ${C}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${m} ${h} L ${g} ${v} A ${n} ${n} 0 0 0 ${p} ${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"}}},Do={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Rt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Go=()=>({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"}}),ff=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),pT=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),bT=(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"}}}}},zo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),jo=e=>({"&:focus-visible":Object.assign({},zo(e))}),Zy=typeof CSSINJS_STATISTIC<"u";let mf=!0;function ut(){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]});});}),mf=!0,r}function yT(){}function CT(e){let t,n=e,r=yT;return Zy&&(t=new Set,n=new Proxy(e,{get(o,i){return mf&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function Bt(e,t,n,r){return o=>{const[i,a,s]=Kr(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(Je),d=l(),m={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce,clientOnly:r==null?void 0:r.clientOnly,order:-999};return sf(Object.assign(Object.assign({},m),{clientOnly:!1,path:["Shared",d]}),()=>[{"&":pT(a)}]),[sf(Object.assign(Object.assign({},m),{path:[e,o,c]}),()=>{const{token:h,flush:g}=CT(a),v=Object.assign({},a[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:S}=r;S.forEach($=>{let[x,w]=$;var O;(v!=null&&v[x]||v!=null&&v[w])&&((O=v[w])!==null&&O!==void 0||(v[w]=v==null?void 0:v[x]));});}const p=typeof n=="function"?n(ut(h,v??{})):n,b=Object.assign(Object.assign({},p),v),y=`.${o}`,C=ut(h,{componentCls:y,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},b),E=t(C,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:v});return g(e,b),[(r==null?void 0:r.resetStyle)===!1?null:bT(a,o),E]}),s]}}function Il(e,t){return Wa.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}))},{})}function ST(e,t){if(!e)return !1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return !0;n=n.parentNode;}return !1}var Nv="data-rc-order",wT="rc-util-key",hf=new Map;function Qy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):wT}function Rc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function xT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Jy(e){return Array.from((hf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function e1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!er())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Nv,xT(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Rc(t),a=i.firstChild;if(r){if(r==="queue"){var s=Jy(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Nv))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function t1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Rc(t);return Jy(n).find(function(r){return r.getAttribute(Qy(t))===e})}function kv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t1(e,t);if(n){var r=Rc(t);r.removeChild(n);}}function $T(e,t){var n=hf.get(e);if(!n||!ST(document,n)){var r=e1("",t),o=r.parentNode;hf.set(e,o),e.removeChild(r);}}function Xm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Rc(n);$T(r,n);var o=t1(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=e1(e,n);return l.setAttribute(Qy(n),t),l}const ET=`-ant-${Date.now()}-${Math.random()}`;function OT(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 Vt(a),c=Hr(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 Vt(t.primaryColor),s=Hr(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 Vt(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 IT(e,t){const n=OT(e,t);er()&&Xm(n,`${ET}-dynamic-theme`);}const gf=f__namespace.createContext(!1),PT=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(gf);return f__namespace.createElement(gf.Provider,{value:n??r},t)},_r=gf,vf=f__namespace.createContext(void 0),RT=e=>{let{children:t,size:n}=e;const r=f__namespace.useContext(vf);return f__namespace.createElement(vf.Provider,{value:n||r},t)},_c=vf;function _T(){const e=f.useContext(_r),t=f.useContext(_c);return {componentDisabled:e,componentSize:t}}function TT(e,t){const n=e||{},r=n.inherit===!1||!t?Ol:t;return as(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,i)=>o.some((a,s)=>{const l=i[s];return !Ic(a,l,!0)}))}function Pl(e){return e instanceof HTMLElement||e instanceof SVGElement}function Rl(e){return Pl(e)?e:e instanceof f.Component?v0.findDOMNode(e):null}function qm(e,t){typeof e=="function"?e(t):at(e)==="object"&&e&&"current"in e&&(e.current=t);}function xn(){for(var e=arguments.length,t=new Array(e),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 bf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AT(e,t){if(t&&(at(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bf(e)}function go(e){var t=kT();return function(){var r=_l(e),o;if(t){var i=_l(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return AT(this,o)}}var LT=function(e){ho(n,e);var t=go(n);function n(){return Sn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),wo="none",Bs="appear",Hs="enter",Fs="leave",Av="none",cr="prepare",Ci="start",Si="active",Ym="end",r1="prepared";function Lv(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 DT(e,t){var n={animationend:Lv("Animation","AnimationEnd"),transitionend:Lv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var zT=DT(er(),typeof window<"u"?window:{}),o1={};if(er()){var jT=document.createElement("div");o1=jT.style;}var Ws={};function i1(e){if(Ws[e])return Ws[e];var t=zT[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:1;Bv+=1;var r=Bv;function o(i){if(i===0)f1(r),t();else {var a=u1(function(){o(i-1);});Zm.set(r,a);}}return o(n),r};pt.cancel=function(e){var t=Zm.get(e);return f1(t),d1(t)};const HT=function(){var e=f__namespace.useRef(null);function t(){pt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=pt(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 FT=[cr,Ci,Si,Ym],WT=[cr,r1],m1=!1,VT=!0;function h1(e){return e===Si||e===Ym}const UT=function(e,t,n){var r=To(Av),o=Z(r,2),i=o[0],a=o[1],s=HT(),l=Z(s,2),c=l[0],u=l[1];function d(){a(cr,!0);}var m=t?WT:FT;return c1(function(){if(i!==Av&&i!==Ym){var h=m.indexOf(i),g=m[h+1],v=n(i);v===m1?a(g,!0):g&&c(function(p){function b(){p.isCanceled()||a(g,!0);}v===!0?b():Promise.resolve(v).then(b);});}},[e,i]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,i]};function GT(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,m=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,E=r.onLeaveActive,S=r.onAppearEnd,$=r.onEnterEnd,x=r.onLeaveEnd,w=r.onVisibleChanged,O=To(),R=Z(O,2),k=R[0],_=R[1],I=To(wo),P=Z(I,2),M=P[0],N=P[1],T=To(null),L=Z(T,2),z=L[0],H=L[1],W=f.useRef(!1),B=f.useRef(null);function V(){return n()}var j=f.useRef(!1);function K(){N(wo,!0),H(null,!0);}function q(de){var fe=V();if(!(de&&!de.deadline&&de.target!==fe)){var be=j.current,Re;M===Bs&&be?Re=S==null?void 0:S(fe,de):M===Hs&&be?Re=$==null?void 0:$(fe,de):M===Fs&&be&&(Re=x==null?void 0:x(fe,de)),M!==wo&&be&&Re!==!1&&K();}}var G=BT(q),U=Z(G,1),Y=U[0],oe=function(fe){var be,Re,Be;switch(fe){case Bs:return be={},Q(be,cr,m),Q(be,Ci,v),Q(be,Si,y),be;case Hs:return Re={},Q(Re,cr,h),Q(Re,Ci,p),Q(Re,Si,C),Re;case Fs:return Be={},Q(Be,cr,g),Q(Be,Ci,b),Q(Be,Si,E),Be;default:return {}}},ue=f__namespace.useMemo(function(){return oe(M)},[M]),he=UT(M,!e,function(de){if(de===cr){var fe=ue[cr];return fe?fe(V()):m1}if(ce in ue){var be;H(((be=ue[ce])===null||be===void 0?void 0:be.call(ue,V(),null))||null);}return ce===Si&&(Y(V()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){q({deadline:!0});},u))),ce===r1&&K(),VT}),re=Z(he,2),ie=re[0],ce=re[1],X=h1(ce);j.current=X,c1(function(){_(t);var de=W.current;W.current=!0;var fe;!de&&t&&s&&(fe=Bs),de&&t&&i&&(fe=Hs),(de&&!t&&c||!de&&d&&!t&&c)&&(fe=Fs);var be=oe(fe);fe&&(e||be[cr])?(N(fe),ie()):N(wo);},[t]),f.useEffect(function(){(M===Bs&&!s||M===Hs&&!i||M===Fs&&!c)&&N(wo);},[s,i,c]),f.useEffect(function(){return function(){W.current=!1,clearTimeout(B.current);}},[]);var ne=f__namespace.useRef(!1);f.useEffect(function(){k&&(ne.current=!0),k!==void 0&&M===wo&&((ne.current||k)&&(w==null||w(k)),ne.current=!0);},[k,M]);var J=z;return ue[cr]&&ce===Ci&&(J=ee({transition:"none"},J)),[M,ce,J,k??t]}function KT(e){var t=e;at(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,m=o.motionName,h=o.leavedClassName,g=o.eventProps,v=f__namespace.useContext(n1),p=v.motion,b=n(o,p),y=f.useRef(),C=f.useRef();function E(){try{return y.current instanceof HTMLElement?y.current:Rl(C.current)}catch{return null}}var S=GT(b,s,E,o),$=Z(S,4),x=$[0],w=$[1],O=$[2],R=$[3],k=f__namespace.useRef(R);R&&(k.current=!0);var _=f__namespace.useCallback(function(H){y.current=H,qm(i,H);},[i]),I,P=ee(ee({},g),{},{visible:s});if(!d)I=null;else if(x===wo)R?I=d(ee({},P),_):!c&&k.current&&h?I=d(ee(ee({},P),{},{className:h}),_):u||!c&&!h?I=d(ee(ee({},P),{},{style:{display:"none"}}),_):I=null;else {var M,N;w===cr?N="prepare":h1(w)?N="active":w===Ci&&(N="start");var T=jv(m,"".concat(x,"-").concat(N));I=d(ee(ee({},P),{},{className:F(jv(m,x),(M={},Q(M,T,T&&N),Q(M,m,typeof m=="string"),M)),style:O}),_);}if(f__namespace.isValidElement(I)&&Ko(I)){var L=I,z=L.ref;z||(I=f__namespace.cloneElement(I,{ref:_}));}return f__namespace.createElement(LT,{ref:C},I)});return r.displayName="CSSMotion",r}const Xr=KT(l1);var yf="add",Cf="keep",Sf="remove",Uu="removed";function XT(e){var t;return e&&at(e)==="object"&&"key"in e?t=e:t={key:e},ee(ee({},t),{},{key:String(t.key)})}function wf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(XT)}function qT(){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=wf(e),a=wf(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,m=u.status;return d!==c||m!==Sf}),n.forEach(function(u){u.key===c&&(u.status=Cf);});}),n}var YT=["component","children","onVisibleChanged","onAllRemoved"],ZT=["status"],QT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function JT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xr,n=function(r){ho(i,r);var o=go(i);function i(){var a;Sn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c{const[n,r]=Kr();return sf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Go()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},nM=tM;var rM=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.endsWith("Color"))}const lM=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(g1=t),r&&sM(r)&&IT(aM(),r);},cM=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:E,statistic:S,spin:$,calendar:x,carousel:w,cascader:O,collapse:R,typography:k,checkbox:_,descriptions:I,divider:P,drawer:M,skeleton:N,steps:T,image:L,layout:z,list:H,mentions:W,modal:B,progress:V,result:j,slider:K,breadcrumb:q,menu:G,pagination:U,input:Y,empty:oe,badge:ue,radio:he,rate:re,switch:ie,transfer:ce,avatar:X,message:ne,tag:J,table:de,card:fe,tabs:be,timeline:Re,timePicker:Be,upload:_e,notification:ae,tree:ge,colorPicker:pe,datePicker:we,wave:De}=e,Ae=f__namespace.useCallback((te,ye)=>{const{prefixCls:Te}=e;if(ye)return ye;const Ye=Te||p.getPrefixCls("");return te?`${Ye}-${te}`:Ye},[p.getPrefixCls,e.prefixCls]),xe=b||p.iconPrefixCls||Yy,Ie=xe!==p.iconPrefixCls,Fe=n||p.csp,$e=nM(xe,Fe),Ne=TT(y,p.theme),nt={csp:Fe,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:Ae,iconPrefixCls:xe,theme:Ne,segmented:E,statistic:S,spin:$,calendar:x,carousel:w,cascader:O,collapse:R,typography:k,checkbox:_,descriptions:I,divider:P,drawer:M,skeleton:N,steps:T,image:L,input:Y,layout:z,list:H,mentions:W,modal:B,progress:V,result:j,slider:K,breadcrumb:q,menu:G,pagination:U,empty:oe,badge:ue,radio:he,rate:re,switch:ie,transfer:ce,avatar:X,message:ne,tag:J,table:de,card:fe,tabs:be,timeline:Re,timePicker:Be,upload:_e,notification:ae,tree:ge,colorPicker:pe,datePicker:we,wave:De},ct=Object.assign({},p);Object.keys(nt).forEach(te=>{nt[te]!==void 0&&(ct[te]=nt[te]);}),oM.forEach(te=>{const ye=e[te];ye&&(ct[te]=ye);});const qe=as(()=>ct,ct,(te,ye)=>{const Te=Object.keys(te),Ye=Object.keys(ye);return Te.length!==Ye.length||Te.some(Le=>te[Le]!==ye[Le])}),dt=f__namespace.useMemo(()=>({prefixCls:xe,csp:Fe}),[xe,Fe]);let Pe=Ie?$e(t):t;const me=f__namespace.useMemo(()=>{var te,ye,Te,Ye;return P_(((te=Br.Form)===null||te===void 0?void 0:te.defaultValidateMessages)||{},((Te=(ye=qe.locale)===null||ye===void 0?void 0:ye.Form)===null||Te===void 0?void 0:Te.defaultValidateMessages)||{},((Ye=qe.form)===null||Ye===void 0?void 0:Ye.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[qe,a==null?void 0:a.validateMessages]);Object.keys(me).length>0&&(Pe=f__namespace.createElement(R_.Provider,{value:me},t)),s&&(Pe=f__namespace.createElement(j_,{locale:s,_ANT_MARK__:D_},Pe)),(xe||Fe)&&(Pe=f__namespace.createElement(Vm.Provider,{value:dt},Pe)),l&&(Pe=f__namespace.createElement(RT,{size:l},Pe)),Pe=f__namespace.createElement(eM,null,Pe);const Se=f__namespace.useMemo(()=>{const te=Ne||{},{algorithm:ye,token:Te,components:Ye}=te,Le=rM(te,["algorithm","token","components"]),ve=ye&&(!Array.isArray(ye)||ye.length>0)?Fa(ye):Ky,Ee={};return Object.entries(Ye||{}).forEach(Me=>{let[ke,st]=Me;const tt=Object.assign({},st);"algorithm"in tt&&(tt.algorithm===!0?tt.theme=ve:(Array.isArray(tt.algorithm)||typeof tt.algorithm=="function")&&(tt.theme=Fa(tt.algorithm)),delete tt.algorithm),Ee[ke]=tt;}),Object.assign(Object.assign({},Le),{theme:ve,token:Object.assign(Object.assign({},ss),Te),components:Ee})},[Ne]);return y&&(Pe=f__namespace.createElement(Xy.Provider,{value:Se},Pe)),C!==void 0&&(Pe=f__namespace.createElement(PT,{disabled:C},Pe)),f__namespace.createElement(Je.Provider,{value:qe},Pe)},Qi=e=>{const t=f__namespace.useContext(Je),n=f__namespace.useContext(Um);return f__namespace.createElement(cM,Object.assign({parentContext:t,legacyLocale:n},e))};Qi.ConfigContext=Je;Qi.SizeContext=_c;Qi.config=lM;Qi.useConfig=_T;Object.defineProperty(Qi,"SizeContext",{get:()=>_c});const Qm=Qi;var v1=f__namespace.createContext(null),Hv=[];function uM(e,t){var n=f__namespace.useState(function(){if(!er())return null;var g=document.createElement("div");return g}),r=Z(n,1),o=r[0],i=f__namespace.useRef(!1),a=f__namespace.useContext(v1),s=f__namespace.useState(Hv),l=Z(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(g){u(function(v){var p=[g].concat(Qe(v));return p});});function m(){o.parentElement||document.body.appendChild(o),i.current=!0;}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),i.current=!1;}return Wt(function(){return e?a?a(m):m():h(),h},[e]),Wt(function(){c.length&&(c.forEach(function(g){return g()}),u(Hv));},[c]),[o,d]}var Gu;function dM(e){if(typeof document>"u")return 0;if(e||Gu===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),Gu=o-i;}return Gu}function fM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var mM="rc-util-locker-".concat(Date.now()),Fv=0;function hM(e){var t=!!e,n=f__namespace.useState(function(){return Fv+=1,"".concat(mM,"_").concat(Fv)}),r=Z(n,1),o=r[0];Wt(function(){if(t){var i=dM(),a=fM();Xm(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o);}else kv(o);return function(){kv(o);}},[t,o]);}var Wv=!1;function gM(e){return typeof e=="boolean"&&(Wv=e),Wv}var Vv=function(t){return t===!1?!1:!er()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},p1=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=Z(l,2),u=c[0],d=c[1],m=u||n;f__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var h=f__namespace.useState(function(){return Vv(o)}),g=Z(h,2),v=g[0],p=g[1];f__namespace.useEffect(function(){var k=Vv(o);p(k??null);});var b=uM(m&&!v),y=Z(b,2),C=y[0],E=y[1],S=v??C;hM(r&&n&&er()&&(S===C||S===document.body));var $=null;if(s&&Ko(s)&&t){var x=s;$=x.ref;}var w=cs($,t);if(!m||!er()||v===void 0)return null;var O=S===!1||gM(),R=s;return t&&(R=f__namespace.cloneElement(s,{ref:w})),f__namespace.createElement(v1.Provider,{value:E},O?R:v0.createPortal(R,S))});function tr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return f.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(tr(r)):Cm.isFragment(r)&&r.props?n=n.concat(tr(r.props.children,t)):n.push(r));}),n}var b1=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r]);},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1);},t.prototype.has=function(n){return !!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!xf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),SM?(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(){!xf||!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=CM.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}(),y1=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Ti(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new _M(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 Ti(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 TM(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}(),S1=typeof WeakMap<"u"?new WeakMap:new b1,w1=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=wM.getInstance(),r=new MM(t,n,this);S1.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){w1.prototype[e]=function(){var t;return (t=S1.get(this))[e].apply(t,arguments)};});var NM=function(){return typeof Tl.ResizeObserver<"u"?Tl.ResizeObserver:w1}(),so=new Map;function kM(e){e.forEach(function(t){var n,r=t.target;(n=so.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var x1=new NM(kM);function AM(e,t){so.has(e)||(so.set(e,new Set),x1.observe(e)),so.get(e).add(t);}function LM(e,t){so.has(e)&&(so.get(e).delete(t),so.get(e).size||(x1.unobserve(e),so.delete(e)));}var DM=function(e){ho(n,e);var t=go(n);function n(){return Sn(this,n),t.apply(this,arguments)}return wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),$f=f__namespace.createContext(null);function zM(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),i=f__namespace.useContext($f),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($f.Provider,{value:a},t)}function jM(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),i=f__namespace.useRef(null),a=f__namespace.useContext($f),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)&&Ko(l),d=u?l.ref:null,m=f__namespace.useMemo(function(){return xn(d,o)},[d,o]),h=function(){return Rl(o.current)||Rl(i.current)};f__namespace.useImperativeHandle(t,function(){return h()});var g=f__namespace.useRef(e);g.current=e;var v=f__namespace.useCallback(function(p){var b=g.current,y=b.onResize,C=b.data,E=p.getBoundingClientRect(),S=E.width,$=E.height,x=p.offsetWidth,w=p.offsetHeight,O=Math.floor(S),R=Math.floor($);if(c.current.width!==O||c.current.height!==R||c.current.offsetWidth!==x||c.current.offsetHeight!==w){var k={width:O,height:R,offsetWidth:x,offsetHeight:w};c.current=k;var _=x===Math.round(S)?S:x,I=w===Math.round($)?$:w,P=ee(ee({},k),{},{offsetWidth:_,offsetHeight:I});a==null||a(P,p,C),y&&Promise.resolve().then(function(){y(P,p);});}},[]);return f__namespace.useEffect(function(){var p=h();return p&&!r&&AM(p,v),function(){return LM(p,v)}},[o.current,r]),f__namespace.createElement(DM,{ref:i},u?f__namespace.cloneElement(l,{ref:m}):l)}var BM=f__namespace.forwardRef(jM),HM="rc-observer-key";function FM(e,t){var n=e.children,r=typeof n=="function"?[n]:tr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(HM,"-").concat(i);return f__namespace.createElement(BM,Oe({},e,{key:a,ref:i===0?t:void 0}),o)})}var Or=f__namespace.forwardRef(FM);Or.Collection=zM;function $1(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function WM(e){return $1(e)!==(e==null?void 0:e.ownerDocument)}function Nl(e){return WM(e)?$1(e):null}function VM(){var e=ee({},f__namespace);return e.useId}var Gv=0;function UM(e){var t=f__namespace.useState("ssr-id"),n=Z(t,2),r=n[0],o=n[1],i=VM(),a=i==null?void 0:i();return f__namespace.useEffect(function(){if(!i){var s=Gv;Gv+=1,o("rc_unique_".concat(s));}},[]),e||a||r}const Mc=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 Kv=f__namespace.createContext(null);function Xv(e){return e?Array.isArray(e)?e:[e]:[]}function KM(e,t,n,r){return f__namespace.useMemo(function(){var o=Xv(n??t),i=Xv(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])}const Jm=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};function XM(){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 qM(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 ca(e){return Va(parseFloat(e),0)}function Yv(e,t){var n=ee({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=us(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=ca(s),b=ca(l),y=ca(c),C=ca(u),E=Va(Math.round(d.width/g*1e3)/1e3),S=Va(Math.round(d.height/m*1e3)/1e3),$=(g-v-y-C)*E,x=(m-h-p-b)*S,w=p*S,O=b*S,R=y*E,k=C*E,_=0,I=0;if(i==="clip"){var P=ca(a);_=P*E,I=P*S;}var M=d.x+R-_,N=d.y+w-I,T=M+d.width+2*_-R-k-$,L=N+d.height+2*I-w-O-x;n.left=Math.max(n.left,M),n.top=Math.max(n.top,N),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,L);}}),n}function Zv(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 Qv(e,t){var n=t||[],r=Z(n,2),o=r[0],i=r[1];return [Zv(e.width,o),Zv(e.height,i)]}function Jv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function ei(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 eo(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 YM(e,t,n,r,o,i,a){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=Z(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?Ef(t):[]},[t]),h=f__namespace.useRef({}),g=function(){h.current={};};e||g();var v=Nn(function(){if(t&&n&&e){let Zt=function(Qo,Qr){var Jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de,ia=z.x+Qo,Ts=z.y+Qr,Ou=ia+U,Iu=Ts+G,Pu=Math.max(ia,Jr.left),Ve=Math.max(Ts,Jr.top),lt=Math.min(Ou,Jr.right),At=Math.min(Iu,Jr.bottom);return Math.max(0,(lt-Pu)*(At-Ve))},Co=function(){Ke=z.y+ye,Ze=Ke+G,Ue=z.x+te,mt=Ue+U;};var y,C,E=t,S=E.ownerDocument,$=us(E),x=$.getComputedStyle(E),w=x.width,O=x.height,R=x.position,k=E.style.left,_=E.style.top,I=E.style.right,P=E.style.bottom,M=ee(ee({},o[r]),i),N=S.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(N),N.style.left="".concat(E.offsetLeft,"px"),N.style.top="".concat(E.offsetTop,"px"),N.style.position=R,N.style.height="".concat(E.offsetHeight,"px"),N.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto";var T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else {var L=n.getBoundingClientRect();T={x:L.x,y:L.y,width:L.width,height:L.height};}var z=E.getBoundingClientRect(),H=S.documentElement,W=H.clientWidth,B=H.clientHeight,V=H.scrollWidth,j=H.scrollHeight,K=H.scrollTop,q=H.scrollLeft,G=z.height,U=z.width,Y=T.height,oe=T.width,ue={left:0,top:0,right:W,bottom:B},he={left:-q,top:-K,right:V-q,bottom:j-K},re=M.htmlRegion,ie="visible",ce="visibleFirst";re!=="scroll"&&re!==ce&&(re=ie);var X=re===ce,ne=Yv(he,m),J=Yv(ue,m),de=re===ie?J:ne,fe=X?J:de;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var be=E.getBoundingClientRect();E.style.left=k,E.style.top=_,E.style.right=I,E.style.bottom=P,(C=E.parentElement)===null||C===void 0||C.removeChild(N);var Re=Va(Math.round(U/parseFloat(w)*1e3)/1e3),Be=Va(Math.round(G/parseFloat(O)*1e3)/1e3);if(Re===0||Be===0||Pl(n)&&!Jm(n))return;var _e=M.offset,ae=M.targetOffset,ge=Qv(z,_e),pe=Z(ge,2),we=pe[0],De=pe[1],Ae=Qv(T,ae),xe=Z(Ae,2),Ie=xe[0],Fe=xe[1];T.x-=Ie,T.y-=Fe;var $e=M.points||[],Ne=Z($e,2),nt=Ne[0],ct=Ne[1],qe=Jv(ct),dt=Jv(nt),Pe=ei(T,qe),me=ei(z,dt),Se=ee({},M),te=Pe.x-me.x+we,ye=Pe.y-me.y+De,Te=Zt(te,ye),Ye=Zt(te,ye,J),Le=ei(T,["t","l"]),ve=ei(z,["t","l"]),Ee=ei(T,["b","r"]),Me=ei(z,["b","r"]),ke=M.overflow||{},st=ke.adjustX,tt=ke.adjustY,xt=ke.shiftX,Ht=ke.shiftY,Ft=function(Qr){return typeof Qr=="boolean"?Qr:Qr>=0},Ke,Ze,Ue,mt;Co();var ht=Ft(tt),Tt=dt[0]===qe[0];if(ht&&dt[0]==="t"&&(Ze>fe.bottom||h.current.bt)){var Xe=ye;Tt?Xe-=G-Y:Xe=Le.y-Me.y-De;var We=Zt(te,Xe),ft=Zt(te,Xe,J);We>Te||We===Te&&(!X||ft>=Ye)?(h.current.bt=!0,ye=Xe,De=-De,Se.points=[eo(dt,0),eo(qe,0)]):h.current.bt=!1;}if(ht&&dt[0]==="b"&&(KeTe||en===Te&&(!X||Nt>=Ye)?(h.current.tb=!0,ye=Ot,De=-De,Se.points=[eo(dt,0),eo(qe,0)]):h.current.tb=!1;}var cn=Ft(st),hr=dt[1]===qe[1];if(cn&&dt[1]==="l"&&(mt>fe.right||h.current.rl)){var ir=te;hr?ir-=U-oe:ir=Le.x-Me.x-we;var Yr=Zt(ir,ye),po=Zt(ir,ye,J);Yr>Te||Yr===Te&&(!X||po>=Ye)?(h.current.rl=!0,te=ir,we=-we,Se.points=[eo(dt,1),eo(qe,1)]):h.current.rl=!1;}if(cn&&dt[1]==="r"&&(UeTe||Tn===Te&&(!X||bo>=Ye)?(h.current.lr=!0,te=En,we=-we,Se.points=[eo(dt,1),eo(qe,1)]):h.current.lr=!1;}Co();var Ln=xt===!0?0:xt;typeof Ln=="number"&&(UeJ.right&&(te-=mt-J.right-we,T.x>J.right-Ln&&(te+=T.x-J.right+Ln)));var On=Ht===!0?0:Ht;typeof On=="number"&&(KeJ.bottom&&(ye-=Ze-J.bottom-De,T.y>J.bottom-On&&(ye+=T.y-J.bottom+On)));var Mn=z.x+te,Tr=Mn+U,Vn=z.y+ye,Un=Vn+G,Zr=T.x,yo=Zr+oe,It=T.y,gt=It+Y,je=Math.max(Mn,Zr),He=Math.min(Tr,yo),bt=(je+He)/2,kt=bt-Mn,Pt=Math.max(Vn,It),tn=Math.min(Un,gt),In=(Pt+tn)/2,Mr=In-Vn;a==null||a(t,Se);var Gn=be.right-z.x-(te+z.width),Pn=be.bottom-z.y-(ye+z.height);u({ready:!0,offsetX:te/Re,offsetY:ye/Be,offsetR:Gn/Re,offsetB:Pn/Be,arrowX:kt/Re,arrowY:Mr/Be,scaleX:Re,scaleY:Be,align:Se});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&v();});},b=function(){u(function(C){return ee(ee({},C),{},{ready:!1})});};return Wt(b,[r]),Wt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function ZM(e,t,n,r,o){Wt(function(){if(e&&t&&n){let d=function(){r(),o();};var i=t,a=n,s=Ef(i),l=Ef(a),c=us(a),u=new Set([c].concat(Qe(s),Qe(l)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function QM(e,t,n,r,o,i,a,s){var l=f__namespace.useRef(e),c=f__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),f__namespace.useEffect(function(){var u=pt(function(){c.current=!1;});return function(){pt.cancel(u);}},[e]),f__namespace.useEffect(function(){if(t&&r&&(!o||i)){var u=function(){var $=!1,x=function(R){var k=R.target;$=a(k);},w=function(R){var k=R.target;!c.current&&l.current&&!$&&!a(k)&&s(!1);};return [x,w]},d=u(),m=Z(d,2),h=m[0],g=m[1],v=u(),p=Z(v,2),b=p[0],y=p[1],C=us(r);C.addEventListener("mousedown",h,!0),C.addEventListener("click",g,!0),C.addEventListener("contextmenu",g,!0);var E=Nl(n);return E&&(E.addEventListener("mousedown",b,!0),E.addEventListener("click",y,!0),E.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",h,!0),C.removeEventListener("click",g,!0),C.removeEventListener("contextmenu",g,!0),E&&(E.removeEventListener("mousedown",b,!0),E.removeEventListener("click",y,!0),E.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,i]);}function JM(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,m=f__namespace.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],v=n.points[1],p=g[0],b=g[1],y=v[0],C=v[1];p===y||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===C||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return f__namespace.createElement("div",{ref:m,className:F("".concat(t,"-arrow"),a),style:h},s)}function eN(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f__namespace.createElement(Xr,Oe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return f__namespace.createElement("div",{style:{zIndex:r},className:F("".concat(t,"-mask"),s)})}):null}var tN=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),nN=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,m=e.arrow,h=e.arrowPos,g=e.align,v=e.motion,p=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,C=e.autoDestroy,E=e.portal,S=e.zIndex,$=e.onMouseEnter,x=e.onMouseLeave,w=e.onPointerEnter,O=e.ready,R=e.offsetX,k=e.offsetY,_=e.offsetR,I=e.offsetB,P=e.onAlign,M=e.onPrepare,N=e.stretch,T=e.targetWidth,L=e.targetHeight,z=typeof n=="function"?n():n,H=l||c,W=(y==null?void 0:y.length)>0,B=f__namespace.useState(!y||!W),V=Z(B,2),j=V[0],K=V[1];if(Wt(function(){!j&&W&&a&&K(!0);},[j,W,a]),!j)return null;var q="auto",G={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(O||!l){var U=g.points,Y=g._experimental,oe=Y==null?void 0:Y.dynamicInset,ue=oe&&U[0][1]==="r",he=oe&&U[0][0]==="b";ue?(G.right=_,G.left=q):(G.left=R,G.right=q),he?(G.bottom=I,G.top=q):(G.top=k,G.bottom=q);}var re={};return N&&(N.includes("height")&&L?re.height=L:N.includes("minHeight")&&L&&(re.minHeight=L),N.includes("width")&&T?re.width=T:N.includes("minWidth")&&T&&(re.minWidth=T)),l||(re.pointerEvents="none"),f__namespace.createElement(E,{open:b||H,getContainer:y&&function(){return y(a)},autoDestroy:C},f__namespace.createElement(eN,{prefixCls:o,open:l,zIndex:S,mask:d,motion:p}),f__namespace.createElement(Or,{onResize:P,disabled:!l},function(ie){return f__namespace.createElement(Xr,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:M,onEnterPrepare:M,visible:l,onVisibleChanged:function(X){var ne;v==null||(ne=v.onVisibleChanged)===null||ne===void 0||ne.call(v,X),s(X);}}),function(ce,X){var ne=ce.className,J=ce.style,de=F(o,ne,r);return f__namespace.createElement("div",{ref:xn(ie,t,X),className:de,style:ee(ee(ee(ee({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),re),J),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:$,onMouseLeave:x,onPointerEnter:w,onClick:u},m&&f__namespace.createElement(JM,{prefixCls:o,arrow:m,arrowPos:h,align:g}),f__namespace.createElement(tN,{cache:!l},z))})}))}),rN=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ko(n),i=f__namespace.useCallback(function(s){qm(t,r?r(s):s);},[r]),a=cs(i,n.ref);return o?f__namespace.cloneElement(n,{ref:a}):n}),oN=["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 iN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p1,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,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,C=n.blurDelay,E=n.mask,S=n.maskClosable,$=S===void 0?!0:S,x=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,R=n.destroyPopupOnHide,k=n.popup,_=n.popupClassName,I=n.popupStyle,P=n.popupPlacement,M=n.builtinPlacements,N=M===void 0?{}:M,T=n.popupAlign,L=n.zIndex,z=n.stretch,H=n.getPopupClassNameFromAlign,W=n.alignPoint,B=n.onPopupClick,V=n.onPopupAlign,j=n.arrow,K=n.popupMotion,q=n.maskMotion,G=n.popupTransitionName,U=n.popupAnimation,Y=n.maskTransitionName,oe=n.maskAnimation,ue=n.className,he=n.getTriggerDOMNode,re=et(n,oN),ie=O||R||!1,ce=f__namespace.useState(!1),X=Z(ce,2),ne=X[0],J=X[1];Wt(function(){J(Mc());},[]);var de=f__namespace.useRef({}),fe=f__namespace.useContext(Kv),be=f__namespace.useMemo(function(){return {registerSubPopup:function(lt,At){de.current[lt]=At,fe==null||fe.registerSubPopup(lt,At);}}},[fe]),Re=UM(),Be=f__namespace.useState(null),_e=Z(Be,2),ae=_e[0],ge=_e[1],pe=Nn(function(Ve){Pl(Ve)&&ae!==Ve&&ge(Ve),fe==null||fe.registerSubPopup(Re,Ve);}),we=f__namespace.useState(null),De=Z(we,2),Ae=De[0],xe=De[1],Ie=Nn(function(Ve){Pl(Ve)&&Ae!==Ve&&xe(Ve);}),Fe=f__namespace.Children.only(a),$e=(Fe==null?void 0:Fe.props)||{},Ne={},nt=Nn(function(Ve){var lt,At,Gt=Ae;return (Gt==null?void 0:Gt.contains(Ve))||((lt=Nl(Gt))===null||lt===void 0?void 0:lt.host)===Ve||Ve===Gt||(ae==null?void 0:ae.contains(Ve))||((At=Nl(ae))===null||At===void 0?void 0:At.host)===Ve||Ve===ae||Object.values(de.current).some(function(Kt){return (Kt==null?void 0:Kt.contains(Ve))||Ve===Kt})}),ct=qv(i,K,U,G),qe=qv(i,q,oe,Y),dt=f__namespace.useState(m||!1),Pe=Z(dt,2),me=Pe[0],Se=Pe[1],te=d??me,ye=Nn(function(Ve){d===void 0&&Se(Ve);});Wt(function(){Se(d||!1);},[d]);var Te=f__namespace.useRef(te);Te.current=te;var Ye=Nn(function(Ve){v0.flushSync(function(){te!==Ve&&(ye(Ve),h==null||h(Ve));});}),Le=f__namespace.useRef(),ve=function(){clearTimeout(Le.current);},Ee=function(lt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ve(),At===0?Ye(lt):Le.current=setTimeout(function(){Ye(lt);},At*1e3);};f__namespace.useEffect(function(){return ve},[]);var Me=f__namespace.useState(!1),ke=Z(Me,2),st=ke[0],tt=ke[1];Wt(function(Ve){(!Ve||te)&&tt(!0);},[te]);var xt=f__namespace.useState(null),Ht=Z(xt,2),Ft=Ht[0],Ke=Ht[1],Ze=f__namespace.useState([0,0]),Ue=Z(Ze,2),mt=Ue[0],ht=Ue[1],Tt=function(lt){ht([lt.clientX,lt.clientY]);},Xe=YM(te,ae,W?mt:Ae,P,N,T,V),We=Z(Xe,11),ft=We[0],Ot=We[1],en=We[2],Nt=We[3],cn=We[4],hr=We[5],ir=We[6],Yr=We[7],po=We[8],En=We[9],Tn=We[10],bo=KM(ne,l,c,u),Ln=Z(bo,2),On=Ln[0],Mn=Ln[1],Tr=On.has("click"),Vn=Mn.has("click")||Mn.has("contextMenu"),Un=Nn(function(){st||Tn();}),Zr=function(){Te.current&&W&&Vn&&Ee(!1);};ZM(te,Ae,ae,Un,Zr),Wt(function(){Un();},[mt,P]),Wt(function(){te&&!(N!=null&&N[P])&&Un();},[JSON.stringify(T)]);var yo=f__namespace.useMemo(function(){var Ve=qM(N,i,En,W);return F(Ve,H==null?void 0:H(En))},[En,H,N,i,W]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:Un}});var It=function(lt){tt(!1),Tn(),g==null||g(lt);},gt=function(){return new Promise(function(lt){Ke(function(){return lt});})};Wt(function(){Ft&&(Tn(),Ft(),Ke(null));},[Ft]);var je=f__namespace.useState(0),He=Z(je,2),bt=He[0],kt=He[1],Pt=f__namespace.useState(0),tn=Z(Pt,2),In=tn[0],Mr=tn[1],Gn=function(lt,At){if(Un(),z){var Gt=At.getBoundingClientRect();kt(Gt.width),Mr(Gt.height);}};function Pn(Ve,lt,At,Gt){Ne[Ve]=function(Kt){var Ms;Gt==null||Gt(Kt),Ee(lt,At);for(var Ru=arguments.length,Pg=new Array(Ru>1?Ru-1:0),Ns=1;Ns1?At-1:0),Kt=1;Kt1?At-1:0),Kt=1;Kt({height:0,opacity:0}),ep=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},uN=e=>({height:e?e.offsetHeight:0}),Xu=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",E1=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Ku,onEnterStart:Ku,onAppearActive:ep,onEnterActive:ep,onLeaveStart:uN,onLeaveActive:Ku,onAppearEnd:Xu,onEnterEnd:Xu,onLeaveEnd:Xu,motionDeadline:500}},kc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,O1=8;function th(e){const t=O1,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Vs(e,t){return e?t:{}}function nh(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:m,dropdownArrowOffset:h}=th({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"},vT(r,o,i,s,a)),{"&:before":{background:s}})]},Vs(!!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:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Vs(!!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:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Vs(!!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:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),Vs(!!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:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function dN(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 tp={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"]}},fN={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"]}},mN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function I1(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(tp).forEach(c=>{const u=r&&fN[c]||tp[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,mN.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 m=th({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=m.dropdownArrowOffset+s;break}d.overflow=dN(c,m,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:Fr}=f__namespace;function P1(e){return e&&Fr(e)&&e.type===f__namespace.Fragment}function hN(e,t,n){return Fr(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function yn(e,t){return hN(e,e,t)}const gN=e=>{const t=f.useContext(_c);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Wn=gN,vN=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},pN=vN,bN=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"}}}},R1=Bt("Space",e=>[bN(e),pN(e)],()=>({}),{resetStyle:!1});var _1=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(Ac),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return F(`${e}-compact${s}item`,{[`${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}},Mi=e=>{let{children:t}=e;return f__namespace.createElement(Ac.Provider,{value:null},t)},yN=e=>{var{children:t}=e,n=_1(e,["children"]);return f__namespace.createElement(Ac.Provider,{value:n},t)},CN=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Je),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=_1(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Wn(C=>r??C),m=t("space-compact",a),[h,g]=R1(m),v=F(m,g,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},s,l),p=f__namespace.useContext(Ac),b=tr(c),y=f__namespace.useMemo(()=>b.map((C,E)=>{const S=C&&C.key||`${m}-item-${E}`;return f__namespace.createElement(yN,{key:S,compactSize:d,compactDirection:o,isFirstItem:E===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:E===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,b,p]);return b.length===0?null:h(f__namespace.createElement("div",Object.assign({className:v},u),y))},SN=CN,wN=e=>{const t=e!=null&&e.algorithm?Fa(e.algorithm):Fa(ls),n=Object.assign(Object.assign({},ss),e==null?void 0:e.token);return Ny(n,{override:e==null?void 0:e.token},t,Km)},xN=wN;function $N(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 EN=(e,t)=>{const n=t??ls(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),$N(t??e)),Gy(r)),{controlHeight:o}),Vy(Object.assign(Object.assign({},n),{controlHeight:o})))},ON=EN,to=(e,t)=>new Vt(e).setAlpha(t).toRgbString(),ri=(e,t)=>new Vt(e).lighten(t).toHexString(),IN=e=>{const t=Hr(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]}},PN=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:to(r,.85),colorTextSecondary:to(r,.65),colorTextTertiary:to(r,.45),colorTextQuaternary:to(r,.25),colorFill:to(r,.18),colorFillSecondary:to(r,.12),colorFillTertiary:to(r,.08),colorFillQuaternary:to(r,.04),colorBgElevated:ri(n,12),colorBgContainer:ri(n,8),colorBgLayout:ri(n,0),colorBgSpotlight:ri(n,26),colorBorder:ri(n,26),colorBorderSecondary:ri(n,19)}},RN=(e,t)=>{const n=Object.keys(Gm).map(o=>{const i=Hr(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??ls(e);return Object.assign(Object.assign(Object.assign({},r),n),Uy(e,{generateColorPalettes:IN,generateNeutralColorPalettes:PN}))},_N=RN;function TN(){const[e,t,n]=Kr();return {theme:e,token:t,hashId:n}}const Ni={defaultConfig:Ol,defaultSeed:Ol.token,useToken:TN,defaultAlgorithm:ls,darkAlgorithm:_N,compactAlgorithm:ON,getDesignToken:xN},MN=e=>({animationDuration:e,animationFillMode:"both"}),NN=e=>({animationDuration:e,animationFillMode:"both"}),rh=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({},MN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},NN(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"}}},kN=new Ct("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AN=new Ct("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),LN=new Ct("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DN=new Ct("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zN=new Ct("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jN=new Ct("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),BN=new Ct("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),HN=new Ct("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),FN={"move-up":{inKeyframes:BN,outKeyframes:HN},"move-down":{inKeyframes:kN,outKeyframes:AN},"move-left":{inKeyframes:LN,outKeyframes:DN},"move-right":{inKeyframes:zN,outKeyframes:jN}},kl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=FN[t];return [rh(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},oh=new Ct("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ih=new Ct("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ah=new Ct("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),sh=new Ct("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),WN=new Ct("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),VN=new Ct("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),UN=new Ct("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),GN=new Ct("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),KN={"slide-up":{inKeyframes:oh,outKeyframes:ih},"slide-down":{inKeyframes:ah,outKeyframes:sh},"slide-left":{inKeyframes:WN,outKeyframes:VN},"slide-right":{inKeyframes:UN,outKeyframes:GN}},mo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=KN[t];return [rh(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}}]},XN=new Ct("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qN=new Ct("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),np=new Ct("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),rp=new Ct("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),YN=new Ct("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ZN=new Ct("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),QN=new Ct("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),JN=new Ct("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),e3=new Ct("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),t3=new Ct("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),n3=new Ct("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),r3=new Ct("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),o3={zoom:{inKeyframes:XN,outKeyframes:qN},"zoom-big":{inKeyframes:np,outKeyframes:rp},"zoom-big-fast":{inKeyframes:np,outKeyframes:rp},"zoom-left":{inKeyframes:QN,outKeyframes:JN},"zoom-right":{inKeyframes:e3,outKeyframes:t3},"zoom-up":{inKeyframes:YN,outKeyframes:ZN},"zoom-down":{inKeyframes:n3,outKeyframes:r3}},Lc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=o3[t];return [rh(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}}]},i3=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`}}}),T1=i3,a3=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({},Rt(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,O1)}},[`${t}-content`]:{position:"relative"}}),Il(e,(m,h)=>{let{darkColor:g}=h;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},nh(ut(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},M1=(e,t)=>Bt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=ut(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [a3(l),Lc(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),s3=Wa.map(e=>`${e}-inverse`),l3=["success","processing","error","default","warning"];function Dc(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Qe(s3),Qe(Wa)).includes(e):Wa.includes(e)}function c3(e){return l3.includes(e)}function N1(e,t){const n=Dc(t),r=F({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const u3=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(Je),l=s("tooltip",t),[c,u]=M1(l,!0),d=N1(l,i),m=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),g=F(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(f__namespace.createElement("div",{className:g,style:m},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(eh,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},d3=u3;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{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 g3(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}=h3(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=yn(e,{style:a,className:null});return f__namespace.createElement("span",{style:i,className:F(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const k1=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:m,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,E=!!g,{token:S}=m3(),{getPopupContainer:$,getPrefixCls:x,direction:w}=f__namespace.useContext(Je),O=f__namespace.useRef(null),R=()=>{var J;(J=O.current)===null||J===void 0||J.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{R();}}));const[k,_]=Dt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),I=!v&&!p&&v!==0,P=J=>{var de,fe;_(I?!1:J),I||((de=e.onOpenChange)===null||de===void 0||de.call(e,J),(fe=e.onVisibleChange)===null||fe===void 0||fe.call(e,J));},M=f__namespace.useMemo(()=>{var J,de;let fe=y;return typeof g=="object"&&(fe=(de=(J=g.pointAtCenter)!==null&&J!==void 0?J:g.arrowPointAtCenter)!==null&&de!==void 0?de:y),b||I1({arrowPointAtCenter:fe,autoAdjustOverflow:C,arrowWidth:E?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[y,g,b,S]),N=f__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),T=f__namespace.createElement(Mi,null,typeof N=="function"?N():N),{getPopupContainer:L,placement:z="top",mouseEnterDelay:H=.1,mouseLeaveDelay:W=.1,overlayStyle:B,rootClassName:V}=e,j=f3(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=x("tooltip",o),q=x(),G=e["data-popover-inject"];let U=k;!("open"in e)&&!("visible"in e)&&I&&(U=!1);const Y=g3(Fr(u)&&!P1(u)?u:f__namespace.createElement("span",null,u),K),oe=Y.props,ue=!oe.className||typeof oe.className=="string"?F(oe.className,i||`${K}-open`):oe.className,[he,re]=M1(K,!G),ie=N1(K,l),ce=ie.arrowStyle,X=Object.assign(Object.assign({},c),ie.overlayStyle),ne=F(s,{[`${K}-rtl`]:w==="rtl"},ie.className,V,re);return he(f__namespace.createElement(cN,Object.assign({},j,{showArrow:E,placement:z,mouseEnterDelay:H,mouseLeaveDelay:W,prefixCls:K,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ce),B),getTooltipContainer:L||a||$,ref:O,builtinPlacements:M,overlay:T,visible:U,onVisibleChange:P,afterVisibleChange:d??m,overlayInnerStyle:X,arrowContent:f__namespace.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:kc(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?yn(Y,{className:ue}):Y))});k1._InternalPanelDoNotUseOrYouWillBeFired=d3;const ds=k1,v3=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function i(){pt.cancel(o.current),o.current=null;}function a(){o.current=pt(()=>{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(ds,Object.assign({ref:xn(r,t)},e))}),p3=v3,b3=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Rt(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${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.handleColor}`,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.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Vt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},A1=(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]:r*3+(t?0:e.marginFull),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},y3=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},A1(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},C3=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},A1(e,!1)),{height:"100%"})}},S3=Bt("Slider",e=>{const t=ut(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [b3(t),y3(t),C3(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,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});var w3=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():"",$3=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:m}=e,h=w3(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:b}=f.useContext(Je),y=f.useContext(_r),C=s??y,[E,S]=f.useState({}),$=(N,T)=>{S(L=>Object.assign(Object.assign({},L),{[N]:T}));},x=(N,T)=>N||(T?g==="rtl"?"left":"right":"top"),w=p("slider",n),[O,R]=S3(w),k=F(o,v==null?void 0:v.className,i,{[`${w}-rtl`]:g==="rtl"},R);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[_,I]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),P=(N,T)=>{var L;const{index:z,dragging:H}=T,{tooltip:W={},vertical:B}=e,V=Object.assign({},W),{open:j,placement:K,getPopupContainer:q,prefixCls:G,formatter:U}=V;let Y;U||U===null?Y=U:c||c===null?Y=c:Y=x3;const oe=Y?E[z]||H:!1,ue=(L=j??u)!==null&&L!==void 0?L:j===void 0&&oe,he=Object.assign(Object.assign({},N.props),{onMouseEnter:()=>$(z,!0),onMouseLeave:()=>$(z,!1)}),re=p("tooltip",G??l);return f.createElement(p3,Object.assign({},V,{prefixCls:re,title:Y?Y(T.value):"",open:ue,placement:x(K??m,B),key:z,overlayClassName:`${w}-tooltip`,getPopupContainer:q||d||b}),f.cloneElement(N,he))},M=Object.assign(Object.assign({},v==null?void 0:v.style),a);return O(f.createElement(jR,Object.assign({},h,{step:h.step,range:_,draggableTrack:I,className:k,style:M,disabled:C,ref:t,prefixCls:w,handleRender:P})))}),E3=$3;var O3={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 I3=O3;var P3=1/0,R3="[object Symbol]",_3=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,T3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zc="\\ud800-\\udfff",L1="\\u0300-\\u036f\\ufe20-\\ufe23",D1="\\u20d0-\\u20f0",z1="\\u2700-\\u27bf",j1="a-z\\xdf-\\xf6\\xf8-\\xff",M3="\\xac\\xb1\\xd7\\xf7",N3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",k3="\\u2000-\\u206f",A3=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",B1="A-Z\\xc0-\\xd6\\xd8-\\xde",H1="\\ufe0e\\ufe0f",F1=M3+N3+k3+A3,lh="['’]",L3="["+zc+"]",op="["+F1+"]",Al="["+L1+D1+"]",W1="\\d+",D3="["+z1+"]",V1="["+j1+"]",U1="[^"+zc+F1+W1+z1+j1+B1+"]",Of="\\ud83c[\\udffb-\\udfff]",z3="(?:"+Al+"|"+Of+")",G1="[^"+zc+"]",ch="(?:\\ud83c[\\udde6-\\uddff]){2}",uh="[\\ud800-\\udbff][\\udc00-\\udfff]",gi="["+B1+"]",K1="\\u200d",ip="(?:"+V1+"|"+U1+")",j3="(?:"+gi+"|"+U1+")",ap="(?:"+lh+"(?:d|ll|m|re|s|t|ve))?",sp="(?:"+lh+"(?:D|LL|M|RE|S|T|VE))?",X1=z3+"?",q1="["+H1+"]?",B3="(?:"+K1+"(?:"+[G1,ch,uh].join("|")+")"+q1+X1+")*",Y1=q1+X1+B3,H3="(?:"+[D3,ch,uh].join("|")+")"+Y1,F3="(?:"+[G1+Al+"?",Al,ch,uh,L3].join("|")+")",W3=RegExp(lh,"g"),V3=RegExp(Al,"g"),U3=RegExp(Of+"(?="+Of+")|"+F3+Y1,"g"),G3=RegExp([gi+"?"+V1+"+"+ap+"(?="+[op,gi,"$"].join("|")+")",j3+"+"+sp+"(?="+[op,gi+ip,"$"].join("|")+")",gi+"?"+ip+"+"+ap,gi+"+"+sp,W1,H3].join("|"),"g"),K3=RegExp("["+K1+zc+L1+D1+H1+"]"),X3=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q3={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},Y3=typeof Io=="object"&&Io&&Io.Object===Object&&Io,Z3=typeof self=="object"&&self&&self.Object===Object&&self,Q3=Y3||Z3||Function("return this")();function J3(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++oo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:uk(e,t,n)}function mk(e){return function(t){t=jc(t);var n=Z1(t)?ik(t):void 0,r=n?n[0]:t.charAt(0),o=n?fk(n,1).join(""):t.slice(1);return r[e]()+o}}function hk(e){return function(t){return J3(Sk(yk(t).replace(W3,"")),e,"")}}function gk(e){return !!e&&typeof e=="object"}function vk(e){return typeof e=="symbol"||gk(e)&&ck.call(e)==R3}function jc(e){return e==null?"":dk(e)}var pk=hk(function(e,t,n){return t=t.toLowerCase(),e+(n?bk(t):t)});function bk(e){return Ck(jc(e).toLowerCase())}function yk(e){return e=jc(e),e&&e.replace(T3,rk).replace(V3,"")}var Ck=mk("toUpperCase");function Sk(e,t,n){return e=jc(e),t=n?void 0:t,t===void 0?ok(e)?sk(e):tk(e):e.match(t)||[]}var wk=pk;const xk=an(wk);function $k(e,t){Rr(e,"[@ant-design/icons] ".concat(t));}function dp(e){return at(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(at(e.icon)==="object"||typeof e.icon=="function")}function fp(){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:delete t[n],t[xk(n)]=r;}return t},{})}function If(e,t,n){return n?f.createElement(e.tag,ee(ee({key:t},fp(e.attrs)),n),(e.children||[]).map(function(r,o){return If(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,ee({key:t},fp(e.attrs)),(e.children||[]).map(function(r,o){return If(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Q1(e){return Hr(e)[0]}function J1(e){return e?Array.isArray(e)?e:[e]:[]}var Ek=` .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); } } `,Ok=function(t){var n=f.useContext(Vm),r=n.csp,o=n.prefixCls,i=Ek;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,s=Nl(a);Xm(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},Ik=["icon","className","onClick","style","primaryColor","secondaryColor"],Ea={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Pk(e){var t=e.primaryColor,n=e.secondaryColor;Ea.primaryColor=t,Ea.secondaryColor=n||Q1(t),Ea.calculated=!!n;}function Rk(){return ee({},Ea)}var Bc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=et(t,Ik),c=f__namespace.useRef(),u=Ea;if(a&&(u={primaryColor:a,secondaryColor:s||Q1(a)}),Ok(c),$k(dp(n),"icon should be icon definiton, but got ".concat(n)),!dp(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=ee(ee({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),If(d.icon,"svg-".concat(d.name),ee(ee({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Bc.displayName="IconReact";Bc.getTwoToneColors=Rk;Bc.setTwoToneColors=Pk;const dh=Bc;function eC(e){var t=J1(e),n=Z(t,2),r=n[0],o=n[1];return dh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function _k(){var e=dh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tk=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];eC(rT.primary);var Hc=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=et(e,Tk),d=f__namespace.useContext(Vm),m=d.prefixCls,h=m===void 0?"anticon":m,g=d.rootClassName,v=F(g,h,(n={},Q(n,"".concat(h,"-").concat(o.name),!!o.name),Q(n,"".concat(h,"-spin"),!!i||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=J1(c),C=Z(y,2),E=C[0],S=C[1];return f__namespace.createElement("span",Oe({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:v}),f__namespace.createElement(dh,{icon:o,primaryColor:E,secondaryColor:S,style:b}))});Hc.displayName="AntdIcon";Hc.getTwoToneColor=_k;Hc.setTwoToneColor=eC;const hn=Hc;var Mk=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:I3}))};const tC=f__namespace.forwardRef(Mk);function Cn(e,t){var n=ee({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const ki=e=>e?typeof e=="function"?e():e:null,Nk=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},Rt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},nh(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},kk=e=>{const{componentCls:t}=e;return {[t]:Wa.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Ak=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,m=u/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${h}px ${m}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},nC=Bt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=ut(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [Nk(o),kk(o),r&&Ak(o),Lc(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var Lk=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`},ki(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},ki(n)))},zk=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:F(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(eh,Object.assign({},e,{className:t,prefixCls:n}),l||Dk(n,a,s)))},jk=e=>{const{prefixCls:t}=e,n=Lk(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(Je),o=r("popover",t),[i,a]=nC(o);return i(f__namespace.createElement(zk,Object.assign({},n,{prefixCls:o,hashId:a})))},rC=jk;var Bk=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`},ki(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},ki(n)))},oC=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=Bk(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(Je),h=m("popover",n),[g,v]=nC(h),p=m(),b=F(i,v);return g(f__namespace.createElement(ds,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(Hk,{prefixCls:h,title:r,content:o}):null,transitionName:kc(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});oC._InternalPanelDoNotUseOrYouWillBeFired=rC;const Fc=oC,Fk=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},Wk=Bt("Wave",e=>[Fk(e)]);function Ua(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ua=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(_,I,P){_[I]=P.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(_,I,P){return Object.defineProperty(_,I,{value:P,enumerable:!0,configurable:!0,writable:!0}),_[I]}try{l({},"");}catch{l=function(P,M,N){return P[M]=N};}function c(_,I,P,M){var N=I&&I.prototype instanceof m?I:m,T=Object.create(N.prototype),L=new O(M||[]);return r(T,"_invoke",{value:S(_,P,L)}),T}function u(_,I,P){try{return {type:"normal",arg:_.call(I,P)}}catch(M){return {type:"throw",arg:M}}}e.wrap=c;var d={};function m(){}function h(){}function g(){}var v={};l(v,i,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(R([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=g.prototype=m.prototype=Object.create(v);function C(_){["next","throw","return"].forEach(function(I){l(_,I,function(P){return this._invoke(I,P)});});}function E(_,I){function P(N,T,L,z){var H=u(_[N],_,T);if(H.type!=="throw"){var W=H.arg,B=W.value;return B&&at(B)=="object"&&n.call(B,"__await")?I.resolve(B.__await).then(function(V){P("next",V,L,z);},function(V){P("throw",V,L,z);}):I.resolve(B).then(function(V){W.value=V,L(W);},function(V){return P("throw",V,L,z)})}z(H.arg);}var M;r(this,"_invoke",{value:function(T,L){function z(){return new I(function(H,W){P(T,L,H,W);})}return M=M?M.then(z,z):z()}});}function S(_,I,P){var M="suspendedStart";return function(N,T){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(N==="throw")throw T;return k()}for(P.method=N,P.arg=T;;){var L=P.delegate;if(L){var z=$(L,P);if(z){if(z===d)continue;return z}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(M==="suspendedStart")throw M="completed",P.arg;P.dispatchException(P.arg);}else P.method==="return"&&P.abrupt("return",P.arg);M="executing";var H=u(_,I,P);if(H.type==="normal"){if(M=P.done?"completed":"suspendedYield",H.arg===d)continue;return {value:H.arg,done:P.done}}H.type==="throw"&&(M="completed",P.method="throw",P.arg=H.arg);}}}function $(_,I){var P=I.method,M=_.iterator[P];if(M===void 0)return I.delegate=null,P==="throw"&&_.iterator.return&&(I.method="return",I.arg=void 0,$(_,I),I.method==="throw")||P!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var N=u(M,_.iterator,I.arg);if(N.type==="throw")return I.method="throw",I.arg=N.arg,I.delegate=null,d;var T=N.arg;return T?T.done?(I[_.resultName]=T.value,I.next=_.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,d):T:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,d)}function x(_){var I={tryLoc:_[0]};1 in _&&(I.catchLoc=_[1]),2 in _&&(I.finallyLoc=_[2],I.afterLoc=_[3]),this.tryEntries.push(I);}function w(_){var I=_.completion||{};I.type="normal",delete I.arg,_.completion=I;}function O(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(x,this),this.reset(!0);}function R(_){if(_){var I=_[i];if(I)return I.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var P=-1,M=function N(){for(;++P<_.length;)if(n.call(_,P))return N.value=_[P],N.done=!1,N;return N.value=void 0,N.done=!0,N};return M.next=M}}return {next:k}}function k(){return {value:void 0,done:!0}}return h.prototype=g,r(y,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:h,configurable:!0}),h.displayName=l(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(_){var I=typeof _=="function"&&_.constructor;return !!I&&(I===h||(I.displayName||I.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,g):(_.__proto__=g,l(_,s,"GeneratorFunction")),_.prototype=Object.create(y),_},e.awrap=function(_){return {__await:_}},C(E.prototype),l(E.prototype,a,function(){return this}),e.AsyncIterator=E,e.async=function(_,I,P,M,N){N===void 0&&(N=Promise);var T=new E(c(_,I,P,M),N);return e.isGeneratorFunction(I)?T:T.next().then(function(L){return L.done?L.value:T.next()})},C(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return "[object Generator]"}),e.keys=function(_){var I=Object(_),P=[];for(var M in I)P.push(M);return P.reverse(),function N(){for(;P.length;){var T=P.pop();if(T in I)return N.value=T,N.done=!1,N}return N.done=!0,N}},e.values=R,O.prototype={constructor:O,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!I)for(var P in this)P.charAt(0)==="t"&&n.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=void 0);},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var P=this;function M(W,B){return L.type="throw",L.arg=I,P.next=W,B&&(P.method="next",P.arg=void 0),!!B}for(var N=this.tryEntries.length-1;N>=0;--N){var T=this.tryEntries[N],L=T.completion;if(T.tryLoc==="root")return M("end");if(T.tryLoc<=this.prev){var z=n.call(T,"catchLoc"),H=n.call(T,"finallyLoc");if(z&&H){if(this.prev=0;--M){var N=this.tryEntries[M];if(N.tryLoc<=this.prev&&n.call(N,"finallyLoc")&&this.prev=0;--P){var M=this.tryEntries[P];if(M.finallyLoc===I)return this.complete(M.completion,M.afterLoc),w(M),d}},catch:function(I){for(var P=this.tryEntries.length-1;P>=0;--P){var M=this.tryEntries[P];if(M.tryLoc===I){var N=M.completion;if(N.type==="throw"){var T=N.arg;w(M);}return T}}throw new Error("illegal catch attempt")},delegateYield:function(I,P,M){return this.delegate={iterator:R(I),resultName:P,nextLoc:M},this.method==="next"&&(this.arg=void 0),d}},e}function mp(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 iC(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){mp(i,r,o,a,s,"next",l);}function s(l){mp(i,r,o,a,s,"throw",l);}a(void 0);})}}var fs=ee({},v0__namespace),Vk=fs.version,Uk=fs.render,Gk=fs.unmountComponentAtNode,Wc;try{var Kk=Number((Vk||"").split(".")[0]);Kk>=18&&(Wc=fs.createRoot);}catch{}function hp(e){var t=fs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&at(t)==="object"&&(t.usingClientEntryPoint=e);}var Ll="__rc_react_root__";function Xk(e,t){hp(!0);var n=t[Ll]||Wc(t);hp(!1),n.render(e),t[Ll]=n;}function qk(e,t){Uk(e,t);}function Yk(e,t){if(Wc){Xk(e,t);return}qk(e,t);}function Zk(e){return Pf.apply(this,arguments)}function Pf(){return Pf=iC(Ua().mark(function e(t){return Ua().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Ll])===null||o===void 0||o.unmount(),delete t[Ll];}));case 1:case"end":return r.stop()}},e)})),Pf.apply(this,arguments)}function Qk(e){Gk(e);}function Jk(e){return Rf.apply(this,arguments)}function Rf(){return Rf=iC(Ua().mark(function e(t){return Ua().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Wc===void 0){r.next=2;break}return r.abrupt("return",Zk(t));case 2:Qk(t);case 3:case"end":return r.stop()}},e)})),Rf.apply(this,arguments)}function e4(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 qu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&e4(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function t4(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return qu(t)?t:qu(n)?n:qu(r)?r:null}const Vc="ant-wave-target";function Yu(e){return Number.isNaN(e)?0:e}const n4=e=>{const{className:t,target:n,component:r}=e,o=f__namespace.useRef(null),[i,a]=f__namespace.useState(null),[s,l]=f__namespace.useState([]),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[h,g]=f__namespace.useState(0),[v,p]=f__namespace.useState(0),[b,y]=f__namespace.useState(!1),C={left:c,top:d,width:h,height:v,borderRadius:s.map($=>`${$}px`).join(" ")};i&&(C["--wave-color"]=i);function E(){const $=getComputedStyle(n);a(t4(n));const x=$.position==="static",{borderLeftWidth:w,borderTopWidth:O}=$;u(x?n.offsetLeft:Yu(-parseFloat(w))),m(x?n.offsetTop:Yu(-parseFloat(O))),g(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:k,borderBottomLeftRadius:_,borderBottomRightRadius:I}=$;l([R,k,I,_].map(P=>Yu(parseFloat(P))));}if(f__namespace.useEffect(()=>{if(n){const $=pt(()=>{E(),y(!0);});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(E),x.observe(n)),()=>{pt.cancel($),x==null||x.disconnect();}}},[]),!b)return null;const S=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Vc));return f__namespace.createElement(Xr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,x)=>{var w;if(x.deadline||x.propertyName==="opacity"){const O=(w=o.current)===null||w===void 0?void 0:w.parentElement;Jk(O).then(()=>{O==null||O.remove();});}return !1}},$=>{let{className:x}=$;return f__namespace.createElement("div",{ref:o,className:F(t,{"wave-quick":S},x),style:C})})},r4=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),Yk(f__namespace.createElement(n4,Object.assign({},t,{target:e})),o);},o4=r4;function i4(e,t,n){const{wave:r}=f__namespace.useContext(Je),[,o,i]=Kr(),a=Nn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Vc}`)||u,{showEffect:m}=r||{};(m||o4)(d,{className:t,token:o,component:n,event:c,hashId:i});}),s=f__namespace.useRef();return c=>{pt.cancel(s.current),s.current=pt(()=>{a(c);});}}const a4=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext(Je),i=f.useRef(null),a=o("wave"),[,s]=Wk(a),l=i4(i,F(a,s),r);if(f.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const d=m=>{!Jm(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(m);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!f.isValidElement(t))return t??null;const c=Ko(t)?xn(t.ref,i):i;return yn(t,{ref:c})},ms=a4,s4=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=F(`${i}-icon`,n);return f.createElement("span",{ref:t,className:a,style:r},o)}),aC=s4;var l4={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 c4=l4;var u4=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:c4}))};const fh=f__namespace.forwardRef(u4),gp=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=F(`${n}-loading-icon`,r);return f.createElement(aC,{prefixCls:n,className:a,style:o,ref:t},f.createElement(fh,{className:i}))}),Zu=()=>({width:0,opacity:0,transform:"scale(0)"}),Qu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),d4=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?f.createElement(gp,{prefixCls:t,className:o,style:i}):f.createElement(Xr,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Zu,onAppearActive:Qu,onEnterStart:Zu,onEnterActive:Qu,onLeaveStart:Qu,onLeaveActive:Zu},(s,l)=>{let{className:c,style:u}=s;return f.createElement(gp,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},f4=d4;var m4=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(Je),{prefixCls:r,size:o,className:i}=e,a=m4(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Kr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=F(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return f__namespace.createElement(sC.Provider,{value:o},f__namespace.createElement("div",Object.assign({},a,{className:u})))},g4=h4,vp=/^[\u4e00-\u9fa5]{2}$/,_f=vp.test.bind(vp);function pp(e){return typeof e=="string"}function Ju(e){return e==="text"||e==="link"}function v4(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&pp(e.type)&&_f(e.props.children)?yn(e,{children:e.props.children.split("").join(n)}):pp(e)?_f(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):P1(e)?f.createElement("span",null,e):e}function p4(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=>v4(o,t))}function b4(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 y4(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Uc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return {[r]:Object.assign(Object.assign({},b4(e,r,t)),y4(n,r,t))}}function C4(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function S4(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 w4(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},C4(e,t)),S4(e.componentCls,t))}}const bp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),x4=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,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},bp(`${t}-primary`,o),bp(`${t}-danger`,i)]}},$4=x4,E4=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,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},jo(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:'""'}}}}}}},Wr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),O4=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),I4=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),P4=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Ga=(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"},Wr(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),mh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},P4(e))}),lC=e=>Object.assign({},mh(e)),Dl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),cC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lC(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Wr(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Ga(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},Wr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ga(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),mh(e))}),R4=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lC(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Wr(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Ga(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}`},Wr(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Ga(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mh(e))}),_4=e=>Object.assign(Object.assign({},cC(e)),{borderStyle:"dashed"}),T4=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Wr(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),Dl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Wr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Dl(e))}),M4=e=>Object.assign(Object.assign(Object.assign({},Wr(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Dl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Dl(e)),Wr(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),N4=e=>{const{componentCls:t}=e;return {[`${t}-default`]:cC(e),[`${t}-primary`]:R4(e),[`${t}-dashed`]:_4(e),[`${t}-link`]:T4(e),[`${t}-text`]:M4(e),[`${t}-ghost`]:Ga(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},hh=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,m=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${m}`]:{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}`]:O4(e)},{[`${n}${n}-round${t}`]:I4(e)}]},k4=e=>hh(e),A4=e=>{const t=ut(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return hh(t,`${e.componentCls}-sm`)},L4=e=>{const t=ut(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return hh(t,`${e.componentCls}-lg`)},D4=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},z4=Bt("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=ut(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [E4(r),A4(r),k4(r),L4(r),D4(r),N4(r),$4(r),Uc(e),w4(e)]});var j4=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{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:m,rootClassName:h,children:g,icon:v,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:C,style:E={}}=e,S=j4(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:x,direction:w,button:O}=f.useContext(Je),R=$("btn",i),[k,_]=z4(R),I=f.useContext(_r),P=d??I,M=f.useContext(sC),N=f.useMemo(()=>B4(o),[o]),[T,L]=f.useState(N.loading),[z,H]=f.useState(!1),B=xn(t,f.createRef()),V=f.Children.count(g)===1&&!v&&!Ju(a);f.useEffect(()=>{let fe=null;N.delay>0?fe=setTimeout(()=>{fe=null,L(!0);},N.delay):L(N.loading);function be(){fe&&(clearTimeout(fe),fe=null);}return be},[N]),f.useEffect(()=>{if(!B||!B.current||x===!1)return;const fe=B.current.textContent;V&&_f(fe)?z||H(!0):z&&H(!1);},[B]);const j=fe=>{const{onClick:be}=e;if(T||P){fe.preventDefault();return}be==null||be(fe);},K=x!==!1,{compactSize:q,compactItemClassnames:G}=Ji(R,w),U={large:"lg",small:"sm",middle:void 0},Y=Wn(fe=>{var be,Re;return (Re=(be=c??q)!==null&&be!==void 0?be:M)!==null&&Re!==void 0?Re:fe}),oe=Y&&U[Y]||"",ue=T?"loading":v,he=Cn(S,["navigate"]),re=F(R,_,{[`${R}-${l}`]:l!=="default"&&l,[`${R}-${a}`]:a,[`${R}-${oe}`]:oe,[`${R}-icon-only`]:!g&&g!==0&&!!ue,[`${R}-background-ghost`]:p&&!Ju(a),[`${R}-loading`]:T,[`${R}-two-chinese-chars`]:z&&K&&!T,[`${R}-block`]:b,[`${R}-dangerous`]:!!s,[`${R}-rtl`]:w==="rtl"},G,m,h,O==null?void 0:O.className),ie=Object.assign(Object.assign({},O==null?void 0:O.style),E),ce=F(C==null?void 0:C.icon,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.icon),X=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=O==null?void 0:O.styles)===null||r===void 0?void 0:r.icon)||{}),ne=v&&!T?f.createElement(aC,{prefixCls:R,className:ce,style:X},v):f.createElement(f4,{existIcon:!!v,prefixCls:R,loading:!!T}),J=g||g===0?p4(g,V&&K):null;if(he.href!==void 0)return k(f.createElement("a",Object.assign({},he,{className:F(re,{[`${R}-disabled`]:P}),style:ie,onClick:j,ref:B}),ne,J));let de=f.createElement("button",Object.assign({},S,{type:y,className:re,style:ie,onClick:j,disabled:P,ref:B}),ne,J);return Ju(a)||(de=f.createElement(ms,{component:"Button",disabled:!!T},de)),k(de)},gh=f.forwardRef(H4);gh.Group=g4;gh.__ANT_BUTTON=!0;const Xt=gh;function yp(e){return !!(e&&e.then)}const F4=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=f__namespace.useRef(!1),m=f__namespace.useRef(null),[h,g]=To(!1),v=function(){i==null||i.apply(void 0,arguments);};f__namespace.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{yp(y)&&(g(!0),y.then(function(){g(!1,!0),v.apply(void 0,arguments),d.current=!1;},C=>{if(g(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(C)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){v();return}let C;if(s){if(C=u(y),c&&!yp(C)){d.current=!1,v(y);return}}else if(u.length)C=u(i),d.current=!1;else if(C=u(),!C){v();return}p(C);};return f__namespace.createElement(Xt,Object.assign({},uC(t),{onClick:b,loading:h,prefixCls:r},o,{ref:m}),n)},W4=F4,V4=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},dC=Bt("Popconfirm",e=>V4(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var U4=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(tC,null),showCancel:u=!0,close:d,onConfirm:m,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=f__namespace.useContext(Je),[p]=Zi("Popconfirm",Br.Popconfirm),b=ki(o),y=ki(i);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:g},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:F(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(Xt,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),f__namespace.createElement(W4,{buttonProps:Object.assign(Object.assign({size:"small"},uC(l)),n),actionFn:m,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},G4=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=U4(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f__namespace.useContext(Je),s=a("popconfirm",t),[l]=dC(s);return l(f__namespace.createElement(rC,{placement:n,className:F(s,r),style:o,content:f__namespace.createElement(fC,Object.assign({prefixCls:s},i))}))},K4=G4;var X4=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(tC,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=X4(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=f__namespace.useContext(Je),[h,g]=Dt(!1,{value:e.open,defaultValue:e.defaultOpen}),v=(w,O)=>{g(w,!0),u==null||u(w),c==null||c(w,O);},p=w=>{v(!1,w);},b=w=>{var O;return (O=e.onConfirm)===null||O===void 0?void 0:O.call(globalThis,w)},y=w=>{var O;v(!1,w),(O=e.onCancel)===null||O===void 0||O.call(globalThis,w);},C=w=>{w.keyCode===le.ESC&&h&&v(!1,w);},E=w=>{const{disabled:O=!1}=e;O||v(w);},S=m("popconfirm",n),$=F(S,l),[x]=dC(S);return x(f__namespace.createElement(Fc,Object.assign({},Cn(d,["title"]),{trigger:o,placement:r,onOpenChange:E,open:h,ref:t,overlayClassName:$,content:f__namespace.createElement(fC,Object.assign({okType:i,icon:a},e,{prefixCls:S,close:p,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),yn(s,{onKeyDown:w=>{var O,R;f__namespace.isValidElement(s)&&((R=s==null?void 0:(O=s.props).onKeyDown)===null||R===void 0||R.call(O,w)),C(w);}})))});mC._InternalPanelDoNotUseOrYouWillBeFired=K4;const Cp=mC;var q4={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 Y4=q4;var Z4=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:Y4}))};const vh=f__namespace.forwardRef(Z4);var Q4={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 J4=Q4;var eA=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:J4}))};const tA=f__namespace.forwardRef(eA);function Tf(){return typeof BigInt=="function"}function ko(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 ph(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Ka(e){var t=String(e);if(ph(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(".")&&bh(t)?t.length-t.indexOf(".")-1:0}function Gc(e){var t=String(e);if(ph(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Tf()?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()?"":Gc(this.number):this.origin}}]),e}(),rA=function(){function e(t){if(Sn(this,e),Q(this,"origin",""),Q(this,"negative",void 0),Q(this,"integer",void 0),Q(this,"decimal",void 0),Q(this,"decimalLen",void 0),Q(this,"empty",void 0),Q(this,"nan",void 0),hC(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(ph(n)&&(n=Number(n)),n=typeof n=="string"?n:Gc(n),bh(n)){var r=ko(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 wn(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=ko(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()?"":ko("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function lr(e){return Tf()?new rA(e):new nA(e)}function sl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ko(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=lr(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return sl(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)}function oi(e){return !!(e.addonBefore||e.addonAfter)}function ed(e){return !!(e.prefix||e.suffix||e.allowClear)}function Oa(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 gC(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 Mf(e){return typeof e>"u"||e===null?"":String(e)}var yh=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,m=t.disabled,h=t.readOnly,g=t.focused,v=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,C=t.hidden,E=t.classes,S=t.classNames,$=t.dataAttrs,x=t.styles,w=t.components,O=(w==null?void 0:w.affixWrapper)||"span",R=(w==null?void 0:w.groupWrapper)||"span",k=(w==null?void 0:w.wrapper)||"span",_=(w==null?void 0:w.groupAddon)||"span",I=f.useRef(null),P=function(q){var G;(G=I.current)!==null&&G!==void 0&&G.contains(q.target)&&(v==null||v());},M=function(){var q;if(!p)return null;var G=!m&&!h&&b,U="".concat(i,"-clear-icon"),Y=at(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(ue){return ue.preventDefault()},className:F(U,(q={},Q(q,"".concat(U,"-hidden"),!G),Q(q,"".concat(U,"-has-suffix"),!!s),q)),role:"button",tabIndex:-1},Y)},N=f.cloneElement(o,{value:b,hidden:C,className:F((n=o.props)===null||n===void 0?void 0:n.className,!ed(t)&&!oi(t)&&u)||null,style:ee(ee({},(r=o.props)===null||r===void 0?void 0:r.style),!ed(t)&&!oi(t)?d:{})});if(ed(t)){var T,L="".concat(i,"-affix-wrapper"),z=F(L,(T={},Q(T,"".concat(L,"-disabled"),m),Q(T,"".concat(L,"-focused"),g),Q(T,"".concat(L,"-readonly"),h),Q(T,"".concat(L,"-input-with-clear-btn"),s&&p&&b),T),!oi(t)&&u,E==null?void 0:E.affixWrapper,S==null?void 0:S.affixWrapper),H=(s||p)&&f.createElement("span",{className:F("".concat(i,"-suffix"),S==null?void 0:S.suffix),style:x==null?void 0:x.suffix},M(),s);N=f.createElement(O,Oe({className:z,style:oi(t)?void 0:d,hidden:!oi(t)&&C,onClick:P},$==null?void 0:$.affixWrapper,{ref:I}),a&&f.createElement("span",{className:F("".concat(i,"-prefix"),S==null?void 0:S.prefix),style:x==null?void 0:x.prefix},a),f.cloneElement(o,{value:b,hidden:null}),H);}if(oi(t)){var W="".concat(i,"-group"),B="".concat(W,"-addon"),V=F("".concat(i,"-wrapper"),W,E==null?void 0:E.wrapper),j=F("".concat(i,"-group-wrapper"),u,E==null?void 0:E.group);return f.createElement(R,{className:j,style:d,hidden:C},f.createElement(k,{className:V},l&&f.createElement(_,{className:B},l),f.cloneElement(N,{hidden:null}),c&&f.createElement(_,{className:B},c)))}return N},oA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],iA=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,m=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,p=e.type,b=p===void 0?"text":p,y=e.classes,C=e.classNames,E=e.styles,S=et(e,oA),$=Dt(e.defaultValue,{value:e.value}),x=Z($,2),w=x[0],O=x[1],R=f.useState(!1),k=Z(R,2),_=k[0],I=k[1],P=f.useRef(null),M=function(j){P.current&&gC(P.current,j);};f.useImperativeHandle(t,function(){return {focus:M,blur:function(){var j;(j=P.current)===null||j===void 0||j.blur();},setSelectionRange:function(j,K,q){var G;(G=P.current)===null||G===void 0||G.setSelectionRange(j,K,q);},select:function(){var j;(j=P.current)===null||j===void 0||j.select();},input:P.current}}),f.useEffect(function(){I(function(V){return V&&u?!1:V});},[u]);var N=function(j){e.value===void 0&&O(j.target.value),P.current&&Oa(P.current,j,r);},T=function(j){a&&j.key==="Enter"&&a(j),s==null||s(j);},L=function(j){I(!0),o==null||o(j);},z=function(j){I(!1),i==null||i(j);},H=function(j){O(""),M(),P.current&&Oa(P.current,j,r);},W=function(){var j=Cn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",Oe({autoComplete:n},j,{onChange:N,onFocus:L,onBlur:z,onKeyDown:T,className:F(c,Q({},"".concat(c,"-disabled"),u),C==null?void 0:C.input),style:E==null?void 0:E.input,ref:P,size:d,type:b}))},B=function(){var j=Number(h)>0;if(g||v){var K=Mf(w),q=Qe(K).length,G=at(v)==="object"?v.formatter({value:K,count:q,maxLength:h}):"".concat(q).concat(j?" / ".concat(h):"");return f.createElement(f.Fragment,null,!!v&&f.createElement("span",{className:F("".concat(c,"-show-count-suffix"),Q({},"".concat(c,"-show-count-has-suffix"),!!g),C==null?void 0:C.count),style:ee({},E==null?void 0:E.count)},G),g)}return null};return f.createElement(yh,Oe({},S,{prefixCls:c,className:m,inputElement:W(),handleReset:H,value:Mf(w),focused:_,triggerFocus:M,suffix:B(),disabled:u,classes:y,classNames:C,styles:E}))});function aA(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],m=i.indexOf(d,c-1);m!==-1&&(u=m+1);}e.setSelectionRange(u,u);}catch(h){Rr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var sA=function(){var t=f.useState(!1),n=Z(t,2),r=n[0],o=n[1];return Wt(function(){o(Mc());},[]),r},lA=200,cA=600;function uA(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([]),c=f__namespace.useRef();c.current=a;var u=function(){clearTimeout(s.current);},d=function(C,E){C.preventDefault(),u(),c.current(E);function S(){c.current(E),s.current=setTimeout(S,lA);}s.current=setTimeout(S,cA);};f__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return pt.cancel(y)});}},[]);var m=sA();if(m)return null;var h="".concat(t,"-handler"),g=F(h,"".concat(h,"-up"),Q({},"".concat(h,"-up-disabled"),o)),v=F(h,"".concat(h,"-down"),Q({},"".concat(h,"-down-disabled"),i)),p=function(){return l.current.push(pt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return f__namespace.createElement("div",{className:"".concat(h,"-wrap")},f__namespace.createElement("span",Oe({},b,{onMouseDown:function(C){d(C,!0);},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",Oe({},b,{onMouseDown:function(C){d(C,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:v}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Sp(e){var t=typeof e=="number"?Gc(e):ko(e).fullStr,n=t.includes(".");return n?ko(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const dA=function(){var e=f.useRef(0),t=function(){pt.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=pt(function(){n();});}};var fA=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],mA=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],wp=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},xp=function(t){var n=lr(t);return n.isInvalidate()?null:n},hA=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,m=e.value,h=e.disabled,g=e.readOnly,v=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,C=y===void 0?!0:y,E=e.classNames,S=e.stringMode,$=e.parser,x=e.formatter,w=e.precision,O=e.decimalSeparator,R=e.onChange,k=e.onInput,_=e.onPressEnter,I=e.onStep,P=et(e,fA),M="".concat(o,"-input"),N=f__namespace.useRef(null),T=f__namespace.useState(!1),L=Z(T,2),z=L[0],H=L[1],W=f__namespace.useRef(!1),B=f__namespace.useRef(!1),V=f__namespace.useRef(!1),j=f__namespace.useState(function(){return lr(m??d)}),K=Z(j,2),q=K[0],G=K[1];function U(Pe){m===void 0&&G(Pe);}var Y=f__namespace.useCallback(function(Pe,me){if(!me)return w>=0?w:Math.max(Ka(Pe),Ka(u))},[w,u]),oe=f__namespace.useCallback(function(Pe){var me=String(Pe);if($)return $(me);var Se=me;return O&&(Se=Se.replace(O,".")),Se.replace(/[^\w.-]+/g,"")},[$,O]),ue=f__namespace.useRef(""),he=f__namespace.useCallback(function(Pe,me){if(x)return x(Pe,{userTyping:me,input:String(ue.current)});var Se=typeof Pe=="number"?Gc(Pe):Pe;if(!me){var te=Y(Se,me);if(bh(Se)&&(O||te>=0)){var ye=O||".";Se=sl(Se,ye,te);}}return Se},[x,Y,O]),re=f__namespace.useState(function(){var Pe=d??m;return q.isInvalidate()&&["string","number"].includes(at(Pe))?Number.isNaN(Pe)?"":Pe:he(q.toString(),!1)}),ie=Z(re,2),ce=ie[0],X=ie[1];ue.current=ce;function ne(Pe,me){X(he(Pe.isInvalidate()?Pe.toString(!1):Pe.toString(!me),me));}var J=f__namespace.useMemo(function(){return xp(l)},[l,w]),de=f__namespace.useMemo(function(){return xp(s)},[s,w]),fe=f__namespace.useMemo(function(){return !J||!q||q.isInvalidate()?!1:J.lessEquals(q)},[J,q]),be=f__namespace.useMemo(function(){return !de||!q||q.isInvalidate()?!1:q.lessEquals(de)},[de,q]),Re=aA(N.current,z),Be=Z(Re,2),_e=Be[0],ae=Be[1],ge=function(me){return J&&!me.lessEquals(J)?J:de&&!de.lessEquals(me)?de:null},pe=function(me){return !ge(me)},we=function(me,Se){var te=me,ye=pe(te)||te.isEmpty();if(!te.isEmpty()&&!Se&&(te=ge(te)||te,ye=!0),!g&&!h&&ye){var Te=te.toString(),Ye=Y(Te,Se);return Ye>=0&&(te=lr(sl(Te,".",Ye)),pe(te)||(te=lr(sl(Te,".",Ye,!0)))),te.equals(q)||(U(te),R==null||R(te.isEmpty()?null:wp(S,te)),m===void 0&&ne(te,Se)),te}return q},De=dA(),Ae=function Pe(me){if(_e(),ue.current=me,X(me),!B.current){var Se=oe(me),te=lr(Se);te.isNaN()||we(te,!0);}k==null||k(me),De(function(){var ye=me;$||(ye=me.replace(/。/g,".")),ye!==me&&Pe(ye);});},xe=function(){B.current=!0;},Ie=function(){B.current=!1,Ae(N.current.value);},Fe=function(me){Ae(me.target.value);},$e=function(me){var Se;if(!(me&&fe||!me&&be)){W.current=!1;var te=lr(V.current?Sp(u):u);me||(te=te.negate());var ye=(q||lr(0)).add(te.toString()),Te=we(ye,!1);I==null||I(wp(S,Te),{offset:V.current?Sp(u):u,type:me?"up":"down"}),(Se=N.current)===null||Se===void 0||Se.focus();}},Ne=function(me){var Se=lr(oe(ce)),te=Se;Se.isNaN()?te=q:te=we(Se,me),m!==void 0?ne(q,!1):te.isNaN()||ne(te,!1);},nt=function(){W.current=!0;},ct=function(me){var Se=me.key,te=me.shiftKey;W.current=!0,V.current=te,Se==="Enter"&&(B.current||(W.current=!1),Ne(!1),_==null||_(me)),b!==!1&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Se)&&($e(Se==="Up"||Se==="ArrowUp"),me.preventDefault());},qe=function(){W.current=!1,V.current=!1;},dt=function(){Ne(!1),H(!1),W.current=!1;};return Ei(function(){q.isInvalidate()||ne(q,!1);},[w]),Ei(function(){var Pe=lr(m);G(Pe);var me=lr(oe(ce));(!Pe.equals(me)||!W.current||x)&&ne(Pe,W.current);},[m]),Ei(function(){x&&ae();},[ce]),f__namespace.createElement("div",{className:F(o,E==null?void 0:E.input,i,(n={},Q(n,"".concat(o,"-focused"),z),Q(n,"".concat(o,"-disabled"),h),Q(n,"".concat(o,"-readonly"),g),Q(n,"".concat(o,"-not-a-number"),q.isNaN()),Q(n,"".concat(o,"-out-of-range"),!q.isInvalidate()&&!pe(q)),n)),style:a,onFocus:function(){H(!0);},onBlur:dt,onKeyDown:ct,onKeyUp:qe,onCompositionStart:xe,onCompositionEnd:Ie,onBeforeInput:nt},C&&f__namespace.createElement(uA,{prefixCls:o,upNode:v,downNode:p,upDisabled:fe,downDisabled:be,onStep:$e}),f__namespace.createElement("div",{className:"".concat(M,"-wrap")},f__namespace.createElement("input",Oe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:u},P,{ref:xn(N,t),className:M,value:ce,onChange:Fe,disabled:h,readOnly:g}))))}),vC=f__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,m=e.classNames,h=et(e,mA),g=f__namespace.useRef(null),v=function(b){g.current&&gC(g.current,b);};return f__namespace.createElement(yh,{inputElement:f__namespace.createElement(hA,Oe({prefixCls:o,disabled:n,classNames:m,ref:xn(g,t)},h)),className:d,triggerFocus:v,prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});vC.displayName="InputNumber";function dr(e,t,n){return F({[`${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 hs=(e,t)=>t||e,nr=f__namespace.createContext({}),Xa=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(nr),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(nr.Provider,{value:i},t)},pC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),gs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),zl=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Ch=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},gs(ut(e,{inputBorderHoverColor:e.colorBorder})))}),bC=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}},Sh=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Kc=(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({},zl(ut(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({},zl(ut(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},vs=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}`},pC(e.colorTextPlaceholder)),{"&:hover":Object.assign({},gs(e)),"&:focus, &-focused":Object.assign({},zl(e)),"&-disabled, &[disabled]":Object.assign({},Ch(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({},bC(e)),"&-sm":Object.assign({},Sh(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),yC=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({},bC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Sh(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"},ff()),{[`${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, & > ${t}-number-affix-wrapper, & > ${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}}}})}},gA=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({},Rt(e)),vs(e)),Kc(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"}})}},vA=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`}}}},pA=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({},vs(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},gs(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":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),vA(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Kc(e,`${t}-affix-wrapper`))}},bA=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Rt(e)),yC(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius: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({},Ch(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}}}})}},yA=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 wh(e){return ut(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 CA=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"}}}}}},xh=Bt("Input",e=>{const t=wh(e);return [gA(t),CA(t),pA(t),bA(t),yA(t),Uc(t)]}),$p=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},SA=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:m,colorPrimary:h,inputPaddingHorizontal:g,inputPaddingVertical:v,colorBgContainer:p,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:C,controlWidth:E,handleVisible:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),vs(e)),Kc(e,t)),{display:"inline-block",width:E,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:C,[`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({},gs(e)),"&-focused":Object.assign({},zl(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Rt(e)),yC(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},Ch(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{width:"100%",padding:`${v}px ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),pC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:S===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${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 ${m} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Go()),{color:d,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i}},$p(e,"lg")),$p(e,"sm")),{"&-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}}}]},wA=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},vs(e)),Kc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},gs(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:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},xA=Bt("InputNumber",e=>{const t=wh(e);return [SA(t),wA(t),Uc(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var $A=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(Je),o=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:m,bordered:h=!0,readOnly:g,status:v,controls:p}=e,b=$A(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[C,E]=xA(y),{compactSize:S,compactItemClassnames:$}=Ji(y,r);let x=f__namespace.createElement(tA,{className:`${y}-handler-up-inner`}),w=f__namespace.createElement(vh,{className:`${y}-handler-down-inner`});const O=typeof p=="boolean"?p:void 0;typeof p=="object"&&(x=typeof p.upIcon>"u"?x:f__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),w=typeof p.downIcon>"u"?w:f__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:R,status:k,isFormItemInput:_,feedbackIcon:I}=f__namespace.useContext(nr),P=hs(k,v),M=Wn(W=>{var B;return (B=s??S)!==null&&B!==void 0?B:W}),N=f__namespace.useContext(_r),T=l??N,L=F({[`${y}-lg`]:M==="large",[`${y}-sm`]:M==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!h,[`${y}-in-form-item`]:_},dr(y,P),$,E),z=`${y}-group`,H=f__namespace.createElement(vC,Object.assign({ref:o,disabled:T,className:F(i,a),upHandler:x,downHandler:w,prefixCls:y,readOnly:g,controls:O,prefix:m,suffix:R&&I,addonAfter:d&&f__namespace.createElement(Mi,null,f__namespace.createElement(Xa,{override:!0,status:!0},d)),addonBefore:u&&f__namespace.createElement(Mi,null,f__namespace.createElement(Xa,{override:!0,status:!0},u)),classNames:{input:L},classes:{affixWrapper:F(dr(`${y}-affix-wrapper`,P,R),{[`${y}-affix-wrapper-sm`]:M==="small",[`${y}-affix-wrapper-lg`]:M==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!h},E),wrapper:F({[`${z}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:T},E),group:F({[`${y}-group-wrapper-sm`]:M==="small",[`${y}-group-wrapper-lg`]:M==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},dr(`${y}-group-wrapper`,P,R),E)}},b));return C(H)}),SC=CC,EA=e=>f__namespace.createElement(Qm,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(CC,Object.assign({},e)));SC._InternalPanelDoNotUseOrYouWillBeFired=EA;const Nf=SC,OA=()=>er()&&window.document.documentElement;let Us;const IA=()=>{if(!OA())return !1;if(Us!==void 0)return Us;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));const t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),Us=e.scrollHeight===1,document.body.removeChild(t),Us},PA=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(IA());},[]),e},wC=f.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),RA=wC.Provider,_A=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:d,supportFlexGap:m}=f__namespace.useContext(wC);let h={};return m||(n==="vertical"?r{var n,r;const{getPrefixCls:o,space:i,direction:a}=f__namespace.useContext(Je),{size:s=(i==null?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:m="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:b,styles:y}=e,C=MA(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),E=PA(),[S,$]=f__namespace.useMemo(()=>(Array.isArray(s)?s:[s,s]).map(z=>kA(z)),[s]),x=tr(d,{keepEmpty:!0}),w=l===void 0&&m==="horizontal"?"center":l,O=o("space",h),[R,k]=R1(O),_=F(O,i==null?void 0:i.className,k,`${O}-${m}`,{[`${O}-rtl`]:a==="rtl",[`${O}-align-${w}`]:w},c,u),I=F(`${O}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item),P=a==="rtl"?"marginLeft":"marginRight";let M=0;const N=x.map((z,H)=>{var W,B;z!=null&&(M=H);const V=z&&z.key||`${I}-${H}`;return f__namespace.createElement(TA,{className:I,key:V,direction:m,index:H,marginDirection:P,split:g,wrap:p,style:(W=y==null?void 0:y.item)!==null&&W!==void 0?W:(B=i==null?void 0:i.styles)===null||B===void 0?void 0:B.item},z)}),T=f__namespace.useMemo(()=>({horizontalSize:S,verticalSize:$,latestIndex:M,supportFlexGap:E}),[S,$,M,E]);if(x.length===0)return null;const L={};return p&&(L.flexWrap="wrap",E||(L.marginBottom=-$)),E&&(L.columnGap=S,L.rowGap=$),R(f__namespace.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},L),i==null?void 0:i.style),v)},C),f__namespace.createElement(RA,{value:T},N)))}),xC=AA;xC.Compact=SN;const Xc=xC;var LA={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const DA=LA;var zA=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:DA}))};const qc=f__namespace.forwardRef(zA);function jA(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function BA(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.createElement(qc,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!jA(e,t,o))return [!1,null];const a=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(a):a]}function HA(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Gs=(e,t,n)=>{const r=HA(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},FA=e=>Il(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"}}}}),WA=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},Rt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart: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}}},$C=Bt("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=ut(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [WA(i),FA(i),Gs(i,"success","Success"),Gs(i,"processing","Info"),Gs(i,"error","Error"),Gs(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var VA=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=VA(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(Je),l=h=>{o==null||o(!r),i==null||i(h);},c=s("tag",t),[u,d]=$C(c),m=F(c,`${c}-checkable`,{[`${c}-checkable-checked`]:r},n,d);return u(f__namespace.createElement("span",Object.assign({},a,{className:m,onClick:l})))},GA=UA;var KA=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,bordered:m=!0}=e,h=KA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:v,tag:p}=f__namespace.useContext(Je),[b,y]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in h&&y(h.visible);},[h.visible]);const C=Dc(l)||c3(l),E=Object.assign(Object.assign({backgroundColor:l&&!C?l:void 0},p==null?void 0:p.style),i),S=g("tag",n),[$,x]=$C(S),w=F(S,p==null?void 0:p.className,{[`${S}-${l}`]:C,[`${S}-has-color`]:l&&!C,[`${S}-hidden`]:!b,[`${S}-rtl`]:v==="rtl",[`${S}-borderless`]:!m},r,o,x),O=M=>{M.stopPropagation(),c==null||c(M),!M.defaultPrevented&&y(!1);},[,R]=BA(d,u,M=>M===null?f__namespace.createElement(qc,{className:`${S}-close-icon`,onClick:O}):f__namespace.createElement("span",{className:`${S}-close-icon`,onClick:O},M),null,!1),k=typeof h.onClick=="function"||a&&a.type==="a",_=s||null,I=_?f__namespace.createElement(f__namespace.Fragment,null,_,a&&f__namespace.createElement("span",null,a)):a,P=f__namespace.createElement("span",Object.assign({},h,{ref:t,className:w,style:E}),I,R);return $(k?f__namespace.createElement(ms,{component:"Tag"},P):P)},EC=f__namespace.forwardRef(XA);EC.CheckableTag=GA;const ro=EC;var qA={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 YA=qA;var ZA=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:YA}))};const $h=f__namespace.forwardRef(ZA);var QA={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 JA=QA;var eL=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:JA}))};const tL=f__namespace.forwardRef(eL),Yc=f.createContext(null);var OC=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:F(n,a&&"".concat(n,"-active"),r),ref:t},l)}),nL=["key","forceRender","style","className"];function rL(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=f__namespace.useContext(Yc),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:F("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:F("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Q({},"".concat(s,"-content-animated"),c))},l.map(function(d){var m=d.key,h=d.forceRender,g=d.style,v=d.className,p=et(d,nL),b=m===n;return f__namespace.createElement(Xr,Oe({key:m,visible:b,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,C){var E=y.style,S=y.className;return f__namespace.createElement(OC,Oe({},p,{prefixCls:u,id:t,tabKey:m,animated:c,active:b,style:ee(ee({},g),E),className:F(v,S),ref:C}))})})))}var Ep={width:0,height:0,left:0,top:0};function oL(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)||Ep,a=i.left+i.width,s=0;sP?(_=R,$.current="x"):(_=k,$.current="y"),t(-_,-_)&&O.preventDefault();}var w=f.useRef(null);w.current={onTouchStart:C,onTouchMove:E,onTouchEnd:S,onWheel:x},f__namespace.useEffect(function(){function O(I){w.current.onTouchStart(I);}function R(I){w.current.onTouchMove(I);}function k(I){w.current.onTouchEnd(I);}function _(I){w.current.onWheel(I);}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",k,{passive:!1}),e.current.addEventListener("touchstart",O,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",k);}},[]);}function IC(e){var t=f.useState(0),n=Z(t,2),r=n[0],o=n[1],i=f.useRef(0),a=f.useRef();return a.current=e,Ei(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 sL(e){var t=f.useRef([]),n=f.useState({}),r=Z(n,2),o=r[1],i=f.useRef(typeof e=="function"?e():e),a=IC(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 Rp={width:0,height:0,left:0,top:0,right:0};function lL(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,m;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",m=Math.abs(n)):(u="height",d="top",m=-n),f.useMemo(function(){if(!s.length)return [0,0];for(var h=s.length,g=h,v=0;vm+t){g=v-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var C=e.get(s[y].key)||Rp;if(C[d]=g?[0,0]:[b,g]},[e,t,r,o,i,m,l,s.map(function(h){return h.key}).join("_"),c])}function _p(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var cL="TABS_DQ";function PC(e){return String(e).replace(/"/g,cL)}function RC(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function uL(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const _C=f__namespace.forwardRef(uL);var Tp=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return at(o)==="object"&&!f__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),dL=le.ESC,fL=le.TAB;function mL(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,m;(d=n.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.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 dL:s();break;case fL:{var m=!1;a.current||(m=l()),m?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&pt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var hL=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=xn(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:Ko(i)?a:void 0}))}),ii={adjustX:1,adjustY:1},ai=[0,0],gL={topLeft:{points:["bl","tl"],overflow:ii,offset:[0,-4],targetOffset:ai},top:{points:["bc","tc"],overflow:ii,offset:[0,-4],targetOffset:ai},topRight:{points:["br","tr"],overflow:ii,offset:[0,-4],targetOffset:ai},bottomLeft:{points:["tl","bl"],overflow:ii,offset:[0,4],targetOffset:ai},bottom:{points:["tc","bc"],overflow:ii,offset:[0,4],targetOffset:ai},bottomRight:{points:["tr","br"],overflow:ii,offset:[0,4],targetOffset:ai}},vL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function pL(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,m=e.placements,h=m===void 0?gL:m,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,E=e.trigger,S=E===void 0?["hover"]:E,$=e.autoFocus,x=e.overlay,w=e.children,O=e.onVisibleChange,R=et(e,vL),k=f.useState(),_=Z(k,2),I=_[0],P=_[1],M="visible"in e?C:I,N=f.useRef(null),T=f.useRef(null),L=f.useRef(null);f.useImperativeHandle(t,function(){return N.current});var z=function(U){P(U),O==null||O(U);};mL({visible:M,triggerRef:L,onVisibleChange:z,autoFocus:$,overlayRef:T});var H=function(U){var Y=e.onOverlayClick;P(!1),Y&&Y(U);},W=function(){return f.createElement(hL,{ref:T,overlay:x,prefixCls:a,arrow:o})},B=function(){return typeof x=="function"?W:W()},V=function(){var U=e.minOverlayWidthMatchTrigger,Y=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?U:!Y},j=function(){var U=e.openClassName;return U!==void 0?U:"".concat(a,"-open")},K=f.cloneElement(w,{className:F((n=w.props)===null||n===void 0?void 0:n.className,M&&j()),ref:Ko(w)?xn(L,w.ref):void 0}),q=p;return !q&&S.indexOf("contextMenu")!==-1&&(q=["click"]),f.createElement(Nc,Oe({builtinPlacements:h},R,{prefixCls:a,ref:N,popupClassName:F(b,Q({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:S,showAction:v,hideAction:q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:M,stretch:V()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:H,getPopupContainer:g}),K)}const TC=f.forwardRef(pL);var bL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],si=void 0;function yL(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,m=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,b=et(e,bL),y=a&&!h;function C(w){l(c,w);}f__namespace.useEffect(function(){return function(){C(null);}},[]);var E=i&&o!==si?i(o):m,S;r||(S={opacity:y?0:1,height:y?0:si,overflowY:y?"hidden":si,order:a?g:si,pointerEvents:y?"none":si,position:y?"absolute":si});var $={};y&&($["aria-hidden"]=!0);var x=f__namespace.createElement(p,Oe({className:F(!r&&n,u),style:ee(ee({},S),d)},$,b,{ref:t}),E);return a&&(x=f__namespace.createElement(Or,{onResize:function(O){var R=O.offsetWidth;C(R);},disabled:s},x)),x}var Ia=f__namespace.forwardRef(yL);Ia.displayName="Item";function CL(e){if(typeof MessageChannel>"u")pt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function SL(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],CL(function(){v0.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function ua(e,t){var n=f__namespace.useState(t),r=Z(n,2),o=r[0],i=r[1],a=Nn(function(s){e(function(){i(s);});});return [o,a]}var jl=f.createContext(null),wL=["component"],xL=["className"],$L=["className"],EL=function(t,n){var r=f__namespace.useContext(jl);if(!r){var o=t.component,i=o===void 0?"div":o,a=et(t,wL);return f__namespace.createElement(i,Oe({},a,{ref:n}))}var s=r.className,l=et(r,xL),c=t.className,u=et(t,$L);return f__namespace.createElement(jl.Provider,{value:null},f__namespace.createElement(Ia,Oe({ref:n,className:F(s,c)},l,u)))},MC=f__namespace.forwardRef(EL);MC.displayName="RawItem";var OL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],NC="responsive",kC="invalidate";function IL(e){return "+ ".concat(e.length," ...")}function PL(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,m=e.style,h=e.className,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,E=e.itemComponent,S=e.onVisibleChange,$=et(e,OL),x=d==="full",w=SL(),O=ua(w,null),R=Z(O,2),k=R[0],_=R[1],I=k||0,P=ua(w,new Map),M=Z(P,2),N=M[0],T=M[1],L=ua(w,0),z=Z(L,2),H=z[0],W=z[1],B=ua(w,0),V=Z(B,2),j=V[0],K=V[1],q=ua(w,0),G=Z(q,2),U=G[0],Y=G[1],oe=f.useState(null),ue=Z(oe,2),he=ue[0],re=ue[1],ie=f.useState(null),ce=Z(ie,2),X=ce[0],ne=ce[1],J=f__namespace.useMemo(function(){return X===null&&x?Number.MAX_SAFE_INTEGER:X||0},[X,k]),de=f.useState(!1),fe=Z(de,2),be=fe[0],Re=fe[1],Be="".concat(r,"-item"),_e=Math.max(H,j),ae=g===NC,ge=i.length&&ae,pe=g===kC,we=ge||typeof g=="number"&&i.length>g,De=f.useMemo(function(){var Le=i;return ge?k===null&&x?Le=i:Le=i.slice(0,Math.min(i.length,I/u)):typeof g=="number"&&(Le=i.slice(0,g)),Le},[i,u,k,g,ge]),Ae=f.useMemo(function(){return ge?i.slice(J+1):i.slice(De.length)},[i,De,ge,J]),xe=f.useCallback(function(Le,ve){var Ee;return typeof l=="function"?l(Le):(Ee=l&&(Le==null?void 0:Le[l]))!==null&&Ee!==void 0?Ee:ve},[l]),Ie=f.useCallback(a||function(Le){return Le},[a]);function Fe(Le,ve,Ee){X===Le&&(ve===void 0||ve===he)||(ne(Le),Ee||(Re(LeI){Fe(Me-1,Le-ke-U+j);break}}b&&qe(0)+U>I&&re(null);}},[I,N,j,U,xe,De]);var dt=be&&!!Ae.length,Pe={};he!==null&&ge&&(Pe={position:"absolute",left:he,top:0});var me={prefixCls:Be,responsive:ge,component:E,invalidate:pe},Se=s?function(Le,ve){var Ee=xe(Le,ve);return f__namespace.createElement(jl.Provider,{key:Ee,value:ee(ee({},me),{},{order:ve,item:Le,itemKey:Ee,registerSize:Ne,display:ve<=J})},s(Le,ve))}:function(Le,ve){var Ee=xe(Le,ve);return f__namespace.createElement(Ia,Oe({},me,{order:ve,key:Ee,item:Le,renderItem:Ie,itemKey:Ee,registerSize:Ne,display:ve<=J}))},te,ye={order:dt?J:Number.MAX_SAFE_INTEGER,className:"".concat(Be,"-rest"),registerSize:nt,display:dt};if(p)p&&(te=f__namespace.createElement(jl.Provider,{value:ee(ee({},me),ye)},p(Ae)));else {var Te=v||IL;te=f__namespace.createElement(Ia,Oe({},me,ye),typeof Te=="function"?Te(Ae):Te);}var Ye=f__namespace.createElement(C,Oe({className:F(!pe&&r,h),style:m,ref:t},$),De.map(Se),we?te:null,b&&f__namespace.createElement(Ia,Oe({},me,{responsive:ae,responsiveDisabled:!ge,order:J,className:"".concat(Be,"-suffix"),registerSize:ct,display:!0,style:Pe}),b));return ae&&(Ye=f__namespace.createElement(Or,{onResize:$e,disabled:!ge},Ye)),Ye}var xr=f__namespace.forwardRef(PL);xr.displayName="Overflow";xr.Item=MC;xr.RESPONSIVE=NC;xr.INVALIDATE=kC;var AC=f__namespace.createContext(null);function Eh(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function LC(e){var t=f__namespace.useContext(AC);return Eh(t,e)}var RL=["children","locked"],fr=f__namespace.createContext(null);function _L(e,t){var n=ee({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function qa(e){var t=e.children,n=e.locked,r=et(e,RL),o=f__namespace.useContext(fr),i=as(function(){return _L(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!Ic(a[1],s[1],!0))});return f__namespace.createElement(fr.Provider,{value:i},t)}var TL=[],DC=f__namespace.createContext(null);function Zc(){return f__namespace.useContext(DC)}var zC=f__namespace.createContext(TL);function ea(e){var t=f__namespace.useContext(zC);return f__namespace.useMemo(function(){return e!==void 0?[].concat(Qe(t),[e]):t},[t,e])}var jC=f__namespace.createContext(null),Oh=f__namespace.createContext({});function Mp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Jm(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 ML(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Qe(e.querySelectorAll("*")).filter(function(r){return Mp(r,t)});return Mp(e,t)&&n.unshift(e),n}var kf=le.LEFT,Af=le.RIGHT,Lf=le.UP,cl=le.DOWN,ul=le.ENTER,BC=le.ESC,da=le.HOME,fa=le.END,Np=[Lf,cl,kf,Af];function NL(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===ul)return {inlineTrigger:!0};var m=(o={},Q(o,Lf,l),Q(o,cl,c),o),h=(i={},Q(i,kf,n?c:l),Q(i,Af,n?l:c),Q(i,cl,u),Q(i,ul,u),i),g=(a={},Q(a,Lf,l),Q(a,cl,c),Q(a,ul,u),Q(a,BC,d),Q(a,kf,n?u:d),Q(a,Af,n?d:u),a),v={inline:m,horizontal:h,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},p=(s=v["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){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 kL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function AL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function HC(e,t){var n=ML(e,!0);return n.filter(function(r){return t.has(r)})}function kp(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=HC(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 LL(e,t,n,r,o,i,a,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var m=function(){pt.cancel(u.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(h){var g=h.which;if([].concat(Np,[ul,BC,da,fa]).includes(g)){var v,p,b,y=function(){v=new Set,p=new Map,b=new Map;var M=i();return M.forEach(function(N){var T=document.querySelector("[data-menu-id='".concat(Eh(r,N),"']"));T&&(v.add(T),b.set(T,N),p.set(N,T));}),v};y();var C=p.get(t),E=AL(C,v),S=b.get(E),$=NL(e,a(S,!0).length===1,n,g);if(!$&&g!==da&&g!==fa)return;(Np.includes(g)||[da,fa].includes(g))&&h.preventDefault();var x=function(M){if(M){var N=M,T=M.querySelector("a");T!=null&&T.getAttribute("href")&&(N=T);var L=b.get(M);s(L),m(),u.current=pt(function(){d.current===L&&N.focus();});}};if([da,fa].includes(g)||$.sibling||!E){var w;!E||e==="inline"?w=o.current:w=kL(E);var O,R=HC(w,v);g===da?O=R[0]:g===fa?O=R[R.length-1]:O=kp(w,v,E,$.offset),x(O);}else if($.inlineTrigger)l(S);else if($.offset>0)l(S,!0),m(),u.current=pt(function(){y();var P=E.getAttribute("aria-controls"),M=document.getElementById(P),N=kp(M,v);x(N);},5);else if($.offset<0){var k=a(S,!0),_=k[k.length-2],I=p.get(_);l(_,!1),x(I);}}c==null||c(h);}}function DL(e){Promise.resolve().then(e);}var Ih="__RC_UTIL_PATH_SPLIT__",Ap=function(t){return t.join(Ih)},zL=function(t){return t.split(Ih)},Df="rc-menu-more";function jL(){var e=f__namespace.useState({}),t=Z(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),i=f__namespace.useState([]),a=Z(i,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},m=f.useCallback(function(C,E){var S=Ap(E);o.current.set(S,C),r.current.set(C,S),c.current+=1;var $=c.current;DL(function(){$===c.current&&d();});},[]),h=f.useCallback(function(C,E){var S=Ap(E);o.current.delete(S),r.current.delete(C);},[]),g=f.useCallback(function(C){l(C);},[]),v=f.useCallback(function(C,E){var S=r.current.get(C)||"",$=zL(S);return E&&s.includes($[0])&&$.unshift(Df),$},[s]),p=f.useCallback(function(C,E){return C.some(function(S){var $=v(S,!0);return $.includes(E)})},[v]),b=function(){var E=Qe(r.current.keys());return s.length&&E.push(Df),E},y=f.useCallback(function(C){var E="".concat(r.current.get(C)).concat(Ih),S=new Set;return Qe(o.current.keys()).forEach(function($){$.startsWith(E)&&S.add(o.current.get($));}),S},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:b,getSubPathKeys:y}}function ya(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;a1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(E){return !m.current&&!E&&p(!0),C==null?void 0:C(E)},v?null:f__namespace.createElement(qa,{mode:i,locked:!m.current},f__namespace.createElement(Xr,Oe({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var S=E.className,$=E.style;return f__namespace.createElement(Ph,{id:t,className:S,style:$},o)}))}var n5=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],r5=["active"],o5=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,m=t.popupClassName,h=t.popupOffset,g=t.onClick,v=t.onMouseEnter,p=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,C=t.onTitleMouseLeave,E=et(t,n5),S=LC(a),$=f__namespace.useContext(fr),x=$.prefixCls,w=$.mode,O=$.openKeys,R=$.disabled,k=$.overflowDisabled,_=$.activeKey,I=$.selectedKeys,P=$.itemIcon,M=$.expandIcon,N=$.onItemClick,T=$.onOpenChange,L=$.onActive,z=f__namespace.useContext(Oh),H=z._internalRenderSubMenuItem,W=f__namespace.useContext(jC),B=W.isSubPathKey,V=ea(),j="".concat(x,"-submenu"),K=R||s,q=f__namespace.useRef(),G=f__namespace.useRef(),U=u||P,Y=d||M,oe=O.includes(a),ue=!k&&oe,he=B(I,a),re=FC(a,K,y,C),ie=re.active,ce=et(re,r5),X=f__namespace.useState(!1),ne=Z(X,2),J=ne[0],de=ne[1],fe=function(Ne){K||de(Ne);},be=function(Ne){fe(!0),v==null||v({key:a,domEvent:Ne});},Re=function(Ne){fe(!1),p==null||p({key:a,domEvent:Ne});},Be=f__namespace.useMemo(function(){return ie||(w!=="inline"?J||B([_],a):!1)},[w,ie,_,J,a,B]),_e=WC(V.length),ae=function(Ne){K||(b==null||b({key:a,domEvent:Ne}),w==="inline"&&T(a,!oe));},ge=ya(function($e){g==null||g(Bl($e)),N($e);}),pe=function(Ne){w!=="inline"&&T(a,Ne);},we=function(){L(a);},De=S&&"".concat(S,"-popup"),Ae=f__namespace.createElement("div",Oe({role:"menuitem",style:_e,className:"".concat(j,"-title"),tabIndex:K?null:-1,ref:q,title:typeof i=="string"?i:null,"data-menu-id":k&&S?null:S,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":K,onClick:ae,onFocus:we},ce),i,f__namespace.createElement(VC,{icon:w!=="horizontal"?Y:null,props:ee(ee({},t),{},{isOpen:ue,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(j,"-arrow")}))),xe=f__namespace.useRef(w);if(w!=="inline"&&V.length>1?xe.current="vertical":xe.current=w,!k){var Ie=xe.current;Ae=f__namespace.createElement(e5,{mode:Ie,prefixCls:j,visible:!l&&ue&&w!=="inline",popupClassName:m,popupOffset:h,popup:f__namespace.createElement(qa,{mode:Ie==="horizontal"?"vertical":Ie},f__namespace.createElement(Ph,{id:De,ref:G},c)),disabled:K,onVisibleChange:pe},Ae);}var Fe=f__namespace.createElement(xr.Item,Oe({role:"none"},E,{component:"li",style:r,className:F(j,"".concat(j,"-").concat(w),o,(n={},Q(n,"".concat(j,"-open"),ue),Q(n,"".concat(j,"-active"),Be),Q(n,"".concat(j,"-selected"),he),Q(n,"".concat(j,"-disabled"),K),n)),onMouseEnter:be,onMouseLeave:Re}),Ae,!k&&f__namespace.createElement(t5,{id:De,open:ue,keyPath:V},c));return H&&(Fe=H(Fe,t,{selected:he,active:Be,open:ue,disabled:K})),f__namespace.createElement(qa,{onItemClick:ge,mode:w==="horizontal"?"vertical":w,itemIcon:U,expandIcon:Y},Fe)};function Qc(e){var t=e.eventKey,n=e.children,r=ea(t),o=Rh(n,r),i=Zc();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(o5,e,o),f__namespace.createElement(zC.Provider,{value:r},a)}var i5=["className","title","eventKey","children"],a5=["children"],s5=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=et(t,i5),a=f__namespace.useContext(fr),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",Oe({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:F(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 Jc(e){var t=e.children,n=et(e,a5),r=ea(n.eventKey),o=Rh(t,r),i=Zc();return i?o:f__namespace.createElement(s5,Cn(n,["warnKey"]),o)}function _h(e){var t=e.className,n=e.style,r=f__namespace.useContext(fr),o=r.prefixCls,i=Zc();return i?null:f__namespace.createElement("li",{className:F("".concat(o,"-item-divider"),t),style:n})}var l5=["label","children","key","type"];function zf(e){return (e||[]).map(function(t,n){if(t&&at(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=et(r,l5),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?f__namespace.createElement(Jc,Oe({key:c},l,{title:o}),zf(i)):f__namespace.createElement(Qc,Oe({key:c},l,{title:o}),zf(i)):s==="divider"?f__namespace.createElement(_h,Oe({key:c},l)):f__namespace.createElement(ps,Oe({key:c},l),o)}return null}).filter(function(t){return t})}function c5(e,t,n){var r=e;return t&&(r=zf(t)),Rh(r,n)}var u5=["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"],li=[],d5=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,m=o.items,h=o.children,g=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,C=o.disabled,E=o.disabledOverflow,S=o.subMenuOpenDelay,$=S===void 0?.1:S,x=o.subMenuCloseDelay,w=x===void 0?.1:x,O=o.forceSubMenuRender,R=o.defaultOpenKeys,k=o.openKeys,_=o.activeKey,I=o.defaultActiveFirst,P=o.selectable,M=P===void 0?!0:P,N=o.multiple,T=N===void 0?!1:N,L=o.defaultSelectedKeys,z=o.selectedKeys,H=o.onSelect,W=o.onDeselect,B=o.inlineIndent,V=B===void 0?24:B,j=o.motion,K=o.defaultMotions,q=o.triggerSubMenuAction,G=q===void 0?"hover":q,U=o.builtinPlacements,Y=o.itemIcon,oe=o.expandIcon,ue=o.overflowedIndicator,he=ue===void 0?"...":ue,re=o.overflowedIndicatorPopupClassName,ie=o.getPopupContainer,ce=o.onClick,X=o.onOpenChange,ne=o.onKeyDown;o.openAnimation,o.openTransitionName;var J=o._internalRenderMenuItem,de=o._internalRenderSubMenuItem,fe=et(o,u5),be=f__namespace.useMemo(function(){return c5(h,m,li)},[h,m]),Re=f__namespace.useState(!1),Be=Z(Re,2),_e=Be[0],ae=Be[1],ge=f__namespace.useRef(),pe=HL(v),we=g==="rtl",De=Dt(R,{value:k,postState:function(gt){return gt||li}}),Ae=Z(De,2),xe=Ae[0],Ie=Ae[1],Fe=function(gt){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function He(){Ie(gt),X==null||X(gt);}je?v0.flushSync(He):He();},$e=f__namespace.useState(xe),Ne=Z($e,2),nt=Ne[0],ct=Ne[1],qe=f__namespace.useRef(!1),dt=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Pe=Z(dt,2),me=Pe[0],Se=Pe[1],te=me==="inline",ye=f__namespace.useState(me),Te=Z(ye,2),Ye=Te[0],Le=Te[1],ve=f__namespace.useState(Se),Ee=Z(ve,2),Me=Ee[0],ke=Ee[1];f__namespace.useEffect(function(){Le(me),ke(Se),qe.current&&(te?Ie(nt):Fe(li));},[me,Se]);var st=f__namespace.useState(0),tt=Z(st,2),xt=tt[0],Ht=tt[1],Ft=xt>=be.length-1||Ye!=="horizontal"||E;f__namespace.useEffect(function(){te&&ct(xe);},[xe]),f__namespace.useEffect(function(){return qe.current=!0,function(){qe.current=!1;}},[]);var Ke=jL(),Ze=Ke.registerPath,Ue=Ke.unregisterPath,mt=Ke.refreshOverflowKeys,ht=Ke.isSubPathKey,Tt=Ke.getKeyPath,Xe=Ke.getKeys,We=Ke.getSubPathKeys,ft=f__namespace.useMemo(function(){return {registerPath:Ze,unregisterPath:Ue}},[Ze,Ue]),Ot=f__namespace.useMemo(function(){return {isSubPathKey:ht}},[ht]);f__namespace.useEffect(function(){mt(Ft?li:be.slice(xt+1).map(function(It){return It.key}));},[xt,Ft]);var en=Dt(_||I&&((n=be[0])===null||n===void 0?void 0:n.key),{value:_}),Nt=Z(en,2),cn=Nt[0],hr=Nt[1],ir=ya(function(It){hr(It);}),Yr=ya(function(){hr(void 0);});f.useImperativeHandle(t,function(){return {list:ge.current,focus:function(gt){var je,He=cn??((je=be.find(function(tn){return !tn.props.disabled}))===null||je===void 0?void 0:je.key);if(He){var bt,kt,Pt;(bt=ge.current)===null||bt===void 0||(kt=bt.querySelector("li[data-menu-id='".concat(Eh(pe,He),"']")))===null||kt===void 0||(Pt=kt.focus)===null||Pt===void 0||Pt.call(kt,gt);}}}});var po=Dt(L||[],{value:z,postState:function(gt){return Array.isArray(gt)?gt:gt==null?li:[gt]}}),En=Z(po,2),Tn=En[0],bo=En[1],Ln=function(gt){if(M){var je=gt.key,He=Tn.includes(je),bt;T?He?bt=Tn.filter(function(Pt){return Pt!==je}):bt=[].concat(Qe(Tn),[je]):bt=[je],bo(bt);var kt=ee(ee({},gt),{},{selectedKeys:bt});He?W==null||W(kt):H==null||H(kt);}!T&&xe.length&&Ye!=="inline"&&Fe(li);},On=ya(function(It){ce==null||ce(Bl(It)),Ln(It);}),Mn=ya(function(It,gt){var je=xe.filter(function(bt){return bt!==It});if(gt)je.push(It);else if(Ye!=="inline"){var He=We(It);je=je.filter(function(bt){return !He.has(bt)});}Ic(xe,je,!0)||Fe(je,!0);}),Tr=function(gt,je){var He=je??!xe.includes(gt);Mn(gt,He);},Vn=LL(Ye,cn,we,pe,ge,Xe,Tt,hr,Tr,ne);f__namespace.useEffect(function(){ae(!0);},[]);var Un=f__namespace.useMemo(function(){return {_internalRenderMenuItem:J,_internalRenderSubMenuItem:de}},[J,de]),Zr=Ye!=="horizontal"||E?be:be.map(function(It,gt){return f__namespace.createElement(qa,{key:It.key,overflowDisabled:gt>xt},It)}),yo=f__namespace.createElement(xr,Oe({id:v,ref:ge,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:ps,className:F(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ye),c,(r={},Q(r,"".concat(a,"-inline-collapsed"),Me),Q(r,"".concat(a,"-rtl"),we),r),s),dir:g,style:l,role:"menu",tabIndex:d,data:Zr,renderRawItem:function(gt){return gt},renderRawRest:function(gt){var je=gt.length,He=je?be.slice(-je):null;return f__namespace.createElement(Qc,{eventKey:Df,title:he,disabled:Ft,internalPopupClose:je===0,popupClassName:re},He)},maxCount:Ye!=="horizontal"||E?xr.INVALIDATE:xr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(gt){Ht(gt);},onKeyDown:Vn},fe));return f__namespace.createElement(Oh.Provider,{value:Un},f__namespace.createElement(AC.Provider,{value:pe},f__namespace.createElement(qa,{prefixCls:a,rootClassName:s,mode:Ye,openKeys:xe,rtl:we,disabled:C,motion:_e?j:null,defaultMotions:_e?K:null,activeKey:cn,onActive:ir,onInactive:Yr,selectedKeys:Tn,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:U,triggerSubMenuAction:G,getPopupContainer:ie,itemIcon:Y,expandIcon:oe,onItemClick:On,onOpenChange:Mn},f__namespace.createElement(jC.Provider,{value:Ot},yo),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(DC.Provider,{value:ft},be)))))}),ta=d5;ta.Item=ps;ta.SubMenu=Qc;ta.ItemGroup=Jc;ta.Divider=_h;function f5(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,m=e.editable,h=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=f.useState(!1),E=Z(C,2),S=E[0],$=E[1],x=f.useState(null),w=Z(x,2),O=w[0],R=w[1],k="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),I=O!==null?"".concat(k,"-").concat(O):null,P=i==null?void 0:i.dropdownAriaLabel;function M(B,V){B.preventDefault(),B.stopPropagation(),m.onEdit("remove",{key:V,event:B});}var N=f__namespace.createElement(ta,{onClick:function(V){var j=V.key,K=V.domEvent;p(j,K),$(!1);},prefixCls:"".concat(_,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[O],"aria-label":P!==void 0?P:"expanded dropdown"},o.map(function(B){var V=B.closable,j=B.disabled,K=B.closeIcon,q=B.key,G=B.label,U=RC(V,K,m,j);return f__namespace.createElement(ps,{key:q,id:"".concat(k,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:j},f__namespace.createElement("span",null,G),U&&f__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),M(oe,q);}},K||m.removeIcon||"×"))}));function T(B){for(var V=o.filter(function(U){return !U.disabled}),j=V.findIndex(function(U){return U.key===O})||0,K=V.length,q=0;qWe?"left":"right"});}),I=Z(_,2),P=I[0],M=I[1],N=Op(0,function(Xe,We){!k&&C&&C({direction:Xe>We?"top":"bottom"});}),T=Z(N,2),L=T[0],z=T[1],H=f.useState([0,0]),W=Z(H,2),B=W[0],V=W[1],j=f.useState([0,0]),K=Z(j,2),q=K[0],G=K[1],U=f.useState([0,0]),Y=Z(U,2),oe=Y[0],ue=Y[1],he=f.useState([0,0]),re=Z(he,2),ie=re[0],ce=re[1],X=sL(new Map),ne=Z(X,2),J=ne[0],de=ne[1],fe=oL(i,J,q[0]),be=Ks(B,k),Re=Ks(q,k),Be=Ks(oe,k),_e=Ks(ie,k),ae=beDe?De:Xe}var xe=f.useRef(),Ie=f.useState(),Fe=Z(Ie,2),$e=Fe[0],Ne=Fe[1];function nt(){Ne(Date.now());}function ct(){window.clearTimeout(xe.current);}aL(x,function(Xe,We){function ft(Ot,en){Ot(function(Nt){var cn=Ae(Nt+en);return cn});}return ae?(k?ft(M,Xe):ft(z,We),ct(),nt(),!0):!1}),f.useEffect(function(){return ct(),$e&&(xe.current=window.setTimeout(function(){Ne(0);},100)),ct},[$e]);var qe=lL(fe,ge,k?P:L,Re,Be,_e,ee(ee({},e),{},{tabs:i})),dt=Z(qe,2),Pe=dt[0],me=dt[1],Se=Nn(function(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,We=fe.get(Xe)||{width:0,height:0,left:0,right:0,top:0};if(k){var ft=P;d?We.rightP+ge&&(ft=We.right+We.width-ge):We.left<-P?ft=-We.left:We.left+We.width>-P+ge&&(ft=-(We.left+We.width-ge)),z(0),M(Ae(ft));}else {var Ot=L;We.top<-L?Ot=-We.top:We.top+We.height>-L+ge&&(Ot=-(We.top+We.height-ge)),M(0),z(Ae(Ot));}}),te={};v==="top"||v==="bottom"?te[d?"marginRight":"marginLeft"]=p:te.marginTop=p;var ye=i.map(function(Xe,We){var ft=Xe.key;return f__namespace.createElement(h5,{id:l,prefixCls:o,key:ft,tab:Xe,style:We===0?void 0:te,closable:Xe.closable,editable:h,active:ft===u,renderWrapper:b,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(en){y(ft,en);},onFocus:function(){Se(ft),nt(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),Te=function(){return de(function(){var We=new Map;return i.forEach(function(ft){var Ot,en=ft.key,Nt=(Ot=w.current)===null||Ot===void 0?void 0:Ot.querySelector('[data-node-key="'.concat(PC(en),'"]'));Nt&&We.set(en,{width:Nt.offsetWidth,height:Nt.offsetHeight,left:Nt.offsetLeft,top:Nt.offsetTop});}),We})};f.useEffect(function(){Te();},[i.map(function(Xe){return Xe.key}).join("_")]);var Ye=IC(function(){var Xe=ci(E),We=ci(S),ft=ci($);V([Xe[0]-We[0]-ft[0],Xe[1]-We[1]-ft[1]]);var Ot=ci(R);ue(Ot);var en=ci(O);ce(en);var Nt=ci(w);G([Nt[0]-Ot[0],Nt[1]-Ot[1]]),Te();}),Le=i.slice(0,Pe),ve=i.slice(me+1),Ee=[].concat(Qe(Le),Qe(ve)),Me=f.useState(),ke=Z(Me,2),st=ke[0],tt=ke[1],xt=fe.get(u),Ht=f.useRef();function Ft(){pt.cancel(Ht.current);}f.useEffect(function(){var Xe={};return xt&&(k?(d?Xe.right=xt.right:Xe.left=xt.left,Xe.width=xt.width):(Xe.top=xt.top,Xe.height=xt.height)),Ft(),Ht.current=pt(function(){tt(Xe);}),Ft},[xt,k,d]),f.useEffect(function(){Se();},[u,we,De,_p(xt),_p(fe),k]),f.useEffect(function(){Ye();},[d]);var Ke=!!Ee.length,Ze="".concat(o,"-nav-wrap"),Ue,mt,ht,Tt;return k?d?(mt=P>0,Ue=P!==De):(Ue=P<0,mt=P!==we):(ht=L<0,Tt=L!==we),f__namespace.createElement(Or,{onResize:Ye},f__namespace.createElement("div",{ref:cs(t,E),role:"tablist",className:F("".concat(o,"-nav"),a),style:s,onKeyDown:function(){nt();}},f__namespace.createElement(Tp,{ref:S,position:"left",extra:m,prefixCls:o}),f__namespace.createElement("div",{className:F(Ze,(n={},Q(n,"".concat(Ze,"-ping-left"),Ue),Q(n,"".concat(Ze,"-ping-right"),mt),Q(n,"".concat(Ze,"-ping-top"),ht),Q(n,"".concat(Ze,"-ping-bottom"),Tt),n)),ref:x},f__namespace.createElement(Or,{onResize:Ye},f__namespace.createElement("div",{ref:w,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(L,"px)"),transition:$e?"none":void 0}},ye,f__namespace.createElement(_C,{ref:R,prefixCls:o,locale:g,editable:h,style:ee(ee({},ye.length===0?void 0:te),{},{visibility:Ke?"hidden":null})}),f__namespace.createElement("div",{className:F("".concat(o,"-ink-bar"),Q({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:st})))),f__namespace.createElement(m5,Oe({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:O,prefixCls:o,tabs:Ee,className:!Ke&&pe,tabMoving:!!$e})),f__namespace.createElement(Tp,{ref:$,position:"right",extra:m,prefixCls:o})))}const Dp=f__namespace.forwardRef(g5);var v5=["renderTabBar"],p5=["label","key"];function b5(e){var t=e.renderTabBar,n=et(e,v5),r=f__namespace.useContext(Yc),o=r.tabs;if(t){var i=ee(ee({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=et(a,p5);return f__namespace.createElement(OC,Oe({tab:s,key:l,tabKey:l},c))})});return t(i,Dp)}return f__namespace.createElement(Dp,n)}function y5(){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=ee({inkBar:!0},at(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var C5=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],zp=0;function S5(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,m=e.animated,h=e.tabPosition,g=h===void 0?"top":h,v=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,E=e.moreTransitionName,S=e.destroyInactiveTabPane,$=e.renderTabBar,x=e.onChange,w=e.onTabClick,O=e.onTabScroll,R=e.getPopupContainer,k=e.popupClassName,_=et(e,C5),I=f__namespace.useMemo(function(){return (s||[]).filter(function(X){return X&&at(X)==="object"&&"key"in X})},[s]),P=l==="rtl",M=y5(m),N=f.useState(!1),T=Z(N,2),L=T[0],z=T[1];f.useEffect(function(){z(Mc());},[]);var H=Dt(function(){var X;return (X=I[0])===null||X===void 0?void 0:X.key},{value:c,defaultValue:u}),W=Z(H,2),B=W[0],V=W[1],j=f.useState(function(){return I.findIndex(function(X){return X.key===B})}),K=Z(j,2),q=K[0],G=K[1];f.useEffect(function(){var X=I.findIndex(function(J){return J.key===B});if(X===-1){var ne;X=Math.max(0,Math.min(q,I.length-1)),V((ne=I[X])===null||ne===void 0?void 0:ne.key);}G(X);},[I.map(function(X){return X.key}).join("_"),B,q]);var U=Dt(null,{value:r}),Y=Z(U,2),oe=Y[0],ue=Y[1];f.useEffect(function(){r||(ue("rc-tabs-".concat(zp)),zp+=1);},[]);function he(X,ne){w==null||w(X,ne);var J=X!==B;V(X),J&&(x==null||x(X));}var re={id:oe,activeKey:B,animated:M,tabPosition:g,rtl:P,mobile:L},ie,ce=ee(ee({},re),{},{editable:d,locale:y,moreIcon:C,moreTransitionName:E,tabBarGutter:v,onTabClick:he,onTabScroll:O,extra:b,style:p,panes:null,getPopupContainer:R,popupClassName:k});return f__namespace.createElement(Yc.Provider,{value:{tabs:I,prefixCls:i}},f__namespace.createElement("div",Oe({ref:t,id:r,className:F(i,"".concat(i,"-").concat(g),(n={},Q(n,"".concat(i,"-mobile"),L),Q(n,"".concat(i,"-editable"),d),Q(n,"".concat(i,"-rtl"),P),n),a)},_),ie,f__namespace.createElement(b5,Oe({},ce,{renderTabBar:$})),f__namespace.createElement(rL,Oe({destroyInactiveTabPane:S},re,{animated:M}))))}var w5=f__namespace.forwardRef(S5);const x5=()=>null,$5=x5,E5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function O5(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({},E5),{motionName:kc(e,"switch")})),n}var I5=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 R5(e,t){if(e)return e;const n=tr(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=I5(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return P5(n)}const _5=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}`}}}}},[mo(e,"slide-up"),mo(e,"slide-down")]]},T5=_5,M5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${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}}}}}}},N5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Rt(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({},Do),{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"}}})}})}},k5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, 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:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${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}}}}}},A5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},L5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s}=e,l=`${t}-tab`;return {[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},jo(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},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},D5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},z5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},jo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),L5(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"}}}}}},j5=Bt("Tabs",e=>{const t=ut(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return [A5(t),D5(t),k5(t),N5(t),M5(t),z5(t),T5(t)]},e=>{const t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});var B5=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{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:m,style:h}=e,g=B5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:v,moreIcon:p=f__namespace.createElement($h,null)}=g,{direction:b,tabs:y,getPrefixCls:C,getPopupContainer:E}=f__namespace.useContext(Je),S=C("tabs",v),[$,x]=j5(S);let w;t==="editable-card"&&(w={onEdit:(P,M)=>{let{key:N,event:T}=M;i==null||i(P==="add"?T:N,P);},removeIcon:f__namespace.createElement(qc,null),addIcon:l||f__namespace.createElement(tL,null),showAdd:a!==!0});const O=C(),R=R5(d,u),k=O5(S,m),_=Wn(o),I=Object.assign(Object.assign({},y==null?void 0:y.style),h);return $(f__namespace.createElement(w5,Object.assign({direction:b,getPopupContainer:E,moreTransitionName:`${O}-slide-up`},g,{items:R,className:F({[`${S}-${_}`]:_,[`${S}-card`]:["card","editable-card"].includes(t),[`${S}-editable-card`]:t==="editable-card",[`${S}-centered`]:s},y==null?void 0:y.className,n,r,x),popupClassName:F(c,x),style:I,editable:w,moreIcon:p,prefixCls:S,animated:k})))};GC.TabPane=$5;const H5=GC;var Th={exports:{}},KC=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function W5(e){return e!==null&&!Hl(e)&&e.constructor!==null&&!Hl(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var XC=Xo("ArrayBuffer");function V5(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&XC(e.buffer),t}function U5(e){return typeof e=="string"}function G5(e){return typeof e=="number"}function qC(e){return e!==null&&typeof e=="object"}function dl(e){if(Nh(e)!=="object")return !1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var K5=Xo("Date"),X5=Xo("File"),q5=Xo("Blob"),Y5=Xo("FileList");function Ah(e){return Mh.call(e)==="[object Function]"}function Z5(e){return qC(e)&&Ah(e.pipe)}function Q5(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mh.call(e)===t||Ah(e.toString)&&e.toString()===t)}var J5=Xo("URLSearchParams");function eD(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function tD(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Lh(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),kh(e))for(var n=0,r=e.length;n0;)i=r[o],a[i]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function aD(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function sD(e){if(!e)return null;var t=e.length;if(Hl(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var lD=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),ln={isArray:kh,isArrayBuffer:XC,isBuffer:W5,isFormData:Q5,isArrayBufferView:V5,isString:U5,isNumber:G5,isObject:qC,isPlainObject:dl,isUndefined:Hl,isDate:K5,isFile:X5,isBlob:q5,isFunction:Ah,isStream:Z5,isURLSearchParams:J5,isStandardBrowserEnv:tD,forEach:Lh,merge:jf,extend:nD,trim:eD,stripBOM:rD,inherits:oD,toFlatObject:iD,kindOf:Nh,kindOfTest:Xo,endsWith:aD,toArray:sD,isTypedArray:lD,isFileList:Y5};const jp=an(ln);var ui=ln;function Bp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Dh=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(ui.isURLSearchParams(n))o=n.toString();else {var i=[];ui.forEach(n,function(l,c){l===null||typeof l>"u"||(ui.isArray(l)?c=c+"[]":l=[l],ui.forEach(l,function(d){ui.isDate(d)?d=d.toISOString():ui.isObject(d)&&(d=JSON.stringify(d)),i.push(Bp(c)+"="+Bp(d));}));}),o=i.join("&");}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o;}return t};const cD=an(Dh);var uD=ln;function eu(){this.handlers=[];}eu.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};eu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null);};eu.prototype.forEach=function(t){uD.forEach(this.handlers,function(r){r!==null&&t(r);});};var dD=eu,fD=ln,mD=function(t,n){fD.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i]);});},YC=ln;function Ai(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o);}YC.inherits(Ai,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ZC=Ai.prototype,QC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){QC[e]={value:e};});Object.defineProperties(Ai,QC);Object.defineProperty(ZC,"isAxiosError",{value:!0});Ai.from=function(e,t,n,r,o,i){var a=Object.create(ZC);return YC.toFlatObject(e,a,function(l){return l!==Error.prototype}),Ai.call(a,e.message,t,n,r,o),a.name=e.name,i&&Object.assign(a,i),a};var na=Ai,JC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ar=ln;function hD(e,t){t=t||new FormData;var n=[];function r(i){return i===null?"":ar.isDate(i)?i.toISOString():ar.isArrayBuffer(i)||ar.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function o(i,a){if(ar.isPlainObject(i)||ar.isArray(i)){if(n.indexOf(i)!==-1)throw Error("Circular reference detected in "+a);n.push(i),ar.forEach(i,function(l,c){if(!ar.isUndefined(l)){var u=a?a+"."+c:c,d;if(l&&!a&&typeof l=="object"){if(ar.endsWith(c,"{}"))l=JSON.stringify(l);else if(ar.endsWith(c,"[]")&&(d=ar.toArray(l))){d.forEach(function(m){!ar.isUndefined(m)&&t.append(u,r(m));});return}}o(l,u);}}),n.pop();}else t.append(a,r(i));}return o(e),t}var eS=hD,td=na,tS=function(t,n,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(new td("Request failed with status code "+r.status,[td.ERR_BAD_REQUEST,td.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r));};const gD=an(tS);var nd,Hp;function vD(){if(Hp)return nd;Hp=1;var e=ln;return nd=e.isStandardBrowserEnv()?function(){return {write:function(r,o,i,a,s,l){var c=[];c.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),e.isString(a)&&c.push("path="+a),e.isString(s)&&c.push("domain="+s),l===!0&&c.push("secure"),document.cookie=c.join("; ");},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5);}}}():function(){return {write:function(){},read:function(){return null},remove:function(){}}}(),nd}var pD=function(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},bD=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},yD=pD,CD=bD,zh=function(t,n){return t&&!yD(n)?CD(t,n):n};const SD=an(zh);var rd=ln,wD=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],nS=function(t){var n={},r,o,i;return t&&rd.forEach(t.split(` `),function(s){if(i=s.indexOf(":"),r=rd.trim(s.substr(0,i)).toLowerCase(),o=rd.trim(s.substr(i+1)),r){if(n[r]&&wD.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([o]):n[r]=n[r]?n[r]+", "+o:o;}}),n};const xD=an(nS);var od,Fp;function $D(){if(Fp)return od;Fp=1;var e=ln;return od=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(a){var s=a;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(s){var l=e.isString(s)?i(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return !0}}(),od}var id,Wp;function tu(){if(Wp)return id;Wp=1;var e=na,t=ln;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError";}return t.inherits(n,e,{__CANCEL__:!0}),id=n,id}var ad,Vp;function ED(){return Vp||(Vp=1,ad=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),ad}var sd,Up;function Gp(){if(Up)return sd;Up=1;var e=ln,t=tS,n=vD(),r=Dh,o=zh,i=nS,a=$D(),s=JC,l=na,c=tu(),u=ED();return sd=function(m){return new Promise(function(g,v){var p=m.data,b=m.headers,y=m.responseType,C;function E(){m.cancelToken&&m.cancelToken.unsubscribe(C),m.signal&&m.signal.removeEventListener("abort",C);}e.isFormData(p)&&e.isStandardBrowserEnv()&&delete b["Content-Type"];var S=new XMLHttpRequest;if(m.auth){var $=m.auth.username||"",x=m.auth.password?unescape(encodeURIComponent(m.auth.password)):"";b.Authorization="Basic "+btoa($+":"+x);}var w=o(m.baseURL,m.url);S.open(m.method.toUpperCase(),r(w,m.params,m.paramsSerializer),!0),S.timeout=m.timeout;function O(){if(S){var _="getAllResponseHeaders"in S?i(S.getAllResponseHeaders()):null,I=!y||y==="text"||y==="json"?S.responseText:S.response,P={data:I,status:S.status,statusText:S.statusText,headers:_,config:m,request:S};t(function(N){g(N),E();},function(N){v(N),E();},P),S=null;}}if("onloadend"in S?S.onloadend=O:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(O);},S.onabort=function(){S&&(v(new l("Request aborted",l.ECONNABORTED,m,S)),S=null);},S.onerror=function(){v(new l("Network Error",l.ERR_NETWORK,m,S,S)),S=null;},S.ontimeout=function(){var I=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded",P=m.transitional||s;m.timeoutErrorMessage&&(I=m.timeoutErrorMessage),v(new l(I,P.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,m,S)),S=null;},e.isStandardBrowserEnv()){var R=(m.withCredentials||a(w))&&m.xsrfCookieName?n.read(m.xsrfCookieName):void 0;R&&(b[m.xsrfHeaderName]=R);}"setRequestHeader"in S&&e.forEach(b,function(I,P){typeof p>"u"&&P.toLowerCase()==="content-type"?delete b[P]:S.setRequestHeader(P,I);}),e.isUndefined(m.withCredentials)||(S.withCredentials=!!m.withCredentials),y&&y!=="json"&&(S.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&S.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&S.upload&&S.upload.addEventListener("progress",m.onUploadProgress),(m.cancelToken||m.signal)&&(C=function(_){S&&(v(!_||_&&_.type?new c:_),S.abort(),S=null);},m.cancelToken&&m.cancelToken.subscribe(C),m.signal&&(m.signal.aborted?C():m.signal.addEventListener("abort",C))),p||(p=null);var k=u(w);if(k&&["http","https","file"].indexOf(k)===-1){v(new l("Unsupported protocol "+k+":",l.ERR_BAD_REQUEST,m));return}S.send(p);})},sd}var ld,Kp;function OD(){return Kp||(Kp=1,ld=null),ld}var on=ln,Xp=mD,qp=na,ID=JC,PD=eS,RD={"Content-Type":"application/x-www-form-urlencoded"};function Yp(e,t){!on.isUndefined(e)&&on.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t);}function _D(){var e;return (typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Gp()),e}function TD(e,t,n){if(on.isString(e))try{return (t||JSON.parse)(e),on.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return (n||JSON.stringify)(e)}var nu={transitional:ID,adapter:_D(),transformRequest:[function(t,n){if(Xp(n,"Accept"),Xp(n,"Content-Type"),on.isFormData(t)||on.isArrayBuffer(t)||on.isBuffer(t)||on.isStream(t)||on.isFile(t)||on.isBlob(t))return t;if(on.isArrayBufferView(t))return t.buffer;if(on.isURLSearchParams(t))return Yp(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=on.isObject(t),o=n&&n["Content-Type"],i;if((i=on.isFileList(t))||r&&o==="multipart/form-data"){var a=this.env&&this.env.FormData;return PD(i?{"files[]":t}:t,a&&new a)}else if(r||o==="application/json")return Yp(n,"application/json"),TD(t);return t}],transformResponse:[function(t){var n=this.transitional||nu.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||o&&on.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?qp.from(a,qp.ERR_BAD_RESPONSE,this,null,this.response):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:OD()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};on.forEach(["delete","get","head"],function(t){nu.headers[t]={};});on.forEach(["post","put","patch"],function(t){nu.headers[t]=on.merge(RD);});var jh=nu,MD=ln,ND=jh,kD=function(t,n,r){var o=this||ND;return MD.forEach(r,function(a){t=a.call(o,t,n);}),t},cd,Zp;function rS(){return Zp||(Zp=1,cd=function(t){return !!(t&&t.__CANCEL__)}),cd}var Qp=ln,ud=kD,AD=rS(),LD=jh,DD=tu();function dd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new DD}var zD=function(t){dd(t),t.headers=t.headers||{},t.data=ud.call(t,t.data,t.headers,t.transformRequest),t.headers=Qp.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Qp.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o];});var n=t.adapter||LD.adapter;return n(t).then(function(o){return dd(t),o.data=ud.call(t,o.data,o.headers,t.transformResponse),o},function(o){return AD(o)||(dd(t),o&&o.response&&(o.response.data=ud.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},zn=ln,oS=function(t,n){n=n||{};var r={};function o(u,d){return zn.isPlainObject(u)&&zn.isPlainObject(d)?zn.merge(u,d):zn.isPlainObject(d)?zn.merge({},d):zn.isArray(d)?d.slice():d}function i(u){if(zn.isUndefined(n[u])){if(!zn.isUndefined(t[u]))return o(void 0,t[u])}else return o(t[u],n[u])}function a(u){if(!zn.isUndefined(n[u]))return o(void 0,n[u])}function s(u){if(zn.isUndefined(n[u])){if(!zn.isUndefined(t[u]))return o(void 0,t[u])}else return o(void 0,n[u])}function l(u){if(u in n)return o(t[u],n[u]);if(u in t)return o(void 0,t[u])}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return zn.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var m=c[d]||i,h=m(d);zn.isUndefined(h)&&m!==l||(r[d]=h);}),r},fd,Jp;function iS(){return Jp||(Jp=1,fd={version:"0.27.2"}),fd}var jD=iS().version,oo=na,Bh={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Bh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e};});var eb={};Bh.transitional=function(t,n,r){function o(i,a){return "[Axios v"+jD+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return function(i,a,s){if(t===!1)throw new oo(o(a," has been removed"+(n?" in "+n:"")),oo.ERR_DEPRECATED);return n&&!eb[a]&&(eb[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function BD(e,t,n){if(typeof e!="object")throw new oo("options must be an object",oo.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new oo("option "+i+" must be "+l,oo.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oo("Unknown option "+i,oo.ERR_BAD_OPTION)}}var HD={assertOptions:BD,validators:Bh},aS=ln,FD=Dh,tb=dD,nb=zD,ru=oS,WD=zh,sS=HD,di=sS.validators;function Li(e){this.defaults=e,this.interceptors={request:new tb,response:new tb};}Li.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ru(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&sS.assertOptions(r,{silentJSONParsing:di.transitional(di.boolean),forcedJSONParsing:di.transitional(di.boolean),clarifyTimeoutError:di.transitional(di.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(i=i&&h.synchronous,o.unshift(h.fulfilled,h.rejected));});var a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected);});var s;if(!i){var l=[nb,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(a),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var c=n;o.length;){var u=o.shift(),d=o.shift();try{c=u(c);}catch(m){d(m);break}}try{s=nb(c);}catch(m){return Promise.reject(m)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Li.prototype.getUri=function(t){t=ru(this.defaults,t);var n=WD(t.baseURL,t.url);return FD(n,t.params,t.paramsSerializer)};aS.forEach(["delete","get","head","options"],function(t){Li.prototype[t]=function(n,r){return this.request(ru(r||{},{method:t,url:n,data:(r||{}).data}))};});aS.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(ru(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Li.prototype[t]=n(),Li.prototype[t+"Form"]=n(!0);});var VD=Li,md,rb;function UD(){if(rb)return md;rb=1;var e=tu();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a;});var o=this;this.promise.then(function(i){if(o._listeners){var a,s=o._listeners.length;for(a=0;a{if(g(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(E=>{const S=E[0].target;u(S.offsetHeight+8),m(S.offsetWidth);}),C=setInterval(()=>{var E;const S=n?`.${n(p)}`:`.${p}-dropdown`,$=(E=l.current)===null||E===void 0?void 0:E.querySelector(S);$&&(clearInterval(C),y.observe($));},10);return ()=>{clearInterval(C),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});return r&&(b=r(b)),f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b)))}return QD(o)}const JD=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},Rt(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}}})}},e6=Bt("Divider",e=>{const t=ut(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [JD(t)]},{sizePaddingEdgeHorizontal:0});var t6=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,divider:r}=f__namespace.useContext(Je),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:m,style:h}=e,g=t6(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,b]=e6(v),y=a.length>0?`-${a}`:a,C=!!u,E=a==="left"&&s!=null,S=a==="right"&&s!=null,$=F(v,r==null?void 0:r.className,b,`${v}-${i}`,{[`${v}-with-text`]:C,[`${v}-with-text${y}`]:C,[`${v}-dashed`]:!!d,[`${v}-plain`]:!!m,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:E,[`${v}-no-default-orientation-margin-right`]:S},l,c),x=f__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),w=Object.assign(Object.assign({},E&&{marginLeft:x}),S&&{marginRight:x});return p(f__namespace.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),u&&i!=="vertical"&&f__namespace.createElement("span",{className:`${v}-inner-text`,style:w},u)))},r6=n6;var o6=["b"],i6=["v"],vd=function(t){return Math.round(Number(t||0))},a6=function(t){if(t&&at(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=et(n,o6);return ee(ee({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Fl=function(e){ho(n,e);var t=go(n);function n(r){return Sn(this,n),t.call(this,a6(r))}return wn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=vd(o.s*100),a=vd(o.b*100),s=vd(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();at(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=et(i,i6);return ee(ee({},a),{},{b:o.v})}}]),n}(Vt),s6="rc-color-picker",co=function(t){return t instanceof Fl?t:new Fl(t)},l6=co("#1677ff"),cS=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,m=u.height,h=d/2,g=m/2,v=(n.x+h)/l,p=1-(n.y+g)/c,b=i.toHsb(),y=v,C=(n.x+h)/l*360;if(a)switch(a){case"hue":return co(ee(ee({},b),{},{h:C<=0?0:C}));case"alpha":return co(ee(ee({},b),{},{a:y<=0?0:y}))}return co({h:b.h,s:v<=0?0:v,b:p>=1?1:p,a:b.a})},uS=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,m=u/2,h=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:h.h/360*a-d,y:-m/3};case"alpha":return {x:h.a/1*a-d,y:-m/3}}return {x:h.s*a-d,y:(1-h.b)*s-m}}},Fh=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:F(s,o),style:i,onClick:a},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function c6(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 dS(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=Z(u,2),m=d[0],h=d[1],g=f.useRef(null),v=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var S=s==null?void 0:s(r);S&&h(S);}},[l,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null;}},[]);var b=function($){var x=c6($),w=x.pageX,O=x.pageY,R=r.current.getBoundingClientRect(),k=R.x,_=R.y,I=R.width,P=R.height,M=n.current.getBoundingClientRect(),N=M.width,T=M.height,L=N/2,z=T/2,H=Math.max(0,Math.min(w-k,I))-L,W=Math.max(0,Math.min(O-_,P))-z,B={x:H,y:o==="x"?m.y:W};if(N===0&&T===0||N!==T)return !1;h(B),i==null||i(B);},y=function($){$.preventDefault(),b($);},C=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,a==null||a();},E=function($){c||(b($),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C),g.current=y,v.current=C);};return [m,E]}var fS=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return f.createElement("div",{className:F("".concat(i,"-handler"),Q({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},mS=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:ee({position:"relative"},r)},n)},hS=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)}),u6=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=f.useRef(n),u=dS({color:n,containerRef:s,targetRef:l,calculate:function(v){return uS(v,l,n)},onDragChange:function(v){var p=cS({offset:v,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),d=Z(u,2),m=d[0],h=d[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},f.createElement(mS,{prefixCls:o},f.createElement(hS,{offset:m,ref:l},f.createElement(fS,{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))"}})))},d6=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=co(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)},sb=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,m=f.useRef(),h=f.useRef(),g=f.useRef(a),v=dS({color:a,targetRef:h,containerRef:m,calculate:function(E){return uS(E,h,a,i)},onDragChange:function(E){var S=cS({offset:E,targetRef:h,containerRef:m,color:a,type:i});g.current=S,l(S);},onDragChangeComplete:function(){c==null||c(g.current,i);},direction:"x",disabledDrag:u}),p=Z(v,2),b=p[0],y=p[1];return f.createElement("div",{ref:m,className:F("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:y,onTouchStart:y},f.createElement(mS,{prefixCls:d},f.createElement(hS,{offset:b,ref:h},f.createElement(fS,{size:"small",color:s,prefixCls:d})),f.createElement(d6,{colors:n,direction:r,type:i,prefixCls:d})))};function lb(e){return e!==void 0}var f6=function(t,n){var r=n.defaultValue,o=n.value,i=f.useState(function(){var c;return lb(o)?c=o:lb(r)?c=r:c=t,co(c)}),a=Z(i,2),s=a[0],l=a[1];return f.useEffect(function(){o&&l(co(o));},[o]),[s,l]},m6=["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 h6=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?s6:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,m=d===void 0?!1:d,h=e.disabled,g=h===void 0?!1:h,v=f6(l6,{value:n,defaultValue:r}),p=Z(v,2),b=p[0],y=p[1],C=f.useMemo(function(){var w=co(b.toRgbString());return w.setAlpha(1),w.toRgbString()},[b]),E=F("".concat(i,"-panel"),l,Q({},"".concat(i,"-panel-disabled"),g)),S={prefixCls:i,onChangeComplete:s,disabled:g},$=function(O,R){n||y(O),a==null||a(O,R);},x=f.createElement(f.Fragment,null,f.createElement(u6,Oe({color:b,onChange:$},S)),f.createElement("div",{className:"".concat(i,"-slider-container")},f.createElement("div",{className:F("".concat(i,"-slider-group"),Q({},"".concat(i,"-slider-group-disabled-alpha"),m))},f.createElement(sb,Oe({gradientColors:m6,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(O){return $(O,"hue")}},S)),!m&&f.createElement(sb,Oe({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:b,value:b.toRgbString(),onChange:function(O){return $(O,"alpha")}},S))),f.createElement(Fh,{color:b.toRgbString(),prefixCls:i})));return f.createElement("div",{className:E,style:c,ref:t},typeof u=="function"?u(x):x)}),gS=f.createContext({}),vS=f.createContext({}),{Provider:g6}=gS,{Provider:v6}=vS,ml=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",p6=(e,t)=>e?ml(e,t):"";let cb=function(){function e(t){Sn(this,e),this.metaColor=new Fl(t),t||this.metaColor.setAlpha(0);}return wn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return p6(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 b6="ant-color-picker",bn=e=>e instanceof cb?e:new cb(e),hl=e=>Math.round(Number(e||0)),Wl=e=>hl(e.toHsb().a*100),pd=(e,t)=>{const n=e.toHsb();return n.a=t||1,bn(n)},y6=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const i=()=>{if(n&&!r){const a=n.toHsb();a.a=0;const s=bn(a);o==null||o(s);}};return f.createElement("div",{className:`${t}-clear`,onClick:i})},pS=y6;var bS=f__namespace.createContext(null);function C6(){return f__namespace.useContext(bS)}function S6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=Z(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 yS(){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 w6(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 x6=`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`,$6=`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`,E6="".concat(x6," ").concat($6).split(/[\s\n]+/),O6="aria-",I6="data-";function ub(e,t){return e.indexOf(t)===0}function Di(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=ee({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||ub(o,O6))||n.data&&ub(o,I6)||n.attr&&E6.includes(o))&&(r[o]=e[o]);}),r}var iu=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:F(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},P6=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,m=t.editable,h=t.activeDescendantId,g=t.value,v=t.maxLength,p=t.onKeyDown,b=t.onMouseDown,y=t.onChange,C=t.onPaste,E=t.onCompositionStart,S=t.onCompositionEnd,$=t.open,x=t.attrs,w=s||f__namespace.createElement("input",null),O=w,R=O.ref,k=O.props,_=k.onKeyDown,I=k.onChange,P=k.onMouseDown,M=k.onCompositionStart,N=k.onCompositionEnd,T=k.style;return "maxLength"in w.props,w=f__namespace.cloneElement(w,ee(ee(ee({type:"search"},k),{},{id:a,ref:xn(n,R),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:F("".concat(i,"-selection-search-input"),(r=w)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":$,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?h:void 0},x),{},{value:m?g:"",maxLength:v,readOnly:!m,unselectable:m?null:"on",style:ee(ee({},T),{},{opacity:m?null:0}),onKeyDown:function(z){p(z),_&&_(z);},onMouseDown:function(z){b(z),P&&P(z);},onChange:function(z){y(z),I&&I(z);},onCompositionStart:function(z){E(z),M&&M(z);},onCompositionEnd:function(z){S(z),N&&N(z);},onPaste:C})),w},Wh=f__namespace.forwardRef(P6);Wh.displayName="Input";function CS(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var R6=typeof window<"u"&&window.document&&window.document.documentElement,_6=R6;function T6(e){return e!=null}function M6(e){return !e&&e!==0}function db(e){return ["string","number"].includes(at(e))}function SS(e){var t=void 0;return e&&(db(e.title)?t=e.title.toString():db(e.label)&&(t=e.label.toString())),t}function N6(e,t){_6?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function k6(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var fb=function(t){t.preventDefault(),t.stopPropagation();},A6=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,m=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,E=t.maxTagPlaceholder,S=E===void 0?function(re){return "+ ".concat(re.length," ...")}:E,$=t.tagRender,x=t.onToggleOpen,w=t.onRemove,O=t.onInputChange,R=t.onInputPaste,k=t.onInputKeyDown,_=t.onInputMouseDown,I=t.onInputCompositionStart,P=t.onInputCompositionEnd,M=f__namespace.useRef(null),N=f.useState(0),T=Z(N,2),L=T[0],z=T[1],H=f.useState(!1),W=Z(H,2),B=W[0],V=W[1],j="".concat(r,"-selection"),K=i||d==="multiple"&&s===!1||d==="tags"?a:"",q=d==="tags"||d==="multiple"&&s===!1||m&&(i||B);N6(function(){z(M.current.scrollWidth);},[K]);function G(re,ie,ce,X,ne){return f__namespace.createElement("span",{className:F("".concat(j,"-item"),Q({},"".concat(j,"-item-disabled"),ce)),title:SS(re)},f__namespace.createElement("span",{className:"".concat(j,"-item-content")},ie),X&&f__namespace.createElement(iu,{className:"".concat(j,"-item-remove"),onMouseDown:fb,onClick:ne,customizeIcon:b},"×"))}function U(re,ie,ce,X,ne){var J=function(fe){fb(fe),x(!i);};return f__namespace.createElement("span",{onMouseDown:J},$({label:ie,value:re,disabled:ce,closable:X,onClose:ne}))}function Y(re){var ie=re.disabled,ce=re.label,X=re.value,ne=!u&&!ie,J=ce;if(typeof C=="number"&&(typeof ce=="string"||typeof ce=="number")){var de=String(J);de.length>C&&(J="".concat(de.slice(0,C),"..."));}var fe=function(Re){Re&&Re.stopPropagation(),w(re);};return typeof $=="function"?U(X,J,ie,ne,fe):G(re,J,ie,ne,fe)}function oe(re){var ie=typeof S=="function"?S(re):S;return G({title:ie},ie,!1)}var ue=f__namespace.createElement("div",{className:"".concat(j,"-search"),style:{width:L},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},f__namespace.createElement(Wh,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:g,editable:q,activeDescendantId:v,value:K,onKeyDown:k,onMouseDown:_,onChange:O,onPaste:R,onCompositionStart:I,onCompositionEnd:P,tabIndex:p,attrs:Di(t,!0)}),f__namespace.createElement("span",{ref:M,className:"".concat(j,"-search-mirror"),"aria-hidden":!0},K," ")),he=f__namespace.createElement(xr,{prefixCls:"".concat(j,"-overflow"),data:o,renderItem:Y,renderRest:oe,suffix:ue,itemKey:k6,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,he,!o.length&&!K&&f__namespace.createElement("span",{className:"".concat(j,"-placeholder")},c))},L6=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,m=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,E=t.onInputMouseDown,S=t.onInputChange,$=t.onInputPaste,x=t.onInputCompositionStart,w=t.onInputCompositionEnd,O=t.title,R=f__namespace.useState(!1),k=Z(R,2),_=k[0],I=k[1],P=u==="combobox",M=P||v,N=m[0],T=p||"";P&&b&&!_&&(T=b),f__namespace.useEffect(function(){P&&I(!1);},[P,b]);var L=u!=="combobox"&&!d&&!v?!1:!!T,z=O===void 0?SS(N):O,H=function(){if(N)return null;var B=L?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},h)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(Wh,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:c,value:T,onKeyDown:C,onMouseDown:E,onChange:function(B){I(!0),S(B);},onPaste:$,onCompositionStart:x,onCompositionEnd:w,tabIndex:g,attrs:Di(t,!0),maxLength:P?y:void 0})),!P&&N?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:L?{visibility:"hidden"}:void 0},N.label):null,H())};function D6(e){return ![le.ESC,le.SHIFT,le.BACKSPACE,le.TAB,le.WIN_KEY,le.ALT,le.META,le.WIN_KEY_RIGHT,le.CTRL,le.SEMICOLON,le.EQUALS,le.CAPS_LOCK,le.CONTEXT_MENU,le.F1,le.F2,le.F3,le.F4,le.F5,le.F6,le.F7,le.F8,le.F9,le.F10,le.F11,le.F12].includes(e)}var z6=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,m=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=yS(0),b=Z(p,2),y=b[0],C=b[1],E=function(T){var L=T.which;(L===le.UP||L===le.DOWN)&&T.preventDefault(),g&&g(T),L===le.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(T.target.value)),D6(L)&&h(!0);},S=function(){C(!0);},$=f.useRef(null),x=function(T){d(T,!0,o.current)!==!1&&h(!0);},w=function(){o.current=!0;},O=function(T){o.current=!1,s!=="combobox"&&x(T.target.value);},R=function(T){var L=T.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var z=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(z,$.current);}$.current=null,x(L);},k=function(T){var L=T.clipboardData,z=L.getData("text");$.current=z;},_=function(T){var L=T.target;if(L!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},I=function(T){var L=y();T.target!==r.current&&!L&&s!=="combobox"&&T.preventDefault(),(s!=="combobox"&&(!l||!L)||!a)&&(a&&u!==!1&&d("",!0,!1),h());},P={inputRef:r,onInputKeyDown:E,onInputMouseDown:S,onInputChange:R,onInputPaste:k,onInputCompositionStart:w,onInputCompositionEnd:O},M=s==="multiple"||s==="tags"?f__namespace.createElement(A6,Oe({},t,P)):f__namespace.createElement(L6,Oe({},t,P));return f__namespace.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:_,onMouseDown:I},M)},wS=f__namespace.forwardRef(z6);wS.displayName="Selector";var j6=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],B6=function(t){var n=t===!0?0:1;return {bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},H6=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.containerWidth,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,m=t.direction,h=m===void 0?"ltr":m,g=t.placement,v=t.builtinPlacements,p=t.dropdownMatchSelectWidth,b=t.dropdownRender,y=t.dropdownAlign,C=t.getPopupContainer,E=t.empty,S=t.getTriggerDOMNode,$=t.onPopupVisibleChange,x=t.onPopupMouseEnter,w=et(t,j6),O="".concat(r,"-dropdown"),R=a;b&&(R=b(a));var k=f__namespace.useMemo(function(){return v||B6(p)},[v,p]),_=l?"".concat(O,"-").concat(l):c,I=f__namespace.useRef(null);f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return I.current}}});var P=ee({minWidth:s},u);return typeof p=="number"?P.width=p:p&&(P.width=s),f__namespace.createElement(Nc,Oe({},w,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:g||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:O,popupTransitionName:_,popup:f__namespace.createElement("div",{ref:I,onMouseEnter:x},R),popupAlign:y,popupVisible:o,getPopupContainer:C,popupClassName:F(d,Q({},"".concat(O,"-empty"),E)),popupStyle:P,getTriggerDOMNode:S,onPopupVisibleChange:$}),i)},xS=f__namespace.forwardRef(H6);xS.displayName="SelectTrigger";function mb(e,t){var n=e.key,r;return "value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function $S(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function F6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=$S(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,m){d.forEach(function(h){if(m||!(l in h)){var g=h[s];o.push({key:mb(h,o.length),groupOption:m,data:h,label:h[a],value:g});}else {var v=h[c];v===void 0&&r&&(v=h.label),o.push({key:mb(h,o.length),group:!0,data:h,label:v}),u(h[l],!0);}});}return u(e,!1),o}function Bf(e){var t=ee({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Rr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function W6(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=Dy(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,m){return [].concat(Qe(d),Qe(r(m,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}function V6(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=f.useMemo(function(){if(at(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=f.useMemo(function(){return !!(!i&&r&&(n.length||a)&&!(s==="combobox"&&a===""))},[r,i,n.length,a,s]);return {allowClear:c,clearIcon:f.createElement(iu,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var U6=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],G6=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Hf(e){return e==="tags"||e==="multiple"}var K6=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,m=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,p=e.onClear,b=e.mode,y=e.disabled,C=e.loading,E=e.getInputElement,S=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,R=e.onActiveValueChange,k=e.activeDescendantId,_=e.searchValue,I=e.autoClearSearchValue,P=e.onSearch,M=e.onSearchSplit,N=e.tokenSeparators,T=e.allowClear,L=e.suffixIcon,z=e.clearIcon,H=e.OptionList,W=e.animation,B=e.transitionName,V=e.dropdownStyle,j=e.dropdownClassName,K=e.dropdownMatchSelectWidth,q=e.dropdownRender,G=e.dropdownAlign,U=e.placement,Y=e.builtinPlacements,oe=e.getPopupContainer,ue=e.showAction,he=ue===void 0?[]:ue,re=e.onFocus,ie=e.onBlur,ce=e.onKeyUp,X=e.onKeyDown,ne=e.onMouseDown,J=et(e,U6),de=Hf(b),fe=(s!==void 0?s:de)||b==="combobox",be=ee({},J);G6.forEach(function(je){delete be[je];}),u==null||u.forEach(function(je){delete be[je];});var Re=f__namespace.useState(!1),Be=Z(Re,2),_e=Be[0],ae=Be[1];f__namespace.useEffect(function(){ae(Mc());},[]);var ge=f__namespace.useRef(null),pe=f__namespace.useRef(null),we=f__namespace.useRef(null),De=f__namespace.useRef(null),Ae=f__namespace.useRef(null),xe=S6(),Ie=Z(xe,3),Fe=Ie[0],$e=Ie[1],Ne=Ie[2];f__namespace.useImperativeHandle(t,function(){var je,He;return {focus:(je=De.current)===null||je===void 0?void 0:je.focus,blur:(He=De.current)===null||He===void 0?void 0:He.blur,scrollTo:function(kt){var Pt;return (Pt=Ae.current)===null||Pt===void 0?void 0:Pt.scrollTo(kt)}}});var nt=f__namespace.useMemo(function(){var je;if(b!=="combobox")return _;var He=(je=d[0])===null||je===void 0?void 0:je.value;return typeof He=="string"||typeof He=="number"?String(He):""},[_,b,d]),ct=b==="combobox"&&typeof E=="function"&&E()||null,qe=typeof S=="function"&&S(),dt=cs(pe,qe==null||(n=qe.props)===null||n===void 0?void 0:n.ref),Pe=f__namespace.useState(!1),me=Z(Pe,2),Se=me[0],te=me[1];Wt(function(){te(!0);},[]);var ye=Dt(!1,{defaultValue:x,value:$}),Te=Z(ye,2),Ye=Te[0],Le=Te[1],ve=Se?Ye:!1,Ee=!v&&h;(y||Ee&&ve&&b==="combobox")&&(ve=!1);var Me=Ee?!1:ve,ke=f__namespace.useCallback(function(je){var He=je!==void 0?je:!ve;y||(Le(He),ve!==He&&(w==null||w(He)));},[y,ve,Le,w]),st=f__namespace.useMemo(function(){return (N||[]).some(function(je){return [` `,`\r `].includes(je)})},[N]),tt=function(He,bt,kt){var Pt=!0,tn=He;R==null||R(null);var In=kt?null:W6(He,N);return b!=="combobox"&&In&&(tn="",M==null||M(In),ke(!1),Pt=!1),P&&nt!==tn&&P(tn,{source:bt?"typing":"effect"}),Pt},xt=function(He){!He||!He.trim()||P(He,{source:"submit"});};f__namespace.useEffect(function(){!ve&&!de&&b!=="combobox"&&tt("",!1,!1);},[ve]),f__namespace.useEffect(function(){Ye&&y&&Le(!1),y&&$e(!1);},[y]);var Ht=yS(),Ft=Z(Ht,2),Ke=Ft[0],Ze=Ft[1],Ue=function(He){var bt=Ke(),kt=He.which;if(kt===le.ENTER&&(b!=="combobox"&&He.preventDefault(),ve||ke(!0)),Ze(!!nt),kt===le.BACKSPACE&&!bt&&de&&!nt&&d.length){for(var Pt=Qe(d),tn=null,In=Pt.length-1;In>=0;In-=1){var Mr=Pt[In];if(!Mr.disabled){Pt.splice(In,1),tn=Mr;break}}tn&&m(Pt,{type:"remove",values:[tn]});}for(var Gn=arguments.length,Pn=new Array(Gn>1?Gn-1:0),Zt=1;Zt1?bt-1:0),Pt=1;Pt1?In-1:0),Gn=1;Gn1&&arguments[1]!==void 0?arguments[1]:!1;return tr(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=et(s,ez);return t||!i?tz(n):ee(ee({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:ES(l)})}).filter(function(n){return n})}function nz(e,t,n,r,o){return f__namespace.useMemo(function(){var i=e,a=!e;a&&(i=ES(t));var s=new Map,l=new Map,c=function(m,h,g){g&&typeof g=="string"&&m.set(h[g],h);};function u(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;hl},r}return wn(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(),m=this.showScroll(),h=m&&a,g=c==="rtl"?{left:0}:{right:0};return f__namespace.createElement("div",{ref:this.scrollbarRef,className:F("".concat(l,"-scrollbar"),Q({},"".concat(l,"-scrollbar-show"),m)),style:ee(ee({width:8,top:0,bottom:0},g),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f__namespace.createElement("div",{ref:this.thumbRef,className:F("".concat(l,"-scrollbar-thumb"),Q({},"".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 iz(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function az(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(iz,{key:d,setRef:function(h){return r(s,h)}},u)})}var sz=function(){function e(){Sn(this,e),this.maps=void 0,this.maps=Object.create(null);}return wn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function lz(e,t,n){var r=f__namespace.useState(0),o=Z(r,2),i=o[0],a=o[1],s=f.useRef(new Map),l=f.useRef(new sz),c=f.useRef();function u(){pt.cancel(c.current);}function d(){u(),c.current=pt(function(){s.current.forEach(function(h,g){if(h&&h.offsetParent){var v=Rl(h),p=v.offsetHeight;l.current.get(g)!==p&&l.current.set(g,v.offsetHeight);}}),a(function(h){return h+1});});}function m(h,g){var v=e(h),p=s.current.get(v);g?(s.current.set(v,g),d()):s.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h));}return f.useEffect(function(){return u},[]),[m,d,l.current,i]}function cz(e,t,n,r,o,i,a,s){var l=f__namespace.useRef();return function(c){if(c==null){s();return}if(pt.cancel(l.current),typeof c=="number")a(c);else if(c&&at(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=t.findIndex(function(v){return o(v)===c.key});var m=c.offset,h=m===void 0?0:m,g=function v(p,b){if(!(p<0||!e.current)){var y=e.current.clientHeight,C=!1,E=b;if(y){for(var S=b||d,$=0,x=0,w=0,O=Math.min(t.length,u),R=0;R<=O;R+=1){var k=o(t[R]);x=$;var _=n.get(k);w=x+(_===void 0?r:_),$=w,R===u&&_===void 0&&(C=!0);}var I=null;switch(S){case"top":I=x-h;break;case"bottom":I=w-y+h;break;default:{var P=e.current.scrollTop,M=P+y;xM&&(E="bottom");}}I!==null&&I!==e.current.scrollTop&&a(I);}l.current=pt(function(){C&&i(),v(p-1,E);},2);}};g(3);}}}function uz(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const IS=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 mz(e,t,n,r){var o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s=f.useRef(!1),l=IS(t,n);function c(d){if(e){pt.cancel(i.current);var m=d.deltaY;o.current+=m,a.current=m,!l(m)&&(fz||d.preventDefault(),i.current=pt(function(){var h=s.current?10:1;r(o.current*h),o.current=0;}));}}function u(d){e&&(s.current=d.detail===a.current);}return [c,u]}var hz=14/15;function gz(e,t,n){var r=f.useRef(!1),o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s,l=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageY),g=o.current-h;o.current=h,n(g)&&m.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){g*=hz,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},u=function(m){s(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),i.current=m.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));},Wt(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 vz=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],pz=[],bz={overflowY:"auto",overflowAnchor:"none"};function yz(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,m=e.itemKey,h=e.virtual,g=e.direction,v=e.component,p=v===void 0?"div":v,b=e.onScroll,y=e.onVisibleChange,C=e.innerProps,E=et(e,vz),S=!!(h!==!1&&i&&a),$=S&&u&&a*u.length>i,x=f.useState(0),w=Z(x,2),O=w[0],R=w[1],k=f.useState(!1),_=Z(k,2),I=_[0],P=_[1],M=F(r,Q({},"".concat(r,"-rtl"),g==="rtl"),o),N=u||pz,T=f.useRef(),L=f.useRef(),z=f.useRef(),H=f__namespace.useCallback(function($e){return typeof m=="function"?m($e):$e==null?void 0:$e[m]},[m]),W={getKey:H};function B($e){R(function(Ne){var nt;typeof $e=="function"?nt=$e(Ne):nt=$e;var ct=be(nt);return T.current.scrollTop=ct,ct});}var V=f.useRef({start:0,end:N.length}),j=f.useRef(),K=dz(N,H),q=Z(K,1),G=q[0];j.current=G;var U=lz(H,null,null),Y=Z(U,4),oe=Y[0],ue=Y[1],he=Y[2],re=Y[3],ie=f__namespace.useMemo(function(){if(!S)return {scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!$){var $e;return {scrollHeight:(($e=L.current)===null||$e===void 0?void 0:$e.offsetHeight)||0,start:0,end:N.length-1,offset:void 0}}for(var Ne=0,nt,ct,qe,dt=N.length,Pe=0;Pe=O&&nt===void 0&&(nt=Pe,ct=Ne),ye>O+i&&qe===void 0&&(qe=Pe),Ne=ye;}return nt===void 0&&(nt=0,ct=0,qe=Math.ceil(i/a)),qe===void 0&&(qe=N.length-1),qe=Math.min(qe+1,N.length),{scrollHeight:Ne,start:nt,end:qe,offset:ct}},[$,S,O,N,re,i]),ce=ie.scrollHeight,X=ie.start,ne=ie.end,J=ie.offset;V.current.start=X,V.current.end=ne;var de=ce-i,fe=f.useRef(de);fe.current=de;function be($e){var Ne=$e;return Number.isNaN(fe.current)||(Ne=Math.min(Ne,fe.current)),Ne=Math.max(Ne,0),Ne}var Re=O<=0,Be=O>=de,_e=IS(Re,Be);function ae($e){var Ne=$e;B(Ne);}function ge($e){var Ne=$e.currentTarget.scrollTop;Ne!==O&&B(Ne),b==null||b($e);}var pe=mz(S,Re,Be,function($e){B(function(Ne){var nt=Ne+$e;return nt});}),we=Z(pe,2),De=we[0],Ae=we[1];gz(S,T,function($e,Ne){return _e($e,Ne)?!1:(De({preventDefault:function(){},deltaY:$e}),!0)}),Wt(function(){function $e(Ne){S&&Ne.preventDefault();}return T.current.addEventListener("wheel",De),T.current.addEventListener("DOMMouseScroll",Ae),T.current.addEventListener("MozMousePixelScroll",$e),function(){T.current&&(T.current.removeEventListener("wheel",De),T.current.removeEventListener("DOMMouseScroll",Ae),T.current.removeEventListener("MozMousePixelScroll",$e));}},[S]);var xe=cz(T,N,he,a,H,ue,B,function(){var $e;($e=z.current)===null||$e===void 0||$e.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:xe}}),Wt(function(){if(y){var $e=N.slice(X,ne+1);y($e,N);}},[X,ne,N]);var Ie=az(N,X,ne,oe,d,W),Fe=null;return i&&(Fe=ee(Q({},l?"height":"maxHeight",i),bz),S&&(Fe.overflowY="hidden",I&&(Fe.pointerEvents="none"))),f__namespace.createElement("div",Oe({style:ee(ee({},c),{},{position:"relative"}),className:M},E),f__namespace.createElement(p,{className:"".concat(r,"-holder"),style:Fe,ref:T,onScroll:ge},f__namespace.createElement(OS,{prefixCls:r,height:ce,offset:J,onInnerResize:ue,ref:L,innerProps:C},Ie)),S&&f__namespace.createElement(oz,{ref:z,prefixCls:r,scrollTop:O,height:i,scrollHeight:ce,count:N.length,direction:g,onScroll:ae,onStartMove:function(){P(!0);},onStopMove:function(){P(!1);}}))}var PS=f__namespace.forwardRef(yz);PS.displayName="List";var RS=f__namespace.createContext(null);function Cz(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var Sz=["disabled","title","children","style","className"];function pb(e){return typeof e=="string"||typeof e=="number"}var wz=function(t,n){var r=C6(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,h=f__namespace.useContext(RS),g=h.flattenOptions,v=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,y=h.menuItemSelectedIcon,C=h.rawValues,E=h.fieldNames,S=h.virtual,$=h.direction,x=h.listHeight,w=h.listItemHeight,O="".concat(o,"-item"),R=as(function(){return g},[a,g],function(G,U){return U[0]&&G[1]!==U[1]}),k=f__namespace.useRef(null),_=function(U){U.preventDefault();},I=function(U){k.current&&k.current.scrollTo(typeof U=="number"?{index:U}:U);},P=function(U){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=R.length,ue=0;ue1&&arguments[1]!==void 0?arguments[1]:!1;L(U);var oe={source:Y?"keyboard":"mouse"},ue=R[U];if(!ue){v(null,-1,oe);return}v(ue.value,U,oe);};f.useEffect(function(){z(p!==!1?P(0):-1);},[R.length,c]);var H=f__namespace.useCallback(function(G){return C.has(G)&&l!=="combobox"},[l,Qe(C).toString(),C.size]);f.useEffect(function(){var G=setTimeout(function(){if(!s&&a&&C.size===1){var Y=Array.from(C)[0],oe=R.findIndex(function(ue){var he=ue.data;return he.value===Y});oe!==-1&&(z(oe),I(oe));}});if(a){var U;(U=k.current)===null||U===void 0||U.scrollTo(void 0);}return function(){return clearTimeout(G)}},[a,c,g.length]);var W=function(U){U!==void 0&&b(U,{selected:!C.has(U)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(U){var Y=U.which,oe=U.ctrlKey;switch(Y){case le.N:case le.P:case le.UP:case le.DOWN:{var ue=0;if(Y===le.UP?ue=-1:Y===le.DOWN?ue=1:Cz()&&oe&&(Y===le.N?ue=1:Y===le.P&&(ue=-1)),ue!==0){var he=P(T+ue,ue);I(he),z(he,!0);}break}case le.ENTER:{var re=R[T];re&&!re.data.disabled?W(re.value):W(void 0),a&&U.preventDefault();break}case le.ESC:u(!1),a&&U.stopPropagation();}},onKeyUp:function(){},scrollTo:function(U){I(U);}}}),R.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(O,"-empty"),onMouseDown:_},d);var B=Object.keys(E).map(function(G){return E[G]}),V=function(U){return U.label};function j(G,U){var Y=G.group;return {role:Y?"presentation":"option",id:"".concat(i,"_list_").concat(U)}}var K=function(U){var Y=R[U];if(!Y)return null;var oe=Y.data||{},ue=oe.value,he=Y.group,re=Di(oe,!0),ie=V(Y);return Y?f__namespace.createElement("div",Oe({"aria-label":typeof ie=="string"&&!he?ie:null},re,{key:U},j(Y,U),{"aria-selected":H(ue)}),ue):null},q={role:"listbox",id:"".concat(i,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,S&&f__namespace.createElement("div",Oe({},q,{style:{height:0,width:0,overflow:"hidden"}}),K(T-1),K(T),K(T+1)),f__namespace.createElement(PS,{itemKey:"key",ref:k,data:R,height:x,itemHeight:w,fullHeight:!1,onMouseDown:_,onScroll:m,virtual:S,direction:$,innerProps:S?null:q},function(G,U){var Y,oe=G.group,ue=G.groupOption,he=G.data,re=G.label,ie=G.value,ce=he.key;if(oe){var X,ne=(X=he.title)!==null&&X!==void 0?X:pb(re)?re.toString():void 0;return f__namespace.createElement("div",{className:F(O,"".concat(O,"-group")),title:ne},re!==void 0?re:ce)}var J=he.disabled,de=he.title;he.children;var fe=he.style,be=he.className,Re=et(he,Sz),Be=Cn(Re,B),_e=H(ie),ae="".concat(O,"-option"),ge=F(O,ae,be,(Y={},Q(Y,"".concat(ae,"-grouped"),ue),Q(Y,"".concat(ae,"-active"),T===U&&!J),Q(Y,"".concat(ae,"-disabled"),J),Q(Y,"".concat(ae,"-selected"),_e),Y)),pe=V(G),we=!y||typeof y=="function"||_e,De=typeof pe=="number"?pe:pe||ie,Ae=pb(De)?De.toString():void 0;return de!==void 0&&(Ae=de),f__namespace.createElement("div",Oe({},Di(Be),S?{}:j(G,U),{"aria-selected":_e,className:ge,title:Ae,onMouseMove:function(){T===U||J||z(U);},onClick:function(){J||W(ie);},style:fe}),f__namespace.createElement("div",{className:"".concat(ae,"-content")},De),f__namespace.isValidElement(y)||_e,we&&f__namespace.createElement(iu,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:_e}},_e?"✓":null))}))},_S=f__namespace.forwardRef(wz);_S.displayName="OptionList";var xz=["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"],$z=["inputValue"];function Ez(e){return !e||at(e)!=="object"}var Oz=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,m=d===void 0?!0:d,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,p=v===void 0?!0:v,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,E=e.optionLabelProp,S=e.options,$=e.children,x=e.defaultActiveFirstOption,w=e.menuItemSelectedIcon,O=e.virtual,R=e.direction,k=e.listHeight,_=k===void 0?200:k,I=e.listItemHeight,P=I===void 0?20:I,M=e.value,N=e.defaultValue,T=e.labelInValue,L=e.onChange,z=et(e,xz),H=Q6(n),W=Hf(r),B=!!(!S&&$),V=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),j=f__namespace.useMemo(function(){return $S(s,B)},[JSON.stringify(s),B]),K=Dt("",{value:c!==void 0?c:l,postState:function(Ee){return Ee||""}}),q=Z(K,2),G=q[0],U=q[1],Y=nz(S,$,j,C,E),oe=Y.valueOptions,ue=Y.labelOptions,he=Y.options,re=f__namespace.useCallback(function(ve){var Ee=CS(ve);return Ee.map(function(Me){var ke,st,tt,xt,Ht;if(Ez(Me))ke=Me;else {var Ft;tt=Me.key,st=Me.label,ke=(Ft=Me.value)!==null&&Ft!==void 0?Ft:tt;}var Ke=oe.get(ke);if(Ke){var Ze;st===void 0&&(st=Ke==null?void 0:Ke[E||j.label]),tt===void 0&&(tt=(Ze=Ke==null?void 0:Ke.key)!==null&&Ze!==void 0?Ze:ke),xt=Ke==null?void 0:Ke.disabled,Ht=Ke==null?void 0:Ke.title;}return {label:st,value:ke,key:tt,disabled:xt,title:Ht}})},[j,E,oe]),ie=Dt(N,{value:M}),ce=Z(ie,2),X=ce[0],ne=ce[1],J=f__namespace.useMemo(function(){var ve,Ee=re(X);return r==="combobox"&&M6((ve=Ee[0])===null||ve===void 0?void 0:ve.value)?[]:Ee},[X,re,r]),de=X6(J,oe),fe=Z(de,2),be=fe[0],Re=fe[1],Be=f__namespace.useMemo(function(){if(!r&&be.length===1){var ve=be[0];if(ve.value===null&&(ve.label===null||ve.label===void 0))return []}return be.map(function(Ee){var Me;return ee(ee({},Ee),{},{label:(Me=Ee.label)!==null&&Me!==void 0?Me:Ee.value})})},[r,be]),_e=f__namespace.useMemo(function(){return new Set(be.map(function(ve){return ve.value}))},[be]);f__namespace.useEffect(function(){if(r==="combobox"){var ve,Ee=(ve=be[0])===null||ve===void 0?void 0:ve.value;U(T6(Ee)?String(Ee):"");}},[be]);var ae=gb(function(ve,Ee){var Me,ke=Ee??ve;return Me={},Q(Me,j.value,ve),Q(Me,j.label,ke),Me}),ge=f__namespace.useMemo(function(){if(r!=="tags")return he;var ve=Qe(he),Ee=function(ke){return oe.has(ke)};return Qe(be).sort(function(Me,ke){return Me.value2&&arguments[2]!==void 0?arguments[2]:{},ke=Me.source,st=ke===void 0?"keyboard":ke;dt(Ee),a&&r==="combobox"&&ve!==null&&st==="keyboard"&&Ne(String(ve));},[a,r]),Se=function(Ee,Me,ke){var st=function(){var Tt,Xe=Re(Ee);return [T?{label:Xe==null?void 0:Xe[j.label],value:Ee,key:(Tt=Xe==null?void 0:Xe.key)!==null&&Tt!==void 0?Tt:Ee}:Ee,Bf(Xe)]};if(Me&&h){var tt=st(),xt=Z(tt,2),Ht=xt[0],Ft=xt[1];h(Ht,Ft);}else if(!Me&&g&&ke!=="clear"){var Ke=st(),Ze=Z(Ke,2),Ue=Ze[0],mt=Ze[1];g(Ue,mt);}},te=gb(function(ve,Ee){var Me,ke=W?Ee.selected:!0;ke?Me=W?[].concat(Qe(be),[ve]):[ve]:Me=be.filter(function(st){return st.value!==ve}),xe(Me),Se(ve,ke),r==="combobox"?Ne(""):(!Hf||m)&&(U(""),Ne(""));}),ye=function(Ee,Me){xe(Ee);var ke=Me.type,st=Me.values;(ke==="remove"||ke==="clear")&&st.forEach(function(tt){Se(tt.value,!1,ke);});},Te=function(Ee,Me){if(U(Ee),Ne(null),Me.source==="submit"){var ke=(Ee||"").trim();if(ke){var st=Array.from(new Set([].concat(Qe(_e),[ke])));xe(st),Se(ke,!0),U("");}return}Me.source!=="blur"&&(r==="combobox"&&xe(Ee),u==null||u(Ee));},Ye=function(Ee){var Me=Ee;r!=="tags"&&(Me=Ee.map(function(st){var tt=ue.get(st);return tt==null?void 0:tt.value}).filter(function(st){return st!==void 0}));var ke=Array.from(new Set([].concat(Qe(_e),Qe(Me))));xe(ke),ke.forEach(function(st){Se(st,!0);});},Le=f__namespace.useMemo(function(){var ve=O!==!1&&p!==!1;return ee(ee({},Y),{},{flattenOptions:Ae,onActiveValue:me,defaultActiveFirstOption:Pe,onSelect:te,menuItemSelectedIcon:w,rawValues:_e,fieldNames:j,virtual:ve,direction:R,listHeight:_,listItemHeight:P,childrenAsData:B})},[Y,Ae,me,Pe,te,w,_e,j,O,p,_,P,B]);return f__namespace.createElement(RS.Provider,{value:Le},f__namespace.createElement(K6,Oe({},z,{id:H,prefixCls:i,ref:t,omitDomProps:$z,mode:r,displayValues:Be,onDisplayValuesChange:ye,direction:R,searchValue:G,onSearch:Te,autoClearSearchValue:m,onSearchSplit:Ye,dropdownMatchSelectWidth:p,OptionList:_S,emptyOptions:!Ae.length,activeValue:$e,activeDescendantId:"".concat(H,"_list_").concat(qe)})))}),Gh=Oz;Gh.Option=Uh;Gh.OptGroup=Vh;const Iz=()=>{const[,e]=Kr(),n=new Vt(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"}))))},Pz=Iz,Rz=()=>{const[,e]=Kr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=f.useMemo(()=>({borderColor:new Vt(t).onBackground(o).toHexShortString(),shadowColor:new Vt(n).onBackground(o).toHexShortString(),contentColor:new Vt(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}))))},_z=Rz,Tz=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}}}}},Mz=Bt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=ut(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [Tz(r)]});var Nz=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=TS,description:i,children:a,imageStyle:s,style:l}=e,c=Nz(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:m}=f__namespace.useContext(Je),h=u("empty",r),[g,v]=Mz(h),[p]=Zi("Empty"),b=typeof i<"u"?i:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let C=null;return typeof o=="string"?C=f__namespace.createElement("img",{alt:y,src:o}):C=o,g(f__namespace.createElement("div",Object.assign({className:F(v,h,m==null?void 0:m.className,{[`${h}-normal`]:o===MS,[`${h}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),l)},c),f__namespace.createElement("div",{className:`${h}-image`,style:s},C),b&&f__namespace.createElement("div",{className:`${h}-description`},b),a&&f__namespace.createElement("div",{className:`${h}-footer`},a)))};Kh.PRESENTED_IMAGE_DEFAULT=TS;Kh.PRESENTED_IMAGE_SIMPLE=MS;const ma=Kh,kz=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(Je),r=n("empty");switch(t){case"Table":case"List":return f.createElement(ma,{image:ma.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(ma,{image:ma.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(ma,null)}},NS=kz,Az=e=>{const{controlPaddingHorizontal:t,controlHeight:n,fontSize:r,lineHeight:o}=e;return {position:"relative",display:"block",minHeight:n,padding:`${(n-r*o)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:o,boxSizing:"border-box"}},Lz=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Rt(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,[` ${o}${s}bottomLeft, ${i}${s}bottomLeft `]:{animationName:oh},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight `]:{animationName:ah},[`${a}${s}bottomLeft`]:{animationName:ih},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:sh},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Az(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Do),"&-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"}})},mo(e,"slide-up"),mo(e,"slide-down"),kl(e,"move-up"),kl(e,"move-down")]},Dz=Lz,fi=2,kS=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function yd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=kS(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-fi}px ${fi*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:`${fi}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:fi,marginBottom:fi,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:fi*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({},Go()),{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,"\n &-input,\n &-mirror\n ":{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 zz=e=>{const{componentCls:t}=e,n=ut(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ut(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=kS(e);return [yd(e),yd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},yd(r,"lg")]},jz=zz;function Cd(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({},Rt(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 Bz(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [Cd(e),Cd(ut(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}}}},Cd(ut(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Hz=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"}}}},Sd=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}})}}},Fz=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"}}}},Wz=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},Hz(e)),Fz(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Do),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Do),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},Go()),{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.paddingXS}}}},Vz=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%"}}},Wz(e),Bz(e),jz(e),Dz(e),{[`${t}-rtl`]:{direction:"rtl"}},Sd(t,ut(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Sd(`${t}-status-error`,ut(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Sd(`${t}-status-warning`,ut(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Uc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Uz=Bt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ut(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [Vz(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Gz=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};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 Kz(e,t){return e||Gz(t)}function Xz(e,t){return t!==void 0?t:e!==null}var qz={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 Yz=qz;var Zz=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:Yz}))};const Qz=f__namespace.forwardRef(Zz);var Jz={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const ej=Jz;var tj=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:ej}))};const Xh=f__namespace.forwardRef(tj);var nj={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 rj=nj;var oj=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:rj}))};const qh=f__namespace.forwardRef(oj);function ij(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:m}=e;const h=n??f__namespace.createElement(Xh,null),g=y=>t===null&&!s&&!d?null:f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&y,s&&u);let v=null;if(t!==void 0)v=g(t);else if(i)v=g(f__namespace.createElement(fh,{spin:!0}));else {const y=`${l}-suffix`;v=C=>{let{open:E,showSearch:S}=C;return g(E&&S?f__namespace.createElement(qh,{className:y}):f__namespace.createElement(vh,{className:y}))};}let p=null;r!==void 0?p=r:a?p=f__namespace.createElement(Qz,null):p=null;let b=null;return o!==void 0?b=o:b=f__namespace.createElement(qc,null),{clearIcon:h,suffixIcon:v,itemIcon:p,removeIcon:b}}var aj=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:m=24,size:h,disabled:g,notFoundContent:v,status:p,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:C,direction:E,style:S,allowClear:$}=e,x=aj(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:w,getPrefixCls:O,renderEmpty:R,direction:k,virtual:_,popupMatchSelectWidth:I,popupOverflow:P,select:M}=f__namespace.useContext(Je),N=O("select",r),T=O(),L=E??k,{compactSize:z,compactItemClassnames:H}=Ji(N,L),[W,B]=Uz(N),V=f__namespace.useMemo(()=>{const{mode:ge}=x;if(ge!=="combobox")return ge===AS?"combobox":ge},[x.mode]),j=V==="multiple"||V==="tags",K=Xz(x.suffixIcon,x.showArrow),q=(n=C??y)!==null&&n!==void 0?n:I,{status:G,hasFeedback:U,isFormItemInput:Y,feedbackIcon:oe}=f__namespace.useContext(nr),ue=hs(G,p);let he;v!==void 0?he=v:V==="combobox"?he=null:he=(R==null?void 0:R("Select"))||f__namespace.createElement(NS,{componentName:"Select"});const{suffixIcon:re,itemIcon:ie,removeIcon:ce,clearIcon:X}=ij(Object.assign(Object.assign({},x),{multiple:j,hasFeedback:U,feedbackIcon:oe,showSuffixIcon:K,prefixCls:N,showArrow:x.showArrow,componentName:"Select"})),ne=$===!0?{clearIcon:X}:$,J=Cn(x,["suffixIcon","itemIcon"]),de=F(l||c,{[`${N}-dropdown-${L}`]:L==="rtl"},a,B),fe=Wn(ge=>{var pe;return (pe=h??z)!==null&&pe!==void 0?pe:ge}),be=f__namespace.useContext(_r),Re=g??be,Be=F({[`${N}-lg`]:fe==="large",[`${N}-sm`]:fe==="small",[`${N}-rtl`]:L==="rtl",[`${N}-borderless`]:!o,[`${N}-in-form-item`]:Y},dr(N,ue,U),H,M==null?void 0:M.className,i,a,B),_e=f__namespace.useMemo(()=>d!==void 0?d:L==="rtl"?"bottomRight":"bottomLeft",[d,L]),ae=Kz(b,P);return W(f__namespace.createElement(Gh,Object.assign({ref:t,virtual:_,showSearch:M==null?void 0:M.showSearch},J,{style:Object.assign(Object.assign({},M==null?void 0:M.style),S),dropdownMatchSelectWidth:q,builtinPlacements:ae,transitionName:kc(T,"slide-up",x.transitionName),listHeight:u,listItemHeight:m,mode:V,prefixCls:N,placement:_e,direction:L,suffixIcon:re,menuItemSelectedIcon:ie,removeIcon:ce,allowClear:ne,notFoundContent:he,className:Be,getPopupContainer:s||w,dropdownClassName:de,disabled:Re})))},ra=f__namespace.forwardRef(sj),lj=Hh(ra);ra.SECRET_COMBOBOX_MODE_DO_NOT_USE=AS;ra.Option=Uh;ra.OptGroup=Vh;ra._InternalPanelDoNotUseOrYouWillBeFired=lj;const bs=ra;var Lr;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(Lr||(Lr={}));const cj=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(Nf,{className:F(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},Ao=cj,uj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=f.useState(bn(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=bn(c);n||a(u),r==null||r(u);};return f.createElement(Ao,{value:Wl(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},dj=uj,fj=e=>{const{getPrefixCls:t,direction:n}=f.useContext(Je),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=xh(a),c=F(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=f.useContext(nr),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(nr.Provider,{value:d},e.children)))},mj=fj;function LS(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 hj(e){return !!(e.prefix||e.suffix||e.allowClear)}var gj=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;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:m,addonBefore:h,className:g,style:v,styles:p,rootClassName:b,onChange:y,classNames:C}=e,E=gj(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:S,direction:$,input:x}=f.useContext(Je),w=S("input",r),O=f.useRef(null),[R,k]=xh(w),{compactSize:_,compactItemClassnames:I}=Ji(w,$),P=Wn(Y=>{var oe;return (oe=a??_)!==null&&oe!==void 0?oe:Y}),M=f.useContext(_r),N=s??M,{status:T,hasFeedback:L,feedbackIcon:z}=f.useContext(nr),H=hs(T,i),W=hj(e)||!!L,B=f.useRef(W);f.useEffect(()=>{W&&B.current,B.current=W;},[W]);const V=LS(O,!0),j=Y=>{V(),l==null||l(Y);},K=Y=>{V(),c==null||c(Y);},q=Y=>{V(),y==null||y(Y);},G=(L||u)&&f.createElement(f.Fragment,null,u,L&&z);let U;return typeof d=="object"&&(d!=null&&d.clearIcon)?U=d:d&&(U={clearIcon:f.createElement(Xh,null)}),R(f.createElement(iA,Object.assign({ref:xn(t,O),prefixCls:w,autoComplete:x==null?void 0:x.autoComplete},E,{disabled:N,onBlur:j,onFocus:K,style:Object.assign(Object.assign({},x==null?void 0:x.style),v),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),p),suffix:G,allowClear:U,className:F(g,b,I,x==null?void 0:x.className),onChange:q,addonAfter:m&&f.createElement(Mi,null,f.createElement(Xa,{override:!0,status:!0},m)),addonBefore:h&&f.createElement(Mi,null,f.createElement(Xa,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},C),x==null?void 0:x.classNames),{input:F({[`${w}-sm`]:P==="small",[`${w}-lg`]:P==="large",[`${w}-rtl`]:$==="rtl",[`${w}-borderless`]:!o},!W&&dr(w,H),C==null?void 0:C.input,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.input,k)}),classes:{affixWrapper:F({[`${w}-affix-wrapper-sm`]:P==="small",[`${w}-affix-wrapper-lg`]:P==="large",[`${w}-affix-wrapper-rtl`]:$==="rtl",[`${w}-affix-wrapper-borderless`]:!o},dr(`${w}-affix-wrapper`,H,L),k),wrapper:F({[`${w}-group-rtl`]:$==="rtl"},k),group:F({[`${w}-group-wrapper-sm`]:P==="small",[`${w}-group-wrapper-lg`]:P==="large",[`${w}-group-wrapper-rtl`]:$==="rtl",[`${w}-group-wrapper-disabled`]:N},dr(`${w}-group-wrapper`,H,L),k)}})))}),Yh=pj;var bj={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 yj=bj;var Cj=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:yj}))};const Sj=f__namespace.forwardRef(Cj);var wj={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 xj=wj;var $j=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:xj}))};const Ej=f__namespace.forwardRef($j);var Oj=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(Ej,null):f__namespace.createElement(Sj,null),Pj={click:"onClick",hover:"onMouseOver"},Rj=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=LS(a),l=()=>{const{disabled:S}=e;S||(o&&s(),i($=>{var x;const w=!$;return typeof n=="object"&&((x=n.onVisibleChange)===null||x===void 0||x.call(n,w)),w}));},c=S=>{const{action:$="click",iconRender:x=Ij}=e,w=Pj[$]||"",O=x(o),R={[w]:l,className:`${S}-icon`,key:"passwordIcon",onMouseDown:k=>{k.preventDefault();},onMouseUp:k=>{k.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(O)?O:f__namespace.createElement("span",null,O),R)},{className:u,prefixCls:d,inputPrefixCls:m,size:h}=e,g=Oj(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=f__namespace.useContext(Je),p=v("input",m),b=v("input-password",d),y=n&&c(b),C=F(b,u,{[`${b}-${h}`]:!!h}),E=Object.assign(Object.assign({},Cn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:y});return h&&(E.size=h),f__namespace.createElement(Yh,Object.assign({ref:xn(t,a)},E))}),_j=Rj;var Tj=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:m,onCompositionStart:h,onCompositionEnd:g}=e,v=Tj(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(Je),y=f__namespace.useRef(!1),C=p("input-search",n),E=p("input",r),{compactSize:S}=Ji(C,b),$=Wn(H=>{var W;return (W=i??S)!==null&&W!==void 0?W:H}),x=f__namespace.useRef(null),w=H=>{H&&H.target&&H.type==="click"&&d&&d(H.target.value,H),m&&m(H);},O=H=>{var W;document.activeElement===((W=x.current)===null||W===void 0?void 0:W.input)&&H.preventDefault();},R=H=>{var W,B;d&&d((B=(W=x.current)===null||W===void 0?void 0:W.input)===null||B===void 0?void 0:B.value,H);},k=H=>{y.current||c||R(H);},_=typeof s=="boolean"?f__namespace.createElement(qh,null):null,I=`${C}-button`;let P;const M=s||{},N=M.type&&M.type.__ANT_BUTTON===!0;N||M.type==="button"?P=yn(M,Object.assign({onMouseDown:O,onClick:H=>{var W,B;(B=(W=M==null?void 0:M.props)===null||W===void 0?void 0:W.onClick)===null||B===void 0||B.call(W,H),R(H);},key:"enterButton"},N?{className:I,size:$}:{})):P=f__namespace.createElement(Xt,{className:I,type:s?"primary":void 0,size:$,disabled:u,key:"enterButton",onMouseDown:O,onClick:R,loading:c,icon:_},s),l&&(P=[P,yn(l,{key:"addonAfter"})]);const T=F(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${$}`]:!!$,[`${C}-with-button`]:!!s},o),L=H=>{y.current=!0,h==null||h(H);},z=H=>{y.current=!1,g==null||g(H);};return f__namespace.createElement(Yh,Object.assign({ref:xn(x,t),onPressEnter:k},v,{size:$,onCompositionStart:L,onCompositionEnd:z,prefixCls:E,addonAfter:P,suffix:a,onChange:w,className:T,disabled:u}))}),Nj=Mj;var kj=` 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; `,Aj=["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={},Xn;function Lj(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=Aj.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 Dj(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;Xn||(Xn=document.createElement("textarea"),Xn.setAttribute("tab-index","-1"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn)),e.getAttribute("wrap")?Xn.setAttribute("wrap",e.getAttribute("wrap")):Xn.removeAttribute("wrap");var o=Lj(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Xn.setAttribute("style","".concat(l,";").concat(kj)),Xn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,m=Xn.scrollHeight;if(s==="border-box"?m+=a:s==="content-box"&&(m-=i),n!==null||r!==null){Xn.value=" ";var h=Xn.scrollHeight-i;n!==null&&(c=h*n,s==="border-box"&&(c=c+i+a),m=Math.max(c,m)),r!==null&&(u=h*r,s==="border-box"&&(u=u+i+a),d=m>u?"":"hidden",m=Math.min(u,m));}var g={height:m,overflowY:d,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var zj=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xd=0,$d=1,Ed=2,jj=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 m=et(n,zj),h=Dt(o,{value:i,postState:function(j){return j??""}}),g=Z(h,2),v=g[0],p=g[1],b=function(j){p(j.target.value),d==null||d(j);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=f__namespace.useMemo(function(){return a&&at(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=Z(C,2),S=E[0],$=E[1],x=!!a,w=function(){try{if(document.activeElement===y.current){var j=y.current,K=j.selectionStart,q=j.selectionEnd,G=j.scrollTop;y.current.setSelectionRange(K,q),y.current.scrollTop=G;}}catch{}},O=f__namespace.useState(Ed),R=Z(O,2),k=R[0],_=R[1],I=f__namespace.useState(),P=Z(I,2),M=P[0],N=P[1],T=function(){_(xd);};Wt(function(){x&&T();},[i,S,$,x]),Wt(function(){if(k===xd)_($d);else if(k===$d){var V=Dj(y.current,!1,S,$);_(Ed),N(V);}else w();},[k]);var L=f__namespace.useRef(),z=function(){pt.cancel(L.current);},H=function(j){k===Ed&&(s==null||s(j),a&&(z(),L.current=pt(function(){T();})));};f__namespace.useEffect(function(){return z},[]);var W=x?M:null,B=ee(ee({},c),W);return (k===xd||k===$d)&&(B.overflowY="hidden",B.overflowX="hidden"),f__namespace.createElement(Or,{onResize:H,disabled:!(a||s)},f__namespace.createElement("textarea",Oe({},m,{ref:y,style:B,className:F(r,l,Q({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),Bj=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function DS(e,t){return Qe(e||"").slice(0,t).join("")}function bb(e,t,n,r){var o=n;return e?o=DS(n,r):Qe(t||"").lengthr&&(o=t),o}var Hj=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,m=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,v=e.classes,p=e.showCount,b=e.className,y=e.style,C=e.disabled,E=e.hidden,S=e.classNames,$=e.styles,x=e.onResize,w=et(e,Bj),O=Dt(r,{value:o,defaultValue:r}),R=Z(O,2),k=R[0],_=R[1],I=f.useRef(null),P=f.useState(!1),M=Z(P,2),N=M[0],T=M[1],L=f.useState(!1),z=Z(L,2),H=z[0],W=z[1],B=f.useRef(),V=f.useRef(0),j=f.useState(null),K=Z(j,2),q=K[0],G=K[1],U=function(){var ae;(ae=I.current)===null||ae===void 0||ae.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:I.current,focus:U,blur:function(){var ae;(ae=I.current)===null||ae===void 0||ae.textArea.blur();}}}),f.useEffect(function(){T(function(_e){return !C&&_e});},[C]);var Y=Number(c)>0,oe=function(ae){W(!0),B.current=k,V.current=ae.currentTarget.selectionStart,u==null||u(ae);},ue=function(ae){W(!1);var ge=ae.currentTarget.value;if(Y){var pe,we=V.current>=c+1||V.current===((pe=B.current)===null||pe===void 0?void 0:pe.length);ge=bb(we,B.current,ge,c);}ge!==k&&(_(ge),Oa(ae.currentTarget,ae,s,ge)),d==null||d(ae);},he=function(ae){var ge=ae.target.value;if(!H&&Y){var pe=ae.target.selectionStart>=c+1||ae.target.selectionStart===ge.length||!ae.target.selectionStart;ge=bb(pe,k,ge,c);}_(ge),Oa(ae.currentTarget,ae,s,ge);},re=function(ae){var ge=w.onPressEnter,pe=w.onKeyDown;ae.key==="Enter"&&ge&&ge(ae),pe==null||pe(ae);},ie=function(ae){T(!0),i==null||i(ae);},ce=function(ae){T(!1),a==null||a(ae);},X=function(ae){var ge;_(""),U(),Oa((ge=I.current)===null||ge===void 0?void 0:ge.textArea,ae,s);},ne=Mf(k);!H&&Y&&o==null&&(ne=DS(ne,c));var J=m,de;if(p){var fe=Qe(ne).length;at(p)==="object"?de=p.formatter({value:ne,count:fe,maxLength:c}):de="".concat(fe).concat(Y?" / ".concat(c):""),J=f.createElement(f.Fragment,null,J,f.createElement("span",{className:F("".concat(g,"-data-count"),S==null?void 0:S.count),style:$==null?void 0:$.count},de));}var be=function(ae){var ge;x==null||x(ae),(ge=I.current)!==null&&ge!==void 0&&ge.textArea.style.height&&G(!0);},Re=!w.autoSize&&!p&&!l,Be=f.createElement(yh,{value:ne,allowClear:l,handleReset:X,suffix:J,prefixCls:g,classes:{affixWrapper:F(v==null?void 0:v.affixWrapper,(n={},Q(n,"".concat(g,"-show-count"),p),Q(n,"".concat(g,"-textarea-allow-clear"),l),n))},disabled:C,focused:N,className:b,style:ee(ee({},y),q&&!Re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof de=="string"?de:void 0}},hidden:E,inputElement:f.createElement(jj,Oe({},w,{onKeyDown:re,onChange:he,onFocus:ie,onBlur:ce,onCompositionStart:oe,onCompositionEnd:ue,className:S==null?void 0:S.textarea,style:ee(ee({},$==null?void 0:$.textarea),{},{resize:y==null?void 0:y.resize}),disabled:C,prefixCls:g,onResize:be,ref:I}))});return Be}),Fj=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,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=Fj(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(Je),h=Wn(o),g=f__namespace.useContext(_r),v=i??g,{status:p,hasFeedback:b,feedbackIcon:y}=f__namespace.useContext(nr),C=hs(p,a),E=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var O;return {resizableTextArea:(O=E.current)===null||O===void 0?void 0:O.resizableTextArea,focus:R=>{var k,_;vj((_=(k=E.current)===null||k===void 0?void 0:k.resizableTextArea)===null||_===void 0?void 0:_.textArea,R);},blur:()=>{var R;return (R=E.current)===null||R===void 0?void 0:R.blur()}}});const S=d("input",n);let $;typeof s=="object"&&(s!=null&&s.clearIcon)?$=s:s&&($={clearIcon:f__namespace.createElement(Xh,null)});const[x,w]=xh(S);return x(f__namespace.createElement(Hj,Object.assign({},u,{disabled:v,allowClear:$,classes:{affixWrapper:F(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:m==="rtl",[`${S}-affix-wrapper-borderless`]:!r,[`${S}-affix-wrapper-sm`]:h==="small",[`${S}-affix-wrapper-lg`]:h==="large",[`${S}-textarea-show-count`]:l},dr(`${S}-affix-wrapper`,C),w)},classNames:Object.assign(Object.assign({},c),{textarea:F({[`${S}-borderless`]:!r,[`${S}-sm`]:h==="small",[`${S}-lg`]:h==="large"},dr(S,C),w,c==null?void 0:c.textarea)}),prefixCls:S,suffix:b&&f__namespace.createElement("span",{className:`${S}-textarea-suffix`},y),showCount:l,ref:E})))}),Vj=Wj,ys=Yh;ys.Group=mj;ys.Search=Nj;ys.TextArea=Vj;ys.Password=_j;const zS=ys,Uj=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,yb=e=>Uj.test(`#${e}`),Gj=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();yb(l)&&n&&a(ml(l));},[n]);const s=l=>{const c=l.target.value;a(ml(c)),yb(ml(c,!0))&&(r==null||r(bn(c)));};return f.createElement(zS,{className:o,value:i,prefix:"#",onChange:s,size:"small"})},Kj=Gj,Xj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=f.useState(bn(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=bn(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Ao,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>hl(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(Ao,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${hl(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(Ao,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${hl(l||0)}%`,onChange:l=>s(Number(l),"b")}))},qj=Xj,Yj=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=f.useState(bn(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const d=bn(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Ao,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(Ao,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(Ao,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},Zj=Yj,Qj=[Lr.hex,Lr.hsb,Lr.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),Jj=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a}=e,[s,l]=Dt(Lr.hex,{value:n,onChange:i}),c=`${t}-input`,u=m=>{l(m);},d=f.useMemo(()=>{const m={value:r,prefixCls:t,onChange:a};switch(s){case Lr.hsb:return f.createElement(qj,Object.assign({},m));case Lr.rgb:return f.createElement(Zj,Object.assign({},m));case Lr.hex:default:return f.createElement(Kj,Object.assign({},m))}},[s,t,r,a]);return f.createElement("div",{className:`${c}-container`},f.createElement(bs,{value:s,bordered:!1,getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:Qj}),f.createElement("div",{className:c},d),!o&&f.createElement(dj,{prefixCls:t,value:r,onChange:a}))},e8=Jj;var t8=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 e=f.useContext(gS),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:i,onChange:a,onClear:s,onChangeComplete:l}=e,c=t8(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return f.createElement(f.Fragment,null,r&&f.createElement(pS,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{a==null||a(u),s==null||s();}},c)),f.createElement(h6,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:i,onChange:(u,d)=>a==null?void 0:a(u,d,!0),onChangeComplete:l}),f.createElement(e8,Object.assign({value:o,onChange:a,prefixCls:t,disabledAlpha:i},c)))},Cb=n8;var r8={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 o8=r8;var i8=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:o8}))};const zi=f__namespace.forwardRef(i8);var jS=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=Z(u,2),m=d[0],h=d[1];return f.useEffect(function(){(o||l)&&h(!0);},[o,l]),m?f.createElement("div",{ref:t,className:F("".concat(r,"-content"),(n={},Q(n,"".concat(r,"-content-active"),l),Q(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});jS.displayName="PanelContent";var a8=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],BS=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,m=e.collapsible,h=e.accordion,g=e.panelKey,v=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,E=e.children,S=et(e,a8),$=m==="disabled",x=m==="header",w=m==="icon",O=v!=null&&typeof v!="boolean",R=function(){l==null||l(g);},k=function(T){(T.key==="Enter"||T.keyCode===le.ENTER||T.which===le.ENTER)&&R();},_=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});_&&(_=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?R:void 0},_));var I=F((n={},Q(n,"".concat(d,"-item"),!0),Q(n,"".concat(d,"-item-active"),s),Q(n,"".concat(d,"-item-disabled"),$),n),u),P=F((r={},Q(r,"".concat(d,"-header"),!0),Q(r,"headerClass",a),Q(r,"".concat(d,"-header-collapsible-only"),x),Q(r,"".concat(d,"-icon-collapsible-only"),w),r)),M={className:P,"aria-expanded":s,"aria-disabled":$,onKeyDown:k};return !x&&!w&&(M.onClick=R,M.role=h?"tab":"button",M.tabIndex=$?-1:0),f.createElement("div",Oe({},S,{ref:t,className:I}),f.createElement("div",M,i&&_,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?R:void 0},p),O&&f.createElement("div",{className:"".concat(d,"-extra")},v)),f.createElement(Xr,Oe({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(N,T){var L=N.className,z=N.style;return f.createElement(jS,{ref:T,prefixCls:d,className:L,style:z,isActive:s,forceRender:c,role:h?"tabpanel":void 0},E)}))}),s8=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],l8=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,m){var h=d.children,g=d.label,v=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,C=et(d,s8),E=String(v??m),S=p??i,$=y??a,x=function(R){S!=="disabled"&&(s(R),b==null||b(R));},w=!1;return o?w=l[0]===E:w=l.indexOf(E)>-1,f.createElement(BS,Oe({},C,{prefixCls:r,key:E,panelKey:E,isActive:w,accordion:o,openMotion:c,expandIcon:u,header:g,collapsible:S,onItemClick:x,destroyInactivePanel:$}),h)})},c8=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,m=t.key||String(n),h=t.props,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick,C=!1;i?C=c[0]===m:C=c.indexOf(m)>-1;var E=b??a,S=function(w){E!=="disabled"&&(l(w),y==null||y(w));},$={key:m,panelKey:m,header:g,headerClass:v,isActive:C,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:i,children:t.props.children,onItemClick:S,expandIcon:d,collapsible:E};return typeof t.type=="string"?t:(Object.keys($).forEach(function(x){typeof $[x]>"u"&&delete $[x];}),f.cloneElement(t,$))};function u8(e,t,n){return Array.isArray(e)?l8(e,n):tr(t).map(function(r,o){return c8(r,o,n)})}function d8(e){var t=e;if(!Array.isArray(t)){var n=at(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var f8=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,m=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,b=F(r,l),y=Dt([],{value:h,onChange:function(O){return v==null?void 0:v(O)},defaultValue:g,postState:d8}),C=Z(y,2),E=C[0],S=C[1],$=function(O){return S(function(){if(s)return E[0]===O?[]:[O];var R=E.indexOf(O),k=R>-1;return k?E.filter(function(_){return _!==O}):[].concat(Qe(E),[O])})};Rr(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=u8(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:m,collapsible:u,destroyInactivePanel:i,onItemClick:$,activeKey:E});return f.createElement("div",{ref:t,className:b,style:a,role:s?"tablist":void 0},x)});const Zh=Object.assign(f8,{Panel:BS});Zh.Panel;const m8=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(Je),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=F({[`${a}-no-arrow`]:!i},o);return f__namespace.createElement(Zh.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),h8=m8,g8=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:m,colorText:h,colorTextHeading:g,colorTextDisabled:v,fontSize:p,fontSizeLG:b,lineHeight:y,marginSM:C,paddingSM:E,paddingLG:S,paddingXS:$,motionDurationSlow:x,fontSizeIcon:w}=e,O=`${u}px ${d} ${m}`;return {[t]:Object.assign(Object.assign({},Rt(e)),{backgroundColor:i,border:O,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:E,color:g,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*y,display:"flex",alignItems:"center",paddingInlineEnd:C,marginInlineStart:r-E},[`${t}-arrow`]:Object.assign(Object.assign({},Go()),{fontSize:w,svg:{transition:`transform ${x}`}}),[`${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}-content`]:{color:h,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:E-$}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*y,marginInlineStart:S-r}},[`> ${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`]:{"\n &,\n & > .arrow\n ":{color:v,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},v8=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},p8=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}}}},b8=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}}}}}},y8=Bt("Collapse",e=>{const t=ut(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 [g8(t),p8(t),b8(t),v8(t),T1(t)]}),C8=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=f__namespace.useContext(Je),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:m="start",children:h,expandIcon:g}=e,v=Wn(O=>{var R;return (R=d??O)!==null&&R!==void 0?R:"middle"}),p=n("collapse",i),b=n(),[y,C]=y8(p),E=f__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),S=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=g?g(O):f__namespace.createElement(zi,{rotate:O.isActive?90:void 0});return yn(R,()=>({className:F(R.props.className,`${p}-arrow`)}))},$=F(`${p}-icon-position-${E}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,a,s,C),x=Object.assign(Object.assign({},E1(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),w=f__namespace.useMemo(()=>h?tr(h).map((O,R)=>{var k,_;if(!((k=O.props)===null||k===void 0)&&k.disabled){const I=(_=O.key)!==null&&_!==void 0?_:String(R),{disabled:P,collapsible:M}=O.props,N=Object.assign(Object.assign({},Cn(O.props,["disabled"])),{key:I,collapsible:M??(P?"disabled":void 0)});return yn(O,N)}return O}):null,[h]);return y(f__namespace.createElement(Zh,Object.assign({ref:t,openMotion:x},Cn(e,["rootClassName"]),{expandIcon:S,prefixCls:p,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),w))}),S8=Object.assign(C8,{Panel:h8}),Od=e=>e.map(t=>(t.colors=t.colors.map(bn),t)),w8=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Fl(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},x8=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Zi("ColorPicker"),{token:{colorBgElevated:a}}=Ni.useToken(),[s]=Dt(Od(n),{value:Od(n),postState:Od}),l=`${t}-presets`,c=f.useMemo(()=>s.map(m=>`panel-${m.label}`),[s]),u=m=>{o==null||o(m);},d=s.map(m=>{var h;return {key:`panel-${m.label}`,label:f.createElement("div",{className:`${l}-label`},m==null?void 0:m.label),children:f.createElement("div",{className:`${l}-items`},Array.isArray(m==null?void 0:m.colors)&&((h=m.colors)===null||h===void 0?void 0:h.length)>0?m.colors.map(g=>f.createElement(Fh,{key:`preset-${g.toHexString()}`,color:bn(g).toRgbString(),prefixCls:t,className:F(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:w8(g,a)}),onClick:()=>u(g)})):f.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return f.createElement("div",{className:l},f.createElement(S8,{defaultActiveKey:c,ghost:!0,items:d}))},$8=x8,E8=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(vS);return Array.isArray(n)?f.createElement($8,{value:t,presets:n,prefixCls:e,onChange:r}):null},Sb=E8;var O8=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,presets:n,panelRender:r,color:o,onChange:i,onClear:a}=e,s=O8(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:i,onClear:a},s),u=f.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),d=f.createElement(f.Fragment,null,f.createElement(Cb,null),Array.isArray(n)&&f.createElement(r6,{className:`${l}-divider`}),f.createElement(Sb,null));return f.createElement(g6,{value:c},f.createElement(v6,{value:u},f.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:Cb,Presets:Sb}}):d)))},P8=I8;var R8=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,format:s,className:l,showText:c}=e,u=R8(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,m=f.useMemo(()=>i?f.createElement(pS,{prefixCls:r}):f.createElement(Fh,{prefixCls:r,color:n.toRgbString()}),[n,i,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=Wl(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},g=()=>{if(typeof c=="function")return c(n);if(c)return h()};return f.createElement("div",Object.assign({ref:t,className:F(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:a})},u),m,c&&f.createElement("div",{className:`${d}-text`},g()))}),T8=_8;function wb(e){return e!==void 0}const M8=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=f.useState(()=>{let a;return wb(r)?a=r:wb(n)?a=n:a=e,bn(a||"")});return f.useEffect(()=>{r&&i(bn(r));},[r]),[o,i]},N8=M8,HS=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),k8=(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},HS("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},xb=k8,A8=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:m,colorPickerInputNumberHandleWidth:h,lineWidth:g}=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:h}},[`${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,textTransform:"uppercase",lineHeight:`${l-2*g}px`},[`${n}-input-prefix`]:{color:m}}}}}},L8=A8,D8=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=e;return {[`${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":HS(`${d}px`,e.colorFillSecondary),"&-hue":{marginBottom:i}},[`${t}-slider-container`]:{display:"flex",gap:i,marginBottom:i,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},z8=D8,j8=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:m,marginXXS:h,paddingXS:g}=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:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${g}px 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:h*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:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},B8=j8,Ff=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),H8=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},$b=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,red6:s}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${i}px solid ${a}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s}})}},F8=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorBorderHover:o,colorWarningBorderHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Ff(ut(e,{controlOutline:a})))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Ff(ut(e,{controlOutline:s})))}}},W8=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l}}}},V8=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorText:s,colorBgContainerDisabled:l,borderRadius:c,marginXS:u,marginSM:d,controlHeight:m,controlHeightSM:h,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:E}=e;return [{[t]:Object.assign({[`${t}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${d}px 0 ${u}px`},[`${t}-panel`]:Object.assign({},z8(e))},xb(e,p)),L8(e)),B8(e)),$b(e,v,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:c,border:`${b}px solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,padding:C-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(C-b),fontSize:E,color:s},"&-active":Object.assign(Object.assign({},Ff(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:l,cursor:"not-allowed","&:hover":{borderColor:g},[`${t}-trigger-text`]:{color:a}}},$b(e,h)),xb(e,h)),F8(e)),W8(e))},H8(e))}]},U8=Bt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=ut(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 [V8(o)]}),Qh=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,panelRender:m,showText:h,style:g,className:v,size:p,rootClassName:b,styles:y,disabledAlpha:C=!1,onFormatChange:E,onChange:S,onClear:$,onOpenChange:x,onChangeComplete:w,getPopupContainer:O,autoAdjustOverflow:R=!0,destroyTooltipOnHide:k}=e,{getPrefixCls:_,direction:I,colorPicker:P}=f.useContext(Je),{token:M}=Ni.useToken(),[N,T]=N8(M.colorPrimary,{value:t,defaultValue:n}),[L,z]=Dt(!1,{value:l,postState:be=>!c&&be,onChange:x}),[H,W]=Dt(r,{value:r,onChange:E}),[B,V]=f.useState(!1),j=_("color-picker",b6),K=f.useMemo(()=>Wl(N)<100,[N]),{status:q}=f.useContext(nr),G=Wn(p),[U,Y]=U8(j),oe={[`${j}-rtl`]:I},ue=F(b,oe),he=F(dr(j,q),{[`${j}-sm`]:G==="small",[`${j}-lg`]:G==="large"},P==null?void 0:P.className,ue,v,Y),re=F(j,oe),ie=f.useRef(!0),ce=(be,Re,Be)=>{let _e=bn(be);(B||(t===null||!t&&n===null))&&(V(!1),Wl(N)===0&&Re!=="alpha"&&(_e=pd(_e))),C&&K&&(_e=pd(_e)),Be?ie.current=!1:w==null||w(_e),T(_e),S==null||S(_e,_e.toHexString());},X=()=>{V(!0),$==null||$();},ne=be=>{ie.current=!0;let Re=bn(be);C&&K&&(Re=pd(be)),w==null||w(Re);},J={open:L,trigger:s,placement:u,arrow:d,rootClassName:b,getPopupContainer:O,autoAdjustOverflow:R,destroyTooltipOnHide:k},de={prefixCls:j,color:N,allowClear:o,colorCleared:B,disabled:c,disabledAlpha:C,presets:i,panelRender:m,format:H,onFormatChange:W,onChangeComplete:ne},fe=Object.assign(Object.assign({},P==null?void 0:P.style),g);return U(f.createElement(Fc,Object.assign({style:y==null?void 0:y.popup,overlayInnerStyle:y==null?void 0:y.popupOverlayInner,onOpenChange:be=>{ie.current&&z(be);},content:f.createElement(Xa,{override:!0,status:!0},f.createElement(P8,Object.assign({},de,{onChange:ce,onChangeComplete:ne,onClear:X}))),overlayClassName:re},J),a||f.createElement(T8,{open:L,className:he,style:fe,color:t?bn(t):N,prefixCls:j,disabled:c,colorCleared:B,showText:h,format:H})))},G8=Hh(Qh,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Qh._InternalPanelDoNotUseOrYouWillBeFired=G8;const K8=Qh;var X8=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],FS=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,m=d===void 0?"checkbox":d,h=e.title,g=e.onChange,v=et(e,X8),p=f.useRef(null),b=Dt(u,{value:s}),y=Z(b,2),C=y[0],E=y[1];f.useImperativeHandle(t,function(){return {focus:function(){var w;(w=p.current)===null||w===void 0||w.focus();},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur();},input:p.current}});var S=F(o,i,(n={},Q(n,"".concat(o,"-checked"),C),Q(n,"".concat(o,"-disabled"),l),n)),$=function(w){l||("checked"in e||E(w.target.checked),g==null||g({target:ee(ee({},e),{},{type:m,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation();},preventDefault:function(){w.preventDefault();},nativeEvent:w.nativeEvent}));};return f__namespace.createElement("span",{className:S,title:h,style:a},f__namespace.createElement("input",Oe({},v,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:l,checked:!!C,type:m})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const q8=f.createContext(null),WS=q8,Y8=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Rt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Rt(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({},Rt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},zo(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}})},{[` ${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}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&: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}-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 Z8(e,t){const n=ut(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [Y8(n)]}const VS=Bt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [Z8(n,e)]});var Q8=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;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:m}=e,h=Q8(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=f__namespace.useContext(Je),b=f__namespace.useContext(WS),{isFormItemInput:y}=f__namespace.useContext(nr),C=f__namespace.useContext(_r),E=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:C,S=f__namespace.useRef(h.value);f__namespace.useEffect(()=>{b==null||b.registerValue(h.value);},[]),f__namespace.useEffect(()=>{if(!d)return h.value!==S.current&&(b==null||b.cancelValue(S.current),b==null||b.registerValue(h.value),S.current=h.value),()=>b==null?void 0:b.cancelValue(h.value)},[h.value]);const $=g("checkbox",r),[x,w]=VS($),O=Object.assign({},h);b&&!d&&(O.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:a,value:h.value});},O.name=b.name,O.checked=b.value.includes(h.value));const R=F(`${$}-wrapper`,{[`${$}-rtl`]:v==="rtl",[`${$}-wrapper-checked`]:O.checked,[`${$}-wrapper-disabled`]:E,[`${$}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,i,w),k=F({[`${$}-indeterminate`]:s},Vc,w),_=s?"mixed":void 0;return x(f__namespace.createElement(ms,{component:"Checkbox",disabled:E},f__namespace.createElement("label",{className:R,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(FS,Object.assign({"aria-checked":_},O,{prefixCls:$,className:k,disabled:E,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a))))},eB=f__namespace.forwardRef(J8),US=eB;var tB=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{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=tB(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(Je),[h,g]=f__namespace.useState(u.value||n||[]),[v,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&g(u.value||[]);},[u.value]);const b=f__namespace.useMemo(()=>o.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),[o]),y=I=>{p(P=>P.filter(M=>M!==I));},C=I=>{p(P=>[].concat(Qe(P),[I]));},E=I=>{const P=h.indexOf(I.value),M=Qe(h);P===-1?M.push(I.value):M.splice(P,1),"value"in u||g(M),c==null||c(M.filter(N=>v.includes(N)).sort((N,T)=>{const L=b.findIndex(H=>H.value===N),z=b.findIndex(H=>H.value===T);return L-z}));},S=d("checkbox",i),$=`${S}-group`,[x,w]=VS(S),O=Cn(u,["value","disabled"]),R=o.length?b.map(I=>f__namespace.createElement(US,{prefixCls:S,key:I.value.toString(),disabled:"disabled"in I?I.disabled:u.disabled,value:I.value,checked:h.includes(I.value),onChange:I.onChange,className:`${$}-item`,style:I.style,title:I.title},I.label)):r,k={toggleOption:E,value:h,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},_=F($,{[`${$}-rtl`]:m==="rtl"},a,s,w);return x(f__namespace.createElement("div",Object.assign({className:_,style:l},O,{ref:t}),f__namespace.createElement(WS.Provider,{value:k},R)))},rB=f__namespace.forwardRef(nB),oB=f__namespace.memo(rB),Jh=US;Jh.Group=oB;Jh.__ANT_CHECKBOX=!0;const eg=Jh;var iB=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Eb(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 Ob(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function lB(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 cB={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"};function uB(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function dB(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 GS=f.createContext(cB);GS.Provider;function Ut(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,m=sB(r,iB),h=f.useContext(GS),g=f.useMemo(uB,[]),v=dB(g,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},h),p=[h.prefix+"-icon"];return p.push(h.prefix+"-icon-"+e),t&&h.rtl&&p.push(h.prefix+"-icon-rtl"),d&&p.push(h.prefix+"-icon-spin"),u&&p.push(u),f.createElement("span",Ob(Ob({},m),{},{className:p.join(" ")}),n(v))}}const fB=Ut("people-minus",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),f.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),mB=Ut("people-delete",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),hB=Ut("delete",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),gB=Ut("add-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M33 7.26261C30.3212 5.81915 27.2563 5 24 5C13.5066 5 5 13.5066 5 24C5 34.4934 13.5066 43 24 43C26.858 43 29.5685 42.369 32 41.2387",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vB=Ut("play-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18.5 24V16.2058L25.25 20.1029L32 24L25.25 27.8971L18.5 31.7942V24Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),pB=Ut("unlike",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C25.1936 41.9295 26.5616 41.3098 28.0099 40.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),bB=Ut("dislike-two",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C31 40 44 30 44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),f.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),f.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),yB=Ut("copy",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),CB=Ut("efferent-four",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M20 5L10 5C8.89543 5 8 5.89543 8 7L8 41C8 42.1046 8.89543 43 10 43L38 43C39.1046 43 40 42.1046 40 41L40 24.75",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),SB=Ut("star",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),wB=Ut("file-cabinet",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),xB=Ut("tumblr",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M15 22V17H20V14L26 12V17H31V22H26V29C26 29 26 30.5 28 31C30 31.5 33 30 33 30L31 36H26C22.5 36 20 32.5 20 30V22H15Z",fill:e.colors[2]}))}),$B=Ut("concern",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M10.8579 9.85803C7.23858 13.4773 5 18.4773 5 24.0002C5 29.523 7.23858 34.523 10.8579 38.1423",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M39.1421 38.1423C42.7614 34.523 45 29.523 45 24.0002C45 18.4773 42.7614 13.4773 39.1421 9.85803",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M34.8994 33.8997C37.4329 31.3662 38.9999 27.8662 38.9999 24.0002C38.9999 20.1342 37.4329 16.6342 34.8994 14.1007",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M15.1005 14.1007C12.567 16.6342 11 20.1342 11 24.0002C11 27.8662 12.567 31.3662 15.1005 33.8997",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M28.1818 20C30.2905 20 32 21.6118 32 23.6C32 26.1882 29.4545 28.4 28.1818 29.6C27.3333 30.4 26.2727 31.2 25 32C23.7273 31.2 22.6667 30.4 21.8182 29.6C20.5455 28.4 18 26.1882 18 23.6C18 21.6118 19.7095 20 21.8182 20C23.1463 20 24.316 20.6393 25 21.6093C25.684 20.6393 26.8537 20 28.1818 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),EB=Ut("iphone",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),OB=Ut("computer",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),IB=Ut("tips",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),PB=Ut("return",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.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}))}),RB=Ut("loading-three",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),_B=Ut("loading",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}))}),TB=Ut("info",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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]}),f.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),MB=Ut("help",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.createElement("path",{d:"M24 28.6248V24.6248C27.3137 24.6248 30 21.9385 30 18.6248C30 15.3111 27.3137 12.6248 24 12.6248C20.6863 12.6248 18 15.3111 18 18.6248",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 37.6248C25.3807 37.6248 26.5 36.5055 26.5 35.1248C26.5 33.7441 25.3807 32.6248 24 32.6248C22.6193 32.6248 21.5 33.7441 21.5 35.1248C21.5 36.5055 22.6193 37.6248 24 37.6248Z",fill:e.colors[2]}))}),NB=Ut("distraught-face",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}),f.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),kB=Ut("config",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}))}),AB=Ut("close",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),LB={Close:AB,Config:kB,DistraughtFace:NB,Help:MB,Info:TB,Loading:_B,LoadingThree:RB,Return:PB,Tips:IB,Computer:OB,Iphone:EB,Concern:$B,Tumblr:xB,FileCabinet:wB,Star:SB,EfferentFour:CB,Copy:yB,DislikeTwo:bB,Unlike:pB,PlayTwo:vB,AddTwo:gB,Delete:hB,PeopleDelete:mB,PeopleMinus:fB};function Mt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const i=LB[e];return D(i,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var Ib=1/0,DB=17976931348623157e292;function zB(e){if(!e)return e===0?e:0;if(e=Qd(e),e===Ib||e===-Ib){var t=e<0?-1:1;return t*DB}return e===e?e:0}function jB(e){var t=zB(e),n=t%1;return t===t?n?t-n:t:0}var BB="Expected a function";function HB(e,t){var n;if(typeof t!="function")throw new TypeError(BB);return e=jB(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function FB(e){return HB(2,e)}var Wf={exports:{}};(function(e,t){(function(n,r){var o="1.0.36",i="",a="?",s="function",l="undefined",c="object",u="string",d="major",m="model",h="name",g="type",v="vendor",p="version",b="architecture",y="console",C="mobile",E="tablet",S="smarttv",$="wearable",x="embedded",w=350,O="Amazon",R="Apple",k="ASUS",_="BlackBerry",I="Browser",P="Chrome",M="Edge",N="Firefox",T="Google",L="Huawei",z="LG",H="Microsoft",W="Motorola",B="Opera",V="Samsung",j="Sharp",K="Sony",q="Xiaomi",G="Zebra",U="Facebook",Y="Chromium OS",oe="Mac OS",ue=function(ae,ge){var pe={};for(var we in ae)ge[we]&&ge[we].length%2===0?pe[we]=ge[we].concat(ae[we]):pe[we]=ae[we];return pe},he=function(ae){for(var ge={},pe=0;pe0?xe.length===2?typeof xe[1]==s?this[xe[0]]=xe[1].call(this,Fe):this[xe[0]]=xe[1]:xe.length===3?typeof xe[1]===s&&!(xe[1].exec&&xe[1].test)?this[xe[0]]=Fe?xe[1].call(this,Fe,xe[2]):r:this[xe[0]]=Fe?Fe.replace(xe[1],xe[2]):r:xe.length===4&&(this[xe[0]]=Fe?xe[3].call(this,Fe.replace(xe[1],xe[2])):r):this[xe]=Fe||r;pe+=2;}},J=function(ae,ge){for(var pe in ge)if(typeof ge[pe]===c&&ge[pe].length>0){for(var we=0;we2&&(Ie[m]="iPad",Ie[g]=E),Ie},this.getEngine=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,we,Ae.engine),Ie},this.getOS=function(){var Ie={};return Ie[h]=r,Ie[p]=r,ne.call(Ie,we,Ae.os),xe&&!Ie[h]&&De&&De.platform!="Unknown"&&(Ie[h]=De.platform.replace(/chrome os/i,Y).replace(/macos/i,oe)),Ie},this.getResult=function(){return {ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return we},this.setUA=function(Ie){return we=typeof Ie===u&&Ie.length>w?X(Ie,w):Ie,this},this.setUA(we),this};Re.VERSION=o,Re.BROWSER=he([h,p,d]),Re.CPU=he([b]),Re.DEVICE=he([m,v,g,y,C,S,E,$,x]),Re.ENGINE=Re.OS=he([h,p]),e.exports&&(t=e.exports=Re),t.UAParser=Re;var Be=typeof n!==l&&(n.jQuery||n.Zepto);if(Be&&!Be.ua){var _e=new Re;Be.ua=_e.getResult(),Be.ua.get=function(){return _e.getUA()},Be.ua.set=function(ae){_e.setUA(ae);var ge=_e.getResult();for(var pe in ge)Be.ua[pe]=ge[pe];};}})(typeof window=="object"?window:Io);})(Wf,Wf.exports);var WB=Wf.exports;const VB=an(WB),UB=Symbol(),tg=Symbol(),ha="a",gl="w";let GB=(e,t)=>new Proxy(e,t);const Vf=Object.getPrototypeOf,Uf=new WeakMap,KS=e=>e&&(Uf.has(e)?Uf.get(e):Vf(e)===Object.prototype||Vf(e)===Array.prototype),Pb=e=>typeof e=="object"&&e!==null,KB=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(Vf(e),t)},XS=e=>e[tg]||e,qS=(e,t,n,r)=>{if(!KS(e))return e;let o=r&&r.get(e);if(!o){const l=XS(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,KB(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 m=(g,v)=>{if(!d){let p=u[ha].get(l);if(p||(p={},u[ha].set(l,p)),g===gl)p[gl]=!0;else {let b=p[g];b||(b=new Set,p[g]=b),b.add(v);}}},h={get:(g,v)=>v===tg?l:(m("k",v),qS(Reflect.get(g,v),u[ha],u.c,u.t)),has:(g,v)=>v===UB?(d=!0,u[ha].delete(l),!0):(m("h",v),Reflect.has(g,v)),getOwnPropertyDescriptor:(g,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(g,v)),ownKeys:g=>(m(gl),Reflect.ownKeys(g))};return c&&(h.set=h.deleteProperty=()=>!1),[h,u]})(i,!!a),s[1].p=GB(a||i,s[0]),n&&n.set(i,s)),s[1][ha]=t,s[1].c=n,s[1].t=r,s[1].p},YS=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Pb(e)||!Pb(t))return !0;const o=n.get(XS(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[gl]===!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=YS(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},XB=e=>KS(e)&&e[tg]||null,Rb=(e,t=!0)=>{Uf.set(e,t);};const Id=e=>typeof e=="object"&&e!==null,io=new WeakMap,Xs=new WeakSet,qB=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Id(c)&&!Xs.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 m=o.get(c);if((m==null?void 0:m[0])===u)return m[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Rb(h,!0),o.set(c,[u,h]),Reflect.ownKeys(c).forEach(g=>{if(Object.getOwnPropertyDescriptor(h,g))return;const v=Reflect.get(c,g),p={value:v,enumerable:!0,configurable:!0};if(Xs.has(v))Rb(v,!1);else if(v instanceof Promise)delete p.value,p.get=()=>d(v);else if(io.has(v)){const[b,y]=io.get(v);p.value=i(b,y(),d);}Object.defineProperty(h,g,p);}),Object.preventExtensions(h)},a=new WeakMap,s=[1,1],l=c=>{if(!Id(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const m=new Set,h=(O,R=++s[0])=>{d!==R&&(d=R,m.forEach(k=>k(O,R)));};let g=s[1];const v=(O=++s[1])=>(g!==O&&!m.size&&(g=O,b.forEach(([R])=>{const k=R[1](O);k>d&&(d=k);})),d),p=O=>(R,k)=>{const _=[...R];_[1]=[O,..._[1]],h(_,k);},b=new Map,y=(O,R)=>{if(m.size){const k=R[3](p(O));b.set(O,[R,k]);}else b.set(O,[R]);},C=O=>{var R;const k=b.get(O);k&&(b.delete(O),(R=k[1])==null||R.call(k));},E=O=>(m.add(O),m.size===1&&b.forEach(([k,_],I)=>{const P=k[3](p(I));b.set(I,[k,P]);}),()=>{m.delete(O),m.size===0&&b.forEach(([k,_],I)=>{_&&(_(),b.set(I,[k]));});}),S=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(S,{deleteProperty(O,R){const k=Reflect.get(O,R);C(R);const _=Reflect.deleteProperty(O,R);return _&&h(["delete",[R],k]),_},set(O,R,k,_){const I=Reflect.has(O,R),P=Reflect.get(O,R,_);if(I&&(e(P,k)||a.has(k)&&e(P,a.get(k))))return !0;C(R),Id(k)&&(k=XB(k)||k);let M=k;if(k instanceof Promise)k.then(N=>{k.status="fulfilled",k.value=N,h(["resolve",[R],N]);}).catch(N=>{k.status="rejected",k.reason=N,h(["reject",[R],N]);});else {!io.has(k)&&n(k)&&(M=l(k));const N=!Xs.has(M)&&io.get(M);N&&y(R,N);}return Reflect.set(O,R,M,_),h(["set",[R],k,P]),!0}});a.set(c,x);const w=[S,v,i,E];return io.set(x,w),Reflect.ownKeys(c).forEach(O=>{const R=Object.getOwnPropertyDescriptor(c,O);"value"in R&&(x[O]=c[O],delete R.value,delete R.writable),Object.defineProperty(S,O,R);}),x})=>[l,io,Xs,e,t,n,r,o,i,a,s],[YB]=qB();function rr(e={}){return YB(e)}function ng(e,t,n){const r=io.get(e);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 Vl(e,t){const n=io.get(e),[r,o,i]=n;return i(r,o(),t)}var ZS={exports:{}},QS={};/** * @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 ji=f;function ZB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var QB=typeof Object.is=="function"?Object.is:ZB,JB=ji.useState,eH=ji.useEffect,tH=ji.useLayoutEffect,nH=ji.useDebugValue;function rH(e,t){var n=t(),r=JB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return tH(function(){o.value=n,o.getSnapshot=t,Pd(o)&&i({inst:o});},[e,n,t]),eH(function(){return Pd(o)&&i({inst:o}),e(function(){Pd(o)&&i({inst:o});})},[e]),nH(n),n}function Pd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !QB(e,n)}catch{return !0}}function oH(e,t){return t()}var iH=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?oH:rH;QS.useSyncExternalStore=ji.useSyncExternalStore!==void 0?ji.useSyncExternalStore:iH;ZS.exports=QS;var aH=ZS.exports;const sH=an(aH),{use:_b}=f,{useSyncExternalStore:lH}=sH;const cH=new WeakMap;function or(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let i=!0;const a=lH(f.useCallback(c=>{const u=ng(e,c,n);return c(),u},[e,n]),()=>{const c=Vl(e,_b);try{if(!i&&r.current&&o.current&&!YS(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Vl(e,_b));i=!1;const s=new WeakMap;f.useEffect(()=>{r.current=a,o.current=s;});const l=f.useMemo(()=>new WeakMap,[]);return qS(a,s,l,cH)}const Bi=FB(()=>!!document.querySelectorAll(".bili-feed4").length),JS=()=>document.body.classList.contains("dark"),ew=rr({value:JS()});function rg(){return or(ew).value}const tw=new MutationObserver(function(){ew.value=JS();});tw.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{tw.disconnect();});const nw=VB();var h0;const uH=((h0=nw.os.name)==null?void 0:h0.toLowerCase())==="mac os";var g0;const og=((g0=nw.browser.name)==null?void 0:g0.toLowerCase())==="safari";var dH=j0(function(e,t){var n=e.styles,r=xi([n],void 0,f__namespace.useContext(B0)),o=f__namespace.useRef();return Lg(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush();}},[t]),Lg(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&wm(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush();}t.insert("",r,a,!1);},[t,r.name]),null});function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n{const u=c.target.checked;Ir({[e]:u}),n==null||n(u);},[]);let l=D("span",{style:{userSelect:"none"},children:t||e});return r&&(l=D(ds,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),D(eg,{...o,checked:a,onChange:s,children:l})}var TH={name:"1qkltea",styles:"margin-left:5px"};const MH=function(){const e=TH;return Ce(St,{children:[D(un,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(un,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Gl({tooltip:e,iconProps:t,tooltipProps:n}){return D(St,{children:e&&D(Ul,{...n,title:e,children:D(Mt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const NH=[{id:"green",name:"绿意盎然",isDark:!1,isCustom:!1,colorPrimary:"rgb(77, 175, 124)",colorTheme:"rgb(77, 175, 124)"},{id:"blue",name:"蓝田生玉",isDark:!1,isCustom:!1,colorPrimary:"rgb(52, 152, 219)",colorTheme:"rgb(52, 152, 219)"},{id:"blue_plus",name:"蛋雅深蓝",isDark:!1,isCustom:!1,colorPrimary:"rgb(77, 131, 175)",colorTheme:"rgb(77, 131, 175)"},{id:"orange",name:"橙黄橘绿",isDark:!1,isCustom:!1,colorPrimary:"rgb(245, 171, 53)",colorTheme:"rgb(245, 171, 53)"},{id:"red",name:"热情似火",isDark:!1,isCustom:!1,colorPrimary:"rgb(214, 69, 65)",colorTheme:"rgb(214, 69, 65)"},{id:"pink",name:"粉装玉琢",isDark:!1,isCustom:!1,colorPrimary:"rgb(241, 130, 141)",colorTheme:"rgb(241, 130, 141)"},{id:"purple",name:"重斤球紫",isDark:!1,isCustom:!1,colorPrimary:"rgb(155, 89, 182)",colorTheme:"rgb(155, 89, 182)"},{id:"grey",name:"灰常美丽",isDark:!1,isCustom:!1,colorPrimary:"rgb(108, 122, 137)",colorTheme:"rgb(108, 122, 137)"},{id:"ming",name:"青出于黑",isDark:!1,isCustom:!1,colorPrimary:"rgb(51, 110, 123)",colorTheme:"rgb(51, 110, 123)"},{id:"blue2",name:"清热板蓝",isDark:!1,isCustom:!1,colorPrimary:"rgb(79, 98, 208)",colorTheme:"rgb(79, 98, 208)"},{id:"black",name:"黑灯瞎火",isDark:!0,isCustom:!1,colorPrimary:"rgb(150, 150, 150)",colorTheme:"rgb(59,59,59)"},{id:"mid_autumn",name:"月里嫦娥",isDark:!1,isCustom:!1,colorPrimary:"rgb(74, 55, 82)",colorTheme:"rgb(74, 55, 82)"},{id:"naruto",name:"木叶之村",isDark:!1,isCustom:!1,colorPrimary:"rgb(87, 144, 167)",colorTheme:"rgb(87, 144, 167)"},{id:"china_ink",name:"近墨者黑",isDark:!1,isCustom:!1,colorPrimary:"rgba(47, 47, 47, 1)",colorTheme:"rgba(47, 47, 47, 1)"},{id:"happy_new_year",name:"新年快乐",isDark:!1,isCustom:!1,colorPrimary:"rgb(192, 57, 43)",colorTheme:"rgb(192, 57, 43)"}],Kl={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},sw={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function kH(e,t){return t.split(` `).map(n=>n.trim()).filter(Boolean).map(n=>{const[r,o]=n.split(" ").filter(Boolean);return {id:e+":"+o,name:o,colorPrimary:r}})}const lw="UP长期洗涤",AH=kH(lw,` #0545b2 理想之蓝 #f4cd00 柠檬黄 #ef2729 石榴红 #f89c00 鹿箭 #233728 黛绿 #f2b9b7 和熙粉 #f3cc91 芝士黄 #6b4c68 葡萄紫 #ff7227 落日橙 #004d62 碧海天 #23909b 洗碧空 #aeb400 芥丝绿 #425a17 箬叶青 #002FA7 克莱因蓝 #003153 普鲁士蓝 #01847F 马尔斯绿 #FBD26A 申布伦黄 #470024 勃艮第红 #492D22 凡戴克棕 `),cw=[{name:"预设",themes:[Kl,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},sw]},{name:"移动端",themes:[{id:"app-custom-高能红",name:"高能红",colorPrimary:"#fd453e"},{id:"app-custom-咸蛋黄",name:"咸蛋黄",colorPrimary:"#ffc034"},{id:"app-custom-早苗绿",name:"早苗绿",colorPrimary:"#85c255"},{id:"app-custom-宝石蓝",name:"宝石蓝",colorPrimary:"#0095ef"},{id:"app-custom-罗兰紫",name:"罗兰紫",colorPrimary:"#a029ac"}]},{name:"LX Themes",themes:NH,tooltip:Ce(St,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:lw,themes:AH,tooltip:Ce(St,{children:["提取自"," ",D("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",D("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],LH=cw.map(e=>e.themes).flat();function uw(){let{theme:e,colorPickerThemeSelectedColor:t}=_n();return e||(e=Kl.id),f.useMemo(()=>{const n=LH.find(r=>r.id===e)||Kl;return n.id===sw.id&&t&&(n.colorPrimary=t),n},[e,t])}const dw=`--${fn}-color-primary`,Vr=`var(${dw})`;var DH={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},zH={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},jH={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function BH(){const e=uw().id,{colorPickerThemeSelectedColor:t}=_n(),[n,r]=f.useState(t||Kl.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:cw.map(({name:i,themes:a,tooltip:s})=>Ce(f.Fragment,{children:[Ce("div",{css:jH,children:[i,D(Gl,{tooltip:s,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),D("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(l=>{const c=e===l.id,u=l.isCustom,d=D("div",{className:"preview",css:Yn("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let m=D("div",{className:"preview-wrapper",css:[zH,c&&Yn("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(m=D(K8,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||Ir({colorPickerThemeSelectedColor:o});},children:m})),Ce("div",{css:DH,onClick:h=>{Ir({theme:l.id});},children:[m,l.name]},l.id)})})]},i))})}const HH="_toast-container_185m9_1",FH="_single-line_185m9_17";function vt(e,t=2e3){const n=document.createElement("div");n.className=HH,n.innerText=e,n.style.backgroundColor=Vr,!e.includes(` `)&&!e.includes("n.remove(),t);}const WH="请求失败, 请重试 !!!",fw="操作失败, 请重试 !!!";function mw(){return vt(WH)}function hw(){return vt(fw)}const gw="27eb53fc9058f8c3";async function VH(){var c,u;const t=(await ou.get("https://passport.bilibili.com/login/app/third",{params:{appkey:gw,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)){vt("你必须登录B站之后才能使用授权");return}if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri)){vt("无法获得授权网址");return}const n=t.data.confirm_uri;let r,o;const i=new Promise(d=>{const m=h=>{if(h.origin!="https://www.mcbbs.net")return;if(!h.data||typeof h.data!="string"){console.warn("received message event with invalid data");return}const v=new URL(h.data).searchParams.get("access_key");return v?d(v):(vt("没有获得匹配的密钥"),d(void 0))};window.addEventListener("message",m),o=()=>window.removeEventListener("message",m),r=setTimeout(()=>{vt("获取授权超时"),d(void 0);},10*1e3);});let a;{const d=window.open(n,"_blank","popup=true,width=800,height=600");a=()=>d==null?void 0:d.close();}function s(){a==null||a(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const l=await i;return s(),l}async function UH(){const e=await VH();if(e)return yt.accessKey=e,vt("获取成功"),e}function GH(){yt.accessKey="",vt("已删除 access_key");}var vw=function(e){return function(t,n){var r=f.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},ur=function(){return ur=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&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 pn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r-1&&(o=setTimeout(function(){vl.delete(e);},t)),vl.set(e,ur(ur({},n),{timer:o}));},e9=function(e){return vl.get(e)},pl=new Map,t9=function(e){return pl.get(e)},n9=function(e,t){pl.set(e,t),t.then(function(n){return pl.delete(e),n}).catch(function(){pl.delete(e);});},Eo={},r9=function(e,t){Eo[e]&&Eo[e].forEach(function(n){return n(t)});},Rd=function(e,t){return Eo[e]||(Eo[e]=[]),Eo[e].push(t),function(){var r=Eo[e].indexOf(t);Eo[e].splice(r,1);}},o9=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(h,g){s?s(g):JH(h,o,g),r9(h,g.data);},m=function(h,g){return g===void 0&&(g=[]),l?l(g):e9(h)};return Cw(function(){if(n){var h=m(n);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(e.state.loading=!1)),c.current=Rd(n,function(g){e.setState({data:g});});}},[]),ws(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var g=m(n,h);return !g||!Object.hasOwnProperty.call(g,"data")?{}:a===-1||new Date().getTime()-g.time<=a?{loading:!1,data:g==null?void 0:g.data,error:void 0,returnNow:!0}:{data:g==null?void 0:g.data,error:void 0}},onRequest:function(h,g){var v=t9(n);return v&&v!==u.current?{servicePromise:v}:(v=h.apply(void 0,pn([],qt(g),!1)),u.current=v,n9(n,v),{servicePromise:v})},onSuccess:function(h,g){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:g,time:new Date().getTime()}),c.current=Rd(n,function(p){e.setState({data:p});}));},onMutate:function(h){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=Rd(n,function(v){e.setState({data:v});}));}}:{}};const i9=o9;var a9=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=hy(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u-1&&Ra.splice(n,1);}}if(xs){var Tb=function(){if(!(!ag()||!v9()))for(var e=0;e=P?I:""+Array(P+1-N.length).join(M)+I},E={s:C,z:function(I){var P=-I.utcOffset(),M=Math.abs(P),N=Math.floor(M/60),T=M%60;return (P<=0?"+":"-")+C(N,2,"0")+":"+C(T,2,"0")},m:function I(P,M){if(P.date()1)return I(z[0])}else {var H=P.name;$[H]=P,T=H;}return !N&&T&&(S=T),T||!N&&S},O=function(I,P){if(x(I))return I.clone();var M=typeof P=="object"?P:{};return M.date=I,M.args=arguments,new k(M)},R=E;R.l=w,R.i=x,R.w=function(I,P){return O(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var k=function(){function I(M){this.$L=w(M.locale,null,!0),this.parse(M);}var P=I.prototype;return P.parse=function(M){this.$d=function(N){var T=N.date,L=N.utc;if(T===null)return new Date(NaN);if(R.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var z=T.match(p);if(z){var H=z[2]-1||0,W=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date(T)}(M),this.$x=M.x||{},this.init();},P.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds();},P.$utils=function(){return R},P.isValid=function(){return this.$d.toString()!==v},P.isSame=function(M,N){var T=O(M);return this.startOf(N)<=T&&T<=this.endOf(N)},P.isAfter=function(M,N){return O(M)s))return !1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,m=!0,h=n&H9?new Ya:void 0;for(i.set(e,t),i.set(t,e);++d{Ca++,document.body.style.overflow="hidden";},kF=()=>{Ca--,Ca<0&&(Ca=0),Ca===0&&(document.body.style.overflow="");};function lg({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?NF():kF();},[e]);const u=f.useRef(null),d=rg(),{bg:m,c:h}=f.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,C=window.getComputedStyle(document.body).color;return {bg:y,c:C}},[d]),g=f.useMemo(()=>d?{"--bg":m,"--c":h,backgroundColor:m,color:h}:{},[m,h,d]),v=f.useId(),p=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+v),document.body.appendChild(y),y},[]),b=ot(y=>{var E;const C=y.target;(E=u.current)!=null&&E.contains(C)||C.closest('.ant-tooltip-inner[role="tooltip"]')||C.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return Qt("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?v0.createPortal(D("div",{className:F($r.modalMask,o),style:r,onClick:b,children:D("div",{className:F($r.modal,a),style:{...g,width:s,...i},ref:u,children:n})}),p):null}const cg=e=>D(Mt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});var _w={exports:{}},Tw={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,i=0;o>>5]|=n[o]<<24-i%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o>>6*(3-a)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,i=0;o>>6-i*2);return r}};Tw.exports=t;})();var AF=Tw.exports,qf={utf8:{stringToBytes:function(e){return qf.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(qf.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n * @license MIT */var LF=function(e){return e!=null&&(Mw(e)||DF(e)||!!e._isBuffer)};function Mw(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function DF(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Mw(e.slice(0,0))}(function(){var e=AF,t=Hb.utf8,n=LF,r=Hb.bin,o=function(i,a){i.constructor==String?a&&a.encoding==="binary"?i=r.stringToBytes(i):i=t.stringToBytes(i):n(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var s=e.bytesToWords(i),l=i.length*8,c=1732584193,u=-271733879,d=-1732584194,m=271733878,h=0;h>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<>>9<<4)+14]=l;for(var g=o._ff,v=o._gg,p=o._hh,b=o._ii,h=0;h>>0,u=u+C>>>0,d=d+E>>>0,m=m+S>>>0;}return e.endian([c,u,d,m])};o._ff=function(i,a,s,l,c,u,d){var m=i+(a&s|~a&l)+(c>>>0)+d;return (m<>>32-u)+a},o._gg=function(i,a,s,l,c,u,d){var m=i+(a&l|s&~l)+(c>>>0)+d;return (m<>>32-u)+a},o._hh=function(i,a,s,l,c,u,d){var m=i+(a^s^l)+(c>>>0)+d;return (m<>>32-u)+a},o._ii=function(i,a,s,l,c,u,d){var m=i+(s^(a|~l))+(c>>>0)+d;return (m<>>32-u)+a},o._blocksize=16,o._digestsize=16,_w.exports=function(i,a){if(i==null)throw new Error("Illegal argument "+i);var s=e.wordsToBytes(o(i,a));return a&&a.asBytes?s:a&&a.asString?r.bytesToString(s):e.bytesToHex(s)};})();var zF=_w.exports;const jF=an(zF);var Fi=1e3,Wi=Fi*60,Vi=Wi*60,Bo=Vi*24,BF=Bo*7,HF=Bo*365.25,FF=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return WF(e);if(n==="number"&&isFinite(e))return t.long?UF(e):VF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function WF(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*HF;case"weeks":case"week":case"w":return n*BF;case"days":case"day":case"d":return n*Bo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Vi;case"minutes":case"minute":case"mins":case"min":case"m":return n*Wi;case"seconds":case"second":case"secs":case"sec":case"s":return n*Fi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function VF(e){var t=Math.abs(e);return t>=Bo?Math.round(e/Bo)+"d":t>=Vi?Math.round(e/Vi)+"h":t>=Wi?Math.round(e/Wi)+"m":t>=Fi?Math.round(e/Fi)+"s":e+"ms"}function UF(e){var t=Math.abs(e);return t>=Bo?Ys(e,t,Bo,"day"):t>=Vi?Ys(e,t,Vi,"hour"):t>=Wi?Ys(e,t,Wi,"minute"):t>=Fi?Ys(e,t,Fi,"second"):e+" ms"}function Ys(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const hu=an(FF),GF=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function KF(e){let t="";return GF.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function XF(e){const{img_key:t,sub_key:n}=await qF(),r=KF(t+n),o=Math.round(Date.now()/1e3),i=/[!'()*]/g;let a=[];e={...e,wts:o},Object.keys(e).sort().forEach(c=>{a.push(`${encodeURIComponent(c)}=${encodeURIComponent(e[c].toString().replace(i,""))}`);});const s=a.join("&"),l=jF(s+r);return {wts:o,w_rid:l}}let Md,Nd,kd;async function qF(){const e=()=>qo().format("YYYYMMDD");if(Md&&Nd&&kd&&kd===e()&&Date.now()-Nd<=hu("6h"))return Md;const r=(await ou.get("/x/web-interface/nav",{baseURL:py})).data,o=r.data.wbi_img.img_url,i=r.data.wbi_img.sub_url,a={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:i.slice(i.lastIndexOf("/")+1,i.lastIndexOf("."))};return Md=a,kd=e(),Nd=Date.now(),a}function YF(e){return new Promise((t,n)=>{let r=e.data;const o=e.headers??{};if(jp.isFormData(r)&&delete o["Content-Type"],e.auth){const u=e.auth.username||"",d=e.auth.password||"";o.Authorization="Basic "+Buffer.from(u+":"+d).toString("base64");}const i=function(){n(new vi.AxiosError("Network Error",vi.AxiosError.ERR_NETWORK,e));},a=function(){n(new vi.AxiosError("timeout of "+e.timeout+"ms exceeded",vi.AxiosError.ECONNABORTED,e));};jp.forEach(o,function(d,m){typeof r>"u"&&m.toLowerCase()==="content-type"&&delete o[m];}),r===void 0&&(r=null);const s=function(d){const m="responseHeaders"in d?xD(d.responseHeaders):{},g={data:!e.responseType||e.responseType==="text"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:e,request:{responseURL:d.finalUrl,status:d.status,statusText:d.statusText,responseXML:null}};gD(t,n,g);};e.cancelToken&&e.cancelToken.promise.then(function(d){n(d);});let l;e.responseType&&e.responseType!=="json"&&(l=e.responseType);const c=e.method.toUpperCase();c==="UNLINK"||c==="PURGE"||c==="LINK"?n(new vi.AxiosError(`${c} is not a supported method by GM.xmlHttpRequest`)):GM.xmlHttpRequest({method:c,url:cD(SD(e.baseURL,e.url),e.params,e.paramsSerializer),headers:Object.fromEntries(Object.entries(o).map(([u,d])=>[u,d.toString()])),responseType:l,data:r,timeout:e.timeout,ontimeout:a,onload:s,onerror:i});})}const $n=ou.create({baseURL:py,withCredentials:!0});$n.interceptors.request.use(async function(e){var t;return e.params||(e.params={}),(t=e.url)!=null&&t.includes("/wbi/")&&(e.params={...e.params,...await XF(e.params)}),e});function Yo(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const gu=ou.create({adapter:YF});gu.interceptors.request.use(function(e){return e.params={appkey:gw,access_key:yt.accessKey||"",...e.params},e});gu.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 ug(){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 Es(){const e=ug().bili_jct;if(!e)throw vt("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function vu(){return ug().DedeUserID}function Os(){return !!ug().DedeUserID}const Yf=rr({cookie:document.cookie,logined:Os()});function ZF(){return Object.assign(Yf,{cookie:document.cookie,logined:Os()}),Yf.logined}function Nw(){return or(Yf).logined}const Fb=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},QF=new WeakMap;function JF({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Fb());let i,a,s;const l=e??clearTimeout,c=()=>{l(i),s(Fb());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((m,h)=>{a=()=>{u(),m(r);},s=h,i=(t??setTimeout)(a,n);});return o&&o.addEventListener("abort",c,{once:!0}),QF.set(d,()=>{l(i),i=null,a();}),d}}const vo=JF(),e7=qi.extend("utility:dom"),t7=10*1e3,n7=200;async function _a(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+t7;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 r7(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 bu(e){return e||(e=0),qo.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Ad(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function ql(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 o7=qo().format("YYYY");function lo(e,t=!1){if(!e)return "";const n=qo.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===o7?n.format("M-D"+r):n.format("YY-M-D"+r)}const i7={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function a7(e){if(!(typeof e>"u")&&!(e>=0))return i7[e]}async function kw(){var n;return ((n=(await $n.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Zf(e){var i,a;const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:Es(),...e}),n=(await $n.post("/x/article/creative/draft/addupdate",t)).data,r=(a=(i=n==null?void 0:n.data)==null?void 0:i.aid)==null?void 0:a.toString(),o=Yo(n);return o||vt(n.message||"addupdate error"),{success:o,aid:r}}async function s7(e){var n;const t=(await $n.get("/x/article/creative/draft/view",{params:{aid:e}})).data;return ((n=t==null?void 0:t.data)==null?void 0:n.content)||""}async function l7(){const t=(await kw()).find(a=>a.title===fn);if(!t){await Zf({title:fn});return}const n=await s7(t.id),i=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(i)try{return JSON.parse(i)}catch{return}}async function c7(e){const n=(await kw()).find(a=>a.title===fn);let r="";if(n)r=n.id.toString();else {const{success:a,aid:s}=await Zf({title:fn});if(!a)return !1;r=s;}const o=JSON.stringify(e),{success:i}=await Zf({aid:r,title:fn,content:`

${o}

`,words:o.length.toString()});return i}const u7="_config-icon_1xtyf_1",d7="_settings-group_1xtyf_6",f7="_settings-group-title_1xtyf_9",m7="_settings-group-sub-title_1xtyf_14",h7="_settings-group-content_1xtyf_20",g7="_row_1xtyf_26",v7="_check_1xtyf_34",p7="_setting-tabs_1xtyf_39",b7="_tab-pane_1xtyf_42",Ge={configIcon:u7,settingsGroup:d7,settingsGroupTitle:f7,settingsGroupSubTitle:m7,settingsGroupContent:h7,row:g7,check:v7,settingTabs:p7,tabPane:b7};async function dg(){vt("即将刷新网页"),await vo(500),location.reload();}function y7(){return P7(),dg()}let Aw=!1;async function C7(){const e=await l7(),t=zm(e||{},Lw);return Object.keys(t).length?(Aw=!0,Ir({...t}),dg()):vt("备份不存在或没有有效的配置")}function Zs(e,t,n){return Qt(e,r=>{if(pu())return;yt[t]=!yt[t];const o=!yt[t];vt(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function S7({show:e,onHide:t}){const{autoPreviewUpdateInterval:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:i,filterMinDurationEnabled:a,filterOutGotoTypePicture:s}=_n();return Zs(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Zs(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Zs(["shift.c"],"useNarrowMode","居中模式"),Zs(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),Ce(lg,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[Ce("div",{className:$r.modalHeader,children:[Ce("div",{className:$r.modalTitle,children:[D(Mt,{name:"Config",className:Ge.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(cg,{onClick:t})]}),D("main",{className:$r.modalBody,style:{overflow:"hidden"},children:D(H5,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:Ge.settingTabs,items:[{label:"常规设置",key:"normal",children:Ce("div",{className:Ge.tabPane,children:[Ce("div",{className:Ge.settingsGroup,children:[Ce("div",{className:Ge.settingsGroupTitle,children:["access_key",D(Gl,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:Ce(St,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:F(Ge.settingsGroupContent),children:D("div",{className:Ge.row,style:{marginTop:5},children:D(Rw,{})})})]}),Ce("div",{className:Ge.settingsGroup,children:[D("div",{className:Ge.settingsGroupTitle,children:"开关"}),Ce("div",{className:F(Ge.settingsGroupContent,Ge.row),children:[D(un,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:Ce(St,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:Ge.check,extraAction:dg}),D(un,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ge.check,extraAction:l=>{l&&vt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(un,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:Ce(St,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(ro,{color:"green",children:"shift+c"})]}),className:Ge.check})]})]}),Ce("div",{className:Ge.settingsGroup,children:[D("div",{className:Ge.settingsGroupTitle,children:"预览"}),Ce("div",{className:F(Ge.settingsGroupContent,Ge.row),children:[D(un,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ge.check,tooltip:Ce(St,{children:["手动预览快捷键: ",D(ro,{color:"green",children:"."})," or ",D(ro,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(ro,{color:"green",children:"shift+p"})]})}),D(un,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ge.check,tooltip:Ce(St,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(ro,{color:"green",children:"shift+m"})]})})]})]}),Ce("div",{className:Ge.settingsGroup,children:[D("div",{className:Ge.settingsGroupTitle,children:"帮助"}),D("div",{className:F(Ge.settingsGroupContent),children:D("div",{className:Ge.row,children:Ce(Xc,{size:"small",children:[D(Xt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Xt,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Xt,{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:"查看可用的快捷键"}),D(Xt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Xt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})},{label:"内容过滤",key:"filter",children:D("div",{className:Ge.tabPane,children:Ce("div",{className:Ge.settingsGroup,children:[Ce("div",{className:Ge.settingsGroupTitle,children:["内容过滤",D(Gl,{iconProps:{name:"Tips"},tooltip:Ce(St,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})})]}),Ce("div",{className:F(Ge.settingsGroupContent),children:[D("div",{className:Ge.settingsGroupSubTitle,children:"视频"}),Ce("div",{className:Ge.row,children:[D(un,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(St,{children:"不显示播放量很少的视频"})}),D(Nf,{size:"small",min:1,step:1e3,value:r,onChange:l=>l&&Ir({filterMinPlayCount:l}),disabled:!o})]}),Ce("div",{className:Ge.row,style:{marginTop:3},children:[D(un,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(St,{children:"不显示短视频"})}),D(Nf,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:i,onChange:l=>l&&Ir({filterMinDuration:l}),disabled:!a})]}),D(un,{className:Ge.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(St,{children:"默认不过滤「已关注」"})}),D("div",{className:Ge.settingsGroupSubTitle,children:"图文"}),D(un,{className:Ge.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(St,{children:"过滤掉图文推荐"})}),D(un,{className:Ge.row,disabled:!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(St,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:Ge.tabPane,children:Ce("div",{className:Ge.settingsGroup,children:[D("div",{className:Ge.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),Ce("div",{className:F(Ge.settingsGroupContent),children:[D("div",{className:Ge.row,children:D(un,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:Ce(St,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",D("br",{}),"切换设置快捷键: ",D(ro,{color:"green",children:"shift+y"})]})})}),D("div",{className:Ge.row,style:{marginTop:5},children:D(un,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:Ge.tabPane,children:Ce("div",{className:Ge.settingsGroup,children:[D("div",{className:Ge.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:F(Ge.settingsGroupContent),children:D(BH,{})})]})})},{label:"高级设置",key:"advance",children:D("div",{className:Ge.tabPane,children:Ce("div",{className:Ge.settingsGroup,children:[D("div",{className:Ge.settingsGroupTitle,children:"设置项"}),D("div",{className:F(Ge.settingsGroupContent),children:D("div",{className:Ge.row,children:D(Cp,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:y7,children:D(Xt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:Ge.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),Ce("div",{className:F(Ge.settingsGroupContent),children:[Ce("div",{className:Ge.row,children:[D(un,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${fn}`}),Ce("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(Mt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:Ge.row,style:{marginTop:5},children:D(Cp,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:C7,children:D(Xt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:Ge.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),Ce("div",{className:F(Ge.settingsGroupContent),children:[D("div",{className:Ge.row,children:D(un,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(St,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:Ge.row,children:D(un,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:Ge.settingsGroupTitle,style:{marginTop:15},children:"预览"}),Ce("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(E3,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>yt.autoPreviewUpdateInterval=l,value:n}),Ce("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})})}]})})]})}const w7=qi.extend("settings"),fg={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleUseYoutubeLikeCard:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1},yt=rr({...fg}),Lw=Object.keys(fg);function _n(){return or(yt)}const x7=fn,Dw=`${x7}.settings`;async function $7(){const e=await GM.getValue(Dw);e&&typeof e=="object"&&Object.assign(yt,zm(e,Lw)),ng(yt,()=>{O7();});}const E7=gy(c7,hu("5s"));async function O7(){const e=Vl(yt);await GM.setValue(Dw,e),await I7(e);}async function I7(e){if(!e.backupSettingsToArticleDraft||Aw)return;const t=VP(e,["accessKey"]);try{await E7(t),w7("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Ir(e){Object.assign(yt,e);}function P7(){return Ir(fg)}await( $7());var zw={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Io,function(){var n,r,o=1e3,i=6e4,a=36e5,s=864e5,l=/\[([^\]]+)]|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,c=31536e6,u=2592e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:c,months:u,days:s,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},h=function($){return $ instanceof E},g=function($,x,w){return new E($,w,x.$l)},v=function($){return r.p($)+"s"},p=function($){return $<0},b=function($){return p($)?Math.ceil($):Math.floor($)},y=function($){return Math.abs($)},C=function($,x){return $?p($)?{negative:!0,format:""+y($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},E=function(){function $(w,O,R){var k=this;if(this.$d={},this.$l=R,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return g(w*m[v(O)],this);if(typeof w=="number")return this.$ms=w,this.parseFromMilliseconds(),this;if(typeof w=="object")return Object.keys(w).forEach(function(P){k.$d[v(P)]=w[P];}),this.calMilliseconds(),this;if(typeof w=="string"){var _=w.match(d);if(_){var I=_.slice(2).map(function(P){return P!=null?Number(P):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var x=$.prototype;return x.calMilliseconds=function(){var w=this;this.$ms=Object.keys(this.$d).reduce(function(O,R){return O+(w.$d[R]||0)*m[R]},0);},x.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=b(w/c),w%=c,this.$d.months=b(w/u),w%=u,this.$d.days=b(w/s),w%=s,this.$d.hours=b(w/a),w%=a,this.$d.minutes=b(w/i),w%=i,this.$d.seconds=b(w/o),w%=o,this.$d.milliseconds=w;},x.toISOString=function(){var w=C(this.$d.years,"Y"),O=C(this.$d.months,"M"),R=+this.$d.days||0;this.$d.weeks&&(R+=7*this.$d.weeks);var k=C(R,"D"),_=C(this.$d.hours,"H"),I=C(this.$d.minutes,"M"),P=this.$d.seconds||0;this.$d.milliseconds&&(P+=this.$d.milliseconds/1e3);var M=C(P,"S"),N=w.negative||O.negative||k.negative||_.negative||I.negative||M.negative,T=_.format||I.format||M.format?"T":"",L=(N?"-":"")+"P"+w.format+O.format+k.format+T+_.format+I.format+M.format;return L==="P"||L==="-P"?"P0D":L},x.toJSON=function(){return this.toISOString()},x.format=function(w){var O=w||"YYYY-MM-DDTHH:mm:ss",R={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return O.replace(l,function(k,_){return _||String(R[k])})},x.as=function(w){return this.$ms/m[v(w)]},x.get=function(w){var O=this.$ms,R=v(w);return R==="milliseconds"?O%=1e3:O=R==="weeks"?b(O/m[R]):this.$d[R],O===0?0:O},x.add=function(w,O,R){var k;return k=O?w*m[v(O)]:h(w)?w.$ms:g(w,this).$ms,g(this.$ms+k*(R?-1:1),this)},x.subtract=function(w,O){return this.add(w,O,!0)},x.locale=function(w){var O=this.clone();return O.$l=w,O},x.clone=function(){return g(this.$ms,this)},x.humanize=function(w){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!w)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$}(),S=function($,x,w){return $.add(x.years()*w,"y").add(x.months()*w,"M").add(x.days()*w,"d").add(x.hours()*w,"h").add(x.minutes()*w,"m").add(x.seconds()*w,"s").add(x.milliseconds()*w,"ms")};return function($,x,w){n=w,r=w().$utils(),w.duration=function(k,_){var I=w.locale();return g(k,{$l:I},_)},w.isDuration=h;var O=x.prototype.add,R=x.prototype.subtract;x.prototype.add=function(k,_){return h(k)?S(this,k,1):O.bind(this)(k,_)},x.prototype.subtract=function(k,_){return h(k)?S(this,k,-1):R.bind(this)(k,_)};}});})(zw);var R7=zw.exports;const _7=an(R7);var yu,Wb=v0;yu=Wb.createRoot,Wb.hydrateRoot;function mg(e){const t=rr({data:Array.from(new Set(e)),has(n){return this.data.indexOf(n)!==-1},add(n){let r=!1;return typeof n=="object"&&n!==null&&(r=this.data.indexOf(rr(n))!==-1),this.data.indexOf(n)===-1&&!r&&this.data.push(n),this},delete(n){const r=this.data.indexOf(n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},forEach(n){this.data.forEach(r=>{n(r,r,this);});},get[Symbol.toStringTag](){return "Set"},toJSON(){return new Set(this.data)},[Symbol.iterator](){return this.data[Symbol.iterator]()},values(){return this.data.values()},keys(){return this.data.values()},entries(){return new Set(this.data).entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}function T7(e){const t=rr({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}class M7 extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0;}_emitEvictions(t){if(typeof this.onEviction=="function")for(const[n,r]of t)this.onEviction(n,r.value);}_deleteIfExpired(t,n){return typeof n.expiry=="number"&&n.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,n.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,n){if(this._deleteIfExpired(t,n)===!1)return n.value}_getItemValue(t,n){return n.expiry?this._getOrDeleteIfExpired(t,n):n.value}_peek(t,n){const r=n.get(t);return this._getItemValue(t,r)}_set(t,n){this.cache.set(t,n),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map);}_moveToRecent(t,n){this.oldCache.delete(t),this._set(t,n);}*_entriesAscending(){for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield t);}for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield t);}}get(t){if(this.cache.has(t)){const n=this.cache.get(t);return this._getItemValue(t,n)}if(this.oldCache.has(t)){const n=this.oldCache.get(t);if(this._deleteIfExpired(t,n)===!1)return this._moveToRecent(t,n),n.value}}set(t,n,{maxAge:r=this.maxAge}={}){const o=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return this.cache.has(t)?this.cache.set(t,{value:n,expiry:o}):this._set(t,{value:n,expiry:o}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){const n=this.cache.delete(t);return n&&this._size--,this.oldCache.delete(t)||n}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0;}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...this._entriesAscending()],r=n.length-t;r<0?(this.cache=new Map(n),this.oldCache=new Map,this._size=n.length):(r>0&&this._emitEvictions(n.slice(0,r)),this.oldCache=new Map(n.slice(r)),this.cache=new Map,this._size=0),this.maxSize=t;}*keys(){for(const[t]of this)yield t;}*values(){for(const[,t]of this)yield t;}*[Symbol.iterator](){for(const t of this.cache){const[n,r]=t;this._deleteIfExpired(n,r)===!1&&(yield [n,r.value]);}for(const t of this.oldCache){const[n,r]=t;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield [n,r.value]);}}*entriesDescending(){let t=[...this.cache];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this._deleteIfExpired(o,i)===!1&&(yield [o,i.value]);}t=[...this.oldCache];for(let n=t.length-1;n>=0;--n){const r=t[n],[o,i]=r;this.cache.has(o)||this._deleteIfExpired(o,i)===!1&&(yield [o,i.value]);}}*entriesAscending(){for(const[t,n]of this._entriesAscending())yield [t,n.value];}get size(){if(!this._size)return this.oldCache.size;let t=0;for(const n of this.oldCache.keys())this.cache.has(n)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,n=this){for(const[r,o]of this.entriesAscending())t.call(n,o,r,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function N7(e){return (await $n.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function k7(e){return []}const Ld=new M7({maxSize:1e3});async function A7(e){if(Ld.has(e))return Ld.get(e);const[t,n]=await Promise.all([N7(e),k7()]);return Ld.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function jw(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Es()}),i=(await $n.post("/x/v2/history/toview/"+e,r)).data,a=Yo(i);return a||vt((i==null?void 0:i.message)||"出错了"),a}}const Qs=jw("add"),Vb=jw("del"),Bw=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await gu.get(by+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Yo(i)}},L7=Bw("dislike"),D7=Bw("cancel"),z7="_modal_1rloz_1",j7="_title-desc_1rloz_4",B7="_reason-list_1rloz_8",H7="_reason_1rloz_8",F7="_active_1rloz_29",W7="_reason-no_1rloz_33",V7="_tips-container_1rloz_47",U7="_tips_1rloz_47",qn={modal:z7,titleDesc:j7,reasonList:B7,reason:H7,active:F7,reasonNo:W7,tipsContainer:V7,tips:U7},Cu=T7();function G7(){return or(Cu)}function K7(e){const t=G7();if(e)return t.get(e)}function X7({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),i=ot(async h=>{if(!n)return;let g=!1,v;try{o(!0),g=await L7(n,h.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),mw();g?vt("已标记不想看"):hw(),g&&(Cu.set(n.param,{...h}),t());}),a=f.useMemo(()=>{var h;return ((h=n==null?void 0:n.three_point)==null?void 0:h.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];Qt(l,h=>{if(!s()||!l.includes(h.key))return;const g=Number(h.key)-1;u(g);const v=document.querySelectorAll(`.${qn.reason}`)[g]||null;v==null||v.click();});const[c,u]=f.useState(a.length-1);xF(()=>{u(a.length-1);},[a]);const d=h=>()=>{if(!s())return;const g=c+h;g<0||g>a.length-1||u(g);};Qt("leftarrow",d(-1)),Qt("rightarrow",d(1)),Qt("uparrow",d(-2)),Qt("downarrow",d(2)),Qt("enter",h=>{var g;s()&&(c<0||c>a.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(g=document.querySelector(`.${qn.reason}.${qn.active}`))==null||g.click()));});const m=f.useMemo(()=>{var h;return ((h=a[c])==null?void 0:h.name)||""},[a,c]);return Ce(lg,{show:e,onHide:t,clsModal:qn.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[Ce("div",{className:$r.modalHeader,children:[Ce("div",{className:$r.modalTitle,children:["我不想看",D("span",{className:qn.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(cg,{onClick:t})]}),Ce("div",{className:$r.modalBody,children:[D("div",{className:qn.reasonList,children:a.map((h,g)=>Ce("button",{className:F(qn.reason,{[qn.active]:g===c}),style:{...g===c&&{borderColor:Vr}},"data-id":h.id,onClick:()=>{u(g),i(h);},disabled:r,children:[D("span",{className:qn.reasonNo,style:{backgroundColor:Vr},children:g+1}),h.name]},h.id))}),Ce("div",{className:qn.tipsContainer,children:[Ce("div",{className:qn.tips,children:[D(Mt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&Ce("div",{className:qn.tips,children:[D(Mt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const bl={show:!1,onHide:Fw,item:null},Hw=rr({value:bl.show}),q7=function(){return or(Hw).value};function Fw(){setTimeout(()=>{Ww({show:!1,item:null});});}function Ww(e){Object.assign(bl,e),Hw.value=bl.show,Y7().render(D(X7,{...bl,onHide:Fw}));}let Dd;function Y7(){if(!Dd){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Dd=yu(e);}return Dd}function Z7(e){e!=null&&e.param&&Cu.has(e.param)||Ww({show:!0,item:e});}const Vw=f__namespace.createContext(null),Q7=Vw.Provider,Uw=f__namespace.createContext(null),J7=Uw.Provider,eW=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Rt(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"}})}},tW=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,dotSize:d,colorBgContainerDisabled:m,colorTextDisabled:h,paddingXS:g,dotColorDisabled:v,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:C}=e,E=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Rt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${u}px ${p} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Object.assign({},zo(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:y?r:C,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,width:0,height:0,padding:0,margin:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:m,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},nW=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:E,colorTextDisabled:S,colorBgContainerDisabled:$,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:w,colorPrimary:O,colorPrimaryHover:R,colorPrimaryActive:k}=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}`,`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:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:h,fontSize:m,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:g,paddingInline:v-o,paddingBlock:0,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},zo(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:O,background:C,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:O,borderColor:O,"&:hover":{color:E,background:R,borderColor:R},"&:active":{color:E,background:k,borderColor:k}},"&-disabled":{color:S,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:$,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:x,borderColor:a,boxShadow:"none"}}}},Ub=e=>e-4*2,Gw=Bt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=Ub(r),s=ut(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [eW(s),tW(s),nW(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u}=e,d=4,m=i,h=t?Ub(m):m-(d+o)*2;return {radioSize:m,dotSize:h,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var rW=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(Vw),i=f__namespace.useContext(Uw),{getPrefixCls:a,direction:s,radio:l}=f__namespace.useContext(Je),c=f__namespace.useRef(null),u=xn(t,c),{isFormItemInput:d}=f__namespace.useContext(nr),m=k=>{var _,I;(_=e.onChange)===null||_===void 0||_.call(e,k),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,k);},{prefixCls:h,className:g,rootClassName:v,children:p,style:b}=e,y=rW(e,["prefixCls","className","rootClassName","children","style"]),C=a("radio",h),E=((o==null?void 0:o.optionType)||i)==="button",S=E?`${C}-button`:C,[$,x]=Gw(C),w=Object.assign({},y),O=f__namespace.useContext(_r);o&&(w.name=o.name,w.onChange=m,w.checked=e.value===o.value,w.disabled=(n=w.disabled)!==null&&n!==void 0?n:o.disabled),w.disabled=(r=w.disabled)!==null&&r!==void 0?r:O;const R=F(`${S}-wrapper`,{[`${S}-wrapper-checked`]:w.checked,[`${S}-wrapper-disabled`]:w.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:d},l==null?void 0:l.className,g,v,x);return $(f__namespace.createElement(ms,{component:"Radio",disabled:w.disabled},f__namespace.createElement("label",{className:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(FS,Object.assign({},w,{className:F(w.className,!E&&Vc),type:"radio",prefixCls:S,ref:u})),p!==void 0?f__namespace.createElement("span",null,p):null)))},iW=f__namespace.forwardRef(oW),Yl=iW,aW=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Je),[o,i]=Dt(e.defaultValue,{value:e.value}),a=_=>{const I=o,P=_.target.value;"value"in e||i(P);const{onChange:M}=e;M&&P!==I&&M(_);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:m,children:h,size:g,style:v,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:E}=e,S=n("radio",s),$=`${S}-group`,[x,w]=Gw(S);let O=h;u&&u.length>0&&(O=u.map(_=>typeof _=="string"||typeof _=="number"?f__namespace.createElement(Yl,{key:_.toString(),prefixCls:S,disabled:m,value:_,checked:o===_},_):f__namespace.createElement(Yl,{key:`radio-group-value-options-${_.value}`,prefixCls:S,disabled:_.disabled||m,value:_.value,checked:o===_.value,title:_.title,style:_.style},_.label)));const R=Wn(g),k=F($,`${$}-${d}`,{[`${$}-${R}`]:R,[`${$}-rtl`]:r==="rtl"},l,c,w);return x(f__namespace.createElement("div",Object.assign({},Di(e,{aria:!0,data:!0}),{className:k,style:v,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:E,id:p,ref:t}),f__namespace.createElement(Q7,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),sW=f__namespace.memo(aW);var lW=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(Je),{prefixCls:r}=e,o=lW(e,["prefixCls"]),i=n("radio",r);return f__namespace.createElement(J7,{value:"button"},f__namespace.createElement(Yl,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},uW=f__namespace.forwardRef(cW),Su=Yl;Su.Button=uW;Su.Group=sW;Su.__ANT_RADIO=!0;const Gb=Su;function dW(e,t){const n=Object.keys(e),r=zm(JSON.parse(localStorage.getItem(t)||"{}"),n),o=rr({...e,...r});return ng(o,()=>{const i=Vl(o);localStorage.setItem(t,JSON.stringify(i));}),o}const fW=`${fn}-video-source-tab`,hg=dW({value:"recommend-app"},fW),Kb={name:"qamjgr",styles:"margin-right:4px"},Zl=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"onlyFollow",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic",icon:"Tumblr",iconProps:{size:16},label:"动态",desc:"视频投稿动态",swr:!0},{key:"watchlater",icon:"FileCabinet",iconProps:{size:15},label:"稍后再看",desc:"你添加的稍后再看; 默认随机乱序, 可在设置-高级设置 或 稍后再看 Tab 中关闭乱序",swr:!0},{key:"fav",icon:"Star",iconProps:{size:15},label:"收藏",desc:"你添加的收藏; 默认随机乱序, 可在设置-高级设置 或 收藏 Tab 中关闭乱序",reuseable:!1}],Xb=Zl.reduce((e,t)=>({...e,[t.key]:t}),{}),mW=Zl.map(e=>e.key);function Kw(e,t){return mW.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Is(){return Kw(or(hg).value,Nw())}function hW(){return Kw(hg.value,Os())}function gW(){return vt("你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~")}const vW={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},pW={name:"s0vnfv",styles:"height:32px"};var bW={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},yW={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function Xw({onRefresh:e}){const t=Nw(),n=Is(),{styleUseStandardVideoSourceTab:r}=_n();return Ce(St,{children:[D(Gb.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:o=>{o.target.blur();},onChange:o=>{const i=o.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!ZF())return gW();hg.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:Zl.map(({key:o,label:i,icon:a,iconProps:s})=>D(Gb.Button,{css:[vW,r&&pW,"",""],className:"video-source-tab",tabIndex:-1,value:o,children:Ce("span",{css:yW,children:[D(Mt,{name:a,...s,size:(s==null?void 0:s.size)||18,css:Kb}),i]})},o))}),D(Gl,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(St,{children:Zl.map(({key:o,label:i,icon:a,iconProps:s,desc:l})=>Ce("div",{css:bW,children:[D(Mt,{name:a,...s,size:(s==null?void 0:s.size)||18,css:Kb}),i,": ",l]},o))})})]})}var CW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const SW=CW;var wW=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:SW}))};const Ql=f__namespace.forwardRef(wW);const qw=f__namespace.createContext({});var xW=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,dashed:r}=e,o=xW(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=f__namespace.useContext(Je),a=i("menu",t),s=F({[`${a}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(_h,Object.assign({className:s},o))},Yw=$W,EW=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Jl=EW,OW=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=f__namespace.useContext(Jl),m=y=>{const C=f__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||Fr(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:h}=f__namespace.useContext(qw);let g=i;typeof i>"u"?g=l?r:"":i===!1&&(g="");const v={title:g};!h&&!d&&(v.title=null,v.open=!1);const p=tr(r).length;let b=f__namespace.createElement(ps,Object.assign({},Cn(e,["title","icon","danger"]),{className:F({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof i=="string"?i:void 0}),yn(o,{className:F(Fr(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(d));return u||(b=f__namespace.createElement(ds,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},Zw=OW,IW=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=f__namespace.useContext(Jl),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=ea();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):f__namespace.createElement("span",{className:`${s}-title-content`},o);else {const h=Fr(o)&&o.type==="span";d=f__namespace.createElement(f__namespace.Fragment,null,yn(r,{className:F(Fr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:f__namespace.createElement("span",{className:`${s}-title-content`},o));}const m=f__namespace.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return f__namespace.createElement(Jl.Provider,{value:m},f__namespace.createElement(Qc,Object.assign({},Cn(e,["icon"]),{title:d,popupClassName:F(s,n,`${s}-${i||c}`)})))},Qw=IW;var PW=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{children:n}=e,r=PW(e,["children"]),o=f__namespace.useContext(ec),i=f__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return f__namespace.createElement(ec.Provider,{value:i},f__namespace.createElement(Mi,null,f__namespace.cloneElement(n,{ref:t})))});var _W=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&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,l=_W(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||s==="group"?s==="group"?f__namespace.createElement(Jc,Object.assign({key:c},l,{title:o}),Qf(i)):f__namespace.createElement(Qw,Object.assign({key:c},l,{title:o}),Qf(i)):s==="divider"?f__namespace.createElement(Yw,Object.assign({key:c},l)):f__namespace.createElement(Zw,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function TW(e){return f__namespace.useMemo(()=>e&&Qf(e),[e])}const MW=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},NW=MW,kW=e=>{let{componentCls:t,menuArrowOffset:n}=e;return {[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},AW=kW,qb=e=>Object.assign({},zo(e)),LW=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:E,dangerItemColor:S,dangerItemHoverColor:$,dangerItemSelectedColor:x,dangerItemActiveBg:w,dangerItemSelectedBg:O,itemHoverBg:R,itemActiveBg:k,menuSubMenuBg:_,horizontalItemSelectedColor:I,horizontalItemSelectedBg:P,horizontalItemBorderRadius:M,horizontalItemHoverBg:N,popupBg:T}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},qb(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},qb(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},Yb=LW,Zb=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e,l=o+i+a;return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:l}}},DW=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Zb(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Zb(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Do),{paddingInline:h})}}]},zW=DW,Qb=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Go()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Jb=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},jW=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},ff()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),ff()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${l}px`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qb(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Qb(e)),Jb(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Jb(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},BW=(e,t)=>Bt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:m,darkItemSelectedColor:h,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:$}=r,x=l/7*5,w=ut(r,{menuArrowSize:x,menuHorizontalHeight:s*1.15,menuArrowOffset:`${x*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),O=ut(w,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:h,itemBg:d,popupBg:d,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:E,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:v,menuSubMenuBg:m,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return [jW(w),NW(w),zW(w),Yb(w,"light"),Yb(O,"dark"),AW(w),T1(w),mo(w,"slide-up"),mo(w,"slide-down"),Lc(w,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:m,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:E,padding:S,fontSize:$,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:O,colorErrorHover:R}=r,k=new Vt(O).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:h,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:C,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:`${b*1.15}px`,iconSize:$,iconMarginInlineEnd:x-$,collapsedIconSize:w,groupTitleFontSize:$,darkItemDisabledColor:new Vt(O).setAlpha(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:O,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:i}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e);var HW=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(ec),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=f__namespace.useContext(Je),u=a(),{prefixCls:d,className:m,style:h,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:C,children:E,rootClassName:S,mode:$,selectable:x,onClick:w,overflowedIndicatorPopupClassName:O}=e,R=HW(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=Cn(R,["collapsedWidth"]),_=TW(C)||E;(n=i.validator)===null||n===void 0||n.call(i,{mode:$});const I=Nn(function(){var j;w==null||w.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i);}),P=i.mode||$,M=x??i.selectable,N=f__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),T={horizontal:{motionName:`${u}-slide-up`},inline:E1(u),other:{motionName:`${u}-zoom-big`}},L=a("menu",d||i.prefixCls),[z,H]=BW(L,!o),W=F(`${L}-${g}`,c==null?void 0:c.className,m);let B;if(typeof v=="function")B=v;else {const j=v||i.expandIcon;B=yn(j,{className:F(`${L}-submenu-expand-icon`,Fr(j)?(r=j.props)===null||r===void 0?void 0:r.className:"")});}const V=f__namespace.useMemo(()=>({prefixCls:L,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:g,mode:P,disableMenuItemTitleTooltip:p}),[L,N,l,p,g]);return z(f__namespace.createElement(ec.Provider,{value:null},f__namespace.createElement(Jl.Provider,{value:V},f__namespace.createElement(ta,Object.assign({getPopupContainer:s,overflowedIndicator:f__namespace.createElement($h,null),overflowedIndicatorPopupClassName:F(L,`${L}-${g}`,O),mode:P,selectable:M,onClick:I},k,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:W,prefixCls:L,direction:l,defaultMotions:T,expandIcon:B,ref:t,rootClassName:F(S,H)}),_))))}),WW=FW,Ps=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(qw);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),f__namespace.createElement(WW,Object.assign({ref:n},e,r))});Ps.Item=Zw;Ps.SubMenu=Qw;Ps.Divider=Yw;Ps.ItemGroup=Jc;const VW=Ps,UW=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},GW=UW,KW=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},Rt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:oh},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ah},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ih},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:sh}})},nh(e,{colorBg:v,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},jo(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},jo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[mo(e,"slide-up"),mo(e,"slide-down"),kl(e,"move-up"),kl(e,"move-down"),Lc(e,"zoom-big")]]},Jw=Bt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(i-a*s)/2,{dropdownArrowOffset:m}=th({contentRadius:u}),h=ut(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [KW(h),GW(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),gg=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,open:d,onOpenChange:m,visible:h,onVisibleChange:g,mouseEnterDelay:v=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:C,transitionName:E}=e,{getPopupContainer:S,getPrefixCls:$,direction:x}=f__namespace.useContext(Je),w=f__namespace.useMemo(()=>{const K=$();return E!==void 0?E:y.includes("top")?`${K}-slide-down`:`${K}-slide-up`},[$,y,E]),O=f__namespace.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:x==="rtl"?"bottomRight":"bottomLeft",[y,x]),R=$("dropdown",r),[k,_]=Jw(R),{token:I}=Ni.useToken(),P=f__namespace.Children.only(o),M=yn(P,{className:F(`${R}-trigger`,{[`${R}-rtl`]:x==="rtl"},P.props.className),disabled:a}),N=a?[]:i;let T;N&&N.includes("contextMenu")&&(T=!0);const[L,z]=Dt(!1,{value:d??h}),H=Nn(K=>{m==null||m(K),g==null||g(K),z(K);}),W=F(c,u,_,{[`${R}-rtl`]:x==="rtl"}),B=I1({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:I.marginXXS,arrowWidth:n?I.sizePopupArrow:0,borderRadius:I.borderRadius}),V=f__namespace.useCallback(()=>{z(!1);},[]),j=()=>{let K;return t!=null&&t.items?K=f__namespace.createElement(VW,Object.assign({},t)):typeof C=="function"?K=C():K=C,s&&(K=s(K)),K=f__namespace.Children.only(typeof K=="string"?f__namespace.createElement("span",null,K):K),f__namespace.createElement(RW,{prefixCls:`${R}-menu`,expandIcon:f__namespace.createElement("span",{className:`${R}-menu-submenu-arrow`},f__namespace.createElement(zi,{className:`${R}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:V,validator:q=>{}},K)};return k(f__namespace.createElement(TC,Object.assign({alignPoint:T},Cn(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:p,visible:L,builtinPlacements:B,arrow:!!n,overlayClassName:W,prefixCls:R,getPopupContainer:l||S,transitionName:w,trigger:N,overlay:j,placement:O,onVisibleChange:H}),M))};function XW(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const qW=Hh(gg,"dropdown",e=>e,XW),YW=e=>f__namespace.createElement(qW,Object.assign({},e),f__namespace.createElement("span",null));gg._InternalPanelDoNotUseOrYouWillBeFired=YW;const ex=gg;var ZW=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{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(Je),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:m,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:b,align:y,open:C,onOpenChange:E,placement:S,getPopupContainer:$,href:x,icon:w=f__namespace.createElement($h,null),title:O,buttonsRender:R=oe=>oe,mouseEnterDelay:k,mouseLeaveDelay:_,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:N}=e,T=ZW(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),L=n("dropdown",o),z=`${L}-button`,[H,W]=Jw(L),B={menu:h,arrow:g,autoFocus:v,align:y,disabled:s,trigger:s?[]:b,onOpenChange:E,getPopupContainer:$||t,mouseEnterDelay:k,mouseLeaveDelay:_,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:N},{compactSize:V,compactItemClassnames:j}=Ji(L,r),K=F(z,j,m,W);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=C),"placement"in e?B.placement=S:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=f__namespace.createElement(Xt,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:x,title:O},d),G=f__namespace.createElement(Xt,{type:i,danger:a,icon:w}),[U,Y]=R([q,G]);return H(f__namespace.createElement(Xc.Compact,Object.assign({className:K,size:V,block:!0},T),U,f__namespace.createElement(ex,Object.assign({},B),Y)))};tx.__ANT_BUTTON=!0;const QW=tx,nx=ex;nx.Button=QW;const vg=nx;function pi(e,t,n){const r=ot(n);f.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}var JW=Math.floor,eV=Math.random;function tV(e,t){return e+JW(eV()*(t-e+1))}function rx(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},lV=e=>{const{componentCls:t}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},cV=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return {[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},uV=e=>{const{componentCls:t}=e,n=`${t}-inner`;return {[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},dV=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),jo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},fV=Bt("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=ut(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+r+r*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new Vt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [dV(a),uV(a),cV(a),lV(a),sV(a)]});var mV=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,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=mV(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:m}=f__namespace.useContext(Je),h=f__namespace.useContext(_r),g=(o??h)||i,v=u("switch",n),p=f__namespace.createElement("div",{className:`${v}-handle`},i&&f__namespace.createElement(fh,{className:`${v}-loading-icon`})),[b,y]=fV(v),C=Wn(r),E=F(m==null?void 0:m.className,{[`${v}-small`]:C==="small",[`${v}-loading`]:i,[`${v}-rtl`]:d==="rtl"},a,s,y),S=Object.assign(Object.assign({},m==null?void 0:m.style),l);return b(f__namespace.createElement(ms,{component:"Switch"},f__namespace.createElement(ox,Object.assign({},c,{prefixCls:v,className:E,style:S,disabled:g,ref:t,loadingIcon:p}))))});ix.__ANT_SWITCH=!0;const ax=ix,tc=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},hV=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:i}=n;o&&t.set(i,r);}),t};function gV(e,t,n){const r=f__namespace.useMemo(()=>(e||[]).map(a=>(t&&(a=Object.assign(Object.assign({},a),{key:t(a)})),a)),[e,t]),[o,i]=f__namespace.useMemo(()=>{const a=[],s=new Array((n||[]).length),l=tc(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:a.push(c);}),[a,s]},[r,n,t]);return [r,o,i]}const vV=[];function mi(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function e0(e){return Array.from(e).join(";")}function pV(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vV;const[r,o]=f__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[i,a]=f__namespace.useState(()=>mi(n,r)),[s,l]=f__namespace.useState(()=>mi(n,o));return f__namespace.useEffect(()=>{a(mi(n,r)),l(mi(n,o));},[n]),f__namespace.useEffect(()=>{a(mi(i,r)),l(mi(s,o));},[e0(r),e0(o)]),[i,s,a,l]}var bV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const yV=bV;var CV=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:yV}))};const t0=f__namespace.forwardRef(CV);var SV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const wV=SV;var xV=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:wV}))};const n0=f__namespace.forwardRef(xV);var xo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const $V={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var sx=function(e){ho(n,e);var t=go(n);function n(){var r;Sn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0||s.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&u(r.getValidValue()));},r.go=function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===xo.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));},r}return wn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(s){return s.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(s,l){var c=Number.isNaN(Number(s))?0:Number(s),u=Number.isNaN(Number(l))?0:Number(l);return c-u})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,s=i.locale,l=i.rootPrefixCls,c=i.changeSize,u=i.quickGo,d=i.goButton,m=i.selectComponentClass,h=i.buildOptionText,g=i.selectPrefixCls,v=i.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=m,C=null,E=null,S=null;if(!c&&!u)return null;var $=this.getPageSizeOptions();if(c&&y){var x=$.map(function(w,O){return f.createElement(y.Option,{key:O,value:w.toString()},(h||o.buildOptionText)(w))});C=f.createElement(y,{disabled:v,prefixCls:g,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||$[0]).toString(),onChange:this.changeSize,getPopupContainer:function(O){return O.parentNode},"aria-label":s.page_size,defaultOpen:!1},x);}return u&&(d&&(S=typeof d=="boolean"?f.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):f.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),E=f.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,f.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,S)),f.createElement("li",{className:"".concat(b)},C,E)}}]),n}(f.Component);sx.defaultProps={pageSizeOptions:["10","20","50","100"]};var ga=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),m=F(d,"".concat(d,"-").concat(o),(n={},Q(n,"".concat(d,"-active"),i),Q(n,"".concat(d,"-disabled"),!o),Q(n,t.className,a),n)),h=function(){l(o);},g=function(b){c(b,l,o);},v=u(o,"page",f.createElement("a",{rel:"nofollow"},o));return v?f.createElement("li",{title:s?o.toString():null,className:m,onClick:h,onKeyPress:g,tabIndex:0},v):null};function em(){}function r0(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var EV=function(t,n,r){return r};function no(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var lx=function(e){ho(n,e);var t=go(n);function n(r){var o;Sn(this,n),o=t.call(this,r),o.paginationNode=f.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(no(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(c,u){var d=o.props.prefixCls,m=c||f.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(m=f.createElement(c,ee({},o.props))),m},o.isValid=function(c){var u=o.props.total;return r0(c)&&c!==o.state.current&&r0(u)&&u>0},o.shouldDisplayQuickJumper=function(){var c=o.props,u=c.showQuickJumper,d=c.total,m=o.state.pageSize;return d<=m?!1:u},o.handleKeyDown=function(c){(c.keyCode===xo.ARROW_UP||c.keyCode===xo.ARROW_DOWN)&&c.preventDefault();},o.handleKeyUp=function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===xo.ENTER?o.handleChange(u):c.keyCode===xo.ARROW_UP?o.handleChange(u-1):c.keyCode===xo.ARROW_DOWN&&o.handleChange(u+1);},o.handleBlur=function(c){var u=o.getValidValue(c);o.handleChange(u);},o.changePageSize=function(c){var u=o.state.current,d=no(c,o.state,o.props);u=u>d?d:u,d===0&&(u=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:u,currentInputValue:u})),o.props.onShowSizeChange(u,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(u,c);},o.handleChange=function(c){var u=o.props,d=u.disabled,m=u.onChange,h=o.state,g=h.pageSize,v=h.current,p=h.currentInputValue;if(o.isValid(c)&&!d){var b=no(void 0,o.state,o.props),y=c;return c>b?y=b:c<1&&(y=1),"current"in o.props||o.setState({current:y}),y!==p&&o.setState({currentInputValue:y}),m(y,g),y}return v},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1);},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1);},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage());},o.jumpNext=function(){o.handleChange(o.getJumpNextPage());},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current2?d-2:0),h=2;h=a?l=a:l=Number(i),l}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,s=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>s}},{key:"render",value:function(){var o=this.props,i=o.prefixCls,a=o.className,s=o.style,l=o.disabled,c=o.hideOnSinglePage,u=o.total,d=o.locale,m=o.showQuickJumper,h=o.showLessItems,g=o.showTitle,v=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,C=o.jumpPrevIcon,E=o.jumpNextIcon,S=o.selectComponentClass,$=o.selectPrefixCls,x=o.pageSizeOptions,w=this.state,O=w.current,R=w.pageSize,k=w.currentInputValue;if(c===!0&&u<=R)return null;var _=no(void 0,this.state,this.props),I=[],P=null,M=null,N=null,T=null,L=null,z=m&&m.goButton,H=h?1:2,W=O-1>0?O-1:0,B=O+1<_?O+1:_,V=Di(this.props,{aria:!0,data:!0}),j=v&&f.createElement("li",{className:"".concat(i,"-total-text")},v(u,[u===0?0:(O-1)*R+1,O*R>u?u:O*R]));if(p){z&&(typeof z=="boolean"?L=f.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):L=f.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),L=f.createElement("li",{title:g?"".concat(d.jump_to).concat(O,"/").concat(_):null,className:"".concat(i,"-simple-pager")},L));var K=this.renderPrev(W);return f.createElement("ul",Oe({className:F(i,"".concat(i,"-simple"),Q({},"".concat(i,"-disabled"),l),a),style:s,ref:this.paginationNode},V),j,K?f.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:F("".concat(i,"-prev"),Q({},"".concat(i,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},K):null,f.createElement("li",{title:g?"".concat(O,"/").concat(_):null,className:"".concat(i,"-simple-pager")},f.createElement("input",{type:"text",value:k,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),f.createElement("span",{className:"".concat(i,"-slash")},"/"),_),f.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:F("".concat(i,"-next"),Q({},"".concat(i,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),L)}if(_<=3+H*2){var q={locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:b};_||I.push(f.createElement(ga,Oe({},q,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var G=1;G<=_;G+=1){var U=O===G;I.push(f.createElement(ga,Oe({},q,{key:G,page:G,active:U})));}}else {var Y=h?d.prev_3:d.prev_5,oe=h?d.next_3:d.next_5,ue=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),he=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(E,"next page"));y&&(P=ue?f.createElement("li",{title:g?Y:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:F("".concat(i,"-jump-prev"),Q({},"".concat(i,"-jump-prev-custom-icon"),!!C))},ue):null,M=he?f.createElement("li",{title:g?oe:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:F("".concat(i,"-jump-next"),Q({},"".concat(i,"-jump-next-custom-icon"),!!E))},he):null),T=f.createElement(ga,{locale:d,last:!0,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:g,itemRender:b}),N=f.createElement(ga,{locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:b});var re=Math.max(1,O-H),ie=Math.min(O+H,_);O-1<=H&&(ie=1+H*2),_-O<=H&&(re=_-H*2);for(var ce=re;ce<=ie;ce+=1){var X=O===ce;I.push(f.createElement(ga,{locale:d,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ce,page:ce,active:X,showTitle:g,itemRender:b}));}O-1>=H*2&&O!==1+2&&(I[0]=f.cloneElement(I[0],{className:"".concat(i,"-item-after-jump-prev")}),I.unshift(P)),_-O>=H*2&&O!==_-2&&(I[I.length-1]=f.cloneElement(I[I.length-1],{className:"".concat(i,"-item-before-jump-next")}),I.push(M)),re!==1&&I.unshift(N),ie!==_&&I.push(T);}var ne=!this.hasPrev()||!_,J=!this.hasNext()||!_,de=this.renderPrev(W),fe=this.renderNext(B);return f.createElement("ul",Oe({className:F(i,a,Q({},"".concat(i,"-disabled"),l)),style:s,ref:this.paginationNode},V),j,de?f.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:F("".concat(i,"-prev"),Q({},"".concat(i,"-disabled"),ne)),"aria-disabled":ne},de):null,I,fe?f.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:J?null:0,onKeyPress:this.runIfEnterNext,className:F("".concat(i,"-next"),Q({},"".concat(i,"-disabled"),J)),"aria-disabled":J},fe):null,f.createElement(sx,{disabled:l,locale:d,rootPrefixCls:i,selectComponentClass:S,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:R,pageSizeOptions:x,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a={};if("current"in o&&(a.current=o.current,o.current!==i.current&&(a.currentInputValue=a.current)),"pageSize"in o&&o.pageSize!==i.pageSize){var s=i.current,l=no(o.pageSize,i,o);s=s>l?l:s,"current"in o||(a.current=s,a.currentInputValue=s),a.pageSize=o.pageSize;}return a}}]),n}(f.Component);lx.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:em,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:em,locale:$V,style:{},itemRender:EV,totalBoundaryShowSizeChanger:50};function OV(){const[,e]=f__namespace.useReducer(t=>t+1,0);return e}const cx=["xxl","xl","lg","md","sm","xs"],IV=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),PV=e=>{const t=e,n=[].concat(cx).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener);}),n.clear();},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}));},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function ux(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=OV(),r=RV();return Wt(()=>{const o=r.subscribe(i=>{t.current=i,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const dx=e=>f__namespace.createElement(bs,Object.assign({},e,{showSearch:!0,size:"small"})),fx=e=>f__namespace.createElement(bs,Object.assign({},e,{showSearch:!0,size:"middle"}));dx.Option=bs.Option;fx.Option=bs.Option;const _V=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},TV=e=>{const{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},Sh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},MV=e=>{const{componentCls:t}=e;return {[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},NV=e=>{const{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},vs(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},kV=e=>{const{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},AV=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),kV(e)),NV(e)),MV(e)),TV(e)),_V(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},LV=e=>{const{componentCls:t}=e;return {[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},DV=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},jo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},zo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},zo(e))}}}},zV=Bt("Pagination",e=>{const t=ut(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},wh(e));return [AV(t),DV(t),e.wireframe&&LV(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}));var jV=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,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=jV(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=ux(c),{getPrefixCls:h,direction:g,pagination:v={}}=f__namespace.useContext(Je),p=h("pagination",t),[b,y]=zV(p),C=u??v.showSizeChanger,E=f__namespace.useMemo(()=>{const _=f__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),I=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?f__namespace.createElement(zi,null):f__namespace.createElement(Ql,null)),P=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?f__namespace.createElement(Ql,null):f__namespace.createElement(zi,null)),M=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?f__namespace.createElement(n0,{className:`${p}-item-link-icon`}):f__namespace.createElement(t0,{className:`${p}-item-link-icon`}),_)),N=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?f__namespace.createElement(t0,{className:`${p}-item-link-icon`}):f__namespace.createElement(n0,{className:`${p}-item-link-icon`}),_));return {prevIcon:I,nextIcon:P,jumpPrevIcon:M,jumpNextIcon:N}},[g,p]),[S]=Zi("Pagination",jy),$=Object.assign(Object.assign({},S),s),x=Wn(a),w=x==="small"||!!(m&&!x&&c),O=h("select",n),R=F({[`${p}-mini`]:w,[`${p}-rtl`]:g==="rtl"},v==null?void 0:v.className,r,o,y),k=Object.assign(Object.assign({},v==null?void 0:v.style),i);return b(f__namespace.createElement(lx,Object.assign({},E,d,{style:k,prefixCls:p,selectPrefixCls:O,className:R,selectComponentClass:l||(w?dx:fx),locale:$,showSizeChanger:C})))},HV=BV;var FV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const WV=FV;var VV=function(t,n){return f__namespace.createElement(hn,Oe({},t,{ref:n,icon:WV}))};const UV=f__namespace.forwardRef(VV);var GV=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=c=>{const{keyCode:u}=c;u===le.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===le.ENTER&&d&&d();},{style:o,noStyle:i,disabled:a}=e,s=GV(e,["style","noStyle","disabled"]);let l={};return i||(l=Object.assign({},KV)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),f__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),qV=XV,YV=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:i,prefixCls:a,onClick:s,onRemove:l,showRemove:c}=e,u=F(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[m]=Zi("Transfer",Br.Transfer),h={className:u,title:d},g=f__namespace.createElement("span",{className:`${a}-content-item-text`},n);return c?f__namespace.createElement("li",Object.assign({},h),g,f__namespace.createElement(qV,{disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{l==null||l(r);}},f__namespace.createElement(UV,null))):(h.onClick=i||r.disabled?void 0:()=>s(r),f__namespace.createElement("li",Object.assign({},h),f__namespace.createElement(eg,{className:`${a}-checkbox`,checked:o,disabled:i||r.disabled}),g))},ZV=f__namespace.memo(YV),QV=["handleFilter","handleClear","checkedKeys"],JV=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),eU=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:i,showRemove:a,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,m]=f__namespace.useState(1),h=f__namespace.useMemo(()=>s?JV(typeof s=="object"?s:{}):null,[s]),[g,v]=Dt(10,{value:h==null?void 0:h.pageSize});f__namespace.useEffect(()=>{if(h){const x=Math.ceil(r.length/g);m(Math.min(d,x));}},[r,h,g]);const p=x=>{c==null||c(x.key,!o.includes(x.key));},b=x=>{u==null||u([x.key]);},y=x=>{m(x);},C=(x,w)=>{m(x),v(w);},E=f__namespace.useMemo(()=>h?r.slice((d-1)*g,d*g):r,[d,r,h,g]);f__namespace.useImperativeHandle(t,()=>({items:E}));const S=h?f__namespace.createElement(HV,{size:"small",disabled:i,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:C}):null,$=F(`${n}-content`,{[`${n}-content-show-remove`]:a});return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("ul",{className:$,onScroll:l},(E||[]).map(x=>{let{renderedEl:w,renderedText:O,item:R}=x;return f__namespace.createElement(ZV,{key:R.key,item:R,renderedText:O,renderedEl:w,prefixCls:n,showRemove:a,onClick:p,onRemove:b,checked:o.includes(R.key),disabled:i||R.disabled})})),S)},tU=f__namespace.forwardRef(eU),nU=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:a}=e,s=f__namespace.useCallback(l=>{i==null||i(l),l.target.value===""&&(a==null||a());},[i]);return f__namespace.createElement(zS,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:f__namespace.createElement(qh,null)})},mx=nU,rU=()=>null;function oU(e){return !!(e&&!Fr(e)&&Object.prototype.toString.call(e)==="[object Object]")}function va(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const iU=e=>e!==void 0,aU=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:i,showSearch:a=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:m,removeAll:h,removeCurrent:g,showSelectAll:v=!0,showRemove:p,pagination:b,direction:y,itemsUnit:C,itemUnit:E,selectAllLabel:S,selectionsIcon:$,footer:x,renderList:w,onItemSelectAll:O,onItemRemove:R,handleFilter:k,handleClear:_,filterOption:I,render:P=rU}=e,[M,N]=f.useState(""),T=f.useRef({}),L=X=>{N(X.target.value),k(X);},z=()=>{N(""),_();},H=(X,ne)=>I?I(M,ne):X.includes(M),W=X=>{let ne=w?w(X):null;const J=!!ne;return J||(ne=f.createElement(tU,Object.assign({ref:T},X))),{customize:J,bodyContent:ne}},B=X=>{const ne=P(X),J=oU(ne);return {item:X,renderedEl:J?ne.label:ne,renderedText:J?ne.value:ne}},V=f.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[j,K]=f.useMemo(()=>{const X=[],ne=[];return n.forEach(J=>{const de=B(J);M&&!H(de.renderedText,J)||(X.push(J),ne.push(de));}),[X,ne]},[n,M]),q=f.useMemo(()=>{if(o.length===0)return "none";const X=tc(o);return j.every(ne=>X.has(ne.key)||!!ne.disabled)?"all":"part"},[o,j]),G=f.useMemo(()=>{const X=a?f.createElement("div",{className:`${t}-body-search-wrapper`},f.createElement(mx,{prefixCls:`${t}-search`,onChange:L,handleClear:z,placeholder:l,value:M,disabled:i})):null,{customize:ne,bodyContent:J}=W(Object.assign(Object.assign({},Cn(e,QV)),{filteredItems:j,filteredRenderItems:K,selectedKeys:o}));let de;return ne?de=f.createElement("div",{className:`${t}-body-customize-wrapper`},J):de=j.length?J:f.createElement("div",{className:`${t}-body-not-found`},V),f.createElement("div",{className:F(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},X,de)},[a,t,l,M,i,o,j,K,V]),U=f.createElement(eg,{disabled:n.length===0||i,checked:q==="all",indeterminate:q==="part",className:`${t}-checkbox`,onChange:()=>{O==null||O(j.filter(X=>!X.disabled).map(X=>{let{key:ne}=X;return ne}),q!=="all");}}),Y=(X,ne)=>{if(S)return typeof S=="function"?S({selectedCount:X,totalCount:ne}):S;const J=ne>1?C:E;return f.createElement(f.Fragment,null,(X>0?`${X}/`:"")+ne," ",J)},oe=x&&(x.length<2?x(e):x(e,{direction:y})),ue=F(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!oe}),he=oe?f.createElement("div",{className:`${t}-footer`},oe):null,re=!p&&!b&&U;let ie;p?ie=[b?{key:"removeCurrent",label:g,onClick(){var X;const ne=va((((X=T.current)===null||X===void 0?void 0:X.items)||[]).map(J=>J.item));R==null||R(ne);}}:null,{key:"removeAll",label:h,onClick(){R==null||R(va(j));}}].filter(Boolean):ie=[{key:"selectAll",label:u,onClick(){const X=va(j);O==null||O(X,X.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var X;const ne=((X=T.current)===null||X===void 0?void 0:X.items)||[];O==null||O(va(ne.map(J=>J.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var X;const ne=va(b?(((X=T.current)===null||X===void 0?void 0:X.items)||[]).map(fe=>fe.item):j),J=new Set(o),de=[];ne.forEach(fe=>{J.has(fe)||de.push(fe);}),O==null||O(de,"replace");}}];const ce=f.createElement(vg,{className:`${t}-header-dropdown`,menu:{items:ie},disabled:i},iU($)?$:f.createElement(vh,null));return f.createElement("div",{className:ue,style:s},f.createElement("div",{className:`${t}-header`},v?f.createElement(f.Fragment,null,re,ce):null,f.createElement("span",{className:`${t}-header-selected`},Y(o.length,j.length)),f.createElement("span",{className:`${t}-header-title`},r)),G,he)},tm=aU,sU=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:i="",leftActive:a,rightActive:s,className:l,style:c,direction:u,oneWay:d}=e;return f__namespace.createElement("div",{className:l,style:c},f__namespace.createElement(Xt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?f__namespace.createElement(zi,null):f__namespace.createElement(Ql,null)},i),!d&&f__namespace.createElement(Xt,{type:"primary",size:"small",disabled:t||!a,onClick:n,icon:u!=="rtl"?f__namespace.createElement(Ql,null):f__namespace.createElement(zi,null)},o))},hx=sU,lU=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:i,margin:a}=e,s=`${t}-table`,l=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:o,minWidth:o}},[`${s}-pagination${s}-pagination`]:{margin:`${a}px 0 ${i}px`}},[`${l}[disabled]`]:{backgroundColor:"transparent"}}}},o0=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},cU=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},o0(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},o0(e,e.colorWarning))}},uU=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:m,listWidthLG:h,fontSizeIcon:g,marginXS:v,paddingSM:p,lineType:b,antCls:y,iconCls:C,motionDurationSlow:E,controlItemBgHover:S,borderRadiusLG:$,colorBgContainer:x,colorText:w,controlItemBgActiveHover:O}=e;return {display:"flex",flexDirection:"column",width:m,height:d,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${s-o}px ${p}px ${s}px`,color:w,background:x,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${$}px ${$}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Do),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},Go()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${l}px ${p}px`,transition:`all ${E}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Do),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${E}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${l}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:S,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:O}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${o}px ${b} ${r}`}}},dU=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:i,marginXXS:a,fontSizeIcon:s,fontSize:l,lineHeight:c,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:uU(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:a},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(l*c)}})}},fU=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},mU=Bt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,i=Math.round(t*n),a=ut(e,{transferHeaderVerticalPadding:Math.ceil((o-r-i)/2)});return [dU(a),lU(a),cU(a),fU(a)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,i=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-i)/2}}),wu=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:i=[],style:a={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:d=!1,operationStyle:m,showSelectAll:h,oneWay:g,pagination:v,status:p,prefixCls:b,className:y,rootClassName:C,selectionsIcon:E,filterOption:S,render:$,footer:x,children:w,rowKey:O,onScroll:R,onChange:k,onSearch:_,onSelectChange:I}=e,{getPrefixCls:P,renderEmpty:M,direction:N,transfer:T}=f.useContext(Je),L=P("transfer",b),[z,H]=mU(L),[W,B,V]=gV(t,O,n),[j,K,q,G]=pV(B,V,r),U=f.useCallback((me,Se)=>{if(me==="left"){const te=typeof Se=="function"?Se(j||[]):Se;q(te);}else {const te=typeof Se=="function"?Se(K||[]):Se;G(te);}},[j,K]),Y=f.useCallback((me,Se)=>{me==="left"?I==null||I(Se,K):I==null||I(j,Se);},[j,K]),oe=me=>{var Se;return (Se=c??me.titles)!==null&&Se!==void 0?Se:[]},ue=me=>{R==null||R("left",me);},he=me=>{R==null||R("right",me);},re=me=>{const Se=me==="right"?j:K,te=hV(W),ye=Se.filter(ve=>!te.has(ve)),Te=tc(ye),Ye=me==="right"?ye.concat(n):n.filter(ve=>!Te.has(ve)),Le=me==="right"?"left":"right";U(Le,[]),Y(Le,[]),k==null||k(Ye,me,ye);},ie=()=>{re("left");},ce=()=>{re("right");},X=(me,Se,te)=>{U(me,ye=>{let Te=[];if(te==="replace")Te=Se;else if(te)Te=Array.from(new Set([].concat(Qe(ye),Qe(Se))));else {const Ye=tc(Se);Te=ye.filter(Le=>!Ye.has(Le));}return Y(me,Te),Te});},ne=(me,Se)=>{X("left",me,Se);},J=(me,Se)=>{X("right",me,Se);},de=me=>_==null?void 0:_("left",me.target.value),fe=me=>_==null?void 0:_("right",me.target.value),be=()=>_==null?void 0:_("left",""),Re=()=>_==null?void 0:_("right",""),Be=(me,Se,te)=>{const ye=Qe(me==="left"?j:K),Te=ye.indexOf(Se);Te>-1&&ye.splice(Te,1),te&&ye.push(Se),Y(me,ye),e.selectedKeys||U(me,ye);},_e=(me,Se)=>{Be("left",me,Se);},ae=(me,Se)=>{Be("right",me,Se);},ge=me=>{U("right",[]),k==null||k(n.filter(Se=>!me.includes(Se)),"left",Qe(me));},pe=me=>typeof s=="function"?s({direction:me}):s||{},we=f.useContext(nr),{hasFeedback:De,status:Ae}=we,xe=me=>Object.assign(Object.assign(Object.assign({},me),{notFoundContent:(M==null?void 0:M("Transfer"))||f.createElement(NS,{componentName:"Transfer"})}),l),Ie=hs(Ae,p),Fe=!w&&v,$e=K.length>0,Ne=j.length>0,nt=F(L,{[`${L}-disabled`]:u,[`${L}-customize-list`]:!!w,[`${L}-rtl`]:N==="rtl"},dr(L,Ie,De),T==null?void 0:T.className,y,C,H),[ct]=Zi("Transfer",Br.Transfer),qe=xe(ct),[dt,Pe]=oe(qe);return z(f.createElement("div",{className:nt,style:Object.assign(Object.assign({},T==null?void 0:T.style),a)},f.createElement(tm,Object.assign({prefixCls:`${L}-list`,titleText:dt,dataSource:B,filterOption:S,style:pe("left"),checkedKeys:j,handleFilter:de,handleClear:be,onItemSelect:_e,onItemSelectAll:ne,render:$,showSearch:d,renderList:w,footer:x,onScroll:ue,disabled:u,direction:N==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:Fe,selectionsIcon:E},qe)),f.createElement(hx,{className:`${L}-operation`,rightActive:Ne,rightArrowText:i[0],moveToRight:ce,leftActive:$e,leftArrowText:i[1],moveToLeft:ie,style:m,disabled:u,direction:N,oneWay:g}),f.createElement(tm,Object.assign({prefixCls:`${L}-list`,titleText:Pe,dataSource:V,filterOption:S,style:pe("right"),checkedKeys:K,handleFilter:fe,handleClear:Re,onItemSelect:ae,onItemSelectAll:J,onItemRemove:ge,render:$,showSearch:d,renderList:w,footer:x,onScroll:he,disabled:u,direction:N==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:g,pagination:Fe,selectionsIcon:E},qe))))};wu.List=tm;wu.Search=mx;wu.Operation=hx;const hU=wu;function gx(){}const i0=()=>document.querySelector(".bili-header__bar");function gU(){return !!(i0()&&window.getComputedStyle(i0()).display==="none")}function nm(){if(!gU())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 nc=rr({value:nm()});function vU(){return or(nc).value}function vx(){return nc.value}setTimeout(()=>{nc.value=nm();const e=new MutationObserver(()=>{nc.value=nm();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);function pU(){const e=f.useRef(null),[t,n]=f.useState(!1);return f.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,i=parseInt(getComputedStyle(e.current).top),a=o<=i;n(a);}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]}const bU="_expand-btn_wdzp9_1",yU="_expanded_wdzp9_12",a0={expandBtn:bU,expanded:yU},CU=f.forwardRef(function({children:t},n){const[r,o]=Sw(!1);f.useImperativeHandle(n,()=>o,[o]);const i=D("button",{className:F("primary-btn",a0.expandBtn),onClick:o.toggle,children:D("svg",{className:F({[a0.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return Ce(St,{children:[i,r&&t]})}),SU="_modal-mask_7bwzz_1",wU="_narrow-mode_7bwzz_1",xU="_modal_7bwzz_1",$U="_modal-header_7bwzz_18",EU="_modal-body_7bwzz_19",OU="_btn-refresh_7bwzz_22",pa={modalMask:SU,narrowMode:wU,modal:xU,modalHeader:$U,modalBody:EU,btnRefresh:OU};var IU={name:"1q4vxyr",styles:"margin-left:8px"};const PU=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:i}=_n(),a=f.useMemo(()=>({[pa.narrowMode]:i}),[i]),s=ot((...h)=>{var g;return (g=o.current)==null?void 0:g.refresh(...h)}),l=ot(()=>{r.current&&(r.current.scrollTop=0);}),c=rg(),u=f.useMemo(()=>c?{border:`1px solid ${Vr}`}:void 0,[c]),[d,m]=f.useState(!1);return Ce(lg,{show:t,onHide:n,clsModalMask:F(a),clsModal:F(pa.modal,a),styleModal:{...u},children:[Ce("div",{className:F($r.modalHeader,pa.modalHeader),children:[D(Xw,{onRefresh:s}),D("div",{className:"space",style:{flex:1}}),D(CU,{children:D(MH,{})}),D(yx,{css:IU,refreshing:d,onRefresh:s,className:pa.btnRefresh,refreshHotkeyEnabled:t}),D(cg,{onClick:n})]}),D("div",{className:F($r.modalBody,pa.modalBody),ref:r,children:D(a$,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:m})})]})}),RU=qi.extend("RecHeader"),pg=Yn` display: flex; align-items: center; justify-content: center; `,s0={btn:Yn` padding: 0; width: 32px; height: 32px; border-radius: 50%; ${pg} `,icon:Yn` svg { width: 14px; height: 14px; } `},fo=rr({modalFeedVisible:yt.initialShowMore,modalConfigVisible:!1}),_U=function(){return or(fo)},TU=()=>{fo.modalFeedVisible=!0;},MU=()=>{fo.modalFeedVisible=!1;},NU=()=>{fo.modalConfigVisible=!0;},kU=()=>{fo.modalConfigVisible=!1;},px=f.createContext({onRefresh:gx});function bg(){return f.useContext(px)}const bx=f.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},i){const{accessKey:a,pureRecommend:s}=_n(),{modalFeedVisible:l,modalConfigVisible:c}=or(fo);Qt(["shift.comma"],g=>{pu()||(fo.modalConfigVisible=!fo.modalConfigVisible);},{exactMatch:!0});const[u,d]=pU(),m=ot(()=>{var b;if(!s)return;const g=(b=u.current)==null?void 0:b.parentElement;if(!g)return;const v=g.getBoundingClientRect(),p=vx();if(v.top({scroll:m}));const h=vU();return D(St,{children:Ce(px.Provider,{value:{onRefresh:t},children:[Ce("div",{ref:u,className:"area-header",css:[Yn` margin-bottom: 0; height: 50px; `,s&&Yn` position: sticky; top: ${h-1}px; // 有缝隙, 故 -1 px z-index: 1000; `,s&&d&&Yn` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[Ce("div",{className:"left",children:[D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(Xw,{onRefresh:t}),r]}),D("div",{className:"right",children:Ce(Xc,{size:"small",children:[o,!a&&D(Rw,{style:{marginLeft:5}}),D(Xt,{onClick:NU,css:s0.btn,children:D(Mt,{name:"Config",css:s0.icon})}),D(yx,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||l)}),!s&&Ce(Xt,{css:pg,onClick:TU,children:[D("span",{children:"查看更多"}),D("svg",{css:Yn` width: 12px; height: 12px; margin-left: 2px; `,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(PU,{show:l,onHide:MU}),D(S7,{show:c,onHide:kU})]})})}),yx=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=ot(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(i,()=>({click:c}),[]),Qt("r",()=>{pu()||r&&c();},{exactMatch:!0});const u=Is(),{shuffleForFav:d,shuffleForWatchLater:m}=_n(),h=u==="dynamic"||u==="watchlater"&&!m||u==="fav"&&!d?"刷新":"换一换",g=ot(v=>(s(p=>p+360),e==null?void 0:e()));return Ce(Xt,{disabled:o,className:t,style:n,css:Yn` ${pg} &.ant-btn:not(:disabled):focus-visible { outline: none; } `,ref:l,onClick:g,children:[D("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:D("use",{href:"#widget-roll"})}),D("span",{children:h})]})});function Cx(e){return `https://space.bilibili.com/${vu()}/favlist?fid=${e}`}const wi=class wi{constructor(){wt(this,"useShuffle");wt(this,"allFolderServices",[]);wt(this,"folderServices",[]);wt(this,"bufferQueue",[]);wt(this,"total",0);wt(this,"returnedItems",[]);wt(this,"foldersLoaded",!1);this.useShuffle=yt.shuffleForFav;}doReturnItems(t){return this.returnedItems=this.returnedItems.concat(t||[]),t}restore(){this.bufferQueue=[...this.returnedItems,...this.bufferQueue],this.returnedItems=[];}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return D(DU,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!this.hasMore)return;const t=()=>{if(this.bufferQueue.length){const n=this.bufferQueue.slice(0,wi.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(wi.PAGE_SIZE),this.doReturnItems(n)}};if(!this.useShuffle){if(this.bufferQueue.length)return t();const n=this.folderServices.find(o=>o.hasMore);if(!n)return;const r=await n.loadMore();return this.doReturnItems(r)}if(this.bufferQueue.lengthi.hasMore),r=Jf(n).slice(0,5),o=(await Promise.all(r.map(async i=>await i.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=Jf(this.bufferQueue);}return t()}async getAllFolders(){const r=(await $n.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:vu()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new AU(o)),this.folderServices=this.allFolderServices.filter(o=>!yt.excludeFavFolderIds.includes(o.entry.id.toString())),this.total=this.folderServices.reduce((o,i)=>o+i.entry.media_count,0);}};wt(wi,"PAGE_SIZE",20);let Za=wi;class AU{constructor(t){wt(this,"entry");wt(this,"hasMore");wt(this,"info");wt(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await $n.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:++this.page,ps:20,keyword:"",order:"mtime",type:"0",tid:"0",platform:"web"}})).data;if(!Yo(n)){vt(n.message);return}this.hasMore=n.data.has_more,this.info=n.data.info;let r=n.data.medias;return r=r.filter(o=>o.title!=="已失效视频"),r.map(o=>{var i;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(i=this.info)==null?void 0:i.id}-${o.bvid}`}})}}var LU={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function DU({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=_n(),{onRefresh:r}=bg(),[o,i]=f.useState(!1),a=ot((u,d,m)=>{i(!0),Ir({excludeFavFolderIds:u});}),s=e.length-t.length,l=f.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=ot(u=>{u?i(!1):o&&r();});return Ce(St,{children:[D(Fc,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:D(St,{children:D(hU,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:a,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:Ce(ro,{color:"success",css:LU,children:["收藏夹(",s,") 收藏(",l,")"]})}),D(ax,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{Ir({shuffleForFav:u}),setTimeout(()=>{r();});}})]})}var zU=1,jU=4;function BU(e){return xa(e,zU|jU)}const Oi=rr({updatedAt:0,bvidSet:mg()});function HU(e){return or(Oi).bvidSet.has(e)}Os()&&setTimeout(()=>{new Qa().loadMore();});const Ar=class Ar{constructor(t){wt(this,"loaded",!1);wt(this,"page",-1);wt(this,"hasMore",!0);wt(this,"count",0);wt(this,"items",[]);wt(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await $n.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(a=>({...a,api:"watchlater",uniqId:`watchlater-${a.bvid}`}));Date.now()>Oi.updatedAt&&(Oi.updatedAt=Date.now(),Oi.bvidSet=mg(r.map(a=>a.bvid)));const o=qo().subtract(2,"days").unix(),i=r.findIndex(a=>a.add_at({item:l,index:Ar.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...a,...s]):yt.shuffleForWatchLater&&(r=[...a,...Jf(s)]);}this.count=n.data.count,this.items=r,Ar.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(FU,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*Ar.PAGE_SIZE,n=t+Ar.PAGE_SIZE,r=BU(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};wt(Ar,"PAGE_SIZE",15),wt(Ar,"LAST_ITEMS",[]);let Qa=Ar;function FU({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=_n(),{onRefresh:o}=bg();return Ce(St,{children:[Ce(ro,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{vt(`稍后再看: ${n}`);},children:[e," / 100"]}),D(ax,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:i=>{Ir({shuffleForWatchLater:i}),setTimeout(()=>{o();});}})]})}const zd={removeFav:WU,addFav:GU,getVideoFavState:VU};async function WU(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Es()}),o=(await $n.post("/x/v3/fav/resource/batch-del",n)).data,i=Yo(o);return i||vt(o.message||fw),i}async function VU(e){if(!Os())return;const r=(await $n.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:vu(),type:2,rid:e}})).data.data.list.filter(a=>a.fav_state>0),o=r.map(a=>a.title),i=r.map(a=>Cx(a.id));return {favFolders:r,favFolderNames:o,favFolderUrls:i}}async function UU({avid:e,add_media_ids:t="",del_media_ids:n=""}){const r=new URLSearchParams({rid:e.toString(),type:"2",add_media_ids:t,del_media_ids:n,platform:"web",eab_x:"2",ramval:"0",ga:"1",gaia_source:"web_normal",csrf:Es()}),i=(await $n.post("/x/v3/fav/resource/deal",r)).data,a=Yo(i);return a||vt((i==null?void 0:i.message)||"fav deal api fail"),a}let jd=0,rm="";async function GU(e){if(!jd||!rm){const t=new Za;await t.getAllFolders(),jd=t.folderServices[0].entry.id,rm=t.folderServices[0].entry.title;}return await UU({avid:e,add_media_ids:jd.toString()})}async function Sx(e,t){const n=vu(),r=Es(),o=new URLSearchParams({fid:e,act:String(t),re_src:"11",gaia_source:"web_main",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:n,fp:KU()}),csrf:r}),a=(await $n.post("/x/relation/modify",o)).data,s=Yo(a);return s||vt(a.message||"未知错误"),s}function KU(){let e,t,n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{},r="empty";return n&&(r=n.webdriver+""+n.screenResolution+""+n.platform+""+n.hardwareConcurrency+""+n.deviceMemory+""+n.colorDepth+""+n.indexedDb+""+n.language+""+n.openDatabase+""+n.touchSupport+""+n.userAgent),decodeURIComponent(r)}const XU=xx("follow"),qU=xx("remove"),wx={add:XU,remove:qU},om=mg();function YU(e){const t=or(om);return e&&t.has(e)}function xx(e){const t=e==="follow"?5:6;return async function(r){const o=await Sx(r,t);return o&&(e==="follow"?om.add(r):e==="remove"&&om.delete(r)),o}}const ZU=$x("follow"),QU=$x("unfollow"),JU={follow:ZU,unfollow:QU};function $x(e){const t=e==="follow"?1:2;return async function(r){return await Sx(r,t)}}function Ex(e){return {all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n]);},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]));},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n);}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n);});}}}const eG="_bili-video-card_mnvtu_1",tG="_preview-card-wrapper_mnvtu_4",nG="_preview-card-inner_mnvtu_17",rG="_watch-later_mnvtu_21",oG="_badge_mnvtu_24",iG="_recommend-reason_mnvtu_33",aG="_bangumi-desc_mnvtu_48",sG="_btn-dislike_mnvtu_51",lG="_btn-dislike-icon_mnvtu_66",cG="_btn-dislike-tip_mnvtu_73",uG="_disliked-wrapper_mnvtu_88",dG="_dislike-content-cover_mnvtu_102",fG="_dislike-content-cover-inner_mnvtu_108",mG="_dislike-icon_mnvtu_119",hG="_dislike-reason_mnvtu_122",gG="_dislike-desc_mnvtu_126",vG="_dislike-content-action_mnvtu_130",pG="_skeleton-active_mnvtu_147",bG="_ant-skeleton-loading_mnvtu_1",jt={biliVideoCard:eG,previewCardWrapper:tG,previewCardInner:nG,watchLater:rG,badge:oG,recommendReason:iG,bangumiDesc:aG,btnDislike:sG,btnDislikeIcon:lG,btnDislikeTip:cG,dislikedWrapper:uG,dislikeContentCover:dG,dislikeContentCoverInner:fG,dislikeIcon:mG,dislikeReason:hG,dislikeDesc:gG,dislikeContentAction:vG,skeletonActive:pG,antSkeletonLoading:bG};function yG(...e){for(const t of e)if(!isNaN(t))return t;return 0}function CG({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=f.useRef(null),a=CF(i),[s,l]=f.useState(()=>({width:0,height:0}));$s(()=>{var m;const d=(m=i.current)==null?void 0:m.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=yG(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 D("div",{ref:i,className:F(jt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&D(SG,{...u})})}function SG({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var S;const i=Math.floor((e||0)*o);let a=f.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let x=xG($,i);return x!==-1?x:i>$[$.length-1]?(x=Math.floor($.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 m=Math.floor(a/d),h=a-m*d,g=((S=t.image)==null?void 0:S[m])||"",v=Math.floor(h/s)+1,p=h-(v-1)*s,b=n*s,y=r*l,C=(v-1)*r,E=(p-1)*n;return D("div",{className:jt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${E}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:D(wG,{progress:o})})}function wG({progress:e}){return D("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:D("div",{className:"bar",style:{backgroundColor:Vr,height:"100%",width:`${e*100}%`}})})}function xG(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=Ja[e]||Ja[1];return Sa[t]},OG=e=>{const t=Ja[e];if(t)return $G[t]};function l0(e){return {iconSvgName:EG(e),iconSvgScale:OG(e)}}var zr=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}};zr.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";zr.TR={};zr.S=[11,10,3,8,4,6];zr.XOR=177451812;zr.ADD=8728348608;(()=>{const e=zr.TABEL.length;for(let t=0;t{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:m}=e;if(c&&Ja[c]===l)return ql(u);if(d&&Ja[d]===l)return ql(m)},n=e.param,r=es.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(`[${fn}]: 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,pubdateDisplay:void 0,duration:((i=e.player_args)==null?void 0:i.duration)||0,durationStr:bu((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 RG(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=qo().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:lo(i)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:r7(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:ql(t.stat.play),danmaku:ql(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function _G(e){const t=a7(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(Ul,{title:Ce(St,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:Ce("del",{children:[e.viewed?"【已观看】· ":"",e.title,"`"]})}):void 0;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:e.uri,title:n,titleRender:r,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:lo(e.pubdate),pubdateDisplayTitle:`${lo(e.pubdate,!0)} 发布, ${lo(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:bu(e.duration),recommendReason:`${lo(e.add_at)} · 稍后再看`,invalidReason:t,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function TG(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:Ce(St,{children:["【",D(Mt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",Vr],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:lo(e.pubtime),duration:e.duration,durationStr:bu(e.duration),recommendReason:`${lo(e.fav_time)} · 收藏`,play:e.cnt_info.play,like:void 0,coin:void 0,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}const MG=e=>(e||"").replace(/^http:\/\//,"https://");function c0(e){GM.setClipboard(e),vt(`已复制: ${e}`);}const Px=Ex(),NG="--video-card-border-radius",Rx=`var(${NG})`,_x={borderRadius:Rx},rc=f.memo(function({style:t,className:n,item:r,loading:o,active:i,onRemoveCurrent:a,onMoveToFirst:s,emitter:l,...c}){o=o??!r;const u=Ce("div",{className:F("bili-video-card__skeleton",{hide:!o,[jt.skeletonActive]:o}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:_x}),D("div",{className:"bili-video-card__skeleton--info",children:Ce("div",{className:"bili-video-card__skeleton--right",children:[D("p",{className:"bili-video-card__skeleton--text"}),D("p",{className:"bili-video-card__skeleton--text short"}),D("p",{className:"bili-video-card__skeleton--light"})]})})]}),d=K7((r==null?void 0:r.api)==="app"&&r.param),m=f.useMemo(()=>r&&Ix(r),[r]),h=YU(m==null?void 0:m.authorMid);return Ce("div",{style:t,className:F("bili-video-card",jt.biliVideoCard,n),...c,children:[u,!o&&r&&m&&(d?D(kG,{item:r,emitter:l,dislikedReason:d}):h?D(AG,{cardData:m}):D(LG,{item:r,cardData:m,active:i,emitter:l,onRemoveCurrent:a,onMoveToFirst:s}))]})}),kG=f.memo(function({dislikedReason:t,item:n,emitter:r=Px}){const o=ot(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await D7(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),mw();i?vt("已撤销"):hw(),i&&Cu.delete(n.param);});return pi(r,"cancel-dislike",o),Ce("div",{className:F(jt.dislikedWrapper),children:[D("div",{className:jt.dislikeContentCover,children:Ce("div",{className:jt.dislikeContentCoverInner,children:[D(Mt,{name:"DistraughtFace",size:32,className:jt.dislikeIcon}),D("div",{className:jt.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:jt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:jt.dislikeContentAction,children:Ce("button",{onClick:o,children:[D(Mt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),AG=f.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,i=ot(async()=>{if(!n)return;await wx.remove(n)&&vt(`已移出黑名单: ${o}`);});return Ce("div",{className:F(jt.dislikedWrapper),children:[D("div",{className:jt.dislikeContentCover,children:Ce("div",{className:jt.dislikeContentCoverInner,children:[D(Mt,{name:"PeopleDelete",size:32,className:jt.dislikeIcon}),D("div",{className:jt.dislikeReason,children:"已拉黑"}),Ce("div",{className:jt.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:jt.dislikeContentAction,children:Ce("button",{onClick:i,children:[D(Mt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),LG=f.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:i,emitter:a=Px}){var me,Se;const s=t.api==="pc",l=t.api==="app";t.api,t.api,t.api;const{avid:c,bvid:u,goto:d,href:m,title:h,titleRender:g,coverRaw:v,pubdateDisplay:p,pubdateDisplayTitle:b,duration:y,durationStr:C,recommendReason:E,invalidReason:S,play:$,like:x,coin:w,danmaku:O,favorite:R,authorName:k,authorFace:_,authorMid:I,appBadge:P,appBadgeDesc:M}=n,N=d==="av";["av","bangumi","picture"].includes(d)||console.warn(`[${fn}]: none (av,bangumi,picture) goto type %s`,d,t);const T=f.useMemo(()=>MG(v),[v]),[L,z]=f.useState(null),H=f.useRef(!1),W=ot(async()=>{if(!L&&!H.current)try{H.current=!0,z(await A7(c));}finally{H.current=!1;}}),B=f.useRef(null),[V,j]=f.useState(void 0);uo("mouseenter",te=>{var Le;const ye=(Le=B.current)==null?void 0:Le.getBoundingClientRect();if(!ye)return;const{x:Te}=ye,Ye=te.pageX-window.pageXOffset-Te;j(Ye);},{target:B});const K=Td(B),{autoPreviewWhenHover:q}=_n(),{onStartPreviewAnimation:G,onHotkeyPreviewAnimation:U,previewAnimationProgress:Y}=DG({bvid:u,title:h,autoPreviewWhenHover:q,active:r,tryFetchVideoData:W,videoPreviewWrapperRef:B});Xl(()=>{if(r){try{unsafeWindow[`${gR}_activeItem`]=t;}catch(te){console.warn("set unsafeWindow activeItem error"),console.warn(te.stack||te);}yt.autoPreviewWhenKeyboardSelect&&G();}},[r]);const oe=f.useRef(null),ue=Td(oe),he=HU(u),{accessKey:re}=_n(),ie=!!re;f.useEffect(()=>{K&&W();},[K]);const ce=f.useRef(!1),X=ot(async(te,ye)=>{if(te==null||te.preventDefault(),ye??(ye=he?Vb:Qs),ye!==Qs&&ye!==Vb)throw new Error("unexpected usingAction provided");if(ce.current)return;ce.current=!0;let Te=!1;try{Te=await ye(c);}finally{ce.current=!1;}if(Te){const Ye=ye===Qs;Ye?Oi.bvidSet.add(u):Oi.bvidSet.delete(u),t.api==="watchlater"&&Ye===!1&&(await vo(100),o==null||o(t,n));}return Te}),ne=f.useRef(null),J=Td(ne),de=ot(te=>{if(te==null||te.stopPropagation(),te==null||te.preventDefault(),!xe)return t.api!=="app"?vt("当前视频不支持提交「我不想看」"):ie?void 0:vt("请先获取 access_key");Z7(t);}),fe=f.useMemo(()=>Ad($),[$]),be=f.useMemo(()=>Ad(x),[x]),Re=f.useMemo(()=>Ad(R),[R]),Be=s?be:Re,_e=({text:te,iconSvgName:ye,iconSvgScale:Te})=>Ce("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:Te?`scale(${Te})`:void 0},children:D("use",{href:ye})}),D("span",{className:"bili-video-card__stats--text",children:te})]}),[ae,ge]=f.useState(void 0),[pe,we]=f.useState(void 0),De=ot(async()=>{if(t.api!=="watchlater")return;const te=await zd.getVideoFavState(c);if(te){const{favFolderNames:ye,favFolderUrls:Te}=te;ge(ye),we(Te);}}),Ae=ot(()=>{window.open(m,"_blank");});pi(a,"open",Ae),pi(a,"toggle-watch-later",()=>X()),pi(a,"trigger-dislike",()=>de()),pi(a,"start-preview-animation",G),pi(a,"hotkey-preview-animation",U);const xe=l&&ie&&((Se=(me=t.three_point)==null?void 0:me.dislike_reasons)==null?void 0:Se.length),Ie=ot(()=>{let te=m;m.startsWith("/")&&(te=new URL(m,location.href).href),c0(te);}),Fe=ot(()=>{let te=m;t.api==="watchlater"&&(te=`/video/${t.bvid}`);const ye=new URL(te,location.href).href,Te=`iina://open?url=${encodeURIComponent(ye)}`;window.open(Te,"_self");}),$e=Is(),Ne=$e==="recommend-app"||$e==="recommend-pc",nt=ot(async()=>{if(!I)return vt("UP mid 为空!");await wx.add(I)&&vt(`已加入黑名单: ${k}`);}),ct=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&E==="已关注",qe=ot(async()=>{if(!I)return;await JU.unfollow(I)&&vt("已取消关注");}),dt=f.useMemo(()=>{const te=he?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(Mt,{name:"EfferentFour",size:15}),onClick:Ae},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(Mt,{name:"Copy",size:15}),onClick:Ie},{key:"copy-bvid",label:"复制 BVID",icon:D(Mt,{name:"Copy",size:15}),onClick(){c0(u);}},{type:"divider"},xe&&{key:"dislike",label:"我不想看",icon:D(Mt,{name:"DislikeTwo",size:15}),onClick(){de();}},ct&&{key:"unfollow-up",label:"取消关注",icon:D(Mt,{name:"PeopleMinus",size:15}),onClick(){qe();}},Ne&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(Mt,{name:"PeopleDelete",size:15}),onClick(){nt();}},t.api==="watchlater"&&{key:"add-fav",icon:D(Mt,{name:"Star",size:15,...ae!=null&&ae.length?{theme:"two-tone",fill:["currentColor",Vr]}:void 0}),label:ae!=null&&ae.length?`已收藏 ${ae.map(ye=>`「${ye}」`).join("")}`:"快速收藏",async onClick(){!!(ae!=null&&ae.length)?pe==null||pe.forEach(Te=>{window.open(Te,"_blank");}):await zd.addFav(c)&&vt(`已加入收藏夹「${rm}」`);}},{key:"watchlater",label:te,icon:D(Mt,{name:he?"Delete":"FileCabinet",size:15}),onClick(){X();}},t.api==="watchlater"&&he&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(Mt,{name:"AddTwo",size:15}),async onClick(){await X(void 0,Qs)&&(i==null||i(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(Mt,{name:"EfferentFour",size:15}),onClick(){const{id:ye}=t.folder,Te=Cx(ye);window.open(Te,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(Mt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await zd.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...uH?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(Mt,{name:"PlayTwo",size:15}),onClick:Fe}]:[]].filter(Boolean)},[t,he,xe,ct,Ne,ae,pe]),Pe=ot(te=>{te&&De();});return Ce("div",{className:"bili-video-card__wrap __scale-wrap",children:[D(vg,{menu:{items:dt},trigger:["contextMenu"],onOpenChange:Pe,children:D("a",{href:m,target:"_blank",children:Ce("div",{className:"bili-video-card__image __scale-player-wrap",ref:B,style:{..._x,aspectRatio:"16 / 9"},children:[Ce("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[Ce("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!og&&D("source",{srcSet:`${T}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${T}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${T}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(K||typeof Y=="number")&&D(CG,{videoDuration:y,pvideo:L==null?void 0:L.pvideoData,mouseEnterRelativeX:V,previewAnimationProgress:Y}),Ce("div",{className:`bili-watch-later ${jt.watchLater}`,style:{display:K||r?"flex":"none"},ref:oe,onClick:X,children:[D("svg",{className:"bili-watch-later__icon",children:D("use",{href:he?"#widget-watch-save":"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:ue?"block":"none"},children:he?"移除稍后再看":"稍后再看"})]}),xe&&Ce("div",{ref:ne,className:jt.btnDislike,onClick:de,style:{display:K?"flex":"none"},children:[D("svg",{className:jt.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:jt.btnDislikeTip,style:{display:J?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:Ce("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:s?Ce(St,{children:[_e({text:fe,iconSvgName:Sa.play}),_e({text:d==="av"?be:Be,iconSvgName:Sa.like})]}):l?Ce(St,{children:[t.cover_left_text_1&&_e({...l0(t.cover_left_icon_1),text:d==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&_e({...l0(t.cover_left_icon_2),text:d==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):Ce(St,{children:[_e({text:fe,iconSvgName:Sa.play}),_e({text:(O||0).toString(),iconSvgName:Sa.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:N&&C})]})})]})})}),D("div",{className:"bili-video-card__info __scale-disable",children:Ce("div",{className:"bili-video-card__info--right",children:[D("a",{href:m,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:h,children:g??h})}),D("p",{className:"bili-video-card__info--bottom",children:N?Ce("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${I}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${k} ${b||p}`,children:[E?D("span",{className:jt.recommendReason,children:E}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:k}),p&&Ce("span",{className:"bili-video-card__info--date",children:["· ",p]})]}):P||M?Ce("a",{className:"bili-video-card__info--owner",href:m,target:"_blank",children:[D("span",{className:jt.badge,children:P||""}),D("span",{className:jt.bangumiDesc,children:M||""})]}):null})]})})]})});function DG({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=Pw(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),m=f.useRef(!1);uo("mouseenter",w=>{d.current=!0,n&&!g.current&&x(!0);},{target:i}),uo("mouseleave",w=>{d.current=!1;},{target:i}),uo("mousemove",w=>{u(!0),n||p();},{target:i});const h=wF(),g=f.useRef(void 0),v=ot(()=>{if(h.current)return !0;if(n){if(m.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=ot((w=!1)=>{g.current&&cancelAnimationFrame(g.current),g.current=void 0,l(void 0),y(!1);}),[b,y,C]=Ow(!1),E=f.useRef(),S=ot(()=>{var w;if(!g.current){x();return}y(O=>!O),b&&((w=E.current)==null||w.call(E,s||0));}),$=ot(()=>s||0),x=ot((w=!1)=>{m.current=w,u(!1),y(!1),o(),p(!0),l(P=>typeof P>"u"?0:P);const O=8e3,R=()=>typeof yt.autoPreviewUpdateInterval=="number"?yt.autoPreviewUpdateInterval:400;let k=performance.now(),_=0;E.current=()=>{k=performance.now()-$()*O;};function I(P){if(v()){p();return}const M=()=>{const N=performance.now()-k,T=Math.min(N%O/O,1);l(T);};C()||(R()?(!_||performance.now()-_>=R())&&(_=performance.now(),M()):M()),g.current=requestAnimationFrame(I);}g.current=requestAnimationFrame(I);});return {onHotkeyPreviewAnimation:S,onStartPreviewAnimation:x,previewAnimationProgress:s}}var zG=1,jG=2;function BG(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return !i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o-1}function nK(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=aK){var c=t?null:iK(e);if(c)return sg(c);a=!1,o=$w,l=new Ya;}else l=t?[]:s;e:for(;++r!(!e||pu())),d=ot(()=>{var x;if(typeof l!="number"||!o.current)return !1;const S=i(),$=(x=o.current.querySelector(`.${Pi.card}.${Pi.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!S||!$||$.top-S.top<-(S.height+$.height)||$.top-S.top>S.height*2+$.height)}),m=S=>$=>{if(!u())return;$==null||$.preventDefault();let x=typeof S=="number"?S:S();const w=d()?l+x:p();if(wr){E(r);return}c(w),E(w);};Qt("leftarrow",m(-1),{exactMatch:!0}),Qt("rightarrow",m(1),{exactMatch:!0}),Qt("tab",m(1),{exactMatch:!0}),Qt("shift.tab",m(-1),{exactMatch:!0});const h=()=>Cg(o.current);Qt("uparrow",m(()=>-h()),{exactMatch:!0}),Qt("downarrow",m(h),{exactMatch:!0});const g=()=>{u()&&c(void 0);},v=()=>{if(!(!u()||typeof l!="number"))return s[l]};Qt("esc",g),Qt("enter",()=>{var S;!u()||typeof l!="number"||(S=v())==null||S.emit("open");}),Qt("backspace",()=>{var S;!u()||typeof l!="number"||(S=v())==null||S.emit("trigger-dislike");}),Qt(["s","w"],()=>{var S;!u()||typeof l!="number"||(S=v())==null||S.emit("toggle-watch-later");},{exactMatch:!0}),Qt(["period","p"],()=>{var S;!u()||typeof l!="number"||(S=v())==null||S.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const S=i();if(!S)return 0;const $=y();for(let x=0;x<$.length;x++)if($[x].getBoundingClientRect().top>=S.top)return x;return 0}const b=`.${Pi.card}`;function y(){var S;return [...((S=o.current)==null?void 0:S.querySelectorAll(b))||[]]}function C(S){return y()[S]}function E(S){var O;const $=C(S);(O=$==null?void 0:$.scrollIntoViewIfNeeded)==null||O.call($,!1);const x=i(),w=$.getBoundingClientRect();if(!(!x||!w)){if(w.top<=x.top){const R=-(x.top-w.top+10);a==null||a({offset:R});return}if(x.bottom-w.bottom<10){const R=10-(x.bottom-w.bottom);a==null||a({offset:R});return}}}return {activeIndex:l,clearActiveIndex:g}}const fK=new Map,mK=new Map;function Cg(e,t=!0){if(t&&yt.useNarrowMode)return 2;const n=yt.styleUseYoutubeLikeCard?fK:mK;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${yg}`)),!e)return 0;const o=window.getComputedStyle(e);return o.display!=="grid"?0:(r=o.gridTemplateColumns.split(" ").length,n.set(window.innerWidth,r),r)}function Ax(e){return e==="onlyFollow"||yt.filterMinDurationEnabled||yt.filterMinPlayCountEnabled||yt.filterOutGotoTypePicture}function Lx(e,t){return Ax(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:i,goto:a}=Ix(n),s=i==="已关注"||(i==null?void 0:i.includes("关注"));if(t==="onlyFollow"&&!s)return !1;const l=a==="av",c=a==="picture";if(l)return u();if(c)return d();return !0;function u(){return s&&!yt.enableFilterForFollowedVideo?!0:!(yt.filterMinPlayCountEnabled&&yt.filterMinPlayCount&&typeof r=="number"&&r1)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]),Eu(t)?n.showHidden=t:t&&Og(n,t),Cr(n.showHidden)&&(n.showHidden=!1),Cr(n.depth)&&(n.depth=2),Cr(n.colors)&&(n.colors=!1),Cr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=bK),oc(n,e,n.depth)}Er.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]};Er.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function bK(e,t){var n=Er.styles[t];return n?"\x1B["+Er.colors[n][0]+"m"+e+"\x1B["+Er.colors[n][1]+"m":e}function yK(e,t){return e}function CK(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function oc(e,t,n){if(e.customInspect&&t&&ka(t.inspect)&&t.inspect!==Er&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return _s(r)||(r=oc(e,r,n)),r}var o=SK(e,t);if(o)return o;var i=Object.keys(t),a=CK(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Na(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Fd(t);if(i.length===0){if(ka(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Ma(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(ic(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Na(t))return Fd(t)}var l="",c=!1,u=["{","}"];if(xg(t)&&(c=!0,u=["[","]"]),ka(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Ma(t)&&(l=" "+RegExp.prototype.toString.call(t)),ic(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Na(t)&&(l=" "+Fd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return Ma(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=wK(e,t,n,a,i):m=i.map(function(h){return lm(e,t,n,a,h,c)}),e.seen.pop(),xK(m,l,u)}function SK(e,t){if(Cr(t))return e.stylize("undefined","undefined");if(_s(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if($g(t))return e.stylize(""+t,"number");if(Eu(t))return e.stylize(""+t,"boolean");if(Rs(t))return e.stylize("null","null")}function Fd(e){return "["+Error.prototype.toString.call(e)+"]"}function wK(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")),Cr(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 xK(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 xg(e){return Array.isArray(e)}function Eu(e){return typeof e=="boolean"}function Rs(e){return e===null}function Wx(e){return e==null}function $g(e){return typeof e=="number"}function _s(e){return typeof e=="string"}function Vx(e){return typeof e=="symbol"}function Cr(e){return e===void 0}function Ma(e){return Zo(e)&&Eg(e)==="[object RegExp]"}function Zo(e){return typeof e=="object"&&e!==null}function ic(e){return Zo(e)&&Eg(e)==="[object Date]"}function Na(e){return Zo(e)&&(Eg(e)==="[object Error]"||e instanceof Error)}function ka(e){return typeof e=="function"}function Ux(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function Gx(e){return Buffer.isBuffer(e)}function Eg(e){return Object.prototype.toString.call(e)}function Wd(e){return e<10?"0"+e.toString(10):e.toString(10)}var $K=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function EK(){var e=new Date,t=[Wd(e.getHours()),Wd(e.getMinutes()),Wd(e.getSeconds())].join(":");return [e.getDate(),$K[e.getMonth()],t].join(" ")}function Kx(){console.log("%s - %s",EK(),Ui.apply(null,arguments));}function Og(e,t){if(!t||!Zo(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Xx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const OK={inherits:Hx,_extend:Og,log:Kx,isBuffer:Gx,isPrimitive:Ux,isFunction:ka,isError:Na,isDate:ic,isObject:Zo,isRegExp:Ma,isUndefined:Cr,isSymbol:Vx,isString:_s,isNumber:$g,isNullOrUndefined:Wx,isNull:Rs,isBoolean:Eu,isArray:xg,inspect:Er,deprecate:wg,format:Ui,debuglog:Fx},IK=Object.freeze(Object.defineProperty({__proto__:null,_extend:Og,debuglog:Fx,default:OK,deprecate:wg,format:Ui,inherits:Hx,inspect:Er,isArray:xg,isBoolean:Eu,isBuffer:Gx,isDate:ic,isError:Na,isFunction:ka,isNull:Rs,isNullOrUndefined:Wx,isNumber:$g,isObject:Zo,isPrimitive:Ux,isRegExp:Ma,isString:_s,isSymbol:Vx,isUndefined:Cr,log:Kx},Symbol.toStringTag,{value:"Module"})),PK=g$(IK);var RK=PK.format;function _K(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function TK(e,t){return function(){var n=this,r=[].slice.call(arguments);_K();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new qx(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 qx=class Yx extends Error{constructor(t){super(),this.timeout=t,this.message=RK("timeout of %sms exceed",t),Error.captureStackTrace(this,Yx);}};Sg.exports=TK;Sg.exports.TimeoutError=qx;var MK=Sg.exports;const Zx=MK,NK=Zx.TimeoutError;$u.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=Zx(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 kK 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 AK=$u.exports.RetryError=Qx;$u.exports.TimeoutError=NK;var LK=$u.exports;const DK=an(LK);class Ig extends Error{constructor(n){super();wt(this,"json");Error.captureStackTrace(this,Ig),this.json=n,this.message=n.message||JSON.stringify(n);}}async function zK(){var r;const t=(await gu.get(by+"/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 Ig(t);return vt(`${fn}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const jK=DK(zK,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",fn,t,e);}});async function BK(){try{return await jK()}catch(e){if(e instanceof AK){console.error(e.errors);const t=[Ui("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>Ui(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(` `);vt(t,5e3);}throw e}}class ac{constructor(){wt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommendTimes(t){let n=[];return await(async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>BK()))).flat();})(),n=xu(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}wt(ac,"PAGE_SIZE",10);const sc=class sc{constructor(){wt(this,"page",0);wt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var a,s;const n=++this.page,o=(await $n.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:sc.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (a=o.data)!=null&&a.item||vt(o.message||"API 请求没有返回结果"),((s=o.data)==null?void 0:s.item)||[]}async getRecommendTimes(t,n=void 0){let r=[];return await(async()=>{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();})(),r=xu(r,i=>i.id),r.forEach(i=>{var a,s;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=i.rcmd_reason).content||(s.content="已关注"));}),r.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}};wt(sc,"PAGE_SIZE",14);let ts=sc;const el=qi.extend("service"),Cl=e=>Ox(e,{pc:t=>t.id,app:t=>t.param,dynamic:t=>t.modules.module_dynamic.major.archive.aid,watchlater:t=>t.bvid,fav:t=>t.bvid});function HK(e,t){const n=e.map(Cl);return t=xu(t,Cl),e.concat(t.filter(r=>!n.includes(Cl(r))))}const cm=e=>e==="onlyFollow"||e==="recommend-pc";async function Jx(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:i,favService:a,tab:s,abortSignal:l}=t,c=new ac;let u=[],d=!0;const m=async h=>{let g=[];if(s==="dynamic"){g=await o.loadMore(l)||[],d=o.hasMore,u=u.concat(g);return}if(s==="watchlater"){g=await i.loadMore()||[],d=i.hasMore,u=u.concat(g);return}if(s==="fav"){g=await a.loadMore()||[],d=a.hasMore,u=u.concat(g);return}let v;if(s==="onlyFollow")v=8,el("getMinCount: addMore(restCount = %s) times=%s",h,v);else {const p=cm(s)?ts.PAGE_SIZE:ac.PAGE_SIZE,b=Ax(s)?n:1.2;v=Math.ceil(h*b/p),el("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",h,b,p,v);}g=cm(s)?await r.getRecommendTimes(v,l):await c.getRecommendTimes(v),g=Lx(g,s),u=u.concat(g),u=xu(u,Cl);};for(await m(e);;){if(l!=null&&l.aborted){el("getMinCount: break for abortSignal");break}if(!d){el("getMinCount: break for tab=%s hasMore=false",s);break}if(u.length>=e)break;await m(e-u.length);}return u}async function FK(e){let t=await Jx(Cg(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function WK(e){return Jx(Cg()*3+1,e,5)}async function VK(e,t,n){let r=cm(t)?await n.getRecommendTimes(e):await new ac().getRecommendTimes(e);return r=Lx(r,t),r}var um=new Map,tl=new WeakMap,d0=0,UK=void 0;function GK(e){return e?(tl.has(e)||(d0+=1,tl.set(e,d0.toString())),tl.get(e)):"0"}function KK(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?GK(e.root):e[t]}`).toString()}function XK(e){let t=KK(e),n=um.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(s=>{var l;const c=s.isIntersecting&&o.some(u=>s.intersectionRatio>=u);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=c),(l=r.get(s.target))==null||l.forEach(u=>{u(c,s);});});},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},um.set(t,n);}return n}function qK(e,t,n={},r=UK){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:i,elements:a}=XK(n);let s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),um.delete(o));}}function YK({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,m]=f__namespace.useState(null),h=f__namespace.useRef(),[g,v]=f__namespace.useState({inView:!!s,entry:void 0});h.current=c,f__namespace.useEffect(()=>{if(a||!d)return;let C;return C=qK(d,(E,S)=>{v({inView:E,entry:S}),h.current&&h.current(E,S),S.isIntersecting&&i&&C&&(C(),C=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{C&&C();}},[Array.isArray(e)?e.toString():e,d,o,r,i,a,n,l,t]);const p=(u=g.entry)==null?void 0:u.target,b=f__namespace.useRef();!d&&p&&!i&&!a&&b.current!==p&&(b.current=p,v({inView:!!s,entry:void 0}));const y=[m,g.inView,g.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function ZK(e){const t=f.useRef(null);return t.current||(t.current=e()),t}const QK=new Ct("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),JK=new Ct("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),eX=new Ct("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),tX=new Ct("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),nX=new Ct("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),rX=new Ct("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),oX=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeFontHeight:o,badgeShadowSize:i,badgeHeightSm:a,motionDurationSlow:s,badgeStatusSize:l,marginXS:c,badgeRibbonOffset:u}=e,d=`${r}-scroll-number`,m=`${r}-ribbon`,h=`${r}-ribbon-wrapper`,g=Il(e,(p,b)=>{let{darkColor:y}=b;return {[`&${t} ${t}-color-${p}`]:{background:y,[`&:not(${t}-count)`]:{color:y}}}}),v=Il(e,(p,b)=>{let{darkColor:y}=b;return {[`&${m}-color-${p}`]:{background:y,color:y}}});return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:a,height:a,fontSize:e.badgeFontSizeSm,lineHeight:`${a}px`,borderRadius:a/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${s}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:rX,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:QK,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:JK,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:eX,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:tX,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:nX,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${h}`]:{position:"relative"},[`${m}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${o}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${m}-text`]:{color:e.colorTextLightSolid},[`${m}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:`${u/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),v),{[`&${m}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${m}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${m}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${m}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},e$=Bt("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o,marginXS:i,colorBorderBg:a}=e,s=Math.round(t*n),l=o,c="auto",u=s-2*l,d=e.colorBgContainer,m="normal",h=r,g=e.colorError,v=e.colorErrorHover,p=t,b=r/2,y=r,C=r/2,E=ut(e,{badgeFontHeight:s,badgeShadowSize:l,badgeZIndex:c,badgeHeight:u,badgeTextColor:d,badgeFontWeight:m,badgeFontSize:h,badgeColor:g,badgeColorHover:v,badgeShadowColor:a,badgeHeightSm:p,badgeDotSize:b,badgeFontSizeSm:y,badgeStatusSize:C,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return [oX(E)]}),iX=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end"}=e,{getPrefixCls:l,direction:c}=f__namespace.useContext(Je),u=l("ribbon",n),d=Dc(o,!1),m=F(u,`${u}-placement-${s}`,{[`${u}-rtl`]:c==="rtl",[`${u}-color-${o}`]:d},t),[h,g]=e$(u),v={},p={};return o&&!d&&(v.background=o,p.color=o),h(f__namespace.createElement("div",{className:F(`${u}-wrapper`,g)},i,f__namespace.createElement("div",{className:F(m,g),style:Object.assign(Object.assign({},v),r)},f__namespace.createElement("span",{className:`${u}-text`},a),f__namespace.createElement("div",{className:`${u}-corner`,style:p}))))},aX=iX;function f0(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),f__namespace.createElement("span",{style:i,className:F(`${t}-only-unit`,{current:r})},n)}function sX(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function lX(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=f__namespace.useState(o),[l,c]=f__namespace.useState(i),u=()=>{s(o),c(i);};f__namespace.useEffect(()=>{const h=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(h);}},[o]);let d,m;if(a===o||Number.isNaN(o)||Number.isNaN(a))d=[f__namespace.createElement(f0,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else {d=[];const h=o+10,g=[];for(let b=o;b<=h;b+=1)g.push(b);const v=g.findIndex(b=>b%10===a);d=g.map((b,y)=>{const C=b%10;return f__namespace.createElement(f0,Object.assign({},e,{key:b,value:C,offset:y-v,current:y===v}))});const p=l{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,d=cX(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=f__namespace.useContext(Je),h=m("scroll-number",n),g=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:F(h,o,i),title:s});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=f__namespace.createElement("bdi",null,p.map((b,y)=>f__namespace.createElement(lX,{prefixCls:h,count:Number(r),value:b,key:p.length-y})));}return a&&a.borderColor&&(g.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?yn(u,p=>({className:F(`${h}-custom-component`,p==null?void 0:p.className,i)})):f__namespace.createElement(c,Object.assign({},g,{ref:t}),v)}),dX=uX;var fX=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,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:m,count:h=null,overflowCount:g=99,dot:v=!1,size:p="default",title:b,offset:y,style:C,className:E,rootClassName:S,classNames:$,styles:x,showZero:w=!1}=e,O=fX(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:R,direction:k,badge:_}=f__namespace.useContext(Je),I=R("badge",s),[P,M]=e$(I),N=h>g?`${g}+`:h,T=N==="0"||N===0,L=h===null||T&&!w,z=(u!=null||m!=null)&&L,H=v&&!T,W=H?"":N,B=f.useMemo(()=>(W==null||W===""||T&&!w)&&!H,[W,T,w,H]),V=f.useRef(h);B||(V.current=h);const j=V.current,K=f.useRef(W);B||(K.current=W);const q=K.current,G=f.useRef(H);B||(G.current=H);const U=f.useMemo(()=>{if(!y)return Object.assign(Object.assign({},_==null?void 0:_.style),C);const X={marginTop:y[1]};return k==="rtl"?X.left=parseInt(y[0],10):X.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},X),_==null?void 0:_.style),C)},[k,y,C,_==null?void 0:_.style]),Y=b??(typeof j=="string"||typeof j=="number"?j:void 0),oe=B||!d?null:f__namespace.createElement("span",{className:`${I}-status-text`},d),ue=!j||typeof j!="object"?void 0:yn(j,X=>({style:Object.assign(Object.assign({},U),X.style)})),he=Dc(m,!1),re=F($==null?void 0:$.indicator,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.indicator,{[`${I}-status-dot`]:z,[`${I}-status-${u}`]:!!u,[`${I}-color-${m}`]:he}),ie={};m&&!he&&(ie.color=m,ie.background=m);const ce=F(I,{[`${I}-status`]:z,[`${I}-not-a-wrapper`]:!c,[`${I}-rtl`]:k==="rtl"},E,S,_==null?void 0:_.className,(r=_==null?void 0:_.classNames)===null||r===void 0?void 0:r.root,$==null?void 0:$.root,M);if(!c&&z){const X=U.color;return P(f__namespace.createElement("span",Object.assign({},O,{className:ce,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.root),(o=_==null?void 0:_.styles)===null||o===void 0?void 0:o.root),U)}),f__namespace.createElement("span",{className:re,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(i=_==null?void 0:_.styles)===null||i===void 0?void 0:i.indicator),ie)}),d&&f__namespace.createElement("span",{style:{color:X},className:`${I}-status-text`},d)))}return P(f__namespace.createElement("span",Object.assign({ref:t},O,{className:ce,style:Object.assign(Object.assign({},(a=_==null?void 0:_.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.root)}),c,f__namespace.createElement(Xr,{visible:!B,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},X=>{let{className:ne,ref:J}=X;var de,fe;const be=R("scroll-number",l),Re=G.current,Be=F($==null?void 0:$.indicator,(de=_==null?void 0:_.classNames)===null||de===void 0?void 0:de.indicator,{[`${I}-dot`]:Re,[`${I}-count`]:!Re,[`${I}-count-sm`]:p==="small",[`${I}-multiple-words`]:!Re&&q&&q.toString().length>1,[`${I}-status-${u}`]:!!u,[`${I}-color-${m}`]:he});let _e=Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(fe=_==null?void 0:_.styles)===null||fe===void 0?void 0:fe.indicator),U);return m&&!he&&(_e=_e||{},_e.background=m),f__namespace.createElement(dX,{prefixCls:be,show:!B,motionClassName:ne,className:Be,count:q,title:Y,style:_e,key:"scrollNumber",ref:J},ue)}),oe))},t$=f__namespace.forwardRef(mX);t$.Ribbon=aX;const hX=t$,gX=f__namespace.createContext({size:"default",shape:void 0}),dm=gX,vX=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:m,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:p}=e,b=(y,C,E)=>({width:y,height:y,lineHeight:`${y-v*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:E},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Rt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${v}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,m)),{"&-lg":Object.assign({},b(s,u,h)),"&-sm":Object.assign({},b(l,d,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},pX=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},n$=Bt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ut(e,{avatarBg:n,avatarColor:t});return [vX(r),pX(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}});var bX=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]=f__namespace.useState(1),[o,i]=f__namespace.useState(!1),[a,s]=f__namespace.useState(!0),l=f__namespace.useRef(null),c=f__namespace.useRef(null),u=xn(t,l),{getPrefixCls:d,avatar:m}=f__namespace.useContext(Je),h=f__namespace.useContext(dm),g=()=>{if(!c.current||!l.current)return;const q=c.current.offsetWidth,G=l.current.offsetWidth;if(q!==0&&G!==0){const{gap:U=4}=e;U*2{i(!0);},[]),f__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),f__namespace.useEffect(g,[e.gap]);const v=()=>{const{onError:q}=e;(q==null?void 0:q())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y="default",src:C,srcSet:E,icon:S,className:$,rootClassName:x,alt:w,draggable:O,children:R,crossOrigin:k}=e,_=bX(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),I=y==="default"?h==null?void 0:h.size:y,P=Object.keys(typeof I=="object"?I||{}:{}).some(q=>["xs","sm","md","lg","xl","xxl"].includes(q)),M=ux(P),N=f__namespace.useMemo(()=>{if(typeof I!="object")return {};const q=cx.find(U=>M[U]),G=I[q];return G?{width:G,height:G,lineHeight:`${G}px`,fontSize:S?G/2:18}:{}},[M,I]),T=d("avatar",p),[L,z]=n$(T),H=F({[`${T}-lg`]:I==="large",[`${T}-sm`]:I==="small"}),W=f__namespace.isValidElement(C),B=b||(h==null?void 0:h.shape)||"circle",V=F(T,H,m==null?void 0:m.className,`${T}-${B}`,{[`${T}-image`]:W||C&&a,[`${T}-icon`]:!!S},$,x,z),j=typeof I=="number"?{width:I,height:I,lineHeight:`${I}px`,fontSize:S?I/2:18}:{};let K;if(typeof C=="string"&&a)K=f__namespace.createElement("img",{src:C,draggable:O,srcSet:E,onError:v,alt:w,crossOrigin:k});else if(W)K=C;else if(S)K=S;else if(o||n!==1){const q=`scale(${n}) translateX(-50%)`,G={msTransform:q,WebkitTransform:q,transform:q},U=typeof I=="number"?{lineHeight:`${I}px`}:{};K=f__namespace.createElement(Or,{onResize:g},f__namespace.createElement("span",{className:`${T}-string`,ref:c,style:Object.assign(Object.assign({},U),G)},R));}else K=f__namespace.createElement("span",{className:`${T}-string`,style:{opacity:0},ref:c},R);return delete _.onError,delete _.gap,L(f__namespace.createElement("span",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign(Object.assign({},j),N),m==null?void 0:m.style),_.style),className:V,ref:u}),K))},CX=f__namespace.forwardRef(yX),r$=CX,m0=e=>{const{size:t,shape:n}=f__namespace.useContext(dm),r=f__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f__namespace.createElement(dm.Provider,{value:r},e.children)},SX=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Je),{prefixCls:r,className:o,rootClassName:i,style:a,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:m="hover",children:h}=e,g=t("avatar",r),v=`${g}-group`,[p,b]=n$(g),y=F(v,{[`${v}-rtl`]:n==="rtl"},o,i,b),C=tr(h).map((S,$)=>yn(S,{key:`avatar-key-${$}`})),E=C.length;if(s&&ss.type==="DYNAMIC_TYPE_AV").map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}get usageInfo(){return D(RX,{})}}wt(fm,"PAGE_SIZE",15);const yr=rr({upMid:void 0,upName:void 0,upList:[],upListUpdatedAt:0});async function $X(e=!1){if(!e&&yr.upList.length&&yr.upListUpdatedAt&&yr.upListUpdatedAt-Date.now(){$X();});const r=ot(async a=>{if(Object.assign(yr,a),a.upMid){const s=yr.upList.find(l=>l.mid===a.upMid);s&&(s.has_update=!1);}await vo(100),e();}),o=[{key:"all",label:Ce("span",{children:[D(Vd,{size:"small",css:PX,children:"全"}),"全部"]}),onClick(){r({upMid:void 0,upName:void 0});}}],i=n.map(a=>{let s=null;return a.has_update?s=D(hX,{dot:!0,css:IX,children:D(Vd,{size:"small",src:a.face})}):s=D(Vd,{size:"small",src:a.face,css:OX}),{key:a.mid,label:Ce("span",{children:[s,a.uname]}),onClick(){r({upMid:a.mid,upName:a.uname});}}});return D("div",{css:EX,children:D(vg,{menu:{items:[...o,...i],style:{maxHeight:"50vh",overflowY:"scroll"}},placement:"bottomLeft",children:D(Xt,{children:t?`UP: ${t}`:"全部"})})})}function i$({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:i,setUpperRefreshing:a}){const s=hW(),l=ZK(()=>({})),[c,u]=f.useState(!0),[d,m]=f.useState([]),[h,g]=f.useState(()=>new ts),[v,p]=f.useState(()=>new fm(yr.upMid)),[b,y]=f.useState(()=>new Qa),[C,E]=f.useState(()=>new Za),[S,$]=f.useState(!1),[x,w,O]=Ow(()=>Date.now()),[R,k]=f.useState(s),[_,I]=f.useState(()=>new AbortController),[P,M]=f.useState(!1),[N,T]=f.useState(void 0),L=ot(async(z=!1,H)=>{var ne;const W=performance.now();if(S)if(s===R){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",R,s),_.abort();else e("refresh(): [start] tab = %s",s);await(i==null?void 0:i());const B=J=>{$(J),a==null||a(J);};B(!0),w(Date.now()),k(s),m([]),T(void 0),u(!0),await(r==null?void 0:r());let V=[],j;const K=!!(z&&((ne=l.current[s])!=null&&ne.length)),q=!!(K&&(Xb[s].swr||s==="fav"));M(q);const G=K&&(q||s==="fav"),U=async()=>{try{V=await n(ce);}catch(J){j=J;}},Y=t?new ts:h;t&&g(Y);let oe=v;s==="dynamic"&&(oe=new fm(yr.upMid),p(oe));let ue=b;s==="watchlater"&&(ue=new Qa(H==null?void 0:H.watchlaterKeepOrder),y(ue));let he=C;s==="fav"&&(K?he.restore():(he=new Za,E(he)));const re=new AbortController,ie=re.signal;I(re);const ce={tab:s,pcRecService:Y,dynamicFeedService:oe,watchLaterService:ue,favService:he,abortSignal:ie};if(e("refresh(): shouldReuse=%s swr=%s",K,q),K?(V=l.current[s]||[],m(V),G&&await U()):(l.current[s]=[],await U()),ie.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),j){console.error(j),T(j);return}m(V),Xb[s].swr?l.current[s]=V.slice(0,30):l.current[s]=V,s==="dynamic"&&u(oe.hasMore),s==="dynamic"&&u(oe.hasMore),s==="fav"&&u(he.hasMore),await(o==null?void 0:o());const X=performance.now()-W;e("refresh(): [success] cost %s ms",X.toFixed(0));});return {items:d,itemsCache:l,setItems:m,error:N,refreshedAt:x,setRefreshedAt:w,getRefreshedAt:O,refreshing:S,setRefreshing:$,refreshFor:R,setRefreshFor:k,refreshAbortController:_,setRefreshAbortController:I,hasMore:c,setHasMore:u,swr:P,setSwr:M,pcRecService:h,dynamicFeedService:v,watchLaterService:b,favService:C,setPcRecService:g,setDynamicFeedService:p,setWatchLaterService:y,setFavService:E,refresh:L}}const ba=qi.extend("components:RecGrid"),Pi={card:Bb({name:"pqxyg1",styles:"border:2px solid transparent;.bili-video-card__info{padding-left:2px;padding-bottom:1px;margin-top:calc(var(--info-margin-top) - 1px);}"}),cardActive:Bb("border-color:",Vr,";border-radius:",Rx,";overflow:hidden;","")};var _X={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const a$=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i,setExtraInfo:a},s)=>{const{useNarrowMode:l,styleUseYoutubeLikeCard:c}=_n(),u=Is(),[d,m]=f.useState(0),h=ot(async()=>{V(),a==null||a();}),g=ot(()=>{V(),m(1),u==="watchlater"&&(a==null||a(k.usageInfo)),u==="fav"&&(a==null||a(_.usageInfo)),u==="dynamic"&&(a==null||a(R.usageInfo)),N();}),{refresh:v,items:p,setItems:b,error:y,refreshing:C,refreshedAt:E,getRefreshedAt:S,swr:$,hasMore:x,setHasMore:w,pcRecService:O,dynamicFeedService:R,watchLaterService:k,favService:_}=i$({tab:u,debug:ba,fetcher:WK,recreateService:!0,preAction:h,postAction:g,onScrollToTop:n,setUpperRefreshing:i});$s(v),f.useImperativeHandle(s,()=>({refresh:v}),[]);const I=f.useRef();uo("visibilitychange",re=>{if(!(document.visibilityState==="visible")){I.current=Date.now();return}C||P.current[E]||u==="watchlater"&&I.current&&Date.now()-I.current>hu("1h")&&v(!0,{watchlaterKeepOrder:!0});},{target:document});const P=f.useRef({}),M=ot(async()=>{if(!x||C)return;const re=E;if(P.current[re])return;P.current={[re]:!0};let ie=p,ce=!0;try{if(u==="dynamic")ie=ie.concat(await R.loadMore()||[]),ce=R.hasMore;else if(u==="watchlater")ie=ie.concat(await k.loadMore()||[]),ce=k.hasMore;else if(u==="fav")ie=ie.concat(await _.loadMore()||[]),ce=_.hasMore;else for(;!(ie.length>p.length);){const ne=await VK(u==="onlyFollow"?5:2,u,O);ie=HK(ie,ne);}}catch(X){throw P.current[re]=!1,X}if(re!==S()){ba("loadMore: skip update for mismatch refreshedAt, %s != %s",re,S());return}ba("loadMore: seq(%s) len %s -> %s",d+1,p.length,ie.length),w(ce),b(ie),m(X=>X+1),P.current[re]=!1,N();}),N=ot(async()=>{await vo(og?100:50),ba("checkShouldLoadMore(): footerInView = %s",Y.current),Y.current&&M();}),T=f.useRef(null),L=ot(()=>{var re;if(e){const ie=vx()+50;return new DOMRect(0,ie,window.innerWidth,window.innerHeight-ie)}else return (re=o==null?void 0:o.current)==null?void 0:re.getBoundingClientRect()}),z=q7(),H=f.useMemo(()=>new Map,[E]),W=f.useMemo(()=>p.map(({uniqId:re})=>H.get(re)||(()=>{const ie=Ex();return H.set(re,ie),ie})()),[p]),{activeIndex:B,clearActiveIndex:V}=dK({enabled:t&&!z,refresh:v,maxIndex:p.length-1,containerRef:T,getScrollerRect:L,videoCardEmitters:W,changeScrollY:e?function({offset:re,absolute:ie}){const ce=document.documentElement;if(typeof re=="number"){ce.scrollTop+=re;return}if(typeof ie=="number"){ce.scrollTop=ie;return}}:void 0}),j=Bi(),K=ot((re,ie)=>{b(ce=>{const X=ce.findIndex(J=>J.uniqId===re.uniqId);if(X===-1)return ce;let ne=ce.slice();return ne.splice(X,1),vt(`已移除: ${ie.title}`,4e3),u==="watchlater"&&(k.count--,a==null||a(k.usageInfo)),u==="fav"&&(_.total--,a==null||a(_.usageInfo)),ne});}),q=ot((re,ie)=>{b(ce=>{const X=ce.find(de=>de.uniqId===re.uniqId);if(!X)return ce;const ne=ce.indexOf(X),J=ce.slice();return J.splice(ne,1),J.unshift(X),J});}),{ref:G,inView:U}=YK({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(re){re&&(ba("footerInView change to visible",re),M());}}),Y=Hi(U),oe=D("div",{ref:G,css:_X,children:!C&&D(St,{children:x?Ce(St,{children:[D(Mt,{name:"Loading",fill:Vr,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ue=F(`${fn}-video-grid`,yg,c?cK:j?kx:Nx,l&&uK,r);return !p.length||y||C&&!$?D("div",{className:u0,children:D("div",{className:ue,children:new Array(28).fill(void 0).map((re,ie)=>D(rc,{loading:!0,className:Pi.card},ie))})}):Ce("div",{style:{minHeight:"100%"},className:u0,children:[D("div",{ref:T,className:ue,children:p.map((re,ie)=>{const ce=ie===B;return D(rc,{className:F(Pi.card,{[Pi.cardActive]:ce}),item:re,active:ce,onRemoveCurrent:K,onMoveToFirst:q,emitter:W[ie]},re.uniqId)})}),oe]})}),TX={grid:Yn` /* card=360 col-gap=16 */ width: ${360*2+20}px; margin: 0 auto; `};function MX(){const{useNarrowMode:e}=_n(),{modalFeedVisible:t,modalConfigVisible:n}=_U(),r=f.useRef(null),o=f.useRef(null),i=ot((...d)=>{var m;return (m=o.current)==null?void 0:m.refresh(...d)}),a=ot(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=f.useState(!1),[c,u]=f.useState(null);return Ce("section",{"data-area":"推荐",children:[D(bx,{ref:r,refreshing:s,onRefresh:i,leftSlot:c}),D(a$,{ref:o,css:[e&&TX.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:l,setExtraInfo:u})]})}const NX=qi.extend("components:SectionRecommend");function kX(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Bi(),n=Is(),{refreshing:r,items:o,refresh:i,error:a,swr:s}=i$({tab:n,debug:NX,fetcher:FK,recreateService:!1});$s(i);const l=!o.length||a||r&&!s;return Ce("section",{"data-area":"推荐",children:[D(bx,{refreshing:r,onRefresh:i}),D("div",{className:F(yg,lK,t?kx:Nx),style:{marginBottom:t?30:0},children:l?e.map(c=>D(rc,{},c)):o.map(c=>D(rc,{item:c},c.uniqId))})]})}qo.extend(_7);(function(){var t,n;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?")){window.stop(),window.top===window?(t=window.opener)==null||t.postMessage(location.href,"https://www.bilibili.com"):(n=window.top)==null||n.postMessage(location.href,"https://www.bilibili.com");return}if(location.pathname==="/"||location.pathname==="/index.html")return AX()})();async function AX(){return Ta(".adblock-tips"),_a("html.gray",e=>e.classList.remove("gray")),yt.pureRecommend?DX():LX()}async function LX(){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(Bi()&&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 vo(200);}if(!n){console.error(`[${fn}]: init fail`);return}const r=document.createElement("section");n(r),yu(r).render(D(aw,{children:D(kX,{})})),Bi()&&Ta(".bili-feed4 .header-channel");}async function DX(){var o,i;og&&await vo(500),Bi()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),Ta(".bili-feed4 .header-channel"),_a(".palette-button-wrap .storage-box",a=>a.classList.remove("hidden")),_a(".palette-button-wrap .top-btn-wrap .top-btn",a=>a.classList.add("visible")),_a(".palette-button-wrap",a=>{a.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),Ta(".bili-footer"),Ta(".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(Bi()?"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),yu(n).render(D(aw,{children:D(MX,{})}));} })(React, ReactDOM);