// ==UserScript==
// @name bilibili-app-recommend
// @namespace https://magicdawn.fun
// @version 0.17.10
// @author magicdawn
// @description 为 B 站首页添加像 App 一样的推荐
// @license MIT
// @icon https://www.bilibili.com/favicon.ico
// @homepageURL https://gf.qytechs.cn/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://lib.baomitu.com/react/18.2.0/umd/react.production.min.js
// @require https://lib.baomitu.com/react-dom/18.2.0/umd/react-dom.production.min.js
// @require https://lib.baomitu.com/UAParser.js/1.0.36/ua-parser.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
// ==/UserScript==
(t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const e=document.createElement("style");e.textContent=t,document.head.append(e)})(" ._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}._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}._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} ");
(async function (f, qy, o2) {
'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 qy__namespace = /*#__PURE__*/_interopNamespaceDefault(qy);
var YE=Object.defineProperty;var ZE=(e,t,n)=>t in e?YE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var It=(e,t,n)=>(ZE(e,typeof t!="symbol"?t+"":t,n),n),fd=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var tt=(e,t,n)=>(fd(e,t,"read from private field"),n?n.call(e):t.get(e)),Mn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n);},$n=(e,t,n,r)=>(fd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var md=(e,t,n,r)=>({set _(o){$n(e,t,o,n);},get _(){return tt(e,t,r)}}),Yt=(e,t,n)=>(fd(e,t,"access private method"),n);var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a2(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 Zy={exports:{}},jc={};/**
* @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 i2=f,s2=Symbol.for("react.element"),l2=Symbol.for("react.fragment"),c2=Object.prototype.hasOwnProperty,u2=i2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d2={key:!0,ref:!0,__self:!0,__source:!0};function Qy(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)c2.call(t,r)&&!d2.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:s2,type:e,key:a,ref:i,props:o,_owner:u2.current}}jc.Fragment=l2;jc.jsx=Qy;jc.jsxs=Qy;Zy.exports=jc;var Qi=Zy.exports;function f2(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function m2(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var h2=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(m2(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=f2(o);try{a.insertRule(r,a.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),wn="-ms-",ql="-moz-",Pt="-webkit-",Jy="comm",dh="rule",fh="decl",v2="@import",e1="@keyframes",g2="@layer",p2=Math.abs,zc=String.fromCharCode,b2=Object.assign;function y2(e,t){return vn(e,0)^45?(((t<<2^vn(e,0))<<2^vn(e,1))<<2^vn(e,2))<<2^vn(e,3):0}function t1(e){return e.trim()}function C2(e,t){return (e=t.exec(e))?e[0]:e}function _t(e,t,n){return e.replace(t,n)}function Mf(e,t){return e.indexOf(t)}function vn(e,t){return e.charCodeAt(t)|0}function Ji(e,t,n){return e.slice(t,n)}function jr(e){return e.length}function mh(e){return e.length}function ol(e,t){return t.push(e),e}function S2(e,t){return e.map(t).join("")}var Bc=1,Ha=1,n1=0,Bn=0,on=0,oi="";function Fc(e,t,n,r,o,a,i){return {value:e,root:t,parent:n,type:r,props:o,children:a,line:Bc,column:Ha,length:i,return:""}}function xi(e,t){return b2(Fc("",null,null,"",null,null,0),e,{length:-e.length},t)}function $2(){return on}function w2(){return on=Bn>0?vn(oi,--Bn):0,Ha--,on===10&&(Ha=1,Bc--),on}function Jn(){return on=Bn<n1?vn(oi,Bn++):0,Ha++,on===10&&(Ha=1,Bc++),on}function Wr(){return vn(oi,Bn)}function Il(){return Bn}function $s(e,t){return Ji(oi,e,t)}function es(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 r1(e){return Bc=Ha=1,n1=jr(oi=e),Bn=0,[]}function o1(e){return oi="",e}function Pl(e){return t1($s(Bn-1,Nf(e===91?e+2:e===40?e+1:e)))}function x2(e){for(;(on=Wr())&&on<33;)Jn();return es(e)>2||es(on)>3?"":" "}function E2(e,t){for(;--t&&Jn()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return $s(e,Il()+(t<6&&Wr()==32&&Jn()==32))}function Nf(e){for(;Jn();)switch(on){case e:return Bn;case 34:case 39:e!==34&&e!==39&&Nf(on);break;case 40:e===41&&Nf(e);break;case 92:Jn();break}return Bn}function O2(e,t){for(;Jn()&&e+on!==47+10;)if(e+on===42+42&&Wr()===47)break;return "/*"+$s(t,Bn-1)+"*"+zc(e===47?e:Jn())}function I2(e){for(;!es(Wr());)Jn();return $s(e,Bn)}function a1(e){return o1(_l("",null,null,null,[""],e=r1(e),0,[0],e))}function _l(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,m=0,h=0,v=0,g=1,p=1,b=1,y=0,S="",E=o,$=a,w=r,C=S;p;)switch(v=y,y=Jn()){case 40:if(v!=108&&vn(C,d-1)==58){Mf(C+=_t(Pl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Pl(y);break;case 9:case 10:case 13:case 32:C+=x2(v);break;case 92:C+=E2(Il()-1,7);continue;case 47:switch(Wr()){case 42:case 47:ol(P2(O2(Jn(),Il()),t,n),l);break;default:C+="/";}break;case 123*g:s[c++]=jr(C)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(C=_t(C,/\f/g,"")),h>0&&jr(C)-d&&ol(h>32?Lg(C+";",r,n,d-1):Lg(_t(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(ol(w=Ag(C,t,n,c,u,o,s,S,E=[],$=[],d),a),y===123)if(u===0)_l(C,t,w,w,E,a,d,s,$);else switch(m===99&&vn(C,3)===110?100:m){case 100:case 108:case 109:case 115:_l(e,w,w,r&&ol(Ag(e,w,w,0,0,o,s,S,o,E=[],d),$),o,$,d,s,r?E:$);break;default:_l(C,w,w,w,[""],$,0,s,$);}}c=u=h=0,g=b=1,S=C="",d=i;break;case 58:d=1+jr(C),h=v;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&w2()==125)continue}switch(C+=zc(y),y*g){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(jr(C)-1)*b,b=1;break;case 64:Wr()===45&&(C+=Pl(Jn())),m=Wr(),u=d=jr(S=C+=I2(Il())),y++;break;case 45:v===45&&jr(C)==2&&(g=0);}}return a}function Ag(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,m=o===0?a:[""],h=mh(m),v=0,g=0,p=0;v<r;++v)for(var b=0,y=Ji(e,d+1,d=p2(g=i[v])),S=e;b<h;++b)(S=t1(g>0?m[b]+" "+y:_t(y,/&\f/g,m[b])))&&(l[p++]=S);return Fc(e,t,n,o===0?dh:s,l,c,u)}function P2(e,t,n){return Fc(e,t,n,Jy,zc($2()),Ji(e,2,-2),0)}function Lg(e,t,n,r){return Fc(e,t,n,fh,Ji(e,0,r),Ji(e,r+1,-1),r)}function Uo(e,t){for(var n="",r=mh(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function i1(e,t,n,r){switch(e.type){case g2:if(e.children.length)break;case v2:case fh:return e.return=e.return||e.value;case Jy:return "";case e1:return e.return=e.value+"{"+Uo(e.children,r)+"}";case dh:e.value=e.props.join(",");}return jr(n=Uo(e.children,r))?e.return=e.value+"{"+n+"}":""}function _2(e){var t=mh(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function R2(e){return function(t){t.root||(t=t.return)&&e(t);}}function T2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var M2=function(t,n,r){for(var o=0,a=0;o=a,a=Wr(),o===38&&a===12&&(n[r]=1),!es(a);)Jn();return $s(t,Bn)},N2=function(t,n){var r=-1,o=44;do switch(es(o)){case 0:o===38&&Wr()===12&&(n[r]=1),t[r]+=M2(Bn-1,n,r);break;case 2:t[r]+=Pl(o);break;case 4:if(o===44){t[++r]=Wr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=zc(o);}while(o=Jn());return t},k2=function(t,n){return o1(N2(r1(t),n))},Dg=new WeakMap,A2=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Dg.get(r))&&!o){Dg.set(t,!0);for(var a=[],i=k2(n,a),s=r.props,l=0,c=0;l<i.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?i[l].replace(/&\f/g,s[u]):s[u]+" "+i[l];}}},L2=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function s1(e,t){switch(y2(e,t)){case 5103:return Pt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pt+e+ql+e+wn+e+e;case 6828:case 4268:return Pt+e+wn+e+e;case 6165:return Pt+e+wn+"flex-"+e+e;case 5187:return Pt+e+_t(e,/(\w+).+(:[^]+)/,Pt+"box-$1$2"+wn+"flex-$1$2")+e;case 5443:return Pt+e+wn+"flex-item-"+_t(e,/flex-|-self/,"")+e;case 4675:return Pt+e+wn+"flex-line-pack"+_t(e,/align-content|flex-|-self/,"")+e;case 5548:return Pt+e+wn+_t(e,"shrink","negative")+e;case 5292:return Pt+e+wn+_t(e,"basis","preferred-size")+e;case 6060:return Pt+"box-"+_t(e,"-grow","")+Pt+e+wn+_t(e,"grow","positive")+e;case 4554:return Pt+_t(e,/([^-])(transform)/g,"$1"+Pt+"$2")+e;case 6187:return _t(_t(_t(e,/(zoom-|grab)/,Pt+"$1"),/(image-set)/,Pt+"$1"),e,"")+e;case 5495:case 3959:return _t(e,/(image-set\([^]*)/,Pt+"$1$`$1");case 4968:return _t(_t(e,/(.+:)(flex-)?(.*)/,Pt+"box-pack:$3"+wn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pt+e+e;case 4095:case 3583:case 4068:case 2532:return _t(e,/(.+)-inline(.+)/,Pt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jr(e)-1-t>6)switch(vn(e,t+1)){case 109:if(vn(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+Pt+"$2-$3$1"+ql+(vn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Mf(e,"stretch")?s1(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vn(e,t+1)!==115)break;case 6444:switch(vn(e,jr(e)-3-(~Mf(e,"!important")&&10))){case 107:return _t(e,":",":"+Pt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pt+(vn(e,14)===45?"inline-":"")+"box$3$1"+Pt+"$2$3$1"+wn+"$2box$3")+e}break;case 5936:switch(vn(e,t+11)){case 114:return Pt+e+wn+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pt+e+wn+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pt+e+wn+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pt+e+wn+e+e}return e}var D2=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case fh:t.return=s1(t.value,t.length);break;case e1:return Uo([xi(t,{value:_t(t.value,"@","@"+Pt)})],o);case dh:if(t.length)return S2(t.props,function(a){switch(C2(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Uo([xi(t,{props:[_t(a,/:(read-\w+)/,":"+ql+"$1")]})],o);case"::placeholder":return Uo([xi(t,{props:[_t(a,/:(plac\w+)/,":"+Pt+"input-$1")]}),xi(t,{props:[_t(a,/:(plac\w+)/,":"+ql+"$1")]}),xi(t,{props:[_t(a,/:(plac\w+)/,wn+"input-$1")]})],o)}return ""})}},j2=[D2],l1=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(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""));});}var o=t.stylisPlugins||j2,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;s.push(g);});var l,c=[A2,L2];{var u,d=[i1,R2(function(g){u.insert(g);})],m=_2(c.concat(o,d)),h=function(p){return Uo(a1(p),m)};l=function(p,b,y,S){u=y,h(p?p+"{"+b.styles+"}":b.styles),S&&(v.inserted[b.name]=!0);};}var v={key:n,sheet:new h2({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return v.sheet.hydrate(s),v},c1={exports:{}},Nt={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var dn=typeof Symbol=="function"&&Symbol.for,hh=dn?Symbol.for("react.element"):60103,vh=dn?Symbol.for("react.portal"):60106,Hc=dn?Symbol.for("react.fragment"):60107,Wc=dn?Symbol.for("react.strict_mode"):60108,Vc=dn?Symbol.for("react.profiler"):60114,Uc=dn?Symbol.for("react.provider"):60109,Gc=dn?Symbol.for("react.context"):60110,gh=dn?Symbol.for("react.async_mode"):60111,Kc=dn?Symbol.for("react.concurrent_mode"):60111,qc=dn?Symbol.for("react.forward_ref"):60112,Xc=dn?Symbol.for("react.suspense"):60113,z2=dn?Symbol.for("react.suspense_list"):60120,Yc=dn?Symbol.for("react.memo"):60115,Zc=dn?Symbol.for("react.lazy"):60116,B2=dn?Symbol.for("react.block"):60121,F2=dn?Symbol.for("react.fundamental"):60117,H2=dn?Symbol.for("react.responder"):60118,W2=dn?Symbol.for("react.scope"):60119;function tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hh:switch(e=e.type,e){case gh:case Kc:case Hc:case Vc:case Wc:case Xc:return e;default:switch(e=e&&e.$$typeof,e){case Gc:case qc:case Zc:case Yc:case Uc:return e;default:return t}}case vh:return t}}}function u1(e){return tr(e)===Kc}Nt.AsyncMode=gh;Nt.ConcurrentMode=Kc;Nt.ContextConsumer=Gc;Nt.ContextProvider=Uc;Nt.Element=hh;Nt.ForwardRef=qc;Nt.Fragment=Hc;Nt.Lazy=Zc;Nt.Memo=Yc;Nt.Portal=vh;Nt.Profiler=Vc;Nt.StrictMode=Wc;Nt.Suspense=Xc;Nt.isAsyncMode=function(e){return u1(e)||tr(e)===gh};Nt.isConcurrentMode=u1;Nt.isContextConsumer=function(e){return tr(e)===Gc};Nt.isContextProvider=function(e){return tr(e)===Uc};Nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hh};Nt.isForwardRef=function(e){return tr(e)===qc};Nt.isFragment=function(e){return tr(e)===Hc};Nt.isLazy=function(e){return tr(e)===Zc};Nt.isMemo=function(e){return tr(e)===Yc};Nt.isPortal=function(e){return tr(e)===vh};Nt.isProfiler=function(e){return tr(e)===Vc};Nt.isStrictMode=function(e){return tr(e)===Wc};Nt.isSuspense=function(e){return tr(e)===Xc};Nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hc||e===Kc||e===Vc||e===Wc||e===Xc||e===z2||typeof e=="object"&&e!==null&&(e.$$typeof===Zc||e.$$typeof===Yc||e.$$typeof===Uc||e.$$typeof===Gc||e.$$typeof===qc||e.$$typeof===F2||e.$$typeof===H2||e.$$typeof===W2||e.$$typeof===B2)};Nt.typeOf=tr;c1.exports=Nt;var Qc=c1.exports,d1=Qc,V2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},U2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f1={};f1[d1.ForwardRef]=V2;f1[d1.Memo]=U2;var G2=!0;function ph(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var m1=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||G2===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},bh=function(t,n,r){m1(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function K2(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)}var q2={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},X2=/[A-Z]|^ms/g,Y2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,h1=function(t){return t.charCodeAt(1)===45},jg=function(t){return t!=null&&typeof t!="boolean"},hd=T2(function(e){return h1(e)?e:e.replace(X2,"-$&").toLowerCase()}),zg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Y2,function(r,o,a){return zr={name:o,styles:a,next:zr},o})}return q2[t]!==1&&!h1(t)&&typeof n=="number"&&n!==0?n+"px":n};function ts(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 zr={name:n.name,styles:n.styles,next:zr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)zr={name:r.name,styles:r.styles,next:zr},r=r.next;var o=n.styles+";";return o}return Z2(e,t,n)}case"function":{if(e!==void 0){var a=zr,i=n(e);return zr=a,ts(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Z2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ts(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":jg(i)&&(r+=hd(a)+":"+zg(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)jg(i[s])&&(r+=hd(a)+":"+zg(a,i[s])+";");else {var l=ts(e,t,i);switch(a){case"animation":case"animationName":{r+=hd(a)+":"+l+";";break}default:r+=a+"{"+l+"}";}}}return r}var Bg=/label:\s*([^\s;\n{]+)\s*(;|$)/g,zr,Da=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";zr=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=ts(r,n,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=ts(r,n,t[s]),o&&(a+=i[s]);Bg.lastIndex=0;for(var l="",c;(c=Bg.exec(a))!==null;)l+="-"+c[1];var u=K2(a)+l;return {name:u,styles:a,next:zr}},Q2=function(t){return t()},v1=f__namespace["useInsertionEffect"]?f__namespace["useInsertionEffect"]:!1,J2=v1||Q2,Fg=v1||f__namespace.useLayoutEffect,Jc={}.hasOwnProperty,g1=f__namespace.createContext(typeof HTMLElement<"u"?l1({key:"css"}):null);g1.Provider;var p1=function(t){return f.forwardRef(function(n,r){var o=f.useContext(g1);return t(n,o,r)})},b1=f__namespace.createContext({}),kf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y1=function(t,n){var r={};for(var o in n)Jc.call(n,o)&&(r[o]=n[o]);return r[kf]=t,r},eO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return m1(n,r,o),J2(function(){return bh(n,r,o)}),null},tO=p1(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[kf],a=[r],i="";typeof e.className=="string"?i=ph(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=Da(a,void 0,f__namespace.useContext(b1));i+=t.key+"-"+s.name;var l={};for(var c in e)Jc.call(e,c)&&c!=="css"&&c!==kf&&(l[c]=e[c]);return l.ref=n,l.className=i,f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(eO,{cache:t,serialized:s,isStringTag:typeof o=="string"}),f__namespace.createElement(o,l))}),C1=tO,Et=Qi.Fragment;function D(e,t,n){return Jc.call(t,"css")?Qi.jsx(C1,y1(e,t),n):Qi.jsx(e,t,n)}function ge(e,t,n){return Jc.call(t,"css")?Qi.jsxs(C1,y1(e,t),n):Qi.jsxs(e,t,n)}function nO(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var yh=nO;function rO(){this.__data__=[],this.size=0;}var oO=rO;function aO(e,t){return e===t||e!==e&&t!==t}var Ch=aO,iO=Ch;function sO(e,t){for(var n=e.length;n--;)if(iO(e[n][0],t))return n;return -1}var eu=sO,lO=eu,cO=Array.prototype,uO=cO.splice;function dO(e){var t=this.__data__,n=lO(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():uO.call(t,n,1),--this.size,!0}var fO=dO,mO=eu;function hO(e){var t=this.__data__,n=mO(t,e);return n<0?void 0:t[n][1]}var vO=hO,gO=eu;function pO(e){return gO(this.__data__,e)>-1}var bO=pO,yO=eu;function CO(e,t){var n=this.__data__,r=yO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var SO=CO,$O=oO,wO=fO,xO=vO,EO=bO,OO=SO;function ai(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}ai.prototype.clear=$O;ai.prototype.delete=wO;ai.prototype.get=xO;ai.prototype.has=EO;ai.prototype.set=OO;var tu=ai,IO=tu;function PO(){this.__data__=new IO,this.size=0;}var _O=PO;function RO(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var TO=RO;function MO(e){return this.__data__.get(e)}var NO=MO;function kO(e){return this.__data__.has(e)}var AO=kO,LO=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,S1=LO,DO=S1,jO=typeof self=="object"&&self&&self.Object===Object&&self,zO=DO||jO||Function("return this")(),Mr=zO,BO=Mr,FO=BO.Symbol,ii=FO,Hg=ii,$1=Object.prototype,HO=$1.hasOwnProperty,WO=$1.toString,Ei=Hg?Hg.toStringTag:void 0;function VO(e){var t=HO.call(e,Ei),n=e[Ei];try{e[Ei]=void 0;var r=!0;}catch{}var o=WO.call(e);return r&&(t?e[Ei]=n:delete e[Ei]),o}var UO=VO,GO=Object.prototype,KO=GO.toString;function qO(e){return KO.call(e)}var XO=qO,Wg=ii,YO=UO,ZO=XO,QO="[object Null]",JO="[object Undefined]",Vg=Wg?Wg.toStringTag:void 0;function eI(e){return e==null?e===void 0?JO:QO:Vg&&Vg in Object(e)?YO(e):ZO(e)}var si=eI;function tI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qr=tI,nI=si,rI=qr,oI="[object AsyncFunction]",aI="[object Function]",iI="[object GeneratorFunction]",sI="[object Proxy]";function lI(e){if(!rI(e))return !1;var t=nI(e);return t==aI||t==iI||t==oI||t==sI}var w1=lI,cI=Mr,uI=cI["__core-js_shared__"],dI=uI,vd=dI,Ug=function(){var e=/[^.]+$/.exec(vd&&vd.keys&&vd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fI(e){return !!Ug&&Ug in e}var mI=fI,hI=Function.prototype,vI=hI.toString;function gI(e){if(e!=null){try{return vI.call(e)}catch{}try{return e+""}catch{}}return ""}var x1=gI,pI=w1,bI=mI,yI=qr,CI=x1,SI=/[\\^$.*+?()[\]{}|]/g,$I=/^\[object .+?Constructor\]$/,wI=Function.prototype,xI=Object.prototype,EI=wI.toString,OI=xI.hasOwnProperty,II=RegExp("^"+EI.call(OI).replace(SI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PI(e){if(!yI(e)||bI(e))return !1;var t=pI(e)?II:$I;return t.test(CI(e))}var _I=PI;function RI(e,t){return e==null?void 0:e[t]}var TI=RI,MI=_I,NI=TI;function kI(e,t){var n=NI(e,t);return MI(n)?n:void 0}var na=kI,AI=na,LI=Mr,DI=AI(LI,"Map"),Sh=DI,jI=na,zI=jI(Object,"create"),nu=zI,Gg=nu;function BI(){this.__data__=Gg?Gg(null):{},this.size=0;}var FI=BI;function HI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var WI=HI,VI=nu,UI="__lodash_hash_undefined__",GI=Object.prototype,KI=GI.hasOwnProperty;function qI(e){var t=this.__data__;if(VI){var n=t[e];return n===UI?void 0:n}return KI.call(t,e)?t[e]:void 0}var XI=qI,YI=nu,ZI=Object.prototype,QI=ZI.hasOwnProperty;function JI(e){var t=this.__data__;return YI?t[e]!==void 0:QI.call(t,e)}var eP=JI,tP=nu,nP="__lodash_hash_undefined__";function rP(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tP&&t===void 0?nP:t,this}var oP=rP,aP=FI,iP=WI,sP=XI,lP=eP,cP=oP;function li(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}li.prototype.clear=aP;li.prototype.delete=iP;li.prototype.get=sP;li.prototype.has=lP;li.prototype.set=cP;var uP=li,Kg=uP,dP=tu,fP=Sh;function mP(){this.size=0,this.__data__={hash:new Kg,map:new(fP||dP),string:new Kg};}var hP=mP;function vP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var gP=vP,pP=gP;function bP(e,t){var n=e.__data__;return pP(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ru=bP,yP=ru;function CP(e){var t=yP(this,e).delete(e);return this.size-=t?1:0,t}var SP=CP,$P=ru;function wP(e){return $P(this,e).get(e)}var xP=wP,EP=ru;function OP(e){return EP(this,e).has(e)}var IP=OP,PP=ru;function _P(e,t){var n=PP(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var RP=_P,TP=hP,MP=SP,NP=xP,kP=IP,AP=RP;function ci(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1]);}}ci.prototype.clear=TP;ci.prototype.delete=MP;ci.prototype.get=NP;ci.prototype.has=kP;ci.prototype.set=AP;var $h=ci,LP=tu,DP=Sh,jP=$h,zP=200;function BP(e,t){var n=this.__data__;if(n instanceof LP){var r=n.__data__;if(!DP||r.length<zP-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jP(r);}return n.set(e,t),this.size=n.size,this}var FP=BP,HP=tu,WP=_O,VP=TO,UP=NO,GP=AO,KP=FP;function ui(e){var t=this.__data__=new HP(e);this.size=t.size;}ui.prototype.clear=WP;ui.prototype.delete=VP;ui.prototype.get=UP;ui.prototype.has=GP;ui.prototype.set=KP;var wh=ui;function qP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var XP=qP,YP=na,ZP=function(){try{var e=YP(Object,"defineProperty");return e({},"",{}),e}catch{}}(),E1=ZP,qg=E1;function QP(e,t,n){t=="__proto__"&&qg?qg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var O1=QP,JP=O1,e_=Ch,t_=Object.prototype,n_=t_.hasOwnProperty;function r_(e,t,n){var r=e[t];(!(n_.call(e,t)&&e_(r,n))||n===void 0&&!(t in e))&&JP(e,t,n);}var xh=r_,o_=xh,a_=O1;function i_(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?a_(n,s,l):o_(n,s,l);}return n}var ws=i_;function s_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var l_=s_;function c_(e){return e!=null&&typeof e=="object"}var Mo=c_,u_=si,d_=Mo,f_="[object Arguments]";function m_(e){return d_(e)&&u_(e)==f_}var h_=m_,Xg=h_,v_=Mo,I1=Object.prototype,g_=I1.hasOwnProperty,p_=I1.propertyIsEnumerable,b_=Xg(function(){return arguments}())?Xg:function(e){return v_(e)&&g_.call(e,"callee")&&!p_.call(e,"callee")},Eh=b_,y_=Array.isArray,Nr=y_,Xl={exports:{}};function C_(){return !1}var S_=C_;Xl.exports;(function(e,t){var n=Mr,r=S_,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c;})(Xl,Xl.exports);var Oh=Xl.exports,$_=9007199254740991,w_=/^(?:0|[1-9]\d*)$/;function x_(e,t){var n=typeof e;return t=t??$_,!!t&&(n=="number"||n!="symbol"&&w_.test(e))&&e>-1&&e%1==0&&e<t}var Ih=x_,E_=9007199254740991;function O_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=E_}var Ph=O_,I_=si,P_=Ph,__=Mo,R_="[object Arguments]",T_="[object Array]",M_="[object Boolean]",N_="[object Date]",k_="[object Error]",A_="[object Function]",L_="[object Map]",D_="[object Number]",j_="[object Object]",z_="[object RegExp]",B_="[object Set]",F_="[object String]",H_="[object WeakMap]",W_="[object ArrayBuffer]",V_="[object DataView]",U_="[object Float32Array]",G_="[object Float64Array]",K_="[object Int8Array]",q_="[object Int16Array]",X_="[object Int32Array]",Y_="[object Uint8Array]",Z_="[object Uint8ClampedArray]",Q_="[object Uint16Array]",J_="[object Uint32Array]",Wt={};Wt[U_]=Wt[G_]=Wt[K_]=Wt[q_]=Wt[X_]=Wt[Y_]=Wt[Z_]=Wt[Q_]=Wt[J_]=!0;Wt[R_]=Wt[T_]=Wt[W_]=Wt[M_]=Wt[V_]=Wt[N_]=Wt[k_]=Wt[A_]=Wt[L_]=Wt[D_]=Wt[j_]=Wt[z_]=Wt[B_]=Wt[F_]=Wt[H_]=!1;function eR(e){return __(e)&&P_(e.length)&&!!Wt[I_(e)]}var tR=eR;function nR(e){return function(t){return e(t)}}var _h=nR,Yl={exports:{}};Yl.exports;(function(e,t){var n=S1,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s;})(Yl,Yl.exports);var Rh=Yl.exports,rR=tR,oR=_h,Yg=Rh,Zg=Yg&&Yg.isTypedArray,aR=Zg?oR(Zg):rR,P1=aR,iR=l_,sR=Eh,lR=Nr,cR=Oh,uR=Ih,dR=P1,fR=Object.prototype,mR=fR.hasOwnProperty;function hR(e,t){var n=lR(e),r=!n&&sR(e),o=!n&&!r&&cR(e),a=!n&&!r&&!o&&dR(e),i=n||r||o||a,s=i?iR(e.length,String):[],l=s.length;for(var c in e)(t||mR.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||uR(c,l)))&&s.push(c);return s}var _1=hR,vR=Object.prototype;function gR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||vR;return e===n}var Th=gR;function pR(e,t){return function(n){return e(t(n))}}var R1=pR,bR=R1,yR=bR(Object.keys,Object),CR=yR,SR=Th,$R=CR,wR=Object.prototype,xR=wR.hasOwnProperty;function ER(e){if(!SR(e))return $R(e);var t=[];for(var n in Object(e))xR.call(e,n)&&n!="constructor"&&t.push(n);return t}var OR=ER,IR=w1,PR=Ph;function _R(e){return e!=null&&PR(e.length)&&!IR(e)}var T1=_R,RR=_1,TR=OR,MR=T1;function NR(e){return MR(e)?RR(e):TR(e)}var xs=NR,kR=ws,AR=xs;function LR(e,t){return e&&kR(t,AR(t),e)}var DR=LR;function jR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zR=jR,BR=qr,FR=Th,HR=zR,WR=Object.prototype,VR=WR.hasOwnProperty;function UR(e){if(!BR(e))return HR(e);var t=FR(e),n=[];for(var r in e)r=="constructor"&&(t||!VR.call(e,r))||n.push(r);return n}var GR=UR,KR=_1,qR=GR,XR=T1;function YR(e){return XR(e)?KR(e,!0):qR(e)}var Mh=YR,ZR=ws,QR=Mh;function JR(e,t){return e&&ZR(t,QR(t),e)}var eT=JR,Zl={exports:{}};Zl.exports;(function(e,t){var n=Mr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,m=s?s(d):new c.constructor(d);return c.copy(m),m}e.exports=l;})(Zl,Zl.exports);var tT=Zl.exports;function nT(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var M1=nT;function rT(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i);}return a}var oT=rT;function aT(){return []}var N1=aT,iT=oT,sT=N1,lT=Object.prototype,cT=lT.propertyIsEnumerable,Qg=Object.getOwnPropertySymbols,uT=Qg?function(e){return e==null?[]:(e=Object(e),iT(Qg(e),function(t){return cT.call(e,t)}))}:sT,Nh=uT,dT=ws,fT=Nh;function mT(e,t){return dT(e,fT(e),t)}var hT=mT;function vT(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var kh=vT,gT=R1,pT=gT(Object.getPrototypeOf,Object),Ah=pT,bT=kh,yT=Ah,CT=Nh,ST=N1,$T=Object.getOwnPropertySymbols,wT=$T?function(e){for(var t=[];e;)bT(t,CT(e)),e=yT(e);return t}:ST,k1=wT,xT=ws,ET=k1;function OT(e,t){return xT(e,ET(e),t)}var IT=OT,PT=kh,_T=Nr;function RT(e,t,n){var r=t(e);return _T(e)?r:PT(r,n(e))}var A1=RT,TT=A1,MT=Nh,NT=xs;function kT(e){return TT(e,NT,MT)}var L1=kT,AT=A1,LT=k1,DT=Mh;function jT(e){return AT(e,DT,LT)}var D1=jT,zT=na,BT=Mr,FT=zT(BT,"DataView"),HT=FT,WT=na,VT=Mr,UT=WT(VT,"Promise"),GT=UT,KT=na,qT=Mr,XT=KT(qT,"Set"),j1=XT,YT=na,ZT=Mr,QT=YT(ZT,"WeakMap"),JT=QT,Af=HT,Lf=Sh,Df=GT,jf=j1,zf=JT,z1=si,di=x1,Jg="[object Map]",eM="[object Object]",ep="[object Promise]",tp="[object Set]",np="[object WeakMap]",rp="[object DataView]",tM=di(Af),nM=di(Lf),rM=di(Df),oM=di(jf),aM=di(zf),Lo=z1;(Af&&Lo(new Af(new ArrayBuffer(1)))!=rp||Lf&&Lo(new Lf)!=Jg||Df&&Lo(Df.resolve())!=ep||jf&&Lo(new jf)!=tp||zf&&Lo(new zf)!=np)&&(Lo=function(e){var t=z1(e),n=t==eM?e.constructor:void 0,r=n?di(n):"";if(r)switch(r){case tM:return rp;case nM:return Jg;case rM:return ep;case oM:return tp;case aM:return np}return t});var ou=Lo,iM=Object.prototype,sM=iM.hasOwnProperty;function lM(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&sM.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var cM=lM,uM=Mr,dM=uM.Uint8Array,B1=dM,op=B1;function fM(e){var t=new e.constructor(e.byteLength);return new op(t).set(new op(e)),t}var Lh=fM,mM=Lh;function hM(e,t){var n=t?mM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var vM=hM,gM=/\w*$/;function pM(e){var t=new e.constructor(e.source,gM.exec(e));return t.lastIndex=e.lastIndex,t}var bM=pM,ap=ii,ip=ap?ap.prototype:void 0,sp=ip?ip.valueOf:void 0;function yM(e){return sp?Object(sp.call(e)):{}}var CM=yM,SM=Lh;function $M(e,t){var n=t?SM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wM=$M,xM=Lh,EM=vM,OM=bM,IM=CM,PM=wM,_M="[object Boolean]",RM="[object Date]",TM="[object Map]",MM="[object Number]",NM="[object RegExp]",kM="[object Set]",AM="[object String]",LM="[object Symbol]",DM="[object ArrayBuffer]",jM="[object DataView]",zM="[object Float32Array]",BM="[object Float64Array]",FM="[object Int8Array]",HM="[object Int16Array]",WM="[object Int32Array]",VM="[object Uint8Array]",UM="[object Uint8ClampedArray]",KM="[object Uint16Array]",qM="[object Uint32Array]";function XM(e,t,n){var r=e.constructor;switch(t){case DM:return xM(e);case _M:case RM:return new r(+e);case jM:return EM(e,n);case zM:case BM:case FM:case HM:case WM:case VM:case UM:case KM:case qM:return PM(e,n);case TM:return new r;case MM:case AM:return new r(e);case NM:return OM(e);case kM:return new r;case LM:return IM(e)}}var YM=XM,ZM=qr,lp=Object.create,QM=function(){function e(){}return function(t){if(!ZM(t))return {};if(lp)return lp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),JM=QM,eN=JM,tN=Ah,nN=Th;function rN(e){return typeof e.constructor=="function"&&!nN(e)?eN(tN(e)):{}}var oN=rN,aN=ou,iN=Mo,sN="[object Map]";function lN(e){return iN(e)&&aN(e)==sN}var cN=lN,uN=cN,dN=_h,cp=Rh,up=cp&&cp.isMap,fN=up?dN(up):uN,mN=fN,hN=ou,vN=Mo,gN="[object Set]";function pN(e){return vN(e)&&hN(e)==gN}var bN=pN,yN=bN,CN=_h,dp=Rh,fp=dp&&dp.isSet,SN=fp?CN(fp):yN,$N=SN,wN=wh,xN=XP,EN=xh,ON=DR,IN=eT,PN=tT,_N=M1,RN=hT,TN=IT,MN=L1,NN=D1,kN=ou,AN=cM,LN=YM,DN=oN,jN=Nr,zN=Oh,BN=mN,FN=qr,HN=$N,WN=xs,VN=Mh,UN=1,GN=2,KN=4,F1="[object Arguments]",qN="[object Array]",XN="[object Boolean]",YN="[object Date]",ZN="[object Error]",H1="[object Function]",QN="[object GeneratorFunction]",JN="[object Map]",e3="[object Number]",W1="[object Object]",t3="[object RegExp]",n3="[object Set]",r3="[object String]",o3="[object Symbol]",a3="[object WeakMap]",i3="[object ArrayBuffer]",s3="[object DataView]",l3="[object Float32Array]",c3="[object Float64Array]",u3="[object Int8Array]",d3="[object Int16Array]",f3="[object Int32Array]",m3="[object Uint8Array]",h3="[object Uint8ClampedArray]",v3="[object Uint16Array]",g3="[object Uint32Array]",zt={};zt[F1]=zt[qN]=zt[i3]=zt[s3]=zt[XN]=zt[YN]=zt[l3]=zt[c3]=zt[u3]=zt[d3]=zt[f3]=zt[JN]=zt[e3]=zt[W1]=zt[t3]=zt[n3]=zt[r3]=zt[o3]=zt[m3]=zt[h3]=zt[v3]=zt[g3]=!0;zt[ZN]=zt[H1]=zt[a3]=!1;function Rl(e,t,n,r,o,a){var i,s=t&UN,l=t&GN,c=t&KN;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!FN(e))return e;var u=jN(e);if(u){if(i=AN(e),!s)return _N(e,i)}else {var d=kN(e),m=d==H1||d==QN;if(zN(e))return PN(e,s);if(d==W1||d==F1||m&&!o){if(i=l||m?{}:DN(e),!s)return l?TN(e,IN(i,e)):RN(e,ON(i,e))}else {if(!zt[d])return o?e:{};i=LN(e,d,s);}}a||(a=new wN);var h=a.get(e);if(h)return h;a.set(e,i),HN(e)?e.forEach(function(p){i.add(Rl(p,t,n,p,e,a));}):BN(e)&&e.forEach(function(p,b){i.set(b,Rl(p,t,n,b,e,a));});var v=c?l?NN:MN:l?VN:WN,g=u?void 0:v(e);return xN(g||e,function(p,b){g&&(b=p,p=e[b]),EN(i,b,Rl(p,t,n,b,e,a));}),i}var V1=Rl,p3=si,b3=Mo,y3="[object Symbol]";function C3(e){return typeof e=="symbol"||b3(e)&&p3(e)==y3}var au=C3,S3=Nr,$3=au,w3=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x3=/^\w*$/;function E3(e,t){if(S3(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||$3(e)?!0:x3.test(e)||!w3.test(e)||t!=null&&e in Object(t)}var Dh=E3,U1=$h,O3="Expected a function";function jh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O3);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(jh.Cache||U1),n}jh.Cache=U1;var I3=jh,P3=I3,_3=500;function R3(e){var t=P3(e,function(r){return n.size===_3&&n.clear(),r}),n=t.cache;return t}var T3=R3,M3=T3,N3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k3=/\\(\\)?/g,A3=M3(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(N3,function(n,r,o,a){t.push(o?a.replace(k3,"$1"):r||n);}),t}),L3=A3,mp=ii,D3=yh,j3=Nr,z3=au,B3=1/0,hp=mp?mp.prototype:void 0,vp=hp?hp.toString:void 0;function G1(e){if(typeof e=="string")return e;if(j3(e))return D3(e,G1)+"";if(z3(e))return vp?vp.call(e):"";var t=e+"";return t=="0"&&1/e==-B3?"-0":t}var F3=G1,H3=F3;function W3(e){return e==null?"":H3(e)}var V3=W3,U3=Nr,G3=Dh,K3=L3,q3=V3;function X3(e,t){return U3(e)?e:G3(e,t)?[e]:K3(q3(e))}var fi=X3;function Y3(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Z3=Y3,Q3=au,J3=1/0;function ek(e){if(typeof e=="string"||Q3(e))return e;var t=e+"";return t=="0"&&1/e==-J3?"-0":t}var mi=ek,tk=fi,nk=mi;function rk(e,t){t=tk(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[nk(t[n++])];return n&&n==r?e:void 0}var iu=rk;function ok(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}var ak=ok,ik=iu,sk=ak;function lk(e,t){return t.length<2?e:ik(e,sk(t,0,-1))}var ck=lk,uk=fi,dk=Z3,fk=ck,mk=mi;function hk(e,t){return t=uk(t,e),e=fk(e,t),e==null||delete e[mk(dk(t))]}var vk=hk,gk=si,pk=Ah,bk=Mo,yk="[object Object]",Ck=Function.prototype,Sk=Object.prototype,K1=Ck.toString,$k=Sk.hasOwnProperty,wk=K1.call(Object);function xk(e){if(!bk(e)||gk(e)!=yk)return !1;var t=pk(e);if(t===null)return !0;var n=$k.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&K1.call(n)==wk}var Ek=xk,Ok=Ek;function Ik(e){return Ok(e)?void 0:e}var Pk=Ik,gp=ii,_k=Eh,Rk=Nr,pp=gp?gp.isConcatSpreadable:void 0;function Tk(e){return Rk(e)||_k(e)||!!(pp&&e&&e[pp])}var Mk=Tk,Nk=kh,kk=Mk;function q1(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=kk),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?q1(s,t-1,n,r,o):Nk(o,s):r||(o[o.length]=s);}return o}var Ak=q1,Lk=Ak;function Dk(e){var t=e==null?0:e.length;return t?Lk(e,1):[]}var jk=Dk;function zk(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 Bk=zk,Fk=Bk,bp=Math.max;function Hk(e,t,n){return t=bp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=bp(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),Fk(e,this,s)}}var Wk=Hk;function Vk(e){return function(){return e}}var Uk=Vk;function Gk(e){return e}var X1=Gk,Kk=Uk,yp=E1,qk=X1,Xk=yp?function(e,t){return yp(e,"toString",{configurable:!0,enumerable:!1,value:Kk(t),writable:!0})}:qk,Yk=Xk,Zk=800,Qk=16,Jk=Date.now;function eA(e){var t=0,n=0;return function(){var r=Jk(),o=Qk-(r-n);if(n=r,o>0){if(++t>=Zk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var tA=eA,nA=Yk,rA=tA,oA=rA(nA),aA=oA,iA=jk,sA=Wk,lA=aA;function cA(e){return lA(sA(e,void 0,iA),e+"")}var Y1=cA,uA=yh,dA=V1,fA=vk,mA=fi,hA=ws,vA=Pk,gA=Y1,pA=D1,bA=1,yA=2,CA=4,SA=gA(function(e,t){var n={};if(e==null)return n;var r=!1;t=uA(t,function(a){return a=mA(a,e),r||(r=a.length>1),a}),hA(e,pA(e),n),r&&(n=dA(n,bA|yA|CA,vA));for(var o=t.length;o--;)fA(n,t[o]);return n}),$A=SA;const wA=Ft($A);var xA=Mr,EA=function(){return xA.Date.now()},OA=EA,IA=/\s/;function PA(e){for(var t=e.length;t--&&IA.test(e.charAt(t)););return t}var _A=PA,RA=_A,TA=/^\s+/;function MA(e){return e&&e.slice(0,RA(e)+1).replace(TA,"")}var NA=MA,kA=NA,Cp=qr,AA=au,Sp=0/0,LA=/^[-+]0x[0-9a-f]+$/i,DA=/^0b[01]+$/i,jA=/^0o[0-7]+$/i,zA=parseInt;function BA(e){if(typeof e=="number")return e;if(AA(e))return Sp;if(Cp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Cp(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=kA(e);var n=DA.test(e);return n||jA.test(e)?zA(e.slice(2),n?2:8):LA.test(e)?Sp:+e}var Z1=BA,FA=qr,gd=OA,$p=Z1,HA="Expected a function",WA=Math.max,VA=Math.min;function UA(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(HA);t=$p(t)||0,FA(n)&&(u=!!n.leading,d="maxWait"in n,a=d?WA($p(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function h(w){var C=r,x=o;return r=o=void 0,c=w,i=e.apply(x,C),i}function v(w){return c=w,s=setTimeout(b,t),u?h(w):i}function g(w){var C=w-l,x=w-c,I=t-C;return d?VA(I,a-x):I}function p(w){var C=w-l,x=w-c;return l===void 0||C>=t||C<0||d&&x>=a}function b(){var w=gd();if(p(w))return y(w);s=setTimeout(b,g(w));}function y(w){return s=void 0,m&&r?h(w):(r=o=void 0,i)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function E(){return s===void 0?i:y(gd())}function $(){var w=gd(),C=p(w);if(r=arguments,o=this,l=w,C){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),i}return $.cancel=S,$.flush=E,$}var Q1=UA;const GA=Ft(Q1);var KA=Q1,qA=qr,XA="Expected a function";function YA(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(XA);return qA(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),KA(e,t,{leading:r,maxWait:t,trailing:o})}var ZA=YA;const J1=Ft(ZA);var QA=xh,JA=fi,e4=Ih,wp=qr,t4=mi;function n4(e,t,n,r){if(!wp(e))return e;t=JA(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var l=t4(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=wp(u)?u:e4(t[o+1])?[]:{});}QA(s,l,c),s=s[l];}return e}var r4=n4,o4=iu,a4=r4,i4=fi;function s4(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=o4(e,i);n(s,i)&&a4(a,i4(i,e),s);}return a}var l4=s4;function c4(e,t){return e!=null&&t in Object(e)}var u4=c4,d4=fi,f4=Eh,m4=Nr,h4=Ih,v4=Ph,g4=mi;function p4(e,t,n){t=d4(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=g4(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i];}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&v4(o)&&h4(i,o)&&(m4(e)||f4(e)))}var b4=p4,y4=u4,C4=b4;function S4(e,t){return e!=null&&C4(e,t,y4)}var eC=S4,$4=l4,w4=eC;function x4(e,t){return $4(e,t,function(n,r){return w4(e,r)})}var E4=x4,O4=E4,I4=Y1,P4=I4(function(e,t){return e==null?{}:O4(e,t)}),_4=P4;const zh=Ft(_4);var Bf={exports:{}},pd,xp;function R4(){if(xp)return pd;xp=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;pd=function(u,d){d=d||{};var m=typeof u;if(m==="string"&&u.length>0)return i(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 i(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*a;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 v=d>=m*1.5;return Math.round(u/m)+" "+h+(v?"s":"")}return pd}function T4(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=i,n.humanize=R4(),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<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,m=null,h,v;function g(...p){if(!g.enabled)return;const b=g,y=Number(new Date),S=y-(d||y);b.diff=S,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let E=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(w,C)=>{if(w==="%%")return "%";E++;const x=n.formatters[C];if(typeof x=="function"){const I=p[E];w=x.call(b,I),p.splice(E,1),E--;}return w}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return g.namespace=u,g.useColors=n.useColors(),g.color=n.selectColor(u),g.extend=r,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==n.namespaces&&(h=n.namespaces,v=n.enabled(u)),v),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(g),g}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<h;d++)m[d]&&(u=m[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function i(u){if(u[u.length-1]==="*")return !0;let d,m;for(d=0,m=n.skips.length;d<m;d++)if(n.skips[d].test(u))return !1;for(d=0,m=n.names.length;d<m;d++)if(n.names[d].test(u))return !0;return !1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n}var M4=T4;(function(e,t){t.formatArgs=r,t.save=o,t.load=a,t.useColors=n,t.storage=i(),t.destroy=(()=>{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 a(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function i(){try{return localStorage}catch{}}e.exports=M4(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Bf,Bf.exports);var N4=Bf.exports;const k4=Ft(N4),gn="bilibili-app-recommend",A4="bilibili_app_recommend",hi=k4(gn),tC="https://api.bilibili.com",nC="https://app.bilibili.com";var rC={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;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s);}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(rC);var L4=rC.exports;const H=Ft(L4);function dt(e){"@babel/helpers - typeof";return dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(e)}function D4(e,t){if(dt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function oC(e){var t=D4(e,"string");return dt(t)==="symbol"?t:String(t)}function U(e,t,n){return t=oC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ff(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j4(e){if(Array.isArray(e))return Ff(e)}function aC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bh(e,t){if(e){if(typeof e=="string")return Ff(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ff(e,t)}}function z4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function We(e){return j4(e)||aC(e)||Bh(e)||z4()}function iC(e){if(Array.isArray(e))return e}function B4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u;}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function sC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return iC(e)||B4(e,t)||Bh(e,t)||sC()}var Hf={},F4=function(t){};function H4(e,t){}function W4(e,t){}function V4(){Hf={};}function lC(e,t,n){!t&&!Hf[n]&&(e(!1,n),Hf[n]=!0);}function Fn(e,t){lC(H4,e,t);}function U4(e,t){lC(W4,e,t);}Fn.preMessage=F4;Fn.resetWarned=V4;Fn.noteOnce=U4;function Es(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Fn(!l,"Warning: There may be circular references"),l)return !1;if(a===i)return !0;if(n&&s>1)return !1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return !1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return !1;return !0}if(a&&i&&dt(a)==="object"&&dt(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(m){return o(a[m],i[m],c)})}return !1}return o(e,t)}function zn(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function kn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var Ep=kn()?f__namespace.useLayoutEffect:f__namespace.useEffect,qt=function(t,n){var r=f__namespace.useRef(!0);Ep(function(){return t(r.current)},n),Ep(function(){return r.current=!1,function(){r.current=!0;}},[]);},ja=function(t,n){qt(function(r){if(!r)return t()},n);};function Go(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=Q(n,2),o=r[0],a=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function i(s,l){l&&t.current||a(s);}return [o,i]}function bd(e){return e!==void 0}function Bt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=Go(function(){return bd(o)?o:bd(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Q(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,m=i?i(d):d,h=zn(a),v=Go([d]),g=Q(v,2),p=g[0],b=g[1];ja(function(){var S=p[0];c!==S&&h(c,S);},[p]),ja(function(){bd(o)||u(o);},[o]);var y=zn(function(S,E){u(S,E),b([d],E);});return [m,y]}function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},$e.apply(this,arguments)}function G4(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Je(e,t){if(e==null)return {};var n=G4(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Op(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 Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Op(Object(n),!0).forEach(function(r){U(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Op(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=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}}},ra=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Wf(e,t,n){return (e-t)/(n-t)}function Fh(e,t,n,r){var o=Wf(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function Ta(e,t){return Array.isArray(e)?e[t]:e}var K4=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],q4=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,m=Je(e,K4),h=f__namespace.useContext(ra),v=h.min,g=h.max,p=h.direction,b=h.disabled,y=h.keyboard,S=h.range,E=h.tabIndex,$=h.ariaLabelForHandle,w=h.ariaLabelledByForHandle,C=h.ariaValueTextFormatterForHandle,x="".concat(o,"-handle"),I=function(R){b||s(R,i);},_=function(R){if(!b&&y){var T=null;switch(R.which||R.keyCode){case le.LEFT:T=p==="ltr"||p==="btt"?-1:1;break;case le.RIGHT:T=p==="ltr"||p==="btt"?1:-1;break;case le.UP:T=p!=="ttb"?1:-1;break;case le.DOWN:T=p!=="ttb"?-1:1;break;case le.HOME:T="min";break;case le.END:T="max";break;case le.PAGE_UP:T=2;break;case le.PAGE_DOWN:T=-2;break}T!==null&&(R.preventDefault(),d(T,i));}},k=Fh(p,a,v,g),O=f__namespace.createElement("div",$e({ref:t,className:H(x,(n={},U(n,"".concat(x,"-").concat(i+1),S),U(n,"".concat(x,"-dragging"),u),n)),style:Y(Y({},k),l),onMouseDown:I,onTouchStart:I,onKeyDown:_,tabIndex:b?null:Ta(E,i),role:"slider","aria-valuemin":v,"aria-valuemax":g,"aria-valuenow":a,"aria-disabled":b,"aria-label":Ta($,i),"aria-labelledby":Ta(w,i),"aria-valuetext":(r=Ta(C,i))===null||r===void 0?void 0:r(a),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical"},m));return c&&(O=c(O,{index:i,prefixCls:o,value:a,dragging:u})),O}),X4=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Y4=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,c=Je(e,X4),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,i.map(function(d,m){return f__namespace.createElement(q4,$e({ref:function(v){v?u.current[m]=v:delete u.current[m];},dragging:l===m,prefixCls:n,style:Ta(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:a,render:s},c))}))});function Ip(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function Z4(e,t,n,r,o,a,i,s,l){var c=f__namespace.useState(null),u=Q(c,2),d=u[0],m=u[1],h=f__namespace.useState(-1),v=Q(h,2),g=v[0],p=v[1],b=f__namespace.useState(n),y=Q(b,2),S=y[0],E=y[1],$=f__namespace.useState(n),w=Q($,2),C=w[0],x=w[1],I=f__namespace.useRef(null),_=f__namespace.useRef(null);f__namespace.useEffect(function(){g===-1&&E(n);},[n,g]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",_.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",_.current);}},[]);var k=function(M,L){S.some(function(j,z){return j!==M[z]})&&(L!==void 0&&m(L),E(M),i(M));},O=function(M,L){if(M===-1){var j=C[0],z=C[C.length-1],V=r-j,B=o-z,W=L*(o-r);W=Math.max(W,V),W=Math.min(W,B);var F=a(j+W);W=F-j;var X=C.map(function(J){return J+W});k(X);}else {var q=(o-r)*L,K=We(S);K[M]=C[M];var G=l(K,q,M,"dist");k(G.values,G.value);}},P=f__namespace.useRef(O);P.current=O;var R=function(M,L){M.stopPropagation();var j=n[L];p(L),m(j),x(n);var z=Ip(M),V=z.pageX,B=z.pageY,W=function(q){q.preventDefault();var K=Ip(q),G=K.pageX,J=K.pageY,oe=G-V,ue=J-B,me=e.current.getBoundingClientRect(),te=me.width,ae=me.height,ce;switch(t){case"btt":ce=-ue/ae;break;case"ttb":ce=ue/ae;break;case"rtl":ce=-oe/te;break;default:ce=oe/te;}P.current(L,ce);},F=function X(q){q.preventDefault(),document.removeEventListener("mouseup",X),document.removeEventListener("mousemove",W),document.removeEventListener("touchend",X),document.removeEventListener("touchmove",W),I.current=null,_.current=null,p(-1),s();};document.addEventListener("mouseup",F),document.addEventListener("mousemove",W),document.addEventListener("touchend",F),document.addEventListener("touchmove",W),I.current=W,_.current=F;},T=f__namespace.useMemo(function(){var N=We(n).sort(function(L,j){return L-j}),M=We(S).sort(function(L,j){return L-j});return N.every(function(L,j){return L===M[j]})?S:n},[n,S]);return [g,d,T,R]}function Q4(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,s=e.onStartMove,l=f__namespace.useContext(ra),c=l.direction,u=l.min,d=l.max,m=l.disabled,h=l.range,v="".concat(n,"-track"),g=Wf(o,u,d),p=Wf(a,u,d),b=function(E){!m&&s&&s(E,-1);},y={};switch(c){case"rtl":y.right="".concat(g*100,"%"),y.width="".concat(p*100-g*100,"%");break;case"btt":y.bottom="".concat(g*100,"%"),y.height="".concat(p*100-g*100,"%");break;case"ttb":y.top="".concat(g*100,"%"),y.height="".concat(p*100-g*100,"%");break;default:y.left="".concat(g*100,"%"),y.width="".concat(p*100-g*100,"%");}return f__namespace.createElement("div",{className:H(v,(t={},U(t,"".concat(v,"-").concat(i+1),h),U(t,"".concat(n,"-track-draggable"),s),t)),style:Y(Y({},y),r),onMouseDown:b,onTouchStart:b})}function J4(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=f__namespace.useContext(ra),s=i.included,l=i.range,c=i.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=[],v=0;v<r.length-1;v+=1)h.push({start:r[v],end:r[v+1]});return h},[r,l,o,c]);return s?u.map(function(d,m){var h=d.start,v=d.end;return f__namespace.createElement(Q4,{index:m,prefixCls:t,style:Ta(n,m),start:h,end:v,key:m,onStartMove:a})}):null}function eL(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=f__namespace.useContext(ra),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,m=i.included,h="".concat(t,"-text"),v=Fh(c,o,s,l);return f__namespace.createElement("span",{className:H(h,U({},"".concat(h,"-active"),m&&u<=o&&o<=d)),style:Y(Y({},v),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){a(o);}},r)}function tL(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?f__namespace.createElement("div",{className:o},n.map(function(a){var i=a.value,s=a.style,l=a.label;return f__namespace.createElement(eL,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null}function nL(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=f__namespace.useContext(ra),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,m="".concat(t,"-dot"),h=c&&u<=n&&n<=d,v=Y(Y({},Fh(l,n,i,s)),typeof r=="function"?r(n):r);return h&&(v=Y(Y({},v),typeof o=="function"?o(n):o)),f__namespace.createElement("span",{className:H(m,U({},"".concat(m,"-active"),h)),style:v})}function rL(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=f__namespace.useContext(ra),s=i.min,l=i.max,c=i.step,u=f__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value);}),r&&c!==null)for(var m=s;m<=l;)d.add(m),m+=c;return Array.from(d)},[s,l,c,r,n]);return f__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return f__namespace.createElement(nL,{prefixCls:t,key:d,value:d,style:o,activeStyle:a})}))}function oL(e,t,n,r,o,a){var i=f__namespace.useCallback(function(h){var v=isFinite(h)?h:e;return v=Math.min(t,h),v=Math.max(e,v),v},[e,t]),s=f__namespace.useCallback(function(h){if(n!==null){var v=e+Math.round((i(h)-e)/n)*n,g=function(S){return (String(S).split(".")[1]||"").length},p=Math.max(g(n),g(t),g(e)),b=Number(v.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=f__namespace.useCallback(function(h){var v=i(h),g=r.map(function(y){return y.value});n!==null&&g.push(s(h)),g.push(e,t);var p=g[0],b=t-e;return g.forEach(function(y){var S=Math.abs(v-y);S<=b&&(p=y,b=S);}),p},[e,t,r,n,i,s]),c=function h(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,S=v[p],E=S+g,$=[];r.forEach(function(_){$.push(_.value);}),$.push(e,t),$.push(s(S));var w=g>0?1:-1;b==="unit"?$.push(s(S+w*n)):$.push(s(E)),$=$.filter(function(_){return _!==null}).filter(function(_){return g<0?_<=S:_>=S}),b==="unit"&&($=$.filter(function(_){return _!==S}));var C=b==="unit"?S:E;y=$[0];var x=Math.abs(y-C);if($.forEach(function(_){var k=Math.abs(_-C);k<x&&(y=_,x=k);}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var I=We(v);return I[p]=y,h(I,g-w,p,b)}return y}else {if(g==="min")return e;if(g==="max")return t}},u=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v[p],S=c(v,g,p,b);return {value:S,changed:S!==y}},d=function(v){return a===null&&v===0||typeof a=="number"&&v<a},m=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v.map(l),S=y[p],E=c(y,g,p,b);if(y[p]=E,o===!1){var $=a||0;p>0&&y[p-1]!==S&&(y[p]=Math.max(y[p],y[p-1]+$)),p<y.length-1&&y[p+1]!==S&&(y[p]=Math.min(y[p],y[p+1]-$));}else if(typeof a=="number"||a===null){for(var w=p+1;w<y.length;w+=1)for(var C=!0;d(y[w]-y[w-1])&&C;){var x=u(y,1,w);y[w]=x.value,C=x.changed;}for(var I=p;I>0;I-=1)for(var _=!0;d(y[I]-y[I-1])&&_;){var k=u(y,-1,I-1);y[I-1]=k.value,_=k.changed;}for(var O=y.length-1;O>0;O-=1)for(var P=!0;d(y[O]-y[O-1])&&P;){var R=u(y,-1,O-1);y[O-1]=R.value,P=R.changed;}for(var T=0;T<y.length-1;T+=1)for(var N=!0;d(y[T+1]-y[T])&&N;){var M=u(y,1,T+1);y[T+1]=M.value,N=M.changed;}}return {value:y[p],values:y}};return [l,m]}var aL=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,a=e.className,i=e.style,s=e.disabled,l=s===void 0?!1:s,c=e.keyboard,u=c===void 0?!0:c,d=e.autoFocus,m=e.onFocus,h=e.onBlur,v=e.min,g=v===void 0?0:v,p=e.max,b=p===void 0?100:p,y=e.step,S=y===void 0?1:y,E=e.value,$=e.defaultValue,w=e.range,C=e.count,x=e.onChange,I=e.onBeforeChange,_=e.onAfterChange,k=e.allowCross,O=k===void 0?!0:k,P=e.pushable,R=P===void 0?!1:P,T=e.draggableTrack,N=e.reverse,M=e.vertical,L=e.included,j=L===void 0?!0:L,z=e.startPoint,V=e.trackStyle,B=e.handleStyle,W=e.railStyle,F=e.dotStyle,X=e.activeDotStyle,q=e.marks,K=e.dots,G=e.handleRender,J=e.tabIndex,oe=J===void 0?0:J,ue=e.ariaLabelForHandle,me=e.ariaLabelledByForHandle,te=e.ariaValueTextFormatterForHandle,ae=f__namespace.useRef(),ce=f__namespace.useRef(),Z=f__namespace.useMemo(function(){return M?N?"ttb":"btt":N?"rtl":"ltr"},[N,M]),ne=f__namespace.useMemo(function(){return isFinite(g)?g:0},[g]),ee=f__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),de=f__namespace.useMemo(function(){return S!==null&&S<=0?1:S},[S]),he=f__namespace.useMemo(function(){return typeof R=="boolean"?R?de:!1:R>=0?R:!1},[R,de]),fe=f__namespace.useMemo(function(){var He=Object.keys(q||{});return He.map(function(Xe){var Ge=q[Xe],Ke={value:Number(Xe)};return Ge&&dt(Ge)==="object"&&!f__namespace.isValidElement(Ge)&&("label"in Ge||"style"in Ge)?(Ke.style=Ge.style,Ke.label=Ge.label):Ke.label=Ge,Ke}).filter(function(Xe){var Ge=Xe.label;return Ge||typeof Ge=="number"}).sort(function(Xe,Ge){return Xe.value-Ge.value})},[q]),Pe=oL(ne,ee,de,fe,O,he),je=Q(Pe,2),Ae=je[0],be=je[1],Ce=Bt($,{value:E}),Ne=Q(Ce,2),Ve=Ne[0],Ue=Ne[1],Fe=f__namespace.useMemo(function(){var He=Ve==null?[]:Array.isArray(Ve)?Ve:[Ve],Xe=Q(He,1),Ge=Xe[0],Ke=Ge===void 0?ne:Ge,ke=Ve===null?[]:[Ke];if(w){if(ke=We(He),C||Ve===void 0){var ft=C>=0?C+1:2;for(ke=ke.slice(0,ft);ke.length<ft;){var it;ke.push((it=ke[ke.length-1])!==null&&it!==void 0?it:ne);}}ke.sort(function(jt,vt){return jt-vt});}return ke.forEach(function(jt,vt){ke[vt]=Ae(jt);}),ke},[Ve,w,ne,C,Ae]),Le=f__namespace.useRef(Fe);Le.current=Fe;var at=function(Xe){return w?Xe:Xe[0]},st=function(Xe){var Ge=We(Xe).sort(function(Ke,ke){return Ke-ke});x&&!Es(Ge,Le.current,!0)&&x(at(Ge)),Ue(Ge);},_e=function(Xe){if(!l){var Ge=0,Ke=ee-ne;Fe.forEach(function(ft,it){var jt=Math.abs(Xe-ft);jt<=Ke&&(Ke=jt,Ge=it);});var ke=We(Fe);ke[Ge]=Xe,w&&!Fe.length&&C===void 0&&ke.push(Xe),I==null||I(at(ke)),st(ke),_==null||_(at(ke));}},Oe=function(Xe){Xe.preventDefault();var Ge=ce.current.getBoundingClientRect(),Ke=Ge.width,ke=Ge.height,ft=Ge.left,it=Ge.top,jt=Ge.bottom,vt=Ge.right,Sn=Xe.clientX,br=Xe.clientY,Ln;switch(Z){case"btt":Ln=(jt-br)/ke;break;case"ttb":Ln=(br-it)/ke;break;case"rtl":Ln=(vt-Sn)/Ke;break;default:Ln=(Sn-ft)/Ke;}var Dn=ne+Ln*(ee-ne);_e(Ae(Dn));},De=f__namespace.useState(null),yt=Q(De,2),Me=yt[0],gt=yt[1],Re=function(Xe,Ge){if(!l){var Ke=be(Fe,Xe,Ge);I==null||I(at(Fe)),st(Ke.values),_==null||_(at(Ke.values)),gt(Ke.value);}};f__namespace.useEffect(function(){if(Me!==null){var He=Fe.indexOf(Me);He>=0&&ae.current.focus(He);}gt(null);},[Me]);var re=f__namespace.useMemo(function(){return T&&de===null?!1:T},[T,de]),ve=function(){_==null||_(at(Le.current));},pe=Z4(ce,Z,Fe,ne,ee,Ae,st,ve,be),ye=Q(pe,4),qe=ye[0],Ie=ye[1],Se=ye[2],se=ye[3],xe=function(Xe,Ge){se(Xe,Ge),I==null||I(at(Le.current));},we=qe!==-1;f__namespace.useEffect(function(){if(!we){var He=Fe.lastIndexOf(Ie);ae.current.focus(He);}},[we]);var Ee=f__namespace.useMemo(function(){return We(Se).sort(function(He,Xe){return He-Xe})},[Se]),pt=f__namespace.useMemo(function(){return w?[Ee[0],Ee[Ee.length-1]]:[ne,Ee[0]]},[Ee,w,ne]),ht=Q(pt,2),Lt=ht[0],Dt=ht[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){ae.current.focus(0);},blur:function(){var Xe=document,Ge=Xe.activeElement;ce.current.contains(Ge)&&(Ge==null||Ge.blur());}}}),f__namespace.useEffect(function(){d&&ae.current.focus(0);},[]);var Gt=f__namespace.useMemo(function(){return {min:ne,max:ee,direction:Z,disabled:l,keyboard:u,step:de,included:j,includedStart:Lt,includedEnd:Dt,range:w,tabIndex:oe,ariaLabelForHandle:ue,ariaLabelledByForHandle:me,ariaValueTextFormatterForHandle:te}},[ne,ee,Z,l,u,de,j,Lt,Dt,w,oe,ue,me,te]);return f__namespace.createElement(ra.Provider,{value:Gt},f__namespace.createElement("div",{ref:ce,className:H(o,a,(n={},U(n,"".concat(o,"-disabled"),l),U(n,"".concat(o,"-vertical"),M),U(n,"".concat(o,"-horizontal"),!M),U(n,"".concat(o,"-with-marks"),fe.length),n)),style:i,onMouseDown:Oe},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:W}),f__namespace.createElement(J4,{prefixCls:o,style:V,values:Ee,startPoint:z,onStartMove:re?xe:null}),f__namespace.createElement(rL,{prefixCls:o,marks:fe,dots:K,style:F,activeStyle:X}),f__namespace.createElement(Y4,{ref:ae,prefixCls:o,style:B,values:Se,draggingIndex:qe,onStartMove:xe,onOffsetChange:Re,onFocus:m,onBlur:h,handleRender:G}),f__namespace.createElement(tL,{prefixCls:o,marks:fe,onClick:_e})))});function iL(){}const cC=()=>{const e=()=>{};return e.deprecated=iL,e};function Hh(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 Os(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 bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oC(r.key),r);}}function yn(e,t,n){return t&&Pp(e.prototype,t),n&&Pp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var _p="%",sL=function(){function e(t){bn(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),this.instanceId=t;}return yn(e,[{key:"get",value:function(n){return this.cache.get(n.join(_p))||null}},{key:"update",value:function(n,r){var o=n.join(_p),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i);}}]),e}(),Vf="data-token-hash",Ko="data-css-hash",Ma="__cssinjs_instance__";function lL(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ko,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ma]=o[Ma]||e,o[Ma]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(Ko,"]"))).forEach(function(o){var a=o.getAttribute(Ko);if(r[a]){if(o[Ma]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o);}}else r[a]=!0;});}return new sL(e)}var cL=f__namespace.createContext({hashPriority:"low",cache:lL(),defaultCache:!0});const Wh=cL;function uL(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 Rp="data-rc-order",Tp="data-rc-priority",dL="rc-util-key",Uf=new Map;function uC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):dL}function su(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function fL(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function dC(e){return Array.from((Uf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function fC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!kn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=fL(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Rp,i),s&&a&&l.setAttribute(Tp,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=su(t),u=c.firstChild;if(r){if(s){var d=dC(c).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Rp)))return !1;var h=Number(m.getAttribute(Tp)||0);return a>=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 mC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=su(t);return dC(n).find(function(r){return r.getAttribute(uC(t))===e})}function Ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mC(e,t);if(n){var r=su(t);r.removeChild(n);}}function mL(e,t){var n=Uf.get(e);if(!n||!uL(document,n)){var r=fC("",t),o=r.parentNode;Uf.set(e,o),e.removeChild(r);}}function Wa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=su(n);mL(r,n);var o=mC(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.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=fC(e,n);return l.setAttribute(uC(n),t),l}function hL(e,t){if(e.length!==t.length)return !1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return !1;return !0}var Vh=function(){function e(){bn(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return yn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else {var l,c;i=(l=i)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===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 a=this.keys.reduce(function(c,u){var d=Q(c,2),m=d[1];return o.internalGet(u)[1]<m?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=Q(a,1),s=i[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !hL(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();U(Vh,"MAX_CACHE_SIZE",20);U(Vh,"MAX_CACHE_OFFSET",5);var Mp=0,hC=function(){function e(t){bn(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Mp,t.length===0&&(t.length>0,void 0),Mp+=1;}return yn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),yd=new Vh;function ns(e){var t=Array.isArray(e)?e:[e];return yd.has(t)||yd.set(t,new hC(t)),yd.get(t)}function Jl(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof hC?t+=r.id:r&&dt(r)==="object"?t+=Jl(r):t+=r;}),t}function vL(e,t){return Hh("".concat(t,"_").concat(Jl(e)))}var Fi="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),vC="_bAmBoO_";function gL(e,t,n){if(kn()){var r,o;Wa(e,Fi);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);var i=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(vC);return (o=a.parentNode)===null||o===void 0||o.removeChild(a),Ql(Fi),i}return !1}var Cd=void 0;function pL(){return Cd===void 0&&(Cd=gL("@layer ".concat(Fi," { .").concat(Fi,' { content: "').concat(vC,'"!important; } }'),function(e){e.className=Fi;})),Cd}var bL=Y({},f__namespace),Np=bL.useInsertionEffect,yL=function(t,n,r){f__namespace.useMemo(t,r),qt(function(){return n(!0)},r);},CL=Np?function(e,t,n){return Np(function(){return e(),t()},n)}:yL;const SL=CL;var $L=Y({},f__namespace),wL=$L.useInsertionEffect,xL=function(t){var n=[],r=!1;function o(a){r||n.push(a);}return f__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()});}},t),o},EL=function(){return function(t){t();}},OL=typeof wL<"u"?xL:EL;const IL=OL;function gC(e,t,n,r,o){var a=f__namespace.useContext(Wh),i=a.cache,s=[e].concat(We(t)),l=s.join("_"),c=IL([l]),u=function(v){i.update(s,function(g){var p=g||[],b=Q(p,2),y=b[0],S=y===void 0?0:y,E=b[1],$=E,w=$||n(),C=[S,w];return v?v(C):C});};f__namespace.useMemo(function(){u();},[l]);var d=i.get(s),m=d[1];return SL(function(){o==null||o(m);},function(h){return u(function(v){var g=Q(v,2),p=g[0],b=g[1];return h&&p===0&&(o==null||o(m)),[p+1,b]}),function(){i.update(s,function(v){var g=v||[],p=Q(g,2),b=p[0],y=b===void 0?0:b,S=p[1],E=y-1;return E===0?(c(function(){return r==null?void 0:r(S,!1)}),null):[y-1,S]});}},[l]),m}var PL={},_L="css",zo=new Map;function RL(e){zo.set(e,(zo.get(e)||0)+1);}function TL(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Vf,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ma]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var ML=0;function NL(e,t){zo.set(e,(zo.get(e)||0)-1);var n=Array.from(zo.keys()),r=n.filter(function(o){var a=zo.get(o)||0;return a<=0});n.length-r.length>ML&&r.forEach(function(o){TL(o,t),zo.delete(o);});}var pC=function(t,n,r,o){var a=r.getDerivativeToken(t),i=Y(Y({},a),n);return o&&(i=o(i)),i};function kL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Wh),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,s=n.override,l=s===void 0?PL:s,c=n.formatToken,u=n.getComputedToken,d=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(We(t)))},[t]),m=f__namespace.useMemo(function(){return Jl(d)},[d]),h=f__namespace.useMemo(function(){return Jl(l)},[l]),v=gC("token",[i,e.id,m,h],function(){var g=u?u(d,l,e):pC(d,l,e,c),p=vL(g,i);g._tokenKey=p,RL(p);var b="".concat(_L,"-").concat(Hh(p));return g._hashId=b,[g,b]},function(g){NL(g[0]._tokenKey,o);});return v}var AL={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},kp="data-ant-cssinjs-cache-path",bC="_FILE_STYLE__",qo,yC=!0;function LL(){if(!qo&&(qo={},kn())){var e=document.createElement("div");e.className=kp,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 a=o.split(":"),i=Q(a,2),s=i[0],l=i[1];qo[s]=l;});var n=document.querySelector("style[".concat(kp,"]"));if(n){var r;yC=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function DL(e){return LL(),!!qo[e]}function jL(e){var t=qo[e],n=null;if(t&&kn())if(yC)n=bC;else {var r=document.querySelector("style[".concat(Ko,'="').concat(qo[e],'"]'));r?n=r.innerHTML:delete qo[e];}return [n,t]}var Ap=kn(),zL="_skip_check_",CC="_multi_value_";function Lp(e){var t=Uo(a1(e),i1);return t.replace(/\{%%%\:[^;];}/g,";")}function BL(e){return dt(e)==="object"&&e&&(zL in e||CC in e)}function FL(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.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(We(l.slice(1))).join(" ")});return a.join(",")}var HL=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,a=r.injectHash,i=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 v(S){var E=S.getName(s);if(!h[E]){var $=e(S.style,n,{root:!1,parentSelectors:i}),w=Q($,1),C=w[0];h[E]="@keyframes ".concat(S.getName(s)).concat(C);}}function g(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function($){Array.isArray($)?g($,E):$&&E.push($);}),E}var p=g(Array.isArray(t)?t:[t]);if(p.forEach(function(S){var E=typeof S=="string"&&!o?{}:S;if(typeof E=="string")m+="".concat(E,`
`);else if(E._keyframe)v(E);else {var $=d.reduce(function(w,C){var x;return (C==null||(x=C.visit)===null||x===void 0?void 0:x.call(C,w))||w},E);Object.keys($).forEach(function(w){var C=$[w];if(dt(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!BL(C)){var x=!1,I=w.trim(),_=!1;(o||a)&&s?I.startsWith("@")?x=!0:I=FL(w,s,c):o&&!s&&(I==="&"||I==="")&&(I="",_=!0);var k=e(C,n,{root:_,injectHash:x,parentSelectors:[].concat(We(i),[I])}),O=Q(k,2),P=O[0],R=O[1];h=Y(Y({},h),R),m+="".concat(I).concat(P);}else {let M=function(L,j){var z=L.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),V=j;!AL[L]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),L==="animationName"&&j!==null&&j!==void 0&&j._keyframe&&(v(j),V=j.getName(s)),m+="".concat(z,":").concat(V,";");};var T,N=(T=C==null?void 0:C.value)!==null&&T!==void 0?T:C;dt(C)==="object"&&C!==null&&C!==void 0&&C[CC]&&Array.isArray(N)?N.forEach(function(L){M(w,L);}):M(w,N);}});}}),!o)m="{".concat(m,"}");else if(l&&pL()){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 WL(e,t){return Hh("".concat(e.join("%")).concat(t))}function VL(){return null}function Gf(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f__namespace.useContext(Wh),d=u.autoClear;u.mock;var m=u.defaultCache,h=u.hashPriority,v=u.container,g=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,S=n._tokenKey,E=[S].concat(We(r)),$=Ap,w=gC("style",E,function(){var k=E.join("|");if(DL(k)){var O=jL(k),P=Q(O,2),R=P[0],T=P[1];if(R)return [R,S,T,{},s,c]}var N=t(),M=HL(N,{hashId:o,hashPriority:h,layer:a,path:r.join("-"),transformers:p,linters:b}),L=Q(M,2),j=L[0],z=L[1],V=Lp(j),B=WL(E,V);return [V,S,B,z,s,c]},function(k,O){var P=Q(k,3),R=P[2];(O||d)&&Ap&&Ql(R,{mark:Ko});},function(k){var O=Q(k,4),P=O[0];O[1];var R=O[2],T=O[3];if($&&P!==bC){var N={mark:Ko,prepend:"queue",attachTo:v,priority:c},M=typeof i=="function"?i():i;M&&(N.csp={nonce:M});var L=Wa(P,R,N);L[Ma]=y.instanceId,L.setAttribute(Vf,S),Object.keys(T).forEach(function(j){Wa(Lp(T[j]),"_effect-".concat(j),N);});}}),C=Q(w,3),x=C[0],I=C[1],_=C[2];return function(k){var O;if(!g||$||!m)O=f__namespace.createElement(VL,null);else {var P;O=f__namespace.createElement("style",$e({},(P={},U(P,Vf,I),U(P,Ko,_),P),{dangerouslySetInnerHTML:{__html:x}}));}return f__namespace.createElement(f__namespace.Fragment,null,O,k)}}var wt=function(){function e(t,n){bn(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n;}return yn(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 da(e){return e.notSplit=!0,e}da(["borderTop","borderBottom"]),da(["borderTop"]),da(["borderBottom"]),da(["borderLeft","borderRight"]),da(["borderLeft"]),da(["borderRight"]);var UL=f.createContext({});const Uh=UL;function SC(e){return iC(e)||aC(e)||Bh(e)||sC()}function ec(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function $C(e,t,n,r){if(!t.length)return n;var o=SC(t),a=o[0],i=o.slice(1),s;return !e&&typeof a=="number"?s=[]:Array.isArray(e)?s=We(e):s=Y({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=$C(s[a],i,n,r),s}function Sd(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ec(e,t.slice(0,-1))?e:$C(e,t,n,r)}function GL(e){return dt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Dp(e){return Array.isArray(e)?[]:{}}var KL=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Dp(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=ec(o,i),u=Array.isArray(c);if(u||GL(c)){if(!l.has(c)){l.add(c);var d=ec(r,i);u?r=Sd(r,i,[]):(!d||dt(d)!=="object")&&(r=Sd(r,i,Dp(c))),KL(c).forEach(function(m){a([].concat(We(i),[m]),l);});}}else r=Sd(r,i,c);}a([]);}),r}const qL=f.createContext(void 0),xC={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var XL={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const YL={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},EC=YL,ZL={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},XL),timePickerLocale:Object.assign({},EC)},jp=ZL,Gn="${label} is not a valid ${type}",QL={locale:"en",Pagination:xC,DatePicker:jp,TimePicker:EC,Calendar:jp,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Gn,method:Gn,array:Gn,object:Gn,number:Gn,date:Gn,boolean:Gn,integer:Gn,float:Gn,regexp:Gn,email:Gn,url:Gn,hex:Gn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},ro=QL;Object.assign({},ro.Modal);let Tl=[];const zp=()=>Tl.reduce((e,t)=>Object.assign(Object.assign({},e),t),ro.Modal);function JL(e){if(e){const t=Object.assign({},e);return Tl.push(t),zp(),()=>{Tl=Tl.filter(n=>n!==t),zp();}}Object.assign({},ro.Modal);}const e5=f.createContext(void 0),Gh=e5,t5=(e,t)=>{const n=f__namespace.useContext(Gh),r=f__namespace.useMemo(()=>{var a;const i=t||ro[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=f__namespace.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?ro.locale:a},[n]);return [r,o]},vi=t5,n5="internalMark",r5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>JL(t&&t.Modal),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Gh.Provider,{value:o},n)},o5=r5;function pn(e,t){a5(e)&&(e="100%");var n=i5(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 al(e){return Math.min(1,Math.max(0,e))}function a5(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function i5(e){return typeof e=="string"&&e.indexOf("%")!==-1}function OC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function il(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ho(e){return e.length===1?"0"+e:String(e)}function s5(e,t,n){return {r:pn(e,255)*255,g:pn(t,255)*255,b:pn(n,255)*255}}function Bp(e,t,n){e=pn(e,255),t=pn(t,255),n=pn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else {var l=r-o;switch(i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6;}return {h:a,s:i,l:s}}function $d(e,t,n){return n<0&&(n+=1),n>1&&(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 l5(e,t,n){var r,o,a;if(e=pn(e,360),t=pn(t,100),n=pn(n,100),t===0)o=n,a=n,r=n;else {var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=$d(s,i,e+1/3),o=$d(s,i,e),a=$d(s,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function Kf(e,t,n){e=pn(e,255),t=pn(t,255),n=pn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,l=r===0?0:s/r;if(r===o)a=0;else {switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6;}return {h:a,s:l,v:i}}function c5(e,t,n){e=pn(e,360)*6,t=pn(t,100),n=pn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,i,a,a,s,n][l],u=[s,n,n,i,a,a][l],d=[a,a,s,n,n,i][l];return {r:c*255,g:u*255,b:d*255}}function qf(e,t,n,r){var o=[Ho(Math.round(e).toString(16)),Ho(Math.round(t).toString(16)),Ho(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function u5(e,t,n,r,o){var a=[Ho(Math.round(e).toString(16)),Ho(Math.round(t).toString(16)),Ho(Math.round(n).toString(16)),Ho(d5(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function d5(e){return Math.round(parseFloat(e)*255).toString(16)}function Fp(e){return Yn(e)/255}function Yn(e){return parseInt(e,16)}function f5(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var Xf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ia(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=v5(e)),typeof e=="object"&&(Zr(e.r)&&Zr(e.g)&&Zr(e.b)?(t=s5(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zr(e.h)&&Zr(e.s)&&Zr(e.v)?(r=il(e.s),o=il(e.v),t=c5(e.h,r,o),i=!0,s="hsv"):Zr(e.h)&&Zr(e.s)&&Zr(e.l)&&(r=il(e.s),a=il(e.l),t=l5(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=OC(n),{ok:i,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 m5="[-\\+]?\\d+%?",h5="[-\\+]?\\d*\\.\\d+%?",Eo="(?:".concat(h5,")|(?:").concat(m5,")"),wd="[\\s|\\(]+(".concat(Eo,")[,|\\s]+(").concat(Eo,")[,|\\s]+(").concat(Eo,")\\s*\\)?"),xd="[\\s|\\(]+(".concat(Eo,")[,|\\s]+(").concat(Eo,")[,|\\s]+(").concat(Eo,")[,|\\s]+(").concat(Eo,")\\s*\\)?"),wr={CSS_UNIT:new RegExp(Eo),rgb:new RegExp("rgb"+wd),rgba:new RegExp("rgba"+xd),hsl:new RegExp("hsl"+wd),hsla:new RegExp("hsla"+xd),hsv:new RegExp("hsv"+wd),hsva:new RegExp("hsva"+xd),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 v5(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Xf[e])e=Xf[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=wr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=wr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=wr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=wr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wr.hex8.exec(e),n?{r:Yn(n[1]),g:Yn(n[2]),b:Yn(n[3]),a:Fp(n[4]),format:t?"name":"hex8"}:(n=wr.hex6.exec(e),n?{r:Yn(n[1]),g:Yn(n[2]),b:Yn(n[3]),format:t?"name":"hex"}:(n=wr.hex4.exec(e),n?{r:Yn(n[1]+n[1]),g:Yn(n[2]+n[2]),b:Yn(n[3]+n[3]),a:Fp(n[4]+n[4]),format:t?"name":"hex8"}:(n=wr.hex3.exec(e),n?{r:Yn(n[1]+n[1]),g:Yn(n[2]+n[2]),b:Yn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Zr(e){return !!wr.CSS_UNIT.exec(String(e))}var Xt=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=f5(t)),this.originalInput=t;var o=Ia(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,a=t.r/255,i=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.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=OC(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=Kf(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=Kf(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=Bp(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=Bp(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),qf(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),u5(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(pn(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(pn(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="#"+qf(this.r,this.g,this.b,!1),n=0,r=Object.entries(Xf);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?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=al(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=al(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=al(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=al(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(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),sl=2,Hp=.16,g5=.05,p5=.05,b5=.15,IC=5,PC=4,y5=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Wp(e){var t=e.r,n=e.g,r=e.b,o=Kf(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function ll(e){var t=e.r,n=e.g,r=e.b;return "#".concat(qf(t,n,r,!1))}function C5(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Vp(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-sl*t:Math.round(e.h)+sl*t:r=n?Math.round(e.h)+sl*t:Math.round(e.h)-sl*t,r<0?r+=360:r>=360&&(r-=360),r}function Up(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Hp*t:t===PC?r=e.s+Hp:r=e.s+g5*t,r>1&&(r=1),n&&t===IC&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Gp(e,t,n){var r;return n?r=e.v+p5*t:r=e.v-b5*t,r>1&&(r=1),Number(r.toFixed(2))}function oo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ia(e),o=IC;o>0;o-=1){var a=Wp(r),i=ll(Ia({h:Vp(a,o,!0),s:Up(a,o,!0),v:Gp(a,o,!0)}));n.push(i);}n.push(ll(r));for(var s=1;s<=PC;s+=1){var l=Wp(r),c=ll(Ia({h:Vp(l,s),s:Up(l,s),v:Gp(l,s)}));n.push(c);}return t.theme==="dark"?y5.map(function(u){var d=u.index,m=u.opacity,h=ll(C5(Ia(t.backgroundColor||"#141414"),Ia(n[d]),m*100));return h}):n}var Ed={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"},Ml={},Od={};Object.keys(Ed).forEach(function(e){Ml[e]=oo(Ed[e]),Ml[e].primary=Ml[e][5],Od[e]=oo(Ed[e],{theme:"dark",backgroundColor:"#141414"}),Od[e].primary=Od[e][5];});var S5=Ml.blue;const $5=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},_C=$5;function w5(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 Kh={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"},x5=Object.assign(Object.assign({},Kh),{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}),Is=x5;function RC(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),m=n(o),h=n(a),v=n(i),g=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:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Xt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const E5=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}},O5=E5;function I5(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},O5(r))}const Qr=(e,t)=>new Xt(e).setAlpha(t).toRgbString(),Oi=(e,t)=>new Xt(e).darken(t).toHexString(),P5=e=>{const t=oo(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]}},_5=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:Qr(r,.88),colorTextSecondary:Qr(r,.65),colorTextTertiary:Qr(r,.45),colorTextQuaternary:Qr(r,.25),colorFill:Qr(r,.15),colorFillSecondary:Qr(r,.06),colorFillTertiary:Qr(r,.04),colorFillQuaternary:Qr(r,.02),colorBgLayout:Oi(n,4),colorBgContainer:Oi(n,0),colorBgElevated:Oi(n,0),colorBgSpotlight:Qr(r,.85),colorBorder:Oi(n,15),colorBorderSecondary:Oi(n,6)}};function R5(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const T5=e=>{const t=R5(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]}},TC=T5;function Ps(e){const t=Object.keys(Kh).map(n=>{const r=oo(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],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),RC(e,{generateColorPalettes:P5,generateNeutralColorPalettes:_5})),TC(e.fontSize)),w5(e)),_C(e)),I5(e))}const MC=ns(Ps),tc={token:Is,hashed:!0},NC=f.createContext(tc),rs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],M5="5.9.2";function Id(e){return e>=0&&e<=255}function cl(e,t){const{r:n,g:r,b:o,a}=new Xt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Xt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Id(u)&&Id(d)&&Id(m))return new Xt({r:u,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Xt({r:n,g:r,b:o,a:1}).toRgbString()}var N5=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function qh(e){const{override:t}=e,n=N5(e,["override"]),r=Object.assign({},t);Object.keys(Is).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),a=480,i=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:cl(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:cl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:cl(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:cl(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:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,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 Xt("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new Xt("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new Xt("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 Kp=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kC=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Kp(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=qh(i),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Kp(c,["theme"]);let m=d;u&&(m=kC(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=m;}),i};function nr(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(NC),o=`${M5}-${t||""}`,a=n||MC,[i,s]=kL(a,[Is,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:kC,formatToken:qh});return [a,i,t?s:""]}function Xh(e,t){typeof e=="function"?e(t):dt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(a){Xh(a,o);});}}function _s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Os(function(){return Rn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function No(e){var t,n,r=Qc.isMemo(e)?e.type.type:e.type;return !(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function k5(e){return !f.isValidElement(e)||Qc.isFragment(e)?!1:No(e)}const AC="anticon",A5=(e,t)=>t||(e?`ant-${e}`:"ant"),Ye=f__namespace.createContext({getPrefixCls:A5,iconPrefixCls:AC}),L5=(e,t,n,r,o)=>{const a=e/2,i=0,s=a,l=n*1/Math.sqrt(2),c=a-n*(1-1/Math.sqrt(2)),u=a-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*a-u,h=d,v=2*a-l,g=c,p=2*a-i,b=s,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=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(${S}px 100%, 50% ${S}px, ${2*a-S}px 100%, ${S}px 100%)`,`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${m} ${h} L ${v} ${g} 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"}}},Zo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Tt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),oa=()=>({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"}}),Yf=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),D5=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"}}}),j5=(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"}}}}},Qo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Jo=e=>({"&:focus-visible":Object.assign({},Qo(e))}),LC=typeof CSSINJS_STATISTIC<"u";let Zf=!0;function ut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!LC)return Object.assign.apply(Object,[{}].concat(t));Zf=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),Zf=!0,r}const qp={};function z5(){}function B5(e){let t,n=e,r=z5;return LC&&(t=new Set,n=new Proxy(e,{get(o,a){return Zf&&t.add(a),o[a]}}),r=(o,a)=>{var i;qp[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=qp[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}}const F5=(e,t)=>{const[n,r]=nr();return Gf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},oa()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},DC=F5;function At(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return s=>{const[l,c,u]=nr(),{getPrefixCls:d,iconPrefixCls:m,csp:h}=f.useContext(Ye),v=d(),g={theme:l,token:c,hashId:u,nonce:()=>h==null?void 0:h.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Gf(Object.assign(Object.assign({},g),{clientOnly:!1,path:["Shared",v]}),()=>[{"&":D5(c)}]),DC(m),[Gf(Object.assign(Object.assign({},g),{path:[i,s,m]}),()=>{const{token:p,flush:b}=B5(c),y=Object.assign({},c[a]);if(r.deprecatedTokens){const{deprecatedTokens:x}=r;x.forEach(I=>{let[_,k]=I;var O;(y!=null&&y[_]||y!=null&&y[k])&&((O=y[k])!==null&&O!==void 0||(y[k]=y==null?void 0:y[_]));});}const S=typeof n=="function"?n(ut(p,y??{})):n,E=Object.assign(Object.assign({},S),y),$=`.${s}`,w=ut(p,{componentCls:$,prefixCls:s,iconCls:`.${m}`,antCls:`.${v}`},E),C=t(w,{hashId:u,prefixCls:s,rootPrefixCls:v,iconPrefixCls:m,overrideComponentToken:y});return b(a,E),[r.resetStyle===!1?null:j5(c,s),C]}),u]}}const Yh=(e,t,n,r)=>{const o=At(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:s}=i;return o(s),null}};function lu(e,t){return rs.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const H5=`-ant-${Date.now()}-${Math.random()}`;function W5(e,t){const n={},r=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new Xt(i),c=oo(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 i=new Xt(t.primaryColor),s=oo(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const l=new Xt(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(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
}
`.trim()}function V5(e,t){const n=W5(e,t);kn()&&Wa(n,`${H5}-dynamic-theme`);}const Qf=f__namespace.createContext(!1),U5=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(Qf);return f__namespace.createElement(Qf.Provider,{value:n??r},t)},Xr=Qf,Jf=f__namespace.createContext(void 0),G5=e=>{let{children:t,size:n}=e;const r=f__namespace.useContext(Jf);return f__namespace.createElement(Jf.Provider,{value:n||r},t)},cu=Jf;function K5(){const e=f.useContext(Xr),t=f.useContext(cu);return {componentDisabled:e,componentSize:t}}function q5(e,t){const n=e||{},r=n.inherit===!1||!t?tc:t;return Os(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,s)=>{const l=a[s];return !Es(i,l,!0)}))}function nc(e){return e instanceof HTMLElement||e instanceof SVGElement}function rc(e){return nc(e)?e:e instanceof f.Component?qy.findDOMNode(e):null}var X5=["children"],jC=f__namespace.createContext({});function Y5(e){var t=e.children,n=Je(e,X5);return f__namespace.createElement(jC.Provider,{value:n},t)}function em(e,t){return em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},em(e,t)}function co(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&em(e,t);}function oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oc(e)}function Z5(){if(typeof Reflect>"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 xt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q5(e,t){if(t&&(dt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xt(e)}function uo(e){var t=Z5();return function(){var r=oc(e),o;if(t){var a=oc(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return Q5(this,o)}}var J5=function(e){co(n,e);var t=uo(n);function n(){return bn(this,n),t.apply(this,arguments)}return yn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),Do="none",ul="appear",dl="enter",fl="leave",Xp="none",Or="prepare",Na="start",ka="active",Zh="end",zC="prepared";function Yp(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 eD(e,t){var n={animationend:Yp("Animation","AnimationEnd"),transitionend:Yp("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var tD=eD(kn(),typeof window<"u"?window:{}),BC={};if(kn()){var nD=document.createElement("div");BC=nD.style;}var ml={};function FC(e){if(ml[e])return ml[e];var t=tD[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in BC)return ml[e]=t[a],ml[e]}return ""}var HC=FC("animationend"),WC=FC("transitionend"),VC=!!(HC&&WC),Zp=HC||"animationend",Qp=WC||"transitionend";function Jp(e,t){if(!e)return null;if(dt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const rD=function(e){var t=f.useRef(),n=f.useRef(e);n.current=e;var r=f__namespace.useCallback(function(i){n.current(i);},[]);function o(i){i&&(i.removeEventListener(Qp,r),i.removeEventListener(Zp,r));}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(Qp,r),i.addEventListener(Zp,r),t.current=i);}return f__namespace.useEffect(function(){return function(){o(t.current);}},[]),[a,o]};var UC=kn()?f.useLayoutEffect:f.useEffect,GC=function(t){return +setTimeout(t,16)},KC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(GC=function(t){return window.requestAnimationFrame(t)},KC=function(t){return window.cancelAnimationFrame(t)});var eb=0,Qh=new Map;function qC(e){Qh.delete(e);}var St=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;eb+=1;var r=eb;function o(a){if(a===0)qC(r),t();else {var i=GC(function(){o(a-1);});Qh.set(r,i);}}return o(n),r};St.cancel=function(e){var t=Qh.get(e);return qC(t),KC(t)};const oD=function(){var e=f__namespace.useRef(null);function t(){St.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=St(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1);});e.current=a;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var aD=[Or,Na,ka,Zh],iD=[Or,zC],XC=!1,sD=!0;function YC(e){return e===ka||e===Zh}const lD=function(e,t,n){var r=Go(Xp),o=Q(r,2),a=o[0],i=o[1],s=oD(),l=Q(s,2),c=l[0],u=l[1];function d(){i(Or,!0);}var m=t?iD:aD;return UC(function(){if(a!==Xp&&a!==Zh){var h=m.indexOf(a),v=m[h+1],g=n(a);g===XC?i(v,!0):v&&c(function(p){function b(){p.isCanceled()||i(v,!0);}g===!0?b():Promise.resolve(g).then(b);});}},[e,a]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function cD(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,v=r.onLeavePrepare,g=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,E=r.onLeaveActive,$=r.onAppearEnd,w=r.onEnterEnd,C=r.onLeaveEnd,x=r.onVisibleChanged,I=Go(),_=Q(I,2),k=_[0],O=_[1],P=Go(Do),R=Q(P,2),T=R[0],N=R[1],M=Go(null),L=Q(M,2),j=L[0],z=L[1],V=f.useRef(!1),B=f.useRef(null);function W(){return n()}var F=f.useRef(!1);function X(){N(Do,!0),z(null,!0);}function q(de){var he=W();if(!(de&&!de.deadline&&de.target!==he)){var fe=F.current,Pe;T===ul&&fe?Pe=$==null?void 0:$(he,de):T===dl&&fe?Pe=w==null?void 0:w(he,de):T===fl&&fe&&(Pe=C==null?void 0:C(he,de)),T!==Do&&fe&&Pe!==!1&&X();}}var K=rD(q),G=Q(K,1),J=G[0],oe=function(he){var fe,Pe,je;switch(he){case ul:return fe={},U(fe,Or,m),U(fe,Na,g),U(fe,ka,y),fe;case dl:return Pe={},U(Pe,Or,h),U(Pe,Na,p),U(Pe,ka,S),Pe;case fl:return je={},U(je,Or,v),U(je,Na,b),U(je,ka,E),je;default:return {}}},ue=f__namespace.useMemo(function(){return oe(T)},[T]),me=lD(T,!e,function(de){if(de===Or){var he=ue[Or];return he?he(W()):XC}if(ce in ue){var fe;z(((fe=ue[ce])===null||fe===void 0?void 0:fe.call(ue,W(),null))||null);}return ce===ka&&(J(W()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){q({deadline:!0});},u))),ce===zC&&X(),sD}),te=Q(me,2),ae=te[0],ce=te[1],Z=YC(ce);F.current=Z,UC(function(){O(t);var de=V.current;V.current=!0;var he;!de&&t&&s&&(he=ul),de&&t&&a&&(he=dl),(de&&!t&&c||!de&&d&&!t&&c)&&(he=fl);var fe=oe(he);he&&(e||fe[Or])?(N(he),ae()):N(Do);},[t]),f.useEffect(function(){(T===ul&&!s||T===dl&&!a||T===fl&&!c)&&N(Do);},[s,a,c]),f.useEffect(function(){return function(){V.current=!1,clearTimeout(B.current);}},[]);var ne=f__namespace.useRef(!1);f.useEffect(function(){k&&(ne.current=!0),k!==void 0&&T===Do&&((ne.current||k)&&(x==null||x(k)),ne.current=!0);},[k,T]);var ee=j;return ue[Or]&&ce===Na&&(ee=Y({transition:"none"},ee)),[T,ce,ee,k??t]}function uD(e){var t=e;dt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return !!(o.motionName&&t&&a!==!1)}var r=f__namespace.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,m=o.motionName,h=o.leavedClassName,v=o.eventProps,g=f__namespace.useContext(jC),p=g.motion,b=n(o,p),y=f.useRef(),S=f.useRef();function E(){try{return y.current instanceof HTMLElement?y.current:rc(S.current)}catch{return null}}var $=cD(b,s,E,o),w=Q($,4),C=w[0],x=w[1],I=w[2],_=w[3],k=f__namespace.useRef(_);_&&(k.current=!0);var O=f__namespace.useCallback(function(z){y.current=z,Xh(a,z);},[a]),P,R=Y(Y({},v),{},{visible:s});if(!d)P=null;else if(C===Do)_?P=d(Y({},R),O):!c&&k.current&&h?P=d(Y(Y({},R),{},{className:h}),O):u||!c&&!h?P=d(Y(Y({},R),{},{style:{display:"none"}}),O):P=null;else {var T,N;x===Or?N="prepare":YC(x)?N="active":x===Na&&(N="start");var M=Jp(m,"".concat(C,"-").concat(N));P=d(Y(Y({},R),{},{className:H(Jp(m,C),(T={},U(T,M,M&&N),U(T,m,typeof m=="string"),T)),style:I}),O);}if(f__namespace.isValidElement(P)&&No(P)){var L=P,j=L.ref;j||(P=f__namespace.cloneElement(P,{ref:O}));}return f__namespace.createElement(J5,{ref:S},P)});return r.displayName="CSSMotion",r}const fo=uD(VC);var tm="add",nm="keep",rm="remove",Pd="removed";function dD(e){var t;return e&&dt(e)==="object"&&"key"in e?t=e:t={key:e},Y(Y({},t),{},{key:String(t.key)})}function om(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dD)}function fD(){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,a=om(e),i=om(t);a.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var m=i[d];if(m.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(function(h){return Y(Y({},h),{},{status:tm})})),r=d),n.push(Y(Y({},m),{},{status:nm})),r+=1,u=!0;break}}u||n.push(Y(Y({},c),{},{status:rm}));}),r<o&&(n=n.concat(i.slice(r).map(function(c){return Y(Y({},c),{},{status:tm})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,m=u.status;return d!==c||m!==rm}),n.forEach(function(u){u.key===c&&(u.status=nm);});}),n}var mD=["component","children","onVisibleChanged","onAllRemoved"],hD=["status"],vD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fo,n=function(r){co(a,r);var o=uo(a);function a(){var i;bn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),U(xt(i),"state",{keyEntities:[]}),U(xt(i),"removeKey",function(u){var d=i.state.keyEntities,m=d.map(function(h){return h.key!==u?h:Y(Y({},h),{},{status:Pd})});return i.setState({keyEntities:m}),m.filter(function(h){var v=h.status;return v!==Pd}).length}),i}return yn(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,m=c.onVisibleChanged,h=c.onAllRemoved,v=Je(c,mD),g=u||f__namespace.Fragment,p={};return vD.forEach(function(b){p[b]=v[b],delete v[b];}),delete v.keys,f__namespace.createElement(g,v,l.map(function(b,y){var S=b.status,E=Je(b,hD),$=S===tm||S===nm;return f__namespace.createElement(t,$e({},p,{key:E.key,visible:$,eventProps:E,onVisibleChanged:function(C){if(m==null||m(C,{key:E.key}),!C){var x=s.removeKey(E.key);x===0&&h&&h();}}}),function(w,C){return d(Y(Y({},w),{},{index:y}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=om(c),m=fD(u,d);return {keyEntities:m.filter(function(h){var v=u.find(function(g){var p=g.key;return h.key===p});return !(v&&v.status===Pd&&h.status===rm)})}}}]),a}(f__namespace.Component);return U(n,"defaultProps",{component:"div"}),n}gD(VC);function pD(e){const{children:t}=e,[,n]=nr(),{motion:r}=n,o=f__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?f__namespace.createElement(Y5,{motion:r},t):t}const bD=()=>null;var yD=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CD=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],SD="ant";let ZC;function $D(){return ZC||SD}function wD(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const xD=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(ZC=t),r&&wD(r)&&V5($D(),r);},ED=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:g,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:S,segmented:E,statistic:$,spin:w,calendar:C,carousel:x,cascader:I,collapse:_,typography:k,checkbox:O,descriptions:P,divider:R,drawer:T,skeleton:N,steps:M,image:L,layout:j,list:z,mentions:V,modal:B,progress:W,result:F,slider:X,breadcrumb:q,menu:K,pagination:G,input:J,empty:oe,badge:ue,radio:me,rate:te,switch:ae,transfer:ce,avatar:Z,message:ne,tag:ee,table:de,card:he,tabs:fe,timeline:Pe,timePicker:je,upload:Ae,notification:be,tree:Ce,colorPicker:Ne,datePicker:Ve,wave:Ue}=e,Fe=f__namespace.useCallback((re,ve)=>{const{prefixCls:pe}=e;if(ve)return ve;const ye=pe||p.getPrefixCls("");return re?`${ye}-${re}`:ye},[p.getPrefixCls,e.prefixCls]),Le=b||p.iconPrefixCls||AC,at=n||p.csp;DC(Le,at);const st=q5(y,p.theme),_e={csp:at,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??m,popupOverflow:v,getPrefixCls:Fe,iconPrefixCls:Le,theme:st,segmented:E,statistic:$,spin:w,calendar:C,carousel:x,cascader:I,collapse:_,typography:k,checkbox:O,descriptions:P,divider:R,drawer:T,skeleton:N,steps:M,image:L,input:J,layout:j,list:z,mentions:V,modal:B,progress:W,result:F,slider:X,breadcrumb:q,menu:K,pagination:G,empty:oe,badge:ue,radio:me,rate:te,switch:ae,transfer:ce,avatar:Z,message:ne,tag:ee,table:de,card:he,tabs:fe,timeline:Pe,timePicker:je,upload:Ae,notification:be,tree:Ce,colorPicker:Ne,datePicker:Ve,wave:Ue},Oe=Object.assign({},p);Object.keys(_e).forEach(re=>{_e[re]!==void 0&&(Oe[re]=_e[re]);}),CD.forEach(re=>{const ve=e[re];ve&&(Oe[re]=ve);});const De=Os(()=>Oe,Oe,(re,ve)=>{const pe=Object.keys(re),ye=Object.keys(ve);return pe.length!==ye.length||pe.some(qe=>re[qe]!==ve[qe])}),yt=f__namespace.useMemo(()=>({prefixCls:Le,csp:at}),[Le,at]);let Me=f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(bD,{dropdownMatchSelectWidth:m}),t);const gt=f__namespace.useMemo(()=>{var re,ve,pe,ye;return wC(((re=ro.Form)===null||re===void 0?void 0:re.defaultValidateMessages)||{},((pe=(ve=De.locale)===null||ve===void 0?void 0:ve.Form)===null||pe===void 0?void 0:pe.defaultValidateMessages)||{},((ye=De.form)===null||ye===void 0?void 0:ye.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[De,i==null?void 0:i.validateMessages]);Object.keys(gt).length>0&&(Me=f__namespace.createElement(qL.Provider,{value:gt},Me)),s&&(Me=f__namespace.createElement(o5,{locale:s,_ANT_MARK__:n5},Me)),(Le||at)&&(Me=f__namespace.createElement(Uh.Provider,{value:yt},Me)),l&&(Me=f__namespace.createElement(G5,{size:l},Me)),Me=f__namespace.createElement(pD,null,Me);const Re=f__namespace.useMemo(()=>{const re=st||{},{algorithm:ve,token:pe,components:ye}=re,qe=yD(re,["algorithm","token","components"]),Ie=ve&&(!Array.isArray(ve)||ve.length>0)?ns(ve):MC,Se={};return Object.entries(ye||{}).forEach(se=>{let[xe,we]=se;const Ee=Object.assign({},we);"algorithm"in Ee&&(Ee.algorithm===!0?Ee.theme=Ie:(Array.isArray(Ee.algorithm)||typeof Ee.algorithm=="function")&&(Ee.theme=ns(Ee.algorithm)),delete Ee.algorithm),Se[xe]=Ee;}),Object.assign(Object.assign({},qe),{theme:Ie,token:Object.assign(Object.assign({},Is),pe),components:Se})},[st]);return y&&(Me=f__namespace.createElement(NC.Provider,{value:Re},Me)),S!==void 0&&(Me=f__namespace.createElement(U5,{disabled:S},Me)),f__namespace.createElement(Ye.Provider,{value:De},Me)},gi=e=>{const t=f__namespace.useContext(Ye),n=f__namespace.useContext(Gh);return f__namespace.createElement(ED,Object.assign({parentContext:t,legacyLocale:n},e))};gi.ConfigContext=Ye;gi.SizeContext=cu;gi.config=xD;gi.useConfig=K5;Object.defineProperty(gi,"SizeContext",{get:()=>cu});const Jh=gi;var QC=f__namespace.createContext(null),tb=[];function OD(e,t){var n=f__namespace.useState(function(){if(!kn())return null;var v=document.createElement("div");return v}),r=Q(n,1),o=r[0],a=f__namespace.useRef(!1),i=f__namespace.useContext(QC),s=f__namespace.useState(tb),l=Q(s,2),c=l[0],u=l[1],d=i||(a.current?void 0:function(v){u(function(g){var p=[v].concat(We(g));return p});});function m(){o.parentElement||document.body.appendChild(o),a.current=!0;}function h(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),a.current=!1;}return qt(function(){return e?i?i(m):m():h(),h},[e]),qt(function(){c.length&&(c.forEach(function(v){return v()}),u(tb));},[c]),[o,d]}var _d;function ID(e){if(typeof document>"u")return 0;if(e||_d===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 a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),_d=o-a;}return _d}function PD(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _D="rc-util-locker-".concat(Date.now()),nb=0;function RD(e){var t=!!e,n=f__namespace.useState(function(){return nb+=1,"".concat(_D,"_").concat(nb)}),r=Q(n,1),o=r[0];qt(function(){if(t){var a=ID(),i=PD();Wa(`
html body {
overflow-y: hidden;
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o);}else Ql(o);return function(){Ql(o);}},[t,o]);}var rb=!1;function TD(e){return typeof e=="boolean"&&(rb=e),rb}var ob=function(t){return t===!1?!1:!kn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},JC=f__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=f__namespace.useState(n),c=Q(l,2),u=c[0],d=c[1],m=u||n;f__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var h=f__namespace.useState(function(){return ob(o)}),v=Q(h,2),g=v[0],p=v[1];f__namespace.useEffect(function(){var k=ob(o);p(k??null);});var b=OD(m&&!g),y=Q(b,2),S=y[0],E=y[1],$=g??S;RD(r&&n&&kn()&&($===S||$===document.body));var w=null;if(s&&No(s)&&t){var C=s;w=C.ref;}var x=_s(w,t);if(!m||!kn()||g===void 0)return null;var I=$===!1||TD(),_=s;return t&&(_=f__namespace.cloneElement(s,{ref:x})),f__namespace.createElement(QC.Provider,{value:E},I?_:qy.createPortal(_,$))});function er(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(er(r)):Qc.isFragment(r)&&r.props?n=n.concat(er(r.props.children,t)):n.push(r));}),n}var eS=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!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,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0]);}},t}()}(),am=typeof window<"u"&&typeof document<"u"&&window.document===document,ac=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),MD=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ac):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),ND=2;function kD(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s();}function i(){MD(a);}function s(){var l=Date.now();if(n){if(l-o<ND)return;r=!0;}else n=!0,r=!1,setTimeout(i,t);o=l;}return s}var AD=20,LD=["top","right","bottom","left","width","height","size","weight"],DD=typeof MutationObserver<"u",jD=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=kD(this.refresh.bind(this),AD);}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_();},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh();},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!am||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),DD?(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(){!am||!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=LD.some(function(a){return !!~r.indexOf(a)});o&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),tS=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});}return e},Va=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ac},nS=uu(0,0,0,0);function ic(e){return parseFloat(e)||0}function ab(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+ic(a)},0)}function zD(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=ic(i);}return n}function BD(e){var t=e.getBBox();return uu(0,0,t.width,t.height)}function FD(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return nS;var r=Va(e).getComputedStyle(e),o=zD(r),a=o.left+o.right,i=o.top+o.bottom,s=ic(r.width),l=ic(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=ab(r,"left","right")+a),Math.round(l+i)!==n&&(l-=ab(r,"top","bottom")+i)),!WD(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u);}return uu(o.left,o.top,s,l)}var HD=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Va(e).SVGGraphicsElement}:function(e){return e instanceof Va(e).SVGElement&&typeof e.getBBox=="function"}}();function WD(e){return e===Va(e).document.documentElement}function VD(e){return am?HD(e)?BD(e):FD(e):nS}function UD(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return tS(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function uu(e,t,n,r){return {x:e,y:t,width:n,height:r}}var GD=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=uu(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=VD(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),KD=function(){function e(t,n){var r=UD(n);tS(this,{target:t,contentRect:r});}return e}(),qD=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new eS,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r;}return e.prototype.observe=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 Va(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new GD(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 Va(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 KD(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}(),rS=typeof WeakMap<"u"?new WeakMap:new eS,oS=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=jD.getInstance(),r=new qD(t,n,this);rS.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){oS.prototype[e]=function(){var t;return (t=rS.get(this))[e].apply(t,arguments)};});var XD=function(){return typeof ac.ResizeObserver<"u"?ac.ResizeObserver:oS}(),Oo=new Map;function YD(e){e.forEach(function(t){var n,r=t.target;(n=Oo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var aS=new XD(YD);function ZD(e,t){Oo.has(e)||(Oo.set(e,new Set),aS.observe(e)),Oo.get(e).add(t);}function QD(e,t){Oo.has(e)&&(Oo.get(e).delete(t),Oo.get(e).size||(aS.unobserve(e),Oo.delete(e)));}var JD=function(e){co(n,e);var t=uo(n);function n(){return bn(this,n),t.apply(this,arguments)}return yn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),im=f__namespace.createContext(null);function ej(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),a=f__namespace.useContext(im),i=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=[]);}),a==null||a(s,l,c);},[n,a]);return f__namespace.createElement(im.Provider,{value:i},t)}function tj(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),a=f__namespace.useRef(null),i=f__namespace.useContext(im),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)&&No(l),d=u?l.ref:null,m=f__namespace.useMemo(function(){return Rn(d,o)},[d,o]),h=function(){return rc(o.current)||rc(a.current)};f__namespace.useImperativeHandle(t,function(){return h()});var v=f__namespace.useRef(e);v.current=e;var g=f__namespace.useCallback(function(p){var b=v.current,y=b.onResize,S=b.data,E=p.getBoundingClientRect(),$=E.width,w=E.height,C=p.offsetWidth,x=p.offsetHeight,I=Math.floor($),_=Math.floor(w);if(c.current.width!==I||c.current.height!==_||c.current.offsetWidth!==C||c.current.offsetHeight!==x){var k={width:I,height:_,offsetWidth:C,offsetHeight:x};c.current=k;var O=C===Math.round($)?$:C,P=x===Math.round(w)?w:x,R=Y(Y({},k),{},{offsetWidth:O,offsetHeight:P});i==null||i(R,p,S),y&&Promise.resolve().then(function(){y(R,p);});}},[]);return f__namespace.useEffect(function(){var p=h();return p&&!r&&ZD(p,g),function(){return QD(p,g)}},[o.current,r]),f__namespace.createElement(JD,{ref:a},u?f__namespace.cloneElement(l,{ref:m}):l)}var nj=f__namespace.forwardRef(tj),rj="rc-observer-key";function oj(e,t){var n=e.children,r=typeof n=="function"?[n]:er(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(rj,"-").concat(a);return f__namespace.createElement(nj,$e({},e,{key:i,ref:a===0?t:void 0}),o)})}var _r=f__namespace.forwardRef(oj);_r.Collection=ej;function iS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function aj(e){return iS(e)instanceof ShadowRoot}function sc(e){return aj(e)?iS(e):null}function ij(){var e=Y({},f__namespace);return e.useId}var ib=0;function sj(e){var t=f__namespace.useState("ssr-id"),n=Q(t,2),r=n[0],o=n[1],a=ij(),i=a==null?void 0:a();return f__namespace.useEffect(function(){if(!a){var s=ib;ib+=1,o("rc_unique_".concat(s));}},[]),e||i||r}const du=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 sb=f__namespace.createContext(null);function lb(e){return e?Array.isArray(e)?e:[e]:[]}function lj(e,t,n,r){return f__namespace.useMemo(function(){var o=lb(n??t),a=lb(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}const ev=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return !0}}return !1};function cj(){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 uj(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(cj((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function cb(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Rs(e){return e.ownerDocument.defaultView}function sm(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Rs(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement;}return t}function os(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ii(e){return os(parseFloat(e),0)}function ub(e,t){var n=Y({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Rs(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,v=r.offsetWidth,g=r.clientWidth,p=Ii(s),b=Ii(l),y=Ii(c),S=Ii(u),E=os(Math.round(d.width/v*1e3)/1e3),$=os(Math.round(d.height/m*1e3)/1e3),w=(v-g-y-S)*E,C=(m-h-p-b)*$,x=p*$,I=b*$,_=y*E,k=S*E,O=0,P=0;if(a==="clip"){var R=Ii(i);O=R*E,P=R*$;}var T=d.x+_-O,N=d.y+x-P,M=T+d.width+2*O-_-k-w,L=N+d.height+2*P-x-I-C;n.left=Math.max(n.left,T),n.top=Math.max(n.top,N),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,L);}}),n}function db(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 fb(e,t){var n=t||[],r=Q(n,2),o=r[0],a=r[1];return [db(e.width,o),db(e.height,a)]}function mb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function fa(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=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:a}}function po(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 dj(e,t,n,r,o,a,i){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=Q(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?sm(t):[]},[t]),h=f__namespace.useRef({}),v=function(){h.current={};};e||v();var g=zn(function(){if(t&&n&&e){let lr=function(el,Ao){var go=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de,wi=j.x+el,ua=j.y+Ao,tl=wi+G,sd=ua+K,ld=Math.max(wi,go.left),cd=Math.max(ua,go.top),ud=Math.min(tl,go.right),Be=Math.min(sd,go.bottom);return Math.max(0,(ud-ld)*(Be-cd))},Yr=function(){He=j.y+ye,Xe=He+K,Ge=j.x+pe,Ke=Ge+G;};var y,S,E=t,$=E.ownerDocument,w=Rs(E),C=w.getComputedStyle(E),x=C.width,I=C.height,_=C.position,k=E.style.left,O=E.style.top,P=E.style.right,R=E.style.bottom,T=Y(Y({},o[r]),a),N=$.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=_,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 M;if(Array.isArray(n))M={x:n[0],y:n[1],width:0,height:0};else {var L=n.getBoundingClientRect();M={x:L.x,y:L.y,width:L.width,height:L.height};}var j=E.getBoundingClientRect(),z=$.documentElement,V=z.clientWidth,B=z.clientHeight,W=z.scrollWidth,F=z.scrollHeight,X=z.scrollTop,q=z.scrollLeft,K=j.height,G=j.width,J=M.height,oe=M.width,ue={left:0,top:0,right:V,bottom:B},me={left:-q,top:-X,right:W-q,bottom:F-X},te=T.htmlRegion,ae="visible",ce="visibleFirst";te!=="scroll"&&te!==ce&&(te=ae);var Z=te===ce,ne=ub(me,m),ee=ub(ue,m),de=te===ae?ee:ne,he=Z?ee:de;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var fe=E.getBoundingClientRect();E.style.left=k,E.style.top=O,E.style.right=P,E.style.bottom=R,(S=E.parentElement)===null||S===void 0||S.removeChild(N);var Pe=os(Math.round(G/parseFloat(x)*1e3)/1e3),je=os(Math.round(K/parseFloat(I)*1e3)/1e3);if(Pe===0||je===0||nc(n)&&!ev(n))return;var Ae=T.offset,be=T.targetOffset,Ce=fb(j,Ae),Ne=Q(Ce,2),Ve=Ne[0],Ue=Ne[1],Fe=fb(M,be),Le=Q(Fe,2),at=Le[0],st=Le[1];M.x-=at,M.y-=st;var _e=T.points||[],Oe=Q(_e,2),De=Oe[0],yt=Oe[1],Me=mb(yt),gt=mb(De),Re=fa(M,Me),re=fa(j,gt),ve=Y({},T),pe=Re.x-re.x+Ve,ye=Re.y-re.y+Ue,qe=lr(pe,ye),Ie=lr(pe,ye,ee),Se=fa(M,["t","l"]),se=fa(j,["t","l"]),xe=fa(M,["b","r"]),we=fa(j,["b","r"]),Ee=T.overflow||{},pt=Ee.adjustX,ht=Ee.adjustY,Lt=Ee.shiftX,Dt=Ee.shiftY,Gt=function(Ao){return typeof Ao=="boolean"?Ao:Ao>=0},He,Xe,Ge,Ke;Yr();var ke=Gt(ht),ft=gt[0]===Me[0];if(ke&>[0]==="t"&&(Xe>he.bottom||h.current.bt)){var it=ye;ft?it-=K-J:it=Se.y-we.y-Ue;var jt=lr(pe,it),vt=lr(pe,it,ee);jt>qe||jt===qe&&(!Z||vt>=Ie)?(h.current.bt=!0,ye=it,Ue=-Ue,ve.points=[po(gt,0),po(Me,0)]):h.current.bt=!1;}if(ke&>[0]==="b"&&(He<he.top||h.current.tb)){var Sn=ye;ft?Sn+=K-J:Sn=xe.y-se.y-Ue;var br=lr(pe,Sn),Ln=lr(pe,Sn,ee);br>qe||br===qe&&(!Z||Ln>=Ie)?(h.current.tb=!0,ye=Sn,Ue=-Ue,ve.points=[po(gt,0),po(Me,0)]):h.current.tb=!1;}var Dn=Gt(pt),kr=gt[1]===Me[1];if(Dn&>[1]==="l"&&(Ke>he.right||h.current.rl)){var rr=pe;kr?rr-=G-oe:rr=Se.x-we.x-Ve;var ho=lr(rr,ye),vo=lr(rr,ye,ee);ho>qe||ho===qe&&(!Z||vo>=Ie)?(h.current.rl=!0,pe=rr,Ve=-Ve,ve.points=[po(gt,1),po(Me,1)]):h.current.rl=!1;}if(Dn&>[1]==="r"&&(Ge<he.left||h.current.lr)){var Vn=pe;kr?Vn+=G-oe:Vn=xe.x-se.x-Ve;var jn=lr(Vn,ye),Ar=lr(Vn,ye,ee);jn>qe||jn===qe&&(!Z||Ar>=Ie)?(h.current.lr=!0,pe=Vn,Ve=-Ve,ve.points=[po(gt,1),po(Me,1)]):h.current.lr=!1;}Yr();var yr=Lt===!0?0:Lt;typeof yr=="number"&&(Ge<ee.left&&(pe-=Ge-ee.left-Ve,M.x+oe<ee.left+yr&&(pe+=M.x-ee.left+oe-yr)),Ke>ee.right&&(pe-=Ke-ee.right-Ve,M.x>ee.right-yr&&(pe+=M.x-ee.right+yr)));var or=Dt===!0?0:Dt;typeof or=="number"&&(He<ee.top&&(ye-=He-ee.top-Ue,M.y+J<ee.top+or&&(ye+=M.y-ee.top+J-or)),Xe>ee.bottom&&(ye-=Xe-ee.bottom-Ue,M.y>ee.bottom-or&&(ye+=M.y-ee.bottom+or)));var Un=j.x+pe,Cr=Un+G,Sr=j.y+ye,ar=Sr+K,et=M.x,rt=et+oe,ct=M.y,ot=ct+J,Ze=Math.max(Un,et),Ot=Math.min(Cr,rt),Mt=(Ze+Ot)/2,mn=Mt-Un,an=Math.max(Sr,ct),ir=Math.min(ar,ot),sr=(an+ir)/2,ko=sr-Sr;i==null||i(t,ve);var ad=fe.right-j.x-(pe+j.width),id=fe.bottom-j.y-(ye+j.height);u({ready:!0,offsetX:pe/Pe,offsetY:ye/je,offsetR:ad/Pe,offsetB:id/je,arrowX:mn/Pe,arrowY:ko/je,scaleX:Pe,scaleY:je,align:ve});}}),p=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&g();});},b=function(){u(function(S){return Y(Y({},S),{},{ready:!1})});};return qt(b,[r]),qt(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 fj(e,t,n,r,o){qt(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,s=sm(a),l=sm(i),c=Rs(i),u=new Set([c].concat(We(s),We(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 mj(e,t,n,r,o,a,i,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=St(function(){c.current=!1;});return function(){St.cancel(u);}},[e]),f__namespace.useEffect(function(){if(t&&r&&(!o||a)){var u=function(){var w=!1,C=function(_){var k=_.target;w=i(k);},x=function(_){var k=_.target;!c.current&&l.current&&!w&&!i(k)&&s(!1);};return [C,x]},d=u(),m=Q(d,2),h=m[0],v=m[1],g=u(),p=Q(g,2),b=p[0],y=p[1],S=Rs(r);S.addEventListener("mousedown",h,!0),S.addEventListener("click",v,!0),S.addEventListener("contextmenu",v,!0);var E=sc(n);return E&&(E.addEventListener("mousedown",b,!0),E.addEventListener("click",y,!0),E.addEventListener("contextmenu",y,!0)),function(){S.removeEventListener("mousedown",h,!0),S.removeEventListener("click",v,!0),S.removeEventListener("contextmenu",v,!0),E&&(E.removeEventListener("mousedown",b,!0),E.removeEventListener("click",y,!0),E.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}function hj(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=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 v=n.points[0],g=n.points[1],p=v[0],b=v[1],y=g[0],S=g[1];p===y||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===S||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return f__namespace.createElement("div",{ref:m,className:H("".concat(t,"-arrow"),i),style:h},s)}function vj(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?f__namespace.createElement(fo,$e({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return f__namespace.createElement("div",{style:{zIndex:r},className:H("".concat(t,"-mask"),s)})}):null}var gj=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),pj=f__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,m=e.mask,h=e.arrow,v=e.arrowPos,g=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,E=e.autoDestroy,$=e.portal,w=e.zIndex,C=e.onMouseEnter,x=e.onMouseLeave,I=e.onPointerEnter,_=e.ready,k=e.offsetX,O=e.offsetY,P=e.offsetR,R=e.offsetB,T=e.onAlign,N=e.onPrepare,M=e.stretch,L=e.targetWidth,j=e.targetHeight,z=typeof n=="function"?n():n,V=l||c,B=(S==null?void 0:S.length)>0,W=f__namespace.useState(!S||!B),F=Q(W,2),X=F[0],q=F[1];if(qt(function(){!X&&B&&i&&q(!0);},[X,B,i]),!X)return null;var K="auto",G={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(_||!l){var J,oe=g.points,ue=g.dynamicInset||((J=g._experimental)===null||J===void 0?void 0:J.dynamicInset),me=ue&&oe[0][1]==="r",te=ue&&oe[0][0]==="b";me?(G.right=P,G.left=K):(G.left=k,G.right=K),te?(G.bottom=R,G.top=K):(G.top=O,G.bottom=K);}var ae={};return M&&(M.includes("height")&&j?ae.height=j:M.includes("minHeight")&&j&&(ae.minHeight=j),M.includes("width")&&L?ae.width=L:M.includes("minWidth")&&L&&(ae.minWidth=L)),l||(ae.pointerEvents="none"),f__namespace.createElement($,{open:y||V,getContainer:S&&function(){return S(i)},autoDestroy:E},f__namespace.createElement(vj,{prefixCls:o,open:l,zIndex:w,mask:m,motion:b}),f__namespace.createElement(_r,{onResize:T,disabled:!l},function(ce){return f__namespace.createElement(fo,$e({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(ne){var ee;p==null||(ee=p.onVisibleChanged)===null||ee===void 0||ee.call(p,ne),s(ne);}}),function(Z,ne){var ee=Z.className,de=Z.style,he=H(o,ee,r);return f__namespace.createElement("div",{ref:Rn(ce,t,ne),className:he,style:Y(Y(Y(Y({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},G),ae),de),{},{boxSizing:"border-box",zIndex:w},a),onMouseEnter:C,onMouseLeave:x,onPointerEnter:I,onClick:d},h&&f__namespace.createElement(hj,{prefixCls:o,arrow:h,arrowPos:v,align:g}),f__namespace.createElement(gj,{cache:!l&&!u},z))})}))}),bj=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=No(n),a=f__namespace.useCallback(function(s){Xh(t,r?r(s):s);},[r]),i=_s(a,n.ref);return o?f__namespace.cloneElement(n,{ref:i}):n}),yj=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Cj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:JC,t=f__namespace.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=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,v=n.afterPopupVisibleChange,g=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,S=n.blurDelay,E=n.mask,$=n.maskClosable,w=$===void 0?!0:$,C=n.getPopupContainer,x=n.forceRender,I=n.autoDestroy,_=n.destroyPopupOnHide,k=n.popup,O=n.popupClassName,P=n.popupStyle,R=n.popupPlacement,T=n.builtinPlacements,N=T===void 0?{}:T,M=n.popupAlign,L=n.zIndex,j=n.stretch,z=n.getPopupClassNameFromAlign,V=n.fresh,B=n.alignPoint,W=n.onPopupClick,F=n.onPopupAlign,X=n.arrow,q=n.popupMotion,K=n.maskMotion,G=n.popupTransitionName,J=n.popupAnimation,oe=n.maskTransitionName,ue=n.maskAnimation,me=n.className,te=n.getTriggerDOMNode,ae=Je(n,yj),ce=I||_||!1,Z=f__namespace.useState(!1),ne=Q(Z,2),ee=ne[0],de=ne[1];qt(function(){de(du());},[]);var he=f__namespace.useRef({}),fe=f__namespace.useContext(sb),Pe=f__namespace.useMemo(function(){return {registerSubPopup:function(mt,Zt){he.current[mt]=Zt,fe==null||fe.registerSubPopup(mt,Zt);}}},[fe]),je=sj(),Ae=f__namespace.useState(null),be=Q(Ae,2),Ce=be[0],Ne=be[1],Ve=zn(function(Be){nc(Be)&&Ce!==Be&&Ne(Be),fe==null||fe.registerSubPopup(je,Be);}),Ue=f__namespace.useState(null),Fe=Q(Ue,2),Le=Fe[0],at=Fe[1],st=zn(function(Be){nc(Be)&&Le!==Be&&at(Be);}),_e=f__namespace.Children.only(i),Oe=(_e==null?void 0:_e.props)||{},De={},yt=zn(function(Be){var mt,Zt,sn=Le;return (sn==null?void 0:sn.contains(Be))||((mt=sc(sn))===null||mt===void 0?void 0:mt.host)===Be||Be===sn||(Ce==null?void 0:Ce.contains(Be))||((Zt=sc(Ce))===null||Zt===void 0?void 0:Zt.host)===Be||Be===Ce||Object.values(he.current).some(function(Qt){return (Qt==null?void 0:Qt.contains(Be))||Be===Qt})}),Me=cb(a,q,J,G),gt=cb(a,K,ue,oe),Re=f__namespace.useState(m||!1),re=Q(Re,2),ve=re[0],pe=re[1],ye=d??ve,qe=zn(function(Be){d===void 0&&pe(Be);});qt(function(){pe(d||!1);},[d]);var Ie=f__namespace.useRef(ye);Ie.current=ye;var Se=zn(function(Be){qy.flushSync(function(){ye!==Be&&(qe(Be),h==null||h(Be));});}),se=f__namespace.useRef(),xe=function(){clearTimeout(se.current);},we=function(mt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;xe(),Zt===0?Se(mt):se.current=setTimeout(function(){Se(mt);},Zt*1e3);};f__namespace.useEffect(function(){return xe},[]);var Ee=f__namespace.useState(!1),pt=Q(Ee,2),ht=pt[0],Lt=pt[1];qt(function(Be){(!Be||ye)&&Lt(!0);},[ye]);var Dt=f__namespace.useState(null),Gt=Q(Dt,2),He=Gt[0],Xe=Gt[1],Ge=f__namespace.useState([0,0]),Ke=Q(Ge,2),ke=Ke[0],ft=Ke[1],it=function(mt){ft([mt.clientX,mt.clientY]);},jt=dj(ye,Ce,B?ke:Le,R,N,M,F),vt=Q(jt,11),Sn=vt[0],br=vt[1],Ln=vt[2],Dn=vt[3],kr=vt[4],rr=vt[5],ho=vt[6],vo=vt[7],Vn=vt[8],jn=vt[9],Ar=vt[10],yr=lj(ee,l,c,u),or=Q(yr,2),Un=or[0],Cr=or[1],Sr=Un.has("click"),ar=Cr.has("click")||Cr.has("contextMenu"),et=zn(function(){ht||Ar();}),rt=function(){Ie.current&&B&&ar&&we(!1);};fj(ye,Le,Ce,et,rt),qt(function(){et();},[ke,R]),qt(function(){ye&&!(N!=null&&N[R])&&et();},[JSON.stringify(M)]);var ct=f__namespace.useMemo(function(){var Be=uj(N,a,jn,B);return H(Be,z==null?void 0:z(jn))},[jn,z,N,a,B]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:et}});var ot=f__namespace.useState(0),Ze=Q(ot,2),Ot=Ze[0],Mt=Ze[1],mn=f__namespace.useState(0),an=Q(mn,2),ir=an[0],sr=an[1],ko=function(){if(j&&Le){var mt=Le.getBoundingClientRect();Mt(mt.width),sr(mt.height);}},ad=function(){ko(),et();},id=function(mt){Lt(!1),Ar(),v==null||v(mt);},lr=function(){return new Promise(function(mt){ko(),Xe(function(){return mt});})};qt(function(){He&&(Ar(),He(),Xe(null));},[He]);function Yr(Be,mt,Zt,sn){De[Be]=function(Qt){var nl;sn==null||sn(Qt),we(mt,Zt);for(var dd=arguments.length,kg=new Array(dd>1?dd-1:0),rl=1;rl<dd;rl++)kg[rl-1]=arguments[rl];(nl=Oe[Be])===null||nl===void 0||nl.call.apply(nl,[Oe,Qt].concat(kg));};}(Sr||ar)&&(De.onClick=function(Be){var mt;Ie.current&&ar?we(!1):!Ie.current&&Sr&&(it(Be),we(!0));for(var Zt=arguments.length,sn=new Array(Zt>1?Zt-1:0),Qt=1;Qt<Zt;Qt++)sn[Qt-1]=arguments[Qt];(mt=Oe.onClick)===null||mt===void 0||mt.call.apply(mt,[Oe,Be].concat(sn));}),mj(ye,ar,Le,Ce,E,w,yt,we);var el=Un.has("hover"),Ao=Cr.has("hover"),go,wi;el&&(Yr("onMouseEnter",!0,g,function(Be){it(Be);}),Yr("onPointerEnter",!0,g,function(Be){it(Be);}),go=function(){(ye||ht)&&we(!0,g);},B&&(De.onMouseMove=function(Be){var mt;(mt=Oe.onMouseMove)===null||mt===void 0||mt.call(Oe,Be);})),Ao&&(Yr("onMouseLeave",!1,b),Yr("onPointerLeave",!1,b),wi=function(){we(!1,b);}),Un.has("focus")&&Yr("onFocus",!0,y),Cr.has("focus")&&Yr("onBlur",!1,S),Un.has("contextMenu")&&(De.onContextMenu=function(Be){var mt;Ie.current&&Cr.has("contextMenu")?we(!1):(it(Be),we(!0)),Be.preventDefault();for(var Zt=arguments.length,sn=new Array(Zt>1?Zt-1:0),Qt=1;Qt<Zt;Qt++)sn[Qt-1]=arguments[Qt];(mt=Oe.onContextMenu)===null||mt===void 0||mt.call.apply(mt,[Oe,Be].concat(sn));}),me&&(De.className=H(Oe.className,me));var ua=Y(Y({},Oe),De),tl={},sd=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];sd.forEach(function(Be){ae[Be]&&(tl[Be]=function(){for(var mt,Zt=arguments.length,sn=new Array(Zt),Qt=0;Qt<Zt;Qt++)sn[Qt]=arguments[Qt];(mt=ua[Be])===null||mt===void 0||mt.call.apply(mt,[ua].concat(sn)),ae[Be].apply(ae,sn);});});var ld=f__namespace.cloneElement(_e,Y(Y({},ua),tl)),cd={x:rr,y:ho},ud=X?Y({},X!==!0?X:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(_r,{disabled:!ye,ref:st,onResize:ad},f__namespace.createElement(bj,{getTriggerDOMNode:te},ld)),f__namespace.createElement(sb.Provider,{value:Pe},f__namespace.createElement(pj,{portal:e,ref:Ve,prefixCls:a,popup:k,className:H(O,ct),style:P,target:Le,onMouseEnter:go,onMouseLeave:wi,onPointerEnter:go,zIndex:L,open:ye,keepDom:ht,fresh:V,onClick:W,mask:E,motion:Me,maskMotion:gt,onVisibleChanged:id,onPrepare:lr,forceRender:x,autoDestroy:ce,getPopupContainer:C,align:jn,arrow:ud,arrowPos:cd,ready:Sn,offsetX:br,offsetY:Ln,offsetR:Dn,offsetB:kr,onAlign:et,stretch:j,targetWidth:Ot/vo,targetHeight:ir/Vn})))});return t}const fu=Cj(JC);var ma={shiftX:64,adjustY:1},ha={adjustX:1,shiftY:!0},cr=[0,0],Sj={left:{points:["cr","cl"],overflow:ha,offset:[-4,0],targetOffset:cr},right:{points:["cl","cr"],overflow:ha,offset:[4,0],targetOffset:cr},top:{points:["bc","tc"],overflow:ma,offset:[0,-4],targetOffset:cr},bottom:{points:["tc","bc"],overflow:ma,offset:[0,4],targetOffset:cr},topLeft:{points:["bl","tl"],overflow:ma,offset:[0,-4],targetOffset:cr},leftTop:{points:["tr","tl"],overflow:ha,offset:[-4,0],targetOffset:cr},topRight:{points:["br","tr"],overflow:ma,offset:[0,-4],targetOffset:cr},rightTop:{points:["tl","tr"],overflow:ha,offset:[4,0],targetOffset:cr},bottomRight:{points:["tr","br"],overflow:ma,offset:[0,4],targetOffset:cr},rightBottom:{points:["bl","br"],overflow:ha,offset:[4,0],targetOffset:cr},bottomLeft:{points:["tl","bl"],overflow:ma,offset:[0,4],targetOffset:cr},leftBottom:{points:["br","bl"],overflow:ha,offset:[-4,0],targetOffset:cr}};function tv(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return f__namespace.createElement("div",{className:H("".concat(n,"-content"),a),style:i},f__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var $j=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],wj=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,m=d===void 0?"rc-tooltip":d,h=t.children,v=t.onVisibleChange,g=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,S=t.placement,E=S===void 0?"right":S,$=t.align,w=$===void 0?{}:$,C=t.destroyTooltipOnHide,x=C===void 0?!1:C,I=t.defaultVisible,_=t.getTooltipContainer,k=t.overlayInnerStyle;t.arrowContent;var O=t.overlay,P=t.id,R=t.showArrow,T=R===void 0?!0:R,N=Je(t,$j),M=f.useRef(null);f.useImperativeHandle(n,function(){return M.current});var L=Y({},N);"visible"in t&&(L.popupVisible=t.visible);var j=function(){return f__namespace.createElement(tv,{key:"content",prefixCls:m,id:P,overlayInnerStyle:k},O)};return f__namespace.createElement(fu,$e({popupClassName:r,prefixCls:m,popup:j,action:a,builtinPlacements:Sj,popupPlacement:E,ref:M,popupAlign:w,getPopupContainer:_,onPopupVisibleChange:v,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:I,autoDestroy:x,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:T},L),h)};const xj=f.forwardRef(wj),Rd=()=>({height:0,opacity:0}),hb=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},Ej=e=>({height:e?e.offsetHeight:0}),Td=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",sS=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Rd,onEnterStart:Rd,onAppearActive:hb,onEnterActive:hb,onLeaveStart:Ej,onLeaveActive:Rd,onAppearEnd:Td,onEnterEnd:Td,onLeaveEnd:Td,motionDeadline:500}},mu=(e,t,n)=>n!==void 0?n:`${e}-${t}`,lS=8;function nv(e){const t=lS,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function hl(e,t){return e?t:{}}function rv(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:h}=nv({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"},L5(r,o,a,s,i)),{"&:before":{background:s}})]},hl(!!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}}})),hl(!!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}}})),hl(!!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}})),hl(!!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 Oj(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.dropdownArrowOffset*2+n;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const vb={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"]}},Ij={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"]}},Pj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function cS(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(vb).forEach(c=>{const u=r&&Ij[c]||vb[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,Pj.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=nv({contentRadius:a,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=Oj(c,m,t,n),i&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:ao}=f__namespace;function uS(e){return e&&ao(e)&&e.type===f__namespace.Fragment}function _j(e,t,n){return ao(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function In(e,t){return _j(e,e,t)}const Rj=e=>{const t=f.useContext(cu);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Wn=Rj,Tj=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Mj=Tj,Nj=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"}}}},kj=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},dS=At("Space",e=>{const t=ut(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Nj(t),kj(t),Mj(t)]},()=>({}),{resetStyle:!1});var fS=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hu=f__namespace.createContext(null),pi=(e,t)=>{const n=f__namespace.useContext(hu),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return H(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${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}},Ua=e=>{let{children:t}=e;return f__namespace.createElement(hu.Provider,{value:null},t)},Aj=e=>{var{children:t}=e,n=fS(e,["children"]);return f__namespace.createElement(hu.Provider,{value:n},t)},Lj=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Ye),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=fS(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Wn(S=>r??S),m=t("space-compact",i),[h,v]=dS(m),g=H(m,v,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,l),p=f__namespace.useContext(hu),b=er(c),y=f__namespace.useMemo(()=>b.map((S,E)=>{const $=S&&S.key||`${m}-item-${E}`;return f__namespace.createElement(Aj,{key:$,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))},S)}),[r,b,p]);return b.length===0?null:h(f__namespace.createElement("div",Object.assign({className:g},u),y))},Dj=Lj,jj=e=>({animationDuration:e,animationFillMode:"both"}),zj=e=>({animationDuration:e,animationFillMode:"both"}),ov=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
${a}${e}-enter,
${a}${e}-appear
`]:Object.assign(Object.assign({},jj(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},zj(r)),{animationPlayState:"paused"}),[`
${a}${e}-enter${e}-enter-active,
${a}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Bj=new wt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fj=new wt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Hj=new wt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Wj=new wt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Vj=new wt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Uj=new wt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Gj=new wt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kj=new wt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),qj={"move-up":{inKeyframes:Gj,outKeyframes:Kj},"move-down":{inKeyframes:Bj,outKeyframes:Fj},"move-left":{inKeyframes:Hj,outKeyframes:Wj},"move-right":{inKeyframes:Vj,outKeyframes:Uj}},lc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=qj[t];return [ov(r,o,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},av=new wt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),iv=new wt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),sv=new wt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),lv=new wt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Xj=new wt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Yj=new wt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zj=new wt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Qj=new wt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Jj={"slide-up":{inKeyframes:av,outKeyframes:iv},"slide-down":{inKeyframes:sv,outKeyframes:lv},"slide-left":{inKeyframes:Xj,outKeyframes:Yj},"slide-right":{inKeyframes:Zj,outKeyframes:Qj}},To=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Jj[t];return [ov(r,o,a,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}}]},e6=new wt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),t6=new wt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),gb=new wt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),pb=new wt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),n6=new wt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),r6=new wt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),o6=new wt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),a6=new wt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),i6=new wt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),s6=new wt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),l6=new wt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),c6=new wt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),u6={zoom:{inKeyframes:e6,outKeyframes:t6},"zoom-big":{inKeyframes:gb,outKeyframes:pb},"zoom-big-fast":{inKeyframes:gb,outKeyframes:pb},"zoom-left":{inKeyframes:o6,outKeyframes:a6},"zoom-right":{inKeyframes:i6,outKeyframes:s6},"zoom-up":{inKeyframes:n6,outKeyframes:r6},"zoom-down":{inKeyframes:l6,outKeyframes:c6}},vu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=u6[t];return [ov(r,o,a,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}}]},d6=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`}}}),mS=d6,f6=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,lS)}},[`${t}-content`]:{position:"relative"}}),lu(e,(m,h)=>{let{darkColor:v}=h;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},rv(ut(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},hS=(e,t)=>At("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=r,l=ut(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return [f6(l),vu(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return {zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),m6=rs.map(e=>`${e}-inverse`),h6=["success","processing","error","default","warning"];function gu(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(We(m6),We(rs)).includes(e):rs.includes(e)}function v6(e){return h6.includes(e)}function vS(e,t){const n=gu(t),r=H({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const g6=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=f__namespace.useContext(Ye),l=s("tooltip",t),[c,u]=hS(l,!0),d=vS(l,a),m=d.arrowStyle,h=Object.assign(Object.assign({},i),d.overlayStyle),v=H(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(f__namespace.createElement("div",{className:v,style:m},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(tv,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},p6=g6;var b6=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y6=(e,t)=>{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 C6(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}=y6(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),a=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),i=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=In(e,{style:i,className:null});return f__namespace.createElement("span",{style:a,className:H(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const gS=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:v=!0,title:g,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0}=e,E=!!v,[,$]=nr(),{getPopupContainer:w,getPrefixCls:C,direction:x}=f__namespace.useContext(Ye),I=cC(),_=f__namespace.useRef(null),k=()=>{var de;(de=_.current)===null||de===void 0||de.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:k,forcePopupAlign:()=>{I.deprecated(!1,"forcePopupAlign","forceAlign"),k();}}));const[O,P]=Bt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=!g&&!p&&g!==0,T=de=>{var he,fe;P(R?!1:de),R||((he=e.onOpenChange)===null||he===void 0||he.call(e,de),(fe=e.onVisibleChange)===null||fe===void 0||fe.call(e,de));},N=f__namespace.useMemo(()=>{var de,he;let fe=y;return typeof v=="object"&&(fe=(he=(de=v.pointAtCenter)!==null&&de!==void 0?de:v.arrowPointAtCenter)!==null&&he!==void 0?he:y),b||cS({arrowPointAtCenter:fe,autoAdjustOverflow:S,arrowWidth:E?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[y,v,b,$]),M=f__namespace.useMemo(()=>g===0?g:p||g||"",[p,g]),L=f__namespace.createElement(Ua,null,typeof M=="function"?M():M),{getPopupContainer:j,placement:z="top",mouseEnterDelay:V=.1,mouseLeaveDelay:B=.1,overlayStyle:W,rootClassName:F}=e,X=b6(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=C("tooltip",o),K=C(),G=e["data-popover-inject"];let J=O;!("open"in e)&&!("visible"in e)&&R&&(J=!1);const oe=C6(ao(u)&&!uS(u)?u:f__namespace.createElement("span",null,u),q),ue=oe.props,me=!ue.className||typeof ue.className=="string"?H(ue.className,a||`${q}-open`):ue.className,[te,ae]=hS(q,!G),ce=vS(q,l),Z=ce.arrowStyle,ne=Object.assign(Object.assign({},c),ce.overlayStyle),ee=H(s,{[`${q}-rtl`]:x==="rtl"},ce.className,F,ae);return te(f__namespace.createElement(xj,Object.assign({},X,{showArrow:E,placement:z,mouseEnterDelay:V,mouseLeaveDelay:B,prefixCls:q,overlayClassName:ee,overlayStyle:Object.assign(Object.assign({},Z),W),getTooltipContainer:j||i||w,ref:_,builtinPlacements:N,overlay:L,visible:J,onVisibleChange:T,afterVisibleChange:d??m,overlayInnerStyle:ne,arrowContent:f__namespace.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:mu(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),J?In(oe,{className:me}):oe))});gS._InternalPanelDoNotUseOrYouWillBeFired=p6;const Ts=gS,S6=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function a(){St.cancel(o.current),o.current=null;}function i(){o.current=St(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?i():a(),a),[n,e.title]),f__namespace.createElement(Ts,Object.assign({ref:Rn(r,t)},e))}),$6=S6,w6=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Tt(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${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 Xt(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"}})}},pS=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart",d=(r*3-o)/2,m=(o-r)/2,h=t?{borderWidth:`${m}px 0`,transform:`translateY(-${m}px)`}:{borderWidth:`0 ${m}px`,transform:`translateX(-${m}px)`};return {[i]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-track-draggable`]:Object.assign({},h),[`${n}-handle`]:{[c]:d},[`${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-a)/2}}},x6=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},pS(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},E6=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},pS(e,!1)),{height:"100%"})}},O6=At("Slider",e=>{const t=ut(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [w6(t),x6(t),E6(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,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 I6=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const P6=e=>typeof e=="number"?e.toString():"",_6=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:m}=e,h=I6(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:v,slider:g,getPrefixCls:p,getPopupContainer:b}=f.useContext(Ye),y=f.useContext(Xr),S=s??y,[E,$]=f.useState({}),w=(N,M)=>{$(L=>Object.assign(Object.assign({},L),{[N]:M}));},C=(N,M)=>N||(M?v==="rtl"?"left":"right":"top"),x=p("slider",n),[I,_]=O6(x),k=H(o,g==null?void 0:g.className,a,{[`${x}-rtl`]:v==="rtl"},_);v==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[O,P]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),R=(N,M)=>{var L;const{index:j,dragging:z}=M,{tooltip:V={},vertical:B}=e,W=Object.assign({},V),{open:F,placement:X,getPopupContainer:q,prefixCls:K,formatter:G}=W;let J;G||G===null?J=G:c||c===null?J=c:J=P6;const oe=J?E[j]||z:!1,ue=(L=F??u)!==null&&L!==void 0?L:F===void 0&&oe,me=Object.assign(Object.assign({},N.props),{onMouseEnter:()=>w(j,!0),onMouseLeave:()=>w(j,!1)}),te=p("tooltip",K??l);return f.createElement($6,Object.assign({},W,{prefixCls:te,title:J?J(M.value):"",open:ue,placement:C(X??m,B),key:j,overlayClassName:`${x}-tooltip`,getPopupContainer:q||d||b}),f.cloneElement(N,me))},T=Object.assign(Object.assign({},g==null?void 0:g.style),i);return I(f.createElement(aL,Object.assign({},h,{step:h.step,range:O,draggableTrack:P,className:k,style:T,disabled:S,ref:t,prefixCls:x,handleRender:R})))}),R6=_6;var T6=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],bS=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,a=e.className,i=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,v=e.onChange,g=Je(e,T6),p=f.useRef(null),b=Bt(u,{value:s}),y=Q(b,2),S=y[0],E=y[1];f.useImperativeHandle(t,function(){return {focus:function(){var x;(x=p.current)===null||x===void 0||x.focus();},blur:function(){var x;(x=p.current)===null||x===void 0||x.blur();},input:p.current}});var $=H(o,a,(n={},U(n,"".concat(o,"-checked"),S),U(n,"".concat(o,"-disabled"),l),n)),w=function(x){l||("checked"in e||E(x.target.checked),v==null||v({target:Y(Y({},e),{},{type:m,checked:x.target.checked}),stopPropagation:function(){x.stopPropagation();},preventDefault:function(){x.preventDefault();},nativeEvent:x.nativeEvent}));};return f__namespace.createElement("span",{className:$,title:h,style:i},f__namespace.createElement("input",$e({},g,{className:"".concat(o,"-input"),ref:p,onChange:w,disabled:l,checked:!!S,type:m})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const M6=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(",")}}}}},N6=At("Wave",e=>[M6(e)]);function An(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */An=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(O,P,R){O[P]=R.value;},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(O,P,R){return Object.defineProperty(O,P,{value:R,enumerable:!0,configurable:!0,writable:!0}),O[P]}try{l({},"");}catch{l=function(R,T,N){return R[T]=N};}function c(O,P,R,T){var N=P&&P.prototype instanceof m?P:m,M=Object.create(N.prototype),L=new I(T||[]);return r(M,"_invoke",{value:$(O,R,L)}),M}function u(O,P,R){try{return {type:"normal",arg:O.call(P,R)}}catch(T){return {type:"throw",arg:T}}}e.wrap=c;var d={};function m(){}function h(){}function v(){}var g={};l(g,a,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(_([])));b&&b!==t&&n.call(b,a)&&(g=b);var y=v.prototype=m.prototype=Object.create(g);function S(O){["next","throw","return"].forEach(function(P){l(O,P,function(R){return this._invoke(P,R)});});}function E(O,P){function R(N,M,L,j){var z=u(O[N],O,M);if(z.type!=="throw"){var V=z.arg,B=V.value;return B&&dt(B)=="object"&&n.call(B,"__await")?P.resolve(B.__await).then(function(W){R("next",W,L,j);},function(W){R("throw",W,L,j);}):P.resolve(B).then(function(W){V.value=W,L(V);},function(W){return R("throw",W,L,j)})}j(z.arg);}var T;r(this,"_invoke",{value:function(M,L){function j(){return new P(function(z,V){R(M,L,z,V);})}return T=T?T.then(j,j):j()}});}function $(O,P,R){var T="suspendedStart";return function(N,M){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(N==="throw")throw M;return k()}for(R.method=N,R.arg=M;;){var L=R.delegate;if(L){var j=w(L,R);if(j){if(j===d)continue;return j}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(T==="suspendedStart")throw T="completed",R.arg;R.dispatchException(R.arg);}else R.method==="return"&&R.abrupt("return",R.arg);T="executing";var z=u(O,P,R);if(z.type==="normal"){if(T=R.done?"completed":"suspendedYield",z.arg===d)continue;return {value:z.arg,done:R.done}}z.type==="throw"&&(T="completed",R.method="throw",R.arg=z.arg);}}}function w(O,P){var R=P.method,T=O.iterator[R];if(T===void 0)return P.delegate=null,R==="throw"&&O.iterator.return&&(P.method="return",P.arg=void 0,w(O,P),P.method==="throw")||R!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+R+"' method")),d;var N=u(T,O.iterator,P.arg);if(N.type==="throw")return P.method="throw",P.arg=N.arg,P.delegate=null,d;var M=N.arg;return M?M.done?(P[O.resultName]=M.value,P.next=O.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,d):M:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,d)}function C(O){var P={tryLoc:O[0]};1 in O&&(P.catchLoc=O[1]),2 in O&&(P.finallyLoc=O[2],P.afterLoc=O[3]),this.tryEntries.push(P);}function x(O){var P=O.completion||{};P.type="normal",delete P.arg,O.completion=P;}function I(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(C,this),this.reset(!0);}function _(O){if(O){var P=O[a];if(P)return P.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var R=-1,T=function N(){for(;++R<O.length;)if(n.call(O,R))return N.value=O[R],N.done=!1,N;return N.value=void 0,N.done=!0,N};return T.next=T}}return {next:k}}function k(){return {value:void 0,done:!0}}return h.prototype=v,r(y,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(O){var P=typeof O=="function"&&O.constructor;return !!P&&(P===h||(P.displayName||P.name)==="GeneratorFunction")},e.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,v):(O.__proto__=v,l(O,s,"GeneratorFunction")),O.prototype=Object.create(y),O},e.awrap=function(O){return {__await:O}},S(E.prototype),l(E.prototype,i,function(){return this}),e.AsyncIterator=E,e.async=function(O,P,R,T,N){N===void 0&&(N=Promise);var M=new E(c(O,P,R,T),N);return e.isGeneratorFunction(P)?M:M.next().then(function(L){return L.done?L.value:M.next()})},S(y),l(y,s,"Generator"),l(y,a,function(){return this}),l(y,"toString",function(){return "[object Generator]"}),e.keys=function(O){var P=Object(O),R=[];for(var T in P)R.push(T);return R.reverse(),function N(){for(;R.length;){var M=R.pop();if(M in P)return N.value=M,N.done=!1,N}return N.done=!0,N}},e.values=_,I.prototype={constructor:I,reset:function(P){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(x),!P)for(var R in this)R.charAt(0)==="t"&&n.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0);},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var R=this;function T(V,B){return L.type="throw",L.arg=P,R.next=V,B&&(R.method="next",R.arg=void 0),!!B}for(var N=this.tryEntries.length-1;N>=0;--N){var M=this.tryEntries[N],L=M.completion;if(M.tryLoc==="root")return T("end");if(M.tryLoc<=this.prev){var j=n.call(M,"catchLoc"),z=n.call(M,"finallyLoc");if(j&&z){if(this.prev<M.catchLoc)return T(M.catchLoc,!0);if(this.prev<M.finallyLoc)return T(M.finallyLoc)}else if(j){if(this.prev<M.catchLoc)return T(M.catchLoc,!0)}else {if(!z)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return T(M.finallyLoc)}}}},abrupt:function(P,R){for(var T=this.tryEntries.length-1;T>=0;--T){var N=this.tryEntries[T];if(N.tryLoc<=this.prev&&n.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var M=N;break}}M&&(P==="break"||P==="continue")&&M.tryLoc<=R&&R<=M.finallyLoc&&(M=null);var L=M?M.completion:{};return L.type=P,L.arg=R,M?(this.method="next",this.next=M.finallyLoc,d):this.complete(L)},complete:function(P,R){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&R&&(this.next=R),d},finish:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var T=this.tryEntries[R];if(T.finallyLoc===P)return this.complete(T.completion,T.afterLoc),x(T),d}},catch:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var T=this.tryEntries[R];if(T.tryLoc===P){var N=T.completion;if(N.type==="throw"){var M=N.arg;x(T);}return M}}throw new Error("illegal catch attempt")},delegateYield:function(P,R,T){return this.delegate={iterator:_(P),resultName:R,nextLoc:T},this.method==="next"&&(this.arg=void 0),d}},e}function bb(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function aa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){bb(a,r,o,i,s,"next",l);}function s(l){bb(a,r,o,i,s,"throw",l);}i(void 0);})}}var Ms=Y({},qy__namespace),k6=Ms.version,A6=Ms.render,L6=Ms.unmountComponentAtNode,pu;try{var D6=Number((k6||"").split(".")[0]);D6>=18&&(pu=Ms.createRoot);}catch{}function yb(e){var t=Ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&dt(t)==="object"&&(t.usingClientEntryPoint=e);}var cc="__rc_react_root__";function j6(e,t){yb(!0);var n=t[cc]||pu(t);yb(!1),n.render(e),t[cc]=n;}function z6(e,t){A6(e,t);}function B6(e,t){if(pu){j6(e,t);return}z6(e,t);}function F6(e){return lm.apply(this,arguments)}function lm(){return lm=aa(An().mark(function e(t){return An().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[cc])===null||o===void 0||o.unmount(),delete t[cc];}));case 1:case"end":return r.stop()}},e)})),lm.apply(this,arguments)}function H6(e){L6(e);}function W6(e){return cm.apply(this,arguments)}function cm(){return cm=aa(An().mark(function e(t){return An().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(pu===void 0){r.next=2;break}return r.abrupt("return",F6(t));case 2:H6(t);case 3:case"end":return r.stop()}},e)})),cm.apply(this,arguments)}function V6(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 Md(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&V6(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function U6(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Md(t)?t:Md(n)?n:Md(r)?r:null}const bu="ant-wave-target";function Nd(e){return Number.isNaN(e)?0:e}const G6=e=>{const{className:t,target:n,component:r}=e,o=f__namespace.useRef(null),[a,i]=f__namespace.useState(null),[s,l]=f__namespace.useState([]),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[h,v]=f__namespace.useState(0),[g,p]=f__namespace.useState(0),[b,y]=f__namespace.useState(!1),S={left:c,top:d,width:h,height:g,borderRadius:s.map(w=>`${w}px`).join(" ")};a&&(S["--wave-color"]=a);function E(){const w=getComputedStyle(n);i(U6(n));const C=w.position==="static",{borderLeftWidth:x,borderTopWidth:I}=w;u(C?n.offsetLeft:Nd(-parseFloat(x))),m(C?n.offsetTop:Nd(-parseFloat(I))),v(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:k,borderBottomLeftRadius:O,borderBottomRightRadius:P}=w;l([_,k,P,O].map(R=>Nd(parseFloat(R))));}if(f__namespace.useEffect(()=>{if(n){const w=St(()=>{E(),y(!0);});let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(E),C.observe(n)),()=>{St.cancel(w),C==null||C.disconnect();}}},[]),!b)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(bu));return f__namespace.createElement(fo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,C)=>{var x;if(C.deadline||C.propertyName==="opacity"){const I=(x=o.current)===null||x===void 0?void 0:x.parentElement;W6(I).then(()=>{I==null||I.remove();});}return !1}},w=>{let{className:C}=w;return f__namespace.createElement("div",{ref:o,className:H(t,{"wave-quick":$},C),style:S})})},K6=(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),B6(f__namespace.createElement(G6,Object.assign({},t,{target:e})),o);},q6=K6;function X6(e,t,n){const{wave:r}=f__namespace.useContext(Ye),[,o,a]=nr(),i=zn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${bu}`)||u,{showEffect:m}=r||{};(m||q6)(d,{className:t,token:o,component:n,event:c,hashId:a});}),s=f__namespace.useRef();return c=>{St.cancel(s.current),s.current=St(()=>{i(c);});}}const Y6=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext(Ye),a=f.useRef(null),i=o("wave"),[,s]=N6(i),l=X6(a,H(i,s),r);if(f.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=m=>{!ev(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=No(t)?Rn(t.ref,a):a;return In(t,{ref:c})},Ns=Y6;var vl="RC_FORM_INTERNAL_HOOKS",kt=function(){Fn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},Z6=f__namespace.createContext({getFieldValue:kt,getFieldsValue:kt,getFieldError:kt,getFieldWarning:kt,getFieldsError:kt,isFieldsTouched:kt,isFieldTouched:kt,isFieldValidating:kt,isFieldsValidating:kt,resetFields:kt,setFields:kt,setFieldValue:kt,setFieldsValue:kt,validateFields:kt,submit:kt,getInternalHooks:function(){return kt(),{dispatch:kt,initEntityValue:kt,registerField:kt,useSubscribe:kt,setInitialValues:kt,destroyForm:kt,setCallbacks:kt,registerWatch:kt,getFields:kt,setValidateMessages:kt,setPreserve:kt,getInitialValue:kt}}});function um(e){return e==null?[]:Array.isArray(e)?e:[e]}function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},Wo.apply(this,arguments)}function Q6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,as(e,t);}function dm(e){return dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dm(e)}function as(e,t){return as=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},as(e,t)}function J6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function Nl(e,t,n){return J6()?Nl=Reflect.construct.bind():Nl=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),c=new l;return i&&as(c,i.prototype),c},Nl.apply(null,arguments)}function ez(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function fm(e){var t=typeof Map=="function"?new Map:void 0;return fm=function(r){if(r===null||!ez(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return Nl(r,arguments,dm(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),as(o,r)},fm(e)}var tz=/%[sdj%]/g,nz=function(){};typeof process<"u"&&process.env;function mm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function Qn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(tz,function(s){if(s==="%%")return "%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return s}});return i}return e}function rz(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ln(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||rz(t)&&typeof e=="string"&&!e)}function oz(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,s||[]),o++,o===a&&n(r);}e.forEach(function(s){t(s,i);});}function Cb(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([]);}a([]);}function az(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var Sb=function(e){Q6(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(fm(Error));function iz(e,t,n,r,o){if(t.first){var a=new Promise(function(m,h){var v=function(b){return r(b),b.length?h(new Sb(b,mm(b))):m(o)},g=az(e);Cb(g,n,v);});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(m,h){var v=function(p){if(u.push.apply(u,p),c++,c===l)return r(u),u.length?h(new Sb(u,mm(u))):m(o)};s.length||(r(u),m(o)),s.forEach(function(g){var p=e[g];i.indexOf(g)!==-1?Cb(p,n,v):oz(p,n,v);});});return d.catch(function(m){return m}),d}function sz(e){return !!(e&&e.message!==void 0)}function lz(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function $b(e,t){return function(n){var r;return e.fullFields?r=lz(t,e.fullFields):r=t[n.field||e.fullField],sz(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function wb(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Wo({},e[n],r):e[n]=r;}}return e}var yS=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||ln(n,i||t.type))&&o.push(Qn(a.messages.required,t.fullField));},cz=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(Qn(a.messages.whitespace,t.fullField));},gl,uz=function(){if(gl)return gl;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(E){return E&&E.exact?a:new RegExp("(?:"+t(E)+n+t(E)+")|(?:"+t(E)+o+t(E)+")","g")};l.v4=function(S){return S&&S.exact?i:new RegExp(""+t(S)+n+t(S),"g")},l.v6=function(S){return S&&S.exact?s:new RegExp(""+t(S)+o+t(S),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,m=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+m+"|"+h+v+g+")"+p+b;return gl=new RegExp("(?:^"+y+"$)","i"),gl},xb={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Di={integer:function(t){return Di.number(t)&&parseInt(t,10)===t},float:function(t){return Di.number(t)&&!Di.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return !0;try{return !!new RegExp(t)}catch{return !1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Di.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(xb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(uz())},hex:function(t){return typeof t=="string"&&!!t.match(xb.hex)}},dz=function(t,n,r,o,a){if(t.required&&n===void 0){yS(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Di[s](n)||o.push(Qn(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Qn(a.messages.types[s],t.fullField,t.type));},fz=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,m=typeof n=="number",h=typeof n=="string",v=Array.isArray(n);if(m?d="number":h?d="string":v&&(d="array"),!d)return !1;v&&(u=n.length),h&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(Qn(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Qn(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Qn(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Qn(a.messages[d].range,t.fullField,t.min,t.max));},va="enum",mz=function(t,n,r,o,a){t[va]=Array.isArray(t[va])?t[va]:[],t[va].indexOf(n)===-1&&o.push(Qn(a.messages[va],t.fullField,t[va].join(", ")));},hz=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Qn(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Qn(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},bt={required:yS,whitespace:cz,type:dz,range:fz,enum:mz,pattern:hz},vz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n,"string")&&!t.required)return r();bt.required(t,n,o,i,a,"string"),ln(n,"string")||(bt.type(t,n,o,i,a),bt.range(t,n,o,i,a),bt.pattern(t,n,o,i,a),t.whitespace===!0&&bt.whitespace(t,n,o,i,a));}r(i);},gz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n)&&!t.required)return r();bt.required(t,n,o,i,a),n!==void 0&&bt.type(t,n,o,i,a);}r(i);},pz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),ln(n)&&!t.required)return r();bt.required(t,n,o,i,a),n!==void 0&&(bt.type(t,n,o,i,a),bt.range(t,n,o,i,a));}r(i);},bz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n)&&!t.required)return r();bt.required(t,n,o,i,a),n!==void 0&&bt.type(t,n,o,i,a);}r(i);},yz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n)&&!t.required)return r();bt.required(t,n,o,i,a),ln(n)||bt.type(t,n,o,i,a);}r(i);},Cz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n)&&!t.required)return r();bt.required(t,n,o,i,a),n!==void 0&&(bt.type(t,n,o,i,a),bt.range(t,n,o,i,a));}r(i);},Sz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n)&&!t.required)return r();bt.required(t,n,o,i,a),n!==void 0&&(bt.type(t,n,o,i,a),bt.range(t,n,o,i,a));}r(i);},$z=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();bt.required(t,n,o,i,a,"array"),n!=null&&(bt.type(t,n,o,i,a),bt.range(t,n,o,i,a));}r(i);},wz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n)&&!t.required)return r();bt.required(t,n,o,i,a),n!==void 0&&bt.type(t,n,o,i,a);}r(i);},xz="enum",Ez=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n)&&!t.required)return r();bt.required(t,n,o,i,a),n!==void 0&&bt[xz](t,n,o,i,a);}r(i);},Oz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n,"string")&&!t.required)return r();bt.required(t,n,o,i,a),ln(n,"string")||bt.pattern(t,n,o,i,a);}r(i);},Iz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n,"date")&&!t.required)return r();if(bt.required(t,n,o,i,a),!ln(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),bt.type(t,l,o,i,a),l&&bt.range(t,l.getTime(),o,i,a);}}r(i);},Pz=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":typeof n;bt.required(t,n,o,i,a,s),r(i);},kd=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ln(n,i)&&!t.required)return r();bt.required(t,n,o,s,a,i),ln(n,i)||bt.type(t,n,o,s,a);}r(s);},_z=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ln(n)&&!t.required)return r();bt.required(t,n,o,i,a);}r(i);},Hi={string:vz,method:gz,number:pz,boolean:bz,regexp:yz,integer:Cz,float:Sz,array:$z,object:wz,enum:Ez,pattern:Oz,date:Iz,url:kd,hex:kd,email:kd,required:Pz,any:_z};function hm(){return {default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vm=hm(),ks=function(){function e(n){this.rules=null,this._messages=vm,this.define(n);}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i];});},t.messages=function(r){return r&&(this._messages=wb(hm(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=r,l=o,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(g){var p=[],b={};function y(E){if(Array.isArray(E)){var $;p=($=p).concat.apply($,E);}else p.push(E);}for(var S=0;S<g.length;S++)y(g[S]);p.length?(b=mm(p),c(p,b)):c(null,s);}if(l.messages){var d=this.messages();d===vm&&(d=hm()),wb(d,l.messages),l.messages=d;}else l.messages=this.messages();var m={},h=l.keys||Object.keys(this.rules);h.forEach(function(g){var p=i.rules[g],b=s[g];p.forEach(function(y){var S=y;typeof S.transform=="function"&&(s===r&&(s=Wo({},s)),b=s[g]=S.transform(b)),typeof S=="function"?S={validator:S}:S=Wo({},S),S.validator=i.getValidationMethod(S),S.validator&&(S.field=g,S.fullField=S.fullField||g,S.type=i.getType(S),m[g]=m[g]||[],m[g].push({rule:S,value:b,source:s,field:g}));});});var v={};return iz(m,l,function(g,p){var b=g.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&g.value),b.field=g.field;function S(w,C){return Wo({},C,{fullField:b.fullField+"."+w,fullFields:b.fullFields?[].concat(b.fullFields,[w]):[w]})}function E(w){w===void 0&&(w=[]);var C=Array.isArray(w)?w:[w];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&b.message!==void 0&&(C=[].concat(b.message));var x=C.map($b(b,s));if(l.first&&x.length)return v[b.field]=1,p(x);if(!y)p(x);else {if(b.required&&!g.value)return b.message!==void 0?x=[].concat(b.message).map($b(b,s)):l.error&&(x=[l.error(b,Qn(l.messages.required,b.field))]),p(x);var I={};b.defaultField&&Object.keys(g.value).map(function(O){I[O]=b.defaultField;}),I=Wo({},I,g.rule.fields);var _={};Object.keys(I).forEach(function(O){var P=I[O],R=Array.isArray(P)?P:[P];_[O]=R.map(S.bind(null,O));});var k=new e(_);k.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),k.validate(g.value,g.rule.options||l,function(O){var P=[];x&&x.length&&P.push.apply(P,x),O&&O.length&&P.push.apply(P,O),p(P.length?P:null);});}}var $;if(b.asyncValidator)$=b.asyncValidator(b,g.value,E,g.source,l);else if(b.validator){try{$=b.validator(b,g.value,E,g.source,l);}catch(w){console.error==null||console.error(w),l.suppressValidatorError||setTimeout(function(){throw w},0),E(w.message);}$===!0?E():$===!1?E(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):$ instanceof Array?E($):$ instanceof Error&&E($.message);}$&&$.then&&$.then(function(){return E()},function(w){return E(w)});},function(g){u(g);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Hi.hasOwnProperty(r.type))throw new Error(Qn("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?Hi.required:Hi[this.getType(r)]||void 0},e}();ks.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Hi[t]=n;};ks.warning=nz;ks.messages=vm;ks.validators=Hi;var Kn="'${name}' is not a valid ${type}",Rz={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Kn,method:Kn,array:Kn,object:Kn,number:Kn,date:Kn,boolean:Kn,integer:Kn,float:Kn,regexp:Kn,email:Kn,url:Kn,hex:Kn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Eb=ks;function Tz(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Ob="CODE_LOGIC_ERROR";function gm(e,t,n,r,o){return pm.apply(this,arguments)}function pm(){return pm=aa(An().mark(function e(t,n,r,o,a){var i,s,l,c,u,d,m,h,v;return An().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=Y({},r),delete i.ruleIndex,Eb.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Ob)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Eb(U({},t,[i])),u=wC(Rz,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(U({},t,n),Y({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var S=b.message,E=S===Ob?u.default:S;return f__namespace.isValidElement(E)?f__namespace.cloneElement(E,{key:"error_".concat(y)}):E}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return gm("".concat(t,".").concat(y),b,l,o,a)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(b,y){return [].concat(We(b),We(y))},[]));case 23:return h=Y(Y({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),v=d.map(function(b){return typeof b=="string"?Tz(b,h):b}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),pm.apply(this,arguments)}function Mz(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,d){var m=u.validator,h=Y(Y({},u),{},{ruleIndex:d});return m&&(h.validator=function(v,g,p){var b=!1,y=function(){for(var $=arguments.length,w=new Array($),C=0;C<$;C++)w[C]=arguments[C];Promise.resolve().then(function(){Fn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,w);});},S=m(v,g,y);b=S&&typeof S.then=="function"&&typeof S.catch=="function",Fn(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(function(){p();}).catch(function(E){p(E||" ");});}),h}).sort(function(u,d){var m=u.warningOnly,h=u.ruleIndex,v=d.warningOnly,g=d.ruleIndex;return !!m==!!v?h-g:m?1:-1}),l;if(o===!0)l=new Promise(function(){var u=aa(An().mark(function d(m,h){var v,g,p;return An().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v=0;case 1:if(!(v<s.length)){y.next=12;break}return g=s[v],y.next=5,gm(i,t,g,r,a);case 5:if(p=y.sent,!p.length){y.next=9;break}return h([{errors:p,rule:g}]),y.abrupt("return");case 9:v+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},d)}));return function(d,m){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return gm(i,t,u,r,a).then(function(d){return {errors:d,rule:u}})});l=(o?kz(c):Nz(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function Nz(e){return bm.apply(this,arguments)}function bm(){return bm=aa(An().mark(function e(t){return An().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,We(o));return i}));case 1:case"end":return r.stop()}},e)})),bm.apply(this,arguments)}function kz(e){return ym.apply(this,arguments)}function ym(){return ym=aa(An().mark(function e(t){var n;return An().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([]);});});}));case 2:case"end":return o.stop()}},e)})),ym.apply(this,arguments)}function Ib(e){return um(e)}function Ad(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Az(t,r,n)})}function Az(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return !e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function Lz(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&dt(t.target)==="object"&&e in t.target?t.target[e]:t}var ur=[];function Pb(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var CS=function(e){co(n,e);var t=uo(n);function n(r){var o;if(bn(this,n),o=t.call(this,r),U(xt(o),"state",{resetCount:0}),U(xt(o),"cancelRegisterFunc",null),U(xt(o),"mounted",!1),U(xt(o),"touched",!1),U(xt(o),"dirty",!1),U(xt(o),"validatePromise",void 0),U(xt(o),"prevValidating",void 0),U(xt(o),"errors",ur),U(xt(o),"warnings",ur),U(xt(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Ib(d)),o.cancelRegisterFunc=null;}),U(xt(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,m=d===void 0?[]:d;return c!==void 0?[].concat(We(m),We(c)):[]}),U(xt(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(d):m})}),U(xt(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});}),U(xt(o),"metaCache",null),U(xt(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=Y(Y({},o.getMeta()),{},{destroy:l});Es(o.metaCache,u)||c(u),o.metaCache=u;}else o.metaCache=null;}),U(xt(o),"onStoreChange",function(l,c,u){var d=o.props,m=d.shouldUpdate,h=d.dependencies,v=h===void 0?[]:h,g=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),S=o.getValue(p),E=c&&Ad(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==S&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=ur,o.warnings=ur,o.triggerMetaEvent()),u.type){case"reset":if(!c||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=ur,o.warnings=ur,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var $=u.data;if(E){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||ur),"warnings"in $&&(o.warnings=$.warnings||ur),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&Ad(c,b,!0)){o.reRender();return}if(m&&!b.length&&Pb(m,l,p,y,S,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=v.map(Ib);if(w.some(function(C){return Ad(u.relatedFields,C)})){o.reRender();return}break}default:if(E||(!v.length||b.length||m)&&Pb(m,l,p,y,S,u)){o.reRender();return}break}m===!0&&o.reRender();}),U(xt(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},m=d.triggerName,h=d.validateOnly,v=h===void 0?!1:h,g=Promise.resolve().then(aa(An().mark(function p(){var b,y,S,E,$,w,C;return An().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(o.mounted){I.next=2;break}return I.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,E=b.messageVariables,$=b.validateDebounce,w=o.getRules(),m&&(w=w.filter(function(_){return _}).filter(function(_){var k=_.validateTrigger;if(!k)return !0;var O=um(k);return O.includes(m)})),!($&&m)){I.next=10;break}return I.next=8,new Promise(function(_){setTimeout(_,$);});case 8:if(o.validatePromise===g){I.next=10;break}return I.abrupt("return",[]);case 10:return C=Mz(c,u,w,l,S,E),C.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ur;if(o.validatePromise===g){var k;o.validatePromise=null;var O=[],P=[];(k=_.forEach)===null||k===void 0||k.call(_,function(R){var T=R.rule.warningOnly,N=R.errors,M=N===void 0?ur:N;T?P.push.apply(P,We(M)):O.push.apply(O,We(M));}),o.errors=O,o.warnings=P,o.triggerMetaEvent(),o.reRender();}}),I.abrupt("return",C);case 13:case"end":return I.stop()}},p)})));return v||(o.validatePromise=g,o.dirty=!0,o.errors=ur,o.warnings=ur,o.triggerMetaEvent(),o.reRender()),g}),U(xt(o),"isFieldValidating",function(){return !!o.validatePromise}),U(xt(o),"isFieldTouched",function(){return o.touched}),U(xt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(vl),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),U(xt(o),"getErrors",function(){return o.errors}),U(xt(o),"getWarnings",function(){return o.warnings}),U(xt(o),"isListField",function(){return o.props.isListField}),U(xt(o),"isList",function(){return o.props.isList}),U(xt(o),"isPreserve",function(){return o.props.preserve}),U(xt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),U(xt(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return Y(Y({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=er(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),U(xt(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return ec(l||c(!0),u)}),U(xt(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,g=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),S=p.getInternalHooks,E=p.getFieldsValue,$=S(vl),w=$.dispatch,C=o.getValue(),x=g||function(O){return U({},v,O)},I=l[u],_=Y(Y({},l),x(C));_[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var O,P=arguments.length,R=new Array(P),T=0;T<P;T++)R[T]=arguments[T];m?O=m.apply(void 0,R):O=Lz.apply(void 0,[v].concat(R)),h&&(O=h(O,C,E(!0))),w({type:"updateValue",namePath:y,value:O}),I&&I.apply(void 0,R);};var k=um(b||[]);return k.forEach(function(O){var P=_[O];_[O]=function(){P&&P.apply(void 0,arguments);var R=o.props.rules;R&&R.length&&w({type:"validateField",namePath:y,triggerName:O});};}),_}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(vl),s=i.initEntityValue;s(xt(o));}return o}return yn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(vl),c=l.registerField;this.cancelRegisterFunc=c(this);}a===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:f__namespace.isValidElement(s)?c=f__namespace.cloneElement(s,this.getControlled(s.props)):(Fn(!s,"`children` of Field is not validate ReactElement."),c=s),f__namespace.createElement(f__namespace.Fragment,{key:o},c)}}]),n}(f__namespace.Component);U(CS,"contextType",Z6);U(CS,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Pn(e,t){var n=Y({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const vr=f__namespace.createContext({}),is=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(vr),a=f.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return f__namespace.createElement(vr.Provider,{value:a},t)},Dz=f.createContext(null),SS=Dz,jz=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Tt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Tt(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({},Tt(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({},Qo(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 zz(e,t){const n=ut(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [jz(n)]}const $S=At("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [zz(n,e)]});var Bz=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Fz=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:m}=e,h=Bz(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:g,checkbox:p}=f__namespace.useContext(Ye),b=f__namespace.useContext(SS),{isFormItemInput:y}=f__namespace.useContext(vr),S=f__namespace.useContext(Xr),E=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:S,$=f__namespace.useRef(h.value);f__namespace.useEffect(()=>{b==null||b.registerValue(h.value);},[]),f__namespace.useEffect(()=>{if(!d)return h.value!==$.current&&(b==null||b.cancelValue($.current),b==null||b.registerValue(h.value),$.current=h.value),()=>b==null?void 0:b.cancelValue(h.value)},[h.value]);const w=v("checkbox",r),[C,x]=$S(w),I=Object.assign({},h);b&&!d&&(I.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:i,value:h.value});},I.name=b.name,I.checked=b.value.includes(h.value));const _=H(`${w}-wrapper`,{[`${w}-rtl`]:g==="rtl",[`${w}-wrapper-checked`]:I.checked,[`${w}-wrapper-disabled`]:E,[`${w}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,x),k=H({[`${w}-indeterminate`]:s},bu,x),O=s?"mixed":void 0;return C(f__namespace.createElement(Ns,{component:"Checkbox",disabled:E},f__namespace.createElement("label",{className:_,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(bS,Object.assign({"aria-checked":O},I,{prefixCls:w,className:k,disabled:E,ref:t})),i!==void 0&&f__namespace.createElement("span",null,i))))},Hz=f__namespace.forwardRef(Fz),wS=Hz;var Wz=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vz=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:l,onChange:c}=e,u=Wz(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(Ye),[h,v]=f__namespace.useState(u.value||n||[]),[g,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&v(u.value||[]);},[u.value]);const b=f__namespace.useMemo(()=>o.map(P=>typeof P=="string"||typeof P=="number"?{label:P,value:P}:P),[o]),y=P=>{p(R=>R.filter(T=>T!==P));},S=P=>{p(R=>[].concat(We(R),[P]));},E=P=>{const R=h.indexOf(P.value),T=We(h);R===-1?T.push(P.value):T.splice(R,1),"value"in u||v(T),c==null||c(T.filter(N=>g.includes(N)).sort((N,M)=>{const L=b.findIndex(z=>z.value===N),j=b.findIndex(z=>z.value===M);return L-j}));},$=d("checkbox",a),w=`${$}-group`,[C,x]=$S($),I=Pn(u,["value","disabled"]),_=o.length?b.map(P=>f__namespace.createElement(wS,{prefixCls:$,key:P.value.toString(),disabled:"disabled"in P?P.disabled:u.disabled,value:P.value,checked:h.includes(P.value),onChange:P.onChange,className:`${w}-item`,style:P.style,title:P.title},P.label)):r,k={toggleOption:E,value:h,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y},O=H(w,{[`${w}-rtl`]:m==="rtl"},i,s,x);return C(f__namespace.createElement("div",Object.assign({className:O,style:l},I,{ref:t}),f__namespace.createElement(SS.Provider,{value:k},_)))},Uz=f__namespace.forwardRef(Vz),Gz=f__namespace.memo(Uz),cv=wS;cv.Group=Gz;cv.__ANT_CHECKBOX=!0;const yu=cv;var Kz={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 qz=Kz;var Xz=1/0,Yz="[object Symbol]",Zz=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qz=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cu="\\ud800-\\udfff",xS="\\u0300-\\u036f\\ufe20-\\ufe23",ES="\\u20d0-\\u20f0",OS="\\u2700-\\u27bf",IS="a-z\\xdf-\\xf6\\xf8-\\xff",Jz="\\xac\\xb1\\xd7\\xf7",e8="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",t8="\\u2000-\\u206f",n8=" \\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",PS="A-Z\\xc0-\\xd6\\xd8-\\xde",_S="\\ufe0e\\ufe0f",RS=Jz+e8+t8+n8,uv="['’]",r8="["+Cu+"]",_b="["+RS+"]",uc="["+xS+ES+"]",TS="\\d+",o8="["+OS+"]",MS="["+IS+"]",NS="[^"+Cu+RS+TS+OS+IS+PS+"]",Cm="\\ud83c[\\udffb-\\udfff]",a8="(?:"+uc+"|"+Cm+")",kS="[^"+Cu+"]",dv="(?:\\ud83c[\\udde6-\\uddff]){2}",fv="[\\ud800-\\udbff][\\udc00-\\udfff]",Pa="["+PS+"]",AS="\\u200d",Rb="(?:"+MS+"|"+NS+")",i8="(?:"+Pa+"|"+NS+")",Tb="(?:"+uv+"(?:d|ll|m|re|s|t|ve))?",Mb="(?:"+uv+"(?:D|LL|M|RE|S|T|VE))?",LS=a8+"?",DS="["+_S+"]?",s8="(?:"+AS+"(?:"+[kS,dv,fv].join("|")+")"+DS+LS+")*",jS=DS+LS+s8,l8="(?:"+[o8,dv,fv].join("|")+")"+jS,c8="(?:"+[kS+uc+"?",uc,dv,fv,r8].join("|")+")",u8=RegExp(uv,"g"),d8=RegExp(uc,"g"),f8=RegExp(Cm+"(?="+Cm+")|"+c8+jS,"g"),m8=RegExp([Pa+"?"+MS+"+"+Tb+"(?="+[_b,Pa,"$"].join("|")+")",i8+"+"+Mb+"(?="+[_b,Pa+Rb,"$"].join("|")+")",Pa+"?"+Rb+"+"+Tb,Pa+"+"+Mb,TS,l8].join("|"),"g"),h8=RegExp("["+AS+Cu+xS+ES+_S+"]"),v8=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,g8={À:"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"},p8=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,b8=typeof self=="object"&&self&&self.Object===Object&&self,y8=p8||b8||Function("return this")();function C8(e,t,n,r){var o=-1,a=e?e.length:0;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function S8(e){return e.split("")}function $8(e){return e.match(Zz)||[]}function w8(e){return function(t){return e==null?void 0:e[t]}}var x8=w8(g8);function zS(e){return h8.test(e)}function E8(e){return v8.test(e)}function O8(e){return zS(e)?I8(e):S8(e)}function I8(e){return e.match(f8)||[]}function P8(e){return e.match(m8)||[]}var _8=Object.prototype,R8=_8.toString,Nb=y8.Symbol,kb=Nb?Nb.prototype:void 0,Ab=kb?kb.toString:void 0;function T8(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}function M8(e){if(typeof e=="string")return e;if(D8(e))return Ab?Ab.call(e):"";var t=e+"";return t=="0"&&1/e==-Xz?"-0":t}function N8(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:T8(e,t,n)}function k8(e){return function(t){t=Su(t);var n=zS(t)?O8(t):void 0,r=n?n[0]:t.charAt(0),o=n?N8(n,1).join(""):t.slice(1);return r[e]()+o}}function A8(e){return function(t){return C8(H8(B8(t).replace(u8,"")),e,"")}}function L8(e){return !!e&&typeof e=="object"}function D8(e){return typeof e=="symbol"||L8(e)&&R8.call(e)==Yz}function Su(e){return e==null?"":M8(e)}var j8=A8(function(e,t,n){return t=t.toLowerCase(),e+(n?z8(t):t)});function z8(e){return F8(Su(e).toLowerCase())}function B8(e){return e=Su(e),e&&e.replace(Qz,x8).replace(d8,"")}var F8=k8("toUpperCase");function H8(e,t,n){return e=Su(e),t=n?void 0:t,t===void 0?E8(e)?P8(e):$8(e):e.match(t)||[]}var W8=j8;const V8=Ft(W8);function U8(e,t){Fn(e,"[@ant-design/icons] ".concat(t));}function Lb(e){return dt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(dt(e.icon)==="object"||typeof e.icon=="function")}function Db(){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[V8(n)]=r;}return t},{})}function Sm(e,t,n){return n?f.createElement(e.tag,Y(Y({key:t},Db(e.attrs)),n),(e.children||[]).map(function(r,o){return Sm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,Y({key:t},Db(e.attrs)),(e.children||[]).map(function(r,o){return Sm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function BS(e){return oo(e)[0]}function FS(e){return e?Array.isArray(e)?e:[e]:[]}var G8=`
.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);
}
}
`,K8=function(t){var n=f.useContext(Uh),r=n.csp,o=n.prefixCls,a=G8;o&&(a=a.replace(/anticon/g,o)),f.useEffect(function(){var i=t.current,s=sc(i);Wa(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},q8=["icon","className","onClick","style","primaryColor","secondaryColor"],Wi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function X8(e){var t=e.primaryColor,n=e.secondaryColor;Wi.primaryColor=t,Wi.secondaryColor=n||BS(t),Wi.calculated=!!n;}function Y8(){return Y({},Wi)}var $u=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=Je(t,q8),c=f__namespace.useRef(),u=Wi;if(i&&(u={primaryColor:i,secondaryColor:s||BS(i)}),K8(c),U8(Lb(n),"icon should be icon definiton, but got ".concat(n)),!Lb(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=Y(Y({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Sm(d.icon,"svg-".concat(d.name),Y(Y({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};$u.displayName="IconReact";$u.getTwoToneColors=Y8;$u.setTwoToneColors=X8;const mv=$u;function HS(e){var t=FS(e),n=Q(t,2),r=n[0],o=n[1];return mv.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Z8(){var e=mv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Q8=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];HS(S5.primary);var wu=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Je(e,Q8),d=f__namespace.useContext(Uh),m=d.prefixCls,h=m===void 0?"anticon":m,v=d.rootClassName,g=H(v,h,(n={},U(n,"".concat(h,"-").concat(o.name),!!o.name),U(n,"".concat(h,"-spin"),!!a||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=FS(c),S=Q(y,2),E=S[0],$=S[1];return f__namespace.createElement("span",$e({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:g}),f__namespace.createElement(mv,{icon:o,primaryColor:E,secondaryColor:$,style:b}))});wu.displayName="AntdIcon";wu.getTwoToneColor=Z8;wu.setTwoToneColor=HS;const Cn=wu;var J8=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:qz}))};const WS=f__namespace.forwardRef(J8),Ga=e=>e?typeof e=="function"?e():e:null,eB=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},Tt(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:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},rv(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},tB=e=>{const{componentCls:t}=e;return {[t]:rs.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},nB=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:s,lineHeight:l,padding:c}=e,u=i-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:`${a}px ${h}px`}}}},VS=At("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=ut(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [eB(o),tB(o),r&&nB(o),vu(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]});var rB=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oB=(e,t,n)=>{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},Ga(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},Ga(n)))},aB=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:l}=e;return f__namespace.createElement("div",{className:H(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(tv,Object.assign({},e,{className:t,prefixCls:n}),l||oB(n,i,s)))},iB=e=>{const{prefixCls:t}=e,n=rB(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(Ye),o=r("popover",t),[a,i]=VS(o);return a(f__namespace.createElement(aB,Object.assign({},n,{prefixCls:o,hashId:i})))},US=iB;var sB=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lB=e=>{let{title:t,content:n,prefixCls:r}=e;return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${r}-title`},Ga(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},Ga(n)))},GS=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=sB(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(Ye),h=m("popover",n),[v,g]=VS(h),p=m(),b=H(a,g);return v(f__namespace.createElement(Ts,Object.assign({placement:i,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(lB,{prefixCls:h,title:r,content:o}):null,transitionName:mu(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});GS._InternalPanelDoNotUseOrYouWillBeFired=US;const xu=GS;var cB=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const KS=f__namespace.createContext(void 0),uB=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Ye),{prefixCls:r,size:o,className:a}=e,i=cB(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=nr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=H(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return f__namespace.createElement(KS.Provider,{value:o},f__namespace.createElement("div",Object.assign({},i,{className:u})))},dB=uB,jb=/^[\u4e00-\u9fa5]{2}$/,$m=jb.test.bind(jb);function qS(e){return e==="danger"?{danger:!0}:{type:e}}function zb(e){return typeof e=="string"}function Ld(e){return e==="text"||e==="link"}function fB(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&zb(e.type)&&$m(e.props.children)?In(e,{children:e.props.children.split("").join(n)}):zb(e)?$m(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):uS(e)?f.createElement("span",null,e):e}function mB(e,t){let n=!1;const r=[];return f.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=i;}),f.Children.map(r,o=>fB(o,t))}const hB=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=H(`${a}-icon`,n);return f.createElement("span",{ref:t,className:i,style:r},o)}),XS=hB;var vB={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 gB=vB;var pB=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:gB}))};const hv=f__namespace.forwardRef(pB),Bb=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=H(`${n}-loading-icon`,r);return f.createElement(XS,{prefixCls:n,className:i,style:o,ref:t},f.createElement(hv,{className:a}))}),Dd=()=>({width:0,opacity:0,transform:"scale(0)"}),jd=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),bB=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?f.createElement(Bb,{prefixCls:t,className:o,style:a}):f.createElement(fo,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Dd,onAppearActive:jd,onEnterStart:Dd,onEnterActive:jd,onLeaveStart:jd,onLeaveActive:Dd},(s,l)=>{let{className:c,style:u}=s;return f.createElement(Bb,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},yB=bB,Fb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),CB=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Fb(`${t}-primary`,o),Fb(`${t}-danger`,a)]}},SB=CB,$B=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},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:'""'}}}}}}},io=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),wB=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),xB=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),EB=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),ss=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},io(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),vv=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},EB(e))}),YS=e=>Object.assign({},vv(e)),dc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ZS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YS(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),io(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ss(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},io(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ss(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),vv(e))}),OB=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YS(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),io(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),ss(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},io(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),ss(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vv(e))}),IB=e=>Object.assign(Object.assign({},ZS(e)),{borderStyle:"dashed"}),PB=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},io(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),dc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},io(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),dc(e))}),_B=e=>Object.assign(Object.assign(Object.assign({},io(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),dc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dc(e)),io(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),RB=e=>{const{componentCls:t}=e;return {[`${t}-default`]:ZS(e),[`${t}-primary`]:OB(e),[`${t}-dashed`]:IB(e),[`${t}-link`]:PB(e),[`${t}-text`]:_B(e),[`${t}-ghost`]:ss(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},gv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*a)/2-i),d=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${l}px`,borderRadius:s,[`&${d}`]:{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}`]:wB(e)},{[`${n}${n}-round${t}`]:xB(e)}]},TB=e=>gv(ut(e,{fontSize:e.contentFontSize})),MB=e=>{const t=ut(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return gv(t,`${e.componentCls}-sm`)},NB=e=>{const t=ut(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return gv(t,`${e.componentCls}-lg`)},kB=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},QS=e=>{const{paddingInline:t,onlyIconSize:n}=e;return ut(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},JS=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),AB=At("Button",e=>{const t=QS(e);return [$B(t),MB(t),TB(t),NB(t),kB(t),RB(t),SB(t)]},JS);function LB(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function DB(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 Eu(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({},LB(e,r,t)),DB(n,r,t))}}function jB(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function zB(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 BB(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},jB(e,t)),zB(e.componentCls,t))}}const FB=Yh(["Button","compact"],e=>{const t=QS(e);return [Eu(t),BB(t)]},JS);var HB=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function WB(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return {loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return {loading:!!e,delay:0}}const VB=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:m,rootClassName:h,children:v,icon:g,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:S,style:E={}}=e,$=HB(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:w,autoInsertSpaceInButton:C,direction:x,button:I}=f.useContext(Ye),_=w("btn",a),[k,O]=AB(_),P=f.useContext(Xr),R=d??P,T=f.useContext(KS),N=f.useMemo(()=>WB(o),[o]),[M,L]=f.useState(N.loading),[j,z]=f.useState(!1),B=Rn(t,f.createRef()),W=f.Children.count(v)===1&&!g&&!Ld(i);f.useEffect(()=>{let he=null;N.delay>0?he=setTimeout(()=>{he=null,L(!0);},N.delay):L(N.loading);function fe(){he&&(clearTimeout(he),he=null);}return fe},[N]),f.useEffect(()=>{if(!B||!B.current||C===!1)return;const he=B.current.textContent;W&&$m(he)?j||z(!0):j&&z(!1);},[B]);const F=he=>{const{onClick:fe}=e;if(M||R){he.preventDefault();return}fe==null||fe(he);},X=C!==!1,{compactSize:q,compactItemClassnames:K}=pi(_,x),G={large:"lg",small:"sm",middle:void 0},J=Wn(he=>{var fe,Pe;return (Pe=(fe=c??q)!==null&&fe!==void 0?fe:T)!==null&&Pe!==void 0?Pe:he}),oe=J&&G[J]||"",ue=M?"loading":g,me=Pn($,["navigate"]),te=H(_,O,{[`${_}-${l}`]:l!=="default"&&l,[`${_}-${i}`]:i,[`${_}-${oe}`]:oe,[`${_}-icon-only`]:!v&&v!==0&&!!ue,[`${_}-background-ghost`]:p&&!Ld(i),[`${_}-loading`]:M,[`${_}-two-chinese-chars`]:j&&X&&!M,[`${_}-block`]:b,[`${_}-dangerous`]:!!s,[`${_}-rtl`]:x==="rtl"},K,m,h,I==null?void 0:I.className),ae=Object.assign(Object.assign({},I==null?void 0:I.style),E),ce=H(S==null?void 0:S.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),Z=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),ne=g&&!M?f.createElement(XS,{prefixCls:_,className:ce,style:Z},g):f.createElement(yB,{existIcon:!!g,prefixCls:_,loading:!!M}),ee=v||v===0?mB(v,W&&X):null;if(me.href!==void 0)return k(f.createElement("a",Object.assign({},me,{className:H(te,{[`${_}-disabled`]:R}),style:ae,onClick:F,ref:B}),ne,ee));let de=f.createElement("button",Object.assign({},$,{type:y,className:te,style:ae,onClick:F,disabled:R,ref:B}),ne,ee,K&&f.createElement(FB,{key:"compact",prefixCls:_}));return Ld(i)||(de=f.createElement(Ns,{component:"Button",disabled:!!M},de)),k(de)},pv=f.forwardRef(VB);pv.Group=dB;pv.__ANT_BUTTON=!0;const Kt=pv;function Hb(e){return !!(e&&e.then)}const UB=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=f__namespace.useRef(!1),m=f__namespace.useRef(null),[h,v]=Go(!1),g=function(){a==null||a.apply(void 0,arguments);};f__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var S;(S=m.current)===null||S===void 0||S.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{Hb(y)&&(v(!0),y.then(function(){v(!1,!0),g.apply(void 0,arguments),d.current=!1;},S=>{if(v(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(S)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){g();return}let S;if(s){if(S=u(y),c&&!Hb(S)){d.current=!1,g(y);return}}else if(u.length)S=u(a),d.current=!1;else if(S=u(),!S){g();return}p(S);};return f__namespace.createElement(Kt,Object.assign({},qS(t),{onClick:b,loading:h,prefixCls:r},o,{ref:m}),n)},GB=UB,KB=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,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:i,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},e$=At("Popconfirm",e=>KB(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},{resetStyle:!1});var qB=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const t$=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:l="primary",icon:c=f__namespace.createElement(WS,null),showCancel:u=!0,close:d,onConfirm:m,onCancel:h,onPopupClick:v}=e,{getPrefixCls:g}=f__namespace.useContext(Ye),[p]=vi("Popconfirm",ro.Popconfirm),b=Ga(o),y=Ga(a);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:v},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:H(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(Kt,Object.assign({onClick:h,size:"small"},r),i??(p==null?void 0:p.cancelText)),f__namespace.createElement(GB,{buttonProps:Object.assign(Object.assign({size:"small"},qS(l)),n),actionFn:m,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},XB=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=qB(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=f__namespace.useContext(Ye),s=i("popconfirm",t),[l]=e$(s);return l(f__namespace.createElement(US,{placement:n,className:H(s,r),style:o,content:f__namespace.createElement(t$,Object.assign({prefixCls:s},a))}))},YB=XB;var ZB=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const n$=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:a="primary",icon:i=f__namespace.createElement(WS,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=ZB(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=f__namespace.useContext(Ye),[h,v]=Bt(!1,{value:e.open,defaultValue:e.defaultOpen}),g=(x,I)=>{v(x,!0),u==null||u(x),c==null||c(x,I);},p=x=>{g(!1,x);},b=x=>{var I;return (I=e.onConfirm)===null||I===void 0?void 0:I.call(globalThis,x)},y=x=>{var I;g(!1,x),(I=e.onCancel)===null||I===void 0||I.call(globalThis,x);},S=x=>{x.keyCode===le.ESC&&h&&g(!1,x);},E=x=>{const{disabled:I=!1}=e;I||g(x);},$=m("popconfirm",n),w=H($,l),[C]=e$($);return C(f__namespace.createElement(xu,Object.assign({},Pn(d,["title"]),{trigger:o,placement:r,onOpenChange:E,open:h,ref:t,overlayClassName:w,content:f__namespace.createElement(t$,Object.assign({okType:a,icon:i},e,{prefixCls:$,close:p,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),In(s,{onKeyDown:x=>{var I,_;f__namespace.isValidElement(s)&&((_=s==null?void 0:(I=s.props).onKeyDown)===null||_===void 0||_.call(I,x)),S(x);}})))});n$._InternalPanelDoNotUseOrYouWillBeFired=YB;const Wb=n$;var QB={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 JB=QB;var eF=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:JB}))};const bv=f__namespace.forwardRef(eF);var tF={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 nF=tF;var rF=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:nF}))};const oF=f__namespace.forwardRef(rF);function wm(){return typeof BigInt=="function"}function Xo(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("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function yv(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function ls(e){var t=String(e);if(yv(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(".")&&Cv(t)?t.length-t.indexOf(".")-1:0}function Ou(e){var t=String(e);if(yv(e)){if(e>Number.MAX_SAFE_INTEGER)return String(wm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(wm()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ls(t));}return Xo(t).fullStr}function Cv(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function r$(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var aF=function(){function e(t){if(bn(this,e),U(this,"origin",""),U(this,"number",void 0),U(this,"empty",void 0),r$(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return yn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(ls(this.number),ls(r));return new e(o.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ou(this.number):this.origin}}]),e}(),iF=function(){function e(t){if(bn(this,e),U(this,"origin",""),U(this,"negative",void 0),U(this,"integer",void 0),U(this,"decimal",void 0),U(this,"decimalLen",void 0),U(this,"empty",void 0),U(this,"nan",void 0),r$(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(yv(n)&&(n=Number(n)),n=typeof n=="string"?n:Ou(n),Cv(n)){var r=Xo(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length;}else this.nan=!0;}return yn(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),a=this.alignDecimal(o),i=r.alignDecimal(o),s=(a+i).toString(),l=Xo(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()?"":Xo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Er(e){return wm()?new iF(e):new aF(e)}function kl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=Xo(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Er(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return kl(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 ga(e){return !!(e.addonBefore||e.addonAfter)}function zd(e){return !!(e.prefix||e.suffix||e.allowClear)}function Vi(e,t,n,r){if(n){var o=t;if(t.type==="click"){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.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 o$(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 xm(e){return typeof e>"u"||e===null?"":String(e)}var Sv=function(t){var n,r,o=t.inputElement,a=t.prefixCls,i=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,m=t.disabled,h=t.readOnly,v=t.focused,g=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,S=t.hidden,E=t.classes,$=t.classNames,w=t.dataAttrs,C=t.styles,x=t.components,I=(x==null?void 0:x.affixWrapper)||"span",_=(x==null?void 0:x.groupWrapper)||"span",k=(x==null?void 0:x.wrapper)||"span",O=(x==null?void 0:x.groupAddon)||"span",P=f.useRef(null),R=function(q){var K;(K=P.current)!==null&&K!==void 0&&K.contains(q.target)&&(g==null||g());},T=function(){var q;if(!p)return null;var K=!m&&!h&&b,G="".concat(a,"-clear-icon"),J=dt(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(ue){return ue.preventDefault()},className:H(G,(q={},U(q,"".concat(G,"-hidden"),!K),U(q,"".concat(G,"-has-suffix"),!!s),q)),role:"button",tabIndex:-1},J)},N=f.cloneElement(o,{value:b,hidden:S,className:H((n=o.props)===null||n===void 0?void 0:n.className,!zd(t)&&!ga(t)&&u)||null,style:Y(Y({},(r=o.props)===null||r===void 0?void 0:r.style),!zd(t)&&!ga(t)?d:{})});if(zd(t)){var M,L="".concat(a,"-affix-wrapper"),j=H(L,(M={},U(M,"".concat(L,"-disabled"),m),U(M,"".concat(L,"-focused"),v),U(M,"".concat(L,"-readonly"),h),U(M,"".concat(L,"-input-with-clear-btn"),s&&p&&b),M),!ga(t)&&u,E==null?void 0:E.affixWrapper,$==null?void 0:$.affixWrapper),z=(s||p)&&f.createElement("span",{className:H("".concat(a,"-suffix"),$==null?void 0:$.suffix),style:C==null?void 0:C.suffix},T(),s);N=f.createElement(I,$e({className:j,style:Y(Y({},ga(t)?void 0:d),C==null?void 0:C.affixWrapper),hidden:!ga(t)&&S,onClick:R},w==null?void 0:w.affixWrapper,{ref:P}),i&&f.createElement("span",{className:H("".concat(a,"-prefix"),$==null?void 0:$.prefix),style:C==null?void 0:C.prefix},i),f.cloneElement(o,{value:b,hidden:null}),z);}if(ga(t)){var V="".concat(a,"-group"),B="".concat(V,"-addon"),W=H("".concat(a,"-wrapper"),V,E==null?void 0:E.wrapper),F=H("".concat(a,"-group-wrapper"),u,E==null?void 0:E.group);return f.createElement(_,{className:F,style:d,hidden:S},f.createElement(k,{className:W},l&&f.createElement(O,{className:B},l),f.cloneElement(N,{hidden:null}),c&&f.createElement(O,{className:B},c)))}return N},sF=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],lF=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,m=e.className,h=e.maxLength,v=e.suffix,g=e.showCount,p=e.type,b=p===void 0?"text":p,y=e.classes,S=e.classNames,E=e.styles,$=Je(e,sF),w=Bt(e.defaultValue,{value:e.value}),C=Q(w,2),x=C[0],I=C[1],_=f.useState(!1),k=Q(_,2),O=k[0],P=k[1],R=f.useRef(null),T=function(F){R.current&&o$(R.current,F);};f.useImperativeHandle(t,function(){return {focus:T,blur:function(){var F;(F=R.current)===null||F===void 0||F.blur();},setSelectionRange:function(F,X,q){var K;(K=R.current)===null||K===void 0||K.setSelectionRange(F,X,q);},select:function(){var F;(F=R.current)===null||F===void 0||F.select();},input:R.current}}),f.useEffect(function(){P(function(W){return W&&u?!1:W});},[u]);var N=function(F){e.value===void 0&&I(F.target.value),R.current&&Vi(R.current,F,r);},M=function(F){i&&F.key==="Enter"&&i(F),s==null||s(F);},L=function(F){P(!0),o==null||o(F);},j=function(F){P(!1),a==null||a(F);},z=function(F){I(""),T(),R.current&&Vi(R.current,F,r);},V=function(){var F=Pn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",$e({autoComplete:n},F,{onChange:N,onFocus:L,onBlur:j,onKeyDown:M,className:H(c,U({},"".concat(c,"-disabled"),u),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:R,size:d,type:b}))},B=function(){var F=Number(h)>0;if(v||g){var X=xm(x),q=We(X).length,K=dt(g)==="object"?g.formatter({value:X,count:q,maxLength:h}):"".concat(q).concat(F?" / ".concat(h):"");return f.createElement(f.Fragment,null,!!g&&f.createElement("span",{className:H("".concat(c,"-show-count-suffix"),U({},"".concat(c,"-show-count-has-suffix"),!!v),S==null?void 0:S.count),style:Y({},E==null?void 0:E.count)},K),v)}return null};return f.createElement(Sv,$e({},$,{prefixCls:c,className:m,inputElement:V(),handleReset:z,value:xm(x),focused:O,triggerFocus:T,suffix:B(),disabled:u,classes:y,classNames:S,styles:E}))});function cF(e,t){var n=f.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=a.length;if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else if(a.startsWith(s))u=s.length;else {var d=s[c-1],m=a.indexOf(d,c-1);m!==-1&&(u=m+1);}e.setSelectionRange(u,u);}catch(h){Fn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var uF=function(){var t=f.useState(!1),n=Q(t,2),r=n[0],o=n[1];return qt(function(){o(du());},[]),r},dF=200,fF=600;function mF(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef([]),c=f__namespace.useRef();c.current=i;var u=function(){clearTimeout(s.current);},d=function(S,E){S.preventDefault(),u(),c.current(E);function $(){c.current(E),s.current=setTimeout($,dF);}s.current=setTimeout($,fF);};f__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return St.cancel(y)});}},[]);var m=uF();if(m)return null;var h="".concat(t,"-handler"),v=H(h,"".concat(h,"-up"),U({},"".concat(h,"-up-disabled"),o)),g=H(h,"".concat(h,"-down"),U({},"".concat(h,"-down-disabled"),a)),p=function(){return l.current.push(St(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return f__namespace.createElement("div",{className:"".concat(h,"-wrap")},f__namespace.createElement("span",$e({},b,{onMouseDown:function(S){d(S,!0);},"aria-label":"Increase Value","aria-disabled":o,className:v}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",$e({},b,{onMouseDown:function(S){d(S,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Vb(e){var t=typeof e=="number"?Ou(e):Xo(e).fullStr,n=t.includes(".");return n?Xo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const hF=function(){var e=f.useRef(0),t=function(){St.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=St(function(){n();});}};var vF=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],gF=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Ub=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Gb=function(t){var n=Er(t);return n.isInvalidate()?null:n},pF=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,a=e.className,i=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,v=e.readOnly,g=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,S=y===void 0?!0:y,E=e.classNames,$=e.stringMode,w=e.parser,C=e.formatter,x=e.precision,I=e.decimalSeparator,_=e.onChange,k=e.onInput,O=e.onPressEnter,P=e.onStep,R=Je(e,vF),T="".concat(o,"-input"),N=f__namespace.useRef(null),M=f__namespace.useState(!1),L=Q(M,2),j=L[0],z=L[1],V=f__namespace.useRef(!1),B=f__namespace.useRef(!1),W=f__namespace.useRef(!1),F=f__namespace.useState(function(){return Er(m??d)}),X=Q(F,2),q=X[0],K=X[1];function G(Re){m===void 0&&K(Re);}var J=f__namespace.useCallback(function(Re,re){if(!re)return x>=0?x:Math.max(ls(Re),ls(u))},[x,u]),oe=f__namespace.useCallback(function(Re){var re=String(Re);if(w)return w(re);var ve=re;return I&&(ve=ve.replace(I,".")),ve.replace(/[^\w.-]+/g,"")},[w,I]),ue=f__namespace.useRef(""),me=f__namespace.useCallback(function(Re,re){if(C)return C(Re,{userTyping:re,input:String(ue.current)});var ve=typeof Re=="number"?Ou(Re):Re;if(!re){var pe=J(ve,re);if(Cv(ve)&&(I||pe>=0)){var ye=I||".";ve=kl(ve,ye,pe);}}return ve},[C,J,I]),te=f__namespace.useState(function(){var Re=d??m;return q.isInvalidate()&&["string","number"].includes(dt(Re))?Number.isNaN(Re)?"":Re:me(q.toString(),!1)}),ae=Q(te,2),ce=ae[0],Z=ae[1];ue.current=ce;function ne(Re,re){Z(me(Re.isInvalidate()?Re.toString(!1):Re.toString(!re),re));}var ee=f__namespace.useMemo(function(){return Gb(l)},[l,x]),de=f__namespace.useMemo(function(){return Gb(s)},[s,x]),he=f__namespace.useMemo(function(){return !ee||!q||q.isInvalidate()?!1:ee.lessEquals(q)},[ee,q]),fe=f__namespace.useMemo(function(){return !de||!q||q.isInvalidate()?!1:q.lessEquals(de)},[de,q]),Pe=cF(N.current,j),je=Q(Pe,2),Ae=je[0],be=je[1],Ce=function(re){return ee&&!re.lessEquals(ee)?ee:de&&!de.lessEquals(re)?de:null},Ne=function(re){return !Ce(re)},Ve=function(re,ve){var pe=re,ye=Ne(pe)||pe.isEmpty();if(!pe.isEmpty()&&!ve&&(pe=Ce(pe)||pe,ye=!0),!v&&!h&&ye){var qe=pe.toString(),Ie=J(qe,ve);return Ie>=0&&(pe=Er(kl(qe,".",Ie)),Ne(pe)||(pe=Er(kl(qe,".",Ie,!0)))),pe.equals(q)||(G(pe),_==null||_(pe.isEmpty()?null:Ub($,pe)),m===void 0&&ne(pe,ve)),pe}return q},Ue=hF(),Fe=function Re(re){if(Ae(),ue.current=re,Z(re),!B.current){var ve=oe(re),pe=Er(ve);pe.isNaN()||Ve(pe,!0);}k==null||k(re),Ue(function(){var ye=re;w||(ye=re.replace(/。/g,".")),ye!==re&&Re(ye);});},Le=function(){B.current=!0;},at=function(){B.current=!1,Fe(N.current.value);},st=function(re){Fe(re.target.value);},_e=function(re){var ve;if(!(re&&he||!re&&fe)){V.current=!1;var pe=Er(W.current?Vb(u):u);re||(pe=pe.negate());var ye=(q||Er(0)).add(pe.toString()),qe=Ve(ye,!1);P==null||P(Ub($,qe),{offset:W.current?Vb(u):u,type:re?"up":"down"}),(ve=N.current)===null||ve===void 0||ve.focus();}},Oe=function(re){var ve=Er(oe(ce)),pe=ve;ve.isNaN()?pe=Ve(q,re):pe=Ve(ve,re),m!==void 0?ne(q,!1):pe.isNaN()||ne(pe,!1);},De=function(){V.current=!0;},yt=function(re){var ve=re.key,pe=re.shiftKey;V.current=!0,W.current=pe,ve==="Enter"&&(B.current||(V.current=!1),Oe(!1),O==null||O(re)),b!==!1&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ve)&&(_e(ve==="Up"||ve==="ArrowUp"),re.preventDefault());},Me=function(){V.current=!1,W.current=!1;},gt=function(){Oe(!1),z(!1),V.current=!1;};return ja(function(){q.isInvalidate()||ne(q,!1);},[x]),ja(function(){var Re=Er(m);K(Re);var re=Er(oe(ce));(!Re.equals(re)||!V.current||C)&&ne(Re,V.current);},[m]),ja(function(){C&&be();},[ce]),f__namespace.createElement("div",{className:H(o,E==null?void 0:E.input,a,(n={},U(n,"".concat(o,"-focused"),j),U(n,"".concat(o,"-disabled"),h),U(n,"".concat(o,"-readonly"),v),U(n,"".concat(o,"-not-a-number"),q.isNaN()),U(n,"".concat(o,"-out-of-range"),!q.isInvalidate()&&!Ne(q)),n)),style:i,onFocus:function(){z(!0);},onBlur:gt,onKeyDown:yt,onKeyUp:Me,onCompositionStart:Le,onCompositionEnd:at,onBeforeInput:De},S&&f__namespace.createElement(mF,{prefixCls:o,upNode:g,downNode:p,upDisabled:he,downDisabled:fe,onStep:_e}),f__namespace.createElement("div",{className:"".concat(T,"-wrap")},f__namespace.createElement("input",$e({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:u},R,{ref:Rn(N,t),className:T,value:ce,onChange:st,disabled:h,readOnly:v}))))}),a$=f__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,m=e.classNames,h=Je(e,gF),v=f__namespace.useRef(null),g=function(b){v.current&&o$(v.current,b);};return f__namespace.createElement(Sv,{inputElement:f__namespace.createElement(pF,$e({prefixCls:o,disabled:n,classNames:m,ref:Rn(v,t)},h)),className:d,triggerFocus:g,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});a$.displayName="InputNumber";function Rr(e,t,n){return H({[`${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 As=(e,t)=>t||e,i$=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ls=e=>({borderColor:e.hoverBorderColor}),fc=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0}),$v=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ls(ut(e,{hoverBorderColor:e.colorBorder})))}),s$=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return {padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},wv=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),Iu=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},fc(ut(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},fc(ut(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Ds=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},i$(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Ls(e)),"&:focus, &-focused":Object.assign({},fc(e)),"&-disabled, &[disabled]":Object.assign({},$v(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({},s$(e)),"&-sm":Object.assign({},wv(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),l$=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({},s$(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},wv(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Yf()),{[`${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}}}})}},bF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,a=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),Ds(e)),Iu(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},yF=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`}}}},CF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ds(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ls(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}}}),yF(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),Iu(e,`${t}-affix-wrapper`))}},SF=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Tt(e)),l$(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},$v(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}}}})}},$F=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return {[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
> ${t},
${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},wF=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function xv(e){return ut(e,{inputAffixPadding:e.paddingXXS})}const Ev=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:m,colorPrimaryHover:h,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:p,colorWarningOutline:b}=e;return {paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,3),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:m,activeBorderColor:h,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${p}`,warningActiveShadow:`0 0 0 ${v}px ${b}`}},Ov=At("Input",e=>{const t=ut(e,xv(e));return [bF(t),wF(t),CF(t),SF(t),$F(t),Eu(t)]},Ev),Kb=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},xF=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:m,handleHoverColor:h,paddingInline:v,paddingBlock:g,handleBg:p,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:S,borderRadiusLG:E,controlWidth:$,handleVisible:w,handleBorderColor:C}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),Ds(e)),Iu(e,t)),{display:"inline-block",width:$,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:E,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},Ls(e)),"&-focused":Object.assign({},fc(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Tt(e)),l$(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},$v(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{width:"100%",padding:`${g}px ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),i$(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:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:w===!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} ${C}`,transition:`all ${m} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},oa()),{color:d,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${C}`,borderEndEndRadius:a}},Kb(e,"lg")),Kb(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:y}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},EF=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},Ds(e)),Iu(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ls(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}}})}},OF=At("InputNumber",e=>{const t=ut(e,xv(e));return [xF(t),EF(t),Eu(t)]},e=>Object.assign(Object.assign({},Ev(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder}));var IF=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const c$=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Ye),o=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:m,bordered:h=!0,readOnly:v,status:g,controls:p}=e,b=IF(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[S,E]=OF(y),{compactSize:$,compactItemClassnames:w}=pi(y,r);let C=f__namespace.createElement(oF,{className:`${y}-handler-up-inner`}),x=f__namespace.createElement(bv,{className:`${y}-handler-down-inner`});const I=typeof p=="boolean"?p:void 0;typeof p=="object"&&(C=typeof p.upIcon>"u"?C:f__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),x=typeof p.downIcon>"u"?x:f__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:_,status:k,isFormItemInput:O,feedbackIcon:P}=f__namespace.useContext(vr),R=As(k,g),T=Wn(V=>{var B;return (B=s??$)!==null&&B!==void 0?B:V}),N=f__namespace.useContext(Xr),M=l??N,L=H({[`${y}-lg`]:T==="large",[`${y}-sm`]:T==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!h,[`${y}-in-form-item`]:O},Rr(y,R),w,E),j=`${y}-group`,z=f__namespace.createElement(a$,Object.assign({ref:o,disabled:M,className:H(a,i),upHandler:C,downHandler:x,prefixCls:y,readOnly:v,controls:I,prefix:m,suffix:_&&P,addonAfter:d&&f__namespace.createElement(Ua,null,f__namespace.createElement(is,{override:!0,status:!0},d)),addonBefore:u&&f__namespace.createElement(Ua,null,f__namespace.createElement(is,{override:!0,status:!0},u)),classNames:{input:L},classes:{affixWrapper:H(Rr(`${y}-affix-wrapper`,R,_),{[`${y}-affix-wrapper-sm`]:T==="small",[`${y}-affix-wrapper-lg`]:T==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!h},E),wrapper:H({[`${j}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:M},E),group:H({[`${y}-group-wrapper-sm`]:T==="small",[`${y}-group-wrapper-lg`]:T==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},Rr(`${y}-group-wrapper`,R,_),E)}},b));return S(z)}),u$=c$,PF=e=>f__namespace.createElement(Jh,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(c$,Object.assign({},e)));u$._InternalPanelDoNotUseOrYouWillBeFired=PF;const Em=u$;function qb(e){return ["small","middle","large"].includes(e)}function Xb(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const d$=f.createContext({latestIndex:0}),_F=d$.Provider,RF=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=f__namespace.useContext(d$);return r==null?null:f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("div",{className:t,style:a},r),n<i&&o&&f__namespace.createElement("span",{className:`${t}-split`},o))},TF=RF;var MF=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NF=f__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=f__namespace.useContext(Ye),{size:s=(a==null?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:m="horizontal",prefixCls:h,split:v,style:g,wrap:p=!1,classNames:b,styles:y}=e,S=MF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,$]=Array.isArray(s)?s:[s,s],w=qb($),C=qb(E),x=Xb($),I=Xb(E),_=er(d,{keepEmpty:!0}),k=l===void 0&&m==="horizontal"?"center":l,O=o("space",h),[P,R]=dS(O),T=H(O,a==null?void 0:a.className,R,`${O}-${m}`,{[`${O}-rtl`]:i==="rtl",[`${O}-align-${k}`]:k,[`${O}-gap-row-${$}`]:w,[`${O}-gap-col-${E}`]:C},c,u),N=H(`${O}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let M=0;const L=_.map((V,B)=>{var W,F;V!=null&&(M=B);const X=V&&V.key||`${N}-${B}`;return f__namespace.createElement(TF,{className:N,key:X,index:B,split:v,style:(W=y==null?void 0:y.item)!==null&&W!==void 0?W:(F=a==null?void 0:a.styles)===null||F===void 0?void 0:F.item},V)}),j=f__namespace.useMemo(()=>({latestIndex:M}),[M]);if(_.length===0)return null;const z={};return p&&(z.flexWrap="wrap"),!C&&I&&(z.columnGap=E),!w&&x&&(z.rowGap=$),P(f__namespace.createElement("div",Object.assign({ref:t,className:T,style:Object.assign(Object.assign(Object.assign({},z),a==null?void 0:a.style),g)},S),f__namespace.createElement(_F,{value:j},L)))}),f$=NF;f$.Compact=Dj;const js=f$;var kF={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 AF=kF;var LF=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:AF}))};const Pu=f__namespace.forwardRef(LF);function DF(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function jF(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.createElement(Pu,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!DF(e,t,o))return [!1,null];const i=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(i):i]}const zF=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return {[o]:Object.assign(Object.assign({},Tt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Iv=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`;return ut(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Pv=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}),m$=At("Tag",e=>{const t=Iv(e);return zF(t)},Pv);var BF=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FF=e=>{const{prefixCls:t,style:n,className:r,checked:o,onChange:a,onClick:i}=e,s=BF(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:l,tag:c}=f__namespace.useContext(Ye),u=g=>{a==null||a(!o),i==null||i(g);},d=l("tag",t),[m,h]=m$(d),v=H(d,`${d}-checkable`,{[`${d}-checkable-checked`]:o},c==null?void 0:c.className,r,h);return m(f__namespace.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),c==null?void 0:c.style),className:v,onClick:u})))},HF=FF,WF=e=>lu(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),VF=Yh(["Tag","preset"],e=>{const t=Iv(e);return WF(t)},Pv);function UF(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const pl=(e,t,n)=>{const r=UF(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},GF=Yh(["Tag","status"],e=>{const t=Iv(e);return [pl(t,"success","Success"),pl(t,"processing","Info"),pl(t,"error","Error"),pl(t,"warning","Warning")]},Pv);var KF=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qF=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:m=!0}=e,h=KF(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:g,tag:p}=f__namespace.useContext(Ye),[b,y]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in h&&y(h.visible);},[h.visible]);const S=gu(l),E=v6(l),$=S||E,w=Object.assign(Object.assign({backgroundColor:l&&!$?l:void 0},p==null?void 0:p.style),a),C=v("tag",n),[x,I]=m$(C),_=H(C,p==null?void 0:p.className,{[`${C}-${l}`]:$,[`${C}-has-color`]:l&&!$,[`${C}-hidden`]:!b,[`${C}-rtl`]:g==="rtl",[`${C}-borderless`]:!m},r,o,I),k=M=>{M.stopPropagation(),c==null||c(M),!M.defaultPrevented&&y(!1);},[,O]=jF(d,u,M=>M===null?f__namespace.createElement(Pu,{className:`${C}-close-icon`,onClick:k}):f__namespace.createElement("span",{className:`${C}-close-icon`,onClick:k},M),null,!1),P=typeof h.onClick=="function"||i&&i.type==="a",R=s||null,T=R?f__namespace.createElement(f__namespace.Fragment,null,R,i&&f__namespace.createElement("span",null,i)):i,N=f__namespace.createElement("span",Object.assign({},h,{ref:t,className:_,style:w}),T,O,S&&f__namespace.createElement(VF,{key:"preset",prefixCls:C}),E&&f__namespace.createElement(GF,{key:"status",prefixCls:C}));return x(P?f__namespace.createElement(Ns,{component:"Tag"},N):N)},h$=f__namespace.forwardRef(qF);h$.CheckableTag=HF;const Co=h$;var XF={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 YF=XF;var ZF=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:YF}))};const _v=f__namespace.forwardRef(ZF);var QF={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 JF=QF;var eH=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:JF}))};const tH=f__namespace.forwardRef(eH),_u=f.createContext(null);var v$=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,l=e.children;return f__namespace.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:H(n,i&&"".concat(n,"-active"),r),ref:t},l)}),nH=["key","forceRender","style","className"];function rH(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=f__namespace.useContext(_u),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:H("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:H("".concat(s,"-content"),"".concat(s,"-content-").concat(o),U({},"".concat(s,"-content-animated"),c))},l.map(function(d){var m=d.key,h=d.forceRender,v=d.style,g=d.className,p=Je(d,nH),b=m===n;return f__namespace.createElement(fo,$e({key:m,visible:b,forceRender:h,removeOnLeave:!!a,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,S){var E=y.style,$=y.className;return f__namespace.createElement(v$,$e({},p,{prefixCls:u,id:t,tabKey:m,animated:c,active:b,style:Y(Y({},v),E),className:H(g,$),ref:S}))})})))}var Yb={width:0,height:0,left:0,top:0};function oH(e,t,n){return f.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Yb,i=a.left+a.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Yb;}var d=o.get(l)||Y({},c);d.right=i-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Zb(e,t){var n=f__namespace.useRef(e),r=f__namespace.useState({}),o=Q(r,2),a=o[1];function i(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,a({});}return [n.current,i]}var aH=.1,Qb=.01,Al=20,Jb=Math.pow(.995,Al);function iH(e,t){var n=f.useState(),r=Q(n,2),o=r[0],a=r[1],i=f.useState(0),s=Q(i,2),l=s[0],c=s[1],u=f.useState(0),d=Q(u,2),m=d[0],h=d[1],v=f.useState(),g=Q(v,2),p=g[0],b=g[1],y=f.useRef();function S(I){var _=I.touches[0],k=_.screenX,O=_.screenY;a({x:k,y:O}),window.clearInterval(y.current);}function E(I){if(o){I.preventDefault();var _=I.touches[0],k=_.screenX,O=_.screenY;a({x:k,y:O});var P=k-o.x,R=O-o.y;t(P,R);var T=Date.now();c(T),h(T-l),b({x:P,y:R});}}function $(){if(o&&(a(null),b(null),p)){var I=p.x/m,_=p.y/m,k=Math.abs(I),O=Math.abs(_);if(Math.max(k,O)<aH)return;var P=I,R=_;y.current=window.setInterval(function(){if(Math.abs(P)<Qb&&Math.abs(R)<Qb){window.clearInterval(y.current);return}P*=Jb,R*=Jb,t(P*Al,R*Al);},Al);}}var w=f.useRef();function C(I){var _=I.deltaX,k=I.deltaY,O=0,P=Math.abs(_),R=Math.abs(k);P===R?O=w.current==="x"?_:k:P>R?(O=_,w.current="x"):(O=k,w.current="y"),t(-O,-O)&&I.preventDefault();}var x=f.useRef(null);x.current={onTouchStart:S,onTouchMove:E,onTouchEnd:$,onWheel:C},f__namespace.useEffect(function(){function I(P){x.current.onTouchStart(P);}function _(P){x.current.onTouchMove(P);}function k(P){x.current.onTouchEnd(P);}function O(P){x.current.onWheel(P);}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",k,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",O),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",k);}},[]);}function g$(e){var t=f.useState(0),n=Q(t,2),r=n[0],o=n[1],a=f.useRef(0),i=f.useRef();return i.current=e,ja(function(){var s;(s=i.current)===null||s===void 0||s.call(i);},[r]),function(){a.current===r&&(a.current+=1,o(a.current));}}function sH(e){var t=f.useRef([]),n=f.useState({}),r=Q(n,2),o=r[1],a=f.useRef(typeof e=="function"?e():e),i=g$(function(){var l=a.current;t.current.forEach(function(c){l=c(l);}),t.current=[],a.current=l,o({});});function s(l){t.current.push(l),i();}return [a.current,s]}var e0={width:0,height:0,left:0,top:0,right:0};function lH(e,t,n,r,o,a,i){var s=i.tabs,l=i.tabPosition,c=i.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,v=h,g=0;g<h;g+=1){var p=e.get(s[g].key)||e0;if(p[d]+p[u]>m+t){v=g-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var S=e.get(s[y].key)||e0;if(S[d]<m){b=y+1;break}}return b>=v?[0,0]:[b,v]},[e,t,r,o,a,m,l,s.map(function(h){return h.key}).join("_"),c])}function t0(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var cH="TABS_DQ";function p$(e){return String(e).replace(/"/g,cH)}function b$(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function uH(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return !r||r.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const y$=f__namespace.forwardRef(uH);var n0=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return dt(o)==="object"&&!f__namespace.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),dH=le.ESC,fH=le.TAB;function mH(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=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=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),i.current=!0,!0):!1},c=function(d){switch(d.keyCode){case dH:s();break;case fH:{var m=!1;i.current||(m=l()),m?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&St(l,3),function(){window.removeEventListener("keydown",c),i.current=!1;}):function(){i.current=!1;}},[t]);}var hH=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Rn(t,a==null?void 0:a.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(a,{ref:No(a)?i:void 0}))}),pa={adjustX:1,adjustY:1},ba=[0,0],vH={topLeft:{points:["bl","tl"],overflow:pa,offset:[0,-4],targetOffset:ba},top:{points:["bc","tc"],overflow:pa,offset:[0,-4],targetOffset:ba},topRight:{points:["br","tr"],overflow:pa,offset:[0,-4],targetOffset:ba},bottomLeft:{points:["tl","bl"],overflow:pa,offset:[0,4],targetOffset:ba},bottom:{points:["tc","bc"],overflow:pa,offset:[0,4],targetOffset:ba},bottomRight:{points:["tr","br"],overflow:pa,offset:[0,4],targetOffset:ba}},gH=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function pH(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,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?vH:m,v=e.getPopupContainer,g=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,E=e.trigger,$=E===void 0?["hover"]:E,w=e.autoFocus,C=e.overlay,x=e.children,I=e.onVisibleChange,_=Je(e,gH),k=f.useState(),O=Q(k,2),P=O[0],R=O[1],T="visible"in e?S:P,N=f.useRef(null),M=f.useRef(null),L=f.useRef(null);f.useImperativeHandle(t,function(){return N.current});var j=function(G){R(G),I==null||I(G);};mH({visible:T,triggerRef:L,onVisibleChange:j,autoFocus:w,overlayRef:M});var z=function(G){var J=e.onOverlayClick;R(!1),J&&J(G);},V=function(){return f.createElement(hH,{ref:M,overlay:C,prefixCls:i,arrow:o})},B=function(){return typeof C=="function"?V:V()},W=function(){var G=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?G:!J},F=function(){var G=e.openClassName;return G!==void 0?G:"".concat(i,"-open")},X=f.cloneElement(x,{className:H((n=x.props)===null||n===void 0?void 0:n.className,T&&F()),ref:No(x)?Rn(L,x.ref):void 0}),q=p;return !q&&$.indexOf("contextMenu")!==-1&&(q=["click"]),f.createElement(fu,$e({builtinPlacements:h},_,{prefixCls:i,ref:N,popupClassName:H(b,U({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:$,showAction:g,hideAction:q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:T,stretch:W()?"minWidth":"",popup:B(),onPopupVisibleChange:j,onPopupClick:z,getPopupContainer:v}),X)}const C$=f.forwardRef(pH);var bH=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ya=void 0;function yH(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,m=e.children,h=e.display,v=e.order,g=e.component,p=g===void 0?"div":g,b=Je(e,bH),y=i&&!h;function S(x){l(c,x);}f__namespace.useEffect(function(){return function(){S(null);}},[]);var E=a&&o!==ya?a(o):m,$;r||($={opacity:y?0:1,height:y?0:ya,overflowY:y?"hidden":ya,order:i?v:ya,pointerEvents:y?"none":ya,position:y?"absolute":ya});var w={};y&&(w["aria-hidden"]=!0);var C=f__namespace.createElement(p,$e({className:H(!r&&n,u),style:Y(Y({},$),d)},w,b,{ref:t}),E);return i&&(C=f__namespace.createElement(_r,{onResize:function(I){var _=I.offsetWidth;S(_);},disabled:s},C)),C}var Ui=f__namespace.forwardRef(yH);Ui.displayName="Item";function CH(e){if(typeof MessageChannel>"u")St(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function SH(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],CH(function(){qy.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Pi(e,t){var n=f__namespace.useState(t),r=Q(n,2),o=r[0],a=r[1],i=zn(function(s){e(function(){a(s);});});return [o,i]}var mc=f.createContext(null),$H=["component"],wH=["className"],xH=["className"],EH=function(t,n){var r=f__namespace.useContext(mc);if(!r){var o=t.component,a=o===void 0?"div":o,i=Je(t,$H);return f__namespace.createElement(a,$e({},i,{ref:n}))}var s=r.className,l=Je(r,wH),c=t.className,u=Je(t,xH);return f__namespace.createElement(mc.Provider,{value:null},f__namespace.createElement(Ui,$e({ref:n,className:H(s,c)},l,u)))},S$=f__namespace.forwardRef(EH);S$.displayName="RawItem";var OH=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],$$="responsive",w$="invalidate";function IH(e){return "+ ".concat(e.length," ...")}function PH(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=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,v=e.maxCount,g=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,E=e.itemComponent,$=e.onVisibleChange,w=Je(e,OH),C=d==="full",x=SH(),I=Pi(x,null),_=Q(I,2),k=_[0],O=_[1],P=k||0,R=Pi(x,new Map),T=Q(R,2),N=T[0],M=T[1],L=Pi(x,0),j=Q(L,2),z=j[0],V=j[1],B=Pi(x,0),W=Q(B,2),F=W[0],X=W[1],q=Pi(x,0),K=Q(q,2),G=K[0],J=K[1],oe=f.useState(null),ue=Q(oe,2),me=ue[0],te=ue[1],ae=f.useState(null),ce=Q(ae,2),Z=ce[0],ne=ce[1],ee=f__namespace.useMemo(function(){return Z===null&&C?Number.MAX_SAFE_INTEGER:Z||0},[Z,k]),de=f.useState(!1),he=Q(de,2),fe=he[0],Pe=he[1],je="".concat(r,"-item"),Ae=Math.max(z,F),be=v===$$,Ce=a.length&&be,Ne=v===w$,Ve=Ce||typeof v=="number"&&a.length>v,Ue=f.useMemo(function(){var Se=a;return Ce?k===null&&C?Se=a:Se=a.slice(0,Math.min(a.length,P/u)):typeof v=="number"&&(Se=a.slice(0,v)),Se},[a,u,k,v,Ce]),Fe=f.useMemo(function(){return Ce?a.slice(ee+1):a.slice(Ue.length)},[a,Ue,Ce,ee]),Le=f.useCallback(function(Se,se){var xe;return typeof l=="function"?l(Se):(xe=l&&(Se==null?void 0:Se[l]))!==null&&xe!==void 0?xe:se},[l]),at=f.useCallback(i||function(Se){return Se},[i]);function st(Se,se,xe){Z===Se&&(se===void 0||se===me)||(ne(Se),xe||(Pe(Se<a.length-1),$==null||$(Se)),se!==void 0&&te(se));}function _e(Se,se){O(se.clientWidth);}function Oe(Se,se){M(function(xe){var we=new Map(xe);return se===null?we.delete(Se):we.set(Se,se),we});}function De(Se,se){X(se),V(F);}function yt(Se,se){J(se);}function Me(Se){return N.get(Le(Ue[Se],Se))}qt(function(){if(P&&typeof Ae=="number"&&Ue){var Se=G,se=Ue.length,xe=se-1;if(!se){st(0,null);return}for(var we=0;we<se;we+=1){var Ee=Me(we);if(C&&(Ee=Ee||0),Ee===void 0){st(we-1,void 0,!0);break}if(Se+=Ee,xe===0&&Se<=P||we===xe-1&&Se+Me(xe)<=P){st(xe,null);break}else if(Se+Ae>P){st(we-1,Se-Ee-G+F);break}}b&&Me(0)+G>P&&te(null);}},[P,N,F,G,Le,Ue]);var gt=fe&&!!Fe.length,Re={};me!==null&&Ce&&(Re={position:"absolute",left:me,top:0});var re={prefixCls:je,responsive:Ce,component:E,invalidate:Ne},ve=s?function(Se,se){var xe=Le(Se,se);return f__namespace.createElement(mc.Provider,{key:xe,value:Y(Y({},re),{},{order:se,item:Se,itemKey:xe,registerSize:Oe,display:se<=ee})},s(Se,se))}:function(Se,se){var xe=Le(Se,se);return f__namespace.createElement(Ui,$e({},re,{order:se,key:xe,item:Se,renderItem:at,itemKey:xe,registerSize:Oe,display:se<=ee}))},pe,ye={order:gt?ee:Number.MAX_SAFE_INTEGER,className:"".concat(je,"-rest"),registerSize:De,display:gt};if(p)p&&(pe=f__namespace.createElement(mc.Provider,{value:Y(Y({},re),ye)},p(Fe)));else {var qe=g||IH;pe=f__namespace.createElement(Ui,$e({},re,ye),typeof qe=="function"?qe(Fe):qe);}var Ie=f__namespace.createElement(S,$e({className:H(!Ne&&r,h),style:m,ref:t},w),Ue.map(ve),Ve?pe:null,b&&f__namespace.createElement(Ui,$e({},re,{responsive:be,responsiveDisabled:!Ce,order:ee,className:"".concat(je,"-suffix"),registerSize:yt,display:!0,style:Re}),b));return be&&(Ie=f__namespace.createElement(_r,{onResize:_e,disabled:!Ce},Ie)),Ie}var Vr=f__namespace.forwardRef(PH);Vr.displayName="Overflow";Vr.Item=S$;Vr.RESPONSIVE=$$;Vr.INVALIDATE=w$;var x$=f__namespace.createContext(null);function Rv(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function E$(e){var t=f__namespace.useContext(x$);return Rv(t,e)}var _H=["children","locked"],Tr=f__namespace.createContext(null);function RH(e,t){var n=Y({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function cs(e){var t=e.children,n=e.locked,r=Je(e,_H),o=f__namespace.useContext(Tr),a=Os(function(){return RH(o,r)},[o,r],function(i,s){return !n&&(i[0]!==s[0]||!Es(i[1],s[1],!0))});return f__namespace.createElement(Tr.Provider,{value:a},t)}var TH=[],O$=f__namespace.createContext(null);function Ru(){return f__namespace.useContext(O$)}var I$=f__namespace.createContext(TH);function bi(e){var t=f__namespace.useContext(I$);return f__namespace.useMemo(function(){return e!==void 0?[].concat(We(t),[e]):t},[t,e])}var P$=f__namespace.createContext(null),Tv=f__namespace.createContext({});function r0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ev(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return !1}function MH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=We(e.querySelectorAll("*")).filter(function(r){return r0(r,t)});return r0(e,t)&&n.unshift(e),n}var Om=le.LEFT,Im=le.RIGHT,Pm=le.UP,Ll=le.DOWN,Dl=le.ENTER,_$=le.ESC,_i=le.HOME,Ri=le.END,o0=[Pm,Ll,Om,Im];function NH(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Dl)return {inlineTrigger:!0};var m=(o={},U(o,Pm,l),U(o,Ll,c),o),h=(a={},U(a,Om,n?c:l),U(a,Im,n?l:c),U(a,Ll,u),U(a,Dl,u),a),v=(i={},U(i,Pm,l),U(i,Ll,c),U(i,Dl,u),U(i,_$,d),U(i,Om,n?u:d),U(i,Im,n?d:u),i),g={inline:m,horizontal:h,vertical:v,inlineSub:m,horizontalSub:v,verticalSub:v},p=(s=g["".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 kH(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function AH(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function R$(e,t){var n=MH(e,!0);return n.filter(function(r){return t.has(r)})}function a0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=R$(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}function LH(e,t,n,r,o,a,i,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var m=function(){St.cancel(u.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(h){var v=h.which;if([].concat(o0,[Dl,_$,_i,Ri]).includes(v)){var g,p,b,y=function(){g=new Set,p=new Map,b=new Map;var T=a();return T.forEach(function(N){var M=document.querySelector("[data-menu-id='".concat(Rv(r,N),"']"));M&&(g.add(M),b.set(M,N),p.set(N,M));}),g};y();var S=p.get(t),E=AH(S,g),$=b.get(E),w=NH(e,i($,!0).length===1,n,v);if(!w&&v!==_i&&v!==Ri)return;(o0.includes(v)||[_i,Ri].includes(v))&&h.preventDefault();var C=function(T){if(T){var N=T,M=T.querySelector("a");M!=null&&M.getAttribute("href")&&(N=M);var L=b.get(T);s(L),m(),u.current=St(function(){d.current===L&&N.focus();});}};if([_i,Ri].includes(v)||w.sibling||!E){var x;!E||e==="inline"?x=o.current:x=kH(E);var I,_=R$(x,g);v===_i?I=_[0]:v===Ri?I=_[_.length-1]:I=a0(x,g,E,w.offset),C(I);}else if(w.inlineTrigger)l($);else if(w.offset>0)l($,!0),m(),u.current=St(function(){y();var R=E.getAttribute("aria-controls"),T=document.getElementById(R),N=a0(T,g);C(N);},5);else if(w.offset<0){var k=i($,!0),O=k[k.length-2],P=p.get(O);l(O,!1),C(P);}}c==null||c(h);}}function DH(e){Promise.resolve().then(e);}var Mv="__RC_UTIL_PATH_SPLIT__",i0=function(t){return t.join(Mv)},jH=function(t){return t.split(Mv)},_m="rc-menu-more";function zH(){var e=f__namespace.useState({}),t=Q(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),a=f__namespace.useState([]),i=Q(a,2),s=i[0],l=i[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},m=f.useCallback(function(S,E){var $=i0(E);o.current.set($,S),r.current.set(S,$),c.current+=1;var w=c.current;DH(function(){w===c.current&&d();});},[]),h=f.useCallback(function(S,E){var $=i0(E);o.current.delete($),r.current.delete(S);},[]),v=f.useCallback(function(S){l(S);},[]),g=f.useCallback(function(S,E){var $=r.current.get(S)||"",w=jH($);return E&&s.includes(w[0])&&w.unshift(_m),w},[s]),p=f.useCallback(function(S,E){return S.some(function($){var w=g($,!0);return w.includes(E)})},[g]),b=function(){var E=We(r.current.keys());return s.length&&E.push(_m),E},y=f.useCallback(function(S){var E="".concat(r.current.get(S)).concat(Mv),$=new Set;return We(o.current.keys()).forEach(function(w){w.startsWith(E)&&$.add(o.current.get(w));}),$},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:g,getKeys:b,getSubPathKeys:y}}function ji(e){var t=f__namespace.useRef(e);t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var BH=Math.random().toFixed(5).toString().slice(2),s0=0;function FH(e){var t=Bt(e,{value:e}),n=Q(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){s0+=1;var a="".concat(BH,"-").concat(s0);o("rc-menu-uuid-".concat(a));},[]),r}function T$(e,t,n,r){var o=f__namespace.useContext(Tr),a=o.activeKey,i=o.onActive,s=o.onInactive,l={active:a===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),i(e);},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e);}),l}function M$(e){var t=f__namespace.useContext(Tr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function N$(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=f__namespace.createElement(t,Y({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var HH=["item"];function hc(e){var t=e.item,n=Je(e,HH);return Object.defineProperty(n,"item",{get:function(){return Fn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var WH=["title","attribute","elementRef"],VH=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],UH=["active"],GH=function(e){co(n,e);var t=uo(n);function n(){return bn(this,n),t.apply(this,arguments)}return yn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,l=Je(o,WH),c=Pn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Fn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(Vr.Item,$e({},i,{title:typeof a=="string"?a:void 0},c,{ref:s}))}}]),n}(f__namespace.Component),KH=f__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,v=e.onFocus,g=Je(e,VH),p=E$(a),b=f__namespace.useContext(Tr),y=b.prefixCls,S=b.onItemClick,E=b.disabled,$=b.overflowDisabled,w=b.itemIcon,C=b.selectedKeys,x=b.onActive,I=f__namespace.useContext(Tv),_=I._internalRenderMenuItem,k="".concat(y,"-item"),O=f__namespace.useRef(),P=f__namespace.useRef(),R=E||i,T=_s(t,P),N=bi(a),M=function(oe){return {key:a,keyPath:We(N).reverse(),item:O.current,domEvent:oe}},L=s||w,j=T$(a,R,u,d),z=j.active,V=Je(j,UH),B=C.includes(a),W=M$(N.length),F=function(oe){if(!R){var ue=M(oe);m==null||m(hc(ue)),S(ue);}},X=function(oe){if(h==null||h(oe),oe.which===le.ENTER){var ue=M(oe);m==null||m(hc(ue)),S(ue);}},q=function(oe){x(a),v==null||v(oe);},K={};e.role==="option"&&(K["aria-selected"]=B);var G=f__namespace.createElement(GH,$e({ref:O,elementRef:T,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":$&&p?null:p},g,V,K,{component:"li","aria-disabled":i,style:Y(Y({},W),r),className:H(k,(n={},U(n,"".concat(k,"-active"),z),U(n,"".concat(k,"-selected"),B),U(n,"".concat(k,"-disabled"),R),n),o),onClick:F,onKeyDown:X,onFocus:q}),l,f__namespace.createElement(N$,{props:Y(Y({},e),{},{isSelected:B}),icon:L}));return _&&(G=_(G,e,{selected:B})),G});function qH(e,t){var n=e.eventKey,r=Ru(),o=bi(n);return f__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:f__namespace.createElement(KH,$e({},e,{ref:t}))}const zs=f__namespace.forwardRef(qH);var XH=["className","children"],YH=function(t,n){var r=t.className,o=t.children,a=Je(t,XH),i=f__namespace.useContext(Tr),s=i.prefixCls,l=i.mode,c=i.rtl;return f__namespace.createElement("ul",$e({className:H(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Nv=f__namespace.forwardRef(YH);Nv.displayName="SubMenuList";function kv(e,t){return er(e).map(function(n,r){if(f__namespace.isValidElement(n)){var o,a,i=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,l=s==null;l&&(s="tmp_key-".concat([].concat(We(t),[r]).join("-")));var c={key:s,eventKey:s};return f__namespace.cloneElement(n,c)}return n})}var xn={adjustX:1,adjustY:1},ZH={topLeft:{points:["bl","tl"],overflow:xn},topRight:{points:["br","tr"],overflow:xn},bottomLeft:{points:["tl","bl"],overflow:xn},bottomRight:{points:["tr","br"],overflow:xn},leftTop:{points:["tr","tl"],overflow:xn},leftBottom:{points:["br","bl"],overflow:xn},rightTop:{points:["tl","tr"],overflow:xn},rightBottom:{points:["bl","br"],overflow:xn}},QH={topLeft:{points:["bl","tl"],overflow:xn},topRight:{points:["br","tr"],overflow:xn},bottomLeft:{points:["tl","bl"],overflow:xn},bottomRight:{points:["tr","br"],overflow:xn},rightTop:{points:["tr","tl"],overflow:xn},rightBottom:{points:["br","bl"],overflow:xn},leftTop:{points:["tl","tr"],overflow:xn},leftBottom:{points:["bl","br"],overflow:xn}};function k$(e,t,n){if(t)return t;if(n)return n[e]||n.other}var JH={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function e9(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=f__namespace.useContext(Tr),m=d.getPopupContainer,h=d.rtl,v=d.subMenuOpenDelay,g=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,S=d.rootClassName,E=d.motion,$=d.defaultMotions,w=f__namespace.useState(!1),C=Q(w,2),x=C[0],I=C[1],_=Y(h?Y({},QH):Y({},ZH),p),k=JH[c],O=k$(c,E,$),P=f__namespace.useRef(O);c!=="inline"&&(P.current=O);var R=Y(Y({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=f__namespace.useRef();return f__namespace.useEffect(function(){return T.current=St(function(){I(n);}),function(){St.cancel(T.current);}},[n]),f__namespace.createElement(fu,{prefixCls:t,popupClassName:H("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),h),i,S),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:_,popupPlacement:k,popupVisible:x,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:y,popupMotion:R},r)}function t9(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=f__namespace.useContext(Tr),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,m=f__namespace.useRef(!1);m.current=d===a;var h=f__namespace.useState(!m.current),v=Q(h,2),g=v[0],p=v[1],b=m.current?n:!1;f__namespace.useEffect(function(){m.current&&p(!1);},[d]);var y=Y({},k$(a,c,u));r.length>1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(E){return !m.current&&!E&&p(!0),S==null?void 0:S(E)},g?null:f__namespace.createElement(cs,{mode:a,locked:!m.current},f__namespace.createElement(fo,$e({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var $=E.className,w=E.style;return f__namespace.createElement(Nv,{id:t,className:$,style:w},o)}))}var n9=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],r9=["active"],o9=function(t){var n,r=t.style,o=t.className,a=t.title,i=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,v=t.popupStyle,g=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,S=t.onTitleMouseEnter,E=t.onTitleMouseLeave,$=Je(t,n9),w=E$(i),C=f__namespace.useContext(Tr),x=C.prefixCls,I=C.mode,_=C.openKeys,k=C.disabled,O=C.overflowDisabled,P=C.activeKey,R=C.selectedKeys,T=C.itemIcon,N=C.expandIcon,M=C.onItemClick,L=C.onOpenChange,j=C.onActive,z=f__namespace.useContext(Tv),V=z._internalRenderSubMenuItem,B=f__namespace.useContext(P$),W=B.isSubPathKey,F=bi(),X="".concat(x,"-submenu"),q=k||s,K=f__namespace.useRef(),G=f__namespace.useRef(),J=u??T,oe=d??N,ue=_.includes(i),me=!O&&ue,te=W(R,i),ae=T$(i,q,S,E),ce=ae.active,Z=Je(ae,r9),ne=f__namespace.useState(!1),ee=Q(ne,2),de=ee[0],he=ee[1],fe=function(De){q||he(De);},Pe=function(De){fe(!0),p==null||p({key:i,domEvent:De});},je=function(De){fe(!1),b==null||b({key:i,domEvent:De});},Ae=f__namespace.useMemo(function(){return ce||(I!=="inline"?de||W([P],i):!1)},[I,ce,P,de,i,W]),be=M$(F.length),Ce=function(De){q||(y==null||y({key:i,domEvent:De}),I==="inline"&&L(i,!ue));},Ne=ji(function(Oe){g==null||g(hc(Oe)),M(Oe);}),Ve=function(De){I!=="inline"&&L(i,De);},Ue=function(){j(i);},Fe=w&&"".concat(w,"-popup"),Le=f__namespace.createElement("div",$e({role:"menuitem",style:be,className:"".concat(X,"-title"),tabIndex:q?null:-1,ref:K,title:typeof a=="string"?a:null,"data-menu-id":O&&w?null:w,"aria-expanded":me,"aria-haspopup":!0,"aria-controls":Fe,"aria-disabled":q,onClick:Ce,onFocus:Ue},Z),a,f__namespace.createElement(N$,{icon:I!=="horizontal"?oe:void 0,props:Y(Y({},t),{},{isOpen:me,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(X,"-arrow")}))),at=f__namespace.useRef(I);if(I!=="inline"&&F.length>1?at.current="vertical":at.current=I,!O){var st=at.current;Le=f__namespace.createElement(e9,{mode:st,prefixCls:X,visible:!l&&me&&I!=="inline",popupClassName:m,popupOffset:h,popupStyle:v,popup:f__namespace.createElement(cs,{mode:st==="horizontal"?"vertical":st},f__namespace.createElement(Nv,{id:Fe,ref:G},c)),disabled:q,onVisibleChange:Ve},Le);}var _e=f__namespace.createElement(Vr.Item,$e({role:"none"},$,{component:"li",style:r,className:H(X,"".concat(X,"-").concat(I),o,(n={},U(n,"".concat(X,"-open"),me),U(n,"".concat(X,"-active"),Ae),U(n,"".concat(X,"-selected"),te),U(n,"".concat(X,"-disabled"),q),n)),onMouseEnter:Pe,onMouseLeave:je}),Le,!O&&f__namespace.createElement(t9,{id:Fe,open:me,keyPath:F},c));return V&&(_e=V(_e,t,{selected:te,active:Ae,open:me,disabled:q})),f__namespace.createElement(cs,{onItemClick:Ne,mode:I==="horizontal"?"vertical":I,itemIcon:J,expandIcon:oe},_e)};function Tu(e){var t=e.eventKey,n=e.children,r=bi(t),o=kv(n,r),a=Ru();f__namespace.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r);}},[r]);var i;return a?i=o:i=f__namespace.createElement(o9,e,o),f__namespace.createElement(I$.Provider,{value:r},i)}var a9=["className","title","eventKey","children"],i9=["children"],s9=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=Je(t,a9),i=f__namespace.useContext(Tr),s=i.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",$e({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:H(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 Mu(e){var t=e.children,n=Je(e,i9),r=bi(n.eventKey),o=kv(t,r),a=Ru();return a?o:f__namespace.createElement(s9,Pn(n,["warnKey"]),o)}function Av(e){var t=e.className,n=e.style,r=f__namespace.useContext(Tr),o=r.prefixCls,a=Ru();return a?null:f__namespace.createElement("li",{role:"separator",className:H("".concat(o,"-item-divider"),t),style:n})}var l9=["label","children","key","type"];function Rm(e){return (e||[]).map(function(t,n){if(t&&dt(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,s=r.type,l=Je(r,l9),c=i??"tmp-".concat(n);return a||s==="group"?s==="group"?f__namespace.createElement(Mu,$e({key:c},l,{title:o}),Rm(a)):f__namespace.createElement(Tu,$e({key:c},l,{title:o}),Rm(a)):s==="divider"?f__namespace.createElement(Av,$e({key:c},l)):f__namespace.createElement(zs,$e({key:c},l),o)}return null}).filter(function(t){return t})}function c9(e,t,n){var r=e;return t&&(r=Rm(t)),kv(r,n)}var u9=["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"],Ca=[],d9=f__namespace.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,m=o.items,h=o.children,v=o.direction,g=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,S=o.disabled,E=o.disabledOverflow,$=o.subMenuOpenDelay,w=$===void 0?.1:$,C=o.subMenuCloseDelay,x=C===void 0?.1:C,I=o.forceSubMenuRender,_=o.defaultOpenKeys,k=o.openKeys,O=o.activeKey,P=o.defaultActiveFirst,R=o.selectable,T=R===void 0?!0:R,N=o.multiple,M=N===void 0?!1:N,L=o.defaultSelectedKeys,j=o.selectedKeys,z=o.onSelect,V=o.onDeselect,B=o.inlineIndent,W=B===void 0?24:B,F=o.motion,X=o.defaultMotions,q=o.triggerSubMenuAction,K=q===void 0?"hover":q,G=o.builtinPlacements,J=o.itemIcon,oe=o.expandIcon,ue=o.overflowedIndicator,me=ue===void 0?"...":ue,te=o.overflowedIndicatorPopupClassName,ae=o.getPopupContainer,ce=o.onClick,Z=o.onOpenChange,ne=o.onKeyDown;o.openAnimation,o.openTransitionName;var ee=o._internalRenderMenuItem,de=o._internalRenderSubMenuItem,he=Je(o,u9),fe=f__namespace.useMemo(function(){return c9(h,m,Ca)},[h,m]),Pe=f__namespace.useState(!1),je=Q(Pe,2),Ae=je[0],be=je[1],Ce=f__namespace.useRef(),Ne=FH(g),Ve=v==="rtl",Ue=Bt(_,{value:k,postState:function(ot){return ot||Ca}}),Fe=Q(Ue,2),Le=Fe[0],at=Fe[1],st=function(ot){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ot(){at(ot),Z==null||Z(ot);}Ze?qy.flushSync(Ot):Ot();},_e=f__namespace.useState(Le),Oe=Q(_e,2),De=Oe[0],yt=Oe[1],Me=f__namespace.useRef(!1),gt=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Re=Q(gt,2),re=Re[0],ve=Re[1],pe=re==="inline",ye=f__namespace.useState(re),qe=Q(ye,2),Ie=qe[0],Se=qe[1],se=f__namespace.useState(ve),xe=Q(se,2),we=xe[0],Ee=xe[1];f__namespace.useEffect(function(){Se(re),Ee(ve),Me.current&&(pe?at(De):st(Ca));},[re,ve]);var pt=f__namespace.useState(0),ht=Q(pt,2),Lt=ht[0],Dt=ht[1],Gt=Lt>=fe.length-1||Ie!=="horizontal"||E;f__namespace.useEffect(function(){pe&&yt(Le);},[Le]),f__namespace.useEffect(function(){return Me.current=!0,function(){Me.current=!1;}},[]);var He=zH(),Xe=He.registerPath,Ge=He.unregisterPath,Ke=He.refreshOverflowKeys,ke=He.isSubPathKey,ft=He.getKeyPath,it=He.getKeys,jt=He.getSubPathKeys,vt=f__namespace.useMemo(function(){return {registerPath:Xe,unregisterPath:Ge}},[Xe,Ge]),Sn=f__namespace.useMemo(function(){return {isSubPathKey:ke}},[ke]);f__namespace.useEffect(function(){Ke(Gt?Ca:fe.slice(Lt+1).map(function(ct){return ct.key}));},[Lt,Gt]);var br=Bt(O||P&&((n=fe[0])===null||n===void 0?void 0:n.key),{value:O}),Ln=Q(br,2),Dn=Ln[0],kr=Ln[1],rr=ji(function(ct){kr(ct);}),ho=ji(function(){kr(void 0);});f.useImperativeHandle(t,function(){return {list:Ce.current,focus:function(ot){var Ze,Ot=Dn??((Ze=fe.find(function(ir){return !ir.props.disabled}))===null||Ze===void 0?void 0:Ze.key);if(Ot){var Mt,mn,an;(Mt=Ce.current)===null||Mt===void 0||(mn=Mt.querySelector("li[data-menu-id='".concat(Rv(Ne,Ot),"']")))===null||mn===void 0||(an=mn.focus)===null||an===void 0||an.call(mn,ot);}}}});var vo=Bt(L||[],{value:j,postState:function(ot){return Array.isArray(ot)?ot:ot==null?Ca:[ot]}}),Vn=Q(vo,2),jn=Vn[0],Ar=Vn[1],yr=function(ot){if(T){var Ze=ot.key,Ot=jn.includes(Ze),Mt;M?Ot?Mt=jn.filter(function(an){return an!==Ze}):Mt=[].concat(We(jn),[Ze]):Mt=[Ze],Ar(Mt);var mn=Y(Y({},ot),{},{selectedKeys:Mt});Ot?V==null||V(mn):z==null||z(mn);}!M&&Le.length&&Ie!=="inline"&&st(Ca);},or=ji(function(ct){ce==null||ce(hc(ct)),yr(ct);}),Un=ji(function(ct,ot){var Ze=Le.filter(function(Mt){return Mt!==ct});if(ot)Ze.push(ct);else if(Ie!=="inline"){var Ot=jt(ct);Ze=Ze.filter(function(Mt){return !Ot.has(Mt)});}Es(Le,Ze,!0)||st(Ze,!0);}),Cr=function(ot,Ze){var Ot=Ze??!Le.includes(ot);Un(ot,Ot);},Sr=LH(Ie,Dn,Ve,Ne,Ce,it,ft,kr,Cr,ne);f__namespace.useEffect(function(){be(!0);},[]);var ar=f__namespace.useMemo(function(){return {_internalRenderMenuItem:ee,_internalRenderSubMenuItem:de}},[ee,de]),et=Ie!=="horizontal"||E?fe:fe.map(function(ct,ot){return f__namespace.createElement(cs,{key:ct.key,overflowDisabled:ot>Lt},ct)}),rt=f__namespace.createElement(Vr,$e({id:g,ref:Ce,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:zs,className:H(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ie),c,(r={},U(r,"".concat(i,"-inline-collapsed"),we),U(r,"".concat(i,"-rtl"),Ve),r),s),dir:v,style:l,role:"menu",tabIndex:d,data:et,renderRawItem:function(ot){return ot},renderRawRest:function(ot){var Ze=ot.length,Ot=Ze?fe.slice(-Ze):null;return f__namespace.createElement(Tu,{eventKey:_m,title:me,disabled:Gt,internalPopupClose:Ze===0,popupClassName:te},Ot)},maxCount:Ie!=="horizontal"||E?Vr.INVALIDATE:Vr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ot){Dt(ot);},onKeyDown:Sr},he));return f__namespace.createElement(Tv.Provider,{value:ar},f__namespace.createElement(x$.Provider,{value:Ne},f__namespace.createElement(cs,{prefixCls:i,rootClassName:s,mode:Ie,openKeys:Le,rtl:Ve,disabled:S,motion:Ae?F:null,defaultMotions:Ae?X:null,activeKey:Dn,onActive:rr,onInactive:ho,selectedKeys:jn,inlineIndent:W,subMenuOpenDelay:w,subMenuCloseDelay:x,forceSubMenuRender:I,builtinPlacements:G,triggerSubMenuAction:K,getPopupContainer:ae,itemIcon:J,expandIcon:oe,onItemClick:or,onOpenChange:Un},f__namespace.createElement(P$.Provider,{value:Sn},rt),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(O$.Provider,{value:vt},fe)))))}),yi=d9;yi.Item=zs;yi.SubMenu=Tu;yi.ItemGroup=Mu;yi.Divider=Av;function f9(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=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,v=e.rtl,g=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,S=f.useState(!1),E=Q(S,2),$=E[0],w=E[1],C=f.useState(null),x=Q(C,2),I=x[0],_=x[1],k="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),P=I!==null?"".concat(k,"-").concat(I):null,R=a==null?void 0:a.dropdownAriaLabel;function T(B,W){B.preventDefault(),B.stopPropagation(),m.onEdit("remove",{key:W,event:B});}var N=f__namespace.createElement(yi,{onClick:function(W){var F=W.key,X=W.domEvent;p(F,X),w(!1);},prefixCls:"".concat(O,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[I],"aria-label":R!==void 0?R:"expanded dropdown"},o.map(function(B){var W=B.closable,F=B.disabled,X=B.closeIcon,q=B.key,K=B.label,G=b$(W,X,m,F);return f__namespace.createElement(zs,{key:q,id:"".concat(k,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:F},f__namespace.createElement("span",null,K),G&&f__namespace.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),T(oe,q);}},X||m.removeIcon||"×"))}));function M(B){for(var W=o.filter(function(G){return !G.disabled}),F=W.findIndex(function(G){return G.key===I})||0,X=W.length,q=0;q<X;q+=1){F=(F+B+X)%X;var K=W[F];if(!K.disabled){_(K.key);return}}}function L(B){var W=B.which;if(!$){[le.DOWN,le.SPACE,le.ENTER].includes(W)&&(w(!0),B.preventDefault());return}switch(W){case le.UP:M(-1),B.preventDefault();break;case le.DOWN:M(1),B.preventDefault();break;case le.ESC:w(!1);break;case le.SPACE:case le.ENTER:I!==null&&p(I,B);break}}f.useEffect(function(){var B=document.getElementById(P);B&&B.scrollIntoView&&B.scrollIntoView(!1);},[I]),f.useEffect(function(){$||_(null);},[$]);var j=U({},v?"marginRight":"marginLeft",h);o.length||(j.visibility="hidden",j.order=1);var z=H(U({},"".concat(O,"-rtl"),v)),V=i?null:f__namespace.createElement(C$,{prefixCls:O,overlay:N,trigger:["hover"],visible:o.length?$:!1,transitionName:c,onVisibleChange:w,overlayClassName:H(z,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:j,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":k,id:"".concat(r,"-more"),"aria-expanded":$,onKeyDown:L},l));return f__namespace.createElement("div",{className:H("".concat(n,"-nav-operations"),d),style:u,ref:t},V,f__namespace.createElement(y$,{prefixCls:n,locale:a,editable:m}))}const m9=f__namespace.memo(f__namespace.forwardRef(f9),function(e,t){return t.tabMoving});function h9(e){var t,n=e.prefixCls,r=e.id,o=e.active,a=e.tab,i=a.key,s=a.label,l=a.disabled,c=a.closeIcon,u=e.closable,d=e.renderWrapper,m=e.removeAriaLabel,h=e.editable,v=e.onClick,g=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=b$(u,c,h,l);function S(w){l||v(w);}function E(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w});}var $=f__namespace.createElement("div",{key:i,"data-node-key":p$(i),className:H(b,(t={},U(t,"".concat(b,"-with-remove"),y),U(t,"".concat(b,"-active"),o),U(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:S},f__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function(C){C.stopPropagation(),S(C);},onKeyDown:function(C){[le.SPACE,le.ENTER].includes(C.which)&&(C.preventDefault(),S(C));},onFocus:g},s),y&&f__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(C){C.stopPropagation(),E(C);}},c||h.removeIcon||"×"));return d?d($):$}var v9=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicatorSize,i=f.useState(),s=Q(i,2),l=s[0],c=s[1],u=f.useRef(),d=function(v){return typeof a=="function"?a(v):typeof a=="number"?a:v};function m(){St.cancel(u.current);}return f.useEffect(function(){var h={};return n&&(r?(o?(h.right=n.right+n.width/2,h.transform="translateX(50%)"):(h.left=n.left+n.width/2,h.transform="translateX(-50%)"),h.width=d(n.width)):(h.top=n.top+n.height/2,h.transform="translateY(-50%)",h.height=d(n.height))),m(),u.current=St(function(){c(h);}),m},[n,r,o,a]),{style:l}},Sa=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;return [o,i]},bl=function(t,n){return t[n?0:1]};function g9(e,t){var n,r=f__namespace.useContext(_u),o=r.prefixCls,a=r.tabs,i=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,m=e.extra,h=e.editable,v=e.locale,g=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,S=e.onTabScroll,E=e.indicatorSize,$=f.useRef(),w=f.useRef(),C=f.useRef(),x=f.useRef(),I=f.useRef(),_=f.useRef(),k=f.useRef(),O=g==="top"||g==="bottom",P=Zb(0,function(Ke,ke){O&&S&&S({direction:Ke>ke?"left":"right"});}),R=Q(P,2),T=R[0],N=R[1],M=Zb(0,function(Ke,ke){!O&&S&&S({direction:Ke>ke?"top":"bottom"});}),L=Q(M,2),j=L[0],z=L[1],V=f.useState([0,0]),B=Q(V,2),W=B[0],F=B[1],X=f.useState([0,0]),q=Q(X,2),K=q[0],G=q[1],J=f.useState([0,0]),oe=Q(J,2),ue=oe[0],me=oe[1],te=f.useState([0,0]),ae=Q(te,2),ce=ae[0],Z=ae[1],ne=sH(new Map),ee=Q(ne,2),de=ee[0],he=ee[1],fe=oH(a,de,K[0]),Pe=bl(W,O),je=bl(K,O),Ae=bl(ue,O),be=bl(ce,O),Ce=Pe<je+Ae,Ne=Ce?Pe-be:Pe-Ae,Ve="".concat(o,"-nav-operations-hidden"),Ue=0,Fe=0;O&&d?(Ue=0,Fe=Math.max(0,je-Ne)):(Ue=Math.min(0,Ne-je),Fe=0);function Le(Ke){return Ke<Ue?Ue:Ke>Fe?Fe:Ke}var at=f.useRef(),st=f.useState(),_e=Q(st,2),Oe=_e[0],De=_e[1];function yt(){De(Date.now());}function Me(){window.clearTimeout(at.current);}iH(x,function(Ke,ke){function ft(it,jt){it(function(vt){var Sn=Le(vt+jt);return Sn});}return Ce?(O?ft(N,Ke):ft(z,ke),Me(),yt(),!0):!1}),f.useEffect(function(){return Me(),Oe&&(at.current=window.setTimeout(function(){De(0);},100)),Me},[Oe]);var gt=lH(fe,Ne,O?T:j,je,Ae,be,Y(Y({},e),{},{tabs:a})),Re=Q(gt,2),re=Re[0],ve=Re[1],pe=zn(function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,ke=fe.get(Ke)||{width:0,height:0,left:0,right:0,top:0};if(O){var ft=T;d?ke.right<T?ft=ke.right:ke.right+ke.width>T+Ne&&(ft=ke.right+ke.width-Ne):ke.left<-T?ft=-ke.left:ke.left+ke.width>-T+Ne&&(ft=-(ke.left+ke.width-Ne)),z(0),N(Le(ft));}else {var it=j;ke.top<-j?it=-ke.top:ke.top+ke.height>-j+Ne&&(it=-(ke.top+ke.height-Ne)),N(0),z(Le(it));}}),ye={};g==="top"||g==="bottom"?ye[d?"marginRight":"marginLeft"]=p:ye.marginTop=p;var qe=a.map(function(Ke,ke){var ft=Ke.key;return f__namespace.createElement(h9,{id:l,prefixCls:o,key:ft,tab:Ke,style:ke===0?void 0:ye,closable:Ke.closable,editable:h,active:ft===u,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(jt){y(ft,jt);},onFocus:function(){pe(ft),yt(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),Ie=function(){return he(function(){var ke=new Map;return a.forEach(function(ft){var it,jt=ft.key,vt=(it=I.current)===null||it===void 0?void 0:it.querySelector('[data-node-key="'.concat(p$(jt),'"]'));vt&&ke.set(jt,{width:vt.offsetWidth,height:vt.offsetHeight,left:vt.offsetLeft,top:vt.offsetTop});}),ke})};f.useEffect(function(){Ie();},[a.map(function(Ke){return Ke.key}).join("_")]);var Se=g$(function(){var Ke=Sa($),ke=Sa(w),ft=Sa(C);F([Ke[0]-ke[0]-ft[0],Ke[1]-ke[1]-ft[1]]);var it=Sa(k);me(it);var jt=Sa(_);Z(jt);var vt=Sa(I);G([vt[0]-it[0],vt[1]-it[1]]),Ie();}),se=a.slice(0,re),xe=a.slice(ve+1),we=[].concat(We(se),We(xe)),Ee=fe.get(u),pt=v9({activeTabOffset:Ee,horizontal:O,rtl:d,indicatorSize:E}),ht=pt.style;f.useEffect(function(){pe();},[u,Ue,Fe,t0(Ee),t0(fe),O]),f.useEffect(function(){Se();},[d]);var Lt=!!we.length,Dt="".concat(o,"-nav-wrap"),Gt,He,Xe,Ge;return O?d?(He=T>0,Gt=T!==Fe):(Gt=T<0,He=T!==Ue):(Xe=j<0,Ge=j!==Ue),f__namespace.createElement(_r,{onResize:Se},f__namespace.createElement("div",{ref:_s(t,$),role:"tablist",className:H("".concat(o,"-nav"),i),style:s,onKeyDown:function(){yt();}},f__namespace.createElement(n0,{ref:w,position:"left",extra:m,prefixCls:o}),f__namespace.createElement(_r,{onResize:Se},f__namespace.createElement("div",{className:H(Dt,(n={},U(n,"".concat(Dt,"-ping-left"),Gt),U(n,"".concat(Dt,"-ping-right"),He),U(n,"".concat(Dt,"-ping-top"),Xe),U(n,"".concat(Dt,"-ping-bottom"),Ge),n)),ref:x},f__namespace.createElement(_r,{onResize:Se},f__namespace.createElement("div",{ref:I,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(T,"px, ").concat(j,"px)"),transition:Oe?"none":void 0}},qe,f__namespace.createElement(y$,{ref:k,prefixCls:o,locale:v,editable:h,style:Y(Y({},qe.length===0?void 0:ye),{},{visibility:Lt?"hidden":null})}),f__namespace.createElement("div",{className:H("".concat(o,"-ink-bar"),U({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:ht}))))),f__namespace.createElement(m9,$e({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:_,prefixCls:o,tabs:we,className:!Lt&&Ve,tabMoving:!!Oe})),f__namespace.createElement(n0,{ref:C,position:"right",extra:m,prefixCls:o})))}const l0=f__namespace.forwardRef(g9);var p9=["renderTabBar"],b9=["label","key"];function y9(e){var t=e.renderTabBar,n=Je(e,p9),r=f__namespace.useContext(_u),o=r.tabs;if(t){var a=Y(Y({},n),{},{panes:o.map(function(i){var s=i.label,l=i.key,c=Je(i,b9);return f__namespace.createElement(v$,$e({tab:s,key:l,tabKey:l},c))})});return t(a,l0)}return f__namespace.createElement(l0,n)}function C9(){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=Y({inkBar:!0},dt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var S9=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],c0=0;function $9(e,t){var n,r=e.id,o=e.prefixCls,a=o===void 0?"rc-tabs":o,i=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,m=e.animated,h=e.tabPosition,v=h===void 0?"top":h,g=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,S=e.moreIcon,E=e.moreTransitionName,$=e.destroyInactiveTabPane,w=e.renderTabBar,C=e.onChange,x=e.onTabClick,I=e.onTabScroll,_=e.getPopupContainer,k=e.popupClassName,O=e.indicatorSize,P=Je(e,S9),R=f__namespace.useMemo(function(){return (s||[]).filter(function(Z){return Z&&dt(Z)==="object"&&"key"in Z})},[s]),T=l==="rtl",N=C9(m),M=f.useState(!1),L=Q(M,2),j=L[0],z=L[1];f.useEffect(function(){z(du());},[]);var V=Bt(function(){var Z;return (Z=R[0])===null||Z===void 0?void 0:Z.key},{value:c,defaultValue:u}),B=Q(V,2),W=B[0],F=B[1],X=f.useState(function(){return R.findIndex(function(Z){return Z.key===W})}),q=Q(X,2),K=q[0],G=q[1];f.useEffect(function(){var Z=R.findIndex(function(ee){return ee.key===W});if(Z===-1){var ne;Z=Math.max(0,Math.min(K,R.length-1)),F((ne=R[Z])===null||ne===void 0?void 0:ne.key);}G(Z);},[R.map(function(Z){return Z.key}).join("_"),W,K]);var J=Bt(null,{value:r}),oe=Q(J,2),ue=oe[0],me=oe[1];f.useEffect(function(){r||(me("rc-tabs-".concat(c0)),c0+=1);},[]);function te(Z,ne){x==null||x(Z,ne);var ee=Z!==W;F(Z),ee&&(C==null||C(Z));}var ae={id:ue,activeKey:W,animated:N,tabPosition:v,rtl:T,mobile:j},ce=Y(Y({},ae),{},{editable:d,locale:y,moreIcon:S,moreTransitionName:E,tabBarGutter:g,onTabClick:te,onTabScroll:I,extra:b,style:p,panes:null,getPopupContainer:_,popupClassName:k,indicatorSize:O});return f__namespace.createElement(_u.Provider,{value:{tabs:R,prefixCls:a}},f__namespace.createElement("div",$e({ref:t,id:r,className:H(a,"".concat(a,"-").concat(v),(n={},U(n,"".concat(a,"-mobile"),j),U(n,"".concat(a,"-editable"),d),U(n,"".concat(a,"-rtl"),T),n),i)},P),f__namespace.createElement(y9,$e({},ce,{renderTabBar:w})),f__namespace.createElement(rH,$e({destroyInactiveTabPane:$},ae,{animated:N}))))}var w9=f__namespace.forwardRef($9);const x9={motionAppear:!1,motionEnter:!0,motionLeave:!0};function E9(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({},x9),{motionName:mu(e,"switch")})),n}var O9=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function I9(e){return e.filter(t=>t)}function P9(e,t){if(e)return e;const n=er(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,l=O9(i,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return I9(n)}const _9=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}`}}}}},[To(e,"slide-up"),To(e,"slide-down")]]},R9=_9,T9=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},M9=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Tt(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({},Zo),{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"}}})}})}},N9=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
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:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},k9=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},A9=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},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},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},L9=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"}}}}},D9=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},Jo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),A9(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"}}}}}},j9=At("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 [k9(t),L9(t),N9(t),M9(t),T9(t),D9(t),R9(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`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),z9=()=>null,B9=z9;var F9=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A$=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:m,style:h,indicatorSize:v}=e,g=F9(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:p,moreIcon:b=f__namespace.createElement(_v,null)}=g,{direction:y,tabs:S,getPrefixCls:E,getPopupContainer:$}=f__namespace.useContext(Ye),w=E("tabs",p),[C,x]=j9(w);let I;t==="editable-card"&&(I={onEdit:(T,N)=>{let{key:M,event:L}=N;a==null||a(T==="add"?L:M,T);},removeIcon:f__namespace.createElement(Pu,null),addIcon:l||f__namespace.createElement(tH,null),showAdd:i!==!0});const _=E(),k=P9(d,u),O=E9(w,m),P=Wn(o),R=Object.assign(Object.assign({},S==null?void 0:S.style),h);return C(f__namespace.createElement(w9,Object.assign({direction:y,getPopupContainer:$,moreTransitionName:`${_}-slide-up`},g,{items:k,className:H({[`${w}-${P}`]:P,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:t==="editable-card",[`${w}-centered`]:s},S==null?void 0:S.className,n,r,x),popupClassName:H(c,x),style:R,editable:I,moreIcon:b,prefixCls:w,animated:O,indicatorSize:v??(S==null?void 0:S.indicatorSize)})))};A$.TabPane=B9;const H9=A$;var Lv={exports:{}},L$=function(t,n){return function(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];return t.apply(n,o)}},W9=L$,Dv=Object.prototype.toString,jv=function(e){return function(t){var n=Dv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function ia(e){return e=e.toLowerCase(),function(n){return jv(n)===e}}function zv(e){return Array.isArray(e)}function vc(e){return typeof e>"u"}function V9(e){return e!==null&&!vc(e)&&e.constructor!==null&&!vc(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var D$=ia("ArrayBuffer");function U9(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&D$(e.buffer),t}function G9(e){return typeof e=="string"}function K9(e){return typeof e=="number"}function j$(e){return e!==null&&typeof e=="object"}function jl(e){if(jv(e)!=="object")return !1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var q9=ia("Date"),X9=ia("File"),Y9=ia("Blob"),Z9=ia("FileList");function Bv(e){return Dv.call(e)==="[object Function]"}function Q9(e){return j$(e)&&Bv(e.pipe)}function J9(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Dv.call(e)===t||Bv(e.toString)&&e.toString()===t)}var e7=ia("URLSearchParams");function t7(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function n7(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Fv(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),zv(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e);}function Tm(){var e={};function t(o,a){jl(e[a])&&jl(o)?e[a]=Tm(e[a],o):jl(o)?e[a]=Tm({},o):zv(o)?e[a]=o.slice():e[a]=o;}for(var n=0,r=arguments.length;n<r;n++)Fv(arguments[n],t);return e}function r7(e,t,n){return Fv(t,function(o,a){n&&typeof o=="function"?e[a]=W9(o,n):e[a]=o;}),e}function o7(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function a7(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n);}function i7(e,t,n){var r,o,a,i={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)a=r[o],i[a]||(t[a]=e[a],i[a]=!0);e=Object.getPrototypeOf(e);}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function s7(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 l7(e){if(!e)return null;var t=e.length;if(vc(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var c7=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),fn={isArray:zv,isArrayBuffer:D$,isBuffer:V9,isFormData:J9,isArrayBufferView:U9,isString:G9,isNumber:K9,isObject:j$,isPlainObject:jl,isUndefined:vc,isDate:q9,isFile:X9,isBlob:Y9,isFunction:Bv,isStream:Q9,isURLSearchParams:e7,isStandardBrowserEnv:n7,forEach:Fv,merge:Tm,extend:r7,trim:t7,stripBOM:o7,inherits:a7,toFlatObject:i7,kindOf:jv,kindOfTest:ia,endsWith:s7,toArray:l7,isTypedArray:c7,isFileList:Z9};const u0=Ft(fn);var $a=fn;function d0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Hv=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if($a.isURLSearchParams(n))o=n.toString();else {var a=[];$a.forEach(n,function(l,c){l===null||typeof l>"u"||($a.isArray(l)?c=c+"[]":l=[l],$a.forEach(l,function(d){$a.isDate(d)?d=d.toISOString():$a.isObject(d)&&(d=JSON.stringify(d)),a.push(d0(c)+"="+d0(d));}));}),o=a.join("&");}if(o){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o;}return t};const u7=Ft(Hv);var d7=fn;function Nu(){this.handlers=[];}Nu.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};Nu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null);};Nu.prototype.forEach=function(t){d7.forEach(this.handlers,function(r){r!==null&&t(r);});};var f7=Nu,m7=fn,h7=function(t,n){m7.forEach(t,function(o,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[a]);});},z$=fn;function Ka(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);}z$.inherits(Ka,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 B$=Ka.prototype,F$={};["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){F$[e]={value:e};});Object.defineProperties(Ka,F$);Object.defineProperty(B$,"isAxiosError",{value:!0});Ka.from=function(e,t,n,r,o,a){var i=Object.create(B$);return z$.toFlatObject(e,i,function(l){return l!==Error.prototype}),Ka.call(i,e.message,t,n,r,o),i.name=e.name,a&&Object.assign(i,a),i};var Ci=Ka,H$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$r=fn;function v7(e,t){t=t||new FormData;var n=[];function r(a){return a===null?"":$r.isDate(a)?a.toISOString():$r.isArrayBuffer(a)||$r.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function o(a,i){if($r.isPlainObject(a)||$r.isArray(a)){if(n.indexOf(a)!==-1)throw Error("Circular reference detected in "+i);n.push(a),$r.forEach(a,function(l,c){if(!$r.isUndefined(l)){var u=i?i+"."+c:c,d;if(l&&!i&&typeof l=="object"){if($r.endsWith(c,"{}"))l=JSON.stringify(l);else if($r.endsWith(c,"[]")&&(d=$r.toArray(l))){d.forEach(function(m){!$r.isUndefined(m)&&t.append(u,r(m));});return}}o(l,u);}}),n.pop();}else t.append(i,r(a));}return o(e),t}var W$=v7,Bd=Ci,V$=function(t,n,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(new Bd("Request failed with status code "+r.status,[Bd.ERR_BAD_REQUEST,Bd.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r));};const g7=Ft(V$);var Fd,f0;function p7(){if(f0)return Fd;f0=1;var e=fn;return Fd=e.isStandardBrowserEnv()?function(){return {write:function(r,o,a,i,s,l){var c=[];c.push(r+"="+encodeURIComponent(o)),e.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),e.isString(i)&&c.push("path="+i),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(){}}}(),Fd}var b7=function(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},y7=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},C7=b7,S7=y7,Wv=function(t,n){return t&&!C7(n)?S7(t,n):n};const $7=Ft(Wv);var Hd=fn,w7=["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"],U$=function(t){var n={},r,o,a;return t&&Hd.forEach(t.split(`
`),function(s){if(a=s.indexOf(":"),r=Hd.trim(s.substr(0,a)).toLowerCase(),o=Hd.trim(s.substr(a+1)),r){if(n[r]&&w7.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 x7=Ft(U$);var Wd,m0;function E7(){if(m0)return Wd;m0=1;var e=fn;return Wd=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function a(i){var s=i;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=a(window.location.href),function(s){var l=e.isString(s)?a(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return !0}}(),Wd}var Vd,h0;function ku(){if(h0)return Vd;h0=1;var e=Ci,t=fn;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError";}return t.inherits(n,e,{__CANCEL__:!0}),Vd=n,Vd}var Ud,v0;function O7(){return v0||(v0=1,Ud=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Ud}var Gd,g0;function p0(){if(g0)return Gd;g0=1;var e=fn,t=V$,n=p7(),r=Hv,o=Wv,a=U$,i=E7(),s=H$,l=Ci,c=ku(),u=O7();return Gd=function(m){return new Promise(function(v,g){var p=m.data,b=m.headers,y=m.responseType,S;function E(){m.cancelToken&&m.cancelToken.unsubscribe(S),m.signal&&m.signal.removeEventListener("abort",S);}e.isFormData(p)&&e.isStandardBrowserEnv()&&delete b["Content-Type"];var $=new XMLHttpRequest;if(m.auth){var w=m.auth.username||"",C=m.auth.password?unescape(encodeURIComponent(m.auth.password)):"";b.Authorization="Basic "+btoa(w+":"+C);}var x=o(m.baseURL,m.url);$.open(m.method.toUpperCase(),r(x,m.params,m.paramsSerializer),!0),$.timeout=m.timeout;function I(){if($){var O="getAllResponseHeaders"in $?a($.getAllResponseHeaders()):null,P=!y||y==="text"||y==="json"?$.responseText:$.response,R={data:P,status:$.status,statusText:$.statusText,headers:O,config:m,request:$};t(function(N){v(N),E();},function(N){g(N),E();},R),$=null;}}if("onloadend"in $?$.onloadend=I:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(I);},$.onabort=function(){$&&(g(new l("Request aborted",l.ECONNABORTED,m,$)),$=null);},$.onerror=function(){g(new l("Network Error",l.ERR_NETWORK,m,$,$)),$=null;},$.ontimeout=function(){var P=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded",R=m.transitional||s;m.timeoutErrorMessage&&(P=m.timeoutErrorMessage),g(new l(P,R.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,m,$)),$=null;},e.isStandardBrowserEnv()){var _=(m.withCredentials||i(x))&&m.xsrfCookieName?n.read(m.xsrfCookieName):void 0;_&&(b[m.xsrfHeaderName]=_);}"setRequestHeader"in $&&e.forEach(b,function(P,R){typeof p>"u"&&R.toLowerCase()==="content-type"?delete b[R]:$.setRequestHeader(R,P);}),e.isUndefined(m.withCredentials)||($.withCredentials=!!m.withCredentials),y&&y!=="json"&&($.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&$.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&$.upload&&$.upload.addEventListener("progress",m.onUploadProgress),(m.cancelToken||m.signal)&&(S=function(O){$&&(g(!O||O&&O.type?new c:O),$.abort(),$=null);},m.cancelToken&&m.cancelToken.subscribe(S),m.signal&&(m.signal.aborted?S():m.signal.addEventListener("abort",S))),p||(p=null);var k=u(x);if(k&&["http","https","file"].indexOf(k)===-1){g(new l("Unsupported protocol "+k+":",l.ERR_BAD_REQUEST,m));return}$.send(p);})},Gd}var Kd,b0;function I7(){return b0||(b0=1,Kd=null),Kd}var un=fn,y0=h7,C0=Ci,P7=H$,_7=W$,R7={"Content-Type":"application/x-www-form-urlencoded"};function S0(e,t){!un.isUndefined(e)&&un.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t);}function T7(){var e;return (typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=p0()),e}function M7(e,t,n){if(un.isString(e))try{return (t||JSON.parse)(e),un.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return (n||JSON.stringify)(e)}var Au={transitional:P7,adapter:T7(),transformRequest:[function(t,n){if(y0(n,"Accept"),y0(n,"Content-Type"),un.isFormData(t)||un.isArrayBuffer(t)||un.isBuffer(t)||un.isStream(t)||un.isFile(t)||un.isBlob(t))return t;if(un.isArrayBufferView(t))return t.buffer;if(un.isURLSearchParams(t))return S0(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=un.isObject(t),o=n&&n["Content-Type"],a;if((a=un.isFileList(t))||r&&o==="multipart/form-data"){var i=this.env&&this.env.FormData;return _7(a?{"files[]":t}:t,i&&new i)}else if(r||o==="application/json")return S0(n,"application/json"),M7(t);return t}],transformResponse:[function(t){var n=this.transitional||Au.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||o&&un.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?C0.from(i,C0.ERR_BAD_RESPONSE,this,null,this.response):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I7()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};un.forEach(["delete","get","head"],function(t){Au.headers[t]={};});un.forEach(["post","put","patch"],function(t){Au.headers[t]=un.merge(R7);});var Vv=Au,N7=fn,k7=Vv,A7=function(t,n,r){var o=this||k7;return N7.forEach(r,function(i){t=i.call(o,t,n);}),t},qd,$0;function G$(){return $0||($0=1,qd=function(t){return !!(t&&t.__CANCEL__)}),qd}var w0=fn,Xd=A7,L7=G$(),D7=Vv,j7=ku();function Yd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new j7}var z7=function(t){Yd(t),t.headers=t.headers||{},t.data=Xd.call(t,t.data,t.headers,t.transformRequest),t.headers=w0.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),w0.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o];});var n=t.adapter||D7.adapter;return n(t).then(function(o){return Yd(t),o.data=Xd.call(t,o.data,o.headers,t.transformResponse),o},function(o){return L7(o)||(Yd(t),o&&o.response&&(o.response.data=Xd.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},qn=fn,K$=function(t,n){n=n||{};var r={};function o(u,d){return qn.isPlainObject(u)&&qn.isPlainObject(d)?qn.merge(u,d):qn.isPlainObject(d)?qn.merge({},d):qn.isArray(d)?d.slice():d}function a(u){if(qn.isUndefined(n[u])){if(!qn.isUndefined(t[u]))return o(void 0,t[u])}else return o(t[u],n[u])}function i(u){if(!qn.isUndefined(n[u]))return o(void 0,n[u])}function s(u){if(qn.isUndefined(n[u])){if(!qn.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:i,method:i,data:i,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 qn.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var m=c[d]||a,h=m(d);qn.isUndefined(h)&&m!==l||(r[d]=h);}),r},Zd,x0;function q$(){return x0||(x0=1,Zd={version:"0.27.2"}),Zd}var B7=q$().version,So=Ci,Uv={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Uv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e};});var E0={};Uv.transitional=function(t,n,r){function o(a,i){return "[Axios v"+B7+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return function(a,i,s){if(t===!1)throw new So(o(i," has been removed"+(n?" in "+n:"")),So.ERR_DEPRECATED);return n&&!E0[i]&&(E0[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,s):!0}};function F7(e,t,n){if(typeof e!="object")throw new So("options must be an object",So.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],i=t[a];if(i){var s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new So("option "+a+" must be "+l,So.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new So("Unknown option "+a,So.ERR_BAD_OPTION)}}var H7={assertOptions:F7,validators:Uv},X$=fn,W7=Hv,O0=f7,I0=z7,Lu=K$,V7=Wv,Y$=H7,wa=Y$.validators;function qa(e){this.defaults=e,this.interceptors={request:new O0,response:new O0};}qa.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Lu(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&&Y$.assertOptions(r,{silentJSONParsing:wa.transitional(wa.boolean),forcedJSONParsing:wa.transitional(wa.boolean),clarifyTimeoutError:wa.transitional(wa.boolean)},!1);var o=[],a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(a=a&&h.synchronous,o.unshift(h.fulfilled,h.rejected));});var i=[];this.interceptors.response.forEach(function(h){i.push(h.fulfilled,h.rejected);});var s;if(!a){var l=[I0,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(i),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=I0(c);}catch(m){return Promise.reject(m)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};qa.prototype.getUri=function(t){t=Lu(this.defaults,t);var n=V7(t.baseURL,t.url);return W7(n,t.params,t.paramsSerializer)};X$.forEach(["delete","get","head","options"],function(t){qa.prototype[t]=function(n,r){return this.request(Lu(r||{},{method:t,url:n,data:(r||{}).data}))};});X$.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,s){return this.request(Lu(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}qa.prototype[t]=n(),qa.prototype[t+"Form"]=n(!0);});var U7=qa,Qd,P0;function G7(){if(P0)return Qd;P0=1;var e=ku();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(i){r=i;});var o=this;this.promise.then(function(a){if(o._listeners){var i,s=o._listeners.length;for(i=0;i<s;i++)o._listeners[i](a);o._listeners=null;}}),this.promise.then=function(a){var i,s=new Promise(function(l){o.subscribe(l),i=l;}).then(a);return s.cancel=function(){o.unsubscribe(i);},s},n(function(i){o.reason||(o.reason=new e(i),r(o.reason));});}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r];},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1);}},t.source=function(){var r,o=new t(function(i){r=i;});return {token:o,cancel:r}},Qd=t,Qd}var Jd,_0;function K7(){return _0||(_0=1,Jd=function(t){return function(r){return t.apply(null,r)}}),Jd}var ef,R0;function q7(){if(R0)return ef;R0=1;var e=fn;return ef=function(n){return e.isObject(n)&&n.isAxiosError===!0},ef}var T0=fn,X7=L$,zl=U7,Y7=K$,Z7=Vv;function Z$(e){var t=new zl(e),n=X7(zl.prototype.request,t);return T0.extend(n,zl.prototype,t),T0.extend(n,t),n.create=function(o){return Z$(Y7(e,o))},n}var Hn=Z$(Z7);Hn.Axios=zl;Hn.CanceledError=ku();Hn.CancelToken=G7();Hn.isCancel=G$();Hn.VERSION=q$().version;Hn.toFormData=W$;Hn.AxiosError=Ci;Hn.Cancel=Hn.CanceledError;Hn.all=function(t){return Promise.all(t)};Hn.spread=K7();Hn.isAxiosError=q7();Lv.exports=Hn;Lv.exports.default=Hn;var Q7=Lv.exports,_a=Q7;const Du=Ft(_a);function J7(e){return function(n){return f__namespace.createElement(Jh,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f__namespace.createElement(e,Object.assign({},n)))}}function Gv(e,t,n,r){function o(a){const{prefixCls:i,style:s}=a,l=f__namespace.useRef(null),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[h,v]=Bt(!1,{value:a.open}),{getPrefixCls:g}=f__namespace.useContext(Ye),p=g(t||"select",i);f__namespace.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(E=>{const $=E[0].target;u($.offsetHeight+8),m($.offsetWidth);}),S=setInterval(()=>{var E;const $=n?`.${n(p)}`:`.${p}-dropdown`,w=(E=l.current)===null||E===void 0?void 0:E.querySelector($);w&&(clearInterval(S),y.observe(w));},10);return ()=>{clearInterval(S),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},a),{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 J7(o)}const eW=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return {[t]:Object.assign(Object.assign({},Tt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`${i*100}%`},"&::after":{width:`${100-i*100}%`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`${100-i*100}%`},"&::after":{width:`${i*100}%`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},tW=At("Divider",e=>{const t=ut(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [eW(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}));var nW=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rW=e=>{const{getPrefixCls:t,direction:n,divider:r}=f__namespace.useContext(Ye),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:m,style:h}=e,v=nW(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[p,b]=tW(g),y=i.length>0?`-${i}`:i,S=!!u,E=i==="left"&&s!=null,$=i==="right"&&s!=null,w=H(g,r==null?void 0:r.className,b,`${g}-${a}`,{[`${g}-with-text`]:S,[`${g}-with-text${y}`]:S,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!m,[`${g}-rtl`]:n==="rtl",[`${g}-no-default-orientation-margin-left`]:E,[`${g}-no-default-orientation-margin-right`]:$},l,c),C=f__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),x=Object.assign(Object.assign({},E&&{marginLeft:C}),$&&{marginRight:C});return p(f__namespace.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},v,{role:"separator"}),u&&a!=="vertical"&&f__namespace.createElement("span",{className:`${g}-inner-text`,style:x},u)))},oW=rW;var aW=["b"],iW=["v"],tf=function(t){return Math.round(Number(t||0))},sW=function(t){if(t&&dt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Je(n,aW);return Y(Y({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},gc=function(e){co(n,e);var t=uo(n);function n(r){return bn(this,n),t.call(this,sW(r))}return yn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=tf(o.s*100),i=tf(o.b*100),s=tf(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();dt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=Je(a,iW);return Y(Y({},i),{},{b:o.v})}}]),n}(Xt),lW="rc-color-picker",Po=function(t){return t instanceof gc?t:new gc(t)},cW=Po("#1677ff"),Q$=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=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,v=m/2,g=(n.x+h)/l,p=1-(n.y+v)/c,b=a.toHsb(),y=g,S=(n.x+h)/l*360;if(i)switch(i){case"hue":return Po(Y(Y({},b),{},{h:S<=0?0:S}));case"alpha":return Po(Y(Y({},b),{},{a:y<=0?0:y}))}return Po({h:b.h,s:g<=0?0:g,b:p>=1?1:p,a:b.a})},J$=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,s=a.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*i-d,y:-m/3};case"alpha":return {x:h.a/1*i-d,y:-m/3}}return {x:h.s*i-d,y:(1-h.b)*s-m}}},Kv=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(r,"-color-block");return f.createElement("div",{className:H(s,o),style:a,onClick:i},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function uW(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 ew(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=f.useState(t||{x:0,y:0}),d=Q(u,2),m=d[0],h=d[1],v=f.useRef(null),g=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var $=s==null?void 0:s(r);$&&h($);}},[l,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",g.current),v.current=null,g.current=null;}},[]);var b=function(w){var C=uW(w),x=C.pageX,I=C.pageY,_=r.current.getBoundingClientRect(),k=_.x,O=_.y,P=_.width,R=_.height,T=n.current.getBoundingClientRect(),N=T.width,M=T.height,L=N/2,j=M/2,z=Math.max(0,Math.min(x-k,P))-L,V=Math.max(0,Math.min(I-O,R))-j,B={x:z,y:o==="x"?m.y:V};if(N===0&&M===0||N!==M)return !1;h(B),a==null||a(B);},y=function(w){w.preventDefault(),b(w);},S=function(w){w.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",g.current),v.current=null,g.current=null,i==null||i();},E=function(w){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",g.current),!c&&(b(w),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),v.current=y,g.current=S);};return [m,E]}var tw=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return f.createElement("div",{className:H("".concat(a,"-handler"),U({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},nw=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:Y({position:"relative"},r)},n)},rw=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)}),dW=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=f.useRef(),l=f.useRef(),c=f.useRef(n),u=ew({color:n,containerRef:s,targetRef:l,calculate:function(g){return J$(g,l,n)},onDragChange:function(g){var p=Q$({offset:g,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:i}),d=Q(u,2),m=d[0],h=d[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},f.createElement(nw,{prefixCls:o},f.createElement(rw,{offset:m,ref:l},f.createElement(tw,{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))"}})))},fW=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=Po(c);return i==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,i]);return f.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},M0=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,m=f.useRef(),h=f.useRef(),v=f.useRef(i),g=ew({color:i,targetRef:h,containerRef:m,calculate:function(E){return J$(E,h,i,a)},onDragChange:function(E){var $=Q$({offset:E,targetRef:h,containerRef:m,color:i,type:a});v.current=$,l($);},onDragChangeComplete:function(){c==null||c(v.current,a);},direction:"x",disabledDrag:u}),p=Q(g,2),b=p[0],y=p[1];return f.createElement("div",{ref:m,className:H("".concat(d,"-slider"),"".concat(d,"-slider-").concat(a)),onMouseDown:y,onTouchStart:y},f.createElement(nw,{prefixCls:d},f.createElement(rw,{offset:b,ref:h},f.createElement(tw,{size:"small",color:s,prefixCls:d})),f.createElement(fW,{colors:n,direction:r,type:a,prefixCls:d})))};function N0(e){return e!==void 0}var mW=function(t,n){var r=n.defaultValue,o=n.value,a=f.useState(function(){var c;return N0(o)?c=o:N0(r)?c=r:c=t,Po(c)}),i=Q(a,2),s=i[0],l=i[1];return f.useEffect(function(){o&&l(Po(o));},[o]),[s,l]},hW=["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 vW=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?lW:o,i=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,v=h===void 0?!1:h,g=mW(cW,{value:n,defaultValue:r}),p=Q(g,2),b=p[0],y=p[1],S=f.useMemo(function(){var x=Po(b.toRgbString());return x.setAlpha(1),x.toRgbString()},[b]),E=H("".concat(a,"-panel"),l,U({},"".concat(a,"-panel-disabled"),v)),$={prefixCls:a,onChangeComplete:s,disabled:v},w=function(I,_){n||y(I),i==null||i(I,_);},C=f.createElement(f.Fragment,null,f.createElement(dW,$e({color:b,onChange:w},$)),f.createElement("div",{className:"".concat(a,"-slider-container")},f.createElement("div",{className:H("".concat(a,"-slider-group"),U({},"".concat(a,"-slider-group-disabled-alpha"),m))},f.createElement(M0,$e({gradientColors:hW,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(I){return w(I,"hue")}},$)),!m&&f.createElement(M0,$e({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",S],color:b,value:b.toRgbString(),onChange:function(I){return w(I,"alpha")}},$))),f.createElement(Kv,{color:b.toRgbString(),prefixCls:a})));return f.createElement("div",{className:E,style:c,ref:t},typeof u=="function"?u(C):C)}),ow=f.createContext({}),aw=f.createContext({}),{Provider:gW}=ow,{Provider:pW}=aw,Bl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",bW=(e,t)=>e?Bl(e,t):"";let k0=function(){function e(t){bn(this,e),this.metaColor=new gc(t),t||this.metaColor.setAlpha(0);}return yn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return bW(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 yW="ant-color-picker",On=e=>e instanceof k0?e:new k0(e),Fl=e=>Math.round(Number(e||0)),pc=e=>Fl(e.toHsb().a*100),nf=(e,t)=>{const n=e.toHsb();return n.a=t||1,On(n)},CW=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const a=()=>{if(n&&!r){const i=n.toHsb();i.a=0;const s=On(i);o==null||o(s);}};return f.createElement("div",{className:`${t}-clear`,onClick:a})},iw=CW;var ju=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.onMouseDown,i=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(),a&&a(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},l!==void 0?l:f__namespace.createElement("span",{className:H(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))};function SW(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=f.useMemo(function(){if(dt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=f.useMemo(function(){return !!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return {allowClear:c,clearIcon:f.createElement(ju,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var sw=f__namespace.createContext(null);function $W(){return f__namespace.useContext(sw)}function wW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=Q(t,2),r=n[0],o=n[1],a=f__namespace.useRef(null),i=function(){window.clearTimeout(a.current);};f__namespace.useEffect(function(){return i},[]);var s=function(c,u){i(),a.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,i]}function lw(){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 xW(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__namespace.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=i.target;l.shadowRoot&&i.composed&&(l=i.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",a),function(){return window.removeEventListener("mousedown",a)}},[]);}var EW=`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`,OW=`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`,IW="".concat(EW," ").concat(OW).split(/[\s\n]+/),PW="aria-",_W="data-";function A0(e,t){return e.indexOf(t)===0}function Xa(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=Y({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||A0(o,PW))||n.data&&A0(o,_W)||n.attr&&IW.includes(o))&&(r[o]=e[o]);}),r}var RW=function(t,n){var r,o,a=t.prefixCls,i=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,m=t.editable,h=t.activeDescendantId,v=t.value,g=t.maxLength,p=t.onKeyDown,b=t.onMouseDown,y=t.onChange,S=t.onPaste,E=t.onCompositionStart,$=t.onCompositionEnd,w=t.open,C=t.attrs,x=s||f__namespace.createElement("input",null),I=x,_=I.ref,k=I.props,O=k.onKeyDown,P=k.onChange,R=k.onMouseDown,T=k.onCompositionStart,N=k.onCompositionEnd,M=k.style;return "maxLength"in x.props,x=f__namespace.cloneElement(x,Y(Y(Y({type:"search"},k),{},{id:i,ref:Rn(n,_),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:H("".concat(a,"-selection-search-input"),(r=x)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-label":"Search","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?h:void 0},C),{},{value:m?v:"",maxLength:g,readOnly:!m,unselectable:m?null:"on",style:Y(Y({},M),{},{opacity:m?null:0}),onKeyDown:function(j){p(j),O&&O(j);},onMouseDown:function(j){b(j),R&&R(j);},onChange:function(j){y(j),P&&P(j);},onCompositionStart:function(j){E(j),T&&T(j);},onCompositionEnd:function(j){$(j),N&&N(j);},onPaste:S})),x},qv=f__namespace.forwardRef(RW);qv.displayName="Input";function cw(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var TW=typeof window<"u"&&window.document&&window.document.documentElement,MW=TW;function NW(e){return e!=null}function kW(e){return !e&&e!==0}function L0(e){return ["string","number"].includes(dt(e))}function uw(e){var t=void 0;return e&&(L0(e.title)?t=e.title.toString():L0(e.label)&&(t=e.label.toString())),t}function AW(e,t){MW?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function LW(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var D0=function(t){t.preventDefault(),t.stopPropagation();},DW=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,m=t.showSearch,h=t.autoFocus,v=t.autoComplete,g=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,E=t.maxTagPlaceholder,$=E===void 0?function(te){return "+ ".concat(te.length," ...")}:E,w=t.tagRender,C=t.onToggleOpen,x=t.onRemove,I=t.onInputChange,_=t.onInputPaste,k=t.onInputKeyDown,O=t.onInputMouseDown,P=t.onInputCompositionStart,R=t.onInputCompositionEnd,T=f__namespace.useRef(null),N=f.useState(0),M=Q(N,2),L=M[0],j=M[1],z=f.useState(!1),V=Q(z,2),B=V[0],W=V[1],F="".concat(r,"-selection"),X=a||d==="multiple"&&s===!1||d==="tags"?i:"",q=d==="tags"||d==="multiple"&&s===!1||m&&(a||B);AW(function(){j(T.current.scrollWidth);},[X]);function K(te,ae,ce,Z,ne){return f__namespace.createElement("span",{className:H("".concat(F,"-item"),U({},"".concat(F,"-item-disabled"),ce)),title:uw(te)},f__namespace.createElement("span",{className:"".concat(F,"-item-content")},ae),Z&&f__namespace.createElement(ju,{className:"".concat(F,"-item-remove"),onMouseDown:D0,onClick:ne,customizeIcon:b},"×"))}function G(te,ae,ce,Z,ne){var ee=function(he){D0(he),C(!a);};return f__namespace.createElement("span",{onMouseDown:ee},w({label:ae,value:te,disabled:ce,closable:Z,onClose:ne}))}function J(te){var ae=te.disabled,ce=te.label,Z=te.value,ne=!u&&!ae,ee=ce;if(typeof S=="number"&&(typeof ce=="string"||typeof ce=="number")){var de=String(ee);de.length>S&&(ee="".concat(de.slice(0,S),"..."));}var he=function(Pe){Pe&&Pe.stopPropagation(),x(te);};return typeof w=="function"?G(Z,ee,ae,ne,he):K(te,ee,ae,ne,he)}function oe(te){var ae=typeof $=="function"?$(te):$;return K({title:ae},ae,!1)}var ue=f__namespace.createElement("div",{className:"".concat(F,"-search"),style:{width:L},onFocus:function(){W(!0);},onBlur:function(){W(!1);}},f__namespace.createElement(qv,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:v,editable:q,activeDescendantId:g,value:X,onKeyDown:k,onMouseDown:O,onChange:I,onPaste:_,onCompositionStart:P,onCompositionEnd:R,tabIndex:p,attrs:Xa(t,!0)}),f__namespace.createElement("span",{ref:T,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},X," ")),me=f__namespace.createElement(Vr,{prefixCls:"".concat(F,"-overflow"),data:o,renderItem:J,renderRest:oe,suffix:ue,itemKey:LW,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,me,!o.length&&!X&&f__namespace.createElement("span",{className:"".concat(F,"-placeholder")},c))},jW=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,m=t.values,h=t.placeholder,v=t.tabIndex,g=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,E=t.onInputMouseDown,$=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,x=t.onInputCompositionEnd,I=t.title,_=f__namespace.useState(!1),k=Q(_,2),O=k[0],P=k[1],R=u==="combobox",T=R||g,N=m[0],M=p||"";R&&b&&!O&&(M=b),f__namespace.useEffect(function(){R&&P(!1);},[R,b]);var L=u!=="combobox"&&!d&&!g?!1:!!M,j=I===void 0?uw(N):I,z=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(qv,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:s,autoComplete:l,editable:T,activeDescendantId:c,value:M,onKeyDown:S,onMouseDown:E,onChange:function(B){P(!0),$(B);},onPaste:w,onCompositionStart:C,onCompositionEnd:x,tabIndex:v,attrs:Xa(t,!0),maxLength:R?y:void 0})),!R&&N?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:j,style:L?{visibility:"hidden"}:void 0},N.label):null,z())};function zW(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 BW=function(t,n){var r=f.useRef(null),o=f.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,v=t.onInputKeyDown,g=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=lw(0),b=Q(p,2),y=b[0],S=b[1],E=function(M){var L=M.which;(L===le.UP||L===le.DOWN)&&M.preventDefault(),v&&v(M),L===le.ENTER&&s==="tags"&&!o.current&&!i&&(m==null||m(M.target.value)),zW(L)&&h(!0);},$=function(){S(!0);},w=f.useRef(null),C=function(M){d(M,!0,o.current)!==!1&&h(!0);},x=function(){o.current=!0;},I=function(M){o.current=!1,s!=="combobox"&&C(M.target.value);},_=function(M){var L=M.target.value;if(c&&w.current&&/[\r\n]/.test(w.current)){var j=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(j,w.current);}w.current=null,C(L);},k=function(M){var L=M.clipboardData,j=L.getData("text");w.current=j;},O=function(M){var L=M.target;if(L!==r.current){var j=document.body.style.msTouchAction!==void 0;j?setTimeout(function(){r.current.focus();}):r.current.focus();}},P=function(M){var L=y();M.target!==r.current&&!L&&s!=="combobox"&&M.preventDefault(),(s!=="combobox"&&(!l||!L)||!i)&&(i&&u!==!1&&d("",!0,!1),h());},R={inputRef:r,onInputKeyDown:E,onInputMouseDown:$,onInputChange:_,onInputPaste:k,onInputCompositionStart:x,onInputCompositionEnd:I},T=s==="multiple"||s==="tags"?f__namespace.createElement(DW,$e({},t,R)):f__namespace.createElement(jW,$e({},t,R));return f__namespace.createElement("div",{ref:g,className:"".concat(a,"-selector"),onClick:O,onMouseDown:P},T)},dw=f__namespace.forwardRef(BW);dw.displayName="Selector";var FW=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],HW=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"}}},WW=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,m=d===void 0?"ltr":d,h=t.placement,v=t.builtinPlacements,g=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,S=t.empty,E=t.getTriggerDOMNode,$=t.onPopupVisibleChange,w=t.onPopupMouseEnter,C=Je(t,FW),x="".concat(r,"-dropdown"),I=i;p&&(I=p(i));var _=f__namespace.useMemo(function(){return v||HW(g)},[v,g]),k=s?"".concat(x,"-").concat(s):l,O=typeof g=="number",P=f__namespace.useMemo(function(){return O?null:g===!1?"minWidth":"width"},[g,O]),R=c;O&&(R=Y(Y({},R),{},{width:g}));var T=f__namespace.useRef(null);return f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return T.current}}}),f__namespace.createElement(fu,$e({},C,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:h||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_,prefixCls:x,popupTransitionName:k,popup:f__namespace.createElement("div",{ref:T,onMouseEnter:w},I),stretch:P,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:H(u,U({},"".concat(x,"-empty"),S)),popupStyle:R,getTriggerDOMNode:E,onPopupVisibleChange:$}),a)},fw=f__namespace.forwardRef(WW);fw.displayName="SelectTrigger";function j0(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 mw(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function VW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=mw(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,m){d.forEach(function(h){if(m||!(l in h)){var v=h[s];o.push({key:j0(h,o.length),groupOption:m,data:h,label:h[i],value:v});}else {var g=h[c];g===void 0&&r&&(g=h.label),o.push({key:j0(h,o.length),group:!0,data:h,label:g}),u(h[l],!0);}});}return u(e,!1),o}function Mm(e){var t=Y({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Fn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function UW(e,t){if(!t||!t.length)return null;var n=!1;function r(a,i){var s=SC(i),l=s[0],c=s.slice(1);if(!l)return [a];var u=a.split(l);return n=n||u.length>1,u.reduce(function(d,m){return [].concat(We(d),We(r(m,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var GW=["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"],KW=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Nm(e){return e==="tags"||e==="multiple"}var qW=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,a=e.prefixCls,i=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,m=e.onDisplayValuesChange,h=e.emptyOptions,v=e.notFoundContent,g=v===void 0?"Not Found":v,p=e.onClear,b=e.mode,y=e.disabled,S=e.loading,E=e.getInputElement,$=e.getRawInputElement,w=e.open,C=e.defaultOpen,x=e.onDropdownVisibleChange,I=e.activeValue,_=e.onActiveValueChange,k=e.activeDescendantId,O=e.searchValue,P=e.autoClearSearchValue,R=e.onSearch,T=e.onSearchSplit,N=e.tokenSeparators,M=e.allowClear,L=e.suffixIcon,j=e.clearIcon,z=e.OptionList,V=e.animation,B=e.transitionName,W=e.dropdownStyle,F=e.dropdownClassName,X=e.dropdownMatchSelectWidth,q=e.dropdownRender,K=e.dropdownAlign,G=e.placement,J=e.builtinPlacements,oe=e.getPopupContainer,ue=e.showAction,me=ue===void 0?[]:ue,te=e.onFocus,ae=e.onBlur,ce=e.onKeyUp,Z=e.onKeyDown,ne=e.onMouseDown,ee=Je(e,GW),de=Nm(b),he=(s!==void 0?s:de)||b==="combobox",fe=Y({},ee);KW.forEach(function(et){delete fe[et];}),u==null||u.forEach(function(et){delete fe[et];});var Pe=f__namespace.useState(!1),je=Q(Pe,2),Ae=je[0],be=je[1];f__namespace.useEffect(function(){be(du());},[]);var Ce=f__namespace.useRef(null),Ne=f__namespace.useRef(null),Ve=f__namespace.useRef(null),Ue=f__namespace.useRef(null),Fe=f__namespace.useRef(null),Le=wW(),at=Q(Le,3),st=at[0],_e=at[1],Oe=at[2];f__namespace.useImperativeHandle(t,function(){var et,rt;return {focus:(et=Ue.current)===null||et===void 0?void 0:et.focus,blur:(rt=Ue.current)===null||rt===void 0?void 0:rt.blur,scrollTo:function(ot){var Ze;return (Ze=Fe.current)===null||Ze===void 0?void 0:Ze.scrollTo(ot)}}});var De=f__namespace.useMemo(function(){var et;if(b!=="combobox")return O;var rt=(et=d[0])===null||et===void 0?void 0:et.value;return typeof rt=="string"||typeof rt=="number"?String(rt):""},[O,b,d]),yt=b==="combobox"&&typeof E=="function"&&E()||null,Me=typeof $=="function"&&$(),gt=_s(Ne,Me==null||(n=Me.props)===null||n===void 0?void 0:n.ref),Re=f__namespace.useState(!1),re=Q(Re,2),ve=re[0],pe=re[1];qt(function(){pe(!0);},[]);var ye=Bt(!1,{defaultValue:C,value:w}),qe=Q(ye,2),Ie=qe[0],Se=qe[1],se=ve?Ie:!1,xe=!g&&h;(y||xe&&se&&b==="combobox")&&(se=!1);var we=xe?!1:se,Ee=f__namespace.useCallback(function(et){var rt=et!==void 0?et:!se;y||(Se(rt),se!==rt&&(x==null||x(rt)));},[y,se,Se,x]),pt=f__namespace.useMemo(function(){return (N||[]).some(function(et){return [`
`,`\r
`].includes(et)})},[N]),ht=function(rt,ct,ot){var Ze=!0,Ot=rt;_==null||_(null);var Mt=ot?null:UW(rt,N);return b!=="combobox"&&Mt&&(Ot="",T==null||T(Mt),Ee(!1),Ze=!1),R&&De!==Ot&&R(Ot,{source:ct?"typing":"effect"}),Ze},Lt=function(rt){!rt||!rt.trim()||R(rt,{source:"submit"});};f__namespace.useEffect(function(){!se&&!de&&b!=="combobox"&&ht("",!1,!1);},[se]),f__namespace.useEffect(function(){Ie&&y&&Se(!1),y&&_e(!1);},[y]);var Dt=lw(),Gt=Q(Dt,2),He=Gt[0],Xe=Gt[1],Ge=function(rt){var ct=He(),ot=rt.which;if(ot===le.ENTER&&(b!=="combobox"&&rt.preventDefault(),se||Ee(!0)),Xe(!!De),ot===le.BACKSPACE&&!ct&&de&&!De&&d.length){for(var Ze=We(d),Ot=null,Mt=Ze.length-1;Mt>=0;Mt-=1){var mn=Ze[Mt];if(!mn.disabled){Ze.splice(Mt,1),Ot=mn;break}}Ot&&m(Ze,{type:"remove",values:[Ot]});}for(var an=arguments.length,ir=new Array(an>1?an-1:0),sr=1;sr<an;sr++)ir[sr-1]=arguments[sr];if(se&&Fe.current){var ko;(ko=Fe.current).onKeyDown.apply(ko,[rt].concat(ir));}Z==null||Z.apply(void 0,[rt].concat(ir));},Ke=function(rt){for(var ct=arguments.length,ot=new Array(ct>1?ct-1:0),Ze=1;Ze<ct;Ze++)ot[Ze-1]=arguments[Ze];if(se&&Fe.current){var Ot;(Ot=Fe.current).onKeyUp.apply(Ot,[rt].concat(ot));}ce==null||ce.apply(void 0,[rt].concat(ot));},ke=function(rt){var ct=d.filter(function(ot){return ot!==rt});m(ct,{type:"remove",values:[rt]});},ft=f__namespace.useRef(!1),it=function(){_e(!0),y||(te&&!ft.current&&te.apply(void 0,arguments),me.includes("focus")&&Ee(!0)),ft.current=!0;},jt=function(){_e(!1,function(){ft.current=!1,Ee(!1);}),!y&&(De&&(b==="tags"?R(De,{source:"submit"}):b==="multiple"&&R("",{source:"blur"})),ae&&ae.apply(void 0,arguments));},vt=[];f__namespace.useEffect(function(){return function(){vt.forEach(function(et){return clearTimeout(et)}),vt.splice(0,vt.length);}},[]);var Sn=function(rt){var ct,ot=rt.target,Ze=(ct=Ve.current)===null||ct===void 0?void 0:ct.getPopupElement();if(Ze&&Ze.contains(ot)){var Ot=setTimeout(function(){var ir=vt.indexOf(Ot);if(ir!==-1&&vt.splice(ir,1),Oe(),!Ae&&!Ze.contains(document.activeElement)){var sr;(sr=Ue.current)===null||sr===void 0||sr.focus();}});vt.push(Ot);}for(var Mt=arguments.length,mn=new Array(Mt>1?Mt-1:0),an=1;an<Mt;an++)mn[an-1]=arguments[an];ne==null||ne.apply(void 0,[rt].concat(mn));},br=f__namespace.useState({}),Ln=Q(br,2),Dn=Ln[1];function kr(){Dn({});}var rr;Me&&(rr=function(rt){Ee(rt);}),xW(function(){var et;return [Ce.current,(et=Ve.current)===null||et===void 0?void 0:et.getPopupElement()]},we,Ee,!!Me);var ho=f__namespace.useMemo(function(){return Y(Y({},e),{},{notFoundContent:g,open:se,triggerOpen:we,id:o,showSearch:he,multiple:de,toggleOpen:Ee})},[e,g,we,se,o,he,de,Ee]),vo=!!L||S,Vn;vo&&(Vn=f__namespace.createElement(ju,{className:H("".concat(a,"-arrow"),U({},"".concat(a,"-arrow-loading"),S)),customizeIcon:L,customizeIconProps:{loading:S,searchValue:De,open:se,focused:st,showSearch:he}}));var jn=function(){var rt;p==null||p(),(rt=Ue.current)===null||rt===void 0||rt.focus(),m([],{type:"clear",values:d}),ht("",!1,!1);},Ar=SW(a,jn,d,M,j,y,De,b),yr=Ar.allowClear,or=Ar.clearIcon,Un=f__namespace.createElement(z,{ref:Fe}),Cr=H(a,i,(r={},U(r,"".concat(a,"-focused"),st),U(r,"".concat(a,"-multiple"),de),U(r,"".concat(a,"-single"),!de),U(r,"".concat(a,"-allow-clear"),M),U(r,"".concat(a,"-show-arrow"),vo),U(r,"".concat(a,"-disabled"),y),U(r,"".concat(a,"-loading"),S),U(r,"".concat(a,"-open"),se),U(r,"".concat(a,"-customize-input"),yt),U(r,"".concat(a,"-show-search"),he),r)),Sr=f__namespace.createElement(fw,{ref:Ve,disabled:y,prefixCls:a,visible:we,popupElement:Un,animation:V,transitionName:B,dropdownStyle:W,dropdownClassName:F,direction:c,dropdownMatchSelectWidth:X,dropdownRender:q,dropdownAlign:K,placement:G,builtinPlacements:J,getPopupContainer:oe,empty:h,getTriggerDOMNode:function(){return Ne.current},onPopupVisibleChange:rr,onPopupMouseEnter:kr},Me?f__namespace.cloneElement(Me,{ref:gt}):f__namespace.createElement(dw,$e({},e,{domRef:Ne,prefixCls:a,inputElement:yt,ref:Ue,id:o,showSearch:he,autoClearSearchValue:P,mode:b,activeDescendantId:k,tagRender:l,values:d,open:se,onToggleOpen:Ee,activeValue:I,searchValue:De,onSearch:ht,onSearchSubmit:Lt,onRemove:ke,tokenWithEnter:pt}))),ar;return Me?ar=Sr:ar=f__namespace.createElement("div",$e({className:Cr},fe,{ref:Ce,onMouseDown:Sn,onKeyDown:Ge,onKeyUp:Ke,onFocus:it,onBlur:jt}),st&&!se&&f__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(et){var rt=et.label,ct=et.value;return ["number","string"].includes(dt(rt))?rt:ct}).join(", "))),Sr,Vn,yr&&or),f__namespace.createElement(sw.Provider,{value:ho},ar)});const XW=function(e,t){var n=f__namespace.useRef({values:new Map,options:new Map}),r=f__namespace.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var m;return Y(Y({},d),{},{label:(m=i.get(d.value))===null||m===void 0?void 0:m.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=u,l},[e,t]),o=f__namespace.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function rf(e,t){return cw(e).join("").toUpperCase().includes(t)}const YW=function(e,t,n,r,o){return f__namespace.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(h,v){return o?rf(v[o],u):v[a]?rf(v[i!=="children"?i:"label"],u):rf(v[s],u)},m=c?function(h){return Mm(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var v=d(n,m(h));if(v)l.push(h);else {var g=h[a].filter(function(p){return d(n,m(p))});g.length&&l.push(Y(Y({},h),{},U({},a,g)));}return}d(n,m(h))&&l.push(h);}),l},[e,r,o,n,t])};var z0=0,ZW=kn();function QW(){var e;return ZW?(e=z0,z0+=1):e="TEST_OR_SSR",e}function JW(e){var t=f__namespace.useState(),n=Q(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){o("rc_select_".concat(QW()));},[]),e||r}var eV=["children","value"],tV=["children"];function nV(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=Je(r,eV);return Y({key:n,value:a!==void 0?a:n,children:o},i)}function hw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return er(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=Je(s,tV);return t||!a?nV(n):Y(Y({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:hw(l)})}).filter(function(n){return n})}function rV(e,t,n,r,o){return f__namespace.useMemo(function(){var a=e,i=!e;i&&(a=hw(t));var s=new Map,l=new Map,c=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h);};function u(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<d.length;h+=1){var v=d[h];!v[n.options]||m?(s.set(v[n.value],v),c(l,v,n.label),c(l,v,r),c(l,v,o)):u(v[n.options],!0);}}return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function B0(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Xv=function(){return null};Xv.isSelectOptGroup=!0;var Yv=function(){return null};Yv.isSelectOption=!0;var vw=f__namespace.forwardRef(function(e,t){var n=e.height,r=e.offset,o=e.children,a=e.prefixCls,i=e.onInnerResize,s=e.innerProps,l={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:n,position:"relative",overflow:"hidden"},c=Y(Y({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),f__namespace.createElement("div",{style:l},f__namespace.createElement(_r,{onResize:function(d){var m=d.offsetHeight;m&&i&&i();}},f__namespace.createElement("div",$e({style:c,className:H(U({},"".concat(a,"-holder-inner"),a)),ref:t},s),o)))});vw.displayName="Filler";var oV=20;function F0(e){return "touches"in e?e.touches[0].pageY:e.pageY}var aV=function(e){co(n,e);var t=uo(n);function n(){var r;bn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),r.moveRaf=null,r.scrollbarRef=f__namespace.createRef(),r.thumbRef=f__namespace.createRef(),r.visibleTimeout=null,r.state={dragging:!1,pageY:null,startTop:null,visible:!1},r.delayHidden=function(){clearTimeout(r.visibleTimeout),r.setState({visible:!0}),r.visibleTimeout=setTimeout(function(){r.setState({visible:!1});},2e3);},r.onScrollbarTouchStart=function(s){s.preventDefault();},r.onContainerMouseDown=function(s){s.stopPropagation(),s.preventDefault();},r.patchEvents=function(){window.addEventListener("mousemove",r.onMouseMove),window.addEventListener("mouseup",r.onMouseUp),r.thumbRef.current.addEventListener("touchmove",r.onMouseMove),r.thumbRef.current.addEventListener("touchend",r.onMouseUp);},r.removeEvents=function(){var s;window.removeEventListener("mousemove",r.onMouseMove),window.removeEventListener("mouseup",r.onMouseUp),(s=r.scrollbarRef.current)===null||s===void 0||s.removeEventListener("touchstart",r.onScrollbarTouchStart),r.thumbRef.current&&(r.thumbRef.current.removeEventListener("touchstart",r.onMouseDown),r.thumbRef.current.removeEventListener("touchmove",r.onMouseMove),r.thumbRef.current.removeEventListener("touchend",r.onMouseUp)),St.cancel(r.moveRaf);},r.onMouseDown=function(s){var l=r.props.onStartMove;r.setState({dragging:!0,pageY:F0(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault();},r.onMouseMove=function(s){var l=r.state,c=l.dragging,u=l.pageY,d=l.startTop,m=r.props.onScroll;if(St.cancel(r.moveRaf),c){var h=F0(s)-u,v=d+h,g=r.getEnableScrollRange(),p=r.getEnableHeightRange(),b=p?v/p:0,y=Math.ceil(b*g);r.moveRaf=St(function(){m(y);});}},r.onMouseUp=function(){var s=r.props.onStopMove;r.setState({dragging:!1}),s(),r.removeEvents();},r.getSpinHeight=function(){var s=r.props,l=s.height,c=s.count,u=l/c*10;return u=Math.max(u,oV),u=Math.min(u,l/2),Math.floor(u)},r.getEnableScrollRange=function(){var s=r.props,l=s.scrollHeight,c=s.height;return l-c||0},r.getEnableHeightRange=function(){var s=r.props.height,l=r.getSpinHeight();return s-l||0},r.getTop=function(){var s=r.props.scrollTop,l=r.getEnableScrollRange(),c=r.getEnableHeightRange();if(s===0||l===0)return 0;var u=s/l;return u*c},r.showScroll=function(){var s=r.props,l=s.height,c=s.scrollHeight;return c>l},r}return yn(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,a=o.dragging,i=o.visible,s=this.props,l=s.prefixCls,c=s.direction,u=this.getSpinHeight(),d=this.getTop(),m=this.showScroll(),h=m&&i,v=c==="rtl"?{left:0}:{right:0};return f__namespace.createElement("div",{ref:this.scrollbarRef,className:H("".concat(l,"-scrollbar"),U({},"".concat(l,"-scrollbar-show"),m)),style:Y(Y({width:8,top:0,bottom:0},v),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f__namespace.createElement("div",{ref:this.thumbRef,className:H("".concat(l,"-scrollbar-thumb"),U({},"".concat(l,"-scrollbar-thumb-moving"),a)),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 iV(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function sV(e,t,n,r,o,a){var i=a.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,u=o(s,c,{}),d=i(s);return f__namespace.createElement(iV,{key:d,setRef:function(h){return r(s,h)}},u)})}var lV=function(){function e(){bn(this,e),this.maps=void 0,this.maps=Object.create(null);}return yn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function cV(e,t,n){var r=f__namespace.useState(0),o=Q(r,2),a=o[0],i=o[1],s=f.useRef(new Map),l=f.useRef(new lV),c=f.useRef();function u(){St.cancel(c.current);}function d(){u(),c.current=St(function(){s.current.forEach(function(h,v){if(h&&h.offsetParent){var g=rc(h),p=g.offsetHeight;l.current.get(v)!==p&&l.current.set(v,g.offsetHeight);}}),i(function(h){return h+1});});}function m(h,v){var g=e(h),p=s.current.get(g);v?(s.current.set(g,v),d()):s.current.delete(g),!p!=!v&&(v?t==null||t(h):n==null||n(h));}return f.useEffect(function(){return u},[]),[m,d,l.current,a]}function uV(e,t,n,r,o,a,i,s){var l=f__namespace.useRef();return function(c){if(c==null){s();return}if(St.cancel(l.current),typeof c=="number")i(c);else if(c&&dt(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=t.findIndex(function(g){return o(g)===c.key});var m=c.offset,h=m===void 0?0:m,v=function g(p,b){if(!(p<0||!e.current)){var y=e.current.clientHeight,S=!1,E=b;if(y){for(var $=b||d,w=0,C=0,x=0,I=Math.min(t.length,u),_=0;_<=I;_+=1){var k=o(t[_]);C=w;var O=n.get(k);x=C+(O===void 0?r:O),w=x,_===u&&O===void 0&&(S=!0);}var P=null;switch($){case"top":P=C-h;break;case"bottom":P=x-y+h;break;default:{var R=e.current.scrollTop,T=R+y;C<R?E="top":x>T&&(E="bottom");}}P!==null&&P!==e.current.scrollTop&&i(P);}l.current=St(function(){S&&a(),g(p-1,E);},2);}};v(3);}}}function dV(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function l(v){return v!==void 0?n(v):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<i.length;d+=1){var m=l(a[d]),h=l(i[d]);if(m!==h){c=d,u=u||m!==l(i[d+1]);break}}return c===null?null:{index:c,multiple:u}}function fV(e,t,n){var r=f__namespace.useState(e),o=Q(r,2),a=o[0],i=o[1],s=f__namespace.useState(null),l=Q(s,2),c=l[0],u=l[1];return f__namespace.useEffect(function(){var d=dV(a||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),i(e);},[e]),[c]}var mV=(typeof navigator>"u"?"undefined":dt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const gw=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 a=f.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i<0&&a.current.top||i>0&&a.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function hV(e,t,n,r){var o=f.useRef(0),a=f.useRef(null),i=f.useRef(null),s=f.useRef(!1),l=gw(t,n);function c(d){if(e){St.cancel(a.current);var m=d.deltaY;o.current+=m,i.current=m,!l(m)&&(mV||d.preventDefault(),a.current=St(function(){var h=s.current?10:1;r(o.current*h),o.current=0;}));}}function u(d){e&&(s.current=d.detail===i.current);}return [c,u]}var vV=14/15;function gV(e,t,n){var r=f.useRef(!1),o=f.useRef(0),a=f.useRef(null),i=f.useRef(null),s,l=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageY),v=o.current-h;o.current=h,n(v)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){v*=vV,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i.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),a.current=m.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c));};s=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c));},qt(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(i.current);}},[e]);}var pV=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],bV=[],yV={overflowY:"auto",overflowAnchor:"none"};function CV(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=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,v=e.direction,g=e.component,p=g===void 0?"div":g,b=e.onScroll,y=e.onVisibleChange,S=e.innerProps,E=Je(e,pV),$=!!(h!==!1&&a&&i),w=$&&u&&i*u.length>a,C=f.useState(0),x=Q(C,2),I=x[0],_=x[1],k=f.useState(!1),O=Q(k,2),P=O[0],R=O[1],T=H(r,U({},"".concat(r,"-rtl"),v==="rtl"),o),N=u||bV,M=f.useRef(),L=f.useRef(),j=f.useRef(),z=f__namespace.useCallback(function(_e){return typeof m=="function"?m(_e):_e==null?void 0:_e[m]},[m]),V={getKey:z};function B(_e){_(function(Oe){var De;typeof _e=="function"?De=_e(Oe):De=_e;var yt=fe(De);return M.current.scrollTop=yt,yt});}var W=f.useRef({start:0,end:N.length}),F=f.useRef(),X=fV(N,z),q=Q(X,1),K=q[0];F.current=K;var G=cV(z,null,null),J=Q(G,4),oe=J[0],ue=J[1],me=J[2],te=J[3],ae=f__namespace.useMemo(function(){if(!$)return {scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!w){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 Oe=0,De,yt,Me,gt=N.length,Re=0;Re<gt;Re+=1){var re=N[Re],ve=z(re),pe=me.get(ve),ye=Oe+(pe===void 0?i:pe);ye>=I&&De===void 0&&(De=Re,yt=Oe),ye>I+a&&Me===void 0&&(Me=Re),Oe=ye;}return De===void 0&&(De=0,yt=0,Me=Math.ceil(a/i)),Me===void 0&&(Me=N.length-1),Me=Math.min(Me+1,N.length),{scrollHeight:Oe,start:De,end:Me,offset:yt}},[w,$,I,N,te,a]),ce=ae.scrollHeight,Z=ae.start,ne=ae.end,ee=ae.offset;W.current.start=Z,W.current.end=ne;var de=ce-a,he=f.useRef(de);he.current=de;function fe(_e){var Oe=_e;return Number.isNaN(he.current)||(Oe=Math.min(Oe,he.current)),Oe=Math.max(Oe,0),Oe}var Pe=I<=0,je=I>=de,Ae=gw(Pe,je);function be(_e){var Oe=_e;B(Oe);}function Ce(_e){var Oe=_e.currentTarget.scrollTop;Oe!==I&&B(Oe),b==null||b(_e);}var Ne=hV($,Pe,je,function(_e){B(function(Oe){var De=Oe+_e;return De});}),Ve=Q(Ne,2),Ue=Ve[0],Fe=Ve[1];gV($,M,function(_e,Oe){return Ae(_e,Oe)?!1:(Ue({preventDefault:function(){},deltaY:_e}),!0)}),qt(function(){function _e(Oe){$&&Oe.preventDefault();}return M.current.addEventListener("wheel",Ue),M.current.addEventListener("DOMMouseScroll",Fe),M.current.addEventListener("MozMousePixelScroll",_e),function(){M.current&&(M.current.removeEventListener("wheel",Ue),M.current.removeEventListener("DOMMouseScroll",Fe),M.current.removeEventListener("MozMousePixelScroll",_e));}},[$]);var Le=uV(M,N,me,i,z,ue,B,function(){var _e;(_e=j.current)===null||_e===void 0||_e.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:Le}}),qt(function(){if(y){var _e=N.slice(Z,ne+1);y(_e,N);}},[Z,ne,N]);var at=sV(N,Z,ne,oe,d,V),st=null;return a&&(st=Y(U({},l?"height":"maxHeight",a),yV),$&&(st.overflowY="hidden",P&&(st.pointerEvents="none"))),f__namespace.createElement("div",$e({style:Y(Y({},c),{},{position:"relative"}),className:T},E),f__namespace.createElement(p,{className:"".concat(r,"-holder"),style:st,ref:M,onScroll:Ce},f__namespace.createElement(vw,{prefixCls:r,height:ce,offset:ee,onInnerResize:ue,ref:L,innerProps:S},at)),$&&f__namespace.createElement(aV,{ref:j,prefixCls:r,scrollTop:I,height:a,scrollHeight:ce,count:N.length,direction:v,onScroll:be,onStartMove:function(){R(!0);},onStopMove:function(){R(!1);}}))}var pw=f__namespace.forwardRef(CV);pw.displayName="List";var bw=f__namespace.createContext(null);function SV(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var $V=["disabled","title","children","style","className"];function H0(e){return typeof e=="string"||typeof e=="number"}var wV=function(t,n){var r=$W(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,h=f__namespace.useContext(bw),v=h.flattenOptions,g=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,y=h.menuItemSelectedIcon,S=h.rawValues,E=h.fieldNames,$=h.virtual,w=h.direction,C=h.listHeight,x=h.listItemHeight,I="".concat(o,"-item"),_=Os(function(){return v},[i,v],function(K,G){return G[0]&&K[1]!==G[1]}),k=f__namespace.useRef(null),O=function(G){G.preventDefault();},P=function(G){k.current&&k.current.scrollTo(typeof G=="number"?{index:G}:G);},R=function(G){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=_.length,ue=0;ue<oe;ue+=1){var me=(G+ue*J+oe)%oe,te=_[me],ae=te.group,ce=te.data;if(!ae&&!ce.disabled)return me}return -1},T=f__namespace.useState(function(){return R(0)}),N=Q(T,2),M=N[0],L=N[1],j=function(G){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;L(G);var oe={source:J?"keyboard":"mouse"},ue=_[G];if(!ue){g(null,-1,oe);return}g(ue.value,G,oe);};f.useEffect(function(){j(p!==!1?R(0):-1);},[_.length,c]);var z=f__namespace.useCallback(function(K){return S.has(K)&&l!=="combobox"},[l,We(S).toString(),S.size]);f.useEffect(function(){var K=setTimeout(function(){if(!s&&i&&S.size===1){var J=Array.from(S)[0],oe=_.findIndex(function(ue){var me=ue.data;return me.value===J});oe!==-1&&(j(oe),P(oe));}});if(i){var G;(G=k.current)===null||G===void 0||G.scrollTo(void 0);}return function(){return clearTimeout(K)}},[i,c,v.length]);var V=function(G){G!==void 0&&b(G,{selected:!S.has(G)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(G){var J=G.which,oe=G.ctrlKey;switch(J){case le.N:case le.P:case le.UP:case le.DOWN:{var ue=0;if(J===le.UP?ue=-1:J===le.DOWN?ue=1:SV()&&oe&&(J===le.N?ue=1:J===le.P&&(ue=-1)),ue!==0){var me=R(M+ue,ue);P(me),j(me,!0);}break}case le.ENTER:{var te=_[M];te&&!te.data.disabled?V(te.value):V(void 0),i&&G.preventDefault();break}case le.ESC:u(!1),i&&G.stopPropagation();}},onKeyUp:function(){},scrollTo:function(G){P(G);}}}),_.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(I,"-empty"),onMouseDown:O},d);var B=Object.keys(E).map(function(K){return E[K]}),W=function(G){return G.label};function F(K,G){var J=K.group;return {role:J?"presentation":"option",id:"".concat(a,"_list_").concat(G)}}var X=function(G){var J=_[G];if(!J)return null;var oe=J.data||{},ue=oe.value,me=J.group,te=Xa(oe,!0),ae=W(J);return J?f__namespace.createElement("div",$e({"aria-label":typeof ae=="string"&&!me?ae:null},te,{key:G},F(J,G),{"aria-selected":z(ue)}),ue):null},q={role:"listbox",id:"".concat(a,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,$&&f__namespace.createElement("div",$e({},q,{style:{height:0,width:0,overflow:"hidden"}}),X(M-1),X(M),X(M+1)),f__namespace.createElement(pw,{itemKey:"key",ref:k,data:_,height:C,itemHeight:x,fullHeight:!1,onMouseDown:O,onScroll:m,virtual:$,direction:w,innerProps:$?null:q},function(K,G){var J,oe=K.group,ue=K.groupOption,me=K.data,te=K.label,ae=K.value,ce=me.key;if(oe){var Z,ne=(Z=me.title)!==null&&Z!==void 0?Z:H0(te)?te.toString():void 0;return f__namespace.createElement("div",{className:H(I,"".concat(I,"-group")),title:ne},te!==void 0?te:ce)}var ee=me.disabled,de=me.title;me.children;var he=me.style,fe=me.className,Pe=Je(me,$V),je=Pn(Pe,B),Ae=z(ae),be="".concat(I,"-option"),Ce=H(I,be,fe,(J={},U(J,"".concat(be,"-grouped"),ue),U(J,"".concat(be,"-active"),M===G&&!ee),U(J,"".concat(be,"-disabled"),ee),U(J,"".concat(be,"-selected"),Ae),J)),Ne=W(K),Ve=!y||typeof y=="function"||Ae,Ue=typeof Ne=="number"?Ne:Ne||ae,Fe=H0(Ue)?Ue.toString():void 0;return de!==void 0&&(Fe=de),f__namespace.createElement("div",$e({},Xa(je),$?{}:F(K,G),{"aria-selected":Ae,className:Ce,title:Fe,onMouseMove:function(){M===G||ee||j(G);},onClick:function(){ee||V(ae);},style:he}),f__namespace.createElement("div",{className:"".concat(be,"-content")},Ue),f__namespace.isValidElement(y)||Ae,Ve&&f__namespace.createElement(ju,{className:"".concat(I,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:Ae}},Ae?"✓":null))}))},yw=f__namespace.forwardRef(wV);yw.displayName="OptionList";var xV=["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"],EV=["inputValue"];function OV(e){return !e||dt(e)!=="object"}var IV=f__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=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,v=e.onDeselect,g=e.dropdownMatchSelectWidth,p=g===void 0?!0:g,b=e.filterOption,y=e.filterSort,S=e.optionFilterProp,E=e.optionLabelProp,$=e.options,w=e.children,C=e.defaultActiveFirstOption,x=e.menuItemSelectedIcon,I=e.virtual,_=e.direction,k=e.listHeight,O=k===void 0?200:k,P=e.listItemHeight,R=P===void 0?20:P,T=e.value,N=e.defaultValue,M=e.labelInValue,L=e.onChange,j=Je(e,xV),z=JW(n),V=Nm(r),B=!!(!$&&w),W=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),F=f__namespace.useMemo(function(){return mw(s,B)},[JSON.stringify(s),B]),X=Bt("",{value:c!==void 0?c:l,postState:function(xe){return xe||""}}),q=Q(X,2),K=q[0],G=q[1],J=rV($,w,F,S,E),oe=J.valueOptions,ue=J.labelOptions,me=J.options,te=f__namespace.useCallback(function(se){var xe=cw(se);return xe.map(function(we){var Ee,pt,ht,Lt,Dt;if(OV(we))Ee=we;else {var Gt;ht=we.key,pt=we.label,Ee=(Gt=we.value)!==null&&Gt!==void 0?Gt:ht;}var He=oe.get(Ee);if(He){var Xe;pt===void 0&&(pt=He==null?void 0:He[E||F.label]),ht===void 0&&(ht=(Xe=He==null?void 0:He.key)!==null&&Xe!==void 0?Xe:Ee),Lt=He==null?void 0:He.disabled,Dt=He==null?void 0:He.title;}return {label:pt,value:Ee,key:ht,disabled:Lt,title:Dt}})},[F,E,oe]),ae=Bt(N,{value:T}),ce=Q(ae,2),Z=ce[0],ne=ce[1],ee=f__namespace.useMemo(function(){var se,xe=te(Z);return r==="combobox"&&kW((se=xe[0])===null||se===void 0?void 0:se.value)?[]:xe},[Z,te,r]),de=XW(ee,oe),he=Q(de,2),fe=he[0],Pe=he[1],je=f__namespace.useMemo(function(){if(!r&&fe.length===1){var se=fe[0];if(se.value===null&&(se.label===null||se.label===void 0))return []}return fe.map(function(xe){var we;return Y(Y({},xe),{},{label:(we=xe.label)!==null&&we!==void 0?we:xe.value})})},[r,fe]),Ae=f__namespace.useMemo(function(){return new Set(fe.map(function(se){return se.value}))},[fe]);f__namespace.useEffect(function(){if(r==="combobox"){var se,xe=(se=fe[0])===null||se===void 0?void 0:se.value;G(NW(xe)?String(xe):"");}},[fe]);var be=B0(function(se,xe){var we,Ee=xe??se;return we={},U(we,F.value,se),U(we,F.label,Ee),we}),Ce=f__namespace.useMemo(function(){if(r!=="tags")return me;var se=We(me),xe=function(Ee){return oe.has(Ee)};return We(fe).sort(function(we,Ee){return we.value<Ee.value?-1:1}).forEach(function(we){var Ee=we.value;xe(Ee)||se.push(be(Ee,we.label));}),se},[be,me,oe,fe,r]),Ne=YW(Ce,F,K,W,S),Ve=f__namespace.useMemo(function(){return r!=="tags"||!K||Ne.some(function(se){return se[S||"value"]===K})||Ne.some(function(se){return se[F.value]===K})?Ne:[be(K)].concat(We(Ne))},[be,S,r,Ne,K,F]),Ue=f__namespace.useMemo(function(){return y?We(Ve).sort(function(se,xe){return y(se,xe)}):Ve},[Ve,y]),Fe=f__namespace.useMemo(function(){return VW(Ue,{fieldNames:F,childrenAsData:B})},[Ue,F,B]),Le=function(xe){var we=te(xe);if(ne(we),L&&(we.length!==fe.length||we.some(function(ht,Lt){var Dt;return ((Dt=fe[Lt])===null||Dt===void 0?void 0:Dt.value)!==(ht==null?void 0:ht.value)}))){var Ee=M?we:we.map(function(ht){return ht.value}),pt=we.map(function(ht){return Mm(Pe(ht.value))});L(V?Ee:Ee[0],V?pt:pt[0]);}},at=f__namespace.useState(null),st=Q(at,2),_e=st[0],Oe=st[1],De=f__namespace.useState(0),yt=Q(De,2),Me=yt[0],gt=yt[1],Re=C!==void 0?C:r!=="combobox",re=f__namespace.useCallback(function(se,xe){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ee=we.source,pt=Ee===void 0?"keyboard":Ee;gt(xe),i&&r==="combobox"&&se!==null&&pt==="keyboard"&&Oe(String(se));},[i,r]),ve=function(xe,we,Ee){var pt=function(){var ft,it=Pe(xe);return [M?{label:it==null?void 0:it[F.label],value:xe,key:(ft=it==null?void 0:it.key)!==null&&ft!==void 0?ft:xe}:xe,Mm(it)]};if(we&&h){var ht=pt(),Lt=Q(ht,2),Dt=Lt[0],Gt=Lt[1];h(Dt,Gt);}else if(!we&&v&&Ee!=="clear"){var He=pt(),Xe=Q(He,2),Ge=Xe[0],Ke=Xe[1];v(Ge,Ke);}},pe=B0(function(se,xe){var we,Ee=V?xe.selected:!0;Ee?we=V?[].concat(We(fe),[se]):[se]:we=fe.filter(function(pt){return pt.value!==se}),Le(we),ve(se,Ee),r==="combobox"?Oe(""):(!Nm||m)&&(G(""),Oe(""));}),ye=function(xe,we){Le(xe);var Ee=we.type,pt=we.values;(Ee==="remove"||Ee==="clear")&&pt.forEach(function(ht){ve(ht.value,!1,Ee);});},qe=function(xe,we){if(G(xe),Oe(null),we.source==="submit"){var Ee=(xe||"").trim();if(Ee){var pt=Array.from(new Set([].concat(We(Ae),[Ee])));Le(pt),ve(Ee,!0),G("");}return}we.source!=="blur"&&(r==="combobox"&&Le(xe),u==null||u(xe));},Ie=function(xe){var we=xe;r!=="tags"&&(we=xe.map(function(pt){var ht=ue.get(pt);return ht==null?void 0:ht.value}).filter(function(pt){return pt!==void 0}));var Ee=Array.from(new Set([].concat(We(Ae),We(we))));Le(Ee),Ee.forEach(function(pt){ve(pt,!0);});},Se=f__namespace.useMemo(function(){var se=I!==!1&&p!==!1;return Y(Y({},J),{},{flattenOptions:Fe,onActiveValue:re,defaultActiveFirstOption:Re,onSelect:pe,menuItemSelectedIcon:x,rawValues:Ae,fieldNames:F,virtual:se,direction:_,listHeight:O,listItemHeight:R,childrenAsData:B})},[J,Fe,re,Re,pe,x,Ae,F,I,p,O,R,B]);return f__namespace.createElement(bw.Provider,{value:Se},f__namespace.createElement(qW,$e({},j,{id:z,prefixCls:a,ref:t,omitDomProps:EV,mode:r,displayValues:je,onDisplayValuesChange:ye,direction:_,searchValue:K,onSearch:qe,autoClearSearchValue:m,onSearchSplit:Ie,dropdownMatchSelectWidth:p,OptionList:yw,emptyOptions:!Fe.length,activeValue:_e,activeDescendantId:"".concat(z,"_list_").concat(Me)})))}),Zv=IV;Zv.Option=Yv;Zv.OptGroup=Xv;const PV=()=>{const[,e]=nr(),n=new Xt(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"}))))},_V=PV,RV=()=>{const[,e]=nr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=f.useMemo(()=>({borderColor:new Xt(t).onBackground(o).toHexShortString(),shadowColor:new Xt(n).onBackground(o).toHexShortString(),contentColor:new Xt(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:i,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:a},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}))))},TV=RV,MV=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return {[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},NV=At("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=ut(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [MV(r)]});var kV=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Cw=f__namespace.createElement(_V,null),Sw=f__namespace.createElement(TV,null),Qv=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=Cw,description:a,children:i,imageStyle:s,style:l}=e,c=kV(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:m}=f__namespace.useContext(Ye),h=u("empty",r),[v,g]=NV(h),[p]=vi("Empty"),b=typeof a<"u"?a:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let S=null;return typeof o=="string"?S=f__namespace.createElement("img",{alt:y,src:o}):S=o,v(f__namespace.createElement("div",Object.assign({className:H(g,h,m==null?void 0:m.className,{[`${h}-normal`]:o===Sw,[`${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},S),b&&f__namespace.createElement("div",{className:`${h}-description`},b),i&&f__namespace.createElement("div",{className:`${h}-footer`},i)))};Qv.PRESENTED_IMAGE_DEFAULT=Cw;Qv.PRESENTED_IMAGE_SIMPLE=Sw;const Ti=Qv,AV=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(Ye),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Ti,{image:Ti.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Ti,{image:Ti.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Ti,null)}},$w=AV,LV=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return {position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},DV=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Tt(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,
${a}${s}bottomLeft
`]:{animationName:av},[`
${o}${s}topLeft,
${a}${s}topLeft,
${o}${s}topRight,
${a}${s}topRight
`]:{animationName:sv},[`${i}${s}bottomLeft`]:{animationName:iv},[`
${i}${s}topLeft,
${i}${s}topRight
`]:{animationName:lv},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},LV(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"},Zo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},To(e,"slide-up"),To(e,"slide-down"),lc(e,"move-up"),lc(e,"move-down")]},jV=DV,xa=2,ww=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return [o,a]};function of(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=ww(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",height:"100%",padding:`${i-xa}px ${xa*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${xa}px 0`,lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:xa,marginBottom:xa,lineHeight:`${a-e.lineWidth*2}px`,background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:xa*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},oa()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const zV=e=>{const{componentCls:t}=e,n=ut(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ut(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=ww(e);return [of(e),of(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},of(r,"lg")]},BV=zV;function af(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Tt(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:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function FV(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [af(e),af(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}}}},af(ut(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const HV=e=>{const{componentCls:t,selectorBg:n}=e;return {position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},sf=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:a,antCls:i}=t,s=n?{[`${r}-selector`]:{borderColor:o}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},WV=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"}}}},VV=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},HV(e)),WV(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Zo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Zo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},oa()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},UV=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%"}}},VV(e),FV(e),BV(e),jV(e),{[`${t}-rtl`]:{direction:"rtl"}},sf(t,ut(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),sf(`${t}-status-error`,ut(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),sf(`${t}-status-warning`,ut(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Eu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},GV=At("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ut(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [UV(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:m,controlHeightSM:h,colorBgContainerDisabled:v,colorTextDisabled:g}=e;return {zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:m,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:h,multipleItemHeightLG:r,multipleSelectorBgDisabled:v,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}),KV=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 qV(e,t){return e||KV(t)}function XV(e,t){return t!==void 0?t:e!==null}var YV={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 ZV=YV;var QV=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:ZV}))};const JV=f__namespace.forwardRef(QV);var eU={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 tU=eU;var nU=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:tU}))};const Jv=f__namespace.forwardRef(nU);var rU={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 oU=rU;var aU=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:oU}))};const eg=f__namespace.forwardRef(aU);function iU(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:m}=e;const h=n??f__namespace.createElement(Jv,null),v=y=>t===null&&!s&&!d?null:f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&y,s&&u);let g=null;if(t!==void 0)g=v(t);else if(a)g=v(f__namespace.createElement(hv,{spin:!0}));else {const y=`${l}-suffix`;g=S=>{let{open:E,showSearch:$}=S;return v(E&&$?f__namespace.createElement(eg,{className:y}):f__namespace.createElement(bv,{className:y}))};}let p=null;r!==void 0?p=r:i?p=f__namespace.createElement(JV,null):p=null;let b=null;return o!==void 0?b=o:b=f__namespace.createElement(Pu,null),{clearIcon:h,suffixIcon:g,itemIcon:p,removeIcon:b}}var sU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xw="SECRET_COMBOBOX_MODE_DO_NOT_USE",lU=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:a,rootClassName:i,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:m=24,size:h,disabled:v,notFoundContent:g,status:p,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:E,style:$,allowClear:w}=e,C=sU(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:x,getPrefixCls:I,renderEmpty:_,direction:k,virtual:O,popupMatchSelectWidth:P,popupOverflow:R,select:T}=f__namespace.useContext(Ye),N=I("select",r),M=I(),L=E??k,{compactSize:j,compactItemClassnames:z}=pi(N,L),[V,B]=GV(N),W=f__namespace.useMemo(()=>{const{mode:Ce}=C;if(Ce!=="combobox")return Ce===xw?"combobox":Ce},[C.mode]),F=W==="multiple"||W==="tags",X=XV(C.suffixIcon,C.showArrow),q=(n=S??y)!==null&&n!==void 0?n:P,{status:K,hasFeedback:G,isFormItemInput:J,feedbackIcon:oe}=f__namespace.useContext(vr),ue=As(K,p);let me;g!==void 0?me=g:W==="combobox"?me=null:me=(_==null?void 0:_("Select"))||f__namespace.createElement($w,{componentName:"Select"});const{suffixIcon:te,itemIcon:ae,removeIcon:ce,clearIcon:Z}=iU(Object.assign(Object.assign({},C),{multiple:F,hasFeedback:G,feedbackIcon:oe,showSuffixIcon:X,prefixCls:N,showArrow:C.showArrow,componentName:"Select"})),ne=w===!0?{clearIcon:Z}:w,ee=Pn(C,["suffixIcon","itemIcon"]),de=H(l||c,{[`${N}-dropdown-${L}`]:L==="rtl"},i,B),he=Wn(Ce=>{var Ne;return (Ne=h??j)!==null&&Ne!==void 0?Ne:Ce}),fe=f__namespace.useContext(Xr),Pe=v??fe,je=H({[`${N}-lg`]:he==="large",[`${N}-sm`]:he==="small",[`${N}-rtl`]:L==="rtl",[`${N}-borderless`]:!o,[`${N}-in-form-item`]:J},Rr(N,ue,G),z,T==null?void 0:T.className,a,i,B),Ae=f__namespace.useMemo(()=>d!==void 0?d:L==="rtl"?"bottomRight":"bottomLeft",[d,L]),be=qV(b,R);return V(f__namespace.createElement(Zv,Object.assign({ref:t,virtual:O,showSearch:T==null?void 0:T.showSearch},ee,{style:Object.assign(Object.assign({},T==null?void 0:T.style),$),dropdownMatchSelectWidth:q,builtinPlacements:be,transitionName:mu(M,"slide-up",C.transitionName),listHeight:u,listItemHeight:m,mode:W,prefixCls:N,placement:Ae,direction:L,suffixIcon:te,menuItemSelectedIcon:ae,removeIcon:ce,allowClear:ne,notFoundContent:me,className:je,getPopupContainer:s||x,dropdownClassName:de,disabled:Pe})))},Si=f__namespace.forwardRef(lU),cU=Gv(Si);Si.SECRET_COMBOBOX_MODE_DO_NOT_USE=xw;Si.Option=Yv;Si.OptGroup=Xv;Si._InternalPanelDoNotUseOrYouWillBeFired=cU;const Bs=Si;var eo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(eo||(eo={}));const uU=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(Em,{className:H(l,i),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},Yo=uU,dU=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=f.useState(On(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=On(c);n||i(u),r==null||r(u);};return f.createElement(Yo,{value:pc(a),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},fU=dU,mU=e=>{const{getPrefixCls:t,direction:n}=f.useContext(Ye),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=Ov(i),c=H(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),u=f.useContext(vr),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(vr.Provider,{value:d},e.children)))},hU=mU;function Ew(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.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 vU(e){return !!(e.prefix||e.suffix||e.allowClear)}var gU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function pU(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const bU=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:m,addonBefore:h,className:v,style:g,styles:p,rootClassName:b,onChange:y,classNames:S}=e,E=gU(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:$,direction:w,input:C}=f.useContext(Ye),x=$("input",r),I=f.useRef(null),[_,k]=Ov(x),{compactSize:O,compactItemClassnames:P}=pi(x,w),R=Wn(G=>{var J;return (J=i??O)!==null&&J!==void 0?J:G}),T=f.useContext(Xr),N=s??T,{status:M,hasFeedback:L,feedbackIcon:j}=f.useContext(vr),z=As(M,a),V=vU(e)||!!L;f.useRef(V);const B=Ew(I,!0),W=G=>{B(),l==null||l(G);},F=G=>{B(),c==null||c(G);},X=G=>{B(),y==null||y(G);},q=(L||u)&&f.createElement(f.Fragment,null,u,L&&j);let K;return typeof d=="object"&&(d!=null&&d.clearIcon)?K=d:d&&(K={clearIcon:f.createElement(Jv,null)}),_(f.createElement(lF,Object.assign({ref:Rn(t,I),prefixCls:x,autoComplete:C==null?void 0:C.autoComplete},E,{disabled:N,onBlur:W,onFocus:F,style:Object.assign(Object.assign({},C==null?void 0:C.style),g),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),p),suffix:q,allowClear:K,className:H(v,b,P,C==null?void 0:C.className),onChange:X,addonAfter:m&&f.createElement(Ua,null,f.createElement(is,{override:!0,status:!0},m)),addonBefore:h&&f.createElement(Ua,null,f.createElement(is,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},S),C==null?void 0:C.classNames),{input:H({[`${x}-sm`]:R==="small",[`${x}-lg`]:R==="large",[`${x}-rtl`]:w==="rtl",[`${x}-borderless`]:!o},!V&&Rr(x,z),S==null?void 0:S.input,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.input,k)}),classes:{affixWrapper:H({[`${x}-affix-wrapper-sm`]:R==="small",[`${x}-affix-wrapper-lg`]:R==="large",[`${x}-affix-wrapper-rtl`]:w==="rtl",[`${x}-affix-wrapper-borderless`]:!o},Rr(`${x}-affix-wrapper`,z,L),k),wrapper:H({[`${x}-group-rtl`]:w==="rtl"},k),group:H({[`${x}-group-wrapper-sm`]:R==="small",[`${x}-group-wrapper-lg`]:R==="large",[`${x}-group-wrapper-rtl`]:w==="rtl",[`${x}-group-wrapper-disabled`]:N},Rr(`${x}-group-wrapper`,z,L),k)}})))}),tg=bU;var yU={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 CU=yU;var SU=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:CU}))};const $U=f__namespace.forwardRef(SU);var wU={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 xU=wU;var EU=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:xU}))};const OU=f__namespace.forwardRef(EU);var IU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PU=e=>e?f__namespace.createElement(OU,null):f__namespace.createElement($U,null),_U={click:"onClick",hover:"onMouseOver"},RU=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=f.useState(()=>r?n.visible:!1),i=f.useRef(null);f__namespace.useEffect(()=>{r&&a(n.visible);},[r,n]);const s=Ew(i),l=()=>{const{disabled:$}=e;$||(o&&s(),a(w=>{var C;const x=!w;return typeof n=="object"&&((C=n.onVisibleChange)===null||C===void 0||C.call(n,x)),x}));},c=$=>{const{action:w="click",iconRender:C=PU}=e,x=_U[w]||"",I=C(o),_={[x]:l,className:`${$}-icon`,key:"passwordIcon",onMouseDown:k=>{k.preventDefault();},onMouseUp:k=>{k.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(I)?I:f__namespace.createElement("span",null,I),_)},{className:u,prefixCls:d,inputPrefixCls:m,size:h}=e,v=IU(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=f__namespace.useContext(Ye),p=g("input",m),b=g("input-password",d),y=n&&c(b),S=H(b,u,{[`${b}-${h}`]:!!h}),E=Object.assign(Object.assign({},Pn(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:p,suffix:y});return h&&(E.size=h),f__namespace.createElement(tg,Object.assign({ref:Rn(t,i)},E))}),TU=RU;var MU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NU=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:m,onCompositionStart:h,onCompositionEnd:v}=e,g=MU(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(Ye),y=f__namespace.useRef(!1),S=p("input-search",n),E=p("input",r),{compactSize:$}=pi(S,b),w=Wn(z=>{var V;return (V=a??$)!==null&&V!==void 0?V:z}),C=f__namespace.useRef(null),x=z=>{z&&z.target&&z.type==="click"&&d&&d(z.target.value,z,{source:"clear"}),m&&m(z);},I=z=>{var V;document.activeElement===((V=C.current)===null||V===void 0?void 0:V.input)&&z.preventDefault();},_=z=>{var V,B;d&&d((B=(V=C.current)===null||V===void 0?void 0:V.input)===null||B===void 0?void 0:B.value,z,{source:"input"});},k=z=>{y.current||c||_(z);},O=typeof s=="boolean"?f__namespace.createElement(eg,null):null,P=`${S}-button`;let R;const T=s||{},N=T.type&&T.type.__ANT_BUTTON===!0;N||T.type==="button"?R=In(T,Object.assign({onMouseDown:I,onClick:z=>{var V,B;(B=(V=T==null?void 0:T.props)===null||V===void 0?void 0:V.onClick)===null||B===void 0||B.call(V,z),_(z);},key:"enterButton"},N?{className:P,size:w}:{})):R=f__namespace.createElement(Kt,{className:P,type:s?"primary":void 0,size:w,disabled:u,key:"enterButton",onMouseDown:I,onClick:_,loading:c,icon:O},s),l&&(R=[R,In(l,{key:"addonAfter"})]);const M=H(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${w}`]:!!w,[`${S}-with-button`]:!!s},o),L=z=>{y.current=!0,h==null||h(z);},j=z=>{y.current=!1,v==null||v(z);};return f__namespace.createElement(tg,Object.assign({ref:Rn(C,t),onPressEnter:k},g,{size:w,onCompositionStart:L,onCompositionEnd:j,prefixCls:E,addonAfter:R,suffix:i,onChange:x,className:M,disabled:u}))}),kU=NU;var AU=`
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;
`,LU=["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"],lf={},dr;function DU(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&&lf[n])return lf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=LU.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(lf[n]=l),l}function jU(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;dr||(dr=document.createElement("textarea"),dr.setAttribute("tab-index","-1"),dr.setAttribute("aria-hidden","true"),document.body.appendChild(dr)),e.getAttribute("wrap")?dr.setAttribute("wrap",e.getAttribute("wrap")):dr.removeAttribute("wrap");var o=DU(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;dr.setAttribute("style","".concat(l,";").concat(AU)),dr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,m=dr.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){dr.value=" ";var h=dr.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+i),m=Math.max(c,m)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+i),d=m>u?"":"hidden",m=Math.min(u,m));}var v={height:m,overflowY:d,resize:"none"};return c&&(v.minHeight=c),u&&(v.maxHeight=u),v}var zU=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],cf=0,uf=1,df=2,BU=f__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var m=Je(n,zU),h=Bt(o,{value:a,postState:function(F){return F??""}}),v=Q(h,2),g=v[0],p=v[1],b=function(F){p(F.target.value),d==null||d(F);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var S=f__namespace.useMemo(function(){return i&&dt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),E=Q(S,2),$=E[0],w=E[1],C=!!i,x=function(){try{if(document.activeElement===y.current){var F=y.current,X=F.selectionStart,q=F.selectionEnd,K=F.scrollTop;y.current.setSelectionRange(X,q),y.current.scrollTop=K;}}catch{}},I=f__namespace.useState(df),_=Q(I,2),k=_[0],O=_[1],P=f__namespace.useState(),R=Q(P,2),T=R[0],N=R[1],M=function(){O(cf);};qt(function(){C&&M();},[a,$,w,C]),qt(function(){if(k===cf)O(uf);else if(k===uf){var W=jU(y.current,!1,$,w);O(df),N(W);}else x();},[k]);var L=f__namespace.useRef(),j=function(){St.cancel(L.current);},z=function(F){k===df&&(s==null||s(F),i&&(j(),L.current=St(function(){M();})));};f__namespace.useEffect(function(){return j},[]);var V=C?T:null,B=Y(Y({},c),V);return (k===cf||k===uf)&&(B.overflowY="hidden",B.overflowX="hidden"),f__namespace.createElement(_r,{onResize:z,disabled:!(i||s)},f__namespace.createElement("textarea",$e({},m,{ref:y,style:B,className:H(r,l,U({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),FU=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ow(e,t){return We(e||"").slice(0,t).join("")}function W0(e,t,n,r){var o=n;return e?o=Ow(n,r):We(t||"").length<n.length&&We(n||"").length>r&&(o=t),o}var HU=f.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,g=e.classes,p=e.showCount,b=e.className,y=e.style,S=e.disabled,E=e.hidden,$=e.classNames,w=e.styles,C=e.onResize,x=Je(e,FU),I=Bt(r,{value:o,defaultValue:r}),_=Q(I,2),k=_[0],O=_[1],P=f.useRef(null),R=f.useState(!1),T=Q(R,2),N=T[0],M=T[1],L=f.useState(!1),j=Q(L,2),z=j[0],V=j[1],B=f.useRef(),W=f.useRef(0),F=f.useState(null),X=Q(F,2),q=X[0],K=X[1],G=function(){var be;(be=P.current)===null||be===void 0||be.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:P.current,focus:G,blur:function(){var be;(be=P.current)===null||be===void 0||be.textArea.blur();}}}),f.useEffect(function(){M(function(Ae){return !S&&Ae});},[S]);var J=Number(c)>0,oe=function(be){V(!0),B.current=k,W.current=be.currentTarget.selectionStart,u==null||u(be);},ue=function(be){V(!1);var Ce=be.currentTarget.value;if(J){var Ne,Ve=W.current>=c+1||W.current===((Ne=B.current)===null||Ne===void 0?void 0:Ne.length);Ce=W0(Ve,B.current,Ce,c);}Ce!==k&&(O(Ce),Vi(be.currentTarget,be,s,Ce)),d==null||d(be);},me=function(be){var Ce=be.target.value;if(!z&&J){var Ne=be.target.selectionStart>=c+1||be.target.selectionStart===Ce.length||!be.target.selectionStart;Ce=W0(Ne,k,Ce,c);}O(Ce),Vi(be.currentTarget,be,s,Ce);},te=function(be){var Ce=x.onPressEnter,Ne=x.onKeyDown;be.key==="Enter"&&Ce&&Ce(be),Ne==null||Ne(be);},ae=function(be){M(!0),a==null||a(be);},ce=function(be){M(!1),i==null||i(be);},Z=function(be){var Ce;O(""),G(),Vi((Ce=P.current)===null||Ce===void 0?void 0:Ce.textArea,be,s);},ne=xm(k);!z&&J&&o==null&&(ne=Ow(ne,c));var ee=m,de;if(p){var he=We(ne).length;dt(p)==="object"?de=p.formatter({value:ne,count:he,maxLength:c}):de="".concat(he).concat(J?" / ".concat(c):""),ee=f.createElement(f.Fragment,null,ee,f.createElement("span",{className:H("".concat(v,"-data-count"),$==null?void 0:$.count),style:w==null?void 0:w.count},de));}var fe=function(be){var Ce;C==null||C(be),(Ce=P.current)!==null&&Ce!==void 0&&Ce.textArea.style.height&&K(!0);},Pe=!x.autoSize&&!p&&!l,je=f.createElement(Sv,{value:ne,allowClear:l,handleReset:Z,suffix:ee,prefixCls:v,classes:{affixWrapper:H(g==null?void 0:g.affixWrapper,(n={},U(n,"".concat(v,"-show-count"),p),U(n,"".concat(v,"-textarea-allow-clear"),l),n))},disabled:S,focused:N,className:b,style:Y(Y({},y),q&&!Pe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof de=="string"?de:void 0}},hidden:E,inputElement:f.createElement(BU,$e({},x,{onKeyDown:te,onChange:me,onFocus:ae,onBlur:ce,onCompositionStart:oe,onCompositionEnd:ue,className:$==null?void 0:$.textarea,style:Y(Y({},w==null?void 0:w.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:v,onResize:fe,ref:P}))});return je}),WU=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const VU=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:o,disabled:a,status:i,allowClear:s,showCount:l,classNames:c,rootClassName:u,className:d}=e,m=WU(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:h,direction:v}=f__namespace.useContext(Ye),g=Wn(o),p=f__namespace.useContext(Xr),b=a??p,{status:y,hasFeedback:S,feedbackIcon:E}=f__namespace.useContext(vr),$=As(y,i),w=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var k;return {resizableTextArea:(k=w.current)===null||k===void 0?void 0:k.resizableTextArea,focus:O=>{var P,R;pU((R=(P=w.current)===null||P===void 0?void 0:P.resizableTextArea)===null||R===void 0?void 0:R.textArea,O);},blur:()=>{var O;return (O=w.current)===null||O===void 0?void 0:O.blur()}}});const C=h("input",n);let x;typeof s=="object"&&(s!=null&&s.clearIcon)?x=s:s&&(x={clearIcon:f__namespace.createElement(Jv,null)});const[I,_]=Ov(C);return I(f__namespace.createElement(HU,Object.assign({},m,{disabled:b,allowClear:x,className:H(d,u),classes:{affixWrapper:H(`${C}-textarea-affix-wrapper`,{[`${C}-affix-wrapper-rtl`]:v==="rtl",[`${C}-affix-wrapper-borderless`]:!r,[`${C}-affix-wrapper-sm`]:g==="small",[`${C}-affix-wrapper-lg`]:g==="large",[`${C}-textarea-show-count`]:l},Rr(`${C}-affix-wrapper`,$),_)},classNames:Object.assign(Object.assign({},c),{textarea:H({[`${C}-borderless`]:!r,[`${C}-sm`]:g==="small",[`${C}-lg`]:g==="large"},Rr(C,$),_,c==null?void 0:c.textarea)}),prefixCls:C,suffix:S&&f__namespace.createElement("span",{className:`${C}-textarea-suffix`},E),showCount:l,ref:w})))}),UU=VU,Fs=tg;Fs.Group=hU;Fs.Search=kU;Fs.TextArea=UU;Fs.Password=TU;const Iw=Fs,GU=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,V0=e=>GU.test(`#${e}`),KU=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const l=n==null?void 0:n.toHex();V0(l)&&n&&i(Bl(l));},[n]);const s=l=>{const c=l.target.value;i(Bl(c)),V0(Bl(c,!0))&&(r==null||r(On(c)));};return f.createElement(Iw,{className:o,value:a,prefix:"#",onChange:s,size:"small"})},qU=KU,XU=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=f.useState(On(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=On(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Yo,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:l=>Fl(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(Yo,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${Fl(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(Yo,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${Fl(l||0)}%`,onChange:l=>s(Number(l),"b")}))},YU=XU,ZU=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=f.useState(On(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=On(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Yo,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(Yo,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(Yo,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},QU=ZU,JU=[eo.hex,eo.hsb,eo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),eG=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[s,l]=Bt(eo.hex,{value:n,onChange:a}),c=`${t}-input`,u=m=>{l(m);},d=f.useMemo(()=>{const m={value:r,prefixCls:t,onChange:i};switch(s){case eo.hsb:return f.createElement(YU,Object.assign({},m));case eo.rgb:return f.createElement(QU,Object.assign({},m));case eo.hex:default:return f.createElement(qU,Object.assign({},m))}},[s,t,r,i]);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:JU}),f.createElement("div",{className:c},d),!o&&f.createElement(fU,{prefixCls:t,value:r,onChange:i}))},tG=eG;var nG=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rG=()=>{const e=f.useContext(ow),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:s,onChangeComplete:l}=e,c=nG(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return f.createElement(f.Fragment,null,r&&f.createElement(iw,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),s==null||s();}},c)),f.createElement(vW,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:l}),f.createElement(tG,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},c)))},U0=rG;var oG={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 aG=oG;var iG=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:aG}))};const Ya=f__namespace.forwardRef(iG);var Pw=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=f.useState(l||o),d=Q(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:H("".concat(r,"-content"),(n={},U(n,"".concat(r,"-content-active"),l),U(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});Pw.displayName="PanelContent";var sG=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],_w=f.forwardRef(function(e,t){var n,r,o=e.showArrow,a=o===void 0?!0:o,i=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,m=e.collapsible,h=e.accordion,v=e.panelKey,g=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,S=e.destroyInactivePanel,E=e.children,$=Je(e,sG),w=m==="disabled",C=m==="header",x=m==="icon",I=g!=null&&typeof g!="boolean",_=function(){l==null||l(v);},k=function(M){(M.key==="Enter"||M.keyCode===le.ENTER||M.which===le.ENTER)&&_();},O=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});O&&(O=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?_:void 0},O));var P=H((n={},U(n,"".concat(d,"-item"),!0),U(n,"".concat(d,"-item-active"),s),U(n,"".concat(d,"-item-disabled"),w),n),u),R=H(i,(r={},U(r,"".concat(d,"-header"),!0),U(r,"".concat(d,"-header-collapsible-only"),C),U(r,"".concat(d,"-icon-collapsible-only"),x),r)),T={className:R,"aria-expanded":s,"aria-disabled":w,onKeyDown:k};return !C&&!x&&(T.onClick=_,T.role=h?"tab":"button",T.tabIndex=w?-1:0),f.createElement("div",$e({},$,{ref:t,className:P}),f.createElement("div",T,a&&O,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?_:void 0},p),I&&f.createElement("div",{className:"".concat(d,"-extra")},g)),f.createElement(fo,$e({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:S}),function(N,M){var L=N.className,j=N.style;return f.createElement(Pw,{ref:M,prefixCls:d,className:L,style:j,isActive:s,forceRender:c,role:h?"tabpanel":void 0},E)}))}),lG=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],cG=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,m){var h=d.children,v=d.label,g=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,S=Je(d,lG),E=String(g??m),$=p??a,w=y??i,C=function(_){$!=="disabled"&&(s(_),b==null||b(_));},x=!1;return o?x=l[0]===E:x=l.indexOf(E)>-1,f.createElement(_w,$e({},S,{prefixCls:r,key:E,panelKey:E,isActive:x,accordion:o,openMotion:c,expandIcon:u,header:v,collapsible:$,onItemClick:C,destroyInactivePanel:w}),h)})},uG=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=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,v=h.header,g=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick,S=!1;a?S=c[0]===m:S=c.indexOf(m)>-1;var E=b??i,$=function(x){E!=="disabled"&&(l(x),y==null||y(x));},w={key:m,panelKey:m,header:v,headerClass:g,isActive:S,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:$,expandIcon:d,collapsible:E};return typeof t.type=="string"?t:(Object.keys(w).forEach(function(C){typeof w[C]>"u"&&delete w[C];}),f.cloneElement(t,w))};function dG(e,t,n){return Array.isArray(e)?cG(e,n):er(t).map(function(r,o){return uG(r,o,n)})}function fG(e){var t=e;if(!Array.isArray(t)){var n=dt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var mG=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,m=e.expandIcon,h=e.activeKey,v=e.defaultActiveKey,g=e.onChange,p=e.items,b=H(r,l),y=Bt([],{value:h,onChange:function(I){return g==null?void 0:g(I)},defaultValue:v,postState:fG}),S=Q(y,2),E=S[0],$=S[1],w=function(I){return $(function(){if(s)return E[0]===I?[]:[I];var _=E.indexOf(I),k=_>-1;return k?E.filter(function(O){return O!==I}):[].concat(We(E),[I])})};Fn(!c,"`children` will be removed in next major version. Please use `items` instead.");var C=dG(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:m,collapsible:u,destroyInactivePanel:a,onItemClick:w,activeKey:E});return f.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},C)});const ng=Object.assign(mG,{Panel:_w});ng.Panel;const hG=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(Ye),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=H({[`${i}-no-arrow`]:!a},o);return f__namespace.createElement(ng.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),vG=hG,gG=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:m,colorTextHeading:h,colorTextDisabled:v,fontSize:g,fontSizeLG:p,lineHeight:b,marginSM:y,paddingSM:S,paddingLG:E,paddingXS:$,motionDurationSlow:w,fontSizeIcon:C,contentPadding:x}=e,I=`${c}px ${u} ${d}`;return {[t]:Object.assign(Object.assign({},Tt(e)),{backgroundColor:o,border:I,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[`
&,
& > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:b,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},oa()),{fontSize:C,svg:{transition:`transform ${w}`}}),[`${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:m,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:x},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:S-$}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},"&-large":{[`> ${t}-item`]:{fontSize:p,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:p*b,marginInlineStart:E-r}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}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:y}}}}})}},pG=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},bG=e=>{const{componentCls:t,headerBg: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}}}},yG=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}}}}}},CG=At("Collapse",e=>{const t=ut(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return [gG(t),bG(t),yG(t),pG(t),mS(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),SG=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=f__namespace.useContext(Ye),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:m="start",children:h,expandIcon:v}=e,g=Wn(I=>{var _;return (_=d??I)!==null&&_!==void 0?_:"middle"}),p=n("collapse",a),b=n(),[y,S]=CG(p),E=f__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),$=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const _=v?v(I):f__namespace.createElement(Ya,{rotate:I.isActive?90:void 0});return In(_,()=>({className:H(_.props.className,`${p}-arrow`)}))},w=H(`${p}-icon-position-${E}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${g}`]:g!=="middle"},o==null?void 0:o.className,i,s,S),C=Object.assign(Object.assign({},sS(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),x=f__namespace.useMemo(()=>h?er(h).map((I,_)=>{var k,O;if(!((k=I.props)===null||k===void 0)&&k.disabled){const P=(O=I.key)!==null&&O!==void 0?O:String(_),{disabled:R,collapsible:T}=I.props,N=Object.assign(Object.assign({},Pn(I.props,["disabled"])),{key:P,collapsible:T??(R?"disabled":void 0)});return In(I,N)}return I}):null,[h]);return y(f__namespace.createElement(ng,Object.assign({ref:t,openMotion:C},Pn(e,["rootClassName"]),{expandIcon:$,prefixCls:p,className:w,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),x))}),$G=Object.assign(SG,{Panel:vG}),ff=e=>e.map(t=>(t.colors=t.colors.map(On),t)),wG=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new gc(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},xG=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=vi("ColorPicker"),[,i]=nr(),[s]=Bt(ff(n),{value:ff(n),postState:ff}),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((v,g)=>f.createElement(Kv,{key:`preset-${g}-${v.toHexString()}`,color:On(v).toRgbString(),prefixCls:t,className:H(`${l}-color`,{[`${l}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:wG(v,i.colorBgElevated)}),onClick:()=>u(v)})):f.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return f.createElement("div",{className:l},f.createElement($G,{defaultActiveKey:c,ghost:!0,items:d}))},EG=xG,OG=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(aw);return Array.isArray(n)?f.createElement(EG,{value:t,presets:n,prefixCls:e,onChange:r}):null},G0=OG;var IG=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PG=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,s=IG(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},s),u=f.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),d=f.createElement(f.Fragment,null,f.createElement(U0,null),Array.isArray(n)&&f.createElement(oW,{className:`${l}-divider`}),f.createElement(G0,null));return f.createElement(gW,{value:c},f.createElement(pW,{value:u},f.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:U0,Presets:G0}}):d)))},_G=PG;var RG=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TG=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:s,className:l,showText:c}=e,u=RG(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,m=f.useMemo(()=>a?f.createElement(iw,{prefixCls:r}):f.createElement(Kv,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),h=()=>{const g=n.toHexString().toUpperCase(),p=pc(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${g.slice(0,7)},${p}%`:g}},v=()=>{if(typeof c=="function")return c(n);if(c)return h()};return f.createElement("div",Object.assign({ref:t,className:H(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),m,c&&f.createElement("div",{className:`${d}-text`},v()))}),MG=TG;function K0(e){return e!==void 0}const NG=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=f.useState(()=>{let i;return K0(r)?i=r:K0(n)?i=n:i=e,On(i||"")});return f.useEffect(()=>{r&&a(On(r));},[r]),[o,a]},kG=NG,Rw=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),AG=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},Rw("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${a}px solid ${i}`,borderRadius:"inherit"}})}},q0=AG,LG=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:h,lineWidth:v}=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 ${a}px`,marginInlineStart:i},[`${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+i,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:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,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*v}px`},[`${n}-input-prefix`]:{color:m}}}}}},DG=LG,jG=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,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:a},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${i}`,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":Rw(`${d}px`,e.colorFillSecondary),"&-hue":{marginBottom:a}},[`${t}-slider-container`]:{display:"flex",gap:a,marginBottom:a,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},zG=jG,BG=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:m,marginXXS:h,paddingXS:v}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:i*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${v}px 0`},"&-label":{fontSize:i,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:h*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:a+4*c,height:a+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:a/13*5,height:a/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:i,color:r}}}},FG=BG,km=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),HG=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},X0=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:a,colorSplit:i,red6:s}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${a}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:a,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s}})}},WG=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorBorderHover:o,colorWarningBorderHover:a,colorErrorOutline:i,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},km(ut(e,{controlOutline:i})))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},km(ut(e,{controlOutline:s})))}}},VG=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,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:i},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l}}}},UG=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:i,colorText:s,colorBgContainerDisabled:l,borderRadius:c,marginXS:u,marginSM:d,controlHeight:m,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:g,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:S,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({},zG(e))},q0(e,p)),DG(e)),FG(e)),X0(e,g,{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:a,padding:S-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(S-b),fontSize:E,color:s},"&-active":Object.assign(Object.assign({},km(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:i,background:l,cursor:"not-allowed","&:hover":{borderColor:v},[`${t}-trigger-text`]:{color:i}}},X0(e,h)),q0(e,h)),WG(e)),VG(e))},HG(e))}]},GG=At("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 [UG(o)]}),rg=e=>{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:s,trigger:l="click",open:c,disabled:u,placement:d="bottomLeft",arrow:m=!0,panelRender:h,showText:v,style:g,className:p,size:b,rootClassName:y,styles:S,disabledAlpha:E=!1,onFormatChange:$,onChange:w,onClear:C,onOpenChange:x,onChangeComplete:I,getPopupContainer:_,autoAdjustOverflow:k=!0,destroyTooltipOnHide:O}=e,{getPrefixCls:P,direction:R,colorPicker:T}=f.useContext(Ye),[,N]=nr(),[M,L]=kG(N.colorPrimary,{value:t,defaultValue:n}),[j,z]=Bt(!1,{value:c,postState:Pe=>!u&&Pe,onChange:x}),[V,B]=Bt(r,{value:r,defaultValue:o,onChange:$}),[W,F]=f.useState(!1),X=P("color-picker",yW),q=f.useMemo(()=>pc(M)<100,[M]),{status:K}=f.useContext(vr),G=Wn(b),[J,oe]=GG(X),ue={[`${X}-rtl`]:R},me=H(y,ue),te=H(Rr(X,K),{[`${X}-sm`]:G==="small",[`${X}-lg`]:G==="large"},T==null?void 0:T.className,me,p,oe),ae=H(X,ue),ce=f.useRef(!0),Z=(Pe,je,Ae)=>{let be=On(Pe);(W||(t===null||!t&&n===null))&&(F(!1),pc(M)===0&&je!=="alpha"&&(be=nf(be))),E&&q&&(be=nf(be)),Ae?ce.current=!1:I==null||I(be),L(be),w==null||w(be,be.toHexString());},ne=()=>{F(!0),C==null||C();},ee=Pe=>{ce.current=!0;let je=On(Pe);E&&q&&(je=nf(Pe)),I==null||I(je);},de={open:j,trigger:l,placement:d,arrow:m,rootClassName:y,getPopupContainer:_,autoAdjustOverflow:k,destroyTooltipOnHide:O},he={prefixCls:X,color:M,allowClear:a,colorCleared:W,disabled:u,disabledAlpha:E,presets:i,panelRender:h,format:V,onFormatChange:B,onChangeComplete:ee},fe=Object.assign(Object.assign({},T==null?void 0:T.style),g);return J(f.createElement(xu,Object.assign({style:S==null?void 0:S.popup,overlayInnerStyle:S==null?void 0:S.popupOverlayInner,onOpenChange:Pe=>{ce.current&&!u&&z(Pe);},content:f.createElement(is,{override:!0,status:!0},f.createElement(_G,Object.assign({},he,{onChange:Z,onChangeComplete:ee,onClear:ne}))),overlayClassName:ae},de),s||f.createElement(MG,{open:j,className:te,style:fe,color:t?On(t):M,prefixCls:X,disabled:u,colorCleared:W,showText:v,format:V})))},KG=Gv(rg,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));rg._InternalPanelDoNotUseOrYouWillBeFired=KG;const qG=rg;var XG=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Y0(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 Z0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y0(Object(n),!0).forEach(function(r){YG(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function YG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZG(e,t){if(e==null)return {};var n=QG(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function QG(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var JG={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 eK(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function tK(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],a=t.theme||n.theme;switch(a){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 Tw=f.createContext(JG);Tw.Provider;function Ut(e,t,n){return function(r){var o=r.size,a=r.strokeWidth,i=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,m=ZG(r,XG),h=f.useContext(Tw),v=f.useMemo(eK,[]),g=tK(v,{size:o,strokeWidth:a,strokeLinecap:i,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",Z0(Z0({},m),{},{className:p.join(" ")}),n(g))}}const nK=Ut("people-search",!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:"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}),f.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M38 35C38 36.1046 37.5523 37.1046 36.8284 37.8284C36.1046 38.5523 35.1046 39 34 39C31.7909 39 30 37.2091 30 35C30 32.7909 31.7909 31 34 31C36.2091 31 38 32.7909 38 35Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),rK=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}))}),oK=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}))}),aK=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}))}),iK=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}))}),sK=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}))}),lK=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}))}),cK=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}))}),uK=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}))}),dK=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}))}),fK=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}))}),mK=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}))}),hK=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]}))}),vK=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}))}),gK=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}))}),pK=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}))}),bK=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}))}),yK=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}))}),CK=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}))}),SK=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}))}),$K=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}))}),wK=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]}))}),xK=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}))}),EK=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}))}),OK=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}))}),IK={Close:OK,Config:EK,DistraughtFace:xK,Help:wK,Info:$K,Loading:SK,LoadingThree:CK,Return:yK,Tips:bK,Computer:pK,Iphone:gK,Concern:vK,Tumblr:hK,FileCabinet:mK,Star:fK,EfferentFour:dK,Copy:uK,DislikeTwo:cK,Unlike:lK,PlayTwo:sK,AddTwo:iK,Delete:aK,PeopleDelete:oK,PeopleMinus:rK,PeopleSearch:nK};function Rt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=IK[e];return D(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}const PK=e=>{const t=e!=null&&e.algorithm?ns(e.algorithm):ns(Ps),n=Object.assign(Object.assign({},Is),e==null?void 0:e.token);return pC(n,{override:e==null?void 0:e.token},t,qh)},_K=PK;function RK(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 TK=(e,t)=>{const n=t??Ps(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),RK(t??e)),TC(r)),{controlHeight:o}),_C(Object.assign(Object.assign({},n),{controlHeight:o})))},MK=TK,bo=(e,t)=>new Xt(e).setAlpha(t).toRgbString(),Ea=(e,t)=>new Xt(e).lighten(t).toHexString(),NK=e=>{const t=oo(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]}},kK=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:bo(r,.85),colorTextSecondary:bo(r,.65),colorTextTertiary:bo(r,.45),colorTextQuaternary:bo(r,.25),colorFill:bo(r,.18),colorFillSecondary:bo(r,.12),colorFillTertiary:bo(r,.08),colorFillQuaternary:bo(r,.04),colorBgElevated:Ea(n,12),colorBgContainer:Ea(n,8),colorBgLayout:Ea(n,0),colorBgSpotlight:Ea(n,26),colorBorder:Ea(n,26),colorBorderSecondary:Ea(n,19)}},AK=(e,t)=>{const n=Object.keys(Kh).map(o=>{const a=oo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,l)=>(i[`${o}-${l+1}`]=a[l],i[`${o}${l+1}`]=a[l],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??Ps(e);return Object.assign(Object.assign(Object.assign({},r),n),RC(e,{generateColorPalettes:NK,generateNeutralColorPalettes:kK}))},LK=AK;function DK(){const[e,t,n]=nr();return {theme:e,token:t,hashId:n}}const Q0={defaultConfig:tc,defaultSeed:tc.token,useToken:DK,defaultAlgorithm:Ps,darkAlgorithm:LK,compactAlgorithm:MK,getDesignToken:_K};var jK=Z1,J0=1/0,zK=17976931348623157e292;function BK(e){if(!e)return e===0?e:0;if(e=jK(e),e===J0||e===-J0){var t=e<0?-1:1;return t*zK}return e===e?e:0}var FK=BK,HK=FK;function WK(e){var t=HK(e),n=t%1;return t===t?n?t-n:t:0}var VK=WK,UK=VK,GK="Expected a function";function KK(e,t){var n;if(typeof t!="function")throw new TypeError(GK);return e=UK(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var qK=KK,XK=qK;function YK(e){return XK(2,e)}var ZK=YK;const QK=Ft(ZK),JK=Symbol(),og=Symbol(),Mi="a",Hl="w";let eq=(e,t)=>new Proxy(e,t);const Am=Object.getPrototypeOf,Lm=new WeakMap,Mw=e=>e&&(Lm.has(e)?Lm.get(e):Am(e)===Object.prototype||Am(e)===Array.prototype),ey=e=>typeof e=="object"&&e!==null,tq=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(Am(e),t)},Nw=e=>e[og]||e,kw=(e,t,n,r)=>{if(!Mw(e))return e;let o=r&&r.get(e);if(!o){const l=Nw(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,tq(l)]:[l],r==null||r.set(e,o);}const[a,i]=o;let s=n&&n.get(a);return s&&s[1].f===!!i||(s=((l,c)=>{const u={f:c};let d=!1;const m=(v,g)=>{if(!d){let p=u[Mi].get(l);if(p||(p={},u[Mi].set(l,p)),v===Hl)p[Hl]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(g);}}},h={get:(v,g)=>g===og?l:(m("k",g),kw(Reflect.get(v,g),u[Mi],u.c,u.t)),has:(v,g)=>g===JK?(d=!0,u[Mi].delete(l),!0):(m("h",g),Reflect.has(v,g)),getOwnPropertyDescriptor:(v,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(v,g)),ownKeys:v=>(m(Hl),Reflect.ownKeys(v))};return c&&(h.set=h.deleteProperty=()=>!1),[h,u]})(a,!!i),s[1].p=eq(i||a,s[0]),n&&n.set(a,s)),s[1][Mi]=t,s[1].c=n,s[1].t=r,s[1].p},Aw=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!ey(e)||!ey(t))return !0;const o=n.get(Nw(e));if(!o)return !0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1});}let a=null;try{for(const i of o.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i),a)return a;if(o[Hl]===!0){if(a=((i,s)=>{const l=Reflect.ownKeys(i),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),a)return a}else for(const i of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of o.k||[])if(a=Aw(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},nq=e=>Mw(e)&&e[og]||null,ty=(e,t=!0)=>{Lm.set(e,t);};const mf=e=>typeof e=="object"&&e!==null,$o=new WeakMap,yl=new WeakSet,rq=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>mf(c)&&!yl.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,a=(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 ty(h,!0),o.set(c,[u,h]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(h,v))return;const g=Reflect.get(c,v),p={value:g,enumerable:!0,configurable:!0};if(yl.has(g))ty(g,!1);else if(g instanceof Promise)delete p.value,p.get=()=>d(g);else if($o.has(g)){const[b,y]=$o.get(g);p.value=a(b,y(),d);}Object.defineProperty(h,v,p);}),Object.preventExtensions(h)},i=new WeakMap,s=[1,1],l=c=>{if(!mf(c))throw new Error("object required");const u=i.get(c);if(u)return u;let d=s[0];const m=new Set,h=(I,_=++s[0])=>{d!==_&&(d=_,m.forEach(k=>k(I,_)));};let v=s[1];const g=(I=++s[1])=>(v!==I&&!m.size&&(v=I,b.forEach(([_])=>{const k=_[1](I);k>d&&(d=k);})),d),p=I=>(_,k)=>{const O=[..._];O[1]=[I,...O[1]],h(O,k);},b=new Map,y=(I,_)=>{if(m.size){const k=_[3](p(I));b.set(I,[_,k]);}else b.set(I,[_]);},S=I=>{var _;const k=b.get(I);k&&(b.delete(I),(_=k[1])==null||_.call(k));},E=I=>(m.add(I),m.size===1&&b.forEach(([k,O],P)=>{const R=k[3](p(P));b.set(P,[k,R]);}),()=>{m.delete(I),m.size===0&&b.forEach(([k,O],P)=>{O&&(O(),b.set(P,[k]));});}),$=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),C=t($,{deleteProperty(I,_){const k=Reflect.get(I,_);S(_);const O=Reflect.deleteProperty(I,_);return O&&h(["delete",[_],k]),O},set(I,_,k,O){const P=Reflect.has(I,_),R=Reflect.get(I,_,O);if(P&&(e(R,k)||i.has(k)&&e(R,i.get(k))))return !0;S(_),mf(k)&&(k=nq(k)||k);let T=k;if(k instanceof Promise)k.then(N=>{k.status="fulfilled",k.value=N,h(["resolve",[_],N]);}).catch(N=>{k.status="rejected",k.reason=N,h(["reject",[_],N]);});else {!$o.has(k)&&n(k)&&(T=l(k));const N=!yl.has(T)&&$o.get(T);N&&y(_,N);}return Reflect.set(I,_,T,O),h(["set",[_],k,R]),!0}});i.set(c,C);const x=[$,g,a,E];return $o.set(C,x),Reflect.ownKeys(c).forEach(I=>{const _=Object.getOwnPropertyDescriptor(c,I);"value"in _&&(C[I]=c[I],delete _.value,delete _.writable),Object.defineProperty($,I,_);}),C})=>[l,$o,yl,e,t,n,r,o,a,i,s],[oq]=rq();function gr(e={}){return oq(e)}function ag(e,t,n){const r=$o.get(e);let o;const a=[],i=r[3];let s=!1;const c=i(u=>{if(a.push(u),n){t(a.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(a.splice(0));}));});return s=!0,()=>{s=!1,c();}}function bc(e,t){const n=$o.get(e),[r,o,a]=n;return a(r,o(),t)}var Lw={exports:{}},Dw={};/**
* @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 Za=f;function aq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iq=typeof Object.is=="function"?Object.is:aq,sq=Za.useState,lq=Za.useEffect,cq=Za.useLayoutEffect,uq=Za.useDebugValue;function dq(e,t){var n=t(),r=sq({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return cq(function(){o.value=n,o.getSnapshot=t,hf(o)&&a({inst:o});},[e,n,t]),lq(function(){return hf(o)&&a({inst:o}),e(function(){hf(o)&&a({inst:o});})},[e]),uq(n),n}function hf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !iq(e,n)}catch{return !0}}function fq(e,t){return t()}var mq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fq:dq;Dw.useSyncExternalStore=Za.useSyncExternalStore!==void 0?Za.useSyncExternalStore:mq;Lw.exports=Dw;var hq=Lw.exports;const vq=Ft(hq),{use:ny}=f,{useSyncExternalStore:gq}=vq;const pq=new WeakMap;function pr(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let a=!0;const i=gq(f.useCallback(c=>{const u=ag(e,c,n);return c(),u},[e,n]),()=>{const c=bc(e,ny);try{if(!a&&r.current&&o.current&&!Aw(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>bc(e,ny));a=!1;const s=new WeakMap;f.useEffect(()=>{r.current=i,o.current=s;});const l=f.useMemo(()=>new WeakMap,[]);return kw(i,s,l,pq)}const Qa=QK(()=>!!document.querySelectorAll(".bili-feed4").length),jw=()=>document.body.classList.contains("dark"),zw=gr({value:jw()});function ig(){return pr(zw).value}const Bw=new MutationObserver(function(){zw.value=jw();});Bw.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{Bw.disconnect();});const Fw=o2();var Gy;const bq=((Gy=Fw.os.name)==null?void 0:Gy.toLowerCase())==="mac os";var Ky;const sg=((Ky=Fw.browser.name)==null?void 0:Ky.toLowerCase())==="safari";var yq=p1(function(e,t){var n=e.styles,r=Da([n],void 0,f__namespace.useContext(b1)),o=f__namespace.useRef();return Fg(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,s],function(){i.flush();}},[t]),Fg(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&bh(t,r.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush();}t.insert("",r,i,!1);},[t,r.name]),null});function Pr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Da(t)}var zu={},Hw={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})(Hw);var lg=Hw.exports,Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=void 0;var Cq={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:"页码"};Bu.default=Cq;var Fu={},Hs={},Hu={};Object.defineProperty(Hu,"__esModule",{value:!0});Hu.default=void 0;var Sq={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},$q=Sq;Hu.default=$q;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.default=void 0;const wq={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var xq=wq;Ws.default=xq;var Ww=lg.default;Object.defineProperty(Hs,"__esModule",{value:!0});Hs.default=void 0;var Eq=Ww(Hu),Oq=Ww(Ws);const Vw={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Eq.default),timePickerLocale:Object.assign({},Oq.default)};Vw.lang.ok="确定";var Iq=Vw;Hs.default=Iq;var Pq=lg.default;Object.defineProperty(Fu,"__esModule",{value:!0});Fu.default=void 0;var _q=Pq(Hs),Rq=_q.default;Fu.default=Rq;var Wu=lg.default;Object.defineProperty(zu,"__esModule",{value:!0});zu.default=void 0;var Tq=Wu(Bu),Mq=Wu(Fu),Nq=Wu(Hs),kq=Wu(Ws);const Xn="${label}不是一个有效的${type}",Aq={locale:"zh-cn",Pagination:Tq.default,DatePicker:Nq.default,TimePicker:kq.default,Calendar:Mq.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Xn,method:Xn,array:Xn,object:Xn,number:Xn,date:Xn,boolean:Xn,integer:Xn,float:Xn,regexp:Xn,email:Xn,url:Xn,hex:Xn},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var Lq=Aq;zu.default=Lq;var Dq=zu;const jq=Ft(Dq);function Uw({children:e}){const t=ig(),{colorPrimary:n}=Xw();return ge(Jh,{locale:jq,theme:{algorithm:t?Q0.darkAlgorithm:Q0.defaultAlgorithm,token:{colorPrimary:n,colorBgSpotlight:n,zIndexPopupBase:11e3,fontFamily:"inherit"}},children:[D(yq,{styles:Pr(":root{",Yw,":",n,";}","")}),e]})}function cg(e){return D(Ts,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}function hn({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const i=!!_n()[e],s=f.useCallback(c=>{const u=c.target.checked;hr({[e]:u}),n==null||n(u);},[]);let l=D("span",{style:{userSelect:"none"},children:t||e});return r&&(l=D(Ts,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),D(yu,{...o,checked:i,onChange:s,children:l})}var zq={name:"1qkltea",styles:"margin-left:5px"};const Bq=function(){const e=zq;return ge(Et,{children:[D(hn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),D(hn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function yc({tooltip:e,iconProps:t,tooltipProps:n}){return D(Et,{children:e&&D(cg,{...n,title:e,children:D(Rt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const Fq=[{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)"}],Cc={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},Gw={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function Hq(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 Kw="UP长期洗涤",Wq=Hq(Kw,`
#0545b2 理想之蓝
#f4cd00 柠檬黄
#ef2729 石榴红
#f89c00 鹿箭
#233728 黛绿
#f2b9b7 和熙粉
#f3cc91 芝士黄
#6b4c68 葡萄紫
#ff7227 落日橙
#004d62 碧海天
#23909b 洗碧空
#aeb400 芥丝绿
#425a17 箬叶青
#002FA7 克莱因蓝
#003153 普鲁士蓝
#01847F 马尔斯绿
#FBD26A 申布伦黄
#470024 勃艮第红
#492D22 凡戴克棕
`),qw=[{name:"预设",themes:[Cc,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},Gw]},{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:Fq,tooltip:ge(Et,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:Kw,themes:Wq,tooltip:ge(Et,{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"})]})}],Vq=qw.map(e=>e.themes).flat();function Xw(){let{theme:e,colorPickerThemeSelectedColor:t}=_n();return e||(e=Cc.id),f.useMemo(()=>{const n=Vq.find(r=>r.id===e)||Cc;return n.id===Gw.id&&t&&(n.colorPrimary=t),n},[e,t])}const Yw=`--${gn}-color-primary`,so=`var(${Yw})`;var Uq={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},Gq={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},Kq={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function qq(){const e=Xw().id,{colorPickerThemeSelectedColor:t}=_n(),[n,r]=f.useState(t||Cc.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:qw.map(({name:a,themes:i,tooltip:s})=>ge(f.Fragment,{children:[ge("div",{css:Kq,children:[a,D(yc,{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:i.map(l=>{const c=e===l.id,u=l.isCustom,d=D("div",{className:"preview",css:Pr("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let m=D("div",{className:"preview-wrapper",css:[Gq,c&&Pr("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(m=D(qG,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||hr({colorPickerThemeSelectedColor:o});},children:m})),ge("div",{css:Uq,onClick:h=>{hr({theme:l.id});},children:[m,l.name]},l.id)})})]},a))})}function ry(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function oy(e,t,n){var r=[],o=ph(e,r,n);return r.length<2?n:o+t(r)}var Xq=function(t){var n=l1(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Da(c,n.registered,void 0);return bh(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Da(c,n.registered),m="animation-"+d.name;return ry(n,{name:d.name,styles:"@keyframes "+m+"{"+d.styles+"}"}),m},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Da(c,n.registered);ry(n,d);},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return oy(n.registered,r,Yq(c))};return {css:r,cx:i,injectGlobal:a,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:ph.bind(null,n.registered),merge:oy.bind(null,n.registered,r)}},Yq=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else {a="";for(var i in o)o[i]&&i&&(a&&(a+=" "),a+=i);}break}default:a=o;}a&&(n&&(n+=" "),n+=a);}}return n},Zq=Xq({key:"css"}),Sc=Zq.css;const Qq=Sc("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;color:#fff;background-color:#ffb243;background-color:",so,";border-radius:6px;white-space:pre-wrap;",""),Jq=Sc({name:"1azakc",styles:"text-align:center"});function Ct(e,t=2e3){const n=document.createElement("div");n.className=Qq,n.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(Jq),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const eX="请求失败, 请重试 !!!",Zw="操作失败, 请重试 !!!";function Qw(){return Ct(eX)}function Jw(){return Ct(Zw)}const ex="27eb53fc9058f8c3";async function nX(){var r,o;const t=(await Du.get("https://passport.bilibili.com/login/app/third",{params:{appkey:ex,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((r=t==null?void 0:t.data)!=null&&r.has_login)){Ct("你必须登录(不可用)B站之后才能使用授权");return}if(!((o=t==null?void 0:t.data)!=null&&o.confirm_uri)){Ct("无法获得授权网址");return}const n=t.data.confirm_uri;{const a=await aX(n);return iX(a)}}async function rX(){const e=await nX();if(e)return $t.accessKey=e,Ct("获取成功"),e}function oX(){$t.accessKey="",Ct("已删除 access_key");}function aX(e){return new Promise((t,n)=>{GM.xmlHttpRequest({method:"head",url:e,responseType:"blob",onload(r){t(r.finalUrl);},onreadystatechange(r){}});})}function iX(e){const n=new URL(e).searchParams.get("access_key");if(n)return n;Ct("没有获得匹配的密钥");}var tx=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);}},Ir=function(){return Ir=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);}return t},Ir.apply(this,arguments)};function nx(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function sX(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a);})}return new(n||(n=Promise))(function(a,i){function s(u){try{c(r.next(u));}catch(d){i(d);}}function l(u){try{c(r.throw(u));}catch(d){i(d);}}function c(u){u.done?a(u.value):o(u.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function lX(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(u){c=[6,u],o=0;}finally{r=a=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Dm(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=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 en(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value);}catch(s){i={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(i)throw i.error}}return a}function En(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var $i=function(e){return typeof e=="function"},cX=function(e){return typeof e=="string"},rx=function(e){return typeof e=="number"};function nt(e){var t=f.useRef(e);t.current=f.useMemo(function(){return e},[e]);var n=f.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}const $c=tx(f.useEffect);var ox=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,a=t.defaultParams,i=a===void 0?[]:a,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=f.useRef(!1);return u.current=!1,$c(function(){!n&&o&&(u.current=!0,e.run.apply(e,En([],en(i),!1)));},[o]),$c(function(){u.current||n||(u.current=!0,c?c():e.refresh());},En([],en(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};ox.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const dX=ox;function jm(e,t){if(e===t)return !0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return !1;return !0}function ax(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!jm(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Ja(e){var t=f.useRef(e);return t.current=e,t}var fX=function(e){var t=Ja(e);f.useEffect(function(){return function(){t.current();}},[]);};const Vs=fX;var Wl=new Map,mX=function(e,t,n){var r=Wl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Wl.delete(e);},t)),Wl.set(e,Ir(Ir({},n),{timer:o}));},hX=function(e){return Wl.get(e)},Vl=new Map,vX=function(e){return Vl.get(e)},gX=function(e,t){Vl.set(e,t),t.then(function(n){return Vl.delete(e),n}).catch(function(){Vl.delete(e);});},Bo={},pX=function(e,t){Bo[e]&&Bo[e].forEach(function(n){return n(t)});},vf=function(e,t){return Bo[e]||(Bo[e]=[]),Bo[e].push(t),function(){var r=Bo[e].indexOf(t);Bo[e].splice(r,1);}},bX=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,a=t.staleTime,i=a===void 0?0:a,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(h,v){s?s(v):mX(h,o,v),pX(h,v.data);},m=function(h,v){return v===void 0&&(v=[]),l?l(v):hX(h)};return ax(function(){if(n){var h=m(n);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(i===-1||new Date().getTime()-h.time<=i)&&(e.state.loading=!1)),c.current=vf(n,function(v){e.setState({data:v});});}},[]),Vs(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var v=m(n,h);return !v||!Object.hasOwnProperty.call(v,"data")?{}:i===-1||new Date().getTime()-v.time<=i?{loading:!1,data:v==null?void 0:v.data,error:void 0,returnNow:!0}:{data:v==null?void 0:v.data,error:void 0}},onRequest:function(h,v){var g=vX(n);return g&&g!==u.current?{servicePromise:g}:(g=h.apply(void 0,En([],en(v),!1)),u.current=g,gX(n,g),{servicePromise:g})},onSuccess:function(h,v){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:v,time:new Date().getTime()}),c.current=vf(n,function(p){e.setState({data:p});}));},onMutate:function(h){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=vf(n,function(g){e.setState({data:g});}));}}:{}};const yX=bX;var CX=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=f.useRef(),s=f.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),a!==void 0&&(l.maxWait=a),l},[r,o,a]);return f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=GA(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,m){var h;(h=i.current)===null||h===void 0||h.call(i,function(){l.apply(void 0,En([],en(c),!1)).then(d).catch(m);});})},function(){var c;(c=i.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel();}}:{}};const SX=CX;var $X=function(e,t){var n=t.loadingDelay,r=t.ready,o=f.useRef();if(!n)return {};var a=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return a(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){a();},onCancel:function(){a();}}};const wX=$X;var xX=!!(typeof window<"u"&&window.document&&window.document.createElement);const Us=xX;function ug(){return Us?document.visibilityState!=="hidden":!0}var Gi=[];function EX(e){return Gi.push(e),function(){var n=Gi.indexOf(e);Gi.splice(n,1);}}if(Us){var OX=function(){if(ug())for(var e=0;e<Gi.length;e++){var t=Gi[e];t();}};window.addEventListener("visibilitychange",OX,!1);}var IX=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,a=t.pollingErrorRetryCount,i=a===void 0?-1:a,s=f.useRef(),l=f.useRef(),c=f.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return $c(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){i===-1||i!==-1&&c.current<=i?s.current=setTimeout(function(){!o&&!ug()?l.current=EX(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const PX=IX;function _X(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,En([],en(r),!1)),setTimeout(function(){n=!1;},t));}}function RX(){return Us&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Ki=[];function TX(e){return Ki.push(e),function(){var n=Ki.indexOf(e);n>-1&&Ki.splice(n,1);}}if(Us){var ay=function(){if(!(!ug()||!RX()))for(var e=0;e<Ki.length;e++){var t=Ki[e];t();}};window.addEventListener("visibilitychange",ay,!1),window.addEventListener("focus",ay,!1);}var MX=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,a=f.useRef(),i=function(){var s;(s=a.current)===null||s===void 0||s.call(a);};return f.useEffect(function(){if(n){var s=_X(e.refresh.bind(e),o);a.current=TX(function(){s();});}return function(){i();}},[n,o]),Vs(function(){i();}),{}};const NX=MX;var kX=function(e,t){var n=t.retryInterval,r=t.retryCount,o=f.useRef(),a=f.useRef(0),i=f.useRef(!1);return r?{onBefore:function(){i.current||(a.current=0),i.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){a.current=0;},onError:function(){if(a.current+=1,r===-1||a.current<=r){var s=n??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh();},s);}else a.current=0;},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current);}}:{}};const AX=kX;var LX=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,a=f.useRef(),i={};return r!==void 0&&(i.leading=r),o!==void 0&&(i.trailing=o),f.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=J1(function(l){l();},n,i),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var m;(m=a.current)===null||m===void 0||m.call(a,function(){s.apply(void 0,En([],en(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=a.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel();}}:{}};const DX=LX;var jX=function(e){f.useEffect(function(){e==null||e();},[]);};const Gs=jX;var zX=function(){var e=en(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])};const BX=zX;var FX=function(){function e(t,n,r,o){o===void 0&&(o={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Ir(Ir(Ir({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Ir(Ir({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(a){var i;return (i=a[t])===null||i===void 0?void 0:i.call.apply(i,En([a],en(n),!1))}).filter(Boolean);return Object.assign.apply(Object,En([{}],en(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,a,i,s,l,c,u,d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return sX(this,void 0,void 0,function(){var h,v,g,p,b,y,S,E,$,w,C;return lX(this,function(x){switch(x.label){case 0:if(this.count+=1,h=this.count,v=this.runPluginHandler("onBefore",d),g=v.stopNow,p=g===void 0?!1:g,b=v.returnNow,y=b===void 0?!1:b,S=nx(v,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(Ir({loading:!0,params:d},S)),y)return [2,Promise.resolve(S.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),x.label=1;case 1:return x.trys.push([1,3,,4]),E=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,E||(E=(C=this.serviceRef).current.apply(C,En([],en(d),!1))),[4,E];case 2:return $=x.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:$,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,$,d),this.runPluginHandler("onSuccess",$,d),(i=(a=this.options).onFinally)===null||i===void 0||i.call(a,d,$,void 0),h===this.count&&this.runPluginHandler("onFinally",d,$,void 0),[2,$]);case 3:if(w=x.sent(),h!==this.count)return [2,new Promise(function(){})];throw this.setState({error:w,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,w,d),this.runPluginHandler("onError",w,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,w),h===this.count&&this.runPluginHandler("onFinally",d,void 0,w),w;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,En([],en(n),!1)).catch(function(o){t.options.onError||console.error(o);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,En([],en(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,En([],en(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=$i(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const HX=FX;function WX(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,a=nx(t,["manual"]);var i=Ir({manual:o},a),s=Ja(e),l=BX(),c=ax(function(){var u=n.map(function(d){var m;return (m=d==null?void 0:d.onInit)===null||m===void 0?void 0:m.call(d,i)}).filter(Boolean);return new HX(s,i,l,Object.assign.apply(Object,En([{}],en(u),!1)))},[]);return c.options=i,c.pluginImpls=n.map(function(u){return u(c,i)}),Gs(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,En([],en(u),!1));}}),Vs(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:nt(c.cancel.bind(c)),refresh:nt(c.refresh.bind(c)),refreshAsync:nt(c.refreshAsync.bind(c)),run:nt(c.run.bind(c)),runAsync:nt(c.runAsync.bind(c)),mutate:nt(c.mutate.bind(c))}}function VX(e,t,n){return WX(e,t,En(En([],en(n||[]),!1),[SX,wX,PX,NX,DX,dX,yX,AX],!1))}function ix(e,t){e===void 0&&(e=!1);var n=en(f.useState(e),2),r=n[0],o=n[1],a=f.useMemo(function(){var i=t===void 0?!e:t,s=function(){return o(function(d){return d===e?i:e})},l=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(i)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,a]}function UX(e){e===void 0&&(e=!1);var t=en(ix(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set,i=f.useMemo(function(){var s=function(){return a(!0)},l=function(){return a(!1)};return {toggle:o,set:function(c){return a(!!c)},setTrue:s,setFalse:l}},[]);return [n,i]}function Uu(e,t){if(Us){if(!e)return t;var n;return $i(e)?n=e():"current"in e?n=e.current:n=e,n}}var GX=function(e){var t=function(n,r,o){var a=f.useRef(!1),i=f.useRef([]),s=f.useRef([]),l=f.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(m){return Uu(m)});if(!a.current){a.current=!0,i.current=d,s.current=r,l.current=n();return}(d.length!==i.current.length||!jm(d,i.current)||!jm(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),i.current=d,s.current=r,l.current=n());}),Vs(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1;});};return t};const KX=GX;var qX=KX(f.useEffect);const sx=qX;var lx={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Fr,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",m="quarter",h="year",v="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var T=["th","st","nd","rd"],N=R%100;return "["+R+(T[(N-20)%10]||T[N]||T[0])+"]"}},S=function(R,T,N){var M=String(R);return !M||M.length>=T?R:""+Array(T+1-M.length).join(N)+R},E={s:S,z:function(R){var T=-R.utcOffset(),N=Math.abs(T),M=Math.floor(N/60),L=N%60;return (T<=0?"+":"-")+S(M,2,"0")+":"+S(L,2,"0")},m:function R(T,N){if(T.date()<N.date())return -R(N,T);var M=12*(N.year()-T.year())+(N.month()-T.month()),L=T.clone().add(M,d),j=N-L<0,z=T.clone().add(M+(j?-1:1),d);return +(-(M+(N-L)/(j?L-z:z-L))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return {M:d,y:h,w:u,d:c,D:v,h:l,m:s,s:i,ms:a,Q:m}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},$="en",w={};w[$]=y;var C="$isDayjsObject",x=function(R){return R instanceof O||!(!R||!R[C])},I=function R(T,N,M){var L;if(!T)return $;if(typeof T=="string"){var j=T.toLowerCase();w[j]&&(L=j),N&&(w[j]=N,L=j);var z=T.split("-");if(!L&&z.length>1)return R(z[0])}else {var V=T.name;w[V]=T,L=V;}return !M&&L&&($=L),L||!M&&$},_=function(R,T){if(x(R))return R.clone();var N=typeof T=="object"?T:{};return N.date=R,N.args=arguments,new O(N)},k=E;k.l=I,k.i=x,k.w=function(R,T){return _(R,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var O=function(){function R(N){this.$L=I(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[C]=!0;}var T=R.prototype;return T.parse=function(N){this.$d=function(M){var L=M.date,j=M.utc;if(L===null)return new Date(NaN);if(k.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var z=L.match(p);if(z){var V=z[2]-1||0,B=(z[7]||"0").substring(0,3);return j?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,B)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,B)}}return new Date(L)}(N),this.init();},T.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds();},T.$utils=function(){return k},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(N,M){var L=_(N);return this.startOf(M)<=L&&L<=this.endOf(M)},T.isAfter=function(N,M){return _(N)<this.startOf(M)},T.isBefore=function(N,M){return this.endOf(M)<_(N)},T.$g=function(N,M,L){return k.u(N)?this[M]:this.set(L,N)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(N,M){var L=this,j=!!k.u(M)||M,z=k.p(N),V=function(J,oe){var ue=k.w(L.$u?Date.UTC(L.$y,oe,J):new Date(L.$y,oe,J),L);return j?ue:ue.endOf(c)},B=function(J,oe){return k.w(L.toDate()[J].apply(L.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(oe)),L)},W=this.$W,F=this.$M,X=this.$D,q="set"+(this.$u?"UTC":"");switch(z){case h:return j?V(1,0):V(31,11);case d:return j?V(1,F):V(0,F+1);case u:var K=this.$locale().weekStart||0,G=(W<K?W+7:W)-K;return V(j?X-G:X+(6-G),F);case c:case v:return B(q+"Hours",0);case l:return B(q+"Minutes",1);case s:return B(q+"Seconds",2);case i:return B(q+"Milliseconds",3);default:return this.clone()}},T.endOf=function(N){return this.startOf(N,!1)},T.$set=function(N,M){var L,j=k.p(N),z="set"+(this.$u?"UTC":""),V=(L={},L[c]=z+"Date",L[v]=z+"Date",L[d]=z+"Month",L[h]=z+"FullYear",L[l]=z+"Hours",L[s]=z+"Minutes",L[i]=z+"Seconds",L[a]=z+"Milliseconds",L)[j],B=j===c?this.$D+(M-this.$W):M;if(j===d||j===h){var W=this.clone().set(v,1);W.$d[V](B),W.init(),this.$d=W.set(v,Math.min(this.$D,W.daysInMonth())).$d;}else V&&this.$d[V](B);return this.init(),this},T.set=function(N,M){return this.clone().$set(N,M)},T.get=function(N){return this[k.p(N)]()},T.add=function(N,M){var L,j=this;N=Number(N);var z=k.p(M),V=function(F){var X=_(j);return k.w(X.date(X.date()+Math.round(F*N)),j)};if(z===d)return this.set(d,this.$M+N);if(z===h)return this.set(h,this.$y+N);if(z===c)return V(1);if(z===u)return V(7);var B=(L={},L[s]=r,L[l]=o,L[i]=n,L)[z]||1,W=this.$d.getTime()+N*B;return k.w(W,this)},T.subtract=function(N,M){return this.add(-1*N,M)},T.format=function(N){var M=this,L=this.$locale();if(!this.isValid())return L.invalidDate||g;var j=N||"YYYY-MM-DDTHH:mm:ssZ",z=k.z(this),V=this.$H,B=this.$m,W=this.$M,F=L.weekdays,X=L.months,q=L.meridiem,K=function(oe,ue,me,te){return oe&&(oe[ue]||oe(M,j))||me[ue].slice(0,te)},G=function(oe){return k.s(V%12||12,oe,"0")},J=q||function(oe,ue,me){var te=oe<12?"AM":"PM";return me?te.toLowerCase():te};return j.replace(b,function(oe,ue){return ue||function(me){switch(me){case"YY":return String(M.$y).slice(-2);case"YYYY":return k.s(M.$y,4,"0");case"M":return W+1;case"MM":return k.s(W+1,2,"0");case"MMM":return K(L.monthsShort,W,X,3);case"MMMM":return K(X,W);case"D":return M.$D;case"DD":return k.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return K(L.weekdaysMin,M.$W,F,2);case"ddd":return K(L.weekdaysShort,M.$W,F,3);case"dddd":return F[M.$W];case"H":return String(V);case"HH":return k.s(V,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return J(V,B,!0);case"A":return J(V,B,!1);case"m":return String(B);case"mm":return k.s(B,2,"0");case"s":return String(M.$s);case"ss":return k.s(M.$s,2,"0");case"SSS":return k.s(M.$ms,3,"0");case"Z":return z}return null}(oe)||z.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(N,M,L){var j,z=this,V=k.p(M),B=_(N),W=(B.utcOffset()-this.utcOffset())*r,F=this-B,X=function(){return k.m(z,B)};switch(V){case h:j=X()/12;break;case d:j=X();break;case m:j=X()/3;break;case u:j=(F-W)/6048e5;break;case c:j=(F-W)/864e5;break;case l:j=F/o;break;case s:j=F/r;break;case i:j=F/n;break;default:j=F;}return L?j:k.a(j)},T.daysInMonth=function(){return this.endOf(d).$D},T.$locale=function(){return w[this.$L]},T.locale=function(N,M){if(!N)return this.$L;var L=this.clone(),j=I(N,M,!0);return j&&(L.$L=j),L},T.clone=function(){return k.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},R}(),P=O.prototype;return _.prototype=P,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",v]].forEach(function(R){P[R[1]]=function(T){return this.$g(T,R[0],R[1])};}),_.extend=function(R,T){return R.$i||(R(T,O,_),R.$i=!0),_},_.locale=I,_.isDayjs=x,_.unix=function(R){return _(1e3*R)},_.en=w[$],_.Ls=w,_.p={},_});})(lx);var XX=lx.exports;const sa=Ft(XX);var YX="__lodash_hash_undefined__";function ZX(e){return this.__data__.set(e,YX),this}var QX=ZX;function JX(e){return this.__data__.has(e)}var eY=JX,tY=$h,nY=QX,rY=eY;function wc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new tY;++t<n;)this.add(e[t]);}wc.prototype.add=wc.prototype.push=nY;wc.prototype.has=rY;var cx=wc;function oY(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}var aY=oY;function iY(e,t){return e.has(t)}var ux=iY,sY=cx,lY=aY,cY=ux,uY=1,dY=2;function fY(e,t,n,r,o,a){var i=n&uY,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return !1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,m=!0,h=n&dY?new sY:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var v=e[d],g=t[d];if(r)var p=i?r(g,v,d,t,e,a):r(v,g,d,e,t,a);if(p!==void 0){if(p)continue;m=!1;break}if(h){if(!lY(t,function(b,y){if(!cY(h,y)&&(v===b||o(v,b,n,r,a)))return h.push(y)})){m=!1;break}}else if(!(v===g||o(v,g,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}var dx=fY;function mY(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}var hY=mY;function vY(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var dg=vY,iy=ii,sy=B1,gY=Ch,pY=dx,bY=hY,yY=dg,CY=1,SY=2,$Y="[object Boolean]",wY="[object Date]",xY="[object Error]",EY="[object Map]",OY="[object Number]",IY="[object RegExp]",PY="[object Set]",_Y="[object String]",RY="[object Symbol]",TY="[object ArrayBuffer]",MY="[object DataView]",ly=iy?iy.prototype:void 0,gf=ly?ly.valueOf:void 0;function NY(e,t,n,r,o,a,i){switch(n){case MY:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case TY:return !(e.byteLength!=t.byteLength||!a(new sy(e),new sy(t)));case $Y:case wY:case OY:return gY(+e,+t);case xY:return e.name==t.name&&e.message==t.message;case IY:case _Y:return e==t+"";case EY:var s=bY;case PY:var l=r&CY;if(s||(s=yY),e.size!=t.size&&!l)return !1;var c=i.get(e);if(c)return c==t;r|=SY,i.set(e,t);var u=pY(s(e),s(t),r,o,a,i);return i.delete(e),u;case RY:if(gf)return gf.call(e)==gf.call(t)}return !1}var kY=NY,cy=L1,AY=1,LY=Object.prototype,DY=LY.hasOwnProperty;function jY(e,t,n,r,o,a){var i=n&AY,s=cy(e),l=s.length,c=cy(t),u=c.length;if(l!=u&&!i)return !1;for(var d=l;d--;){var m=s[d];if(!(i?m in t:DY.call(t,m)))return !1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var g=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<l;){m=s[d];var b=e[m],y=t[m];if(r)var S=i?r(y,b,m,t,e,a):r(b,y,m,e,t,a);if(!(S===void 0?b===y||o(b,y,n,r,a):S)){g=!1;break}p||(p=m=="constructor");}if(g&&!p){var E=e.constructor,$=t.constructor;E!=$&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof $=="function"&&$ instanceof $)&&(g=!1);}return a.delete(e),a.delete(t),g}var zY=jY,pf=wh,BY=dx,FY=kY,HY=zY,uy=ou,dy=Nr,fy=Oh,WY=P1,VY=1,my="[object Arguments]",hy="[object Array]",Cl="[object Object]",UY=Object.prototype,vy=UY.hasOwnProperty;function GY(e,t,n,r,o,a){var i=dy(e),s=dy(t),l=i?hy:uy(e),c=s?hy:uy(t);l=l==my?Cl:l,c=c==my?Cl:c;var u=l==Cl,d=c==Cl,m=l==c;if(m&&fy(e)){if(!fy(t))return !1;i=!0,u=!1;}if(m&&!u)return a||(a=new pf),i||WY(e)?BY(e,t,n,r,o,a):FY(e,t,l,n,r,o,a);if(!(n&VY)){var h=u&&vy.call(e,"__wrapped__"),v=d&&vy.call(t,"__wrapped__");if(h||v){var g=h?e.value():e,p=v?t.value():t;return a||(a=new pf),o(g,p,n,r,a)}}return m?(a||(a=new pf),HY(e,t,n,r,o,a)):!1}var KY=GY,qY=KY,gy=Mo;function fx(e,t,n,r,o){return e===t?!0:e==null||t==null||!gy(e)&&!gy(t)?e!==e&&t!==t:qY(e,t,n,r,fx,o)}var fg=fx,XY=fg;function YY(e,t){return XY(e,t)}var ZY=YY;const QY=Ft(ZY);var JY=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),QY(e,t)};function _o(e,t,n){n===void 0&&(n={});var r=Ja(t);sx(function(){var o=Uu(n.target,window);if(o!=null&&o.addEventListener){var a=function(i){return r.current(i)};return o.addEventListener(e,a,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,a,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function mx(e){var t=en(f.useState(e),2),n=t[0],r=t[1],o=f.useRef(n);o.current=n;var a=f.useCallback(function(){return o.current},[]);return [n,r,a]}const bf=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,a=n.onChange,i=en(UX(!1),2),s=i[0],l=i[1],c=l.setTrue,u=l.setFalse;return _o("mouseenter",function(){r==null||r(),c(),a==null||a(!0);},{target:e}),_o("mouseleave",function(){o==null||o(),u(),a==null||a(!1);},{target:e}),s};var eZ=function(e,t,n){var r=f.useRef(),o=f.useRef(0);JY(t,r.current)||(r.current=t,o.current+=1),sx(e,[o.current],n);};const tZ=eZ;var nZ=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const rZ=nZ;var hx={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:rZ?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},zm={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?hx.meta.includes(e.keyCode):e.metaKey}};function oZ(e){var t=Object.keys(zm).reduce(function(n,r){return zm[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function py(e,t,n){var r,o;if(!e.key)return !1;if(rx(t))return e.keyCode===t;var a=t.split("."),i=0;try{for(var s=Dm(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=zm[c],d=hx[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&i++;}}catch(m){r={error:m};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?i===a.length&&oZ(e)===a.length:i===a.length}function aZ(e,t){return $i(e)?e:cX(e)||rx(e)?function(n){return py(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return py(n,r,t)})}:function(){return !!e}}var iZ=["keydown"];function nn(e,t,n){var r=n||{},o=r.events,a=o===void 0?iZ:o,i=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=Ja(t),m=Ja(e);tZ(function(){var h,v,g,p=Uu(i,window);if(p){var b=function($){var w,C=aZ(m.current,l);if(C($))return (w=d.current)===null||w===void 0?void 0:w.call(d,$)};try{for(var y=Dm(a),S=y.next();!S.done;S=y.next()){var E=S.value;(g=p==null?void 0:p.addEventListener)===null||g===void 0||g.call(p,E,b,u);}}catch($){h={error:$};}finally{try{S&&!S.done&&(v=y.return)&&v.call(y);}finally{if(h)throw h.error}}return function(){var $,w,C;try{for(var x=Dm(a),I=x.next();!I.done;I=x.next()){var _=I.value;(C=p==null?void 0:p.removeEventListener)===null||C===void 0||C.call(p,_,b,u);}}catch(k){$={error:k};}finally{try{I&&!I.done&&(w=x.return)&&w.call(x);}finally{if($)throw $.error}}}}},[a],i);}function vx(e){var t=f.useRef(0),n=en(f.useState(e),2),r=n[0],o=n[1],a=f.useCallback(function(i){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(i);});},[]);return Vs(function(){cancelAnimationFrame(t.current);}),[r,a]}var sZ={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN};const lZ=function(e){var t=en(vx(sZ),2),n=t[0],r=t[1];return _o("mousemove",function(o){var a=o.screenX,i=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:a,screenY:i,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},m=Uu(e);if(m){var h=m.getBoundingClientRect(),v=h.left,g=h.top,p=h.width,b=h.height;d.elementPosX=v+window.pageXOffset,d.elementPosY=g+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var cZ=function(){var e=f.useRef(!1);return f.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const uZ=cZ,dZ=tx(f.useLayoutEffect),by=D(Kt,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function gx({style:e,className:t}){const {runAsync:n,loading:r}=VX(rX,{manual:!0}),{accessKey:o}=_n(),a=oX,s=l=>l;return D(js,{size:"small",style:e,className:t,children:o?ge(Et,{children:[s(D(Kt,{onClick:n,disabled:r,children:D("span",{children:"重新获取 access_key"})})),D(Kt,{onClick:a,children:D("span",{children:"删除 access_key"})}),by]}):ge(Et,{children:[s(D(Kt,{onClick:n,disabled:r,size:"middle",children:D("span",{children:"获取 access_key"})})),by]})})}const fZ="_modal-mask_1j5wc_1",mZ="_modal_1j5wc_1",hZ="_modal-header_1j5wc_23",vZ="_modal-body_1j5wc_30",gZ="_modal-title_1j5wc_35",pZ="_btn-close_1j5wc_42",Ur={modalMask:fZ,modal:mZ,modalHeader:hZ,modalBody:vZ,modalTitle:gZ,btnClose:pZ};let zi=0;const bZ=()=>{zi++,document.body.style.overflow="hidden";},yZ=()=>{zi--,zi<0&&(zi=0),zi===0&&(document.body.style.overflow="");};function mg({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:a,clsModal:i,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?bZ():yZ();},[e]);const u=f.useRef(null),d=ig(),{bg:m,c:h}=f.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,S=window.getComputedStyle(document.body).color;return {bg:y,c:S}},[d]),v=f.useMemo(()=>d?{"--bg":m,"--c":h,backgroundColor:m,color:h}:{},[m,h,d]),g=f.useId(),p=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+g),document.body.appendChild(y),y},[]),b=nt(y=>{var E;const S=y.target;(E=u.current)!=null&&E.contains(S)||S.closest('.ant-tooltip-inner[role="tooltip"]')||S.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return nn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?qy.createPortal(D("div",{className:H(Ur.modalMask,o),style:r,onClick:b,children:D("div",{className:H(Ur.modal,i),style:{...v,width:s,...a},ref:u,children:n})}),p):null}const hg=e=>D(Rt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),px=f__namespace.createContext(null),CZ=px.Provider,bx=f__namespace.createContext(null),SZ=bx.Provider,$Z=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Tt(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"}})}},wZ=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,dotSize:d,colorBgContainerDisabled:m,colorTextDisabled:h,paddingXS:v,dotColorDisabled:g,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:S}=e,E=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Tt(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({},Tt(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({},Qo(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:S,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${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 ${i}`},[`${t}-input`]:{position:"absolute",inset: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 ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:m,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},xZ=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:h,controlHeightSM:v,paddingXS:g,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:E,colorTextDisabled:$,colorBgContainerDisabled:w,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:x,colorPrimary:I,colorPrimaryHover:_,colorPrimaryActive:k,buttonSolidCheckedBg:O,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:R}=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 ${a} ${i}`,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:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${i}`,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:v,paddingInline:g-o,paddingBlock:0,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":Object.assign({},Qo(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:I,background:S,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&: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:P,borderColor:P},"&:active":{color:E,background:R,borderColor:R}},"&-disabled":{color:$,backgroundColor:w,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:w,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:x,backgroundColor:C,borderColor:i,boxShadow:"none"}}}},yy=e=>e-4*2,yx=At("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,a=o,i=yy(r),s=ut(e,{radioDotDisabledSize:i,radioFocusShadow:o,radioButtonFocusShadow:a});return [$Z(s),wZ(s),xZ(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:m,colorPrimaryActive:h}=e,v=4,g=a,p=t?yy(g):g-(v+o)*2;return {radioSize:g,dotSize:p,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var EZ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const OZ=(e,t)=>{var n,r;const o=f__namespace.useContext(px),a=f__namespace.useContext(bx),{getPrefixCls:i,direction:s,radio:l}=f__namespace.useContext(Ye),c=f__namespace.useRef(null),u=Rn(t,c),{isFormItemInput:d}=f__namespace.useContext(vr),m=k=>{var O,P;(O=e.onChange)===null||O===void 0||O.call(e,k),(P=o==null?void 0:o.onChange)===null||P===void 0||P.call(o,k);},{prefixCls:h,className:v,rootClassName:g,children:p,style:b}=e,y=EZ(e,["prefixCls","className","rootClassName","children","style"]),S=i("radio",h),E=((o==null?void 0:o.optionType)||a)==="button",$=E?`${S}-button`:S,[w,C]=yx(S),x=Object.assign({},y),I=f__namespace.useContext(Xr);o&&(x.name=o.name,x.onChange=m,x.checked=e.value===o.value,x.disabled=(n=x.disabled)!==null&&n!==void 0?n:o.disabled),x.disabled=(r=x.disabled)!==null&&r!==void 0?r:I;const _=H(`${$}-wrapper`,{[`${$}-wrapper-checked`]:x.checked,[`${$}-wrapper-disabled`]:x.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:d},l==null?void 0:l.className,v,g,C);return w(f__namespace.createElement(Ns,{component:"Radio",disabled:x.disabled},f__namespace.createElement("label",{className:_,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(bS,Object.assign({},x,{className:H(x.className,!E&&bu),type:"radio",prefixCls:$,ref:u})),p!==void 0?f__namespace.createElement("span",null,p):null)))},IZ=f__namespace.forwardRef(OZ),xc=IZ,PZ=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Ye),[o,a]=Bt(e.defaultValue,{value:e.value}),i=O=>{const P=o,R=O.target.value;"value"in e||a(R);const{onChange:T}=e;T&&R!==P&&T(O);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:m,children:h,size:v,style:g,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:E}=e,$=n("radio",s),w=`${$}-group`,[C,x]=yx($);let I=h;u&&u.length>0&&(I=u.map(O=>typeof O=="string"||typeof O=="number"?f__namespace.createElement(xc,{key:O.toString(),prefixCls:$,disabled:m,value:O,checked:o===O},O):f__namespace.createElement(xc,{key:`radio-group-value-options-${O.value}`,prefixCls:$,disabled:O.disabled||m,value:O.value,checked:o===O.value,title:O.title,style:O.style},O.label)));const _=Wn(v),k=H(w,`${w}-${d}`,{[`${w}-${_}`]:_,[`${w}-rtl`]:r==="rtl"},l,c,x);return C(f__namespace.createElement("div",Object.assign({},Xa(e,{aria:!0,data:!0}),{className:k,style:g,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:E,id:p,ref:t}),f__namespace.createElement(CZ,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),_Z=f__namespace.memo(PZ);var RZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TZ=(e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(Ye),{prefixCls:r}=e,o=RZ(e,["prefixCls"]),a=n("radio",r);return f__namespace.createElement(SZ,{value:"button"},f__namespace.createElement(xc,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},MZ=f__namespace.forwardRef(TZ),Gu=xc;Gu.Button=MZ;Gu.Group=_Z;Gu.__ANT_RADIO=!0;const Cy=Gu;function NZ(e,t){const n=Object.keys(e),r=zh(JSON.parse(localStorage.getItem(t)||"{}"),n),o=gr({...e,...r});return ag(o,()=>{const a=bc(o);localStorage.setItem(t,JSON.stringify(a));}),o}function vg(){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 Ks(){const e=vg().bili_jct;if(!e)throw Ct("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function Ku(){return vg().DedeUserID}function qs(){return !!vg().DedeUserID}const Bm=gr({cookie:document.cookie,logined:qs()});function kZ(){return Object.assign(Bm,{cookie:document.cookie,logined:qs()}),Bm.logined}function gg(){return pr(Bm).logined}const Sy=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},AZ=new WeakMap;function LZ({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Sy());let a,i,s;const l=e??clearTimeout,c=()=>{l(a),s(Sy());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((m,h)=>{i=()=>{u(),m(r);},s=h,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",c,{once:!0}),AZ.set(d,()=>{l(a),a=null,i();}),d}}const lo=LZ(),DZ=hi.extend("utility:dom"),jZ=10*1e3,zZ=200;async function qi(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const i=performance.now()+jZ;for(;!r.length&&performance.now()<i;)await lo(zZ),o();if(!r.length){console.warn(`[${gn}]: tryAction timeout, selector = \`%s\``,e);return}DZ("tryAction: selector=`%s` count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function Aa(e,t,n){return typeof n=="number"&&await lo(n),qi(e,r=>r.remove(),t)}function qu(){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 BZ(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,a,i)=>o+a*t[i],0)}function Xu(e){return e||(e=0),sa.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function yf(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function Ec(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 FZ=sa().format("YYYY");function Io(e,t=!1){if(!e)return "";const n=sa.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===FZ?n.format("M-D"+r):n.format("YY-M-D"+r)}const HZ={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function WZ(e){if(!(typeof e>"u")&&!(e>=0))return HZ[e]}const VZ=`${gn}-video-source-tab`,pg=NZ({value:"recommend-app"},VZ),Fm={name:"qamjgr",styles:"margin-right:4px"},Xs=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"keep-follow-only",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic-feed",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}],$y=Xs.reduce((e,t)=>({...e,[t.key]:t}),{}),UZ=Xs.map(e=>e.key);function Cx(){const{showingTabKeys:e}=_n();return f.useMemo(()=>e.length?e:Xs.map(t=>t.key),[e])}function GZ(){const e=Cx(),t=gg();return f.useMemo(()=>Xs.filter(n=>e.includes(n.key)||!t&&n.key==="recommend-app"),[e,t])}function Sx(e,t){return UZ.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Ys(){return Sx(pr(pg).value,gg())}function KZ(){return Sx(pg.value,qs())}function qZ(){return Ct("你需要登录(不可用)B站后使用该功能! 如已完成登录(不可用), 请刷新网页重试~")}const XZ={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},YZ={name:"s0vnfv",styles:"height:32px"};var ZZ={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},QZ={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function $x({onRefresh:e}){const t=gg(),n=Ys(),{styleUseStandardVideoSourceTab:r}=_n(),o=GZ();return ge(Et,{children:[D(Cy.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:a=>{a.target.blur();},onChange:a=>{const i=a.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!kZ())return qZ();pg.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:s,iconProps:l})=>D(Cy.Button,{css:[XZ,r&&YZ,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:ge("span",{css:QZ,children:[D(Rt,{name:s,...l,size:(l==null?void 0:l.size)||18,css:Fm}),i]})},a))}),D(yc,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(Et,{children:o.map(({key:a,label:i,icon:s,iconProps:l,desc:c})=>ge("div",{css:ZZ,children:[D(Rt,{name:s,...l,size:(l==null?void 0:l.size)||18,css:Fm}),i,": ",c]},a))})})]})}var wx={exports:{}},xx={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|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;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,a=0;o<n.length;o++,a+=8)r[a>>>5]|=n[o]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o<n.length*32;o+=8)r.push(n[o>>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o<n.length;o++)r.push((n[o]>>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o<n.length;o+=2)r.push(parseInt(n.substr(o,2),16));return r},bytesToBase64:function(n){for(var r=[],o=0;o<n.length;o+=3)for(var a=n[o]<<16|n[o+1]<<8|n[o+2],i=0;i<4;i++)o*8+i*6<=n.length*8?r.push(e.charAt(a>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,a=0;o<n.length;a=++o%4)a!=0&&r.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*a+8)-1)<<a*2|e.indexOf(n.charAt(o))>>>6-a*2);return r}};xx.exports=t;})();var JZ=xx.exports,Hm={utf8:{stringToBytes:function(e){return Hm.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Hm.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},wy=Hm;/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var eQ=function(e){return e!=null&&(Ex(e)||tQ(e)||!!e._isBuffer)};function Ex(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function tQ(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Ex(e.slice(0,0))}(function(){var e=JZ,t=wy.utf8,n=eQ,r=wy.bin,o=function(a,i){a.constructor==String?i&&i.encoding==="binary"?a=r.stringToBytes(a):a=t.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var s=e.bytesToWords(a),l=a.length*8,c=1732584193,u=-271733879,d=-1732584194,m=271733878,h=0;h<s.length;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var v=o._ff,g=o._gg,p=o._hh,b=o._ii,h=0;h<s.length;h+=16){var y=c,S=u,E=d,$=m;c=v(c,u,d,m,s[h+0],7,-680876936),m=v(m,c,u,d,s[h+1],12,-389564586),d=v(d,m,c,u,s[h+2],17,606105819),u=v(u,d,m,c,s[h+3],22,-1044525330),c=v(c,u,d,m,s[h+4],7,-176418897),m=v(m,c,u,d,s[h+5],12,1200080426),d=v(d,m,c,u,s[h+6],17,-1473231341),u=v(u,d,m,c,s[h+7],22,-45705983),c=v(c,u,d,m,s[h+8],7,1770035416),m=v(m,c,u,d,s[h+9],12,-1958414417),d=v(d,m,c,u,s[h+10],17,-42063),u=v(u,d,m,c,s[h+11],22,-1990404162),c=v(c,u,d,m,s[h+12],7,1804603682),m=v(m,c,u,d,s[h+13],12,-40341101),d=v(d,m,c,u,s[h+14],17,-1502002290),u=v(u,d,m,c,s[h+15],22,1236535329),c=g(c,u,d,m,s[h+1],5,-165796510),m=g(m,c,u,d,s[h+6],9,-1069501632),d=g(d,m,c,u,s[h+11],14,643717713),u=g(u,d,m,c,s[h+0],20,-373897302),c=g(c,u,d,m,s[h+5],5,-701558691),m=g(m,c,u,d,s[h+10],9,38016083),d=g(d,m,c,u,s[h+15],14,-660478335),u=g(u,d,m,c,s[h+4],20,-405537848),c=g(c,u,d,m,s[h+9],5,568446438),m=g(m,c,u,d,s[h+14],9,-1019803690),d=g(d,m,c,u,s[h+3],14,-187363961),u=g(u,d,m,c,s[h+8],20,1163531501),c=g(c,u,d,m,s[h+13],5,-1444681467),m=g(m,c,u,d,s[h+2],9,-51403784),d=g(d,m,c,u,s[h+7],14,1735328473),u=g(u,d,m,c,s[h+12],20,-1926607734),c=p(c,u,d,m,s[h+5],4,-378558),m=p(m,c,u,d,s[h+8],11,-2022574463),d=p(d,m,c,u,s[h+11],16,1839030562),u=p(u,d,m,c,s[h+14],23,-35309556),c=p(c,u,d,m,s[h+1],4,-1530992060),m=p(m,c,u,d,s[h+4],11,1272893353),d=p(d,m,c,u,s[h+7],16,-155497632),u=p(u,d,m,c,s[h+10],23,-1094730640),c=p(c,u,d,m,s[h+13],4,681279174),m=p(m,c,u,d,s[h+0],11,-358537222),d=p(d,m,c,u,s[h+3],16,-722521979),u=p(u,d,m,c,s[h+6],23,76029189),c=p(c,u,d,m,s[h+9],4,-640364487),m=p(m,c,u,d,s[h+12],11,-421815835),d=p(d,m,c,u,s[h+15],16,530742520),u=p(u,d,m,c,s[h+2],23,-995338651),c=b(c,u,d,m,s[h+0],6,-198630844),m=b(m,c,u,d,s[h+7],10,1126891415),d=b(d,m,c,u,s[h+14],15,-1416354905),u=b(u,d,m,c,s[h+5],21,-57434055),c=b(c,u,d,m,s[h+12],6,1700485571),m=b(m,c,u,d,s[h+3],10,-1894986606),d=b(d,m,c,u,s[h+10],15,-1051523),u=b(u,d,m,c,s[h+1],21,-2054922799),c=b(c,u,d,m,s[h+8],6,1873313359),m=b(m,c,u,d,s[h+15],10,-30611744),d=b(d,m,c,u,s[h+6],15,-1560198380),u=b(u,d,m,c,s[h+13],21,1309151649),c=b(c,u,d,m,s[h+4],6,-145523070),m=b(m,c,u,d,s[h+11],10,-1120210379),d=b(d,m,c,u,s[h+2],15,718787259),u=b(u,d,m,c,s[h+9],21,-343485551),c=c+y>>>0,u=u+S>>>0,d=d+E>>>0,m=m+$>>>0;}return e.endian([c,u,d,m])};o._ff=function(a,i,s,l,c,u,d){var m=a+(i&s|~i&l)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._gg=function(a,i,s,l,c,u,d){var m=a+(i&l|s&~l)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._hh=function(a,i,s,l,c,u,d){var m=a+(i^s^l)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._ii=function(a,i,s,l,c,u,d){var m=a+(s^(i|~l))+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._blocksize=16,o._digestsize=16,wx.exports=function(a,i){if(a==null)throw new Error("Illegal argument "+a);var s=e.wordsToBytes(o(a,i));return i&&i.asBytes?s:i&&i.asString?r.bytesToString(s):e.bytesToHex(s)};})();var nQ=wx.exports;const rQ=Ft(nQ);var ei=1e3,ti=ei*60,ni=ti*60,ea=ni*24,oQ=ea*7,aQ=ea*365.25,iQ=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return sQ(e);if(n==="number"&&isFinite(e))return t.long?cQ(e):lQ(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function sQ(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*aQ;case"weeks":case"week":case"w":return n*oQ;case"days":case"day":case"d":return n*ea;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ni;case"minutes":case"minute":case"mins":case"min":case"m":return n*ti;case"seconds":case"second":case"secs":case"sec":case"s":return n*ei;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function lQ(e){var t=Math.abs(e);return t>=ea?Math.round(e/ea)+"d":t>=ni?Math.round(e/ni)+"h":t>=ti?Math.round(e/ti)+"m":t>=ei?Math.round(e/ei)+"s":e+"ms"}function cQ(e){var t=Math.abs(e);return t>=ea?Sl(e,t,ea,"day"):t>=ni?Sl(e,t,ni,"hour"):t>=ti?Sl(e,t,ti,"minute"):t>=ei?Sl(e,t,ei,"second"):e+" ms"}function Sl(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const Yu=Ft(iQ),uQ=[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 dQ(e){let t="";return uQ.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function fQ(e){const{img_key:t,sub_key:n}=await mQ(),r=dQ(t+n),o=Math.round(Date.now()/1e3),a=/[!'()*]/g;let i=[];e={...e,wts:o},Object.keys(e).sort().forEach(c=>{i.push(`${encodeURIComponent(c)}=${encodeURIComponent(e[c].toString().replace(a,""))}`);});const s=i.join("&"),l=rQ(s+r);return {wts:o,w_rid:l}}let Cf,Sf,$f;async function mQ(){const e=()=>sa().format("YYYYMMDD");if(Cf&&Sf&&$f&&$f===e()&&Date.now()-Sf<=Yu("6h"))return Cf;const r=(await Du.get("/x/web-interface/nav",{baseURL:tC})).data,o=r.data.wbi_img.img_url,a=r.data.wbi_img.sub_url,i={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:a.slice(a.lastIndexOf("/")+1,a.lastIndexOf("."))};return Cf=i,$f=e(),Sf=Date.now(),i}function hQ(e){return new Promise((t,n)=>{let r=e.data;const o=e.headers??{};if(u0.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 a=function(){n(new _a.AxiosError("Network Error",_a.AxiosError.ERR_NETWORK,e));},i=function(){n(new _a.AxiosError("timeout of "+e.timeout+"ms exceeded",_a.AxiosError.ECONNABORTED,e));};u0.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?x7(d.responseHeaders):{},v={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}};g7(t,n,v);};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 _a.AxiosError(`${c} is not a supported method by GM.xmlHttpRequest`)):GM.xmlHttpRequest({method:c,url:u7($7(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:i,onload:s,onerror:a});})}const Tn=Du.create({baseURL:tC,withCredentials:!0});Tn.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 fQ(e.params)}),e});function la(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const Zu=Du.create({adapter:hQ});Zu.interceptors.request.use(function(e){return e.params={appkey:ex,access_key:$t.accessKey||"",...e.params},e});Zu.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});async function Ox(){var n;return ((n=(await Tn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Wm(e){var a,i;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:Ks(),...e}),n=(await Tn.post("/x/article/creative/draft/addupdate",t)).data,r=(i=(a=n==null?void 0:n.data)==null?void 0:a.aid)==null?void 0:i.toString(),o=la(n);return o||Ct(n.message||"addupdate error"),{success:o,aid:r}}async function vQ(e){var n;const t=(await Tn.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 gQ(){const t=(await Ox()).find(i=>i.title===gn);if(!t){await Wm({title:gn});return}const n=await vQ(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}async function pQ(e){const n=(await Ox()).find(i=>i.title===gn);let r="";if(n)r=n.id.toString();else {const{success:i,aid:s}=await Wm({title:gn});if(!i)return !1;r=s;}const o=JSON.stringify(e),{success:a}=await Wm({aid:r,title:gn,content:`<p>${o}</p>`,words:o.length.toString()});return a}const bQ="_config-icon_1xtyf_1",yQ="_settings-group_1xtyf_6",CQ="_settings-group-title_1xtyf_9",SQ="_settings-group-sub-title_1xtyf_14",$Q="_settings-group-content_1xtyf_20",wQ="_row_1xtyf_26",xQ="_check_1xtyf_34",EQ="_setting-tabs_1xtyf_39",OQ="_tab-pane_1xtyf_42",ze={configIcon:bQ,settingsGroup:yQ,settingsGroupTitle:CQ,settingsGroupSubTitle:SQ,settingsGroupContent:$Q,row:wQ,check:xQ,settingTabs:EQ,tabPane:OQ};async function bg(){Ct("即将刷新网页"),await lo(500),location.reload();}function IQ(){return jQ(),bg()}let Ix=!1;async function PQ(){const e=await gQ(),t=zh(e||{},Px);return Object.keys(t).length?(Ix=!0,hr({...t}),bg()):Ct("备份不存在或没有有效的配置")}function $l(e,t,n){return nn(e,r=>{if(qu())return;$t[t]=!$t[t];const o=!$t[t];Ct(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}var _Q={name:"1yvqi6w",styles:"display:flex;align-items:center;margin-right:15px"},RQ={name:"1nwso5m",styles:".ant-checkbox-group-item{align-items:center;}"};function TQ({show:e,onHide:t}){const{autoPreviewUpdateInterval:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:i,filterOutGotoTypePicture:s}=_n();$l(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),$l(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),$l(["shift.c"],"useNarrowMode","居中模式"),$l(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式");const l=Cx();return ge(mg,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[ge("div",{className:Ur.modalHeader,children:[ge("div",{className:Ur.modalTitle,children:[D(Rt,{name:"Config",className:ze.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(hg,{onClick:t})]}),D("main",{className:Ur.modalBody,style:{overflow:"hidden"},children:D(H9,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:ze.settingTabs,items:[{label:"常规设置",key:"normal",children:ge("div",{className:ze.tabPane,children:[ge("div",{className:ze.settingsGroup,children:[ge("div",{className:ze.settingsGroupTitle,children:["access_key",D(yc,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:ge(Et,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:H(ze.settingsGroupContent),children:D("div",{className:ze.row,style:{marginTop:5},children:D(gx,{})})})]}),ge("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,children:"开关"}),ge("div",{className:H(ze.settingsGroupContent,ze.row),children:[D(hn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:ge(Et,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:ze.check,extraAction:bg}),D(hn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:ze.check,extraAction:c=>{c&&Ct("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(hn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:ge(Et,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(Co,{color:"green",children:"shift+c"})]}),className:ze.check})]})]}),ge("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,children:"预览"}),ge("div",{className:H(ze.settingsGroupContent,ze.row),children:[D(hn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:ze.check,tooltip:ge(Et,{children:["手动预览快捷键: ",D(Co,{color:"green",children:"."})," or ",D(Co,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(Co,{color:"green",children:"shift+p"})]})}),D(hn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:ze.check,tooltip:ge(Et,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(Co,{color:"green",children:"shift+m"})]})})]})]}),ge("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,children:"帮助"}),D("div",{className:H(ze.settingsGroupContent),children:D("div",{className:ze.row,children:ge(js,{size:"small",children:[D(Kt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Kt,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Kt,{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(Kt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Kt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})},{label:"内容过滤",key:"filter",children:D("div",{className:ze.tabPane,children:ge("div",{className:ze.settingsGroup,children:[ge("div",{className:ze.settingsGroupTitle,children:["内容过滤",D(yc,{iconProps:{name:"Tips"},tooltip:ge(Et,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})})]}),ge("div",{className:H(ze.settingsGroupContent),children:[D("div",{className:ze.settingsGroupSubTitle,children:"视频"}),ge("div",{className:ze.row,children:[D(hn,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(Et,{children:"不显示播放量很少的视频"})}),D(Em,{size:"small",min:1,step:1e3,value:r,onChange:c=>c&&hr({filterMinPlayCount:c}),disabled:!o})]}),ge("div",{className:ze.row,style:{marginTop:3},children:[D(hn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(Et,{children:"不显示短视频"})}),D(Em,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:c=>c&&hr({filterMinDuration:c}),disabled:!i})]}),D(hn,{className:ze.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(Et,{children:"默认不过滤「已关注」"})}),D("div",{className:ze.settingsGroupSubTitle,children:"图文"}),D(hn,{className:ze.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(Et,{children:"过滤掉图文推荐"})}),D(hn,{className:ze.row,disabled:!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(Et,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:ze.tabPane,children:ge("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),ge("div",{className:H(ze.settingsGroupContent),children:[D("div",{className:ze.row,children:D(hn,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:ge(Et,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",D("br",{}),"切换设置快捷键: ",D(Co,{color:"green",children:"shift+y"})]})})}),D("div",{className:ze.row,style:{marginTop:5},children:D(hn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:ze.tabPane,children:ge("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:H(ze.settingsGroupContent),children:D(qq,{})})]})})},{label:"高级设置",key:"advance",children:D("div",{className:ze.tabPane,children:ge("div",{className:ze.settingsGroup,children:[D("div",{className:ze.settingsGroupTitle,children:"设置项"}),D("div",{className:H(ze.settingsGroupContent),children:D("div",{className:ze.row,children:D(Wb,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:IQ,children:D(Kt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:ze.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),ge("div",{className:H(ze.settingsGroupContent),children:[ge("div",{className:ze.row,children:[D(hn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${gn}`}),ge("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(Rt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:ze.row,style:{marginTop:5},children:D(Wb,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:PQ,children:D(Kt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:ze.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),ge("div",{className:H(ze.settingsGroupContent),children:[D("div",{className:ze.row,children:D(hn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(Et,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:ze.row,children:D(hn,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:ze.settingsGroupTitle,style:{marginTop:15},children:"Tab 显示"}),ge("div",{className:H(ze.settingsGroupContent),children:[D("div",{className:ze.row,children:D(yu.Group,{css:RQ,options:Xs.map(({label:c,key:u,icon:d,iconProps:m})=>({label:ge("span",{css:_Q,children:[D(Rt,{name:d,...m,size:(m==null?void 0:m.size)||18,css:Fm}),c]}),value:u})),value:l,onChange:c=>{if(!c.length)return Ct("至少选择一项!");hr({showingTabKeys:c});}})}),D(Kt,{style:{marginTop:"5px"},onClick:()=>{hr({showingTabKeys:[]});},children:"重置"})]}),D("div",{className:ze.settingsGroupTitle,style:{marginTop:15},children:"预览"}),ge("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(R6,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:c=>$t.autoPreviewUpdateInterval=c,value:n}),ge("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})})}]})})]})}const MQ=hi.extend("settings"),yg={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,showingTabKeys:[]},$t=gr({...yg}),Px=Object.keys(yg);function _n(){return pr($t)}const NQ=gn,_x=`${NQ}.settings`;async function kQ(){const e=await GM.getValue(_x);e&&typeof e=="object"&&Object.assign($t,zh(e,Px)),ag($t,()=>{LQ();});}const AQ=J1(pQ,Yu("5s"));async function LQ(){const e=bc($t);await GM.setValue(_x,e),await DQ(e);}async function DQ(e){if(!e.backupSettingsToArticleDraft||Ix)return;const t=wA(e,["accessKey"]);try{await AQ(t),MQ("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function hr(e){Object.assign($t,e);}function jQ(){return hr(yg)}await( kQ());var Rx={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Fr,function(){var n,r,o=1e3,a=6e4,i=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=2628e6,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:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},h=function(w){return w instanceof E},v=function(w,C,x){return new E(w,x,C.$l)},g=function(w){return r.p(w)+"s"},p=function(w){return w<0},b=function(w){return p(w)?Math.ceil(w):Math.floor(w)},y=function(w){return Math.abs(w)},S=function(w,C){return w?p(w)?{negative:!0,format:""+y(w)+C}:{negative:!1,format:""+w+C}:{negative:!1,format:""}},E=function(){function w(x,I,_){var k=this;if(this.$d={},this.$l=_,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return v(x*m[g(I)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach(function(R){k.$d[g(R)]=x[R];}),this.calMilliseconds(),this;if(typeof x=="string"){var O=x.match(d);if(O){var P=O.slice(2).map(function(R){return R!=null?Number(R):0});return this.$d.years=P[0],this.$d.months=P[1],this.$d.weeks=P[2],this.$d.days=P[3],this.$d.hours=P[4],this.$d.minutes=P[5],this.$d.seconds=P[6],this.calMilliseconds(),this}}return this}var C=w.prototype;return C.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce(function(I,_){return I+(x.$d[_]||0)*m[_]},0);},C.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=b(x/c),x%=c,this.$d.months=b(x/u),x%=u,this.$d.days=b(x/s),x%=s,this.$d.hours=b(x/i),x%=i,this.$d.minutes=b(x/a),x%=a,this.$d.seconds=b(x/o),x%=o,this.$d.milliseconds=x;},C.toISOString=function(){var x=S(this.$d.years,"Y"),I=S(this.$d.months,"M"),_=+this.$d.days||0;this.$d.weeks&&(_+=7*this.$d.weeks);var k=S(_,"D"),O=S(this.$d.hours,"H"),P=S(this.$d.minutes,"M"),R=this.$d.seconds||0;this.$d.milliseconds&&(R+=this.$d.milliseconds/1e3,R=Math.round(1e3*R)/1e3);var T=S(R,"S"),N=x.negative||I.negative||k.negative||O.negative||P.negative||T.negative,M=O.format||P.format||T.format?"T":"",L=(N?"-":"")+"P"+x.format+I.format+k.format+M+O.format+P.format+T.format;return L==="P"||L==="-P"?"P0D":L},C.toJSON=function(){return this.toISOString()},C.format=function(x){var I=x||"YYYY-MM-DDTHH:mm:ss",_={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 I.replace(l,function(k,O){return O||String(_[k])})},C.as=function(x){return this.$ms/m[g(x)]},C.get=function(x){var I=this.$ms,_=g(x);return _==="milliseconds"?I%=1e3:I=_==="weeks"?b(I/m[_]):this.$d[_],I||0},C.add=function(x,I,_){var k;return k=I?x*m[g(I)]:h(x)?x.$ms:v(x,this).$ms,v(this.$ms+k*(_?-1:1),this)},C.subtract=function(x,I){return this.add(x,I,!0)},C.locale=function(x){var I=this.clone();return I.$l=x,I},C.clone=function(){return v(this.$ms,this)},C.humanize=function(x){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},C.valueOf=function(){return this.asMilliseconds()},C.milliseconds=function(){return this.get("milliseconds")},C.asMilliseconds=function(){return this.as("milliseconds")},C.seconds=function(){return this.get("seconds")},C.asSeconds=function(){return this.as("seconds")},C.minutes=function(){return this.get("minutes")},C.asMinutes=function(){return this.as("minutes")},C.hours=function(){return this.get("hours")},C.asHours=function(){return this.as("hours")},C.days=function(){return this.get("days")},C.asDays=function(){return this.as("days")},C.weeks=function(){return this.get("weeks")},C.asWeeks=function(){return this.as("weeks")},C.months=function(){return this.get("months")},C.asMonths=function(){return this.as("months")},C.years=function(){return this.get("years")},C.asYears=function(){return this.as("years")},w}(),$=function(w,C,x){return w.add(C.years()*x,"y").add(C.months()*x,"M").add(C.days()*x,"d").add(C.hours()*x,"h").add(C.minutes()*x,"m").add(C.seconds()*x,"s").add(C.milliseconds()*x,"ms")};return function(w,C,x){n=x,r=x().$utils(),x.duration=function(k,O){var P=x.locale();return v(k,{$l:P},O)},x.isDuration=h;var I=C.prototype.add,_=C.prototype.subtract;C.prototype.add=function(k,O){return h(k)?$(this,k,1):I.bind(this)(k,O)},C.prototype.subtract=function(k,O){return h(k)?$(this,k,-1):_.bind(this)(k,O)};}});})(Rx);var zQ=Rx.exports;const BQ=Ft(zQ);var Qu,xy=qy;Qu=xy.createRoot,xy.hydrateRoot;function Cg(e){const t=gr({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(gr(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 FQ(e){const t=gr({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(a=>a[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}var mr,Ht,Jt,wo,vs,xo,gs,Vm,Zn,xr,Ac,Tx,ps,Um,bs,Gm,ys,Km,Lc,Mx,Cs,qm;class HQ extends Map{constructor(n={}){super();Mn(this,gs);Mn(this,Zn);Mn(this,Ac);Mn(this,ps);Mn(this,bs);Mn(this,ys);Mn(this,Lc);Mn(this,Cs);Mn(this,mr,0);Mn(this,Ht,new Map);Mn(this,Jt,new Map);Mn(this,wo,void 0);Mn(this,vs,void 0);Mn(this,xo,void 0);if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof n.maxAge=="number"&&n.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");$n(this,wo,n.maxSize),$n(this,vs,n.maxAge||Number.POSITIVE_INFINITY),$n(this,xo,n.onEviction);}get __oldCache(){return tt(this,Jt)}get(n){if(tt(this,Ht).has(n)){const r=tt(this,Ht).get(n);return Yt(this,ps,Um).call(this,n,r)}if(tt(this,Jt).has(n)){const r=tt(this,Jt).get(n);if(Yt(this,Zn,xr).call(this,n,r)===!1)return Yt(this,Lc,Mx).call(this,n,r),r.value}}set(n,r,{maxAge:o=tt(this,vs)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return tt(this,Ht).has(n)?tt(this,Ht).set(n,{value:r,expiry:a}):Yt(this,ys,Km).call(this,n,{value:r,expiry:a}),this}has(n){return tt(this,Ht).has(n)?!Yt(this,Zn,xr).call(this,n,tt(this,Ht).get(n)):tt(this,Jt).has(n)?!Yt(this,Zn,xr).call(this,n,tt(this,Jt).get(n)):!1}peek(n){if(tt(this,Ht).has(n))return Yt(this,bs,Gm).call(this,n,tt(this,Ht));if(tt(this,Jt).has(n))return Yt(this,bs,Gm).call(this,n,tt(this,Jt))}delete(n){const r=tt(this,Ht).delete(n);return r&&md(this,mr)._--,tt(this,Jt).delete(n)||r}clear(){tt(this,Ht).clear(),tt(this,Jt).clear(),$n(this,mr,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...Yt(this,Cs,qm).call(this)],o=r.length-n;o<0?($n(this,Ht,new Map(r)),$n(this,Jt,new Map),$n(this,mr,r.length)):(o>0&&Yt(this,gs,Vm).call(this,r.slice(0,o)),$n(this,Jt,new Map(r.slice(o))),$n(this,Ht,new Map),$n(this,mr,0)),$n(this,wo,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of tt(this,Ht)){const[r,o]=n;Yt(this,Zn,xr).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of tt(this,Jt)){const[r,o]=n;tt(this,Ht).has(r)||Yt(this,Zn,xr).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...tt(this,Ht)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;Yt(this,Zn,xr).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...tt(this,Jt)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;tt(this,Ht).has(a)||Yt(this,Zn,xr).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of Yt(this,Cs,qm).call(this))yield [n,r.value];}get size(){if(!tt(this,mr))return tt(this,Jt).size;let n=0;for(const r of tt(this,Jt).keys())tt(this,Ht).has(r)||n++;return Math.min(tt(this,mr)+n,tt(this,wo))}get maxSize(){return tt(this,wo)}entries(){return this.entriesAscending()}forEach(n,r=this){for(const[o,a]of this.entriesAscending())n.call(r,a,o,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}mr=new WeakMap,Ht=new WeakMap,Jt=new WeakMap,wo=new WeakMap,vs=new WeakMap,xo=new WeakMap,gs=new WeakSet,Vm=function(n){if(typeof tt(this,xo)=="function")for(const[r,o]of n)tt(this,xo).call(this,r,o.value);},Zn=new WeakSet,xr=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof tt(this,xo)=="function"&&tt(this,xo).call(this,n,r.value),this.delete(n)):!1},Ac=new WeakSet,Tx=function(n,r){if(Yt(this,Zn,xr).call(this,n,r)===!1)return r.value},ps=new WeakSet,Um=function(n,r){return r.expiry?Yt(this,Ac,Tx).call(this,n,r):r.value},bs=new WeakSet,Gm=function(n,r){const o=r.get(n);return Yt(this,ps,Um).call(this,n,o)},ys=new WeakSet,Km=function(n,r){tt(this,Ht).set(n,r),md(this,mr)._++,tt(this,mr)>=tt(this,wo)&&($n(this,mr,0),Yt(this,gs,Vm).call(this,tt(this,Jt)),$n(this,Jt,tt(this,Ht)),$n(this,Ht,new Map));},Lc=new WeakSet,Mx=function(n,r){tt(this,Jt).delete(n),Yt(this,ys,Km).call(this,n,r);},Cs=new WeakSet,qm=function*(){for(const n of tt(this,Jt)){const[r,o]=n;tt(this,Ht).has(r)||Yt(this,Zn,xr).call(this,r,o)===!1&&(yield n);}for(const n of tt(this,Ht)){const[r,o]=n;Yt(this,Zn,xr).call(this,r,o)===!1&&(yield n);}};async function WQ(e){return (await Tn.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function VQ(e){return []}const wf=new HQ({maxSize:1e3});async function UQ(e){if(wf.has(e))return wf.get(e);const[t,n]=await Promise.all([WQ(e),VQ()]);return wf.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Nx(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Ks()}),a=(await Tn.post("/x/v2/history/toview/"+e,r)).data,i=la(a);return i||Ct((a==null?void 0:a.message)||"出错了"),i}}const wl=Nx("add"),Ey=Nx("del"),kx=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await Zu.get(nC+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return la(a)}},GQ=kx("dislike"),KQ=kx("cancel"),qQ="_modal_1rloz_1",XQ="_title-desc_1rloz_4",YQ="_reason-list_1rloz_8",ZQ="_reason_1rloz_8",QQ="_active_1rloz_29",JQ="_reason-no_1rloz_33",eJ="_tips-container_1rloz_47",tJ="_tips_1rloz_47",fr={modal:qQ,titleDesc:XQ,reasonList:YQ,reason:ZQ,active:QQ,reasonNo:JQ,tipsContainer:eJ,tips:tJ},Ju=FQ();function nJ(){return pr(Ju)}function rJ(e){const t=nJ();if(e)return t.get(e)}function oJ({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),a=nt(async h=>{if(!n)return;let v=!1,g;try{o(!0),v=await GQ(n,h.id);}catch(p){g=p;}finally{o(!1);}if(g)return console.error(g.stack||g),Qw();v?Ct("已标记不想看"):Jw(),v&&(Ju.set(n.param,{...h}),t());}),i=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"];nn(l,h=>{if(!s()||!l.includes(h.key))return;const v=Number(h.key)-1;u(v);const g=document.querySelectorAll(`.${fr.reason}`)[v]||null;g==null||g.click();});const[c,u]=f.useState(i.length-1);dZ(()=>{u(i.length-1);},[i]);const d=h=>()=>{if(!s())return;const v=c+h;v<0||v>i.length-1||u(v);};nn("leftarrow",d(-1)),nn("rightarrow",d(1)),nn("uparrow",d(-2)),nn("downarrow",d(2)),nn("enter",h=>{var v;s()&&(c<0||c>i.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(v=document.querySelector(`.${fr.reason}.${fr.active}`))==null||v.click()));});const m=f.useMemo(()=>{var h;return ((h=i[c])==null?void 0:h.name)||""},[i,c]);return ge(mg,{show:e,onHide:t,clsModal:fr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[ge("div",{className:Ur.modalHeader,children:[ge("div",{className:Ur.modalTitle,children:["我不想看",D("span",{className:fr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(hg,{onClick:t})]}),ge("div",{className:Ur.modalBody,children:[D("div",{className:fr.reasonList,children:i.map((h,v)=>ge("button",{className:H(fr.reason,{[fr.active]:v===c}),style:{...v===c&&{borderColor:so}},"data-id":h.id,onClick:()=>{u(v),a(h);},disabled:r,children:[D("span",{className:fr.reasonNo,style:{backgroundColor:so},children:v+1}),h.name]},h.id))}),ge("div",{className:fr.tipsContainer,children:[ge("div",{className:fr.tips,children:[D(Rt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&ge("div",{className:fr.tips,children:[D(Rt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const Ul={show:!1,onHide:Lx,item:null},Ax=gr({value:Ul.show}),aJ=function(){return pr(Ax).value};function Lx(){setTimeout(()=>{Dx({show:!1,item:null});});}function Dx(e){Object.assign(Ul,e),Ax.value=Ul.show,iJ().render(D(oJ,{...Ul,onHide:Lx}));}let Oy;function iJ(){return Oy||(Oy=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container"),document.body.appendChild(e),Qu(e)})()),Oy}function sJ(e){e!=null&&e.param&&Ju.has(e.param)||Dx({show:!0,item:e});}var lJ={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 cJ=lJ;var uJ=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:cJ}))};const Oc=f__namespace.forwardRef(uJ);const jx=f__namespace.createContext({});var dJ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fJ=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=dJ(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=f__namespace.useContext(Ye),i=a("menu",t),s=H({[`${i}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(Av,Object.assign({className:s},o))},zx=fJ,mJ=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ic=mJ,hJ=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=f__namespace.useContext(Ic),m=y=>{const S=f__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||ao(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:h}=f__namespace.useContext(jx);let v=a;typeof a>"u"?v=l?r:"":a===!1&&(v="");const g={title:v};!h&&!d&&(g.title=null,g.open=!1);const p=er(r).length;let b=f__namespace.createElement(zs,Object.assign({},Pn(e,["title","icon","danger"]),{className:H({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),In(o,{className:H(ao(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(d));return u||(b=f__namespace.createElement(Ts,Object.assign({},g,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},Bx=hJ,vJ=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=f__namespace.useContext(Ic),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=bi();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=ao(o)&&o.type==="span";d=f__namespace.createElement(f__namespace.Fragment,null,In(r,{className:H(ao(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({},i),{firstLevel:!1}),[i]);return f__namespace.createElement(Ic.Provider,{value:m},f__namespace.createElement(Tu,Object.assign({},Pn(e,["icon"]),{title:d,popupClassName:H(s,n,`${s}-${a||c}`)})))},Fx=vJ;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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Xm(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:s}=r,l=gJ(r,["label","children","key","type"]),c=i??`tmp-${n}`;return a||s==="group"?s==="group"?f__namespace.createElement(Mu,Object.assign({key:c},l,{title:o}),Xm(a)):f__namespace.createElement(Fx,Object.assign({key:c},l,{title:o}),Xm(a)):s==="divider"?f__namespace.createElement(zx,Object.assign({key:c},l)):f__namespace.createElement(Bx,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function pJ(e){return f__namespace.useMemo(()=>e&&Xm(e),[e])}var bJ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Pc=f__namespace.createContext(null),yJ=f__namespace.forwardRef((e,t)=>{const{children:n}=e,r=bJ(e,["children"]),o=f__namespace.useContext(Pc),a=f__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]);return f__namespace.createElement(Pc.Provider,{value:a},f__namespace.createElement(Ua,null,k5(n)?f__namespace.cloneElement(n,{ref:t}):n))}),CJ=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
> ${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"}}}},SJ=CJ,$J=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})`}}}}},wJ=$J,Iy=e=>Object.assign({},Qo(e)),xJ=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:v,itemPaddingInline:g,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:S,itemDisabledColor:E,dangerItemColor:$,dangerItemHoverColor:w,dangerItemSelectedColor:C,dangerItemActiveBg:x,dangerItemSelectedBg:I,itemHoverBg:_,itemActiveBg:k,menuSubMenuBg:O,horizontalItemSelectedColor:P,horizontalItemSelectedBg:R,horizontalItemBorderRadius:T,horizontalItemHoverBg:N,popupBg:M}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},Iy(e)),[`${n}-item-group-title`]:{color:a},[`${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:_},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:x}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Iy(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:c,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${S}`}},[`&${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} ${v}`,`opacity ${p} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},Py=xJ,_y=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s}=e,l=o+a+i;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}}},EJ=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:v,collapsedWidth:g,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},_y(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},_y(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${i*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:g,[`&${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({},Zo),{paddingInline:h})}}]},OJ=EJ,Ry=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:l}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},oa()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ty=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.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(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},IJ=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:v,menuArrowOffset:g,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:S}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},Yf()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),Yf()),{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:S,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${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"}}}),Ry(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},Ry(e)),Ty(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),Ty(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},PJ=(e,t)=>At("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:m,darkItemSelectedColor:h,darkItemSelectedBg:v,darkDangerItemSelectedBg:g,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:S,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:w}=r,C=l/7*5,x=ut(r,{menuArrowSize:C,menuHorizontalHeight:s*1.15,menuArrowOffset:`${C*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),I=ut(x,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:h,itemBg:d,popupBg:d,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:S,dangerItemColor:u,dangerItemHoverColor:E,dangerItemSelectedColor:$,dangerItemActiveBg:w,dangerItemSelectedBg:g,menuSubMenuBg:m,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return [IJ(x),SJ(x),OJ(x),Py(x,"light"),Py(I,"dark"),wJ(x),mS(x),To(x,"slide-up"),To(x,"slide-down"),vu(x,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:m,lineWidth:h,lineWidthBold:v,controlItemBgActive:g,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:E,padding:$,fontSize:w,controlHeightSM:C,fontSizeLG:x,colorTextLightSolid:I,colorErrorHover:_}=r,k=new Xt(I).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:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:h,activeBarBorderWidth:h,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:S,itemMarginBlock:E,itemPaddingInline:$,horizontalLineHeight:`${b*1.15}px`,iconSize:w,iconMarginInlineEnd:C-w,collapsedIconSize:x,groupTitleFontSize:w,darkItemDisabledColor:new Xt(I).setAlpha(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:a,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:I,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:a}},{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 _J=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RJ=f.forwardRef((e,t)=>{var n,r;const o=f__namespace.useContext(Pc),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=f__namespace.useContext(Ye),u=i(),{prefixCls:d,className:m,style:h,theme:v="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:S,children:E,rootClassName:$,mode:w,selectable:C,onClick:x,overflowedIndicatorPopupClassName:I}=e,_=_J(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=Pn(_,["collapsedWidth"]),O=pJ(S)||E;(n=a.validator)===null||n===void 0||n.call(a,{mode:w});const P=zn(function(){var F;x==null||x.apply(void 0,arguments),(F=a.onClick)===null||F===void 0||F.call(a);}),R=a.mode||w,T=C??a.selectable,N=f__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),M={horizontal:{motionName:`${u}-slide-up`},inline:sS(u),other:{motionName:`${u}-zoom-big`}},L=i("menu",d||a.prefixCls),[j,z]=PJ(L,!o),V=H(`${L}-${v}`,c==null?void 0:c.className,m);let B;if(typeof g=="function")B=g;else if(g===null||g===!1)B=null;else if(a.expandIcon===null||a.expandIcon===!1)B=null;else {const F=g??a.expandIcon;B=In(F,{className:H(`${L}-submenu-expand-icon`,ao(F)?(r=F.props)===null||r===void 0?void 0:r.className:"")});}const W=f__namespace.useMemo(()=>({prefixCls:L,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:v,mode:R,disableMenuItemTitleTooltip:p}),[L,N,l,p,v]);return j(f__namespace.createElement(Pc.Provider,{value:null},f__namespace.createElement(Ic.Provider,{value:W},f__namespace.createElement(yi,Object.assign({getPopupContainer:s,overflowedIndicator:f__namespace.createElement(_v,null),overflowedIndicatorPopupClassName:H(L,`${L}-${v}`,I),mode:R,selectable:T,onClick:P},k,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:V,prefixCls:L,direction:l,defaultMotions:M,expandIcon:B,ref:t,rootClassName:H($,z)}),O))))}),TJ=RJ,Zs=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(jx);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),f__namespace.createElement(TJ,Object.assign({ref:n},e,r))});Zs.Item=Bx;Zs.SubMenu=Fx;Zs.Divider=zx;Zs.ItemGroup=Mu;const MJ=Zs,NJ=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},kJ=NJ,AJ=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:v,colorBgElevated:g}=e;return [{[t]:Object.assign(Object.assign({},Tt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+a/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${i}-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"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:av},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:sv},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:iv},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:lv}})},rv(e,{colorBg:g,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:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Jo(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${v}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 ${v}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:g,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:v+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[To(e,"slide-up"),To(e,"slide-down"),lc(e,"move-up"),lc(e,"move-down"),vu(e,"zoom-big")]]},Hx=At("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(a-i*s)/2,{dropdownArrowOffset:m}=nv({contentRadius:u}),h=ut(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [AJ(h),kJ(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Sg=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,open:d,onOpenChange:m,visible:h,onVisibleChange:v,mouseEnterDelay:g=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:S,transitionName:E}=e,{getPopupContainer:$,getPrefixCls:w,direction:C}=f__namespace.useContext(Ye);cC();const x=f__namespace.useMemo(()=>{const X=w();return E!==void 0?E:y.includes("top")?`${X}-slide-down`:`${X}-slide-up`},[w,y,E]),I=f__namespace.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:C==="rtl"?"bottomRight":"bottomLeft",[y,C]),_=w("dropdown",r),[k,O]=Hx(_),[,P]=nr(),R=f__namespace.Children.only(o),T=In(R,{className:H(`${_}-trigger`,{[`${_}-rtl`]:C==="rtl"},R.props.className),disabled:i}),N=i?[]:a;let M;N&&N.includes("contextMenu")&&(M=!0);const[L,j]=Bt(!1,{value:d??h}),z=zn(X=>{m==null||m(X),v==null||v(X),j(X);}),V=H(c,u,O,{[`${_}-rtl`]:C==="rtl"}),B=cS({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),W=f__namespace.useCallback(()=>{j(!1);},[]),F=()=>{let X;return t!=null&&t.items?X=f__namespace.createElement(MJ,Object.assign({},t)):typeof S=="function"?X=S():X=S,s&&(X=s(X)),X=f__namespace.Children.only(typeof X=="string"?f__namespace.createElement("span",null,X):X),f__namespace.createElement(yJ,{prefixCls:`${_}-menu`,expandIcon:f__namespace.createElement("span",{className:`${_}-menu-submenu-arrow`},f__namespace.createElement(Ya,{className:`${_}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:W,validator:q=>{}},X)};return k(f__namespace.createElement(C$,Object.assign({alignPoint:M},Pn(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:p,visible:L,builtinPlacements:B,arrow:!!n,overlayClassName:V,prefixCls:_,getPopupContainer:l||$,transitionName:x,trigger:N,overlay:F,placement:I,onVisibleChange:z}),T))};function LJ(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const DJ=Gv(Sg,"dropdown",e=>e,LJ),jJ=e=>f__namespace.createElement(DJ,Object.assign({},e),f__namespace.createElement("span",null));Sg._InternalPanelDoNotUseOrYouWillBeFired=jJ;const Wx=Sg;var zJ=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vx=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(Ye),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:m,menu:h,arrow:v,autoFocus:g,overlay:p,trigger:b,align:y,open:S,onOpenChange:E,placement:$,getPopupContainer:w,href:C,icon:x=f__namespace.createElement(_v,null),title:I,buttonsRender:_=oe=>oe,mouseEnterDelay:k,mouseLeaveDelay:O,overlayClassName:P,overlayStyle:R,destroyPopupOnHide:T,dropdownRender:N}=e,M=zJ(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),j=`${L}-button`,[z,V]=Hx(L),B={menu:h,arrow:v,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:E,getPopupContainer:w||t,mouseEnterDelay:k,mouseLeaveDelay:O,overlayClassName:P,overlayStyle:R,destroyPopupOnHide:T,dropdownRender:N},{compactSize:W,compactItemClassnames:F}=pi(L,r),X=H(j,F,m,V);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=S),"placement"in e?B.placement=$:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=f__namespace.createElement(Kt,{type:a,danger:i,disabled:s,loading:l,onClick:c,htmlType:u,href:C,title:I},d),K=f__namespace.createElement(Kt,{type:a,danger:i,icon:x}),[G,J]=_([q,K]);return z(f__namespace.createElement(js.Compact,Object.assign({className:X,size:W,block:!0},M),G,f__namespace.createElement(Wx,Object.assign({},B),J)))};Vx.__ANT_BUTTON=!0;const BJ=Vx,Ux=Wx;Ux.Button=BJ;const $g=Ux;function Ra(e,t,n){const r=nt(n);f.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const FJ=new wt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),HJ=new wt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),WJ=new wt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),VJ=new wt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),UJ=new wt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),GJ=new wt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),KJ=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:m,marginXS:h}=e,v=`${r}-scroll-number`,g=lu(e,(p,b)=>{let{darkColor:y}=b;return {[`&${t} ${t}-color-${p}`]:{background:y,[`&:not(${t}-count)`]:{color:y}}}});return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:`${d}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:d/2,boxShadow:`0 0 0 ${o}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:m,height:m,fontSize:s,lineHeight:`${m}px`,borderRadius:m/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`},[`${t}-dot${v}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:GJ,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:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:FJ,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:h,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:HJ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:WJ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:VJ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:UJ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${v}`]:{overflow:"hidden",[`${v}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Gx=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,marginXS:o,colorBorderBg:a}=e,i=Math.round(t*n),s=r,l=e.colorBgContainer,c=e.colorError,u=e.colorErrorHover;return ut(e,{badgeFontHeight:i,badgeShadowSize:s,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Kx=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},qJ=At("Badge",e=>{const t=Gx(e);return [KJ(t)]},Kx),XJ=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,a=`${t}-ribbon`,i=`${t}-ribbon-wrapper`,s=lu(e,(l,c)=>{let{darkColor:u}=c;return {[`&${a}-color-${l}`]:{background:u,color:u}}});return {[`${i}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{position:"absolute",top:r,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${o/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:-o,borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:-o,borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},YJ=At(["Badge","Ribbon"],e=>{const t=Gx(e);return [XJ(t)]},Kx),ZJ=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=f__namespace.useContext(Ye),d=c("ribbon",n),m=gu(o,!1),h=H(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:m},t),[v,g]=YJ(d),p={},b={};return o&&!m&&(p.background=o,b.color=o),v(f__namespace.createElement("div",{className:H(`${d}-wrapper`,l,g)},a,f__namespace.createElement("div",{className:H(h,g),style:Object.assign(Object.assign({},p),r)},f__namespace.createElement("span",{className:`${d}-text`},i),f__namespace.createElement("div",{className:`${d}-corner`,style:b}))))},QJ=ZJ;function My(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),f__namespace.createElement("span",{style:a,className:H(`${t}-only-unit`,{current:r})},n)}function JJ(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function eee(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=f__namespace.useState(o),[l,c]=f__namespace.useState(a),u=()=>{s(o),c(a);};f__namespace.useEffect(()=>{const h=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(h);}},[o]);let d,m;if(i===o||Number.isNaN(o)||Number.isNaN(i))d=[f__namespace.createElement(My,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else {d=[];const h=o+10,v=[];for(let b=o;b<=h;b+=1)v.push(b);const g=v.findIndex(b=>b%10===i);d=v.map((b,y)=>{const S=b%10;return f__namespace.createElement(My,Object.assign({},e,{key:b,value:S,offset:y-g,current:y===g}))});const p=l<a?1:-1;m={transform:`translateY(${-JJ(i,o,p)}00%)`};}return f__namespace.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:u},d)}var tee=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nee=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:l,component:c="sup",children:u}=e,d=tee(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=f__namespace.useContext(Ye),h=m("scroll-number",n),v=Object.assign(Object.assign({},d),{"data-show":l,style:i,className:H(h,o,a),title:s});let g=r;if(r&&Number(r)%1===0){const p=String(r).split("");g=f__namespace.createElement("bdi",null,p.map((b,y)=>f__namespace.createElement(eee,{prefixCls:h,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(v.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?In(u,p=>({className:H(`${h}-custom-component`,p==null?void 0:p.className,a)})):f__namespace.createElement(c,Object.assign({},v,{ref:t}),g)}),ree=nee;var oee=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aee=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:m,count:h=null,overflowCount:v=99,dot:g=!1,size:p="default",title:b,offset:y,style:S,className:E,rootClassName:$,classNames:w,styles:C,showZero:x=!1}=e,I=oee(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:k,badge:O}=f__namespace.useContext(Ye),P=_("badge",s),[R,T]=qJ(P),N=h>v?`${v}+`:h,M=N==="0"||N===0,L=h===null||M&&!x,j=(u!=null||m!=null)&&L,z=g&&!M,V=z?"":N,B=f.useMemo(()=>(V==null||V===""||M&&!x)&&!z,[V,M,x,z]),W=f.useRef(h);B||(W.current=h);const F=W.current,X=f.useRef(V);B||(X.current=V);const q=X.current,K=f.useRef(z);B||(K.current=z);const G=f.useMemo(()=>{if(!y)return Object.assign(Object.assign({},O==null?void 0:O.style),S);const Z={marginTop:y[1]};return k==="rtl"?Z.left=parseInt(y[0],10):Z.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},Z),O==null?void 0:O.style),S)},[k,y,S,O==null?void 0:O.style]),J=b??(typeof F=="string"||typeof F=="number"?F:void 0),oe=B||!d?null:f__namespace.createElement("span",{className:`${P}-status-text`},d),ue=!F||typeof F!="object"?void 0:In(F,Z=>({style:Object.assign(Object.assign({},G),Z.style)})),me=gu(m,!1),te=H(w==null?void 0:w.indicator,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.indicator,{[`${P}-status-dot`]:j,[`${P}-status-${u}`]:!!u,[`${P}-color-${m}`]:me}),ae={};m&&!me&&(ae.color=m,ae.background=m);const ce=H(P,{[`${P}-status`]:j,[`${P}-not-a-wrapper`]:!c,[`${P}-rtl`]:k==="rtl"},E,$,O==null?void 0:O.className,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.root,w==null?void 0:w.root,T);if(!c&&j){const Z=G.color;return R(f__namespace.createElement("span",Object.assign({},I,{className:ce,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.root),(o=O==null?void 0:O.styles)===null||o===void 0?void 0:o.root),G)}),f__namespace.createElement("span",{className:te,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(a=O==null?void 0:O.styles)===null||a===void 0?void 0:a.indicator),ae)}),d&&f__namespace.createElement("span",{style:{color:Z},className:`${P}-status-text`},d)))}return R(f__namespace.createElement("span",Object.assign({ref:t},I,{className:ce,style:Object.assign(Object.assign({},(i=O==null?void 0:O.styles)===null||i===void 0?void 0:i.root),C==null?void 0:C.root)}),c,f__namespace.createElement(fo,{visible:!B,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},Z=>{let{className:ne,ref:ee}=Z;var de,he;const fe=_("scroll-number",l),Pe=K.current,je=H(w==null?void 0:w.indicator,(de=O==null?void 0:O.classNames)===null||de===void 0?void 0:de.indicator,{[`${P}-dot`]:Pe,[`${P}-count`]:!Pe,[`${P}-count-sm`]:p==="small",[`${P}-multiple-words`]:!Pe&&q&&q.toString().length>1,[`${P}-status-${u}`]:!!u,[`${P}-color-${m}`]:me});let Ae=Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(he=O==null?void 0:O.styles)===null||he===void 0?void 0:he.indicator),G);return m&&!me&&(Ae=Ae||{},Ae.background=m),f__namespace.createElement(ree,{prefixCls:fe,show:!B,motionClassName:ne,className:je,count:q,title:J,style:Ae,key:"scrollNumber",ref:ee},ue)}),oe))},qx=f__namespace.forwardRef(aee);qx.Ribbon=QJ;const iee=qx,Xx=["xxl","xl","lg","md","sm","xs"],see=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)`}),lee=e=>{const t=e,n=[].concat(Xx).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function cee(){const[,e]=nr(),t=see(lee(e));return f.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister();},unregister(){Object.keys(t).forEach(a=>{const i=t[a],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener);}),n.clear();},register(){Object.keys(t).forEach(a=>{const i=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[a]:u}));},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function uee(){const[,e]=f__namespace.useReducer(t=>t+1,0);return e}function Yx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=uee(),r=cee();return qt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const dee=f__namespace.createContext({}),Ym=dee,fee=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:m,borderRadiusLG:h,borderRadiusSM:v,lineWidth:g,lineType:p}=e,b=(y,S,E)=>({width:y,height:y,lineHeight:`${y-g*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:E},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:S,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${g}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(i,c,m)),{"&-lg":Object.assign({},b(s,u,h)),"&-sm":Object.assign({},b(l,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},mee=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}}}},Zx=At("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ut(e,{avatarBg:n,avatarColor:t});return [fee(r),mee(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}});var hee=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vee=(e,t)=>{const[n,r]=f__namespace.useState(1),[o,a]=f__namespace.useState(!1),[i,s]=f__namespace.useState(!0),l=f__namespace.useRef(null),c=f__namespace.useRef(null),u=Rn(t,l),{getPrefixCls:d,avatar:m}=f__namespace.useContext(Ye),h=f__namespace.useContext(Ym),v=()=>{if(!c.current||!l.current)return;const q=c.current.offsetWidth,K=l.current.offsetWidth;if(q!==0&&K!==0){const{gap:G=4}=e;G*2<K&&r(K-G*2<q?(K-G*2)/q:1);}};f__namespace.useEffect(()=>{a(!0);},[]),f__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),f__namespace.useEffect(v,[e.gap]);const g=()=>{const{onError:q}=e;(q==null?void 0:q())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y,src:S,srcSet:E,icon:$,className:w,rootClassName:C,alt:x,draggable:I,children:_,crossOrigin:k}=e,O=hee(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),P=Wn(q=>{var K,G;return (G=(K=y??(h==null?void 0:h.size))!==null&&K!==void 0?K:q)!==null&&G!==void 0?G:"default"}),R=Object.keys(typeof P=="object"?P||{}:{}).some(q=>["xs","sm","md","lg","xl","xxl"].includes(q)),T=Yx(R),N=f__namespace.useMemo(()=>{if(typeof P!="object")return {};const q=Xx.find(G=>T[G]),K=P[q];return K?{width:K,height:K,lineHeight:`${K}px`,fontSize:$?K/2:18}:{}},[T,P]),M=d("avatar",p),[L,j]=Zx(M),z=H({[`${M}-lg`]:P==="large",[`${M}-sm`]:P==="small"}),V=f__namespace.isValidElement(S),B=b||(h==null?void 0:h.shape)||"circle",W=H(M,z,m==null?void 0:m.className,`${M}-${B}`,{[`${M}-image`]:V||S&&i,[`${M}-icon`]:!!$},w,C,j),F=typeof P=="number"?{width:P,height:P,lineHeight:`${P}px`,fontSize:$?P/2:18}:{};let X;if(typeof S=="string"&&i)X=f__namespace.createElement("img",{src:S,draggable:I,srcSet:E,onError:g,alt:x,crossOrigin:k});else if(V)X=S;else if($)X=$;else if(o||n!==1){const q=`scale(${n}) translateX(-50%)`,K={msTransform:q,WebkitTransform:q,transform:q},G=typeof P=="number"?{lineHeight:`${P}px`}:{};X=f__namespace.createElement(_r,{onResize:v},f__namespace.createElement("span",{className:`${M}-string`,ref:c,style:Object.assign(Object.assign({},G),K)},_));}else X=f__namespace.createElement("span",{className:`${M}-string`,style:{opacity:0},ref:c},_);return delete O.onError,delete O.gap,L(f__namespace.createElement("span",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign(Object.assign({},F),N),m==null?void 0:m.style),O.style),className:W,ref:u}),X))},gee=f__namespace.forwardRef(vee),Qx=gee,Ny=e=>{const{size:t,shape:n}=f__namespace.useContext(Ym),r=f__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f__namespace.createElement(Ym.Provider,{value:r},e.children)},pee=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Ye),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:m="hover",children:h}=e,v=t("avatar",r),g=`${v}-group`,[p,b]=Zx(v),y=H(g,{[`${g}-rtl`]:n==="rtl"},o,a,b),S=er(h).map(($,w)=>In($,{key:`avatar-key-${w}`})),E=S.length;if(s&&s<E){const $=S.slice(0,s),w=S.slice(s,E);return $.push(f__namespace.createElement(xu,{key:"avatar-popover-key",content:w,trigger:m,placement:d,overlayClassName:`${g}-popover`},f__namespace.createElement(Qx,{style:l},`+${E-s}`))),p(f__namespace.createElement(Ny,{shape:u,size:c},f__namespace.createElement("div",{className:y,style:i},$)))}return p(f__namespace.createElement(Ny,{shape:u,size:c},f__namespace.createElement("div",{className:y,style:i},S)))},bee=pee,Jx=Qx;Jx.Group=bee;const ky=Jx,ed={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"};function yee(e){const t=f.useRef(null);return t.current||(t.current=e()),t}var Cee=Math.floor,See=Math.random;function $ee(e,t){return e+Cee(See()*(t-e+1))}var wee=$ee,xee=wee;function Eee(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var a=xee(n,o),i=e[a];e[a]=e[n],e[n]=i;}return e.length=t,e}var eE=Eee,Oee=M1,Iee=eE;function Pee(e){return Iee(Oee(e))}var _ee=Pee,Ree=yh;function Tee(e,t){return Ree(t,function(n){return e[n]})}var Mee=Tee,Nee=Mee,kee=xs;function Aee(e){return e==null?[]:Nee(e,kee(e))}var Lee=Aee,Dee=eE,jee=Lee;function zee(e){return Dee(jee(e))}var Bee=zee,Fee=_ee,Hee=Bee,Wee=Nr;function Vee(e){var t=Wee(e)?Fee:Hee;return t(e)}var Uee=Vee;const Zm=Ft(Uee);var Gee=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],tE=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,m=e.onClick,h=e.onChange,v=e.onKeyDown,g=Je(e,Gee),p=Bt(!1,{value:i,defaultValue:s}),b=Q(p,2),y=b[0],S=b[1];function E(x,I){var _=y;return l||(_=x,S(_),h==null||h(_,I)),_}function $(x){x.which===le.LEFT?E(!1,x):x.which===le.RIGHT&&E(!0,x),v==null||v(x);}function w(x){var I=E(!y,x);m==null||m(I,x);}var C=H(o,a,(n={},U(n,"".concat(o,"-checked"),y),U(n,"".concat(o,"-disabled"),l),n));return f__namespace.createElement("button",$e({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:C,ref:t,onKeyDown:$,onClick:w}),c,f__namespace.createElement("span",{className:"".concat(o,"-inner")},f__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},u),f__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});tE.displayName="Switch";const Kee=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s}=e,l=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+r*2}px - ${i*2}px)`,marginInlineEnd:`calc(100% - ${s+r*2}px + ${i*2}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+r*2}px + ${i*2}px)`,marginInlineEnd:`calc(-100% + ${s+r*2}px - ${i*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},qee=e=>{const{componentCls:t,handleSize:n}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Xee=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:a,handleSize:i}=e,s=`${t}-handle`;return {[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${i+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},Yee=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i}=e,s=`${t}-inner`;return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${i+r*2}px - ${a*2}px)`,marginInlineEnd:`calc(100% - ${i+r*2}px + ${a*2}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${i+r*2}px + ${a*2}px)`,marginInlineEnd:`calc(-100% + ${i+r*2}px - ${a*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:r*2,marginInlineEnd:-r*2}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:-r*2,marginInlineEnd:r*2}}}}}},Zee=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),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"}})}},Qee=At("Switch",e=>{const t=ut(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [Zee(t),Yee(t),Xee(t),qee(t),Kee(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,l=a-s*2,c=i-s*2;return {trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Xt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var Jee=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nE=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=Jee(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:m}=f__namespace.useContext(Ye),h=f__namespace.useContext(Xr),v=(o??h)||a,g=u("switch",n),p=f__namespace.createElement("div",{className:`${g}-handle`},a&&f__namespace.createElement(hv,{className:`${g}-loading-icon`})),[b,y]=Qee(g),S=Wn(r),E=H(m==null?void 0:m.className,{[`${g}-small`]:S==="small",[`${g}-loading`]:a,[`${g}-rtl`]:d==="rtl"},i,s,y),$=Object.assign(Object.assign({},m==null?void 0:m.style),l);return b(f__namespace.createElement(Ns,{component:"Switch"},f__namespace.createElement(tE,Object.assign({},c,{prefixCls:g,className:E,style:$,disabled:v,ref:t,loadingIcon:p}))))});nE.__ANT_SWITCH=!0;const rE=nE,_c=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},ete=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t};function tte(e,t,n){const r=f__namespace.useMemo(()=>(e||[]).map(i=>(t&&(i=Object.assign(Object.assign({},i),{key:t(i)})),i)),[e,t]),[o,a]=f__namespace.useMemo(()=>{const i=[],s=new Array((n||[]).length),l=_c(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:i.push(c);}),[i,s]},[r,n,t]);return [r,o,a]}const nte=[];function Oa(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function Ay(e){return Array.from(e).join(";")}function rte(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nte;const[r,o]=f__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[a,i]=f__namespace.useState(()=>Oa(n,r)),[s,l]=f__namespace.useState(()=>Oa(n,o));return f__namespace.useEffect(()=>{i(Oa(n,r)),l(Oa(n,o));},[n]),f__namespace.useEffect(()=>{i(Oa(a,r)),l(Oa(s,o));},[Ay(r),Ay(o)]),[a,s,i,l]}var ote={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 ate=ote;var ite=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:ate}))};const Ly=f__namespace.forwardRef(ite);var ste={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 lte=ste;var cte=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:lte}))};const Dy=f__namespace.forwardRef(cte);var jo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const ute={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 oE=function(e){co(n,e);var t=uo(n);function n(){var r;bn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),r.state={goInputText:""},r.getValidValue=function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)},r.buildOptionText=function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)},r.changeSize=function(s){r.props.changeSize(Number(s));},r.handleChange=function(s){r.setState({goInputText:s.target.value});},r.handleBlur=function(s){var l=r.props,c=l.goButton,u=l.quickGo,d=l.rootPrefixCls,m=r.state.goInputText;c||m===""||(r.setState({goInputText:""}),!(s.relatedTarget&&(s.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||s.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&u(r.getValidValue()));},r.go=function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===jo.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));},r}return yn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,a=o.pageSize,i=o.pageSizeOptions;return i.some(function(s){return s.toString()===a.toString()})?i:i.concat([a.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,a=this.props,i=a.pageSize,s=a.locale,l=a.rootPrefixCls,c=a.changeSize,u=a.quickGo,d=a.goButton,m=a.selectComponentClass,h=a.buildOptionText,v=a.selectPrefixCls,g=a.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=m,S=null,E=null,$=null;if(!c&&!u)return null;var w=this.getPageSizeOptions();if(c&&y){var C=w.map(function(x,I){return f.createElement(y.Option,{key:I,value:x.toString()},(h||o.buildOptionText)(x))});S=f.createElement(y,{disabled:g,prefixCls:v,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||w[0]).toString(),onChange:this.changeSize,getPopupContainer:function(I){return I.parentNode},"aria-label":s.page_size,defaultOpen:!1},C);}return u&&(d&&($=typeof d=="boolean"?f.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:g,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:g,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,$)),f.createElement("li",{className:"".concat(b)},S,E)}}]),n}(f.Component);oE.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ni=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),m=H(d,"".concat(d,"-").concat(o),(n={},U(n,"".concat(d,"-active"),a),U(n,"".concat(d,"-disabled"),!o),U(n,t.className,i),n)),h=function(){l(o);},v=function(b){c(b,l,o);},g=u(o,"page",f.createElement("a",{rel:"nofollow"},o));return g?f.createElement("li",{title:s?o.toString():null,className:m,onClick:h,onKeyPress:v,tabIndex:0},g):null};function Qm(){}function jy(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var dte=function(t,n,r){return r};function yo(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var aE=function(e){co(n,e);var t=uo(n);function n(r){var o;bn(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(yo(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,Y({},o.props))),m},o.isValid=function(c){var u=o.props.total;return jy(c)&&c!==o.state.current&&jy(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===jo.ARROW_UP||c.keyCode===jo.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===jo.ENTER?o.handleChange(u):c.keyCode===jo.ARROW_UP?o.handleChange(u-1):c.keyCode===jo.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=yo(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,v=h.pageSize,g=h.current,p=h.currentInputValue;if(o.isValid(c)&&!d){var b=yo(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,v),y}return g},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.current<yo(void 0,o.state,o.props)},o.runIfEnter=function(c,u){if(c.key==="Enter"||c.charCode===13){for(var d=arguments.length,m=new Array(d>2?d-2:0),h=2;h<d;h++)m[h-2]=arguments[h];u.apply(void 0,m);}},o.runIfEnterPrev=function(c){o.runIfEnter(c,o.prev);},o.runIfEnterNext=function(c){o.runIfEnter(c,o.next);},o.runIfEnterJumpPrev=function(c){o.runIfEnter(c,o.jumpPrev);},o.runIfEnterJumpNext=function(c){o.runIfEnter(c,o.jumpNext);},o.handleGoTO=function(c){(c.keyCode===jo.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);},o.renderPrev=function(c){var u=o.props,d=u.prevIcon,m=u.itemRender,h=m(c,"prev",o.getItemIcon(d,"prev page")),v=!o.hasPrev();return f.isValidElement(h)?f.cloneElement(h,{disabled:v}):h},o.renderNext=function(c){var u=o.props,d=u.nextIcon,m=u.itemRender,h=m(c,"next",o.getItemIcon(d,"next page")),v=!o.hasNext();return f.isValidElement(h)?f.cloneElement(h,{disabled:v}):h};var a=r.onChange!==Qm,i="current"in r;i&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=r.defaultCurrent;"current"in r&&(s=r.current);var l=r.defaultPageSize;return "pageSize"in r&&(l=r.pageSize),s=Math.min(s,yo(l,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:l},o}return yn(n,[{key:"componentDidUpdate",value:function(o,a){var i=this.props.prefixCls;if(a.current!==this.state.current&&this.paginationNode.current){var s=this.paginationNode.current.querySelector(".".concat(i,"-item-").concat(a.current));if(s&&document.activeElement===s){var l;s==null||(l=s.blur)===null||l===void 0||l.call(s);}}}},{key:"getValidValue",value:function(o){var a=o.target.value,i=yo(void 0,this.state,this.props),s=this.state.currentInputValue,l;return a===""?l=a:Number.isNaN(Number(a))?l=s:a>=i?l=i:l=Number(a),l}},{key:"getShowSizeChanger",value:function(){var o=this.props,a=o.showSizeChanger,i=o.total,s=o.totalBoundaryShowSizeChanger;return typeof a<"u"?a:i>s}},{key:"render",value:function(){var o=this.props,a=o.prefixCls,i=o.className,s=o.style,l=o.disabled,c=o.hideOnSinglePage,u=o.total,d=o.locale,m=o.showQuickJumper,h=o.showLessItems,v=o.showTitle,g=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,S=o.jumpPrevIcon,E=o.jumpNextIcon,$=o.selectComponentClass,w=o.selectPrefixCls,C=o.pageSizeOptions,x=this.state,I=x.current,_=x.pageSize,k=x.currentInputValue;if(c===!0&&u<=_)return null;var O=yo(void 0,this.state,this.props),P=[],R=null,T=null,N=null,M=null,L=null,j=m&&m.goButton,z=h?1:2,V=I-1>0?I-1:0,B=I+1<O?I+1:O,W=Xa(this.props,{aria:!0,data:!0}),F=g&&f.createElement("li",{className:"".concat(a,"-total-text")},g(u,[u===0?0:(I-1)*_+1,I*_>u?u:I*_]));if(p){j&&(typeof j=="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},j),L=f.createElement("li",{title:v?"".concat(d.jump_to).concat(I,"/").concat(O):null,className:"".concat(a,"-simple-pager")},L));var X=this.renderPrev(V);return f.createElement("ul",$e({className:H(a,"".concat(a,"-simple"),U({},"".concat(a,"-disabled"),l),i),style:s,ref:this.paginationNode},W),F,X?f.createElement("li",{title:v?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:H("".concat(a,"-prev"),U({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},X):null,f.createElement("li",{title:v?"".concat(I,"/").concat(O):null,className:"".concat(a,"-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(a,"-slash")},"/"),O),f.createElement("li",{title:v?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:H("".concat(a,"-next"),U({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),L)}if(O<=3+z*2){var q={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:v,itemRender:b};O||P.push(f.createElement(Ni,$e({},q,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var K=1;K<=O;K+=1){var G=I===K;P.push(f.createElement(Ni,$e({},q,{key:K,page:K,active:G})));}}else {var J=h?d.prev_3:d.prev_5,oe=h?d.next_3:d.next_5,ue=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),me=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(E,"next page"));y&&(R=ue?f.createElement("li",{title:v?J:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:H("".concat(a,"-jump-prev"),U({},"".concat(a,"-jump-prev-custom-icon"),!!S))},ue):null,T=me?f.createElement("li",{title:v?oe:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:H("".concat(a,"-jump-next"),U({},"".concat(a,"-jump-next-custom-icon"),!!E))},me):null),M=f.createElement(Ni,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:O,page:O,active:!1,showTitle:v,itemRender:b}),N=f.createElement(Ni,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:v,itemRender:b});var te=Math.max(1,I-z),ae=Math.min(I+z,O);I-1<=z&&(ae=1+z*2),O-I<=z&&(te=O-z*2);for(var ce=te;ce<=ae;ce+=1){var Z=I===ce;P.push(f.createElement(Ni,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ce,page:ce,active:Z,showTitle:v,itemRender:b}));}I-1>=z*2&&I!==1+2&&(P[0]=f.cloneElement(P[0],{className:"".concat(a,"-item-after-jump-prev")}),P.unshift(R)),O-I>=z*2&&I!==O-2&&(P[P.length-1]=f.cloneElement(P[P.length-1],{className:"".concat(a,"-item-before-jump-next")}),P.push(T)),te!==1&&P.unshift(N),ae!==O&&P.push(M);}var ne=!this.hasPrev()||!O,ee=!this.hasNext()||!O,de=this.renderPrev(V),he=this.renderNext(B);return f.createElement("ul",$e({className:H(a,i,U({},"".concat(a,"-disabled"),l)),style:s,ref:this.paginationNode},W),F,de?f.createElement("li",{title:v?d.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:H("".concat(a,"-prev"),U({},"".concat(a,"-disabled"),ne)),"aria-disabled":ne},de):null,P,he?f.createElement("li",{title:v?d.next_page:null,onClick:this.next,tabIndex:ee?null:0,onKeyPress:this.runIfEnterNext,className:H("".concat(a,"-next"),U({},"".concat(a,"-disabled"),ee)),"aria-disabled":ee},he):null,f.createElement(oE,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:$,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:_,pageSizeOptions:C,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:j}))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i={};if("current"in o&&(i.current=o.current,o.current!==a.current&&(i.currentInputValue=i.current)),"pageSize"in o&&o.pageSize!==a.pageSize){var s=a.current,l=yo(o.pageSize,a,o);s=s>l?l:s,"current"in o||(i.current=s,i.currentInputValue=s),i.pageSize=o.pageSize;}return i}}]),n}(f.Component);aE.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Qm,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Qm,locale:ute,style:{},itemRender:dte,totalBoundaryShowSizeChanger:50};const iE=e=>f__namespace.createElement(Bs,Object.assign({},e,{showSearch:!0,size:"small"})),sE=e=>f__namespace.createElement(Bs,Object.assign({},e,{showSearch:!0,size:"middle"}));iE.Option=Bs.Option;sE.Option=Bs.Option;const fte=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"}}}}}},mte=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({},wv(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},hte=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"}}}}},vte=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({},Ds(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},gte=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}}}}},pte=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tt(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"}}),gte(e)),vte(e)),hte(e)),mte(e)),fte(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"}}},bte=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}}}}},yte=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}},Qo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Qo(e))}}}},Cte=At("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"},xv(e),Ev(e));return [pte(t),yte(t),e.wireframe&&bte(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 Ste=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $te=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=Ste(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=Yx(c),{getPrefixCls:h,direction:v,pagination:g={}}=f__namespace.useContext(Ye),p=h("pagination",t),[b,y]=Cte(p),S=u??g.showSizeChanger,E=f__namespace.useMemo(()=>{const O=f__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),P=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},v==="rtl"?f__namespace.createElement(Ya,null):f__namespace.createElement(Oc,null)),R=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},v==="rtl"?f__namespace.createElement(Oc,null):f__namespace.createElement(Ya,null)),T=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},v==="rtl"?f__namespace.createElement(Dy,{className:`${p}-item-link-icon`}):f__namespace.createElement(Ly,{className:`${p}-item-link-icon`}),O)),N=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},v==="rtl"?f__namespace.createElement(Ly,{className:`${p}-item-link-icon`}):f__namespace.createElement(Dy,{className:`${p}-item-link-icon`}),O));return {prevIcon:P,nextIcon:R,jumpPrevIcon:T,jumpNextIcon:N}},[v,p]),[$]=vi("Pagination",xC),w=Object.assign(Object.assign({},$),s),C=Wn(i),x=C==="small"||!!(m&&!C&&c),I=h("select",n),_=H({[`${p}-mini`]:x,[`${p}-rtl`]:v==="rtl"},g==null?void 0:g.className,r,o,y),k=Object.assign(Object.assign({},g==null?void 0:g.style),a);return b(f__namespace.createElement(aE,Object.assign({},E,d,{style:k,prefixCls:p,selectPrefixCls:I,className:_,selectComponentClass:l||(x?iE:sE),locale:w,showSizeChanger:S})))},wte=$te;var xte={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 Ete=xte;var Ote=function(t,n){return f__namespace.createElement(Cn,$e({},t,{ref:n,icon:Ete}))};const Ite=f__namespace.forwardRef(Ote);var Pte=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _te={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},Rte=f__namespace.forwardRef((e,t)=>{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:a,disabled:i}=e,s=Pte(e,["style","noStyle","disabled"]);let l={};return a||(l=Object.assign({},_te)),i&&(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}))}),Tte=Rte,Mte=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:s,onRemove:l,showRemove:c}=e,u=H(`${i}-content-item`,{[`${i}-content-item-disabled`]:a||r.disabled,[`${i}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[m]=vi("Transfer",ro.Transfer),h={className:u,title:d},v=f__namespace.createElement("span",{className:`${i}-content-item-text`},n);return c?f__namespace.createElement("li",Object.assign({},h),v,f__namespace.createElement(Tte,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{l==null||l(r);}},f__namespace.createElement(Ite,null))):(h.onClick=a||r.disabled?void 0:()=>s(r),f__namespace.createElement("li",Object.assign({},h),f__namespace.createElement(yu,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),v))},Nte=f__namespace.memo(Mte),kte=["handleFilter","handleClear","checkedKeys"],Ate=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),Lte=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,m]=f__namespace.useState(1),h=f__namespace.useMemo(()=>s?Ate(typeof s=="object"?s:{}):null,[s]),[v,g]=Bt(10,{value:h==null?void 0:h.pageSize});f__namespace.useEffect(()=>{if(h){const C=Math.ceil(r.length/v);m(Math.min(d,C));}},[r,h,v]);const p=C=>{c==null||c(C.key,!o.includes(C.key));},b=C=>{u==null||u([C.key]);},y=C=>{m(C);},S=(C,x)=>{m(C),g(x);},E=f__namespace.useMemo(()=>h?r.slice((d-1)*v,d*v):r,[d,r,h,v]);f__namespace.useImperativeHandle(t,()=>({items:E}));const $=h?f__namespace.createElement(wte,{size:"small",disabled:a,simple:h.simple,pageSize:v,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:S}):null,w=H(`${n}-content`,{[`${n}-content-show-remove`]:i});return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("ul",{className:w,onScroll:l},(E||[]).map(C=>{let{renderedEl:x,renderedText:I,item:_}=C;return f__namespace.createElement(Nte,{key:_.key,item:_,renderedText:I,renderedEl:x,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(_.key),disabled:a||_.disabled})})),$)},Dte=f__namespace.forwardRef(Lte),jte=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,s=f__namespace.useCallback(l=>{a==null||a(l),l.target.value===""&&(i==null||i());},[a]);return f__namespace.createElement(Iw,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:f__namespace.createElement(eg,null)})},lE=jte,zte=()=>null;function Bte(e){return !!(e&&!ao(e)&&Object.prototype.toString.call(e)==="[object Object]")}function ki(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Fte=e=>e!==void 0,Hte=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:a,showSearch:i=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:m,removeAll:h,removeCurrent:v,showSelectAll:g=!0,showRemove:p,pagination:b,direction:y,itemsUnit:S,itemUnit:E,selectAllLabel:$,selectionsIcon:w,footer:C,renderList:x,onItemSelectAll:I,onItemRemove:_,handleFilter:k,handleClear:O,filterOption:P,render:R=zte}=e,[T,N]=f.useState(""),M=f.useRef({}),L=Z=>{N(Z.target.value),k(Z);},j=()=>{N(""),O();},z=(Z,ne)=>P?P(T,ne,y):Z.includes(T),V=Z=>{let ne=x?x(Z):null;const ee=!!ne;return ee||(ne=f.createElement(Dte,Object.assign({ref:M},Z))),{customize:ee,bodyContent:ne}},B=Z=>{const ne=R(Z),ee=Bte(ne);return {item:Z,renderedEl:ee?ne.label:ne,renderedText:ee?ne.value:ne}},W=f.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[F,X]=f.useMemo(()=>{const Z=[],ne=[];return n.forEach(ee=>{const de=B(ee);T&&!z(de.renderedText,ee)||(Z.push(ee),ne.push(de));}),[Z,ne]},[n,T]),q=f.useMemo(()=>{if(o.length===0)return "none";const Z=_c(o);return F.every(ne=>Z.has(ne.key)||!!ne.disabled)?"all":"part"},[o,F]),K=f.useMemo(()=>{const Z=i?f.createElement("div",{className:`${t}-body-search-wrapper`},f.createElement(lE,{prefixCls:`${t}-search`,onChange:L,handleClear:j,placeholder:l,value:T,disabled:a})):null,{customize:ne,bodyContent:ee}=V(Object.assign(Object.assign({},Pn(e,kte)),{filteredItems:F,filteredRenderItems:X,selectedKeys:o}));let de;return ne?de=f.createElement("div",{className:`${t}-body-customize-wrapper`},ee):de=F.length?ee:f.createElement("div",{className:`${t}-body-not-found`},W),f.createElement("div",{className:H(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},Z,de)},[i,t,l,T,a,o,F,X,W]),G=f.createElement(yu,{disabled:n.length===0||a,checked:q==="all",indeterminate:q==="part",className:`${t}-checkbox`,onChange:()=>{I==null||I(F.filter(Z=>!Z.disabled).map(Z=>{let{key:ne}=Z;return ne}),q!=="all");}}),J=(Z,ne)=>{if($)return typeof $=="function"?$({selectedCount:Z,totalCount:ne}):$;const ee=ne>1?S:E;return f.createElement(f.Fragment,null,(Z>0?`${Z}/`:"")+ne," ",ee)},oe=C&&(C.length<2?C(e):C(e,{direction:y})),ue=H(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!oe}),me=oe?f.createElement("div",{className:`${t}-footer`},oe):null,te=!p&&!b&&G;let ae;p?ae=[b?{key:"removeCurrent",label:v,onClick(){var Z;const ne=ki((((Z=M.current)===null||Z===void 0?void 0:Z.items)||[]).map(ee=>ee.item));_==null||_(ne);}}:null,{key:"removeAll",label:h,onClick(){_==null||_(ki(F));}}].filter(Boolean):ae=[{key:"selectAll",label:u,onClick(){const Z=ki(F);I==null||I(Z,Z.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var Z;const ne=((Z=M.current)===null||Z===void 0?void 0:Z.items)||[];I==null||I(ki(ne.map(ee=>ee.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var Z;const ne=ki(b?(((Z=M.current)===null||Z===void 0?void 0:Z.items)||[]).map(he=>he.item):F),ee=new Set(o),de=[];ne.forEach(he=>{ee.has(he)||de.push(he);}),I==null||I(de,"replace");}}];const ce=f.createElement($g,{className:`${t}-header-dropdown`,menu:{items:ae},disabled:a},Fte(w)?w:f.createElement(bv,null));return f.createElement("div",{className:ue,style:s},f.createElement("div",{className:`${t}-header`},g?f.createElement(f.Fragment,null,te,ce):null,f.createElement("span",{className:`${t}-header-selected`},J(o.length,F.length)),f.createElement("span",{className:`${t}-header-title`},r)),K,me)},Jm=Hte,Wte=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:s,className:l,style:c,direction:u,oneWay:d}=e;return f__namespace.createElement("div",{className:l,style:c},f__namespace.createElement(Kt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?f__namespace.createElement(Ya,null):f__namespace.createElement(Oc,null)},a),!d&&f__namespace.createElement(Kt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?f__namespace.createElement(Oc,null):f__namespace.createElement(Ya,null)},o))},cE=Wte,Vte=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=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:`${i}px 0 ${a}px`}},[`${l}[disabled]`]:{backgroundColor:"transparent"}}}},zy=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Ute=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},zy(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},zy(e,e.colorWarning))}},Gte=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:m,listWidthLG:h,fontSizeIcon:v,marginXS:g,paddingSM:p,lineType:b,antCls:y,iconCls:S,motionDurationSlow:E,controlItemBgHover:$,borderRadiusLG:w,colorBgContainer:C,colorText:x,controlItemBgActiveHover:I}=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":{[`${S}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${s-o}px ${p}px ${s}px`,color:x,background:C,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${w}px ${w}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Zo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},oa()),{fontSize:v,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:a,padding:`${l}px ${p}px`,transition:`all ${E}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Zo),{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:$,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:I}},"&-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}`},"&-checkbox":{lineHeight:1}}},Kte=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:a,marginXXS:i,fontSizeIcon:s,fontSize:l,lineHeight:c,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},Tt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:Gte(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${a}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(l*c)}})}},qte=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},Xte=At("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,a=Math.round(t*n),i=ut(e,{transferHeaderVerticalPadding:Math.ceil((o-r-a)/2)});return [Kte(i),Vte(i),Ute(i),qte(i)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,a=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2}}),td=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:a=[],style:i={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:d=!1,operationStyle:m,showSelectAll:h,oneWay:v,pagination:g,status:p,prefixCls:b,className:y,rootClassName:S,selectionsIcon:E,filterOption:$,render:w,footer:C,children:x,rowKey:I,onScroll:_,onChange:k,onSearch:O,onSelectChange:P}=e,{getPrefixCls:R,renderEmpty:T,direction:N,transfer:M}=f.useContext(Ye),L=R("transfer",b),[j,z]=Xte(L),[V,B,W]=tte(t,I,n),[F,X,q,K]=rte(B,W,r),G=f.useCallback((re,ve)=>{if(re==="left"){const pe=typeof ve=="function"?ve(F||[]):ve;q(pe);}else {const pe=typeof ve=="function"?ve(X||[]):ve;K(pe);}},[F,X]),J=f.useCallback((re,ve)=>{re==="left"?P==null||P(ve,X):P==null||P(F,ve);},[F,X]),oe=re=>{var ve;return (ve=c??re.titles)!==null&&ve!==void 0?ve:[]},ue=re=>{_==null||_("left",re);},me=re=>{_==null||_("right",re);},te=re=>{const ve=re==="right"?F:X,pe=ete(V),ye=ve.filter(se=>!pe.has(se)),qe=_c(ye),Ie=re==="right"?ye.concat(n):n.filter(se=>!qe.has(se)),Se=re==="right"?"left":"right";G(Se,[]),J(Se,[]),k==null||k(Ie,re,ye);},ae=()=>{te("left");},ce=()=>{te("right");},Z=(re,ve,pe)=>{G(re,ye=>{let qe=[];if(pe==="replace")qe=ve;else if(pe)qe=Array.from(new Set([].concat(We(ye),We(ve))));else {const Ie=_c(ve);qe=ye.filter(Se=>!Ie.has(Se));}return J(re,qe),qe});},ne=(re,ve)=>{Z("left",re,ve);},ee=(re,ve)=>{Z("right",re,ve);},de=re=>O==null?void 0:O("left",re.target.value),he=re=>O==null?void 0:O("right",re.target.value),fe=()=>O==null?void 0:O("left",""),Pe=()=>O==null?void 0:O("right",""),je=(re,ve,pe)=>{const ye=We(re==="left"?F:X),qe=ye.indexOf(ve);qe>-1&&ye.splice(qe,1),pe&&ye.push(ve),J(re,ye),e.selectedKeys||G(re,ye);},Ae=(re,ve)=>{je("left",re,ve);},be=(re,ve)=>{je("right",re,ve);},Ce=re=>{G("right",[]),k==null||k(n.filter(ve=>!re.includes(ve)),"left",We(re));},Ne=re=>typeof s=="function"?s({direction:re}):s||{},Ve=f.useContext(vr),{hasFeedback:Ue,status:Fe}=Ve,Le=re=>Object.assign(Object.assign(Object.assign({},re),{notFoundContent:(T==null?void 0:T("Transfer"))||f.createElement($w,{componentName:"Transfer"})}),l),at=As(Fe,p),st=!x&&g,_e=X.length>0,Oe=F.length>0,De=H(L,{[`${L}-disabled`]:u,[`${L}-customize-list`]:!!x,[`${L}-rtl`]:N==="rtl"},Rr(L,at,Ue),M==null?void 0:M.className,y,S,z),[yt]=vi("Transfer",ro.Transfer),Me=Le(yt),[gt,Re]=oe(Me);return j(f.createElement("div",{className:De,style:Object.assign(Object.assign({},M==null?void 0:M.style),i)},f.createElement(Jm,Object.assign({prefixCls:`${L}-list`,titleText:gt,dataSource:B,filterOption:$,style:Ne("left"),checkedKeys:F,handleFilter:de,handleClear:fe,onItemSelect:Ae,onItemSelectAll:ne,render:w,showSearch:d,renderList:x,footer:C,onScroll:ue,disabled:u,direction:N==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:st,selectionsIcon:E},Me)),f.createElement(cE,{className:`${L}-operation`,rightActive:Oe,rightArrowText:a[0],moveToRight:ce,leftActive:_e,leftArrowText:a[1],moveToLeft:ae,style:m,disabled:u,direction:N,oneWay:v}),f.createElement(Jm,Object.assign({prefixCls:`${L}-list`,titleText:Re,dataSource:W,filterOption:$,style:Ne("right"),checkedKeys:X,handleFilter:he,handleClear:Pe,onItemSelect:be,onItemSelectAll:ee,onItemRemove:Ce,render:w,showSearch:d,renderList:x,footer:C,onScroll:me,disabled:u,direction:N==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:v,pagination:st,selectionsIcon:E},Me))))};td.List=Jm;td.Search=lE;td.Operation=cE;const Yte=td;function uE(e){return `https://space.bilibili.com/${Ku()}/favlist?fid=${e}`}const La=class La{constructor(){It(this,"useShuffle");It(this,"allFolderServices",[]);It(this,"folderServices",[]);It(this,"bufferQueue",[]);It(this,"total",0);It(this,"returnedItems",[]);It(this,"foldersLoaded",!1);this.useShuffle=$t.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(Jte,{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,La.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(La.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.length<La.PAGE_SIZE){for(;this.folderHasMore&&this.bufferQueue.length<100;){const n=this.folderServices.filter(a=>a.hasMore),r=Zm(n).slice(0,5),o=(await Promise.all(r.map(async a=>await a.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=Zm(this.bufferQueue);}return t()}async getAllFolders(){const r=(await Tn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Ku()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new Zte(o)),this.folderServices=this.allFolderServices.filter(o=>!$t.excludeFavFolderIds.includes(o.entry.id.toString())),this.total=this.folderServices.reduce((o,a)=>o+a.entry.media_count,0);}};It(La,"PAGE_SIZE",20);let us=La;class Zte{constructor(t){It(this,"entry");It(this,"hasMore");It(this,"info");It(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await Tn.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(!la(n)){Ct(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 a;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(a=this.info)==null?void 0:a.id}-${o.bvid}`}})}}var Qte={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function Jte({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=_n(),r=xg(),[o,a]=f.useState(!1),i=nt((u,d,m)=>{a(!0),hr({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=nt(u=>{u?a(!1):o&&(r==null||r());});return ge(Et,{children:[D(xu,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:D(Et,{children:D(Yte,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:ge(Co,{color:"success",css:Qte,children:["收藏夹(",s,") 收藏(",l,")"]})}),D(rE,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{hr({shuffleForFav:u}),setTimeout(()=>{r==null||r();});}})]})}var ene=wh,tne=fg,nne=1,rne=2;function one(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return !a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<a;){s=n[o];var l=s[0],c=e[l],u=s[1];if(i&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new ene;if(r)var m=r(c,u,l,e,t,d);if(!(m===void 0?tne(u,c,nne|rne,r,d):m))return !1}}return !0}var ane=one,ine=qr;function sne(e){return e===e&&!ine(e)}var dE=sne,lne=dE,cne=xs;function une(e){for(var t=cne(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,lne(o)];}return t}var dne=une;function fne(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var fE=fne,mne=ane,hne=dne,vne=fE;function gne(e){var t=hne(e);return t.length==1&&t[0][2]?vne(t[0][0],t[0][1]):function(n){return n===e||mne(n,e,t)}}var pne=gne,bne=iu;function yne(e,t,n){var r=e==null?void 0:bne(e,t);return r===void 0?n:r}var Cne=yne,Sne=fg,$ne=Cne,wne=eC,xne=Dh,Ene=dE,One=fE,Ine=mi,Pne=1,_ne=2;function Rne(e,t){return xne(e)&&Ene(t)?One(Ine(e),t):function(n){var r=$ne(n,e);return r===void 0&&r===t?wne(n,e):Sne(t,r,Pne|_ne)}}var Tne=Rne;function Mne(e){return function(t){return t==null?void 0:t[e]}}var Nne=Mne,kne=iu;function Ane(e){return function(t){return kne(t,e)}}var Lne=Ane,Dne=Nne,jne=Lne,zne=Dh,Bne=mi;function Fne(e){return zne(e)?Dne(Bne(e)):jne(e)}var Hne=Fne,Wne=pne,Vne=Tne,Une=X1,Gne=Nr,Kne=Hne;function qne(e){return typeof e=="function"?e:e==null?Une:typeof e=="object"?Gne(e)?Vne(e[0],e[1]):Wne(e):Kne(e)}var Xne=qne;function Yne(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return -1}var Zne=Yne;function Qne(e){return e!==e}var Jne=Qne;function ere(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}var tre=ere,nre=Zne,rre=Jne,ore=tre;function are(e,t,n){return t===t?ore(e,t,n):nre(e,rre,n)}var ire=are,sre=ire;function lre(e,t){var n=e==null?0:e.length;return !!n&&sre(e,t,0)>-1}var cre=lre;function ure(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}var dre=ure;function fre(){}var mre=fre,xf=j1,hre=mre,vre=dg,gre=1/0,pre=xf&&1/vre(new xf([,-0]))[1]==gre?function(e){return new xf(e)}:hre,bre=pre,yre=cx,Cre=cre,Sre=dre,$re=ux,wre=bre,xre=dg,Ere=200;function Ore(e,t,n){var r=-1,o=Cre,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=Sre;else if(a>=Ere){var c=t?null:wre(e);if(c)return xre(c);i=!1,o=$re,l=new yre;}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,i&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;t&&l.push(d),s.push(u);}else o(l,d,n)||(l!==s&&l.push(d),s.push(u));}return s}var Ire=Ore,Pre=Xne,_re=Ire;function Rre(e,t){return e&&e.length?_re(e,Pre(t)):[]}var Tre=Rre;const nd=Ft(Tre),Dc=class Dc{constructor(){It(this,"page",0);It(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var i,s;const n=++this.page,o=(await Tn.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:Dc.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (i=o.data)!=null&&i.item||Ct(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=nd(r,a=>a.id),r.forEach(a=>{var i,s;((i=a.rcmd_reason)==null?void 0:i.reason_type)===1&&((s=a.rcmd_reason).content||(s.content="已关注"));}),r.map(a=>({...a,uniqId:a.id+"-"+crypto.randomUUID(),api:"pc"}))}};It(Dc,"PAGE_SIZE",14);let ds=Dc;var Mre=V1,Nre=1,kre=4;function Are(e){return Mre(e,Nre|kre)}var Lre=Are;const Dre=Ft(Lre),za=gr({updatedAt:0,bvidSet:Cg()});function jre(e){return pr(za).bvidSet.has(e)}qs()&&setTimeout(()=>{new fs().loadMore();});const Jr=class Jr{constructor(t){It(this,"loaded",!1);It(this,"page",-1);It(this,"hasMore",!0);It(this,"count",0);It(this,"items",[]);It(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await Tn.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(i=>({...i,api:"watchlater",uniqId:`watchlater-${i.bvid}`}));Date.now()>za.updatedAt&&(za.updatedAt=Date.now(),za.bvidSet=Cg(r.map(i=>i.bvid)));const o=sa().subtract(2,"days").unix(),a=r.findIndex(i=>i.add_at<o);if(a!==-1){const i=r.slice(0,a);let s=r.slice(a);this.keepOrder&&Jr.LAST_ITEMS.length?(s=s.map(l=>({item:l,index:Jr.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...i,...s]):$t.shuffleForWatchLater&&(r=[...i,...Zm(s)]);}this.count=n.data.count,this.items=r,Jr.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(zre,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*Jr.PAGE_SIZE,n=t+Jr.PAGE_SIZE,r=Dre(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};It(Jr,"PAGE_SIZE",15),It(Jr,"LAST_ITEMS",[]);let fs=Jr;function zre({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=_n(),o=xg();return ge(Et,{children:[ge(Co,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{Ct(`稍后再看: ${n}`);},children:[e," / 100"]}),D(rE,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:a=>{hr({shuffleForWatchLater:a}),setTimeout(()=>{o==null||o();});}})]})}const wg=f.createContext(void 0);function xg(){return f.useContext(wg)}function mE({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const s=KZ(),l=yee(()=>({})),[c,u]=f.useState(!0),[d,m]=f.useState([]),[h,v]=f.useState(()=>new ds),[g,p]=f.useState(()=>new eh(Br.upMid)),[b,y]=f.useState(()=>new fs),[S,E]=f.useState(()=>new us),[$,w]=f.useState(!1),[C,x,I]=mx(()=>Date.now()),[_,k]=f.useState(s),[O,P]=f.useState(()=>new AbortController),[R,T]=f.useState(!1),[N,M]=f.useState(void 0),L=nt(async(j=!1,z)=>{var ne;const V=performance.now();if($)if(s===_){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",_,s),O.abort();else e("refresh(): [start] tab = %s",s);await(a==null?void 0:a());const B=ee=>{w(ee),i==null||i(ee);};B(!0),x(Date.now()),k(s),m([]),M(void 0),u(!0),await(r==null?void 0:r());let W=[],F;const X=!!(j&&((ne=l.current[s])!=null&&ne.length)),q=!!(X&&($y[s].swr||s==="fav"));T(q);const K=X&&(q||s==="fav"),G=async()=>{try{W=await n(ce);}catch(ee){F=ee;}},J=t?new ds:h;t&&v(J);let oe=g;s==="dynamic-feed"&&(oe=new eh(Br.upMid),p(oe));let ue=b;s==="watchlater"&&(ue=new fs(z==null?void 0:z.watchlaterKeepOrder),y(ue));let me=S;s==="fav"&&(X?me.restore():(me=new us,E(me)));const te=new AbortController,ae=te.signal;P(te);const ce={tab:s,pcRecService:J,dynamicFeedService:oe,watchLaterService:ue,favService:me,abortSignal:ae};if(e("refresh(): shouldReuse=%s swr=%s",X,q),X?(W=l.current[s]||[],m(W),K&&await G()):(l.current[s]=[],await G()),ae.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),F){console.error(F),M(F);return}m(W),$y[s].swr?l.current[s]=W.slice(0,30):l.current[s]=W,s==="dynamic-feed"&&u(oe.hasMore),s==="watchlater"&&u(ue.hasMore),s==="fav"&&u(me.hasMore),await(o==null?void 0:o());const Z=performance.now()-V;e("refresh(): [success] cost %s ms",Z.toFixed(0));});return {items:d,itemsCache:l,setItems:m,error:N,refreshedAt:C,setRefreshedAt:x,getRefreshedAt:I,refreshing:$,setRefreshing:w,refreshFor:_,setRefreshFor:k,refreshAbortController:O,setRefreshAbortController:P,hasMore:c,setHasMore:u,swr:R,setSwr:T,pcRecService:h,dynamicFeedService:g,watchLaterService:b,favService:S,setPcRecService:v,setDynamicFeedService:p,setWatchLaterService:y,setFavService:E,refresh:L}}async function Bre(){const t=(await Tn.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class eh{constructor(t){It(this,"offset","");It(this,"page",0);It(this,"hasMore",!0);It(this,"upMid");this.upMid=t;}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset),this.upMid&&(n.host_mid=this.upMid);const o=(await Tn.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.filter(s=>s.type==="DYNAMIC_TYPE_AV").map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}get usageInfo(){return D(Vre,{})}}It(eh,"PAGE_SIZE",15);const Br=gr({upMid:void 0,upName:void 0,upList:[],upListUpdatedAt:0});async function Fre(e=!1){if(!e&&Br.upList.length&&Br.upListUpdatedAt&&Br.upListUpdatedAt-Date.now()<Yu("5min"))return;const n=await Bre();Br.upList=n,Br.upListUpdatedAt=Date.now();}function hE(e){if(Object.assign(Br,e),e.upMid){const t=Br.upList.find(n=>n.mid===e.upMid);t&&(t.has_update=!1);}}var Hre={name:"dhit8z",styles:"margin-left:15px"},Wre={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function Vre(){const e=xg(),{upName:t,upList:n}=pr(Br);Gs(()=>{Fre();});const r=nt(async i=>{hE(i),await lo(100),e==null||e();}),o=nt(()=>{r({upMid:void 0,upName:void 0});}),a=f.useMemo(()=>{const i={key:"all",icon:D(ky,{size:"small",children:"全"}),label:"全部",onClick:o},s=n.map(l=>{let c=D(ky,{size:"small",src:l.face});return l.has_update&&(c=D(iee,{dot:!0,children:c})),{key:l.mid,icon:c,label:D("span",{title:l.uname,css:Wre,children:l.uname}),onClick(){r({upMid:l.mid,upName:l.uname});}}});return [i,...s]},[n,n.map(i=>!!i.has_update)]);return D("div",{css:Hre,children:ge(js,{children:[D($g,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:D(Kt,{children:t?`UP: ${t}`:"全部"})}),!!t&&ge(Kt,{onClick:o,css:[ed,"",""],children:[D(Rt,{name:"Return",size:14,style:{marginRight:5}}),"清除"]})]})})}const Ef={removeFav:Ure,addFav:qre,getVideoFavState:Gre};async function Ure(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Ks()}),o=(await Tn.post("/x/v3/fav/resource/batch-del",n)).data,a=la(o);return a||Ct(o.message||Zw),a}async function Gre(e){if(!qs())return;const r=(await Tn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Ku(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>uE(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function Kre({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:Ks()}),a=(await Tn.post("/x/v3/fav/resource/deal",r)).data,i=la(a);return i||Ct((a==null?void 0:a.message)||"fav deal api fail"),i}let Of=0,th="";async function qre(e){if(!Of||!th){const t=new us;await t.getAllFolders(),Of=t.folderServices[0].entry.id,th=t.folderServices[0].entry.title;}return await Kre({avid:e,add_media_ids:Of.toString()})}async function vE(e,t){const n=Ku(),r=Ks(),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:Xre()}),csrf:r}),i=(await Tn.post("/x/relation/modify",o)).data,s=la(i);return s||Ct(i.message||"未知错误"),s}function Xre(){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 Yre=pE("follow"),Zre=pE("remove"),gE={add:Yre,remove:Zre},nh=Cg();function Qre(e){const t=pr(nh);return e&&t.has(e)}function pE(e){const t=e==="follow"?5:6;return async function(r){const o=await vE(r,t);return o&&(e==="follow"?nh.add(r):e==="remove"&&nh.delete(r)),o}}const Jre=bE("follow"),eoe=bE("unfollow"),toe={follow:Jre,unfollow:eoe};function bE(e){const t=e==="follow"?1:2;return async function(r){return await vE(r,t)}}function yE(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 noe="_bili-video-card_mnvtu_1",roe="_preview-card-wrapper_mnvtu_4",ooe="_preview-card-inner_mnvtu_17",aoe="_watch-later_mnvtu_21",ioe="_badge_mnvtu_24",soe="_recommend-reason_mnvtu_33",loe="_bangumi-desc_mnvtu_48",coe="_btn-dislike_mnvtu_51",uoe="_btn-dislike-icon_mnvtu_66",doe="_btn-dislike-tip_mnvtu_73",foe="_disliked-wrapper_mnvtu_88",moe="_dislike-content-cover_mnvtu_102",hoe="_dislike-content-cover-inner_mnvtu_108",voe="_dislike-icon_mnvtu_119",goe="_dislike-reason_mnvtu_122",poe="_dislike-desc_mnvtu_126",boe="_dislike-content-action_mnvtu_130",yoe="_skeleton-active_mnvtu_147",Coe="_ant-skeleton-loading_mnvtu_1",Vt={biliVideoCard:noe,previewCardWrapper:roe,previewCardInner:ooe,watchLater:aoe,badge:ioe,recommendReason:soe,bangumiDesc:loe,btnDislike:coe,btnDislikeIcon:uoe,btnDislikeTip:doe,dislikedWrapper:foe,dislikeContentCover:moe,dislikeContentCoverInner:hoe,dislikeIcon:voe,dislikeReason:goe,dislikeDesc:poe,dislikeContentAction:boe,skeletonActive:yoe,antSkeletonLoading:Coe};function Soe(...e){for(const t of e)if(!isNaN(t))return t;return 0}function $oe({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=f.useRef(null),i=lZ(a),[s,l]=f.useState(()=>({width:0,height:0}));Gs(()=>{var m;const d=(m=a.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=Soe(i.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:a,className:H(Vt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&D(woe,{...u})})}function woe({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var $;const a=Math.floor((e||0)*o);let i=f.useMemo(()=>{const w=(t==null?void 0:t.index)||[];let C=Eoe(w,a);return C!==-1?C:a>w[w.length-1]?(C=Math.floor(w.length*o)-1,C<0&&(C=0),C):0},[t,a]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;i=i+1;const m=Math.floor(i/d),h=i-m*d,v=(($=t.image)==null?void 0:$[m])||"",g=Math.floor(h/s)+1,p=h-(g-1)*s,b=n*s,y=r*l,S=(g-1)*r,E=(p-1)*n;return D("div",{className:Vt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${E}px -${S}px`,backgroundSize:`${b}px ${y}px`},children:D(xoe,{progress:o})})}function xoe({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:so,height:"100%",width:`${e*100}%`}})})}function Eoe(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<t?(n=s+1,o=s):r=s-1;}if(o===-1)return -1;const a=e[o],i=e[o+1]??0;return a<t&&t<i?o:-1}const Bi={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},ms={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},Ooe={bangumiFollow:1.3},Ioe=e=>{const t=ms[e]||ms[1];return Bi[t]},Poe=e=>{const t=ms[e];if(t)return Ooe[t]};function By(e){return {iconSvgName:Ioe(e),iconSvgScale:Poe(e)}}var no=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}};no.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";no.TR={};no.S=[11,10,3,8,4,6];no.XOR=177451812;no.ADD=8728348608;(()=>{const e=no.TABEL.length;for(let t=0;t<e;t++)no.TR[no.TABEL[t]]=t;})();var hs=no;hs.av2bv.bind(hs);hs.bv2av.bind(hs);function CE(e,t){const n=e.api==="pc",r=e.api==="app",o=e.api==="dynamic",a=e.api==="watchlater";return e.api,n?t.pc(e):r?t.app(e):o?t.dynamic(e):a?t.watchlater(e):t.fav(e)}function SE(e){return CE(e,{pc:_oe,app:Roe,dynamic:Toe,watchlater:Moe,fav:Noe})}function _oe(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Io(e.pubdate),duration:e.duration,durationStr:Xu(e.duration),recommendReason:(t=e.rcmd_reason)==null?void 0:t.content,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 Roe(e){var a,i,s;const t=l=>{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:m}=e;if(c&&ms[c]===l)return Ec(u);if(d&&ms[d]===l)return Ec(m)},n=e.param,r=hs.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(`[${gn}]: 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:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:Xu((i=e.player_args)==null?void 0:i.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 Toe(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=sa().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:Io(a)})();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:BZ(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:Ec(t.stat.play),danmaku:Ec(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function Moe(e){const t=WZ(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(cg,{title:ge(Et,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:ge("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:Io(e.pubdate),pubdateDisplayTitle:`${Io(e.pubdate,!0)} 发布, ${Io(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:Xu(e.duration),recommendReason:`${Io(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 Noe(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:ge(Et,{children:["【",D(Rt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",so],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:Io(e.pubtime),duration:e.duration,durationStr:Xu(e.duration),recommendReason:`${Io(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 koe=e=>(e||"").replace(/^http:\/\//,"https://");function Fy(e){GM.setClipboard(e),Ct(`已复制: ${e}`);}const $E=yE(),Aoe="--video-card-border-radius",wE=`var(${Aoe})`,xE={borderRadius:wE},Rc=f.memo(function({style:t,className:n,item:r,loading:o,active:a,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l,emitter:c,...u}){o=o??!r;const d=ge("div",{className:H("bili-video-card__skeleton",{hide:!o,[Vt.skeletonActive]:o}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:xE}),D("div",{className:"bili-video-card__skeleton--info",children:ge("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"})]})})]}),m=rJ((r==null?void 0:r.api)==="app"&&r.param),h=f.useMemo(()=>r&&SE(r),[r]),v=Qre(h==null?void 0:h.authorMid);return ge("div",{style:t,className:H("bili-video-card",Vt.biliVideoCard,n),...u,children:[d,!o&&r&&h&&(m?D(Loe,{item:r,emitter:c,dislikedReason:m}):v?D(Doe,{cardData:h}):D(joe,{item:r,cardData:h,active:a,emitter:c,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l}))]})}),Loe=f.memo(function({dislikedReason:t,item:n,emitter:r=$E}){const o=nt(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await KQ(n,t.id);}catch(s){i=s;}if(i)return console.error(i.stack||i),Qw();a?Ct("已撤销"):Jw(),a&&Ju.delete(n.param);});return Ra(r,"cancel-dislike",o),ge("div",{className:H(Vt.dislikedWrapper),children:[D("div",{className:Vt.dislikeContentCover,children:ge("div",{className:Vt.dislikeContentCoverInner,children:[D(Rt,{name:"DistraughtFace",size:32,className:Vt.dislikeIcon}),D("div",{className:Vt.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:Vt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:Vt.dislikeContentAction,children:ge("button",{onClick:o,children:[D(Rt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),Doe=f.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=nt(async()=>{if(!n)return;await gE.remove(n)&&Ct(`已移出黑名单: ${o}`);});return ge("div",{className:H(Vt.dislikedWrapper),children:[D("div",{className:Vt.dislikeContentCover,children:ge("div",{className:Vt.dislikeContentCoverInner,children:[D(Rt,{name:"PeopleDelete",size:32,className:Vt.dislikeIcon}),D("div",{className:Vt.dislikeReason,children:"已拉黑"}),ge("div",{className:Vt.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:Vt.dislikeContentAction,children:ge("button",{onClick:a,children:[D(Rt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),joe=f.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:s=$E}){var ye,qe;const l=t.api==="pc",c=t.api==="app";t.api,t.api,t.api;const{avid:u,bvid:d,goto:m,href:h,title:v,titleRender:g,coverRaw:p,pubdateDisplay:b,pubdateDisplayTitle:y,duration:S,durationStr:E,recommendReason:$,invalidReason:w,play:C,like:x,coin:I,danmaku:_,favorite:k,authorName:O,authorFace:P,authorMid:R,appBadge:T,appBadgeDesc:N}=n,M=m==="av";["av","bangumi","picture"].includes(m)||console.warn(`[${gn}]: none (av,bangumi,picture) goto type %s`,m,t);const L=f.useMemo(()=>koe(p),[p]),[j,z]=f.useState(null),V=f.useRef(!1),B=nt(async()=>{if(!j&&!V.current)try{V.current=!0,z(await UQ(u));}finally{V.current=!1;}}),W=f.useRef(null),[F,X]=f.useState(void 0);_o("mouseenter",Ie=>{var we;const Se=(we=W.current)==null?void 0:we.getBoundingClientRect();if(!Se)return;const{x:se}=Se,xe=Ie.pageX-window.pageXOffset-se;X(xe);},{target:W});const q=bf(W),{autoPreviewWhenHover:K}=_n(),{onStartPreviewAnimation:G,onHotkeyPreviewAnimation:J,previewAnimationProgress:oe}=zoe({bvid:d,title:v,autoPreviewWhenHover:K,active:r,tryFetchVideoData:B,videoPreviewWrapperRef:W});$c(()=>{if(r){try{unsafeWindow[`${A4}_activeItem`]=t;}catch(Ie){console.warn("set unsafeWindow activeItem error"),console.warn(Ie.stack||Ie);}$t.autoPreviewWhenKeyboardSelect&&G();}},[r]);const ue=f.useRef(null),me=bf(ue),te=jre(d),{accessKey:ae}=_n(),ce=!!ae;f.useEffect(()=>{q&&B();},[q]);const Z=f.useRef(!1),ne=nt(async(Ie,Se)=>{if(Ie==null||Ie.preventDefault(),Se??(Se=te?Ey:wl),Se!==wl&&Se!==Ey)throw new Error("unexpected usingAction provided");if(Z.current)return;Z.current=!0;let se=!1;try{se=await Se(u);}finally{Z.current=!1;}if(se){const xe=Se===wl;xe?za.bvidSet.add(d):za.bvidSet.delete(d),t.api==="watchlater"&&xe===!1&&(await lo(100),o==null||o(t,n));}return se}),ee=f.useRef(null),de=bf(ee),he=nt(Ie=>{if(Ie==null||Ie.stopPropagation(),Ie==null||Ie.preventDefault(),!at)return t.api!=="app"?Ct("当前视频不支持提交「我不想看」"):ce?void 0:Ct("请先获取 access_key");sJ(t);}),fe=f.useMemo(()=>yf(C),[C]),Pe=f.useMemo(()=>yf(x),[x]),je=f.useMemo(()=>yf(k),[k]),Ae=l?Pe:je,be=({text:Ie,iconSvgName:Se,iconSvgScale:se})=>ge("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:se?`scale(${se})`:void 0},children:D("use",{href:Se})}),D("span",{className:"bili-video-card__stats--text",children:Ie})]}),[Ce,Ne]=f.useState(void 0),[Ve,Ue]=f.useState(void 0),Fe=nt(async()=>{if(t.api!=="watchlater")return;const Ie=await Ef.getVideoFavState(u);if(Ie){const{favFolderNames:Se,favFolderUrls:se}=Ie;Ne(Se),Ue(se);}}),Le=nt(()=>{window.open(h,"_blank");});Ra(s,"open",Le),Ra(s,"toggle-watch-later",()=>ne()),Ra(s,"trigger-dislike",()=>he()),Ra(s,"start-preview-animation",G),Ra(s,"hotkey-preview-animation",J);const at=c&&ce&&!!((qe=(ye=t.three_point)==null?void 0:ye.dislike_reasons)!=null&&qe.length),st=nt(()=>{let Ie=h;h.startsWith("/")&&(Ie=new URL(h,location.href).href),Fy(Ie);}),_e=nt(()=>{let Ie=h;t.api==="watchlater"&&(Ie=`/video/${t.bvid}`);const Se=new URL(Ie,location.href).href,se=`iina://open?url=${encodeURIComponent(Se)}`;window.open(se,"_self");}),Oe=Ys(),De=Oe==="recommend-app"||Oe==="recommend-pc",yt=nt(async()=>{if(!R)return Ct("UP mid 为空!");await gE.add(R)&&Ct(`已加入黑名单: ${O}`);}),Me=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&$==="已关注",gt=nt(async()=>{if(!R)return;await toe.unfollow(R)&&Ct("已取消关注");}),Re=t.api==="dynamic"&&!!i,re=nt(async()=>{!R||!O||(hE({upMid:Number(R),upName:O}),await lo(100),await(i==null?void 0:i()));}),ve=f.useMemo(()=>{const Ie=te?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(Rt,{name:"EfferentFour",size:15}),onClick:Le},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(Rt,{name:"Copy",size:15}),onClick:st},{key:"copy-bvid",label:"复制 BVID",icon:D(Rt,{name:"Copy",size:15}),onClick(){Fy(d);}},{type:"divider"},at&&{key:"dislike",label:"我不想看",icon:D(Rt,{name:"DislikeTwo",size:15}),onClick(){he();}},Re&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:D(Rt,{name:"PeopleSearch",size:15}),onClick:re},Me&&{key:"unfollow-up",label:"取消关注",icon:D(Rt,{name:"PeopleMinus",size:15}),onClick:gt},De&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(Rt,{name:"PeopleDelete",size:15}),onClick:yt},t.api==="watchlater"&&{key:"add-fav",icon:D(Rt,{name:"Star",size:15,...Ce!=null&&Ce.length?{theme:"two-tone",fill:["currentColor",so]}:void 0}),label:Ce!=null&&Ce.length?`已收藏 ${Ce.map(Se=>`「${Se}」`).join("")}`:"快速收藏",async onClick(){!!(Ce!=null&&Ce.length)?Ve==null||Ve.forEach(se=>{window.open(se,"_blank");}):await Ef.addFav(u)&&Ct(`已加入收藏夹「${th}」`);}},{key:"watchlater",label:Ie,icon:D(Rt,{name:te?"Delete":"FileCabinet",size:15}),onClick(){ne();}},t.api==="watchlater"&&te&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(Rt,{name:"AddTwo",size:15}),async onClick(){await ne(void 0,wl)&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(Rt,{name:"EfferentFour",size:15}),onClick(){const{id:Se}=t.folder,se=uE(Se);window.open(se,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(Rt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await Ef.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...bq?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(Rt,{name:"PlayTwo",size:15}),onClick:_e}]:[]].filter(Boolean)},[t,te,at,Me,De,Re,Ce,Ve]),pe=nt(Ie=>{Ie&&Fe();});return ge("div",{className:"bili-video-card__wrap __scale-wrap",children:[D($g,{menu:{items:ve},trigger:["contextMenu"],onOpenChange:pe,children:D("a",{href:h,target:"_blank",children:ge("div",{className:"bili-video-card__image __scale-player-wrap",ref:W,style:{...xE,aspectRatio:"16 / 9"},children:[ge("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[ge("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!sg&&D("source",{srcSet:`${L}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${L}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${L}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(q||typeof oe=="number")&&D($oe,{videoDuration:S,pvideo:j==null?void 0:j.pvideoData,mouseEnterRelativeX:F,previewAnimationProgress:oe}),ge("div",{className:`bili-watch-later ${Vt.watchLater}`,style:{display:q||r?"flex":"none"},ref:ue,onClick:ne,children:[D("svg",{className:"bili-watch-later__icon",children:D("use",{href:te?"#widget-watch-save":"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:me?"block":"none"},children:te?"移除稍后再看":"稍后再看"})]}),at&&ge("div",{ref:ee,className:Vt.btnDislike,onClick:he,style:{display:q?"flex":"none"},children:[D("svg",{className:Vt.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:Vt.btnDislikeTip,style:{display:de?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:ge("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:l?ge(Et,{children:[be({text:fe,iconSvgName:Bi.play}),be({text:m==="av"?Pe:Ae,iconSvgName:Bi.like})]}):c?ge(Et,{children:[!!t.cover_left_text_1&&be({...By(t.cover_left_icon_1),text:t.cover_left_text_1}),!!t.cover_left_text_2&&be({...By(t.cover_left_icon_2),text:t.cover_left_text_2})]}):ge(Et,{children:[be({text:fe,iconSvgName:Bi.play}),be({text:(_||0).toString(),iconSvgName:Bi.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:M&&E})]})})]})})}),D("div",{className:"bili-video-card__info __scale-disable",children:ge("div",{className:"bili-video-card__info--right",children:[D("a",{href:h,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:D("h3",{className:"bili-video-card__info--tit",title:v,children:g??v})}),D("p",{className:"bili-video-card__info--bottom",children:M?ge("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${R}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${O} ${y||b}`,children:[$?D("span",{className:Vt.recommendReason,children:$}):D("svg",{className:"bili-video-card__info--owner__up",children:D("use",{href:"#widget-up"})}),D("span",{className:"bili-video-card__info--author",children:O}),b&&ge("span",{className:"bili-video-card__info--date",children:["· ",b]})]}):T||N?ge("a",{className:"bili-video-card__info--owner",href:h,target:"_blank",children:[D("span",{className:Vt.badge,children:T||""}),D("span",{className:Vt.bangumiDesc,children:N||""})]}):null})]})})]})});function zoe({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[s,l]=vx(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),m=f.useRef(!1);_o("mouseenter",x=>{d.current=!0,n&&!v.current&&C(!0);},{target:a}),_o("mouseleave",x=>{d.current=!1;},{target:a}),_o("mousemove",x=>{u(!0),n||p();},{target:a});const h=uZ(),v=f.useRef(void 0),g=nt(()=>{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=nt((x=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,l(void 0),y(!1);}),[b,y,S]=mx(!1),E=f.useRef(),$=nt(()=>{var x;if(!v.current){C();return}y(I=>!I),b&&((x=E.current)==null||x.call(E,s||0));}),w=nt(()=>s||0),C=nt((x=!1)=>{m.current=x,u(!1),y(!1),o(),p(!0),l(R=>typeof R>"u"?0:R);const I=8e3,_=()=>typeof $t.autoPreviewUpdateInterval=="number"?$t.autoPreviewUpdateInterval:400;let k=performance.now(),O=0;E.current=()=>{k=performance.now()-w()*I;};function P(R){if(g()){p();return}const T=()=>{const N=performance.now()-k,M=Math.min(N%I/I,1);l(M);};S()||(_()?(!O||performance.now()-O>=_())&&(O=performance.now(),T()):T()),v.current=requestAnimationFrame(P);}v.current=requestAnimationFrame(P);});return {onHotkeyPreviewAnimation:$,onStartPreviewAnimation:C,previewAnimationProgress:s}}const Boe=()=>document.querySelector(".bili-header__bar");function Foe(){const e=Boe();return !!(e&&window.getComputedStyle(e).display==="none")}function rh(){if(!Foe())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 Tc=gr({value:rh()});function Hoe(){return pr(Tc).value}function EE(){return Tc.value}setTimeout(()=>{Tc.value=rh();const e=new MutationObserver(()=>{Tc.value=rh();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const Eg="_video-grid_t2sr7_9",OE="_video-grid-new-homepage_t2sr7_17",Woe="_limit-two-lines_t2sr7_20",IE="_video-grid-internal-testing_t2sr7_52";const Hy="_video-grid-container_t2sr7_80",Voe="_video-grid-youtube-like_t2sr7_84",Uoe="_narrow-mode_t2sr7_112";function Goe({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:s}){const[l,c]=f.useState(void 0),u=nt(()=>!(!e||qu())),d=nt(()=>{var C;if(typeof l!="number"||!o.current)return !1;const $=a(),w=(C=o.current.querySelector(`.${Fa.card}.${Fa.cardActive}`))==null?void 0:C.getBoundingClientRect();return !(!$||!w||w.top-$.top<-($.height+w.height)||w.top-$.top>$.height*2+w.height)}),m=$=>w=>{if(!u())return;w==null||w.preventDefault();let C=typeof $=="number"?$:$();const x=d()?l+C:p();if(x<n){E(n);return}if(x>r){E(r);return}c(x),E(x);};nn("leftarrow",m(-1),{exactMatch:!0}),nn("rightarrow",m(1),{exactMatch:!0}),nn("tab",m(1),{exactMatch:!0}),nn("shift.tab",m(-1),{exactMatch:!0});const h=()=>Og(o.current);nn("uparrow",m(()=>-h()),{exactMatch:!0}),nn("downarrow",m(h),{exactMatch:!0});const v=()=>{u()&&c(void 0);},g=()=>{if(!(!u()||typeof l!="number"))return s[l]};nn("esc",v),nn("enter",()=>{var $;!u()||typeof l!="number"||($=g())==null||$.emit("open");}),nn("backspace",()=>{var $;!u()||typeof l!="number"||($=g())==null||$.emit("trigger-dislike");}),nn(["s","w"],()=>{var $;!u()||typeof l!="number"||($=g())==null||$.emit("toggle-watch-later");},{exactMatch:!0}),nn(["period","p"],()=>{var $;!u()||typeof l!="number"||($=g())==null||$.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const $=a();if(!$)return 0;const w=y();for(let C=0;C<w.length;C++)if(w[C].getBoundingClientRect().top>=$.top)return C;return 0}const b=`.${Fa.card}`;function y(){var $;return [...(($=o.current)==null?void 0:$.querySelectorAll(b))||[]]}function S($){return y()[$]}function E($){var I;const w=S($);(I=w==null?void 0:w.scrollIntoViewIfNeeded)==null||I.call(w,!1);const C=a(),x=w.getBoundingClientRect();if(!(!C||!x)){if(x.top<=C.top){const _=-(C.top-x.top+10);i==null||i({offset:_});return}if(C.bottom-x.bottom<10){const _=10-(C.bottom-x.bottom);i==null||i({offset:_});return}}}return {activeIndex:l,clearActiveIndex:v}}const Koe=new Map,qoe=new Map;function Og(e,t=!0){if(t&&$t.useNarrowMode)return 2;const n=$t.styleUseYoutubeLikeCard?Koe:qoe;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${Eg}`)),!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 PE(e){return e==="keep-follow-only"||$t.filterMinDurationEnabled||$t.filterMinPlayCountEnabled||$t.filterOutGotoTypePicture}function _E(e,t){return PE(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:a,goto:i}=SE(n),s=a==="已关注"||(a==null?void 0:a.includes("关注"));if(t==="keep-follow-only"&&!s)return !1;const l=i==="av",c=i==="picture";if(l)return u();if(c)return d();return !0;function u(){return s&&!$t.enableFilterForFollowedVideo?!0:!($t.filterMinPlayCountEnabled&&$t.filterMinPlayCount&&typeof r=="number"&&r<$t.filterMinPlayCount||$t.filterMinDurationEnabled&&$t.filterMinDuration&&o&&o<$t.filterMinDuration)}function d(){return $t.filterOutGotoTypePicture?!!(s&&!$t.enableFilterForFollowedPicture):!0}}):e}var rd={exports:{}},Ig={exports:{}},RE={exports:{}},rn=RE.exports={},Lr,Dr;function oh(){throw new Error("setTimeout has not been defined")}function ah(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Lr=setTimeout:Lr=oh;}catch{Lr=oh;}try{typeof clearTimeout=="function"?Dr=clearTimeout:Dr=ah;}catch{Dr=ah;}})();function TE(e){if(Lr===setTimeout)return setTimeout(e,0);if((Lr===oh||!Lr)&&setTimeout)return Lr=setTimeout,setTimeout(e,0);try{return Lr(e,0)}catch{try{return Lr.call(null,e,0)}catch{return Lr.call(this,e,0)}}}function Xoe(e){if(Dr===clearTimeout)return clearTimeout(e);if((Dr===ah||!Dr)&&clearTimeout)return Dr=clearTimeout,clearTimeout(e);try{return Dr(e)}catch{try{return Dr.call(null,e)}catch{return Dr.call(this,e)}}}var to=[],Ba=!1,Vo,Gl=-1;function Yoe(){!Ba||!Vo||(Ba=!1,Vo.length?to=Vo.concat(to):Gl=-1,to.length&&ME());}function ME(){if(!Ba){var e=TE(Yoe);Ba=!0;for(var t=to.length;t;){for(Vo=to,to=[];++Gl<t;)Vo&&Vo[Gl].run();Gl=-1,t=to.length;}Vo=null,Ba=!1,Xoe(e);}}rn.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];to.push(new NE(e,t)),to.length===1&&!Ba&&TE(ME);};function NE(e,t){this.fun=e,this.array=t;}NE.prototype.run=function(){this.fun.apply(null,this.array);};rn.title="browser";rn.browser=!0;rn.env={};rn.argv=[];rn.version="";rn.versions={};function mo(){}rn.on=mo;rn.addListener=mo;rn.once=mo;rn.off=mo;rn.removeListener=mo;rn.removeAllListeners=mo;rn.emit=mo;rn.prependListener=mo;rn.prependOnceListener=mo;rn.listeners=function(e){return []};rn.binding=function(e){throw new Error("process.binding is not supported")};rn.cwd=function(){return "/"};rn.chdir=function(e){throw new Error("process.chdir is not supported")};rn.umask=function(){return 0};var Zoe=RE.exports;const If=Ft(Zoe);var ih;typeof Object.create=="function"?ih=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:ih=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const kE=ih;var Qoe=/%[sdj%]/g;function ri(e){if(!Js(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Gr(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(Qoe,function(s){if(s==="%%")return "%";if(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}}),i=r[n];n<o;i=r[++n])Qs(i)||!ca(i)?a+=" "+i:a+=" "+Gr(i);return a}function Pg(e,t){if(Hr(global.process))return function(){return Pg(e,t).apply(this,arguments)};if(If.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(If.throwDeprecation)throw new Error(t);If.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var xl={},Pf;function AE(e){if(Hr(Pf)&&(Pf={}.NODE_DEBUG||""),e=e.toUpperCase(),!xl[e])if(new RegExp("\\b"+e+"\\b","i").test(Pf)){var t=0;xl[e]=function(){var n=ri.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else xl[e]=function(){};return xl[e]}function Gr(e,t){var n={seen:[],stylize:eae};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),od(t)?n.showHidden=t:t&&Mg(n,t),Hr(n.showHidden)&&(n.showHidden=!1),Hr(n.depth)&&(n.depth=2),Hr(n.colors)&&(n.colors=!1),Hr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Joe),Mc(n,e,n.depth)}Gr.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]};Gr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Joe(e,t){var n=Gr.styles[t];return n?"\x1B["+Gr.colors[n][0]+"m"+e+"\x1B["+Gr.colors[n][1]+"m":e}function eae(e,t){return e}function tae(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Mc(e,t,n){if(e.customInspect&&t&&Zi(t.inspect)&&t.inspect!==Gr&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return Js(r)||(r=Mc(e,r,n)),r}var o=nae(e,t);if(o)return o;var a=Object.keys(t),i=tae(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Yi(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return _f(t);if(a.length===0){if(Zi(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Xi(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Nc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Yi(t))return _f(t)}var l="",c=!1,u=["{","}"];if(_g(t)&&(c=!0,u=["[","]"]),Zi(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Xi(t)&&(l=" "+RegExp.prototype.toString.call(t)),Nc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Yi(t)&&(l=" "+_f(t)),a.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return Xi(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=rae(e,t,n,i,a):m=a.map(function(h){return sh(e,t,n,i,h,c)}),e.seen.pop(),oae(m,l,u)}function nae(e,t){if(Hr(t))return e.stylize("undefined","undefined");if(Js(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Rg(t))return e.stylize(""+t,"number");if(od(t))return e.stylize(""+t,"boolean");if(Qs(t))return e.stylize("null","null")}function _f(e){return "["+Error.prototype.toString.call(e)+"]"}function rae(e,t,n,r,o){for(var a=[],i=0,s=t.length;i<s;++i)FE(t,String(i))?a.push(sh(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(l){l.match(/^\d+$/)||a.push(sh(e,t,n,r,l,!0));}),a}function sh(e,t,n,r,o,a){var i,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),FE(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Qs(n)?s=Mc(e,l.value,null):s=Mc(e,l.value,n-1),s.indexOf(`
`)>-1&&(a?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")),Hr(i)){if(a&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"));}return i+": "+s}function oae(e,t,n){var r=e.reduce(function(o,a){return a.indexOf(`
`)>=0,o+a.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 _g(e){return Array.isArray(e)}function od(e){return typeof e=="boolean"}function Qs(e){return e===null}function LE(e){return e==null}function Rg(e){return typeof e=="number"}function Js(e){return typeof e=="string"}function DE(e){return typeof e=="symbol"}function Hr(e){return e===void 0}function Xi(e){return ca(e)&&Tg(e)==="[object RegExp]"}function ca(e){return typeof e=="object"&&e!==null}function Nc(e){return ca(e)&&Tg(e)==="[object Date]"}function Yi(e){return ca(e)&&(Tg(e)==="[object Error]"||e instanceof Error)}function Zi(e){return typeof e=="function"}function jE(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function zE(e){return Buffer.isBuffer(e)}function Tg(e){return Object.prototype.toString.call(e)}function Rf(e){return e<10?"0"+e.toString(10):e.toString(10)}var aae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function iae(){var e=new Date,t=[Rf(e.getHours()),Rf(e.getMinutes()),Rf(e.getSeconds())].join(":");return [e.getDate(),aae[e.getMonth()],t].join(" ")}function BE(){console.log("%s - %s",iae(),ri.apply(null,arguments));}function Mg(e,t){if(!t||!ca(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function FE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const sae={inherits:kE,_extend:Mg,log:BE,isBuffer:zE,isPrimitive:jE,isFunction:Zi,isError:Yi,isDate:Nc,isObject:ca,isRegExp:Xi,isUndefined:Hr,isSymbol:DE,isString:Js,isNumber:Rg,isNullOrUndefined:LE,isNull:Qs,isBoolean:od,isArray:_g,inspect:Gr,deprecate:Pg,format:ri,debuglog:AE},lae=Object.freeze(Object.defineProperty({__proto__:null,_extend:Mg,debuglog:AE,default:sae,deprecate:Pg,format:ri,inherits:kE,inspect:Gr,isArray:_g,isBoolean:od,isBuffer:zE,isDate:Nc,isError:Yi,isFunction:Zi,isNull:Qs,isNullOrUndefined:LE,isNumber:Rg,isObject:ca,isPrimitive:jE,isRegExp:Xi,isString:Js,isSymbol:DE,isUndefined:Hr,log:BE},Symbol.toStringTag,{value:"Module"})),cae=a2(lae);var uae=cae.format;function dae(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function fae(e,t){return function(){var n=this,r=[].slice.call(arguments);dae();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var s=setTimeout(function(){var l=new HE(t);i(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),a(l);},function(l){clearTimeout(s),i(l);});})}}let HE=class WE extends Error{constructor(t){super(),this.timeout=t,this.message=uae("timeout of %sms exceed",t),Error.captureStackTrace(this,WE);}};Ig.exports=fae;Ig.exports.TimeoutError=HE;var mae=Ig.exports;const VE=mae,hae=VE.TimeoutError;rd.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=VE(t,a));const i=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u<o;u++){let d,m;try{d=await t.apply(s,l);}catch(h){m=h;}if(!m)return d;if(m instanceof TypeError)throw m;if(m instanceof vae)throw m.originalError;c[u]=m,i&&i(m,u);}throw new UE({times:o,timeout:a,fn:r,errors:c})}};class UE extends Error{constructor(t){super(),this.times=t.times,this.timeout=t.timeout,this.fn=t.fn,this.errors=t.errors,this.name="RetryError",this.message=`tried function ${this.fn.name||"<anonymous>"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class vae 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 gae=rd.exports.RetryError=UE;rd.exports.TimeoutError=hae;var pae=rd.exports;const bae=Ft(pae);class Ng extends Error{constructor(n){super();It(this,"json");Error.captureStackTrace(this,Ng),this.json=n,this.message=n.message||JSON.stringify(n);}}async function yae(){var r;const t=(await Zu.get(nC+"/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 Ng(t);return Ct(`${gn}: 未知错误, 请联系开发者
code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const Cae=bae(yae,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",gn,t,e);}});async function Sae(){try{return await Cae()}catch(e){if(e instanceof gae){console.error(e.errors);const t=[ri("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>ri(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);Ct(t,5e3);}throw e}}class kc{constructor(){It(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(()=>Sae()))).flat();})(),n=nd(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}It(kc,"PAGE_SIZE",10);const El=hi.extend("service"),Kl=e=>CE(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 $ae(e,t){const n=e.map(Kl);return t=nd(t,Kl),e.concat(t.filter(r=>!n.includes(Kl(r))))}const lh=e=>e==="keep-follow-only"||e==="recommend-pc";async function GE(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:a,favService:i,tab:s,abortSignal:l}=t,c=new kc;let u=[],d=!0;const m=async h=>{let v=[];if(s==="dynamic-feed"){v=await o.loadMore(l)||[],d=o.hasMore,u=u.concat(v);return}if(s==="watchlater"){v=await a.loadMore()||[],d=a.hasMore,u=u.concat(v);return}if(s==="fav"){v=await i.loadMore()||[],d=i.hasMore,u=u.concat(v);return}let g;if(s==="keep-follow-only")g=8,El("getMinCount: addMore(restCount = %s) times=%s",h,g);else {const p=lh(s)?ds.PAGE_SIZE:kc.PAGE_SIZE,b=PE(s)?n:1.2;g=Math.ceil(h*b/p),El("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",h,b,p,g);}v=lh(s)?await r.getRecommendTimes(g,l):await c.getRecommendTimes(g),v=_E(v,s),u=u.concat(v),u=nd(u,Kl);};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 wae(e){let t=await GE(Og(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function xae(e){return GE(Og()*3+1,e,5)}async function Eae(e,t,n){let r=lh(t)?await n.getRecommendTimes(e):await new kc().getRecommendTimes(e);return r=_E(r,t),r}var ch=new Map,Ol=new WeakMap,Wy=0,Oae=void 0;function Iae(e){return e?(Ol.has(e)||(Wy+=1,Ol.set(e,Wy.toString())),Ol.get(e)):"0"}function Pae(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Iae(e.root):e[t]}`).toString()}function _ae(e){let t=Pae(e),n=ch.get(t);if(!n){const r=new Map;let o;const a=new IntersectionObserver(i=>{i.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=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},ch.set(t,n);}return n}function Rae(e,t,n={},r=Oae){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:a,elements:i}=_ae(n);let s=i.get(e)||[];return i.has(e)||i.set(e,s),s.push(t),a.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(i.delete(e),a.unobserve(e)),i.size===0&&(a.disconnect(),ch.delete(o));}}function Tae({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,m]=f__namespace.useState(null),h=f__namespace.useRef(),[v,g]=f__namespace.useState({inView:!!s,entry:void 0});h.current=c,f__namespace.useEffect(()=>{if(i||!d)return;let S;return S=Rae(d,(E,$)=>{g({inView:E,entry:$}),h.current&&h.current(E,$),$.isIntersecting&&a&&S&&(S(),S=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{S&&S();}},[Array.isArray(e)?e.toString():e,d,o,r,a,i,n,l,t]);const p=(u=v.entry)==null?void 0:u.target,b=f__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,g({inView:!!s,entry:void 0}));const y=[m,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const Ai=hi.extend("components:RecGrid"),Fa={card:Sc({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:Sc("border-color:",so,";border-radius:",wE,";overflow:hidden;","")};var Mae={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const KE=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:a,setExtraInfo:i},s)=>{const{useNarrowMode:l,styleUseYoutubeLikeCard:c}=_n(),u=Ys(),[d,m]=f.useState(0),h=nt(async()=>{W(),i==null||i();}),v=nt(()=>{W(),m(1),u==="watchlater"&&(i==null||i(k.usageInfo)),u==="fav"&&(i==null||i(O.usageInfo)),u==="dynamic-feed"&&(i==null||i(_.usageInfo)),N();}),{refresh:g,items:p,setItems:b,error:y,refreshing:S,refreshedAt:E,getRefreshedAt:$,swr:w,hasMore:C,setHasMore:x,pcRecService:I,dynamicFeedService:_,watchLaterService:k,favService:O}=mE({tab:u,debug:Ai,fetcher:xae,recreateService:!0,preAction:h,postAction:v,onScrollToTop:n,setUpperRefreshing:a});Gs(g),f.useImperativeHandle(s,()=>({refresh:g}),[]);const P=f.useRef();_o("visibilitychange",te=>{if(!(document.visibilityState==="visible")){P.current=Date.now();return}S||R.current[E]||u==="watchlater"&&P.current&&Date.now()-P.current>Yu("1h")&&g(!0,{watchlaterKeepOrder:!0});},{target:document});const R=f.useRef({}),T=nt(async()=>{if(!C||S)return;const te=E;if(R.current[te])return;R.current={[te]:!0};let ae=p,ce=!0;try{if(u==="dynamic-feed")ae=ae.concat(await _.loadMore()||[]),ce=_.hasMore;else if(u==="watchlater")ae=ae.concat(await k.loadMore()||[]),ce=k.hasMore;else if(u==="fav")ae=ae.concat(await O.loadMore()||[]),ce=O.hasMore;else for(;!(ae.length>p.length);){const ne=await Eae(u==="keep-follow-only"?5:2,u,I);ae=$ae(ae,ne);}}catch(Z){throw R.current[te]=!1,Z}if(te!==$()){Ai("loadMore: skip update for mismatch refreshedAt, %s != %s",te,$());return}Ai("loadMore: seq(%s) len %s -> %s",d+1,p.length,ae.length),x(ce),b(ae),m(Z=>Z+1),R.current[te]=!1,N();}),N=nt(async()=>{await lo(sg?100:50),Ai("checkShouldLoadMore(): footerInView = %s",J.current),J.current&&T();}),M=f.useRef(null),L=nt(()=>{var te;if(e){const ae=EE()+50;return new DOMRect(0,ae,window.innerWidth,window.innerHeight-ae)}else return (te=o==null?void 0:o.current)==null?void 0:te.getBoundingClientRect()}),j=aJ(),z=f.useMemo(()=>new Map,[E]),V=f.useMemo(()=>p.map(({uniqId:te})=>z.get(te)||(()=>{const ae=yE();return z.set(te,ae),ae})()),[p]),{activeIndex:B,clearActiveIndex:W}=Goe({enabled:t&&!j,refresh:g,maxIndex:p.length-1,containerRef:M,getScrollerRect:L,videoCardEmitters:V,changeScrollY:e?function({offset:te,absolute:ae}){const ce=document.documentElement;if(typeof te=="number"){ce.scrollTop+=te;return}if(typeof ae=="number"){ce.scrollTop=ae;return}}:void 0}),F=Qa(),X=nt((te,ae)=>{b(ce=>{const Z=ce.findIndex(ee=>ee.uniqId===te.uniqId);if(Z===-1)return ce;let ne=ce.slice();return ne.splice(Z,1),Ct(`已移除: ${ae.title}`,4e3),u==="watchlater"&&(k.count--,i==null||i(k.usageInfo)),u==="fav"&&(O.total--,i==null||i(O.usageInfo)),ne});}),q=nt((te,ae)=>{b(ce=>{const Z=ce.find(de=>de.uniqId===te.uniqId);if(!Z)return ce;const ne=ce.indexOf(Z),ee=ce.slice();return ee.splice(ne,1),ee.unshift(Z),ee});}),{ref:K,inView:G}=Tae({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(te){te&&(Ai("footerInView change to visible",te),T());}}),J=Ja(G),oe=D("div",{ref:K,css:Mae,children:!S&&D(Et,{children:C?ge(Et,{children:[D(Rt,{name:"Loading",fill:so,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ue=H(`${gn}-video-grid`,Eg,c?Voe:F?IE:OE,l&&Uoe,r);return !p.length||y||S&&!w?D("div",{className:Hy,children:D("div",{className:ue,children:new Array(28).fill(void 0).map((te,ae)=>D(Rc,{loading:!0,className:Fa.card},ae))})}):ge("div",{style:{minHeight:"100%"},className:Hy,children:[D("div",{ref:M,className:ue,children:p.map((te,ae)=>{const ce=ae===B;return D(Rc,{className:H(Fa.card,{[Fa.cardActive]:ce}),item:te,active:ce,onRemoveCurrent:X,onMoveToFirst:q,onRefresh:g,emitter:V[ae]},te.uniqId)})}),oe]})});function Nae(){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,a=parseInt(getComputedStyle(e.current).top),i=o<=a;n(i);}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 kae="_expand-btn_wdzp9_1",Aae="_expanded_wdzp9_12",Vy={expandBtn:kae,expanded:Aae},Lae=f.forwardRef(function({children:t},n){const[r,o]=ix(!1);f.useImperativeHandle(n,()=>o,[o]);const a=D("button",{className:H("primary-btn",Vy.expandBtn),onClick:o.toggle,children:D("svg",{className:H({[Vy.expanded]:r}),children:D("use",{href:"#widget-arrow"})})});return ge(Et,{children:[a,r&&t]})}),Dae="_modal-mask_7bwzz_1",jae="_narrow-mode_7bwzz_1",zae="_modal_7bwzz_1",Bae="_modal-header_7bwzz_18",Fae="_modal-body_7bwzz_19",Hae="_btn-refresh_7bwzz_22",Li={modalMask:Dae,narrowMode:jae,modal:zae,modalHeader:Bae,modalBody:Fae,btnRefresh:Hae};var Wae={name:"1q4vxyr",styles:"margin-left:8px"};const Vae=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:a}=_n(),i=f.useMemo(()=>({[Li.narrowMode]:a}),[a]),s=nt((...g)=>{var p;return (p=o.current)==null?void 0:p.refresh(...g)}),[l,c]=f.useState(null),u=nt(()=>{r.current&&(r.current.scrollTop=0);}),d=ig(),m=f.useMemo(()=>d?{border:`1px solid ${so}`}:void 0,[d]),[h,v]=f.useState(!1);return D(mg,{show:t,onHide:n,clsModalMask:H(i),clsModal:H(Li.modal,i),styleModal:{...m},children:ge(wg.Provider,{value:s,children:[ge("div",{className:H(Ur.modalHeader,Li.modalHeader),children:[D($x,{onRefresh:s}),l,D("div",{className:"space",style:{flex:1}}),D(Lae,{children:D(Bq,{})}),D(XE,{css:Wae,refreshing:h,onRefresh:s,className:Li.btnRefresh,refreshHotkeyEnabled:t}),D(hg,{onClick:n})]}),D("div",{className:H(Ur.modalBody,Li.modalBody),ref:r,children:D(KE,{ref:o,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:v,setExtraInfo:c})})]})})}),Uae=hi.extend("RecHeader"),Uy={btn:Pr`
padding: 0;
width: 32px;
height: 32px;
border-radius: 50%;
${ed}
`,icon:Pr`
svg {
width: 14px;
height: 14px;
}
`},Ro=gr({modalFeedVisible:$t.initialShowMore,modalConfigVisible:!1}),Gae=function(){return pr(Ro)},Kae=()=>{Ro.modalFeedVisible=!0;},qae=()=>{Ro.modalFeedVisible=!1;},Xae=()=>{Ro.modalConfigVisible=!0;},Yae=()=>{Ro.modalConfigVisible=!1;},qE=f.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:s}=_n(),{modalFeedVisible:l,modalConfigVisible:c}=pr(Ro);nn(["shift.comma"],v=>{qu()||(Ro.modalConfigVisible=!Ro.modalConfigVisible);},{exactMatch:!0});const[u,d]=Nae(),m=nt(()=>{var b;if(!s)return;const v=(b=u.current)==null?void 0:b.parentElement;if(!v)return;const g=v.getBoundingClientRect(),p=EE();if(g.top<p){const y=p-g.top+1;Uae("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",g.top,p,y),document.documentElement.scrollTop-=y;}});f.useImperativeHandle(a,()=>({scroll:m}));const h=Hoe();return D(Et,{children:ge(wg.Provider,{value:t,children:[ge("div",{ref:u,className:"area-header",css:[Pr`
margin-bottom: 0;
height: 50px;
`,s&&Pr`
position: sticky;
top: ${h-1}px; // 有缝隙, 故 -1 px
z-index: 1000;
`,s&&d&&Pr`
background-color: var(--bg1_float);
box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
`,"",""],children:[ge("div",{className:"left",children:[D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D($x,{onRefresh:t}),r]}),D("div",{className:"right",children:ge(js,{size:"small",children:[o,!i&&D(gx,{style:{marginLeft:5}}),D(Kt,{onClick:Xae,css:Uy.btn,children:D(Rt,{name:"Config",css:Uy.icon})}),D(XE,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||l)}),!s&&ge(Kt,{css:ed,onClick:Kae,children:[D("span",{children:"查看更多"}),D("svg",{css:Pr`
width: 12px;
height: 12px;
margin-left: 2px;
`,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(Vae,{show:l,onHide:qae}),D(TQ,{show:c,onHide:Yae})]})})}),XE=f.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0);const[i,s]=f.useState(0),l=f.useRef(null),c=nt(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(a,()=>({click:c}),[]),nn("r",()=>{qu()||r&&c();},{exactMatch:!0});const u=Ys(),{shuffleForFav:d,shuffleForWatchLater:m}=_n(),h=u==="dynamic-feed"||u==="watchlater"&&!m||u==="fav"&&!d?"刷新":"换一换",v=nt(g=>(s(p=>p+360),e==null?void 0:e()));return ge(Kt,{disabled:o,className:t,style:n,css:Pr`
${ed}
&.ant-btn:not(:disabled):focus-visible {
outline: none;
}
`,ref:l,onClick:v,children:[D("svg",{style:{transform:`rotate(${i}deg)`,width:"11px",height:"11px",marginRight:5,transition:i===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:D("use",{href:"#widget-roll"})}),D("span",{children:h})]})}),Zae={grid:Pr`
/* card=360 col-gap=16 */
width: ${360*2+20}px;
margin: 0 auto;
`};function Qae(){const{useNarrowMode:e}=_n(),{modalFeedVisible:t,modalConfigVisible:n}=Gae(),r=f.useRef(null),o=f.useRef(null),a=nt((...d)=>{var m;return (m=o.current)==null?void 0:m.refresh(...d)}),i=nt(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=f.useState(!1),[c,u]=f.useState(null);return ge("section",{"data-area":"推荐",children:[D(qE,{ref:r,refreshing:s,onRefresh:a,leftSlot:c}),D(KE,{ref:o,css:[e&&Zae.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:l,setExtraInfo:u})]})}const Jae=hi.extend("components:SectionRecommend");function eie(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Qa(),n=Ys(),{refreshing:r,items:o,refresh:a,error:i,swr:s}=mE({tab:n,debug:Jae,fetcher:wae,recreateService:!1});Gs(a);const l=!o.length||i||r&&!s;return ge("section",{"data-area":"推荐",children:[D(qE,{refreshing:r,onRefresh:a}),D("div",{className:H(Eg,Woe,t?IE:OE),style:{marginBottom:t?30:0},children:l?e.map(c=>D(Rc,{},c)):o.map(c=>D(Rc,{item:c},c.uniqId))})]})}sa.extend(BQ);(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 tie()})();async function tie(){return Aa(".adblock-tips"),qi("html.gray",e=>e.classList.remove("gray")),$t.pureRecommend?rie():nie()}async function nie(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const a=document.querySelector(".bili-layout > section.bili-grid");n=i=>a==null?void 0:a.insertAdjacentElement("afterend",i);break}if(Qa()&&document.querySelector(".bili-feed4-layout")){n=a=>{var i;return (i=document.querySelector(".bili-feed4-layout"))==null?void 0:i.insertAdjacentElement("afterbegin",a)};break}await lo(200);}if(!n){console.error(`[${gn}]: init fail`);return}const r=document.createElement("section");n(r),Qu(r).render(D(Uw,{children:D(eie,{})})),Qa()&&Aa(".bili-feed4 .header-channel");}async function rie(){var o,a;sg&&await lo(500),Qa()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),Aa(".bili-feed4 .header-channel"),Aa(".palette-button-wrap .flexible-roll-btn"),qi(".palette-button-wrap .storage-box",i=>i.classList.remove("hidden")),qi(".palette-button-wrap .top-btn-wrap .top-btn",i=>i.classList.add("visible")),qi(".palette-button-wrap",i=>{i.style.position="absolute";})):((a=document.querySelector(".bili-layout"))==null||a.remove(),Aa(".bili-footer"),Aa(".palette-button-wrap > .primary-btn",i=>i.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(i=>{i.classList.remove("hidden"),i.classList.contains("top-btn")&&i.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(Qa()?"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),Qu(n).render(D(Uw,{children:D(Qae,{})}));}
})(React, ReactDOM, UAParser);