您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
为 B 站首页添加像 App 一样的推荐
当前为
// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.19.2 // @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.bilibili.com/?* // @match https://www.bilibili.com/index.html // @match https://www.bilibili.com/index.html?* // @require https://registry.npmmirror.com/axios/0.27.2/files/dist/axios.min.js // @require https://registry.npmmirror.com/axios-userscript-adapter/0.2.0/files/dist/axiosGmxhrAdapter.min.js // @require https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js // @require https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js // @require https://registry.npmmirror.com/ua-parser-js/1.0.37/files/dist/ua-parser.min.js // @require https://registry.npmmirror.com/framer-motion/10.16.9/files/dist/framer-motion.js // @connect app.bilibili.com // @connect passport.bilibili.com // @grant GM.getValue // @grant GM.openInTab // @grant GM.setClipboard // @grant GM.setValue // @grant GM.xmlHttpRequest // @grant GM_addStyle // @grant unsafeWindow // ==/UserScript== (e=>{if(typeof GM_addStyle=="function"){GM_addStyle(e);return}const i=document.createElement("style");i.textContent=e,document.head.append(i)})(' @charset "UTF-8";.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-mask_1wljt_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_1wljt_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_1wljt_25{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1wljt_33{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1wljt_39{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1wljt_47{margin-left:10px}._btn-close_1wljt_47 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1wljt_47{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_1e3m4_1{width:500px}._title-desc_1e3m4_5{margin-left:5px;font-size:40%}._reason-list_1e3m4_10{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1e3m4_10{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_1e3m4_10{border:1px solid #333}._reason_1e3m4_10._active_1e3m4_32{border-color:#f69;border-radius:4px}._reason-no_1e3m4_37{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_1e3m4_52{margin-top:20px}._tips_1e3m4_52{display:flex;align-items:center}._bili-video-card_8ehp8_1{position:relative}._preview-card-wrapper_8ehp8_5{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_8ehp8_5 ._preview-card-inner_8ehp8_18{width:100%;height:100%}._watch-later_8ehp8_23{z-index:5}._badge_8ehp8_27{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_8ehp8_37{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_8ehp8_53{color:default}._btn-dislike_8ehp8_57{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_8ehp8_57 ._btn-dislike-icon_8ehp8_72{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_8ehp8_57 ._btn-dislike-tip_8ehp8_79{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_8ehp8_95{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_8ehp8_95{border:1px solid #333}._disliked-wrapper_8ehp8_95 ._dislike-content-cover_8ehp8_109{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_8ehp8_95 ._dislike-content-cover_8ehp8_109 ._dislike-content-cover-inner_8ehp8_115{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_8ehp8_95 ._dislike-content-cover_8ehp8_109 ._dislike-content-cover-inner_8ehp8_115 ._dislike-icon_8ehp8_126{margin-bottom:5px}._disliked-wrapper_8ehp8_95 ._dislike-content-cover_8ehp8_109 ._dislike-content-cover-inner_8ehp8_115 ._dislike-reason_8ehp8_129{font-size:20px;text-align:center}._disliked-wrapper_8ehp8_95 ._dislike-content-cover_8ehp8_109 ._dislike-content-cover-inner_8ehp8_115 ._dislike-desc_8ehp8_133{font-size:16px;text-align:center}._disliked-wrapper_8ehp8_95 ._dislike-content-action_8ehp8_137{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_8ehp8_95 ._dislike-content-action_8ehp8_137{border-top:1px solid #333}._disliked-wrapper_8ehp8_95 ._dislike-content-action_8ehp8_137 button{font-size:16px;color:inherit;display:flex;align-items:center}body .bili-video-card__skeleton--cover,body .bili-video-card__skeleton--text,body .bili-video-card__skeleton--light,body .bili-video-card__skeleton--avatar{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%)}body.dark .bili-video-card__skeleton--avatar{background-color:#444}._skeleton-active_8ehp8_165 .bili-video-card__skeleton--cover,._skeleton-active_8ehp8_165 .bili-video-card__skeleton--text,._skeleton-active_8ehp8_165 .bili-video-card__skeleton--light,._skeleton-active_8ehp8_165 .bili-video-card__skeleton--avatar{background-size:400% 100%;animation-name:_ant-skeleton-loading_8ehp8_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_8ehp8_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_bm2d9_7{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px;grid-template-columns:repeat(var(--col),minmax(0,1fr))}@media (max-width: 1099.9px){._video-grid-new-homepage_bm2d9_17{--col: 4}._video-grid-new-homepage_bm2d9_17._limit-two-lines_bm2d9_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_bm2d9_17{--col: 5}._video-grid-new-homepage_bm2d9_17._limit-two-lines_bm2d9_20>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_bm2d9_17{--col: 6}._video-grid-new-homepage_bm2d9_17._limit-two-lines_bm2d9_20>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_bm2d9_17{--col: 7}._video-grid-new-homepage_bm2d9_17._limit-two-lines_bm2d9_20>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_bm2d9_52{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_bm2d9_52{--col: 4}._video-grid-internal-testing_bm2d9_52._limit-one-line_bm2d9_60>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_bm2d9_52._limit-two-lines_bm2d9_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_bm2d9_52{--col: 5}._video-grid-internal-testing_bm2d9_52._limit-one-line_bm2d9_60>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_bm2d9_52._limit-two-lines_bm2d9_20>*:nth-of-type(n+11){display:none!important}}._video-grid-container_bm2d9_81{container-name:video-grid-container;container-type:inline-size}._video-grid-fancy_bm2d9_86{grid-gap:40px 20px;--video-card-border-radius: 15px;--col: 2}@container video-grid-container (width >= 520px){._video-grid-fancy_bm2d9_86{--col: 2}}@container video-grid-container (width >= 790px){._video-grid-fancy_bm2d9_86{--col: 3}}@container video-grid-container (width >= 1060px){._video-grid-fancy_bm2d9_86{--col: 4}}@container video-grid-container (width >= 1330px){._video-grid-fancy_bm2d9_86{--col: 5}}._narrow-mode_bm2d9_115{--col: 2 !important}._config-icon_1th8l_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1th8l_7{margin-bottom:10px}._settings-group_1th8l_7 ._settings-group-title_1th8l_10{font-size:2em;display:flex;align-items:center}._settings-group_1th8l_7 ._settings-group-sub-title_1th8l_15{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1th8l_7 ._settings-group-content_1th8l_21{color:default}._settings-group_1th8l_7 ._settings-group-content_1th8l_21 button:first-child{margin-left:0}._row_1th8l_28{display:flex;align-items:center;flex-wrap:wrap}._row_1th8l_28 .primary-btn:first-child{margin-left:0}._check_1th8l_37{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1th8l_43.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1th8l_47{min-height:min(360px,90vh - 121px);max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_12c5j_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_12c5j_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_12c5j_1 svg._expanded_12c5j_12{transform:rotate(0)}body.dark ._expand-btn_12c5j_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_12c5j_1:hover{background-color:#555!important}._modal-mask_14tde_1._narrow-mode_14tde_1{background-color:#000000e6}._modal_14tde_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_14tde_1._narrow-mode_14tde_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_14tde_1._narrow-mode_14tde_1{border:none}._modal_14tde_1._full-screen-mode_14tde_19{width:100vw;height:100vh}._modal-header_14tde_24,._modal-body_14tde_25{padding-right:15px}body.dark ._btn-refresh_14tde_29{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} '); (async function (m, Xh, jE, k1, BE, HE, framerMotion) { '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 m__namespace = /*#__PURE__*/_interopNamespaceDefault(m); const k1__namespace = /*#__PURE__*/_interopNamespaceDefault(k1); var NE=Object.defineProperty;var kE=(e,t,n)=>t in e?NE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ct=(e,t,n)=>(kE(e,typeof t!="symbol"?t+"":t,n),n),tf=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ct=(e,t,n)=>(tf(e,t,"read from private field"),n?n.call(e):t.get(e)),Wn=(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)=>(tf(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var nf=(e,t,n,r)=>({set _(o){_n(e,t,o,n);},get _(){return ct(e,t,r)}}),nn=(e,t,n)=>(tf(e,t,"access private method"),n);var Ua=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function UE(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 A1={exports:{}},xu={};/** * @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 XE=m,qE=Symbol.for("react.element"),YE=Symbol.for("react.fragment"),QE=Object.prototype.hasOwnProperty,ZE=XE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,JE={key:!0,ref:!0,__self:!0,__source:!0};function L1(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)QE.call(t,r)&&!JE.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:qE,type:e,key:a,ref:i,props:o,_owner:ZE.current}}xu.Fragment=YE;xu.jsx=L1;xu.jsxs=L1;A1.exports=xu;var Is=A1.exports;function eI(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 tI(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 nI=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(tI(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=eI(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}(),Tn="-ms-",Rc="-moz-",Lt="-webkit-",D1="comm",Yh="rule",Qh="decl",rI="@import",z1="@keyframes",oI="@layer",aI=Math.abs,Eu=String.fromCharCode,iI=Object.assign;function sI(e,t){return In(e,0)^45?(((t<<2^In(e,0))<<2^In(e,1))<<2^In(e,2))<<2^In(e,3):0}function j1(e){return e.trim()}function lI(e,t){return (e=t.exec(e))?e[0]:e}function Dt(e,t,n){return e.replace(t,n)}function hm(e,t){return e.indexOf(t)}function In(e,t){return e.charCodeAt(t)|0}function Os(e,t,n){return e.slice(t,n)}function Qr(e){return e.length}function Zh(e){return e.length}function Fl(e,t){return t.push(e),e}function cI(e,t){return e.map(t).join("")}var Iu=1,si=1,F1=0,Qn=0,gn=0,$i="";function Ou(e,t,n,r,o,a,i){return {value:e,root:t,parent:n,type:r,props:o,children:a,line:Iu,column:si,length:i,return:""}}function Gi(e,t){return iI(Ou("",null,null,"",null,null,0),e,{length:-e.length},t)}function uI(){return gn}function dI(){return gn=Qn>0?In($i,--Qn):0,si--,gn===10&&(si=1,Iu--),gn}function dr(){return gn=Qn<F1?In($i,Qn++):0,si++,gn===10&&(si=1,Iu++),gn}function no(){return In($i,Qn)}function dc(){return Qn}function Qs(e,t){return Os($i,e,t)}function Ps(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 B1(e){return Iu=si=1,F1=Qr($i=e),Qn=0,[]}function H1(e){return $i="",e}function fc(e){return j1(Qs(Qn-1,gm(e===91?e+2:e===40?e+1:e)))}function fI(e){for(;(gn=no())&&gn<33;)dr();return Ps(e)>2||Ps(gn)>3?"":" "}function mI(e,t){for(;--t&&dr()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Qs(e,dc()+(t<6&&no()==32&&dr()==32))}function gm(e){for(;dr();)switch(gn){case e:return Qn;case 34:case 39:e!==34&&e!==39&&gm(gn);break;case 40:e===41&&gm(e);break;case 92:dr();break}return Qn}function hI(e,t){for(;dr()&&e+gn!==57;)if(e+gn===84&&no()===47)break;return "/*"+Qs(t,Qn-1)+"*"+Eu(e===47?e:dr())}function gI(e){for(;!Ps(no());)dr();return Qs(e,Qn)}function W1(e){return H1(mc("",null,null,null,[""],e=B1(e),0,[0],e))}function mc(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,h=0,g=0,v=1,p=1,b=1,y=0,C="",w=o,x=a,$=r,S=C;p;)switch(g=y,y=dr()){case 40:if(g!=108&&In(S,d-1)==58){hm(S+=Dt(fc(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=fc(y);break;case 9:case 10:case 13:case 32:S+=fI(g);break;case 92:S+=mI(dc()-1,7);continue;case 47:switch(no()){case 42:case 47:Fl(vI(hI(dr(),dc()),t,n),l);break;default:S+="/";}break;case 123*v:s[c++]=Qr(S)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(S=Dt(S,/\f/g,"")),h>0&&Qr(S)-d&&Fl(h>32?Sp(S+";",r,n,d-1):Sp(Dt(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Fl($=Cp(S,t,n,c,u,o,s,C,w=[],x=[],d),a),y===123)if(u===0)mc(S,t,$,$,w,a,d,s,x);else switch(f===99&&In(S,3)===110?100:f){case 100:case 108:case 109:case 115:mc(e,$,$,r&&Fl(Cp(e,$,$,0,0,o,s,C,o,w=[],d),x),o,x,d,s,r?w:x);break;default:mc(S,$,$,$,[""],x,0,s,x);}}c=u=h=0,v=b=1,C=S="",d=i;break;case 58:d=1+Qr(S),h=g;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&dI()==125)continue}switch(S+=Eu(y),y*v){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Qr(S)-1)*b,b=1;break;case 64:no()===45&&(S+=fc(dr())),f=no(),u=d=Qr(C=S+=gI(dc())),y++;break;case 45:g===45&&Qr(S)==2&&(v=0);}}return a}function Cp(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,f=o===0?a:[""],h=Zh(f),g=0,v=0,p=0;g<r;++g)for(var b=0,y=Os(e,d+1,d=aI(v=i[g])),C=e;b<h;++b)(C=j1(v>0?f[b]+" "+y:Dt(y,/&\f/g,f[b])))&&(l[p++]=C);return Ou(e,t,n,o===0?Yh:s,l,c,u)}function vI(e,t,n){return Ou(e,t,n,D1,Eu(uI()),Os(e,2,-2),0)}function Sp(e,t,n,r){return Ou(e,t,n,Qh,Os(e,0,r),Os(e,r+1,-1),r)}function ta(e,t){for(var n="",r=Zh(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function V1(e,t,n,r){switch(e.type){case oI:if(e.children.length)break;case rI:case Qh:return e.return=e.return||e.value;case D1:return "";case z1:return e.return=e.value+"{"+ta(e.children,r)+"}";case Yh:e.value=e.props.join(",");}return Qr(n=ta(e.children,r))?e.return=e.value+"{"+n+"}":""}function pI(e){var t=Zh(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 bI(e){return function(t){t.root||(t=t.return)&&e(t);}}function yI(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var CI=function(t,n,r){for(var o=0,a=0;o=a,a=no(),o===38&&a===12&&(n[r]=1),!Ps(a);)dr();return Qs(t,Qn)},SI=function(t,n){var r=-1,o=44;do switch(Ps(o)){case 0:o===38&&no()===12&&(n[r]=1),t[r]+=CI(Qn-1,n,r);break;case 2:t[r]+=fc(o);break;case 4:if(o===44){t[++r]=no()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Eu(o);}while(o=dr());return t},wI=function(t,n){return H1(SI(B1(t),n))},wp=new WeakMap,$I=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&&!wp.get(r))&&!o){wp.set(t,!0);for(var a=[],i=wI(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];}}},xI=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function G1(e,t){switch(sI(e,t)){case 5103:return Lt+"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 Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+Rc+e+Tn+e+e;case 6828:case 4268:return Lt+e+Tn+e+e;case 6165:return Lt+e+Tn+"flex-"+e+e;case 5187:return Lt+e+Dt(e,/(\w+).+(:[^]+)/,Lt+"box-$1$2"+Tn+"flex-$1$2")+e;case 5443:return Lt+e+Tn+"flex-item-"+Dt(e,/flex-|-self/,"")+e;case 4675:return Lt+e+Tn+"flex-line-pack"+Dt(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+Tn+Dt(e,"shrink","negative")+e;case 5292:return Lt+e+Tn+Dt(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+Dt(e,"-grow","")+Lt+e+Tn+Dt(e,"grow","positive")+e;case 4554:return Lt+Dt(e,/([^-])(transform)/g,"$1"+Lt+"$2")+e;case 6187:return Dt(Dt(Dt(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return Dt(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return Dt(Dt(e,/(.+:)(flex-)?(.*)/,Lt+"box-pack:$3"+Tn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return Dt(e,/(.+)-inline(.+)/,Lt+"$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(Qr(e)-1-t>6)switch(In(e,t+1)){case 109:if(In(e,t+4)!==45)break;case 102:return Dt(e,/(.+:)(.+)-([^]+)/,"$1"+Lt+"$2-$3$1"+Rc+(In(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~hm(e,"stretch")?G1(Dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(In(e,t+1)!==115)break;case 6444:switch(In(e,Qr(e)-3-(~hm(e,"!important")&&10))){case 107:return Dt(e,":",":"+Lt)+e;case 101:return Dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(In(e,14)===45?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+Tn+"$2box$3")+e}break;case 5936:switch(In(e,t+11)){case 114:return Lt+e+Tn+Dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+Tn+Dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+Tn+Dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+Tn+e+e}return e}var EI=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Qh:t.return=G1(t.value,t.length);break;case z1:return ta([Gi(t,{value:Dt(t.value,"@","@"+Lt)})],o);case Yh:if(t.length)return cI(t.props,function(a){switch(lI(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ta([Gi(t,{props:[Dt(a,/:(read-\w+)/,":"+Rc+"$1")]})],o);case"::placeholder":return ta([Gi(t,{props:[Dt(a,/:(plac\w+)/,":"+Lt+"input-$1")]}),Gi(t,{props:[Dt(a,/:(plac\w+)/,":"+Rc+"$1")]}),Gi(t,{props:[Dt(a,/:(plac\w+)/,Tn+"input-$1")]})],o)}return ""})}},II=[EI],K1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var p=v.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""));});}var o=t.stylisPlugins||II,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var p=v.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;s.push(v);});var l,c=[$I,xI];{var u,d=[V1,bI(function(v){u.insert(v);})],f=pI(c.concat(o,d)),h=function(p){return ta(W1(p),f)};l=function(p,b,y,C){u=y,h(p?p+"{"+b.styles+"}":b.styles),C&&(g.inserted[b.name]=!0);};}var g={key:n,sheet:new nI({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 g.sheet.hydrate(s),g},U1={exports:{}},Bt={};/** @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 $n=typeof Symbol=="function"&&Symbol.for,Jh=$n?Symbol.for("react.element"):60103,eg=$n?Symbol.for("react.portal"):60106,Pu=$n?Symbol.for("react.fragment"):60107,Ru=$n?Symbol.for("react.strict_mode"):60108,Mu=$n?Symbol.for("react.profiler"):60114,_u=$n?Symbol.for("react.provider"):60109,Tu=$n?Symbol.for("react.context"):60110,tg=$n?Symbol.for("react.async_mode"):60111,Nu=$n?Symbol.for("react.concurrent_mode"):60111,ku=$n?Symbol.for("react.forward_ref"):60112,Au=$n?Symbol.for("react.suspense"):60113,OI=$n?Symbol.for("react.suspense_list"):60120,Lu=$n?Symbol.for("react.memo"):60115,Du=$n?Symbol.for("react.lazy"):60116,PI=$n?Symbol.for("react.block"):60121,RI=$n?Symbol.for("react.fundamental"):60117,MI=$n?Symbol.for("react.responder"):60118,_I=$n?Symbol.for("react.scope"):60119;function gr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jh:switch(e=e.type,e){case tg:case Nu:case Pu:case Mu:case Ru:case Au:return e;default:switch(e=e&&e.$$typeof,e){case Tu:case ku:case Du:case Lu:case _u:return e;default:return t}}case eg:return t}}}function X1(e){return gr(e)===Nu}Bt.AsyncMode=tg;Bt.ConcurrentMode=Nu;Bt.ContextConsumer=Tu;Bt.ContextProvider=_u;Bt.Element=Jh;Bt.ForwardRef=ku;Bt.Fragment=Pu;Bt.Lazy=Du;Bt.Memo=Lu;Bt.Portal=eg;Bt.Profiler=Mu;Bt.StrictMode=Ru;Bt.Suspense=Au;Bt.isAsyncMode=function(e){return X1(e)||gr(e)===tg};Bt.isConcurrentMode=X1;Bt.isContextConsumer=function(e){return gr(e)===Tu};Bt.isContextProvider=function(e){return gr(e)===_u};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jh};Bt.isForwardRef=function(e){return gr(e)===ku};Bt.isFragment=function(e){return gr(e)===Pu};Bt.isLazy=function(e){return gr(e)===Du};Bt.isMemo=function(e){return gr(e)===Lu};Bt.isPortal=function(e){return gr(e)===eg};Bt.isProfiler=function(e){return gr(e)===Mu};Bt.isStrictMode=function(e){return gr(e)===Ru};Bt.isSuspense=function(e){return gr(e)===Au};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pu||e===Nu||e===Mu||e===Ru||e===Au||e===OI||typeof e=="object"&&e!==null&&(e.$$typeof===Du||e.$$typeof===Lu||e.$$typeof===_u||e.$$typeof===Tu||e.$$typeof===ku||e.$$typeof===RI||e.$$typeof===MI||e.$$typeof===_I||e.$$typeof===PI)};Bt.typeOf=gr;U1.exports=Bt;var TI=U1.exports,q1=TI,NI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y1={};Y1[q1.ForwardRef]=NI;Y1[q1.Memo]=kI;var AI=!0;function ng(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var Q1=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||AI===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},rg=function(t,n,r){Q1(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 LI(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 DI={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},zI=/[A-Z]|^ms/g,jI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Z1=function(t){return t.charCodeAt(1)===45},$p=function(t){return t!=null&&typeof t!="boolean"},rf=yI(function(e){return Z1(e)?e:e.replace(zI,"-$&").toLowerCase()}),xp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jI,function(r,o,a){return Zr={name:o,styles:a,next:Zr},o})}return DI[t]!==1&&!Z1(t)&&typeof n=="number"&&n!==0?n+"px":n};function Rs(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 FI(e,t,n)}case"function":{if(e!==void 0){var a=Zr,i=n(e);return Zr=a,Rs(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function FI(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Rs(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]+"}":$p(i)&&(r+=rf(a)+":"+xp(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++)$p(i[s])&&(r+=rf(a)+":"+xp(a,i[s])+";");else {var l=Rs(e,t,i);switch(a){case"animation":case"animationName":{r+=rf(a)+":"+l+";";break}default:r+=a+"{"+l+"}";}}}return r}var Ep=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Zr,ei=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+=Rs(r,n,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=Rs(r,n,t[s]),o&&(a+=i[s]);Ep.lastIndex=0;for(var l="",c;(c=Ep.exec(a))!==null;)l+="-"+c[1];var u=LI(a)+l;return {name:u,styles:a,next:Zr}},BI=function(t){return t()},J1=m__namespace.useInsertionEffect?m__namespace.useInsertionEffect:!1,HI=J1||BI,Ip=J1||m__namespace.useLayoutEffect,zu={}.hasOwnProperty,eC=m__namespace.createContext(typeof HTMLElement<"u"?K1({key:"css"}):null);eC.Provider;var tC=function(t){return m.forwardRef(function(n,r){var o=m.useContext(eC);return t(n,o,r)})},nC=m__namespace.createContext({}),vm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rC=function(t,n){var r={};for(var o in n)zu.call(n,o)&&(r[o]=n[o]);return r[vm]=t,r},WI=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Q1(n,r,o),HI(function(){return rg(n,r,o)}),null},VI=tC(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[vm],a=[r],i="";typeof e.className=="string"?i=ng(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=ei(a,void 0,m__namespace.useContext(nC));i+=t.key+"-"+s.name;var l={};for(var c in e)zu.call(e,c)&&c!=="css"&&c!==vm&&(l[c]=e[c]);return l.ref=n,l.className=i,m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(WI,{cache:t,serialized:s,isStringTag:typeof o=="string"}),m__namespace.createElement(o,l))}),oC=VI,It=Is.Fragment;function D(e,t,n){return zu.call(t,"css")?Is.jsx(oC,rC(e,t),n):Is.jsx(e,t,n)}function be(e,t,n){return zu.call(t,"css")?Is.jsxs(oC,rC(e,t),n):Is.jsxs(e,t,n)}function GI(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 og=GI;function KI(){this.__data__=[],this.size=0;}var UI=KI;function XI(e,t){return e===t||e!==e&&t!==t}var ag=XI,qI=ag;function YI(e,t){for(var n=e.length;n--;)if(qI(e[n][0],t))return n;return -1}var ju=YI,QI=ju,ZI=Array.prototype,JI=ZI.splice;function eO(e){var t=this.__data__,n=QI(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():JI.call(t,n,1),--this.size,!0}var tO=eO,nO=ju;function rO(e){var t=this.__data__,n=nO(t,e);return n<0?void 0:t[n][1]}var oO=rO,aO=ju;function iO(e){return aO(this.__data__,e)>-1}var sO=iO,lO=ju;function cO(e,t){var n=this.__data__,r=lO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uO=cO,dO=UI,fO=tO,mO=oO,hO=sO,gO=uO;function xi(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]);}}xi.prototype.clear=dO;xi.prototype.delete=fO;xi.prototype.get=mO;xi.prototype.has=hO;xi.prototype.set=gO;var Fu=xi,vO=Fu;function pO(){this.__data__=new vO,this.size=0;}var bO=pO;function yO(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var CO=yO;function SO(e){return this.__data__.get(e)}var wO=SO;function $O(e){return this.__data__.has(e)}var xO=$O,EO=typeof Ua=="object"&&Ua&&Ua.Object===Object&&Ua,aC=EO,IO=aC,OO=typeof self=="object"&&self&&self.Object===Object&&self,PO=IO||OO||Function("return this")(),Wr=PO,RO=Wr,MO=RO.Symbol,Ei=MO,Op=Ei,iC=Object.prototype,_O=iC.hasOwnProperty,TO=iC.toString,Ki=Op?Op.toStringTag:void 0;function NO(e){var t=_O.call(e,Ki),n=e[Ki];try{e[Ki]=void 0;var r=!0;}catch{}var o=TO.call(e);return r&&(t?e[Ki]=n:delete e[Ki]),o}var kO=NO,AO=Object.prototype,LO=AO.toString;function DO(e){return LO.call(e)}var zO=DO,Pp=Ei,jO=kO,FO=zO,BO="[object Null]",HO="[object Undefined]",Rp=Pp?Pp.toStringTag:void 0;function WO(e){return e==null?e===void 0?HO:BO:Rp&&Rp in Object(e)?jO(e):FO(e)}var Ii=WO;function VO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var io=VO,GO=Ii,KO=io,UO="[object AsyncFunction]",XO="[object Function]",qO="[object GeneratorFunction]",YO="[object Proxy]";function QO(e){if(!KO(e))return !1;var t=GO(e);return t==XO||t==qO||t==UO||t==YO}var sC=QO,ZO=Wr,JO=ZO["__core-js_shared__"],eP=JO,of=eP,Mp=function(){var e=/[^.]+$/.exec(of&&of.keys&&of.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tP(e){return !!Mp&&Mp in e}var nP=tP,rP=Function.prototype,oP=rP.toString;function aP(e){if(e!=null){try{return oP.call(e)}catch{}try{return e+""}catch{}}return ""}var lC=aP,iP=sC,sP=nP,lP=io,cP=lC,uP=/[\\^$.*+?()[\]{}|]/g,dP=/^\[object .+?Constructor\]$/,fP=Function.prototype,mP=Object.prototype,hP=fP.toString,gP=mP.hasOwnProperty,vP=RegExp("^"+hP.call(gP).replace(uP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pP(e){if(!lP(e)||sP(e))return !1;var t=iP(e)?vP:dP;return t.test(cP(e))}var bP=pP;function yP(e,t){return e==null?void 0:e[t]}var CP=yP,SP=bP,wP=CP;function $P(e,t){var n=wP(e,t);return SP(n)?n:void 0}var ga=$P,xP=ga,EP=Wr,IP=xP(EP,"Map"),ig=IP,OP=ga,PP=OP(Object,"create"),Bu=PP,_p=Bu;function RP(){this.__data__=_p?_p(null):{},this.size=0;}var MP=RP;function _P(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var TP=_P,NP=Bu,kP="__lodash_hash_undefined__",AP=Object.prototype,LP=AP.hasOwnProperty;function DP(e){var t=this.__data__;if(NP){var n=t[e];return n===kP?void 0:n}return LP.call(t,e)?t[e]:void 0}var zP=DP,jP=Bu,FP=Object.prototype,BP=FP.hasOwnProperty;function HP(e){var t=this.__data__;return jP?t[e]!==void 0:BP.call(t,e)}var WP=HP,VP=Bu,GP="__lodash_hash_undefined__";function KP(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=VP&&t===void 0?GP:t,this}var UP=KP,XP=MP,qP=TP,YP=zP,QP=WP,ZP=UP;function Oi(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]);}}Oi.prototype.clear=XP;Oi.prototype.delete=qP;Oi.prototype.get=YP;Oi.prototype.has=QP;Oi.prototype.set=ZP;var JP=Oi,Tp=JP,eR=Fu,tR=ig;function nR(){this.size=0,this.__data__={hash:new Tp,map:new(tR||eR),string:new Tp};}var rR=nR;function oR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var aR=oR,iR=aR;function sR(e,t){var n=e.__data__;return iR(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Hu=sR,lR=Hu;function cR(e){var t=lR(this,e).delete(e);return this.size-=t?1:0,t}var uR=cR,dR=Hu;function fR(e){return dR(this,e).get(e)}var mR=fR,hR=Hu;function gR(e){return hR(this,e).has(e)}var vR=gR,pR=Hu;function bR(e,t){var n=pR(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var yR=bR,CR=rR,SR=uR,wR=mR,$R=vR,xR=yR;function Pi(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]);}}Pi.prototype.clear=CR;Pi.prototype.delete=SR;Pi.prototype.get=wR;Pi.prototype.has=$R;Pi.prototype.set=xR;var sg=Pi,ER=Fu,IR=ig,OR=sg,PR=200;function RR(e,t){var n=this.__data__;if(n instanceof ER){var r=n.__data__;if(!IR||r.length<PR-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new OR(r);}return n.set(e,t),this.size=n.size,this}var MR=RR,_R=Fu,TR=bO,NR=CO,kR=wO,AR=xO,LR=MR;function Ri(e){var t=this.__data__=new _R(e);this.size=t.size;}Ri.prototype.clear=TR;Ri.prototype.delete=NR;Ri.prototype.get=kR;Ri.prototype.has=AR;Ri.prototype.set=LR;var lg=Ri;function DR(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var zR=DR,jR=ga,FR=function(){try{var e=jR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cC=FR,Np=cC;function BR(e,t,n){t=="__proto__"&&Np?Np(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var uC=BR,HR=uC,WR=ag,VR=Object.prototype,GR=VR.hasOwnProperty;function KR(e,t,n){var r=e[t];(!(GR.call(e,t)&&WR(r,n))||n===void 0&&!(t in e))&&HR(e,t,n);}var cg=KR,UR=cg,XR=uC;function qR(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?XR(n,s,l):UR(n,s,l);}return n}var Zs=qR;function YR(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var QR=YR;function ZR(e){return e!=null&&typeof e=="object"}var Lo=ZR,JR=Ii,eM=Lo,tM="[object Arguments]";function nM(e){return eM(e)&&JR(e)==tM}var rM=nM,kp=rM,oM=Lo,dC=Object.prototype,aM=dC.hasOwnProperty,iM=dC.propertyIsEnumerable,sM=kp(function(){return arguments}())?kp:function(e){return oM(e)&&aM.call(e,"callee")&&!iM.call(e,"callee")},ug=sM,lM=Array.isArray,Vr=lM,Mc={exports:{}};function cM(){return !1}var uM=cM;Mc.exports;(function(e,t){var n=Wr,r=uM,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;})(Mc,Mc.exports);var dg=Mc.exports,dM=9007199254740991,fM=/^(?:0|[1-9]\d*)$/;function mM(e,t){var n=typeof e;return t=t??dM,!!t&&(n=="number"||n!="symbol"&&fM.test(e))&&e>-1&&e%1==0&&e<t}var fg=mM,hM=9007199254740991;function gM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hM}var mg=gM,vM=Ii,pM=mg,bM=Lo,yM="[object Arguments]",CM="[object Array]",SM="[object Boolean]",wM="[object Date]",$M="[object Error]",xM="[object Function]",EM="[object Map]",IM="[object Number]",OM="[object Object]",PM="[object RegExp]",RM="[object Set]",MM="[object String]",_M="[object WeakMap]",TM="[object ArrayBuffer]",NM="[object DataView]",kM="[object Float32Array]",AM="[object Float64Array]",LM="[object Int8Array]",DM="[object Int16Array]",zM="[object Int32Array]",jM="[object Uint8Array]",FM="[object Uint8ClampedArray]",BM="[object Uint16Array]",HM="[object Uint32Array]",Qt={};Qt[kM]=Qt[AM]=Qt[LM]=Qt[DM]=Qt[zM]=Qt[jM]=Qt[FM]=Qt[BM]=Qt[HM]=!0;Qt[yM]=Qt[CM]=Qt[TM]=Qt[SM]=Qt[NM]=Qt[wM]=Qt[$M]=Qt[xM]=Qt[EM]=Qt[IM]=Qt[OM]=Qt[PM]=Qt[RM]=Qt[MM]=Qt[_M]=!1;function WM(e){return bM(e)&&pM(e.length)&&!!Qt[vM(e)]}var VM=WM;function KM(e){return function(t){return e(t)}}var hg=KM,_c={exports:{}};_c.exports;(function(e,t){var n=aC,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;})(_c,_c.exports);var gg=_c.exports,UM=VM,XM=hg,Ap=gg,Lp=Ap&&Ap.isTypedArray,qM=Lp?XM(Lp):UM,fC=qM,YM=QR,QM=ug,ZM=Vr,JM=dg,e_=fg,t_=fC,n_=Object.prototype,r_=n_.hasOwnProperty;function o_(e,t){var n=ZM(e),r=!n&&QM(e),o=!n&&!r&&JM(e),a=!n&&!r&&!o&&t_(e),i=n||r||o||a,s=i?YM(e.length,String):[],l=s.length;for(var c in e)(t||r_.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||e_(c,l)))&&s.push(c);return s}var mC=o_,a_=Object.prototype;function i_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||a_;return e===n}var vg=i_;function s_(e,t){return function(n){return e(t(n))}}var hC=s_,l_=hC,c_=l_(Object.keys,Object),u_=c_,d_=vg,f_=u_,m_=Object.prototype,h_=m_.hasOwnProperty;function g_(e){if(!d_(e))return f_(e);var t=[];for(var n in Object(e))h_.call(e,n)&&n!="constructor"&&t.push(n);return t}var v_=g_,p_=sC,b_=mg;function y_(e){return e!=null&&b_(e.length)&&!p_(e)}var gC=y_,C_=mC,S_=v_,w_=gC;function $_(e){return w_(e)?C_(e):S_(e)}var Js=$_,x_=Zs,E_=Js;function I_(e,t){return e&&x_(t,E_(t),e)}var O_=I_;function P_(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var R_=P_,M_=io,__=vg,T_=R_,N_=Object.prototype,k_=N_.hasOwnProperty;function A_(e){if(!M_(e))return T_(e);var t=__(e),n=[];for(var r in e)r=="constructor"&&(t||!k_.call(e,r))||n.push(r);return n}var L_=A_,D_=mC,z_=L_,j_=gC;function F_(e){return j_(e)?D_(e,!0):z_(e)}var pg=F_,B_=Zs,H_=pg;function W_(e,t){return e&&B_(t,H_(t),e)}var V_=W_,Tc={exports:{}};Tc.exports;(function(e,t){var n=Wr,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,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l;})(Tc,Tc.exports);var G_=Tc.exports;function K_(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var vC=K_;function U_(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 X_=U_;function q_(){return []}var pC=q_,Y_=X_,Q_=pC,Z_=Object.prototype,J_=Z_.propertyIsEnumerable,Dp=Object.getOwnPropertySymbols,eT=Dp?function(e){return e==null?[]:(e=Object(e),Y_(Dp(e),function(t){return J_.call(e,t)}))}:Q_,bg=eT,tT=Zs,nT=bg;function rT(e,t){return tT(e,nT(e),t)}var oT=rT;function aT(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var yg=aT,iT=hC,sT=iT(Object.getPrototypeOf,Object),Cg=sT,lT=yg,cT=Cg,uT=bg,dT=pC,fT=Object.getOwnPropertySymbols,mT=fT?function(e){for(var t=[];e;)lT(t,uT(e)),e=cT(e);return t}:dT,bC=mT,hT=Zs,gT=bC;function vT(e,t){return hT(e,gT(e),t)}var pT=vT,bT=yg,yT=Vr;function CT(e,t,n){var r=t(e);return yT(e)?r:bT(r,n(e))}var yC=CT,ST=yC,wT=bg,$T=Js;function xT(e){return ST(e,$T,wT)}var CC=xT,ET=yC,IT=bC,OT=pg;function PT(e){return ET(e,OT,IT)}var SC=PT,RT=ga,MT=Wr,_T=RT(MT,"DataView"),TT=_T,NT=ga,kT=Wr,AT=NT(kT,"Promise"),LT=AT,DT=ga,zT=Wr,jT=DT(zT,"Set"),wC=jT,FT=ga,BT=Wr,HT=FT(BT,"WeakMap"),WT=HT,pm=TT,bm=ig,ym=LT,Cm=wC,Sm=WT,$C=Ii,Mi=lC,zp="[object Map]",VT="[object Object]",jp="[object Promise]",Fp="[object Set]",Bp="[object WeakMap]",Hp="[object DataView]",GT=Mi(pm),KT=Mi(bm),UT=Mi(ym),XT=Mi(Cm),qT=Mi(Sm),Wo=$C;(pm&&Wo(new pm(new ArrayBuffer(1)))!=Hp||bm&&Wo(new bm)!=zp||ym&&Wo(ym.resolve())!=jp||Cm&&Wo(new Cm)!=Fp||Sm&&Wo(new Sm)!=Bp)&&(Wo=function(e){var t=$C(e),n=t==VT?e.constructor:void 0,r=n?Mi(n):"";if(r)switch(r){case GT:return Hp;case KT:return zp;case UT:return jp;case XT:return Fp;case qT:return Bp}return t});var Wu=Wo,YT=Object.prototype,QT=YT.hasOwnProperty;function ZT(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&QT.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var JT=ZT,eN=Wr,tN=eN.Uint8Array,xC=tN,Wp=xC;function nN(e){var t=new e.constructor(e.byteLength);return new Wp(t).set(new Wp(e)),t}var Sg=nN,rN=Sg;function oN(e,t){var n=t?rN(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var aN=oN,iN=/\w*$/;function sN(e){var t=new e.constructor(e.source,iN.exec(e));return t.lastIndex=e.lastIndex,t}var lN=sN,Vp=Ei,Gp=Vp?Vp.prototype:void 0,Kp=Gp?Gp.valueOf:void 0;function cN(e){return Kp?Object(Kp.call(e)):{}}var uN=cN,dN=Sg;function fN(e,t){var n=t?dN(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var mN=fN,hN=Sg,gN=aN,vN=lN,pN=uN,bN=mN,yN="[object Boolean]",CN="[object Date]",SN="[object Map]",wN="[object Number]",$N="[object RegExp]",xN="[object Set]",EN="[object String]",IN="[object Symbol]",ON="[object ArrayBuffer]",PN="[object DataView]",RN="[object Float32Array]",MN="[object Float64Array]",_N="[object Int8Array]",TN="[object Int16Array]",NN="[object Int32Array]",kN="[object Uint8Array]",AN="[object Uint8ClampedArray]",LN="[object Uint16Array]",DN="[object Uint32Array]";function zN(e,t,n){var r=e.constructor;switch(t){case ON:return hN(e);case yN:case CN:return new r(+e);case PN:return gN(e,n);case RN:case MN:case _N:case TN:case NN:case kN:case AN:case LN:case DN:return bN(e,n);case SN:return new r;case wN:case EN:return new r(e);case $N:return vN(e);case xN:return new r;case IN:return pN(e)}}var jN=zN,FN=io,Up=Object.create,BN=function(){function e(){}return function(t){if(!FN(t))return {};if(Up)return Up(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),HN=BN,WN=HN,VN=Cg,GN=vg;function KN(e){return typeof e.constructor=="function"&&!GN(e)?WN(VN(e)):{}}var UN=KN,XN=Wu,qN=Lo,YN="[object Map]";function QN(e){return qN(e)&&XN(e)==YN}var ZN=QN,JN=ZN,e3=hg,Xp=gg,qp=Xp&&Xp.isMap,t3=qp?e3(qp):JN,n3=t3,r3=Wu,o3=Lo,a3="[object Set]";function i3(e){return o3(e)&&r3(e)==a3}var s3=i3,l3=s3,c3=hg,Yp=gg,Qp=Yp&&Yp.isSet,u3=Qp?c3(Qp):l3,d3=u3,f3=lg,m3=zR,h3=cg,g3=O_,v3=V_,p3=G_,b3=vC,y3=oT,C3=pT,S3=CC,w3=SC,$3=Wu,x3=JT,E3=jN,I3=UN,O3=Vr,P3=dg,R3=n3,M3=io,_3=d3,T3=Js,N3=pg,k3=1,A3=2,L3=4,EC="[object Arguments]",D3="[object Array]",z3="[object Boolean]",j3="[object Date]",F3="[object Error]",IC="[object Function]",B3="[object GeneratorFunction]",H3="[object Map]",W3="[object Number]",OC="[object Object]",V3="[object RegExp]",G3="[object Set]",K3="[object String]",U3="[object Symbol]",X3="[object WeakMap]",q3="[object ArrayBuffer]",Y3="[object DataView]",Q3="[object Float32Array]",Z3="[object Float64Array]",J3="[object Int8Array]",ek="[object Int16Array]",tk="[object Int32Array]",nk="[object Uint8Array]",rk="[object Uint8ClampedArray]",ok="[object Uint16Array]",ak="[object Uint32Array]",Ut={};Ut[EC]=Ut[D3]=Ut[q3]=Ut[Y3]=Ut[z3]=Ut[j3]=Ut[Q3]=Ut[Z3]=Ut[J3]=Ut[ek]=Ut[tk]=Ut[H3]=Ut[W3]=Ut[OC]=Ut[V3]=Ut[G3]=Ut[K3]=Ut[U3]=Ut[nk]=Ut[rk]=Ut[ok]=Ut[ak]=!0;Ut[F3]=Ut[IC]=Ut[X3]=!1;function hc(e,t,n,r,o,a){var i,s=t&k3,l=t&A3,c=t&L3;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!M3(e))return e;var u=O3(e);if(u){if(i=x3(e),!s)return b3(e,i)}else {var d=$3(e),f=d==IC||d==B3;if(P3(e))return p3(e,s);if(d==OC||d==EC||f&&!o){if(i=l||f?{}:I3(e),!s)return l?C3(e,v3(i,e)):y3(e,g3(i,e))}else {if(!Ut[d])return o?e:{};i=E3(e,d,s);}}a||(a=new f3);var h=a.get(e);if(h)return h;a.set(e,i),_3(e)?e.forEach(function(p){i.add(hc(p,t,n,p,e,a));}):R3(e)&&e.forEach(function(p,b){i.set(b,hc(p,t,n,b,e,a));});var g=c?l?w3:S3:l?N3:T3,v=u?void 0:g(e);return m3(v||e,function(p,b){v&&(b=p,p=e[b]),h3(i,b,hc(p,t,n,b,e,a));}),i}var ik=hc,sk=Ii,lk=Lo,ck="[object Symbol]";function uk(e){return typeof e=="symbol"||lk(e)&&sk(e)==ck}var Vu=uk,dk=Vr,fk=Vu,mk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hk=/^\w*$/;function gk(e,t){if(dk(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||fk(e)?!0:hk.test(e)||!mk.test(e)||t!=null&&e in Object(t)}var wg=gk,PC=sg,vk="Expected a function";function $g(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(vk);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($g.Cache||PC),n}$g.Cache=PC;var pk=$g,bk=pk,yk=500;function Ck(e){var t=bk(e,function(r){return n.size===yk&&n.clear(),r}),n=t.cache;return t}var Sk=Ck,wk=Sk,$k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xk=/\\(\\)?/g,Ek=wk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($k,function(n,r,o,a){t.push(o?a.replace(xk,"$1"):r||n);}),t}),Ik=Ek,Zp=Ei,Ok=og,Pk=Vr,Rk=Vu,Mk=1/0,Jp=Zp?Zp.prototype:void 0,eb=Jp?Jp.toString:void 0;function RC(e){if(typeof e=="string")return e;if(Pk(e))return Ok(e,RC)+"";if(Rk(e))return eb?eb.call(e):"";var t=e+"";return t=="0"&&1/e==-Mk?"-0":t}var _k=RC,Tk=_k;function Nk(e){return e==null?"":Tk(e)}var kk=Nk,Ak=Vr,Lk=wg,Dk=Ik,zk=kk;function jk(e,t){return Ak(e)?e:Lk(e,t)?[e]:Dk(zk(e))}var _i=jk;function Fk(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Bk=Fk,Hk=Vu,Wk=1/0;function Vk(e){if(typeof e=="string"||Hk(e))return e;var t=e+"";return t=="0"&&1/e==-Wk?"-0":t}var Ti=Vk,Gk=_i,Kk=Ti;function Uk(e,t){t=Gk(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Kk(t[n++])];return n&&n==r?e:void 0}var Gu=Uk;function Xk(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 qk=Xk,Yk=Gu,Qk=qk;function Zk(e,t){return t.length<2?e:Yk(e,Qk(t,0,-1))}var Jk=Zk,e4=_i,t4=Bk,n4=Jk,r4=Ti;function o4(e,t){return t=e4(t,e),e=n4(e,t),e==null||delete e[r4(t4(t))]}var a4=o4,i4=Ii,s4=Cg,l4=Lo,c4="[object Object]",u4=Function.prototype,d4=Object.prototype,MC=u4.toString,f4=d4.hasOwnProperty,m4=MC.call(Object);function h4(e){if(!l4(e)||i4(e)!=c4)return !1;var t=s4(e);if(t===null)return !0;var n=f4.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&MC.call(n)==m4}var g4=h4,v4=g4;function p4(e){return v4(e)?void 0:e}var b4=p4,tb=Ei,y4=ug,C4=Vr,nb=tb?tb.isConcatSpreadable:void 0;function S4(e){return C4(e)||y4(e)||!!(nb&&e&&e[nb])}var w4=S4,$4=yg,x4=w4;function _C(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=x4),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?_C(s,t-1,n,r,o):$4(o,s):r||(o[o.length]=s);}return o}var E4=_C,I4=E4;function O4(e){var t=e==null?0:e.length;return t?I4(e,1):[]}var P4=O4;function R4(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 M4=R4,_4=M4,rb=Math.max;function T4(e,t,n){return t=rb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=rb(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),_4(e,this,s)}}var N4=T4;function k4(e){return function(){return e}}var A4=k4;function L4(e){return e}var TC=L4,D4=A4,ob=cC,z4=TC,j4=ob?function(e,t){return ob(e,"toString",{configurable:!0,enumerable:!1,value:D4(t),writable:!0})}:z4,F4=j4,B4=800,H4=16,W4=Date.now;function V4(e){var t=0,n=0;return function(){var r=W4(),o=H4-(r-n);if(n=r,o>0){if(++t>=B4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var G4=V4,K4=F4,U4=G4,X4=U4(K4),q4=X4,Y4=P4,Q4=N4,Z4=q4;function J4(e){return Z4(Q4(e,void 0,Y4),e+"")}var NC=J4,eA=og,tA=ik,nA=a4,rA=_i,oA=Zs,aA=b4,iA=NC,sA=SC,lA=1,cA=2,uA=4,dA=iA(function(e,t){var n={};if(e==null)return n;var r=!1;t=eA(t,function(a){return a=rA(a,e),r||(r=a.length>1),a}),oA(e,sA(e),n),r&&(n=tA(n,lA|cA|uA,aA));for(var o=t.length;o--;)nA(n,t[o]);return n}),fA=dA;const mA=Rn(fA);var hA=Wr,gA=function(){return hA.Date.now()},vA=gA,pA=/\s/;function bA(e){for(var t=e.length;t--&&pA.test(e.charAt(t)););return t}var yA=bA,CA=yA,SA=/^\s+/;function wA(e){return e&&e.slice(0,CA(e)+1).replace(SA,"")}var $A=wA,xA=$A,ab=io,EA=Vu,ib=NaN,IA=/^[-+]0x[0-9a-f]+$/i,OA=/^0b[01]+$/i,PA=/^0o[0-7]+$/i,RA=parseInt;function MA(e){if(typeof e=="number")return e;if(EA(e))return ib;if(ab(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ab(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=xA(e);var n=OA.test(e);return n||PA.test(e)?RA(e.slice(2),n?2:8):IA.test(e)?ib:+e}var kC=MA,_A=io,af=vA,sb=kC,TA="Expected a function",NA=Math.max,kA=Math.min;function AA(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(TA);t=sb(t)||0,_A(n)&&(u=!!n.leading,d="maxWait"in n,a=d?NA(sb(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function h($){var S=r,E=o;return r=o=void 0,c=$,i=e.apply(E,S),i}function g($){return c=$,s=setTimeout(b,t),u?h($):i}function v($){var S=$-l,E=$-c,I=t-S;return d?kA(I,a-E):I}function p($){var S=$-l,E=$-c;return l===void 0||S>=t||S<0||d&&E>=a}function b(){var $=af();if(p($))return y($);s=setTimeout(b,v($));}function y($){return s=void 0,f&&r?h($):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function w(){return s===void 0?i:y(af())}function x(){var $=af(),S=p($);if(r=arguments,o=this,l=$,S){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),i}return x.cancel=C,x.flush=w,x}var AC=AA;const LA=Rn(AC);var DA=AC,zA=io,jA="Expected a function";function FA(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jA);return zA(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),DA(e,t,{leading:r,maxWait:t,trailing:o})}var BA=FA;const LC=Rn(BA);var HA=cg,WA=_i,VA=fg,lb=io,GA=Ti;function KA(e,t,n,r){if(!lb(e))return e;t=WA(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var l=GA(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=lb(u)?u:VA(t[o+1])?[]:{});}HA(s,l,c),s=s[l];}return e}var UA=KA,XA=Gu,qA=UA,YA=_i;function QA(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=XA(e,i);n(s,i)&&qA(a,YA(i,e),s);}return a}var ZA=QA;function JA(e,t){return e!=null&&t in Object(e)}var eL=JA,tL=_i,nL=ug,rL=Vr,oL=fg,aL=mg,iL=Ti;function sL(e,t,n){t=tL(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=iL(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&&aL(o)&&oL(i,o)&&(rL(e)||nL(e)))}var lL=sL,cL=eL,uL=lL;function dL(e,t){return e!=null&&uL(e,t,cL)}var DC=dL,fL=ZA,mL=DC;function hL(e,t){return fL(e,t,function(n,r){return mL(e,r)})}var gL=hL,vL=gL,pL=NC,bL=pL(function(e,t){return e==null?{}:vL(e,t)}),yL=bL;const xg=Rn(yL);var wm={exports:{}},sf,cb;function CL(){if(cb)return sf;cb=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;sf=function(u,d){d=d||{};var f=typeof u;if(f==="string"&&u.length>0)return i(u);if(f==="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 f=parseFloat(d[1]),h=(d[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return f*a;case"weeks":case"week":case"w":return f*o;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;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,f,h){var g=d>=f*1.5;return Math.round(u/f)+" "+h+(g?"s":"")}return sf}function SL(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=i,n.humanize=CL(),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 f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,f=null,h,g;function v(...p){if(!v.enabled)return;const b=v,y=Number(new Date),C=y-(d||y);b.diff=C,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let w=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,($,S)=>{if($==="%%")return "%";w++;const E=n.formatters[S];if(typeof E=="function"){const I=p[w];$=E.call(b,I),p.splice(w,1),w--;}return $}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return v.namespace=u,v.useColors=n.useColors(),v.color=n.selectColor(u),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(u)),g),set:p=>{f=p;}}),typeof n.init=="function"&&n.init(v),v}function r(u,d){const f=n(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const f=(typeof u=="string"?u:"").split(/[\s,]+/),h=f.length;for(d=0;d<h;d++)f[d]&&(u=f[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,f;for(d=0,f=n.skips.length;d<f;d++)if(n.skips[d].test(u))return !1;for(d=0,f=n.names.length;d<f;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 wL=SL;(function(e,t){var n={};t.formatArgs=o,t.save=a,t.load=i,t.useColors=r,t.storage=s(),t.destroy=(()=>{let c=!1;return ()=>{c||(c=!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 r(){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 o(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,f=0;c[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(d++,h==="%c"&&(f=d));}),c.splice(f,0,u);}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug");}catch{}}function i(){let c;try{c=t.storage.getItem("debug");}catch{}return !c&&typeof process<"u"&&"env"in process&&(c=n.DEBUG),c}function s(){try{return localStorage}catch{}}e.exports=wL(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return "[UnexpectedJSONParseError]: "+u.message}};})(wm,wm.exports);var $L=wm.exports;const xL=Rn($L),rn="bilibili-app-recommend",zC="bilibili_app_recommend",va=xL(rn),jC="https://api.bilibili.com",FC="https://app.bilibili.com",li={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},pa=`${rn}-root`;let BC=!1;function EL(e){BC=e;}var HC={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ua,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",g="date",v="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(A){var L=["th","st","nd","rd"],T=A%100;return "["+A+(L[(T-20)%10]||L[T]||L[0])+"]"}},C=function(A,L,T){var P=String(A);return !P||P.length>=L?A:""+Array(L+1-P.length).join(T)+A},w={s:C,z:function(A){var L=-A.utcOffset(),T=Math.abs(L),P=Math.floor(T/60),_=T%60;return (L<=0?"+":"-")+C(P,2,"0")+":"+C(_,2,"0")},m:function A(L,T){if(L.date()<T.date())return -A(T,L);var P=12*(T.year()-L.year())+(T.month()-L.month()),_=L.clone().add(P,d),z=T-_<0,j=L.clone().add(P+(z?-1:1),d);return +(-(P+(T-_)/(z?_-j:j-_))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return {M:d,y:h,w:u,d:c,D:g,h:l,m:s,s:i,ms:a,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},x="en",$={};$[x]=y;var S="$isDayjsObject",E=function(A){return A instanceof R||!(!A||!A[S])},I=function A(L,T,P){var _;if(!L)return x;if(typeof L=="string"){var z=L.toLowerCase();$[z]&&(_=z),T&&($[z]=T,_=z);var j=L.split("-");if(!_&&j.length>1)return A(j[0])}else {var H=L.name;$[H]=L,_=H;}return !P&&_&&(x=_),_||!P&&x},O=function(A,L){if(E(A))return A.clone();var T=typeof L=="object"?L:{};return T.date=A,T.args=arguments,new R(T)},M=w;M.l=I,M.i=E,M.w=function(A,L){return O(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var R=function(){function A(T){this.$L=I(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[S]=!0;}var L=A.prototype;return L.parse=function(T){this.$d=function(P){var _=P.date,z=P.utc;if(_===null)return new Date(NaN);if(M.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var j=_.match(p);if(j){var H=j[2]-1||0,B=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)):new Date(j[1],H,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)}}return new Date(_)}(T),this.init();},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},L.$utils=function(){return M},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(T,P){var _=O(T);return this.startOf(P)<=_&&_<=this.endOf(P)},L.isAfter=function(T,P){return O(T)<this.startOf(P)},L.isBefore=function(T,P){return this.endOf(P)<O(T)},L.$g=function(T,P,_){return M.u(T)?this[P]:this.set(_,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,P){var _=this,z=!!M.u(P)||P,j=M.p(T),H=function(Z,U){var ue=M.w(_.$u?Date.UTC(_.$y,U,Z):new Date(_.$y,U,Z),_);return z?ue:ue.endOf(c)},B=function(Z,U){return M.w(_.toDate()[Z].apply(_.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(U)),_)},V=this.$W,G=this.$M,X=this.$D,Q="set"+(this.$u?"UTC":"");switch(j){case h:return z?H(1,0):H(31,11);case d:return z?H(1,G):H(0,G+1);case u:var ee=this.$locale().weekStart||0,W=(V<ee?V+7:V)-ee;return H(z?X-W:X+(6-W),G);case c:case g: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()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,P){var _,z=M.p(T),j="set"+(this.$u?"UTC":""),H=(_={},_[c]=j+"Date",_[g]=j+"Date",_[d]=j+"Month",_[h]=j+"FullYear",_[l]=j+"Hours",_[s]=j+"Minutes",_[i]=j+"Seconds",_[a]=j+"Milliseconds",_)[z],B=z===c?this.$D+(P-this.$W):P;if(z===d||z===h){var V=this.clone().set(g,1);V.$d[H](B),V.init(),this.$d=V.set(g,Math.min(this.$D,V.daysInMonth())).$d;}else H&&this.$d[H](B);return this.init(),this},L.set=function(T,P){return this.clone().$set(T,P)},L.get=function(T){return this[M.p(T)]()},L.add=function(T,P){var _,z=this;T=Number(T);var j=M.p(P),H=function(G){var X=O(z);return M.w(X.date(X.date()+Math.round(G*T)),z)};if(j===d)return this.set(d,this.$M+T);if(j===h)return this.set(h,this.$y+T);if(j===c)return H(1);if(j===u)return H(7);var B=(_={},_[s]=r,_[l]=o,_[i]=n,_)[j]||1,V=this.$d.getTime()+T*B;return M.w(V,this)},L.subtract=function(T,P){return this.add(-1*T,P)},L.format=function(T){var P=this,_=this.$locale();if(!this.isValid())return _.invalidDate||v;var z=T||"YYYY-MM-DDTHH:mm:ssZ",j=M.z(this),H=this.$H,B=this.$m,V=this.$M,G=_.weekdays,X=_.months,Q=_.meridiem,ee=function(U,ue,le,ie){return U&&(U[ue]||U(P,z))||le[ue].slice(0,ie)},W=function(U){return M.s(H%12||12,U,"0")},Z=Q||function(U,ue,le){var ie=U<12?"AM":"PM";return le?ie.toLowerCase():ie};return z.replace(b,function(U,ue){return ue||function(le){switch(le){case"YY":return String(P.$y).slice(-2);case"YYYY":return M.s(P.$y,4,"0");case"M":return V+1;case"MM":return M.s(V+1,2,"0");case"MMM":return ee(_.monthsShort,V,X,3);case"MMMM":return ee(X,V);case"D":return P.$D;case"DD":return M.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return ee(_.weekdaysMin,P.$W,G,2);case"ddd":return ee(_.weekdaysShort,P.$W,G,3);case"dddd":return G[P.$W];case"H":return String(H);case"HH":return M.s(H,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return Z(H,B,!0);case"A":return Z(H,B,!1);case"m":return String(B);case"mm":return M.s(B,2,"0");case"s":return String(P.$s);case"ss":return M.s(P.$s,2,"0");case"SSS":return M.s(P.$ms,3,"0");case"Z":return j}return null}(U)||j.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,P,_){var z,j=this,H=M.p(P),B=O(T),V=(B.utcOffset()-this.utcOffset())*r,G=this-B,X=function(){return M.m(j,B)};switch(H){case h:z=X()/12;break;case d:z=X();break;case f:z=X()/3;break;case u:z=(G-V)/6048e5;break;case c:z=(G-V)/864e5;break;case l:z=G/o;break;case s:z=G/r;break;case i:z=G/n;break;default:z=G;}return _?z:M.a(z)},L.daysInMonth=function(){return this.endOf(d).$D},L.$locale=function(){return $[this.$L]},L.locale=function(T,P){if(!T)return this.$L;var _=this.clone(),z=I(T,P,!0);return z&&(_.$L=z),_},L.clone=function(){return M.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A}(),k=R.prototype;return O.prototype=k,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",g]].forEach(function(A){k[A[1]]=function(L){return this.$g(L,A[0],A[1])};}),O.extend=function(A,L){return A.$i||(A(L,R,O),A.$i=!0),O},O.locale=I,O.isDayjs=E,O.unix=function(A){return O(1e3*A)},O.en=$[x],O.Ls=$,O.p={},O});})(HC);var IL=HC.exports;const Do=Rn(IL);var WC={exports:{}},VC={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}};VC.exports=t;})();var OL=VC.exports,$m={utf8:{stringToBytes:function(e){return $m.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape($m.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("")}}},ub=$m;/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */var PL=function(e){return e!=null&&(GC(e)||RL(e)||!!e._isBuffer)};function GC(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function RL(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&GC(e.slice(0,0))}(function(){var e=OL,t=ub.utf8,n=PL,r=ub.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,f=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 g=o._ff,v=o._gg,p=o._hh,b=o._ii,h=0;h<s.length;h+=16){var y=c,C=u,w=d,x=f;c=g(c,u,d,f,s[h+0],7,-680876936),f=g(f,c,u,d,s[h+1],12,-389564586),d=g(d,f,c,u,s[h+2],17,606105819),u=g(u,d,f,c,s[h+3],22,-1044525330),c=g(c,u,d,f,s[h+4],7,-176418897),f=g(f,c,u,d,s[h+5],12,1200080426),d=g(d,f,c,u,s[h+6],17,-1473231341),u=g(u,d,f,c,s[h+7],22,-45705983),c=g(c,u,d,f,s[h+8],7,1770035416),f=g(f,c,u,d,s[h+9],12,-1958414417),d=g(d,f,c,u,s[h+10],17,-42063),u=g(u,d,f,c,s[h+11],22,-1990404162),c=g(c,u,d,f,s[h+12],7,1804603682),f=g(f,c,u,d,s[h+13],12,-40341101),d=g(d,f,c,u,s[h+14],17,-1502002290),u=g(u,d,f,c,s[h+15],22,1236535329),c=v(c,u,d,f,s[h+1],5,-165796510),f=v(f,c,u,d,s[h+6],9,-1069501632),d=v(d,f,c,u,s[h+11],14,643717713),u=v(u,d,f,c,s[h+0],20,-373897302),c=v(c,u,d,f,s[h+5],5,-701558691),f=v(f,c,u,d,s[h+10],9,38016083),d=v(d,f,c,u,s[h+15],14,-660478335),u=v(u,d,f,c,s[h+4],20,-405537848),c=v(c,u,d,f,s[h+9],5,568446438),f=v(f,c,u,d,s[h+14],9,-1019803690),d=v(d,f,c,u,s[h+3],14,-187363961),u=v(u,d,f,c,s[h+8],20,1163531501),c=v(c,u,d,f,s[h+13],5,-1444681467),f=v(f,c,u,d,s[h+2],9,-51403784),d=v(d,f,c,u,s[h+7],14,1735328473),u=v(u,d,f,c,s[h+12],20,-1926607734),c=p(c,u,d,f,s[h+5],4,-378558),f=p(f,c,u,d,s[h+8],11,-2022574463),d=p(d,f,c,u,s[h+11],16,1839030562),u=p(u,d,f,c,s[h+14],23,-35309556),c=p(c,u,d,f,s[h+1],4,-1530992060),f=p(f,c,u,d,s[h+4],11,1272893353),d=p(d,f,c,u,s[h+7],16,-155497632),u=p(u,d,f,c,s[h+10],23,-1094730640),c=p(c,u,d,f,s[h+13],4,681279174),f=p(f,c,u,d,s[h+0],11,-358537222),d=p(d,f,c,u,s[h+3],16,-722521979),u=p(u,d,f,c,s[h+6],23,76029189),c=p(c,u,d,f,s[h+9],4,-640364487),f=p(f,c,u,d,s[h+12],11,-421815835),d=p(d,f,c,u,s[h+15],16,530742520),u=p(u,d,f,c,s[h+2],23,-995338651),c=b(c,u,d,f,s[h+0],6,-198630844),f=b(f,c,u,d,s[h+7],10,1126891415),d=b(d,f,c,u,s[h+14],15,-1416354905),u=b(u,d,f,c,s[h+5],21,-57434055),c=b(c,u,d,f,s[h+12],6,1700485571),f=b(f,c,u,d,s[h+3],10,-1894986606),d=b(d,f,c,u,s[h+10],15,-1051523),u=b(u,d,f,c,s[h+1],21,-2054922799),c=b(c,u,d,f,s[h+8],6,1873313359),f=b(f,c,u,d,s[h+15],10,-30611744),d=b(d,f,c,u,s[h+6],15,-1560198380),u=b(u,d,f,c,s[h+13],21,1309151649),c=b(c,u,d,f,s[h+4],6,-145523070),f=b(f,c,u,d,s[h+11],10,-1120210379),d=b(d,f,c,u,s[h+2],15,718787259),u=b(u,d,f,c,s[h+9],21,-343485551),c=c+y>>>0,u=u+C>>>0,d=d+w>>>0,f=f+x>>>0;}return e.endian([c,u,d,f])};o._ff=function(a,i,s,l,c,u,d){var f=a+(i&s|~i&l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._gg=function(a,i,s,l,c,u,d){var f=a+(i&l|s&~l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._hh=function(a,i,s,l,c,u,d){var f=a+(i^s^l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._ii=function(a,i,s,l,c,u,d){var f=a+(s^(i|~l))+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._blocksize=16,o._digestsize=16,WC.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 ML=WC.exports;const KC=Rn(ML);var ci=1e3,ui=ci*60,di=ui*60,la=di*24,_L=la*7,TL=la*365.25,NL=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return kL(e);if(n==="number"&&isFinite(e))return t.long?LL(e):AL(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function kL(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*TL;case"weeks":case"week":case"w":return n*_L;case"days":case"day":case"d":return n*la;case"hours":case"hour":case"hrs":case"hr":case"h":return n*di;case"minutes":case"minute":case"mins":case"min":case"m":return n*ui;case"seconds":case"second":case"secs":case"sec":case"s":return n*ci;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function AL(e){var t=Math.abs(e);return t>=la?Math.round(e/la)+"d":t>=di?Math.round(e/di)+"h":t>=ui?Math.round(e/ui)+"m":t>=ci?Math.round(e/ci)+"s":e+"ms"}function LL(e){var t=Math.abs(e);return t>=la?Bl(e,t,la,"day"):t>=di?Bl(e,t,di,"hour"):t>=ui?Bl(e,t,ui,"minute"):t>=ci?Bl(e,t,ci,"second"):e+" ms"}function Bl(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const el=Rn(NL),DL=[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 zL(e){let t="";return DL.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function jL(e){const{img_key:t,sub_key:n}=await FL(),r=zL(t+n),o=Math.round(Date.now()/1e3),a=/[!'()*]/g,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=KC(s+r);return {wts:o,w_rid:l}}let lf,cf,uf;async function FL(){const e=()=>Do().format("YYYYMMDD");if(lf&&cf&&uf&&uf===e()&&Date.now()-cf<=el("6h"))return lf;const r=(await Xh.get("/x/web-interface/nav",{baseURL:jC})).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 lf=i,uf=e(),cf=Date.now(),i}function UC(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),KC(r.toString()+n)}const on=Xh.create({baseURL:jC,withCredentials:!0});on.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 jL(e.params)}),e});function Gr(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const Ku=Xh.create({adapter:jE}),db=li.appkey,BL=li.appsec;Ku.interceptors.request.use(function(e){return e.params={appkey:db,access_key:xt.accessKey||"",...e.params},e.params.sign=UC(e.params,db,BL),e});Ku.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});const HL=[{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)"}],XC=`--${rn}-color-primary`,Ir=`var(${XC})`,Nc={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},qC={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function WL(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 YC="UP长期洗涤",VL=WL(YC,` #0545b2 理想之蓝 #f4cd00 柠檬黄 #ef2729 石榴红 #f89c00 鹿箭 #233728 黛绿 #f2b9b7 和熙粉 #f3cc91 芝士黄 #6b4c68 葡萄紫 #ff7227 落日橙 #004d62 碧海天 #23909b 洗碧空 #aeb400 芥丝绿 #425a17 箬叶青 #002FA7 克莱因蓝 #003153 普鲁士蓝 #01847F 马尔斯绿 #FBD26A 申布伦黄 #470024 勃艮第红 #492D22 凡戴克棕 `),QC=[{name:"预设",themes:[Nc,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},qC]},{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:HL,tooltip:be(It,{children:["提取自"," ",D("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),D("br",{}),"Apache License 2.0"]})},{name:YC,themes:VL,tooltip:be(It,{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"})]})}],GL=QC.map(e=>e.themes).flat();function Eg(){let{theme:e,colorPickerThemeSelectedColor:t}=en();return e||(e=Nc.id),m.useMemo(()=>{const n=GL.find(r=>r.id===e)||Nc;return n.id===qC.id&&t&&(n.colorPrimary=t),n},[e,t])}function fb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function mb(e,t,n){var r=[],o=ng(e,r,n);return r.length<2?n:o+t(r)}var KL=function(t){var n=K1(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=ei(c,n.registered,void 0);return rg(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=ei(c,n.registered),f="animation-"+d.name;return fb(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ei(c,n.registered);fb(n,d);},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return mb(n.registered,r,UL(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:ng.bind(null,n.registered),merge:mb.bind(null,n.registered,r)}},UL=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},XL=KL({key:"css"}),kc=XL.css;const qL=kc("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:",Ir,";border-radius:6px;white-space:pre-wrap;",""),YL=kc({name:"1azakc",styles:"text-align:center"});function Ot(e,t=2e3){const n=document.createElement("div");n.classList.add(qL,pa),n.innerText=e,!e.includes(` `)&&!e.includes("<br")&&n.classList.add(YL),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const QL="请求失败, 请重试 !!!",ZC="操作失败, 请重试 !!!";function JC(){return Ot(QL)}function eS(){return Ot(ZC)}const ZL=Symbol(),Ig=Symbol(),Ui="a",ls="w";let JL=(e,t)=>new Proxy(e,t);const xm=Object.getPrototypeOf,Em=new WeakMap,tS=e=>e&&(Em.has(e)?Em.get(e):xm(e)===Object.prototype||xm(e)===Array.prototype),Ac=e=>typeof e=="object"&&e!==null,e5=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(xm(e),t)},Og=e=>e[Ig]||e,nS=(e,t,n,r)=>{if(!tS(e))return e;let o=r&&r.get(e);if(!o){const l=Og(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,e5(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 f=(g,v)=>{if(!d){let p=u[Ui].get(l);if(p||(p={},u[Ui].set(l,p)),g===ls)p[ls]=!0;else {let b=p[g];b||(b=new Set,p[g]=b),b.add(v);}}},h={get:(g,v)=>v===Ig?l:(f("k",v),nS(Reflect.get(g,v),u[Ui],u.c,u.t)),has:(g,v)=>v===ZL?(d=!0,u[Ui].delete(l),!0):(f("h",v),Reflect.has(g,v)),getOwnPropertyDescriptor:(g,v)=>(f("o",v),Reflect.getOwnPropertyDescriptor(g,v)),ownKeys:g=>(f(ls),Reflect.ownKeys(g))};return c&&(h.set=h.deleteProperty=()=>!1),[h,u]})(a,!!i),s[1].p=JL(i||a,s[0]),n&&n.set(a,s)),s[1][Ui]=t,s[1].c=n,s[1].t=r,s[1].p},rS=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Ac(e)||!Ac(t))return !0;const o=n.get(Og(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[ls]===!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=rS(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},t5=e=>tS(e)&&e[Ig]||null,hb=(e,t=!0)=>{Em.set(e,t);},n5=(e,t,n)=>{const r=[],o=new WeakSet,a=(i,s)=>{if(o.has(i))return;Ac(i)&&o.add(i);const l=Ac(i)&&t.get(Og(i));if(l){var c,u;if((c=l.h)==null||c.forEach(f=>{const h=`:has(${String(f)})`;r.push(s?[...s,h]:[h]);}),l[ls]===!0){const f=":ownKeys";r.push(s?[...s,f]:[f]);}else {var d;(d=l.o)==null||d.forEach(f=>{const h=`:hasOwn(${String(f)})`;r.push(s?[...s,h]:[h]);});}(u=l.k)==null||u.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDescriptor(i,f)||{}))||a(i[f],s?[...s,f]:[f]);});}else s&&r.push(s);};return a(e),r};var Lc={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const df=e=>typeof e=="object"&&e!==null,xo=new WeakMap,Hl=new WeakSet,r5=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>df(c)&&!Hl.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 f=o.get(c);if((f==null?void 0:f[0])===u)return f[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return hb(h,!0),o.set(c,[u,h]),Reflect.ownKeys(c).forEach(g=>{if(Object.getOwnPropertyDescriptor(h,g))return;const v=Reflect.get(c,g),{enumerable:p}=Reflect.getOwnPropertyDescriptor(c,g),b={value:v,enumerable:p,configurable:!0};if(Hl.has(v))hb(v,!1);else if(v instanceof Promise)delete b.value,b.get=()=>d(v);else if(xo.has(v)){const[y,C]=xo.get(v);b.value=a(y,C(),d);}Object.defineProperty(h,g,b);}),Object.preventExtensions(h)},i=new WeakMap,s=[1,1],l=c=>{if(!df(c))throw new Error("object required");const u=i.get(c);if(u)return u;let d=s[0];const f=new Set,h=(I,O=++s[0])=>{d!==O&&(d=O,f.forEach(M=>M(I,O)));};let g=s[1];const v=(I=++s[1])=>(g!==I&&!f.size&&(g=I,b.forEach(([O])=>{const M=O[1](I);M>d&&(d=M);})),d),p=I=>(O,M)=>{const R=[...O];R[1]=[I,...R[1]],h(R,M);},b=new Map,y=(I,O)=>{if((Lc?"production":void 0)!=="production"&&b.has(I))throw new Error("prop listener already exists");if(f.size){const M=O[3](p(I));b.set(I,[O,M]);}else b.set(I,[O]);},C=I=>{var O;const M=b.get(I);M&&(b.delete(I),(O=M[1])==null||O.call(M));},w=I=>(f.add(I),f.size===1&&b.forEach(([M,R],k)=>{if((Lc?"production":void 0)!=="production"&&R)throw new Error("remove already exists");const A=M[3](p(k));b.set(k,[M,A]);}),()=>{f.delete(I),f.size===0&&b.forEach(([M,R],k)=>{R&&(R(),b.set(k,[M]));});}),x=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),S=t(x,{deleteProperty(I,O){const M=Reflect.get(I,O);C(O);const R=Reflect.deleteProperty(I,O);return R&&h(["delete",[O],M]),R},set(I,O,M,R){const k=Reflect.has(I,O),A=Reflect.get(I,O,R);if(k&&(e(A,M)||i.has(M)&&e(A,i.get(M))))return !0;C(O),df(M)&&(M=t5(M)||M);let L=M;if(M instanceof Promise)M.then(T=>{M.status="fulfilled",M.value=T,h(["resolve",[O],T]);}).catch(T=>{M.status="rejected",M.reason=T,h(["reject",[O],T]);});else {!xo.has(M)&&n(M)&&(L=l(M));const T=!Hl.has(L)&&xo.get(L);T&&y(O,T);}return Reflect.set(I,O,L,R),h(["set",[O],M,A]),!0}});i.set(c,S);const E=[x,v,a,w];return xo.set(S,E),Reflect.ownKeys(c).forEach(I=>{const O=Object.getOwnPropertyDescriptor(c,I);"value"in O&&(S[I]=c[I],delete O.value,delete O.writable),Object.defineProperty(x,I,O);}),S})=>[l,xo,Hl,e,t,n,r,o,a,i,s],[o5]=r5();function Zn(e={}){return o5(e)}function Uu(e,t,n){const r=xo.get(e);(Lc?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");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 Ms(e,t){const n=xo.get(e);(Lc?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,a]=n;return a(r,o(),t)}var oS={exports:{}},aS={};/** * @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 fi=m;function a5(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var i5=typeof Object.is=="function"?Object.is:a5,s5=fi.useState,l5=fi.useEffect,c5=fi.useLayoutEffect,u5=fi.useDebugValue;function d5(e,t){var n=t(),r=s5({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return c5(function(){o.value=n,o.getSnapshot=t,ff(o)&&a({inst:o});},[e,n,t]),l5(function(){return ff(o)&&a({inst:o}),e(function(){ff(o)&&a({inst:o});})},[e]),u5(n),n}function ff(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !i5(e,n)}catch{return !0}}function f5(e,t){return t()}var m5=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f5:d5;aS.useSyncExternalStore=fi.useSyncExternalStore!==void 0?fi.useSyncExternalStore:m5;oS.exports=aS;var h5=oS.exports;const g5=Rn(h5);var v5={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:gb}=m,{useSyncExternalStore:p5}=g5,b5=(e,t)=>{const n=m.useRef();m.useEffect(()=>{n.current=n5(e,t,!0);}),m.useDebugValue(n.current);},y5=new WeakMap;function Jn(e,t){const n=t==null?void 0:t.sync,r=m.useRef(),o=m.useRef();let a=!0;const i=p5(m.useCallback(c=>{const u=Uu(e,c,n);return c(),u},[e,n]),()=>{const c=Ms(e,gb);try{if(!a&&r.current&&o.current&&!rS(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Ms(e,gb));a=!1;const s=new WeakMap;m.useEffect(()=>{r.current=i,o.current=s;}),(v5?"production":void 0)!=="production"&&b5(i,s);const l=m.useMemo(()=>new WeakMap,[]);return nS(i,s,l,y5)}function Pg(){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 Ni(){const e=Pg().bili_jct;if(!e)throw Ot("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function Xu(){return Pg().DedeUserID}function tl(){return !!Pg().DedeUserID}const Im=Zn({cookie:document.cookie,logined:tl()});function C5(){return Object.assign(Im,{cookie:document.cookie,logined:tl()}),Im.logined}function Rg(){return Jn(Im).logined}const vb=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},S5=new WeakMap;function w5({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(vb());let a,i,s;const l=e??clearTimeout,c=()=>{l(a),s(vb());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((f,h)=>{i=()=>{u(),f(r);},s=h,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",c,{once:!0}),S5.set(d,()=>{l(a),a=null,i();}),d}}const Ln=w5(),$5=va.extend("utility:dom"),x5=10*1e3,E5=200;async function cs(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const i=performance.now()+x5;for(;!r.length&&performance.now()<i;)await Ln(E5),o();if(!r.length){console.warn(`[${rn}]: tryAction timeout, selector = \`%s\``,e);return}$5("tryAction: selector=`%s` count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function Xa(e,t,n){return typeof n=="number"&&await Ln(n),cs(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 I5(){return new Promise(e=>{queueMicrotask(e);})}function O5(){return new Promise(e=>{requestIdleCallback(()=>e());})}const pb=e=>(e||"").replace(/^http:\/\//,"https://");function P5(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 ba(e){return e||(e=0),Do.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Vn(e){if(!e)return "";if(e<=9999)return e.toString();if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}亿`}}function na(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;if(/^\d+(\.\d+?)?亿$/.test(e))return Number(e.slice(0,-1))*1e8}}const R5=Do().format("YYYY");function eo(e,t=!1){if(!e)return "";const n=Do.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===R5?n.format("M-D"+r):n.format("YY-M-D"+r)}const M5={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function _5(e){if(!(typeof e>"u")&&!(e>=0))return M5[e]}async function iS(){var n;return ((n=(await on.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Om(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:Ni(),...e}),n=(await on.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=Gr(n);return o||Ot(n.message||"addupdate error"),{success:o,aid:r}}async function T5(e){var n;const t=(await on.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 N5(){const t=(await iS()).find(i=>i.title===rn);if(!t){await Om({title:rn});return}const n=await T5(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}let Wl="";async function k5(e){if(!Wl){const o=(await iS()).find(a=>a.title===rn);if(o)Wl=o.id.toString();else {const{success:a,aid:i}=await Om({title:rn});if(!a)return !1;Wl=i;}}const t=JSON.stringify(e),{success:n}=await Om({aid:Wl,title:rn,content:`<p>${t}</p>`,words:t.length.toString()});return n}const A5=va.extend("settings"),Mg={accessKey:"",useNarrowMode:!1,initialShowMore:!1,modalFeedFullScreen:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],anonymousForPopularGeneral:!1,shuffleForPopularWeekly:!1,filterEnabled:!0,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleFancy:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1,hidingTabKeys:[],customTabKeysOrder:[]},xt=Zn({...Mg}),sS=Object.keys(Mg);function en(){return Jn(xt)}const L5=rn,lS=`${L5}.settings`;async function D5(){const e=await GM.getValue(lS);e&&typeof e=="object"&&Object.assign(xt,xg(e,sS)),Uu(xt,()=>{j5();});}const z5=LC(k5,el("5s"));async function j5(){const e=Ms(xt);await GM.setValue(lS,e),await F5(e);}async function F5(e){if(!e.backupSettingsToArticleDraft||BC)return;const t=mA(e,["accessKey"]);try{await z5(t),A5("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Dn(e){Object.assign(xt,e);}function B5(){return Dn(Mg)}await( D5());var cS={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ua,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)?)?$/,f={years:c,months:u,days:s,hours:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},h=function($){return $ instanceof w},g=function($,S,E){return new w($,E,S.$l)},v=function($){return r.p($)+"s"},p=function($){return $<0},b=function($){return p($)?Math.ceil($):Math.floor($)},y=function($){return Math.abs($)},C=function($,S){return $?p($)?{negative:!0,format:""+y($)+S}:{negative:!1,format:""+$+S}:{negative:!1,format:""}},w=function(){function $(E,I,O){var M=this;if(this.$d={},this.$l=O,E===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return g(E*f[v(I)],this);if(typeof E=="number")return this.$ms=E,this.parseFromMilliseconds(),this;if(typeof E=="object")return Object.keys(E).forEach(function(A){M.$d[v(A)]=E[A];}),this.calMilliseconds(),this;if(typeof E=="string"){var R=E.match(d);if(R){var k=R.slice(2).map(function(A){return A!=null?Number(A):0});return this.$d.years=k[0],this.$d.months=k[1],this.$d.weeks=k[2],this.$d.days=k[3],this.$d.hours=k[4],this.$d.minutes=k[5],this.$d.seconds=k[6],this.calMilliseconds(),this}}return this}var S=$.prototype;return S.calMilliseconds=function(){var E=this;this.$ms=Object.keys(this.$d).reduce(function(I,O){return I+(E.$d[O]||0)*f[O]},0);},S.parseFromMilliseconds=function(){var E=this.$ms;this.$d.years=b(E/c),E%=c,this.$d.months=b(E/u),E%=u,this.$d.days=b(E/s),E%=s,this.$d.hours=b(E/i),E%=i,this.$d.minutes=b(E/a),E%=a,this.$d.seconds=b(E/o),E%=o,this.$d.milliseconds=E;},S.toISOString=function(){var E=C(this.$d.years,"Y"),I=C(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var M=C(O,"D"),R=C(this.$d.hours,"H"),k=C(this.$d.minutes,"M"),A=this.$d.seconds||0;this.$d.milliseconds&&(A+=this.$d.milliseconds/1e3,A=Math.round(1e3*A)/1e3);var L=C(A,"S"),T=E.negative||I.negative||M.negative||R.negative||k.negative||L.negative,P=R.format||k.format||L.format?"T":"",_=(T?"-":"")+"P"+E.format+I.format+M.format+P+R.format+k.format+L.format;return _==="P"||_==="-P"?"P0D":_},S.toJSON=function(){return this.toISOString()},S.format=function(E){var I=E||"YYYY-MM-DDTHH:mm:ss",O={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(M,R){return R||String(O[M])})},S.as=function(E){return this.$ms/f[v(E)]},S.get=function(E){var I=this.$ms,O=v(E);return O==="milliseconds"?I%=1e3:I=O==="weeks"?b(I/f[O]):this.$d[O],I||0},S.add=function(E,I,O){var M;return M=I?E*f[v(I)]:h(E)?E.$ms:g(E,this).$ms,g(this.$ms+M*(O?-1:1),this)},S.subtract=function(E,I){return this.add(E,I,!0)},S.locale=function(E){var I=this.clone();return I.$l=E,I},S.clone=function(){return g(this.$ms,this)},S.humanize=function(E){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!E)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},$}(),x=function($,S,E){return $.add(S.years()*E,"y").add(S.months()*E,"M").add(S.days()*E,"d").add(S.hours()*E,"h").add(S.minutes()*E,"m").add(S.seconds()*E,"s").add(S.milliseconds()*E,"ms")};return function($,S,E){n=E,r=E().$utils(),E.duration=function(M,R){var k=E.locale();return g(M,{$l:k},R)},E.isDuration=h;var I=S.prototype.add,O=S.prototype.subtract;S.prototype.add=function(M,R){return h(M)?x(this,M,1):I.bind(this)(M,R)},S.prototype.subtract=function(M,R){return h(M)?x(this,M,-1):O.bind(this)(M,R)};}});})(cS);var H5=cS.exports;const W5=Rn(H5);var uS={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;})();})(uS);var V5=uS.exports;const K=Rn(V5);function _g(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return m__namespace.createElement("div",{className:K("".concat(n,"-content"),a),style:i},m__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}function Re(){return Re=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},Re.apply(this,arguments)}function ut(e){"@babel/helpers - typeof";return ut=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},ut(e)}function G5(e,t){if(ut(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ut(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function dS(e){var t=G5(e,"string");return ut(t)==="symbol"?t:String(t)}function F(e,t,n){return t=dS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bb(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 q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(n),!0).forEach(function(r){F(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function K5(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 tt(e,t){if(e==null)return {};var n=K5(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 fS(e){if(Array.isArray(e))return e}function U5(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 Pm(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 Tg(e,t){if(e){if(typeof e=="string")return Pm(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 Pm(e,t)}}function mS(){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 J(e,t){return fS(e)||U5(e,t)||Tg(e,t)||mS()}function Gn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var Rm={},X5=function(t){};function q5(e,t){}function Y5(e,t){}function Q5(){Rm={};}function hS(e,t,n){!t&&!Rm[n]&&(e(!1,n),Rm[n]=!0);}function wn(e,t){hS(q5,e,t);}function Z5(e,t){hS(Y5,e,t);}wn.preMessage=X5;wn.resetWarned=Q5;wn.noteOnce=Z5;var gS={exports:{}},Ht={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ng=Symbol.for("react.element"),kg=Symbol.for("react.portal"),Yu=Symbol.for("react.fragment"),Qu=Symbol.for("react.strict_mode"),Zu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),ed=Symbol.for("react.context"),J5=Symbol.for("react.server_context"),td=Symbol.for("react.forward_ref"),nd=Symbol.for("react.suspense"),rd=Symbol.for("react.suspense_list"),od=Symbol.for("react.memo"),ad=Symbol.for("react.lazy"),eD=Symbol.for("react.offscreen"),vS;vS=Symbol.for("react.module.reference");function Rr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ng:switch(e=e.type,e){case Yu:case Zu:case Qu:case nd:case rd:return e;default:switch(e=e&&e.$$typeof,e){case J5:case ed:case td:case ad:case od:case Ju:return e;default:return t}}case kg:return t}}}Ht.ContextConsumer=ed;Ht.ContextProvider=Ju;Ht.Element=Ng;Ht.ForwardRef=td;Ht.Fragment=Yu;Ht.Lazy=ad;Ht.Memo=od;Ht.Portal=kg;Ht.Profiler=Zu;Ht.StrictMode=Qu;Ht.Suspense=nd;Ht.SuspenseList=rd;Ht.isAsyncMode=function(){return !1};Ht.isConcurrentMode=function(){return !1};Ht.isContextConsumer=function(e){return Rr(e)===ed};Ht.isContextProvider=function(e){return Rr(e)===Ju};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ng};Ht.isForwardRef=function(e){return Rr(e)===td};Ht.isFragment=function(e){return Rr(e)===Yu};Ht.isLazy=function(e){return Rr(e)===ad};Ht.isMemo=function(e){return Rr(e)===od};Ht.isPortal=function(e){return Rr(e)===kg};Ht.isProfiler=function(e){return Rr(e)===Zu};Ht.isStrictMode=function(e){return Rr(e)===Qu};Ht.isSuspense=function(e){return Rr(e)===nd};Ht.isSuspenseList=function(e){return Rr(e)===rd};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yu||e===Zu||e===Qu||e===nd||e===rd||e===eD||typeof e=="object"&&e!==null&&(e.$$typeof===ad||e.$$typeof===od||e.$$typeof===Ju||e.$$typeof===ed||e.$$typeof===td||e.$$typeof===vS||e.getModuleId!==void 0)};Ht.typeOf=Rr;gS.exports=Ht;var Ag=gS.exports;function nl(e,t,n){var r=m__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Lg(e,t){typeof e=="function"?e(t):ut(e)==="object"&&e&&"current"in e&&(e.current=t);}function Xn(){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){Lg(a,o);});}}function ya(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nl(function(){return Xn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function zo(e){var t,n,r=Ag.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 tD(e){return !m.isValidElement(e)||Ag.isFragment(e)?!1:zo(e)}var pS=m__namespace.createContext(null);function nD(e){if(Array.isArray(e))return Pm(e)}function bS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rD(){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 Ae(e){return nD(e)||bS(e)||Tg(e)||rD()}var yb=Gn()?m__namespace.useLayoutEffect:m__namespace.useEffect,Xt=function(t,n){var r=m__namespace.useRef(!0);yb(function(){return t(r.current)},n),yb(function(){return r.current=!1,function(){r.current=!0;}},[]);},ti=function(t,n){Xt(function(r){if(!r)return t()},n);},Cb=[];function oD(e,t){var n=m__namespace.useState(function(){if(!Gn())return null;var g=document.createElement("div");return g}),r=J(n,1),o=r[0],a=m__namespace.useRef(!1),i=m__namespace.useContext(pS),s=m__namespace.useState(Cb),l=J(s,2),c=l[0],u=l[1],d=i||(a.current?void 0:function(g){u(function(v){var p=[g].concat(Ae(v));return p});});function f(){o.parentElement||document.body.appendChild(o),a.current=!0;}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1;}return Xt(function(){return e?i?i(f):f():h(),h},[e]),Xt(function(){c.length&&(c.forEach(function(g){return g()}),u(Cb));},[c]),[o,d]}function aD(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 Sb="data-rc-order",wb="data-rc-priority",iD="rc-util-key",Mm=new Map;function yS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):iD}function id(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function sD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function CS(e){return Array.from((Mm.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function SS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Gn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=sD(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Sb,i),s&&a&&l.setAttribute(wb,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=id(t),u=c.firstChild;if(r){if(s){var d=CS(c).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Sb)))return !1;var h=Number(f.getAttribute(wb)||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 wS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=id(t);return CS(n).find(function(r){return r.getAttribute(yS(t))===e})}function Dc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wS(e,t);if(n){var r=id(t);r.removeChild(n);}}function lD(e,t){var n=Mm.get(e);if(!n||!aD(document,n)){var r=SS("",t),o=r.parentNode;Mm.set(e,o),e.removeChild(r);}}function mi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=id(n);lD(r,n);var o=wS(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=SS(e,n);return l.setAttribute(yS(n),t),l}var mf;function cD(e){if(typeof document>"u")return 0;if(e||mf===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),mf=o-a;}return mf}function uD(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var dD="rc-util-locker-".concat(Date.now()),$b=0;function fD(e){var t=!!e,n=m__namespace.useState(function(){return $b+=1,"".concat(dD,"_").concat($b)}),r=J(n,1),o=r[0];Xt(function(){if(t){var a=cD(),i=uD();mi(` html body { overflow-y: hidden; `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",` }`),o);}else Dc(o);return function(){Dc(o);}},[t,o]);}var xb=!1;function mD(e){return typeof e=="boolean"&&(xb=e),xb}var Eb=function(t){return t===!1?!1:!Gn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},$S=m__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=m__namespace.useState(n),c=J(l,2),u=c[0],d=c[1],f=u||n;m__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var h=m__namespace.useState(function(){return Eb(o)}),g=J(h,2),v=g[0],p=g[1];m__namespace.useEffect(function(){var M=Eb(o);p(M??null);});var b=oD(f&&!v),y=J(b,2),C=y[0],w=y[1],x=v??C;fD(r&&n&&Gn()&&(x===C||x===document.body));var $=null;if(s&&zo(s)&&t){var S=s;$=S.ref;}var E=ya($,t);if(!f||!Gn()||v===void 0)return null;var I=x===!1||mD(),O=s;return t&&(O=m__namespace.cloneElement(s,{ref:E})),m__namespace.createElement(pS.Provider,{value:w},I?O:k1.createPortal(O,x))});function hr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return m.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(hr(r)):Ag.isFragment(r)&&r.props?n=n.concat(hr(r.props.children,t)):n.push(r));}),n}function zc(e){return e instanceof HTMLElement||e instanceof SVGElement}function us(e){return zc(e)?e:e instanceof m.Component?k1.findDOMNode(e):null}var _m=m__namespace.createContext(null);function hD(e){var t=e.children,n=e.onBatchResize,r=m__namespace.useRef(0),o=m__namespace.useRef([]),a=m__namespace.useContext(_m),i=m__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 m__namespace.createElement(_m.Provider,{value:i},t)}var Mo=new Map;function gD(e){e.forEach(function(t){var n,r=t.target;(n=Mo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var xS=new BE(gD);function vD(e,t){Mo.has(e)||(Mo.set(e,new Set),xS.observe(e)),Mo.get(e).add(t);}function pD(e,t){Mo.has(e)&&(Mo.get(e).delete(t),Mo.get(e).size||(xS.unobserve(e),Mo.delete(e)));}function xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ib(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,dS(r.key),r);}}function En(e,t,n){return t&&Ib(e.prototype,t),n&&Ib(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tm(e,t){return Tm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Tm(e,t)}function jo(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&&Tm(e,t);}function jc(e){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jc(e)}function bD(){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 Ke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yD(e,t){if(t&&(ut(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ke(e)}function Fo(e){var t=bD();return function(){var r=jc(e),o;if(t){var a=jc(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return yD(this,o)}}var CD=function(e){jo(n,e);var t=Fo(n);function n(){return xn(this,n),t.apply(this,arguments)}return En(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component);function SD(e,t){var n=e.children,r=e.disabled,o=m__namespace.useRef(null),a=m__namespace.useRef(null),i=m__namespace.useContext(_m),s=typeof n=="function",l=s?n(o):n,c=m__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m__namespace.isValidElement(l)&&zo(l),d=u?l.ref:null,f=ya(d,o),h=function(){var b;return us(o.current)||(o.current&&ut(o.current)==="object"?us((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||us(a.current)};m__namespace.useImperativeHandle(t,function(){return h()});var g=m__namespace.useRef(e);g.current=e;var v=m__namespace.useCallback(function(p){var b=g.current,y=b.onResize,C=b.data,w=p.getBoundingClientRect(),x=w.width,$=w.height,S=p.offsetWidth,E=p.offsetHeight,I=Math.floor(x),O=Math.floor($);if(c.current.width!==I||c.current.height!==O||c.current.offsetWidth!==S||c.current.offsetHeight!==E){var M={width:I,height:O,offsetWidth:S,offsetHeight:E};c.current=M;var R=S===Math.round(x)?x:S,k=E===Math.round($)?$:E,A=q(q({},M),{},{offsetWidth:R,offsetHeight:k});i==null||i(A,p,C),y&&Promise.resolve().then(function(){y(A,p);});}},[]);return m__namespace.useEffect(function(){var p=h();return p&&!r&&vD(p,v),function(){return pD(p,v)}},[o.current,r]),m__namespace.createElement(CD,{ref:a},u?m__namespace.cloneElement(l,{ref:f}):l)}var wD=m__namespace.forwardRef(SD),$D="rc-observer-key";function xD(e,t){var n=e.children,r=typeof n=="function"?[n]:hr(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat($D,"-").concat(a);return m__namespace.createElement(wD,Re({},e,{key:i,ref:a===0?t:void 0}),o)})}var Er=m__namespace.forwardRef(xD);Er.Collection=hD;function ES(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function ED(e){return ES(e)instanceof ShadowRoot}function Fc(e){return ED(e)?ES(e):null}function kn(e){var t=m__namespace.useRef();t.current=e;var n=m__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 ID(){var e=q({},m__namespace);return e.useId}var Ob=0,Pb=ID();const OD=Pb?function(t){var n=Pb();return t||n}:function(t){var n=m__namespace.useState("ssr-id"),r=J(n,2),o=r[0],a=r[1];return m__namespace.useEffect(function(){var i=Ob;Ob+=1,a("rc_unique_".concat(i));},[]),t||o},sd=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 PD=["children"],IS=m__namespace.createContext({});function RD(e){var t=e.children,n=tt(e,PD);return m__namespace.createElement(IS.Provider,{value:n},t)}var MD=function(e){jo(n,e);var t=Fo(n);function n(){return xn(this,n),t.apply(this,arguments)}return En(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component);function ra(e){var t=m__namespace.useRef(!1),n=m__namespace.useState(e),r=J(n,2),o=r[0],a=r[1];m__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function i(s,l){l&&t.current||a(s);}return [o,i]}var Vo="none",Vl="appear",Gl="enter",Kl="leave",Rb="none",Ar="prepare",qa="start",Ya="active",Dg="end",OS="prepared";function Mb(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 _D(e,t){var n={animationend:Mb("Animation","AnimationEnd"),transitionend:Mb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var TD=_D(Gn(),typeof window<"u"?window:{}),PS={};if(Gn()){var ND=document.createElement("div");PS=ND.style;}var Ul={};function RS(e){if(Ul[e])return Ul[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 PS)return Ul[e]=t[a],Ul[e]}return ""}var MS=RS("animationend"),_S=RS("transitionend"),TS=!!(MS&&_S),_b=MS||"animationend",Tb=_S||"transitionend";function Nb(e,t){if(!e)return null;if(ut(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const kD=function(e){var t=m.useRef(),n=m.useRef(e);n.current=e;var r=m__namespace.useCallback(function(i){n.current(i);},[]);function o(i){i&&(i.removeEventListener(Tb,r),i.removeEventListener(_b,r));}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(Tb,r),i.addEventListener(_b,r),t.current=i);}return m__namespace.useEffect(function(){return function(){o(t.current);}},[]),[a,o]};var NS=Gn()?m.useLayoutEffect:m.useEffect,kS=function(t){return +setTimeout(t,16)},AS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(kS=function(t){return window.requestAnimationFrame(t)},AS=function(t){return window.cancelAnimationFrame(t)});var kb=0,zg=new Map;function LS(e){zg.delete(e);}var Rt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;kb+=1;var r=kb;function o(a){if(a===0)LS(r),t();else {var i=kS(function(){o(a-1);});zg.set(r,i);}}return o(n),r};Rt.cancel=function(e){var t=zg.get(e);return LS(e),AS(t)};const AD=function(){var e=m__namespace.useRef(null);function t(){Rt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Rt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1);});e.current=a;}return m__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var LD=[Ar,qa,Ya,Dg],DD=[Ar,OS],DS=!1,zD=!0;function zS(e){return e===Ya||e===Dg}const jD=function(e,t,n){var r=ra(Rb),o=J(r,2),a=o[0],i=o[1],s=AD(),l=J(s,2),c=l[0],u=l[1];function d(){i(Ar,!0);}var f=t?DD:LD;return NS(function(){if(a!==Rb&&a!==Dg){var h=f.indexOf(a),g=f[h+1],v=n(a);v===DS?i(g,!0):g&&c(function(p){function b(){p.isCanceled()||i(g,!0);}v===!0?b():Promise.resolve(v).then(b);});}},[e,a]),m__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function FD(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,f=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,$=r.onEnterEnd,S=r.onLeaveEnd,E=r.onVisibleChanged,I=ra(),O=J(I,2),M=O[0],R=O[1],k=ra(Vo),A=J(k,2),L=A[0],T=A[1],P=ra(null),_=J(P,2),z=_[0],j=_[1],H=m.useRef(!1),B=m.useRef(null);function V(){return n()}var G=m.useRef(!1);function X(){T(Vo,!0),j(null,!0);}function Q(te){var re=V();if(!(te&&!te.deadline&&te.target!==re)){var he=G.current,Ce;L===Vl&&he?Ce=x==null?void 0:x(re,te):L===Gl&&he?Ce=$==null?void 0:$(re,te):L===Kl&&he&&(Ce=S==null?void 0:S(re,te)),L!==Vo&&he&&Ce!==!1&&X();}}var ee=kD(Q),W=J(ee,1),Z=W[0],U=function(re){var he,Ce,ke;switch(re){case Vl:return he={},F(he,Ar,f),F(he,qa,v),F(he,Ya,y),he;case Gl:return Ce={},F(Ce,Ar,h),F(Ce,qa,p),F(Ce,Ya,C),Ce;case Kl:return ke={},F(ke,Ar,g),F(ke,qa,b),F(ke,Ya,w),ke;default:return {}}},ue=m__namespace.useMemo(function(){return U(L)},[L]),le=jD(L,!e,function(te){if(te===Ar){var re=ue[Ar];return re?re(V()):DS}if(se in ue){var he;j(((he=ue[se])===null||he===void 0?void 0:he.call(ue,V(),null))||null);}return se===Ya&&(Z(V()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){Q({deadline:!0});},u))),se===OS&&X(),zD}),ie=J(le,2),ce=ie[0],se=ie[1],Y=zS(se);G.current=Y,NS(function(){R(t);var te=H.current;H.current=!0;var re;!te&&t&&s&&(re=Vl),te&&t&&a&&(re=Gl),(te&&!t&&c||!te&&d&&!t&&c)&&(re=Kl);var he=U(re);re&&(e||he[Ar])?(T(re),ce()):T(Vo);},[t]),m.useEffect(function(){(L===Vl&&!s||L===Gl&&!a||L===Kl&&!c)&&T(Vo);},[s,a,c]),m.useEffect(function(){return function(){H.current=!1,clearTimeout(B.current);}},[]);var ae=m__namespace.useRef(!1);m.useEffect(function(){M&&(ae.current=!0),M!==void 0&&L===Vo&&((ae.current||M)&&(E==null||E(M)),ae.current=!0);},[M,L]);var me=z;return ue[Ar]&&se===qa&&(me=q({transition:"none"},me)),[L,se,me,M??t]}function BD(e){var t=e;ut(e)==="object"&&(t=e.transitionSupport);function n(o,a){return !!(o.motionName&&t&&a!==!1)}var r=m__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,f=o.motionName,h=o.leavedClassName,g=o.eventProps,v=m__namespace.useContext(IS),p=v.motion,b=n(o,p),y=m.useRef(),C=m.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:us(C.current)}catch{return null}}var x=FD(b,s,w,o),$=J(x,4),S=$[0],E=$[1],I=$[2],O=$[3],M=m__namespace.useRef(O);O&&(M.current=!0);var R=m__namespace.useCallback(function(j){y.current=j,Lg(a,j);},[a]),k,A=q(q({},g),{},{visible:s});if(!d)k=null;else if(S===Vo)O?k=d(q({},A),R):!c&&M.current&&h?k=d(q(q({},A),{},{className:h}),R):u||!c&&!h?k=d(q(q({},A),{},{style:{display:"none"}}),R):k=null;else {var L,T;E===Ar?T="prepare":zS(E)?T="active":E===qa&&(T="start");var P=Nb(f,"".concat(S,"-").concat(T));k=d(q(q({},A),{},{className:K(Nb(f,S),(L={},F(L,P,P&&T),F(L,f,typeof f=="string"),L)),style:I}),R);}if(m__namespace.isValidElement(k)&&zo(k)){var _=k,z=_.ref;z||(k=m__namespace.cloneElement(k,{ref:R}));}return m__namespace.createElement(MD,{ref:C},k)});return r.displayName="CSSMotion",r}const Co=BD(TS);var Nm="add",km="keep",Am="remove",hf="removed";function HD(e){var t;return e&&ut(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function Lm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(HD)}function WD(){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=Lm(e),i=Lm(t);a.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var f=i[d];if(f.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(function(h){return q(q({},h),{},{status:Nm})})),r=d),n.push(q(q({},f),{},{status:km})),r+=1,u=!0;break}}u||n.push(q(q({},c),{},{status:Am}));}),r<o&&(n=n.concat(i.slice(r).map(function(c){return q(q({},c),{},{status:Nm})})));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,f=u.status;return d!==c||f!==Am}),n.forEach(function(u){u.key===c&&(u.status=km);});}),n}var VD=["component","children","onVisibleChanged","onAllRemoved"],GD=["status"],KD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function UD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Co,n=function(r){jo(a,r);var o=Fo(a);function a(){var i;xn(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)),F(Ke(i),"state",{keyEntities:[]}),F(Ke(i),"removeKey",function(u){var d=i.state.keyEntities,f=d.map(function(h){return h.key!==u?h:q(q({},h),{},{status:hf})});return i.setState({keyEntities:f}),f.filter(function(h){var g=h.status;return g!==hf}).length}),i}return En(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,h=c.onAllRemoved,g=tt(c,VD),v=u||m__namespace.Fragment,p={};return KD.forEach(function(b){p[b]=g[b],delete g[b];}),delete g.keys,m__namespace.createElement(v,g,l.map(function(b,y){var C=b.status,w=tt(b,GD),x=C===Nm||C===km;return m__namespace.createElement(t,Re({},p,{key:w.key,visible:x,eventProps:w,onVisibleChanged:function(S){if(f==null||f(S,{key:w.key}),!S){var E=s.removeKey(w.key);E===0&&h&&h();}}}),function($,S){return d(q(q({},$),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Lm(c),f=WD(u,d);return {keyEntities:f.filter(function(h){var g=u.find(function(v){var p=v.key;return h.key===p});return !(g&&g.status===hf&&h.status===Am)})}}}]),a}(m__namespace.Component);return F(n,"defaultProps",{component:"div"}),n}UD(TS);function XD(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,f=m__namespace.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],v=n.points[1],p=g[0],b=g[1],y=v[0],C=v[1];p===y||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===C||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return m__namespace.createElement("div",{ref:f,className:K("".concat(t,"-arrow"),i),style:h},s)}function qD(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?m__namespace.createElement(Co,Re({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return m__namespace.createElement("div",{style:{zIndex:r},className:K("".concat(t,"-mask"),s)})}):null}var YD=m__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),QD=m__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,f=e.mask,h=e.arrow,g=e.arrowPos,v=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,w=e.autoDestroy,x=e.portal,$=e.zIndex,S=e.onMouseEnter,E=e.onMouseLeave,I=e.onPointerEnter,O=e.ready,M=e.offsetX,R=e.offsetY,k=e.offsetR,A=e.offsetB,L=e.onAlign,T=e.onPrepare,P=e.stretch,_=e.targetWidth,z=e.targetHeight,j=typeof n=="function"?n():n,H=l||c,B=(C==null?void 0:C.length)>0,V=m__namespace.useState(!C||!B),G=J(V,2),X=G[0],Q=G[1];if(Xt(function(){!X&&B&&i&&Q(!0);},[X,B,i]),!X)return null;var ee="auto",W={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(O||!l){var Z,U=v.points,ue=v.dynamicInset||((Z=v._experimental)===null||Z===void 0?void 0:Z.dynamicInset),le=ue&&U[0][1]==="r",ie=ue&&U[0][0]==="b";le?(W.right=k,W.left=ee):(W.left=M,W.right=ee),ie?(W.bottom=A,W.top=ee):(W.top=R,W.bottom=ee);}var ce={};return P&&(P.includes("height")&&z?ce.height=z:P.includes("minHeight")&&z&&(ce.minHeight=z),P.includes("width")&&_?ce.width=_:P.includes("minWidth")&&_&&(ce.minWidth=_)),l||(ce.pointerEvents="none"),m__namespace.createElement(x,{open:y||H,getContainer:C&&function(){return C(i)},autoDestroy:w},m__namespace.createElement(qD,{prefixCls:o,open:l,zIndex:$,mask:f,motion:b}),m__namespace.createElement(Er,{onResize:L,disabled:!l},function(se){return m__namespace.createElement(Co,Re({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(ae){var me;p==null||(me=p.onVisibleChanged)===null||me===void 0||me.call(p,ae),s(ae);}}),function(Y,ae){var me=Y.className,te=Y.style,re=K(o,me,r);return m__namespace.createElement("div",{ref:Xn(se,t,ae),className:re,style:q(q(q(q({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},W),ce),te),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:S,onMouseLeave:E,onPointerEnter:I,onClick:d},h&&m__namespace.createElement(XD,{prefixCls:o,arrow:h,arrowPos:g,align:v}),m__namespace.createElement(YD,{cache:!l&&!u},j))})}))}),ZD=m__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=zo(n),a=m__namespace.useCallback(function(s){Lg(t,r?r(s):s);},[r]),i=ya(a,n.ref);return o?m__namespace.cloneElement(n,{ref:i}):n}),Ab=m__namespace.createContext(null);function Lb(e){return e?Array.isArray(e)?e:[e]:[]}function JD(e,t,n,r){return m__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 jg=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 e6(){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 t6(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(e6((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Db(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function rl(e){return e.ownerDocument.defaultView}function Dm(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=rl(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 _s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Xi(e){return _s(parseFloat(e),0)}function zb(e,t){var n=q({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=rl(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=Xi(s),b=Xi(l),y=Xi(c),C=Xi(u),w=_s(Math.round(d.width/g*1e3)/1e3),x=_s(Math.round(d.height/f*1e3)/1e3),$=(g-v-y-C)*w,S=(f-h-p-b)*x,E=p*x,I=b*x,O=y*w,M=C*w,R=0,k=0;if(a==="clip"){var A=Xi(i);R=A*w,k=A*x;}var L=d.x+O-R,T=d.y+E-k,P=L+d.width+2*R-O-M-$,_=T+d.height+2*k-E-I-S;n.left=Math.max(n.left,L),n.top=Math.max(n.top,T),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,_);}}),n}function jb(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=J(n,2),o=r[0],a=r[1];return [jb(e.width,o),jb(e.height,a)]}function Bb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Oa(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 wo(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 n6(e,t,n,r,o,a,i){var s=m__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=J(s,2),c=l[0],u=l[1],d=m__namespace.useRef(0),f=m__namespace.useMemo(function(){return t?Dm(t):[]},[t]),h=m__namespace.useRef({}),g=function(){h.current={};};e||g();var v=kn(function(){if(t&&n&&e){let br=function(lo,Ho){var Ea=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re,Ia=j.x+lo,Wi=j.y+Ho,Vi=Ia+Z,Dl=Wi+W,Yd=Math.max(Ia,Ea.left),Qd=Math.max(Wi,Ea.top),Zd=Math.min(Vi,Ea.right),Jd=Math.min(Dl,Ea.bottom);return Math.max(0,(Zd-Yd)*(Jd-Qd))},Ll=function(){wt=j.y+ge,ft=wt+W,je=j.x+_e,Pe=je+Z;};var y,C,w=t,x=w.ownerDocument,$=rl(w),S=$.getComputedStyle(w),E=S.width,I=S.height,O=S.position,M=w.style.left,R=w.style.top,k=w.style.right,A=w.style.bottom,L=w.style.overflow,T=q(q({},o[r]),a),P=x.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild(P),P.style.left="".concat(w.offsetLeft,"px"),P.style.top="".concat(w.offsetTop,"px"),P.style.position=O,P.style.height="".concat(w.offsetHeight,"px"),P.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else {var z=n.getBoundingClientRect();_={x:z.x,y:z.y,width:z.width,height:z.height};}var j=w.getBoundingClientRect(),H=x.documentElement,B=H.clientWidth,V=H.clientHeight,G=H.scrollWidth,X=H.scrollHeight,Q=H.scrollTop,ee=H.scrollLeft,W=j.height,Z=j.width,U=_.height,ue=_.width,le={left:0,top:0,right:B,bottom:V},ie={left:-ee,top:-Q,right:G-ee,bottom:X-Q},ce=T.htmlRegion,se="visible",Y="visibleFirst";ce!=="scroll"&&ce!==Y&&(ce=se);var ae=ce===Y,me=zb(ie,f),te=zb(le,f),re=ce===se?te:me,he=ae?te:re;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Ce=w.getBoundingClientRect();w.style.left=M,w.style.top=R,w.style.right=k,w.style.bottom=A,w.style.overflow=L,(C=w.parentElement)===null||C===void 0||C.removeChild(P);var ke=_s(Math.round(Z/parseFloat(E)*1e3)/1e3),We=_s(Math.round(W/parseFloat(I)*1e3)/1e3);if(ke===0||We===0||zc(n)&&!jg(n))return;var Ge=T.offset,Me=T.targetOffset,Xe=Fb(j,Ge),ze=J(Xe,2),He=ze[0],Ie=ze[1],we=Fb(_,Me),qe=J(we,2),nt=qe[0],bt=qe[1];_.x-=nt,_.y-=bt;var Ze=T.points||[],Je=J(Ze,2),gt=Je[0],vt=Je[1],st=Bb(vt),dt=Bb(gt),et=Oa(_,st),$e=Oa(j,dt),xe=q({},T),_e=et.x-$e.x+He,ge=et.y-$e.y+Ie,Te=br(_e,ge),Se=br(_e,ge,te),fe=Oa(_,["t","l"]),oe=Oa(j,["t","l"]),ye=Oa(_,["b","r"]),de=Oa(j,["b","r"]),pe=T.overflow||{},Le=pe.adjustX,Ue=pe.adjustY,lt=pe.shiftX,it=pe.shiftY,Et=function(Ho){return typeof Ho=="boolean"?Ho:Ho>=0},wt,ft,je,Pe;Ll();var Ee=Et(Ue),Oe=dt[0]===st[0];if(Ee&&dt[0]==="t"&&(ft>he.bottom||h.current.bt)){var Ve=ge;Oe?Ve-=W-U:Ve=fe.y-de.y-Ie;var mt=br(_e,Ve),_t=br(_e,Ve,te);mt>Te||mt===Te&&(!ae||_t>=Se)?(h.current.bt=!0,ge=Ve,Ie=-Ie,xe.points=[wo(dt,0),wo(st,0)]):h.current.bt=!1;}if(Ee&&dt[0]==="b"&&(wt<he.top||h.current.tb)){var Mt=ge;Oe?Mt+=W-U:Mt=ye.y-oe.y-Ie;var mn=br(_e,Mt),un=br(_e,Mt,te);mn>Te||mn===Te&&(!ae||un>=Se)?(h.current.tb=!0,ge=Mt,Ie=-Ie,xe.points=[wo(dt,0),wo(st,0)]):h.current.tb=!1;}var hn=Et(Le),Fn=dt[1]===st[1];if(hn&&dt[1]==="l"&&(Pe>he.right||h.current.rl)){var Cn=_e;Fn?Cn-=Z-ue:Cn=fe.x-de.x-He;var Ur=br(Cn,ge),so=br(Cn,ge,te);Ur>Te||Ur===Te&&(!ae||so>=Se)?(h.current.rl=!0,_e=Cn,He=-He,xe.points=[wo(dt,1),wo(st,1)]):h.current.rl=!1;}if(hn&&dt[1]==="r"&&(je<he.left||h.current.lr)){var Bn=_e;Fn?Bn+=Z-ue:Bn=ye.x-oe.x-He;var So=br(Bn,ge),Mr=br(Bn,ge,te);So>Te||So===Te&&(!ae||Mr>=Se)?(h.current.lr=!0,_e=Bn,He=-He,xe.points=[wo(dt,1),wo(st,1)]):h.current.lr=!1;}Ll();var rr=lt===!0?0:lt;typeof rr=="number"&&(je<te.left&&(_e-=je-te.left-He,_.x+ue<te.left+rr&&(_e+=_.x-te.left+ue-rr)),Pe>te.right&&(_e-=Pe-te.right-He,_.x>te.right-rr&&(_e+=_.x-te.right+rr)));var vr=it===!0?0:it;typeof vr=="number"&&(wt<te.top&&(ge-=wt-te.top-Ie,_.y+U<te.top+vr&&(ge+=_.y-te.top+U-vr)),ft>te.bottom&&(ge-=ft-te.bottom-Ie,_.y>te.bottom-vr&&(ge+=_.y-te.bottom+vr)));var Xr=j.x+_e,qr=Xr+Z,qn=j.y+ge,Yr=qn+W,ht=_.x,Fe=ht+ue,at=_.y,yt=at+U,$t=Math.max(Xr,ht),Nt=Math.min(qr,Fe),tn=($t+Nt)/2,Hn=tn-Xr,Yn=Math.max(qn,at),_r=Math.min(Yr,yt),pr=(Yn+_r)/2,xa=pr-qn;i==null||i(t,xe);var Al=Ce.right-j.x-(_e+j.width),qd=Ce.bottom-j.y-(ge+j.height);u({ready:!0,offsetX:_e/ke,offsetY:ge/We,offsetR:Al/ke,offsetB:qd/We,arrowX:Hn/ke,arrowY:xa/We,scaleX:ke,scaleY:We,align:xe});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&v();});},b=function(){u(function(C){return q(q({},C),{},{ready:!1})});};return Xt(b,[r]),Xt(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 r6(e,t,n,r,o){Xt(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,s=Dm(a),l=Dm(i),c=rl(i),u=new Set([c].concat(Ae(s),Ae(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function o6(e,t,n,r,o,a,i,s){var l=m__namespace.useRef(e),c=m__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),m__namespace.useEffect(function(){var u=Rt(function(){c.current=!1;});return function(){Rt.cancel(u);}},[e]),m__namespace.useEffect(function(){if(t&&r&&(!o||a)){var u=function(){var $=!1,S=function(O){var M=O.target;$=i(M);},E=function(O){var M=O.target;!c.current&&l.current&&!$&&!i(M)&&s(!1);};return [S,E]},d=u(),f=J(d,2),h=f[0],g=f[1],v=u(),p=J(v,2),b=p[0],y=p[1],C=rl(r);C.addEventListener("mousedown",h,!0),C.addEventListener("click",g,!0),C.addEventListener("contextmenu",g,!0);var w=Fc(n);return w&&(w.addEventListener("mousedown",b,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",h,!0),C.removeEventListener("click",g,!0),C.removeEventListener("contextmenu",g,!0),w&&(w.removeEventListener("mousedown",b,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}var a6=["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 i6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$S,t=m__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,f=n.defaultPopupVisible,h=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,C=n.blurDelay,w=n.mask,x=n.maskClosable,$=x===void 0?!0:x,S=n.getPopupContainer,E=n.forceRender,I=n.autoDestroy,O=n.destroyPopupOnHide,M=n.popup,R=n.popupClassName,k=n.popupStyle,A=n.popupPlacement,L=n.builtinPlacements,T=L===void 0?{}:L,P=n.popupAlign,_=n.zIndex,z=n.stretch,j=n.getPopupClassNameFromAlign,H=n.fresh,B=n.alignPoint,V=n.onPopupClick,G=n.onPopupAlign,X=n.arrow,Q=n.popupMotion,ee=n.maskMotion,W=n.popupTransitionName,Z=n.popupAnimation,U=n.maskTransitionName,ue=n.maskAnimation,le=n.className,ie=n.getTriggerDOMNode,ce=tt(n,a6),se=I||O||!1,Y=m__namespace.useState(!1),ae=J(Y,2),me=ae[0],te=ae[1];Xt(function(){te(sd());},[]);var re=m__namespace.useRef({}),he=m__namespace.useContext(Ab),Ce=m__namespace.useMemo(function(){return {registerSubPopup:function(pt,an){re.current[pt]=an,he==null||he.registerSubPopup(pt,an);}}},[he]),ke=OD(),We=m__namespace.useState(null),Ge=J(We,2),Me=Ge[0],Xe=Ge[1],ze=kn(function(Qe){zc(Qe)&&Me!==Qe&&Xe(Qe),he==null||he.registerSubPopup(ke,Qe);}),He=m__namespace.useState(null),Ie=J(He,2),we=Ie[0],qe=Ie[1],nt=m__namespace.useRef(null),bt=kn(function(Qe){zc(Qe)&&we!==Qe&&(qe(Qe),nt.current=Qe);}),Ze=m__namespace.Children.only(i),Je=(Ze==null?void 0:Ze.props)||{},gt={},vt=kn(function(Qe){var pt,an,vn=we;return (vn==null?void 0:vn.contains(Qe))||((pt=Fc(vn))===null||pt===void 0?void 0:pt.host)===Qe||Qe===vn||(Me==null?void 0:Me.contains(Qe))||((an=Fc(Me))===null||an===void 0?void 0:an.host)===Qe||Qe===Me||Object.values(re.current).some(function(sn){return (sn==null?void 0:sn.contains(Qe))||Qe===sn})}),st=Db(a,Q,Z,W),dt=Db(a,ee,ue,U),et=m__namespace.useState(f||!1),$e=J(et,2),xe=$e[0],_e=$e[1],ge=d??xe,Te=kn(function(Qe){d===void 0&&_e(Qe);});Xt(function(){_e(d||!1);},[d]);var Se=m__namespace.useRef(ge);Se.current=ge;var fe=m__namespace.useRef([]);fe.current=[];var oe=kn(function(Qe){var pt;Te(Qe),((pt=fe.current[fe.current.length-1])!==null&&pt!==void 0?pt:ge)!==Qe&&(fe.current.push(Qe),h==null||h(Qe));}),ye=m__namespace.useRef(),de=function(){clearTimeout(ye.current);},pe=function(pt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;de(),an===0?oe(pt):ye.current=setTimeout(function(){oe(pt);},an*1e3);};m__namespace.useEffect(function(){return de},[]);var Le=m__namespace.useState(!1),Ue=J(Le,2),lt=Ue[0],it=Ue[1];Xt(function(Qe){(!Qe||ge)&&it(!0);},[ge]);var Et=m__namespace.useState(null),wt=J(Et,2),ft=wt[0],je=wt[1],Pe=m__namespace.useState([0,0]),Ee=J(Pe,2),Oe=Ee[0],Ve=Ee[1],mt=function(pt){Ve([pt.clientX,pt.clientY]);},_t=n6(ge,Me,B?Oe:we,A,T,P,G),Mt=J(_t,11),mn=Mt[0],un=Mt[1],hn=Mt[2],Fn=Mt[3],Cn=Mt[4],Ur=Mt[5],so=Mt[6],Bn=Mt[7],So=Mt[8],Mr=Mt[9],rr=Mt[10],vr=JD(me,l,c,u),Xr=J(vr,2),qr=Xr[0],qn=Xr[1],Yr=qr.has("click"),ht=qn.has("click")||qn.has("contextMenu"),Fe=kn(function(){lt||rr();}),at=function(){Se.current&&B&&ht&&pe(!1);};r6(ge,we,Me,Fe,at),Xt(function(){Fe();},[Oe,A]),Xt(function(){ge&&!(T!=null&&T[A])&&Fe();},[JSON.stringify(P)]);var yt=m__namespace.useMemo(function(){var Qe=t6(T,a,Mr,B);return K(Qe,j==null?void 0:j(Mr))},[Mr,j,T,a,B]);m__namespace.useImperativeHandle(r,function(){return {nativeElement:nt.current,forceAlign:Fe}});var $t=m__namespace.useState(0),Nt=J($t,2),tn=Nt[0],Hn=Nt[1],Yn=m__namespace.useState(0),_r=J(Yn,2),pr=_r[0],xa=_r[1],Al=function(){if(z&&we){var pt=we.getBoundingClientRect();Hn(pt.width),xa(pt.height);}},qd=function(){Al(),Fe();},br=function(pt){it(!1),rr(),g==null||g(pt);},Ll=function(){return new Promise(function(pt){Al(),je(function(){return pt});})};Xt(function(){ft&&(rr(),ft(),je(null));},[ft]);function lo(Qe,pt,an,vn){gt[Qe]=function(sn){var zl;vn==null||vn(sn),pe(pt,an);for(var ef=arguments.length,yp=new Array(ef>1?ef-1:0),jl=1;jl<ef;jl++)yp[jl-1]=arguments[jl];(zl=Je[Qe])===null||zl===void 0||zl.call.apply(zl,[Je,sn].concat(yp));};}(Yr||ht)&&(gt.onClick=function(Qe){var pt;Se.current&&ht?pe(!1):!Se.current&&Yr&&(mt(Qe),pe(!0));for(var an=arguments.length,vn=new Array(an>1?an-1:0),sn=1;sn<an;sn++)vn[sn-1]=arguments[sn];(pt=Je.onClick)===null||pt===void 0||pt.call.apply(pt,[Je,Qe].concat(vn));}),o6(ge,ht,we,Me,w,$,vt,pe);var Ho=qr.has("hover"),Ea=qn.has("hover"),Ia,Wi;Ho&&(lo("onMouseEnter",!0,v,function(Qe){mt(Qe);}),lo("onPointerEnter",!0,v,function(Qe){mt(Qe);}),Ia=function(){(ge||lt)&&pe(!0,v);},B&&(gt.onMouseMove=function(Qe){var pt;(pt=Je.onMouseMove)===null||pt===void 0||pt.call(Je,Qe);})),Ea&&(lo("onMouseLeave",!1,b),lo("onPointerLeave",!1,b),Wi=function(){pe(!1,b);}),qr.has("focus")&&lo("onFocus",!0,y),qn.has("focus")&&lo("onBlur",!1,C),qr.has("contextMenu")&&(gt.onContextMenu=function(Qe){var pt;Se.current&&qn.has("contextMenu")?pe(!1):(mt(Qe),pe(!0)),Qe.preventDefault();for(var an=arguments.length,vn=new Array(an>1?an-1:0),sn=1;sn<an;sn++)vn[sn-1]=arguments[sn];(pt=Je.onContextMenu)===null||pt===void 0||pt.call.apply(pt,[Je,Qe].concat(vn));}),le&&(gt.className=K(Je.className,le));var Vi=q(q({},Je),gt),Dl={},Yd=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yd.forEach(function(Qe){ce[Qe]&&(Dl[Qe]=function(){for(var pt,an=arguments.length,vn=new Array(an),sn=0;sn<an;sn++)vn[sn]=arguments[sn];(pt=Vi[Qe])===null||pt===void 0||pt.call.apply(pt,[Vi].concat(vn)),ce[Qe].apply(ce,vn);});});var Qd=m__namespace.cloneElement(Ze,q(q({},Vi),Dl)),Zd={x:Ur,y:so},Jd=X?q({},X!==!0?X:{}):null;return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(Er,{disabled:!ge,ref:bt,onResize:qd},m__namespace.createElement(ZD,{getTriggerDOMNode:ie},Qd)),m__namespace.createElement(Ab.Provider,{value:Ce},m__namespace.createElement(QD,{portal:e,ref:ze,prefixCls:a,popup:M,className:K(R,yt),style:k,target:we,onMouseEnter:Ia,onMouseLeave:Wi,onPointerEnter:Ia,zIndex:_,open:ge,keepDom:lt,fresh:H,onClick:V,mask:w,motion:st,maskMotion:dt,onVisibleChanged:br,onPrepare:Ll,forceRender:E,autoDestroy:se,getPopupContainer:S,align:Mr,arrow:Jd,arrowPos:Zd,ready:mn,offsetX:un,offsetY:hn,offsetR:Fn,offsetB:Cn,onAlign:Fe,stretch:z,targetWidth:tn/Bn,targetHeight:pr/So})))});return t}const ld=i6($S);var Pa={shiftX:64,adjustY:1},Ra={adjustX:1,shiftY:!0},yr=[0,0],s6={left:{points:["cr","cl"],overflow:Ra,offset:[-4,0],targetOffset:yr},right:{points:["cl","cr"],overflow:Ra,offset:[4,0],targetOffset:yr},top:{points:["bc","tc"],overflow:Pa,offset:[0,-4],targetOffset:yr},bottom:{points:["tc","bc"],overflow:Pa,offset:[0,4],targetOffset:yr},topLeft:{points:["bl","tl"],overflow:Pa,offset:[0,-4],targetOffset:yr},leftTop:{points:["tr","tl"],overflow:Ra,offset:[-4,0],targetOffset:yr},topRight:{points:["br","tr"],overflow:Pa,offset:[0,-4],targetOffset:yr},rightTop:{points:["tl","tr"],overflow:Ra,offset:[4,0],targetOffset:yr},bottomRight:{points:["tr","br"],overflow:Pa,offset:[0,4],targetOffset:yr},rightBottom:{points:["bl","br"],overflow:Ra,offset:[4,0],targetOffset:yr},bottomLeft:{points:["tl","bl"],overflow:Pa,offset:[0,4],targetOffset:yr},leftBottom:{points:["br","bl"],overflow:Ra,offset:[-4,0],targetOffset:yr}},l6=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],c6=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,f=d===void 0?"rc-tooltip":d,h=t.children,g=t.onVisibleChange,v=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,C=t.placement,w=C===void 0?"right":C,x=t.align,$=x===void 0?{}:x,S=t.destroyTooltipOnHide,E=S===void 0?!1:S,I=t.defaultVisible,O=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,k=t.id,A=t.showArrow,L=A===void 0?!0:A,T=tt(t,l6),P=m.useRef(null);m.useImperativeHandle(n,function(){return P.current});var _=q({},T);"visible"in t&&(_.popupVisible=t.visible);var z=function(){return m__namespace.createElement(_g,{key:"content",prefixCls:f,id:k,overlayInnerStyle:M},R)};return m__namespace.createElement(ld,Re({popupClassName:r,prefixCls:f,popup:z,action:a,builtinPlacements:s6,popupPlacement:w,ref:P,popupAlign:$,getPopupContainer:O,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:I,autoDestroy:E,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:L},_),h)};const u6=m.forwardRef(c6);function gf(e){return e!==void 0}function qt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=ra(function(){return gf(o)?o:gf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=J(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=i?i(d):d,h=kn(a),g=ra([d]),v=J(g,2),p=v[0],b=v[1];ti(function(){var C=p[0];c!==C&&h(c,C);},[p]),ti(function(){gf(o)||u(o);},[o]);var y=kn(function(C,w){u(C,w),b([d],w);});return [f,y]}function Fg(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 ol(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(wn(!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&&ut(a)==="object"&&ut(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(f){return o(a[f],i[f],c)})}return !1}return o(e,t)}var Hb="%",d6=function(){function e(t){xn(this,e),F(this,"instanceId",void 0),F(this,"cache",new Map),this.instanceId=t;}return En(e,[{key:"get",value:function(n){return this.cache.get(n.join(Hb))||null}},{key:"update",value:function(n,r){var o=n.join(Hb),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i);}}]),e}(),zm="data-token-hash",oa="data-css-hash",Qa="__cssinjs_instance__";function f6(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(oa,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Qa]=o[Qa]||e,o[Qa]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(oa,"]"))).forEach(function(o){var a=o.getAttribute(oa);if(r[a]){if(o[Qa]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o);}}else r[a]=!0;});}return new d6(e)}var m6=m__namespace.createContext({hashPriority:"low",cache:f6(),defaultCache:!0});const Bg=m6;function h6(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 Hg=function(){function e(){xn(this,e),F(this,"cache",void 0),F(this,"keys",void 0),F(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return En(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;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.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=J(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=J(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 !h6(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();F(Hg,"MAX_CACHE_SIZE",20);F(Hg,"MAX_CACHE_OFFSET",5);var Wb=0,jS=function(){function e(t){xn(this,e),F(this,"derivatives",void 0),F(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Wb,t.length===0&&(t.length>0,void 0),Wb+=1;}return En(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),vf=new Hg;function Ts(e){var t=Array.isArray(e)?e:[e];return vf.has(t)||vf.set(t,new jS(t)),vf.get(t)}var g6=new WeakMap,pf={};function v6(e,t){for(var n=g6,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o);}return n.has(pf)||n.set(pf,e()),n.get(pf)}var Vb=new WeakMap;function Bc(e){var t=Vb.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof jS?t+=r.id:r&&ut(r)==="object"?t+=Bc(r):t+=r;}),Vb.set(e,t)),t}function p6(e,t){return Fg("".concat(t,"_").concat(Bc(e)))}var ds="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),FS="_bAmBoO_";function b6(e,t,n){if(Gn()){var r,o;mi(e,ds);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(FS);return (o=a.parentNode)===null||o===void 0||o.removeChild(a),Dc(ds),i}return !1}var bf=void 0;function y6(){return bf===void 0&&(bf=b6("@layer ".concat(ds," { .").concat(ds,' { content: "').concat(FS,'"!important; } }'),function(e){e.className=ds;})),bf}var C6=q({},m__namespace),Gb=C6.useInsertionEffect,S6=function(t,n,r){m__namespace.useMemo(t,r),Xt(function(){return n(!0)},r);},w6=Gb?function(e,t,n){return Gb(function(){return e(),t()},n)}:S6;const $6=w6;var x6=q({},m__namespace),E6=x6.useInsertionEffect,I6=function(t){var n=[],r=!1;function o(a){r||n.push(a);}return m__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()});}},t),o},O6=function(){return function(t){t();}},P6=typeof E6<"u"?I6:O6;const R6=P6;function BS(e,t,n,r,o){var a=m__namespace.useContext(Bg),i=a.cache,s=[e].concat(Ae(t)),l=s.join("_"),c=R6([l]),u=function(g){i.update(s,function(v){var p=v||[],b=J(p,2),y=b[0],C=y===void 0?0:y,w=b[1],x=w,$=x||n(),S=[C,$];return g?g(S):S});};m__namespace.useMemo(function(){u();},[l]);var d=i.get(s),f=d[1];return $6(function(){o==null||o(f);},function(h){return u(function(g){var v=J(g,2),p=v[0],b=v[1];return h&&p===0&&(o==null||o(f)),[p+1,b]}),function(){i.update(s,function(g){var v=g||[],p=J(v,2),b=p[0],y=b===void 0?0:b,C=p[1],w=y-1;return w===0?(c(function(){return r==null?void 0:r(C,!1)}),null):[y-1,C]});}},[l]),f}var M6={},_6="css",Uo=new Map;function T6(e){Uo.set(e,(Uo.get(e)||0)+1);}function N6(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(zm,'="').concat(e,'"]'));n.forEach(function(r){if(r[Qa]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var k6=0;function A6(e,t){Uo.set(e,(Uo.get(e)||0)-1);var n=Array.from(Uo.keys()),r=n.filter(function(o){var a=Uo.get(o)||0;return a<=0});n.length-r.length>k6&&r.forEach(function(o){N6(o,t),Uo.delete(o);});}var HS=function(t,n,r,o){var a=r.getDerivativeToken(t),i=q(q({},a),n);return o&&(i=o(i)),i};function L6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=m.useContext(Bg),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,s=n.override,l=s===void 0?M6:s,c=n.formatToken,u=n.getComputedToken,d=v6(function(){return Object.assign.apply(Object,[{}].concat(Ae(t)))},t),f=Bc(d),h=Bc(l),g=BS("token",[i,e.id,f,h],function(){var v=u?u(d,l,e):HS(d,l,e,c),p=p6(v,i);v._tokenKey=p,T6(p);var b="".concat(_6,"-").concat(Fg(p));return v._hashId=b,[v,b]},function(v){A6(v[0]._tokenKey,o);});return g}var D6={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},Kb="data-ant-cssinjs-cache-path",WS="_FILE_STYLE__",aa,VS=!0;function z6(){if(!aa&&(aa={},Gn())){var e=document.createElement("div");e.className=Kb,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=J(a,2),s=i[0],l=i[1];aa[s]=l;});var n=document.querySelector("style[".concat(Kb,"]"));if(n){var r;VS=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function j6(e){return z6(),!!aa[e]}function F6(e){var t=aa[e],n=null;if(t&&Gn())if(VS)n=WS;else {var r=document.querySelector("style[".concat(oa,'="').concat(aa[e],'"]'));r?n=r.innerHTML:delete aa[e];}return [n,t]}var Ub=Gn(),B6="_skip_check_",GS="_multi_value_";function Xb(e){var t=ta(W1(e),V1);return t.replace(/\{%%%\:[^;];}/g,";")}function H6(e){return ut(e)==="object"&&e&&(B6 in e||GS in e)}function W6(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(Ae(l.slice(1))).join(" ")});return a.join(",")}var V6=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 f="",h={};function g(C){var w=C.getName(s);if(!h[w]){var x=e(C.style,n,{root:!1,parentSelectors:i}),$=J(x,1),S=$[0];h[w]="@keyframes ".concat(C.getName(s)).concat(S);}}function v(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(x){Array.isArray(x)?v(x,w):x&&w.push(x);}),w}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var w=typeof C=="string"&&!o?{}:C;if(typeof w=="string")f+="".concat(w,` `);else if(w._keyframe)g(w);else {var x=d.reduce(function($,S){var E;return (S==null||(E=S.visit)===null||E===void 0?void 0:E.call(S,$))||$},w);Object.keys(x).forEach(function($){var S=x[$];if(ut(S)==="object"&&S&&($!=="animationName"||!S._keyframe)&&!H6(S)){var E=!1,I=$.trim(),O=!1;(o||a)&&s?I.startsWith("@")?E=!0:I=W6($,s,c):o&&!s&&(I==="&"||I==="")&&(I="",O=!0);var M=e(S,n,{root:O,injectHash:E,parentSelectors:[].concat(Ae(i),[I])}),R=J(M,2),k=R[0],A=R[1];h=q(q({},h),A),f+="".concat(I).concat(k);}else {let P=function(_,z){var j=_.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),H=z;!D6[_]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),_==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),H=z.getName(s)),f+="".concat(j,":").concat(H,";");};var L,T=(L=S==null?void 0:S.value)!==null&&L!==void 0?L:S;ut(S)==="object"&&S!==null&&S!==void 0&&S[GS]&&Array.isArray(T)?T.forEach(function(_){P($,_);}):P($,T);}});}}),!o)f="{".concat(f,"}");else if(l&&y6()){var b=l.split(","),y=b[b.length-1].trim();f="@layer ".concat(y," {").concat(f,"}"),b.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f));}return [f,h]};function G6(e,t){return Fg("".concat(e.join("%")).concat(t))}function K6(){return null}function jm(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=m__namespace.useContext(Bg),d=u.autoClear;u.mock;var f=u.defaultCache,h=u.hashPriority,g=u.container,v=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,C=n._tokenKey,w=[C].concat(Ae(r)),x=Ub,$=BS("style",w,function(){var M=w.join("|");if(j6(M)){var R=F6(M),k=J(R,2),A=k[0],L=k[1];if(A)return [A,C,L,{},s,c]}var T=t(),P=V6(T,{hashId:o,hashPriority:h,layer:a,path:r.join("-"),transformers:p,linters:b}),_=J(P,2),z=_[0],j=_[1],H=Xb(z),B=G6(w,H);return [H,C,B,j,s,c]},function(M,R){var k=J(M,3),A=k[2];(R||d)&&Ub&&Dc(A,{mark:oa});},function(M){var R=J(M,4),k=R[0];R[1];var A=R[2],L=R[3];if(x&&k!==WS){var T={mark:oa,prepend:"queue",attachTo:g,priority:c},P=typeof i=="function"?i():i;P&&(T.csp={nonce:P});var _=mi(k,A,T);_[Qa]=y.instanceId,_.setAttribute(zm,C),Object.keys(L).forEach(function(z){mi(Xb(L[z]),"_effect-".concat(z),T);});}}),S=J($,3),E=S[0],I=S[1],O=S[2];return function(M){var R;if(!v||x||!f)R=m__namespace.createElement(K6,null);else {var k;R=m__namespace.createElement("style",Re({},(k={},F(k,zm,I),F(k,oa,O),k),{dangerouslySetInnerHTML:{__html:E}}));}return m__namespace.createElement(m__namespace.Fragment,null,R,M)}}var Tt=function(){function e(t,n){xn(this,e),F(this,"name",void 0),F(this,"style",void 0),F(this,"_keyframe",!0),this.name=t,this.style=n;}return En(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 Ma(e){return e.notSplit=!0,e}Ma(["borderTop","borderBottom"]),Ma(["borderTop"]),Ma(["borderBottom"]),Ma(["borderLeft","borderRight"]),Ma(["borderLeft"]),Ma(["borderRight"]);const U6="5.11.5";function Pn(e,t){X6(e)&&(e="100%");var n=q6(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 Xl(e){return Math.min(1,Math.max(0,e))}function X6(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function q6(e){return typeof e=="string"&&e.indexOf("%")!==-1}function KS(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ql(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Qo(e){return e.length===1?"0"+e:String(e)}function Y6(e,t,n){return {r:Pn(e,255)*255,g:Pn(t,255)*255,b:Pn(n,255)*255}}function qb(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 yf(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 Q6(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=yf(s,i,e+1/3),o=yf(s,i,e),a=yf(s,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function Fm(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 Z6(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 Bm(e,t,n,r){var o=[Qo(Math.round(e).toString(16)),Qo(Math.round(t).toString(16)),Qo(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 J6(e,t,n,r,o){var a=[Qo(Math.round(e).toString(16)),Qo(Math.round(t).toString(16)),Qo(Math.round(n).toString(16)),Qo(e8(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 e8(e){return Math.round(parseFloat(e)*255).toString(16)}function Yb(e){return sr(e)/255}function sr(e){return parseInt(e,16)}function t8(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var Hm={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 Ga(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=o8(e)),typeof e=="object"&&(co(e.r)&&co(e.g)&&co(e.b)?(t=Y6(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):co(e.h)&&co(e.s)&&co(e.v)?(r=ql(e.s),o=ql(e.v),t=Z6(e.h,r,o),i=!0,s="hsv"):co(e.h)&&co(e.s)&&co(e.l)&&(r=ql(e.s),a=ql(e.l),t=Q6(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=KS(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 n8="[-\\+]?\\d+%?",r8="[-\\+]?\\d*\\.\\d+%?",_o="(?:".concat(r8,")|(?:").concat(n8,")"),Cf="[\\s|\\(]+(".concat(_o,")[,|\\s]+(").concat(_o,")[,|\\s]+(").concat(_o,")\\s*\\)?"),Sf="[\\s|\\(]+(".concat(_o,")[,|\\s]+(").concat(_o,")[,|\\s]+(").concat(_o,")[,|\\s]+(").concat(_o,")\\s*\\)?"),Tr={CSS_UNIT:new RegExp(_o),rgb:new RegExp("rgb"+Cf),rgba:new RegExp("rgba"+Sf),hsl:new RegExp("hsl"+Cf),hsla:new RegExp("hsla"+Sf),hsv:new RegExp("hsv"+Cf),hsva:new RegExp("hsva"+Sf),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 o8(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Hm[e])e=Hm[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=Tr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Tr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Tr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Tr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Tr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Tr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Tr.hex8.exec(e),n?{r:sr(n[1]),g:sr(n[2]),b:sr(n[3]),a:Yb(n[4]),format:t?"name":"hex8"}:(n=Tr.hex6.exec(e),n?{r:sr(n[1]),g:sr(n[2]),b:sr(n[3]),format:t?"name":"hex"}:(n=Tr.hex4.exec(e),n?{r:sr(n[1]+n[1]),g:sr(n[2]+n[2]),b:sr(n[3]+n[3]),a:Yb(n[4]+n[4]),format:t?"name":"hex8"}:(n=Tr.hex3.exec(e),n?{r:sr(n[1]+n[1]),g:sr(n[2]+n[2]),b:sr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function co(e){return !!Tr.CSS_UNIT.exec(String(e))}var Jt=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=t8(t)),this.originalInput=t;var o=Ga(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=KS(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=Fm(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=Fm(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=qb(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=qb(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),Bm(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),J6(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="#"+Bm(this.r,this.g,this.b,!1),n=0,r=Object.entries(Hm);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=Xl(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=Xl(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=Xl(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=Xl(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}(),Yl=2,Qb=.16,a8=.05,i8=.05,s8=.15,US=5,XS=4,l8=[{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 Zb(e){var t=e.r,n=e.g,r=e.b,o=Fm(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function Ql(e){var t=e.r,n=e.g,r=e.b;return "#".concat(Bm(t,n,r,!1))}function c8(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 Jb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Yl*t:Math.round(e.h)+Yl*t:r=n?Math.round(e.h)+Yl*t:Math.round(e.h)-Yl*t,r<0?r+=360:r>=360&&(r-=360),r}function e0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Qb*t:t===XS?r=e.s+Qb:r=e.s+a8*t,r>1&&(r=1),n&&t===US&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function t0(e,t,n){var r;return n?r=e.v+i8*t:r=e.v-s8*t,r>1&&(r=1),Number(r.toFixed(2))}function go(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ga(e),o=US;o>0;o-=1){var a=Zb(r),i=Ql(Ga({h:Jb(a,o,!0),s:e0(a,o,!0),v:t0(a,o,!0)}));n.push(i);}n.push(Ql(r));for(var s=1;s<=XS;s+=1){var l=Zb(r),c=Ql(Ga({h:Jb(l,s),s:e0(l,s),v:t0(l,s)}));n.push(c);}return t.theme==="dark"?l8.map(function(u){var d=u.index,f=u.opacity,h=Ql(c8(Ga(t.backgroundColor||"#141414"),Ga(n[d]),f*100));return h}):n}var wf={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"},gc={},$f={};Object.keys(wf).forEach(function(e){gc[e]=go(wf[e]),gc[e].primary=gc[e][5],$f[e]=go(wf[e],{theme:"dark",backgroundColor:"#141414"}),$f[e].primary=$f[e][5];});var u8=gc.blue;const d8=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},qS=d8;function f8(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 Wg={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"},m8=Object.assign(Object.assign({},Wg),{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}),hi=m8;function YS(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),h=n(a),g=n(i),v=n(s),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Jt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const h8=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},g8=h8;function v8(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},g8(r))}const uo=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),qi=(e,t)=>new Jt(e).darken(t).toHexString(),p8=e=>{const t=go(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]}},b8=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:uo(r,.88),colorTextSecondary:uo(r,.65),colorTextTertiary:uo(r,.45),colorTextQuaternary:uo(r,.25),colorFill:uo(r,.15),colorFillSecondary:uo(r,.06),colorFillTertiary:uo(r,.04),colorFillQuaternary:uo(r,.02),colorBgLayout:qi(n,4),colorBgContainer:qi(n,0),colorBgElevated:qi(n,0),colorBgSpotlight:uo(r,.85),colorBgBlur:"transparent",colorBorder:qi(n,15),colorBorderSecondary:qi(n,6)}};function y8(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 C8=e=>{const t=y8(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]}},QS=C8;function al(e){const t=Object.keys(Wg).map(n=>{const r=go(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),YS(e,{generateColorPalettes:p8,generateNeutralColorPalettes:b8})),QS(e.fontSize)),f8(e)),qS(e)),v8(e))}const ZS=Ts(al),Hc={token:hi,override:{override:hi},hashed:!0},JS=m.createContext(Hc);function xf(e){return e>=0&&e<=255}function Zl(e,t){const{r:n,g:r,b:o,a}=new Jt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Jt(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),f=Math.round((o-l*(1-c))/c);if(xf(u)&&xf(d)&&xf(f))return new Jt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Jt({r:n,g:r,b:o,a:1}).toRgbString()}var S8=function(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 Vg(e){const{override:t}=e,n=S8(e,["override"]),r=Object.assign({},t);Object.keys(hi).forEach(f=>{delete r[f];});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 f="0s";o.motionDurationFast=f,o.motionDurationMid=f,o.motionDurationSlow=f;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Zl(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:Zl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Zl(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:Zl(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 Jt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Jt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Jt("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 n0=function(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 ew=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=n0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Vg(i),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=n0(c,["theme"]);let f=d;u&&(f=ew(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=f;}),i};function er(){const{token:e,hashed:t,theme:n,override:r}=m.useContext(JS),o=`${U6}-${t||""}`,a=n||ZS,[i,s]=L6(a,[hi,e],{salt:o,override:r,getComputedToken:ew,formatToken:Vg});return [a,i,t?s:""]}const w8=m.createContext(void 0),Gg=w8,Go=100,$8=10,x8=Go*$8,tw={Modal:Go,Drawer:Go,Popover:Go,Popconfirm:Go,Tooltip:Go,Tour:Go},E8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function I8(e){return e in tw}function cd(e,t){const[,n]=er(),r=m.useContext(Gg),o=I8(e);if(t!==void 0)return [t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+tw[e],a=Math.min(a,n.zIndexPopupBase+x8)):a+=E8[e],[r===void 0?t:a,a]}const Ef=()=>({height:0,opacity:0}),r0=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},O8=e=>({height:e?e.offsetHeight:0}),If=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",nw=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Ef,onEnterStart:Ef,onAppearActive:r0,onEnterActive:r0,onLeaveStart:O8,onLeaveActive:Ef,onAppearEnd:If,onEnterEnd:If,onLeaveEnd:If,motionDeadline:500}},ud=(e,t,n)=>n!==void 0?n:`${e}-${t}`,P8=(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)),f=2*a-u,h=d,g=2*a-l,v=c,p=2*a-i,b=s,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=n*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${h} L ${g} ${v} A ${n} ${n} 0 0 0 ${p} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},rw=8;function Kg(e){const t=rw,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Jl(e,t){return e?t:{}}function Ug(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:h}=Kg({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"},P8(r,o,a,s,i)),{"&:before":{background:s}})]},Jl(!!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}}})),Jl(!!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}}})),Jl(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),Jl(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}function R8(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,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const o0={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"]}},M8={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"]}},_8=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ow(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(o0).forEach(c=>{const u=r&&M8[c]||o0[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,_8.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 f=Kg({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=f.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.dropdownArrowOffset+s;break}d.overflow=R8(c,f,t,n),i&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:vo}=m__namespace;function aw(e){return e&&vo(e)&&e.type===m__namespace.Fragment}function T8(e,t,n){return vo(e)?m__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Kn(e,t){return T8(e,e,t)}function N8(){}const k8=m__namespace.createContext({}),iw=()=>{const e=()=>{};return e.deprecated=N8,e};var A8=m.createContext({});const Xg=A8;function sw(e){return fS(e)||bS(e)||Tg(e)||mS()}function zr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function lw(e,t,n,r){if(!t.length)return n;var o=sw(t),a=o[0],i=o.slice(1),s;return !e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Ae(e):s=q({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=lw(s[a],i,n,r),s}function Lr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!zr(e,t.slice(0,-1))?e:lw(e,t,n,r)}function L8(e){return ut(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function a0(e){return Array.isArray(e)?[]:{}}var D8=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Za(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=a0(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=zr(o,i),u=Array.isArray(c);if(u||L8(c)){if(!l.has(c)){l.add(c);var d=zr(r,i);u?r=Lr(r,i,[]):(!d||ut(d)!=="object")&&(r=Lr(r,i,a0(c))),D8(c).forEach(function(f){a([].concat(Ae(i),[f]),l);});}}else r=Lr(r,i,c);}a([]);}),r}const z8=m.createContext(void 0),cw={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 j8={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 F8={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},uw=F8,B8={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"]},j8),timePickerLocale:Object.assign({},uw)},i0=B8,or="${label} is not a valid ${type}",H8={locale:"en",Pagination:cw,DatePicker:i0,TimePicker:uw,Calendar:i0,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:or,method:or,array:or,object:or,number:or,date:or,boolean:or,integer:or,float:or,regexp:or,email:or,url:or,hex:or},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"}},po=H8;Object.assign({},po.Modal);let vc=[];const s0=()=>vc.reduce((e,t)=>Object.assign(Object.assign({},e),t),po.Modal);function W8(e){if(e){const t=Object.assign({},e);return vc.push(t),s0(),()=>{vc=vc.filter(n=>n!==t),s0();}}Object.assign({},po.Modal);}const V8=m.createContext(void 0),qg=V8,G8=(e,t)=>{const n=m__namespace.useContext(qg),r=m__namespace.useMemo(()=>{var a;const i=t||po[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=m__namespace.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?po.locale:a},[n]);return [r,o]},ki=G8,K8="internalMark",U8=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;m__namespace.useEffect(()=>W8(t&&t.Modal),[t]);const o=m__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m__namespace.createElement(qg.Provider,{value:o},n)},X8=U8,dw="anticon",q8=(e,t)=>t||(e?`ant-${e}`:"ant"),rt=m__namespace.createContext({getPrefixCls:q8,iconPrefixCls:dw}),Y8=`-ant-${Date.now()}-${Math.random()}`;function Q8(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 Jt(i),c=go(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 Jt(t.primaryColor),s=go(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 Jt(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 Z8(e,t){const n=Q8(e,t);Gn()&&mi(n,`${Y8}-dynamic-theme`);}const Wm=m__namespace.createContext(!1),J8=e=>{let{children:t,disabled:n}=e;const r=m__namespace.useContext(Wm);return m__namespace.createElement(Wm.Provider,{value:n??r},t)},Kr=Wm,Vm=m__namespace.createContext(void 0),ez=e=>{let{children:t,size:n}=e;const r=m__namespace.useContext(Vm);return m__namespace.createElement(Vm.Provider,{value:n||r},t)},dd=Vm;function tz(){const e=m.useContext(Kr),t=m.useContext(dd);return {componentDisabled:e,componentSize:t}}const Ns=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ca={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ft=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return {boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ca=()=>({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"}}),Gm=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),nz=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"}}}),rz=(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"}}}}},ua=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),da=e=>({"&:focus-visible":Object.assign({},ua(e))}),fw=typeof CSSINJS_STATISTIC<"u";let Km=!0;function St(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!fw)return Object.assign.apply(Object,[{}].concat(t));Km=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),Km=!0,r}const l0={};function oz(){}function az(e){let t,n=e,r=oz;return fw&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return Km&&t.add(a),o[a]}}),r=(o,a)=>{var i;l0[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=l0[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}}const iz=(e,t)=>{const[n,r]=er();return jm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Ca()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},mw=iz;function Kt(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]=er(),{getPrefixCls:d,iconPrefixCls:f,csp:h}=m.useContext(rt),g=d(),v={theme:l,token:c,hashId:u,nonce:()=>h==null?void 0:h.nonce,clientOnly:r.clientOnly,order:r.order||-999};return jm(Object.assign(Object.assign({},v),{clientOnly:!1,path:["Shared",g]}),()=>[{"&":nz(c)}]),mw(f,h),[jm(Object.assign(Object.assign({},v),{path:[i,s,f]}),()=>{const{token:p,flush:b}=az(c),y=Object.assign({},c[a]);if(r.deprecatedTokens){const{deprecatedTokens:E}=r;E.forEach(I=>{let[O,M]=I;var R;(y!=null&&y[O]||y!=null&&y[M])&&((R=y[M])!==null&&R!==void 0||(y[M]=y==null?void 0:y[O]));});}const C=typeof n=="function"?n(St(p,y??{})):n,w=Object.assign(Object.assign({},C),y),x=`.${s}`,$=St(p,{componentCls:x,prefixCls:s,iconCls:`.${f}`,antCls:`.${g}`},w),S=t($,{hashId:u,prefixCls:s,rootPrefixCls:g,iconPrefixCls:f,overrideComponentToken:y});return b(a,w),[r.resetStyle===!1?null:rz($,s),S]}),u]}}const Yg=(e,t,n,r)=>{const o=Kt(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:s}=i;return o(s),null}};function fd(e,t){return Ns.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}))},{})}function sz(e,t){const n=e||{},r=n.inherit===!1||!t?Hc:t;return nl(()=>{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 !ol(i,l,!0)}))}function lz(e){const{children:t}=e,[,n]=er(),{motion:r}=n,o=m__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?m__namespace.createElement(RD,{motion:r},t):t}const cz=()=>null;var uz=function(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 dz=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],fz="ant";let hw;function mz(){return hw||fz}function hz(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const gz=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(hw=t),r&&hz(r)&&Z8(mz(),r);},vz=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:w,statistic:x,spin:$,calendar:S,carousel:E,cascader:I,collapse:O,typography:M,checkbox:R,descriptions:k,divider:A,drawer:L,skeleton:T,steps:P,image:_,layout:z,list:j,mentions:H,modal:B,progress:V,result:G,slider:X,breadcrumb:Q,menu:ee,pagination:W,input:Z,empty:U,badge:ue,radio:le,rate:ie,switch:ce,transfer:se,avatar:Y,message:ae,tag:me,table:te,card:re,tabs:he,timeline:Ce,timePicker:ke,upload:We,notification:Ge,tree:Me,colorPicker:Xe,datePicker:ze,rangePicker:He,flex:Ie,wave:we,dropdown:qe,warning:nt}=e,bt=m__namespace.useCallback((ge,Te)=>{const{prefixCls:Se}=e;if(Te)return Te;const fe=Se||p.getPrefixCls("");return ge?`${fe}-${ge}`:fe},[p.getPrefixCls,e.prefixCls]),Ze=b||p.iconPrefixCls||dw,Je=n||p.csp;mw(Ze,Je);const gt=sz(y,p.theme),vt={csp:Je,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||v,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??f,popupOverflow:g,getPrefixCls:bt,iconPrefixCls:Ze,theme:gt,segmented:w,statistic:x,spin:$,calendar:S,carousel:E,cascader:I,collapse:O,typography:M,checkbox:R,descriptions:k,divider:A,drawer:L,skeleton:T,steps:P,image:_,input:Z,layout:z,list:j,mentions:H,modal:B,progress:V,result:G,slider:X,breadcrumb:Q,menu:ee,pagination:W,empty:U,badge:ue,radio:le,rate:ie,switch:ce,transfer:se,avatar:Y,message:ae,tag:me,table:te,card:re,tabs:he,timeline:Ce,timePicker:ke,upload:We,notification:Ge,tree:Me,colorPicker:Xe,datePicker:ze,rangePicker:He,flex:Ie,wave:we,dropdown:qe,warning:nt},st=Object.assign({},p);Object.keys(vt).forEach(ge=>{vt[ge]!==void 0&&(st[ge]=vt[ge]);}),dz.forEach(ge=>{const Te=e[ge];Te&&(st[ge]=Te);});const dt=nl(()=>st,st,(ge,Te)=>{const Se=Object.keys(ge),fe=Object.keys(Te);return Se.length!==fe.length||Se.some(oe=>ge[oe]!==Te[oe])}),et=m__namespace.useMemo(()=>({prefixCls:Ze,csp:Je}),[Ze,Je]);let $e=m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(cz,{dropdownMatchSelectWidth:f}),t);const xe=m__namespace.useMemo(()=>{var ge,Te,Se,fe;return Za(((ge=po.Form)===null||ge===void 0?void 0:ge.defaultValidateMessages)||{},((Se=(Te=dt.locale)===null||Te===void 0?void 0:Te.Form)===null||Se===void 0?void 0:Se.defaultValidateMessages)||{},((fe=dt.form)===null||fe===void 0?void 0:fe.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[dt,i==null?void 0:i.validateMessages]);Object.keys(xe).length>0&&($e=m__namespace.createElement(z8.Provider,{value:xe},$e)),s&&($e=m__namespace.createElement(X8,{locale:s,_ANT_MARK__:K8},$e)),(Ze||Je)&&($e=m__namespace.createElement(Xg.Provider,{value:et},$e)),l&&($e=m__namespace.createElement(ez,{size:l},$e)),$e=m__namespace.createElement(lz,null,$e);const _e=m__namespace.useMemo(()=>{const ge=gt||{},{algorithm:Te,token:Se,components:fe}=ge,oe=uz(ge,["algorithm","token","components"]),ye=Te&&(!Array.isArray(Te)||Te.length>0)?Ts(Te):ZS,de={};Object.entries(fe||{}).forEach(Le=>{let[Ue,lt]=Le;const it=Object.assign({},lt);"algorithm"in it&&(it.algorithm===!0?it.theme=ye:(Array.isArray(it.algorithm)||typeof it.algorithm=="function")&&(it.theme=Ts(it.algorithm)),delete it.algorithm),de[Ue]=it;});const pe=Object.assign(Object.assign({},hi),Se);return Object.assign(Object.assign({},oe),{theme:ye,token:pe,components:de,override:Object.assign({override:pe},de)})},[gt]);return y&&($e=m__namespace.createElement(JS.Provider,{value:_e},$e)),dt.warning&&($e=m__namespace.createElement(k8.Provider,{value:dt.warning},$e)),C!==void 0&&($e=m__namespace.createElement(J8,{disabled:C},$e)),m__namespace.createElement(rt.Provider,{value:dt},$e)},Bo=e=>{const t=m__namespace.useContext(rt),n=m__namespace.useContext(qg);return m__namespace.createElement(vz,Object.assign({parentContext:t,legacyLocale:n},e))};Bo.ConfigContext=rt;Bo.SizeContext=dd;Bo.config=gz;Bo.useConfig=tz;Object.defineProperty(Bo,"SizeContext",{get:()=>dd});const pz=e=>{const t=m.useContext(dd);return m.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},tr=pz,bz=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},yz=bz,Cz=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"}}}},Sz=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}}}},gw=Kt("Space",e=>{const t=St(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [Cz(t),Sz(t),yz(t)]},()=>({}),{resetStyle:!1});var vw=function(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 md=m__namespace.createContext(null),Ai=(e,t)=>{const n=m__namespace.useContext(md),r=m__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return K(`${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}},gi=e=>{let{children:t}=e;return m__namespace.createElement(md.Provider,{value:null},t)},wz=e=>{var{children:t}=e,n=vw(e,["children"]);return m__namespace.createElement(md.Provider,{value:n},t)},$z=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(rt),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=vw(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=tr(C=>r??C),f=t("space-compact",i),[h,g]=gw(f),v=K(f,g,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:a,[`${f}-vertical`]:o==="vertical"},s,l),p=m__namespace.useContext(md),b=hr(c),y=m__namespace.useMemo(()=>b.map((C,w)=>{const x=C&&C.key||`${f}-item-${w}`;return m__namespace.createElement(wz,{key:x,compactSize:d,compactDirection:o,isFirstItem:w===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:w===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,b,p]);return b.length===0?null:h(m__namespace.createElement("div",Object.assign({className:v},u),y))},xz=$z,Ez=e=>({animationDuration:e,animationFillMode:"both"}),Iz=e=>({animationDuration:e,animationFillMode:"both"}),Qg=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({},Ez(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},Iz(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"}}},Oz=new Tt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Pz=new Tt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Rz=new Tt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Mz=new Tt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_z=new Tt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Tz=new Tt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Nz=new Tt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kz=new Tt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Az={"move-up":{inKeyframes:Nz,outKeyframes:kz},"move-down":{inKeyframes:Oz,outKeyframes:Pz},"move-left":{inKeyframes:Rz,outKeyframes:Mz},"move-right":{inKeyframes:_z,outKeyframes:Tz}},Wc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Az[t];return [Qg(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Zg=new Tt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Jg=new Tt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ev=new Tt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),tv=new Tt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Lz=new Tt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Dz=new Tt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),zz=new Tt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),jz=new Tt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Fz={"slide-up":{inKeyframes:Zg,outKeyframes:Jg},"slide-down":{inKeyframes:ev,outKeyframes:tv},"slide-left":{inKeyframes:Lz,outKeyframes:Dz},"slide-right":{inKeyframes:zz,outKeyframes:jz}},Ao=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Fz[t];return [Qg(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}}]},Bz=new Tt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Hz=new Tt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),c0=new Tt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),u0=new Tt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Wz=new Tt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Vz=new Tt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Gz=new Tt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Kz=new Tt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Uz=new Tt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Xz=new Tt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),qz=new Tt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Yz=new Tt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Qz={zoom:{inKeyframes:Bz,outKeyframes:Hz},"zoom-big":{inKeyframes:c0,outKeyframes:u0},"zoom-big-fast":{inKeyframes:c0,outKeyframes:u0},"zoom-left":{inKeyframes:Gz,outKeyframes:Kz},"zoom-right":{inKeyframes:Uz,outKeyframes:Xz},"zoom-up":{inKeyframes:Wz,outKeyframes:Vz},"zoom-down":{inKeyframes:qz,outKeyframes:Yz}},hd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Qz[t];return [Qg(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}}]},Zz=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`}}}),pw=Zz,Jz=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({},Ft(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,rw)}},[`${t}-content`]:{position:"relative"}}),fd(e,(f,h)=>{let{darkColor:g}=h;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Ug(St(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},bw=(e,t)=>Kt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=r,l=St(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return [Jz(l),hd(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return {zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),ej=Ns.map(e=>`${e}-inverse`),tj=["success","processing","error","default","warning"];function gd(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ae(ej),Ae(Ns)).includes(e):Ns.includes(e)}function nj(e){return tj.includes(e)}function yw(e,t){const n=gd(t),r=K({[`${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 rj=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=m__namespace.useContext(rt),l=s("tooltip",t),[c,u]=bw(l,!0),d=yw(l,a),f=d.arrowStyle,h=Object.assign(Object.assign({},i),d.overlayStyle),g=K(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(m__namespace.createElement("div",{className:g,style:f},m__namespace.createElement("div",{className:`${l}-arrow`}),m__namespace.createElement(_g,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},oj=rj;var aj=function(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=m__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:f,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,w=!!g,[,x]=er(),{getPopupContainer:$,getPrefixCls:S,direction:E}=m__namespace.useContext(rt),I=iw(),O=m__namespace.useRef(null),M=()=>{var Ce;(Ce=O.current)===null||Ce===void 0||Ce.forceAlign();};m__namespace.useImperativeHandle(t,()=>({forceAlign:M,forcePopupAlign:()=>{I.deprecated(!1,"forcePopupAlign","forceAlign"),M();}}));const[R,k]=qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!v&&!p&&v!==0,L=Ce=>{var ke,We;k(A?!1:Ce),A||((ke=e.onOpenChange)===null||ke===void 0||ke.call(e,Ce),(We=e.onVisibleChange)===null||We===void 0||We.call(e,Ce));},T=m__namespace.useMemo(()=>{var Ce,ke;let We=y;return typeof g=="object"&&(We=(ke=(Ce=g.pointAtCenter)!==null&&Ce!==void 0?Ce:g.arrowPointAtCenter)!==null&&ke!==void 0?ke:y),b||ow({arrowPointAtCenter:We,autoAdjustOverflow:C,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[y,g,b,x]),P=m__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),_=m__namespace.createElement(gi,null,typeof P=="function"?P():P),{getPopupContainer:z,placement:j="top",mouseEnterDelay:H=.1,mouseLeaveDelay:B=.1,overlayStyle:V,rootClassName:G}=e,X=aj(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=S("tooltip",o),ee=S(),W=e["data-popover-inject"];let Z=R;!("open"in e)&&!("visible"in e)&&A&&(Z=!1);const U=vo(u)&&!aw(u)?u:m__namespace.createElement("span",null,u),ue=U.props,le=!ue.className||typeof ue.className=="string"?K(ue.className,a||`${Q}-open`):ue.className,[ie,ce]=bw(Q,!W),se=yw(Q,l),Y=se.arrowStyle,ae=Object.assign(Object.assign({},c),se.overlayStyle),me=K(s,{[`${Q}-rtl`]:E==="rtl"},se.className,G,ce),[te,re]=cd("Tooltip",X.zIndex),he=m__namespace.createElement(u6,Object.assign({},X,{zIndex:te,showArrow:w,placement:j,mouseEnterDelay:H,mouseLeaveDelay:B,prefixCls:Q,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},Y),V),getTooltipContainer:z||i||$,ref:O,builtinPlacements:T,overlay:_,visible:Z,onVisibleChange:L,afterVisibleChange:d??f,overlayInnerStyle:ae,arrowContent:m__namespace.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:ud(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),Z?Kn(U,{className:le}):U);return ie(m__namespace.createElement(Gg.Provider,{value:re},he))});Cw._InternalPanelDoNotUseOrYouWillBeFired=oj;const il=Cw,ij=e=>{const t=e!=null&&e.algorithm?Ts(e.algorithm):Ts(al),n=Object.assign(Object.assign({},hi),e==null?void 0:e.token);return HS(n,{override:e==null?void 0:e.token},t,Vg)},sj=ij;function lj(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 cj=(e,t)=>{const n=t??al(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),lj(t??e)),QS(r)),{controlHeight:o}),qS(Object.assign(Object.assign({},n),{controlHeight:o})))},uj=cj,fo=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),_a=(e,t)=>new Jt(e).lighten(t).toHexString(),dj=e=>{const t=go(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]}},fj=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:fo(r,.85),colorTextSecondary:fo(r,.65),colorTextTertiary:fo(r,.45),colorTextQuaternary:fo(r,.25),colorFill:fo(r,.18),colorFillSecondary:fo(r,.12),colorFillTertiary:fo(r,.08),colorFillQuaternary:fo(r,.04),colorBgElevated:_a(n,12),colorBgContainer:_a(n,8),colorBgLayout:_a(n,0),colorBgSpotlight:_a(n,26),colorBgBlur:fo(r,.04),colorBorder:_a(n,26),colorBorderSecondary:_a(n,19)}},mj=(e,t)=>{const n=Object.keys(Wg).map(o=>{const a=go(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??al(e);return Object.assign(Object.assign(Object.assign({},r),n),YS(e,{generateColorPalettes:dj,generateNeutralColorPalettes:fj}))},hj=mj;function gj(){const[e,t,n]=er();return {theme:e,token:t,hashId:n}}const d0={defaultConfig:Hc,defaultSeed:Hc.token,useToken:gj,defaultAlgorithm:al,darkAlgorithm:hj,compactAlgorithm:uj,getDesignToken:sj};var vj=kC,f0=1/0,pj=17976931348623157e292;function bj(e){if(!e)return e===0?e:0;if(e=vj(e),e===f0||e===-f0){var t=e<0?-1:1;return t*pj}return e===e?e:0}var yj=bj,Cj=yj;function Sj(e){var t=Cj(e),n=t%1;return t===t?n?t-n:t:0}var wj=Sj,$j=wj,xj="Expected a function";function Ej(e,t){var n;if(typeof t!="function")throw new TypeError(xj);return e=$j(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Ij=Ej,Oj=Ij;function Pj(e){return Oj(2,e)}var Rj=Pj;const Sw=Rn(Rj),fa=Sw(()=>!!document.querySelectorAll(".bili-feed4").length),ww=()=>document.body.classList.contains("dark"),$w=Zn({value:ww()});function vd(){return Jn($w).value}const nv=new MutationObserver(function(){$w.value=ww();});nv.observe(document.body,{attributes:!0,attributeFilter:["class"]});nv.observe(document.documentElement,{attributes:!0,attributeFilter:["data-darkreader-scheme"]});window.addEventListener("unload",()=>{nv.disconnect();});const xw=HE();var _1;const Mj=((_1=xw.os.name)==null?void 0:_1.toLowerCase())==="mac os";var T1;const rv=((T1=xw.browser.name)==null?void 0:T1.toLowerCase())==="safari";var Of=tC(function(e,t){var n=e.styles,r=ei([n],void 0,m__namespace.useContext(nC)),o=m__namespace.useRef();return Ip(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]),Ip(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&rg(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 cr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ei(t)}var pd={},Ew={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;})(Ew);var ov=Ew.exports,bd={};Object.defineProperty(bd,"__esModule",{value:!0});bd.default=void 0;bd.default={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 yd={},sl={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});Cd.default=void 0;var _j={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:"下一世纪"};Cd.default=_j;var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.default=void 0;const Tj={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};ll.default=Tj;var Iw=ov.default;Object.defineProperty(sl,"__esModule",{value:!0});sl.default=void 0;var Nj=Iw(Cd),kj=Iw(ll);const Ow={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Nj.default),timePickerLocale:Object.assign({},kj.default)};Ow.lang.ok="确定";sl.default=Ow;var Aj=ov.default;Object.defineProperty(yd,"__esModule",{value:!0});yd.default=void 0;var Lj=Aj(sl);yd.default=Lj.default;var Sd=ov.default;Object.defineProperty(pd,"__esModule",{value:!0});pd.default=void 0;var Dj=Sd(bd),zj=Sd(yd),jj=Sd(sl),Fj=Sd(ll);const ar="${label}不是一个有效的${type}",Bj={locale:"zh-cn",Pagination:Dj.default,DatePicker:jj.default,TimePicker:Fj.default,Calendar:zj.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:ar,method:ar,array:ar,object:ar,number:ar,date:ar,boolean:ar,integer:ar,float:ar,regexp:ar,email:ar,url:ar,hex:ar},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:"暂无"}};pd.default=Bj;var Hj=pd;const Wj=Rn(Hj),Pw="HarmonyOS_Regular,PingFang SC,Helvetica Neue,Microsoft YaHei,sans-serif";function av({children:e,injectGlobalStyle:t=!1}){const n=vd(),{colorPrimary:r}=Eg();return be(Bo,{locale:Wj,theme:{algorithm:n?d0.darkAlgorithm:d0.defaultAlgorithm,token:{colorPrimary:r,colorBgSpotlight:r,zIndexPopupBase:11e3,fontFamily:Pw}},children:[t&&D(Kj,{}),D(framerMotion.LazyMotion,{features:framerMotion.domAnimation,children:e})]})}var Vj={name:"16o6vcu",styles:`body,.large-header,#i_cecream,.bili-header .bili-header__channel{background-color:var(--bg2);}/* @media (min-width: 1140px) and (max-width: 1299.9px) { :root { --layout-padding: 60px; } } @media (min-width: 1400px) and (max-width: 1559.9px) { :root { --layout-padding: 60px; } } @media (min-width: 1560px) and (max-width: 2059.9px) { :root { --layout-padding: 80px; } } @media (min-width: 2060px) { :root { --layout-padding: 100px; } } */`},Gj={name:"1jg1jgh",styles:".palette-button-outer{.palette-button-wrap{.flexible-roll-btn{display:none;}}}"};function Kj(){const{colorPrimary:e}=Eg(),{styleFancy:t,pureRecommend:n}=en();return be(It,{children:[D(Of,{styles:cr` :root { ${XC}: ${e}; } .${pa} { font-family: ${Pw}; .bili-video-card a:not(.disable-hover):hover{ color: ${Ir} !important; } } `}),n&&D(Of,{styles:Gj}),n&&t&&D(Of,{styles:Vj})]})}function wd(e){return D(il,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var cl,m0=k1;cl=m0.createRoot,m0.hydrateRoot;const Uj=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return {[t]:Object.assign(Object.assign({},Ft(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}}})}},Xj=Kt("Divider",e=>{const t=St(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [Uj(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}));var qj=function(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 Yj=e=>{const{getPrefixCls:t,direction:n,divider:r}=m__namespace.useContext(rt),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:h}=e,g=qj(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,b]=Xj(v),y=i.length>0?`-${i}`:i,C=!!u,w=i==="left"&&s!=null,x=i==="right"&&s!=null,$=K(v,r==null?void 0:r.className,b,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text${y}`]:C,[`${v}-dashed`]:!!d,[`${v}-plain`]:!!f,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:x},l,c),S=m__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),E=Object.assign(Object.assign({},w&&{marginLeft:S}),x&&{marginRight:S});return p(m__namespace.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),u&&a!=="vertical"&&m__namespace.createElement("span",{className:`${v}-inner-text`,style:E},u)))},Rw=Yj;var Qj=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function h0(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 g0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h0(Object(n),!0).forEach(function(r){Zj(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jj(e,t){if(e==null)return {};var n=eF(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 eF(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 tF={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 nF(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function rF(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 Mw=m.createContext(tF);Mw.Provider;function Wt(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,f=Jj(r,Qj),h=m.useContext(Mw),g=m.useMemo(nF,[]),v=rF(g,{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),m.createElement("span",g0(g0({},f),{},{className:p.join(" ")}),n(v))}}const oF=Wt("drag",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 10C19 12.2091 17.2091 14 15 14C12.7909 14 11 12.2091 11 10C11 7.79086 12.7909 6 15 6C17.2091 6 19 7.79086 19 10ZM15 28C17.2091 28 19 26.2091 19 24C19 21.7909 17.2091 20 15 20C12.7909 20 11 21.7909 11 24C11 26.2091 12.7909 28 15 28ZM15 42C17.2091 42 19 40.2091 19 38C19 35.7909 17.2091 34 15 34C12.7909 34 11 35.7909 11 38C11 40.2091 12.7909 42 15 42Z",fill:e.colors[0]}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37 10C37 12.2091 35.2091 14 33 14C30.7909 14 29 12.2091 29 10C29 7.79086 30.7909 6 33 6C35.2091 6 37 7.79086 37 10ZM33 28C35.2091 28 37 26.2091 37 24C37 21.7909 35.2091 20 33 20C30.7909 20 29 21.7909 29 24C29 26.2091 30.7909 28 33 28ZM33 42C35.2091 42 37 40.2091 37 38C37 35.7909 35.2091 34 33 34C30.7909 34 29 35.7909 29 38C29 40.2091 30.7909 42 33 42Z",fill:e.colors[0]}))}),aF=Wt("trend-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M4 44H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 26L12 28V38H4V26Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 24L28 20V38H20V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 16L44 12V38H36V16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 18L12 20L44 4H34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),iF=Wt("fire",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M24 44C32.2347 44 38.9998 37.4742 38.9998 29.0981C38.9998 27.0418 38.8953 24.8375 37.7555 21.4116C36.6157 17.9858 36.3861 17.5436 35.1809 15.4279C34.666 19.7454 31.911 21.5448 31.2111 22.0826C31.2111 21.5231 29.5445 15.3359 27.0176 11.6339C24.537 8 21.1634 5.61592 19.1853 4C19.1853 7.06977 18.3219 11.6339 17.0854 13.9594C15.8489 16.2849 15.6167 16.3696 14.0722 18.1002C12.5278 19.8308 11.8189 20.3653 10.5274 22.4651C9.23596 24.565 9 27.3618 9 29.4181C9 37.7942 15.7653 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),sF=Wt("split",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M19 10V7C19 5.89543 19.8954 5 21 5H41C42.1046 5 43 5.89543 43 7V29C43 30.1046 42.1046 31 41 31H37",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("rect",{x:"5",y:"18",width:"24",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),lF=Wt("people-search",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),cF=Wt("people-minus",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),m.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),uF=Wt("people-delete",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),dF=Wt("delete",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),fF=Wt("add-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),mF=Wt("play-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),hF=Wt("unlike",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),gF=Wt("dislike-two",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),m.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),m.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),vF=Wt("copy",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),pF=Wt("efferent-four",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),bF=Wt("star",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}))}),yF=Wt("file-cabinet",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),CF=Wt("tumblr",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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]}))}),SF=Wt("concern",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.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}),m.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}),m.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}))}),wF=Wt("iphone",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),$F=Wt("computer",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),xF=Wt("tips",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),EF=Wt("return",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),IF=Wt("loading-three",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),OF=Wt("loading",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),PF=Wt("info",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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]}),m.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),RF=Wt("help",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.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]}))}),MF=Wt("distraught-face",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),_F=Wt("config",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),TF=Wt("close",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),NF={Close:TF,Config:_F,DistraughtFace:MF,Help:RF,Info:PF,Loading:OF,LoadingThree:IF,Return:EF,Tips:xF,Computer:$F,Iphone:wF,Concern:SF,Tumblr:CF,FileCabinet:yF,Star:bF,EfferentFour:pF,Copy:vF,DislikeTwo:gF,Unlike:hF,PlayTwo:mF,AddTwo:fF,Delete:dF,PeopleDelete:uF,PeopleMinus:cF,PeopleSearch:lF,Split:sF,Fire:iF,TrendTwo:aF,Drag:oF};function kt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=NF[e];return D(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var _w=function(e){return function(t,n){var r=m.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},Dr=function(){return Dr=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},Dr.apply(this,arguments)};function Tw(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 kF(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 AF(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 Um(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 cn(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 An(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 Li=function(e){return typeof e=="function"},LF=function(e){return typeof e=="string"},Nw=function(e){return typeof e=="number"};function ot(e){var t=m.useRef(e);t.current=m.useMemo(function(){return e},[e]);var n=m.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 Vc=_w(m.useEffect);var kw=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=m.useRef(!1);return u.current=!1,Vc(function(){!n&&o&&(u.current=!0,e.run.apply(e,An([],cn(i),!1)));},[o]),Vc(function(){u.current||n||(u.current=!0,c?c():e.refresh());},An([],cn(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};kw.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const zF=kw;function Xm(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 Aw(e,t){var n=m.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!Xm(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function vi(e){var t=m.useRef(e);return t.current=e,t}var jF=function(e){var t=vi(e);m.useEffect(function(){return function(){t.current();}},[]);};const ul=jF;var pc=new Map,FF=function(e,t,n){var r=pc.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){pc.delete(e);},t)),pc.set(e,Dr(Dr({},n),{timer:o}));},BF=function(e){return pc.get(e)},bc=new Map,HF=function(e){return bc.get(e)},WF=function(e,t){bc.set(e,t),t.then(function(n){return bc.delete(e),n}).catch(function(){bc.delete(e);});},Xo={},VF=function(e,t){Xo[e]&&Xo[e].forEach(function(n){return n(t)});},Pf=function(e,t){return Xo[e]||(Xo[e]=[]),Xo[e].push(t),function(){var r=Xo[e].indexOf(t);Xo[e].splice(r,1);}},GF=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=m.useRef(),u=m.useRef(),d=function(h,g){s?s(g):FF(h,o,g),VF(h,g.data);},f=function(h,g){return g===void 0&&(g=[]),l?l(g):BF(h)};return Aw(function(){if(n){var h=f(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=Pf(n,function(g){e.setState({data:g});});}},[]),ul(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var g=f(n,h);return !g||!Object.hasOwnProperty.call(g,"data")?{}:i===-1||new Date().getTime()-g.time<=i?{loading:!1,data:g==null?void 0:g.data,error:void 0,returnNow:!0}:{data:g==null?void 0:g.data,error:void 0}},onRequest:function(h,g){var v=HF(n);return v&&v!==u.current?{servicePromise:v}:(v=h.apply(void 0,An([],cn(g),!1)),u.current=v,WF(n,v),{servicePromise:v})},onSuccess:function(h,g){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:g,time:new Date().getTime()}),c.current=Pf(n,function(p){e.setState({data:p});}));},onMutate:function(h){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=Pf(n,function(v){e.setState({data:v});}));}}:{}};const KF=GF;var UF=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=m.useRef(),s=m.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 m.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=LA(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,f){var h;(h=i.current)===null||h===void 0||h.call(i,function(){l.apply(void 0,An([],cn(c),!1)).then(d).catch(f);});})},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 XF=UF;var qF=function(e,t){var n=t.loadingDelay,r=t.ready,o=m.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 YF=qF;var QF=!!(typeof window<"u"&&window.document&&window.document.createElement);const dl=QF;function iv(){return dl?document.visibilityState!=="hidden":!0}var fs=[];function ZF(e){return fs.push(e),function(){var n=fs.indexOf(e);fs.splice(n,1);}}if(dl){var JF=function(){if(iv())for(var e=0;e<fs.length;e++){var t=fs[e];t();}};window.addEventListener("visibilitychange",JF,!1);}var eB=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=m.useRef(),l=m.useRef(),c=m.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return Vc(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&&!iv()?l.current=ZF(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const tB=eB;function nB(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,An([],cn(r),!1)),setTimeout(function(){n=!1;},t));}}function rB(){return dl&&typeof navigator.onLine<"u"?navigator.onLine:!0}var ms=[];function oB(e){return ms.push(e),function(){var n=ms.indexOf(e);n>-1&&ms.splice(n,1);}}if(dl){var v0=function(){if(!(!iv()||!rB()))for(var e=0;e<ms.length;e++){var t=ms[e];t();}};window.addEventListener("visibilitychange",v0,!1),window.addEventListener("focus",v0,!1);}var aB=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,a=m.useRef(),i=function(){var s;(s=a.current)===null||s===void 0||s.call(a);};return m.useEffect(function(){if(n){var s=nB(e.refresh.bind(e),o);a.current=oB(function(){s();});}return function(){i();}},[n,o]),ul(function(){i();}),{}};const iB=aB;var sB=function(e,t){var n=t.retryInterval,r=t.retryCount,o=m.useRef(),a=m.useRef(0),i=m.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 lB=sB;var cB=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,a=m.useRef(),i={};return r!==void 0&&(i.leading=r),o!==void 0&&(i.trailing=o),m.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=LC(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 f;(f=a.current)===null||f===void 0||f.call(a,function(){s.apply(void 0,An([],cn(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 uB=cB;var dB=function(e){m.useEffect(function(){e==null||e();},[]);};const fl=dB;var fB=function(){var e=cn(m.useState({}),2),t=e[1];return m.useCallback(function(){return t({})},[])};const mB=fB;var hB=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=Dr(Dr(Dr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Dr(Dr({},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,An([a],cn(n),!1))}).filter(Boolean);return Object.assign.apply(Object,An([{}],cn(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,a,i,s,l,c,u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return kF(this,void 0,void 0,function(){var h,g,v,p,b,y,C,w,x,$,S;return AF(this,function(E){switch(E.label){case 0:if(this.count+=1,h=this.count,g=this.runPluginHandler("onBefore",d),v=g.stopNow,p=v===void 0?!1:v,b=g.returnNow,y=b===void 0?!1:b,C=Tw(g,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(Dr({loading:!0,params:d},C)),y)return [2,Promise.resolve(C.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),E.label=1;case 1:return E.trys.push([1,3,,4]),w=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,w||(w=(S=this.serviceRef).current.apply(S,An([],cn(d),!1))),[4,w];case 2:return x=E.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:x,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,x,d),this.runPluginHandler("onSuccess",x,d),(i=(a=this.options).onFinally)===null||i===void 0||i.call(a,d,x,void 0),h===this.count&&this.runPluginHandler("onFinally",d,x,void 0),[2,x]);case 3:if($=E.sent(),h!==this.count)return [2,new Promise(function(){})];throw this.setState({error:$,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,$,d),this.runPluginHandler("onError",$,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,$),h===this.count&&this.runPluginHandler("onFinally",d,void 0,$),$;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,An([],cn(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,An([],cn(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,An([],cn(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=Li(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const gB=hB;function vB(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,a=Tw(t,["manual"]);var i=Dr({manual:o},a),s=vi(e),l=mB(),c=Aw(function(){var u=n.map(function(d){var f;return (f=d==null?void 0:d.onInit)===null||f===void 0?void 0:f.call(d,i)}).filter(Boolean);return new gB(s,i,l,Object.assign.apply(Object,An([{}],cn(u),!1)))},[]);return c.options=i,c.pluginImpls=n.map(function(u){return u(c,i)}),fl(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,An([],cn(u),!1));}}),ul(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:ot(c.cancel.bind(c)),refresh:ot(c.refresh.bind(c)),refreshAsync:ot(c.refreshAsync.bind(c)),run:ot(c.run.bind(c)),runAsync:ot(c.runAsync.bind(c)),mutate:ot(c.mutate.bind(c))}}function Lw(e,t,n){return vB(e,t,An(An([],cn(n||[]),!1),[XF,YF,tB,iB,uB,zF,KF,lB],!1))}function Dw(e,t){e===void 0&&(e=!1);var n=cn(m.useState(e),2),r=n[0],o=n[1],a=m.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 pB(e){e===void 0&&(e=!1);var t=cn(Dw(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set,i=m.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 xd(e,t){if(dl){if(!e)return t;var n;return Li(e)?n=e():"current"in e?n=e.current:n=e,n}}var bB=function(e){var t=function(n,r,o){var a=m.useRef(!1),i=m.useRef([]),s=m.useRef([]),l=m.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(f){return xd(f)});if(!a.current){a.current=!0,i.current=d,s.current=r,l.current=n();return}(d.length!==i.current.length||!Xm(d,i.current)||!Xm(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),i.current=d,s.current=r,l.current=n());}),ul(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1;});};return t};const yB=bB;var CB=yB(m.useEffect);const zw=CB;var SB="__lodash_hash_undefined__";function wB(e){return this.__data__.set(e,SB),this}var $B=wB;function xB(e){return this.__data__.has(e)}var EB=xB,IB=sg,OB=$B,PB=EB;function Gc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new IB;++t<n;)this.add(e[t]);}Gc.prototype.add=Gc.prototype.push=OB;Gc.prototype.has=PB;var jw=Gc;function RB(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 MB=RB;function _B(e,t){return e.has(t)}var Fw=_B,TB=jw,NB=MB,kB=Fw,AB=1,LB=2;function DB(e,t,n,r,o,a){var i=n&AB,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,f=!0,h=n&LB?new TB:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],v=t[d];if(r)var p=i?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(p!==void 0){if(p)continue;f=!1;break}if(h){if(!NB(t,function(b,y){if(!kB(h,y)&&(g===b||o(g,b,n,r,a)))return h.push(y)})){f=!1;break}}else if(!(g===v||o(g,v,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Bw=DB;function zB(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}var jB=zB;function FB(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var sv=FB,p0=Ei,b0=xC,BB=ag,HB=Bw,WB=jB,VB=sv,GB=1,KB=2,UB="[object Boolean]",XB="[object Date]",qB="[object Error]",YB="[object Map]",QB="[object Number]",ZB="[object RegExp]",JB="[object Set]",e9="[object String]",t9="[object Symbol]",n9="[object ArrayBuffer]",r9="[object DataView]",y0=p0?p0.prototype:void 0,Rf=y0?y0.valueOf:void 0;function o9(e,t,n,r,o,a,i){switch(n){case r9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case n9:return !(e.byteLength!=t.byteLength||!a(new b0(e),new b0(t)));case UB:case XB:case QB:return BB(+e,+t);case qB:return e.name==t.name&&e.message==t.message;case ZB:case e9:return e==t+"";case YB:var s=WB;case JB:var l=r&GB;if(s||(s=VB),e.size!=t.size&&!l)return !1;var c=i.get(e);if(c)return c==t;r|=KB,i.set(e,t);var u=HB(s(e),s(t),r,o,a,i);return i.delete(e),u;case t9:if(Rf)return Rf.call(e)==Rf.call(t)}return !1}var a9=o9,C0=CC,i9=1,s9=Object.prototype,l9=s9.hasOwnProperty;function c9(e,t,n,r,o,a){var i=n&i9,s=C0(e),l=s.length,c=C0(t),u=c.length;if(l!=u&&!i)return !1;for(var d=l;d--;){var f=s[d];if(!(i?f in t:l9.call(t,f)))return !1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<l;){f=s[d];var b=e[f],y=t[f];if(r)var C=i?r(y,b,f,t,e,a):r(b,y,f,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){v=!1;break}p||(p=f=="constructor");}if(v&&!p){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(v=!1);}return a.delete(e),a.delete(t),v}var u9=c9,Mf=lg,d9=Bw,f9=a9,m9=u9,S0=Wu,w0=Vr,$0=dg,h9=fC,g9=1,x0="[object Arguments]",E0="[object Array]",ec="[object Object]",v9=Object.prototype,I0=v9.hasOwnProperty;function p9(e,t,n,r,o,a){var i=w0(e),s=w0(t),l=i?E0:S0(e),c=s?E0:S0(t);l=l==x0?ec:l,c=c==x0?ec:c;var u=l==ec,d=c==ec,f=l==c;if(f&&$0(e)){if(!$0(t))return !1;i=!0,u=!1;}if(f&&!u)return a||(a=new Mf),i||h9(e)?d9(e,t,n,r,o,a):f9(e,t,l,n,r,o,a);if(!(n&g9)){var h=u&&I0.call(e,"__wrapped__"),g=d&&I0.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,p=g?t.value():t;return a||(a=new Mf),o(v,p,n,r,a)}}return f?(a||(a=new Mf),m9(e,t,n,r,o,a)):!1}var b9=p9,y9=b9,O0=Lo;function Hw(e,t,n,r,o){return e===t?!0:e==null||t==null||!O0(e)&&!O0(t)?e!==e&&t!==t:y9(e,t,n,r,Hw,o)}var lv=Hw,C9=lv;function S9(e,t){return C9(e,t)}var w9=S9;const $9=Rn(w9);var x9=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),$9(e,t)};function To(e,t,n){n===void 0&&(n={});var r=vi(t);zw(function(){var o=xd(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 Ww(e){var t=cn(m.useState(e),2),n=t[0],r=t[1],o=m.useRef(n);o.current=n;var a=m.useCallback(function(){return o.current},[]);return [n,r,a]}const _f=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,a=n.onChange,i=cn(pB(!1),2),s=i[0],l=i[1],c=l.setTrue,u=l.setFalse;return To("mouseenter",function(){r==null||r(),c(),a==null||a(!0);},{target:e}),To("mouseleave",function(){o==null||o(),u(),a==null||a(!1);},{target:e}),s};var E9=function(e,t,n){var r=m.useRef(),o=m.useRef(0);x9(t,r.current)||(r.current=t,o.current+=1),zw(e,[o.current],n);};const I9=E9;var O9=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const P9=O9;var Vw={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:P9?[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},qm={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"?Vw.meta.includes(e.keyCode):e.metaKey}};function R9(e){var t=Object.keys(qm).reduce(function(n,r){return qm[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function P0(e,t,n){var r,o;if(!e.key)return !1;if(Nw(t))return e.keyCode===t;var a=t.split("."),i=0;try{for(var s=Um(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=qm[c],d=Vw[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&i++;}}catch(f){r={error:f};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?i===a.length&&R9(e)===a.length:i===a.length}function M9(e,t){return Li(e)?e:LF(e)||Nw(e)?function(n){return P0(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return P0(n,r,t)})}:function(){return !!e}}var _9=["keydown"];function fn(e,t,n){var r=n||{},o=r.events,a=o===void 0?_9:o,i=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=vi(t),f=vi(e);I9(function(){var h,g,v,p=xd(i,window);if(p){var b=function(x){var $,S=M9(f.current,l);if(S(x))return ($=d.current)===null||$===void 0?void 0:$.call(d,x)};try{for(var y=Um(a),C=y.next();!C.done;C=y.next()){var w=C.value;(v=p==null?void 0:p.addEventListener)===null||v===void 0||v.call(p,w,b,u);}}catch(x){h={error:x};}finally{try{C&&!C.done&&(g=y.return)&&g.call(y);}finally{if(h)throw h.error}}return function(){var x,$,S;try{for(var E=Um(a),I=E.next();!I.done;I=E.next()){var O=I.value;(S=p==null?void 0:p.removeEventListener)===null||S===void 0||S.call(p,O,b,u);}}catch(M){x={error:M};}finally{try{I&&!I.done&&($=E.return)&&$.call(E);}finally{if(x)throw x.error}}}}},[a],i);}function Gw(e){var t=m.useRef(0),n=cn(m.useState(e),2),r=n[0],o=n[1],a=m.useCallback(function(i){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(i);});},[]);return ul(function(){cancelAnimationFrame(t.current);}),[r,a]}var T9={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 N9=function(e){var t=cn(Gw(T9),2),n=t[0],r=t[1];return To("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},f=xd(e);if(f){var h=f.getBoundingClientRect(),g=h.left,v=h.top,p=h.width,b=h.height;d.elementPosX=g+window.pageXOffset,d.elementPosY=v+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 k9=function(e,t){return !Object.is(e,t)};function A9(e,t){t===void 0&&(t=k9);var n=m.useRef(),r=m.useRef();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var L9=function(){var e=m.useRef(!1);return m.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const D9=L9,z9=_w(m.useLayoutEffect),j9="_modal-mask_1wljt_1",F9="_modal_1wljt_1",B9="_modal-header_1wljt_25",H9="_modal-body_1wljt_33",W9="_modal-title_1wljt_39",V9="_btn-close_1wljt_47",fr={modalMask:j9,modal:F9,modalHeader:B9,modalBody:H9,modalTitle:W9,btnClose:V9};let os=0;const G9=()=>{os++,document.body.style.overflow="hidden";},K9=()=>{os--,os<0&&(os=0),os===0&&(document.body.style.overflow="");};function Ed({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:a,clsModal:i,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){m.useLayoutEffect(()=>{e?G9():K9();},[e]);const u=m.useRef(null),d=vd(),{bg:f,c:h}=m.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,C=window.getComputedStyle(document.body).color;return {bg:y,c:C}},[d]),g=m.useMemo(()=>d?{"--bg":f,"--c":h,backgroundColor:f,color:h}:{},[f,h,d]),v=m.useId(),p=m.useMemo(()=>{const y=document.createElement("div");return y.classList.add(pa),y.setAttribute("data-id","base-modal-"+v),document.body.appendChild(y),y},[]),b=ot(y=>{var w;const C=y.target;(w=u.current)!=null&&w.contains(C)||C.closest('.ant-tooltip-inner[role="tooltip"]')||C.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return fn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?k1.createPortal(D("div",{className:K(fr.modalMask,o),style:r,onClick:b,children:D("div",{className:K(fr.modal,i),style:{...g,width:s,...a},ref:u,children:n})}),p):null}const Id=e=>D(kt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function cv(e){const t=Zn({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(Zn(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 U9(e){const t=Zn({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 $r,Yt,ln,Po,Gs,Ro,Ks,Ym,lr,Nr,Cu,Kw,Us,Qm,Xs,Zm,qs,Jm,Su,Uw,Ys,eh;class X9 extends Map{constructor(n={}){super();Wn(this,Ks);Wn(this,lr);Wn(this,Cu);Wn(this,Us);Wn(this,Xs);Wn(this,qs);Wn(this,Su);Wn(this,Ys);Wn(this,$r,0);Wn(this,Yt,new Map);Wn(this,ln,new Map);Wn(this,Po,void 0);Wn(this,Gs,void 0);Wn(this,Ro,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,Po,n.maxSize),_n(this,Gs,n.maxAge||Number.POSITIVE_INFINITY),_n(this,Ro,n.onEviction);}get __oldCache(){return ct(this,ln)}get(n){if(ct(this,Yt).has(n)){const r=ct(this,Yt).get(n);return nn(this,Us,Qm).call(this,n,r)}if(ct(this,ln).has(n)){const r=ct(this,ln).get(n);if(nn(this,lr,Nr).call(this,n,r)===!1)return nn(this,Su,Uw).call(this,n,r),r.value}}set(n,r,{maxAge:o=ct(this,Gs)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return ct(this,Yt).has(n)?ct(this,Yt).set(n,{value:r,expiry:a}):nn(this,qs,Jm).call(this,n,{value:r,expiry:a}),this}has(n){return ct(this,Yt).has(n)?!nn(this,lr,Nr).call(this,n,ct(this,Yt).get(n)):ct(this,ln).has(n)?!nn(this,lr,Nr).call(this,n,ct(this,ln).get(n)):!1}peek(n){if(ct(this,Yt).has(n))return nn(this,Xs,Zm).call(this,n,ct(this,Yt));if(ct(this,ln).has(n))return nn(this,Xs,Zm).call(this,n,ct(this,ln))}delete(n){const r=ct(this,Yt).delete(n);return r&&nf(this,$r)._--,ct(this,ln).delete(n)||r}clear(){ct(this,Yt).clear(),ct(this,ln).clear(),_n(this,$r,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...nn(this,Ys,eh).call(this)],o=r.length-n;o<0?(_n(this,Yt,new Map(r)),_n(this,ln,new Map),_n(this,$r,r.length)):(o>0&&nn(this,Ks,Ym).call(this,r.slice(0,o)),_n(this,ln,new Map(r.slice(o))),_n(this,Yt,new Map),_n(this,$r,0)),_n(this,Po,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of ct(this,Yt)){const[r,o]=n;nn(this,lr,Nr).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of ct(this,ln)){const[r,o]=n;ct(this,Yt).has(r)||nn(this,lr,Nr).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...ct(this,Yt)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;nn(this,lr,Nr).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...ct(this,ln)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;ct(this,Yt).has(a)||nn(this,lr,Nr).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of nn(this,Ys,eh).call(this))yield [n,r.value];}get size(){if(!ct(this,$r))return ct(this,ln).size;let n=0;for(const r of ct(this,ln).keys())ct(this,Yt).has(r)||n++;return Math.min(ct(this,$r)+n,ct(this,Po))}get maxSize(){return ct(this,Po)}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()])}}$r=new WeakMap,Yt=new WeakMap,ln=new WeakMap,Po=new WeakMap,Gs=new WeakMap,Ro=new WeakMap,Ks=new WeakSet,Ym=function(n){if(typeof ct(this,Ro)=="function")for(const[r,o]of n)ct(this,Ro).call(this,r,o.value);},lr=new WeakSet,Nr=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof ct(this,Ro)=="function"&&ct(this,Ro).call(this,n,r.value),this.delete(n)):!1},Cu=new WeakSet,Kw=function(n,r){if(nn(this,lr,Nr).call(this,n,r)===!1)return r.value},Us=new WeakSet,Qm=function(n,r){return r.expiry?nn(this,Cu,Kw).call(this,n,r):r.value},Xs=new WeakSet,Zm=function(n,r){const o=r.get(n);return nn(this,Us,Qm).call(this,n,o)},qs=new WeakSet,Jm=function(n,r){ct(this,Yt).set(n,r),nf(this,$r)._++,ct(this,$r)>=ct(this,Po)&&(_n(this,$r,0),nn(this,Ks,Ym).call(this,ct(this,ln)),_n(this,ln,ct(this,Yt)),_n(this,Yt,new Map));},Su=new WeakSet,Uw=function(n,r){ct(this,ln).delete(n),nn(this,qs,Jm).call(this,n,r);},Ys=new WeakSet,eh=function*(){for(const n of ct(this,ln)){const[r,o]=n;ct(this,Yt).has(r)||nn(this,lr,Nr).call(this,r,o)===!1&&(yield n);}for(const n of ct(this,Yt)){const[r,o]=n;nn(this,lr,Nr).call(this,r,o)===!1&&(yield n);}};async function q9(e){return (await on.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function Y9(e){return []}const Tf=new X9({maxSize:1e3});async function Q9(e){if(Tf.has(e))return Tf.get(e);const[t,n]=await Promise.all([q9(e),Y9()]);return Tf.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Xw(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Ni()}),a=(await on.post("/x/v2/history/toview/"+e,r)).data,i=Gr(a);return i||Ot((a==null?void 0:a.message)||"出错了"),i}}const Yi=Xw("add"),R0=Xw("del"),qw=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await Ku.get(FC+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Gr(a)}},Z9=qw("dislike"),J9=qw("cancel"),eH="_modal_1e3m4_1",tH="_title-desc_1e3m4_5",nH="_reason-list_1e3m4_10",rH="_reason_1e3m4_10",oH="_active_1e3m4_32",aH="_reason-no_1e3m4_37",iH="_tips-container_1e3m4_52",sH="_tips_1e3m4_52",Cr={modal:eH,titleDesc:tH,reasonList:nH,reason:rH,active:oH,reasonNo:aH,tipsContainer:iH,tips:sH},Od=U9();function lH(){return Jn(Od)}function cH(e){const t=lH();if(e)return t.get(e)}function uH({show:e,onHide:t,item:n}){const[r,o]=m.useState(!1),a=ot(async h=>{if(!n)return;let g=!1,v;try{o(!0),g=await Z9(n,h.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),JC();g?Ot("已标记不想看"):eS(),g&&(Od.set(n.param,{...h}),t());}),i=m.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"];fn(l,h=>{if(!s()||!l.includes(h.key))return;const g=Number(h.key)-1;u(g);const v=document.querySelectorAll(`.${Cr.reason}`)[g]||null;v==null||v.click();});const[c,u]=m.useState(i.length-1);z9(()=>{u(i.length-1);},[i]);const d=h=>()=>{if(!s())return;const g=c+h;g<0||g>i.length-1||u(g);};fn("leftarrow",d(-1),{exactMatch:!0}),fn("rightarrow",d(1),{exactMatch:!0}),fn("uparrow",d(-2),{exactMatch:!0}),fn("downarrow",d(2),{exactMatch:!0}),fn("enter",h=>{var g;s()&&(c<0||c>i.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(g=document.querySelector(`.${Cr.reason}.${Cr.active}`))==null||g.click()));},{exactMatch:!0});const f=m.useMemo(()=>{var h;return ((h=i[c])==null?void 0:h.name)||""},[i,c]);return be(Ed,{show:e,onHide:t,clsModal:Cr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[be("div",{className:fr.modalHeader,children:[be("div",{className:fr.modalTitle,children:["我不想看",D("span",{className:Cr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),D("div",{className:"space",style:{flex:1}}),D(Id,{onClick:t})]}),be("div",{className:fr.modalBody,children:[D("div",{className:Cr.reasonList,children:i.map((h,g)=>be("button",{className:K(Cr.reason,{[Cr.active]:g===c}),style:{...g===c&&{borderColor:Ir}},"data-id":h.id,onClick:()=>{u(g),a(h);},disabled:r,children:[D("span",{className:Cr.reasonNo,style:{backgroundColor:Ir},children:g+1}),h.name]},h.id))}),be("div",{className:Cr.tipsContainer,children:[be("div",{className:Cr.tips,children:[D(kt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),f&&be("div",{className:Cr.tips,children:[D(kt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const yc={show:!1,onHide:Qw,item:null},Yw=Zn({value:yc.show}),dH=function(){return Jn(Yw).value};function Qw(){setTimeout(()=>{Zw({show:!1,item:null});});}function Zw(e){Object.assign(yc,e),Yw.value=yc.show,fH().render(D(uH,{...yc,onHide:Qw}));}let M0;function fH(){return M0||(M0=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container",pa),document.body.appendChild(e),cl(e)})()),M0}function mH(e){e!=null&&e.param&&Od.has(e.param)||Zw({show:!0,item:e});}var hH=`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`,gH=`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`,vH="".concat(hH," ").concat(gH).split(/[\s\n]+/),pH="aria-",bH="data-";function _0(e,t){return e.indexOf(t)===0}function pi(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=q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||_0(o,pH))||n.data&&_0(o,bH)||n.attr&&vH.includes(o))&&(r[o]=e[o]);}),r}const Jw=m__namespace.createContext(null),yH=Jw.Provider,e$=m__namespace.createContext(null),CH=e$.Provider;var SH=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],t$=m.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,f=d===void 0?"checkbox":d,h=e.title,g=e.onChange,v=tt(e,SH),p=m.useRef(null),b=qt(u,{value:s}),y=J(b,2),C=y[0],w=y[1];m.useImperativeHandle(t,function(){return {focus:function(){var E;(E=p.current)===null||E===void 0||E.focus();},blur:function(){var E;(E=p.current)===null||E===void 0||E.blur();},input:p.current}});var x=K(o,a,(n={},F(n,"".concat(o,"-checked"),C),F(n,"".concat(o,"-disabled"),l),n)),$=function(E){l||("checked"in e||w(E.target.checked),g==null||g({target:q(q({},e),{},{type:f,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation();},preventDefault:function(){E.preventDefault();},nativeEvent:E.nativeEvent}));};return m__namespace.createElement("span",{className:x,title:h,style:i},m__namespace.createElement("input",Re({},v,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:l,checked:!!C,type:f})),m__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const wH=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(",")}}}}},$H=Kt("Wave",e=>[wH(e)]);function Un(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Un=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(T,P,_){T[P]=_.value;},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(T,P,_){return Object.defineProperty(T,P,{value:_,enumerable:!0,configurable:!0,writable:!0}),T[P]}try{c({},"");}catch{c=function(_,z,j){return _[z]=j};}function u(T,P,_,z){var j=P&&P.prototype instanceof b?P:b,H=Object.create(j.prototype),B=new A(z||[]);return o(H,"_invoke",{value:O(T,_,B)}),H}function d(T,P,_){try{return {type:"normal",arg:T.call(P,_)}}catch(z){return {type:"throw",arg:z}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",g="executing",v="completed",p={};function b(){}function y(){}function C(){}var w={};c(w,i,function(){return this});var x=Object.getPrototypeOf,$=x&&x(x(L([])));$&&$!==n&&r.call($,i)&&(w=$);var S=C.prototype=b.prototype=Object.create(w);function E(T){["next","throw","return"].forEach(function(P){c(T,P,function(_){return this._invoke(P,_)});});}function I(T,P){function _(j,H,B,V){var G=d(T[j],T,H);if(G.type!=="throw"){var X=G.arg,Q=X.value;return Q&&ut(Q)=="object"&&r.call(Q,"__await")?P.resolve(Q.__await).then(function(ee){_("next",ee,B,V);},function(ee){_("throw",ee,B,V);}):P.resolve(Q).then(function(ee){X.value=ee,B(X);},function(ee){return _("throw",ee,B,V)})}V(G.arg);}var z;o(this,"_invoke",{value:function(H,B){function V(){return new P(function(G,X){_(H,B,G,X);})}return z=z?z.then(V,V):V()}});}function O(T,P,_){var z=f;return function(j,H){if(z===g)throw new Error("Generator is already running");if(z===v){if(j==="throw")throw H;return {value:e,done:!0}}for(_.method=j,_.arg=H;;){var B=_.delegate;if(B){var V=M(B,_);if(V){if(V===p)continue;return V}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(z===f)throw z=v,_.arg;_.dispatchException(_.arg);}else _.method==="return"&&_.abrupt("return",_.arg);z=g;var G=d(T,P,_);if(G.type==="normal"){if(z=_.done?v:h,G.arg===p)continue;return {value:G.arg,done:_.done}}G.type==="throw"&&(z=v,_.method="throw",_.arg=G.arg);}}}function M(T,P){var _=P.method,z=T.iterator[_];if(z===e)return P.delegate=null,_==="throw"&&T.iterator.return&&(P.method="return",P.arg=e,M(T,P),P.method==="throw")||_!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+_+"' method")),p;var j=d(z,T.iterator,P.arg);if(j.type==="throw")return P.method="throw",P.arg=j.arg,P.delegate=null,p;var H=j.arg;return H?H.done?(P[T.resultName]=H.value,P.next=T.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,p):H:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,p)}function R(T){var P={tryLoc:T[0]};1 in T&&(P.catchLoc=T[1]),2 in T&&(P.finallyLoc=T[2],P.afterLoc=T[3]),this.tryEntries.push(P);}function k(T){var P=T.completion||{};P.type="normal",delete P.arg,T.completion=P;}function A(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(R,this),this.reset(!0);}function L(T){if(T||T===""){var P=T[i];if(P)return P.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var _=-1,z=function j(){for(;++_<T.length;)if(r.call(T,_))return j.value=T[_],j.done=!1,j;return j.value=e,j.done=!0,j};return z.next=z}}throw new TypeError(ut(T)+" is not iterable")}return y.prototype=C,o(S,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:y,configurable:!0}),y.displayName=c(C,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var P=typeof T=="function"&&T.constructor;return !!P&&(P===y||(P.displayName||P.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,c(T,l,"GeneratorFunction")),T.prototype=Object.create(S),T},t.awrap=function(T){return {__await:T}},E(I.prototype),c(I.prototype,s,function(){return this}),t.AsyncIterator=I,t.async=function(T,P,_,z,j){j===void 0&&(j=Promise);var H=new I(u(T,P,_,z),j);return t.isGeneratorFunction(P)?H:H.next().then(function(B){return B.done?B.value:H.next()})},E(S),c(S,l,"Generator"),c(S,i,function(){return this}),c(S,"toString",function(){return "[object Generator]"}),t.keys=function(T){var P=Object(T),_=[];for(var z in P)_.push(z);return _.reverse(),function j(){for(;_.length;){var H=_.pop();if(H in P)return j.value=H,j.done=!1,j}return j.done=!0,j}},t.values=L,A.prototype={constructor:A,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!P)for(var _ in this)_.charAt(0)==="t"&&r.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=e);},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 _=this;function z(X,Q){return B.type="throw",B.arg=P,_.next=X,Q&&(_.method="next",_.arg=e),!!Q}for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j],B=H.completion;if(H.tryLoc==="root")return z("end");if(H.tryLoc<=this.prev){var V=r.call(H,"catchLoc"),G=r.call(H,"finallyLoc");if(V&&G){if(this.prev<H.catchLoc)return z(H.catchLoc,!0);if(this.prev<H.finallyLoc)return z(H.finallyLoc)}else if(V){if(this.prev<H.catchLoc)return z(H.catchLoc,!0)}else {if(!G)throw new Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return z(H.finallyLoc)}}}},abrupt:function(P,_){for(var z=this.tryEntries.length-1;z>=0;--z){var j=this.tryEntries[z];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var H=j;break}}H&&(P==="break"||P==="continue")&&H.tryLoc<=_&&_<=H.finallyLoc&&(H=null);var B=H?H.completion:{};return B.type=P,B.arg=_,H?(this.method="next",this.next=H.finallyLoc,p):this.complete(B)},complete:function(P,_){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"&&_&&(this.next=_),p},finish:function(P){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.finallyLoc===P)return this.complete(z.completion,z.afterLoc),k(z),p}},catch:function(P){for(var _=this.tryEntries.length-1;_>=0;--_){var z=this.tryEntries[_];if(z.tryLoc===P){var j=z.completion;if(j.type==="throw"){var H=j.arg;k(z);}return H}}throw new Error("illegal catch attempt")},delegateYield:function(P,_,z){return this.delegate={iterator:L(P),resultName:_,nextLoc:z},this.method==="next"&&(this.arg=e),p}},t}function T0(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 Sa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){T0(a,r,o,i,s,"next",l);}function s(l){T0(a,r,o,i,s,"throw",l);}i(void 0);})}}var ml=q({},k1__namespace),xH=ml.version,EH=ml.render,IH=ml.unmountComponentAtNode,Pd;try{var OH=Number((xH||"").split(".")[0]);OH>=18&&(Pd=ml.createRoot);}catch{}function N0(e){var t=ml.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ut(t)==="object"&&(t.usingClientEntryPoint=e);}var Kc="__rc_react_root__";function PH(e,t){N0(!0);var n=t[Kc]||Pd(t);N0(!1),n.render(e),t[Kc]=n;}function RH(e,t){EH(e,t);}function MH(e,t){if(Pd){PH(e,t);return}RH(e,t);}function _H(e){return th.apply(this,arguments)}function th(){return th=Sa(Un().mark(function e(t){return Un().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Kc])===null||o===void 0||o.unmount(),delete t[Kc];}));case 1:case"end":return r.stop()}},e)})),th.apply(this,arguments)}function TH(e){IH(e);}function NH(e){return nh.apply(this,arguments)}function nh(){return nh=Sa(Un().mark(function e(t){return Un().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Pd===void 0){r.next=2;break}return r.abrupt("return",_H(t));case 2:TH(t);case 3:case"end":return r.stop()}},e)})),nh.apply(this,arguments)}function kH(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 Nf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&kH(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function AH(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Nf(t)?t:Nf(n)?n:Nf(r)?r:null}const Rd="ant-wave-target";function kf(e){return Number.isNaN(e)?0:e}const LH=e=>{const{className:t,target:n,component:r}=e,o=m__namespace.useRef(null),[a,i]=m__namespace.useState(null),[s,l]=m__namespace.useState([]),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,g]=m__namespace.useState(0),[v,p]=m__namespace.useState(0),[b,y]=m__namespace.useState(!1),C={left:c,top:d,width:h,height:v,borderRadius:s.map($=>`${$}px`).join(" ")};a&&(C["--wave-color"]=a);function w(){const $=getComputedStyle(n);i(AH(n));const S=$.position==="static",{borderLeftWidth:E,borderTopWidth:I}=$;u(S?n.offsetLeft:kf(-parseFloat(E))),f(S?n.offsetTop:kf(-parseFloat(I))),g(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:M,borderBottomLeftRadius:R,borderBottomRightRadius:k}=$;l([O,M,k,R].map(A=>kf(parseFloat(A))));}if(m__namespace.useEffect(()=>{if(n){const $=Rt(()=>{w(),y(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(w),S.observe(n)),()=>{Rt.cancel($),S==null||S.disconnect();}}},[]),!b)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Rd));return m__namespace.createElement(Co,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,S)=>{var E;if(S.deadline||S.propertyName==="opacity"){const I=(E=o.current)===null||E===void 0?void 0:E.parentElement;NH(I).then(()=>{I==null||I.remove();});}return !1}},$=>{let{className:S}=$;return m__namespace.createElement("div",{ref:o,className:K(t,{"wave-quick":x},S),style:C})})},DH=(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),MH(m__namespace.createElement(LH,Object.assign({},t,{target:e})),o);},zH=DH;function jH(e,t,n){const{wave:r}=m__namespace.useContext(rt),[,o,a]=er(),i=kn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Rd}`)||u,{showEffect:f}=r||{};(f||zH)(d,{className:t,token:o,component:n,event:c,hashId:a});}),s=m__namespace.useRef();return c=>{Rt.cancel(s.current),s.current=Rt(()=>{i(c);});}}const FH=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=m.useContext(rt),a=m.useRef(null),i=o("wave"),[,s]=$H(i),l=jH(a,K(i,s),r);if(m.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!jg(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!m.isValidElement(t))return t??null;const c=zo(t)?Xn(t.ref,a):a;return Kn(t,{ref:c})},hl=FH;var Zo="RC_FORM_INTERNAL_HOOKS",Vt=function(){wn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},bi=m__namespace.createContext({getFieldValue:Vt,getFieldsValue:Vt,getFieldError:Vt,getFieldWarning:Vt,getFieldsError:Vt,isFieldsTouched:Vt,isFieldTouched:Vt,isFieldValidating:Vt,isFieldsValidating:Vt,resetFields:Vt,setFields:Vt,setFieldValue:Vt,setFieldsValue:Vt,validateFields:Vt,submit:Vt,getInternalHooks:function(){return Vt(),{dispatch:Vt,initEntityValue:Vt,registerField:Vt,useSubscribe:Vt,setInitialValues:Vt,destroyForm:Vt,setCallbacks:Vt,registerWatch:Vt,getFields:Vt,setValidateMessages:Vt,setPreserve:Vt,getInitialValue:Vt}}}),Uc=m__namespace.createContext(null);function rh(e){return e==null?[]:Array.isArray(e)?e:[e]}function BH(e){return e&&!!e._init}function Jo(){return Jo=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},Jo.apply(this,arguments)}function HH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ks(e,t);}function oh(e){return oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oh(e)}function ks(e,t){return ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ks(e,t)}function WH(){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 Cc(e,t,n){return WH()?Cc=Reflect.construct.bind():Cc=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),c=new l;return i&&ks(c,i.prototype),c},Cc.apply(null,arguments)}function VH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ah(e){var t=typeof Map=="function"?new Map:void 0;return ah=function(r){if(r===null||!VH(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 Cc(r,arguments,oh(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ks(o,r)},ah(e)}var GH=/%[sdj%]/g,KH=function(){};function ih(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 ur(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(GH,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 UH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function bn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||UH(t)&&typeof e=="string"&&!e)}function XH(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 k0(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 qH(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var A0=function(e){HH(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}(ah(Error));function YH(e,t,n,r,o){if(t.first){var a=new Promise(function(f,h){var g=function(b){return r(b),b.length?h(new A0(b,ih(b))):f(o)},v=qH(e);k0(v,n,g);});return a.catch(function(f){return f}),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(f,h){var g=function(p){if(u.push.apply(u,p),c++,c===l)return r(u),u.length?h(new A0(u,ih(u))):f(o)};s.length||(r(u),f(o)),s.forEach(function(v){var p=e[v];i.indexOf(v)!==-1?k0(p,n,g):XH(p,n,g);});});return d.catch(function(f){return f}),d}function QH(e){return !!(e&&e.message!==void 0)}function ZH(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function L0(e,t){return function(n){var r;return e.fullFields?r=ZH(t,e.fullFields):r=t[n.field||e.fullField],QH(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 D0(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]=Jo({},e[n],r):e[n]=r;}}return e}var n$=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||bn(n,i||t.type))&&o.push(ur(a.messages.required,t.fullField));},JH=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(ur(a.messages.whitespace,t.fullField));},tc,e7=function(){if(tc)return tc;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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(w){return w&&w.exact?a:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};l.v4=function(C){return C&&C.exact?i:new RegExp(""+t(C)+n+t(C),"g")},l.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+o+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+f+"|"+h+g+v+")"+p+b;return tc=new RegExp("(?:^"+y+"$)","i"),tc},z0={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},as={integer:function(t){return as.number(t)&&parseInt(t,10)===t},float:function(t){return as.number(t)&&!as.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"&&!as.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(z0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(e7())},hex:function(t){return typeof t=="string"&&!!t.match(z0.hex)}},t7=function(t,n,r,o,a){if(t.required&&n===void 0){n$(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?as[s](n)||o.push(ur(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(ur(a.messages.types[s],t.fullField,t.type));},n7=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,f=typeof n=="number",h=typeof n=="string",g=Array.isArray(n);if(f?d="number":h?d="string":g&&(d="array"),!d)return !1;g&&(u=n.length),h&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(ur(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(ur(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(ur(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(ur(a.messages[d].range,t.fullField,t.min,t.max));},Ta="enum",r7=function(t,n,r,o,a){t[Ta]=Array.isArray(t[Ta])?t[Ta]:[],t[Ta].indexOf(n)===-1&&o.push(ur(a.messages[Ta],t.fullField,t[Ta].join(", ")));},o7=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ur(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(ur(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Pt={required:n$,whitespace:JH,type:t7,range:n7,enum:r7,pattern:o7},a7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n,"string")&&!t.required)return r();Pt.required(t,n,o,i,a,"string"),bn(n,"string")||(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a),Pt.pattern(t,n,o,i,a),t.whitespace===!0&&Pt.whitespace(t,n,o,i,a));}r(i);},i7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&Pt.type(t,n,o,i,a);}r(i);},s7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a));}r(i);},l7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&Pt.type(t,n,o,i,a);}r(i);},c7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),bn(n)||Pt.type(t,n,o,i,a);}r(i);},u7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a));}r(i);},d7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a));}r(i);},f7=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();Pt.required(t,n,o,i,a,"array"),n!=null&&(Pt.type(t,n,o,i,a),Pt.range(t,n,o,i,a));}r(i);},m7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&Pt.type(t,n,o,i,a);}r(i);},h7="enum",g7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a),n!==void 0&&Pt[h7](t,n,o,i,a);}r(i);},v7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n,"string")&&!t.required)return r();Pt.required(t,n,o,i,a),bn(n,"string")||Pt.pattern(t,n,o,i,a);}r(i);},p7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n,"date")&&!t.required)return r();if(Pt.required(t,n,o,i,a),!bn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Pt.type(t,l,o,i,a),l&&Pt.range(t,l.getTime(),o,i,a);}}r(i);},b7=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":typeof n;Pt.required(t,n,o,i,a,s),r(i);},Af=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(bn(n,i)&&!t.required)return r();Pt.required(t,n,o,s,a,i),bn(n,i)||Pt.type(t,n,o,s,a);}r(s);},y7=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bn(n)&&!t.required)return r();Pt.required(t,n,o,i,a);}r(i);},hs={string:a7,method:i7,number:s7,boolean:l7,regexp:c7,integer:u7,float:d7,array:f7,object:m7,enum:g7,pattern:v7,date:p7,url:Af,hex:Af,email:Af,required:b7,any:y7};function sh(){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 lh=sh(),gl=function(){function e(n){this.rules=null,this._messages=lh,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=D0(sh(),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(v){var p=[],b={};function y(w){if(Array.isArray(w)){var x;p=(x=p).concat.apply(x,w);}else p.push(w);}for(var C=0;C<v.length;C++)y(v[C]);p.length?(b=ih(p),c(p,b)):c(null,s);}if(l.messages){var d=this.messages();d===lh&&(d=sh()),D0(d,l.messages),l.messages=d;}else l.messages=this.messages();var f={},h=l.keys||Object.keys(this.rules);h.forEach(function(v){var p=i.rules[v],b=s[v];p.forEach(function(y){var C=y;typeof C.transform=="function"&&(s===r&&(s=Jo({},s)),b=s[v]=C.transform(b)),typeof C=="function"?C={validator:C}:C=Jo({},C),C.validator=i.getValidationMethod(C),C.validator&&(C.field=v,C.fullField=C.fullField||v,C.type=i.getType(C),f[v]=f[v]||[],f[v].push({rule:C,value:b,source:s,field:v}));});});var g={};return YH(f,l,function(v,p){var b=v.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&v.value),b.field=v.field;function C($,S){return Jo({},S,{fullField:b.fullField+"."+$,fullFields:b.fullFields?[].concat(b.fullFields,[$]):[$]})}function w($){$===void 0&&($=[]);var S=Array.isArray($)?$:[$];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&b.message!==void 0&&(S=[].concat(b.message));var E=S.map(L0(b,s));if(l.first&&E.length)return g[b.field]=1,p(E);if(!y)p(E);else {if(b.required&&!v.value)return b.message!==void 0?E=[].concat(b.message).map(L0(b,s)):l.error&&(E=[l.error(b,ur(l.messages.required,b.field))]),p(E);var I={};b.defaultField&&Object.keys(v.value).map(function(R){I[R]=b.defaultField;}),I=Jo({},I,v.rule.fields);var O={};Object.keys(I).forEach(function(R){var k=I[R],A=Array.isArray(k)?k:[k];O[R]=A.map(C.bind(null,R));});var M=new e(O);M.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),M.validate(v.value,v.rule.options||l,function(R){var k=[];E&&E.length&&k.push.apply(k,E),R&&R.length&&k.push.apply(k,R),p(k.length?k:null);});}}var x;if(b.asyncValidator)x=b.asyncValidator(b,v.value,w,v.source,l);else if(b.validator){try{x=b.validator(b,v.value,w,v.source,l);}catch($){console.error==null||console.error($),l.suppressValidatorError||setTimeout(function(){throw $},0),w($.message);}x===!0?w():x===!1?w(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?w(x):x instanceof Error&&w(x.message);}x&&x.then&&x.then(function(){return w()},function($){return w($)});},function(v){u(v);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!hs.hasOwnProperty(r.type))throw new Error(ur("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"?hs.required:hs[this.getType(r)]||void 0},e}();gl.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");hs[t]=n;};gl.warning=KH;gl.messages=lh;gl.validators=hs;var ir="'${name}' is not a valid ${type}",r$={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:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},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}"}},j0=gl;function C7(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var F0="CODE_LOGIC_ERROR";function ch(e,t,n,r,o){return uh.apply(this,arguments)}function uh(){return uh=Sa(Un().mark(function e(t,n,r,o,a){var i,s,l,c,u,d,f,h,g;return Un().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=q({},r),delete i.ruleIndex,j0.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(F0)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new j0(F({},t,[i])),u=Za(r$,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(F({},t,n),q({},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 C=b.message,w=C===F0?u.default:C;return m__namespace.isValidElement(w)?m__namespace.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return ch("".concat(t,".").concat(y),b,l,o,a)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,y){return [].concat(Ae(b),Ae(y))},[]));case 23:return h=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=d.map(function(b){return typeof b=="string"?C7(b,h):b}),p.abrupt("return",g);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),uh.apply(this,arguments)}function S7(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,d){var f=u.validator,h=q(q({},u),{},{ruleIndex:d});return f&&(h.validator=function(g,v,p){var b=!1,y=function(){for(var x=arguments.length,$=new Array(x),S=0;S<x;S++)$[S]=arguments[S];Promise.resolve().then(function(){wn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,$);});},C=f(g,v,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",wn(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){p();}).catch(function(w){p(w||" ");});}),h}).sort(function(u,d){var f=u.warningOnly,h=u.ruleIndex,g=d.warningOnly,v=d.ruleIndex;return !!f==!!g?h-v:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=Sa(Un().mark(function d(f,h){var g,v,p;return Un().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:g=0;case 1:if(!(g<s.length)){y.next=12;break}return v=s[g],y.next=5,ch(i,t,v,r,a);case 5:if(p=y.sent,!p.length){y.next=9;break}return h([{errors:p,rule:v}]),y.abrupt("return");case 9:g+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return ch(i,t,u,r,a).then(function(d){return {errors:d,rule:u}})});l=(o?$7(c):w7(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function w7(e){return dh.apply(this,arguments)}function dh(){return dh=Sa(Un().mark(function e(t){return Un().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,Ae(o));return i}));case 1:case"end":return r.stop()}},e)})),dh.apply(this,arguments)}function $7(e){return fh.apply(this,arguments)}function fh(){return fh=Sa(Un().mark(function e(t){var n;return Un().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)})),fh.apply(this,arguments)}function dn(e){return rh(e)}function B0(e,t){var n={};return t.forEach(function(r){var o=zr(e,r);n=Lr(n,r,o);}),n}function ni(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return o$(t,r,n)})}function o$(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 x7(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||ut(e)!=="object"||ut(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ae(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function E7(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ut(t.target)==="object"&&e in t.target?t.target[e]:t}function H0(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Ae(e.slice(0,n)),[o],Ae(e.slice(n,t)),Ae(e.slice(t+1,r))):a<0?[].concat(Ae(e.slice(0,t)),Ae(e.slice(t+1,n+1)),[o],Ae(e.slice(n+1,r))):e}var I7=["name"],Sr=[];function W0(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var uv=function(e){jo(n,e);var t=Fo(n);function n(r){var o;if(xn(this,n),o=t.call(this,r),F(Ke(o),"state",{resetCount:0}),F(Ke(o),"cancelRegisterFunc",null),F(Ke(o),"mounted",!1),F(Ke(o),"touched",!1),F(Ke(o),"dirty",!1),F(Ke(o),"validatePromise",void 0),F(Ke(o),"prevValidating",void 0),F(Ke(o),"errors",Sr),F(Ke(o),"warnings",Sr),F(Ke(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,dn(d)),o.cancelRegisterFunc=null;}),F(Ke(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(Ae(f),Ae(c)):[]}),F(Ke(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),F(Ke(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});}),F(Ke(o),"metaCache",null),F(Ke(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=q(q({},o.getMeta()),{},{destroy:l});ol(o.metaCache,u)||c(u),o.metaCache=u;}else o.metaCache=null;}),F(Ke(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,h=d.dependencies,g=h===void 0?[]:h,v=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),C=o.getValue(p),w=c&&ni(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Sr,o.warnings=Sr,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Sr,o.warnings=Sr,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(f){o.reRender();return}break}case"setField":{var x=u.data;if(w){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||Sr),"warnings"in x&&(o.warnings=x.warnings||Sr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&ni(c,b,!0)){o.reRender();return}if(f&&!b.length&&W0(f,l,p,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var $=g.map(dn);if($.some(function(S){return ni(u.relatedFields,S)})){o.reRender();return}break}default:if(w||(!g.length||b.length||f)&&W0(f,l,p,y,C,u)){o.reRender();return}break}f===!0&&o.reRender();}),F(Ke(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,h=d.validateOnly,g=h===void 0?!1:h,v=Promise.resolve().then(Sa(Un().mark(function p(){var b,y,C,w,x,$,S;return Un().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,C=y===void 0?!1:y,w=b.messageVariables,x=b.validateDebounce,$=o.getRules(),f&&($=$.filter(function(O){return O}).filter(function(O){var M=O.validateTrigger;if(!M)return !0;var R=rh(M);return R.includes(f)})),!(x&&f)){I.next=10;break}return I.next=8,new Promise(function(O){setTimeout(O,x);});case 8:if(o.validatePromise===v){I.next=10;break}return I.abrupt("return",[]);case 10:return S=S7(c,u,$,l,C,w),S.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sr;if(o.validatePromise===v){var M;o.validatePromise=null;var R=[],k=[];(M=O.forEach)===null||M===void 0||M.call(O,function(A){var L=A.rule.warningOnly,T=A.errors,P=T===void 0?Sr:T;L?k.push.apply(k,Ae(P)):R.push.apply(R,Ae(P));}),o.errors=R,o.warnings=k,o.triggerMetaEvent(),o.reRender();}}),I.abrupt("return",S);case 13:case"end":return I.stop()}},p)})));return g||(o.validatePromise=v,o.dirty=!0,o.errors=Sr,o.warnings=Sr,o.triggerMetaEvent(),o.reRender()),v}),F(Ke(o),"isFieldValidating",function(){return !!o.validatePromise}),F(Ke(o),"isFieldTouched",function(){return o.touched}),F(Ke(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(Zo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),F(Ke(o),"getErrors",function(){return o.errors}),F(Ke(o),"getWarnings",function(){return o.warnings}),F(Ke(o),"isListField",function(){return o.props.isListField}),F(Ke(o),"isList",function(){return o.props.isList}),F(Ke(o),"isPreserve",function(){return o.props.preserve}),F(Ke(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}),F(Ke(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return q(q({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=hr(l);return u.length!==1||!m__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),F(Ke(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return zr(l||c(!0),u)}),F(Ke(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,f=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,v=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),C=p.getInternalHooks,w=p.getFieldsValue,x=C(Zo),$=x.dispatch,S=o.getValue(),E=v||function(R){return F({},g,R)},I=l[u],O=q(q({},l),E(S));O[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,k=arguments.length,A=new Array(k),L=0;L<k;L++)A[L]=arguments[L];f?R=f.apply(void 0,A):R=E7.apply(void 0,[g].concat(A)),h&&(R=h(R,S,w(!0))),$({type:"updateValue",namePath:y,value:R}),I&&I.apply(void 0,A);};var M=rh(b||[]);return M.forEach(function(R){var k=O[R];O[R]=function(){k&&k.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&$({type:"validateField",namePath:y,triggerName:R});};}),O}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Zo),s=i.initEntityValue;s(Ke(o));}return o}return En(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(Zo),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:m__namespace.isValidElement(s)?c=m__namespace.cloneElement(s,this.getControlled(s.props)):(wn(!s,"`children` of Field is not validate ReactElement."),c=s),m__namespace.createElement(m__namespace.Fragment,{key:o},c)}}]),n}(m__namespace.Component);F(uv,"contextType",bi);F(uv,"defaultProps",{trigger:"onChange",valuePropName:"value"});function a$(e){var t=e.name,n=tt(e,I7),r=m__namespace.useContext(bi),o=m__namespace.useContext(Uc),a=t!==void 0?dn(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),m__namespace.createElement(uv,Re({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function O7(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=m__namespace.useContext(bi),l=m__namespace.useContext(Uc),c=m__namespace.useRef({keys:[],id:0}),u=c.current,d=m__namespace.useMemo(function(){var v=dn(s.prefixName)||[];return [].concat(Ae(v),Ae(dn(t)))},[s.prefixName,t]),f=m__namespace.useMemo(function(){return q(q({},s),{},{prefixName:d})},[s,d]),h=m__namespace.useMemo(function(){return {getKey:function(p){var b=d.length,y=p[b];return [u.keys[y],p.slice(b+1)]}}},[d]);if(typeof r!="function")return wn(!1,"Form.List only accepts function as children."),null;var g=function(p,b,y){var C=y.source;return C==="internal"?!1:p!==b};return m__namespace.createElement(Uc.Provider,{value:h},m__namespace.createElement(bi.Provider,{value:f},m__namespace.createElement(a$,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(v,p){var b=v.value,y=b===void 0?[]:b,C=v.onChange,w=s.getFieldValue,x=function(){var I=w(d||[]);return I||[]},$={add:function(I,O){var M=x();O>=0&&O<=M.length?(u.keys=[].concat(Ae(u.keys.slice(0,O)),[u.id],Ae(u.keys.slice(O))),C([].concat(Ae(M.slice(0,O)),[I],Ae(M.slice(O))))):(u.keys=[].concat(Ae(u.keys),[u.id]),C([].concat(Ae(M),[I]))),u.id+=1;},remove:function(I){var O=x(),M=new Set(Array.isArray(I)?I:[I]);M.size<=0||(u.keys=u.keys.filter(function(R,k){return !M.has(k)}),C(O.filter(function(R,k){return !M.has(k)})));},move:function(I,O){if(I!==O){var M=x();I<0||I>=M.length||O<0||O>=M.length||(u.keys=H0(u.keys,I,O),C(H0(M,I,O)));}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function(E,I){var O=u.keys[I];return O===void 0&&(u.keys[I]=u.id,O=u.keys[I],u.id+=1),{name:I,key:O,isListField:!0}}),$,p)})))}function P7(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r));});});}):Promise.resolve([])}var i$="__@field_split__";function Lf(e){return e.map(function(t){return "".concat(ut(t),":").concat(t)}).join(i$)}var Na=function(){function e(){xn(this,e),F(this,"kvs",new Map);}return En(e,[{key:"set",value:function(n,r){this.kvs.set(Lf(n),r);}},{key:"get",value:function(n){return this.kvs.get(Lf(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(Lf(n));}},{key:"map",value:function(n){return Ae(this.kvs.entries()).map(function(r){var o=J(r,2),a=o[0],i=o[1],s=a.split(i$);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=J(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),R7=["name"],M7=En(function e(t){var n=this;xn(this,e),F(this,"formHooked",!1),F(this,"forceRootUpdate",void 0),F(this,"subscribable",!0),F(this,"store",{}),F(this,"fieldEntities",[]),F(this,"initialValues",{}),F(this,"callbacks",{}),F(this,"validateMessages",null),F(this,"preserve",null),F(this,"lastValidatePromise",null),F(this,"getForm",function(){return {getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),F(this,"getInternalHooks",function(r){return r===Zo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(wn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),F(this,"useSubscribe",function(r){n.subscribable=r;}),F(this,"prevWithoutPreserves",null),F(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Za(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Lr(i,l,zr(r,l));}),n.prevWithoutPreserves=null,n.updateStore(i);}}),F(this,"destroyForm",function(){var r=new Na;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;}),F(this,"getInitialValue",function(r){var o=zr(n.initialValues,r);return r.length?Za(o):o}),F(this,"setCallbacks",function(r){n.callbacks=r;}),F(this,"setValidateMessages",function(r){n.validateMessages=r;}),F(this,"setPreserve",function(r){n.preserve=r;}),F(this,"watchList",[]),F(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}}),F(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r);});}}),F(this,"timeoutId",null),F(this,"warningUnhooked",function(){}),F(this,"updateStore",function(r){n.store=r;}),F(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),F(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Na;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a);}),o}),F(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=dn(a);return o.get(i)||{INVALIDATE_NAME_PATH:dn(a)}})}),F(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&ut(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var d,f,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var g,v;if((g=(v=u).isList)!==null&&g!==void 0&&g.call(v))return}else if(!a&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!i)c.push(h);else {var p="getMeta"in u?u.getMeta():null;i(p)&&c.push(h);}}),B0(n.store,c.map(dn))}),F(this,"getFieldValue",function(r){n.warningUnhooked();var o=dn(r);return zr(n.store,o)}),F(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:dn(r[i]),errors:[],warnings:[]}})}),F(this,"getFieldError",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.errors}),F(this,"getFieldWarning",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.warnings}),F(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(dn),c=!1):(l=null,c=i):(l=i.map(dn),c=s);var u=n.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var f=new Na;l.forEach(function(v){f.set(v,[]);}),u.forEach(function(v){var p=v.getNamePath();l.forEach(function(b){b.every(function(y,C){return p[C]===y})&&f.update(b,function(y){return [].concat(Ae(y),[v])});});});var h=function(p){return p.some(d)},g=f.map(function(v){var p=v.value;return p});return c?g.every(h):g.some(h)}),F(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),F(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(dn);return o.some(function(i){var s=i.getNamePath();return ni(a,s)&&i.isFieldValidating()})}),F(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),F(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Na,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d);}});var i=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),h=n.getInitialValue(f);if(h!==void 0)wn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else {var g=o.get(f);if(g&&g.size>1)wn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=n.getFieldValue(f),p=u.isListField();!p&&(!r.skipExist||v===void 0)&&n.updateStore(Lr(n.store,f,Ae(g)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Ae(Ae(c).map(function(d){return d.entity})));}})):s=a,i(s);}),F(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Za(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(dn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Lr(n.store,i,s));}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a);}),F(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=tt(i,R7),c=dn(s);a.push(c),"value"in l&&n.updateStore(Lr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i});}),n.notifyWatch(a);}),F(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=q(q({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),F(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=zr(n.store,a);i===void 0&&n.updateStore(Lr(n.store,a,o));}}),F(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),F(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !o$(d.getNamePath(),o)})){var u=n.store;n.updateStore(Lr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}}),F(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),F(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=q(q({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i);});}else n.forceRootUpdate();}),F(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Ae(a))}),a}),F(this,"updateValue",function(r,o){var a=dn(r),i=n.store;n.updateStore(Lr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=B0(n.store,[a]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([a].concat(Ae(s)));}),F(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Za(n.store,r);n.updateStore(a);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();}),F(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}]);}),F(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Na;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=dn(u);i.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f});});});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(a.push(f),l(f));}});};return s(r),a}),F(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new Na;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=i.filter(function(c){var u=c.name;return ni(r,u)});l.length&&a(l,i);}}),F(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(dn):[],c=[],u=String(Date.now()),d=new Set,f=i||{},h=f.recursive,g=f.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(g&&!y.isFieldDirty())){var C=y.getNamePath();if(d.add(C.join(u)),!s||ni(l,C,h)){var w=y.validateRules(q({validateMessages:q(q({},r$),n.validateMessages)},i));c.push(w.then(function(){return {name:C,errors:[],warnings:[]}}).catch(function(x){var $,S=[],E=[];return ($=x.forEach)===null||$===void 0||$.call(x,function(I){var O=I.rule.warningOnly,M=I.errors;O?E.push.apply(E,Ae(M)):S.push.apply(S,Ae(M));}),S.length?Promise.reject({name:C,errors:S,warnings:E}):{name:C,errors:S,warnings:E}}));}}});var v=P7(c);n.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var C=y.map(function(w){var x=w.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y);});var p=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var C=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==v})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(b),p}),F(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(a){console.error(a);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});}),this.forceRootUpdate=t;});function s$(e){var t=m__namespace.useRef(),n=m__namespace.useState({}),r=J(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var a=function(){o({});},i=new M7(a);t.current=i.getForm();}return [t.current]}var mh=m__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),_7=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=m__namespace.useContext(mh),s=m__namespace.useRef({});return m__namespace.createElement(mh.Provider,{value:q(q({},i),{},{validateMessages:q(q({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=q(q({},s.current),{},F({},c,u))),i.registerForm(c,u);},unregisterForm:function(c){var u=q({},s.current);delete u[c],s.current=u,i.unregisterForm(c);}})},a)},T7=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],N7=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,h=f===void 0?"onChange":f,g=t.onValuesChange,v=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=tt(t,T7),C=m__namespace.useContext(mh),w=s$(i),x=J(w,1),$=x[0],S=$.getInternalHooks(Zo),E=S.useSubscribe,I=S.setInitialValues,O=S.setCallbacks,M=S.setValidateMessages,R=S.setPreserve,k=S.destroyForm;m__namespace.useImperativeHandle(n,function(){return $}),m__namespace.useEffect(function(){return C.registerForm(r,$),function(){C.unregisterForm(r);}},[C,$,r]),M(q(q({},C.validateMessages),d)),O({onValuesChange:g,onFieldsChange:function(B){if(C.triggerFormChange(r,B),v){for(var V=arguments.length,G=new Array(V>1?V-1:0),X=1;X<V;X++)G[X-1]=arguments[X];v.apply(void 0,[B].concat(G));}},onFinish:function(B){C.triggerFormFinish(r,B),p&&p(B);},onFinishFailed:b}),R(s);var A=m__namespace.useRef(null);I(o,!A.current),A.current||(A.current=!0),m__namespace.useEffect(function(){return k},[]);var L,T=typeof l=="function";if(T){var P=$.getFieldsValue(!0);L=l(P,$);}else L=l;E(!T);var _=m__namespace.useRef();m__namespace.useEffect(function(){x7(_.current||[],a||[])||$.setFields(a||[]),_.current=a;},[a,$]);var z=m__namespace.useMemo(function(){return q(q({},$),{},{validateTrigger:h})},[$,h]),j=m__namespace.createElement(Uc.Provider,{value:null},m__namespace.createElement(bi.Provider,{value:z},L));return u===!1?j:m__namespace.createElement(u,Re({},y,{onSubmit:function(B){B.preventDefault(),B.stopPropagation(),$.submit();},onReset:function(B){var V;B.preventDefault(),$.resetFields(),(V=y.onReset)===null||V===void 0||V.call(y,B);}}),j)};function V0(e){try{return JSON.stringify(e)}catch{return Math.random()}}function k7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,a=t[1],i=a===void 0?{}:a,s=BH(i)?{form:i}:i,l=s.form,c=m.useState(),u=J(c,2),d=u[0],f=u[1],h=m.useMemo(function(){return V0(d)},[d]),g=m.useRef(h);g.current=h;var v=m.useContext(bi),p=l||v,b=p&&p._init,y=dn(o),C=m.useRef(y);return C.current=y,m.useEffect(function(){if(b){var w=p.getFieldsValue,x=p.getInternalHooks,$=x(Zo),S=$.registerWatch,E=S(function(O,M){var R=zr(s.preserve?M:O,C.current),k=V0(R);g.current!==k&&(g.current=k,f(R));}),I=zr(s.preserve?w(!0):w(),C.current);return d!==I&&f(I),E}},[b]),d}var A7=m__namespace.forwardRef(N7),vl=A7;vl.FormProvider=_7;vl.Field=a$;vl.List=O7;vl.useForm=s$;vl.useWatch=k7;function jn(e,t){var n=q({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const Or=m__namespace.createContext({}),As=e=>{let{children:t,status:n,override:r}=e;const o=m.useContext(Or),a=m.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 m__namespace.createElement(Or.Provider,{value:a},t)},L7=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Ft(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"}})}},D7=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:f,colorTextDisabled:h,paddingXS:g,dotColorDisabled:v,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:C}=e,w=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Ft(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({},Ft(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},ua(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:y?r:C,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${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`]:{[w]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},z7=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:f,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:$,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:E,colorPrimary:I,colorPrimaryHover:O,colorPrimaryActive:M,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:A}=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:f,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:g,paddingInline:v-o,paddingBlock:0,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":Object.assign({},ua(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:C,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:R,borderColor:R,"&:hover":{color:w,background:k,borderColor:k},"&:active":{color:w,background:A,borderColor:A}},"&-disabled":{color:x,backgroundColor:$,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:$,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:S,borderColor:i,boxShadow:"none"}}}},G0=e=>e-4*2,l$=Kt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,a=o,i=G0(r),s=St(e,{radioDotDisabledSize:i,radioFocusShadow:o,radioButtonFocusShadow:a});return [L7(s),D7(s),z7(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:f,colorPrimaryActive:h}=e,g=4,v=a,p=t?G0(v):v-(g+o)*2;return {radioSize:v,dotSize:p,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var j7=function(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 F7=(e,t)=>{var n,r;const o=m__namespace.useContext(Jw),a=m__namespace.useContext(e$),{getPrefixCls:i,direction:s,radio:l}=m__namespace.useContext(rt),c=m__namespace.useRef(null),u=Xn(t,c),{isFormItemInput:d}=m__namespace.useContext(Or),f=M=>{var R,k;(R=e.onChange)===null||R===void 0||R.call(e,M),(k=o==null?void 0:o.onChange)===null||k===void 0||k.call(o,M);},{prefixCls:h,className:g,rootClassName:v,children:p,style:b}=e,y=j7(e,["prefixCls","className","rootClassName","children","style"]),C=i("radio",h),w=((o==null?void 0:o.optionType)||a)==="button",x=w?`${C}-button`:C,[$,S]=l$(C),E=Object.assign({},y),I=m__namespace.useContext(Kr);o&&(E.name=o.name,E.onChange=f,E.checked=e.value===o.value,E.disabled=(n=E.disabled)!==null&&n!==void 0?n:o.disabled),E.disabled=(r=E.disabled)!==null&&r!==void 0?r:I;const O=K(`${x}-wrapper`,{[`${x}-wrapper-checked`]:E.checked,[`${x}-wrapper-disabled`]:E.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:d},l==null?void 0:l.className,g,v,S);return $(m__namespace.createElement(hl,{component:"Radio",disabled:E.disabled},m__namespace.createElement("label",{className:O,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},m__namespace.createElement(t$,Object.assign({},E,{className:K(E.className,!w&&Rd),type:"radio",prefixCls:x,ref:u})),p!==void 0?m__namespace.createElement("span",null,p):null)))},B7=m__namespace.forwardRef(F7),Xc=B7,H7=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(rt),[o,a]=qt(e.defaultValue,{value:e.value}),i=R=>{const k=o,A=R.target.value;"value"in e||a(A);const{onChange:L}=e;L&&A!==k&&L(R);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:h,size:g,style:v,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w}=e,x=n("radio",s),$=`${x}-group`,[S,E]=l$(x);let I=h;u&&u.length>0&&(I=u.map(R=>typeof R=="string"||typeof R=="number"?m__namespace.createElement(Xc,{key:R.toString(),prefixCls:x,disabled:f,value:R,checked:o===R},R):m__namespace.createElement(Xc,{key:`radio-group-value-options-${R.value}`,prefixCls:x,disabled:R.disabled||f,value:R.value,checked:o===R.value,title:R.title,style:R.style,id:R.id,required:R.required},R.label)));const O=tr(g),M=K($,`${$}-${d}`,{[`${$}-${O}`]:O,[`${$}-rtl`]:r==="rtl"},l,c,E);return S(m__namespace.createElement("div",Object.assign({},pi(e,{aria:!0,data:!0}),{className:M,style:v,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w,id:p,ref:t}),m__namespace.createElement(yH,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),W7=m__namespace.memo(H7);var V7=function(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 G7=(e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(rt),{prefixCls:r}=e,o=V7(e,["prefixCls"]),a=n("radio",r);return m__namespace.createElement(CH,{value:"button"},m__namespace.createElement(Xc,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},K7=m__namespace.forwardRef(G7),Md=Xc;Md.Button=K7;Md.Group=W7;Md.__ANT_RADIO=!0;const K0=Md;function U7(e,t){const n=Object.keys(e),r=xg(JSON.parse(localStorage.getItem(t)||"{}"),n),o=Zn({...e,...r});return Uu(o,()=>{const a=Ms(o);localStorage.setItem(t,JSON.stringify(a));}),o}const X7=m.createContext(null),c$=X7,q7=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Ft(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ft(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({},Ft(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({},ua(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 Y7(e,t){const n=St(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [q7(n)]}const u$=Kt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [Y7(n,e)]});var Q7=function(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 Z7=(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:f}=e,h=Q7(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=m__namespace.useContext(rt),b=m__namespace.useContext(c$),{isFormItemInput:y}=m__namespace.useContext(Or),C=m__namespace.useContext(Kr),w=(n=(b==null?void 0:b.disabled)||f)!==null&&n!==void 0?n:C,x=m__namespace.useRef(h.value);m__namespace.useEffect(()=>{b==null||b.registerValue(h.value);},[]),m__namespace.useEffect(()=>{if(!d)return h.value!==x.current&&(b==null||b.cancelValue(x.current),b==null||b.registerValue(h.value),x.current=h.value),()=>b==null?void 0:b.cancelValue(h.value)},[h.value]);const $=g("checkbox",r),[S,E]=u$($),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 O=K(`${$}-wrapper`,{[`${$}-rtl`]:v==="rtl",[`${$}-wrapper-checked`]:I.checked,[`${$}-wrapper-disabled`]:w,[`${$}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,E),M=K({[`${$}-indeterminate`]:s},Rd,E),R=s?"mixed":void 0;return S(m__namespace.createElement(hl,{component:"Checkbox",disabled:w},m__namespace.createElement("label",{className:O,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},m__namespace.createElement(t$,Object.assign({"aria-checked":R},I,{prefixCls:$,className:M,disabled:w,ref:t})),i!==void 0&&m__namespace.createElement("span",null,i))))},J7=m__namespace.forwardRef(Z7),d$=J7;var eW=function(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 tW=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:l,onChange:c}=e,u=eW(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m__namespace.useContext(rt),[h,g]=m__namespace.useState(u.value||n||[]),[v,p]=m__namespace.useState([]);m__namespace.useEffect(()=>{"value"in u&&g(u.value||[]);},[u.value]);const b=m__namespace.useMemo(()=>o.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[o]),y=k=>{p(A=>A.filter(L=>L!==k));},C=k=>{p(A=>[].concat(Ae(A),[k]));},w=k=>{const A=h.indexOf(k.value),L=Ae(h);A===-1?L.push(k.value):L.splice(A,1),"value"in u||g(L),c==null||c(L.filter(T=>v.includes(T)).sort((T,P)=>{const _=b.findIndex(j=>j.value===T),z=b.findIndex(j=>j.value===P);return _-z}));},x=d("checkbox",a),$=`${x}-group`,[S,E]=u$(x),I=jn(u,["value","disabled"]),O=o.length?b.map(k=>m__namespace.createElement(d$,{prefixCls:x,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:h.includes(k.value),onChange:k.onChange,className:`${$}-item`,style:k.style,title:k.title,id:k.id,required:k.required},k.label)):r,M={toggleOption:w,value:h,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},R=K($,{[`${$}-rtl`]:f==="rtl"},i,s,E);return S(m__namespace.createElement("div",Object.assign({className:R,style:l},I,{ref:t}),m__namespace.createElement(c$.Provider,{value:M},O)))},nW=m__namespace.forwardRef(tW),rW=m__namespace.memo(nW),dv=d$;dv.Group=rW;dv.__ANT_CHECKBOX=!0;const pl=dv;function On({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const i=!!en()[e],s=m.useCallback(c=>{const u=c.target.checked;Dn({[e]:u}),n==null||n(u);},[]);let l=D("span",{style:{userSelect:"none"},children:t||e});return r&&(l=D(il,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),D(pl,{...o,checked:i,onChange:s,children:l})}var oW={name:"1qkltea",styles:"margin-left:5px"};const U0=function(){const e=oW;return be(It,{children:[D(On,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",css:e,extraAction:t=>{t&&Ot("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(On,{configKey:"modalFeedFullScreen",label:"全屏",tooltip:"世界清净了~~~",css:e})]})};function bl({tooltip:e,iconProps:t,tooltipProps:n}){return D(It,{children:e&&D(wd,{...n,title:e,children:D(kt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const aW=`${rn}-video-source-tab`,fv=U7({value:"recommend-app"},aW),X0={name:"qamjgr",styles:"margin-right:4px"},iW={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},sW={name:"s0vnfv",styles:"height:32px"};var lW={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},cW={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function f$({onRefresh:e}){const t=Rg(),n=yl(),{styleUseStandardVideoSourceTab:r}=en(),o=fW();return be(It,{children:[D(K0.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&&!C5())return hW();fv.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:s,iconProps:l})=>D(K0.Button,{css:[iW,r&&sW,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:be("span",{css:cW,children:[D(kt,{name:s,...l,size:(l==null?void 0:l.size)||18,css:X0}),i]})},a))}),D(bl,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:D(It,{children:o.map(({key:a,label:i,icon:s,iconProps:l,desc:c})=>be("div",{css:lW,children:[D(kt,{name:s,...l,size:(l==null?void 0:l.size)||18,css:X0}),i,": ",c]},a))})})]})}const m$=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用 Bilibili 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 中关闭乱序"},{key:"popular-general",icon:"Fire",iconProps:{size:16},label:"综合热门",desc:"各个领域中新奇好玩的优质内容都在这里~",swr:!0},{key:"popular-weekly",icon:"TrendTwo",iconProps:{size:15},label:"每周必看",desc:"每周五晚 18:00 更新"}],qc=m$.reduce((e,t)=>({...e,[t.key]:t}),{}),ri=m$.map(e=>e.key);function uW(){const{hidingTabKeys:e}=en();return m.useMemo(()=>ri.filter(t=>!e.includes(t)),[e])}function h$(e){return ri.slice().sort((t,n)=>{let r=e.indexOf(t),o=e.indexOf(n);return r===-1&&(r=ri.indexOf(t)),o===-1&&(o=ri.indexOf(n)),r-o})}function dW(){const{customTabKeysOrder:e}=en();return m.useMemo(()=>h$(e),[e])}function fW(){const{hidingTabKeys:e,customTabKeysOrder:t}=en(),n=Rg();return m.useMemo(()=>{let r=h$(t);return r=r.filter(o=>!e.includes(o)||!n&&o==="recommend-app"),r.map(o=>qc[o])},[e,t,n])}function g$(e,t){return ri.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function yl(){return g$(Jn(fv).value,Rg())}function mW(){return g$(fv.value,tl())}function hW(){return Ot("你需要登录(不可用)B站后使用该功能! 如已完成登录(不可用), 请刷新网页重试~")}const v$=["xxl","xl","lg","md","sm","xs"],gW=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)`}),vW=e=>{const t=e,n=[].concat(v$).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 pW(){const[,e]=er(),t=gW(vW(e));return m.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 bW(){const[,e]=m__namespace.useReducer(t=>t+1,0);return e}function p$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=m.useRef({}),n=bW(),r=pW();return Xt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const yW=m__namespace.createContext({}),hh=yW,CW=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:f,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:p}=e,b=(y,C,w)=>({width:y,height:y,lineHeight:`${y-v*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${v}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(i,c,f)),{"&-lg":Object.assign({},b(s,u,h)),"&-sm":Object.assign({},b(l,d,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},SW=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}}}},b$=Kt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=St(e,{avatarBg:n,avatarColor:t});return [CW(r),SW(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 wW=function(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 $W=(e,t)=>{const[n,r]=m__namespace.useState(1),[o,a]=m__namespace.useState(!1),[i,s]=m__namespace.useState(!0),l=m__namespace.useRef(null),c=m__namespace.useRef(null),u=Xn(t,l),{getPrefixCls:d,avatar:f}=m__namespace.useContext(rt),h=m__namespace.useContext(hh),g=()=>{if(!c.current||!l.current)return;const Q=c.current.offsetWidth,ee=l.current.offsetWidth;if(Q!==0&&ee!==0){const{gap:W=4}=e;W*2<ee&&r(ee-W*2<Q?(ee-W*2)/Q:1);}};m__namespace.useEffect(()=>{a(!0);},[]),m__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),m__namespace.useEffect(g,[e.gap]);const v=()=>{const{onError:Q}=e;(Q==null?void 0:Q())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y,src:C,srcSet:w,icon:x,className:$,rootClassName:S,alt:E,draggable:I,children:O,crossOrigin:M}=e,R=wW(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),k=tr(Q=>{var ee,W;return (W=(ee=y??(h==null?void 0:h.size))!==null&&ee!==void 0?ee:Q)!==null&&W!==void 0?W:"default"}),A=Object.keys(typeof k=="object"?k||{}:{}).some(Q=>["xs","sm","md","lg","xl","xxl"].includes(Q)),L=p$(A),T=m__namespace.useMemo(()=>{if(typeof k!="object")return {};const Q=v$.find(W=>L[W]),ee=k[Q];return ee?{width:ee,height:ee,lineHeight:`${ee}px`,fontSize:ee&&(x||O)?ee/2:18}:{}},[L,k]),P=d("avatar",p),[_,z]=b$(P),j=K({[`${P}-lg`]:k==="large",[`${P}-sm`]:k==="small"}),H=m__namespace.isValidElement(C),B=b||(h==null?void 0:h.shape)||"circle",V=K(P,j,f==null?void 0:f.className,`${P}-${B}`,{[`${P}-image`]:H||C&&i,[`${P}-icon`]:!!x},$,S,z),G=typeof k=="number"?{width:k,height:k,lineHeight:`${k}px`,fontSize:x?k/2:18}:{};let X;if(typeof C=="string"&&i)X=m__namespace.createElement("img",{src:C,draggable:I,srcSet:w,onError:v,alt:E,crossOrigin:M});else if(H)X=C;else if(x)X=x;else if(o||n!==1){const Q=`scale(${n}) translateX(-50%)`,ee={msTransform:Q,WebkitTransform:Q,transform:Q},W=typeof k=="number"?{lineHeight:`${k}px`}:{};X=m__namespace.createElement(Er,{onResize:g},m__namespace.createElement("span",{className:`${P}-string`,ref:c,style:Object.assign(Object.assign({},W),ee)},O));}else X=m__namespace.createElement("span",{className:`${P}-string`,style:{opacity:0},ref:c},O);return delete R.onError,delete R.gap,_(m__namespace.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),T),f==null?void 0:f.style),R.style),className:V,ref:u}),X))},xW=m__namespace.forwardRef($W),y$=xW,yi=e=>e?typeof e=="function"?e():e:null,EW=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:f}=e;return [{[t]:Object.assign(Object.assign({},Ft(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:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},Ug(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},IW=e=>{const{componentCls:t}=e;return {[t]:Ns.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},OW=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,f=u/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${h}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${h}px`}}}},C$=Kt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=St(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [EW(o),IW(o),r&&OW(o),hd(o,"zoom-big")]},e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var PW=function(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,t,n)=>{if(!(!t&&!n))return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${e}-title`},yi(t)),m__namespace.createElement("div",{className:`${e}-inner-content`},yi(n)))},MW=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:l}=e;return m__namespace.createElement("div",{className:K(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},m__namespace.createElement("div",{className:`${n}-arrow`}),m__namespace.createElement(_g,Object.assign({},e,{className:t,prefixCls:n}),l||RW(n,i,s)))},_W=e=>{const{prefixCls:t}=e,n=PW(e,["prefixCls"]),{getPrefixCls:r}=m__namespace.useContext(rt),o=r("popover",t),[a,i]=C$(o);return a(m__namespace.createElement(MW,Object.assign({},n,{prefixCls:o,hashId:i})))},S$=_W;var TW=function(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 NW=e=>{let{title:t,content:n,prefixCls:r}=e;return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${r}-title`},yi(t)),m__namespace.createElement("div",{className:`${r}-inner-content`},yi(n)))},w$=m__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=TW(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=m__namespace.useContext(rt),h=f("popover",n),[g,v]=C$(h),p=f(),b=K(a,v);return g(m__namespace.createElement(il,Object.assign({placement:i,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?m__namespace.createElement(NW,{prefixCls:h,title:r,content:o}):null,transitionName:ud(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});w$._InternalPanelDoNotUseOrYouWillBeFired=S$;const _d=w$,q0=e=>{const{size:t,shape:n}=m__namespace.useContext(hh),r=m__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return m__namespace.createElement(hh.Provider,{value:r},e.children)},kW=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(rt),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:f="hover",children:h}=e,g=t("avatar",r),v=`${g}-group`,[p,b]=b$(g),y=K(v,{[`${v}-rtl`]:n==="rtl"},o,a,b),C=hr(h).map((x,$)=>Kn(x,{key:`avatar-key-${$}`})),w=C.length;if(s&&s<w){const x=C.slice(0,s),$=C.slice(s,w);return x.push(m__namespace.createElement(_d,{key:"avatar-popover-key",content:$,trigger:f,placement:d,overlayClassName:`${v}-popover`},m__namespace.createElement(y$,{style:l},`+${w-s}`))),p(m__namespace.createElement(q0,{shape:u,size:c},m__namespace.createElement("div",{className:y,style:i},x)))}return p(m__namespace.createElement(q0,{shape:u,size:c},m__namespace.createElement("div",{className:y,style:i},C)))},AW=kW,$$=y$;$$.Group=AW;const Yc=$$;var LW={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 DW=LW;function zW(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function jW(e,t){wn(e,"[@ant-design/icons] ".concat(t));}function Y0(e){return ut(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ut(e.icon)==="object"||typeof e.icon=="function")}function Q0(){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[zW(n)]=r;}return t},{})}function gh(e,t,n){return n?m.createElement(e.tag,q(q({key:t},Q0(e.attrs)),n),(e.children||[]).map(function(r,o){return gh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):m.createElement(e.tag,q({key:t},Q0(e.attrs)),(e.children||[]).map(function(r,o){return gh(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function x$(e){return go(e)[0]}function E$(e){return e?Array.isArray(e)?e:[e]:[]}var FW=` .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); } } `,BW=function(t){var n=m.useContext(Xg),r=n.csp,o=n.prefixCls,a=FW;o&&(a=a.replace(/anticon/g,o)),m.useEffect(function(){var i=t.current,s=Fc(i);mi(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},HW=["icon","className","onClick","style","primaryColor","secondaryColor"],gs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function WW(e){var t=e.primaryColor,n=e.secondaryColor;gs.primaryColor=t,gs.secondaryColor=n||x$(t),gs.calculated=!!n;}function VW(){return q({},gs)}var Td=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=tt(t,HW),c=m__namespace.useRef(),u=gs;if(i&&(u={primaryColor:i,secondaryColor:s||x$(i)}),BW(c),jW(Y0(n),"icon should be icon definiton, but got ".concat(n)),!Y0(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=q(q({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),gh(d.icon,"svg-".concat(d.name),q(q({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Td.displayName="IconReact";Td.getTwoToneColors=VW;Td.setTwoToneColors=WW;const mv=Td;function I$(e){var t=E$(e),n=J(t,2),r=n[0],o=n[1];return mv.setTwoToneColors({primaryColor:r,secondaryColor:o})}function GW(){var e=mv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var KW=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];I$(u8.primary);var Nd=m__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=tt(e,KW),d=m__namespace.useContext(Xg),f=d.prefixCls,h=f===void 0?"anticon":f,g=d.rootClassName,v=K(g,h,(n={},F(n,"".concat(h,"-").concat(o.name),!!o.name),F(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=E$(c),C=J(y,2),w=C[0],x=C[1];return m__namespace.createElement("span",Re({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:v}),m__namespace.createElement(mv,{icon:o,primaryColor:w,secondaryColor:x,style:b}))});Nd.displayName="AntdIcon";Nd.getTwoToneColor=GW;Nd.setTwoToneColor=I$;const Mn=Nd;var UW=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:DW}))};const Ci=m__namespace.forwardRef(UW);var ve={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>=ve.F1&&n<=ve.F12)return !1;switch(n){case ve.ALT:case ve.CAPS_LOCK:case ve.CONTEXT_MENU:case ve.CTRL:case ve.DOWN:case ve.END:case ve.ESC:case ve.HOME:case ve.INSERT:case ve.LEFT:case ve.MAC_FF_META:case ve.META:case ve.NUMLOCK:case ve.NUM_CENTER:case ve.PAGE_DOWN:case ve.PAGE_UP:case ve.PAUSE:case ve.PRINT_SCREEN:case ve.RIGHT:case ve.SHIFT:case ve.UP:case ve.WIN_KEY:case ve.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ve.ZERO&&t<=ve.NINE||t>=ve.NUM_ZERO&&t<=ve.NUM_MULTIPLY||t>=ve.A&&t<=ve.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ve.SPACE:case ve.QUESTION_MARK:case ve.NUM_PLUS:case ve.NUM_MINUS:case ve.NUM_PERIOD:case ve.NUM_DIVISION:case ve.SEMICOLON:case ve.DASH:case ve.EQUALS:case ve.COMMA:case ve.PERIOD:case ve.SLASH:case ve.APOSTROPHE:case ve.SINGLE_QUOTE:case ve.OPEN_SQUARE_BRACKET:case ve.BACKSLASH:case ve.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},XW=ve.ESC,qW=ve.TAB;function YW(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=m__namespace.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.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 XW:s();break;case qW:{var f=!1;i.current||(f=l()),f?d.preventDefault():s();break}}};m__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Rt(l,3),function(){window.removeEventListener("keydown",c),i.current=!1;}):function(){i.current=!1;}},[t]);}var QW=m.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=m.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Xn(t,a==null?void 0:a.ref);return m.createElement(m.Fragment,null,r&&m.createElement("div",{className:"".concat(o,"-arrow")}),m.cloneElement(a,{ref:zo(a)?i:void 0}))}),ka={adjustX:1,adjustY:1},Aa=[0,0],ZW={topLeft:{points:["bl","tl"],overflow:ka,offset:[0,-4],targetOffset:Aa},top:{points:["bc","tc"],overflow:ka,offset:[0,-4],targetOffset:Aa},topRight:{points:["br","tr"],overflow:ka,offset:[0,-4],targetOffset:Aa},bottomLeft:{points:["tl","bl"],overflow:ka,offset:[0,4],targetOffset:Aa},bottom:{points:["tc","bc"],overflow:ka,offset:[0,4],targetOffset:Aa},bottomRight:{points:["tr","br"],overflow:ka,offset:[0,4],targetOffset:Aa}},JW=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function eV(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,f=e.placements,h=f===void 0?ZW:f,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,w=e.trigger,x=w===void 0?["hover"]:w,$=e.autoFocus,S=e.overlay,E=e.children,I=e.onVisibleChange,O=tt(e,JW),M=m.useState(),R=J(M,2),k=R[0],A=R[1],L="visible"in e?C:k,T=m.useRef(null),P=m.useRef(null),_=m.useRef(null);m.useImperativeHandle(t,function(){return T.current});var z=function(W){A(W),I==null||I(W);};YW({visible:L,triggerRef:_,onVisibleChange:z,autoFocus:$,overlayRef:P});var j=function(W){var Z=e.onOverlayClick;A(!1),Z&&Z(W);},H=function(){return m.createElement(QW,{ref:P,overlay:S,prefixCls:i,arrow:o})},B=function(){return typeof S=="function"?H:H()},V=function(){var W=e.minOverlayWidthMatchTrigger,Z=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?W:!Z},G=function(){var W=e.openClassName;return W!==void 0?W:"".concat(i,"-open")},X=m.cloneElement(E,{className:K((n=E.props)===null||n===void 0?void 0:n.className,L&&G()),ref:zo(E)?Xn(_,E.ref):void 0}),Q=p;return !Q&&x.indexOf("contextMenu")!==-1&&(Q=["click"]),m.createElement(ld,Re({builtinPlacements:h},O,{prefixCls:i,ref:T,popupClassName:K(b,F({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:x,showAction:v,hideAction:Q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:L,stretch:V()?"minWidth":"",popup:B(),onPopupVisibleChange:z,onPopupClick:j,getPopupContainer:g}),X)}const O$=m.forwardRef(eV);function tV(e){return function(n){return m__namespace.createElement(Bo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m__namespace.createElement(e,Object.assign({},n)))}}function hv(e,t,n,r){function o(a){const{prefixCls:i,style:s}=a,l=m__namespace.useRef(null),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,g]=qt(!1,{value:a.open}),{getPrefixCls:v}=m__namespace.useContext(rt),p=v(t||"select",i);m__namespace.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(w=>{const x=w[0].target;u(x.offsetHeight+8),f(x.offsetWidth);}),C=setInterval(()=>{var w;const x=n?`.${n(p)}`:`.${p}-dropdown`,$=(w=l.current)===null||w===void 0?void 0:w.querySelector(x);$&&(clearInterval(C),y.observe($));},10);return ()=>{clearInterval(C),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)),m__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},m__namespace.createElement(e,Object.assign({},b)))}return tV(o)}var nV=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],La=void 0;function rV(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,b=tt(e,nV),y=i&&!h;function C(E){l(c,E);}m__namespace.useEffect(function(){return function(){C(null);}},[]);var w=a&&o!==La?a(o):f,x;r||(x={opacity:y?0:1,height:y?0:La,overflowY:y?"hidden":La,order:i?g:La,pointerEvents:y?"none":La,position:y?"absolute":La});var $={};y&&($["aria-hidden"]=!0);var S=m__namespace.createElement(p,Re({className:K(!r&&n,u),style:q(q({},x),d)},$,b,{ref:t}),w);return i&&(S=m__namespace.createElement(Er,{onResize:function(I){var O=I.offsetWidth;C(O);},disabled:s},S)),S}var vs=m__namespace.forwardRef(rV);vs.displayName="Item";function oV(e){if(typeof MessageChannel>"u")Rt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function aV(){var e=m__namespace.useRef(null),t=function(r){e.current||(e.current=[],oV(function(){k1.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Qi(e,t){var n=m__namespace.useState(t),r=J(n,2),o=r[0],a=r[1],i=kn(function(s){e(function(){a(s);});});return [o,i]}var Qc=m.createContext(null),iV=["component"],sV=["className"],lV=["className"],cV=function(t,n){var r=m__namespace.useContext(Qc);if(!r){var o=t.component,a=o===void 0?"div":o,i=tt(t,iV);return m__namespace.createElement(a,Re({},i,{ref:n}))}var s=r.className,l=tt(r,sV),c=t.className,u=tt(t,lV);return m__namespace.createElement(Qc.Provider,{value:null},m__namespace.createElement(vs,Re({ref:n,className:K(s,c)},l,u)))},P$=m__namespace.forwardRef(cV);P$.displayName="RawItem";var uV=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],R$="responsive",M$="invalidate";function dV(e){return "+ ".concat(e.length," ...")}function fV(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,f=e.style,h=e.className,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,w=e.itemComponent,x=e.onVisibleChange,$=tt(e,uV),S=d==="full",E=aV(),I=Qi(E,null),O=J(I,2),M=O[0],R=O[1],k=M||0,A=Qi(E,new Map),L=J(A,2),T=L[0],P=L[1],_=Qi(E,0),z=J(_,2),j=z[0],H=z[1],B=Qi(E,0),V=J(B,2),G=V[0],X=V[1],Q=Qi(E,0),ee=J(Q,2),W=ee[0],Z=ee[1],U=m.useState(null),ue=J(U,2),le=ue[0],ie=ue[1],ce=m.useState(null),se=J(ce,2),Y=se[0],ae=se[1],me=m__namespace.useMemo(function(){return Y===null&&S?Number.MAX_SAFE_INTEGER:Y||0},[Y,M]),te=m.useState(!1),re=J(te,2),he=re[0],Ce=re[1],ke="".concat(r,"-item"),We=Math.max(j,G),Ge=g===R$,Me=a.length&&Ge,Xe=g===M$,ze=Me||typeof g=="number"&&a.length>g,He=m.useMemo(function(){var Se=a;return Me?M===null&&S?Se=a:Se=a.slice(0,Math.min(a.length,k/u)):typeof g=="number"&&(Se=a.slice(0,g)),Se},[a,u,M,g,Me]),Ie=m.useMemo(function(){return Me?a.slice(me+1):a.slice(He.length)},[a,He,Me,me]),we=m.useCallback(function(Se,fe){var oe;return typeof l=="function"?l(Se):(oe=l&&(Se==null?void 0:Se[l]))!==null&&oe!==void 0?oe:fe},[l]),qe=m.useCallback(i||function(Se){return Se},[i]);function nt(Se,fe,oe){Y===Se&&(fe===void 0||fe===le)||(ae(Se),oe||(Ce(Se<a.length-1),x==null||x(Se)),fe!==void 0&&ie(fe));}function bt(Se,fe){R(fe.clientWidth);}function Ze(Se,fe){P(function(oe){var ye=new Map(oe);return fe===null?ye.delete(Se):ye.set(Se,fe),ye});}function Je(Se,fe){X(fe),H(G);}function gt(Se,fe){Z(fe);}function vt(Se){return T.get(we(He[Se],Se))}Xt(function(){if(k&&typeof We=="number"&&He){var Se=W,fe=He.length,oe=fe-1;if(!fe){nt(0,null);return}for(var ye=0;ye<fe;ye+=1){var de=vt(ye);if(S&&(de=de||0),de===void 0){nt(ye-1,void 0,!0);break}if(Se+=de,oe===0&&Se<=k||ye===oe-1&&Se+vt(oe)<=k){nt(oe,null);break}else if(Se+We>k){nt(ye-1,Se-de-W+G);break}}b&&vt(0)+W>k&&ie(null);}},[k,T,G,W,we,He]);var st=he&&!!Ie.length,dt={};le!==null&&Me&&(dt={position:"absolute",left:le,top:0});var et={prefixCls:ke,responsive:Me,component:w,invalidate:Xe},$e=s?function(Se,fe){var oe=we(Se,fe);return m__namespace.createElement(Qc.Provider,{key:oe,value:q(q({},et),{},{order:fe,item:Se,itemKey:oe,registerSize:Ze,display:fe<=me})},s(Se,fe))}:function(Se,fe){var oe=we(Se,fe);return m__namespace.createElement(vs,Re({},et,{order:fe,key:oe,item:Se,renderItem:qe,itemKey:oe,registerSize:Ze,display:fe<=me}))},xe,_e={order:st?me:Number.MAX_SAFE_INTEGER,className:"".concat(ke,"-rest"),registerSize:Je,display:st};if(p)p&&(xe=m__namespace.createElement(Qc.Provider,{value:q(q({},et),_e)},p(Ie)));else {var ge=v||dV;xe=m__namespace.createElement(vs,Re({},et,_e),typeof ge=="function"?ge(Ie):ge);}var Te=m__namespace.createElement(C,Re({className:K(!Xe&&r,h),style:f,ref:t},$),He.map($e),ze?xe:null,b&&m__namespace.createElement(vs,Re({},et,{responsive:Ge,responsiveDisabled:!Me,order:me,className:"".concat(ke,"-suffix"),registerSize:gt,display:!0,style:dt}),b));return Ge&&(Te=m__namespace.createElement(Er,{onResize:bt,disabled:!Me},Te)),Te}var ro=m__namespace.forwardRef(fV);ro.displayName="Overflow";ro.Item=P$;ro.RESPONSIVE=R$;ro.INVALIDATE=M$;var _$=m__namespace.createContext(null);function gv(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function T$(e){var t=m__namespace.useContext(_$);return gv(t,e)}var mV=["children","locked"],Fr=m__namespace.createContext(null);function hV(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function Ls(e){var t=e.children,n=e.locked,r=tt(e,mV),o=m__namespace.useContext(Fr),a=nl(function(){return hV(o,r)},[o,r],function(i,s){return !n&&(i[0]!==s[0]||!ol(i[1],s[1],!0))});return m__namespace.createElement(Fr.Provider,{value:a},t)}var gV=[],N$=m__namespace.createContext(null);function kd(){return m__namespace.useContext(N$)}var k$=m__namespace.createContext(gV);function Di(e){var t=m__namespace.useContext(k$);return m__namespace.useMemo(function(){return e!==void 0?[].concat(Ae(t),[e]):t},[t,e])}var A$=m__namespace.createContext(null),vv=m__namespace.createContext({});function Z0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(jg(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 vV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ae(e.querySelectorAll("*")).filter(function(r){return Z0(r,t)});return Z0(e,t)&&n.unshift(e),n}var vh=ve.LEFT,ph=ve.RIGHT,bh=ve.UP,Sc=ve.DOWN,wc=ve.ENTER,L$=ve.ESC,Zi=ve.HOME,Ji=ve.END,J0=[bh,Sc,vh,ph];function pV(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===wc)return {inlineTrigger:!0};var f=(o={},F(o,bh,l),F(o,Sc,c),o),h=(a={},F(a,vh,n?c:l),F(a,ph,n?l:c),F(a,Sc,u),F(a,wc,u),a),g=(i={},F(i,bh,l),F(i,Sc,c),F(i,wc,u),F(i,L$,d),F(i,vh,n?u:d),F(i,ph,n?d:u),i),v={inline:f,horizontal:h,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g},p=(s=v["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){case l:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function bV(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function yV(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function D$(e,t){var n=vV(e,!0);return n.filter(function(r){return t.has(r)})}function ey(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=D$(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 CV(e,t,n,r,o,a,i,s,l,c){var u=m__namespace.useRef(),d=m__namespace.useRef();d.current=t;var f=function(){Rt.cancel(u.current);};return m__namespace.useEffect(function(){return function(){f();}},[]),function(h){var g=h.which;if([].concat(J0,[wc,L$,Zi,Ji]).includes(g)){var v,p,b,y=function(){v=new Set,p=new Map,b=new Map;var L=a();return L.forEach(function(T){var P=document.querySelector("[data-menu-id='".concat(gv(r,T),"']"));P&&(v.add(P),b.set(P,T),p.set(T,P));}),v};y();var C=p.get(t),w=yV(C,v),x=b.get(w),$=pV(e,i(x,!0).length===1,n,g);if(!$&&g!==Zi&&g!==Ji)return;(J0.includes(g)||[Zi,Ji].includes(g))&&h.preventDefault();var S=function(L){if(L){var T=L,P=L.querySelector("a");P!=null&&P.getAttribute("href")&&(T=P);var _=b.get(L);s(_),f(),u.current=Rt(function(){d.current===_&&T.focus();});}};if([Zi,Ji].includes(g)||$.sibling||!w){var E;!w||e==="inline"?E=o.current:E=bV(w);var I,O=D$(E,v);g===Zi?I=O[0]:g===Ji?I=O[O.length-1]:I=ey(E,v,w,$.offset),S(I);}else if($.inlineTrigger)l(x);else if($.offset>0)l(x,!0),f(),u.current=Rt(function(){y();var A=w.getAttribute("aria-controls"),L=document.getElementById(A),T=ey(L,v);S(T);},5);else if($.offset<0){var M=i(x,!0),R=M[M.length-2],k=p.get(R);l(R,!1),S(k);}}c==null||c(h);}}function SV(e){Promise.resolve().then(e);}var pv="__RC_UTIL_PATH_SPLIT__",ty=function(t){return t.join(pv)},wV=function(t){return t.split(pv)},yh="rc-menu-more";function $V(){var e=m__namespace.useState({}),t=J(e,2),n=t[1],r=m.useRef(new Map),o=m.useRef(new Map),a=m__namespace.useState([]),i=J(a,2),s=i[0],l=i[1],c=m.useRef(0),u=m.useRef(!1),d=function(){u.current||n({});},f=m.useCallback(function(C,w){var x=ty(w);o.current.set(x,C),r.current.set(C,x),c.current+=1;var $=c.current;SV(function(){$===c.current&&d();});},[]),h=m.useCallback(function(C,w){var x=ty(w);o.current.delete(x),r.current.delete(C);},[]),g=m.useCallback(function(C){l(C);},[]),v=m.useCallback(function(C,w){var x=r.current.get(C)||"",$=wV(x);return w&&s.includes($[0])&&$.unshift(yh),$},[s]),p=m.useCallback(function(C,w){return C.some(function(x){var $=v(x,!0);return $.includes(w)})},[v]),b=function(){var w=Ae(r.current.keys());return s.length&&w.push(yh),w},y=m.useCallback(function(C){var w="".concat(r.current.get(C)).concat(pv),x=new Set;return Ae(o.current.keys()).forEach(function($){$.startsWith(w)&&x.add(o.current.get($));}),x},[]);return m__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:b,getSubPathKeys:y}}function is(e){var t=m__namespace.useRef(e);t.current=e;var n=m__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 xV=Math.random().toFixed(5).toString().slice(2),ny=0;function EV(e){var t=qt(e,{value:e}),n=J(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){ny+=1;var a="".concat(xV,"-").concat(ny);o("rc-menu-uuid-".concat(a));},[]),r}function z$(e,t,n,r){var o=m__namespace.useContext(Fr),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 j$(e){var t=m__namespace.useContext(Fr),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 F$(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=m__namespace.createElement(t,q({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var IV=["item"];function Zc(e){var t=e.item,n=tt(e,IV);return Object.defineProperty(n,"item",{get:function(){return wn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var OV=["title","attribute","elementRef"],PV=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],RV=["active"],MV=function(e){jo(n,e);var t=Fo(n);function n(){return xn(this,n),t.apply(this,arguments)}return En(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,l=tt(o,OV),c=jn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return wn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m__namespace.createElement(ro.Item,Re({},i,{title:typeof a=="string"?a:void 0},c,{ref:s}))}}]),n}(m__namespace.Component),_V=m__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,f=e.onClick,h=e.onKeyDown,g=e.onFocus,v=tt(e,PV),p=T$(a),b=m__namespace.useContext(Fr),y=b.prefixCls,C=b.onItemClick,w=b.disabled,x=b.overflowDisabled,$=b.itemIcon,S=b.selectedKeys,E=b.onActive,I=m__namespace.useContext(vv),O=I._internalRenderMenuItem,M="".concat(y,"-item"),R=m__namespace.useRef(),k=m__namespace.useRef(),A=w||i,L=ya(t,k),T=Di(a),P=function(U){return {key:a,keyPath:Ae(T).reverse(),item:R.current,domEvent:U}},_=s||$,z=z$(a,A,u,d),j=z.active,H=tt(z,RV),B=S.includes(a),V=j$(T.length),G=function(U){if(!A){var ue=P(U);f==null||f(Zc(ue)),C(ue);}},X=function(U){if(h==null||h(U),U.which===ve.ENTER){var ue=P(U);f==null||f(Zc(ue)),C(ue);}},Q=function(U){E(a),g==null||g(U);},ee={};e.role==="option"&&(ee["aria-selected"]=B);var W=m__namespace.createElement(MV,Re({ref:R,elementRef:L,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&p?null:p},v,H,ee,{component:"li","aria-disabled":i,style:q(q({},V),r),className:K(M,(n={},F(n,"".concat(M,"-active"),j),F(n,"".concat(M,"-selected"),B),F(n,"".concat(M,"-disabled"),A),n),o),onClick:G,onKeyDown:X,onFocus:Q}),l,m__namespace.createElement(F$,{props:q(q({},e),{},{isSelected:B}),icon:_}));return O&&(W=O(W,e,{selected:B})),W});function TV(e,t){var n=e.eventKey,r=kd(),o=Di(n);return m__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:m__namespace.createElement(_V,Re({},e,{ref:t}))}const Cl=m__namespace.forwardRef(TV);var NV=["className","children"],kV=function(t,n){var r=t.className,o=t.children,a=tt(t,NV),i=m__namespace.useContext(Fr),s=i.prefixCls,l=i.mode,c=i.rtl;return m__namespace.createElement("ul",Re({className:K(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)},bv=m__namespace.forwardRef(kV);bv.displayName="SubMenuList";function yv(e,t){return hr(e).map(function(n,r){if(m__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(Ae(t),[r]).join("-")));var c={key:s,eventKey:s};return m__namespace.cloneElement(n,c)}return n})}var Nn={adjustX:1,adjustY:1},AV={topLeft:{points:["bl","tl"],overflow:Nn},topRight:{points:["br","tr"],overflow:Nn},bottomLeft:{points:["tl","bl"],overflow:Nn},bottomRight:{points:["tr","br"],overflow:Nn},leftTop:{points:["tr","tl"],overflow:Nn},leftBottom:{points:["br","bl"],overflow:Nn},rightTop:{points:["tl","tr"],overflow:Nn},rightBottom:{points:["bl","br"],overflow:Nn}},LV={topLeft:{points:["bl","tl"],overflow:Nn},topRight:{points:["br","tr"],overflow:Nn},bottomLeft:{points:["tl","bl"],overflow:Nn},bottomRight:{points:["tr","br"],overflow:Nn},rightTop:{points:["tr","tl"],overflow:Nn},rightBottom:{points:["br","bl"],overflow:Nn},leftTop:{points:["tl","tr"],overflow:Nn},leftBottom:{points:["bl","br"],overflow:Nn}};function B$(e,t,n){if(t)return t;if(n)return n[e]||n.other}var DV={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function zV(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=m__namespace.useContext(Fr),f=d.getPopupContainer,h=d.rtl,g=d.subMenuOpenDelay,v=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,C=d.rootClassName,w=d.motion,x=d.defaultMotions,$=m__namespace.useState(!1),S=J($,2),E=S[0],I=S[1],O=q(h?q({},LV):q({},AV),p),M=DV[c],R=B$(c,w,x),k=m__namespace.useRef(R);c!=="inline"&&(k.current=R);var A=q(q({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=m__namespace.useRef();return m__namespace.useEffect(function(){return L.current=Rt(function(){I(n);}),function(){Rt.cancel(L.current);}},[n]),m__namespace.createElement(ld,{prefixCls:t,popupClassName:K("".concat(t,"-popup"),F({},"".concat(t,"-rtl"),h),i,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:O,popupPlacement:M,popupVisible:E,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:v,onPopupVisibleChange:u,forceRender:y,popupMotion:A,fresh:!0},r)}function jV(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=m__namespace.useContext(Fr),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,f=m__namespace.useRef(!1);f.current=d===a;var h=m__namespace.useState(!f.current),g=J(h,2),v=g[0],p=g[1],b=f.current?n:!1;m__namespace.useEffect(function(){f.current&&p(!1);},[d]);var y=q({},B$(a,c,u));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(w){return !f.current&&!w&&p(!0),C==null?void 0:C(w)},v?null:m__namespace.createElement(Ls,{mode:a,locked:!f.current},m__namespace.createElement(Co,Re({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var x=w.className,$=w.style;return m__namespace.createElement(bv,{id:t,className:x,style:$},o)}))}var FV=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],BV=["active"],HV=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,f=t.popupClassName,h=t.popupOffset,g=t.popupStyle,v=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,w=t.onTitleMouseLeave,x=tt(t,FV),$=T$(i),S=m__namespace.useContext(Fr),E=S.prefixCls,I=S.mode,O=S.openKeys,M=S.disabled,R=S.overflowDisabled,k=S.activeKey,A=S.selectedKeys,L=S.itemIcon,T=S.expandIcon,P=S.onItemClick,_=S.onOpenChange,z=S.onActive,j=m__namespace.useContext(vv),H=j._internalRenderSubMenuItem,B=m__namespace.useContext(A$),V=B.isSubPathKey,G=Di(),X="".concat(E,"-submenu"),Q=M||s,ee=m__namespace.useRef(),W=m__namespace.useRef(),Z=u??L,U=d??T,ue=O.includes(i),le=!R&&ue,ie=V(A,i),ce=z$(i,Q,C,w),se=ce.active,Y=tt(ce,BV),ae=m__namespace.useState(!1),me=J(ae,2),te=me[0],re=me[1],he=function(Je){Q||re(Je);},Ce=function(Je){he(!0),p==null||p({key:i,domEvent:Je});},ke=function(Je){he(!1),b==null||b({key:i,domEvent:Je});},We=m__namespace.useMemo(function(){return se||(I!=="inline"?te||V([k],i):!1)},[I,se,k,te,i,V]),Ge=j$(G.length),Me=function(Je){Q||(y==null||y({key:i,domEvent:Je}),I==="inline"&&_(i,!ue));},Xe=is(function(Ze){v==null||v(Zc(Ze)),P(Ze);}),ze=function(Je){I!=="inline"&&_(i,Je);},He=function(){z(i);},Ie=$&&"".concat($,"-popup"),we=m__namespace.createElement("div",Re({role:"menuitem",style:Ge,className:"".concat(X,"-title"),tabIndex:Q?null:-1,ref:ee,title:typeof a=="string"?a:null,"data-menu-id":R&&$?null:$,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Ie,"aria-disabled":Q,onClick:Me,onFocus:He},Y),a,m__namespace.createElement(F$,{icon:I!=="horizontal"?U:void 0,props:q(q({},t),{},{isOpen:le,isSubMenu:!0})},m__namespace.createElement("i",{className:"".concat(X,"-arrow")}))),qe=m__namespace.useRef(I);if(I!=="inline"&&G.length>1?qe.current="vertical":qe.current=I,!R){var nt=qe.current;we=m__namespace.createElement(zV,{mode:nt,prefixCls:X,visible:!l&&le&&I!=="inline",popupClassName:f,popupOffset:h,popupStyle:g,popup:m__namespace.createElement(Ls,{mode:nt==="horizontal"?"vertical":nt},m__namespace.createElement(bv,{id:Ie,ref:W},c)),disabled:Q,onVisibleChange:ze},we);}var bt=m__namespace.createElement(ro.Item,Re({role:"none"},x,{component:"li",style:r,className:K(X,"".concat(X,"-").concat(I),o,(n={},F(n,"".concat(X,"-open"),le),F(n,"".concat(X,"-active"),We),F(n,"".concat(X,"-selected"),ie),F(n,"".concat(X,"-disabled"),Q),n)),onMouseEnter:Ce,onMouseLeave:ke}),we,!R&&m__namespace.createElement(jV,{id:Ie,open:le,keyPath:G},c));return H&&(bt=H(bt,t,{selected:ie,active:We,open:le,disabled:Q})),m__namespace.createElement(Ls,{onItemClick:Xe,mode:I==="horizontal"?"vertical":I,itemIcon:Z,expandIcon:U},bt)};function Ad(e){var t=e.eventKey,n=e.children,r=Di(t),o=yv(n,r),a=kd();m__namespace.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r);}},[r]);var i;return a?i=o:i=m__namespace.createElement(HV,e,o),m__namespace.createElement(k$.Provider,{value:r},i)}var WV=["className","title","eventKey","children"],VV=["children"],GV=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=tt(t,WV),i=m__namespace.useContext(Fr),s=i.prefixCls,l="".concat(s,"-item-group");return m__namespace.createElement("li",Re({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:K(l,n)}),m__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),m__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function Ld(e){var t=e.children,n=tt(e,VV),r=Di(n.eventKey),o=yv(t,r),a=kd();return a?o:m__namespace.createElement(GV,jn(n,["warnKey"]),o)}function Cv(e){var t=e.className,n=e.style,r=m__namespace.useContext(Fr),o=r.prefixCls,a=kd();return a?null:m__namespace.createElement("li",{role:"separator",className:K("".concat(o,"-item-divider"),t),style:n})}var KV=["label","children","key","type"];function Ch(e){return (e||[]).map(function(t,n){if(t&&ut(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,s=r.type,l=tt(r,KV),c=i??"tmp-".concat(n);return a||s==="group"?s==="group"?m__namespace.createElement(Ld,Re({key:c},l,{title:o}),Ch(a)):m__namespace.createElement(Ad,Re({key:c},l,{title:o}),Ch(a)):s==="divider"?m__namespace.createElement(Cv,Re({key:c},l)):m__namespace.createElement(Cl,Re({key:c},l),o)}return null}).filter(function(t){return t})}function UV(e,t,n){var r=e;return t&&(r=Ch(t)),yv(r,n)}var XV=["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"],Da=[],qV=m__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,f=o.items,h=o.children,g=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,C=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,$=x===void 0?.1:x,S=o.subMenuCloseDelay,E=S===void 0?.1:S,I=o.forceSubMenuRender,O=o.defaultOpenKeys,M=o.openKeys,R=o.activeKey,k=o.defaultActiveFirst,A=o.selectable,L=A===void 0?!0:A,T=o.multiple,P=T===void 0?!1:T,_=o.defaultSelectedKeys,z=o.selectedKeys,j=o.onSelect,H=o.onDeselect,B=o.inlineIndent,V=B===void 0?24:B,G=o.motion,X=o.defaultMotions,Q=o.triggerSubMenuAction,ee=Q===void 0?"hover":Q,W=o.builtinPlacements,Z=o.itemIcon,U=o.expandIcon,ue=o.overflowedIndicator,le=ue===void 0?"...":ue,ie=o.overflowedIndicatorPopupClassName,ce=o.getPopupContainer,se=o.onClick,Y=o.onOpenChange,ae=o.onKeyDown;o.openAnimation,o.openTransitionName;var me=o._internalRenderMenuItem,te=o._internalRenderSubMenuItem,re=tt(o,XV),he=m__namespace.useMemo(function(){return UV(h,f,Da)},[h,f]),Ce=m__namespace.useState(!1),ke=J(Ce,2),We=ke[0],Ge=ke[1],Me=m__namespace.useRef(),Xe=EV(v),ze=g==="rtl",He=qt(O,{value:M,postState:function(at){return at||Da}}),Ie=J(He,2),we=Ie[0],qe=Ie[1],nt=function(at){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function $t(){qe(at),Y==null||Y(at);}yt?k1.flushSync($t):$t();},bt=m__namespace.useState(we),Ze=J(bt,2),Je=Ze[0],gt=Ze[1],vt=m__namespace.useRef(!1),st=m__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),dt=J(st,2),et=dt[0],$e=dt[1],xe=et==="inline",_e=m__namespace.useState(et),ge=J(_e,2),Te=ge[0],Se=ge[1],fe=m__namespace.useState($e),oe=J(fe,2),ye=oe[0],de=oe[1];m__namespace.useEffect(function(){Se(et),de($e),vt.current&&(xe?qe(Je):nt(Da));},[et,$e]);var pe=m__namespace.useState(0),Le=J(pe,2),Ue=Le[0],lt=Le[1],it=Ue>=he.length-1||Te!=="horizontal"||w;m__namespace.useEffect(function(){xe&>(we);},[we]),m__namespace.useEffect(function(){return vt.current=!0,function(){vt.current=!1;}},[]);var Et=$V(),wt=Et.registerPath,ft=Et.unregisterPath,je=Et.refreshOverflowKeys,Pe=Et.isSubPathKey,Ee=Et.getKeyPath,Oe=Et.getKeys,Ve=Et.getSubPathKeys,mt=m__namespace.useMemo(function(){return {registerPath:wt,unregisterPath:ft}},[wt,ft]),_t=m__namespace.useMemo(function(){return {isSubPathKey:Pe}},[Pe]);m__namespace.useEffect(function(){je(it?Da:he.slice(Ue+1).map(function(Fe){return Fe.key}));},[Ue,it]);var Mt=qt(R||k&&((n=he[0])===null||n===void 0?void 0:n.key),{value:R}),mn=J(Mt,2),un=mn[0],hn=mn[1],Fn=is(function(Fe){hn(Fe);}),Cn=is(function(){hn(void 0);});m.useImperativeHandle(t,function(){return {list:Me.current,focus:function(at){var yt,$t=un??((yt=he.find(function(Yn){return !Yn.props.disabled}))===null||yt===void 0?void 0:yt.key);if($t){var Nt,tn,Hn;(Nt=Me.current)===null||Nt===void 0||(tn=Nt.querySelector("li[data-menu-id='".concat(gv(Xe,$t),"']")))===null||tn===void 0||(Hn=tn.focus)===null||Hn===void 0||Hn.call(tn,at);}}}});var Ur=qt(_||[],{value:z,postState:function(at){return Array.isArray(at)?at:at==null?Da:[at]}}),so=J(Ur,2),Bn=so[0],So=so[1],Mr=function(at){if(L){var yt=at.key,$t=Bn.includes(yt),Nt;P?$t?Nt=Bn.filter(function(Hn){return Hn!==yt}):Nt=[].concat(Ae(Bn),[yt]):Nt=[yt],So(Nt);var tn=q(q({},at),{},{selectedKeys:Nt});$t?H==null||H(tn):j==null||j(tn);}!P&&we.length&&Te!=="inline"&&nt(Da);},rr=is(function(Fe){se==null||se(Zc(Fe)),Mr(Fe);}),vr=is(function(Fe,at){var yt=we.filter(function(Nt){return Nt!==Fe});if(at)yt.push(Fe);else if(Te!=="inline"){var $t=Ve(Fe);yt=yt.filter(function(Nt){return !$t.has(Nt)});}ol(we,yt,!0)||nt(yt,!0);}),Xr=function(at,yt){var $t=yt??!we.includes(at);vr(at,$t);},qr=CV(Te,un,ze,Xe,Me,Oe,Ee,hn,Xr,ae);m__namespace.useEffect(function(){Ge(!0);},[]);var qn=m__namespace.useMemo(function(){return {_internalRenderMenuItem:me,_internalRenderSubMenuItem:te}},[me,te]),Yr=Te!=="horizontal"||w?he:he.map(function(Fe,at){return m__namespace.createElement(Ls,{key:Fe.key,overflowDisabled:at>Ue},Fe)}),ht=m__namespace.createElement(ro,Re({id:v,ref:Me,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Cl,className:K(i,"".concat(i,"-root"),"".concat(i,"-").concat(Te),c,(r={},F(r,"".concat(i,"-inline-collapsed"),ye),F(r,"".concat(i,"-rtl"),ze),r),s),dir:g,style:l,role:"menu",tabIndex:d,data:Yr,renderRawItem:function(at){return at},renderRawRest:function(at){var yt=at.length,$t=yt?he.slice(-yt):null;return m__namespace.createElement(Ad,{eventKey:yh,title:le,disabled:it,internalPopupClose:yt===0,popupClassName:ie},$t)},maxCount:Te!=="horizontal"||w?ro.INVALIDATE:ro.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(at){lt(at);},onKeyDown:qr},re));return m__namespace.createElement(vv.Provider,{value:qn},m__namespace.createElement(_$.Provider,{value:Xe},m__namespace.createElement(Ls,{prefixCls:i,rootClassName:s,mode:Te,openKeys:we,rtl:ze,disabled:C,motion:We?G:null,defaultMotions:We?X:null,activeKey:un,onActive:Fn,onInactive:Cn,selectedKeys:Bn,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:E,forceSubMenuRender:I,builtinPlacements:W,triggerSubMenuAction:ee,getPopupContainer:ce,itemIcon:Z,expandIcon:U,onItemClick:rr,onOpenChange:vr},m__namespace.createElement(A$.Provider,{value:_t},ht),m__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},m__namespace.createElement(N$.Provider,{value:mt},he)))))}),zi=qV;zi.Item=Cl;zi.SubMenu=Ad;zi.ItemGroup=Ld;zi.Divider=Cv;var YV={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 QV=YV;var ZV=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:QV}))};const Jc=m__namespace.forwardRef(ZV),H$=m__namespace.createContext({});var JV=function(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 eG=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=JV(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=m__namespace.useContext(rt),i=a("menu",t),s=K({[`${i}-item-divider-dashed`]:!!r},n);return m__namespace.createElement(Cv,Object.assign({className:s},o))},W$=eG,tG=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),eu=tG,nG=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}=m__namespace.useContext(eu),f=y=>{const C=m__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||vo(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:h}=m__namespace.useContext(H$);let g=a;typeof a>"u"?g=l?r:"":a===!1&&(g="");const v={title:g};!h&&!d&&(v.title=null,v.open=!1);const p=hr(r).length;let b=m__namespace.createElement(Cl,Object.assign({},jn(e,["title","icon","danger"]),{className:K({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),Kn(o,{className:K(vo(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),f(d));return u||(b=m__namespace.createElement(il,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},V$=nG,rG=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=m__namespace.useContext(eu),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=Di();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):m__namespace.createElement("span",{className:`${s}-title-content`},o);else {const g=vo(o)&&o.type==="span";d=m__namespace.createElement(m__namespace.Fragment,null,Kn(r,{className:K(vo(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g?o:m__namespace.createElement("span",{className:`${s}-title-content`},o));}const f=m__namespace.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[h]=cd("Menu");return m__namespace.createElement(eu.Provider,{value:f},m__namespace.createElement(Ad,Object.assign({},jn(e,["icon"]),{title:d,popupClassName:K(s,n,`${s}-${a||c}`),popupStyle:{zIndex:h}})))},G$=rG;var oG={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 aG=oG;var iG=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:aG}))};const Sv=m__namespace.forwardRef(iG);var sG=function(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 Sh(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:s}=r,l=sG(r,["label","children","key","type"]),c=i??`tmp-${n}`;return a||s==="group"?s==="group"?m__namespace.createElement(Ld,Object.assign({key:c},l,{title:o}),Sh(a)):m__namespace.createElement(G$,Object.assign({key:c},l,{title:o}),Sh(a)):s==="divider"?m__namespace.createElement(W$,Object.assign({key:c},l)):m__namespace.createElement(V$,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function lG(e){return m__namespace.useMemo(()=>e&&Sh(e),[e])}var cG=function(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 tu=m__namespace.createContext(null),uG=m__namespace.forwardRef((e,t)=>{const{children:n}=e,r=cG(e,["children"]),o=m__namespace.useContext(tu),a=m__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),i=tD(n),s=ya(t,i?n.ref:null);return m__namespace.createElement(tu.Provider,{value:a},m__namespace.createElement(gi,null,i?m__namespace.cloneElement(n,{ref:s}):n))}),dG=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"}}}},fG=dG,mG=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})`}}}}},hG=mG,ry=e=>Object.assign({},ua(e)),gG=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:I,itemHoverBg:O,itemActiveBg:M,menuSubMenuBg:R,horizontalItemSelectedColor:k,horizontalItemSelectedBg:A,horizontalItemBorderRadius:L,horizontalItemHoverBg:T,popupBg:P}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},ry(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},ry(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:c,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:c,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},oy=gG,ay=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}}},vG=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ay(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ay(e)),{boxShadow:g})}},{[`${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 ${f}`,`background ${f}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ca),{paddingInline:h})}}]},pG=vG,iy=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({},Ca()),[`&${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"}}}},sy=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})`}}}}},bG=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},Gm()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),Gm()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${l}px`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),iy(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:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},iy(e)),sy(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),sy(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},yG=(e,t)=>Kt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:$}=r,S=l/7*5,E=St(r,{menuArrowSize:S,menuHorizontalHeight:s*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),I=St(E,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:h,itemBg:d,popupBg:d,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:$,dangerItemSelectedBg:v,menuSubMenuBg:f,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return [bG(E),fG(E),pG(E),oy(E,"light"),oy(I,"dark"),hG(E),pw(E),Ao(E,"slide-up"),Ao(E,"slide-down"),hd(E,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:w,padding:x,fontSize:$,controlHeightSM:S,fontSizeLG:E,colorTextLightSolid:I,colorErrorHover:O}=r,M=new Jt(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:f,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:h,colorItemTextDisabled: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:C,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:`${b*1.15}px`,iconSize:$,iconMarginInlineEnd:S-$,collapsedIconSize:E,groupTitleFontSize:$,darkItemDisabledColor:new Jt(I).setAlpha(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:a,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:I,darkDangerItemHoverColor:O,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 CG=function(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 SG=m.forwardRef((e,t)=>{var n,r;const o=m__namespace.useContext(tu),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=m__namespace.useContext(rt),u=i(),{prefixCls:d,className:f,style:h,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:C,children:w,rootClassName:x,mode:$,selectable:S,onClick:E,overflowedIndicatorPopupClassName:I}=e,O=CG(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),M=jn(O,["collapsedWidth"]),R=lG(C)||w;(n=a.validator)===null||n===void 0||n.call(a,{mode:$});const k=kn(function(){var G;E==null||E.apply(void 0,arguments),(G=a.onClick)===null||G===void 0||G.call(a);}),A=a.mode||$,L=S??a.selectable,T=m__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:nw(u),other:{motionName:`${u}-zoom-big`}},_=i("menu",d||a.prefixCls),[z,j]=yG(_,!o),H=K(`${_}-${g}`,c==null?void 0:c.className,f);let B;if(typeof v=="function")B=v;else if(v===null||v===!1)B=null;else if(a.expandIcon===null||a.expandIcon===!1)B=null;else {const G=v??a.expandIcon;B=Kn(G,{className:K(`${_}-submenu-expand-icon`,vo(G)?(r=G.props)===null||r===void 0?void 0:r.className:"")});}const V=m__namespace.useMemo(()=>({prefixCls:_,inlineCollapsed:T||!1,direction:l,firstLevel:!0,theme:g,mode:A,disableMenuItemTitleTooltip:p}),[_,T,l,p,g]);return z(m__namespace.createElement(tu.Provider,{value:null},m__namespace.createElement(eu.Provider,{value:V},m__namespace.createElement(zi,Object.assign({getPopupContainer:s,overflowedIndicator:m__namespace.createElement(Sv,null),overflowedIndicatorPopupClassName:K(_,`${_}-${g}`,I),mode:A,selectable:L,onClick:k},M,{inlineCollapsed:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:H,prefixCls:_,direction:l,defaultMotions:P,expandIcon:B,ref:t,rootClassName:K(x,j)}),R))))}),wG=SG,Sl=m.forwardRef((e,t)=>{const n=m.useRef(null),r=m__namespace.useContext(H$);return m.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),m__namespace.createElement(wG,Object.assign({ref:n},e,r))});Sl.Item=V$;Sl.SubMenu=G$;Sl.Divider=W$;Sl.ItemGroup=Ld;const $G=Sl,xG=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}}}}}},EG=xG,IG=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:f,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},Ft(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:Zg},[`&${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:ev},[`&${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:Jg},[`&${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:tv}})},Ug(e,{colorBg:v,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},da(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},da(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Ao(e,"slide-up"),Ao(e,"slide-down"),Wc(e,"move-up"),Wc(e,"move-down"),hd(e,"zoom-big")]]},K$=Kt("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:f}=Kg({contentRadius:u}),h=St(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:f,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [IG(h),EG(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),wv=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,overlayStyle:d,open:f,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:p=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:w,transitionName:x}=e,{getPopupContainer:$,getPrefixCls:S,direction:E,dropdown:I}=m__namespace.useContext(rt);iw();const O=m__namespace.useMemo(()=>{const U=S();return x!==void 0?x:C.includes("top")?`${U}-slide-down`:`${U}-slide-up`},[S,C,x]),M=m__namespace.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:E==="rtl"?"bottomRight":"bottomLeft",[C,E]),R=S("dropdown",r),[k,A]=K$(R),[,L]=er(),T=m__namespace.Children.only(o),P=Kn(T,{className:K(`${R}-trigger`,{[`${R}-rtl`]:E==="rtl"},T.props.className),disabled:i}),_=i?[]:a;let z;_&&_.includes("contextMenu")&&(z=!0);const[j,H]=qt(!1,{value:f??g}),B=kn(U=>{h==null||h(U,{source:"trigger"}),v==null||v(U),H(U);}),V=K(c,u,A,I==null?void 0:I.className,{[`${R}-rtl`]:E==="rtl"}),G=ow({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),X=m__namespace.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(h==null||h(!1,{source:"menu"}),H(!1));},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),Q=()=>{let U;return t!=null&&t.items?U=m__namespace.createElement($G,Object.assign({},t)):typeof w=="function"?U=w():U=w,s&&(U=s(U)),U=m__namespace.Children.only(typeof U=="string"?m__namespace.createElement("span",null,U):U),m__namespace.createElement(uG,{prefixCls:`${R}-menu`,expandIcon:m__namespace.createElement("span",{className:`${R}-menu-submenu-arrow`},m__namespace.createElement(Ci,{className:`${R}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:ue=>{}},U)},[ee,W]=cd("Dropdown",d==null?void 0:d.zIndex);let Z=m__namespace.createElement(O$,Object.assign({alignPoint:z},jn(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:b,visible:j,builtinPlacements:G,arrow:!!n,overlayClassName:V,prefixCls:R,getPopupContainer:l||$,transitionName:O,trigger:_,overlay:Q,placement:M,onVisibleChange:B,overlayStyle:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),d),{zIndex:ee})}),P);return ee&&(Z=m__namespace.createElement(Gg.Provider,{value:W},Z)),k(Z)};function OG(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const PG=hv(wv,"dropdown",e=>e,OG),RG=e=>m__namespace.createElement(PG,Object.assign({},e),m__namespace.createElement("span",null));wv._InternalPanelDoNotUseOrYouWillBeFired=RG;const U$=wv;var MG=function(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 X$=m__namespace.createContext(void 0),_G=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(rt),{prefixCls:r,size:o,className:a}=e,i=MG(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=er();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=K(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return m__namespace.createElement(X$.Provider,{value:o},m__namespace.createElement("div",Object.assign({},i,{className:u})))},TG=_G,ly=/^[\u4e00-\u9fa5]{2}$/,wh=ly.test.bind(ly);function q$(e){return e==="danger"?{danger:!0}:{type:e}}function cy(e){return typeof e=="string"}function Df(e){return e==="text"||e==="link"}function NG(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&cy(e.type)&&wh(e.props.children)?Kn(e,{children:e.props.children.split("").join(n)}):cy(e)?wh(e)?m.createElement("span",null,e.split("").join(n)):m.createElement("span",null,e):aw(e)?m.createElement("span",null,e):e}function kG(e,t){let n=!1;const r=[];return m.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;}),m.Children.map(r,o=>NG(o,t))}const AG=m.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=K(`${a}-icon`,n);return m.createElement("span",{ref:t,className:i,style:r},o)}),Y$=AG;var LG={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 DG=LG;var zG=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:DG}))};const $v=m__namespace.forwardRef(zG),uy=m.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=K(`${n}-loading-icon`,r);return m.createElement(Y$,{prefixCls:n,className:i,style:o,ref:t},m.createElement($v,{className:a}))}),zf=()=>({width:0,opacity:0,transform:"scale(0)"}),jf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),jG=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?m.createElement(uy,{prefixCls:t,className:o,style:a}):m.createElement(Co,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:zf,onAppearActive:jf,onEnterStart:zf,onEnterActive:jf,onLeaveStart:jf,onLeaveActive:zf},(s,l)=>{let{className:c,style:u}=s;return m.createElement(uy,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},FG=jG,dy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),BG=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}},dy(`${t}-primary`,o),dy(`${t}-danger`,a)]}},HG=BG,WG=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({},da(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${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:'""'}}}}}}},bo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),VG=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),GG=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),KG=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Ds=(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"},bo(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),xv=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},KG(e))}),Q$=e=>Object.assign({},xv(e)),nu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Z$=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q$(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),bo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Ds(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},bo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ds(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),xv(e))}),UG=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q$(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),bo(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Ds(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},bo(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Ds(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),xv(e))}),XG=e=>Object.assign(Object.assign({},Z$(e)),{borderStyle:"dashed"}),qG=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},bo(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),nu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},bo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),nu(e))}),YG=e=>Object.assign(Object.assign(Object.assign({},bo(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),nu(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},nu(e)),bo(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),QG=e=>{const{componentCls:t}=e;return {[`${t}-default`]:Z$(e),[`${t}-primary`]:UG(e),[`${t}-dashed`]:XG(e),[`${t}-link`]:qG(e),[`${t}-text`]:YG(e),[`${t}-ghost`]:Ds(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Ev=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}`]:VG(e)},{[`${n}${n}-round${t}`]:GG(e)}]},ZG=e=>Ev(St(e,{fontSize:e.contentFontSize})),JG=e=>{const t=St(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ev(t,`${e.componentCls}-sm`)},eK=e=>{const t=St(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ev(t,`${e.componentCls}-lg`)},tK=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},J$=e=>{const{paddingInline:t,onlyIconSize:n}=e;return St(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},ex=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}),nK=Kt("Button",e=>{const t=J$(e);return [WG(t),JG(t),ZG(t),eK(t),tK(t),QG(t),HG(t)]},ex);function rK(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 oK(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 Dd(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({},rK(e,r,t)),oK(n,r,t))}}function aK(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function iK(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 sK(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},aK(e,t)),iK(e.componentCls,t))}}const lK=Yg(["Button","compact"],e=>{const t=J$(e);return [Dd(t),sK(t)]},ex);var cK=function(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 uK(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}const dK=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:h,children:g,icon:v,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:C,style:w={}}=e,x=cK(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:S,direction:E,button:I}=m.useContext(rt),O=$("btn",a),[M,R]=nK(O),k=m.useContext(Kr),A=d??k,L=m.useContext(X$),T=m.useMemo(()=>uK(o),[o]),[P,_]=m.useState(T.loading),[z,j]=m.useState(!1),B=Xn(t,m.createRef()),V=m.Children.count(g)===1&&!v&&!Df(i);m.useEffect(()=>{let re=null;T.delay>0?re=setTimeout(()=>{re=null,_(!0);},T.delay):_(T.loading);function he(){re&&(clearTimeout(re),re=null);}return he},[T]),m.useEffect(()=>{if(!B||!B.current||S===!1)return;const re=B.current.textContent;V&&wh(re)?z||j(!0):z&&j(!1);},[B]);const G=re=>{const{onClick:he}=e;if(P||A){re.preventDefault();return}he==null||he(re);},X=S!==!1,{compactSize:Q,compactItemClassnames:ee}=Ai(O,E),W={large:"lg",small:"sm",middle:void 0},Z=tr(re=>{var he,Ce;return (Ce=(he=c??Q)!==null&&he!==void 0?he:L)!==null&&Ce!==void 0?Ce:re}),U=Z&&W[Z]||"",ue=P?"loading":v,le=jn(x,["navigate"]),ie=K(O,R,{[`${O}-${l}`]:l!=="default"&&l,[`${O}-${i}`]:i,[`${O}-${U}`]:U,[`${O}-icon-only`]:!g&&g!==0&&!!ue,[`${O}-background-ghost`]:p&&!Df(i),[`${O}-loading`]:P,[`${O}-two-chinese-chars`]:z&&X&&!P,[`${O}-block`]:b,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:E==="rtl"},ee,f,h,I==null?void 0:I.className),ce=Object.assign(Object.assign({},I==null?void 0:I.style),w),se=K(C==null?void 0:C.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),Y=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)||{}),ae=v&&!P?m.createElement(Y$,{prefixCls:O,className:se,style:Y},v):m.createElement(FG,{existIcon:!!v,prefixCls:O,loading:!!P}),me=g||g===0?kG(g,V&&X):null;if(le.href!==void 0)return M(m.createElement("a",Object.assign({},le,{className:K(ie,{[`${O}-disabled`]:A}),href:A?void 0:le.href,style:ce,onClick:G,ref:B,tabIndex:A?-1:0}),ae,me));let te=m.createElement("button",Object.assign({},x,{type:y,className:ie,style:ce,onClick:G,disabled:A,ref:B}),ae,me,ee&&m.createElement(lK,{key:"compact",prefixCls:O}));return Df(i)||(te=m.createElement(hl,{component:"Button",disabled:!!P},te)),M(te)},Iv=m.forwardRef(dK);Iv.Group=TG;Iv.__ANT_BUTTON=!0;const Zt=Iv;function fy(e){return ["small","middle","large"].includes(e)}function my(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const tx=m.createContext({latestIndex:0}),fK=tx.Provider,mK=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=m__namespace.useContext(tx);return r==null?null:m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("div",{className:t,style:a},r),n<i&&o&&m__namespace.createElement("span",{className:`${t}-split`},o))},hK=mK;var gK=function(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 vK=m__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=m__namespace.useContext(rt),{size:s=(a==null?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:b,styles:y}=e,C=gK(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(s)?s:[s,s],$=fy(x),S=fy(w),E=my(x),I=my(w),O=hr(d,{keepEmpty:!0}),M=l===void 0&&f==="horizontal"?"center":l,R=o("space",h),[k,A]=gw(R),L=K(R,a==null?void 0:a.className,A,`${R}-${f}`,{[`${R}-rtl`]:i==="rtl",[`${R}-align-${M}`]:M,[`${R}-gap-row-${x}`]:$,[`${R}-gap-col-${w}`]:S},c,u),T=K(`${R}-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 P=0;const _=O.map((H,B)=>{var V,G;H!=null&&(P=B);const X=H&&H.key||`${T}-${B}`;return m__namespace.createElement(hK,{className:T,key:X,index:B,split:g,style:(V=y==null?void 0:y.item)!==null&&V!==void 0?V:(G=a==null?void 0:a.styles)===null||G===void 0?void 0:G.item},H)}),z=m__namespace.useMemo(()=>({latestIndex:P}),[P]);if(O.length===0)return null;const j={};return p&&(j.flexWrap="wrap"),!S&&I&&(j.columnGap=w),!$&&E&&(j.rowGap=x),k(m__namespace.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},j),a==null?void 0:a.style),v)},C),m__namespace.createElement(fK,{value:z},_)))}),nx=vK;nx.Compact=xz;const wl=nx;var pK=function(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 rx=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=m__namespace.useContext(rt),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:b,align:y,open:C,onOpenChange:w,placement:x,getPopupContainer:$,href:S,icon:E=m__namespace.createElement(Sv,null),title:I,buttonsRender:O=U=>U,mouseEnterDelay:M,mouseLeaveDelay:R,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:T}=e,P=pK(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"]),_=n("dropdown",o),z=`${_}-button`,[j,H]=K$(_),B={menu:h,arrow:g,autoFocus:v,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:$||t,mouseEnterDelay:M,mouseLeaveDelay:R,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:T},{compactSize:V,compactItemClassnames:G}=Ai(_,r),X=K(z,G,f,H);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=C),"placement"in e?B.placement=x:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const Q=m__namespace.createElement(Zt,{type:a,danger:i,disabled:s,loading:l,onClick:c,htmlType:u,href:S,title:I},d),ee=m__namespace.createElement(Zt,{type:a,danger:i,icon:E}),[W,Z]=O([Q,ee]);return j(m__namespace.createElement(wl.Compact,Object.assign({className:X,size:V,block:!0},P),W,m__namespace.createElement(U$,Object.assign({},B),Z)))};rx.__ANT_BUTTON=!0;const bK=rx,ox=U$;ox.Button=bK;const Ov=ox;function Ka(e,t,n){const r=ot(n);m.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const yK=new Tt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),CK=new Tt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),SK=new Tt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wK=new Tt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),$K=new Tt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),xK=new Tt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),EK=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:f,marginXS:h}=e,g=`${r}-scroll-number`,v=fd(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({},Ft(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:f,height:f,fontSize:s,lineHeight:`${f}px`,borderRadius:f/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${g}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:xK,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:yK,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}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:CK,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:SK,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:wK,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:$K,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${t}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${g}`]:{overflow:"hidden",[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},ax=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 St(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%)"})},ix=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}},IK=Kt("Badge",e=>{const t=ax(e);return [EK(t)]},ix),OK=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,a=`${t}-ribbon`,i=`${t}-ribbon-wrapper`,s=fd(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({},Ft(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"}})}},PK=Kt(["Badge","Ribbon"],e=>{const t=ax(e);return [OK(t)]},ix),RK=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=m__namespace.useContext(rt),d=c("ribbon",n),f=gd(o,!1),h=K(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:f},t),[g,v]=PK(d),p={},b={};return o&&!f&&(p.background=o,b.color=o),g(m__namespace.createElement("div",{className:K(`${d}-wrapper`,l,v)},a,m__namespace.createElement("div",{className:K(h,v),style:Object.assign(Object.assign({},p),r)},m__namespace.createElement("span",{className:`${d}-text`},i),m__namespace.createElement("div",{className:`${d}-corner`,style:b}))))},MK=RK;function hy(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),m__namespace.createElement("span",{style:a,className:K(`${t}-only-unit`,{current:r})},n)}function _K(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function TK(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=m__namespace.useState(o),[l,c]=m__namespace.useState(a),u=()=>{s(o),c(a);};m__namespace.useEffect(()=>{const h=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(h);}},[o]);let d,f;if(i===o||Number.isNaN(o)||Number.isNaN(i))d=[m__namespace.createElement(hy,Object.assign({},e,{key:o,current:!0}))],f={transition:"none"};else {d=[];const h=o+10,g=[];for(let b=o;b<=h;b+=1)g.push(b);const v=g.findIndex(b=>b%10===i);d=g.map((b,y)=>{const C=b%10;return m__namespace.createElement(hy,Object.assign({},e,{key:b,value:C,offset:y-v,current:y===v}))});const p=l<a?1:-1;f={transform:`translateY(${-_K(i,o,p)}00%)`};}return m__namespace.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)}var NK=function(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 kK=m__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=NK(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=m__namespace.useContext(rt),h=f("scroll-number",n),g=Object.assign(Object.assign({},d),{"data-show":l,style:i,className:K(h,o,a),title:s});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=m__namespace.createElement("bdi",null,p.map((b,y)=>m__namespace.createElement(TK,{prefixCls:h,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(g.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Kn(u,p=>({className:K(`${h}-custom-component`,p==null?void 0:p.className,a)})):m__namespace.createElement(c,Object.assign({},g,{ref:t}),v)}),AK=kK;var LK=function(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 DK=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:h=null,overflowCount:g=99,dot:v=!1,size:p="default",title:b,offset:y,style:C,className:w,rootClassName:x,classNames:$,styles:S,showZero:E=!1}=e,I=LK(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:M,badge:R}=m__namespace.useContext(rt),k=O("badge",s),[A,L]=IK(k),T=h>g?`${g}+`:h,P=T==="0"||T===0,_=h===null||P&&!E,z=(u!=null||f!=null)&&_,j=v&&!P,H=j?"":T,B=m.useMemo(()=>(H==null||H===""||P&&!E)&&!j,[H,P,E,j]),V=m.useRef(h);B||(V.current=h);const G=V.current,X=m.useRef(H);B||(X.current=H);const Q=X.current,ee=m.useRef(j);B||(ee.current=j);const W=m.useMemo(()=>{if(!y)return Object.assign(Object.assign({},R==null?void 0:R.style),C);const Y={marginTop:y[1]};return M==="rtl"?Y.left=parseInt(y[0],10):Y.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},Y),R==null?void 0:R.style),C)},[M,y,C,R==null?void 0:R.style]),Z=b??(typeof G=="string"||typeof G=="number"?G:void 0),U=B||!d?null:m__namespace.createElement("span",{className:`${k}-status-text`},d),ue=!G||typeof G!="object"?void 0:Kn(G,Y=>({style:Object.assign(Object.assign({},W),Y.style)})),le=gd(f,!1),ie=K($==null?void 0:$.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:z,[`${k}-status-${u}`]:!!u,[`${k}-color-${f}`]:le}),ce={};f&&!le&&(ce.color=f,ce.background=f);const se=K(k,{[`${k}-status`]:z,[`${k}-not-a-wrapper`]:!c,[`${k}-rtl`]:M==="rtl"},w,x,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,$==null?void 0:$.root,L);if(!c&&z){const Y=W.color;return A(m__namespace.createElement("span",Object.assign({},I,{className:se,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),W)}),m__namespace.createElement("span",{className:ie,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.indicator),ce)}),d&&m__namespace.createElement("span",{style:{color:Y},className:`${k}-status-text`},d)))}return A(m__namespace.createElement("span",Object.assign({ref:t},I,{className:se,style:Object.assign(Object.assign({},(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,m__namespace.createElement(Co,{visible:!B,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},Y=>{let{className:ae,ref:me}=Y;var te,re;const he=O("scroll-number",l),Ce=ee.current,ke=K($==null?void 0:$.indicator,(te=R==null?void 0:R.classNames)===null||te===void 0?void 0:te.indicator,{[`${k}-dot`]:Ce,[`${k}-count`]:!Ce,[`${k}-count-sm`]:p==="small",[`${k}-multiple-words`]:!Ce&&Q&&Q.toString().length>1,[`${k}-status-${u}`]:!!u,[`${k}-color-${f}`]:le});let We=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(re=R==null?void 0:R.styles)===null||re===void 0?void 0:re.indicator),W);return f&&!le&&(We=We||{},We.background=f),m__namespace.createElement(AK,{prefixCls:he,show:!B,motionClassName:ae,className:ke,count:Q,title:Z,style:We,key:"scrollNumber",ref:me},ue)}),U))},sx=m__namespace.forwardRef(DK);sx.Ribbon=MK;const zK=sx,$l={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"};function gy(e){const t=m.useRef(null);return t.current??(t.current=e()),t}var jK=Math.floor,FK=Math.random;function BK(e,t){return e+jK(FK()*(t-e+1))}var HK=BK,WK=HK;function VK(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var a=WK(n,o),i=e[a];e[a]=e[n],e[n]=i;}return e.length=t,e}var lx=VK,GK=vC,KK=lx;function UK(e){return KK(GK(e))}var XK=UK,qK=og;function YK(e,t){return qK(t,function(n){return e[n]})}var QK=YK,ZK=QK,JK=Js;function eU(e){return e==null?[]:ZK(e,JK(e))}var tU=eU,nU=lx,rU=tU;function oU(e){return nU(rU(e))}var aU=oU,iU=XK,sU=aU,lU=Vr;function cU(e){var t=lU(e)?iU:sU;return t(e)}var uU=cU;const oi=Rn(uU);var dU=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],cx=m__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,f=e.onClick,h=e.onChange,g=e.onKeyDown,v=tt(e,dU),p=qt(!1,{value:i,defaultValue:s}),b=J(p,2),y=b[0],C=b[1];function w(E,I){var O=y;return l||(O=E,C(O),h==null||h(O,I)),O}function x(E){E.which===ve.LEFT?w(!1,E):E.which===ve.RIGHT&&w(!0,E),g==null||g(E);}function $(E){var I=w(!y,E);f==null||f(I,E);}var S=K(o,a,(n={},F(n,"".concat(o,"-checked"),y),F(n,"".concat(o,"-disabled"),l),n));return m__namespace.createElement("button",Re({},v,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:x,onClick:$}),c,m__namespace.createElement("span",{className:"".concat(o,"-inner")},m__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},u),m__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});cx.displayName="Switch";const fU=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}}}}}}},mU=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}}}},hU=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}}:{}}}},gU=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}}}}}},vU=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(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}}),da(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"}})}},pU=Kt("Switch",e=>{const t=St(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [vU(t),gU(t),hU(t),mU(t),fU(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 Jt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var bU=function(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 ux=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=bU(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=m__namespace.useContext(rt),h=m__namespace.useContext(Kr),g=(o??h)||a,v=u("switch",n),p=m__namespace.createElement("div",{className:`${v}-handle`},a&&m__namespace.createElement($v,{className:`${v}-loading-icon`})),[b,y]=pU(v),C=tr(r),w=K(f==null?void 0:f.className,{[`${v}-small`]:C==="small",[`${v}-loading`]:a,[`${v}-rtl`]:d==="rtl"},i,s,y),x=Object.assign(Object.assign({},f==null?void 0:f.style),l);return b(m__namespace.createElement(hl,{component:"Switch"},m__namespace.createElement(cx,Object.assign({},c,{prefixCls:v,className:w,style:x,disabled:g,ref:t,loadingIcon:p}))))});ux.__ANT_SWITCH=!0;const xl=ux;var yU={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 CU=yU;var SU=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:CU}))};const zd=m__namespace.forwardRef(SU);function wU(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function $U(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m.createElement(zd,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!wU(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 xU=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return {[o]:Object.assign(Object.assign({},Ft(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}}},Pv=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`;return St(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Rv=e=>({defaultBg:new Jt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),dx=Kt("Tag",e=>{const t=Pv(e);return xU(t)},Rv);var EU=function(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 IU=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=EU(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=m__namespace.useContext(rt),d=p=>{i==null||i(!a),s==null||s(p);},f=c("tag",n),[h,g]=dx(f),v=K(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},u==null?void 0:u.className,o,g);return h(m__namespace.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:d})))}),OU=IU,PU=e=>fd(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"}}}}),RU=Yg(["Tag","preset"],e=>{const t=Pv(e);return PU(t)},Rv);function MU(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const nc=(e,t,n)=>{const r=MU(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},_U=Yg(["Tag","status"],e=>{const t=Pv(e);return [nc(t,"success","Success"),nc(t,"processing","Info"),nc(t,"error","Error"),nc(t,"warning","Warning")]},Rv);var TU=function(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=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,h=TU(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:v,tag:p}=m__namespace.useContext(rt),[b,y]=m__namespace.useState(!0);m__namespace.useEffect(()=>{"visible"in h&&y(h.visible);},[h.visible]);const C=gd(l),w=nj(l),x=C||w,$=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},p==null?void 0:p.style),a),S=g("tag",n),[E,I]=dx(S),O=K(S,p==null?void 0:p.className,{[`${S}-${l}`]:x,[`${S}-has-color`]:l&&!x,[`${S}-hidden`]:!b,[`${S}-rtl`]:v==="rtl",[`${S}-borderless`]:!f},r,o,I),M=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&y(!1);},[,R]=$U(d,u,P=>P===null?m__namespace.createElement(zd,{className:`${S}-close-icon`,onClick:M}):m__namespace.createElement("span",{className:`${S}-close-icon`,onClick:M},P),null,!1),k=typeof h.onClick=="function"||i&&i.type==="a",A=s||null,L=A?m__namespace.createElement(m__namespace.Fragment,null,A,i&&m__namespace.createElement("span",null,i)):i,T=m__namespace.createElement("span",Object.assign({},h,{ref:t,className:O,style:$}),L,R,C&&m__namespace.createElement(RU,{key:"preset",prefixCls:S}),w&&m__namespace.createElement(_U,{key:"status",prefixCls:S}));return E(k?m__namespace.createElement(hl,{component:"Tag"},T):T)},fx=m__namespace.forwardRef(NU);fx.CheckableTag=OU;const Oo=fx;function vy(e){const[t,n]=m.useState(null);return [m.useCallback((a,i,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=i.slice(c,u+1).map(g=>e(g)),f=d.some(g=>!s.has(g)),h=[];return d.forEach(g=>{f?(s.has(g)||h.push(g),s.add(g)):(s.delete(g),h.push(g));}),n(f?u:null),h},[t]),a=>{n(a);}]}function jr(e,t,n){return K({[`${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 El=(e,t)=>t||e,ru=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},kU=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t},AU=()=>{const[,e]=er(),n=new Jt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},m__namespace.createElement("g",{transform:"translate(24 31.67)"},m__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m__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"}),m__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)"}),m__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"}),m__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"})),m__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"}),m__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},LU=AU,DU=()=>{const[,e]=er(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=m.useMemo(()=>({borderColor:new Jt(t).onBackground(o).toHexShortString(),shadowColor:new Jt(n).onBackground(o).toHexShortString(),contentColor:new Jt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return m__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m__namespace.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),m__namespace.createElement("g",{fillRule:"nonzero",stroke:a},m__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"}),m__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}))))},zU=DU,jU=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}}}}},FU=Kt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=St(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [jU(r)]});var BU=function(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 mx=m__namespace.createElement(LU,null),hx=m__namespace.createElement(zU,null),Mv=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=mx,description:a,children:i,imageStyle:s,style:l}=e,c=BU(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=m__namespace.useContext(rt),h=u("empty",r),[g,v]=FU(h),[p]=ki("Empty"),b=typeof a<"u"?a:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let C=null;return typeof o=="string"?C=m__namespace.createElement("img",{alt:y,src:o}):C=o,g(m__namespace.createElement("div",Object.assign({className:K(v,h,f==null?void 0:f.className,{[`${h}-normal`]:o===hx,[`${h}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},f==null?void 0:f.style),l)},c),m__namespace.createElement("div",{className:`${h}-image`,style:s},C),b&&m__namespace.createElement("div",{className:`${h}-description`},b),i&&m__namespace.createElement("div",{className:`${h}-footer`},i)))};Mv.PRESENTED_IMAGE_DEFAULT=mx;Mv.PRESENTED_IMAGE_SIMPLE=hx;const es=Mv,HU=e=>{const{componentName:t}=e,{getPrefixCls:n}=m.useContext(rt),r=n("empty");switch(t){case"Table":case"List":return m.createElement(es,{image:es.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(es,{image:es.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return m.createElement(es,null)}},gx=HU;function WU(e,t,n){const r=m__namespace.useMemo(()=>(e||[]).map(i=>(t&&(i=Object.assign(Object.assign({},i),{key:t(i)})),i)),[e,t]),[o,a]=m__namespace.useMemo(()=>{const i=[],s=new Array((n||[]).length),l=ru(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 VU=[];function za(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function py(e){return Array.from(e).join(";")}function GU(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:VU;const[r,o]=m__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[a,i]=m__namespace.useState(()=>za(n,r)),[s,l]=m__namespace.useState(()=>za(n,o));return m__namespace.useEffect(()=>{i(za(n,r)),l(za(n,o));},[n]),m__namespace.useEffect(()=>{i(za(a,r)),l(za(s,o));},[py(r),py(o)]),[a,s,i,l]}var KU={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 UU=KU;var XU=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:UU}))};const _v=m__namespace.forwardRef(XU);var qU={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 YU=qU;var QU=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:YU}))};const by=m__namespace.forwardRef(QU);var ZU={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 JU=ZU;var eX=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:JU}))};const yy=m__namespace.forwardRef(eX);var Ko={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const tX={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 $h=function(e){jo(n,e);var t=Fo(n);function n(){var r;xn(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)),F(Ke(r),"state",{goInputText:""}),F(Ke(r),"getValidValue",function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)}),F(Ke(r),"buildOptionText",function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)}),F(Ke(r),"changeSize",function(s){r.props.changeSize(Number(s));}),F(Ke(r),"handleChange",function(s){r.setState({goInputText:s.target.value});}),F(Ke(r),"handleBlur",function(s){var l=r.props,c=l.goButton,u=l.quickGo,d=l.rootPrefixCls,f=r.state.goInputText;c||f===""||(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()));}),F(Ke(r),"go",function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===Ko.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));}),r}return En(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,f=a.selectComponentClass,h=a.buildOptionText,g=a.selectPrefixCls,v=a.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=f,C=null,w=null,x=null;if(!c&&!u)return null;var $=this.getPageSizeOptions();if(c&&y){var S=$.map(function(E,I){return m.createElement(y.Option,{key:I,value:E.toString()},(h||o.buildOptionText)(E))});C=m.createElement(y,{disabled:v,prefixCls:g,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||$[0]).toString(),onChange:this.changeSize,getPopupContainer:function(I){return I.parentNode},"aria-label":s.page_size,defaultOpen:!1},S);}return u&&(d&&(x=typeof d=="boolean"?m.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):m.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),w=m.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,m.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,x)),m.createElement("li",{className:"".concat(b)},C,w)}}]),n}(m.Component);F($h,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var ts=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"),f=K(d,"".concat(d,"-").concat(o),(n={},F(n,"".concat(d,"-active"),a),F(n,"".concat(d,"-disabled"),!o),F(n,t.className,i),n)),h=function(){l(o);},g=function(b){c(b,l,o);},v=u(o,"page",m.createElement("a",{rel:"nofollow"},o));return v?m.createElement("li",{title:s?o.toString():null,className:f,onClick:h,onKeyPress:g,tabIndex:0},v):null};function xh(){}function Cy(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var nX=function(t,n,r){return r};function $o(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var vx=function(e){jo(n,e);var t=Fo(n);function n(r){var o;xn(this,n),o=t.call(this,r),F(Ke(o),"paginationNode",m.createRef()),F(Ke(o),"getJumpPrevPage",function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))}),F(Ke(o),"getJumpNextPage",function(){return Math.min($o(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))}),F(Ke(o),"getItemIcon",function(c,u){var d=o.props.prefixCls,f=c||m.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(f=m.createElement(c,q({},o.props))),f}),F(Ke(o),"isValid",function(c){var u=o.props.total;return Cy(c)&&c!==o.state.current&&Cy(u)&&u>0}),F(Ke(o),"shouldDisplayQuickJumper",function(){var c=o.props,u=c.showQuickJumper,d=c.total,f=o.state.pageSize;return d<=f?!1:u}),F(Ke(o),"handleKeyDown",function(c){(c.keyCode===Ko.ARROW_UP||c.keyCode===Ko.ARROW_DOWN)&&c.preventDefault();}),F(Ke(o),"handleKeyUp",function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===Ko.ENTER?o.handleChange(u):c.keyCode===Ko.ARROW_UP?o.handleChange(u-1):c.keyCode===Ko.ARROW_DOWN&&o.handleChange(u+1);}),F(Ke(o),"handleBlur",function(c){var u=o.getValidValue(c);o.handleChange(u);}),F(Ke(o),"changePageSize",function(c){var u=o.state.current,d=$o(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);}),F(Ke(o),"handleChange",function(c){var u=o.props,d=u.disabled,f=u.onChange,h=o.state,g=h.pageSize,v=h.current,p=h.currentInputValue;if(o.isValid(c)&&!d){var b=$o(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}),f(y,g),y}return v}),F(Ke(o),"prev",function(){o.hasPrev()&&o.handleChange(o.state.current-1);}),F(Ke(o),"next",function(){o.hasNext()&&o.handleChange(o.state.current+1);}),F(Ke(o),"jumpPrev",function(){o.handleChange(o.getJumpPrevPage());}),F(Ke(o),"jumpNext",function(){o.handleChange(o.getJumpNextPage());}),F(Ke(o),"hasPrev",function(){return o.state.current>1}),F(Ke(o),"hasNext",function(){return o.state.current<$o(void 0,o.state,o.props)}),F(Ke(o),"runIfEnter",function(c,u){if(c.key==="Enter"||c.charCode===13){for(var d=arguments.length,f=new Array(d>2?d-2:0),h=2;h<d;h++)f[h-2]=arguments[h];u.apply(void 0,f);}}),F(Ke(o),"runIfEnterPrev",function(c){o.runIfEnter(c,o.prev);}),F(Ke(o),"runIfEnterNext",function(c){o.runIfEnter(c,o.next);}),F(Ke(o),"runIfEnterJumpPrev",function(c){o.runIfEnter(c,o.jumpPrev);}),F(Ke(o),"runIfEnterJumpNext",function(c){o.runIfEnter(c,o.jumpNext);}),F(Ke(o),"handleGoTO",function(c){(c.keyCode===Ko.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);}),F(Ke(o),"renderPrev",function(c){var u=o.props,d=u.prevIcon,f=u.itemRender,h=f(c,"prev",o.getItemIcon(d,"prev page")),g=!o.hasPrev();return m.isValidElement(h)?m.cloneElement(h,{disabled:g}):h}),F(Ke(o),"renderNext",function(c){var u=o.props,d=u.nextIcon,f=u.itemRender,h=f(c,"next",o.getItemIcon(d,"next page")),g=!o.hasNext();return m.isValidElement(h)?m.cloneElement(h,{disabled:g}):h});var a=r.onChange!==xh,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,$o(l,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:l},o}return En(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=$o(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,f=o.showQuickJumper,h=o.showLessItems,g=o.showTitle,v=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,C=o.jumpPrevIcon,w=o.jumpNextIcon,x=o.selectComponentClass,$=o.selectPrefixCls,S=o.pageSizeOptions,E=this.state,I=E.current,O=E.pageSize,M=E.currentInputValue;if(c===!0&&u<=O)return null;var R=$o(void 0,this.state,this.props),k=[],A=null,L=null,T=null,P=null,_=null,z=f&&f.goButton,j=h?1:2,H=I-1>0?I-1:0,B=I+1<R?I+1:R,V=pi(this.props,{aria:!0,data:!0}),G=v&&m.createElement("li",{className:"".concat(a,"-total-text")},v(u,[u===0?0:(I-1)*O+1,I*O>u?u:I*O]));if(p){z&&(typeof z=="boolean"?_=m.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):_=m.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),_=m.createElement("li",{title:g?"".concat(d.jump_to).concat(I,"/").concat(R):null,className:"".concat(a,"-simple-pager")},_));var X=this.renderPrev(H);return m.createElement("ul",Re({className:K(a,"".concat(a,"-simple"),F({},"".concat(a,"-disabled"),l),i),style:s,ref:this.paginationNode},V),G,X?m.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:K("".concat(a,"-prev"),F({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},X):null,m.createElement("li",{title:g?"".concat(I,"/").concat(R):null,className:"".concat(a,"-simple-pager")},m.createElement("input",{type:"text",value:M,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),m.createElement("span",{className:"".concat(a,"-slash")},"/"),R),m.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:K("".concat(a,"-next"),F({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),m.createElement($h,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:x,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:O,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_}))}if(R<=3+j*2){var Q={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:b};R||k.push(m.createElement(ts,Re({},Q,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var ee=1;ee<=R;ee+=1){var W=I===ee;k.push(m.createElement(ts,Re({},Q,{key:ee,page:ee,active:W})));}}else {var Z=h?d.prev_3:d.prev_5,U=h?d.next_3:d.next_5,ue=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),le=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(w,"next page"));y&&(A=ue?m.createElement("li",{title:g?Z:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:K("".concat(a,"-jump-prev"),F({},"".concat(a,"-jump-prev-custom-icon"),!!C))},ue):null,L=le?m.createElement("li",{title:g?U:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:K("".concat(a,"-jump-next"),F({},"".concat(a,"-jump-next-custom-icon"),!!w))},le):null),P=m.createElement(ts,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:R,page:R,active:!1,showTitle:g,itemRender:b}),T=m.createElement(ts,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:b});var ie=Math.max(1,I-j),ce=Math.min(I+j,R);I-1<=j&&(ce=1+j*2),R-I<=j&&(ie=R-j*2);for(var se=ie;se<=ce;se+=1){var Y=I===se;k.push(m.createElement(ts,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:se,page:se,active:Y,showTitle:g,itemRender:b}));}I-1>=j*2&&I!==3&&(k[0]=m.cloneElement(k[0],{className:"".concat(a,"-item-after-jump-prev")}),k.unshift(A)),R-I>=j*2&&I!==R-2&&(k[k.length-1]=m.cloneElement(k[k.length-1],{className:"".concat(a,"-item-before-jump-next")}),k.push(L)),ie!==1&&k.unshift(T),ce!==R&&k.push(P);}var ae=!this.hasPrev()||!R,me=!this.hasNext()||!R,te=this.renderPrev(H),re=this.renderNext(B);return m.createElement("ul",Re({className:K(a,i,F({},"".concat(a,"-disabled"),l)),style:s,ref:this.paginationNode},V),G,te?m.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:ae?null:0,onKeyPress:this.runIfEnterPrev,className:K("".concat(a,"-prev"),F({},"".concat(a,"-disabled"),ae)),"aria-disabled":ae},te):null,k,re?m.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:me?null:0,onKeyPress:this.runIfEnterNext,className:K("".concat(a,"-next"),F({},"".concat(a,"-disabled"),me)),"aria-disabled":me},re):null,m.createElement($h,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:x,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:O,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{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=$o(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}(m.Component);F(vx,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:xh,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:xh,locale:tX,style:{},itemRender:nX,totalBoundaryShowSizeChanger:50});var jd=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,m__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:m__namespace.createElement("span",{className:K(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))};function rX(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=m.useMemo(function(){if(ut(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=m.useMemo(function(){return !!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return {allowClear:c,clearIcon:m.createElement(jd,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var px=m__namespace.createContext(null);function oX(){return m__namespace.useContext(px)}function aX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m__namespace.useState(!1),n=J(t,2),r=n[0],o=n[1],a=m__namespace.useRef(null),i=function(){window.clearTimeout(a.current);};m__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 bx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=m__namespace.useRef(null),n=m__namespace.useRef(null);m__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 iX(e,t,n,r){var o=m__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},m__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 sX=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,h=t.value,g=t.maxLength,v=t.onKeyDown,p=t.onMouseDown,b=t.onChange,y=t.onPaste,C=t.onCompositionStart,w=t.onCompositionEnd,x=t.open,$=t.attrs,S=i||m__namespace.createElement("input",null),E=S,I=E.ref,O=E.props,M=O.onKeyDown,R=O.onChange,k=O.onMouseDown,A=O.onCompositionStart,L=O.onCompositionEnd,T=O.style;return "maxLength"in S.props,S=m__namespace.cloneElement(S,q(q(q({type:"search"},O),{},{id:a,ref:Xn(n,I),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:K("".concat(o,"-selection-search-input"),(r=S)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":x?f:void 0},$),{},{value:d?h:"",maxLength:g,readOnly:!d,unselectable:d?null:"on",style:q(q({},T),{},{opacity:d?null:0}),onKeyDown:function(_){v(_),M&&M(_);},onMouseDown:function(_){p(_),k&&k(_);},onChange:function(_){b(_),R&&R(_);},onCompositionStart:function(_){C(_),A&&A(_);},onCompositionEnd:function(_){w(_),L&&L(_);},onPaste:y})),S},Tv=m__namespace.forwardRef(sX);Tv.displayName="Input";function yx(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var lX=typeof window<"u"&&window.document&&window.document.documentElement,cX=lX;function uX(e){return e!=null}function dX(e){return !e&&e!==0}function Sy(e){return ["string","number"].includes(ut(e))}function Cx(e){var t=void 0;return e&&(Sy(e.title)?t=e.title.toString():Sy(e.label)&&(t=e.label.toString())),t}function fX(e,t){cX?m__namespace.useLayoutEffect(e,t):m__namespace.useEffect(e,t);}function mX(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var wy=function(t){t.preventDefault(),t.stopPropagation();},hX=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,f=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,x=w===void 0?function(ie){return "+ ".concat(ie.length," ...")}:w,$=t.tagRender,S=t.onToggleOpen,E=t.onRemove,I=t.onInputChange,O=t.onInputPaste,M=t.onInputKeyDown,R=t.onInputMouseDown,k=t.onInputCompositionStart,A=t.onInputCompositionEnd,L=m__namespace.useRef(null),T=m.useState(0),P=J(T,2),_=P[0],z=P[1],j=m.useState(!1),H=J(j,2),B=H[0],V=H[1],G="".concat(r,"-selection"),X=a||d==="multiple"&&s===!1||d==="tags"?i:"",Q=d==="tags"||d==="multiple"&&s===!1||f&&(a||B);fX(function(){z(L.current.scrollWidth);},[X]);function ee(ie,ce,se,Y,ae){return m__namespace.createElement("span",{className:K("".concat(G,"-item"),F({},"".concat(G,"-item-disabled"),se)),title:Cx(ie)},m__namespace.createElement("span",{className:"".concat(G,"-item-content")},ce),Y&&m__namespace.createElement(jd,{className:"".concat(G,"-item-remove"),onMouseDown:wy,onClick:ae,customizeIcon:b},"×"))}function W(ie,ce,se,Y,ae){var me=function(re){wy(re),S(!a);};return m__namespace.createElement("span",{onMouseDown:me},$({label:ce,value:ie,disabled:se,closable:Y,onClose:ae}))}function Z(ie){var ce=ie.disabled,se=ie.label,Y=ie.value,ae=!u&&!ce,me=se;if(typeof C=="number"&&(typeof se=="string"||typeof se=="number")){var te=String(me);te.length>C&&(me="".concat(te.slice(0,C),"..."));}var re=function(Ce){Ce&&Ce.stopPropagation(),E(ie);};return typeof $=="function"?W(Y,me,ce,ae,re):ee(ie,me,ce,ae,re)}function U(ie){var ce=typeof x=="function"?x(ie):x;return ee({title:ce},ce,!1)}var ue=m__namespace.createElement("div",{className:"".concat(G,"-search"),style:{width:_},onFocus:function(){V(!0);},onBlur:function(){V(!1);}},m__namespace.createElement(Tv,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:g,editable:Q,activeDescendantId:v,value:X,onKeyDown:M,onMouseDown:R,onChange:I,onPaste:O,onCompositionStart:k,onCompositionEnd:A,tabIndex:p,attrs:pi(t,!0)}),m__namespace.createElement("span",{ref:L,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},X," ")),le=m__namespace.createElement(ro,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:Z,renderRest:U,suffix:ue,itemKey:mX,maxCount:y});return m__namespace.createElement(m__namespace.Fragment,null,le,!o.length&&!X&&m__namespace.createElement("span",{className:"".concat(G,"-placeholder")},c))},gX=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,f=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,w=t.onInputMouseDown,x=t.onInputChange,$=t.onInputPaste,S=t.onInputCompositionStart,E=t.onInputCompositionEnd,I=t.title,O=m__namespace.useState(!1),M=J(O,2),R=M[0],k=M[1],A=u==="combobox",L=A||v,T=f[0],P=p||"";A&&b&&!R&&(P=b),m__namespace.useEffect(function(){A&&k(!1);},[A,b]);var _=u!=="combobox"&&!d&&!v?!1:!!P,z=I===void 0?Cx(T):I,j=function(){if(T)return null;var B=_?{visibility:"hidden"}:void 0;return m__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},h)};return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("span",{className:"".concat(r,"-selection-search")},m__namespace.createElement(Tv,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:s,autoComplete:l,editable:L,activeDescendantId:c,value:P,onKeyDown:C,onMouseDown:w,onChange:function(B){k(!0),x(B);},onPaste:$,onCompositionStart:S,onCompositionEnd:E,tabIndex:g,attrs:pi(t,!0),maxLength:A?y:void 0})),!A&&T?m__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:_?{visibility:"hidden"}:void 0},T.label):null,j())};function vX(e){return ![ve.ESC,ve.SHIFT,ve.BACKSPACE,ve.TAB,ve.WIN_KEY,ve.ALT,ve.META,ve.WIN_KEY_RIGHT,ve.CTRL,ve.SEMICOLON,ve.EQUALS,ve.CAPS_LOCK,ve.CONTEXT_MENU,ve.F1,ve.F2,ve.F3,ve.F4,ve.F5,ve.F6,ve.F7,ve.F8,ve.F9,ve.F10,ve.F11,ve.F12].includes(e)}var pX=function(t,n){var r=m.useRef(null),o=m.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;m__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=bx(0),b=J(p,2),y=b[0],C=b[1],w=function(P){var _=P.which;(_===ve.UP||_===ve.DOWN)&&P.preventDefault(),g&&g(P),_===ve.ENTER&&s==="tags"&&!o.current&&!i&&(f==null||f(P.target.value)),vX(_)&&h(!0);},x=function(){C(!0);},$=m.useRef(null),S=function(P){d(P,!0,o.current)!==!1&&h(!0);},E=function(){o.current=!0;},I=function(P){o.current=!1,s!=="combobox"&&S(P.target.value);},O=function(P){var _=P.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var z=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(z,$.current);}$.current=null,S(_);},M=function(P){var _=P.clipboardData,z=_.getData("text");$.current=z;},R=function(P){var _=P.target;if(_!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus();}):r.current.focus();}},k=function(P){var _=y();P.target!==r.current&&!_&&s!=="combobox"&&P.preventDefault(),(s!=="combobox"&&(!l||!_)||!i)&&(i&&u!==!1&&d("",!0,!1),h());},A={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:O,onInputPaste:M,onInputCompositionStart:E,onInputCompositionEnd:I},L=s==="multiple"||s==="tags"?m__namespace.createElement(hX,Re({},t,A)):m__namespace.createElement(gX,Re({},t,A));return m__namespace.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:R,onMouseDown:k},L)},Sx=m__namespace.forwardRef(pX);Sx.displayName="Selector";var bX=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],yX=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"}}},CX=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,f=d===void 0?"ltr":d,h=t.placement,g=t.builtinPlacements,v=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,w=t.getTriggerDOMNode,x=t.onPopupVisibleChange,$=t.onPopupMouseEnter,S=tt(t,bX),E="".concat(r,"-dropdown"),I=i;p&&(I=p(i));var O=m__namespace.useMemo(function(){return g||yX(v)},[g,v]),M=s?"".concat(E,"-").concat(s):l,R=typeof v=="number",k=m__namespace.useMemo(function(){return R?null:v===!1?"minWidth":"width"},[v,R]),A=c;R&&(A=q(q({},A),{},{width:v}));var L=m__namespace.useRef(null);return m__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return L.current}}}),m__namespace.createElement(ld,Re({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:E,popupTransitionName:M,popup:m__namespace.createElement("div",{ref:L,onMouseEnter:$},I),stretch:k,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:K(u,F({},"".concat(E,"-empty"),C)),popupStyle:A,getTriggerDOMNode:w,onPopupVisibleChange:x}),a)},wx=m__namespace.forwardRef(CX);wx.displayName="SelectTrigger";function $y(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 $x(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 SX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=$x(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,f){d.forEach(function(h){if(f||!(l in h)){var g=h[s];o.push({key:$y(h,o.length),groupOption:f,data:h,label:h[i],value:g});}else {var v=h[c];v===void 0&&r&&(v=h.label),o.push({key:$y(h,o.length),group:!0,data:h,label:v}),u(h[l],!0);}});}return u(e,!1),o}function Eh(e){var t=q({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return wn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function wX(e,t){if(!t||!t.length)return null;var n=!1;function r(a,i){var s=sw(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,f){return [].concat(Ae(d),Ae(r(f,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var $X=["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"],xX=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ih(e){return e==="tags"||e==="multiple"}var EX=m__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,f=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,p=e.onClear,b=e.mode,y=e.disabled,C=e.loading,w=e.getInputElement,x=e.getRawInputElement,$=e.open,S=e.defaultOpen,E=e.onDropdownVisibleChange,I=e.activeValue,O=e.onActiveValueChange,M=e.activeDescendantId,R=e.searchValue,k=e.autoClearSearchValue,A=e.onSearch,L=e.onSearchSplit,T=e.tokenSeparators,P=e.allowClear,_=e.suffixIcon,z=e.clearIcon,j=e.OptionList,H=e.animation,B=e.transitionName,V=e.dropdownStyle,G=e.dropdownClassName,X=e.dropdownMatchSelectWidth,Q=e.dropdownRender,ee=e.dropdownAlign,W=e.placement,Z=e.builtinPlacements,U=e.getPopupContainer,ue=e.showAction,le=ue===void 0?[]:ue,ie=e.onFocus,ce=e.onBlur,se=e.onKeyUp,Y=e.onKeyDown,ae=e.onMouseDown,me=tt(e,$X),te=Ih(b),re=(s!==void 0?s:te)||b==="combobox",he=q({},me);xX.forEach(function(ht){delete he[ht];}),u==null||u.forEach(function(ht){delete he[ht];});var Ce=m__namespace.useState(!1),ke=J(Ce,2),We=ke[0],Ge=ke[1];m__namespace.useEffect(function(){Ge(sd());},[]);var Me=m__namespace.useRef(null),Xe=m__namespace.useRef(null),ze=m__namespace.useRef(null),He=m__namespace.useRef(null),Ie=m__namespace.useRef(null),we=m__namespace.useRef(!1),qe=aX(),nt=J(qe,3),bt=nt[0],Ze=nt[1],Je=nt[2];m__namespace.useImperativeHandle(t,function(){var ht,Fe;return {focus:(ht=He.current)===null||ht===void 0?void 0:ht.focus,blur:(Fe=He.current)===null||Fe===void 0?void 0:Fe.blur,scrollTo:function(yt){var $t;return ($t=Ie.current)===null||$t===void 0?void 0:$t.scrollTo(yt)}}});var gt=m__namespace.useMemo(function(){var ht;if(b!=="combobox")return R;var Fe=(ht=d[0])===null||ht===void 0?void 0:ht.value;return typeof Fe=="string"||typeof Fe=="number"?String(Fe):""},[R,b,d]),vt=b==="combobox"&&typeof w=="function"&&w()||null,st=typeof x=="function"&&x(),dt=ya(Xe,st==null||(n=st.props)===null||n===void 0?void 0:n.ref),et=m__namespace.useState(!1),$e=J(et,2),xe=$e[0],_e=$e[1];Xt(function(){_e(!0);},[]);var ge=qt(!1,{defaultValue:S,value:$}),Te=J(ge,2),Se=Te[0],fe=Te[1],oe=xe?Se:!1,ye=!v&&h;(y||ye&&oe&&b==="combobox")&&(oe=!1);var de=ye?!1:oe,pe=m__namespace.useCallback(function(ht){var Fe=ht!==void 0?ht:!oe;y||(fe(Fe),oe!==Fe&&(E==null||E(Fe)));},[y,oe,fe,E]),Le=m__namespace.useMemo(function(){return (T||[]).some(function(ht){return [` `,`\r `].includes(ht)})},[T]),Ue=function(Fe,at,yt){var $t=!0,Nt=Fe;O==null||O(null);var tn=yt?null:wX(Fe,T);return b!=="combobox"&&tn&&(Nt="",L==null||L(tn),pe(!1),$t=!1),A&>!==Nt&&A(Nt,{source:at?"typing":"effect"}),$t},lt=function(Fe){!Fe||!Fe.trim()||A(Fe,{source:"submit"});};m__namespace.useEffect(function(){!oe&&!te&&b!=="combobox"&&Ue("",!1,!1);},[oe]),m__namespace.useEffect(function(){Se&&y&&fe(!1),y&&!we.current&&Ze(!1);},[y]);var it=bx(),Et=J(it,2),wt=Et[0],ft=Et[1],je=function(Fe){var at=wt(),yt=Fe.which;if(yt===ve.ENTER&&(b!=="combobox"&&Fe.preventDefault(),oe||pe(!0)),ft(!!gt),yt===ve.BACKSPACE&&!at&&te&&!gt&&d.length){for(var $t=Ae(d),Nt=null,tn=$t.length-1;tn>=0;tn-=1){var Hn=$t[tn];if(!Hn.disabled){$t.splice(tn,1),Nt=Hn;break}}Nt&&f($t,{type:"remove",values:[Nt]});}for(var Yn=arguments.length,_r=new Array(Yn>1?Yn-1:0),pr=1;pr<Yn;pr++)_r[pr-1]=arguments[pr];if(oe&&Ie.current){var xa;(xa=Ie.current).onKeyDown.apply(xa,[Fe].concat(_r));}Y==null||Y.apply(void 0,[Fe].concat(_r));},Pe=function(Fe){for(var at=arguments.length,yt=new Array(at>1?at-1:0),$t=1;$t<at;$t++)yt[$t-1]=arguments[$t];if(oe&&Ie.current){var Nt;(Nt=Ie.current).onKeyUp.apply(Nt,[Fe].concat(yt));}se==null||se.apply(void 0,[Fe].concat(yt));},Ee=function(Fe){var at=d.filter(function(yt){return yt!==Fe});f(at,{type:"remove",values:[Fe]});},Oe=m__namespace.useRef(!1),Ve=function(){Ze(!0),y||(ie&&!Oe.current&&ie.apply(void 0,arguments),le.includes("focus")&&pe(!0)),Oe.current=!0;},mt=function(){we.current=!0,Ze(!1,function(){Oe.current=!1,we.current=!1,pe(!1);}),!y&&(gt&&(b==="tags"?A(gt,{source:"submit"}):b==="multiple"&&A("",{source:"blur"})),ce&&ce.apply(void 0,arguments));},_t=[];m__namespace.useEffect(function(){return function(){_t.forEach(function(ht){return clearTimeout(ht)}),_t.splice(0,_t.length);}},[]);var Mt=function(Fe){var at,yt=Fe.target,$t=(at=ze.current)===null||at===void 0?void 0:at.getPopupElement();if($t&&$t.contains(yt)){var Nt=setTimeout(function(){var _r=_t.indexOf(Nt);if(_r!==-1&&_t.splice(_r,1),Je(),!We&&!$t.contains(document.activeElement)){var pr;(pr=He.current)===null||pr===void 0||pr.focus();}});_t.push(Nt);}for(var tn=arguments.length,Hn=new Array(tn>1?tn-1:0),Yn=1;Yn<tn;Yn++)Hn[Yn-1]=arguments[Yn];ae==null||ae.apply(void 0,[Fe].concat(Hn));},mn=m__namespace.useState({}),un=J(mn,2),hn=un[1];function Fn(){hn({});}var Cn;st&&(Cn=function(Fe){pe(Fe);}),iX(function(){var ht;return [Me.current,(ht=ze.current)===null||ht===void 0?void 0:ht.getPopupElement()]},de,pe,!!st);var Ur=m__namespace.useMemo(function(){return q(q({},e),{},{notFoundContent:v,open:oe,triggerOpen:de,id:o,showSearch:re,multiple:te,toggleOpen:pe})},[e,v,de,oe,o,re,te,pe]),so=!!_||C,Bn;so&&(Bn=m__namespace.createElement(jd,{className:K("".concat(a,"-arrow"),F({},"".concat(a,"-arrow-loading"),C)),customizeIcon:_,customizeIconProps:{loading:C,searchValue:gt,open:oe,focused:bt,showSearch:re}}));var So=function(){var Fe;p==null||p(),(Fe=He.current)===null||Fe===void 0||Fe.focus(),f([],{type:"clear",values:d}),Ue("",!1,!1);},Mr=rX(a,So,d,P,z,y,gt,b),rr=Mr.allowClear,vr=Mr.clearIcon,Xr=m__namespace.createElement(j,{ref:Ie}),qr=K(a,i,(r={},F(r,"".concat(a,"-focused"),bt),F(r,"".concat(a,"-multiple"),te),F(r,"".concat(a,"-single"),!te),F(r,"".concat(a,"-allow-clear"),P),F(r,"".concat(a,"-show-arrow"),so),F(r,"".concat(a,"-disabled"),y),F(r,"".concat(a,"-loading"),C),F(r,"".concat(a,"-open"),oe),F(r,"".concat(a,"-customize-input"),vt),F(r,"".concat(a,"-show-search"),re),r)),qn=m__namespace.createElement(wx,{ref:ze,disabled:y,prefixCls:a,visible:de,popupElement:Xr,animation:H,transitionName:B,dropdownStyle:V,dropdownClassName:G,direction:c,dropdownMatchSelectWidth:X,dropdownRender:Q,dropdownAlign:ee,placement:W,builtinPlacements:Z,getPopupContainer:U,empty:h,getTriggerDOMNode:function(){return Xe.current},onPopupVisibleChange:Cn,onPopupMouseEnter:Fn},st?m__namespace.cloneElement(st,{ref:dt}):m__namespace.createElement(Sx,Re({},e,{domRef:Xe,prefixCls:a,inputElement:vt,ref:He,id:o,showSearch:re,autoClearSearchValue:k,mode:b,activeDescendantId:M,tagRender:l,values:d,open:oe,onToggleOpen:pe,activeValue:I,searchValue:gt,onSearch:Ue,onSearchSubmit:lt,onRemove:Ee,tokenWithEnter:Le}))),Yr;return st?Yr=qn:Yr=m__namespace.createElement("div",Re({className:qr},he,{ref:Me,onMouseDown:Mt,onKeyDown:je,onKeyUp:Pe,onFocus:Ve,onBlur:mt}),bt&&!oe&&m__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(ht){var Fe=ht.label,at=ht.value;return ["number","string"].includes(ut(Fe))?Fe:at}).join(", "))),qn,Bn,rr&&vr),m__namespace.createElement(px.Provider,{value:Ur},Yr)}),Nv=function(){return null};Nv.isSelectOptGroup=!0;var kv=function(){return null};kv.isSelectOption=!0;var xx=m__namespace.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};if(r!==void 0){var h;d={height:n,position:"relative",overflow:"hidden"},f=q(q({},f),{},(h={transform:"translateY(".concat(r,"px)")},F(h,c?"marginRight":"marginLeft",-o),F(h,"position","absolute"),F(h,"left",0),F(h,"right",0),F(h,"top",0),h));}return m__namespace.createElement("div",{style:d},m__namespace.createElement(Er,{onResize:function(v){var p=v.offsetHeight;p&&s&&s();}},m__namespace.createElement("div",Re({style:f,className:K(F({},"".concat(i,"-holder-inner"),i)),ref:t},l),a,u)))});xx.displayName="Filler";function xy(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var Ey=m__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,a=e.scrollOffset,i=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,h=e.style,g=e.thumbStyle,v=m__namespace.useState(!1),p=J(v,2),b=p[0],y=p[1],C=m__namespace.useState(null),w=J(C,2),x=w[0],$=w[1],S=m__namespace.useState(null),E=J(S,2),I=E[0],O=E[1],M=!o,R=m__namespace.useRef(),k=m__namespace.useRef(),A=m__namespace.useState(!1),L=J(A,2),T=L[0],P=L[1],_=m__namespace.useRef(),z=function(){clearTimeout(_.current),P(!0),_.current=setTimeout(function(){P(!1);},3e3);},j=i-f||0,H=f-d||0,B=j>0,V=m__namespace.useMemo(function(){if(a===0||j===0)return 0;var le=a/j;return le*H},[a,j,H]),G=function(ie){ie.stopPropagation(),ie.preventDefault();},X=m__namespace.useRef({top:V,dragging:b,pageY:x,startTop:I});X.current={top:V,dragging:b,pageY:x,startTop:I};var Q=function(ie){y(!0),$(xy(ie,u)),O(X.current.top),s(),ie.stopPropagation(),ie.preventDefault();};m__namespace.useEffect(function(){var le=function(Y){Y.preventDefault();},ie=R.current,ce=k.current;return ie.addEventListener("touchstart",le),ce.addEventListener("touchstart",Q),function(){ie.removeEventListener("touchstart",le),ce.removeEventListener("touchstart",Q);}},[]);var ee=m__namespace.useRef();ee.current=j;var W=m__namespace.useRef();W.current=H,m__namespace.useEffect(function(){if(b){var le,ie=function(Y){var ae=X.current,me=ae.dragging,te=ae.pageY,re=ae.startTop;if(Rt.cancel(le),me){var he=xy(Y,u)-te,Ce=re;!M&&u?Ce-=he:Ce+=he;var ke=ee.current,We=W.current,Ge=We?Ce/We:0,Me=Math.ceil(Ge*ke);Me=Math.max(Me,0),Me=Math.min(Me,ke),le=Rt(function(){c(Me,u);});}},ce=function(){y(!1),l();};return window.addEventListener("mousemove",ie),window.addEventListener("touchmove",ie),window.addEventListener("mouseup",ce),window.addEventListener("touchend",ce),function(){window.removeEventListener("mousemove",ie),window.removeEventListener("touchmove",ie),window.removeEventListener("mouseup",ce),window.removeEventListener("touchend",ce),Rt.cancel(le);}}},[b]),m__namespace.useEffect(function(){z();},[a]),m__namespace.useImperativeHandle(t,function(){return {delayHidden:z}});var Z="".concat(r,"-scrollbar"),U={position:"absolute",visibility:T&&B?null:"hidden"},ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(U.height=8,U.left=0,U.right=0,U.bottom=0,ue.height="100%",ue.width=d,M?ue.left=V:ue.right=V):(U.width=8,U.top=0,U.bottom=0,M?U.right=0:U.left=0,ue.width="100%",ue.height=d,ue.top=V),m__namespace.createElement("div",{ref:R,className:K(Z,(n={},F(n,"".concat(Z,"-horizontal"),u),F(n,"".concat(Z,"-vertical"),!u),F(n,"".concat(Z,"-visible"),T),n)),style:q(q({},U),h),onMouseDown:G,onMouseMove:z},m__namespace.createElement("div",{ref:k,className:K("".concat(Z,"-thumb"),F({},"".concat(Z,"-thumb-moving"),b)),style:q(q({},ue),g),onMouseDown:Q}))});function IX(e){var t=e.children,n=e.setRef,r=m__namespace.useCallback(function(o){n(o);},[]);return m__namespace.cloneElement(t,{ref:r})}function OX(e,t,n,r,o,a,i){var s=i.getKey;return e.slice(t,n+1).map(function(l,c){var u=t+c,d=a(l,u,{style:{width:r}}),f=s(l);return m__namespace.createElement(IX,{key:f,setRef:function(g){return o(l,g)}},d)})}var PX=function(){function e(){xn(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null);}return En(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function RX(e,t,n){var r=m__namespace.useState(0),o=J(r,2),a=o[0],i=o[1],s=m.useRef(new Map),l=m.useRef(new PX),c=m.useRef();function u(){Rt.cancel(c.current);}function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var g=function(){s.current.forEach(function(p,b){if(p&&p.offsetParent){var y=us(p),C=y.offsetHeight;l.current.get(b)!==C&&l.current.set(b,y.offsetHeight);}}),i(function(p){return p+1});};h?g():c.current=Rt(g);}function f(h,g){var v=e(h),p=s.current.get(v);g?(s.current.set(v,g),d()):s.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h));}return m.useEffect(function(){return u},[]),[f,d,l.current,a]}var MX=10;function _X(e,t,n,r,o,a,i,s){var l=m__namespace.useRef(),c=m__namespace.useState(null),u=J(c,2),d=u[0],f=u[1];return Xt(function(){if(d&&d.times<MX){if(!e.current){f(function(z){return q({},z)});return}a();var h=d.targetAlign,g=d.originAlign,v=d.index,p=d.offset,b=e.current.clientHeight,y=!1,C=h,w=null;if(b){for(var x=h||g,$=0,S=0,E=0,I=Math.min(t.length-1,v),O=0;O<=I;O+=1){var M=o(t[O]);S=$;var R=n.get(M);E=S+(R===void 0?r:R),$=E;}for(var k=x==="top"?p:b-p,A=I;A>=0;A-=1){var L=o(t[A]),T=n.get(L);if(T===void 0){y=!0;break}if(k-=T,k<=0)break}switch(x){case"top":w=S-p;break;case"bottom":w=E-b+p;break;default:{var P=e.current.scrollTop,_=P+b;S<P?C="top":E>_&&(C="bottom");}}w!==null&&i(w),w!==d.lastTop&&(y=!0);}y&&f(function(z){return q(q({},z),{},{times:z.times+1,targetAlign:C,lastTop:w})});}},[d,e.current]),function(h){if(h==null){s();return}if(Rt.cancel(l.current),typeof h=="number")i(h);else if(h&&ut(h)==="object"){var g,v=h.align;"index"in h?g=h.index:g=t.findIndex(function(y){return o(y)===h.key});var p=h.offset,b=p===void 0?0:p;f({times:0,index:g,offset:b,originAlign:v});}}}function TX(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(g){return g!==void 0?n(g):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<i.length;d+=1){var f=l(a[d]),h=l(i[d]);if(f!==h){c=d,u=u||f!==l(i[d+1]);break}}return c===null?null:{index:c,multiple:u}}function NX(e,t,n){var r=m__namespace.useState(e),o=J(r,2),a=o[0],i=o[1],s=m__namespace.useState(null),l=J(s,2),c=l[0],u=l[1];return m__namespace.useEffect(function(){var d=TX(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 Iy=(typeof navigator>"u"?"undefined":ut(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Ex=function(e,t){var n=m.useRef(!1),r=m.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var a=m.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 kX(e,t,n,r,o){var a=m.useRef(0),i=m.useRef(null),s=m.useRef(null),l=m.useRef(!1),c=Ex(t,n);function u(p,b){Rt.cancel(i.current),a.current+=b,s.current=b,!c(b)&&(Iy||p.preventDefault(),i.current=Rt(function(){var y=l.current?10:1;o(a.current*y),a.current=0;}));}function d(p,b){o(b,!0),Iy||p.preventDefault();}var f=m.useRef(null),h=m.useRef(null);function g(p){if(e){Rt.cancel(h.current),h.current=Rt(function(){f.current=null;},2);var b=p.deltaX,y=p.deltaY,C=p.shiftKey,w=b,x=y;(f.current==="sx"||!f.current&&C&&y&&!b)&&(w=y,x=0,f.current="sx");var $=Math.abs(w),S=Math.abs(x);f.current===null&&(f.current=r&&$>S?"x":"y"),f.current==="y"?u(p,x):d(p,w);}}function v(p){e&&(l.current=p.detail===s.current);}return [g,v]}var AX=14/15;function LX(e,t,n){var r=m.useRef(!1),o=m.useRef(0),a=m.useRef(null),i=m.useRef(null),s,l=function(f){if(r.current){var h=Math.ceil(f.touches[0].pageY),g=o.current-h;o.current=h,n(g)&&f.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){g*=AX,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(i.current);},16);}},c=function(){r.current=!1,s();},u=function(f){s(),f.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(f.touches[0].pageY),a.current=f.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));},Xt(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 DX=20;function Oy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,DX),n=Math.min(n,e/2),Math.floor(n)}function zX(e,t,n,r){var o=m__namespace.useMemo(function(){return [new Map,[]]},[e,n.id,r]),a=J(o,2),i=a[0],s=a[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=i.get(u),h=i.get(d);if(f===void 0||h===void 0)for(var g=e.length,v=s.length;v<g;v+=1){var p,b=e[v],y=t(b);i.set(y,v);var C=(p=n.get(y))!==null&&p!==void 0?p:r;if(s[v]=(s[v-1]||0)+C,y===u&&(f=v),y===d&&(h=v),f!==void 0&&h!==void 0)break}return {top:s[f-1]||0,bottom:s[h]}};return l}var jX=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],FX=[],BX={overflowY:"auto",overflowAnchor:"none"};function HX(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,f=e.itemKey,h=e.virtual,g=e.direction,v=e.scrollWidth,p=e.component,b=p===void 0?"div":p,y=e.onScroll,C=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,$=e.extraRender,S=e.styles,E=tt(e,jX),I=!!(h!==!1&&a&&i),O=I&&u&&(i*u.length>a||!!v),M=g==="rtl",R=K(r,F({},"".concat(r,"-rtl"),M),o),k=u||FX,A=m.useRef(),L=m.useRef(),T=m.useState(0),P=J(T,2),_=P[0],z=P[1],j=m.useState(0),H=J(j,2),B=H[0],V=H[1],G=m.useState(!1),X=J(G,2),Q=X[0],ee=X[1],W=function(){ee(!0);},Z=function(){ee(!1);},U=m__namespace.useCallback(function(Ee){return typeof f=="function"?f(Ee):Ee==null?void 0:Ee[f]},[f]),ue={getKey:U};function le(Ee){z(function(Oe){var Ve;typeof Ee=="function"?Ve=Ee(Oe):Ve=Ee;var mt=dt(Ve);return A.current.scrollTop=mt,mt});}var ie=m.useRef({start:0,end:k.length}),ce=m.useRef(),se=NX(k,U),Y=J(se,1),ae=Y[0];ce.current=ae;var me=RX(U,null,null),te=J(me,4),re=te[0],he=te[1],Ce=te[2],ke=te[3],We=m__namespace.useMemo(function(){if(!I)return {scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!O){var Ee;return {scrollHeight:((Ee=L.current)===null||Ee===void 0?void 0:Ee.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var Oe=0,Ve,mt,_t,Mt=k.length,mn=0;mn<Mt;mn+=1){var un=k[mn],hn=U(un),Fn=Ce.get(hn),Cn=Oe+(Fn===void 0?i:Fn);Cn>=_&&Ve===void 0&&(Ve=mn,mt=Oe),Cn>_+a&&_t===void 0&&(_t=mn),Oe=Cn;}return Ve===void 0&&(Ve=0,mt=0,_t=Math.ceil(a/i)),_t===void 0&&(_t=k.length-1),_t=Math.min(_t+1,k.length-1),{scrollHeight:Oe,start:Ve,end:_t,offset:mt}},[O,I,_,k,ke,a]),Ge=We.scrollHeight,Me=We.start,Xe=We.end,ze=We.offset;ie.current.start=Me,ie.current.end=Xe;var He=m__namespace.useState({width:0,height:a}),Ie=J(He,2),we=Ie[0],qe=Ie[1],nt=function(Oe){qe(Oe);},bt=m.useRef(),Ze=m.useRef(),Je=m__namespace.useMemo(function(){return Oy(we.width,v)},[we.width,v]),gt=m__namespace.useMemo(function(){return Oy(we.height,Ge)},[we.height,Ge]),vt=Ge-a,st=m.useRef(vt);st.current=vt;function dt(Ee){var Oe=Ee;return Number.isNaN(st.current)||(Oe=Math.min(Oe,st.current)),Oe=Math.max(Oe,0),Oe}var et=_<=0,$e=_>=vt,xe=Ex(et,$e),_e=function(){return {x:M?-B:B,y:_}},ge=m.useRef(_e()),Te=kn(function(){if(C){var Ee=_e();(ge.current.x!==Ee.x||ge.current.y!==Ee.y)&&(C(Ee),ge.current=Ee);}});function Se(Ee,Oe){var Ve=Ee;Oe?(k1.flushSync(function(){V(Ve);}),Te()):le(Ve);}function fe(Ee){var Oe=Ee.currentTarget.scrollTop;Oe!==_&&le(Oe),y==null||y(Ee),Te();}var oe=function(Oe){var Ve=Oe,mt=v-we.width;return Ve=Math.max(Ve,0),Ve=Math.min(Ve,mt),Ve},ye=kn(function(Ee,Oe){Oe?(k1.flushSync(function(){V(function(Ve){var mt=Ve+(M?-Ee:Ee);return oe(mt)});}),Te()):le(function(Ve){var mt=Ve+Ee;return mt});}),de=kX(I,et,$e,!!v,ye),pe=J(de,2),Le=pe[0],Ue=pe[1];LX(I,A,function(Ee,Oe){return xe(Ee,Oe)?!1:(Le({preventDefault:function(){},deltaY:Ee}),!0)}),Xt(function(){function Ee(Ve){I&&Ve.preventDefault();}var Oe=A.current;return Oe.addEventListener("wheel",Le),Oe.addEventListener("DOMMouseScroll",Ue),Oe.addEventListener("MozMousePixelScroll",Ee),function(){Oe.removeEventListener("wheel",Le),Oe.removeEventListener("DOMMouseScroll",Ue),Oe.removeEventListener("MozMousePixelScroll",Ee);}},[I]),Xt(function(){v&&V(function(Ee){return oe(Ee)});},[we.width,v]);var lt=function(){var Oe,Ve;(Oe=bt.current)===null||Oe===void 0||Oe.delayHidden(),(Ve=Ze.current)===null||Ve===void 0||Ve.delayHidden();},it=_X(A,k,Ce,i,U,function(){return he(!0)},le,lt);m__namespace.useImperativeHandle(t,function(){return {getScrollInfo:_e,scrollTo:function(Oe){function Ve(mt){return mt&&ut(mt)==="object"&&("left"in mt||"top"in mt)}Ve(Oe)?(Oe.left!==void 0&&V(oe(Oe.left)),it(Oe.top)):it(Oe);}}}),Xt(function(){if(w){var Ee=k.slice(Me,Xe+1);w(Ee,k);}},[Me,Xe,k]);var Et=zX(k,U,Ce,i),wt=$==null?void 0:$({start:Me,end:Xe,virtual:O,offsetX:B,offsetY:ze,rtl:M,getSize:Et}),ft=OX(k,Me,Xe,v,re,d,ue),je=null;a&&(je=q(F({},l?"height":"maxHeight",a),BX),I&&(je.overflowY="hidden",v&&(je.overflowX="hidden"),Q&&(je.pointerEvents="none")));var Pe={};return M&&(Pe.dir="rtl"),m__namespace.createElement("div",Re({style:q(q({},c),{},{position:"relative"}),className:R},Pe,E),m__namespace.createElement(Er,{onResize:nt},m__namespace.createElement(b,{className:"".concat(r,"-holder"),style:je,ref:A,onScroll:fe,onMouseEnter:lt},m__namespace.createElement(xx,{prefixCls:r,height:Ge,offsetX:B,offsetY:ze,scrollWidth:v,onInnerResize:he,ref:L,innerProps:x,rtl:M,extra:wt},ft))),O&&Ge>a&&m__namespace.createElement(Ey,{ref:bt,prefixCls:r,scrollOffset:_,scrollRange:Ge,rtl:M,onScroll:Se,onStartMove:W,onStopMove:Z,spinSize:gt,containerSize:we.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb}),O&&v&&m__namespace.createElement(Ey,{ref:Ze,prefixCls:r,scrollOffset:B,scrollRange:v,rtl:M,onScroll:Se,onStartMove:W,onStopMove:Z,spinSize:Je,containerSize:we.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb}))}var Ix=m__namespace.forwardRef(HX);Ix.displayName="List";var Ox=m__namespace.createContext(null);function WX(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var VX=["disabled","title","children","style","className"];function Py(e){return typeof e=="string"||typeof e=="number"}var GX=function(t,n){var r=oX(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,h=m__namespace.useContext(Ox),g=h.flattenOptions,v=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,y=h.menuItemSelectedIcon,C=h.rawValues,w=h.fieldNames,x=h.virtual,$=h.direction,S=h.listHeight,E=h.listItemHeight,I=h.optionRender,O="".concat(o,"-item"),M=nl(function(){return g},[i,g],function(W,Z){return Z[0]&&W[1]!==Z[1]}),R=m__namespace.useRef(null),k=function(Z){Z.preventDefault();},A=function(Z){R.current&&R.current.scrollTo(typeof Z=="number"?{index:Z}:Z);},L=function(Z){for(var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=M.length,le=0;le<ue;le+=1){var ie=(Z+le*U+ue)%ue,ce=M[ie],se=ce.group,Y=ce.data;if(!se&&!Y.disabled)return ie}return -1},T=m__namespace.useState(function(){return L(0)}),P=J(T,2),_=P[0],z=P[1],j=function(Z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;z(Z);var ue={source:U?"keyboard":"mouse"},le=M[Z];if(!le){v(null,-1,ue);return}v(le.value,Z,ue);};m.useEffect(function(){j(p!==!1?L(0):-1);},[M.length,c]);var H=m__namespace.useCallback(function(W){return C.has(W)&&l!=="combobox"},[l,Ae(C).toString(),C.size]);m.useEffect(function(){var W=setTimeout(function(){if(!s&&i&&C.size===1){var U=Array.from(C)[0],ue=M.findIndex(function(le){var ie=le.data;return ie.value===U});ue!==-1&&(j(ue),A(ue));}});if(i){var Z;(Z=R.current)===null||Z===void 0||Z.scrollTo(void 0);}return function(){return clearTimeout(W)}},[i,c]);var B=function(Z){Z!==void 0&&b(Z,{selected:!C.has(Z)}),s||u(!1);};if(m__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Z){var U=Z.which,ue=Z.ctrlKey;switch(U){case ve.N:case ve.P:case ve.UP:case ve.DOWN:{var le=0;if(U===ve.UP?le=-1:U===ve.DOWN?le=1:WX()&&ue&&(U===ve.N?le=1:U===ve.P&&(le=-1)),le!==0){var ie=L(_+le,le);A(ie),j(ie,!0);}break}case ve.ENTER:{var ce=M[_];ce&&!ce.data.disabled?B(ce.value):B(void 0),i&&Z.preventDefault();break}case ve.ESC:u(!1),i&&Z.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Z){A(Z);}}}),M.length===0)return m__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(O,"-empty"),onMouseDown:k},d);var V=Object.keys(w).map(function(W){return w[W]}),G=function(Z){return Z.label};function X(W,Z){var U=W.group;return {role:U?"presentation":"option",id:"".concat(a,"_list_").concat(Z)}}var Q=function(Z){var U=M[Z];if(!U)return null;var ue=U.data||{},le=ue.value,ie=U.group,ce=pi(ue,!0),se=G(U);return U?m__namespace.createElement("div",Re({"aria-label":typeof se=="string"&&!ie?se:null},ce,{key:Z},X(U,Z),{"aria-selected":H(le)}),le):null},ee={role:"listbox",id:"".concat(a,"_list")};return m__namespace.createElement(m__namespace.Fragment,null,x&&m__namespace.createElement("div",Re({},ee,{style:{height:0,width:0,overflow:"hidden"}}),Q(_-1),Q(_),Q(_+1)),m__namespace.createElement(Ix,{itemKey:"key",ref:R,data:M,height:S,itemHeight:E,fullHeight:!1,onMouseDown:k,onScroll:f,virtual:x,direction:$,innerProps:x?null:ee},function(W,Z){var U,ue=W.group,le=W.groupOption,ie=W.data,ce=W.label,se=W.value,Y=ie.key;if(ue){var ae,me=(ae=ie.title)!==null&&ae!==void 0?ae:Py(ce)?ce.toString():void 0;return m__namespace.createElement("div",{className:K(O,"".concat(O,"-group")),title:me},ce!==void 0?ce:Y)}var te=ie.disabled,re=ie.title;ie.children;var he=ie.style,Ce=ie.className,ke=tt(ie,VX),We=jn(ke,V),Ge=H(se),Me="".concat(O,"-option"),Xe=K(O,Me,Ce,(U={},F(U,"".concat(Me,"-grouped"),le),F(U,"".concat(Me,"-active"),_===Z&&!te),F(U,"".concat(Me,"-disabled"),te),F(U,"".concat(Me,"-selected"),Ge),U)),ze=G(W),He=!y||typeof y=="function"||Ge,Ie=typeof ze=="number"?ze:ze||se,we=Py(Ie)?Ie.toString():void 0;return re!==void 0&&(we=re),m__namespace.createElement("div",Re({},pi(We),x?{}:X(W,Z),{"aria-selected":Ge,className:Xe,title:we,onMouseMove:function(){_===Z||te||j(Z);},onClick:function(){te||B(se);},style:he}),m__namespace.createElement("div",{className:"".concat(Me,"-content")},typeof I=="function"?I(W,{index:Z}):Ie),m__namespace.isValidElement(y)||Ge,He&&m__namespace.createElement(jd,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:se,disabled:te,isSelected:Ge}},Ge?"✓":null))}))},Px=m__namespace.forwardRef(GX);Px.displayName="OptionList";const KX=function(e,t){var n=m__namespace.useRef({values:new Map,options:new Map}),r=m__namespace.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var f;return q(q({},d),{},{label:(f=i.get(d.value))===null||f===void 0?void 0:f.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=m__namespace.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function Ff(e,t){return yx(e).join("").toUpperCase().includes(t)}const UX=function(e,t,n,r,o){return m__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,g){return o?Ff(g[o],u):g[a]?Ff(g[i!=="children"?i:"label"],u):Ff(g[s],u)},f=c?function(h){return Eh(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var g=d(n,f(h));if(g)l.push(h);else {var v=h[a].filter(function(p){return d(n,f(p))});v.length&&l.push(q(q({},h),{},F({},a,v)));}return}d(n,f(h))&&l.push(h);}),l},[e,r,o,n,t])};var Ry=0,XX=Gn();function qX(){var e;return XX?(e=Ry,Ry+=1):e="TEST_OR_SSR",e}function YX(e){var t=m__namespace.useState(),n=J(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){o("rc_select_".concat(qX()));},[]),e||r}var QX=["children","value"],ZX=["children"];function JX(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=tt(r,QX);return q({key:n,value:a!==void 0?a:n,children:o},i)}function Rx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return hr(e).map(function(n,r){if(!m__namespace.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=tt(s,ZX);return t||!a?JX(n):q(q({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:Rx(l)})}).filter(function(n){return n})}function eq(e,t,n,r,o){return m__namespace.useMemo(function(){var a=e,i=!e;i&&(a=Rx(t));var s=new Map,l=new Map,c=function(f,h,g){g&&typeof g=="string"&&f.set(h[g],h);};function u(d){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<d.length;h+=1){var g=d[h];!g[n.options]||f?(s.set(g[n.value],g),c(l,g,n.label),c(l,g,r),c(l,g,o)):u(g[n.options],!0);}}return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function My(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var tq=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],nq=["inputValue"];function rq(e){return !e||ut(e)!=="object"}var oq=m__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,f=d===void 0?!0:d,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,p=v===void 0?!0:v,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,w=e.optionLabelProp,x=e.options,$=e.optionRender,S=e.children,E=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,O=e.virtual,M=e.direction,R=e.listHeight,k=R===void 0?200:R,A=e.listItemHeight,L=A===void 0?20:A,T=e.value,P=e.defaultValue,_=e.labelInValue,z=e.onChange,j=tt(e,tq),H=YX(n),B=Ih(r),V=!!(!x&&S),G=m__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),X=m__namespace.useMemo(function(){return $x(s,V)},[JSON.stringify(s),V]),Q=qt("",{value:c!==void 0?c:l,postState:function(ye){return ye||""}}),ee=J(Q,2),W=ee[0],Z=ee[1],U=eq(x,S,X,C,w),ue=U.valueOptions,le=U.labelOptions,ie=U.options,ce=m__namespace.useCallback(function(oe){var ye=yx(oe);return ye.map(function(de){var pe,Le,Ue,lt,it;if(rq(de))pe=de;else {var Et;Ue=de.key,Le=de.label,pe=(Et=de.value)!==null&&Et!==void 0?Et:Ue;}var wt=ue.get(pe);if(wt){var ft;Le===void 0&&(Le=wt==null?void 0:wt[w||X.label]),Ue===void 0&&(Ue=(ft=wt==null?void 0:wt.key)!==null&&ft!==void 0?ft:pe),lt=wt==null?void 0:wt.disabled,it=wt==null?void 0:wt.title;}return {label:Le,value:pe,key:Ue,disabled:lt,title:it}})},[X,w,ue]),se=qt(P,{value:T}),Y=J(se,2),ae=Y[0],me=Y[1],te=m__namespace.useMemo(function(){var oe,ye=ce(ae);return r==="combobox"&&dX((oe=ye[0])===null||oe===void 0?void 0:oe.value)?[]:ye},[ae,ce,r]),re=KX(te,ue),he=J(re,2),Ce=he[0],ke=he[1],We=m__namespace.useMemo(function(){if(!r&&Ce.length===1){var oe=Ce[0];if(oe.value===null&&(oe.label===null||oe.label===void 0))return []}return Ce.map(function(ye){var de;return q(q({},ye),{},{label:(de=ye.label)!==null&&de!==void 0?de:ye.value})})},[r,Ce]),Ge=m__namespace.useMemo(function(){return new Set(Ce.map(function(oe){return oe.value}))},[Ce]);m__namespace.useEffect(function(){if(r==="combobox"){var oe,ye=(oe=Ce[0])===null||oe===void 0?void 0:oe.value;Z(uX(ye)?String(ye):"");}},[Ce]);var Me=My(function(oe,ye){var de,pe=ye??oe;return de={},F(de,X.value,oe),F(de,X.label,pe),de}),Xe=m__namespace.useMemo(function(){if(r!=="tags")return ie;var oe=Ae(ie),ye=function(pe){return ue.has(pe)};return Ae(Ce).sort(function(de,pe){return de.value<pe.value?-1:1}).forEach(function(de){var pe=de.value;ye(pe)||oe.push(Me(pe,de.label));}),oe},[Me,ie,ue,Ce,r]),ze=UX(Xe,X,W,G,C),He=m__namespace.useMemo(function(){return r!=="tags"||!W||ze.some(function(oe){return oe[C||"value"]===W})||ze.some(function(oe){return oe[X.value]===W})?ze:[Me(W)].concat(Ae(ze))},[Me,C,r,ze,W,X]),Ie=m__namespace.useMemo(function(){return y?Ae(He).sort(function(oe,ye){return y(oe,ye)}):He},[He,y]),we=m__namespace.useMemo(function(){return SX(Ie,{fieldNames:X,childrenAsData:V})},[Ie,X,V]),qe=function(ye){var de=ce(ye);if(me(de),z&&(de.length!==Ce.length||de.some(function(Ue,lt){var it;return ((it=Ce[lt])===null||it===void 0?void 0:it.value)!==(Ue==null?void 0:Ue.value)}))){var pe=_?de:de.map(function(Ue){return Ue.value}),Le=de.map(function(Ue){return Eh(ke(Ue.value))});z(B?pe:pe[0],B?Le:Le[0]);}},nt=m__namespace.useState(null),bt=J(nt,2),Ze=bt[0],Je=bt[1],gt=m__namespace.useState(0),vt=J(gt,2),st=vt[0],dt=vt[1],et=E!==void 0?E:r!=="combobox",$e=m__namespace.useCallback(function(oe,ye){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pe=de.source,Le=pe===void 0?"keyboard":pe;dt(ye),i&&r==="combobox"&&oe!==null&&Le==="keyboard"&&Je(String(oe));},[i,r]),xe=function(ye,de,pe){var Le=function(){var Oe,Ve=ke(ye);return [_?{label:Ve==null?void 0:Ve[X.label],value:ye,key:(Oe=Ve==null?void 0:Ve.key)!==null&&Oe!==void 0?Oe:ye}:ye,Eh(Ve)]};if(de&&h){var Ue=Le(),lt=J(Ue,2),it=lt[0],Et=lt[1];h(it,Et);}else if(!de&&g&&pe!=="clear"){var wt=Le(),ft=J(wt,2),je=ft[0],Pe=ft[1];g(je,Pe);}},_e=My(function(oe,ye){var de,pe=B?ye.selected:!0;pe?de=B?[].concat(Ae(Ce),[oe]):[oe]:de=Ce.filter(function(Le){return Le.value!==oe}),qe(de),xe(oe,pe),r==="combobox"?Je(""):(!Ih||f)&&(Z(""),Je(""));}),ge=function(ye,de){qe(ye);var pe=de.type,Le=de.values;(pe==="remove"||pe==="clear")&&Le.forEach(function(Ue){xe(Ue.value,!1,pe);});},Te=function(ye,de){if(Z(ye),Je(null),de.source==="submit"){var pe=(ye||"").trim();if(pe){var Le=Array.from(new Set([].concat(Ae(Ge),[pe])));qe(Le),xe(pe,!0),Z("");}return}de.source!=="blur"&&(r==="combobox"&&qe(ye),u==null||u(ye));},Se=function(ye){var de=ye;r!=="tags"&&(de=ye.map(function(Le){var Ue=le.get(Le);return Ue==null?void 0:Ue.value}).filter(function(Le){return Le!==void 0}));var pe=Array.from(new Set([].concat(Ae(Ge),Ae(de))));qe(pe),pe.forEach(function(Le){xe(Le,!0);});},fe=m__namespace.useMemo(function(){var oe=O!==!1&&p!==!1;return q(q({},U),{},{flattenOptions:we,onActiveValue:$e,defaultActiveFirstOption:et,onSelect:_e,menuItemSelectedIcon:I,rawValues:Ge,fieldNames:X,virtual:oe,direction:M,listHeight:k,listItemHeight:L,childrenAsData:V,optionRender:$})},[U,we,$e,et,_e,I,Ge,X,O,p,k,L,V,$]);return m__namespace.createElement(Ox.Provider,{value:fe},m__namespace.createElement(EX,Re({},j,{id:H,prefixCls:a,ref:t,omitDomProps:nq,mode:r,displayValues:We,onDisplayValuesChange:ge,direction:M,searchValue:W,onSearch:Te,autoClearSearchValue:f,onSearchSplit:Se,dropdownMatchSelectWidth:p,OptionList:Px,emptyOptions:!we.length,activeValue:Ze,activeDescendantId:"".concat(H,"_list_").concat(st)})))}),Av=oq;Av.Option=kv;Av.OptGroup=Nv;const aq=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"}},iq=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({},Ft(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:Zg},[` ${o}${s}topLeft, ${a}${s}topLeft, ${o}${s}topRight, ${a}${s}topRight `]:{animationName:ev},[`${i}${s}bottomLeft`]:{animationName:Jg},[` ${i}${s}topLeft, ${i}${s}topRight `]:{animationName:tv},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},aq(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"},ca),"&-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"}})},Ao(e,"slide-up"),Ao(e,"slide-down"),Wc(e,"move-up"),Wc(e,"move-down")]},sq=iq,ja=2,Mx=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return [o,a]};function Bf(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=Mx(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-ja}px ${ja*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:`${ja}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:ja,marginBottom:ja,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:ja*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({},Ca()),{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 lq=e=>{const{componentCls:t}=e,n=St(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=St(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=Mx(e);return [Bf(e),Bf(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},Bf(r,"lg")]},cq=lq;function Hf(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({},Ft(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-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 uq(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [Hf(e),Hf(St(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}}}},Hf(St(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dq=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"}}}},Wf=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:s,controlOutlineWidth:l}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${l}px ${s}`,outline:0}})}}},fq=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},mq=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},Ft(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},dq(e)),fq(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ca),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ca),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Ca()),{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}}}},hq=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%"}}},mq(e),uq(e),cq(e),sq(e),{[`${t}-rtl`]:{direction:"rtl"}},Wf(t,St(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),Wf(`${t}-status-error`,St(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),Wf(`${t}-status-warning`,St(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Dd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},gq=Kt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=St(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [hq(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:h,colorBgContainerDisabled:g,colorTextDisabled:v}=e;return {zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:h,multipleItemHeightLG:r,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent"}}),vq=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",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 pq(e,t){return e||vq(t)}var bq={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 yq=bq;var Cq=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:yq}))};const Sq=m__namespace.forwardRef(Cq);var wq={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 $q=wq;var xq=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:$q}))};const Lv=m__namespace.forwardRef(xq);var Eq={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 Iq=Eq;var Oq=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:Iq}))};const Dv=m__namespace.forwardRef(Oq);function Pq(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const h=n??m__namespace.createElement(Lv,null),g=y=>t===null&&!s&&!d?null:m__namespace.createElement(m__namespace.Fragment,null,c!==!1&&y,s&&u);let v=null;if(t!==void 0)v=g(t);else if(a)v=g(m__namespace.createElement($v,{spin:!0}));else {const y=`${l}-suffix`;v=C=>{let{open:w,showSearch:x}=C;return g(w&&x?m__namespace.createElement(Dv,{className:y}):m__namespace.createElement(_v,{className:y}))};}let p=null;r!==void 0?p=r:i?p=m__namespace.createElement(Sq,null):p=null;let b=null;return o!==void 0?b=o:b=m__namespace.createElement(zd,null),{clearIcon:h,suffixIcon:v,itemIcon:p,removeIcon:b}}function Rq(e,t){return t!==void 0?t:e!==null}var Mq=function(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 _x="SECRET_COMBOBOX_MODE_DO_NOT_USE",_q=(e,t)=>{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:h=24,size:g,disabled:v,notFoundContent:p,status:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:w,direction:x,style:$,allowClear:S}=e,E=Mq(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:I,getPrefixCls:O,renderEmpty:M,direction:R,virtual:k,popupMatchSelectWidth:A,popupOverflow:L,select:T}=m__namespace.useContext(rt),P=O("select",o),_=O(),z=x??R,{compactSize:j,compactItemClassnames:H}=Ai(P,z),[B,V]=gq(P),G=m__namespace.useMemo(()=>{const{mode:ze}=E;if(ze!=="combobox")return ze===_x?"combobox":ze},[E.mode]),X=G==="multiple"||G==="tags",Q=Rq(E.suffixIcon,E.showArrow),ee=(n=w??C)!==null&&n!==void 0?n:A,{status:W,hasFeedback:Z,isFormItemInput:U,feedbackIcon:ue}=m__namespace.useContext(Or),le=El(W,b);let ie;p!==void 0?ie=p:G==="combobox"?ie=null:ie=(M==null?void 0:M("Select"))||m__namespace.createElement(gx,{componentName:"Select"});const{suffixIcon:ce,itemIcon:se,removeIcon:Y,clearIcon:ae}=Pq(Object.assign(Object.assign({},E),{multiple:X,hasFeedback:Z,feedbackIcon:ue,showSuffixIcon:Q,prefixCls:P,showArrow:E.showArrow,componentName:"Select"})),me=S===!0?{clearIcon:ae}:S,te=jn(E,["suffixIcon","itemIcon"]),re=K(c||u,{[`${P}-dropdown-${z}`]:z==="rtl"},s,V),he=tr(ze=>{var He;return (He=g??j)!==null&&He!==void 0?He:ze}),Ce=m__namespace.useContext(Kr),ke=v??Ce,We=K({[`${P}-lg`]:he==="large",[`${P}-sm`]:he==="small",[`${P}-rtl`]:z==="rtl",[`${P}-borderless`]:!a,[`${P}-in-form-item`]:U},jr(P,le,Z),H,T==null?void 0:T.className,i,s,V),Ge=m__namespace.useMemo(()=>f!==void 0?f:z==="rtl"?"bottomRight":"bottomLeft",[f,z]),Me=pq(y,L),[Xe]=cd("SelectLike",(r=E.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return B(m__namespace.createElement(Av,Object.assign({ref:t,virtual:k,showSearch:T==null?void 0:T.showSearch},te,{style:Object.assign(Object.assign({},T==null?void 0:T.style),$),dropdownMatchSelectWidth:ee,builtinPlacements:Me,transitionName:ud(_,"slide-up",E.transitionName),listHeight:d,listItemHeight:h,mode:G,prefixCls:P,placement:Ge,direction:z,suffixIcon:ce,menuItemSelectedIcon:se,removeIcon:Y,allowClear:me,notFoundContent:ie,className:We,getPopupContainer:l||I,dropdownClassName:re,disabled:ke,dropdownStyle:Object.assign(Object.assign({},E==null?void 0:E.dropdownStyle),{zIndex:Xe})})))},ji=m__namespace.forwardRef(_q),Tq=hv(ji);ji.SECRET_COMBOBOX_MODE_DO_NOT_USE=_x;ji.Option=kv;ji.OptGroup=Nv;ji._InternalPanelDoNotUseOrYouWillBeFired=Tq;const Il=ji,Tx=e=>m__namespace.createElement(Il,Object.assign({},e,{showSearch:!0,size:"small"})),Nx=e=>m__namespace.createElement(Il,Object.assign({},e,{showSearch:!0,size:"middle"}));Tx.Option=Il.Option;Nx.Option=Il.Option;const kx=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ax=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Oh=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),zv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},Ax(St(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Lx=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}},jv=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),Fd=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},Oh(St(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},Oh(St(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Ol=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}`},kx(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Ax(e)),"&:focus, &:focus-within":Object.assign({},Oh(e)),"&-disabled, &[disabled]":Object.assign({},zv(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({},Lx(e)),"&-sm":Object.assign({},jv(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Dx=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({},Lx(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},jv(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Gm()),{[`${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}}}})}},Nq=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({},Ft(e)),Ol(e)),Fd(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"}})}},kq=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`}}}},Aq=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({},Ol(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),kq(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),Fd(e,`${t}-affix-wrapper`))}},Lq=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ft(e)),Dx(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({},zv(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}}}})}},Dq=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}}}}},zq=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"}}}}}},jq=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function Fv(e){return St(e,{inputAffixPadding:e.paddingXXS})}const Bv=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:v,controlOutline:p,colorErrorOutline:b,colorWarningOutline:y}=e;return {paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${p}`,errorActiveShadow:`0 0 0 ${v}px ${b}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:"",activeBg:""}},Hv=Kt("Input",e=>{const t=St(e,Fv(e));return [Nq(t),zq(t),Aq(t),Lq(t),Dq(t),jq(t),Dd(t)]},Bv),Fq=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"}}}}}},Bq=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({},jv(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Hq=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"}}}}},Wq=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({},Ol(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Vq=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}}}}},Gq=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ft(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"}}),Vq(e)),Wq(e)),Hq(e)),Bq(e)),Fq(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"}}},Kq=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}}}}},Uq=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},da(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ua(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},ua(e))}}}},Xq=Kt("Pagination",e=>{const t=St(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"},Fv(e),Bv(e));return [Gq(t),Uq(t),e.wireframe&&Kq(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 qq=function(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 Yq=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=qq(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=p$(c),{getPrefixCls:h,direction:g,pagination:v={}}=m__namespace.useContext(rt),p=h("pagination",t),[b,y]=Xq(p),C=u??v.showSizeChanger,w=m__namespace.useMemo(()=>{const R=m__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),k=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?m__namespace.createElement(Ci,null):m__namespace.createElement(Jc,null)),A=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?m__namespace.createElement(Jc,null):m__namespace.createElement(Ci,null)),L=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?m__namespace.createElement(yy,{className:`${p}-item-link-icon`}):m__namespace.createElement(by,{className:`${p}-item-link-icon`}),R)),T=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?m__namespace.createElement(by,{className:`${p}-item-link-icon`}):m__namespace.createElement(yy,{className:`${p}-item-link-icon`}),R));return {prevIcon:k,nextIcon:A,jumpPrevIcon:L,jumpNextIcon:T}},[g,p]),[x]=ki("Pagination",cw),$=Object.assign(Object.assign({},x),s),S=tr(i),E=S==="small"||!!(f&&!S&&c),I=h("select",n),O=K({[`${p}-mini`]:E,[`${p}-rtl`]:g==="rtl"},v==null?void 0:v.className,r,o,y),M=Object.assign(Object.assign({},v==null?void 0:v.style),a);return b(m__namespace.createElement(vx,Object.assign({},w,d,{style:M,prefixCls:p,selectPrefixCls:I,className:O,selectComponentClass:l||(E?Tx:Nx),locale:$,showSizeChanger:C})))},Qq=Yq;var Zq={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 Jq=Zq;var eY=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:Jq}))};const tY=m__namespace.forwardRef(eY);var nY=function(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 rY={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},oY=m__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:u}=c;u===ve.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===ve.ENTER&&d&&d();},{style:o,noStyle:a,disabled:i}=e,s=nY(e,["style","noStyle","disabled"]);let l={};return a||(l=Object.assign({},rY)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),m__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),aY=oY,iY=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:s,onRemove:l,showRemove:c}=e,u=K(`${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[f]=ki("Transfer",po.Transfer),h={className:u,title:d},g=m__namespace.createElement("span",{className:`${i}-content-item-text`},n);return c?m__namespace.createElement("li",Object.assign({},h),g,m__namespace.createElement(aY,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":f==null?void 0:f.remove,onClick:()=>{l==null||l(r);}},m__namespace.createElement(tY,null))):(h.onClick=a||r.disabled?void 0:v=>s(r,v),m__namespace.createElement("li",Object.assign({},h),m__namespace.createElement(pl,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),g))},sY=m__namespace.memo(iY),lY=["handleFilter","handleClear","checkedKeys"],cY=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),uY=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,f]=m__namespace.useState(1),h=m__namespace.useMemo(()=>s?cY(typeof s=="object"?s:{}):null,[s]),[g,v]=qt(10,{value:h==null?void 0:h.pageSize});m__namespace.useEffect(()=>{if(h){const S=Math.ceil(r.length/g);f(Math.min(d,S));}},[r,h,g]);const p=(S,E)=>{c(S.key,!o.includes(S.key),E);},b=S=>{u==null||u([S.key]);},y=S=>{f(S);},C=(S,E)=>{f(S),v(E);},w=m__namespace.useMemo(()=>h?r.slice((d-1)*g,d*g):r,[d,r,h,g]);m__namespace.useImperativeHandle(t,()=>({items:w}));const x=h?m__namespace.createElement(Qq,{size:"small",disabled:a,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:C}):null,$=K(`${n}-content`,{[`${n}-content-show-remove`]:i});return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("ul",{className:$,onScroll:l},(w||[]).map(S=>{let{renderedEl:E,renderedText:I,item:O}=S;return m__namespace.createElement(sY,{key:O.key,item:O,renderedText:I,renderedEl:E,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(O.key),disabled:a||O.disabled})})),x)},dY=m__namespace.forwardRef(uY),fY=e=>{const{getPrefixCls:t,direction:n}=m.useContext(rt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=Hv(i),c=K(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),u=m.useContext(Or),d=m.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(m__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m__namespace.createElement(Or.Provider,{value:d},e.children)))},mY=fY;function Fa(e){return !!(e.addonBefore||e.addonAfter)}function Vf(e){return !!(e.prefix||e.suffix||e.allowClear)}function ou(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.type!=="file"&&(e.value=r),n(o);return}n(o);}}function zx(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);}}}}var Wv=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,f=t.disabled,h=t.readOnly,g=t.focused,v=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,C=t.hidden,w=t.classes,x=t.classNames,$=t.dataAttrs,S=t.styles,E=t.components,I=(E==null?void 0:E.affixWrapper)||"span",O=(E==null?void 0:E.groupWrapper)||"span",M=(E==null?void 0:E.wrapper)||"span",R=(E==null?void 0:E.groupAddon)||"span",k=m.useRef(null),A=function(Q){var ee;(ee=k.current)!==null&&ee!==void 0&&ee.contains(Q.target)&&(v==null||v());},L=function(){var Q;if(!p)return null;var ee=!f&&!h&&b,W="".concat(a,"-clear-icon"),Z=ut(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return m.createElement("span",{onClick:y,onMouseDown:function(ue){return ue.preventDefault()},className:K(W,(Q={},F(Q,"".concat(W,"-hidden"),!ee),F(Q,"".concat(W,"-has-suffix"),!!s),Q)),role:"button",tabIndex:-1},Z)},T=m.cloneElement(o,{value:b,hidden:C,className:K((n=o.props)===null||n===void 0?void 0:n.className,!Vf(t)&&!Fa(t)&&u)||null,style:q(q({},(r=o.props)===null||r===void 0?void 0:r.style),!Vf(t)&&!Fa(t)?d:{})});if(Vf(t)){var P,_="".concat(a,"-affix-wrapper"),z=K(_,(P={},F(P,"".concat(_,"-disabled"),f),F(P,"".concat(_,"-focused"),g),F(P,"".concat(_,"-readonly"),h),F(P,"".concat(_,"-input-with-clear-btn"),s&&p&&b),P),!Fa(t)&&u,w==null?void 0:w.affixWrapper,x==null?void 0:x.affixWrapper),j=(s||p)&&m.createElement("span",{className:K("".concat(a,"-suffix"),x==null?void 0:x.suffix),style:S==null?void 0:S.suffix},L(),s);T=m.createElement(I,Re({className:z,style:q(q({},Fa(t)?void 0:d),S==null?void 0:S.affixWrapper),hidden:!Fa(t)&&C,onClick:A},$==null?void 0:$.affixWrapper,{ref:k}),i&&m.createElement("span",{className:K("".concat(a,"-prefix"),x==null?void 0:x.prefix),style:S==null?void 0:S.prefix},i),m.cloneElement(o,{value:b,hidden:null}),j);}if(Fa(t)){var H="".concat(a,"-group"),B="".concat(H,"-addon"),V=K("".concat(a,"-wrapper"),H,w==null?void 0:w.wrapper),G=K("".concat(a,"-group-wrapper"),u,w==null?void 0:w.group);return m.createElement(O,{className:G,style:d,hidden:C},m.createElement(M,{className:V},l&&m.createElement(R,{className:B},l),m.cloneElement(T,{hidden:null}),c&&m.createElement(R,{className:B},c)))}return T},hY=["show"];function jx(e,t){return m__namespace.useMemo(function(){var n={};t&&(n.show=ut(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,o=r.show,a=tt(r,hY);return q(q({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var gY=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],vY=m.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,f=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,p=e.count,b=e.type,y=b===void 0?"text":b,C=e.classes,w=e.classNames,x=e.styles,$=e.onCompositionStart,S=e.onCompositionEnd,E=tt(e,gY),I=m.useState(!1),O=J(I,2),M=O[0],R=O[1],k=m.useRef(!1),A=m.useRef(null),L=function(re){A.current&&zx(A.current,re);},T=qt(e.defaultValue,{value:e.value}),P=J(T,2),_=P[0],z=P[1],j=_==null?"":String(_),H=m.useState(null),B=J(H,2),V=B[0],G=B[1],X=jx(p,v),Q=X.max||h,ee=X.strategy(j),W=!!Q&&ee>Q;m.useImperativeHandle(t,function(){return {focus:L,blur:function(){var re;(re=A.current)===null||re===void 0||re.blur();},setSelectionRange:function(re,he,Ce){var ke;(ke=A.current)===null||ke===void 0||ke.setSelectionRange(re,he,Ce);},select:function(){var re;(re=A.current)===null||re===void 0||re.select();},input:A.current}}),m.useEffect(function(){R(function(te){return te&&u?!1:te});},[u]);var Z=function(re,he){var Ce=he;if(!k.current&&X.exceedFormatter&&X.max&&X.strategy(he)>X.max&&(Ce=X.exceedFormatter(he,{max:X.max}),he!==Ce)){var ke,We;G([((ke=A.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((We=A.current)===null||We===void 0?void 0:We.selectionEnd)||0]);}z(Ce),A.current&&ou(A.current,re,r,Ce);};m.useEffect(function(){if(V){var te;(te=A.current)===null||te===void 0||te.setSelectionRange.apply(te,Ae(V));}},[V]);var U=function(re){Z(re,re.target.value);},ue=function(re){k.current=!1,Z(re,re.currentTarget.value),S==null||S(re);},le=function(re){i&&re.key==="Enter"&&i(re),s==null||s(re);},ie=function(re){R(!0),o==null||o(re);},ce=function(re){R(!1),a==null||a(re);},se=function(re){z(""),L(),A.current&&ou(A.current,re,r);},Y=W&&"".concat(c,"-out-of-range"),ae=function(){var re=jn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return m.createElement("input",Re({autoComplete:n},re,{onChange:U,onFocus:ie,onBlur:ce,onKeyDown:le,className:K(c,F({},"".concat(c,"-disabled"),u),w==null?void 0:w.input),style:x==null?void 0:x.input,ref:A,size:d,type:y,onCompositionStart:function(Ce){k.current=!0,$==null||$(Ce);},onCompositionEnd:ue}))},me=function(){var re=Number(Q)>0;if(g||X.show){var he=X.showFormatter?X.showFormatter({value:j,count:ee,maxLength:Q}):"".concat(ee).concat(re?" / ".concat(Q):"");return m.createElement(m.Fragment,null,X.show&&m.createElement("span",{className:K("".concat(c,"-show-count-suffix"),F({},"".concat(c,"-show-count-has-suffix"),!!g),w==null?void 0:w.count),style:q({},x==null?void 0:x.count)},he),g)}return null};return m.createElement(Wv,Re({},E,{prefixCls:c,className:K(f,Y),inputElement:ae(),handleReset:se,value:j,focused:M,triggerFocus:L,suffix:me(),disabled:u,classes:C,classNames:w,styles:x}))});function Fx(e,t){const n=m.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 m.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function pY(e){return !!(e.prefix||e.suffix||e.allowClear)}var bY=function(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 yY(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 CY=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:h,className:g,style:v,styles:p,rootClassName:b,onChange:y,classNames:C}=e,w=bY(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:$,input:S}=m.useContext(rt),E=x("input",r),I=m.useRef(null),[O,M]=Hv(E),{compactSize:R,compactItemClassnames:k}=Ai(E,$),A=tr(W=>{var Z;return (Z=i??R)!==null&&Z!==void 0?Z:W}),L=m.useContext(Kr),T=s??L,{status:P,hasFeedback:_,feedbackIcon:z}=m.useContext(Or),j=El(P,a),H=pY(e)||!!_;m.useRef(H);const B=Fx(I,!0),V=W=>{B(),l==null||l(W);},G=W=>{B(),c==null||c(W);},X=W=>{B(),y==null||y(W);},Q=(_||u)&&m.createElement(m.Fragment,null,u,_&&z);let ee;return typeof d=="object"&&(d!=null&&d.clearIcon)?ee=d:d&&(ee={clearIcon:m.createElement(Lv,null)}),O(m.createElement(vY,Object.assign({ref:Xn(t,I),prefixCls:E,autoComplete:S==null?void 0:S.autoComplete},w,{disabled:T,onBlur:V,onFocus:G,style:Object.assign(Object.assign({},S==null?void 0:S.style),v),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),p),suffix:Q,allowClear:ee,className:K(g,b,k,S==null?void 0:S.className),onChange:X,addonAfter:f&&m.createElement(gi,null,m.createElement(As,{override:!0,status:!0},f)),addonBefore:h&&m.createElement(gi,null,m.createElement(As,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},C),S==null?void 0:S.classNames),{input:K({[`${E}-sm`]:A==="small",[`${E}-lg`]:A==="large",[`${E}-rtl`]:$==="rtl",[`${E}-borderless`]:!o},!H&&jr(E,j),C==null?void 0:C.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,M)}),classes:{affixWrapper:K({[`${E}-affix-wrapper-sm`]:A==="small",[`${E}-affix-wrapper-lg`]:A==="large",[`${E}-affix-wrapper-rtl`]:$==="rtl",[`${E}-affix-wrapper-borderless`]:!o},jr(`${E}-affix-wrapper`,j,_),M),wrapper:K({[`${E}-group-rtl`]:$==="rtl"},M),group:K({[`${E}-group-wrapper-sm`]:A==="small",[`${E}-group-wrapper-lg`]:A==="large",[`${E}-group-wrapper-rtl`]:$==="rtl",[`${E}-group-wrapper-disabled`]:T},jr(`${E}-group-wrapper`,j,_),M)}})))}),Vv=CY;var SY={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 wY=SY;var $Y=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:wY}))};const xY=m__namespace.forwardRef($Y);var EY={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 IY=EY;var OY=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:IY}))};const PY=m__namespace.forwardRef(OY);var RY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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 MY=e=>e?m__namespace.createElement(PY,null):m__namespace.createElement(xY,null),_Y={click:"onClick",hover:"onMouseOver"},TY=m__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=m.useState(()=>r?n.visible:!1),i=m.useRef(null);m__namespace.useEffect(()=>{r&&a(n.visible);},[r,n]);const s=Fx(i),l=()=>{const{disabled:x}=e;x||(o&&s(),a($=>{var S;const E=!$;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,E)),E}));},c=x=>{const{action:$="click",iconRender:S=MY}=e,E=_Y[$]||"",I=S(o),O={[E]:l,className:`${x}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault();},onMouseUp:M=>{M.preventDefault();}};return m__namespace.cloneElement(m__namespace.isValidElement(I)?I:m__namespace.createElement("span",null,I),O)},{className:u,prefixCls:d,inputPrefixCls:f,size:h}=e,g=RY(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=m__namespace.useContext(rt),p=v("input",f),b=v("input-password",d),y=n&&c(b),C=K(b,u,{[`${b}-${h}`]:!!h}),w=Object.assign(Object.assign({},jn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:y});return h&&(w.size=h),m__namespace.createElement(Vv,Object.assign({ref:Xn(t,i)},w))}),NY=TY;var kY=function(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 AY=m__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:f,onCompositionStart:h,onCompositionEnd:g}=e,v=kY(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=m__namespace.useContext(rt),y=m__namespace.useRef(!1),C=p("input-search",n),w=p("input",r),{compactSize:x}=Ai(C,b),$=tr(j=>{var H;return (H=a??x)!==null&&H!==void 0?H:j}),S=m__namespace.useRef(null),E=j=>{j&&j.target&&j.type==="click"&&d&&d(j.target.value,j,{source:"clear"}),f&&f(j);},I=j=>{var H;document.activeElement===((H=S.current)===null||H===void 0?void 0:H.input)&&j.preventDefault();},O=j=>{var H,B;d&&d((B=(H=S.current)===null||H===void 0?void 0:H.input)===null||B===void 0?void 0:B.value,j,{source:"input"});},M=j=>{y.current||c||O(j);},R=typeof s=="boolean"?m__namespace.createElement(Dv,null):null,k=`${C}-button`;let A;const L=s||{},T=L.type&&L.type.__ANT_BUTTON===!0;T||L.type==="button"?A=Kn(L,Object.assign({onMouseDown:I,onClick:j=>{var H,B;(B=(H=L==null?void 0:L.props)===null||H===void 0?void 0:H.onClick)===null||B===void 0||B.call(H,j),O(j);},key:"enterButton"},T?{className:k,size:$}:{})):A=m__namespace.createElement(Zt,{className:k,type:s?"primary":void 0,size:$,disabled:u,key:"enterButton",onMouseDown:I,onClick:O,loading:c,icon:R},s),l&&(A=[A,Kn(l,{key:"addonAfter"})]);const P=K(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${$}`]:!!$,[`${C}-with-button`]:!!s},o),_=j=>{y.current=!0,h==null||h(j);},z=j=>{y.current=!1,g==null||g(j);};return m__namespace.createElement(Vv,Object.assign({ref:Xn(S,t),onPressEnter:M},v,{size:$,onCompositionStart:_,onCompositionEnd:z,prefixCls:w,addonAfter:A,suffix:i,onChange:E,className:P,disabled:u}))}),LY=AY;var DY=` 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; `,zY=["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"],Gf={},wr;function jY(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&&Gf[n])return Gf[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=zY.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Gf[n]=l),l}function FY(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;wr||(wr=document.createElement("textarea"),wr.setAttribute("tab-index","-1"),wr.setAttribute("aria-hidden","true"),document.body.appendChild(wr)),e.getAttribute("wrap")?wr.setAttribute("wrap",e.getAttribute("wrap")):wr.removeAttribute("wrap");var o=jY(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;wr.setAttribute("style","".concat(l,";").concat(DY)),wr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=wr.scrollHeight;if(s==="border-box"?f+=i:s==="content-box"&&(f-=a),n!==null||r!==null){wr.value=" ";var h=wr.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+i),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+i),d=f>u?"":"hidden",f=Math.min(u,f));}var g={height:f,overflowY:d,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var BY=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Kf=0,Uf=1,Xf=2,HY=m__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 f=tt(n,BY),h=qt(o,{value:a,postState:function(G){return G??""}}),g=J(h,2),v=g[0],p=g[1],b=function(G){p(G.target.value),d==null||d(G);},y=m__namespace.useRef();m__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=m__namespace.useMemo(function(){return i&&ut(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=J(C,2),x=w[0],$=w[1],S=!!i,E=function(){try{if(document.activeElement===y.current){var G=y.current,X=G.selectionStart,Q=G.selectionEnd,ee=G.scrollTop;y.current.setSelectionRange(X,Q),y.current.scrollTop=ee;}}catch{}},I=m__namespace.useState(Xf),O=J(I,2),M=O[0],R=O[1],k=m__namespace.useState(),A=J(k,2),L=A[0],T=A[1],P=function(){R(Kf);};Xt(function(){S&&P();},[a,x,$,S]),Xt(function(){if(M===Kf)R(Uf);else if(M===Uf){var V=FY(y.current,!1,x,$);R(Xf),T(V);}else E();},[M]);var _=m__namespace.useRef(),z=function(){Rt.cancel(_.current);},j=function(G){M===Xf&&(s==null||s(G),i&&(z(),_.current=Rt(function(){P();})));};m__namespace.useEffect(function(){return z},[]);var H=S?L:null,B=q(q({},c),H);return (M===Kf||M===Uf)&&(B.overflowY="hidden",B.overflowX="hidden"),m__namespace.createElement(Er,{onResize:j,disabled:!(i||s)},m__namespace.createElement("textarea",Re({},f,{ref:y,style:B,className:K(r,l,F({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),WY=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],VY=m.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,h=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,p=e.classes,b=e.showCount,y=e.count,C=e.className,w=e.style,x=e.disabled,$=e.hidden,S=e.classNames,E=e.styles,I=e.onResize,O=tt(e,WY),M=qt(o,{value:a,defaultValue:o}),R=J(M,2),k=R[0],A=R[1],L=k==null?"":String(k),T=m.useState(!1),P=J(T,2),_=P[0],z=P[1],j=m.useRef(!1),H=m.useState(null),B=J(H,2),V=B[0],G=B[1],X=m.useRef(null),Q=function(){var we;return (we=X.current)===null||we===void 0?void 0:we.textArea},ee=function(){Q().focus();};m.useImperativeHandle(t,function(){return {resizableTextArea:X.current,focus:ee,blur:function(){Q().blur();}}}),m.useEffect(function(){z(function(Ie){return !x&&Ie});},[x]);var W=m.useState(null),Z=J(W,2),U=Z[0],ue=Z[1];m.useEffect(function(){if(U){var Ie;(Ie=Q()).setSelectionRange.apply(Ie,Ae(U));}},[U]);var le=jx(y,b),ie=(n=le.max)!==null&&n!==void 0?n:u,ce=Number(ie)>0,se=le.strategy(L),Y=!!ie&&se>ie,ae=function(we,qe){var nt=qe;!j.current&&le.exceedFormatter&&le.max&&le.strategy(qe)>le.max&&(nt=le.exceedFormatter(qe,{max:le.max}),qe!==nt&&ue([Q().selectionStart||0,Q().selectionEnd||0])),A(nt),ou(we.currentTarget,we,l,nt);},me=function(we){j.current=!0,d==null||d(we);},te=function(we){j.current=!1,ae(we,we.currentTarget.value),f==null||f(we);},re=function(we){ae(we,we.target.value);},he=function(we){var qe=O.onPressEnter,nt=O.onKeyDown;we.key==="Enter"&&qe&&qe(we),nt==null||nt(we);},Ce=function(we){z(!0),i==null||i(we);},ke=function(we){z(!1),s==null||s(we);},We=function(we){A(""),ee(),ou(Q(),we,l);},Ge=h,Me;le.show&&(le.showFormatter?Me=le.showFormatter({value:L,count:se,maxLength:ie}):Me="".concat(se).concat(ce?" / ".concat(ie):""),Ge=m.createElement(m.Fragment,null,Ge,m.createElement("span",{className:K("".concat(v,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Me)));var Xe=function(we){var qe;I==null||I(we),(qe=Q())!==null&&qe!==void 0&&qe.style.height&&G(!0);},ze=!O.autoSize&&!b&&!c,He=m.createElement(Wv,{value:L,allowClear:c,handleReset:We,suffix:Ge,prefixCls:v,classes:{affixWrapper:K(p==null?void 0:p.affixWrapper,(r={},F(r,"".concat(v,"-show-count"),b),F(r,"".concat(v,"-textarea-allow-clear"),c),r))},disabled:x,focused:_,className:K(C,Y&&"".concat(v,"-out-of-range")),style:q(q({},w),V&&!ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Me=="string"?Me:void 0}},hidden:$,inputElement:m.createElement(HY,Re({},O,{maxLength:u,onKeyDown:he,onChange:re,onFocus:Ce,onBlur:ke,onCompositionStart:me,onCompositionEnd:te,className:K(S==null?void 0:S.textarea),style:q(q({},E==null?void 0:E.textarea),{},{resize:w==null?void 0:w.resize}),disabled:x,prefixCls:v,onResize:Xe,ref:X}))});return He}),GY=function(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 KY=m.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:d}=e,f=GY(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:h,direction:g}=m__namespace.useContext(rt),v=tr(a),p=m__namespace.useContext(Kr),b=i??p,{status:y,hasFeedback:C,feedbackIcon:w}=m__namespace.useContext(Or),x=El(y,s),$=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>{var M;return {resizableTextArea:(M=$.current)===null||M===void 0?void 0:M.resizableTextArea,focus:R=>{var k,A;yY((A=(k=$.current)===null||k===void 0?void 0:k.resizableTextArea)===null||A===void 0?void 0:A.textArea,R);},blur:()=>{var R;return (R=$.current)===null||R===void 0?void 0:R.blur()}}});const S=h("input",r);let E;typeof l=="object"&&(l!=null&&l.clearIcon)?E=l:l&&(E={clearIcon:m__namespace.createElement(Lv,null)});const[I,O]=Hv(S);return I(m__namespace.createElement(VY,Object.assign({},f,{disabled:b,allowClear:E,className:K(d,u),classes:{affixWrapper:K(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:g==="rtl",[`${S}-affix-wrapper-borderless`]:!o,[`${S}-affix-wrapper-sm`]:v==="small",[`${S}-affix-wrapper-lg`]:v==="large",[`${S}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},jr(`${S}-affix-wrapper`,x),O)},classNames:Object.assign(Object.assign({},c),{textarea:K({[`${S}-borderless`]:!o,[`${S}-sm`]:v==="small",[`${S}-lg`]:v==="large"},jr(S,x),O,c==null?void 0:c.textarea)}),prefixCls:S,suffix:C&&m__namespace.createElement("span",{className:`${S}-textarea-suffix`},w),ref:$})))}),UY=KY,Pl=Vv;Pl.Group=mY;Pl.Search=LY;Pl.TextArea=UY;Pl.Password=NY;const Bx=Pl,XY=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,s=m__namespace.useCallback(l=>{a==null||a(l),l.target.value===""&&(i==null||i());},[a]);return m__namespace.createElement(Bx,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:m__namespace.createElement(Dv,null)})},Hx=XY,qY=()=>null;function YY(e){return !!(e&&!vo(e)&&Object.prototype.toString.call(e)==="[object Object]")}function ns(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const QY=e=>e!==void 0,ZY=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:f,removeAll:h,removeCurrent:g,showSelectAll:v=!0,showRemove:p,pagination:b,direction:y,itemsUnit:C,itemUnit:w,selectAllLabel:x,selectionsIcon:$,footer:S,renderList:E,onItemSelectAll:I,onItemRemove:O,handleFilter:M,handleClear:R,filterOption:k,render:A=qY}=e,[L,T]=m.useState(""),P=m.useRef({}),_=Y=>{T(Y.target.value),M(Y);},z=()=>{T(""),R();},j=(Y,ae)=>k?k(L,ae,y):Y.includes(L),H=Y=>{let ae=E?E(Object.assign(Object.assign({},Y),{onItemSelect:(te,re)=>Y.onItemSelect(te,re)})):null;const me=!!ae;return me||(ae=m.createElement(dY,Object.assign({ref:P},Y))),{customize:me,bodyContent:ae}},B=Y=>{const ae=A(Y),me=YY(ae);return {item:Y,renderedEl:me?ae.label:ae,renderedText:me?ae.value:ae}},V=m.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[G,X]=m.useMemo(()=>{const Y=[],ae=[];return n.forEach(me=>{const te=B(me);L&&!j(te.renderedText,me)||(Y.push(me),ae.push(te));}),[Y,ae]},[n,L]),Q=m.useMemo(()=>{if(o.length===0)return "none";const Y=ru(o);return G.every(ae=>Y.has(ae.key)||!!ae.disabled)?"all":"part"},[o,G]),ee=m.useMemo(()=>{const Y=i?m.createElement("div",{className:`${t}-body-search-wrapper`},m.createElement(Hx,{prefixCls:`${t}-search`,onChange:_,handleClear:z,placeholder:l,value:L,disabled:a})):null,{customize:ae,bodyContent:me}=H(Object.assign(Object.assign({},jn(e,lY)),{filteredItems:G,filteredRenderItems:X,selectedKeys:o}));let te;return ae?te=m.createElement("div",{className:`${t}-body-customize-wrapper`},me):te=G.length?me:m.createElement("div",{className:`${t}-body-not-found`},V),m.createElement("div",{className:K(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},Y,te)},[i,t,l,L,a,o,G,X,V]),W=m.createElement(pl,{disabled:n.length===0||a,checked:Q==="all",indeterminate:Q==="part",className:`${t}-checkbox`,onChange:()=>{I==null||I(G.filter(Y=>!Y.disabled).map(Y=>{let{key:ae}=Y;return ae}),Q!=="all");}}),Z=(Y,ae)=>{if(x)return typeof x=="function"?x({selectedCount:Y,totalCount:ae}):x;const me=ae>1?C:w;return m.createElement(m.Fragment,null,(Y>0?`${Y}/`:"")+ae," ",me)},U=S&&(S.length<2?S(e):S(e,{direction:y})),ue=K(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!U}),le=U?m.createElement("div",{className:`${t}-footer`},U):null,ie=!p&&!b&&W;let ce;p?ce=[b?{key:"removeCurrent",label:g,onClick(){var Y;const ae=ns((((Y=P.current)===null||Y===void 0?void 0:Y.items)||[]).map(me=>me.item));O==null||O(ae);}}:null,{key:"removeAll",label:h,onClick(){O==null||O(ns(G));}}].filter(Boolean):ce=[{key:"selectAll",label:u,onClick(){const Y=ns(G);I==null||I(Y,Y.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var Y;const ae=((Y=P.current)===null||Y===void 0?void 0:Y.items)||[];I==null||I(ns(ae.map(me=>me.item)),!0);}}:null,{key:"selectInvert",label:f,onClick(){var Y;const ae=ns(b?(((Y=P.current)===null||Y===void 0?void 0:Y.items)||[]).map(re=>re.item):G),me=new Set(o),te=[];ae.forEach(re=>{me.has(re)||te.push(re);}),I==null||I(te,"replace");}}];const se=m.createElement(Ov,{className:`${t}-header-dropdown`,menu:{items:ce},disabled:a},QY($)?$:m.createElement(_v,null));return m.createElement("div",{className:ue,style:s},m.createElement("div",{className:`${t}-header`},v?m.createElement(m.Fragment,null,ie,se):null,m.createElement("span",{className:`${t}-header-selected`},Z(o.length,G.length)),m.createElement("span",{className:`${t}-header-title`},r)),ee,le)},Ph=ZY,JY=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 m__namespace.createElement("div",{className:l,style:c},m__namespace.createElement(Zt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?m__namespace.createElement(Ci,null):m__namespace.createElement(Jc,null)},a),!d&&m__namespace.createElement(Zt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?m__namespace.createElement(Jc,null):m__namespace.createElement(Ci,null)},o))},Wx=JY,eQ=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"}}}},_y=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},tQ=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},_y(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},_y(e,e.colorWarning))}},nQ=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:f,listWidthLG:h,fontSizeIcon:g,marginXS:v,paddingSM:p,lineType:b,antCls:y,iconCls:C,motionDurationSlow:w,controlItemBgHover:x,borderRadiusLG:$,colorBgContainer:S,colorText:E,controlItemBgActiveHover:I}=e;return {display:"flex",flexDirection:"column",width:f,height:d,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${s-o}px ${p}px ${s}px`,color:E,background:S,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${$}px ${$}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},ca),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},Ca()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${l}px ${p}px`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},ca),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${w}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${l}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,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}}},rQ=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({},Ft(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:nQ(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)}})}},oQ=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},aQ=Kt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,a=Math.round(t*n),i=St(e,{transferHeaderVerticalPadding:Math.ceil((o-r-a)/2)});return [rQ(i),eQ(i),tQ(i),oQ(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}}),Bd=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:f,showSelectAll:h,oneWay:g,pagination:v,status:p,prefixCls:b,className:y,rootClassName:C,selectionsIcon:w,filterOption:x,render:$,footer:S,children:E,rowKey:I,onScroll:O,onChange:M,onSearch:R,onSelectChange:k}=e,{getPrefixCls:A,renderEmpty:L,direction:T,transfer:P}=m.useContext(rt),_=A("transfer",b),[z,j]=aQ(_),[H,B,V]=WU(t,I,n),[G,X,Q,ee]=GU(B,V,r),[W,Z]=vy(fe=>fe.key),[U,ue]=vy(fe=>fe.key),le=m.useCallback((fe,oe)=>{if(fe==="left"){const ye=typeof oe=="function"?oe(G||[]):oe;Q(ye);}else {const ye=typeof oe=="function"?oe(X||[]):oe;ee(ye);}},[G,X]),ie=(fe,oe)=>{(fe==="left"?Z:ue)(oe);},ce=m.useCallback((fe,oe)=>{fe==="left"?k==null||k(oe,X):k==null||k(G,oe);},[G,X]),se=fe=>{var oe;return (oe=c??fe.titles)!==null&&oe!==void 0?oe:[]},Y=fe=>{O==null||O("left",fe);},ae=fe=>{O==null||O("right",fe);},me=fe=>{const oe=fe==="right"?G:X,ye=kU(H),de=oe.filter(lt=>!ye.has(lt)),pe=ru(de),Le=fe==="right"?de.concat(n):n.filter(lt=>!pe.has(lt)),Ue=fe==="right"?"left":"right";le(Ue,[]),ce(Ue,[]),M==null||M(Le,fe,de);},te=()=>{me("left"),ie("left",null);},re=()=>{me("right"),ie("right",null);},he=(fe,oe,ye)=>{le(fe,de=>{let pe=[];if(ye==="replace")pe=oe;else if(ye)pe=Array.from(new Set([].concat(Ae(de),Ae(oe))));else {const Le=ru(oe);pe=de.filter(Ue=>!Le.has(Ue));}return ce(fe,pe),pe}),ie(fe,null);},Ce=(fe,oe)=>{he("left",fe,oe);},ke=(fe,oe)=>{he("right",fe,oe);},We=fe=>R==null?void 0:R("left",fe.target.value),Ge=fe=>R==null?void 0:R("right",fe.target.value),Me=()=>R==null?void 0:R("left",""),Xe=()=>R==null?void 0:R("right",""),ze=(fe,oe,ye,de,pe)=>{oe.has(ye)&&(oe.delete(ye),ie(fe,null)),de&&(oe.add(ye),ie(fe,pe));},He=(fe,oe,ye,de)=>{(fe==="left"?W:U)(de,oe,ye);},Ie=(fe,oe,ye,de)=>{const pe=fe==="left",Le=Ae(pe?G:X),Ue=new Set(Le),lt=Ae(pe?B:V).filter(wt=>!wt.disabled),it=lt.findIndex(wt=>wt.key===oe);de&&Le.length>0?He(fe,lt,Ue,it):ze(fe,Ue,oe,ye,it);const Et=Array.from(Ue);ce(fe,Et),e.selectedKeys||le(fe,Et);},we=(fe,oe,ye)=>{Ie("left",fe,oe,ye==null?void 0:ye.shiftKey);},qe=(fe,oe,ye)=>{Ie("right",fe,oe,ye==null?void 0:ye.shiftKey);},nt=fe=>{le("right",[]),M==null||M(n.filter(oe=>!fe.includes(oe)),"left",Ae(fe));},bt=fe=>typeof s=="function"?s({direction:fe}):s||{},Ze=m.useContext(Or),{hasFeedback:Je,status:gt}=Ze,vt=fe=>Object.assign(Object.assign(Object.assign({},fe),{notFoundContent:(L==null?void 0:L("Transfer"))||m.createElement(gx,{componentName:"Transfer"})}),l),st=El(gt,p),dt=!E&&v,et=X.length>0,$e=G.length>0,xe=K(_,{[`${_}-disabled`]:u,[`${_}-customize-list`]:!!E,[`${_}-rtl`]:T==="rtl"},jr(_,st,Je),P==null?void 0:P.className,y,C,j),[_e]=ki("Transfer",po.Transfer),ge=vt(_e),[Te,Se]=se(ge);return z(m.createElement("div",{className:xe,style:Object.assign(Object.assign({},P==null?void 0:P.style),i)},m.createElement(Ph,Object.assign({prefixCls:`${_}-list`,titleText:Te,dataSource:B,filterOption:x,style:bt("left"),checkedKeys:G,handleFilter:We,handleClear:Me,onItemSelect:we,onItemSelectAll:Ce,render:$,showSearch:d,renderList:E,footer:S,onScroll:Y,disabled:u,direction:T==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:dt,selectionsIcon:w},ge)),m.createElement(Wx,{className:`${_}-operation`,rightActive:$e,rightArrowText:a[0],moveToRight:re,leftActive:et,leftArrowText:a[1],moveToLeft:te,style:f,disabled:u,direction:T,oneWay:g}),m.createElement(Ph,Object.assign({prefixCls:`${_}-list`,titleText:Se,dataSource:V,filterOption:x,style:bt("right"),checkedKeys:X,handleFilter:Ge,handleClear:Xe,onItemSelect:qe,onItemSelectAll:ke,onItemRemove:nt,render:$,showSearch:d,renderList:E,footer:S,onScroll:ae,disabled:u,direction:T==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:g,pagination:dt,selectionsIcon:w},ge))))};Bd.List=Ph;Bd.Search=Hx;Bd.Operation=Wx;const iQ=Bd;class Gv{constructor(t=20){Ct(this,"returnQueue",[]);Ct(this,"bufferQueue",[]);Ct(this,"ps");this.ps=t;}sliceFromQueue(){if(this.bufferQueue.length){const t=this.bufferQueue.slice(0,this.ps);return this.bufferQueue=this.bufferQueue.slice(this.ps),this.doReturnItems(t)}}doReturnItems(t){return this.returnQueue.push(...t||[]),t}restore(){this.bufferQueue=[...this.returnQueue,...this.bufferQueue],this.returnQueue=[];}}function Vx(e){return `https://space.bilibili.com/${Xu()}/favlist?fid=${e}`}const Es=class Es{constructor(){Ct(this,"useShuffle");Ct(this,"total",0);Ct(this,"allFolderServices",[]);Ct(this,"folderServices",[]);Ct(this,"qs",new Gv(Es.PAGE_SIZE));Ct(this,"foldersLoaded",!1);this.useShuffle=xt.shuffleForFav;}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.qs.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return D(cQ,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!!this.hasMore){if(!this.useShuffle){if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const t=this.folderServices.find(r=>r.hasMore);if(!t)return;const n=await t.loadMore();return this.qs.doReturnItems(t.page===1?[{api:"separator",uniqId:`fav-folder-${t.entry.id}`,text:`收藏夹: ${t.entry.title}`},...n||[]]:n)}if(this.qs.bufferQueue.length<Es.PAGE_SIZE){for(;this.folderHasMore&&this.qs.bufferQueue.length<100;){const t=this.folderServices.filter(o=>o.hasMore),n=oi(t).slice(0,5),r=(await Promise.all(n.map(async o=>await o.loadMore()||[]))).flat();this.qs.bufferQueue=[...this.qs.bufferQueue,...r];}this.qs.bufferQueue=oi(this.qs.bufferQueue);}return this.qs.sliceFromQueue()}}async getAllFolders(){const t=await Gx();this.foldersLoaded=!0,this.allFolderServices=t.map(n=>new sQ(n)),this.folderServices=this.allFolderServices.filter(n=>!xt.excludeFavFolderIds.includes(n.entry.id.toString())),this.total=this.folderServices.reduce((n,r)=>n+r.entry.media_count,0);}};Ct(Es,"PAGE_SIZE",20);let Rh=Es;async function Gx(){return (await on.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Xu()}})).data.data.list}class sQ{constructor(t){Ct(this,"entry");Ct(this,"hasMore");Ct(this,"info");Ct(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await on.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(!Gr(n)){Ot(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 lQ={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function cQ({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=en(),r=Rl(),[o,a]=m.useState(!1),i=ot((u,d,f)=>{a(!0),Dn({excludeFavFolderIds:u});}),s=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).length,[e,t]),l=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=ot(u=>{u?a(!1):o&&(r==null||r());});return be(It,{children:[D(_d,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:D(It,{children:D(iQ,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:be(Oo,{color:"success",css:lQ,children:["收藏夹(",s,") 收藏(",l,")"]})}),D(xl,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:async u=>{Dn({shuffleForFav:u}),await Ln(100),r==null||r();}})]})}var uQ=lg,dQ=lv,fQ=1,mQ=2;function hQ(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 uQ;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?dQ(u,c,fQ|mQ,r,d):f))return !1}}return !0}var gQ=hQ,vQ=io;function pQ(e){return e===e&&!vQ(e)}var Kx=pQ,bQ=Kx,yQ=Js;function CQ(e){for(var t=yQ(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,bQ(o)];}return t}var SQ=CQ;function wQ(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Ux=wQ,$Q=gQ,xQ=SQ,EQ=Ux;function IQ(e){var t=xQ(e);return t.length==1&&t[0][2]?EQ(t[0][0],t[0][1]):function(n){return n===e||$Q(n,e,t)}}var OQ=IQ,PQ=Gu;function RQ(e,t,n){var r=e==null?void 0:PQ(e,t);return r===void 0?n:r}var MQ=RQ,_Q=lv,TQ=MQ,NQ=DC,kQ=wg,AQ=Kx,LQ=Ux,DQ=Ti,zQ=1,jQ=2;function FQ(e,t){return kQ(e)&&AQ(t)?LQ(DQ(e),t):function(n){var r=TQ(n,e);return r===void 0&&r===t?NQ(n,e):_Q(t,r,zQ|jQ)}}var BQ=FQ;function HQ(e){return function(t){return t==null?void 0:t[e]}}var WQ=HQ,VQ=Gu;function GQ(e){return function(t){return VQ(t,e)}}var KQ=GQ,UQ=WQ,XQ=KQ,qQ=wg,YQ=Ti;function QQ(e){return qQ(e)?UQ(YQ(e)):XQ(e)}var ZQ=QQ,JQ=OQ,eZ=BQ,tZ=TC,nZ=Vr,rZ=ZQ;function oZ(e){return typeof e=="function"?e:e==null?tZ:typeof e=="object"?nZ(e)?eZ(e[0],e[1]):JQ(e):rZ(e)}var aZ=oZ;function iZ(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 sZ=iZ;function lZ(e){return e!==e}var cZ=lZ;function uZ(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}var dZ=uZ,fZ=sZ,mZ=cZ,hZ=dZ;function gZ(e,t,n){return t===t?hZ(e,t,n):fZ(e,mZ,n)}var vZ=gZ,pZ=vZ;function bZ(e,t){var n=e==null?0:e.length;return !!n&&pZ(e,t,0)>-1}var yZ=bZ;function CZ(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 SZ=CZ;function wZ(){}var $Z=wZ,qf=wC,xZ=$Z,EZ=sv,IZ=1/0,OZ=qf&&1/EZ(new qf([,-0]))[1]==IZ?function(e){return new qf(e)}:xZ,PZ=OZ,RZ=jw,MZ=yZ,_Z=SZ,TZ=Fw,NZ=PZ,kZ=sv,AZ=200;function LZ(e,t,n){var r=-1,o=MZ,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=_Z;else if(a>=AZ){var c=t?null:NZ(e);if(c)return kZ(c);i=!1,o=TZ,l=new RZ;}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 f=l.length;f--;)if(l[f]===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 DZ=LZ,zZ=aZ,jZ=DZ;function FZ(e,t){return e&&e.length?jZ(e,zZ(t)):[]}var BZ=FZ;const zs=Rn(BZ),wu=class wu{constructor(){Ct(this,"page",0);Ct(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var i,s;const n=++this.page,o=(await on.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:wu.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (i=o.data)!=null&&i.item||Ot(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=zs(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"}))}};Ct(wu,"PAGE_SIZE",14);let js=wu;async function Xx(e,t){const n=Xu(),r=Ni(),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:HZ()}),csrf:r}),i=(await on.post("/x/relation/modify",o)).data,s=Gr(i);return s||Ot(i.message||"未知错误"),s}function HZ(){let e,t;const n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{};let 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 WZ=va.extend("service:user:relations:blacklist"),VZ=Qx("follow"),GZ=Qx("remove"),qx={add:VZ,remove:GZ},Yx=`${rn}-blacklist-mids`,KZ=(localStorage.getItem(Yx)||"").split(","),yo=cv(KZ);Uu(yo,e=>{localStorage.setItem(Yx,Array.from(Ms(yo)).join(","));});function UZ(e){const t=Jn(yo);return e&&t.has(e)}function Qx(e){const t=e==="follow"?5:6;return async function(r){const o=await Xx(r,t);return o&&(e==="follow"?yo.add(r):e==="remove"&&yo.delete(r)),o}}async function XZ(){const t=async i=>{const l=(await on.get("/x/relation/blacks",{params:{re_version:0,ps:20,pn:i}})).data;if(!Gr(l))return;const c=l.data.total,u=l.data.list.map(d=>d.mid);return {total:c,mids:u}},n=await t(1);if(!n)return;const{total:r,mids:o=[]}=n;let a=o;if(r){const i=Math.ceil(r/20);for(let s=2;s<=i;s++){const{mids:l=[]}=await t(s)||{};a=a.concat(l);}}return a}(async()=>{await O5();const e=await XZ();return e&&(yo.clear(),e.forEach(t=>{yo.add(t.toString());})),WZ("user blocklist fetched: %o",e),e})();class qZ{constructor(){Ct(this,"hasMore",!0);Ct(this,"page",1);Ct(this,"anonymous");this.anonymous=xt.anonymousForPopularGeneral;}async loadMore(){if(!this.hasMore)return;const n=(await on.get("/x/web-interface/popular",{params:{ps:20,pn:this.page++},withCredentials:!this.anonymous})).data;this.hasMore=!n.data.no_more;let r=(n.data.list||[]).map(o=>({...o,api:"popular-general",uniqId:o.bvid}));return r=r.filter(o=>!yo.has(o.owner.mid.toString())),r}get usageInfo(){return D(YZ,{})}}function YZ(){const{anonymousForPopularGeneral:e}=en(),t=Rl();return D(It,{children:D(xl,{style:{margin:"0 10px"},checked:e,onChange:async n=>{Dn({anonymousForPopularGeneral:n}),await Ln(100),t==null||t();},checkedChildren:"匿名访问",unCheckedChildren:"登录(不可用)访问"})})}let rc=[],Yf="";function Ty(){const e=Do();return [e.format("YYYYMMDD"),e.hour()<18?"lt-18":"gte-18"].join("_")}async function QZ(){return rc.length&&Yf&&Yf===Ty()||(rc=(await on.get("/x/web-interface/popular/series/list")).data.data.list,Yf=Ty()),rc}const qo=class qo{constructor(){Ct(this,"episodesLoaded",!1);Ct(this,"episodes",[]);Ct(this,"id");Ct(this,"useShuffle");Ct(this,"qs",new Gv(qo.PAGE_SIZE));this.id=qo.id++,this.useShuffle=xt.shuffleForPopularWeekly;}get hasMore(){return this.episodesLoaded?!!this.qs.bufferQueue.length||!!this.episodes.length:!0}async loadMore(){if(this.episodesLoaded||(this.episodes=await QZ(),this.episodesLoaded=!0,this.useShuffle&&(this.episodes=oi(this.episodes))),!this.hasMore)return;if(!this.useShuffle){if(this.qs.bufferQueue.length)return this.qs.sliceFromQueue();const n=this.episodes[0],r=n.number,o=await Ny(r);return this.qs.bufferQueue.push({api:"separator",uniqId:`popular-weekly-${r}`,text:`${n.name}`},...o),this.episodes=this.episodes.slice(1),this.qs.sliceFromQueue()}const t=5;for(;this.qs.bufferQueue.length<qo.PAGE_SIZE*t&&this.episodes.length;){this.episodes=oi(this.episodes);const n=this.episodes.slice(0,t);this.episodes=this.episodes.slice(t);const r=await Promise.all(n.map(o=>o.number).map(o=>Ny(o)));this.qs.bufferQueue=oi([...this.qs.bufferQueue,...r.flat()]);}return this.qs.sliceFromQueue()}get usageInfo(){return D(ZZ,{})}};Ct(qo,"id",0),Ct(qo,"PAGE_SIZE",20);let Mh=qo;const Qf={};async function Ny(e){var n;if(!((n=Qf[e])!=null&&n.length)){const a=((await on.get("/x/web-interface/popular/series/one",{params:{number:e}})).data.data.list||[]).map(i=>({...i,api:"popular-weekly",uniqId:i.bvid}));Qf[e]=a;}let t=Qf[e];return t=t.filter(r=>!yo.has(r.owner.mid.toString())),t}function ZZ(){const{shuffleForPopularWeekly:e}=en(),t=Rl();return D(It,{children:D(xl,{style:{marginLeft:"10px"},checked:e,onChange:async n=>{Dn({shuffleForPopularWeekly:n}),await Ln(100),t==null||t();},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序"})})}const ai=Zn({updatedAt:0,bvidSet:cv()});function JZ(e){return Jn(ai).bvidSet.has(e)}tl()&&setTimeout(()=>{new au().loadMore();});const Io=class Io{constructor(t){Ct(this,"qs",new Gv(Io.PAGE_SIZE));Ct(this,"loaded",!1);Ct(this,"page",-1);Ct(this,"count",0);Ct(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await on.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(i=>({...i,api:"watchlater",uniqId:`watchlater-${i.bvid}`}));Date.now()>ai.updatedAt&&(ai.updatedAt=Date.now(),ai.bvidSet=cv(r.map(i=>i.bvid)));const o=Do().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&&Io.LAST_BVID_ARR.length?(s=s.map(l=>({item:l,index:Io.LAST_BVID_ARR.findIndex(c=>l.bvid===c)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...i,...s]):xt.shuffleForWatchLater&&(r=[...i,...oi(s)]);}return this.count=n.data.count,Io.LAST_BVID_ARR=r.map(i=>i.bvid),r}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return D(eJ,{count:t})}get hasMore(){return this.loaded?!!this.qs.bufferQueue.length:!0}async loadMore(){if(this.hasMore){if(!this.loaded){const t=await this.fetch();this.qs.bufferQueue.push(...t),this.loaded=!0;}return this.qs.sliceFromQueue()}}};Ct(Io,"PAGE_SIZE",20),Ct(Io,"LAST_BVID_ARR",[]);let au=Io;function eJ({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=en(),o=Rl();return be(It,{children:[be(Oo,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{Ot(`稍后再看: ${n}`);},children:[e," / 100"]}),D(xl,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:async a=>{Dn({shuffleForWatchLater:a}),await Ln(100),o==null||o();}})]})}const Kv=m.createContext(void 0);function Rl(){return m.useContext(Kv)}const ky={"dynamic-feed":()=>new Jx(Jr.upMid),watchlater:()=>new au,fav:()=>new Rh,"popular-general":()=>new qZ,"popular-weekly":()=>new Mh};function iu(e,t){return e[t]}function Zx({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const s=mW(),l=gy(()=>({})),c=gy(()=>({})),[u,d]=m.useState(!0),[f,h]=m.useState([]);m.useEffect(()=>{try{unsafeWindow[`${zC}_gridItems`]=f;}catch{}},[f]);const[g,v]=m.useState(()=>Object.fromEntries(Object.entries(ky).map(([T,P])=>[T,P()]))),[p,b]=m.useState(()=>new js),[y,C]=m.useState(!1),[w,x,$]=Ww(()=>Date.now()),[S,E]=m.useState(s),[I,O]=m.useState(()=>new AbortController),[M,R]=m.useState(!1),[k,A]=m.useState(void 0),L=ot(async(T=!1,P)=>{const _=performance.now();if(y)if(s===S){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",S,s),I.abort();else e("refresh(): [start] tab = %s",s);await(a==null?void 0:a());const z=ce=>{C(ce),i==null||i(ce);};z(!0),x(Date.now()),E(s),h([]),A(void 0),d(!0),await(r==null?void 0:r());let j=[],H;const B=async()=>{try{j=await n(ue);}catch(ce){H=ce;}},V=T&&!!c.current[s],G=V&&(!!qc[s].swr||s==="fav"&&!g.fav.useShuffle&&!xt.shuffleForFav||s==="popular-weekly"&&!g["popular-weekly"].useShuffle&&!xt.shuffleForPopularWeekly);R(V);let X=!0;(s==="fav"||s==="popular-weekly")&&!G&&(X=!1);const Q=t?new js:p;t&&b(Q);const ee={...g},W=ce=>{ee[ce]=ky[ce](),v(ee);};s==="dynamic-feed"&&W(s),s==="watchlater"&&W(s),s==="fav"&&(V?G?W(s):g.fav.qs.restore():W(s)),s==="popular-general"&&W(s),s==="popular-weekly"&&(V?G?W(s):g["popular-weekly"].qs.restore():W(s));const Z=new AbortController,U=Z.signal;O(Z);const ue={tab:s,abortSignal:U,serviceMap:ee,pcRecService:Q};if(e("refresh(): shouldReuse=%s swr=%s useGridCache=%s",V,G,X),V?G?(j=l.current[s]||[],h(j),await B()):X?j=l.current[s]||[]:(l.current[s]=[],await B()):(l.current[s]=[],await B()),U.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(z(!1),H){console.error(H),A(H);return}if(j.length&&(c.current[s]=!0,qc[s].swr||s==="fav"||s==="popular-weekly"?l.current[s]=j.slice(0,30):l.current[s]=j),await new Promise(ce=>requestIdleCallback(ce,{timeout:400})),U.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}h(j);const le=iu(ee,s);le&&d(le.hasMore),await I5(),await(o==null?void 0:o());const ie=performance.now()-_;e("refresh(): [success] cost %s ms",ie.toFixed(0));});return {items:f,itemsCache:l,setItems:h,error:k,refreshedAt:w,setRefreshedAt:x,getRefreshedAt:$,refreshing:y,setRefreshing:C,refreshFor:S,setRefreshFor:E,refreshAbortController:I,setRefreshAbortController:O,hasMore:u,setHasMore:d,swr:M,setSwr:R,pcRecService:p,serviceMap:g,setPcRecService:b,setServiceMap:v,refresh:L}}async function tJ(){const t=(await on.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class Jx{constructor(t){Ct(this,"offset","");Ct(this,"page",0);Ct(this,"hasMore",!0);Ct(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 on.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(aJ,{})}}Ct(Jx,"PAGE_SIZE",15);const nJ=location.hash;let e2,t2;if(nJ.includes("?")){const e=location.hash.slice(location.hash.indexOf("?")),t=new URLSearchParams(e);t.get("dyn-mid")&&(e2=Number(t.get("dyn-mid")),t2=t.get("dyn-mid")??void 0);}const Jr=Zn({upMid:e2,upName:t2,upList:[],upListUpdatedAt:0});setTimeout(()=>{Jr.upList.length||requestIdleCallback(()=>{n2();});},el("5s"));async function n2(e=!1){if(!e&&Jr.upList.length&&Jr.upListUpdatedAt&&Jr.upListUpdatedAt-Date.now()<el("5min"))return;const n=await tJ();Jr.upList=n,Jr.upListUpdatedAt=Date.now();}function r2(e){if(Object.assign(Jr,e),e.upMid){const t=Jr.upList.find(n=>n.mid===e.upMid);t&&(t.has_update=!1);}}var rJ={name:"dhit8z",styles:"margin-left:15px"},oJ={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function aJ(){const e=Rl(),{upName:t,upList:n}=Jn(Jr);fl(()=>{n2();});const r=ot(async i=>{r2(i),await Ln(100),e==null||e();}),o=ot(()=>{r({upMid:void 0,upName:void 0});}),a=m.useMemo(()=>{const i={key:"all",icon:D(Yc,{size:"small",children:"全"}),label:"全部",onClick:o},s=n.map(l=>{let c=D(Yc,{size:"small",src:l.face});return l.has_update&&(c=D(zK,{dot:!0,children:c})),{key:l.mid,icon:c,label:D("span",{title:l.uname,css:oJ,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:rJ,children:be(wl,{children:[D(Ov,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:D(Zt,{children:t?`UP: ${t}`:"全部"})}),!!t&&be(Zt,{onClick:o,css:[$l,"",""],children:[D(kt,{name:"Return",size:14,style:{marginRight:5}}),D("span",{style:{display:"inline-block",marginTop:3},children:"清除"})]})]})})}const Zf={removeFav:iJ,addFav:cJ,getVideoFavState:sJ};async function iJ(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Ni()}),o=(await on.post("/x/v3/fav/resource/batch-del",n)).data,a=Gr(o);return a||Ot(o.message||ZC),a}async function sJ(e){if(!tl())return;const r=(await on.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Xu(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>Vx(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function lJ({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:Ni()}),a=(await on.post("/x/v3/fav/resource/deal",r)).data,i=Gr(a);return i||Ot((a==null?void 0:a.message)||"fav deal api fail"),i}let Jf=0,_h="";async function cJ(e){if(!Jf||!_h){const t=await Gx();Jf=t[0].id,_h=t[0].title;}return await lJ({avid:e,add_media_ids:Jf.toString()})}const uJ=o2("follow"),dJ=o2("unfollow"),fJ={follow:uJ,unfollow:dJ};function o2(e){const t=e==="follow"?1:2;return async function(r){return await Xx(r,t)}}function Uv(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 mJ="_bili-video-card_8ehp8_1",hJ="_preview-card-wrapper_8ehp8_5",gJ="_preview-card-inner_8ehp8_18",vJ="_watch-later_8ehp8_23",pJ="_badge_8ehp8_27",bJ="_recommend-reason_8ehp8_37",yJ="_bangumi-desc_8ehp8_53",CJ="_btn-dislike_8ehp8_57",SJ="_btn-dislike-icon_8ehp8_72",wJ="_btn-dislike-tip_8ehp8_79",$J="_disliked-wrapper_8ehp8_95",xJ="_dislike-content-cover_8ehp8_109",EJ="_dislike-content-cover-inner_8ehp8_115",IJ="_dislike-icon_8ehp8_126",OJ="_dislike-reason_8ehp8_129",PJ="_dislike-desc_8ehp8_133",RJ="_dislike-content-action_8ehp8_137",MJ="_skeleton-active_8ehp8_165",_J="_ant-skeleton-loading_8ehp8_1",Gt={biliVideoCard:mJ,previewCardWrapper:hJ,previewCardInner:gJ,watchLater:vJ,badge:pJ,recommendReason:bJ,bangumiDesc:yJ,btnDislike:CJ,btnDislikeIcon:SJ,btnDislikeTip:wJ,dislikedWrapper:$J,dislikeContentCover:xJ,dislikeContentCoverInner:EJ,dislikeIcon:IJ,dislikeReason:OJ,dislikeDesc:PJ,dislikeContentAction:RJ,skeletonActive:MJ,antSkeletonLoading:_J};function TJ(...e){for(const t of e)if(!isNaN(t))return t;return 0}function NJ({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=m.useRef(null),i=N9(a),[s,l]=m.useState(()=>({width:0,height:0}));fl(()=>{var f;const d=(f=a.current)==null?void 0:f.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=TJ(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:K(Gt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&D(kJ,{...u})})}function kJ({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var x;const a=Math.floor((e||0)*o);let i=m.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let S=LJ($,a);return S!==-1?S:a>$[$.length-1]?(S=Math.floor($.length*o)-1,S<0&&(S=0),S):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 f=Math.floor(i/d),h=i-f*d,g=((x=t.image)==null?void 0:x[f])||"",v=Math.floor(h/s)+1,p=h-(v-1)*s,b=n*s,y=r*l,C=(v-1)*r,w=(p-1)*n;return D("div",{className:Gt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${w}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:D(AJ,{progress:o})})}function AJ({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:Ir,height:"100%",width:`${e*100}%`}})})}function LJ(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 em={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},su={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},DJ={bangumiFollow:1.3};function Ay(e){return su[e]||su[1]}const zJ="--video-card-border-radius",a2=`var(${zJ})`,i2={borderRadius:a2},mr="0";var ho=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}};ho.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";ho.TR={};ho.S=[11,10,3,8,4,6];ho.XOR=177451812;ho.ADD=8728348608;(()=>{const e=ho.TABEL.length;for(let t=0;t<e;t++)ho.TR[ho.TABEL[t]]=t;})();var Si=ho;Si.av2bv.bind(Si);Si.bv2av.bind(Si);function s2(e,t){if(e.api==="pc")return t.pc(e);if(e.api==="app")return t.app(e);if(e.api==="dynamic")return t.dynamic(e);if(e.api==="watchlater")return t.watchlater(e);if(e.api==="fav")return t.fav(e);if(e.api==="popular-general")return t["popular-general"](e);if(e.api==="popular-weekly")return t["popular-weekly"](e);throw new Error("unknown api type")}function l2(e){const t=s2(e,{pc:HJ,app:jJ,dynamic:WJ,watchlater:VJ,fav:GJ,"popular-general":KJ,"popular-weekly":UJ});return t.authorFace&&(t.authorFace=pb(t.authorFace)),t.cover=pb(t.cover),t}function jJ(e){return e.device==="android"?FJ(e):BJ(e)}function FJ(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:f}=e;if(c&&su[c]===l)return na(u);if(d&&su[d]===l)return na(f)},n=e.param,r=Si.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(`[${rn}]: 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,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:ba((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,bangumiFollow:t("bangumiFollow"),statItems:[e.cover_left_text_1&&{field:Ay(e.cover_left_icon_1),value:e.cover_left_text_1},e.cover_left_text_2&&{field:Ay(e.cover_left_icon_2),value:e.cover_left_text_2}].filter(Boolean),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 BJ(e){var f,h;const t=g=>{const{cover_left_text_1:v,cover_left_text_2:p,cover_left_text_3:b}=e,y=[v,p,b].filter(Boolean);if(g==="play"){const C=y.find(x=>/观看|播放$/.test(x));if(!C)return;const w=C.replace(/观看|播放$/,"");return na(w)}if(g==="danmaku"){const C=y.find(x=>/弹幕$/.test(x));if(!C)return;const w=C.replace(/弹幕$/,"");return na(w)}if(g==="bangumiFollow"){const C=y.find(x=>/追剧$/.test(x));if(!C)return;const w=C.replace(/追剧$/,"");return na(w)}},n=e.param,r=e.bvid||Si.av2bv(Number(e.param)),o=(()=>{var g;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(`[${rn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const v=(g=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:g[1];return v?`/read/cv${v}`:e.uri}return e.uri})(),a=t("play"),i=void 0,s=void 0,l=t("danmaku"),c=void 0,u=t("bangumiFollow"),d=[{field:"play",value:Vn(a)||mr},typeof l=="number"?{field:"danmaku",value:Vn(l)||mr}:{field:"bangumiFollow",value:Vn(u)||mr}];return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,desc:e.desc,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((f=e.player_args)==null?void 0:f.duration)||0,durationStr:ba((h=e.player_args)==null?void 0:h.duration),recommendReason:e.bottom_rcmd_reason||e.top_rcmd_reason,play:a,like:i,coin:s,danmaku:l,favorite:c,bangumiFollow:u,statItems:d,authorName:e.args.up_name,authorFace:e.avatar.cover,authorMid:String(e.args.up_id||""),appBadge:e.cover_badge,appBadgeDesc:e.desc}}function HJ(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,cover:e.pic,pubts:e.pubdate,pubdateDisplay:eo(e.pubdate),duration:e.duration,durationStr:ba(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,statItems:[{field:"play",value:Vn(e.stat.view)||mr},{field:"like",value:Vn(e.stat.like)||mr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function WJ(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Do().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:eo(a)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,cover:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:P5(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:na(t.stat.play),danmaku:na(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function VJ(e){const t=_5(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?D(wd,{title:be(It,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:be("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,cover:e.pic,pubts:e.pubdate,pubdateDisplay:eo(e.pubdate),pubdateDisplayTitle:`${eo(e.pubdate,!0)} 发布, ${eo(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:ba(e.duration),recommendReason:`${eo(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 GJ(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:be(It,{children:["【",D(kt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",Ir],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,pubdateDisplay:eo(e.pubtime),duration:e.duration,durationStr:ba(e.duration),recommendReason:`${eo(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)}}function KJ(e){var t;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:eo(e.pubdate),duration:e.duration,durationStr:ba(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,statItems:[{field:"play",value:Vn(e.stat.view)||mr},{field:"like",value:Vn(e.stat.like)||mr},{field:"danmaku",value:Vn(e.stat.danmaku)||mr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function UJ(e){return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:eo(e.pubdate),duration:e.duration,durationStr:ba(e.duration),recommendReason:e.rcmd_reason,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:Vn(e.stat.view)||mr},{field:"like",value:Vn(e.stat.like)||mr},{field:"danmaku",value:Vn(e.stat.danmaku)||mr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function XJ({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[s,l]=Gw(void 0),[c,u]=m.useState(!1),d=m.useRef(!1),f=m.useRef(!1);To("mouseenter",E=>{d.current=!0,n&&!g.current&&S(!0);},{target:a}),To("mouseleave",E=>{d.current=!1;},{target:a}),To("mousemove",E=>{u(!0),n||p();},{target:a});const h=D9(),g=m.useRef(void 0),v=ot(()=>{if(h.current)return !0;if(n){if(f.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=ot((E=!1)=>{g.current&&cancelAnimationFrame(g.current),g.current=void 0,l(void 0),y(!1);}),[b,y,C]=Ww(!1),w=m.useRef(),x=ot(()=>{var E;if(!g.current){S();return}y(I=>!I),b&&((E=w.current)==null||E.call(w,s||0));}),$=ot(()=>s||0),S=ot((E=!1)=>{f.current=E,u(!1),y(!1),o(),p(!0),l(A=>typeof A>"u"?0:A);const I=8e3,O=()=>typeof xt.autoPreviewUpdateInterval=="number"?xt.autoPreviewUpdateInterval:400;let M=performance.now(),R=0;w.current=()=>{M=performance.now()-$()*I;};function k(A){if(v()){p();return}const L=()=>{const T=performance.now()-M,P=Math.min(T%I/I,1);l(P);};C()||(O()?(!R||performance.now()-R>=O())&&(R=performance.now(),L()):L()),g.current=requestAnimationFrame(k);}g.current=requestAnimationFrame(k);});return {onHotkeyPreviewAnimation:x,onStartPreviewAnimation:S,previewAnimationProgress:s}}function Ly(e){GM.setClipboard(e),Ot(`已复制: ${e}`);}const c2=Uv(),lu=m.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=cH((r==null?void 0:r.api)==="app"&&r.param),f=m.useMemo(()=>r&&l2(r),[r]),h=UZ(f==null?void 0:f.authorMid);return D("div",{style:t,className:K("bili-video-card",Gt.biliVideoCard,n),...u,children:o?D(QJ,{loading:o}):r&&f&&(d?D(ZJ,{item:r,emitter:c,dislikedReason:d}):h?D(JJ,{cardData:f}):D(see,{item:r,cardData:f,active:a,emitter:c,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l}))})});var qJ={name:"16dof6j",styles:"flex:1;margin-left:10px"},YJ={name:"1po2nvr",styles:"width:32px;height:32px;border-radius:50%"};const QJ=m.memo(function({loading:t}){const{styleFancy:n}=en();return be("div",{className:K("bili-video-card__skeleton",{hide:!t,[Gt.skeletonActive]:t}),children:[D("div",{className:"bili-video-card__skeleton--cover",style:i2}),!n&&D("div",{className:"bili-video-card__skeleton--info",children:be("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"})]})}),n&&be("div",{className:"bili-video-card__skeleton--info",children:[D("div",{className:"bili-video-card__skeleton--avatar",css:YJ}),be("div",{className:"bili-video-card__skeleton--right",css:qJ,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"})]})]})]})}),ZJ=m.memo(function({dislikedReason:t,item:n,emitter:r=c2}){const o=ot(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await J9(n,t.id);}catch(s){i=s;}if(i)return console.error(i.stack||i),JC();a?Ot("已撤销"):eS(),a&&Od.delete(n.param);});return Ka(r,"cancel-dislike",o),be("div",{className:K(Gt.dislikedWrapper),children:[D("div",{className:Gt.dislikeContentCover,children:be("div",{className:Gt.dislikeContentCoverInner,children:[D(kt,{name:"DistraughtFace",size:32,className:Gt.dislikeIcon}),D("div",{className:Gt.dislikeReason,children:t==null?void 0:t.name}),D("div",{className:Gt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),D("div",{className:Gt.dislikeContentAction,children:be("button",{onClick:o,children:[D(kt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),JJ=m.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=ot(async()=>{if(!n)return;await qx.remove(n)&&Ot(`已移出黑名单: ${o}`);});return be("div",{className:K(Gt.dislikedWrapper),children:[D("div",{className:Gt.dislikeContentCover,children:be("div",{className:Gt.dislikeContentCoverInner,children:[D(kt,{name:"PeopleDelete",size:32,className:Gt.dislikeIcon}),D("div",{className:Gt.dislikeReason,children:"已拉黑"}),be("div",{className:Gt.dislikeDesc,children:["UP: ",o]})]})}),D("div",{className:Gt.dislikeContentAction,children:be("button",{onClick:a,children:[D(kt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})});var eee={name:"putlsr",styles:"margin-top:4px;padding-left:0;max-width:100%"},tee={name:"s5xdrg",styles:"display:flex;align-items:center"},nee={name:"zmsypw",styles:"margin-top:4px;color:var(--text3);font-size:var(--subtitle-font-size)"},ree={name:"1ic5zs4",styles:"display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;line-break:anywhere;color:var(--text1);font-size:var(--title-font-size);line-height:var(--title-line-height)"},oee={name:"t6djnl",styles:"flex:1;margin-left:10px;overflow:hidden"},aee={name:"1t32qz5",styles:"display:flex;margin-top:15px"},iee={name:"11ginrh",styles:"background-color:unset;position:static"};const see=m.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:s=c2}){var oe,ye;t.api;const l=t.api==="app";t.api,t.api,t.api;const{styleFancy:c}=en();let{avid:u,bvid:d,goto:f,href:h,title:g,titleRender:v,desc:p,cover:b,pubdateDisplay:y,pubdateDisplayTitle:C,duration:w,durationStr:x,recommendReason:$,invalidReason:S,play:E,like:I,coin:O,danmaku:M,favorite:R,bangumiFollow:k,statItems:A,authorName:L,authorFace:T,authorMid:P,appBadge:_,appBadgeDesc:z}=n;const j=f==="av";["av","bangumi","picture"].includes(f)||console.warn(`[${rn}]: none (av,bangumi,picture) goto type %s`,f,t);const[H,B]=m.useState(null),V=m.useRef(!1),G=ot(async()=>{if(!H&&!V.current)try{V.current=!0,B(await Q9(u));}finally{V.current=!1;}}),X=m.useRef(null),[Q,ee]=m.useState(void 0);To("mouseenter",de=>{var lt;const pe=(lt=X.current)==null?void 0:lt.getBoundingClientRect();if(!pe)return;const{x:Le}=pe,Ue=de.pageX-window.pageXOffset-Le;ee(Ue);},{target:X});const W=_f(X),{autoPreviewWhenHover:Z}=en(),{onStartPreviewAnimation:U,onHotkeyPreviewAnimation:ue,previewAnimationProgress:le}=XJ({bvid:d,title:g,autoPreviewWhenHover:Z,active:r,tryFetchVideoData:G,videoPreviewWrapperRef:X});Vc(()=>{if(r){try{unsafeWindow[`${zC}_activeItem`]=t;}catch(de){console.warn("set unsafeWindow activeItem error"),console.warn(de.stack||de);}xt.autoPreviewWhenKeyboardSelect&&U();}},[r]);const ie=m.useRef(null),ce=_f(ie),se=JZ(d),Y=A9(Yi),{accessKey:ae}=en(),me=!!ae;m.useEffect(()=>{W&&G();},[W]);const te=t.api!=="app"||t.api==="app"&&t.goto==="av",re=m.useRef(!1),he=ot(async(de,pe)=>{if(de==null||de.preventDefault(),pe??(pe=se?R0:Yi),pe!==Yi&&pe!==R0)throw new Error("unexpected usingAction provided");if(re.current)return {success:!1};re.current=!0;let Le=!1;try{Le=await pe(u);}finally{re.current=!1;}const Ue=pe===Yi;return Le&&(Ue?ai.bvidSet.add(d):ai.bvidSet.delete(d),t.api==="watchlater"?Ue||(await Ln(100),o==null||o(t,n)):Ot(`已${Ue?"添加":"移除"}稍后再看`)),{success:Le,targetState:Ue}}),Ce=m.useRef(null),ke=_f(Ce),We=ot(de=>{if(de==null||de.stopPropagation(),de==null||de.preventDefault(),!Ze)return t.api!=="app"?Ot("当前视频不支持提交「我不想看」"):me?void 0:Ot("请先获取 access_key");mH(t);}),Ge=m.useMemo(()=>Vn(E),[E]);m.useMemo(()=>Vn(I),[I]);const Me=m.useMemo(()=>Vn(M),[M]);m.useMemo(()=>Vn(R),[R]);const Xe=({text:de,iconSvgName:pe,iconSvgScale:Le})=>be("span",{className:"bili-video-card__stats--item",children:[D("svg",{className:"bili-video-card__stats--icon",style:{transform:Le?`scale(${Le})`:void 0},children:D("use",{href:pe})}),D("span",{className:"bili-video-card__stats--text",style:{lineHeight:"calc(var(--icon-size) + 1px)"},children:de})]}),[ze,He]=m.useState(void 0),[Ie,we]=m.useState(void 0),qe=ot(async()=>{if(t.api!=="watchlater")return;const de=await Zf.getVideoFavState(u);if(de){const{favFolderNames:pe,favFolderUrls:Le}=de;He(pe),we(Le);}}),nt=ot(()=>{window.open(h,"_blank");}),bt=ot(()=>{GM.openInTab(h,{active:!1,insert:!0});});Ka(s,"open",nt),Ka(s,"toggle-watch-later",()=>he()),Ka(s,"trigger-dislike",()=>We()),Ka(s,"start-preview-animation",U),Ka(s,"hotkey-preview-animation",ue);const Ze=l&&me&&!!((ye=(oe=t.three_point)==null?void 0:oe.dislike_reasons)!=null&&ye.length),Je=ot(()=>{let de=h;h.startsWith("/")&&(de=new URL(h,location.href).href),Ly(de);}),gt=ot(()=>{let de=h;t.api==="watchlater"&&(de=`/video/${t.bvid}`);const pe=new URL(de,location.href).href,Le=`iina://open?url=${encodeURIComponent(pe)}`;window.open(Le,"_self");}),vt=yl(),st=vt==="recommend-app"||vt==="recommend-pc"||vt==="popular-general"||vt==="popular-weekly",dt=ot(async()=>{if(!P)return Ot("UP mid 为空!");await qx.add(P)&&Ot(`已加入黑名单: ${L}`);}),et=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&$==="已关注",$e=ot(async()=>{if(!P)return;await fJ.unfollow(P)&&Ot("已取消关注");}),xe=t.api==="dynamic"&&!!i,_e=ot(async()=>{!P||!L||(r2({upMid:Number(P),upName:L}),await Ln(100),await(i==null?void 0:i()));}),ge=m.useMemo(()=>{const de=se?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:D(kt,{name:"EfferentFour",size:15}),onClick:nt},{key:"open-link-in-background",label:"后台打开",icon:D(kt,{name:"Split",size:15}),onClick:bt},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:D(kt,{name:"Copy",size:15}),onClick:Je},{key:"copy-bvid",label:"复制 BVID",icon:D(kt,{name:"Copy",size:15}),onClick(){Ly(d);}},{type:"divider"},Ze&&{key:"dislike",label:"我不想看",icon:D(kt,{name:"DislikeTwo",size:15}),onClick(){We();}},xe&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:D(kt,{name:"PeopleSearch",size:15}),onClick:_e},et&&{key:"unfollow-up",label:"取消关注",icon:D(kt,{name:"PeopleMinus",size:15}),onClick:$e},st&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:D(kt,{name:"PeopleDelete",size:15}),onClick:dt},t.api==="watchlater"&&{key:"add-fav",icon:D(kt,{name:"Star",size:15,...ze!=null&&ze.length?{theme:"two-tone",fill:["currentColor",Ir]}:void 0}),label:ze!=null&&ze.length?`已收藏 ${ze.map(pe=>`「${pe}」`).join("")}`:"快速收藏",async onClick(){!!(ze!=null&&ze.length)?Ie==null||Ie.forEach(Le=>{window.open(Le,"_blank");}):await Zf.addFav(u)&&Ot(`已加入收藏夹「${_h}」`);}},te&&{key:"watchlater",label:de,icon:D(kt,{name:se?"Delete":"FileCabinet",size:15}),onClick(){he();}},t.api==="watchlater"&&se&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:D(kt,{name:"AddTwo",size:15}),async onClick(){const{success:pe}=await he(void 0,Yi);pe&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:D(kt,{name:"EfferentFour",size:15}),onClick(){const{id:pe}=t.folder,Le=Vx(pe);window.open(Le,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:D(kt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await Zf.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...Mj?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:D(kt,{name:"PlayTwo",size:15}),onClick:gt}]:[]].filter(Boolean)},[t,te,se,Ze,et,st,xe,ze,Ie]),Te=ot(de=>{de&&qe();}),Se=P?`https://space.bilibili.com/${P}`:h;p||(p=`${L}${y?` · ${y}`:""}`);const fe=L&&C?`${L} · ${C}`:p;return be("div",{"data-bvid":d||"",className:"bili-video-card__wrap __scale-wrap",css:iee,children:[D(Ov,{menu:{items:ge},trigger:["contextMenu"],onOpenChange:Te,children:D("a",{href:h,target:"_blank",children:be("div",{className:"bili-video-card__image __scale-player-wrap",ref:X,style:{...i2,aspectRatio:"16 / 9"},children:[be("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[be("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!rv&&D("source",{srcSet:`${b}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),D("source",{srcSet:`${b}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),D("img",{src:`${b}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(W||typeof le=="number")&&D(NJ,{videoDuration:w,pvideo:H==null?void 0:H.pvideoData,mouseEnterRelativeX:Q,previewAnimationProgress:le}),te&&be("div",{className:`bili-watch-later ${Gt.watchLater}`,style:{display:W||r?"flex":"none"},ref:ie,onClick:he,children:[se?D("svg",{className:"bili-watch-later__icon",viewBox:"0 0 200 200",children:D(framerMotion.m.path,{d:"M25,100 l48,48 a 8.5,8.5 0 0 0 10,0 l90,-90",strokeWidth:"20",stroke:"currentColor",fill:"transparent",strokeLinecap:"round",...Y?void 0:{initial:{pathLength:0},animate:{pathLength:1}}})}):D("svg",{className:"bili-watch-later__icon",children:D("use",{href:"#widget-watch-later"})}),D("span",{className:"bili-watch-later__tip",style:{display:ce?"block":"none"},children:se?"移除稍后再看":"稍后再看"})]}),Ze&&be("div",{ref:Ce,className:Gt.btnDislike,onClick:We,style:{display:W?"flex":"none"},children:[D("svg",{className:Gt.btnDislikeIcon,children:D("use",{href:"#widget-close"})}),D("span",{className:Gt.btnDislikeTip,style:{display:ke?"block":"none"},children:"我不想看"})]})]}),D("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:be("div",{className:"bili-video-card__stats",children:[D("div",{className:"bili-video-card__stats--left",children:A!=null&&A.length?D(It,{children:A.map(({field:de,value:pe})=>D(m.Fragment,{children:Xe({text:pe,iconSvgName:em[de],iconSvgScale:DJ[de]})},de))}):be(It,{children:[Xe({text:Ge||mr,iconSvgName:em.play}),Xe({text:Me||mr,iconSvgName:em.danmaku})]})}),D("span",{className:"bili-video-card__stats__duration",children:j&&x})]})})]})})}),!c&&D("div",{className:"bili-video-card__info __scale-disable",children:be("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:g,children:v??g})}),D("p",{className:"bili-video-card__info--bottom",children:j?be("a",{className:"bili-video-card__info--owner",href:Se,target:"_blank",title:fe,children:[$?D("span",{className:Gt.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:p})]}):_||z?be("a",{className:"bili-video-card__info--owner",href:h,target:"_blank",children:[D("span",{className:Gt.badge,children:_||""}),D("span",{className:Gt.bangumiDesc,children:z||""})]}):null})]})}),c&&be("div",{css:aee,children:[D("a",{href:Se,target:"_blank",children:T?D(Yc,{src:T}):D(Yc,{children:(L==null?void 0:L[0])||(z==null?void 0:z[0])||""})}),be("div",{css:oee,children:[D("a",{href:h,target:"_blank",children:D("h3",{title:g,css:ree,children:v??g})}),D("div",{css:nee,children:j?be(It,{children:[D("div",{css:tee,children:D("a",{className:"bili-video-card__info--owner",href:Se,target:"_blank",title:fe,children:D("span",{className:"bili-video-card__info--author",children:p})})}),!!$&&D("div",{className:Gt.recommendReason,css:eee,children:$})]}):_||z?be("a",{className:"bili-video-card__info--owner",href:h,target:"_blank",children:[!!_&&D("span",{className:Gt.badge,children:_}),!!z&&D("span",{className:Gt.bangumiDesc,children:z})]}):null})]})]})]})}),lee=()=>document.querySelector(".bili-header__bar");function cee(){const e=lee();return !!(e&&window.getComputedStyle(e).display==="none")}function Th(){if(!cee())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 cu=Zn({value:Th()});function uee(){return Jn(cu).value}function u2(){return cu.value}setTimeout(()=>{cu.value=Th();const e=new MutationObserver(()=>{cu.value=Th();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const Xv="_video-grid_bm2d9_7",d2="_video-grid-new-homepage_bm2d9_17",dee="_limit-two-lines_bm2d9_20",f2="_video-grid-internal-testing_bm2d9_52";const Dy="_video-grid-container_bm2d9_81",fee="_video-grid-fancy_bm2d9_86",mee="_narrow-mode_bm2d9_115";function hee({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:s}){const[l,c]=m.useState(void 0),u=ot(()=>!(!e||qu())),d=ot(()=>{var S;if(typeof l!="number"||!o.current)return !1;const x=a(),$=(S=o.current.querySelector(`.${ea.card}.${ea.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!x||!$||$.top-x.top<-(x.height+$.height)||$.top-x.top>x.height*2+$.height)});function f(x){const $=C(l),S=$.getBoundingClientRect().left,E=R=>Math.abs(S-R)<1;{const R=qv(o.current),k=x==="down"?R:-R,A=C(l+k);if(A){const L=A.getBoundingClientRect().left;if(E(L))return k}}let I=0,O=$;const M=()=>x==="down"?O.nextElementSibling:O.previousElementSibling;for(;M();){if(O=M(),!O.classList.contains(ea.card))continue;x==="down"?I++:I--;const R=O.getBoundingClientRect().left;if(E(R))return I}return 0}const h=x=>$=>{if(!u())return;$==null||$.preventDefault();let S;if(d()){const E=typeof x=="number"?x:f(x);S=l+E;}else S=p();if(S<n){w(n);return}if(S>r){w(r);return}c(S),w(S);};fn("leftarrow",h(-1),{exactMatch:!0}),fn("rightarrow",h(1),{exactMatch:!0}),fn("tab",h(1),{exactMatch:!0}),fn("shift.tab",h(-1),{exactMatch:!0}),fn("uparrow",h("up"),{exactMatch:!0}),fn("downarrow",h("down"),{exactMatch:!0});const g=()=>{u()&&c(void 0);},v=()=>{if(!(!u()||typeof l!="number"))return s[l]};fn("esc",g),fn("enter",()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("open");}),fn("backspace",()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("trigger-dislike");}),fn(["s","w"],()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("toggle-watch-later");},{exactMatch:!0}),fn(["period","p"],()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const x=a();if(!x)return 0;const $=y();for(let S=0;S<$.length;S++)if($[S].getBoundingClientRect().top>=x.top)return S;return 0}const b=`.${ea.card}`;function y(){var x;return [...((x=o.current)==null?void 0:x.querySelectorAll(b))||[]]}function C(x){return y()[x]}function w(x){var I;const $=C(x);(I=$==null?void 0:$.scrollIntoViewIfNeeded)==null||I.call($,!1);const S=a(),E=$.getBoundingClientRect();if(!(!S||!E)){if(E.top<=S.top){const O=-(S.top-E.top+10);i==null||i({offset:O});return}if(S.bottom-E.bottom<10){const O=10-(S.bottom-E.bottom);i==null||i({offset:O});return}}}return {activeIndex:l,clearActiveIndex:g}}const gee=new Map,vee=new Map;function qv(e,t=!0){if(t&&xt.useNarrowMode)return 2;const n=xt.styleFancy?gee:vee;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${Xv}`)),!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 m2(e){return e==="keep-follow-only"||xt.filterEnabled&&(xt.filterMinDurationEnabled||xt.filterMinPlayCountEnabled||xt.filterOutGotoTypePicture)}function h2(e,t){return m2(t)?e.filter(n=>{if(n.api==="separator")return !0;const{play:r,duration:o,recommendReason:a,goto:i}=l2(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&&!xt.enableFilterForFollowedVideo?!0:!(xt.filterMinPlayCountEnabled&&xt.filterMinPlayCount&&typeof r=="number"&&r<xt.filterMinPlayCount||xt.filterMinDurationEnabled&&xt.filterMinDuration&&o&&o<xt.filterMinDuration)}function d(){return xt.filterOutGotoTypePicture?!!(s&&!xt.enableFilterForFollowedPicture):!0}}):e}var Hd={exports:{}},Yv={exports:{}};const $c={};var Nh;typeof Object.create=="function"?Nh=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Nh=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const g2=Nh;var pee=/%[sdj%]/g;function wi(e){if(!_l(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(oo(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(pee,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])Ml(i)||!wa(i)?a+=" "+i:a+=" "+oo(i);return a}function Qv(e,t){if(to(global.process))return function(){return Qv(e,t).apply(this,arguments)};if($c.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if($c.throwDeprecation)throw new Error(t);$c.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var oc={},tm;function v2(e){if(to(tm)&&(tm=$c.env.NODE_DEBUG||""),e=e.toUpperCase(),!oc[e])if(new RegExp("\\b"+e+"\\b","i").test(tm)){var t=0;oc[e]=function(){var n=wi.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else oc[e]=function(){};return oc[e]}function oo(e,t){var n={seen:[],stylize:yee};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Wd(t)?n.showHidden=t:t&&tp(n,t),to(n.showHidden)&&(n.showHidden=!1),to(n.depth)&&(n.depth=2),to(n.colors)&&(n.colors=!1),to(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=bee),uu(n,e,n.depth)}oo.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]};oo.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function bee(e,t){var n=oo.styles[t];return n?"\x1B["+oo.colors[n][0]+"m"+e+"\x1B["+oo.colors[n][1]+"m":e}function yee(e,t){return e}function Cee(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function uu(e,t,n){if(e.customInspect&&t&&ys(t.inspect)&&t.inspect!==oo&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return _l(r)||(r=uu(e,r,n)),r}var o=See(e,t);if(o)return o;var a=Object.keys(t),i=Cee(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),bs(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return nm(t);if(a.length===0){if(ys(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(ps(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(du(t))return e.stylize(Date.prototype.toString.call(t),"date");if(bs(t))return nm(t)}var l="",c=!1,u=["{","}"];if(Zv(t)&&(c=!0,u=["[","]"]),ys(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(ps(t)&&(l=" "+RegExp.prototype.toString.call(t)),du(t)&&(l=" "+Date.prototype.toUTCString.call(t)),bs(t)&&(l=" "+nm(t)),a.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return ps(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=wee(e,t,n,i,a):f=a.map(function(h){return kh(e,t,n,i,h,c)}),e.seen.pop(),$ee(f,l,u)}function See(e,t){if(to(t))return e.stylize("undefined","undefined");if(_l(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Jv(t))return e.stylize(""+t,"number");if(Wd(t))return e.stylize(""+t,"boolean");if(Ml(t))return e.stylize("null","null")}function nm(e){return "["+Error.prototype.toString.call(e)+"]"}function wee(e,t,n,r,o){for(var a=[],i=0,s=t.length;i<s;++i)w2(t,String(i))?a.push(kh(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(l){l.match(/^\d+$/)||a.push(kh(e,t,n,r,l,!0));}),a}function kh(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")),w2(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Ml(n)?s=uu(e,l.value,null):s=uu(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")),to(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 $ee(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 Zv(e){return Array.isArray(e)}function Wd(e){return typeof e=="boolean"}function Ml(e){return e===null}function p2(e){return e==null}function Jv(e){return typeof e=="number"}function _l(e){return typeof e=="string"}function b2(e){return typeof e=="symbol"}function to(e){return e===void 0}function ps(e){return wa(e)&&ep(e)==="[object RegExp]"}function wa(e){return typeof e=="object"&&e!==null}function du(e){return wa(e)&&ep(e)==="[object Date]"}function bs(e){return wa(e)&&(ep(e)==="[object Error]"||e instanceof Error)}function ys(e){return typeof e=="function"}function y2(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function C2(e){return Buffer.isBuffer(e)}function ep(e){return Object.prototype.toString.call(e)}function rm(e){return e<10?"0"+e.toString(10):e.toString(10)}var xee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Eee(){var e=new Date,t=[rm(e.getHours()),rm(e.getMinutes()),rm(e.getSeconds())].join(":");return [e.getDate(),xee[e.getMonth()],t].join(" ")}function S2(){console.log("%s - %s",Eee(),wi.apply(null,arguments));}function tp(e,t){if(!t||!wa(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function w2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const Iee={inherits:g2,_extend:tp,log:S2,isBuffer:C2,isPrimitive:y2,isFunction:ys,isError:bs,isDate:du,isObject:wa,isRegExp:ps,isUndefined:to,isSymbol:b2,isString:_l,isNumber:Jv,isNullOrUndefined:p2,isNull:Ml,isBoolean:Wd,isArray:Zv,inspect:oo,deprecate:Qv,format:wi,debuglog:v2},Oee=Object.freeze(Object.defineProperty({__proto__:null,_extend:tp,debuglog:v2,default:Iee,deprecate:Qv,format:wi,inherits:g2,inspect:oo,isArray:Zv,isBoolean:Wd,isBuffer:C2,isDate:du,isError:bs,isFunction:ys,isNull:Ml,isNullOrUndefined:p2,isNumber:Jv,isObject:wa,isPrimitive:y2,isRegExp:ps,isString:_l,isSymbol:b2,isUndefined:to,log:S2},Symbol.toStringTag,{value:"Module"})),Pee=UE(Oee);var Ree=Pee.format;function Mee(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function _ee(e,t){return function(){var n=this,r=[].slice.call(arguments);Mee();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var s=setTimeout(function(){var l=new $2(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 $2=class x2 extends Error{constructor(t){super(),this.timeout=t,this.message=Ree("timeout of %sms exceed",t),Error.captureStackTrace(this,x2);}};Yv.exports=_ee;Yv.exports.TimeoutError=$2;var Tee=Yv.exports;const E2=Tee,Nee=E2.TimeoutError;Hd.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=E2(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,f;try{d=await t.apply(s,l);}catch(h){f=h;}if(!f)return d;if(f instanceof TypeError)throw f;if(f instanceof kee)throw f.originalError;c[u]=f,i&&i(f,u);}throw new I2({times:o,timeout:a,fn:r,errors:c})}};class I2 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);}}let kee=class 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 Aee=Hd.exports.RetryError=I2;Hd.exports.TimeoutError=Nee;var Lee=Hd.exports;const Dee=Rn(Lee);class np extends Error{constructor(n){super();Ct(this,"json");Error.captureStackTrace(this,np),this.json=n,this.message=n.message||JSON.stringify(n);}}async function zee(){var r;const t=(await Ku.get(FC+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"iphone",device:"pad",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 np(t);return Ot(`${rn}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const jee=Dee(zee,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",rn,t,e);}});async function Fee(){try{return await jee()}catch(e){if(e instanceof Aee){console.error(e.errors);const t=[wi("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>wi(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(` `);Ot(t,5e3);}throw e}}class fu{constructor(){Ct(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(()=>Fee()))).flat();})(),n=n.filter(o=>!(o.goto.includes("ad")||o.card_goto.includes("ad")||o.ad_info)),n=zs(n,o=>o.param),n.map(o=>({...o,api:"app",device:"ipad",uniqId:o.param+"-"+crypto.randomUUID()}))}}Ct(fu,"PAGE_SIZE",10);const ac=va.extend("service"),Cs=e=>e.api==="separator"?e.uniqId:s2(e,{pc:t=>t.bvid,app:t=>t.param,dynamic:t=>t.modules.module_dynamic.major.archive.bvid,watchlater:t=>t.bvid,fav:t=>t.bvid,"popular-general":t=>t.bvid,"popular-weekly":t=>t.bvid});function zy(e,t){const n=e.map(Cs);return t=zs(t,Cs),e.concat(t.filter(r=>!n.includes(Cs(r))))}const Ah=e=>e==="keep-follow-only"||e==="recommend-pc";async function O2(e,t,n=5){const{tab:r,abortSignal:o,pcRecService:a,serviceMap:i}=t,s=new fu;let l=[],c=!0;const u=async d=>{let f=[];const h=iu(i,r);if(h){f=await h.loadMore(o)||[],c=h.hasMore,l=l.concat(f),l=zs(l,Cs);return}let g;if(r==="keep-follow-only")g=8,ac("getMinCount: addMore(restCount = %s) times=%s",d,g);else {const v=Ah(r)?js.PAGE_SIZE:fu.PAGE_SIZE,p=m2(r)?n:1.2;g=Math.ceil(d*p/v),ac("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",d,p,v,g);}f=Ah(r)?await a.getRecommendTimes(g,o):await s.getRecommendTimes(g),f=h2(f,r),l=l.concat(f),l=zs(l,Cs);};for(await u(e);;){if(o!=null&&o.aborted){ac("getMinCount: break for abortSignal");break}if(!c){ac("getMinCount: break for tab=%s hasMore=false",r);break}if(l.length>=e)break;await u(e-l.length);}return l}async function Bee(e){let t=await O2(qv(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function Hee(e){return O2(qv()*3+1,e,5)}async function Wee(e,t,n){let r=Ah(t)?await n.getRecommendTimes(e):await new fu().getRecommendTimes(e);return r=h2(r,t),r}var Lh=new Map,ic=new WeakMap,jy=0,Vee=void 0;function Gee(e){return e?(ic.has(e)||(jy+=1,ic.set(e,jy.toString())),ic.get(e)):"0"}function Kee(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Gee(e.root):e[t]}`).toString()}function Uee(e){let t=Kee(e),n=Lh.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},Lh.set(t,n);}return n}function Xee(e,t,n={},r=Vee){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}=Uee(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(),Lh.delete(o));}}function qee({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,f]=m__namespace.useState(null),h=m__namespace.useRef(),[g,v]=m__namespace.useState({inView:!!s,entry:void 0});h.current=c,m__namespace.useEffect(()=>{if(i||!d)return;let C;return C=Xee(d,(w,x)=>{v({inView:w,entry:x}),h.current&&h.current(w,x),x.isIntersecting&&a&&C&&(C(),C=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{C&&C();}},[Array.isArray(e)?e.toString():e,d,o,r,a,i,n,l,t]);const p=(u=g.entry)==null?void 0:u.target,b=m__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,v({inView:!!s,entry:void 0}));const y=[f,g.inView,g.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const rs=va.extend("components:RecGrid"),ea={card:kc({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:kc("border-color:",Ir,";border-radius:",a2,";overflow:hidden;box-shadow:0px 0px 9px 4px ",Ir,";","")};var Yee={name:"1tr2lp0",styles:"grid-column:span var(--col);&.ant-divider-horizontal.ant-divider-with-text{margin-bottom:-30px;margin-top:-20px;&:first-of-type{margin-top:0;}}"},Qee={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const P2=m.forwardRef(function({infiteScrollUseWindow:t,shortcutEnabled:n,onScrollToTop:r,className:o,scrollerRef:a,setRefreshing:i,setExtraInfo:s},l){const{useNarrowMode:c,styleFancy:u}=en(),d=yl(),[f,h]=m.useState(0),g=ot(async()=>{X(),p(d);}),v=ot(()=>{X(),h(1),p(d),P();}),p=ot(se=>{var ae;const Y=((ae=iu(k,se))==null?void 0:ae.usageInfo)??null;s==null||s(Y);}),{refresh:b,items:y,setItems:C,error:w,refreshing:x,refreshedAt:$,getRefreshedAt:S,swr:E,hasMore:I,setHasMore:O,refreshAbortController:M,pcRecService:R,serviceMap:k}=Zx({tab:d,debug:rs,fetcher:Hee,recreateService:!0,preAction:g,postAction:v,onScrollToTop:r,setUpperRefreshing:i});fl(b),m.useImperativeHandle(l,()=>({refresh:b}),[]);const A=m.useRef();To("visibilitychange",se=>{if(!(document.visibilityState==="visible")){A.current=Date.now();return}x||L.current[$]||d==="watchlater"&&A.current&&Date.now()-A.current>el("1h")&&b(!0,{watchlaterKeepOrder:!0});},{target:document});const L=m.useRef({}),T=ot(async()=>{if(!I||x)return;const se=$;if(L.current[se])return;L.current={[se]:!0};let Y=y,ae=!0;try{const me=iu(k,d);if(me){const te=await me.loadMore(M.signal)||[];Y=zy(Y,te),ae=me.hasMore;}else for(;!(Y.length>y.length);){const re=await Wee(d==="keep-follow-only"?5:2,d,R);Y=zy(Y,re);}}catch(me){throw L.current[se]=!1,me}if(se!==S()){rs("loadMore: skip update for mismatch refreshedAt, %s != %s",se,S());return}rs("loadMore: seq(%s) len %s -> %s",f+1,y.length,Y.length),O(ae),C(Y),h(me=>me+1),L.current[se]=!1,P();}),P=ot(async()=>{await Ln(rv?100:50),rs("checkShouldLoadMore(): footerInView = %s",ue.current),ue.current&&T();}),_=m.useRef(null),z=ot(()=>{var se;if(t){const Y=u2()+50;return new DOMRect(0,Y,window.innerWidth,window.innerHeight-Y)}else return (se=a==null?void 0:a.current)==null?void 0:se.getBoundingClientRect()}),j=dH(),H=m.useMemo(()=>y.filter(se=>se.api!=="separator"),[y]),B=m.useMemo(()=>new Map,[$]),V=m.useMemo(()=>H.map(({uniqId:se})=>B.get(se)||(()=>{const Y=Uv();return B.set(se,Y),Y})()),[H]),{activeIndex:G,clearActiveIndex:X}=hee({enabled:n&&!j,refresh:b,maxIndex:H.length-1,containerRef:_,getScrollerRect:z,videoCardEmitters:V,changeScrollY:t?function({offset:se,absolute:Y}){const ae=document.documentElement;if(typeof se=="number"){ae.scrollTop+=se;return}if(typeof Y=="number"){ae.scrollTop=Y;return}}:void 0}),Q=fa(),ee=ot((se,Y)=>{C(ae=>{const me=ae.findIndex(re=>re.uniqId===se.uniqId);if(me===-1)return ae;const te=ae.slice();return te.splice(me,1),Ot(`已移除: ${Y.title}`,4e3),d==="watchlater"&&(k.watchlater.count--,p(d)),d==="fav"&&(k.fav.total--,p(d)),te});}),W=ot((se,Y)=>{C(ae=>{const me=ae.find(he=>he.uniqId===se.uniqId);if(!me)return ae;const te=ae.indexOf(me),re=ae.slice();return re.splice(te,1),re.unshift(me),re});}),{ref:Z,inView:U}=qee({root:t?null:(a==null?void 0:a.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(se){se&&(rs("footerInView change to visible",se),T());}}),ue=vi(U),le=D("div",{ref:Z,css:Qee,children:!x&&D(It,{children:I?be(It,{children:[D(kt,{name:"Loading",fill:Ir,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ie=K(`${rn}-video-grid`,Xv,u?fee:Q?f2:d2,c&&mee,o);return !y.length||w||x&&!E?D("div",{className:Dy,children:D("div",{className:ie,children:new Array(28).fill(void 0).map((se,Y)=>D(lu,{loading:!0,className:ea.card},Y))})}):be("div",{style:{minHeight:"100%"},className:Dy,children:[D("div",{ref:_,className:ie,children:y.map(se=>{if(se.api==="separator")return D(Rw,{css:Yee,orientation:"left",children:se.text},se.uniqId);{const Y=H.findIndex(me=>me.uniqId===se.uniqId),ae=Y===G;return D(lu,{className:K(ea.card,{[ea.cardActive]:ae}),item:se,active:ae,onRemoveCurrent:ee,onMoveToFirst:W,onRefresh:b,emitter:V[Y]},se.uniqId)}})}),le]})});var $a=m__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function Dh(e,t,n){return (e-t)/(n-t)}function rp(e,t,n,r){var o=Dh(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 Ja(e,t){return Array.isArray(e)?e[t]:e}var Zee=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Jee=m__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,f=tt(e,Zee),h=m__namespace.useContext($a),g=h.min,v=h.max,p=h.direction,b=h.disabled,y=h.keyboard,C=h.range,w=h.tabIndex,x=h.ariaLabelForHandle,$=h.ariaLabelledByForHandle,S=h.ariaValueTextFormatterForHandle,E=h.styles,I=h.classNames,O="".concat(o,"-handle"),M=function(T){b||s(T,i);},R=function(T){if(!b&&y){var P=null;switch(T.which||T.keyCode){case ve.LEFT:P=p==="ltr"||p==="btt"?-1:1;break;case ve.RIGHT:P=p==="ltr"||p==="btt"?1:-1;break;case ve.UP:P=p!=="ttb"?1:-1;break;case ve.DOWN:P=p!=="ttb"?-1:1;break;case ve.HOME:P="min";break;case ve.END:P="max";break;case ve.PAGE_UP:P=2;break;case ve.PAGE_DOWN:P=-2;break}P!==null&&(T.preventDefault(),d(P,i));}},k=rp(p,a,g,v),A=m__namespace.createElement("div",Re({ref:t,className:K(O,(n={},F(n,"".concat(O,"-").concat(i+1),C),F(n,"".concat(O,"-dragging"),u),n),I.handle),style:q(q(q({},k),l),E.handle),onMouseDown:M,onTouchStart:M,onKeyDown:R,tabIndex:b?null:Ja(w,i),role:"slider","aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":b,"aria-label":Ja(x,i),"aria-labelledby":Ja($,i),"aria-valuetext":(r=Ja(S,i))===null||r===void 0?void 0:r(a),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical"},f));return c&&(A=c(A,{index:i,prefixCls:o,value:a,dragging:u})),A}),ete=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],tte=m__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=tt(e,ete),u=m__namespace.useRef({});return m__namespace.useImperativeHandle(t,function(){return {focus:function(f){var h;(h=u.current[f])===null||h===void 0||h.focus();}}}),m__namespace.createElement(m__namespace.Fragment,null,i.map(function(d,f){return m__namespace.createElement(Jee,Re({ref:function(g){g?u.current[f]=g:delete u.current[f];},dragging:l===f,prefixCls:n,style:Ja(r,f),key:f,value:d,valueIndex:f,onStartMove:o,onOffsetChange:a,render:s},c))}))});function Fy(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function nte(e,t,n,r,o,a,i,s,l){var c=m__namespace.useState(null),u=J(c,2),d=u[0],f=u[1],h=m__namespace.useState(-1),g=J(h,2),v=g[0],p=g[1],b=m__namespace.useState(n),y=J(b,2),C=y[0],w=y[1],x=m__namespace.useState(n),$=J(x,2),S=$[0],E=$[1],I=m__namespace.useRef(null),O=m__namespace.useRef(null);m__namespace.useEffect(function(){v===-1&&w(n);},[n,v]),m__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",O.current);}},[]);var M=function(P,_){C.some(function(z,j){return z!==P[j]})&&(_!==void 0&&f(_),w(P),i(P));},R=function(P,_){if(P===-1){var z=S[0],j=S[S.length-1],H=r-z,B=o-j,V=_*(o-r);V=Math.max(V,H),V=Math.min(V,B);var G=a(z+V);V=G-z;var X=S.map(function(Z){return Z+V});M(X);}else {var Q=(o-r)*_,ee=Ae(C);ee[P]=S[P];var W=l(ee,Q,P,"dist");M(W.values,W.value);}},k=m__namespace.useRef(R);k.current=R;var A=function(P,_,z){P.stopPropagation();var j=z||n,H=j[_];p(_),f(H),E(j);var B=Fy(P),V=B.pageX,G=B.pageY,X=function(W){W.preventDefault();var Z=Fy(W),U=Z.pageX,ue=Z.pageY,le=U-V,ie=ue-G,ce=e.current.getBoundingClientRect(),se=ce.width,Y=ce.height,ae;switch(t){case"btt":ae=-ie/Y;break;case"ttb":ae=ie/Y;break;case"rtl":ae=-le/se;break;default:ae=le/se;}k.current(_,ae);},Q=function ee(W){W.preventDefault(),document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",X),document.removeEventListener("touchend",ee),document.removeEventListener("touchmove",X),I.current=null,O.current=null,p(-1),s();};document.addEventListener("mouseup",Q),document.addEventListener("mousemove",X),document.addEventListener("touchend",Q),document.addEventListener("touchmove",X),I.current=X,O.current=Q;},L=m__namespace.useMemo(function(){var T=Ae(n).sort(function(_,z){return _-z}),P=Ae(C).sort(function(_,z){return _-z});return T.every(function(_,z){return _===P[z]})?C:n},[n,C]);return [v,d,L,A]}function rte(e,t,n,r,o,a){var i=m__namespace.useCallback(function(h){var g=isFinite(h)?h:e;return g=Math.min(t,h),g=Math.max(e,g),g},[e,t]),s=m__namespace.useCallback(function(h){if(n!==null){var g=e+Math.round((i(h)-e)/n)*n,v=function(C){return (String(C).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),b=Number(g.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=m__namespace.useCallback(function(h){var g=i(h),v=r.map(function(y){return y.value});n!==null&&v.push(s(h)),v.push(e,t);var p=v[0],b=t-e;return v.forEach(function(y){var C=Math.abs(g-y);C<=b&&(p=y,b=C);}),p},[e,t,r,n,i,s]),c=function h(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,C=g[p],w=C+v,x=[];r.forEach(function(O){x.push(O.value);}),x.push(e,t),x.push(s(C));var $=v>0?1:-1;b==="unit"?x.push(s(C+$*n)):x.push(s(w)),x=x.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=C:O>=C}),b==="unit"&&(x=x.filter(function(O){return O!==C}));var S=b==="unit"?C:w;y=x[0];var E=Math.abs(y-S);if(x.forEach(function(O){var M=Math.abs(O-S);M<E&&(y=O,E=M);}),y===void 0)return v<0?e:t;if(b==="dist")return y;if(Math.abs(v)>1){var I=Ae(g);return I[p]=y,h(I,v-$,p,b)}return y}else {if(v==="min")return e;if(v==="max")return t}},u=function(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g[p],C=c(g,v,p,b);return {value:C,changed:C!==y}},d=function(g){return a===null&&g===0||typeof a=="number"&&g<a},f=function(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g.map(l),C=y[p],w=c(y,v,p,b);if(y[p]=w,o===!1){var x=a||0;p>0&&y[p-1]!==C&&(y[p]=Math.max(y[p],y[p-1]+x)),p<y.length-1&&y[p+1]!==C&&(y[p]=Math.min(y[p],y[p+1]-x));}else if(typeof a=="number"||a===null){for(var $=p+1;$<y.length;$+=1)for(var S=!0;d(y[$]-y[$-1])&&S;){var E=u(y,1,$);y[$]=E.value,S=E.changed;}for(var I=p;I>0;I-=1)for(var O=!0;d(y[I]-y[I-1])&&O;){var M=u(y,-1,I-1);y[I-1]=M.value,O=M.changed;}for(var R=y.length-1;R>0;R-=1)for(var k=!0;d(y[R]-y[R-1])&&k;){var A=u(y,-1,R-1);y[R-1]=A.value,k=A.changed;}for(var L=0;L<y.length-1;L+=1)for(var T=!0;d(y[L+1]-y[L])&&T;){var P=u(y,1,L+1);y[L+1]=P.value,T=P.changed;}}return {value:y[p],values:y}};return [l,f]}function ote(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=m__namespace.useContext($a),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,f=i.included,h="".concat(t,"-text"),g=rp(c,o,s,l);return m__namespace.createElement("span",{className:K(h,F({},"".concat(h,"-active"),f&&u<=o&&o<=d)),style:q(q({},g),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){a(o);}},r)}function ate(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?m__namespace.createElement("div",{className:o},n.map(function(a){var i=a.value,s=a.style,l=a.label;return m__namespace.createElement(ote,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null}function ite(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=m__namespace.useContext($a),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,f="".concat(t,"-dot"),h=c&&u<=n&&n<=d,g=q(q({},rp(l,n,i,s)),typeof r=="function"?r(n):r);return h&&(g=q(q({},g),typeof o=="function"?o(n):o)),m__namespace.createElement("span",{className:K(f,F({},"".concat(f,"-active"),h)),style:g})}function ste(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=m__namespace.useContext($a),s=i.min,l=i.max,c=i.step,u=m__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value);}),r&&c!==null)for(var f=s;f<=l;)d.add(f),f+=c;return Array.from(d)},[s,l,c,r,n]);return m__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return m__namespace.createElement(ite,{prefixCls:t,key:d,value:d,style:o,activeStyle:a})}))}function By(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,s=e.onStartMove,l=e.replaceCls,c=m__namespace.useContext($a),u=c.direction,d=c.min,f=c.max,h=c.disabled,g=c.range,v=c.classNames,p="".concat(n,"-track"),b=Dh(o,d,f),y=Dh(a,d,f),C=function(S){!h&&s&&s(S,-1);},w={};switch(u){case"rtl":w.right="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");break;case"btt":w.bottom="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;case"ttb":w.top="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;default:w.left="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");}var x=l||K(p,(t={},F(t,"".concat(p,"-").concat(i+1),i!==null&&g),F(t,"".concat(n,"-track-draggable"),s),t),v.track);return m__namespace.createElement("div",{className:x,style:q(q({},w),r),onMouseDown:C,onTouchStart:C})}function lte(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=m__namespace.useContext($a),s=i.included,l=i.range,c=i.min,u=i.styles,d=i.classNames,f=m__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var g=o??c,v=r[0];return [{start:Math.min(g,v),end:Math.max(g,v)}]}for(var p=[],b=0;b<r.length-1;b+=1)p.push({start:r[b],end:r[b+1]});return p},[r,l,o,c]),h=null;return (d.tracks||u.tracks)&&(h=m__namespace.createElement(By,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:K(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),s?m__namespace.createElement(m__namespace.Fragment,null,h,f.map(function(g,v){var p=g.start,b=g.end;return m__namespace.createElement(By,{index:v,prefixCls:t,style:q(q({},Ja(n,v)),u.track),start:p,end:b,key:v,onStartMove:a})})):null}var cte=m__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.classNames,l=e.styles,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,f=d===void 0?!0:d,h=e.autoFocus,g=e.onFocus,v=e.onBlur,p=e.min,b=p===void 0?0:p,y=e.max,C=y===void 0?100:y,w=e.step,x=w===void 0?1:w,$=e.value,S=e.defaultValue,E=e.range,I=e.count,O=e.onChange,M=e.onBeforeChange,R=e.onAfterChange,k=e.allowCross,A=k===void 0?!0:k,L=e.pushable,T=L===void 0?!1:L,P=e.draggableTrack,_=e.reverse,z=e.vertical,j=e.included,H=j===void 0?!0:j,B=e.startPoint,V=e.trackStyle,G=e.handleStyle,X=e.railStyle,Q=e.dotStyle,ee=e.activeDotStyle,W=e.marks,Z=e.dots,U=e.handleRender,ue=e.tabIndex,le=ue===void 0?0:ue,ie=e.ariaLabelForHandle,ce=e.ariaLabelledByForHandle,se=e.ariaValueTextFormatterForHandle,Y=m__namespace.useRef(),ae=m__namespace.useRef(),me=m__namespace.useMemo(function(){return z?_?"ttb":"btt":_?"rtl":"ltr"},[_,z]),te=m__namespace.useMemo(function(){return isFinite(b)?b:0},[b]),re=m__namespace.useMemo(function(){return isFinite(C)?C:100},[C]),he=m__namespace.useMemo(function(){return x!==null&&x<=0?1:x},[x]),Ce=m__namespace.useMemo(function(){return typeof T=="boolean"?T?he:!1:T>=0?T:!1},[T,he]),ke=m__namespace.useMemo(function(){var ft=Object.keys(W||{});return ft.map(function(je){var Pe=W[je],Ee={value:Number(je)};return Pe&&ut(Pe)==="object"&&!m__namespace.isValidElement(Pe)&&("label"in Pe||"style"in Pe)?(Ee.style=Pe.style,Ee.label=Pe.label):Ee.label=Pe,Ee}).filter(function(je){var Pe=je.label;return Pe||typeof Pe=="number"}).sort(function(je,Pe){return je.value-Pe.value})},[W]),We=rte(te,re,he,ke,A,Ce),Ge=J(We,2),Me=Ge[0],Xe=Ge[1],ze=qt(S,{value:$}),He=J(ze,2),Ie=He[0],we=He[1],qe=m__namespace.useMemo(function(){var ft=Ie==null?[]:Array.isArray(Ie)?Ie:[Ie],je=J(ft,1),Pe=je[0],Ee=Pe===void 0?te:Pe,Oe=Ie===null?[]:[Ee];if(E){if(Oe=Ae(ft),I||Ie===void 0){var Ve=I>=0?I+1:2;for(Oe=Oe.slice(0,Ve);Oe.length<Ve;){var mt;Oe.push((mt=Oe[Oe.length-1])!==null&&mt!==void 0?mt:te);}}Oe.sort(function(_t,Mt){return _t-Mt});}return Oe.forEach(function(_t,Mt){Oe[Mt]=Me(_t);}),Oe},[Ie,E,te,I,Me]),nt=m__namespace.useRef(qe);nt.current=qe;var bt=function(je){return E?je:je[0]},Ze=function(je){var Pe=Ae(je).sort(function(Ee,Oe){return Ee-Oe});O&&!ol(Pe,nt.current,!0)&&O(bt(Pe)),we(Pe);},Je=function(){R==null||R(bt(nt.current));},gt=nte(ae,me,qe,te,re,Me,Ze,Je,Xe),vt=J(gt,4),st=vt[0],dt=vt[1],et=vt[2],$e=vt[3],xe=function(je,Pe){if(!u){var Ee=0,Oe=re-te;qe.forEach(function(mt,_t){var Mt=Math.abs(je-mt);Mt<=Oe&&(Oe=Mt,Ee=_t);});var Ve=Ae(qe);Ve[Ee]=je,E&&!qe.length&&I===void 0&&Ve.push(je),M==null||M(bt(Ve)),Ze(Ve),R==null||R(bt(Ve)),Pe&&$e(Pe,Ee,Ve);}},_e=function(je){je.preventDefault();var Pe=ae.current.getBoundingClientRect(),Ee=Pe.width,Oe=Pe.height,Ve=Pe.left,mt=Pe.top,_t=Pe.bottom,Mt=Pe.right,mn=je.clientX,un=je.clientY,hn;switch(me){case"btt":hn=(_t-un)/Oe;break;case"ttb":hn=(un-mt)/Oe;break;case"rtl":hn=(Mt-mn)/Ee;break;default:hn=(mn-Ve)/Ee;}var Fn=te+hn*(re-te);xe(Me(Fn),je);},ge=m__namespace.useState(null),Te=J(ge,2),Se=Te[0],fe=Te[1],oe=function(je,Pe){if(!u){var Ee=Xe(qe,je,Pe);M==null||M(bt(qe)),Ze(Ee.values),R==null||R(bt(Ee.values)),fe(Ee.value);}};m__namespace.useEffect(function(){if(Se!==null){var ft=qe.indexOf(Se);ft>=0&&Y.current.focus(ft);}fe(null);},[Se]);var ye=m__namespace.useMemo(function(){return P&&he===null?!1:P},[P,he]),de=function(je,Pe){$e(je,Pe),M==null||M(bt(nt.current));},pe=st!==-1;m__namespace.useEffect(function(){if(!pe){var ft=qe.lastIndexOf(dt);Y.current.focus(ft);}},[pe]);var Le=m__namespace.useMemo(function(){return Ae(et).sort(function(ft,je){return ft-je})},[et]),Ue=m__namespace.useMemo(function(){return E?[Le[0],Le[Le.length-1]]:[te,Le[0]]},[Le,E,te]),lt=J(Ue,2),it=lt[0],Et=lt[1];m__namespace.useImperativeHandle(t,function(){return {focus:function(){Y.current.focus(0);},blur:function(){var je=document,Pe=je.activeElement;ae.current.contains(Pe)&&(Pe==null||Pe.blur());}}}),m__namespace.useEffect(function(){h&&Y.current.focus(0);},[]);var wt=m__namespace.useMemo(function(){return {min:te,max:re,direction:me,disabled:u,keyboard:f,step:he,included:H,includedStart:it,includedEnd:Et,range:E,tabIndex:le,ariaLabelForHandle:ie,ariaLabelledByForHandle:ce,ariaValueTextFormatterForHandle:se,styles:l||{},classNames:s||{}}},[te,re,me,u,f,he,H,it,Et,E,le,ie,ce,se,l,s]);return m__namespace.createElement($a.Provider,{value:wt},m__namespace.createElement("div",{ref:ae,className:K(o,a,(n={},F(n,"".concat(o,"-disabled"),u),F(n,"".concat(o,"-vertical"),z),F(n,"".concat(o,"-horizontal"),!z),F(n,"".concat(o,"-with-marks"),ke.length),n)),style:i,onMouseDown:_e},m__namespace.createElement("div",{className:K("".concat(o,"-rail"),s==null?void 0:s.rail),style:q(q({},X),l==null?void 0:l.rail)}),m__namespace.createElement(lte,{prefixCls:o,style:V,values:Le,startPoint:B,onStartMove:ye?de:null}),m__namespace.createElement(ste,{prefixCls:o,marks:ke,dots:Z,style:Q,activeStyle:ee}),m__namespace.createElement(tte,{ref:Y,prefixCls:o,style:G,values:et,draggingIndex:st,onStartMove:de,onOffsetChange:oe,onFocus:g,onBlur:v,handleRender:U}),m__namespace.createElement(ate,{prefixCls:o,marks:ke,onClick:xe})))});const ute=m__namespace.forwardRef((e,t)=>{const{open:n}=e,r=m.useRef(null),o=m.useRef(null);function a(){Rt.cancel(o.current),o.current=null;}function i(){o.current=Rt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return m__namespace.useEffect(()=>(n?i():a(),a),[n,e.title]),m__namespace.createElement(il,Object.assign({ref:Xn(r,t)},e))}),dte=ute,fte=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Ft(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+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 Jt(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"}})}},R2=(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,f=(o-r)/2,h=t?{borderWidth:`${f}px 0`,transform:`translateY(-${f}px)`}:{borderWidth:`0 ${f}px`,transform:`translateX(-${f}px)`};return {[i]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track,${n}-tracks`]:{[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}}},mte=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},R2(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},hte=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},R2(e,!1)),{height:"100%"})}},gte=Kt("Slider",e=>{const t=St(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [fte(t),mte(t),hte(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 vte=function(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 pte(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const bte=m.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f}=e,h=vte(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:b}=m.useContext(rt),y=m.useContext(Kr),C=s??y,[w,x]=m.useState({}),$=(T,P)=>{x(_=>Object.assign(Object.assign({},_),{[T]:P}));},S=(T,P)=>T||(P?g==="rtl"?"left":"right":"top"),E=p("slider",n),[I,O]=gte(E),M=K(o,v==null?void 0:v.className,a,{[`${E}-rtl`]:g==="rtl"},O);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[R,k]=m.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),A=(T,P)=>{var _;const{index:z,dragging:j}=P,{tooltip:H={},vertical:B}=e,V=Object.assign({},H),{open:G,placement:X,getPopupContainer:Q,prefixCls:ee,formatter:W}=V,Z=pte(W,c),U=Z?w[z]||j:!1,ue=(_=G??u)!==null&&_!==void 0?_:G===void 0&&U,le=Object.assign(Object.assign({},T.props),{onMouseEnter:()=>$(z,!0),onMouseLeave:()=>$(z,!1),onFocus:ie=>{var ce;$(z,!0),(ce=h.onFocus)===null||ce===void 0||ce.call(h,ie);},onBlur:ie=>{var ce;$(z,!1),(ce=h.onBlur)===null||ce===void 0||ce.call(h,ie);}});return m.createElement(dte,Object.assign({},V,{prefixCls:p("tooltip",ee??l),title:Z?Z(P.value):"",open:ue,placement:S(X??f,B),key:z,overlayClassName:`${E}-tooltip`,getPopupContainer:Q||d||b}),m.cloneElement(T,le))},L=Object.assign(Object.assign({},v==null?void 0:v.style),i);return I(m.createElement(cte,Object.assign({},h,{step:h.step,range:R,draggableTrack:k,className:M,style:L,disabled:C,ref:t,prefixCls:E,handleRender:A})))}),yte=bte;var Cte={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 Ste=Cte;var wte=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:Ste}))};const M2=m__namespace.forwardRef(wte);function Hy(e){return !!(e&&e.then)}const $te=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=m__namespace.useRef(!1),f=m__namespace.useRef(null),[h,g]=ra(!1),v=function(){a==null||a.apply(void 0,arguments);};m__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var C;(C=f.current)===null||C===void 0||C.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{Hy(y)&&(g(!0),y.then(function(){g(!1,!0),v.apply(void 0,arguments),d.current=!1;},C=>{if(g(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(C)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){v();return}let C;if(s){if(C=u(y),c&&!Hy(C)){d.current=!1,v(y);return}}else if(u.length)C=u(a),d.current=!1;else if(C=u(),!C){v();return}p(C);};return m__namespace.createElement(Zt,Object.assign({},q$(t),{onClick:b,loading:h,prefixCls:r},o,{ref:f}),n)},xte=$te,Ete=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}}}}},_2=Kt("Popconfirm",e=>Ete(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},{resetStyle:!1});var Ite=function(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 T2=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:l="primary",icon:c=m__namespace.createElement(M2,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=m__namespace.useContext(rt),[p]=ki("Popconfirm",po.Popconfirm),b=yi(o),y=yi(a);return m__namespace.createElement("div",{className:`${t}-inner-content`,onClick:g},m__namespace.createElement("div",{className:`${t}-message`},c&&m__namespace.createElement("span",{className:`${t}-message-icon`},c),m__namespace.createElement("div",{className:`${t}-message-text`},b&&m__namespace.createElement("div",{className:K(`${t}-title`)},b),y&&m__namespace.createElement("div",{className:`${t}-description`},y))),m__namespace.createElement("div",{className:`${t}-buttons`},u&&m__namespace.createElement(Zt,Object.assign({onClick:h,size:"small"},r),i??(p==null?void 0:p.cancelText)),m__namespace.createElement(xte,{buttonProps:Object.assign(Object.assign({size:"small"},q$(l)),n),actionFn:f,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},Ote=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=Ite(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=m__namespace.useContext(rt),s=i("popconfirm",t),[l]=_2(s);return l(m__namespace.createElement(S$,{placement:n,className:K(s,r),style:o,content:m__namespace.createElement(T2,Object.assign({prefixCls:s},a))}))},Pte=Ote;var Rte=function(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 N2=m__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:l=m__namespace.createElement(M2,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,h=Rte(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:g}=m__namespace.useContext(rt),[v,p]=qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),b=(O,M)=>{p(O,!0),f==null||f(O),d==null||d(O,M);},y=O=>{b(!1,O);},C=O=>{var M;return (M=e.onConfirm)===null||M===void 0?void 0:M.call(void 0,O)},w=O=>{var M;b(!1,O),(M=e.onCancel)===null||M===void 0||M.call(void 0,O);},x=O=>{O.keyCode===ve.ESC&&v&&b(!1,O);},$=O=>{const{disabled:M=!1}=e;M||b(O);},S=g("popconfirm",o),E=K(S,u),[I]=_2(S);return I(m__namespace.createElement(_d,Object.assign({},jn(h,["title"]),{trigger:i,placement:a,onOpenChange:$,open:v,ref:t,overlayClassName:E,content:m__namespace.createElement(T2,Object.assign({okType:s,icon:l},e,{prefixCls:S,close:y,onConfirm:C,onCancel:w})),"data-popover-inject":!0}),Kn(c,{onKeyDown:O=>{var M,R;m__namespace.isValidElement(c)&&((R=c==null?void 0:(M=c.props).onKeyDown)===null||R===void 0||R.call(M,O)),x(O);}})))});N2._InternalPanelDoNotUseOrYouWillBeFired=Pte;const zh=N2;var Mte={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 _te=Mte;var Tte=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:_te}))};const Nte=m__namespace.forwardRef(Tte);function jh(){return typeof BigInt=="function"}function ia(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 op(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Fs(e){var t=String(e);if(op(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(".")&&ap(t)?t.length-t.indexOf(".")-1:0}function Vd(e){var t=String(e);if(op(e)){if(e>Number.MAX_SAFE_INTEGER)return String(jh()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(jh()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Fs(t));}return ia(t).fullStr}function ap(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 k2(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var kte=function(){function e(t){if(xn(this,e),F(this,"origin",""),F(this,"number",void 0),F(this,"empty",void 0),k2(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return En(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(Fs(this.number),Fs(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()?"":Vd(this.number):this.origin}}]),e}(),Ate=function(){function e(t){if(xn(this,e),F(this,"origin",""),F(this,"negative",void 0),F(this,"integer",void 0),F(this,"decimal",void 0),F(this,"decimalLen",void 0),F(this,"empty",void 0),F(this,"nan",void 0),k2(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(op(n)&&(n=Number(n)),n=typeof n=="string"?n:Vd(n),ap(n)){var r=ia(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 En(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=ia(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()?"":ia("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function kr(e){return jh()?new Ate(e):new kte(e)}function xc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ia(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=kr(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return xc(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 Lte(e,t){var n=m.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],f=a.indexOf(d,c-1);f!==-1&&(u=f+1);}e.setSelectionRange(u,u);}catch(h){wn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var Dte=function(){var t=m.useState(!1),n=J(t,2),r=n[0],o=n[1];return Xt(function(){o(sd());},[]),r},zte=200,jte=600;function Fte(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=m__namespace.useRef(),l=m__namespace.useRef([]),c=m__namespace.useRef();c.current=i;var u=function(){clearTimeout(s.current);},d=function(C,w){C.preventDefault(),u(),c.current(w);function x(){c.current(w),s.current=setTimeout(x,zte);}s.current=setTimeout(x,jte);};m__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Rt.cancel(y)});}},[]);var f=Dte();if(f)return null;var h="".concat(t,"-handler"),g=K(h,"".concat(h,"-up"),F({},"".concat(h,"-up-disabled"),o)),v=K(h,"".concat(h,"-down"),F({},"".concat(h,"-down-disabled"),a)),p=function(){return l.current.push(Rt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return m__namespace.createElement("div",{className:"".concat(h,"-wrap")},m__namespace.createElement("span",Re({},b,{onMouseDown:function(C){d(C,!0);},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m__namespace.createElement("span",Re({},b,{onMouseDown:function(C){d(C,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Wy(e){var t=typeof e=="number"?Vd(e):ia(e).fullStr,n=t.includes(".");return n?ia(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Bte=function(){var e=m.useRef(0),t=function(){Rt.cancel(e.current);};return m.useEffect(function(){return t},[]),function(n){t(),e.current=Rt(function(){n();});}};var Hte=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Wte=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Vy=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Gy=function(t){var n=kr(t);return n.isInvalidate()?null:n},Vte=m__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,f=e.value,h=e.disabled,g=e.readOnly,v=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,C=y===void 0?!0:y,w=e.classNames,x=e.stringMode,$=e.parser,S=e.formatter,E=e.precision,I=e.decimalSeparator,O=e.onChange,M=e.onInput,R=e.onPressEnter,k=e.onStep,A=e.changeOnBlur,L=A===void 0?!0:A,T=tt(e,Hte),P="".concat(o,"-input"),_=m__namespace.useRef(null),z=m__namespace.useState(!1),j=J(z,2),H=j[0],B=j[1],V=m__namespace.useRef(!1),G=m__namespace.useRef(!1),X=m__namespace.useRef(!1),Q=m__namespace.useState(function(){return kr(f??d)}),ee=J(Q,2),W=ee[0],Z=ee[1];function U($e){f===void 0&&Z($e);}var ue=m__namespace.useCallback(function($e,xe){if(!xe)return E>=0?E:Math.max(Fs($e),Fs(u))},[E,u]),le=m__namespace.useCallback(function($e){var xe=String($e);if($)return $(xe);var _e=xe;return I&&(_e=_e.replace(I,".")),_e.replace(/[^\w.-]+/g,"")},[$,I]),ie=m__namespace.useRef(""),ce=m__namespace.useCallback(function($e,xe){if(S)return S($e,{userTyping:xe,input:String(ie.current)});var _e=typeof $e=="number"?Vd($e):$e;if(!xe){var ge=ue(_e,xe);if(ap(_e)&&(I||ge>=0)){var Te=I||".";_e=xc(_e,Te,ge);}}return _e},[S,ue,I]),se=m__namespace.useState(function(){var $e=d??f;return W.isInvalidate()&&["string","number"].includes(ut($e))?Number.isNaN($e)?"":$e:ce(W.toString(),!1)}),Y=J(se,2),ae=Y[0],me=Y[1];ie.current=ae;function te($e,xe){me(ce($e.isInvalidate()?$e.toString(!1):$e.toString(!xe),xe));}var re=m__namespace.useMemo(function(){return Gy(l)},[l,E]),he=m__namespace.useMemo(function(){return Gy(s)},[s,E]),Ce=m__namespace.useMemo(function(){return !re||!W||W.isInvalidate()?!1:re.lessEquals(W)},[re,W]),ke=m__namespace.useMemo(function(){return !he||!W||W.isInvalidate()?!1:W.lessEquals(he)},[he,W]),We=Lte(_.current,H),Ge=J(We,2),Me=Ge[0],Xe=Ge[1],ze=function(xe){return re&&!xe.lessEquals(re)?re:he&&!he.lessEquals(xe)?he:null},He=function(xe){return !ze(xe)},Ie=function(xe,_e){var ge=xe,Te=He(ge)||ge.isEmpty();if(!ge.isEmpty()&&!_e&&(ge=ze(ge)||ge,Te=!0),!g&&!h&&Te){var Se=ge.toString(),fe=ue(Se,_e);return fe>=0&&(ge=kr(xc(Se,".",fe)),He(ge)||(ge=kr(xc(Se,".",fe,!0)))),ge.equals(W)||(U(ge),O==null||O(ge.isEmpty()?null:Vy(x,ge)),f===void 0&&te(ge,_e)),ge}return W},we=Bte(),qe=function $e(xe){if(Me(),ie.current=xe,me(xe),!G.current){var _e=le(xe),ge=kr(_e);ge.isNaN()||Ie(ge,!0);}M==null||M(xe),we(function(){var Te=xe;$||(Te=xe.replace(/。/g,".")),Te!==xe&&$e(Te);});},nt=function(){G.current=!0;},bt=function(){G.current=!1,qe(_.current.value);},Ze=function(xe){qe(xe.target.value);},Je=function(xe){var _e;if(!(xe&&Ce||!xe&&ke)){V.current=!1;var ge=kr(X.current?Wy(u):u);xe||(ge=ge.negate());var Te=(W||kr(0)).add(ge.toString()),Se=Ie(Te,!1);k==null||k(Vy(x,Se),{offset:X.current?Wy(u):u,type:xe?"up":"down"}),(_e=_.current)===null||_e===void 0||_e.focus();}},gt=function(xe){var _e=kr(le(ae)),ge=_e;_e.isNaN()?ge=Ie(W,xe):ge=Ie(_e,xe),f!==void 0?te(W,!1):ge.isNaN()||te(ge,!1);},vt=function(){V.current=!0;},st=function(xe){var _e=xe.key,ge=xe.shiftKey;V.current=!0,X.current=ge,_e==="Enter"&&(G.current||(V.current=!1),gt(!1),R==null||R(xe)),b!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(_e)&&(Je(_e==="Up"||_e==="ArrowUp"),xe.preventDefault());},dt=function(){V.current=!1,X.current=!1;},et=function(){L&>(!1),B(!1),V.current=!1;};return ti(function(){W.isInvalidate()||te(W,!1);},[E,S]),ti(function(){var $e=kr(f);Z($e);var xe=kr(le(ae));(!$e.equals(xe)||!V.current||S)&&te($e,V.current);},[f]),ti(function(){S&&Xe();},[ae]),m__namespace.createElement("div",{className:K(o,w==null?void 0:w.input,a,(n={},F(n,"".concat(o,"-focused"),H),F(n,"".concat(o,"-disabled"),h),F(n,"".concat(o,"-readonly"),g),F(n,"".concat(o,"-not-a-number"),W.isNaN()),F(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!He(W)),n)),style:i,onFocus:function(){B(!0);},onBlur:et,onKeyDown:st,onKeyUp:dt,onCompositionStart:nt,onCompositionEnd:bt,onBeforeInput:vt},C&&m__namespace.createElement(Fte,{prefixCls:o,upNode:v,downNode:p,upDisabled:Ce,downDisabled:ke,onStep:Je}),m__namespace.createElement("div",{className:"".concat(P,"-wrap")},m__namespace.createElement("input",Re({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},T,{ref:Xn(_,t),className:P,value:ae,onChange:Ze,disabled:h,readOnly:g}))))}),A2=m__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,f=e.classNames,h=tt(e,Wte),g=m__namespace.useRef(null),v=function(b){g.current&&zx(g.current,b);};return m__namespace.createElement(Wv,{inputElement:m__namespace.createElement(Vte,Re({prefixCls:o,disabled:n,classNames:f,ref:Xn(g,t)},h)),className:d,triggerFocus:v,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});A2.displayName="InputNumber";const Ky=(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}}}},Gte=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:f,handleHoverColor:h,paddingInline:g,paddingBlock:v,handleBg:p,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:C,borderRadiusLG:w,controlWidth:x,handleVisible:$,handleBorderColor:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),Ol(e)),Fd(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Ft(e)),Dx(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},zv(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{width:"100%",padding:`${v}px ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),kx(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:$===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${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} ${S}`,transition:`all ${f} 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({},Ca()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${S}`,borderEndEndRadius:a}},Ky(e,"lg")),Ky(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}}}]},Kte=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({},Ol(e)),Fd(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},Ute=Kt("InputNumber",e=>{const t=St(e,Fv(e));return [Gte(t),Kte(t),Dd(t)]},e=>Object.assign(Object.assign({},Bv(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 Xte=function(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 L2=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(rt),o=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:h=!0,readOnly:g,status:v,controls:p}=e,b=Xte(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[C,w]=Ute(y),{compactSize:x,compactItemClassnames:$}=Ai(y,r);let S=m__namespace.createElement(Nte,{className:`${y}-handler-up-inner`}),E=m__namespace.createElement(_v,{className:`${y}-handler-down-inner`});const I=typeof p=="boolean"?p:void 0;typeof p=="object"&&(S=typeof p.upIcon>"u"?S:m__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),E=typeof p.downIcon>"u"?E:m__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:O,status:M,isFormItemInput:R,feedbackIcon:k}=m__namespace.useContext(Or),A=El(M,v),L=tr(B=>{var V;return (V=s??x)!==null&&V!==void 0?V:B}),T=m__namespace.useContext(Kr),P=l??T,_=K({[`${y}-lg`]:L==="large",[`${y}-sm`]:L==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!h,[`${y}-in-form-item`]:R},jr(y,A),w),z=`${y}-group`,j=O&&m__namespace.createElement(m__namespace.Fragment,null,k),H=m__namespace.createElement(A2,Object.assign({ref:o,disabled:P,className:K(a,i,$),upHandler:S,downHandler:E,prefixCls:y,readOnly:g,controls:I,prefix:f,suffix:j,addonAfter:d&&m__namespace.createElement(gi,null,m__namespace.createElement(As,{override:!0,status:!0},d)),addonBefore:u&&m__namespace.createElement(gi,null,m__namespace.createElement(As,{override:!0,status:!0},u)),classNames:{input:_},classes:{affixWrapper:K(jr(`${y}-affix-wrapper`,A,O),{[`${y}-affix-wrapper-sm`]:L==="small",[`${y}-affix-wrapper-lg`]:L==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!h},w),wrapper:K({[`${z}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:P},w),group:K({[`${y}-group-wrapper-sm`]:L==="small",[`${y}-group-wrapper-lg`]:L==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},jr(`${y}-group-wrapper`,A,O),w)}},b));return C(H)}),D2=L2,qte=e=>m__namespace.createElement(Bo,{theme:{components:{InputNumber:{handleVisible:!0}}}},m__namespace.createElement(L2,Object.assign({},e)));D2._InternalPanelDoNotUseOrYouWillBeFired=qte;const Fh=D2;var Yte={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 Qte=Yte;var Zte=function(t,n){return m__namespace.createElement(Mn,Re({},t,{ref:n,icon:Qte}))};const Jte=m__namespace.forwardRef(Zte),Gd=m.createContext(null);var z2=m__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 m__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:K(n,i&&"".concat(n,"-active"),r),ref:t},l)}),ene=["key","forceRender","style","className","destroyInactiveTabPane"];function tne(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=m__namespace.useContext(Gd),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return m__namespace.createElement("div",{className:K("".concat(s,"-content-holder"))},m__namespace.createElement("div",{className:K("".concat(s,"-content"),"".concat(s,"-content-").concat(o),F({},"".concat(s,"-content-animated"),c))},l.map(function(d){var f=d.key,h=d.forceRender,g=d.style,v=d.className,p=d.destroyInactiveTabPane,b=tt(d,ene),y=f===n;return m__namespace.createElement(Co,Re({key:f,visible:y,forceRender:h,removeOnLeave:!!(a||p),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(C,w){var x=C.style,$=C.className;return m__namespace.createElement(z2,Re({},b,{prefixCls:u,id:t,tabKey:f,animated:c,active:y,style:q(q({},g),x),className:K(v,$),ref:w}))})})))}var nne=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicatorSize,i=m.useState(),s=J(i,2),l=s[0],c=s[1],u=m.useRef(),d=function(g){return typeof a=="function"?a(g):typeof a=="number"?a:g};function f(){Rt.cancel(u.current);}return m.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))),f(),u.current=Rt(function(){c(h);}),f},[n,r,o,a]),{style:l}},Uy={width:0,height:0,left:0,top:0};function rne(e,t,n){return m.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Uy,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)||Uy;}var d=o.get(l)||q({},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 Xy(e,t){var n=m__namespace.useRef(e),r=m__namespace.useState({}),o=J(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 one=.1,qy=.01,Ec=20,Yy=Math.pow(.995,Ec);function ane(e,t){var n=m.useState(),r=J(n,2),o=r[0],a=r[1],i=m.useState(0),s=J(i,2),l=s[0],c=s[1],u=m.useState(0),d=J(u,2),f=d[0],h=d[1],g=m.useState(),v=J(g,2),p=v[0],b=v[1],y=m.useRef();function C(I){var O=I.touches[0],M=O.screenX,R=O.screenY;a({x:M,y:R}),window.clearInterval(y.current);}function w(I){if(o){I.preventDefault();var O=I.touches[0],M=O.screenX,R=O.screenY;a({x:M,y:R});var k=M-o.x,A=R-o.y;t(k,A);var L=Date.now();c(L),h(L-l),b({x:k,y:A});}}function x(){if(o&&(a(null),b(null),p)){var I=p.x/f,O=p.y/f,M=Math.abs(I),R=Math.abs(O);if(Math.max(M,R)<one)return;var k=I,A=O;y.current=window.setInterval(function(){if(Math.abs(k)<qy&&Math.abs(A)<qy){window.clearInterval(y.current);return}k*=Yy,A*=Yy,t(k*Ec,A*Ec);},Ec);}}var $=m.useRef();function S(I){var O=I.deltaX,M=I.deltaY,R=0,k=Math.abs(O),A=Math.abs(M);k===A?R=$.current==="x"?O:M:k>A?(R=O,$.current="x"):(R=M,$.current="y"),t(-R,-R)&&I.preventDefault();}var E=m.useRef(null);E.current={onTouchStart:C,onTouchMove:w,onTouchEnd:x,onWheel:S},m__namespace.useEffect(function(){function I(k){E.current.onTouchStart(k);}function O(k){E.current.onTouchMove(k);}function M(k){E.current.onTouchEnd(k);}function R(k){E.current.onWheel(k);}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",M,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",R),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",M);}},[]);}function j2(e){var t=m.useState(0),n=J(t,2),r=n[0],o=n[1],a=m.useRef(0),i=m.useRef();return i.current=e,ti(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 ine(e){var t=m.useRef([]),n=m.useState({}),r=J(n,2),o=r[1],a=m.useRef(typeof e=="function"?e():e),i=j2(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 Qy={width:0,height:0,left:0,top:0,right:0};function sne(e,t,n,r,o,a,i){var s=i.tabs,l=i.tabPosition,c=i.rtl,u,d,f;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),m.useMemo(function(){if(!s.length)return [0,0];for(var h=s.length,g=h,v=0;v<h;v+=1){var p=e.get(s[v].key)||Qy;if(p[d]+p[u]>f+t){g=v-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var C=e.get(s[y].key)||Qy;if(C[d]<f){b=y+1;break}}return b>=g?[0,0]:[b,g]},[e,t,r,o,a,f,l,s.map(function(h){return h.key}).join("_"),c])}function Zy(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var lne="TABS_DQ";function F2(e){return String(e).replace(/"/g,lne)}function B2(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function cne(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return !r||r.showAdd===!1?null:m__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 H2=m__namespace.forwardRef(cne);var Jy=m__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return ut(o)==="object"&&!m__namespace.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?m__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null});function une(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,f=e.editable,h=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=m.useState(!1),w=J(C,2),x=w[0],$=w[1],S=m.useState(null),E=J(S,2),I=E[0],O=E[1],M="".concat(r,"-more-popup"),R="".concat(n,"-dropdown"),k=I!==null?"".concat(M,"-").concat(I):null,A=a==null?void 0:a.dropdownAriaLabel;function L(B,V){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:V,event:B});}var T=m__namespace.createElement(zi,{onClick:function(V){var G=V.key,X=V.domEvent;p(G,X),$(!1);},prefixCls:"".concat(R,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[I],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(B){var V=B.closable,G=B.disabled,X=B.closeIcon,Q=B.key,ee=B.label,W=B2(V,X,f,G);return m__namespace.createElement(Cl,{key:Q,id:"".concat(M,"-").concat(Q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Q),disabled:G},m__namespace.createElement("span",null,ee),W&&m__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(U){U.stopPropagation(),L(U,Q);}},X||f.removeIcon||"×"))}));function P(B){for(var V=o.filter(function(W){return !W.disabled}),G=V.findIndex(function(W){return W.key===I})||0,X=V.length,Q=0;Q<X;Q+=1){G=(G+B+X)%X;var ee=V[G];if(!ee.disabled){O(ee.key);return}}}function _(B){var V=B.which;if(!x){[ve.DOWN,ve.SPACE,ve.ENTER].includes(V)&&($(!0),B.preventDefault());return}switch(V){case ve.UP:P(-1),B.preventDefault();break;case ve.DOWN:P(1),B.preventDefault();break;case ve.ESC:$(!1);break;case ve.SPACE:case ve.ENTER:I!==null&&p(I,B);break}}m.useEffect(function(){var B=document.getElementById(k);B&&B.scrollIntoView&&B.scrollIntoView(!1);},[I]),m.useEffect(function(){x||O(null);},[x]);var z=F({},g?"marginRight":"marginLeft",h);o.length||(z.visibility="hidden",z.order=1);var j=K(F({},"".concat(R,"-rtl"),g)),H=i?null:m__namespace.createElement(O$,{prefixCls:R,overlay:T,trigger:["hover"],visible:o.length?x:!1,transitionName:c,onVisibleChange:$,overlayClassName:K(j,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},m__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":x,onKeyDown:_},l));return m__namespace.createElement("div",{className:K("".concat(n,"-nav-operations"),d),style:u,ref:t},H,m__namespace.createElement(H2,{prefixCls:n,locale:a,editable:f}))}const dne=m__namespace.memo(m__namespace.forwardRef(une),function(e,t){return t.tabMoving});function fne(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,f=e.removeAriaLabel,h=e.editable,g=e.onClick,v=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=B2(u,c,h,l);function C($){l||g($);}function w($){$.preventDefault(),$.stopPropagation(),h.onEdit("remove",{key:i,event:$});}var x=m__namespace.createElement("div",{key:i,"data-node-key":F2(i),className:K(b,(t={},F(t,"".concat(b,"-with-remove"),y),F(t,"".concat(b,"-active"),o),F(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:C},m__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(S){S.stopPropagation(),C(S);},onKeyDown:function(S){[ve.SPACE,ve.ENTER].includes(S.which)&&(S.preventDefault(),C(S));},onFocus:v},s),y&&m__namespace.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(S){S.stopPropagation(),w(S);}},c||h.removeIcon||"×"));return d?d(x):x}var mne=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,d=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,d-n.y]:[r,o,i,a]},Ba=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-o)<1)return [l,c]}return [o,i]},sc=function(t,n){return t[n?0:1]};function hne(e,t){var n,r=m__namespace.useContext(Gd),o=r.prefixCls,a=r.tabs,i=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,f=e.extra,h=e.editable,g=e.locale,v=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,C=e.onTabScroll,w=e.indicatorSize,x=m.useRef(),$=m.useRef(),S=m.useRef(),E=m.useRef(),I=m.useRef(),O=m.useRef(),M=m.useRef(),R=v==="top"||v==="bottom",k=Xy(0,function(je,Pe){R&&C&&C({direction:je>Pe?"left":"right"});}),A=J(k,2),L=A[0],T=A[1],P=Xy(0,function(je,Pe){!R&&C&&C({direction:je>Pe?"top":"bottom"});}),_=J(P,2),z=_[0],j=_[1],H=m.useState([0,0]),B=J(H,2),V=B[0],G=B[1],X=m.useState([0,0]),Q=J(X,2),ee=Q[0],W=Q[1],Z=m.useState([0,0]),U=J(Z,2),ue=U[0],le=U[1],ie=m.useState([0,0]),ce=J(ie,2),se=ce[0],Y=ce[1],ae=ine(new Map),me=J(ae,2),te=me[0],re=me[1],he=rne(a,te,ee[0]),Ce=sc(V,R),ke=sc(ee,R),We=sc(ue,R),Ge=sc(se,R),Me=Ce<ke+We,Xe=Me?Ce-Ge:Ce-We,ze="".concat(o,"-nav-operations-hidden"),He=0,Ie=0;R&&d?(He=0,Ie=Math.max(0,ke-Xe)):(He=Math.min(0,Xe-ke),Ie=0);function we(je){return je<He?He:je>Ie?Ie:je}var qe=m.useRef(),nt=m.useState(),bt=J(nt,2),Ze=bt[0],Je=bt[1];function gt(){Je(Date.now());}function vt(){window.clearTimeout(qe.current);}ane(E,function(je,Pe){function Ee(Oe,Ve){Oe(function(mt){var _t=we(mt+Ve);return _t});}return Me?(R?Ee(T,je):Ee(j,Pe),vt(),gt(),!0):!1}),m.useEffect(function(){return vt(),Ze&&(qe.current=window.setTimeout(function(){Je(0);},100)),vt},[Ze]);var st=sne(he,Xe,R?L:z,ke,We,Ge,q(q({},e),{},{tabs:a})),dt=J(st,2),et=dt[0],$e=dt[1],xe=kn(function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Pe=he.get(je)||{width:0,height:0,left:0,right:0,top:0};if(R){var Ee=L;d?Pe.right<L?Ee=Pe.right:Pe.right+Pe.width>L+Xe&&(Ee=Pe.right+Pe.width-Xe):Pe.left<-L?Ee=-Pe.left:Pe.left+Pe.width>-L+Xe&&(Ee=-(Pe.left+Pe.width-Xe)),j(0),T(we(Ee));}else {var Oe=z;Pe.top<-z?Oe=-Pe.top:Pe.top+Pe.height>-z+Xe&&(Oe=-(Pe.top+Pe.height-Xe)),T(0),j(we(Oe));}}),_e={};v==="top"||v==="bottom"?_e[d?"marginRight":"marginLeft"]=p:_e.marginTop=p;var ge=a.map(function(je,Pe){var Ee=je.key;return m__namespace.createElement(fne,{id:l,prefixCls:o,key:Ee,tab:je,style:Pe===0?void 0:_e,closable:je.closable,editable:h,active:Ee===u,renderWrapper:b,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(Ve){y(Ee,Ve);},onFocus:function(){xe(Ee),gt(),E.current&&(d||(E.current.scrollLeft=0),E.current.scrollTop=0);}})}),Te=function(){return re(function(){var Pe,Ee=new Map,Oe=(Pe=I.current)===null||Pe===void 0?void 0:Pe.getBoundingClientRect();return a.forEach(function(Ve){var mt,_t=Ve.key,Mt=(mt=I.current)===null||mt===void 0?void 0:mt.querySelector('[data-node-key="'.concat(F2(_t),'"]'));if(Mt){var mn=mne(Mt,Oe),un=J(mn,4),hn=un[0],Fn=un[1],Cn=un[2],Ur=un[3];Ee.set(_t,{width:hn,height:Fn,left:Cn,top:Ur});}}),Ee})};m.useEffect(function(){Te();},[a.map(function(je){return je.key}).join("_")]);var Se=j2(function(){var je=Ba(x),Pe=Ba($),Ee=Ba(S);G([je[0]-Pe[0]-Ee[0],je[1]-Pe[1]-Ee[1]]);var Oe=Ba(M);le(Oe);var Ve=Ba(O);Y(Ve);var mt=Ba(I);W([mt[0]-Oe[0],mt[1]-Oe[1]]),Te();}),fe=a.slice(0,et),oe=a.slice($e+1),ye=[].concat(Ae(fe),Ae(oe)),de=he.get(u),pe=nne({activeTabOffset:de,horizontal:R,rtl:d,indicatorSize:w}),Le=pe.style;m.useEffect(function(){xe();},[u,He,Ie,Zy(de),Zy(he),R]),m.useEffect(function(){Se();},[d]);var Ue=!!ye.length,lt="".concat(o,"-nav-wrap"),it,Et,wt,ft;return R?d?(Et=L>0,it=L!==Ie):(it=L<0,Et=L!==He):(wt=z<0,ft=z!==He),m__namespace.createElement(Er,{onResize:Se},m__namespace.createElement("div",{ref:ya(t,x),role:"tablist",className:K("".concat(o,"-nav"),i),style:s,onKeyDown:function(){gt();}},m__namespace.createElement(Jy,{ref:$,position:"left",extra:f,prefixCls:o}),m__namespace.createElement(Er,{onResize:Se},m__namespace.createElement("div",{className:K(lt,(n={},F(n,"".concat(lt,"-ping-left"),it),F(n,"".concat(lt,"-ping-right"),Et),F(n,"".concat(lt,"-ping-top"),wt),F(n,"".concat(lt,"-ping-bottom"),ft),n)),ref:E},m__namespace.createElement(Er,{onResize:Se},m__namespace.createElement("div",{ref:I,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(z,"px)"),transition:Ze?"none":void 0}},ge,m__namespace.createElement(H2,{ref:M,prefixCls:o,locale:g,editable:h,style:q(q({},ge.length===0?void 0:_e),{},{visibility:Ue?"hidden":null})}),m__namespace.createElement("div",{className:K("".concat(o,"-ink-bar"),F({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Le}))))),m__namespace.createElement(dne,Re({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:O,prefixCls:o,tabs:ye,className:!Ue&&ze,tabMoving:!!Ze})),m__namespace.createElement(Jy,{ref:S,position:"right",extra:f,prefixCls:o})))}const e1=m__namespace.forwardRef(hne);var gne=["renderTabBar"],vne=["label","key"];function pne(e){var t=e.renderTabBar,n=tt(e,gne),r=m__namespace.useContext(Gd),o=r.tabs;if(t){var a=q(q({},n),{},{panes:o.map(function(i){var s=i.label,l=i.key,c=tt(i,vne);return m__namespace.createElement(z2,Re({tab:s,key:l,tabKey:l},c))})});return t(a,e1)}return m__namespace.createElement(e1,n)}function bne(){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=q({inkBar:!0},ut(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var yne=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],t1=0;function Cne(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,f=e.animated,h=e.tabPosition,g=h===void 0?"top":h,v=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,$=e.renderTabBar,S=e.onChange,E=e.onTabClick,I=e.onTabScroll,O=e.getPopupContainer,M=e.popupClassName,R=e.indicatorSize,k=tt(e,yne),A=m__namespace.useMemo(function(){return (s||[]).filter(function(Y){return Y&&ut(Y)==="object"&&"key"in Y})},[s]),L=l==="rtl",T=bne(f),P=m.useState(!1),_=J(P,2),z=_[0],j=_[1];m.useEffect(function(){j(sd());},[]);var H=qt(function(){var Y;return (Y=A[0])===null||Y===void 0?void 0:Y.key},{value:c,defaultValue:u}),B=J(H,2),V=B[0],G=B[1],X=m.useState(function(){return A.findIndex(function(Y){return Y.key===V})}),Q=J(X,2),ee=Q[0],W=Q[1];m.useEffect(function(){var Y=A.findIndex(function(me){return me.key===V});if(Y===-1){var ae;Y=Math.max(0,Math.min(ee,A.length-1)),G((ae=A[Y])===null||ae===void 0?void 0:ae.key);}W(Y);},[A.map(function(Y){return Y.key}).join("_"),V,ee]);var Z=qt(null,{value:r}),U=J(Z,2),ue=U[0],le=U[1];m.useEffect(function(){r||(le("rc-tabs-".concat(t1)),t1+=1);},[]);function ie(Y,ae){E==null||E(Y,ae);var me=Y!==V;G(Y),me&&(S==null||S(Y));}var ce={id:ue,activeKey:V,animated:T,tabPosition:g,rtl:L,mobile:z},se=q(q({},ce),{},{editable:d,locale:y,moreIcon:C,moreTransitionName:w,tabBarGutter:v,onTabClick:ie,onTabScroll:I,extra:b,style:p,panes:null,getPopupContainer:O,popupClassName:M,indicatorSize:R});return m__namespace.createElement(Gd.Provider,{value:{tabs:A,prefixCls:a}},m__namespace.createElement("div",Re({ref:t,id:r,className:K(a,"".concat(a,"-").concat(g),(n={},F(n,"".concat(a,"-mobile"),z),F(n,"".concat(a,"-editable"),d),F(n,"".concat(a,"-rtl"),L),n),i)},k),m__namespace.createElement(pne,Re({},se,{renderTabBar:$})),m__namespace.createElement(tne,Re({destroyInactiveTabPane:x},ce,{animated:T}))))}var Sne=m__namespace.forwardRef(Cne);const wne={motionAppear:!1,motionEnter:!0,motionLeave:!0};function $ne(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({},wne),{motionName:ud(e,"switch")})),n}var xne=function(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 Ene(e){return e.filter(t=>t)}function Ine(e,t){if(e)return e;const n=hr(t).map(r=>{if(m__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,l=xne(i,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return Ene(n)}const One=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}`}}}}},[Ao(e,"slide-up"),Ao(e,"slide-down")]]},Pne=One,Rne=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}}}}}}},Mne=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Ft(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({},ca),{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"}}})}})}},_ne=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}}}}}},Tne=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}}}}}},Nne=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}},da(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}}}},kne=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"}}}}},Ane=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({},Ft(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}},da(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Nne(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"}}}}}},Lne=Kt("Tabs",e=>{const t=St(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 [Tne(t),kne(t),_ne(t),Mne(t),Rne(t),Ane(t),Pne(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}}),Dne=()=>null,zne=Dne;var jne=function(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 W2=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:f,style:h,indicatorSize:g}=e,v=jne(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:p,moreIcon:b=m__namespace.createElement(Sv,null)}=v,{direction:y,tabs:C,getPrefixCls:w,getPopupContainer:x}=m__namespace.useContext(rt),$=w("tabs",p),[S,E]=Lne($);let I;t==="editable-card"&&(I={onEdit:(L,T)=>{let{key:P,event:_}=T;a==null||a(L==="add"?_:P,L);},removeIcon:m__namespace.createElement(zd,null),addIcon:l||m__namespace.createElement(Jte,null),showAdd:i!==!0});const O=w(),M=Ine(d,u),R=$ne($,f),k=tr(o),A=Object.assign(Object.assign({},C==null?void 0:C.style),h);return S(m__namespace.createElement(Sne,Object.assign({direction:y,getPopupContainer:x,moreTransitionName:`${O}-slide-up`},v,{items:M,className:K({[`${$}-${k}`]:k,[`${$}-card`]:["card","editable-card"].includes(t),[`${$}-editable-card`]:t==="editable-card",[`${$}-centered`]:s},C==null?void 0:C.className,n,r,E),popupClassName:K(c,E),style:A,editable:I,moreIcon:b,prefixCls:$,animated:R,indicatorSize:g??(C==null?void 0:C.indicatorSize)})))};W2.TabPane=zne;const Fne=W2;class Bne extends Error{constructor(t){super(t),this.name="TimeoutError";}}class Hne extends Error{constructor(t){super(),this.name="AbortError",this.message=t;}}const n1=e=>globalThis.DOMException===void 0?new Hne(e):new DOMException(e),r1=e=>{const t=e.reason===void 0?n1("This operation was aborted."):e.reason;return t instanceof Error?t:n1(t)};function Wne(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:a={setTimeout,clearTimeout}}=t;let i;const l=new Promise((c,u)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:f}=t;f.aborted&&u(r1(f)),f.addEventListener("abort",()=>{u(r1(f));});}if(n===Number.POSITIVE_INFINITY){e.then(c,u);return}const d=new Bne;i=a.setTimeout.call(void 0,()=>{if(r){try{c(r());}catch(f){u(f);}return}typeof e.cancel=="function"&&e.cancel(),o===!1?c():o instanceof Error?u(o):(d.message=o??`Promise timed out after ${n} milliseconds`,u(d));},n),(async()=>{try{c(await e);}catch(f){u(f);}})();}).finally(()=>{l.clear();});return l.clear=()=>{a.clearTimeout.call(void 0,i),i=void 0;},l}const Vne=e=>{const t=e.on||e.addListener||e.addEventListener,n=e.off||e.removeListener||e.removeEventListener;if(!t||!n)throw new TypeError("Emitter is not compatible");return {addListener:t.bind(e),removeListener:n.bind(e)}};function Gne(e,t,n){let r;const o=new Promise((a,i)=>{var h;if(n={rejectionEvents:["error"],multiArgs:!1,resolveImmediately:!1,...n},!(n.count>=0&&(n.count===Number.POSITIVE_INFINITY||Number.isInteger(n.count))))throw new TypeError("The `count` option should be at least 0 or more");(h=n.signal)==null||h.throwIfAborted();const s=[t].flat(),l=[],{addListener:c,removeListener:u}=Vne(e),d=(...g)=>{const v=n.multiArgs?g:g[0];n.filter&&!n.filter(v)||(l.push(v),n.count===l.length&&(r(),a(l)));},f=g=>{r(),i(g);};r=()=>{for(const g of s)u(g,d);for(const g of n.rejectionEvents)u(g,f);};for(const g of s)c(g,d);for(const g of n.rejectionEvents)c(g,f);n.signal&&n.signal.addEventListener("abort",()=>{f(n.signal.reason);},{once:!0}),n.resolveImmediately&&a(l);});if(o.cancel=r,typeof n.timeout=="number"){const a=Wne(o,{milliseconds:n.timeout});return a.cancel=r,a}return o}function Kne(e,t,n){typeof n=="function"&&(n={filter:n}),n={...n,count:1,resolveImmediately:!1};const r=Gne(e,t,n),o=r.then(a=>a[0]);return o.cancel=r.cancel,o}var Une=Object.defineProperty,mu=Object.getOwnPropertySymbols,V2=Object.prototype.hasOwnProperty,G2=Object.prototype.propertyIsEnumerable,o1=(e,t,n)=>t in e?Une(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xne=(e,t)=>{for(var n in t||(t={}))V2.call(t,n)&&o1(e,n,t[n]);if(mu)for(var n of mu(t))G2.call(t,n)&&o1(e,n,t[n]);return e},qne=(e,t)=>{var n={};for(var r in e)V2.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&mu)for(var r of mu(e))t.indexOf(r)<0&&G2.call(e,r)&&(n[r]=e[r]);return n};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT */var ma;(e=>{const t=class{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let f=[];for(let g=0;g<this.size;g++)f.push(!1);for(let g=0;g<this.size;g++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const h=this.addEccAndInterleave(u);if(this.drawCodewords(h),d==-1){let g=1e9;for(let v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);const p=this.getPenaltyScore();p<g&&(d=v,g=p),this.applyMask(v);}}a(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[];}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return t.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return t.encodeSegments([u],c)}static encodeSegments(l,c,u=1,d=40,f=-1,h=!0){if(!(t.MIN_VERSION<=u&&u<=d&&d<=t.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let g,v;for(g=u;;g++){const C=t.getNumDataCodewords(g,c)*8,w=s.getTotalBits(l,g);if(w<=C){v=w;break}if(g>=d)throw new RangeError("Data too long")}for(const C of [t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&v<=t.getNumDataCodewords(g,C)*8&&(c=C);let p=[];for(const C of l){r(C.mode.modeBits,4,p),r(C.numChars,C.mode.numCharCountBits(g),p);for(const w of C.getData())p.push(w);}a(p.length==v);const b=t.getNumDataCodewords(g,c)*8;a(p.length<=b),r(0,Math.min(4,b-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let C=236;p.length<b;C^=253)r(C,8,p);let y=[];for(;y.length*8<p.length;)y.push(0);return p.forEach((C,w)=>y[w>>>3]|=C<<7-(w&7)),new t(g,c,y,f)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(l[u],l[d]);this.drawFormatBits(0),this.drawVersion();}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let f=0;f<10;f++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,o(d,f));this.setFunctionModule(8,7,o(d,6)),this.setFunctionModule(8,8,o(d,7)),this.setFunctionModule(7,8,o(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,o(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,o(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,o(d,f));this.setFunctionModule(8,this.size-8,!0);}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;a(c>>>18==0);for(let u=0;u<18;u++){const d=o(c,u),f=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(f,h,d),this.setFunctionModule(h,f,d);}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),h=l+d,g=c+u;0<=h&&h<this.size&&0<=g&&g<this.size&&this.setFunctionModule(h,g,f!=2&&f!=4);}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1);}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0;}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=t.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const d=t.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],f=t.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],h=Math.floor(t.getNumRawDataModules(c)/8),g=d-h%d,v=Math.floor(h/d);let p=[];const b=t.reedSolomonComputeDivisor(f);for(let C=0,w=0;C<d;C++){let x=l.slice(w,w+v-f+(C<g?0:1));w+=x.length;const $=t.reedSolomonComputeRemainder(x,b);C<g&&x.push(0),p.push(x.concat($));}let y=[];for(let C=0;C<p[0].length;C++)p.forEach((w,x)=>{(C!=v-f||x>=g)&&y.push(w[C]);});return a(y.length==h),y}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const h=u-f,v=(u+1&2)==0?this.size-1-d:d;!this.isFunction[v][h]&&c<l.length*8&&(this.modules[v][h]=o(l[c>>>3],7-(c&7)),c++);}}a(c==l.length*8);}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(l){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u]);}}getPenaltyScore(){let l=0;for(let f=0;f<this.size;f++){let h=!1,g=0,v=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[f][p]==h?(g++,g==5?l+=t.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,v),h||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),h=this.modules[f][p],g=1);l+=this.finderPenaltyTerminateAndCount(h,g,v)*t.PENALTY_N3;}for(let f=0;f<this.size;f++){let h=!1,g=0,v=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[p][f]==h?(g++,g==5?l+=t.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,v),h||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),h=this.modules[p][f],g=1);l+=this.finderPenaltyTerminateAndCount(h,g,v)*t.PENALTY_N3;}for(let f=0;f<this.size-1;f++)for(let h=0;h<this.size-1;h++){const g=this.modules[f][h];g==this.modules[f][h+1]&&g==this.modules[f+1][h]&&g==this.modules[f+1][h+1]&&(l+=t.PENALTY_N2);}let c=0;for(const f of this.modules)c=f.reduce((h,g)=>h+(g?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),l+=d*t.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return [];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.length<l;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(l){if(l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36);}return a(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<l-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<l;d++){for(let f=0;f<c.length;f++)c[f]=t.reedSolomonMultiply(c[f],u),f+1<c.length&&(c[f]^=c[f+1]);u=t.reedSolomonMultiply(u,2);}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(d=>0);for(const d of l){const f=d^u.shift();u.push(0),c.forEach((h,g)=>u[g]^=t.reedSolomonMultiply(h,f));}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return a(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];a(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return (u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l);}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1);}function o(l,c){return (l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice();}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new i(i.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!i.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const d=Math.min(l.length-u,3);r(parseInt(l.substr(u,d),10),d*3+1,c),u+=d;}return new i(i.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!i.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let d=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;d+=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),r(d,11,c);}return u<l.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new i(i.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:i.isNumeric(l)?[i.makeNumeric(l)]:i.isAlphanumeric(l)?[i.makeAlphanumeric(l)]:[i.makeBytes(i.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)r(l,8,c);else if(l<16384)r(2,2,c),r(l,14,c);else if(l<1e6)r(6,3,c),r(l,21,c);else throw new RangeError("ECI assignment value out of range");return new i(i.Mode.ECI,0,c)}static isNumeric(l){return i.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return i.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const d of l){const f=d.mode.numCharCountBits(c);if(d.numChars>=1<<f)return 1/0;u+=4+f+d.bitData.length;}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substr(u+1,2),16)),u+=2);return c}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s;})(ma||(ma={}));(e=>{(t=>{const n=class{constructor(o,a){this.ordinal=o,this.formatBits=a;}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r;})(e.QrCode||(e.QrCode={}));})(ma||(ma={}));(e=>{(t=>{const n=class{constructor(o,a){this.modeBits=o,this.numBitsCharCount=a;}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r;})(e.QrSegment||(e.QrSegment={}));})(ma||(ma={}));var ss=ma;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC */var Yne={L:ss.QrCode.Ecc.LOW,M:ss.QrCode.Ecc.MEDIUM,Q:ss.QrCode.Ecc.QUARTILE,H:ss.QrCode.Ecc.HIGH},Qne=128,Zne="L",Jne="#FFFFFF",ere="#000000",tre=!1,K2=4,nre=.1;function rre(e,t=0){const n=[];return e.forEach(function(r,o){let a=null;r.forEach(function(i,s){if(!i&&a!==null){n.push(`M${a+t} ${o+t}h${s-a}v1H${a+t}z`),a=null;return}if(s===r.length-1){if(!i)return;a===null?n.push(`M${s+t},${o+t} h1v1H${s+t}z`):n.push(`M${a+t},${o+t} h${s+1-a}v1H${a+t}z`);return}i&&a===null&&(a=s);});}),n.join("")}function ore(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,a)=>a<t.x||a>=t.x+t.w?o:!1))}function are(e,t,n,r){if(r==null)return null;const o=n?K2:0,a=e.length+o*2,i=Math.floor(t*nre),s=a/t,l=(r.width||i)*s,c=(r.height||i)*s,u=r.x==null?e.length/2-l/2:r.x*s,d=r.y==null?e.length/2-c/2:r.y*s;let f=null;if(r.excavate){let h=Math.floor(u),g=Math.floor(d),v=Math.ceil(l+u-h),p=Math.ceil(c+d-g);f={x:h,y:g,w:v,h:p};}return {x:u,y:d,h:c,w:l,excavation:f}}(function(){try{new Path2D().addPath(new Path2D);}catch{return !1}return !0})();function ire(e){const t=e,{value:n,size:r=Qne,level:o=Zne,bgColor:a=Jne,fgColor:i=ere,includeMargin:s=tre,imageSettings:l}=t,c=qne(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=ss.QrCode.encodeText(n,Yne[o]).getModules();const d=s?K2:0,f=u.length+d*2,h=are(u,r,s,l);let g=null;l!=null&&h!=null&&(h.excavation!=null&&(u=ore(u,h.excavation)),g=m.createElement("image",{xlinkHref:l.src,height:h.h,width:h.w,x:h.x+d,y:h.y+d,preserveAspectRatio:"none"}));const v=rre(u,d);return m.createElement("svg",Xne({height:r,width:r,viewBox:`0 0 ${f} ${f}`},c),m.createElement("path",{fill:a,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),m.createElement("path",{fill:i,d:v,shapeRendering:"crispEdges"}),g)}const U2=e=>{const t=UC(e,li.appkey,li.appsec);return new URLSearchParams({...e,sign:t})};async function sre(){const t=(await on.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",U2({appkey:li.appkey,local_id:"0",ts:"0"}))).data;if(!Gr(t)){Ot((t==null?void 0:t.message)||"获取 auth_code 失败");return}return t.data}async function lre(e){const n=(await on.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",U2({appkey:li.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Gr(n)){const a=n.code.toString(),i=n.message||r[a]||"未知错误";return a==="86038"?{success:!1,message:i,action:"refresh"}:a==="86039"||a==="86090"?{success:!1,message:i,action:"wait"}:{success:!1,message:i,action:void 0}}return {success:!0,accessKey:n.data.access_token,message:"获取成功"}}async function cre(e){const n=(await on.post("https://passport.bilibili.com/x/passport-tv-login/h5/qrcode/confirm",new URLSearchParams({auth_code:e,scanning_type:"1",csrf:Ni()}))).data;if(!Gr(n)){const r=n.message||"未知错误";return Ot(r)}}const ip={show:!1,qrcode:"",auth_code:"",message:""},Bs=Zn({...ip}),Ha=Bs;function Ss(e){pre(),Object.assign(Bs,e);}function ure(e){Ss({...ip,...e,show:!0});}function X2(){q2.emit("hide"),Ss({...ip});}const q2=Uv();function dre(){return Kne(q2,"hide")}async function fre(){Bs.auth_code&&await cre(Bs.auth_code);}var mre={name:"7zumh8",styles:"margin:10px 15px;text-align:right"},hre={name:"dbvn1l",styles:"height:30px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:5px"},gre={name:"1azakc",styles:"text-align:center"};function vre(){const{qrcode:e,show:t,message:n}=Jn(Bs),r=X2,{runAsync:o,loading:a}=Lw(fre,{manual:!0});return be(Ed,{show:t,onHide:r,hideWhenMaskOnClick:!1,hideWhenEsc:!1,styleModal:{width:"600px"},children:[be("div",{className:fr.modalHeader,children:[D("div",{className:fr.modalTitle,children:"使用移动端 Bilibili App 扫码获取 access_key"}),D("div",{className:"space",style:{flex:1}}),D(Id,{onClick:r})]}),be("div",{className:fr.modalBody,children:[be("div",{className:"wrapper",css:gre,children:[D("div",{css:hre,children:n||""}),e?D(ire,{value:e,size:200}):D("div",{className:"qrcode-placeholder"})]}),D("div",{css:mre,children:D(wd,{title:"可能会导致桌面端掉登录(不可用), 谨慎使用",children:D(Zt,{onClick:o,loading:a,children:"使用桌面端确认"})})})]})]})}const pre=Sw(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",pa),document.body.appendChild(t),cl(t).render(D(av,{children:D(vre,{})}));});async function a1(){const e=await sre();if(e)return ure({qrcode:e.url,auth_code:e.auth_code}),!0}async function bre(){if(!await a1())return;let t,n=Ha.auth_code;function r(){if(!Ha.show||!Ha.auth_code||n!==Ha.auth_code)return !0}for(;;){if(r())return;const o=Ln(1500),a=dre();if(await Promise.race([o,a]),a.cancel(),r())return;t=await lre(Ha.auth_code);const{success:i,accessKey:s,message:l,action:c}=t;if(Ss({message:l}),i)return await Ln(1e3),X2(),s;if(c==="refresh"){await Ln(2e3),await a1(),n=Ha.auth_code,Ss({message:"已刷新二维码"});continue}if(c!=="wait"){if(r())return;Ss({message:l}),Ot(l);return}}}async function yre(){const e=await bre();if(e)return xt.accessKey=e,Ot("获取成功"),e}function Cre(){xt.accessKey="",Ot("已删除 access_key");}const i1=D(Zt,{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 Y2({style:e,className:t}){const{runAsync:n,loading:r}=Lw(yre,{manual:!0}),{accessKey:o}=en();return D(wl,{size:"small",style:e,className:t,children:o?be(It,{children:[D(Zt,{onClick:n,disabled:r,children:D("span",{children:"重新获取 access_key"})}),D(Zt,{onClick:Cre,children:D("span",{children:"删除 access_key"})}),i1]}):be(It,{children:[D(Zt,{onClick:n,disabled:r,children:D("span",{children:"获取 access_key"})}),i1]})})}function Sre(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>r=>{t.forEach(o=>o(r));},t)}const Kd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Fi(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function sp(e){return "nodeType"in e}function nr(e){var t,n;return e?Fi(e)?e:sp(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function lp(e){const{Document:t}=nr(e);return e instanceof t}function Tl(e){return Fi(e)?!1:e instanceof nr(e).HTMLElement}function Q2(e){return e instanceof nr(e).SVGElement}function Bi(e){return e?Fi(e)?e.document:sp(e)?lp(e)?e:Tl(e)||Q2(e)?e.ownerDocument:document:document:document}const Br=Kd?m.useLayoutEffect:m.useEffect;function cp(e){const t=m.useRef(e);return Br(()=>{t.current=e;}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function wre(){const e=m.useRef(null),t=m.useCallback((r,o)=>{e.current=setInterval(r,o);},[]),n=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null);},[]);return [t,n]}function Hs(e,t){t===void 0&&(t=[e]);const n=m.useRef(e);return Br(()=>{n.current!==e&&(n.current=e);},t),n}function Nl(e,t){const n=m.useRef();return m.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function hu(e){const t=cp(e),n=m.useRef(null),r=m.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o;},[]);return [n,r]}function Bh(e){const t=m.useRef();return m.useEffect(()=>{t.current=e;},[e]),t.current}let om={};function kl(e,t){return m.useMemo(()=>{if(t)return t;const n=om[e]==null?0:om[e]+1;return om[e]=n,e+"-"+n},[e,t])}function Z2(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((a,i)=>{const s=Object.entries(i);for(const[l,c]of s){const u=a[l];u!=null&&(a[l]=u+e*c);}return a},{...t})}}const ii=Z2(1),gu=Z2(-1);function $re(e){return "clientX"in e&&"clientY"in e}function up(e){if(!e)return !1;const{KeyboardEvent:t}=nr(e.target);return t&&e instanceof t}function xre(e){if(!e)return !1;const{TouchEvent:t}=nr(e.target);return t&&e instanceof t}function Hh(e){if(xre(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return {x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return {x:t,y:n}}}return $re(e)?{x:e.clientX,y:e.clientY}:null}const Ws=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return "translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return "scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return [Ws.Translate.toString(e),Ws.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),s1="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Ere(e){return e.matches(s1)?e:e.querySelector(s1)}const Ire={display:"none"};function Ore(e){let{id:t,value:n}=e;return m.createElement("div",{id:t,style:Ire},n)}function Pre(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return m.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Rre(){const[e,t]=m.useState("");return {announce:m.useCallback(r=>{r!=null&&t(r);},[]),announcement:e}}const J2=m.createContext(null);function Mre(e){const t=m.useContext(J2);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t]);}function _re(){const[e]=m.useState(()=>new Set),t=m.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return [m.useCallback(r=>{let{type:o,event:a}=r;e.forEach(i=>{var s;return (s=i[o])==null?void 0:s.call(i,a)});},[e]),t]}const Tre={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. `},Nre={onDragStart(e){let{active:t}=e;return "Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return "Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function kre(e){let{announcements:t=Nre,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Tre}=e;const{announce:a,announcement:i}=Rre(),s=kl("DndLiveRegion"),[l,c]=m.useState(!1);if(m.useEffect(()=>{c(!0);},[]),Mre(m.useMemo(()=>({onDragStart(d){let{active:f}=d;a(t.onDragStart({active:f}));},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&a(t.onDragMove({active:f,over:h}));},onDragOver(d){let{active:f,over:h}=d;a(t.onDragOver({active:f,over:h}));},onDragEnd(d){let{active:f,over:h}=d;a(t.onDragEnd({active:f,over:h}));},onDragCancel(d){let{active:f,over:h}=d;a(t.onDragCancel({active:f,over:h}));}}),[a,t])),!l)return null;const u=m.createElement(m.Fragment,null,m.createElement(Ore,{id:r,value:o.draggable}),m.createElement(Pre,{id:s,announcement:i}));return n?k1.createPortal(u,n):u}var pn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable";})(pn||(pn={}));function vu(){}function Are(e,t){return m.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Lre(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Hr=Object.freeze({x:0,y:0});function Dre(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zre(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function jre(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Fre(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function l1(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Bre=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=l1(t,t.left,t.top),a=[];for(const i of r){const{id:s}=i,l=n.get(s);if(l){const c=Dre(l1(l),o);a.push({id:s,data:{droppableContainer:i,value:c}});}}return a.sort(zre)};function Hre(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=o-r,s=a-n;if(r<o&&n<a){const l=t.width*t.height,c=e.width*e.height,u=i*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const Wre=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const a of r){const{id:i}=a,s=n.get(i);if(s){const l=Hre(s,t);l>0&&o.push({id:i,data:{droppableContainer:a,value:l}});}}return o.sort(jre)};function Vre(e,t,n){return {...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function eE(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Hr}function Gre(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return o.reduce((i,s)=>({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const Kre=Gre(1);function Ure(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return {x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return {x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Xre(e,t,n){const r=Ure(t);if(!r)return e;const{scaleX:o,scaleY:a,x:i,y:s}=r,l=e.left-i-(1-o)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=a?e.height/a:e.height;return {width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const qre={ignoreTransform:!1};function Hi(e,t){t===void 0&&(t=qre);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=nr(e).getComputedStyle(e);c&&(n=Xre(n,c,u));}const{top:r,left:o,width:a,height:i,bottom:s,right:l}=n;return {top:r,left:o,width:a,height:i,bottom:s,right:l}}function c1(e){return Hi(e,{ignoreTransform:!0})}function Yre(e){const t=e.innerWidth,n=e.innerHeight;return {top:0,left:0,right:t,bottom:n,width:t,height:n}}function Qre(e,t){return t===void 0&&(t=nr(e).getComputedStyle(e)),t.position==="fixed"}function Zre(e,t){t===void 0&&(t=nr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return ["overflow","overflowX","overflowY"].some(o=>{const a=t[o];return typeof a=="string"?n.test(a):!1})}function dp(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(lp(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Tl(o)||Q2(o)||n.includes(o))return n;const a=nr(e).getComputedStyle(o);return o!==e&&Zre(o,a)&&n.push(o),Qre(o,a)?n:r(o.parentNode)}return e?r(e):n}function tE(e){const[t]=dp(e,1);return t??null}function am(e){return !Kd||!e?null:Fi(e)?e:sp(e)?lp(e)||e===Bi(e).scrollingElement?window:Tl(e)?e:null:null}function nE(e){return Fi(e)?e.scrollX:e.scrollLeft}function rE(e){return Fi(e)?e.scrollY:e.scrollTop}function Wh(e){return {x:nE(e),y:rE(e)}}var Sn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward";})(Sn||(Sn={}));function oE(e){return !Kd||!e?!1:e===document.scrollingElement}function aE(e){const t={x:0,y:0},n=oE(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return {isTop:o,isLeft:a,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const Jre={x:.2,y:.2};function eoe(e,t,n,r,o){let{top:a,left:i,right:s,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=Jre);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=aE(e),h={x:0,y:0},g={x:0,y:0},v={height:t.height*o.y,width:t.width*o.x};return !c&&a<=t.top+v.height?(h.y=Sn.Backward,g.y=r*Math.abs((t.top+v.height-a)/v.height)):!u&&l>=t.bottom-v.height&&(h.y=Sn.Forward,g.y=r*Math.abs((t.bottom-v.height-l)/v.height)),!f&&s>=t.right-v.width?(h.x=Sn.Forward,g.x=r*Math.abs((t.right-v.width-s)/v.width)):!d&&i<=t.left+v.width&&(h.x=Sn.Backward,g.x=r*Math.abs((t.left+v.width-i)/v.width)),{direction:h,speed:g}}function toe(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:i}=window;return {top:0,left:0,right:a,bottom:i,width:a,height:i}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return {top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function iE(e){return e.reduce((t,n)=>ii(t,Wh(n)),Hr)}function noe(e){return e.reduce((t,n)=>t+nE(n),0)}function roe(e){return e.reduce((t,n)=>t+rE(n),0)}function ooe(e,t){if(t===void 0&&(t=Hi),!e)return;const{top:n,left:r,bottom:o,right:a}=t(e);tE(e)&&(o<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"});}const aoe=[["x",["left","right"],noe],["y",["top","bottom"],roe]];class fp{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=dp(n),o=iE(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,i,s]of aoe)for(const l of i)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=o[a]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1});}}class ws{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return (r=this.target)==null?void 0:r.removeEventListener(...n)});},this.target=t;}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r]);}}function ioe(e){const{EventTarget:t}=nr(e);return e instanceof t?e:Bi(e)}function im(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var xr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange";})(xr||(xr={}));function u1(e){e.preventDefault();}function soe(e){e.stopPropagation();}var jt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter";})(jt||(jt={}));const sE={start:[jt.Space,jt.Enter],cancel:[jt.Esc],end:[jt.Space,jt.Enter]},loe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case jt.Right:return {...n,x:n.x+25};case jt.Left:return {...n,x:n.x-25};case jt.Down:return {...n,y:n.y+25};case jt.Up:return {...n,y:n.y-25}}};class lE{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ws(Bi(n)),this.windowListeners=new ws(nr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}attach(){this.handleStart(),this.windowListeners.add(xr.Resize,this.handleCancel),this.windowListeners.add(xr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xr.Keydown,this.handleKeyDown));}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&ooe(r),n(Hr);}handleKeyDown(t){if(up(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:a=sE,coordinateGetter:i=loe,scrollBehavior:s="smooth"}=o,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Hr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=gu(d,u),h={x:0,y:0},{scrollableAncestors:g}=r.current;for(const v of g){const p=t.code,{isTop:b,isRight:y,isLeft:C,isBottom:w,maxScroll:x,minScroll:$}=aE(v),S=toe(v),E={x:Math.min(p===jt.Right?S.right-S.width/2:S.right,Math.max(p===jt.Right?S.left:S.left+S.width/2,d.x)),y:Math.min(p===jt.Down?S.bottom-S.height/2:S.bottom,Math.max(p===jt.Down?S.top:S.top+S.height/2,d.y))},I=p===jt.Right&&!y||p===jt.Left&&!C,O=p===jt.Down&&!w||p===jt.Up&&!b;if(I&&E.x!==d.x){const M=v.scrollLeft+f.x,R=p===jt.Right&&M<=x.x||p===jt.Left&&M>=$.x;if(R&&!f.y){v.scrollTo({left:M,behavior:s});return}R?h.x=v.scrollLeft-M:h.x=p===jt.Right?v.scrollLeft-x.x:v.scrollLeft-$.x,h.x&&v.scrollBy({left:-h.x,behavior:s});break}else if(O&&E.y!==d.y){const M=v.scrollTop+f.y,R=p===jt.Down&&M<=x.y||p===jt.Up&&M>=$.y;if(R&&!f.x){v.scrollTo({top:M,behavior:s});return}R?h.y=v.scrollTop-M:h.y=p===jt.Down?v.scrollTop-x.y:v.scrollTop-$.y,h.y&&v.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,ii(gu(d,this.referenceCoordinates),h));}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n);}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n();}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll();}}lE.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=sE,onActivation:o}=t,{active:a}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return !1}}];function d1(e){return !!(e&&"distance"in e)}function f1(e){return !!(e&&"delay"in e)}class mp{constructor(t,n,r){var o;r===void 0&&(r=ioe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:a}=t,{target:i}=a;this.props=t,this.events=n,this.document=Bi(i),this.documentListeners=new ws(this.document),this.listeners=new ws(r),this.windowListeners=new ws(nr(i)),this.initialCoordinates=(o=Hh(a))!=null?o:Hr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach();}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(xr.Resize,this.handleCancel),this.windowListeners.add(xr.DragStart,u1),this.windowListeners.add(xr.VisibilityChange,this.handleCancel),this.windowListeners.add(xr.ContextMenu,u1),this.documentListeners.add(xr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(f1(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(d1(n))return}this.handleStart();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null);}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(xr.Click,soe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xr.SelectionChange,this.removeTextSelection),n(t));}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:a}=this,{onMove:i,options:{activationConstraint:s}}=a;if(!o)return;const l=(n=Hh(t))!=null?n:Hr,c=gu(o,l);if(!r&&s){if(d1(s)){if(s.tolerance!=null&&im(c,s.tolerance))return this.handleCancel();if(im(c,s.distance))return this.handleStart()}return f1(s)&&im(c,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(l);}handleEnd(){const{onEnd:t}=this.props;this.detach(),t();}handleCancel(){const{onCancel:t}=this.props;this.detach(),t();}handleKeydown(t){t.code===jt.Esc&&this.handleCancel();}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges();}}const coe={move:{name:"pointermove"},end:{name:"pointerup"}};class hp extends mp{constructor(t){const{event:n}=t,r=Bi(n.target);super(t,coe,r);}}hp.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return !n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const uoe={move:{name:"mousemove"},end:{name:"mouseup"}};var Vh;(function(e){e[e.RightClick=2]="RightClick";})(Vh||(Vh={}));class doe extends mp{constructor(t){super(t,uoe,Bi(t.event.target));}}doe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Vh.RightClick?!1:(r==null||r({event:n}),!0)}}];const sm={move:{name:"touchmove"},end:{name:"touchend"}};class foe extends mp{constructor(t){super(t,sm);}static setup(){return window.addEventListener(sm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(sm.move.name,t);};function t(){}}}foe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var $s;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect";})($s||($s={}));var pu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder";})(pu||(pu={}));function moe(e){let{acceleration:t,activator:n=$s.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:i=5,order:s=pu.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=goe({delta:d,disabled:!a}),[g,v]=wre(),p=m.useRef({x:0,y:0}),b=m.useRef({x:0,y:0}),y=m.useMemo(()=>{switch(n){case $s.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case $s.DraggableRect:return o}},[n,o,l]),C=m.useRef(null),w=m.useCallback(()=>{const $=C.current;if(!$)return;const S=p.current.x*b.current.x,E=p.current.y*b.current.y;$.scrollBy(S,E);},[]),x=m.useMemo(()=>s===pu.TreeOrder?[...c].reverse():c,[s,c]);m.useEffect(()=>{if(!a||!c.length||!y){v();return}for(const $ of x){if((r==null?void 0:r($))===!1)continue;const S=c.indexOf($),E=u[S];if(!E)continue;const{direction:I,speed:O}=eoe($,E,y,t,f);for(const M of ["x","y"])h[M][I[M]]||(O[M]=0,I[M]=0);if(O.x>0||O.y>0){v(),C.current=$,g(w,i),p.current=O,b.current=I;return}}p.current={x:0,y:0},b.current={x:0,y:0},v();},[t,w,r,v,a,i,JSON.stringify(y),JSON.stringify(h),g,c,x,u,JSON.stringify(f)]);}const hoe={x:{[Sn.Backward]:!1,[Sn.Forward]:!1},y:{[Sn.Backward]:!1,[Sn.Forward]:!1}};function goe(e){let{delta:t,disabled:n}=e;const r=Bh(t);return Nl(o=>{if(n||!r||!o)return hoe;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return {x:{[Sn.Backward]:o.x[Sn.Backward]||a.x===-1,[Sn.Forward]:o.x[Sn.Forward]||a.x===1},y:{[Sn.Backward]:o.y[Sn.Backward]||a.y===-1,[Sn.Forward]:o.y[Sn.Forward]||a.y===1}}},[n,t,r])}function voe(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Nl(o=>{var a;return t===null?null:(a=r??o)!=null?a:null},[r,t])}function poe(e,t){return m.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,a=o.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return [...n,...a]},[]),[e,t])}var Vs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging";})(Vs||(Vs={}));var Gh;(function(e){e.Optimized="optimized";})(Gh||(Gh={}));const m1=new Map;function boe(e,t){let{dragging:n,dependencies:r,config:o}=t;const[a,i]=m.useState(null),{frequency:s,measure:l,strategy:c}=o,u=m.useRef(e),d=p(),f=Hs(d),h=m.useCallback(function(b){b===void 0&&(b=[]),!f.current&&i(y=>y===null?b:y.concat(b.filter(C=>!y.includes(C))));},[f]),g=m.useRef(null),v=Nl(b=>{if(d&&!n)return m1;if(!b||b===m1||u.current!==e||a!=null){const y=new Map;for(let C of e){if(!C)continue;if(a&&a.length>0&&!a.includes(C.id)&&C.rect.current){y.set(C.id,C.rect.current);continue}const w=C.node.current,x=w?new fp(l(w),w):null;C.rect.current=x,x&&y.set(C.id,x);}return y}return b},[e,a,n,d,l]);return m.useEffect(()=>{u.current=e;},[e]),m.useEffect(()=>{d||h();},[n,d]),m.useEffect(()=>{a&&a.length>0&&i(null);},[JSON.stringify(a)]),m.useEffect(()=>{d||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{h(),g.current=null;},s));},[s,d,h,...r]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:a!=null};function p(){switch(c){case Vs.Always:return !1;case Vs.BeforeDragging:return n;default:return !n}}}function cE(e,t){return Nl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function yoe(e,t){return cE(e,t)}function Coe(e){let{callback:t,disabled:n}=e;const r=cp(t),o=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return m.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Ud(e){let{callback:t,disabled:n}=e;const r=cp(t),o=m.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return m.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Soe(e){return new fp(Hi(e),e)}function h1(e,t,n){t===void 0&&(t=Soe);const[r,o]=m.useReducer(s,null),a=Coe({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),i=Ud({callback:o});return Br(()=>{o(),e?(i==null||i.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),a==null||a.disconnect());},[e]),r;function s(l){if(!e)return null;if(e.isConnected===!1){var c;return (c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u}}function woe(e){const t=cE(e);return eE(e,t)}const g1=[];function $oe(e){const t=m.useRef(e),n=Nl(r=>e?r&&r!==g1&&e&&t.current&&e.parentNode===t.current.parentNode?r:dp(e):g1,[e]);return m.useEffect(()=>{t.current=e;},[e]),n}function xoe(e){const[t,n]=m.useState(null),r=m.useRef(e),o=m.useCallback(a=>{const i=am(a.target);i&&n(s=>s?(s.set(i,Wh(i)),new Map(s)):null);},[]);return m.useEffect(()=>{const a=r.current;if(e!==a){i(a);const s=e.map(l=>{const c=am(l);return c?(c.addEventListener("scroll",o,{passive:!0}),[c,Wh(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e;}return ()=>{i(e),i(a);};function i(s){s.forEach(l=>{const c=am(l);c==null||c.removeEventListener("scroll",o);});}},[o,e]),m.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,i)=>ii(a,i),Hr):iE(e):Hr,[e,t])}function v1(e,t){t===void 0&&(t=[]);const n=m.useRef(null);return m.useEffect(()=>{n.current=null;},t),m.useEffect(()=>{const r=e!==Hr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null);},[e]),n.current?gu(e,n.current):Hr}function Eoe(e){m.useEffect(()=>{if(!Kd)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return ()=>{for(const n of t)n==null||n();}},e.map(t=>{let{sensor:n}=t;return n}));}function Ioe(e,t){return m.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:a}=r;return n[o]=i=>{a(i,t);},n},{}),[e,t])}function uE(e){return m.useMemo(()=>e?Yre(e):null,[e])}const lm=[];function Ooe(e,t){t===void 0&&(t=Hi);const[n]=e,r=uE(n?nr(n):null),[o,a]=m.useReducer(s,lm),i=Ud({callback:a});return e.length>0&&o===lm&&a(),Br(()=>{e.length?e.forEach(l=>i==null?void 0:i.observe(l)):(i==null||i.disconnect(),a());},[e]),o;function s(){return e.length?e.map(l=>oE(l)?r:new fp(t(l),l)):lm}}function Poe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Tl(t)?t:e}function Roe(e){let{measure:t}=e;const[n,r]=m.useState(null),o=m.useCallback(c=>{for(const{target:u}of c)if(Tl(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),a=Ud({callback:o}),i=m.useCallback(c=>{const u=Poe(c);a==null||a.disconnect(),u&&(a==null||a.observe(u)),r(u?t(u):null);},[t,a]),[s,l]=hu(i);return m.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const Moe=[{sensor:hp,options:{}},{sensor:lE,options:{}}],_oe={current:{}},Ic={draggable:{measure:c1},droppable:{measure:c1,strategy:Vs.WhileDragging,frequency:Gh.Optimized},dragOverlay:{measure:Hi}};class xs extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return !n})}getNodeFor(t){var n,r;return (n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Toe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new xs,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:vu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ic,measureDroppableContainers:vu,windowRect:null,measuringScheduled:!1},Noe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:vu,draggableNodes:new Map,over:null,measureDroppableContainers:vu},Xd=m.createContext(Noe),dE=m.createContext(Toe);function koe(){return {draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new xs}}}function Aoe(e,t){switch(t.type){case pn.DragStart:return {...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case pn.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case pn.DragEnd:case pn.DragCancel:return {...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case pn.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new xs(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case pn.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new xs(e.droppable.containers);return i.set(n,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:i}}}case pn.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new xs(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Loe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=m.useContext(Xd),a=Bh(r),i=Bh(n==null?void 0:n.id);return m.useEffect(()=>{if(!t&&!r&&a&&i!=null){if(!up(a)||document.activeElement===a.target)return;const s=o.get(i);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of [l.current,c.current]){if(!u)continue;const d=Ere(u);if(d){d.focus();break}}});}},[r,t,o,i,a]),null}function Doe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,a)=>a({transform:o,...r}),n):n}function zoe(e){return m.useMemo(()=>({draggable:{...Ic.draggable,...e==null?void 0:e.draggable},droppable:{...Ic.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ic.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function joe(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=m.useRef(!1),{x:i,y:s}=typeof o=="boolean"?{x:o,y:o}:o;Br(()=>{if(!i&&!s||!t){a.current=!1;return}if(a.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=eE(u,r);if(i||(d.x=0),s||(d.y=0),a.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=tE(c);f&&f.scrollBy({top:d.y,left:d.x});}},[t,i,s,r,n]);}const fE=m.createContext({...Hr,scaleX:1,scaleY:1});var Eo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized";})(Eo||(Eo={}));const Foe=m.memo(function(t){var n,r,o,a;let{id:i,accessibility:s,autoScroll:l=!0,children:c,sensors:u=Moe,collisionDetection:d=Wre,measuring:f,modifiers:h,...g}=t;const v=m.useReducer(Aoe,void 0,koe),[p,b]=v,[y,C]=_re(),[w,x]=m.useState(Eo.Uninitialized),$=w===Eo.Initialized,{draggable:{active:S,nodes:E,translate:I},droppable:{containers:O}}=p,M=S?E.get(S):null,R=m.useRef({initial:null,translated:null}),k=m.useMemo(()=>{var et;return S!=null?{id:S,data:(et=M==null?void 0:M.data)!=null?et:_oe,rect:R}:null},[S,M]),A=m.useRef(null),[L,T]=m.useState(null),[P,_]=m.useState(null),z=Hs(g,Object.values(g)),j=kl("DndDescribedBy",i),H=m.useMemo(()=>O.getEnabled(),[O]),B=zoe(f),{droppableRects:V,measureDroppableContainers:G,measuringScheduled:X}=boe(H,{dragging:$,dependencies:[I.x,I.y],config:B.droppable}),Q=voe(E,S),ee=m.useMemo(()=>P?Hh(P):null,[P]),W=dt(),Z=yoe(Q,B.draggable.measure);joe({activeNode:S?E.get(S):null,config:W.layoutShiftCompensation,initialRect:Z,measure:B.draggable.measure});const U=h1(Q,B.draggable.measure,Z),ue=h1(Q?Q.parentElement:null),le=m.useRef({activatorEvent:null,active:null,activeNode:Q,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ie=O.getNodeFor((n=le.current.over)==null?void 0:n.id),ce=Roe({measure:B.dragOverlay.measure}),se=(r=ce.nodeRef.current)!=null?r:Q,Y=$?(o=ce.rect)!=null?o:U:null,ae=!!(ce.nodeRef.current&&ce.rect),me=woe(ae?null:U),te=uE(se?nr(se):null),re=$oe($?ie??Q:null),he=Ooe(re),Ce=Doe(h,{transform:{x:I.x-me.x,y:I.y-me.y,scaleX:1,scaleY:1},activatorEvent:P,active:k,activeNodeRect:U,containerNodeRect:ue,draggingNodeRect:Y,over:le.current.over,overlayNodeRect:ce.rect,scrollableAncestors:re,scrollableAncestorRects:he,windowRect:te}),ke=ee?ii(ee,I):null,We=xoe(re),Ge=v1(We),Me=v1(We,[U]),Xe=ii(Ce,Ge),ze=Y?Kre(Y,Ce):null,He=k&&ze?d({active:k,collisionRect:ze,droppableRects:V,droppableContainers:H,pointerCoordinates:ke}):null,Ie=Fre(He,"id"),[we,qe]=m.useState(null),nt=ae?Ce:ii(Ce,Me),bt=Vre(nt,(a=we==null?void 0:we.rect)!=null?a:null,U),Ze=m.useCallback((et,$e)=>{let{sensor:xe,options:_e}=$e;if(A.current==null)return;const ge=E.get(A.current);if(!ge)return;const Te=et.nativeEvent,Se=new xe({active:A.current,activeNode:ge,event:Te,options:_e,context:le,onStart(oe){const ye=A.current;if(ye==null)return;const de=E.get(ye);if(!de)return;const{onDragStart:pe}=z.current,Le={active:{id:ye,data:de.data,rect:R}};k1.unstable_batchedUpdates(()=>{pe==null||pe(Le),x(Eo.Initializing),b({type:pn.DragStart,initialCoordinates:oe,active:ye}),y({type:"onDragStart",event:Le});});},onMove(oe){b({type:pn.DragMove,coordinates:oe});},onEnd:fe(pn.DragEnd),onCancel:fe(pn.DragCancel)});k1.unstable_batchedUpdates(()=>{T(Se),_(et.nativeEvent);});function fe(oe){return async function(){const{active:de,collisions:pe,over:Le,scrollAdjustedTranslate:Ue}=le.current;let lt=null;if(de&&Ue){const{cancelDrop:it}=z.current;lt={activatorEvent:Te,active:de,collisions:pe,delta:Ue,over:Le},oe===pn.DragEnd&&typeof it=="function"&&await Promise.resolve(it(lt))&&(oe=pn.DragCancel);}A.current=null,k1.unstable_batchedUpdates(()=>{b({type:oe}),x(Eo.Uninitialized),qe(null),T(null),_(null);const it=oe===pn.DragEnd?"onDragEnd":"onDragCancel";if(lt){const Et=z.current[it];Et==null||Et(lt),y({type:it,event:lt});}});}}},[E]),Je=m.useCallback((et,$e)=>(xe,_e)=>{const ge=xe.nativeEvent,Te=E.get(_e);if(A.current!==null||!Te||ge.dndKit||ge.defaultPrevented)return;const Se={active:Te};et(xe,$e.options,Se)===!0&&(ge.dndKit={capturedBy:$e.sensor},A.current=_e,Ze(xe,$e));},[E,Ze]),gt=poe(u,Je);Eoe(u),Br(()=>{U&&w===Eo.Initializing&&x(Eo.Initialized);},[U,w]),m.useEffect(()=>{const{onDragMove:et}=z.current,{active:$e,activatorEvent:xe,collisions:_e,over:ge}=le.current;if(!$e||!xe)return;const Te={active:$e,activatorEvent:xe,collisions:_e,delta:{x:Xe.x,y:Xe.y},over:ge};k1.unstable_batchedUpdates(()=>{et==null||et(Te),y({type:"onDragMove",event:Te});});},[Xe.x,Xe.y]),m.useEffect(()=>{const{active:et,activatorEvent:$e,collisions:xe,droppableContainers:_e,scrollAdjustedTranslate:ge}=le.current;if(!et||A.current==null||!$e||!ge)return;const{onDragOver:Te}=z.current,Se=_e.get(Ie),fe=Se&&Se.rect.current?{id:Se.id,rect:Se.rect.current,data:Se.data,disabled:Se.disabled}:null,oe={active:et,activatorEvent:$e,collisions:xe,delta:{x:ge.x,y:ge.y},over:fe};k1.unstable_batchedUpdates(()=>{qe(fe),Te==null||Te(oe),y({type:"onDragOver",event:oe});});},[Ie]),Br(()=>{le.current={activatorEvent:P,active:k,activeNode:Q,collisionRect:ze,collisions:He,droppableRects:V,draggableNodes:E,draggingNode:se,draggingNodeRect:Y,droppableContainers:O,over:we,scrollableAncestors:re,scrollAdjustedTranslate:Xe},R.current={initial:Y,translated:ze};},[k,Q,He,ze,E,se,Y,V,O,we,re,Xe]),moe({...W,delta:I,draggingRect:ze,pointerCoordinates:ke,scrollableAncestors:re,scrollableAncestorRects:he});const vt=m.useMemo(()=>({active:k,activeNode:Q,activeNodeRect:U,activatorEvent:P,collisions:He,containerNodeRect:ue,dragOverlay:ce,draggableNodes:E,droppableContainers:O,droppableRects:V,over:we,measureDroppableContainers:G,scrollableAncestors:re,scrollableAncestorRects:he,measuringConfiguration:B,measuringScheduled:X,windowRect:te}),[k,Q,U,P,He,ue,ce,E,O,V,we,G,re,he,B,X,te]),st=m.useMemo(()=>({activatorEvent:P,activators:gt,active:k,activeNodeRect:U,ariaDescribedById:{draggable:j},dispatch:b,draggableNodes:E,over:we,measureDroppableContainers:G}),[P,gt,k,U,b,j,E,we,G]);return m.createElement(J2.Provider,{value:C},m.createElement(Xd.Provider,{value:st},m.createElement(dE.Provider,{value:vt},m.createElement(fE.Provider,{value:bt},c)),m.createElement(Loe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),m.createElement(kre,{...s,hiddenTextDescribedById:j}));function dt(){const et=(L==null?void 0:L.autoScrollEnabled)===!1,$e=typeof l=="object"?l.enabled===!1:l===!1,xe=$&&!et&&!$e;return typeof l=="object"?{...l,enabled:xe}:{enabled:xe}}}),Boe=m.createContext(null),p1="button",Hoe="Droppable";function Woe(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const a=kl(Hoe),{activators:i,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=m.useContext(Xd),{role:h=p1,roleDescription:g="draggable",tabIndex:v=0}=o??{},p=(l==null?void 0:l.id)===t,b=m.useContext(p?fE:Boe),[y,C]=hu(),[w,x]=hu(),$=Ioe(i,t),S=Hs(n);Br(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:w,data:S}),()=>{const I=d.get(t);I&&I.key===a&&d.delete(t);}),[d,t]);const E=m.useMemo(()=>({role:h,tabIndex:v,"aria-disabled":r,"aria-pressed":p&&h===p1?!0:void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[r,h,v,p,g,u.draggable]);return {active:l,activatorEvent:s,activeNodeRect:c,attributes:E,isDragging:p,listeners:r?void 0:$,node:y,over:f,setNodeRef:C,setActivatorNodeRef:x,transform:b}}function Voe(){return m.useContext(dE)}const Goe="Droppable",Koe={timeout:25};function Uoe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const a=kl(Goe),{active:i,dispatch:s,over:l,measureDroppableContainers:c}=m.useContext(Xd),u=m.useRef({disabled:n}),d=m.useRef(!1),f=m.useRef(null),h=m.useRef(null),{disabled:g,updateMeasurementsFor:v,timeout:p}={...Koe,...o},b=Hs(v??r),y=m.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),h.current=null;},p);},[p]),C=Ud({callback:y,disabled:g||!i}),w=m.useCallback((E,I)=>{C&&(I&&(C.unobserve(I),d.current=!1),E&&C.observe(E));},[C]),[x,$]=hu(w),S=Hs(t);return m.useEffect(()=>{!C||!x.current||(C.disconnect(),d.current=!1,C.observe(x.current));},[x,C]),Br(()=>(s({type:pn.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:f,data:S}}),()=>s({type:pn.UnregisterDroppable,key:a,id:r})),[r]),m.useEffect(()=>{n!==u.current.disabled&&(s({type:pn.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n);},[r,a,n,s]),{active:i,rect:f,isOver:(l==null?void 0:l.id)===r,node:x,over:l,setNodeRef:$}}function Xoe(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const qoe=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return !n||!t?r:Xoe(r,n,t)},Yoe=e=>{let{transform:t}=e;return {...t,x:0}};function mE(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Qoe(e,t){return e.reduce((n,r,o)=>{const a=t.get(r);return a&&(n[o]=a),n},Array(e.length))}function lc(e){return e!==null&&e>=0}function Zoe(e,t){if(e===t)return !0;if(e.length!==t.length)return !1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return !1;return !0}function Joe(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const hE=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const a=mE(t,r,n),i=t[o],s=a[o];return !s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},cc={scaleX:1,scaleY:1},eae=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:a,overIndex:i}=e;const s=(t=a[n])!=null?t:r;if(!s)return null;if(o===n){const c=a[i];return c?{x:0,y:n<i?c.top+c.height-(s.top+s.height):c.top-s.top,...cc}:null}const l=tae(a,o,n);return o>n&&o<=i?{x:0,y:-s.height-l,...cc}:o<n&&o>=i?{x:0,y:s.height+l,...cc}:{x:0,y:0,...cc}};function tae(e,t,n){const r=e[t],o=e[t-1],a=e[t+1];return r?n<t?o?r.top-(o.top+o.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const gE="Sortable",vE=m.createContext({activeIndex:-1,containerId:gE,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:hE,disabled:{draggable:!1,droppable:!1}});function nae(e){let{children:t,id:n,items:r,strategy:o=hE,disabled:a=!1}=e;const{active:i,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=Voe(),d=kl(gE,n),f=s.rect!==null,h=m.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),g=i!=null,v=i?h.indexOf(i.id):-1,p=c?h.indexOf(c.id):-1,b=m.useRef(h),y=!Zoe(h,b.current),C=p!==-1&&v===-1||y,w=Joe(a);Br(()=>{y&&g&&u(h);},[y,h,g,u]),m.useEffect(()=>{b.current=h;},[h]);const x=m.useMemo(()=>({activeIndex:v,containerId:d,disabled:w,disableTransforms:C,items:h,overIndex:p,useDragOverlay:f,sortedRects:Qoe(h,l),strategy:o}),[v,d,w.draggable,w.droppable,C,h,p,l,f,o]);return m.createElement(vE.Provider,{value:x},t)}const rae=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return mE(n,r,o).indexOf(t)},oae=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:a,newIndex:i,previousItems:s,previousContainerId:l,transition:c}=e;return !c||!r||s!==a&&o===i?!1:n?!0:i!==o&&t===l},aae={duration:200,easing:"ease"},pE="transform",iae=Ws.Transition.toString({property:pE,duration:0,easing:"linear"}),sae={roleDescription:"sortable"};function lae(e){let{disabled:t,index:n,node:r,rect:o}=e;const[a,i]=m.useState(null),s=m.useRef(n);return Br(()=>{if(!t&&n!==s.current&&r.current){const l=o.current;if(l){const c=Hi(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&i(u);}}n!==s.current&&(s.current=n);},[t,n,r,o]),m.useEffect(()=>{a&&i(null);},[a]),a}function cae(e){let{animateLayoutChanges:t=oae,attributes:n,disabled:r,data:o,getNewIndex:a=rae,id:i,strategy:s,resizeObserverConfig:l,transition:c=aae}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:g,sortedRects:v,overIndex:p,useDragOverlay:b,strategy:y}=m.useContext(vE),C=uae(r,h),w=u.indexOf(i),x=m.useMemo(()=>({sortable:{containerId:d,index:w,items:u},...o}),[d,o,w,u]),$=m.useMemo(()=>u.slice(u.indexOf(i)),[u,i]),{rect:S,node:E,isOver:I,setNodeRef:O}=Uoe({id:i,data:x,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:M,activatorEvent:R,activeNodeRect:k,attributes:A,setNodeRef:L,listeners:T,isDragging:P,over:_,setActivatorNodeRef:z,transform:j}=Woe({id:i,data:x,attributes:{...sae,...n},disabled:C.draggable}),H=Sre(O,L),B=!!M,V=B&&!g&&lc(f)&&lc(p),G=!b&&P,X=G&&V?j:null,ee=V?X??(s??y)({rects:v,activeNodeRect:k,activeIndex:f,overIndex:p,index:w}):null,W=lc(f)&&lc(p)?a({id:i,items:u,activeIndex:f,overIndex:p}):w,Z=M==null?void 0:M.id,U=m.useRef({activeId:Z,items:u,newIndex:W,containerId:d}),ue=u!==U.current.items,le=t({active:M,containerId:d,isDragging:P,isSorting:B,id:i,index:w,items:u,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:c,wasDragging:U.current.activeId!=null}),ie=lae({disabled:!le,index:w,node:E,rect:S});return m.useEffect(()=>{B&&U.current.newIndex!==W&&(U.current.newIndex=W),d!==U.current.containerId&&(U.current.containerId=d),u!==U.current.items&&(U.current.items=u);},[B,W,d,u]),m.useEffect(()=>{if(Z===U.current.activeId)return;if(Z&&!U.current.activeId){U.current.activeId=Z;return}const se=setTimeout(()=>{U.current.activeId=Z;},50);return ()=>clearTimeout(se)},[Z]),{active:M,activeIndex:f,attributes:A,data:x,rect:S,index:w,newIndex:W,items:u,isOver:I,isSorting:B,isDragging:P,listeners:T,node:E,overIndex:p,over:_,setNodeRef:H,setActivatorNodeRef:z,setDroppableNodeRef:O,setDraggableNodeRef:L,transform:ie??ee,transition:ce()};function ce(){if(ie||ue&&U.current.newIndex===w)return iae;if(!(G&&!up(R)||!c)&&(B||le))return Ws.Transition.toString({...c,property:pE})}}function uae(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}jt.Down,jt.Right,jt.Up,jt.Left;const dae="_config-icon_1th8l_1",fae="_settings-group_1th8l_7",mae="_settings-group-title_1th8l_10",hae="_settings-group-sub-title_1th8l_15",gae="_settings-group-content_1th8l_21",vae="_row_1th8l_28",pae="_check_1th8l_37",bae="_setting-tabs_1th8l_43",yae="_tab-pane_1th8l_47",Ye={configIcon:dae,settingsGroup:fae,settingsGroupTitle:mae,settingsGroupSubTitle:hae,settingsGroupContent:gae,row:vae,check:pae,settingTabs:bae,tabPane:yae};var Cae=["b"],Sae=["v"],cm=function(t){return Math.round(Number(t||0))},wae=function(t){if(t&&ut(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=tt(n,Cae);return q(q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},bu=function(e){jo(n,e);var t=Fo(n);function n(r){return xn(this,n),t.call(this,wae(r))}return En(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=cm(o.s*100),i=cm(o.b*100),s=cm(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();ut(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=tt(a,Sae);return q(q({},i),{},{b:o.v})}}]),n}(Jt),$ae="rc-color-picker",No=function(t){return t instanceof bu?t:new bu(t)},xae=No("#1677ff"),bE=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,f=u.height,h=d/2,g=f/2,v=(n.x+h)/l,p=1-(n.y+g)/c,b=a.toHsb(),y=v,C=(n.x+h)/l*360;if(i)switch(i){case"hue":return No(q(q({},b),{},{h:C<=0?0:C}));case"alpha":return No(q(q({},b),{},{a:y<=0?0:y}))}return No({h:b.h,s:v<=0?0:v,b:p>=1?1:p,a:b.a})},yE=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,f=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:-f/3};case"alpha":return {x:h.a/1*i-d,y:-f/3}}return {x:h.s*i-d,y:(1-h.b)*s-f}}},gp=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(r,"-color-block");return m.createElement("div",{className:K(s,o),style:a,onClick:i},m.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function Eae(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 CE(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=m.useState(t||{x:0,y:0}),d=J(u,2),f=d[0],h=d[1],g=m.useRef(null),v=m.useRef(null),p=m.useRef({flag:!1});m.useEffect(function(){if(p.current.flag===!1){var x=s==null?void 0:s(r);x&&h(x);}},[l,r]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null;}},[]);var b=function($){var S=Eae($),E=S.pageX,I=S.pageY,O=r.current.getBoundingClientRect(),M=O.x,R=O.y,k=O.width,A=O.height,L=n.current.getBoundingClientRect(),T=L.width,P=L.height,_=T/2,z=P/2,j=Math.max(0,Math.min(E-M,k))-_,H=Math.max(0,Math.min(I-R,A))-z,B={x:j,y:o==="x"?f.y:H};if(T===0&&P===0||T!==P)return !1;h(B),a==null||a(B);},y=function($){$.preventDefault(),b($);},C=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,i==null||i();},w=function($){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),!c&&(b($),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C),g.current=y,v.current=C);};return [f,w]}var SE=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return m.createElement("div",{className:K("".concat(a,"-handler"),F({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},wE=function(t){var n=t.children,r=t.style,o=t.prefixCls;return m.createElement("div",{className:"".concat(o,"-palette"),style:q({position:"relative"},r)},n)},$E=m.forwardRef(function(e,t){var n=e.children,r=e.offset;return m.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),Iae=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=m.useRef(),l=m.useRef(),c=m.useRef(n),u=CE({color:n,containerRef:s,targetRef:l,calculate:function(v){return yE(v,l,n)},onDragChange:function(v){var p=bE({offset:v,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:i}),d=J(u,2),f=d[0],h=d[1];return m.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},m.createElement(wE,{prefixCls:o},m.createElement($E,{offset:f,ref:l},m.createElement(SE,{color:n.toRgbString(),prefixCls:o})),m.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))"}})))},Oae=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=m.useMemo(function(){return n.map(function(c,u){var d=No(c);return i==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,i]);return m.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},b1=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,f=m.useRef(),h=m.useRef(),g=m.useRef(i),v=CE({color:i,targetRef:h,containerRef:f,calculate:function(w){return yE(w,h,i,a)},onDragChange:function(w){var x=bE({offset:w,targetRef:h,containerRef:f,color:i,type:a});g.current=x,l(x);},onDragChangeComplete:function(){c==null||c(g.current,a);},direction:"x",disabledDrag:u}),p=J(v,2),b=p[0],y=p[1];return m.createElement("div",{ref:f,className:K("".concat(d,"-slider"),"".concat(d,"-slider-").concat(a)),onMouseDown:y,onTouchStart:y},m.createElement(wE,{prefixCls:d},m.createElement($E,{offset:b,ref:h},m.createElement(SE,{size:"small",color:s,prefixCls:d})),m.createElement(Oae,{colors:n,direction:r,type:a,prefixCls:d})))};function y1(e){return e!==void 0}var Pae=function(t,n){var r=n.defaultValue,o=n.value,a=m.useState(function(){var c;return y1(o)?c=o:y1(r)?c=r:c=t,No(c)}),i=J(a,2),s=i[0],l=i[1];return m.useEffect(function(){o&&l(No(o));},[o]),[s,l]},Rae=["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 Mae=m.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?$ae:o,i=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,h=e.disabled,g=h===void 0?!1:h,v=Pae(xae,{value:n,defaultValue:r}),p=J(v,2),b=p[0],y=p[1],C=m.useMemo(function(){var E=No(b.toRgbString());return E.setAlpha(1),E.toRgbString()},[b]),w=K("".concat(a,"-panel"),l,F({},"".concat(a,"-panel-disabled"),g)),x={prefixCls:a,onChangeComplete:s,disabled:g},$=function(I,O){n||y(I),i==null||i(I,O);},S=m.createElement(m.Fragment,null,m.createElement(Iae,Re({color:b,onChange:$},x)),m.createElement("div",{className:"".concat(a,"-slider-container")},m.createElement("div",{className:K("".concat(a,"-slider-group"),F({},"".concat(a,"-slider-group-disabled-alpha"),f))},m.createElement(b1,Re({gradientColors:Rae,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(I){return $(I,"hue")}},x)),!f&&m.createElement(b1,Re({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:b,value:b.toRgbString(),onChange:function(I){return $(I,"alpha")}},x))),m.createElement(gp,{color:b.toRgbString(),prefixCls:a})));return m.createElement("div",{className:w,style:c,ref:t},typeof u=="function"?u(S):S)}),xE=m.createContext({}),EE=m.createContext({}),{Provider:_ae}=xE,{Provider:Tae}=EE,Oc=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",Nae=(e,t)=>e?Oc(e,t):"";let C1=function(){function e(t){xn(this,e),this.metaColor=new bu(t),t||this.metaColor.setAlpha(0);}return En(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Nae(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 kae="ant-color-picker",zn=e=>e instanceof C1?e:new C1(e),Pc=e=>Math.round(Number(e||0)),yu=e=>Pc(e.toHsb().a*100),um=(e,t)=>{const n=e.toHsb();return n.a=t||1,zn(n)},Aae=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=zn(i);o==null||o(s);}};return m.createElement("div",{className:`${t}-clear`,onClick:a})},IE=Aae;var mo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(mo||(mo={}));const Lae=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]=m.useState(o);return m.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),m.createElement(Fh,{className:K(l,i),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},sa=Lae,Dae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=m.useState(zn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=zn(c);n||i(u),r==null||r(u);};return m.createElement(sa,{value:yu(a),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},zae=Dae,jae=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,S1=e=>jae.test(`#${e}`),Fae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=m.useState(n==null?void 0:n.toHex());m.useEffect(()=>{const l=n==null?void 0:n.toHex();S1(l)&&n&&i(Oc(l));},[n]);const s=l=>{const c=l.target.value;i(Oc(c)),S1(Oc(c,!0))&&(r==null||r(zn(c)));};return m.createElement(Bx,{className:o,value:a,prefix:"#",onChange:s,size:"small"})},Bae=Fae,Hae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=m.useState(zn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=zn(u);n||i(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(sa,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:l=>Pc(l||0).toString(),onChange:l=>s(Number(l),"h")}),m.createElement(sa,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${Pc(l||0)}%`,onChange:l=>s(Number(l),"s")}),m.createElement(sa,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${Pc(l||0)}%`,onChange:l=>s(Number(l),"b")}))},Wae=Hae,Vae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=m.useState(zn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=zn(u);n||i(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(sa,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),m.createElement(sa,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),m.createElement(sa,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},Gae=Vae,Kae=[mo.hex,mo.hsb,mo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),Uae=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[s,l]=qt(mo.hex,{value:n,onChange:a}),c=`${t}-input`,u=f=>{l(f);},d=m.useMemo(()=>{const f={value:r,prefixCls:t,onChange:i};switch(s){case mo.hsb:return m.createElement(Wae,Object.assign({},f));case mo.rgb:return m.createElement(Gae,Object.assign({},f));case mo.hex:default:return m.createElement(Bae,Object.assign({},f))}},[s,t,r,i]);return m.createElement("div",{className:`${c}-container`},m.createElement(Il,{value:s,bordered:!1,getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:Kae}),m.createElement("div",{className:c},d),!o&&m.createElement(zae,{prefixCls:t,value:r,onChange:i}))},Xae=Uae;var qae=function(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 Yae=()=>{const e=m.useContext(xE),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:s,onChangeComplete:l}=e,c=qae(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return m.createElement(m.Fragment,null,r&&m.createElement(IE,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),s==null||s();}},c)),m.createElement(Mae,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:l}),m.createElement(Xae,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},c)))},w1=Yae;var OE=m.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=m.useState(l||o),d=J(u,2),f=d[0],h=d[1];return m.useEffect(function(){(o||l)&&h(!0);},[o,l]),f?m.createElement("div",{ref:t,className:K("".concat(r,"-content"),(n={},F(n,"".concat(r,"-content-active"),l),F(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},m.createElement("div",{className:"".concat(r,"-content-box")},s)):null});OE.displayName="PanelContent";var Qae=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],PE=m.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,f=e.collapsible,h=e.accordion,g=e.panelKey,v=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,w=e.children,x=tt(e,Qae),$=f==="disabled",S=f==="header",E=f==="icon",I=v!=null&&typeof v!="boolean",O=function(){l==null||l(g);},M=function(P){(P.key==="Enter"||P.keyCode===ve.ENTER||P.which===ve.ENTER)&&O();},R=typeof b=="function"?b(e):m.createElement("i",{className:"arrow"});R&&(R=m.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},R));var k=K((n={},F(n,"".concat(d,"-item"),!0),F(n,"".concat(d,"-item-active"),s),F(n,"".concat(d,"-item-disabled"),$),n),u),A=K(i,(r={},F(r,"".concat(d,"-header"),!0),F(r,"".concat(d,"-header-collapsible-only"),S),F(r,"".concat(d,"-icon-collapsible-only"),E),r)),L={className:A,"aria-expanded":s,"aria-disabled":$,onKeyDown:M};return !S&&!E&&(L.onClick=O,L.role=h?"tab":"button",L.tabIndex=$?-1:0),m.createElement("div",Re({},x,{ref:t,className:k}),m.createElement("div",L,a&&R,m.createElement("span",{className:"".concat(d,"-header-text"),onClick:f==="header"?O:void 0},p),I&&m.createElement("div",{className:"".concat(d,"-extra")},v)),m.createElement(Co,Re({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(T,P){var _=T.className,z=T.style;return m.createElement(OE,{ref:P,prefixCls:d,className:_,style:z,isActive:s,forceRender:c,role:h?"tabpanel":void 0},w)}))}),Zae=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Jae=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,f){var h=d.children,g=d.label,v=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,C=tt(d,Zae),w=String(v??f),x=p??a,$=y??i,S=function(O){x!=="disabled"&&(s(O),b==null||b(O));},E=!1;return o?E=l[0]===w:E=l.indexOf(w)>-1,m.createElement(PE,Re({},C,{prefixCls:r,key:w,panelKey:w,isActive:E,accordion:o,openMotion:c,expandIcon:u,header:g,collapsible:x,onItemClick:S,destroyInactivePanel:$}),h)})},eie=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,f=t.key||String(n),h=t.props,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick,C=!1;a?C=c[0]===f:C=c.indexOf(f)>-1;var w=b??i,x=function(E){w!=="disabled"&&(l(E),y==null||y(E));},$={key:f,panelKey:f,header:g,headerClass:v,isActive:C,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:x,expandIcon:d,collapsible:w};return typeof t.type=="string"?t:(Object.keys($).forEach(function(S){typeof $[S]>"u"&&delete $[S];}),m.cloneElement(t,$))};function tie(e,t,n){return Array.isArray(e)?Jae(e,n):hr(t).map(function(r,o){return eie(r,o,n)})}function nie(e){var t=e;if(!Array.isArray(t)){var n=ut(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var rie=m.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,f=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,b=K(r,l),y=qt([],{value:h,onChange:function(I){return v==null?void 0:v(I)},defaultValue:g,postState:nie}),C=J(y,2),w=C[0],x=C[1],$=function(I){return x(function(){if(s)return w[0]===I?[]:[I];var O=w.indexOf(I),M=O>-1;return M?w.filter(function(R){return R!==I}):[].concat(Ae(w),[I])})};wn(!c,"`children` will be removed in next major version. Please use `items` instead.");var S=tie(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:a,onItemClick:$,activeKey:w});return m.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},S)});const vp=Object.assign(rie,{Panel:PE});vp.Panel;const oie=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(rt),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=K({[`${i}-no-arrow`]:!a},o);return m__namespace.createElement(vp.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),aie=oie,iie=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:h,colorTextDisabled:g,fontSize:v,fontSizeLG:p,lineHeight:b,marginSM:y,paddingSM:C,paddingLG:w,paddingXS:x,motionDurationSlow:$,fontSizeIcon:S,contentPadding:E}=e,I=`${c}px ${u} ${d}`;return {[t]:Object.assign(Object.assign({},Ft(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 ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},Ca()),{fontSize:S,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:C-x}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:p,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:p*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},sie=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},lie=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}}}},cie=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}}}}}},uie=Kt("Collapse",e=>{const t=St(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return [iie(t),lie(t),cie(t),sie(t),pw(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),die=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=m__namespace.useContext(rt),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:h,expandIcon:g}=e,v=tr(I=>{var O;return (O=d??I)!==null&&O!==void 0?O:"middle"}),p=n("collapse",a),b=n(),[y,C]=uie(p),w=m__namespace.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),x=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const O=g?g(I):m__namespace.createElement(Ci,{rotate:I.isActive?90:void 0});return Kn(O,()=>({className:K(O.props.className,`${p}-arrow`)}))},$=K(`${p}-icon-position-${w}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,i,s,C),S=Object.assign(Object.assign({},nw(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),E=m__namespace.useMemo(()=>h?hr(h).map((I,O)=>{var M,R;if(!((M=I.props)===null||M===void 0)&&M.disabled){const k=(R=I.key)!==null&&R!==void 0?R:String(O),{disabled:A,collapsible:L}=I.props,T=Object.assign(Object.assign({},jn(I.props,["disabled"])),{key:k,collapsible:L??(A?"disabled":void 0)});return Kn(I,T)}return I}):null,[h]);return y(m__namespace.createElement(vp,Object.assign({ref:t,openMotion:S},jn(e,["rootClassName"]),{expandIcon:x,prefixCls:p,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),E))}),fie=Object.assign(die,{Panel:aie}),dm=e=>e.map(t=>(t.colors=t.colors.map(zn),t)),mie=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new bu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},$1=e=>{let{label:t}=e;return `panel-${t}`},hie=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=ki("ColorPicker"),[,i]=er(),[s]=qt(dm(n),{value:dm(n),postState:dm}),l=`${t}-presets`,c=m.useMemo(()=>s.reduce((f,h)=>{const{defaultOpen:g=!0}=h;return g&&f.push($1(h)),f},[]),[s]),u=f=>{o==null||o(f);},d=s.map(f=>{var h;return {key:$1(f),label:m.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:m.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((h=f.colors)===null||h===void 0?void 0:h.length)>0?f.colors.map((g,v)=>m.createElement(gp,{key:`preset-${v}-${g.toHexString()}`,color:zn(g).toRgbString(),prefixCls:t,className:K(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:mie(g,i.colorBgElevated)}),onClick:()=>u(g)})):m.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return m.createElement("div",{className:l},m.createElement(fie,{defaultActiveKey:c,ghost:!0,items:d}))},gie=hie,vie=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=m.useContext(EE);return Array.isArray(n)?m.createElement(gie,{value:t,presets:n,prefixCls:e,onChange:r}):null},x1=vie;var pie=function(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 bie=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,s=pie(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},s),u=m.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),d=m.createElement(m.Fragment,null,m.createElement(w1,null),Array.isArray(n)&&m.createElement(Rw,{className:`${l}-divider`}),m.createElement(x1,null));return m.createElement(_ae,{value:c},m.createElement(Tae,{value:u},m.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:w1,Presets:x1}}):d)))},yie=bie;var Cie=function(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 Sie=m.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:s,className:l,showText:c}=e,u=Cie(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,f=m.useMemo(()=>a?m.createElement(IE,{prefixCls:r}):m.createElement(gp,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=yu(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},g=()=>{if(typeof c=="function")return c(n);if(c)return h()};return m.createElement("div",Object.assign({ref:t,className:K(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),f,c&&m.createElement("div",{className:`${d}-text`},g()))}),wie=Sie;function E1(e){return e!==void 0}const $ie=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=m.useState(()=>{let i;return E1(r)?i=r:E1(n)?i=n:i=e,zn(i||"")});return m.useEffect(()=>{r&&a(zn(r));},[r]),[o,a]},xie=$ie,RE=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Eie=(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},RE("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${a}px solid ${i}`,borderRadius:"inherit"}})}},I1=Eie,Iie=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:f,colorPickerInputNumberHandleWidth:h,lineWidth:g}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${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*g}px`},[`${n}-input-prefix`]:{color:f}}}}}},Oie=Iie,Pie=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":RE(`${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}}}}}},Rie=Pie,Mie=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:f,marginXXS:h,paddingXS:g}=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:`${g}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:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:r}}}},_ie=Mie,Kh=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${n}`,outline:0}),Tie=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},O1=(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}})}},Nie=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Kh(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Kh(e,r,s))}}},kie=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}}}},Aie=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:f,controlHeightSM:h,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:w,colorPrimaryHover:x,controlOutline:$}=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({},Rie(e))},I1(e,p)),Oie(e)),_ie(e)),O1(e,v,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:f,height:f,borderRadius:c,border:`${b}px solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:a,padding:C-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(C-b),fontSize:w,color:s},"&:hover":{borderColor:x},[`&${t}-trigger-active`]:Object.assign({},Kh(e,r,$)),"&-disabled":{color:i,background:l,cursor:"not-allowed","&:hover":{borderColor:g},[`${t}-trigger-text`]:{color:i}}},O1(e,h)),I1(e,h)),Nie(e)),kie(e))},Tie(e))}]},Lie=Kt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=St(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 [Aie(o)]});var Die=function(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 pp=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:f=!0,panelRender:h,showText:g,style:v,className:p,size:b,rootClassName:y,styles:C,disabledAlpha:w=!1,onFormatChange:x,onChange:$,onClear:S,onOpenChange:E,onChangeComplete:I,getPopupContainer:O,autoAdjustOverflow:M=!0,destroyTooltipOnHide:R}=e,k=Die(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:A,direction:L,colorPicker:T}=m.useContext(rt),P=m.useContext(Kr),_=u??P,[,z]=er(),[j,H]=xie(z.colorPrimary,{value:t,defaultValue:n}),[B,V]=qt(!1,{value:c,postState:Ge=>!_&&Ge,onChange:E}),[G,X]=qt(r,{value:r,defaultValue:o,onChange:x}),[Q,ee]=m.useState(!1),W=A("color-picker",kae),Z=m.useMemo(()=>yu(j)<100,[j]),{status:U}=m.useContext(Or),ue=tr(b),[le,ie]=Lie(W),ce={[`${W}-rtl`]:L},se=K(y,ce),Y=K(jr(W,U),{[`${W}-sm`]:ue==="small",[`${W}-lg`]:ue==="large"},T==null?void 0:T.className,se,p,ie),ae=K(W,ce),me=m.useRef(!0),te=(Ge,Me,Xe)=>{let ze=zn(Ge);(Q||(t===null||!t&&n===null))&&(ee(!1),yu(j)===0&&Me!=="alpha"&&(ze=um(ze))),w&&Z&&(ze=um(ze)),Xe?me.current=!1:I==null||I(ze),H(ze),$==null||$(ze,ze.toHexString());},re=()=>{ee(!0),S==null||S();},he=Ge=>{me.current=!0;let Me=zn(Ge);w&&Z&&(Me=um(Ge)),I==null||I(Me);},Ce={open:B,trigger:l,placement:d,arrow:f,rootClassName:y,getPopupContainer:O,autoAdjustOverflow:M,destroyTooltipOnHide:R},ke={prefixCls:W,color:j,allowClear:a,colorCleared:Q,disabled:_,disabledAlpha:w,presets:i,panelRender:h,format:G,onFormatChange:X,onChangeComplete:he},We=Object.assign(Object.assign({},T==null?void 0:T.style),v);return le(m.createElement(_d,Object.assign({style:C==null?void 0:C.popup,overlayInnerStyle:C==null?void 0:C.popupOverlayInner,onOpenChange:Ge=>{me.current&&!_&&V(Ge);},content:m.createElement(As,{override:!0,status:!0},m.createElement(yie,Object.assign({},ke,{onChange:te,onChangeComplete:he,onClear:re}))),overlayClassName:ae},Ce),s||m.createElement(wie,Object.assign({open:B,className:Y,style:We,color:t?zn(t):j,prefixCls:W,disabled:_,colorCleared:Q,showText:g,format:G},k))))},zie=hv(pp,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));pp._InternalPanelDoNotUseOrYouWillBeFired=zie;const jie=pp;var Fie={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},Bie={name:"snnttx",styles:"aspect-ratio:1;width:50px;border:2px solid transparent;border-radius:6px;margin:0 auto"},Hie={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function Wie(){const e=Eg().id,{colorPickerThemeSelectedColor:t}=en(),[n,r]=m.useState(t||Nc.colorPrimary),o=m.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return D("div",{children:QC.map(({name:a,themes:i,tooltip:s})=>be(m.Fragment,{children:[be("div",{css:Hie,children:[a,D(bl,{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:cr("aspect-ratio:1;width:42px;background-color:",u?o:l.colorPrimary,";border-radius:6px;","")});let f=D("div",{className:"preview-wrapper",css:[Bie,$l,c&&cr("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(f=D(jie,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||Dn({colorPickerThemeSelectedColor:o});},children:f})),be("div",{css:Fie,onClick:h=>{Dn({theme:l.id});},children:[f,l.name]},l.id)})})]},a))})}async function bp(){Ot("即将刷新网页"),await Ln(500),location.reload();}function Vie(){return B5(),bp()}async function Gie(){const e=await N5(),t=xg(e||{},sS);return Object.keys(t).length?(EL(!0),Dn({...t}),bp()):Ot("备份不存在或没有有效的配置")}function uc(e,t,n){return fn(e,r=>{if(qu())return;xt[t]=!xt[t];const o=!xt[t];Ot(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}const P1=Zn({tab:"basic"});var Kie={name:"1a2afmv",styles:"margin-left:10px"};function Uie({show:e,onHide:t}){const{filterEnabled:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:i,filterOutGotoTypePicture:s}=en();uc(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),uc(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),uc(["shift.c"],"useNarrowMode","居中模式"),uc(["shift.y"],"styleFancy","Fancy Style");const{tab:l}=Jn(P1);return be(Ed,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[be("div",{className:fr.modalHeader,children:[be("div",{className:fr.modalTitle,children:[D(kt,{name:"Config",className:Ye.configIcon}),"设置项"]}),D("div",{className:"space",style:{flex:1}}),D(Id,{onClick:t})]}),D("main",{className:fr.modalBody,style:{overflow:"hidden"},children:D(Fne,{tabPosition:"left",size:"middle",className:Ye.settingTabs,activeKey:l,onChange:c=>P1.tab=c,items:[{label:"常规设置",key:"basic",children:D(Xie,{})},{label:"内容过滤",key:"filter",children:D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["内容过滤",D(bl,{iconProps:{name:"Tips"},tooltip:be(It,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",D("br",{}),"仅推荐类 Tab 生效"]})}),D(xl,{css:Kie,checked:n,onChange:c=>{Dn({filterEnabled:c});}})]}),be("div",{className:K(Ye.settingsGroupContent),children:[D("div",{className:Ye.settingsGroupSubTitle,children:"视频"}),be("div",{className:Ye.row,children:[D(On,{disabled:!n,configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:D(It,{children:"不显示播放量很少的视频"})}),D(Fh,{size:"small",min:1,step:1e3,value:r,onChange:c=>c&&Dn({filterMinPlayCount:c}),disabled:!n||!o})]}),be("div",{className:Ye.row,style:{marginTop:3},children:[D(On,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:D(It,{children:"不显示短视频"}),disabled:!n}),D(Fh,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:c=>c&&Dn({filterMinDuration:c}),disabled:!n||!i})]}),D(On,{className:Ye.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:D(It,{children:"默认不过滤「已关注」"}),disabled:!n}),D("div",{className:Ye.settingsGroupSubTitle,children:"图文"}),D(On,{className:Ye.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:D(It,{children:"过滤掉图文推荐"}),disabled:!n}),D(On,{className:Ye.row,disabled:!n||!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:D(It,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),be("div",{className:K(Ye.settingsGroupContent),children:[D("div",{className:Ye.row,children:D(On,{configKey:"styleFancy",label:"Fancy Style",tooltip:be(It,{children:["增加卡片大小, 增大卡片间距",D("br",{}),"视频卡片会显示头像",D("br",{}),"切换设置快捷键: ",D(Oo,{color:"green",children:"shift+y"})]})})}),D("div",{className:Ye.row,style:{marginTop:5},children:D(On,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),D("div",{className:K(Ye.settingsGroupContent),children:D(Wie,{})})]})})},{label:"Tab 设置",key:"video-source-tab-config",children:D(Zie,{})},{label:"高级设置",key:"advance",children:D(qie,{})}]})})]})}function Xie(){return be("div",{className:Ye.tabPane,children:[be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["access_key",D(bl,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:be(It,{children:["用于「推荐」Tab",D("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),D("div",{className:K(Ye.settingsGroupContent),children:D("div",{className:Ye.row,style:{marginTop:5},children:D(Y2,{})})})]}),be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,children:"开关"}),be("div",{className:K(Ye.settingsGroupContent,Ye.row),children:[D(On,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:be(It,{children:["首页只保留推荐",D("br",{}),"P.S 需要刷新网页~"]}),className:Ye.check,extraAction:bp}),D(On,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ye.check,extraAction:e=>{e&&Ot("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),D(On,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:be(It,{children:["居中两列",D("br",{}),"切换设置快捷键: ",D(Oo,{color:"green",children:"shift+c"})]}),className:Ye.check})]})]}),be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,children:"预览"}),be("div",{className:K(Ye.settingsGroupContent,Ye.row),children:[D(On,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ye.check,tooltip:be(It,{children:["手动预览快捷键: ",D(Oo,{color:"green",children:"."})," or ",D(Oo,{color:"green",children:"p"}),D("br",{}),"切换设置快捷键: ",D(Oo,{color:"green",children:"shift+p"})]})}),D(On,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ye.check,tooltip:be(It,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",D("br",{}),"切换设置快捷键: ",D(Oo,{color:"green",children:"shift+m"})]})})]})]}),be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,children:"帮助"}),D("div",{className:K(Ye.settingsGroupContent),children:D("div",{className:Ye.row,children:be(wl,{size:"small",children:[D(Zt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),D(Zt,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),D(Zt,{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(Zt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),D(Zt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})}function qie(){const{autoPreviewUpdateInterval:e}=en();return D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[D("div",{className:Ye.settingsGroupTitle,children:"设置项"}),D("div",{className:K(Ye.settingsGroupContent),children:D("div",{className:Ye.row,children:D(zh,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:Vie,children:D(Zt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),D("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),be("div",{className:K(Ye.settingsGroupContent),children:[be("div",{className:Ye.row,children:[D(On,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${rn}`}),be("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[D(kt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),D("div",{className:Ye.row,style:{marginTop:5},children:D(zh,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:Gie,children:D(Zt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),D("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),be("div",{className:K(Ye.settingsGroupContent),children:[D("div",{className:Ye.row,children:D(On,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:D(It,{children:"不包括最近添加的「稍后再看」"})})}),D("div",{className:Ye.row,children:D(On,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),D("div",{className:Ye.settingsGroupTitle,style:{marginTop:15},children:"预览"}),be("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",D(yte,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:t=>xt.autoPreviewUpdateInterval=t,value:e}),be("span",{style:{width:"65px"},children:["(",e,"ms)"]})]})]})})}var Yie={name:"b1rfuh",styles:"display:block;line-height:unset"},Qie={name:"18ji2p4",styles:"width:300px"};function Zie(){const e=uW(),t=dW(),n=Lre(Are(hp)),r=ot(o=>{const{over:a,active:i}=o;if(!(a!=null&&a.id)||a.id===i.id)return;const s=t.indexOf(i.id.toString()),l=t.indexOf(a.id.toString()),c=t[s],u=t.slice();u.splice(s,1),u.splice(l,0,c),Dn({customTabKeysOrder:u});});return D("div",{className:Ye.tabPane,children:be("div",{className:Ye.settingsGroup,children:[be("div",{className:Ye.settingsGroupTitle,children:["Tab 设置",D(bl,{iconProps:{name:"Tips",style:{marginLeft:5,marginRight:20}},tooltip:D(It,{children:"勾选显示, 拖动排序"})}),D(zh,{title:"确定",description:"确定不是手欠点着玩? 再点一次确定吧~",onConfirm:()=>{Dn({hidingTabKeys:[],customTabKeysOrder:[]});},children:D(Zt,{children:"重置"})})]}),D("div",{className:K(Ye.settingsGroupContent),children:D("div",{css:Qie,children:D(pl.Group,{css:Yie,value:e,onChange:o=>{if(!o.length)return Ot("至少选择一项!");Dn({hidingTabKeys:ri.filter(a=>!o.includes(a))});},children:D(Foe,{sensors:n,collisionDetection:Bre,onDragEnd:r,modifiers:[Yoe,qoe],children:D(nae,{items:t,strategy:eae,children:t.map(o=>D(nse,{id:o},o))})})})})})]})})}var Jie={name:"82a6rk",styles:"flex:1"},ese={name:"fhwcsu",styles:"margin:0 5px 0 10px"},tse={name:"8irbms",styles:"display:inline-flex;align-items:center"};function nse({id:e}){const{attributes:t,listeners:n,setNodeRef:r,transform:o,transition:a,setActivatorNodeRef:i}=cae({id:e}),s={transform:Ws.Transform.toString(o),transition:a},{label:l,desc:c,icon:u,iconProps:d}=qc[e],f=vd();return be("div",{ref:r,style:s,...t,css:cr("display:flex;align-items:center;justify-content:flex-start;height:35px;padding-left:20px;border:1px solid ",f?"#444":"#ddd",";border-radius:6px;margin-top:6px;",""),children:[D(pl,{value:e}),be(wd,{title:c,css:tse,children:[D(kt,{name:u,...d,size:(d==null?void 0:d.size)||18,css:ese}),l]}),D("div",{css:Jie}),D("div",{...n,ref:i,css:cr("cursor:grab;font-size:0;padding:5px;margin-right:10px;border-radius:5px;&:hover{background-color:",f?"#999":"#eee",";}",""),children:D(kt,{name:"Drag",size:18})})]},e)}function rse(){const e=m.useRef(null),[t,n]=m.useState(!1);return m.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 ose="_expand-btn_12c5j_1",ase="_expanded_12c5j_12",R1={expandBtn:ose,expanded:ase},ise=m.forwardRef(function({children:t,initialOpen:n=!1},r){const[o,a]=Dw(n);m.useImperativeHandle(r,()=>a,[a]);const i=D("button",{className:K("primary-btn",R1.expandBtn),onClick:a.toggle,children:D("svg",{className:K({[R1.expanded]:o}),children:D("use",{href:"#widget-arrow"})})});return be(It,{children:[i,o&&t]})}),sse="_modal-mask_14tde_1",lse="_narrow-mode_14tde_1",cse="_modal_14tde_1",use="_full-screen-mode_14tde_19",dse="_modal-header_14tde_24",fse="_modal-body_14tde_25",mse="_btn-refresh_14tde_29",Wa={modalMask:sse,narrowMode:lse,modal:cse,fullScreenMode:use,modalHeader:dse,modalBody:fse,btnRefresh:mse};var hse={name:"1q4vxyr",styles:"margin-left:8px"};const gse=m.memo(function({show:t,onHide:n}){const r=m.useRef(null),o=m.useRef(null),{useNarrowMode:a,modalFeedFullScreen:i}=en(),s=!a&&i,l=vd(),c=m.useMemo(()=>({[Wa.narrowMode]:a,[Wa.fullScreenMode]:s}),[a,s]),u=m.useMemo(()=>{if(s)return {border:`5px solid ${Ir}`};if(l)return {border:`1px solid ${Ir}`}},[l,s]),d=ot((...b)=>{var y;return (y=o.current)==null?void 0:y.refresh(...b)}),[f,h]=m.useState(null),g=ot(()=>{r.current&&(r.current.scrollTop=0);}),[v,p]=m.useState(!1);return D(Ed,{show:t,onHide:n,clsModalMask:K(c),clsModal:K(Wa.modal,c),styleModal:{...u},children:be(Kv.Provider,{value:d,children:[be("div",{className:K(fr.modalHeader,Wa.modalHeader),children:[D(f$,{onRefresh:d}),f,D("div",{className:"space",style:{flex:1}}),a?null:s?D(U0,{}):D(ise,{initialOpen:!0,children:D(U0,{})}),D(_E,{css:hse,refreshing:v,onRefresh:d,className:Wa.btnRefresh,refreshHotkeyEnabled:t}),D(Id,{onClick:n})]}),D("div",{className:K(fr.modalBody,Wa.modalBody),ref:r,children:D(P2,{ref:o,shortcutEnabled:t,onScrollToTop:g,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:p,setExtraInfo:h})})]})})}),vse=va.extend("RecHeader"),M1={btn:cr` padding: 0; width: 32px; height: 32px; border-radius: 50%; ${$l} `,icon:cr` svg { width: 14px; height: 14px; } `},ko=Zn({modalFeedVisible:xt.initialShowMore,modalConfigVisible:!1}),pse=function(){return Jn(ko)},bse=()=>{ko.modalFeedVisible=!0;},yse=()=>{ko.modalFeedVisible=!1;},Cse=()=>{ko.modalConfigVisible=!0;},Sse=()=>{ko.modalConfigVisible=!1;},ME=m.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:s,styleFancy:l}=en(),{modalFeedVisible:c,modalConfigVisible:u}=Jn(ko);fn(["shift.comma"],p=>{qu()||(ko.modalConfigVisible=!ko.modalConfigVisible);},{exactMatch:!0});const[d,f]=rse(),h=ot(()=>{var C;if(!s)return;const p=(C=d.current)==null?void 0:C.parentElement;if(!p)return;const b=p.getBoundingClientRect(),y=u2();if(b.top<y){const w=y-b.top+1;vse("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",b.top,y,w),document.documentElement.scrollTop-=w;}});m.useImperativeHandle(a,()=>({scroll:h}));const g=uee(),v=fa();return D(It,{children:be(Kv.Provider,{value:t,children:[be("div",{ref:d,className:"area-header",css:[cr` margin-bottom: 0; height: 50px; `,s&&cr` position: sticky; top: ${g-1}px; // 有缝隙, 故 -1 px z-index: 1000; `,s&&f&&cr` background-color: var(--${l?"bg2":"bg1"}_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[be("div",{className:"left",children:[!s&&!v&&D("svg",{className:"icon",children:D("use",{href:"#channel-cinephile"})}),D(f$,{onRefresh:t}),r]}),D("div",{className:"right",children:be(wl,{size:"small",children:[o,!i&&D(Y2,{style:{marginLeft:5}}),D(Zt,{onClick:Cse,css:M1.btn,children:D(kt,{name:"Config",css:M1.icon})}),D(_E,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(u||c)}),be(Zt,{css:$l,onClick:bse,children:[D("span",{children:"查看更多"}),D("svg",{css:cr` width: 12px; height: 12px; margin-left: 2px; `,children:D("use",{href:"#widget-arrow"})})]})]})})]}),D(gse,{show:c,onHide:yse}),D(Uie,{show:u,onHide:Sse})]})})}),_E=m.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0),m.useState(0);const i=m.useRef(null),s=ot(()=>{i.current&&(i.current.disabled||i.current.click());});m.useImperativeHandle(a,()=>({click:s}),[]),fn("r",()=>{qu()||r&&s();},{exactMatch:!0});const l=yl(),{shuffleForFav:c,shuffleForWatchLater:u,shuffleForPopularWeekly:d}=en(),f=l==="dynamic-feed"||l==="watchlater"&&!u||l==="fav"&&!c||l==="popular-general"||l==="popular-weekly"&&!d?"刷新":"换一换",[h,g]=framerMotion.useAnimate(),v=ot(p=>(g(h.current,{rotate:[0,360]},{duration:.5,type:"tween"}),e==null?void 0:e()));return be(Zt,{disabled:o,className:t,style:n,css:cr` ${$l} &.ant-btn:not(:disabled):focus-visible { outline: none; } `,ref:i,onClick:v,children:[D("svg",{ref:h,style:{width:"11px",height:"11px",marginRight:5},children:D("use",{href:"#widget-roll"})}),D("span",{children:f})]})}),wse={grid:cr` /* card=360 col-gap=16 */ width: ${360*2+20}px; margin: 0 auto; `};function $se(){const{useNarrowMode:e}=en(),{modalFeedVisible:t,modalConfigVisible:n}=pse(),r=m.useRef(null),o=m.useRef(null),a=ot((...d)=>{var f;return (f=o.current)==null?void 0:f.refresh(...d)}),i=ot(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=m.useState(!1),[c,u]=m.useState(null);return be("section",{"data-area":"推荐",children:[D(ME,{ref:r,refreshing:s,onRefresh:a,leftSlot:c}),D(P2,{ref:o,css:[e&&wse.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:l,setExtraInfo:u})]})}const xse=va.extend("components:SectionRecommend");function Ese(){const e=m.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=fa(),n=yl(),{refreshing:r,items:o,refresh:a,error:i,swr:s}=Zx({tab:n,debug:xse,fetcher:Bee,recreateService:!1});fl(a);const l=!o.length||i||r&&!s;return be("section",{"data-area":"推荐",children:[D(ME,{refreshing:r,onRefresh:a}),D("div",{className:K(Xv,dee,t?f2:d2),style:{marginBottom:t?30:0},children:l?e.map(c=>D(lu,{},c)):o.map(c=>c.api==="separator"?null:D(lu,{item:c},c.uniqId))})]})}Do.extend(W5);const TE=(location.hash||"").startsWith(`#/${rn}/`);(function(){if(location.pathname==="/"||location.pathname==="/index.html")return Ise()})();async function Ise(){if(Xa(".adblock-tips"),cs("html.gray",e=>e.classList.remove("gray")),!TE&&document.documentElement.classList.contains("bewly-design")){console.warn(`${rn}: quit for using bewly-design`);return}return xt.pureRecommend?Pse():Ose()}async function Ose(){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(fa()&&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 Ln(200);}if(!n){console.error(`[${rn}]: init fail`);return}const r=document.createElement("section");r.classList.add(pa),n(r),cl(r).render(D(av,{injectGlobalStyle:!0,children:D(Ese,{})})),fa()&&Xa(".bili-feed4 .header-channel");}async function Pse(){var a,i;rv&&await Ln(500),fa()?((a=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||a.remove(),Xa(".bili-feed4 .header-channel"),Xa(".palette-button-wrap .flexible-roll-btn"),cs(".palette-button-wrap .storage-box",s=>s.classList.remove("hidden")),cs(".palette-button-wrap .top-btn-wrap .top-btn",s=>s.classList.add("visible")),cs(".palette-button-wrap",s=>{s.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),Xa(".bili-footer"),Xa(".palette-button-wrap > .primary-btn",s=>s.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(s=>{s.classList.remove("hidden"),s.classList.contains("top-btn")&&s.classList.remove("top-btn");});}));let e;const t=document.querySelector(".bili-header");if(t?e=s=>t.insertAdjacentElement("afterend",s):TE&&(e=s=>document.body.appendChild(s)),!e){console.error(`[${rn}]: init fail, no .bili-header found`);return}const n=document.createElement("div");n.classList.add(fa()?"bili-feed4-layout":"bili-layout","pure-recommend"),e(n);const r=document.createElement("section");r.classList.add(pa),n.appendChild(r),cl(r).render(D(av,{injectGlobalStyle:!0,children:D($se,{})}));} })(React, axios, axiosGmxhrAdapter, ReactDOM, ResizeObserver, UAParser, Motion);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址