// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.10.3 // @author magicdawn // @description 为B站首页添加像App一样的推荐 // @license MIT // @homepageURL https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @match *://www.bilibili.com/ // @match *://www.bilibili.com/?* // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?* // @require https://unpkg.com/axios@0.27.2/dist/axios.min.js // @require https://unpkg.com/axios-userscript-adapter@0.2.0/dist/axiosGmxhrAdapter.min.js // @require https://unpkg.com/react@18.2.0/umd/react.production.min.js // @require https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // @grant GM.xmlHttpRequest // @grant GM_deleteValue // @grant GM_getValue // @grant GM_setValue // @grant unsafeWindow // @downloadURL none // ==/UserScript== (i=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.textContent=i,document.head.append(e)})(` .primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px}.ant-btn:disabled{cursor:wait}._modal-mask_qk630_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:11003;display:flex;align-items:center;justify-content:center}._modal_qk630_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_qk630_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_qk630_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_qk630_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_qk630_42{margin-left:10px}._btn-close_qk630_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_qk630_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._toast-container_mcbuq_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:999999;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_mcbuq_1._single-line_mcbuq_17{text-align:center}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._bili-video-card_mlccj_1{position:relative}._image-wrapper_mlccj_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mlccj_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mlccj_8 ._preview-card-inner_mlccj_21{width:100%;height:100%}._watch-later_mlccj_25{z-index:5}._badge_mlccj_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mlccj_37{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_mlccj_52{color:default}._btn-dislike_mlccj_55{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_mlccj_55 ._btn-dislike-icon_mlccj_70{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mlccj_55 ._btn-dislike-tip_mlccj_77{pointer-events:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mlccj_92{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_mlccj_92{border:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-icon_mlccj_123{margin-bottom:5px}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-reason_mlccj_126{font-size:20px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-desc_mlccj_130{font-size:16px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{border-top:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mlccj_151 .bili-video-card__skeleton--cover,._skeleton-active_mlccj_151 .bili-video-card__skeleton--text,._skeleton-active_mlccj_151 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mlccj_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mlccj_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_14t5i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_14t5i_9{grid-template-columns:repeat(4,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_14t5i_9{grid-template-columns:repeat(5,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px){._video-grid_14t5i_9{grid-template-columns:repeat(6,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 13){display:none!important}}._video-grid_14t5i_9._internal-testing_14t5i_43{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_14t5i_9._internal-testing_14t5i_43{grid-template-columns:repeat(4,1fr)}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-one-line_14t5i_50>*:nth-of-type(1n + 5){display:none!important}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-two-lines_14t5i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_14t5i_9._internal-testing_14t5i_43{grid-template-columns:repeat(5,1fr)}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-one-line_14t5i_50>*:nth-of-type(1n + 6){display:none!important}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-two-lines_14t5i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_14t5i_71{grid-template-columns:repeat(2,1fr)!important}._config-icon_15g5q_1{line-height:1;margin-right:5px;font-size:0}._settings-group_15g5q_6{margin-bottom:10px}._settings-group_15g5q_6 ._settings-group-title_15g5q_9{font-size:2em;display:flex;align-items:center}._settings-group_15g5q_6 ._settings-group-content_15g5q_14{color:default}._settings-group_15g5q_6 ._settings-group-content_15g5q_14 button:first-child{margin-left:0}._row_15g5q_20{display:flex;align-items:center;flex-wrap:wrap}._row_15g5q_20 .primary-btn:first-child{margin-left:0}._check_15g5q_28{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_juq7d_1._narrow-mode_juq7d_1{background-color:#000000e6}._modal_juq7d_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}body.dark ._modal_juq7d_1{border:1px solid #ff6699}._modal_juq7d_1._narrow-mode_juq7d_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_juq7d_1._narrow-mode_juq7d_1{border:none}._modal-header_juq7d_21,._modal-body_juq7d_22{padding-right:15px}body.dark ._btn-refresh_juq7d_25{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} `); (function (h, ug, Fu, t0) { '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 h__namespace = /*#__PURE__*/_interopNamespaceDefault(h); const ug__namespace = /*#__PURE__*/_interopNamespaceDefault(ug); var qb=Object.defineProperty;var Kb=(e,t,r)=>t in e?qb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ke=(e,t,r)=>(Kb(e,typeof t!="symbol"?t+"":t,r),r),Rl=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var P=(e,t,r)=>(Rl(e,t,"read from private field"),r?r.call(e):t.get(e)),ge=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r);},ne=(e,t,r,n)=>(Rl(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ya=(e,t,r,n)=>({set _(i){ne(e,t,i,r);},get _(){return P(e,t,n)}}),J=(e,t,r)=>(Rl(e,t,"access private method"),r);var Kk=Xb((sn,ln)=>{function r0(e){if(e.sheet)return e.sheet;for(var t=0;t0?Et(Bi,--zt):0,Ni--,at===10&&(Ni=1,Ts--),at}function rr(){return at=zt2||Ro(at)>3?"":" "}function g0(e,t){for(;--t&&rr()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return Ko(e,La()+(t<6&&zr()==32&&rr()==32))}function Ec(e){for(;rr();)switch(at){case e:return zt;case 34:case 39:e!==34&&e!==39&&Ec(at);break;case 40:e===41&&Ec(e);break;case 92:rr();break}return zt}function m0(e,t){for(;rr()&&e+at!==47+10;)if(e+at===42+42&&zr()===47)break;return "/*"+Ko(t,zt-1)+"*"+Rs(e===47?e:rr())}function v0(e){for(;!Ro(zr());)rr();return Ko(e,zt)}function bg(e){return pg(ja("",null,null,null,[""],e=vg(e),0,[0],e))}function ja(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,v=0,m=1,p=1,b=1,w=0,S="",_=i,y=o,x=n,C=S;p;)switch(v=w,w=rr()){case 40:if(v!=108&&Et(C,d-1)==58){Cc(C+=Ne(Da(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Da(w);break;case 9:case 10:case 13:case 32:C+=h0(v);break;case 92:C+=g0(La()-1,7);continue;case 47:switch(zr()){case 42:case 47:wa(p0(m0(rr(),La()),t,r),l);break;default:C+="/";}break;case 123*m:s[c++]=Lr(C)*b;case 125*m:case 59:case 0:switch(w){case 0:case 125:p=0;case 59+u:g>0&&Lr(C)-d&&wa(g>32?Jd(C+";",n,r,d-1):Jd(Ne(C," ","")+";",n,r,d-2),l);break;case 59:C+=";";default:if(wa(x=Qd(C,t,r,c,u,i,s,S,_=[],y=[],d),o),w===123)if(u===0)ja(C,t,x,x,_,o,d,s,y);else switch(f===99&&Et(C,3)===110?100:f){case 100:case 109:case 115:ja(e,x,x,n&&wa(Qd(e,x,x,0,0,i,s,S,i,_=[],d),y),i,y,d,s,n?_:y);break;default:ja(C,x,x,x,[""],y,0,s,y);}}c=u=g=0,m=b=1,S=C="",d=a;break;case 58:d=1+Lr(C),g=v;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&f0()==125)continue}switch(C+=Rs(w),w*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Lr(C)-1)*b,b=1;break;case 64:zr()===45&&(C+=Da(rr())),f=zr(),u=d=Lr(S=C+=v0(La())),w++;break;case 45:v===45&&Lr(C)==2&&(m=0);}}return o}function Qd(e,t,r,n,i,o,a,s,l,c,u){for(var d=i-1,f=i===0?o:[""],g=ju(f),v=0,m=0,p=0;v0?f[b]+" "+w:Ne(w,/&\f/g,f[b])))&&(l[p++]=S);return Ms(e,t,r,i===0?Lu:s,l,c,u)}function p0(e,t,r){return Ms(e,t,r,fg,Rs(d0()),Po(e,2,-2),0)}function Jd(e,t,r,n){return Ms(e,t,r,Du,Po(e,0,n),Po(e,n+1,-1),n)}function Xn(e,t){for(var r="",n=ju(e),i=0;i6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Ne(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Ja+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Cc(e,"stretch")?wg(Ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Lr(e)-3-(~Cc(e,"!important")&&10))){case 107:return Ne(e,":",":"+Re)+e;case 101:return Ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(Et(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Ot+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return Re+e+Ot+Ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Ot+Ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Ot+Ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Ot+e+e}return e}var _0=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Du:t.return=wg(t.value,t.length);break;case hg:return Xn([Ji(t,{value:Ne(t.value,"@","@"+Re)})],i);case Lu:if(t.length)return u0(t.props,function(o){switch(c0(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xn([Ji(t,{props:[Ne(o,/:(read-\w+)/,":"+Ja+"$1")]})],i);case"::placeholder":return Xn([Ji(t,{props:[Ne(o,/:(plac\w+)/,":"+Re+"input-$1")]}),Ji(t,{props:[Ne(o,/:(plac\w+)/,":"+Ja+"$1")]}),Ji(t,{props:[Ne(o,/:(plac\w+)/,Ot+"input-$1")]})],i)}return ""})}},O0=[_0],Sg=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""));});}var i=t.stylisPlugins||O0,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),b=1;b=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 H0={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},W0=/[A-Z]|^ms/g,B0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Og=function(t){return t.charCodeAt(1)===45},tf=function(t){return t!=null&&typeof t!="boolean"},Ml=w0(function(e){return Og(e)?e:e.replace(W0,"-$&").toLowerCase()}),rf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(B0,function(n,i,o){return Dr={name:i,styles:o,next:Dr},i})}return H0[t]!==1&&!Og(t)&&typeof r=="number"&&r!==0?r+"px":r};function Mo(e,t,r){if(r==null)return "";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return "";case"object":{if(r.anim===1)return Dr={name:r.name,styles:r.styles,next:Dr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Dr={name:n.name,styles:n.styles,next:Dr},n=n.next;var i=r.styles+";";return i}return V0(e,t,r)}case"function":{if(e!==void 0){var o=Dr,a=r(e);return Dr=o,Mo(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function V0(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i0){if(++t>=Qy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function r1(e){return function(){return e}}var n1=function(){try{var e=ei(Object,"defineProperty");return e({},"",{}),e}catch{}}();const es=n1;var i1=es?function(e,t){return es(e,"toString",{configurable:!0,enumerable:!1,value:r1(t),writable:!0})}:Ig;const o1=i1;var a1=t1(o1);const s1=a1;function l1(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o-1}var h1=9007199254740991,g1=/^(?:0|[1-9]\d*)$/;function Uu(e,t){var r=typeof e;return t=t??h1,!!t&&(r=="number"||r!="symbol"&&g1.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=w1}function S1(e){return e!=null&&qu(e.length)&&!Fg(e)}var C1=Object.prototype;function E1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||C1;return e===r}function x1(e,t){for(var r=-1,n=Array(e);++r-1}function Lw(e,t){var r=this.__data__,n=Us(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function pn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(s)?t>1?Vg(s,t-1,r,n,i):Bg(i,s):n||(i[i.length]=s);}return i}function tS(e){var t=e==null?0:e.length;return t?Vg(e,1):[]}function rS(e){return s1(y1(e,void 0,tS),e+"")}var nS="Expected a function";function iS(e,t){var r;if(typeof t!="function")throw new TypeError(nS);return e=kg(e),function(){return --e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function oS(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=n?e:oS(e,t,r)}var sS="\\ud800-\\udfff",lS="\\u0300-\\u036f",cS="\\ufe20-\\ufe2f",uS="\\u20d0-\\u20ff",dS=lS+cS+uS,fS="\\ufe0e\\ufe0f",hS="\\u200d",gS=RegExp("["+hS+sS+dS+fS+"]");function Qu(e){return gS.test(e)}function mS(e){return e.split("")}var Ug="\\ud800-\\udfff",vS="\\u0300-\\u036f",pS="\\ufe20-\\ufe2f",bS="\\u20d0-\\u20ff",yS=vS+pS+bS,wS="\\ufe0e\\ufe0f",SS="["+Ug+"]",Pc="["+yS+"]",Rc="\\ud83c[\\udffb-\\udfff]",CS="(?:"+Pc+"|"+Rc+")",Gg="[^"+Ug+"]",qg="(?:\\ud83c[\\udde6-\\uddff]){2}",Kg="[\\ud800-\\udbff][\\udc00-\\udfff]",ES="\\u200d",Xg=CS+"?",Yg="["+wS+"]?",xS="(?:"+ES+"(?:"+[Gg,qg,Kg].join("|")+")"+Yg+Xg+")*",$S=Yg+Xg+xS,_S="(?:"+[Gg+Pc+"?",Pc,qg,Kg,SS].join("|")+")",OS=RegExp(Rc+"(?="+Rc+")|"+_S+$S,"g");function PS(e){return e.match(OS)||[]}function RS(e){return Qu(e)?PS(e):mS(e)}function TS(){this.__data__=new pn,this.size=0;}function MS(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function AS(e){return this.__data__.get(e)}function NS(e){return this.__data__.has(e)}var kS=200;function IS(e,t){var r=this.__data__;if(r instanceof pn){var n=r.__data__;if(!ko||n.lengths))return !1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,g=r&iC?new Io:void 0;for(o.set(e,t),o.set(t,e);++d=t||C<0||d&&A>=o}function b(){var x=Il();if(p(x))return w(x);s=setTimeout(b,m(x));}function w(x){return s=void 0,f&&n?g(x):(n=i=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0;}function _(){return s===void 0?a:w(Il())}function y(){var x=Il(),C=p(x);if(n=arguments,i=this,l=x,C){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),g(l)}return s===void 0&&(s=setTimeout(b,t)),a}return y.cancel=S,y.flush=_,y}function VC(e,t,r){for(var n=-1,i=e==null?0:e.length;++nXC)return r;do t%2&&(r+=e),t=YC(t/2),t&&(e+=e);while(t);return r}var ZC=rm("length");const QC=ZC;var im="\\ud800-\\udfff",JC="\\u0300-\\u036f",eE="\\ufe20-\\ufe2f",tE="\\u20d0-\\u20ff",rE=JC+eE+tE,nE="\\ufe0e\\ufe0f",iE="["+im+"]",Ac="["+rE+"]",Nc="\\ud83c[\\udffb-\\udfff]",oE="(?:"+Ac+"|"+Nc+")",om="[^"+im+"]",am="(?:\\ud83c[\\udde6-\\uddff]){2}",sm="[\\ud800-\\udbff][\\udc00-\\udfff]",aE="\\u200d",lm=oE+"?",cm="["+nE+"]?",sE="(?:"+aE+"(?:"+[om,am,sm].join("|")+")"+cm+lm+")*",lE=cm+lm+sE,cE="(?:"+[om+Ac+"?",Ac,am,sm,iE].join("|")+")",kf=RegExp(Nc+"(?="+Nc+")|"+cE+lE,"g");function uE(e){for(var t=kf.lastIndex=0;kf.test(e);)++t;return t}function um(e){return Qu(e)?uE(e):QC(e)}var dE=Math.ceil;function fE(e,t){t=t===void 0?" ":Vu(t);var r=t.length;if(r<2)return r?Nf(t,e):t;var n=Nf(t,dE(e/um(t)));return Qu(t)?aS(RS(n),0,e).join(""):n.slice(0,e)}function hE(e,t,r){e=Wg(e),t=kg(t);var n=t?um(e):0;return t&&n=SE){var c=t?null:wE(e);if(c)return Ju(c);a=!1,i=Zg,l=new Io;}else l=t?[]:s;e:for(;++nnew Proxy(e,t);const kc=Object.getPrototypeOf,Ic=new WeakMap,hm=e=>e&&(Ic.has(e)?Ic.get(e):kc(e)===Object.prototype||kc(e)===Array.prototype),ts=e=>typeof e=="object"&&e!==null,$E=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0;}),Object.create(kc(e),t)},td=e=>e[ed]||e,gm=(e,t,r,n)=>{if(!hm(e))return e;let i=n&&n.get(e);if(!i){const l=td(e);i=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,$E(l)]:[l],n==null||n.set(e,i);}const[o,a]=i;let s=r&&r.get(o);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const f=(v,m)=>{if(!d){let p=u[to].get(l);if(p||(p={},u[to].set(l,p)),v===go)p[go]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(m);}}},g={get:(v,m)=>m===ed?l:(f("k",m),gm(Reflect.get(v,m),u[to],u.c)),has:(v,m)=>m===EE?(d=!0,u[to].delete(l),!0):(f("h",m),Reflect.has(v,m)),getOwnPropertyDescriptor:(v,m)=>(f("o",m),Reflect.getOwnPropertyDescriptor(v,m)),ownKeys:v=>(f(go),Reflect.ownKeys(v))};return c&&(g.set=g.deleteProperty=()=>!1),[g,u]})(o,!!a),s[1].p=xE(a||o,s[0]),r&&r.set(o,s)),s[1][to]=t,s[1].c=r,s[1].p},mm=(e,t,r,n)=>{if(Object.is(e,t))return !1;if(!ts(e)||!ts(t))return !0;const i=r.get(td(e));if(!i)return !0;if(n){const a=n.get(e);if(a&&a.n===t)return a.g;n.set(e,{n:t,g:!1});}let o=null;try{for(const a of i.h||[])if(o=Reflect.has(e,a)!==Reflect.has(t,a),o)return o;if(i[go]===!0){if(o=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),o)return o}else for(const a of i.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),o)return o;for(const a of i.k||[])if(o=mm(e[a],t[a],r,n),o)return o;return o===null&&(o=!0),o}finally{n&&n.set(e,{n:t,g:o});}},_E=e=>hm(e)&&e[ed]||null,If=(e,t=!0)=>{Ic.set(e,t);},OE=(e,t,r)=>{const n=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;ts(a)&&i.add(a);const l=ts(a)&&t.get(td(a));if(l){var c,u;if((c=l.h)==null||c.forEach(f=>{const g=`:has(${String(f)})`;n.push(s?[...s,g]:[g]);}),l[go]===!0){const f=":ownKeys";n.push(s?[...s,f]:[f]);}else {var d;(d=l.o)==null||d.forEach(f=>{const g=`:hasOwn(${String(f)})`;n.push(s?[...s,g]:[g]);});}(u=l.k)==null||u.forEach(f=>{r&&!("value"in(Object.getOwnPropertyDescriptor(a,f)||{}))||o(a[f],s?[...s,f]:[f]);});}else s&&n.push(s);};return o(e),n},Fl=e=>typeof e=="object"&&e!==null,Rn=new WeakMap,Ca=new WeakSet,PE=(e=Object.is,t=(c,u)=>new Proxy(c,u),r=c=>Fl(c)&&!Ca.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),n=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},i=new WeakMap,o=(c,u,d=n)=>{const f=i.get(c);if((f==null?void 0:f[0])===u)return f[1];const g=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return If(g,!0),i.set(c,[u,g]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(g,v))return;const m=Reflect.get(c,v),p={value:m,enumerable:!0,configurable:!0};if(Ca.has(m))If(m,!1);else if(m instanceof Promise)delete p.value,p.get=()=>d(m);else if(Rn.has(m)){const[b,w]=Rn.get(m);p.value=o(b,w(),d);}Object.defineProperty(g,v,p);}),g},a=new WeakMap,s=[1,1],l=c=>{if(!Fl(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const f=new Set,g=(T,O=++s[0])=>{d!==O&&(d=O,f.forEach(k=>k(T,O)));};let v=s[1];const m=(T=++s[1])=>(v!==T&&!f.size&&(v=T,b.forEach(([O])=>{const k=O[1](T);k>d&&(d=k);})),d),p=T=>(O,k)=>{const M=[...O];M[1]=[T,...M[1]],g(M,k);},b=new Map,w=(T,O)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(T))throw new Error("prop listener already exists");if(f.size){const k=O[3](p(T));b.set(T,[O,k]);}else b.set(T,[O]);},S=T=>{var O;const k=b.get(T);k&&(b.delete(T),(O=k[1])==null||O.call(k));},_=T=>(f.add(T),f.size===1&&b.forEach(([k,M],E)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&M)throw new Error("remove already exists");const $=k[3](p(E));b.set(E,[k,$]);}),()=>{f.delete(T),f.size===0&&b.forEach(([k,M],E)=>{M&&(M(),b.set(E,[k]));});}),y=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),C=t(y,{deleteProperty(T,O){const k=Reflect.get(T,O);S(O);const M=Reflect.deleteProperty(T,O);return M&&g(["delete",[O],k]),M},set(T,O,k,M){const E=Reflect.has(T,O),$=Reflect.get(T,O,M);if(E&&(e($,k)||a.has(k)&&e($,a.get(k))))return !0;S(O),Fl(k)&&(k=_E(k)||k);let R=k;if(k instanceof Promise)k.then(I=>{k.status="fulfilled",k.value=I,g(["resolve",[O],I]);}).catch(I=>{k.status="rejected",k.reason=I,g(["reject",[O],I]);});else {!Rn.has(k)&&r(k)&&(R=l(k));const I=!Ca.has(R)&&Rn.get(R);I&&w(O,I);}return Reflect.set(T,O,R,M),g(["set",[O],k,$]),!0}});a.set(c,C);const A=[y,m,o,_];return Rn.set(C,A),Reflect.ownKeys(c).forEach(T=>{const O=Object.getOwnPropertyDescriptor(c,T);"value"in O&&(C[T]=c[T],delete O.value,delete O.writable),Object.defineProperty(y,T,O);}),C})=>[l,Rn,Ca,e,t,r,n,i,o,a,s],[RE]=PE();function Yo(e={}){return RE(e)}function vm(e,t,r){const n=Rn.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");let i;const o=[],a=n[3];let s=!1;const c=a(u=>{if(o.push(u),r){t(o.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,s&&t(o.splice(0));}));});return s=!0,()=>{s=!1,c();}}function Ff(e,t){const r=Rn.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");const[n,i,o]=r;return o(n,i(),t)}var Fc={},TE={get exports(){return Fc},set exports(e){Fc=e;}},pm={};/** * @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 Ii=h;function ME(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var AE=typeof Object.is=="function"?Object.is:ME,NE=Ii.useState,kE=Ii.useEffect,IE=Ii.useLayoutEffect,FE=Ii.useDebugValue;function LE(e,t){var r=t(),n=NE({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return IE(function(){i.value=r,i.getSnapshot=t,Ll(i)&&o({inst:i});},[e,r,t]),kE(function(){return Ll(i)&&o({inst:i}),e(function(){Ll(i)&&o({inst:i});})},[e]),FE(r),r}function Ll(e){var t=e.getSnapshot;e=e.value;try{var r=t();return !AE(e,r)}catch{return !0}}function DE(e,t){return t()}var jE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?DE:LE;pm.useSyncExternalStore=Ii.useSyncExternalStore!==void 0?Ii.useSyncExternalStore:jE;(function(e){e.exports=pm;})(TE);const zE=R0(Fc),{use:Lf}=h,{useSyncExternalStore:HE}=zE,WE=(e,t)=>{const r=h.useRef();h.useEffect(()=>{r.current=OE(e,t,!0);}),h.useDebugValue(r.current);},BE=new WeakMap;function Gi(e,t){const r=t==null?void 0:t.sync,n=h.useRef(),i=h.useRef();let o=!0;const a=HE(h.useCallback(c=>{const u=vm(e,c,r);return c(),u},[e,r]),()=>{const c=Ff(e,Lf);try{if(!o&&n.current&&i.current&&!mm(n.current,c,i.current,new WeakMap))return n.current}catch{}return c},()=>Ff(e,Lf));o=!1;const s=new WeakMap;h.useEffect(()=>{n.current=a,i.current=s;}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&WE(a,s);const l=h.useMemo(()=>new WeakMap,[]);return gm(a,s,l,BE)}const rd={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60},Oe=Yo({...rd}),bm=Object.keys(rd),fn=function(){return Gi(Oe)},VE=Vi,ym=`${VE}.settings`;function UE(){const e=GM_getValue(ym);e&&typeof e=="object"&&Object.assign(Oe,dm(e,bm)),vm(Oe,()=>{GE();});}function GE(){const e=dm(Oe,bm);GM_setValue(ym,e);}function rs(e){Object.assign(Oe,e);}function qE(){return rs(rd)}UE();const Fo=KC(()=>!!document.querySelectorAll(".bili-feed4").length),Df=document.querySelector(".bili-header__bar"),KE=!!(Df&&window.getComputedStyle(Df).display==="none"),wm=KE?50:64,Sm=()=>document.body.classList.contains("dark"),Cm=Yo({value:Sm()});function nd(){return Gi(Cm).value}const za=new MutationObserver(function(){Cm.value=Sm();});za.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{za==null||za.disconnect();});function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ze(e){return ze=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},ze(e)}function XE(e,t){if(ze(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ze(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Em(e){var t=XE(e,"string");return ze(t)==="symbol"?t:String(t)}function jf(e,t){for(var r=0;r"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 is(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZE(e,t){if(t&&(ze(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return is(e)}function Ys(e){var t=YE();return function(){var n=ns(e),i;if(t){var o=ns(this).constructor;i=Reflect.construct(n,arguments,o);}else i=n.apply(this,arguments);return ZE(this,i)}}var Dc={},QE={get exports(){return Dc},set exports(e){Dc=e;}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:{},r=[];return h.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Fi(n)):To.isFragment(n)&&n.props?r=r.concat(Fi(n.props.children,t)):r.push(n));}),r}var zf={};function JE(e,t){}function ex(e,t,r){!t&&!zf[r]&&(e(!1,r),zf[r]=!0);}function xr(e,t){ex(JE,e,t);}function X(e,t,r){return t=Em(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n);}return r}function j(e){for(var t=1;t0},e.prototype.connect_=function(){!zc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ax?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0);},e.prototype.disconnect_=function(){!zc||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=ox.some(function(o){return !!~n.indexOf(o)});i&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),_m=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Li(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new mx(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Li(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new vx(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Pm=typeof WeakMap<"u"?new WeakMap:new $m,Rm=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=sx.getInstance(),n=new px(t,r,this);Pm.set(this,n);}return e}();["observe","unobserve","disconnect"].forEach(function(e){Rm.prototype[e]=function(){var t;return (t=Pm.get(this))[e].apply(t,arguments)};});var bx=function(){return typeof as.ResizeObserver<"u"?as.ResizeObserver:Rm}(),Mn=new Map;function yx(e){e.forEach(function(t){var r,n=t.target;(r=Mn.get(n))===null||r===void 0||r.forEach(function(i){return i(n)});});}var Tm=new bx(yx);function wx(e,t){Mn.has(e)||(Mn.set(e,new Set),Tm.observe(e)),Mn.get(e).add(t);}function Sx(e,t){Mn.has(e)&&(Mn.get(e).delete(t),Mn.get(e).size||(Tm.unobserve(e),Mn.delete(e)));}var Cx=function(e){Xs(r,e);var t=Ys(r);function r(){return dr(this,r),t.apply(this,arguments)}return fr(r,[{key:"render",value:function(){return this.props.children}}]),r}(h__namespace.Component),Hc=h__namespace.createContext(null);function Ex(e){var t=e.children,r=e.onBatchResize,n=h__namespace.useRef(0),i=h__namespace.useRef([]),o=h__namespace.useContext(Hc),a=h__namespace.useCallback(function(s,l,c){n.current+=1;var u=n.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(i.current),i.current=[]);}),o==null||o(s,l,c);},[r,o]);return h__namespace.createElement(Hc.Provider,{value:a},t)}function xx(e,t){var r=e.children,n=e.disabled,i=h__namespace.useRef(null),o=h__namespace.useRef(null),a=h__namespace.useContext(Hc),s=typeof r=="function",l=s?r(i):r,c=h__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&h__namespace.isValidElement(l)&&Zo(l),d=u?l.ref:null,f=h__namespace.useMemo(function(){return ti(d,i)},[d,i]),g=function(){return jc(i.current)||jc(o.current)};h__namespace.useImperativeHandle(t,function(){return g()});var v=h__namespace.useRef(e);v.current=e;var m=h__namespace.useCallback(function(p){var b=v.current,w=b.onResize,S=b.data,_=p.getBoundingClientRect(),y=_.width,x=_.height,C=p.offsetWidth,A=p.offsetHeight,T=Math.floor(y),O=Math.floor(x);if(c.current.width!==T||c.current.height!==O||c.current.offsetWidth!==C||c.current.offsetHeight!==A){var k={width:T,height:O,offsetWidth:C,offsetHeight:A};c.current=k;var M=C===Math.round(y)?y:C,E=A===Math.round(x)?x:A,$=j(j({},k),{},{offsetWidth:M,offsetHeight:E});a==null||a($,p,S),w&&Promise.resolve().then(function(){w($,p);});}},[]);return h__namespace.useEffect(function(){var p=g();return p&&!n&&wx(p,m),function(){return Sx(p,m)}},[i.current,n]),h__namespace.createElement(Cx,{ref:o},u?h__namespace.cloneElement(l,{ref:f}):l)}var $x=h__namespace.forwardRef(xx),_x="rc-observer-key";function Ox(e,t){var r=e.children,n=typeof r=="function"?[r]:Fi(r);return n.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(_x,"-").concat(o);return h__namespace.createElement($x,Mt({},e,{key:a,ref:o===0?t:void 0}),i)})}var ad=h__namespace.forwardRef(Ox);ad.Collection=Ex;function Mm(e,t){var r=j({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n];}),r}function Wc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Tx(e,t){if(e==null)return {};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function nr(e,t){if(e==null)return {};var r=Tx(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function Nm(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(xr(!l,"Warning: There may be circular references"),l)return !1;if(o===a)return !0;if(r&&s>1)return !1;n.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return !1;for(var u=0;u0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ix}function Qs(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Fx(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function jm(e){return Array.from((Vc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function zm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ir())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Bf,Fx(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var o=Qs(t),a=o.firstChild;if(n){if(n==="queue"){var s=jm(o).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Bf))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a);}else o.appendChild(i);return i}function Hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Qs(t);return jm(r).find(function(n){return n.getAttribute(Dm(t))===e})}function cs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Hm(e,t);if(r){var n=Qs(t);n.removeChild(r);}}function Lx(e,t){var r=Vc.get(e);if(!r||!kx(document,r)){var n=zm("",t),i=n.parentNode;Vc.set(e,i),e.removeChild(n);}}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Qs(r);Lx(n,r);var i=Hm(t,r);if(i){var o,a;if((o=r.csp)!==null&&o!==void 0&&o.nonce&&i.nonce!==((a=r.csp)===null||a===void 0?void 0:a.nonce)){var s;i.nonce=(s=r.csp)===null||s===void 0?void 0:s.nonce;}return i.innerHTML!==e&&(i.innerHTML=e),i}var l=zm(e,r);return l.setAttribute(Dm(r),t),l}function us(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&ze(n)==="object"?t+=us(n):t+=n;}),t}function Dx(e,t){return ld("".concat(t,"_").concat(us(e)))}var vo="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Wm="903px";function jx(e,t){if(ir()){var r;Di(e,vo);var n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",t==null||t(n),document.body.appendChild(n);var i=getComputedStyle(n).width===Wm;return (r=n.parentNode)===null||r===void 0||r.removeChild(n),cs(vo),i}return !1}var Dl=void 0;function zx(){return Dl===void 0&&(Dl=jx("@layer ".concat(vo," { .").concat(vo," { width: ").concat(Wm,"!important; } }"),function(e){e.className=vo;})),Dl}var Hx={},Wx="css",jn=new Map;function Bx(e){jn.set(e,(jn.get(e)||0)+1);}function Vx(e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Bc,'="').concat(e,'"]'));t.forEach(function(r){if(r[mo]===ls){var n;(n=r.parentNode)===null||n===void 0||n.removeChild(r);}});}}function Ux(e){jn.set(e,(jn.get(e)||0)-1);var t=Array.from(jn.keys()),r=t.filter(function(n){var i=jn.get(n)||0;return i<=0});r.length2&&arguments[2]!==void 0?arguments[2]:{},n=r.salt,i=n===void 0?"":n,o=r.override,a=o===void 0?Hx:o,s=r.formatToken,l=h__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(te(t)))},[t]),c=h__namespace.useMemo(function(){return us(l)},[l]),u=h__namespace.useMemo(function(){return us(a)},[a]),d=Lm("token",[i,e.id,c,u],function(){var f=e.getDerivativeToken(l),g=j(j({},f),a);s&&(g=s(g));var v=Dx(g,i);g._tokenKey=v,Bx(v);var m="".concat(Wx,"-").concat(ld(v));return g._hashId=m,[g,m]},function(f){Ux(f[0]._tokenKey);});return d}var qx={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},Vf=ir(),Kx="_skip_check_";function Uf(e){var t=Xn(bg(e),yg);return t.replace(/\{%%%\:[^;];}/g,";")}function Xx(e){return ze(e)==="object"&&e&&Kx in e}function Yx(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(te(l.slice(1))).join(" ")});return o.join(",")}var Zx=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,d=u===void 0?[]:u;r.linters;var f="",g={};function v(S){var _=S.getName(s);if(!g[_]){var y=e(S.style,r,{root:!1,parentSelectors:a}),x=G(y,1),C=x[0];g[_]="@keyframes ".concat(S.getName(s)).concat(C);}}function m(S){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(y){Array.isArray(y)?m(y,_):y&&_.push(y);}),_}var p=m(Array.isArray(t)?t:[t]);if(p.forEach(function(S){var _=typeof S=="string"&&!i?{}:S;if(typeof _=="string")f+="".concat(_,` `);else if(_._keyframe)v(_);else {var y=d.reduce(function(x,C){var A;return (C==null||(A=C.visit)===null||A===void 0?void 0:A.call(C,x))||x},_);Object.keys(y).forEach(function(x){var C=y[x];if(ze(C)==="object"&&C&&(x!=="animationName"||!C._keyframe)&&!Xx(C)){var A=!1,T=x.trim(),O=!1;(i||o)&&s?T.startsWith("@")?A=!0:T=Yx(x,s,c):i&&!s&&(T==="&"||T==="")&&(T="",O=!0);var k=e(C,r,{root:O,injectHash:A,parentSelectors:[].concat(te(a),[T])}),M=G(k,2),E=M[0],$=M[1];g=j(j({},g),$),f+="".concat(T).concat(E);}else {var R,I=(R=C==null?void 0:C.value)!==null&&R!==void 0?R:C,N=x.replace(/[A-Z]/g,function(D){return "-".concat(D.toLowerCase())}),L=I;!qx[x]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),x==="animationName"&&C!==null&&C!==void 0&&C._keyframe&&(v(C),L=C.getName(s)),f+="".concat(N,":").concat(L,";");}});}}),!i)f="{".concat(f,"}");else if(l&&zx()){var b=l.split(","),w=b[b.length-1].trim();f="@layer ".concat(w," {").concat(f,"}"),b.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f));}return [f,g]};function Qx(e,t){return ld("".concat(e.join("%")).concat(t))}function Jx(){return null}function Uc(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=h__namespace.useContext(km),l=s.autoClear;s.mock;var c=s.defaultCache,u=s.hashPriority,d=s.container,f=s.ssrInline,g=s.transformers,v=s.linters,m=r._tokenKey,p=[m].concat(te(n)),b=Vf,w=Lm("style",p,function(){var C=t(),A=Zx(C,{hashId:i,hashPriority:u,layer:o,path:n.join("-"),transformers:g,linters:v}),T=G(A,2),O=T[0],k=T[1],M=Uf(O),E=Qx(p,M);if(b){var $={mark:Ei,prepend:"queue",attachTo:d},R=typeof a=="function"?a():a;R&&($.csp={nonce:R});var I=Di(M,E,$);I[mo]=ls,I.setAttribute(Bc,m),Object.keys(k).forEach(function(N){Di(Uf(k[N]),"_effect-".concat(N),$);});}return [M,m,E]},function(C,A){var T=G(C,3),O=T[2];(A||l)&&Vf&&cs(O,{mark:Ei});}),S=G(w,3),_=S[0],y=S[1],x=S[2];return function(C){var A;if(!f||b||!c)A=h__namespace.createElement(Jx,null);else {var T;A=h__namespace.createElement("style",Mt({},(T={},X(T,Bc,y),X(T,Ei,x),T),{dangerouslySetInnerHTML:{__html:_}}));}return h__namespace.createElement(h__namespace.Fragment,null,A,C)}}var Bt=function(){function e(t,r){dr(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=r;}return fr(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function e$(e,t){if(e.length!==t.length)return !1;for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return (n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return !!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var d=G(c,2),f=d[1];return i.internalGet(u)[1]0,void 0),Gf+=1;}return fr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),jl=new cd;function Bm(e){var t=Array.isArray(e)?e:[e];return jl.has(t)||jl.set(t,new t$(t)),jl.get(t)}function li(e){return e.notSplit=!0,e}li(["borderTop","borderBottom"]),li(["borderTop"]),li(["borderBottom"]),li(["borderLeft","borderRight"]),li(["borderLeft"]),li(["borderRight"]);var r$=h.createContext({});const ud=r$;var Hn="RC_FORM_INTERNAL_HOOKS",Le=function(){xr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},ji=h__namespace.createContext({getFieldValue:Le,getFieldsValue:Le,getFieldError:Le,getFieldWarning:Le,getFieldsError:Le,isFieldsTouched:Le,isFieldTouched:Le,isFieldValidating:Le,isFieldsValidating:Le,resetFields:Le,setFields:Le,setFieldValue:Le,setFieldsValue:Le,validateFields:Le,submit:Le,getInternalHooks:function(){return Le(),{dispatch:Le,initEntityValue:Le,registerField:Le,useSubscribe:Le,setInitialValues:Le,destroyForm:Le,setCallbacks:Le,registerWatch:Le,getFields:Le,setValidateMessages:Le,setPreserve:Le,getInitialValue:Le}}});function Gc(e){return e==null?[]:Array.isArray(e)?e:[e]}function n$(e){return e&&!!e._init}function or(){or=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(M,E,$){M[E]=$.value;},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(M,E,$){return Object.defineProperty(M,E,{value:$,enumerable:!0,configurable:!0,writable:!0}),M[E]}try{l({},"");}catch{l=function($,R,I){return $[R]=I};}function c(M,E,$,R){var I=E&&E.prototype instanceof f?E:f,N=Object.create(I.prototype),L=new T(R||[]);return n(N,"_invoke",{value:y(M,$,L)}),N}function u(M,E,$){try{return {type:"normal",arg:M.call(E,$)}}catch(R){return {type:"throw",arg:R}}}e.wrap=c;var d={};function f(){}function g(){}function v(){}var m={};l(m,o,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(O([])));b&&b!==t&&r.call(b,o)&&(m=b);var w=v.prototype=f.prototype=Object.create(m);function S(M){["next","throw","return"].forEach(function(E){l(M,E,function($){return this._invoke(E,$)});});}function _(M,E){function $(I,N,L,D){var H=u(M[I],M,N);if(H.type!=="throw"){var V=H.arg,W=V.value;return W&&ze(W)=="object"&&r.call(W,"__await")?E.resolve(W.__await).then(function(B){$("next",B,L,D);},function(B){$("throw",B,L,D);}):E.resolve(W).then(function(B){V.value=B,L(V);},function(B){return $("throw",B,L,D)})}D(H.arg);}var R;n(this,"_invoke",{value:function(N,L){function D(){return new E(function(H,V){$(N,L,H,V);})}return R=R?R.then(D,D):D()}});}function y(M,E,$){var R="suspendedStart";return function(I,N){if(R==="executing")throw new Error("Generator is already running");if(R==="completed"){if(I==="throw")throw N;return k()}for($.method=I,$.arg=N;;){var L=$.delegate;if(L){var D=x(L,$);if(D){if(D===d)continue;return D}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(R==="suspendedStart")throw R="completed",$.arg;$.dispatchException($.arg);}else $.method==="return"&&$.abrupt("return",$.arg);R="executing";var H=u(M,E,$);if(H.type==="normal"){if(R=$.done?"completed":"suspendedYield",H.arg===d)continue;return {value:H.arg,done:$.done}}H.type==="throw"&&(R="completed",$.method="throw",$.arg=H.arg);}}}function x(M,E){var $=E.method,R=M.iterator[$];if(R===void 0)return E.delegate=null,$==="throw"&&M.iterator.return&&(E.method="return",E.arg=void 0,x(M,E),E.method==="throw")||$!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+$+"' method")),d;var I=u(R,M.iterator,E.arg);if(I.type==="throw")return E.method="throw",E.arg=I.arg,E.delegate=null,d;var N=I.arg;return N?N.done?(E[M.resultName]=N.value,E.next=M.nextLoc,E.method!=="return"&&(E.method="next",E.arg=void 0),E.delegate=null,d):N:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,d)}function C(M){var E={tryLoc:M[0]};1 in M&&(E.catchLoc=M[1]),2 in M&&(E.finallyLoc=M[2],E.afterLoc=M[3]),this.tryEntries.push(E);}function A(M){var E=M.completion||{};E.type="normal",delete E.arg,M.completion=E;}function T(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(C,this),this.reset(!0);}function O(M){if(M){var E=M[o];if(E)return E.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var $=-1,R=function I(){for(;++$=0;--I){var N=this.tryEntries[I],L=N.completion;if(N.tryLoc==="root")return R("end");if(N.tryLoc<=this.prev){var D=r.call(N,"catchLoc"),H=r.call(N,"finallyLoc");if(D&&H){if(this.prev=0;--R){var I=this.tryEntries[R];if(I.tryLoc<=this.prev&&r.call(I,"finallyLoc")&&this.prev=0;--$){var R=this.tryEntries[$];if(R.finallyLoc===E)return this.complete(R.completion,R.afterLoc),A(R),d}},catch:function(E){for(var $=this.tryEntries.length-1;$>=0;--$){var R=this.tryEntries[$];if(R.tryLoc===E){var I=R.completion;if(I.type==="throw"){var N=I.arg;A(R);}return N}}throw new Error("illegal catch attempt")},delegateYield:function(E,$,R){return this.delegate={iterator:O(E),resultName:$,nextLoc:R},this.method==="next"&&(this.arg=void 0),d}},e}function qf(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value;}catch(c){r(c);return}s.done?t(l):Promise.resolve(l).then(n,i);}function qi(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(l){qf(o,n,i,a,s,"next",l);}function s(l){qf(o,n,i,a,s,"throw",l);}a(void 0);})}}function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function Ha(e,t,r){return o$()?Ha=Reflect.construct.bind():Ha=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&Lo(c,a.prototype),c},Ha.apply(null,arguments)}function a$(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Kc(e){var t=typeof Map=="function"?new Map:void 0;return Kc=function(n){if(n===null||!a$(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i);}function i(){return Ha(n,arguments,qc(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Lo(i,n)},Kc(e)}var s$=/%[sdj%]/g,l$=function(){};typeof process<"u"&&process.env;function Xc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r);}),t}function tr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=o)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return "[Circular]"}break;default:return s}});return a}return e}function c$(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ht(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||c$(t)&&typeof e=="string"&&!e)}function u$(e,t,r){var n=[],i=0,o=e.length;function a(s){n.push.apply(n,s||[]),i++,i===o&&r(n);}e.forEach(function(s){t(s,a);});}function Kf(e,t,r){var n=0,i=e.length;function o(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},lo={integer:function(t){return lo.number(t)&&parseInt(t,10)===t},float:function(t){return lo.number(t)&&!lo.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"&&!lo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Qf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(v$())},hex:function(t){return typeof t=="string"&&!!t.match(Qf.hex)}},p$=function(t,r,n,i,o){if(t.required&&r===void 0){Vm(t,r,n,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?lo[s](r)||i.push(tr(o.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(tr(o.messages.types[s],t.fullField,t.type));},b$=function(t,r,n,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,f=typeof r=="number",g=typeof r=="string",v=Array.isArray(r);if(f?d="number":g?d="string":v&&(d="array"),!d)return !1;v&&(u=r.length),g&&(u=r.replace(c,"_").length),a?u!==t.len&&i.push(tr(o.messages[d].len,t.fullField,t.len)):s&&!l&&ut.max?i.push(tr(o.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(tr(o.messages[d].range,t.fullField,t.min,t.max));},ci="enum",y$=function(t,r,n,i,o){t[ci]=Array.isArray(t[ci])?t[ci]:[],t[ci].indexOf(r)===-1&&i.push(tr(o.messages[ci],t.fullField,t[ci].join(", ")));},w$=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(tr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||i.push(tr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));}}},we={required:Vm,whitespace:m$,type:p$,range:b$,enum:y$,pattern:w$},S$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r,"string")&&!t.required)return n();we.required(t,r,i,a,o,"string"),ht(r,"string")||(we.type(t,r,i,a,o),we.range(t,r,i,a,o),we.pattern(t,r,i,a,o),t.whitespace===!0&&we.whitespace(t,r,i,a,o));}n(a);},C$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();we.required(t,r,i,a,o),r!==void 0&&we.type(t,r,i,a,o);}n(a);},E$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),ht(r)&&!t.required)return n();we.required(t,r,i,a,o),r!==void 0&&(we.type(t,r,i,a,o),we.range(t,r,i,a,o));}n(a);},x$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();we.required(t,r,i,a,o),r!==void 0&&we.type(t,r,i,a,o);}n(a);},$$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();we.required(t,r,i,a,o),ht(r)||we.type(t,r,i,a,o);}n(a);},_$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();we.required(t,r,i,a,o),r!==void 0&&(we.type(t,r,i,a,o),we.range(t,r,i,a,o));}n(a);},O$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();we.required(t,r,i,a,o),r!==void 0&&(we.type(t,r,i,a,o),we.range(t,r,i,a,o));}n(a);},P$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();we.required(t,r,i,a,o,"array"),r!=null&&(we.type(t,r,i,a,o),we.range(t,r,i,a,o));}n(a);},R$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();we.required(t,r,i,a,o),r!==void 0&&we.type(t,r,i,a,o);}n(a);},T$="enum",M$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();we.required(t,r,i,a,o),r!==void 0&&we[T$](t,r,i,a,o);}n(a);},A$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r,"string")&&!t.required)return n();we.required(t,r,i,a,o),ht(r,"string")||we.pattern(t,r,i,a,o);}n(a);},N$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r,"date")&&!t.required)return n();if(we.required(t,r,i,a,o),!ht(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),we.type(t,l,i,a,o),l&&we.range(t,l.getTime(),i,a,o);}}n(a);},k$=function(t,r,n,i,o){var a=[],s=Array.isArray(r)?"array":typeof r;we.required(t,r,i,a,o,s),n(a);},zl=function(t,r,n,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(ht(r,a)&&!t.required)return n();we.required(t,r,i,s,o,a),ht(r,a)||we.type(t,r,i,s,o);}n(s);},I$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();we.required(t,r,i,a,o);}n(a);},po={string:S$,method:C$,number:E$,boolean:x$,regexp:$$,integer:_$,float:O$,array:P$,object:R$,enum:M$,pattern:A$,date:N$,url:zl,hex:zl,email:zl,required:k$,any:I$};function Yc(){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 Zc=Yc(),Qo=function(){function e(r){this.rules=null,this._messages=Zc,this.define(r);}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];i.rules[o]=Array.isArray(a)?a:[a];});},t.messages=function(n){return n&&(this._messages=Zf(Yc(),n)),this._messages},t.validate=function(n,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=n,l=i,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(m){var p=[],b={};function w(_){if(Array.isArray(_)){var y;p=(y=p).concat.apply(y,_);}else p.push(_);}for(var S=0;S3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!on(e,t.slice(0,-1))?e:Gm(e,t,r,n)}function Js(e){return Array.isArray(e)?D$(e):ze(e)==="object"&&e!==null?L$(e):e}function L$(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var r in e)t[r]=Js(e[r]);return t}return e}function D$(e){return e.map(function(t){return Js(t)})}function it(e){return Gc(e)}function Jf(e,t){var r={};return t.forEach(function(n){var i=on(e,n);r=$n(r,n,i);}),r}function bo(e,t){return e&&e.some(function(r){return Km(r,t)})}function eh(e){return ze(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function qm(e,t){var r=Array.isArray(e)?te(e):j({},e);return t&&Object.keys(t).forEach(function(n){var i=r[n],o=t[n],a=eh(i)&&eh(o);r[n]=a?qm(i,o||{}):Js(o);}),r}function yo(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat(te(e.slice(0,r)),[i],te(e.slice(r,t)),te(e.slice(t+1,n))):o<0?[].concat(te(e.slice(0,t)),te(e.slice(t+1,r+1)),[i],te(e.slice(r+1,n))):e}var rh=Qo;function H$(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var nh="CODE_LOGIC_ERROR";function Qc(e,t,r,n,i){return Jc.apply(this,arguments)}function Jc(){return Jc=qi(or().mark(function e(t,r,n,i,o){var a,s,l,c,u,d,f,g,v;return or().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=j({},n),delete a.ruleIndex,rh.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(nh)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new rh(X({},t,[a])),u=yo({},Um,i.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(X({},t,r),j({},i)));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,w){var S=b.message,_=S===nh?u.default:S;return h__namespace.isValidElement(_)?h__namespace.cloneElement(_,{key:"error_".concat(w)}):_}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(b,w){return Qc("".concat(t,".").concat(w),b,l,i,o)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,w){return [].concat(te(b),te(w))},[]));case 23:return g=j(j({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),v=d.map(function(b){return typeof b=="string"?H$(b,g):b}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Jc.apply(this,arguments)}function W$(e,t,r,n,i,o){var a=e.join("."),s=r.map(function(u,d){var f=u.validator,g=j(j({},u),{},{ruleIndex:d});return f&&(g.validator=function(v,m,p){var b=!1,w=function(){for(var y=arguments.length,x=new Array(y),C=0;C0&&arguments[0]!==void 0?arguments[0]:lr;if(i.validatePromise===d){var y;i.validatePromise=null;var x=[],C=[];(y=_.forEach)===null||y===void 0||y.call(_,function(A){var T=A.rule.warningOnly,O=A.errors,k=O===void 0?lr:O;T?C.push.apply(C,te(k)):x.push.apply(x,te(k));}),i.errors=x,i.warnings=C,i.triggerMetaEvent(),i.reRender();}}),S});return i.validatePromise=d,i.dirty=!0,i.errors=lr,i.warnings=lr,i.triggerMetaEvent(),i.reRender(),d},i.isFieldValidating=function(){return !!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){if(i.dirty||i.props.initialValue!==void 0)return !0;var l=i.props.fieldContext,c=l.getInternalHooks(Hn),u=c.getInitialValue;return u(i.getNamePath())!==void 0},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l},i.getOnlyChild=function(l){if(typeof l=="function"){var c=i.getMeta();return j(j({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Fi(l);return u.length!==1||!h__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},i.getValue=function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return on(l||c(!0),u)},i.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.trigger,d=c.validateTrigger,f=c.getValueFromEvent,g=c.normalize,v=c.valuePropName,m=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,w=i.getNamePath(),S=p.getInternalHooks,_=p.getFieldsValue,y=S(Hn),x=y.dispatch,C=i.getValue(),A=m||function(M){return X({},v,M)},T=l[u],O=j(j({},l),A(C));O[u]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var M,E=arguments.length,$=new Array(E),R=0;R=0&&O<=k.length?(u.keys=[].concat(te(u.keys.slice(0,O)),[u.id],te(u.keys.slice(O))),S([].concat(te(k.slice(0,O)),[T],te(k.slice(O))))):(u.keys=[].concat(te(u.keys),[u.id]),S([].concat(te(k),[T]))),u.id+=1;},remove:function(T){var O=y(),k=new Set(Array.isArray(T)?T:[T]);k.size<=0||(u.keys=u.keys.filter(function(M,E){return !k.has(E)}),S(O.filter(function(M,E){return !k.has(E)})));},move:function(T,O){if(T!==O){var k=y();T<0||T>=k.length||O<0||O>=k.length||(u.keys=th(u.keys,T,O),S(th(k,T,O)));}}},C=w||[];return Array.isArray(C)||(C=[]),i(C.map(function(A,T){var O=u.keys[T];return O===void 0&&(u.keys[T]=u.id,O=u.keys[T],u.id+=1),{name:T,key:O,isListField:!0}}),x,p)})))};function K$(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),i(n));});});}):Promise.resolve([])}var Ym="__@field_split__";function Hl(e){return e.map(function(t){return "".concat(ze(t),":").concat(t)}).join(Ym)}var ui=function(){function e(){dr(this,e),this.kvs=new Map;}return fr(e,[{key:"set",value:function(r,n){this.kvs.set(Hl(r),n);}},{key:"get",value:function(r){return this.kvs.get(Hl(r))}},{key:"update",value:function(r,n){var i=this.get(r),o=n(i);o?this.set(r,o):this.delete(r);}},{key:"delete",value:function(r){this.kvs.delete(Hl(r));}},{key:"map",value:function(r){return te(this.kvs.entries()).map(function(n){var i=G(n,2),o=i[0],a=i[1],s=o.split(Ym);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=G(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,o=n.value;return r[i.join(".")]=o,null}),r}}]),e}(),X$=["name"],Y$=fr(function e(t){var r=this;dr(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return {getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(n){return n===Hn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(xr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(n){r.subscribable=n;},this.prevWithoutPreserves=null,this.setInitialValues=function(n,i){if(r.initialValues=n||{},i){var o,a=yo({},n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=$n(a,l,on(n,l));}),r.prevWithoutPreserves=null,r.updateStore(a);}},this.destroyForm=function(){var n=new ui;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0);}),r.prevWithoutPreserves=n;},this.getInitialValue=function(n){var i=on(r.initialValues,n);return n.length?Js(i):i},this.setCallbacks=function(n){r.callbacks=n;},this.setValidateMessages=function(n){r.validateMessages=n;},this.setPreserve=function(n){r.preserve=n;},this.watchList=[],this.registerWatch=function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n});}},this.notifyWatch=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(i,o,n);});}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(n){r.store=n;},this.getFieldEntities=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new ui;return r.getFieldEntities(n).forEach(function(o){var a=o.getNamePath();i.set(a,o);}),i},this.getFieldEntitiesForNamePathList=function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(o){var a=it(o);return i.get(a)||{INVALIDATE_NAME_PATH:it(o)}})},this.getFieldsValue=function(n,i){if(r.warningUnhooked(),n===!0&&!i)return r.store;var o=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),a=[];return o.forEach(function(s){var l,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!n&&(!((l=s.isListField)===null||l===void 0)&&l.call(s))))if(!i)a.push(c);else {var u="getMeta"in s?s.getMeta():null;i(u)&&a.push(c);}}),Jf(r.store,a.map(it))},this.getFieldValue=function(n){r.warningUnhooked();var i=it(n);return on(r.store,i)},this.getFieldsError=function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:it(n[a]),errors:[],warnings:[]}})},this.getFieldError=function(n){r.warningUnhooked();var i=it(n),o=r.getFieldsError([i])[0];return o.errors},this.getFieldWarning=function(n){r.warningUnhooked();var i=it(n),o=r.getFieldsError([i])[0];return o.warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new ui,o=r.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d);}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),g=r.getInitialValue(f);if(g!==void 0)xr(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else {var v=i.get(f);if(v&&v.size>1)xr(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var m=r.getFieldValue(f);(!n.skipExist||m===void 0)&&r.updateStore($n(r.store,f,te(v)[0].value));}}}});},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,te(te(c).map(function(d){return d.entity})));}})):s=o,a(s);},this.resetFields=function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(yo({},r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(it);o.forEach(function(a){var s=r.getInitialValue(a);r.updateStore($n(r.store,a,s));}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(i,o,{type:"reset"}),r.notifyWatch(o);},this.setFields=function(n){r.warningUnhooked();var i=r.store,o=[];n.forEach(function(a){var s=a.name,l=nr(a,X$),c=it(s);o.push(c),"value"in l&&r.updateStore($n(r.store,c,l.value)),r.notifyObservers(i,[c],{type:"setField",data:a});}),r.notifyWatch(o);},this.getFields=function(){var n=r.getFieldEntities(!0),i=n.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=j(j({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i},this.initEntityValue=function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),a=on(r.store,o);a===void 0&&r.updateStore($n(r.store,o,i));}},this.isMergedPreserve=function(n){var i=n!==void 0?n:r.preserve;return i??!0},this.registerField=function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==c&&r.fieldEntities.every(function(d){return !Km(d.getNamePath(),i)})){var u=r.store;r.updateStore($n(u,i,c,!0)),r.notifyObservers(u,[i],{type:"remove"}),r.triggerDependenciesUpdate(u,i);}}r.notifyWatch([i]);}},this.dispatch=function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(n,i,o){if(r.subscribable){var a=j(j({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,i,a);});}else r.forceRootUpdate();},this.triggerDependenciesUpdate=function(n,i){var o=r.getDependencyChildrenFields(i);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(te(o))}),o},this.updateValue=function(n,i){var o=it(n),a=r.store;r.updateStore($n(r.store,o,i)),r.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(a,o),l=r.callbacks.onValuesChange;if(l){var c=Jf(r.store,[o]);l(c,r.getFieldsValue());}r.triggerOnFieldsChange([o].concat(te(s)));},this.setFieldsValue=function(n){r.warningUnhooked();var i=r.store;if(n){var o=yo(r.store,n);r.updateStore(o);}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch();},this.setFieldValue=function(n,i){r.setFields([{name:n,value:i}]);},this.getDependencyChildrenFields=function(n){var i=new Set,o=[],a=new ui;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=it(u);a.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=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(o.push(f),l(f));}});};return s(n),o},this.triggerOnFieldsChange=function(n,i){var o=r.callbacks.onFieldsChange;if(o){var a=r.getFields();if(i){var s=new ui;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=a.filter(function(c){var u=c.name;return bo(n,u)});o(l,a);}},this.validateFields=function(n,i){r.warningUnhooked();var o=!!n,a=o?n.map(it):[],s=[];r.getFieldEntities(!0).forEach(function(u){if(o||a.push(u.getNamePath()),i!=null&&i.recursive&&o){var d=u.getNamePath();d.every(function(v,m){return n[m]===v||n[m]===void 0})&&a.push(d);}if(!(!u.props.rules||!u.props.rules.length)){var f=u.getNamePath();if(!o||bo(a,f)){var g=u.validateRules(j({validateMessages:j(j({},Um),r.validateMessages)},i));s.push(g.then(function(){return {name:f,errors:[],warnings:[]}}).catch(function(v){var m,p=[],b=[];return (m=v.forEach)===null||m===void 0||m.call(v,function(w){var S=w.rule.warningOnly,_=w.errors;S?b.push.apply(b,te(_)):p.push.apply(p,te(_));}),p.length?Promise.reject({name:f,errors:p,warnings:b}):{name:f,errors:p,warnings:b}}));}}});var l=K$(s);r.lastValidatePromise=l,l.catch(function(u){return u}).then(function(u){var d=u.map(function(f){var g=f.name;return g});r.notifyObservers(r.store,d,{type:"validateFinish"}),r.triggerOnFieldsChange(d,u);});var c=l.then(function(){return r.lastValidatePromise===l?Promise.resolve(r.getFieldsValue(a)):Promise.reject([])}).catch(function(u){var d=u.filter(function(f){return f&&f.errors.length});return Promise.reject({values:r.getFieldsValue(a),errorFields:d,outOfDate:r.lastValidatePromise!==l})});return c.catch(function(u){return u}),r.triggerOnFieldsChange(a),c},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n);}catch(o){console.error(o);}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n);});},this.forceRootUpdate=t;});function Zm(e){var t=h__namespace.useRef(),r=h__namespace.useState({}),n=G(r,2),i=n[1];if(!t.current)if(e)t.current=e;else {var o=function(){i({});},a=new Y$(o);t.current=a.getForm();}return [t.current]}var ru=h__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Qm=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,a=h__namespace.useContext(ru),s=h__namespace.useRef({});return h__namespace.createElement(ru.Provider,{value:j(j({},a),{},{validateMessages:j(j({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u);},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=j(j({},s.current),{},X({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=j({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},o)},Z$=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Q$=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,g=f===void 0?"onChange":f,v=t.onValuesChange,m=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,w=nr(t,Z$),S=h__namespace.useContext(ru),_=Zm(a),y=G(_,1),x=y[0],C=x.getInternalHooks(Hn),A=C.useSubscribe,T=C.setInitialValues,O=C.setCallbacks,k=C.setValidateMessages,M=C.setPreserve,E=C.destroyForm;h__namespace.useImperativeHandle(r,function(){return x}),h__namespace.useEffect(function(){return S.registerForm(n,x),function(){S.unregisterForm(n);}},[S,x,n]),k(j(j({},S.validateMessages),d)),O({onValuesChange:v,onFieldsChange:function(W){if(S.triggerFormChange(n,W),m){for(var B=arguments.length,re=new Array(B>1?B-1:0),z=1;z{const{locale:t={},children:r,_ANT_MARK__:n}=e;h__namespace.useEffect(()=>(sh(t&&t.Modal),()=>{sh();}),[t]);const i=h__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h__namespace.createElement(ev.Provider,{value:i},r)},c_=l_,u_="5.4.2",ds=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function xt(e,t){d_(e)&&(e="100%");var r=f_(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 xa(e){return Math.min(1,Math.max(0,e))}function d_(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function f_(e){return typeof e=="string"&&e.indexOf("%")!==-1}function tv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function $a(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Bn(e){return e.length===1?"0"+e:String(e)}function h_(e,t,r){return {r:xt(e,255)*255,g:xt(t,255)*255,b:xt(r,255)*255}}function lh(e,t,r){e=xt(e,255),t=xt(t,255),r=xt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=0,s=(n+i)/2;if(n===i)a=0,o=0;else {var l=n-i;switch(a=s>.5?l/(2-n-i):l/(n+i),n){case e:o=(t-r)/l+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function g_(e,t,r){var n,i,o;if(e=xt(e,360),t=xt(t,100),r=xt(r,100),t===0)i=r,o=r,n=r;else {var a=r<.5?r*(1+t):r+t-r*t,s=2*r-a;n=Bl(s,a,e+1/3),i=Bl(s,a,e),o=Bl(s,a,e-1/3);}return {r:n*255,g:i*255,b:o*255}}function nu(e,t,r){e=xt(e,255),t=xt(t,255),r=xt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=n,s=n-i,l=n===0?0:s/n;if(n===i)o=0;else {switch(n){case e:o=(t-r)/s+(t>16,g:(e&65280)>>8,b:e&255}}var ou={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 mi(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=S_(e)),typeof e=="object"&&(Zr(e.r)&&Zr(e.g)&&Zr(e.b)?(t=h_(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zr(e.h)&&Zr(e.s)&&Zr(e.v)?(n=$a(e.s),i=$a(e.v),t=m_(e.h,n,i),a=!0,s="hsv"):Zr(e.h)&&Zr(e.s)&&Zr(e.l)&&(n=$a(e.s),o=$a(e.l),t=g_(e.h,n,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=tv(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var y_="[-\\+]?\\d+%?",w_="[-\\+]?\\d*\\.\\d+%?",An="(?:".concat(w_,")|(?:").concat(y_,")"),Vl="[\\s|\\(]+(".concat(An,")[,|\\s]+(").concat(An,")[,|\\s]+(").concat(An,")\\s*\\)?"),Ul="[\\s|\\(]+(".concat(An,")[,|\\s]+(").concat(An,")[,|\\s]+(").concat(An,")[,|\\s]+(").concat(An,")\\s*\\)?"),mr={CSS_UNIT:new RegExp(An),rgb:new RegExp("rgb"+Vl),rgba:new RegExp("rgba"+Ul),hsl:new RegExp("hsl"+Vl),hsla:new RegExp("hsla"+Ul),hsv:new RegExp("hsv"+Vl),hsva:new RegExp("hsva"+Ul),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 S_(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(ou[e])e=ou[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var r=mr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=mr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=mr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=mr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=mr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=mr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=mr.hex8.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),a:ch(r[4]),format:t?"name":"hex8"}:(r=mr.hex6.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),format:t?"name":"hex"}:(r=mr.hex4.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),a:ch(r[4]+r[4]),format:t?"name":"hex8"}:(r=mr.hex3.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Zr(e){return !!mr.CSS_UNIT.exec(String(e))}var Tt=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=b_(t)),this.originalInput=t;var i=mi(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.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=i.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(),r,n,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=tv(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=nu(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=nu(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=lh(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=lh(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),iu(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),v_(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),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return "".concat(Math.round(xt(r,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(r){return Math.round(xt(r,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="#"+iu(this.r,this.g,this.b,!1),r=0,n=Object.entries(ou);r=0,o=!r&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||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 r=this.toHsl();return r.l+=t/100,r.l=xa(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=xa(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=xa(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=xa(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return new e(a)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,o=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(new e(n));return o},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 r=this.toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(new e({h:n,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return [this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],o=360/t,a=1;a=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-_a*t:Math.round(e.h)+_a*t:n=r?Math.round(e.h)+_a*t:Math.round(e.h)-_a*t,n<0?n+=360:n>=360&&(n-=360),n}function hh(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-uh*t:t===nv?n=e.s+uh:n=e.s+C_*t,n>1&&(n=1),r&&t===rv&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function gh(e,t,r){var n;return r?n=e.v+E_*t:n=e.v-x_*t,n>1&&(n=1),Number(n.toFixed(2))}function hn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=mi(e),i=rv;i>0;i-=1){var o=dh(n),a=Oa(mi({h:fh(o,i,!0),s:hh(o,i,!0),v:gh(o,i,!0)}));r.push(a);}r.push(Oa(n));for(var s=1;s<=nv;s+=1){var l=dh(n),c=Oa(mi({h:fh(l,s),s:hh(l,s),v:gh(l,s)}));r.push(c);}return t.theme==="dark"?$_.map(function(u){var d=u.index,f=u.opacity,g=Oa(__(mi(t.backgroundColor||"#141414"),mi(r[d]),f*100));return g}):r}var Gl={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"},ql={},Kl={};Object.keys(Gl).forEach(function(e){ql[e]=hn(Gl[e]),ql[e].primary=ql[e][5],Kl[e]=hn(Gl[e],{theme:"dark",backgroundColor:"#141414"}),Kl[e].primary=Kl[e][5];});const O_=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},iv=O_;function P_(e){const{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const hd={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"},el=Object.assign(Object.assign({},hd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function ov(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=r(l),f=r(i),g=r(o),v=r(a),m=r(s),p=n(c,u);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:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new Tt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const R_=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}},T_=R_;function M_(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},T_(n))}const Qr=(e,t)=>new Tt(e).setAlpha(t).toRgbString(),ro=(e,t)=>new Tt(e).darken(t).toHexString(),A_=e=>{const t=hn(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]}},N_=(e,t)=>{const r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:Qr(n,.88),colorTextSecondary:Qr(n,.65),colorTextTertiary:Qr(n,.45),colorTextQuaternary:Qr(n,.25),colorFill:Qr(n,.15),colorFillSecondary:Qr(n,.06),colorFillTertiary:Qr(n,.04),colorFillQuaternary:Qr(n,.02),colorBgLayout:ro(r,4),colorBgContainer:ro(r,0),colorBgElevated:ro(r,0),colorBgSpotlight:Qr(n,.85),colorBorder:ro(r,15),colorBorderSecondary:ro(r,6)}};function k_(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,o=e*Math.pow(2.71828,i/5),a=n>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return {size:r,lineHeight:n/r}})}const I_=e=>{const t=k_(e),r=t.map(i=>i.size),n=t.map(i=>i.lineHeight);return {fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},av=I_;function tl(e){const t=Object.keys(hd).map(r=>{const n=hn(e[r]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${r}-${a+1}`]=n[a],i[`${r}${a+1}`]=n[a],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),ov(e,{generateColorPalettes:A_,generateNeutralColorPalettes:N_})),av(e.fontSize)),P_(e)),iv(e)),M_(e))}function Xl(e){return e>=0&&e<=255}function Pa(e,t){const{r,g:n,b:i,a:o}=new Tt(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new Tt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-a*(1-c))/c),d=Math.round((n-s*(1-c))/c),f=Math.round((i-l*(1-c))/c);if(Xl(u)&&Xl(d)&&Xl(f))return new Tt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Tt({r,g:n,b:i,a:1}).toRgbString()}var F_=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{delete n[f];});const i=Object.assign(Object.assign({},r),n),o=480,a=576,s=768,l=992,c=1200,u=1600;return Object.assign(Object.assign(Object.assign({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Pa(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Pa(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Pa(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Pa(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new Tt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Tt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Tt("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)"}),n)}const sv="anticon",D_=(e,t)=>t||(e?`ant-${e}`:"ant"),st=h__namespace.createContext({getPrefixCls:D_,iconPrefixCls:sv}),j_=(e,t,r,n,i)=>{const o=e/2,a=0,s=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-t*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*o-u,g=d,v=2*o-l,m=c,p=2*o-a,b=s,w=o*Math.sqrt(2)+r*(Math.sqrt(2)-2);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:n,clipPath:`path('M ${a} ${s} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${g} L ${v} ${m} A ${r} ${r} 0 0 0 ${p} ${b} Z')`,content:'""'},"&::after":{content:'""',position:"absolute",width:w,height:w,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"}}},$r=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),lv=()=>({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"}}),z_=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),H_=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),W_=(e,t)=>{const{fontFamily:r,fontSize:n}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return {[i]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},rl=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),B_=e=>({"&:focus-visible":Object.assign({},rl(e))});function yn(e,t,r,n){return i=>{const[o,a,s]=nl(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=h.useContext(st),d=l(),f={theme:o,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return Uc(Object.assign(Object.assign({},f),{path:["Shared",d]}),()=>[{"&":H_(a)}]),[Uc(Object.assign(Object.assign({},f),{path:[e,i,c]}),()=>{const{token:g,flush:v}=U_(a),m=typeof r=="function"?r(g):r,p=Object.assign(Object.assign({},m),a[e]),b=`.${i}`,w=Ht(g,{componentCls:b,prefixCls:i,iconCls:`.${c}`,antCls:`.${d}`},p),S=t(w,{hashId:s,prefixCls:i,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:a[e]});return v(e,p),[(n==null?void 0:n.resetStyle)===!1?null:W_(a,i),S]}),s]}}const cv=typeof CSSINJS_STATISTIC<"u";let au=!0;function Ht(){for(var e=arguments.length,t=new Array(e),r=0;r{Object.keys(i).forEach(a=>{Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:()=>i[a]});});}),au=!0,n}function V_(){}function U_(e){let t,r=e,n=V_;return cv&&(t=new Set,r=new Proxy(e,{get(i,o){return au&&t.add(o),i[o]}}),n=(i,o)=>{Array.from(t);}),{token:r,keys:t,flush:n}}function uv(e,t){return ds.reduce((r,n)=>{const i=e[`${n}1`],o=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const G_=Bm(tl),fs={token:el,hashed:!0},dv=h.createContext(fs);function nl(){const{token:e,hashed:t,theme:r,components:n}=h.useContext(dv),i=`${u_}-${t||""}`,o=r||G_,[a,s]=Gx(o,[el,e],{salt:i,override:Object.assign({override:e},n),formatToken:L_});return [o,a,t?s:""]}const q_=`-ant-${Date.now()}-${Math.random()}`;function K_(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new Tt(a),c=hn(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){i(t.primaryColor,"primary");const a=new Tt(t.primaryColor),s=hn(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c;}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new Tt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setAlpha(c.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2));}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(` `)} } `.trim()}function X_(e,t){const r=K_(e,t);ir()&&Di(r,`${q_}-dynamic-theme`);}const su=h__namespace.createContext(!1),Y_=e=>{let{children:t,disabled:r}=e;const n=h__namespace.useContext(su);return h__namespace.createElement(su.Provider,{value:r??n},t)},ea=su,lu=h__namespace.createContext(void 0),Z_=e=>{let{children:t,size:r}=e;const n=h__namespace.useContext(lu);return h__namespace.createElement(lu.Provider,{value:r||n},t)},Ki=lu;function Q_(){const e=h.useContext(ea),t=h.useContext(Ki);return {componentDisabled:e,componentSize:t}}function J_(e,t){const r=e||{},n=r.inherit===!1||!t?fs:t;return id(()=>{if(!e)return t;const o=Object.assign({},n.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({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(o,a)=>o.some((s,l)=>{const c=a[l];return !Nm(s,c,!0)}))}const eO=(e,t)=>{const[r,n]=nl();return Uc({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},lv()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},tO=eO;var rO=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(fv=t),n&&X_(oO(),n);},sO=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,form:i,locale:o,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,legacyLocale:d,parentContext:f,iconPrefixCls:g,theme:v,componentDisabled:m}=e,p=h__namespace.useCallback((E,$)=>{const{prefixCls:R}=e;if($)return $;const I=R||f.getPrefixCls("");return E?`${I}-${E}`:I},[f.getPrefixCls,e.prefixCls]),b=g||f.iconPrefixCls||sv,w=b!==f.iconPrefixCls,S=r||f.csp,_=tO(b,S),y=J_(v,f.theme),x={csp:S,autoInsertSpaceInButton:n,locale:o||d,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,getPrefixCls:p,iconPrefixCls:b,theme:y},C=Object.assign({},f);Object.keys(x).forEach(E=>{x[E]!==void 0&&(C[E]=x[E]);}),nO.forEach(E=>{const $=e[E];$&&(C[E]=$);});const A=id(()=>C,C,(E,$)=>{const R=Object.keys(E),I=Object.keys($);return R.length!==I.length||R.some(N=>E[N]!==$[N])}),T=h__namespace.useMemo(()=>({prefixCls:b,csp:S}),[b,S]);let O=w?_(t):t;const k=h__namespace.useMemo(()=>{var E,$,R;return yo({},((E=fd.Form)===null||E===void 0?void 0:E.defaultValidateMessages)||{},((R=($=A.locale)===null||$===void 0?void 0:$.Form)===null||R===void 0?void 0:R.defaultValidateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[A,i==null?void 0:i.validateMessages]);Object.keys(k).length>0&&(O=h__namespace.createElement(Qm,{validateMessages:k},t)),o&&(O=h__namespace.createElement(c_,{locale:o,_ANT_MARK__:s_},O)),(b||S)&&(O=h__namespace.createElement(ud.Provider,{value:T},O)),a&&(O=h__namespace.createElement(Z_,{size:a},O));const M=h__namespace.useMemo(()=>{const E=y||{},{algorithm:$,token:R}=E,I=rO(E,["algorithm","token"]),N=$&&(!Array.isArray($)||$.length>0)?Bm($):void 0;return Object.assign(Object.assign({},I),{theme:N,token:Object.assign(Object.assign({},el),R)})},[y]);return v&&(O=h__namespace.createElement(dv.Provider,{value:M},O)),m!==void 0&&(O=h__namespace.createElement(Y_,{disabled:m},O)),h__namespace.createElement(st.Provider,{value:A},O)},Xi=e=>{const t=h__namespace.useContext(st),r=h__namespace.useContext(ev);return h__namespace.createElement(sO,Object.assign({parentContext:t,legacyLocale:r},e))};Xi.ConfigContext=st;Xi.SizeContext=Ki;Xi.config=aO;Xi.useConfig=Q_;Object.defineProperty(Xi,"SizeContext",{get:()=>Ki});const hv=Xi;var gv=function(t){return +setTimeout(t,16)},mv=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(gv=function(t){return window.requestAnimationFrame(t)},mv=function(t){return window.cancelAnimationFrame(t)});var mh=0,gd=new Map;function vv(e){gd.delete(e);}var gn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;mh+=1;var n=mh;function i(o){if(o===0)vv(n),t();else {var a=gv(function(){i(o-1);});gd.set(n,a);}}return i(r),n};gn.cancel=function(e){var t=gd.get(e);return vv(t),mv(t)};function lO(e,t){xr(e,"[@ant-design/icons] ".concat(t));}function vh(e){return ze(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ze(e.icon)==="object"||typeof e.icon=="function")}function ph(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:t[r]=n;}return t},{})}function cu(e,t,r){return r?h.createElement(e.tag,j(j({key:t},ph(e.attrs)),r),(e.children||[]).map(function(n,i){return cu(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):h.createElement(e.tag,j({key:t},ph(e.attrs)),(e.children||[]).map(function(n,i){return cu(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function pv(e){return hn(e)[0]}function bv(e){return e?Array.isArray(e)?e:[e]:[]}var cO=` .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); } } `,uO=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cO,r=h.useContext(ud),n=r.csp,i=r.prefixCls,o=t;i&&(o=o.replace(/anticon/g,i)),h.useEffect(function(){Di(o,"@ant-design-icons",{prepend:!0,csp:n});},[]);},dO=["icon","className","onClick","style","primaryColor","secondaryColor"],wo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function fO(e){var t=e.primaryColor,r=e.secondaryColor;wo.primaryColor=t,wo.secondaryColor=r||pv(t),wo.calculated=!!r;}function hO(){return j({},wo)}var il=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=nr(t,dO),c=wo;if(a&&(c={primaryColor:a,secondaryColor:s||pv(a)}),uO(),lO(vh(r),"icon should be icon definiton, but got ".concat(r)),!vh(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=j(j({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),cu(u.icon,"svg-".concat(u.name),j({className:n,onClick:i,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};il.displayName="IconReact";il.getTwoToneColors=hO;il.setTwoToneColors=fO;const md=il;function yv(e){var t=bv(e),r=G(t,2),n=r[0],i=r[1];return md.setTwoToneColors({primaryColor:n,secondaryColor:i})}function gO(){var e=md.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var mO=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yv("#1890ff");var ol=h__namespace.forwardRef(function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=nr(e,mO),d=h__namespace.useContext(ud),f=d.prefixCls,g=f===void 0?"anticon":f,v=d.rootClassName,m=q(v,g,(r={},X(r,"".concat(g,"-").concat(i.name),!!i.name),X(r,"".concat(g,"-spin"),!!o||i.name==="loading"),r),n),p=s;p===void 0&&l&&(p=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=bv(c),S=G(w,2),_=S[0],y=S[1];return h__namespace.createElement("span",j(j({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:p,onClick:l,className:m}),h__namespace.createElement(md,{icon:i,primaryColor:_,secondaryColor:y,style:b}))});ol.displayName="AntdIcon";ol.getTwoToneColor=gO;ol.setTwoToneColor=yv;const al=ol;var vO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const pO=vO;var wv=function(t,r){return h__namespace.createElement(al,j(j({},t),{},{ref:r,icon:pO}))};wv.displayName="CloseOutlined";const bO=h__namespace.forwardRef(wv);function bh(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function yO(e,t){var r={animationend:bh("Animation","AnimationEnd"),transitionend:bh("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var wO=yO(ir(),typeof window<"u"?window:{}),Sv={};if(ir()){var SO=document.createElement("div");Sv=SO.style;}var Ra={};function Cv(e){if(Ra[e])return Ra[e];var t=wO[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=gn(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1);});e.current=o;}return h__namespace.useEffect(function(){return function(){t();}},[]),[r,t]};var _v=ir()?h.useLayoutEffect:h.useEffect,Eh=[Jr,pi,bi,vd],Ov=!1,EO=!0;function Pv(e){return e===bi||e===vd}const xO=function(e,t){var r=xi(Ch),n=G(r,2),i=n[0],o=n[1],a=CO(),s=G(a,2),l=s[0],c=s[1];function u(){o(Jr,!0);}return _v(function(){if(i!==Ch&&i!==vd){var d=Eh.indexOf(i),f=Eh[d+1],g=t(i);g===Ov?o(f,!0):l(function(v){function m(){v.isCanceled()||o(f,!0);}g===!0?m():Promise.resolve(g).then(m);});}},[e,i]),h__namespace.useEffect(function(){return function(){c();}},[]),[u,i]},$O=function(e){var t=h.useRef(),r=h.useRef(e);r.current=e;var n=h__namespace.useCallback(function(a){r.current(a);},[]);function i(a){a&&(a.removeEventListener(wh,n),a.removeEventListener(yh,n));}function o(a){t.current&&t.current!==a&&i(t.current),a&&a!==t.current&&(a.addEventListener(wh,n),a.addEventListener(yh,n),t.current=a);}return h__namespace.useEffect(function(){return function(){i(t.current);}},[]),[o,i]};function _O(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,g=n.onEnterPrepare,v=n.onLeavePrepare,m=n.onAppearStart,p=n.onEnterStart,b=n.onLeaveStart,w=n.onAppearActive,S=n.onEnterActive,_=n.onLeaveActive,y=n.onAppearEnd,x=n.onEnterEnd,C=n.onLeaveEnd,A=n.onVisibleChanged,T=xi(),O=G(T,2),k=O[0],M=O[1],E=xi(vi),$=G(E,2),R=$[0],I=$[1],N=xi(null),L=G(N,2),D=L[0],H=L[1],V=h.useRef(!1),W=h.useRef(null);function B(){return r()}var re=h.useRef(!1);function z(oe){var Q=B();if(!(oe&&!oe.deadline&&oe.target!==Q)){var ae=re.current,Se;R===Ta&&ae?Se=y==null?void 0:y(Q,oe):R===Ma&&ae?Se=x==null?void 0:x(Q,oe):R===Aa&&ae&&(Se=C==null?void 0:C(Q,oe)),R!==vi&&ae&&Se!==!1&&(I(vi,!0),H(null,!0));}}var le=$O(z),ie=G(le,1),me=ie[0],ee=h__namespace.useMemo(function(){var oe,Q,ae;switch(R){case Ta:return oe={},X(oe,Jr,f),X(oe,pi,m),X(oe,bi,w),oe;case Ma:return Q={},X(Q,Jr,g),X(Q,pi,p),X(Q,bi,S),Q;case Aa:return ae={},X(ae,Jr,v),X(ae,pi,b),X(ae,bi,_),ae;default:return {}}},[R]),pe=xO(R,function(oe){if(oe===Jr){var Q=ee[Jr];return Q?Q(B()):Ov}if(ve in ee){var ae;H(((ae=ee[ve])===null||ae===void 0?void 0:ae.call(ee,B(),null))||null);}return ve===bi&&(me(B()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){z({deadline:!0});},u))),EO}),Pe=G(pe,2),De=Pe[0],ve=Pe[1],xe=Pv(ve);re.current=xe,_v(function(){M(t);var oe=V.current;if(V.current=!0,!!e){var Q;!oe&&t&&s&&(Q=Ta),oe&&t&&o&&(Q=Ma),(oe&&!t&&c||!oe&&d&&!t&&c)&&(Q=Aa),Q&&(I(Q),De());}},[t]),h.useEffect(function(){(R===Ta&&!s||R===Ma&&!o||R===Aa&&!c)&&I(vi);},[s,o,c]),h.useEffect(function(){return function(){V.current=!1,clearTimeout(W.current);}},[]);var Me=h__namespace.useRef(!1);h.useEffect(function(){k&&(Me.current=!0),k!==void 0&&R===vi&&((Me.current||k)&&(A==null||A(k)),Me.current=!0);},[k,R]);var He=D;return ee[Jr]&&ve===pi&&(He=j({transition:"none"},He)),[R,ve,He,k??t]}var OO=function(e){Xs(r,e);var t=Ys(r);function r(){return dr(this,r),t.apply(this,arguments)}return fr(r,[{key:"render",value:function(){return this.props.children}}]),r}(h__namespace.Component);function PO(e){var t=e;ze(e)==="object"&&(t=e.transitionSupport);function r(i){return !!(i.motionName&&t)}var n=h__namespace.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,f=i.motionName,g=i.leavedClassName,v=i.eventProps,m=r(i),p=h.useRef(),b=h.useRef();function w(){try{return p.current instanceof HTMLElement?p.current:jc(b.current)}catch{return null}}var S=_O(m,s,w,i),_=G(S,4),y=_[0],x=_[1],C=_[2],A=_[3],T=h__namespace.useRef(A);A&&(T.current=!0);var O=h__namespace.useCallback(function(N){p.current=N,od(o,N);},[o]),k,M=j(j({},v),{},{visible:s});if(!d)k=null;else if(y===vi||!r(i))A?k=d(j({},M),O):!c&&T.current&&g?k=d(j(j({},M),{},{className:g}),O):u||!c&&!g?k=d(j(j({},M),{},{style:{display:"none"}}),O):k=null;else {var E,$;x===Jr?$="prepare":Pv(x)?$="active":x===pi&&($="start"),k=d(j(j({},M),{},{className:q(Sh(f,y),(E={},X(E,Sh(f,"".concat(y,"-").concat($)),$),X(E,f,typeof f=="string"),E)),style:C}),O);}if(h__namespace.isValidElement(k)&&Zo(k)){var R=k,I=R.ref;I||(k=h__namespace.cloneElement(k,{ref:O}));}return h__namespace.createElement(OO,{ref:b},k)});return n.displayName="CSSMotion",n}const ta=PO($v);var uu="add",du="keep",fu="remove",Yl="removed";function RO(e){var t;return e&&ze(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function hu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(RO)}function TO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,o=hu(e),a=hu(t);o.forEach(function(c){for(var u=!1,d=n;d1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==fu}),r.forEach(function(u){u.key===c&&(u.status=du);});}),r}var MO=["component","children","onVisibleChanged","onAllRemoved"],AO=["status"],NO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function kO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ta,r=function(n){Xs(o,n);var i=Ys(o);function o(){var a;dr(this,o);for(var s=arguments.length,l=new Array(s),c=0;c((r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&!r.startsWith("data-__")&&(t[r]=e[r]),t),{})}const{isValidElement:pd}=h__namespace;function Rv(e){return e&&pd(e)&&e.type===h__namespace.Fragment}function FO(e,t,r){return pd(e)?h__namespace.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function zi(e,t){return FO(e,e,t)}function en(e){var t=h__namespace.useRef();t.current=e;var r=h__namespace.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a=Y.F1&&r<=Y.F12)return !1;switch(r){case Y.ALT:case Y.CAPS_LOCK:case Y.CONTEXT_MENU:case Y.CTRL:case Y.DOWN:case Y.END:case Y.ESC:case Y.HOME:case Y.INSERT:case Y.LEFT:case Y.MAC_FF_META:case Y.META:case Y.NUMLOCK:case Y.NUM_CENTER:case Y.PAGE_DOWN:case Y.PAGE_UP:case Y.PAUSE:case Y.PRINT_SCREEN:case Y.RIGHT:case Y.SHIFT:case Y.UP:case Y.WIN_KEY:case Y.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=Y.ZERO&&t<=Y.NINE||t>=Y.NUM_ZERO&&t<=Y.NUM_MULTIPLY||t>=Y.A&&t<=Y.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case Y.SPACE:case Y.QUESTION_MARK:case Y.NUM_PLUS:case Y.NUM_MINUS:case Y.NUM_PERIOD:case Y.NUM_DIVISION:case Y.SEMICOLON:case Y.DASH:case Y.EQUALS:case Y.COMMA:case Y.PERIOD:case Y.SLASH:case Y.APOSTROPHE:case Y.SINGLE_QUOTE:case Y.OPEN_SQUARE_BRACKET:case Y.BACKSLASH:case Y.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},LO={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 DO=LO;var Tv=function(t,r){return h__namespace.createElement(al,j(j({},t),{},{ref:r,icon:DO}))};Tv.displayName="LoadingOutlined";const xh=h__namespace.forwardRef(Tv);var ra=j({},ug__namespace),jO=ra.version,zO=ra.render,HO=ra.unmountComponentAtNode,sl;try{var WO=Number((jO||"").split(".")[0]);WO>=18&&(sl=ra.createRoot);}catch{}function $h(e){var t=ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ze(t)==="object"&&(t.usingClientEntryPoint=e);}var hs="__rc_react_root__";function BO(e,t){$h(!0);var r=t[hs]||sl(t);$h(!1),r.render(e),t[hs]=r;}function VO(e,t){zO(e,t);}function UO(e,t){if(sl){BO(e,t);return}VO(e,t);}function GO(e){return gu.apply(this,arguments)}function gu(){return gu=qi(or().mark(function e(t){return or().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[hs])===null||i===void 0||i.unmount(),delete t[hs];}));case 1:case"end":return n.stop()}},e)})),gu.apply(this,arguments)}function qO(e){HO(e);}function KO(e){return mu.apply(this,arguments)}function mu(){return mu=qi(or().mark(function e(t){return or().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(sl===void 0){n.next=2;break}return n.abrupt("return",GO(t));case 2:qO(t);case 3:case"end":return n.stop()}},e)})),mu.apply(this,arguments)}const Mv=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return !0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return !0}}return !1},XO=e=>{const{componentCls:t,colorPrimary:r}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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}}}}},YO=yn("Wave",e=>[XO(e)]);function ZO(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 Zl(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&ZO(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function QO(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Zl(t)?t:Zl(r)?r:Zl(n)?n:null}function Ql(e){return Number.isNaN(e)?0:e}const JO=e=>{const{className:t,target:r}=e,n=h__namespace.useRef(null),[i,o]=h__namespace.useState(null),[a,s]=h__namespace.useState([]),[l,c]=h__namespace.useState(0),[u,d]=h__namespace.useState(0),[f,g]=h__namespace.useState(0),[v,m]=h__namespace.useState(0),[p,b]=h__namespace.useState(!1),w={left:l,top:u,width:f,height:v,borderRadius:a.map(_=>`${_}px`).join(" ")};i&&(w["--wave-color"]=i);function S(){const _=getComputedStyle(r);o(QO(r));const y=_.position==="static",{borderLeftWidth:x,borderTopWidth:C}=_;c(y?r.offsetLeft:Ql(-parseFloat(x))),d(y?r.offsetTop:Ql(-parseFloat(C))),g(r.offsetWidth),m(r.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:T,borderBottomLeftRadius:O,borderBottomRightRadius:k}=_;s([A,T,k,O].map(M=>Ql(parseFloat(M))));}return h__namespace.useEffect(()=>{if(r){const _=gn(()=>{S(),b(!0);});let y;return typeof ResizeObserver<"u"&&(y=new ResizeObserver(S),y.observe(r)),()=>{gn.cancel(_),y==null||y.disconnect();}}},[]),p?h__namespace.createElement(ta,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,y)=>{var x;if(y.deadline||y.propertyName==="opacity"){const C=(x=n.current)===null||x===void 0?void 0:x.parentElement;KO(C).then(()=>{var A;(A=C.parentElement)===null||A===void 0||A.removeChild(C);});}return !1}},_=>{let{className:y}=_;return h__namespace.createElement("div",{ref:n,className:q(t,y),style:w})}):null};function eP(e,t){const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),UO(h__namespace.createElement(JO,{target:e,className:t}),r);}function tP(e,t){function r(){const n=e.current;eP(n,t);}return r}const rP=e=>{const{children:t,disabled:r}=e,{getPrefixCls:n}=h.useContext(st),i=h.useRef(null),o=n("wave"),[,a]=YO(o),s=tP(i,q(o,a));if(h.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||r)return;const u=d=>{d.target.tagName==="INPUT"||!Mv(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",u,!0),()=>{c.removeEventListener("click",u,!0);}},[r]),!h.isValidElement(t))return t??null;const l=Zo(t)?ti(t.ref,i):i;return zi(t,{ref:l})},Av=rP,nP=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},iP=nP,oP=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"}}}},Nv=yn("Space",e=>[oP(e),iP(e)],()=>({}),{resetStyle:!1});var kv=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const r=h__namespace.useContext(ll),n=h__namespace.useMemo(()=>{if(!r)return "";const{compactDirection:i,isFirstItem:o,isLastItem:a}=r,s=i==="vertical"?"-vertical-":"-";return q({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return {compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},_h=e=>{let{children:t}=e;return h__namespace.createElement(ll.Provider,{value:null},t)},aP=e=>{var{children:t}=e,r=kv(e,["children"]);return h__namespace.createElement(ll.Provider,{value:r},t)},sP=e=>{const{getPrefixCls:t,direction:r}=h__namespace.useContext(st),{size:n="middle",direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=kv(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=t("space-compact",a),[f,g]=Nv(d),v=q(d,g,{[`${d}-rtl`]:r==="rtl",[`${d}-block`]:o,[`${d}-vertical`]:i==="vertical"},s,l),m=h__namespace.useContext(ll),p=Fi(c),b=h__namespace.useMemo(()=>p.map((w,S)=>{const _=w&&w.key||`${d}-item-${S}`;return h__namespace.createElement(aP,{key:_,compactSize:n,compactDirection:i,isFirstItem:S===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:S===p.length-1&&(!m||(m==null?void 0:m.isLastItem))},w)}),[n,p,m]);return p.length===0?null:f(h__namespace.createElement("div",Object.assign({className:v},u),b))},lP=sP,Jl=()=>({width:0,opacity:0,transform:"scale(0)"}),ec=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),cP=e=>{let{prefixCls:t,loading:r,existIcon:n}=e;const i=!!r;return n?h.createElement("span",{className:`${t}-loading-icon`},h.createElement(xh,null)):h.createElement(ta,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Jl,onAppearActive:ec,onEnterStart:Jl,onEnterActive:ec,onLeaveStart:ec,onLeaveActive:Jl},(o,a)=>{let{className:s,style:l}=o;return h.createElement("span",{className:`${t}-loading-icon`,style:l,ref:a},h.createElement(xh,{className:s}))})},uP=cP;var dP=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:r}=h__namespace.useContext(st),{prefixCls:n,size:i,className:o}=e,a=dP(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=nl();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=q(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},o,l);return h__namespace.createElement(Fv.Provider,{value:i},h__namespace.createElement("div",Object.assign({},a,{className:u})))},hP=fP,Oh=/^[\u4e00-\u9fa5]{2}$/,vu=Oh.test.bind(Oh);function gP(e){return typeof e=="string"}function tc(e){return e==="text"||e==="link"}function mP(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&gP(e.type)&&vu(e.props.children)?zi(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?vu(e)?h.createElement("span",null,e.split("").join(r)):h.createElement("span",null,e):Rv(e)?h.createElement("span",null,e):e}function vP(e,t){let r=!1;const n=[];return h.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(r&&a){const s=n.length-1,l=n[s];n[s]=`${l}${i}`;}else n.push(i);r=a;}),h.Children.map(n,i=>mP(i,t))}const Ph=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),pP=e=>{const{componentCls:t,fontSize:r,lineWidth:n,colorPrimaryHover:i,colorErrorHover:o}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, &:focus, &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},Ph(`${t}-primary`,i),Ph(`${t}-danger`,o)]}},bP=pP;function yP(e,t,r){const{focusElCls:n,focus:i,borderElCls:o}=r,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function wP(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Lv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return {[n]:Object.assign(Object.assign({},yP(e,n,t)),wP(r,n,t))}}function SP(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function CP(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 EP(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},SP(e,t)),CP(e.componentCls,t))}}const xP=e=>{const{componentCls:t,iconCls:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},B_(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},mn=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),$P=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),_P=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),pu=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),gs=(e,t,r,n,i,o,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},mn(Object.assign({backgroundColor:"transparent"},o),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),bd=e=>({"&:disabled":Object.assign({},pu(e))}),Dv=e=>Object.assign({},bd(e)),ms=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),jv=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dv(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),mn({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),gs(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},mn({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gs(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),bd(e))}),OP=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dv(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),mn({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),gs(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},mn({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),gs(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bd(e))}),PP=e=>Object.assign(Object.assign({},jv(e)),{borderStyle:"dashed"}),RP=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},mn({color:e.colorLinkHover},{color:e.colorLinkActive})),ms(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},mn({color:e.colorErrorHover},{color:e.colorErrorActive})),ms(e))}),TP=e=>Object.assign(Object.assign(Object.assign({},mn({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),ms(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ms(e)),mn({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),MP=e=>Object.assign(Object.assign({},pu(e)),{[`&${e.componentCls}:hover`]:Object.assign({},pu(e))}),AP=e=>{const{componentCls:t}=e;return {[`${t}-default`]:jv(e),[`${t}-primary`]:OP(e),[`${t}-dashed`]:PP(e),[`${t}-link`]:RP(e),[`${t}-text`]:TP(e),[`${t}-disabled`]:MP(e)}},yd=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,iconCls:n,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c}=e,u=Math.max(0,(i-o*a)/2-s),d=c-s,f=`${r}-icon-only`;return [{[`${r}${t}`]:{fontSize:o,height:i,padding:`${u}px ${d}px`,borderRadius:l,[`&${f}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${r}-loading-icon > ${n}`]:{marginInlineEnd:e.marginXS}}},{[`${r}${r}-circle${t}`]:$P(e)},{[`${r}${r}-round${t}`]:_P(e)}]},NP=e=>yd(e),kP=e=>{const t=Ht(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return yd(t,`${e.componentCls}-sm`)},IP=e=>{const t=Ht(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return yd(t,`${e.componentCls}-lg`)},FP=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},LP=yn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=Ht(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r});return [xP(n),kP(n),NP(n),IP(n),FP(n),AP(n),bP(n),Lv(e),EP(e)]});var DP=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{loading:r=!1,prefixCls:n,type:i="default",danger:o,shape:a="default",size:s,disabled:l,className:c,rootClassName:u,children:d,icon:f,ghost:g=!1,block:v=!1,htmlType:m="button"}=e,p=DP(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:b,autoInsertSpaceInButton:w,direction:S}=h__namespace.useContext(st),_=b("btn",n),[y,x]=LP(_),C=h__namespace.useContext(Ki),A=h__namespace.useContext(ea),T=l??A,O=h__namespace.useContext(Fv),k=h__namespace.useMemo(()=>jP(r),[r]),[M,E]=h__namespace.useState(k.loading),[$,R]=h__namespace.useState(!1),I=t||h__namespace.createRef(),N=()=>h__namespace.Children.count(d)===1&&!f&&!tc(i),L=()=>{if(!I||!I.current||w===!1)return;const ve=I.current.textContent;N()&&vu(ve)?$||R(!0):$&&R(!1);};h__namespace.useEffect(()=>{let ve=null;k.delay>0?ve=window.setTimeout(()=>{ve=null,E(!0);},k.delay):E(k.loading);function xe(){ve&&(window.clearTimeout(ve),ve=null);}return xe},[k]),h__namespace.useEffect(L,[I]);const D=ve=>{const{onClick:xe}=e;if(M||T){ve.preventDefault();return}xe==null||xe(ve);},H=w!==!1,{compactSize:V,compactItemClassnames:W}=Iv(_,S),B={large:"lg",small:"sm",middle:void 0},re=V||O||s||C,z=re&&B[re]||"",le=M?"loading":f,ie=Mm(p,["navigate"]),me=ie.href!==void 0&&T,ee=q(_,x,{[`${_}-${a}`]:a!=="default"&&a,[`${_}-${i}`]:i,[`${_}-${z}`]:z,[`${_}-icon-only`]:!d&&d!==0&&!!le,[`${_}-background-ghost`]:g&&!tc(i),[`${_}-loading`]:M,[`${_}-two-chinese-chars`]:$&&H&&!M,[`${_}-block`]:v,[`${_}-dangerous`]:!!o,[`${_}-rtl`]:S==="rtl",[`${_}-disabled`]:me},W,c,u),pe=f&&!M?f:h__namespace.createElement(uP,{existIcon:!!f,prefixCls:_,loading:!!M}),Pe=d||d===0?vP(d,N()&&H):null;if(ie.href!==void 0)return y(h__namespace.createElement("a",Object.assign({},ie,{className:ee,onClick:D,ref:I}),pe,Pe));let De=h__namespace.createElement("button",Object.assign({},p,{type:m,className:ee,onClick:D,disabled:T,ref:I}),pe,Pe);return tc(i)||(De=h__namespace.createElement(Av,{disabled:!!M},De)),y(De)},wd=h__namespace.forwardRef(zP);wd.Group=hP;wd.__ANT_BUTTON=!0;const $i=wd,HP=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var zv=h__namespace.createContext(null),kt=ir()?h__namespace.useLayoutEffect:h__namespace.useEffect,So=function(t,r){var n=h__namespace.useRef(!0);kt(function(){if(!n.current)return t()},r),kt(function(){return n.current=!1,function(){n.current=!0;}},[]);},Rh=[];function WP(e,t){var r=h__namespace.useState(function(){if(!ir())return null;var v=document.createElement("div");return v}),n=G(r,1),i=n[0],o=h__namespace.useRef(!1),a=h__namespace.useContext(zv),s=h__namespace.useState(Rh),l=G(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(v){u(function(m){var p=[v].concat(te(m));return p});});function f(){i.parentElement||document.body.appendChild(i),o.current=!0;}function g(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1;}return kt(function(){return e?a?a(f):f():g(),g},[e]),kt(function(){c.length&&(c.forEach(function(v){return v()}),u(Rh));},[c]),[i,d]}var rc;function BP(e){if(typeof document>"u")return 0;if(e||rc===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var r=document.createElement("div"),n=r.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var i=t.offsetWidth;r.style.overflow="scroll";var o=t.offsetWidth;i===o&&(o=r.clientWidth),document.body.removeChild(r),rc=i-o;}return rc}function VP(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var UP="rc-util-locker-".concat(Date.now()),Th=0;function GP(e){var t=!!e,r=h__namespace.useState(function(){return Th+=1,"".concat(UP,"_").concat(Th)}),n=G(r,1),i=n[0];kt(function(){if(t){var o=BP(),a=VP();Di(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` }`),i);}else cs(i);return function(){cs(i);}},[t,i]);}var Mh=!1;function qP(e){return typeof e=="boolean"&&(Mh=e),Mh}var Ah=function(t){return t===!1?!1:!ir()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Hv=h__namespace.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=h__namespace.useState(r),c=G(l,2),u=c[0],d=c[1],f=u||r;h__namespace.useEffect(function(){(a||r)&&d(r);},[r,a]);var g=h__namespace.useState(function(){return Ah(i)}),v=G(g,2),m=v[0],p=v[1];h__namespace.useEffect(function(){var k=Ah(i);p(k??null);});var b=WP(f&&!m),w=G(b,2),S=w[0],_=w[1],y=m??S;GP(n&&r&&ir()&&(y===S||y===document.body));var x=null;if(s&&Zo(s)&&t){var C=s;x=C.ref;}var A=xm(x,t);if(!f||!ir()||m===void 0)return null;var T=y===!1||qP(),O=s;return t&&(O=h__namespace.cloneElement(s,{ref:A})),h__namespace.createElement(zv.Provider,{value:_},T?O:ug.createPortal(O,y))});function KP(){var e=j({},h__namespace);return e.useId}var Nh=0;function XP(e){var t=h__namespace.useState("ssr-id"),r=G(t,2),n=r[0],i=r[1],o=KP(),a=o==null?void 0:o();return h__namespace.useEffect(function(){if(!o){var s=Nh;Nh+=1,i("rc_unique_".concat(s));}},[]),e||a||n}const Do=h__namespace.createContext({}),kh=e=>{let{children:t,status:r,override:n}=e;const i=h.useContext(Do),o=h.useMemo(()=>{const a=Object.assign({},i);return n&&delete a.isFormItemInput,r&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[r,n,i]);return h__namespace.createElement(Do.Provider,{value:o},t)},YP=()=>ir()&&window.document.documentElement;let Na;const ZP=()=>{if(!YP())return !1;if(Na!==void 0)return Na;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Na=e.scrollHeight===1,document.body.removeChild(e),Na},QP=e=>({animationDuration:e,animationFillMode:"both"}),JP=e=>({animationDuration:e,animationFillMode:"both"}),e2=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[` ${o}${e}-enter, ${o}${e}-appear `]:Object.assign(Object.assign({},QP(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},JP(n)),{animationPlayState:"paused"}),[` ${o}${e}-enter${e}-enter-active, ${o}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},t2=new Bt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),r2=new Bt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ih=new Bt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fh=new Bt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),n2=new Bt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),i2=new Bt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),o2=new Bt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),a2=new Bt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),s2=new Bt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),l2=new Bt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),c2=new Bt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),u2=new Bt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),d2={zoom:{inKeyframes:t2,outKeyframes:r2},"zoom-big":{inKeyframes:Ih,outKeyframes:Fh},"zoom-big-fast":{inKeyframes:Ih,outKeyframes:Fh},"zoom-left":{inKeyframes:o2,outKeyframes:a2},"zoom-right":{inKeyframes:s2,outKeyframes:l2},"zoom-up":{inKeyframes:n2,outKeyframes:i2},"zoom-down":{inKeyframes:c2,outKeyframes:u2}},f2=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=d2[t];return [e2(n,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function nc(e){return e!==void 0}function cl(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,a=r.postState,s=xi(function(){return nc(i)?i:nc(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=G(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,f=a?a(d):d,g=en(o),v=xi([d]),m=G(v,2),p=m[0],b=m[1];So(function(){var S=p[0];c!==S&&g(c,S);},[p]),So(function(){nc(i)||u(i);},[i]);var w=en(function(S,_){u(S,_),b([d],_);});return [f,w]}const Wv=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 Lh=h__namespace.createContext(null);function Dh(e){return e?Array.isArray(e)?e:[e]:[]}function h2(e,t,r,n){return h__namespace.useMemo(function(){var i=Dh(r??t),o=Dh(n??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}function g2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function m2(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function di(e,t){var r=t[0],n=t[1],i,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function En(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function p2(e,t,r,n,i,o,a){var s=h__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),l=G(s,2),c=l[0],u=l[1],d=h__namespace.useRef(0),f=h__namespace.useMemo(function(){return t?bu(t):[]},[t]),g=h__namespace.useRef({}),v=function(){g.current={};};e||v();var m=en(function(){if(t&&r&&e){let Xr=function(la,Ln){var ca=O.x+la,ua=O.y+Ln,da=ca+W,El=ua+V,xl=Math.max(ca,z.left),$l=Math.max(ua,z.top),fa=Math.min(da,z.right),_l=Math.min(El,z.bottom);return Math.max(0,(fa-xl)*(_l-$l))},Yr=function(){vt=O.y+We,_t=vt+V,Or=O.x+tt,hr=Or+W;};var w=t,S=w.style.left,_=w.style.top,y=w.ownerDocument,x=na(w),C=j(j({},i[n]),o);w.style.left="0",w.style.top="0";var A;if(Array.isArray(r))A={x:r[0],y:r[1],width:0,height:0};else {var T=r.getBoundingClientRect();A={x:T.x,y:T.y,width:T.width,height:T.height};}var O=w.getBoundingClientRect(),k=x.getComputedStyle(w),M=k.width,E=k.height,$=y.documentElement,R=$.clientWidth,I=$.clientHeight,N=$.scrollWidth,L=$.scrollHeight,D=$.scrollTop,H=$.scrollLeft,V=O.height,W=O.width,B=A.height,re=A.width,z=C.htmlRegion==="scroll"?{left:-H,top:-D,right:N-H,bottom:L-D}:{left:0,top:0,right:R,bottom:I};z=v2(z,f),w.style.left=S,w.style.top=_;var le=vs(Math.round(W/parseFloat(M)*1e3)/1e3),ie=vs(Math.round(V/parseFloat(E)*1e3)/1e3);if(le===0||ie===0||os(r)&&!Mv(r))return;var me=C.offset,ee=C.targetOffset,pe=me||[],Pe=G(pe,2),De=Pe[0],ve=De===void 0?0:De,xe=Pe[1],Me=xe===void 0?0:xe,He=ee||[],oe=G(He,2),Q=oe[0],ae=Q===void 0?0:Q,Se=oe[1],gt=Se===void 0?0:Se;A.x+=ae,A.y+=gt;var nt=C.points||[],mt=G(nt,2),It=mt[0],Ze=mt[1],be=zh(Ze),$e=zh(It),Ue=di(A,be),Ft=di(O,$e),_e=j({},C),tt=Ue.x-Ft.x+ve,We=Ue.y-Ft.y+Me,$t=Xr(tt,We),lt=di(A,["t","l"]),Ut=di(O,["t","l"]),Sn=di(A,["b","r"]),Ur=di(O,["b","r"]),sr=C.overflow||{},ce=sr.adjustX,se=sr.adjustY,Ce=sr.shiftX,he=sr.shiftY,Be=function(Ln){return typeof Ln=="boolean"?Ln:Ln>=0},vt,_t,Or,hr;Yr();var In=Be(se),Gt=$e[0]===be[0];if(In&&$e[0]==="t"&&(_t>z.bottom||g.current.bt)){var Gr=We;Gt?Gr-=V-B:Gr=lt.y-Ur.y-Me,Xr(tt,Gr)>=$t?(g.current.bt=!0,We=Gr,_e.points=[En($e,0),En(be,0)]):g.current.bt=!1;}if(In&&$e[0]==="b"&&(vt=$t?(g.current.tb=!0,We=Lt,_e.points=[En($e,0),En(be,0)]):g.current.tb=!1;}var Fn=Be(ce),Cn=$e[1]===be[1];if(Fn&&$e[1]==="l"&&(hr>z.right||g.current.rl)){var Pr=tt;Cn?Pr-=W-re:Pr=lt.x-Ur.x-ve,Xr(Pr,We)>=$t?(g.current.rl=!0,tt=Pr,_e.points=[En($e,1),En(be,1)]):g.current.rl=!1;}if(Fn&&$e[1]==="r"&&(Or=$t?(g.current.lr=!0,tt=qr,_e.points=[En($e,1),En(be,1)]):g.current.lr=!1;}Yr();var Rr=Ce===!0?0:Ce;typeof Rr=="number"&&(Orz.right&&(tt-=hr-z.right,A.x>z.right-Rr&&(tt+=A.x-z.right+Rr)));var Ae=he===!0?0:he;typeof Ae=="number"&&(vtz.bottom&&(We-=_t-z.bottom,A.y>z.bottom-Ae&&(We+=A.y-z.bottom+Ae)));var ye=O.x+tt,ue=ye+W,Ge=O.y+We,je=Ge+V,gr=A.x,qt=gr+re,Kt=A.y,St=Kt+B,ii=Math.max(ye,gr),oi=Math.min(ue,qt),Kr=(ii+oi)/2,Qi=Kr-ye,wl=Math.max(Ge,Kt),Sl=Math.min(je,St),Cl=(wl+Sl)/2,ai=Cl-Ge;a==null||a(t,_e),u({ready:!0,offsetX:tt/le,offsetY:We/ie,arrowX:Qi/le,arrowY:ai/ie,scaleX:le,scaleY:ie,align:_e});}}),p=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&m();});},b=function(){u(function(S){return j(j({},S),{},{ready:!1})});};return kt(b,[n]),kt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function b2(e,t,r,n){kt(function(){if(e&&t&&r){let u=function(){n();};var i=t,o=r,a=bu(i),s=bu(o),l=na(o),c=new Set([l].concat(te(a),te(s)));return c.forEach(function(d){d.addEventListener("scroll",u,{passive:!0});}),l.addEventListener("resize",u,{passive:!0}),n(),function(){c.forEach(function(d){d.removeEventListener("scroll",u),l.removeEventListener("resize",u);});}}},[e,t,r]);}function y2(e){var t=e.prefixCls,r=e.align,n=e.arrowX,i=n===void 0?0:n,o=e.arrowY,a=o===void 0?0:o,s=h__namespace.useRef();if(!r||!r.points)return null;var l={position:"absolute"};if(r.autoArrow!==!1){var c=r.points[0],u=r.points[1],d=c[0],f=c[1],g=u[0],v=u[1];d===g||!["t","b"].includes(d)?l.top=a:d==="t"?l.top=0:l.bottom=0,f===v||!["l","r"].includes(f)?l.left=i:f==="l"?l.left=0:l.right=0;}return h__namespace.createElement("div",{ref:s,className:"".concat(t,"-arrow"),style:l})}function w2(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?React.createElement(ta,Mt({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return React.createElement("div",{style:{zIndex:n},className:q("".concat(t,"-mask"),s)})}):null}var S2=h__namespace.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,f=e.arrow,g=e.align,v=e.arrowX,m=e.arrowY,p=e.motion,b=e.maskMotion,w=e.forceRender,S=e.getPopupContainer,_=e.autoDestroy,y=e.portal,x=e.zIndex,C=e.onMouseEnter,A=e.onMouseLeave,T=e.ready,O=e.offsetX,k=e.offsetY,M=e.onAlign,E=e.onPrepare,$=e.stretch,R=e.targetWidth,I=e.targetHeight,N=typeof r=="function"?r():r,L=l||c,D=(S==null?void 0:S.length)>0,H=h__namespace.useState(!S||!D),V=G(H,2),W=V[0],B=V[1];if(kt(function(){!W&&D&&a&&B(!0);},[W,D,a]),!W)return null;var re=T||!l?{left:O,top:k}:{left:"-1000vw",top:"-1000vh"},z={};return $&&($.includes("height")&&I?z.height=I:$.includes("minHeight")&&I&&(z.minHeight=I),$.includes("width")&&R?z.width=R:$.includes("minWidth")&&R&&(z.minWidth=R)),l||(z.pointerEvents="none"),h__namespace.createElement(y,{open:w||L,getContainer:S&&function(){return S(a)},autoDestroy:_},h__namespace.createElement(w2,{prefixCls:i,open:l,zIndex:x,mask:d,motion:b}),h__namespace.createElement(ad,{onResize:M,disabled:!l},function(le){return h__namespace.createElement(ta,Mt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},p,{onAppearPrepare:E,onEnterPrepare:E,visible:l,onVisibleChanged:function(me){var ee;p==null||(ee=p.onVisibleChanged)===null||ee===void 0||ee.call(p,me),s(me);}}),function(ie,me){var ee=ie.className,pe=ie.style,Pe=q(i,ee,n);return h__namespace.createElement("div",{ref:ti(le,t,me),className:Pe,style:j(j(j(j({},re),z),pe),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:C,onMouseLeave:A,onClick:u},f&&h__namespace.createElement(y2,{prefixCls:i,align:g,arrowX:v,arrowY:m}),N)})}))}),C2=h__namespace.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=Zo(r),o=h__namespace.useCallback(function(s){od(t,n?n(s):s);},[n]),a=xm(o,r.ref);return i?h__namespace.cloneElement(r,{ref:a}):r}),E2=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function x2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hv,t=h__namespace.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,g=r.onPopupVisibleChange,v=r.afterPopupVisibleChange,m=r.mouseEnterDelay,p=r.mouseLeaveDelay,b=p===void 0?.1:p,w=r.focusDelay,S=r.blurDelay,_=r.mask,y=r.maskClosable,x=y===void 0?!0:y,C=r.getPopupContainer,A=r.forceRender,T=r.autoDestroy,O=r.destroyPopupOnHide,k=r.popup,M=r.popupClassName,E=r.popupStyle,$=r.popupPlacement,R=r.builtinPlacements,I=R===void 0?{}:R,N=r.popupAlign,L=r.zIndex,D=r.stretch,H=r.getPopupClassNameFromAlign,V=r.alignPoint,W=r.onPopupClick,B=r.onPopupAlign,re=r.arrow,z=r.popupMotion,le=r.maskMotion,ie=r.popupTransitionName,me=r.popupAnimation,ee=r.maskTransitionName,pe=r.maskAnimation,Pe=r.className,De=r.getTriggerDOMNode,ve=nr(r,E2),xe=T||O||!1,Me=h__namespace.useState(!1),He=G(Me,2),oe=He[0],Q=He[1];kt(function(){Q(Wv());},[]);var ae=h__namespace.useRef({}),Se=h__namespace.useContext(Lh),gt=h__namespace.useMemo(function(){return {registerSubPopup:function(fe,ke){ae.current[fe]=ke,Se==null||Se.registerSubPopup(fe,ke);}}},[Se]),nt=XP(),mt=h__namespace.useState(null),It=G(mt,2),Ze=It[0],be=It[1],$e=en(function(Z){os(Z)&&Ze!==Z&&be(Z),Se==null||Se.registerSubPopup(nt,Z);}),Ue=h__namespace.useState(null),Ft=G(Ue,2),_e=Ft[0],tt=Ft[1],We=en(function(Z){os(Z)&&_e!==Z&&tt(Z);}),$t=h__namespace.Children.only(a),lt=($t==null?void 0:$t.props)||{},Ut={},Sn=en(function(Z){var fe,ke,qe=_e;return (qe==null?void 0:qe.contains(Z))||(qe==null||(fe=qe.getRootNode())===null||fe===void 0?void 0:fe.host)===Z||Z===qe||(Ze==null?void 0:Ze.contains(Z))||(Ze==null||(ke=Ze.getRootNode())===null||ke===void 0?void 0:ke.host)===Z||Z===Ze||Object.values(ae.current).some(function(Qe){return (Qe==null?void 0:Qe.contains(Z))||Z===Qe})}),Ur=jh(o,z,me,ie),sr=jh(o,le,pe,ee),ce=h__namespace.useState(f||!1),se=G(ce,2),Ce=se[0],he=se[1],Be=d??Ce,vt=en(function(Z){d===void 0&&he(Z);});kt(function(){he(d||!1);},[d]);var _t=h__namespace.useRef(Be);_t.current=Be;var Or=en(function(Z){Be!==Z&&(vt(Z),g==null||g(Z));}),hr=h__namespace.useRef(),In=function(){clearTimeout(hr.current);},Gt=function(fe){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;In(),ke===0?Or(fe):hr.current=setTimeout(function(){Or(fe);},ke*1e3);};h__namespace.useEffect(function(){return In},[]);var Gr=h__namespace.useState(!1),Lt=G(Gr,2),Fn=Lt[0],Cn=Lt[1],Pr=h__namespace.useRef(!0);kt(function(){(!Pr.current||Be)&&Cn(!0),Pr.current=!0;},[Be]);var qr=h__namespace.useState(null),Rr=G(qr,2),Ae=Rr[0],ye=Rr[1],ue=h__namespace.useState([0,0]),Ge=G(ue,2),je=Ge[0],gr=Ge[1],qt=function(fe){gr([fe.clientX,fe.clientY]);},Kt=p2(Be,Ze,V?je:_e,$,I,N,B),St=G(Kt,9),ii=St[0],oi=St[1],Kr=St[2],Qi=St[3],wl=St[4],Sl=St[5],Cl=St[6],ai=St[7],Xr=St[8],Yr=en(function(){Fn||Xr();});b2(Be,_e,Ze,Yr),kt(function(){Yr();},[je]),kt(function(){Be&&!(I!=null&&I[$])&&Yr();},[JSON.stringify(N)]);var la=h__namespace.useMemo(function(){var Z=m2(I,o,ai,V);return q(Z,H==null?void 0:H(ai))},[ai,H,I,o,V]);h__namespace.useImperativeHandle(n,function(){return {forceAlign:Yr}});var Ln=function(fe){Cn(!1),Xr(),v==null||v(fe);},ca=function(){return new Promise(function(fe){ye(function(){return fe});})};kt(function(){Ae&&(Xr(),Ae(),ye(null));},[Ae]);var ua=h__namespace.useState(0),da=G(ua,2),El=da[0],xl=da[1],$l=h__namespace.useState(0),fa=G($l,2),_l=fa[0],zb=fa[1],Hb=function(fe,ke){if(Yr(),D){var qe=ke.getBoundingClientRect();xl(qe.width),zb(qe.height);}},Wb=h2(oe,l,c,u),Gd=G(Wb,2),ha=Gd[0],ga=Gd[1],ma=function(fe,ke,qe,Qe){Ut[fe]=function(pa){var si;Qe==null||Qe(pa),Gt(ke,qe);for(var Pl=arguments.length,Zd=new Array(Pl>1?Pl-1:0),ba=1;ba1?ke-1:0),Qe=1;Qe1?ke-1:0),Qe=1;Qet||e;var O2={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 P2=O2;var Bv=function(t,r){return h__namespace.createElement(al,j(j({},t),{},{ref:r,icon:P2}))};Bv.displayName="DownOutlined";const R2=h__namespace.forwardRef(Bv);var fi={shiftX:64,adjustY:1},hi={adjustX:1,shiftY:!0},cr=[0,0],T2={left:{points:["cr","cl"],overflow:hi,offset:[-4,0],targetOffset:cr},right:{points:["cl","cr"],overflow:hi,offset:[4,0],targetOffset:cr},top:{points:["bc","tc"],overflow:fi,offset:[0,-4],targetOffset:cr},bottom:{points:["tc","bc"],overflow:fi,offset:[0,4],targetOffset:cr},topLeft:{points:["bl","tl"],overflow:fi,offset:[0,-4],targetOffset:cr},leftTop:{points:["tr","tl"],overflow:hi,offset:[-4,0],targetOffset:cr},topRight:{points:["br","tr"],overflow:fi,offset:[0,-4],targetOffset:cr},rightTop:{points:["tl","tr"],overflow:hi,offset:[4,0],targetOffset:cr},bottomRight:{points:["tr","br"],overflow:fi,offset:[0,4],targetOffset:cr},rightBottom:{points:["bl","br"],overflow:hi,offset:[4,0],targetOffset:cr},bottomLeft:{points:["tl","bl"],overflow:fi,offset:[0,4],targetOffset:cr},leftBottom:{points:["br","bl"],overflow:hi,offset:[-4,0],targetOffset:cr}};function Vv(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return h__namespace.createElement("div",{className:q("".concat(r,"-content"),o),style:a},h__namespace.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var M2=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],A2=function(t,r){var n=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,g=t.children,v=t.onVisibleChange,m=t.afterVisibleChange,p=t.transitionName,b=t.animation,w=t.motion,S=t.placement,_=S===void 0?"right":S,y=t.align,x=y===void 0?{}:y,C=t.destroyTooltipOnHide,A=C===void 0?!1:C,T=t.defaultVisible,O=t.getTooltipContainer,k=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,E=t.id,$=t.showArrow,R=$===void 0?!0:$,I=nr(t,M2),N=h.useRef(null);h.useImperativeHandle(r,function(){return N.current});var L=j({},I);"visible"in t&&(L.popupVisible=t.visible);var D=function(){return h__namespace.createElement(Vv,{key:"content",prefixCls:f,id:E,overlayInnerStyle:k},M)};return h__namespace.createElement($2,Mt({popupClassName:n,prefixCls:f,popup:D,action:o,builtinPlacements:T2,popupPlacement:_,ref:N,popupAlign:x,getPopupContainer:O,onPopupVisibleChange:v,afterPopupVisibleChange:m,popupTransitionName:p,popupAnimation:b,popupMotion:w,defaultPopupVisible:T,autoDestroy:A,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:R},L),g)};const N2=h.forwardRef(A2),Uv=8;function Gv(e){const t=Uv,{contentRadius:r,limitVerticalRadius:n}=e,i=r>12?r+2:12;return {dropdownArrowOffset:i,dropdownArrowOffsetVertical:n?t:i}}function ka(e,t){return e?t:{}}function k2(e,t){const{componentCls:r,sizePopupArrow:n,borderRadiusXS:i,borderRadiusOuter:o,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:g}=Gv({contentRadius:l,limitVerticalRadius:c});return {[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},j_(n,i,o,s,a)),{"&:before":{background:s}})]},ka(!!d.top,{[[`&-placement-top ${r}-arrow`,`&-placement-topLeft ${r}-arrow`,`&-placement-topRight ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${r}-arrow`]:{right:{_skip_check_:!0,value:g}}})),ka(!!d.bottom,{[[`&-placement-bottom ${r}-arrow`,`&-placement-bottomLeft ${r}-arrow`,`&-placement-bottomRight ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${r}-arrow`]:{right:{_skip_check_:!0,value:g}}})),ka(!!d.left,{[[`&-placement-left ${r}-arrow`,`&-placement-leftTop ${r}-arrow`,`&-placement-leftBottom ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${r}-arrow`]:{top:f},[`&-placement-leftBottom ${r}-arrow`]:{bottom:f}})),ka(!!d.right,{[[`&-placement-right ${r}-arrow`,`&-placement-rightTop ${r}-arrow`,`&-placement-rightBottom ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${r}-arrow`]:{top:f},[`&-placement-rightBottom ${r}-arrow`]:{bottom:f}}))}}function I2(e,t,r,n){if(n===!1)return {adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.dropdownArrowOffset*2+r;break;case"left":case"right":o.shiftY=t.dropdownArrowOffsetVertical*2+r;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Hh={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"]}},F2={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"]}},L2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function D2(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,a=t/2,s={};return Object.keys(Hh).forEach(l=>{const c=n&&F2[l]||Hh[l],u=Object.assign(Object.assign({},c),{offset:[0,0]});switch(s[l]=u,L2.has(l)&&(u.autoArrow=!1),l){case"top":case"topLeft":case"topRight":u.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=a+i;break}const d=Gv({contentRadius:o,limitVerticalRadius:!0});if(n)switch(l){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+a;break}u.overflow=I2(l,d,t,r);}),s}const xn=(e,t)=>new Tt(e).setAlpha(t).toRgbString(),gi=(e,t)=>new Tt(e).lighten(t).toHexString(),j2=e=>{const t=hn(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]}},z2=(e,t)=>{const r=e||"#000",n=t||"#fff";return {colorBgBase:r,colorTextBase:n,colorText:xn(n,.85),colorTextSecondary:xn(n,.65),colorTextTertiary:xn(n,.45),colorTextQuaternary:xn(n,.25),colorFill:xn(n,.18),colorFillSecondary:xn(n,.12),colorFillTertiary:xn(n,.08),colorFillQuaternary:xn(n,.04),colorBgElevated:gi(r,12),colorBgContainer:gi(r,8),colorBgLayout:gi(r,0),colorBgSpotlight:gi(r,26),colorBorder:gi(r,26),colorBorderSecondary:gi(r,19)}},H2=(e,t)=>{const r=Object.keys(hd).map(i=>{const o=hn(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${i}-${l+1}`]=o[l],a[`${i}${l+1}`]=o[l],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),n=t??tl(e);return Object.assign(Object.assign(Object.assign({},n),r),ov(e,{generateColorPalettes:j2,generateNeutralColorPalettes:z2}))},W2=H2;function B2(e){const{sizeUnit:t,sizeStep:r}=e,n=r-2;return {sizeXXL:t*(n+10),sizeXL:t*(n+6),sizeLG:t*(n+2),sizeMD:t*(n+2),sizeMS:t*(n+1),size:t*n,sizeSM:t*n,sizeXS:t*(n-1),sizeXXS:t*(n-1)}}const V2=(e,t)=>{const r=t??tl(e),n=r.fontSizeSM,i=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),B2(t??e)),av(n)),{controlHeight:i}),iv(Object.assign(Object.assign({},r),{controlHeight:i})))},U2=V2;function G2(){const[e,t,r]=nl();return {theme:e,token:t,hashId:r}}const yu={defaultConfig:fs,defaultSeed:fs.token,useToken:G2,defaultAlgorithm:tl,darkAlgorithm:W2,compactAlgorithm:U2},q2=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:r,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(o,Uv)}},[`${t}-content`]:{position:"relative"}}),uv(e,(f,g)=>{let{darkColor:v}=g;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},k2(Ht(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:o,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qv=(e,t)=>yn("Tooltip",n=>{if(t===!1)return [];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:s}=n,l=Ht(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [q2(l),f2(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=n;return {zIndexPopup:i+70,colorBgDefault:o}})(e),K2=ds.map(e=>`${e}-inverse`),X2=["success","processing","error","default","warning"];function Kv(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(te(K2),te(ds)).includes(e):ds.includes(e)}function Y2(e){return X2.includes(e)}function Xv(e,t){const r=Kv(t),n=q({[`${e}-${t}`]:t&&r}),i={},o={};return t&&!r&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:o}}function Z2(e){const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=h__namespace.useContext(st),l=s("tooltip",t),[c,u]=qv(l,!0),d=Xv(l,o),f=Object.assign(Object.assign({},a),d.overlayStyle),g=d.arrowStyle;return c(h__namespace.createElement("div",{className:q(u,l,`${l}-pure`,`${l}-placement-${n}`,r,d.className),style:g},h__namespace.createElement("div",{className:`${l}-arrow`}),h__namespace.createElement(Vv,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),i)))}var Q2=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const r={},n=Object.assign({},e);return t.forEach(i=>{e&&i in e&&(r[i]=e[i],delete n[i]);}),{picked:r,omitted:n}};function tR(e,t){const r=e.type;if((r.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||r.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||r.__ANT_RADIO===!0&&e.props.disabled){const{picked:n,omitted:i}=eR(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},i),{pointerEvents:"none"}),s=zi(e,{style:a,className:null});return h__namespace.createElement("span",{style:o,className:q(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const Yv=h__namespace.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:g,arrow:v=!0,title:m,overlay:p,builtinPlacements:b,arrowPointAtCenter:w=!1,autoAdjustOverflow:S=!0}=e,_=!!v,{token:y}=J2(),{getPopupContainer:x,getPrefixCls:C,direction:A}=h__namespace.useContext(st),T=h__namespace.useRef(null),O=()=>{var Q;(Q=T.current)===null||Q===void 0||Q.forceAlign();};h__namespace.useImperativeHandle(t,()=>({forceAlign:O,forcePopupAlign:()=>{O();}}));const[k,M]=cl(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),E=!m&&!p&&m!==0,$=Q=>{var ae,Se;M(E?!1:Q),E||((ae=e.onOpenChange)===null||ae===void 0||ae.call(e,Q),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,Q));},R=h__namespace.useMemo(()=>{var Q,ae;let Se=w;return typeof v=="object"&&(Se=(ae=(Q=v.pointAtCenter)!==null&&Q!==void 0?Q:v.arrowPointAtCenter)!==null&&ae!==void 0?ae:w),b||D2({arrowPointAtCenter:Se,autoAdjustOverflow:S,arrowWidth:_?y.sizePopupArrow:0,borderRadius:y.borderRadius,offset:y.marginXXS})},[w,v,b,y]),I=(Q,ae)=>{const Se=Object.keys(R).find(gt=>{var nt,mt;return R[gt].points[0]===((nt=ae.points)===null||nt===void 0?void 0:nt[0])&&R[gt].points[1]===((mt=ae.points)===null||mt===void 0?void 0:mt[1])});if(Se){const gt=Q.getBoundingClientRect(),nt={top:"50%",left:"50%"};/top|Bottom/.test(Se)?nt.top=`${gt.height-ae.offset[1]}px`:/Top|bottom/.test(Se)&&(nt.top=`${-ae.offset[1]}px`),/left|Right/.test(Se)?nt.left=`${gt.width-ae.offset[0]}px`:/right|Left/.test(Se)&&(nt.left=`${-ae.offset[0]}px`),Q.style.transformOrigin=`${nt.left} ${nt.top}`;}},N=h__namespace.useMemo(()=>m===0?m:p||m||"",[p,m]),{getPopupContainer:L,placement:D="top",mouseEnterDelay:H=.1,mouseLeaveDelay:V=.1,overlayStyle:W,rootClassName:B}=e,re=Q2(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),z=C("tooltip",i),le=C(),ie=e["data-popover-inject"];let me=k;!("open"in e)&&!("visible"in e)&&E&&(me=!1);const ee=tR(pd(u)&&!Rv(u)?u:h__namespace.createElement("span",null,u),z),pe=ee.props,Pe=!pe.className||typeof pe.className=="string"?q(pe.className,{[o||`${z}-open`]:!0}):pe.className,[De,ve]=qv(z,!ie),xe=Xv(z,l),Me=Object.assign(Object.assign({},c),xe.overlayStyle),He=xe.arrowStyle,oe=q(s,{[`${z}-rtl`]:A==="rtl"},xe.className,B,ve);return De(h__namespace.createElement(N2,Object.assign({},re,{showArrow:_,placement:D,mouseEnterDelay:H,mouseLeaveDelay:V,prefixCls:z,overlayClassName:oe,overlayStyle:Object.assign(Object.assign({},He),W),getTooltipContainer:L||a||x,ref:T,builtinPlacements:R,overlay:N,visible:me,onVisibleChange:$,afterVisibleChange:d??f,onPopupAlign:I,overlayInnerStyle:Me,arrowContent:h__namespace.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:HP(le,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),me?zi(ee,{className:Pe}):ee))});Yv._InternalPanelDoNotUseOrYouWillBeFired=Z2;const Sd=Yv,rR=()=>{const[e,t]=h__namespace.useState(!1);return h__namespace.useEffect(()=>{t(ZP());},[]),e};function nR(e){let{className:t,direction:r,index:n,marginDirection:i,children:o,split:a,wrap:s}=e;const{horizontalSize:l,verticalSize:c,latestIndex:u,supportFlexGap:d}=h__namespace.useContext(Zv);let f={};return d||(r==="vertical"?n{const{getPrefixCls:t,space:r,direction:n}=h__namespace.useContext(st),{size:i=(r==null?void 0:r.size)||"small",align:o,className:a,rootClassName:s,children:l,direction:c="horizontal",prefixCls:u,split:d,style:f,wrap:g=!1}=e,v=iR(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),m=rR(),[p,b]=h__namespace.useMemo(()=>(Array.isArray(i)?i:[i,i]).map($=>aR($)),[i]),w=Fi(l,{keepEmpty:!0}),S=o===void 0&&c==="horizontal"?"center":o,_=t("space",u),[y,x]=Nv(_),C=q(_,x,`${_}-${c}`,{[`${_}-rtl`]:n==="rtl",[`${_}-align-${S}`]:S},a,s),A=`${_}-item`,T=n==="rtl"?"marginLeft":"marginRight";let O=0;const k=w.map(($,R)=>{$!=null&&(O=R);const I=$&&$.key||`${A}-${R}`;return h__namespace.createElement(nR,{className:A,key:I,direction:c,index:R,marginDirection:T,split:d,wrap:g},$)}),M=h__namespace.useMemo(()=>({horizontalSize:p,verticalSize:b,latestIndex:O,supportFlexGap:m}),[p,b,O,m]);if(w.length===0)return null;const E={};return g&&(E.flexWrap="wrap",m||(E.marginBottom=-b)),m&&(E.columnGap=p,E.rowGap=b),y(h__namespace.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},E),f)},v),h__namespace.createElement(Zv.Provider,{value:M},k)))},Qv=sR;Qv.Compact=lP;const Jv=Qv;var wu={},lR={get exports(){return wu},set exports(e){wu=e;}};(function(e,t){(function(r,n){e.exports=n();})(P0,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",g="year",v="date",m="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,w={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(E){var $=["th","st","nd","rd"],R=E%100;return "["+E+($[(R-20)%10]||$[R]||$[0])+"]"}},S=function(E,$,R){var I=String(E);return !I||I.length>=$?E:""+Array($+1-I.length).join(R)+E},_={s:S,z:function(E){var $=-E.utcOffset(),R=Math.abs($),I=Math.floor(R/60),N=R%60;return ($<=0?"+":"-")+S(I,2,"0")+":"+S(N,2,"0")},m:function E($,R){if($.date()1)return E(D[0])}else {var H=$.name;x[H]=$,N=H;}return !I&&N&&(y=N),N||!I&&y},T=function(E,$){if(C(E))return E.clone();var R=typeof $=="object"?$:{};return R.date=E,R.args=arguments,new k(R)},O=_;O.l=A,O.i=C,O.w=function(E,$){return T(E,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var k=function(){function E(R){this.$L=A(R.locale,null,!0),this.parse(R);}var $=E.prototype;return $.parse=function(R){this.$d=function(I){var N=I.date,L=I.utc;if(N===null)return new Date(NaN);if(O.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var D=N.match(p);if(D){var H=D[2]-1||0,V=(D[7]||"0").substring(0,3);return L?new Date(Date.UTC(D[1],H,D[3]||1,D[4]||0,D[5]||0,D[6]||0,V)):new Date(D[1],H,D[3]||1,D[4]||0,D[5]||0,D[6]||0,V)}}return new Date(N)}(R),this.$x=R.x||{},this.init();},$.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds();},$.$utils=function(){return O},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(R,I){var N=T(R);return this.startOf(I)<=N&&N<=this.endOf(I)},$.isAfter=function(R,I){return T(R){const{componentCls:t,antCls:r}=e,n=`${t}-group`;return {[n]:Object.assign(Object.assign({},$r(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},gR=e=>{const{componentCls:t,radioWrapperMarginRight:r,radioCheckedColor:n,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:m,radioDotDisabledColor:p,lineType:b,radioDotDisabledSize:w,wireframe:S,colorWhite:_}=e,y=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${b} ${n}`,borderRadius:"50%",visibility:"hidden",animationName:fR,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, &:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},rl(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:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:S?n:_,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:S?c:n,"&::after":{transform:`scale(${f/i})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:g,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${w/i})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},mR=e=>{const{radioButtonColor:t,controlHeight:r,componentCls:n,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:f,controlHeightLG:g,controlHeightSM:v,paddingXS:m,borderRadius:p,borderRadiusSM:b,borderRadiusLG:w,radioCheckedColor:S,radioButtonCheckedBg:_,radioButtonHoverColor:y,radioButtonActiveColor:x,radioSolidCheckedColor:C,colorTextDisabled:A,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:O,radioDisabledButtonCheckedBg:k}=e;return {[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${r-i*2}px`,background:d,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${o} ${a}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${n}-group-large &`]:{height:g,fontSize:f,lineHeight:`${g-i*2}px`,"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${n}-group-small &`]:{height:v,paddingInline:m-i,paddingBlock:0,lineHeight:`${v-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":Object.assign({},rl(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:S,background:_,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:y,borderColor:y,"&::before":{backgroundColor:y}},"&:active":{color:x,borderColor:x,"&::before":{backgroundColor:x}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:C,background:S,borderColor:S,"&:hover":{color:C,background:y,borderColor:y},"&:active":{color:C,background:x,borderColor:x}},"&-disabled":{color:A,backgroundColor:T,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:A,backgroundColor:T,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:O,backgroundColor:k,borderColor:a,boxShadow:"none"}}}},ip=yn("Radio",e=>{const{padding:t,lineWidth:r,controlItemBgActiveDisabled:n,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:f,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:m}=e,p=`0 0 0 ${g}px ${s}`,b=p,w=a,S=4,_=w-S*2,y=m?_:w-(S+r)*2,x=d,C=u,A=l,T=c,O=t-r,E=Ht(e,{radioFocusShadow:p,radioButtonFocusShadow:b,radioSize:w,radioDotSize:y,radioDotDisabledSize:_,radioCheckedColor:x,radioDotDisabledColor:i,radioSolidCheckedColor:v,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:C,radioButtonHoverColor:A,radioButtonActiveColor:T,radioButtonPaddingHorizontal:O,radioDisabledButtonCheckedBg:n,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:f});return [hR(E),gR(E),mR(E)]});var vR=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var r,n;const i=h__namespace.useContext(tp),o=h__namespace.useContext(rp),{getPrefixCls:a,direction:s}=h__namespace.useContext(st),l=h__namespace.useRef(null),c=ti(t,l),{isFormItemInput:u}=h__namespace.useContext(Do),d=T=>{var O,k;(O=e.onChange)===null||O===void 0||O.call(e,T),(k=i==null?void 0:i.onChange)===null||k===void 0||k.call(i,T);},{prefixCls:f,className:g,rootClassName:v,children:m,style:p}=e,b=vR(e,["prefixCls","className","rootClassName","children","style"]),w=a("radio",f),S=((i==null?void 0:i.optionType)||o)==="button"?`${w}-button`:w,[_,y]=ip(w),x=Object.assign({},b),C=h__namespace.useContext(ea);i&&(x.name=i.name,x.onChange=d,x.checked=e.value===i.value,x.disabled=(r=x.disabled)!==null&&r!==void 0?r:i.disabled),x.disabled=(n=x.disabled)!==null&&n!==void 0?n:C;const A=q(`${S}-wrapper`,{[`${S}-wrapper-checked`]:x.checked,[`${S}-wrapper-disabled`]:x.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:u},g,v,y);return _(h__namespace.createElement("label",{className:A,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},h__namespace.createElement(np,Object.assign({},x,{type:"radio",prefixCls:S,ref:c})),m!==void 0?h__namespace.createElement("span",null,m):null))},bR=h__namespace.forwardRef(pR),ps=bR,yR=h__namespace.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=h__namespace.useContext(st),i=h__namespace.useContext(Ki),[o,a]=cl(e.defaultValue,{value:e.value}),s=E=>{const $=o,R=E.target.value;"value"in e||a(R);const{onChange:I}=e;I&&R!==$&&I(E);},{prefixCls:l,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:g,children:v,size:m,style:p,id:b,onMouseEnter:w,onMouseLeave:S,onFocus:_,onBlur:y}=e,x=r("radio",l),C=`${x}-group`,[A,T]=ip(x);let O=v;d&&d.length>0&&(O=d.map(E=>typeof E=="string"||typeof E=="number"?h__namespace.createElement(ps,{key:E.toString(),prefixCls:x,disabled:g,value:E,checked:o===E},E):h__namespace.createElement(ps,{key:`radio-group-value-options-${E.value}`,prefixCls:x,disabled:E.disabled||g,value:E.value,checked:o===E.value,style:E.style},E.label)));const k=m||i,M=q(C,`${C}-${f}`,{[`${C}-${k}`]:k,[`${C}-rtl`]:n==="rtl"},c,u,T);return A(h__namespace.createElement("div",Object.assign({},IO(e),{className:M,style:p,onMouseEnter:w,onMouseLeave:S,onFocus:_,onBlur:y,id:b,ref:t}),h__namespace.createElement(cR,{value:{onChange:s,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),wR=h__namespace.memo(yR);var SR=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:r}=h__namespace.useContext(st),{prefixCls:n}=e,i=SR(e,["prefixCls"]),o=r("radio",n);return h__namespace.createElement(uR,{value:"button"},h__namespace.createElement(ps,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},ER=h__namespace.forwardRef(CR),ul=ps;ul.Button=ER;ul.Group=wR;ul.__ANT_RADIO=!0;const oc=ul,op=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),dl=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),bs=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),ap=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},dl(Ht(e,{inputBorderHoverColor:e.colorBorder})))}),sp=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:n,borderRadiusLG:i,inputPaddingHorizontalLG:o}=e;return {padding:`${t}px ${o}px`,fontSize:r,lineHeight:n,borderRadius:i}},lp=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),cp=(e,t)=>{const{componentCls:r,colorError:n,colorWarning:i,colorErrorOutline:o,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},bs(Ht(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:o}))),[`${r}-prefix, ${r}-suffix`]:{color:n}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},bs(Ht(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${r}-prefix, ${r}-suffix`]:{color:i}}}},up=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},op(e.colorTextPlaceholder)),{"&:hover":Object.assign({},dl(e)),"&:focus, &-focused":Object.assign({},bs(e)),"&-disabled, &[disabled]":Object.assign({},ap(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({},sp(e)),"&-sm":Object.assign({},lp(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),xR=e=>{const{componentCls:t,antCls:r}=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({},sp(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},lp(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},z_()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${r}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, & > ${r}-select-auto-complete ${t}, & > ${r}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${r}-select:first-child > ${r}-select-selector, & > ${r}-select-auto-complete:first-child ${t}, & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child > ${r}-select-selector, & > ${r}-cascader-picker:last-child ${t}, & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}};function $R(e){return Ht(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const _R=new Bt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),OR=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},$r(e)),{display:"inline-flex"}),[r]:Object.assign(Object.assign({},$r(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:e.marginXS},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"start",transform:`translate(0, ${e.lineHeight*e.fontSize/2-e.checkboxSize/2}px)`,[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},rl(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${r}:hover ${t}:after`]:{visibility:"visible"},[` ${r}:not(${r}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:_R,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` ${r}-checked:not(${r}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${r}-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 PR(e,t){const r=Ht(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [OR(r)]}const dp=yn("Checkbox",(e,t)=>{let{prefixCls:r}=t;return [PR(r,e)]});var RR=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var{defaultValue:r,children:n,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=RR(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:f}=h__namespace.useContext(st),[g,v]=h__namespace.useState(u.value||r||[]),[m,p]=h__namespace.useState([]);h__namespace.useEffect(()=>{"value"in u&&v(u.value||[]);},[u.value]);const b=()=>i.map(M=>typeof M=="string"||typeof M=="number"?{label:M,value:M}:M),w=M=>{p(E=>E.filter($=>$!==M));},S=M=>{p(E=>[].concat(te(E),[M]));},_=M=>{const E=g.indexOf(M.value),$=te(g);E===-1?$.push(M.value):$.splice(E,1),"value"in u||v($);const R=b();c==null||c($.filter(I=>m.includes(I)).sort((I,N)=>{const L=R.findIndex(H=>H.value===I),D=R.findIndex(H=>H.value===N);return L-D}));},y=d("checkbox",o),x=`${y}-group`,[C,A]=dp(y),T=Mm(u,["value","disabled"]);i&&i.length>0&&(n=b().map(M=>h__namespace.createElement(hp,{prefixCls:y,key:M.value.toString(),disabled:"disabled"in M?M.disabled:u.disabled,value:M.value,checked:g.includes(M.value),onChange:M.onChange,className:`${x}-item`,style:M.style},M.label)));const O={toggleOption:_,value:g,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:w},k=q(x,{[`${x}-rtl`]:f==="rtl"},a,s,A);return C(h__namespace.createElement("div",Object.assign({className:k,style:l},T,{ref:t}),h__namespace.createElement(fp.Provider,{value:O},n)))},MR=h__namespace.forwardRef(TR),AR=h__namespace.memo(MR);var NR=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var r,{prefixCls:n,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,g=NR(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:m}=h__namespace.useContext(st),p=h__namespace.useContext(fp),{isFormItemInput:b}=h__namespace.useContext(Do),w=h__namespace.useContext(ea),S=(r=(p==null?void 0:p.disabled)||f)!==null&&r!==void 0?r:w,_=h__namespace.useRef(g.value);h__namespace.useEffect(()=>{p==null||p.registerValue(g.value);},[]),h__namespace.useEffect(()=>{if(!d)return g.value!==_.current&&(p==null||p.cancelValue(_.current),p==null||p.registerValue(g.value),_.current=g.value),()=>p==null?void 0:p.cancelValue(g.value)},[g.value]);const y=v("checkbox",n),[x,C]=dp(y),A=Object.assign({},g);p&&!d&&(A.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),p.toggleOption&&p.toggleOption({label:a,value:g.value});},A.name=p.name,A.checked=p.value.includes(g.value));const T=q({[`${y}-wrapper`]:!0,[`${y}-rtl`]:m==="rtl",[`${y}-wrapper-checked`]:A.checked,[`${y}-wrapper-disabled`]:S,[`${y}-wrapper-in-form-item`]:b},i,o,C),O=q({[`${y}-indeterminate`]:s},C),k=s?"mixed":void 0;return x(h__namespace.createElement("label",{className:T,style:l,onMouseEnter:c,onMouseLeave:u},h__namespace.createElement(np,Object.assign({"aria-checked":k},A,{prefixCls:y,className:O,disabled:S,ref:t})),a!==void 0&&h__namespace.createElement("span",null,a)))},IR=h__namespace.forwardRef(kR),hp=IR,Cd=hp;Cd.Group=AR;Cd.__ANT_CHECKBOX=!0;const FR=Cd;var LR={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 DR=LR;var gp=function(t,r){return h__namespace.createElement(al,j(j({},t),{},{ref:r,icon:DR}))};gp.displayName="UpOutlined";const jR=h__namespace.forwardRef(gp);function Su(){return typeof BigInt=="function"}function Yn(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",i=n.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return {negative:r,negativeStr:s,trimStr:n,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(n)}}function Ed(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function jo(e){var t=String(e);if(Ed(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&xd(t)?t.length-t.indexOf(".")-1:0}function fl(e){var t=String(e);if(Ed(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Su()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":fl(this.number):this.origin}}]),e}(),HR=function(){function e(t){if(dr(this,e),X(this,"origin",""),X(this,"negative",void 0),X(this,"integer",void 0),X(this,"decimal",void 0),X(this,"decimalLen",void 0),X(this,"empty",void 0),X(this,"nan",void 0),mp(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(Ed(r)&&(r=Number(r)),r=typeof r=="string"?r:fl(r),xd(r)){var n=Yn(r);this.negative=n.negative;var i=n.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length;}else this.nan=!0;}return fr(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(r){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(n)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=new e(r);if(n.isInvalidate())return this;var i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(i),a=n.alignDecimal(i),s=(o+a).toString(),l=Yn(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(i+1,"0"));return new e("".concat(d.slice(0,-i),".").concat(d.slice(-i)))}},{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(r){return this.toString()===(r==null?void 0:r.toString())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Yn("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function vr(e){return Su()?new HR(e):new zR(e)}function Wa(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var i=Yn(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var d=vr(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-u));return Wa(d.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var WR=function(){var t=h.useState(!1),r=G(t,2),n=r[0],i=r[1];return h.useLayoutEffect(function(){i(Wv());},[]),n},BR=200,VR=600;function UR(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=h__namespace.useRef(),l=h__namespace.useRef();l.current=a;var c=function(b,w){b.preventDefault(),l.current(w);function S(){l.current(w),s.current=setTimeout(S,BR);}s.current=setTimeout(S,VR);},u=function(){clearTimeout(s.current);};h__namespace.useEffect(function(){return u},[]);var d=WR();if(d)return null;var f="".concat(t,"-handler"),g=q(f,"".concat(f,"-up"),X({},"".concat(f,"-up-disabled"),i)),v=q(f,"".concat(f,"-down"),X({},"".concat(f,"-down-disabled"),o)),m={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return h__namespace.createElement("div",{className:"".concat(f,"-wrap")},h__namespace.createElement("span",Mt({},m,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":i,className:g}),r||h__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),h__namespace.createElement("span",Mt({},m,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":o,className:v}),n||h__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Wh(e){var t=typeof e=="number"?fl(e):Yn(e).fullStr,r=t.includes(".");return r?Yn(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function GR(e,t){var r=h.useRef(null);function n(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);r.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function i(){if(e&&r.current&&t)try{var o=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.endsWith(l))u=o.length-r.current.afterTxt.length;else if(o.startsWith(s))u=s.length;else {var d=s[c-1],f=o.indexOf(d,c-1);f!==-1&&(u=f+1);}e.setSelectionRange(u,u);}catch(g){xr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message));}}return [n,i]}const qR=function(){var e=h.useRef(0),t=function(){gn.cancel(e.current);};return h.useEffect(function(){return t},[]),function(r){t(),e.current=gn(function(){r();});}};var KR=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Bh=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},Vh=function(t){var r=vr(t);return r.isInvalidate()?null:r},vp=h__namespace.forwardRef(function(e,t){var r,n=e.prefixCls,i=n===void 0?"rc-input-number":n,o=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,f=e.value,g=e.disabled,v=e.readOnly,m=e.upHandler,p=e.downHandler,b=e.keyboard,w=e.controls,S=w===void 0?!0:w,_=e.stringMode,y=e.parser,x=e.formatter,C=e.precision,A=e.decimalSeparator,T=e.onChange,O=e.onInput,k=e.onPressEnter,M=e.onStep,E=nr(e,KR),$="".concat(i,"-input"),R=h__namespace.useRef(null),I=h__namespace.useState(!1),N=G(I,2),L=N[0],D=N[1],H=h__namespace.useRef(!1),V=h__namespace.useRef(!1),W=h__namespace.useRef(!1),B=h__namespace.useState(function(){return vr(f??d)}),re=G(B,2),z=re[0],le=re[1];function ie(ce){f===void 0&&le(ce);}var me=h__namespace.useCallback(function(ce,se){if(!se)return C>=0?C:Math.max(jo(ce),jo(u))},[C,u]),ee=h__namespace.useCallback(function(ce){var se=String(ce);if(y)return y(se);var Ce=se;return A&&(Ce=Ce.replace(A,".")),Ce.replace(/[^\w.-]+/g,"")},[y,A]),pe=h__namespace.useRef(""),Pe=h__namespace.useCallback(function(ce,se){if(x)return x(ce,{userTyping:se,input:String(pe.current)});var Ce=typeof ce=="number"?fl(ce):ce;if(!se){var he=me(Ce,se);if(xd(Ce)&&(A||he>=0)){var Be=A||".";Ce=Wa(Ce,Be,he);}}return Ce},[x,me,A]),De=h__namespace.useState(function(){var ce=d??f;return z.isInvalidate()&&["string","number"].includes(ze(ce))?Number.isNaN(ce)?"":ce:Pe(z.toString(),!1)}),ve=G(De,2),xe=ve[0],Me=ve[1];pe.current=xe;function He(ce,se){Me(Pe(ce.isInvalidate()?ce.toString(!1):ce.toString(!se),se));}var oe=h__namespace.useMemo(function(){return Vh(l)},[l,C]),Q=h__namespace.useMemo(function(){return Vh(s)},[s,C]),ae=h__namespace.useMemo(function(){return !oe||!z||z.isInvalidate()?!1:oe.lessEquals(z)},[oe,z]),Se=h__namespace.useMemo(function(){return !Q||!z||z.isInvalidate()?!1:z.lessEquals(Q)},[Q,z]),gt=GR(R.current,L),nt=G(gt,2),mt=nt[0],It=nt[1],Ze=function(se){return oe&&!se.lessEquals(oe)?oe:Q&&!Q.lessEquals(se)?Q:null},be=function(se){return !Ze(se)},$e=function(se,Ce){var he=se,Be=be(he)||he.isEmpty();if(!he.isEmpty()&&!Ce&&(he=Ze(he)||he,Be=!0),!v&&!g&&Be){var vt=he.toString(),_t=me(vt,Ce);return _t>=0&&(he=vr(Wa(vt,".",_t)),be(he)||(he=vr(Wa(vt,".",_t,!0)))),he.equals(z)||(ie(he),T==null||T(he.isEmpty()?null:Bh(_,he)),f===void 0&&He(he,Ce)),he}return z},Ue=qR(),Ft=function ce(se){if(mt(),Me(se),!V.current){var Ce=ee(se),he=vr(Ce);he.isNaN()||$e(he,!0);}O==null||O(se),Ue(function(){var Be=se;y||(Be=se.replace(/。/g,".")),Be!==se&&ce(Be);});},_e=function(){V.current=!0;},tt=function(){V.current=!1,Ft(R.current.value);},We=function(se){Ft(se.target.value);},$t=function(se){var Ce;if(!(se&&ae||!se&&Se)){H.current=!1;var he=vr(W.current?Wh(u):u);se||(he=he.negate());var Be=(z||vr(0)).add(he.toString()),vt=$e(Be,!1);M==null||M(Bh(_,vt),{offset:W.current?Wh(u):u,type:se?"up":"down"}),(Ce=R.current)===null||Ce===void 0||Ce.focus();}},lt=function(se){var Ce=vr(ee(xe)),he=Ce;Ce.isNaN()?he=z:he=$e(Ce,se),f!==void 0?He(z,!1):he.isNaN()||He(he,!1);},Ut=function(){H.current=!0;},Sn=function(se){var Ce=se.which,he=se.shiftKey;H.current=!0,he?W.current=!0:W.current=!1,Ce===Y.ENTER&&(V.current||(H.current=!1),lt(!1),k==null||k(se)),b!==!1&&!V.current&&[Y.UP,Y.DOWN].includes(Ce)&&($t(Y.UP===Ce),se.preventDefault());},Ur=function(){H.current=!1,W.current=!1;},sr=function(){lt(!1),D(!1),H.current=!1;};return So(function(){z.isInvalidate()||He(z,!1);},[C]),So(function(){var ce=vr(f);le(ce);var se=vr(ee(xe));(!ce.equals(se)||!H.current||x)&&He(ce,H.current);},[f]),So(function(){x&&It();},[xe]),h__namespace.createElement("div",{className:q(i,o,(r={},X(r,"".concat(i,"-focused"),L),X(r,"".concat(i,"-disabled"),g),X(r,"".concat(i,"-readonly"),v),X(r,"".concat(i,"-not-a-number"),z.isNaN()),X(r,"".concat(i,"-out-of-range"),!z.isInvalidate()&&!be(z)),r)),style:a,onFocus:function(){D(!0);},onBlur:sr,onKeyDown:Sn,onKeyUp:Ur,onCompositionStart:_e,onCompositionEnd:tt,onBeforeInput:Ut},S&&h__namespace.createElement(UR,{prefixCls:i,upNode:m,downNode:p,upDisabled:ae,downDisabled:Se,onStep:$t}),h__namespace.createElement("div",{className:"".concat($,"-wrap")},h__namespace.createElement("input",Mt({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":z.isInvalidate()?null:z.toString(),step:u},E,{ref:ti(R,t),className:$,value:xe,onChange:We,disabled:g,readOnly:v}))))});vp.displayName="InputNumber";const XR=e=>{const{componentCls:t,lineWidth:r,lineType:n,colorBorder:i,borderRadius:o,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:f,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:m,colorBgContainer:p,colorTextDisabled:b,borderRadiusSM:w,borderRadiusLG:S,controlWidth:_,handleVisible:y}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),up(e)),cp(e,t)),{display:"inline-block",width:_,margin:0,padding:0,border:`${r}px ${n} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:S,[`input${t}-input`]:{height:s-2*r}},"&-sm":{padding:0,borderRadius:w,[`input${t}-input`]:{height:l-2*r,padding:`0 ${u}px`}},"&:hover":Object.assign({},dl(e)),"&-focused":Object.assign({},bs(e)),"&-disabled":Object.assign(Object.assign({},ap(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":Object.assign(Object.assign(Object.assign({},$r(e)),xR(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}}}),[t]:{"&-input":Object.assign(Object.assign({width:"100%",height:v-2*r,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},op(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:y===!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:`${r}px ${n} ${i}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},lv()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderBlockStart:`${r}px ${n} ${i}`,borderEndEndRadius:o},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},YR=e=>{const{componentCls:t,inputPaddingHorizontal:r,inputAffixPadding:n,controlWidth:i,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},up(e)),cp(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},dl(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:n}}})}},ZR=yn("InputNumber",e=>{const t=$R(e);return [XR(t),YR(t),Lv(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var QR=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:r,direction:n}=h__namespace.useContext(st),i=h__namespace.useContext(Ki),[o,a]=h__namespace.useState(!1),s=h__namespace.useRef(null);h__namespace.useImperativeHandle(t,()=>s.current);const{className:l,rootClassName:c,size:u,disabled:d,prefixCls:f,addonBefore:g,addonAfter:v,prefix:m,bordered:p=!0,readOnly:b,status:w,controls:S}=e,_=QR(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=r("input-number",f),[x,C]=ZR(y),{compactSize:A,compactItemClassnames:T}=Iv(y,n);let O=h__namespace.createElement(jR,{className:`${y}-handler-up-inner`}),k=h__namespace.createElement(R2,{className:`${y}-handler-down-inner`});const M=typeof S=="boolean"?S:void 0;typeof S=="object"&&(O=typeof S.upIcon>"u"?O:h__namespace.createElement("span",{className:`${y}-handler-up-inner`},S.upIcon),k=typeof S.downIcon>"u"?k:h__namespace.createElement("span",{className:`${y}-handler-down-inner`},S.downIcon));const{hasFeedback:E,status:$,isFormItemInput:R,feedbackIcon:I}=h__namespace.useContext(Do),N=_2($,w),L=A||u||i,D=m!=null||E,H=!!(g||v),V=h__namespace.useContext(ea),W=d??V,B=q({[`${y}-lg`]:L==="large",[`${y}-sm`]:L==="small",[`${y}-rtl`]:n==="rtl",[`${y}-borderless`]:!p,[`${y}-in-form-item`]:R},ic(y,N),T,C,l,!D&&!H&&c);let re=h__namespace.createElement(vp,Object.assign({ref:s,disabled:W,className:B,upHandler:O,downHandler:k,prefixCls:y,readOnly:b,controls:M},_));if(D){const z=q(`${y}-affix-wrapper`,ic(`${y}-affix-wrapper`,N,E),{[`${y}-affix-wrapper-focused`]:o,[`${y}-affix-wrapper-disabled`]:e.disabled,[`${y}-affix-wrapper-sm`]:L==="small",[`${y}-affix-wrapper-lg`]:L==="large",[`${y}-affix-wrapper-rtl`]:n==="rtl",[`${y}-affix-wrapper-readonly`]:b,[`${y}-affix-wrapper-borderless`]:!p},!H&&l,!H&&c,C);re=h__namespace.createElement("div",{className:z,style:e.style,onMouseUp:()=>s.current.focus()},m&&h__namespace.createElement("span",{className:`${y}-prefix`},m),zi(re,{style:null,value:e.value,onFocus:le=>{var ie;a(!0),(ie=e.onFocus)===null||ie===void 0||ie.call(e,le);},onBlur:le=>{var ie;a(!1),(ie=e.onBlur)===null||ie===void 0||ie.call(e,le);}}),E&&h__namespace.createElement("span",{className:`${y}-suffix`},I));}if(H){const z=`${y}-group`,le=`${z}-addon`,ie=g?h__namespace.createElement("div",{className:le},g):null,me=v?h__namespace.createElement("div",{className:le},v):null,ee=q(`${y}-wrapper`,z,C,{[`${z}-rtl`]:n==="rtl"}),pe=q(`${y}-group-wrapper`,{[`${y}-group-wrapper-sm`]:L==="small",[`${y}-group-wrapper-lg`]:L==="large",[`${y}-group-wrapper-rtl`]:n==="rtl"},ic(`${y}-group-wrapper`,N,E),C,l,c);re=h__namespace.createElement("div",{className:pe,style:e.style},h__namespace.createElement("div",{className:ee},ie&&h__namespace.createElement(_h,null,h__namespace.createElement(kh,{status:!0,override:!0},ie)),zi(re,{style:null,disabled:W}),me&&h__namespace.createElement(_h,null,h__namespace.createElement(kh,{status:!0,override:!0},me))));}return x(re)}),bp=pp,JR=e=>h__namespace.createElement(hv,{theme:{components:{InputNumber:{handleVisible:!0}}}},h__namespace.createElement(pp,Object.assign({},e)));bp._InternalPanelDoNotUseOrYouWillBeFired=JR;const Uh=bp;var ri=h__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Cu(e,t,r){return (e-t)/(r-t)}function $d(e,t,r,n){var i=Cu(t,r,n),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function yi(e,t){return Array.isArray(e)?e[t]:e}var eT=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],tT=h__namespace.forwardRef(function(e,t){var r,n,i=e.prefixCls,o=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,f=nr(e,eT),g=h__namespace.useContext(ri),v=g.min,m=g.max,p=g.direction,b=g.disabled,w=g.keyboard,S=g.range,_=g.tabIndex,y=g.ariaLabelForHandle,x=g.ariaLabelledByForHandle,C=g.ariaValueTextFormatterForHandle,A="".concat(i,"-handle"),T=function($){b||s($,a);},O=function($){if(!b&&w){var R=null;switch($.which||$.keyCode){case Y.LEFT:R=p==="ltr"||p==="btt"?-1:1;break;case Y.RIGHT:R=p==="ltr"||p==="btt"?1:-1;break;case Y.UP:R=p!=="ttb"?1:-1;break;case Y.DOWN:R=p!=="ttb"?-1:1;break;case Y.HOME:R="min";break;case Y.END:R="max";break;case Y.PAGE_UP:R=2;break;case Y.PAGE_DOWN:R=-2;break}R!==null&&($.preventDefault(),d(R,a));}},k=$d(p,o,v,m),M=h__namespace.createElement("div",Mt({ref:t,className:q(A,(r={},X(r,"".concat(A,"-").concat(a+1),S),X(r,"".concat(A,"-dragging"),u),r)),style:j(j({},k),l),onMouseDown:T,onTouchStart:T,onKeyDown:O,tabIndex:b?null:yi(_,a),role:"slider","aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":o,"aria-disabled":b,"aria-label":yi(y,a),"aria-labelledby":yi(x,a),"aria-valuetext":(n=yi(C,a))===null||n===void 0?void 0:n(o)},f));return c&&(M=c(M,{index:a,prefixCls:i,value:o,dragging:u})),M}),rT=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],nT=h__namespace.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=nr(e,rT),u=h__namespace.useRef({});return h__namespace.useImperativeHandle(t,function(){return {focus:function(f){var g;(g=u.current[f])===null||g===void 0||g.focus();}}}),h__namespace.createElement(h__namespace.Fragment,null,a.map(function(d,f){return h__namespace.createElement(tT,Mt({ref:function(v){v?u.current[f]=v:delete u.current[f];},dragging:l===f,prefixCls:r,style:yi(n,f),key:f,value:d,valueIndex:f,onStartMove:i,onOffsetChange:o,render:s},c))}))});function Gh(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function iT(e,t,r,n,i,o,a,s,l){var c=h__namespace.useState(null),u=G(c,2),d=u[0],f=u[1],g=h__namespace.useState(-1),v=G(g,2),m=v[0],p=v[1],b=h__namespace.useState(r),w=G(b,2),S=w[0],_=w[1],y=h__namespace.useState(r),x=G(y,2),C=x[0],A=x[1],T=h__namespace.useRef(null),O=h__namespace.useRef(null);h__namespace.useEffect(function(){m===-1&&_(r);},[r,m]),h__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",T.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",T.current),document.removeEventListener("touchend",O.current);}},[]);var k=function(N,L){S.some(function(D,H){return D!==N[H]})&&(L!==void 0&&f(L),_(N),a(N));},M=function(N,L){if(N===-1){var D=C[0],H=C[C.length-1],V=n-D,W=i-H,B=L*(i-n);B=Math.max(B,V),B=Math.min(B,W);var re=o(D+B);B=re-D;var z=C.map(function(ee){return ee+B});k(z);}else {var le=(i-n)*L,ie=te(S);ie[N]=C[N];var me=l(ie,le,N,"dist");k(me.values,me.value);}},E=h__namespace.useRef(M);E.current=M;var $=function(N,L){N.stopPropagation();var D=r[L];p(L),f(D),A(r);var H=Gh(N),V=H.pageX,W=H.pageY,B=function(le){le.preventDefault();var ie=Gh(le),me=ie.pageX,ee=ie.pageY,pe=me-V,Pe=ee-W,De=e.current.getBoundingClientRect(),ve=De.width,xe=De.height,Me;switch(t){case"btt":Me=-Pe/xe;break;case"ttb":Me=Pe/xe;break;case"rtl":Me=-pe/ve;break;default:Me=pe/ve;}E.current(L,Me);},re=function z(le){le.preventDefault(),document.removeEventListener("mouseup",z),document.removeEventListener("mousemove",B),document.removeEventListener("touchend",z),document.removeEventListener("touchmove",B),T.current=null,O.current=null,p(-1),s();};document.addEventListener("mouseup",re),document.addEventListener("mousemove",B),document.addEventListener("touchend",re),document.addEventListener("touchmove",B),T.current=B,O.current=re;},R=h__namespace.useMemo(function(){var I=te(r).sort(function(L,D){return L-D}),N=te(S).sort(function(L,D){return L-D});return I.every(function(L,D){return L===N[D]})?S:r},[r,S]);return [m,d,R,$]}function oT(e){var t=e.prefixCls,r=e.style,n=e.start,i=e.end,o=e.index,a=e.onStartMove,s=h__namespace.useContext(ri),l=s.direction,c=s.min,u=s.max,d=s.disabled,f=s.range,g="".concat(t,"-track"),v=Cu(n,c,u),m=Cu(i,c,u),p=function(S){!d&&a&&a(S,-1);},b={};switch(l){case"rtl":b.right="".concat(v*100,"%"),b.width="".concat(m*100-v*100,"%");break;case"btt":b.bottom="".concat(v*100,"%"),b.height="".concat(m*100-v*100,"%");break;case"ttb":b.top="".concat(v*100,"%"),b.height="".concat(m*100-v*100,"%");break;default:b.left="".concat(v*100,"%"),b.width="".concat(m*100-v*100,"%");}return h__namespace.createElement("div",{className:q(g,f&&"".concat(g,"-").concat(o+1)),style:j(j({},b),r),onMouseDown:p,onTouchStart:p})}function aT(e){var t=e.prefixCls,r=e.style,n=e.values,i=e.startPoint,o=e.onStartMove,a=h__namespace.useContext(ri),s=a.included,l=a.range,c=a.min,u=h__namespace.useMemo(function(){if(!l){if(n.length===0)return [];var d=i??c,f=n[0];return [{start:Math.min(d,f),end:Math.max(d,f)}]}for(var g=[],v=0;v3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var w,S=v[p],_=S+m,y=[];n.forEach(function(O){y.push(O.value);}),y.push(e,t),y.push(s(S));var x=m>0?1:-1;b==="unit"?y.push(s(S+x*r)):y.push(s(_)),y=y.filter(function(O){return O!==null}).filter(function(O){return m<0?O<=S:O>=S}),b==="unit"&&(y=y.filter(function(O){return O!==S}));var C=b==="unit"?S:_;w=y[0];var A=Math.abs(w-C);if(y.forEach(function(O){var k=Math.abs(O-C);k1){var T=te(v);return T[p]=w,g(T,m-x,p,b)}return w}else {if(m==="min")return e;if(m==="max")return t}},u=function(v,m,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=v[p],S=c(v,m,p,b);return {value:S,changed:S!==w}},d=function(v){return o===null&&v===0||typeof o=="number"&&v3&&arguments[3]!==void 0?arguments[3]:"unit",w=v.map(l),S=w[p],_=c(w,m,p,b);if(w[p]=_,i===!1){var y=o||0;p>0&&w[p-1]!==S&&(w[p]=Math.max(w[p],w[p-1]+y)),p0;T-=1)for(var O=!0;d(w[T]-w[T-1])&&O;){var k=u(w,-1,T-1);w[T-1]=k.value,O=k.changed;}for(var M=w.length-1;M>0;M-=1)for(var E=!0;d(w[M]-w[M-1])&&E;){var $=u(w,-1,M-1);w[M-1]=$.value,E=$.changed;}for(var R=0;R=0?$:!1},[$,ae]),gt=h__namespace.useMemo(function(){var Ae=Object.keys(le||{});return Ae.map(function(ye){var ue=le[ye],Ge={value:Number(ye)};return ue&&ze(ue)==="object"&&!h__namespace.isValidElement(ue)&&("label"in ue||"style"in ue)?(Ge.style=ue.style,Ge.label=ue.label):Ge.label=ue,Ge}).filter(function(ye){var ue=ye.label;return ue||typeof ue=="number"}).sort(function(ye,ue){return ye.value-ue.value})},[le]),nt=dT(oe,Q,ae,gt,M,Se),mt=G(nt,2),It=mt[0],Ze=mt[1],be=cl(y,{value:_}),$e=G(be,2),Ue=$e[0],Ft=$e[1],_e=h__namespace.useMemo(function(){var Ae=Ue==null?[]:Array.isArray(Ue)?Ue:[Ue],ye=G(Ae,1),ue=ye[0],Ge=ue===void 0?oe:ue,je=Ue===null?[]:[Ge];if(x){if(je=te(Ae),C||Ue===void 0){var gr=C>=0?C+1:2;for(je=je.slice(0,gr);je.length=0&&xe.current.focus(Ae);}ce(null);},[sr]);var Ce=h__namespace.useMemo(function(){return R&&ae===null?!1:R},[R,ae]),he=function(){O==null||O(We(tt.current));},Be=iT(Me,He,_e,oe,Q,It,$t,he,Ze),vt=G(Be,4),_t=vt[0],Or=vt[1],hr=vt[2],In=vt[3],Gt=function(ye,ue){In(ye,ue),T==null||T(We(tt.current));},Gr=_t!==-1;h__namespace.useEffect(function(){if(!Gr){var Ae=_e.lastIndexOf(Or);xe.current.focus(Ae);}},[Gr]);var Lt=h__namespace.useMemo(function(){return te(hr).sort(function(Ae,ye){return Ae-ye})},[hr]),Fn=h__namespace.useMemo(function(){return x?[Lt[0],Lt[Lt.length-1]]:[oe,Lt[0]]},[Lt,x,oe]),Cn=G(Fn,2),Pr=Cn[0],qr=Cn[1];h__namespace.useImperativeHandle(t,function(){return {focus:function(){xe.current.focus(0);},blur:function(){var ye=document,ue=ye.activeElement;Me.current.contains(ue)&&(ue==null||ue.blur());}}}),h__namespace.useEffect(function(){d&&xe.current.focus(0);},[]);var Rr=h__namespace.useMemo(function(){return {min:oe,max:Q,direction:He,disabled:l,keyboard:u,step:ae,included:D,includedStart:Pr,includedEnd:qr,range:x,tabIndex:pe,ariaLabelForHandle:Pe,ariaLabelledByForHandle:De,ariaValueTextFormatterForHandle:ve}},[oe,Q,He,l,u,ae,D,Pr,qr,x,pe,Pe,De,ve]);return h__namespace.createElement(ri.Provider,{value:Rr},h__namespace.createElement("div",{ref:Me,className:q(i,o,(r={},X(r,"".concat(i,"-disabled"),l),X(r,"".concat(i,"-vertical"),N),X(r,"".concat(i,"-horizontal"),!N),X(r,"".concat(i,"-with-marks"),gt.length),r)),style:a,onMouseDown:Ut},h__namespace.createElement("div",{className:"".concat(i,"-rail"),style:B}),h__namespace.createElement(aT,{prefixCls:i,style:V,values:Lt,startPoint:H,onStartMove:Ce?Gt:null}),h__namespace.createElement(uT,{prefixCls:i,marks:gt,dots:ie,style:re,activeStyle:z}),h__namespace.createElement(nT,{ref:xe,prefixCls:i,style:W,values:hr,draggingIndex:_t,onStartMove:Gt,onOffsetChange:se,onFocus:f,onBlur:g,handleRender:me}),h__namespace.createElement(lT,{prefixCls:i,marks:gt,onClick:lt})))});const hT=h__namespace.forwardRef((e,t)=>{const{open:r}=e,n=h.useRef(null),i=h.useRef(null);function o(){gn.cancel(i.current),i.current=null;}function a(){i.current=gn(()=>{var s;(s=n.current)===null||s===void 0||s.forceAlign(),i.current=null;});}return h__namespace.useEffect(()=>(r?a():o(),o),[r,e.title]),h__namespace.createElement(Sd,Object.assign({ref:ti(n,t)},e))}),gT=hT,mT=e=>{const{componentCls:t,controlSize:r,dotSize:n,marginFull:i,marginPart:o,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",height:r,margin:`${o}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${i}px ${o}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, height ${e.motionDurationMid}, box-shadow ${e.motionDurationMid} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:n,height:n,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Tt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}}})}},yp=(e,t)=>{const{componentCls:r,railSize:n,handleSize:i,dotSize:o}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return {[a]:n,[l]:n*3,[`${r}-rail`]:{[s]:"100%",[l]:n},[`${r}-track`]:{[l]:n},[`${r}-handle`]:{[c]:(n*3-i)/2},[`${r}-mark`]:{insetInlineStart:0,top:0,[u]:i,[s]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[u]:n,[s]:"100%",[l]:n},[`${r}-dot`]:{position:"absolute",[c]:(n-o)/2}}},vT=e=>{const{componentCls:t,marginPartWithMark:r}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},yp(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},pT=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},yp(e,!1)),{height:"100%"})}},bT=yn("Slider",e=>{const t=Ht(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [mT(t),vT(t),pT(t)]},e=>{const r=e.controlHeightLG/4,n=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*3;return {controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:i,handleLineWidthHover:o}});var yT=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);itypeof e=="number"?e.toString():"",ST=h__namespace.forwardRef((e,t)=>{const{prefixCls:r,range:n,className:i,rootClassName:o,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:u}=e,d=yT(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:f,direction:g,getPopupContainer:v}=h__namespace.useContext(st),[m,p]=h__namespace.useState({}),b=(O,k)=>{p(M=>Object.assign(Object.assign({},M),{[O]:k}));},w=(O,k)=>O||(k?g==="rtl"?"left":"right":"top"),S=f("slider",r),[_,y]=bT(S),x=q(i,o,{[`${S}-rtl`]:g==="rtl"},y);g==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[C,A]=h__namespace.useMemo(()=>n?typeof n=="object"?[!0,n.draggableTrack]:[!0,!1]:[!1],[n]),T=(O,k)=>{var M;const{index:E,dragging:$}=k,{tooltip:R={},vertical:I}=e,N=Object.assign({},R),{open:L,placement:D,getPopupContainer:H,prefixCls:V,formatter:W}=N;let B;W||W===null?B=W:s||s===null?B=s:B=wT;const re=B?m[E]||$:!1,z=(M=L??l)!==null&&M!==void 0?M:L===void 0&&re,le=Object.assign(Object.assign({},O.props),{onMouseEnter:()=>b(E,!0),onMouseLeave:()=>b(E,!1)}),ie=f("tooltip",V??a);return h__namespace.createElement(gT,{prefixCls:ie,title:B?B(k.value):"",open:z,placement:w(D??u,I),key:E,overlayClassName:`${S}-tooltip`,getPopupContainer:H||c||v},h__namespace.cloneElement(O,le))};return _(h__namespace.createElement(fT,Object.assign({},d,{step:d.step,range:C,draggableTrack:A,className:x,ref:t,prefixCls:S,handleRender:T})))}),CT=ST;function ET(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ia=(e,t,r)=>{const n=ET(r);return {[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`]}}},xT=e=>uv(e,(t,r)=>{let{textColor:n,lightBorderColor:i,lightColor:o,darkColor:a}=r;return {[`${e.componentCls}-${t}`]:{color:n,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),$T=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:i}=e,o=n-r,a=t-r;return {[i]:Object.assign(Object.assign({},$r(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${i}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-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(${i}-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:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},wp=yn("Tag",e=>{const{fontSize:t,lineHeight:r,lineWidth:n,fontSizeIcon:i}=e,o=Math.round(t*r),a=e.fontSizeSM,s=o-n*2,l=e.colorFillQuaternary,c=e.colorText,u=Ht(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:i-2*n,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [$T(u),xT(u),Ia(u,"success","Success"),Ia(u,"processing","Info"),Ia(u,"error","Error"),Ia(u,"warning","Warning")]});var _T=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:r,checked:n,onChange:i,onClick:o}=e,a=_T(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=h__namespace.useContext(st),l=g=>{i==null||i(!n),o==null||o(g);},c=s("tag",t),[u,d]=wp(c),f=q(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:n},r,d);return u(h__namespace.createElement("span",Object.assign({},a,{className:f,onClick:l})))},PT=OT;var RT=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:r,className:n,rootClassName:i,style:o,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d=!1,bordered:f=!0}=e,g=RT(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:m}=h__namespace.useContext(st),[p,b]=h__namespace.useState(!0);h__namespace.useEffect(()=>{"visible"in g&&b(g.visible);},[g.visible]);const w=Kv(l)||Y2(l),S=Object.assign({backgroundColor:l&&!w?l:void 0},o),_=v("tag",r),[y,x]=wp(_),C=q(_,{[`${_}-${l}`]:w,[`${_}-has-color`]:l&&!w,[`${_}-hidden`]:!p,[`${_}-rtl`]:m==="rtl",[`${_}-borderless`]:!f},n,i,x),A=$=>{$.stopPropagation(),c==null||c($),!$.defaultPrevented&&b(!1);},T=h__namespace.useMemo(()=>d?u?h__namespace.createElement("span",{className:`${_}-close-icon`,onClick:A},u):h__namespace.createElement(bO,{className:`${_}-close-icon`,onClick:A}):null,[d,u,_,A]),O=typeof g.onClick=="function"||a&&a.type==="a",k=s||null,M=k?h__namespace.createElement(h__namespace.Fragment,null,k,h__namespace.createElement("span",null,a)):a,E=h__namespace.createElement("span",Object.assign({},g,{ref:t,className:C,style:S}),M,T);return y(O?h__namespace.createElement(Av,null,E):E)},Sp=h__namespace.forwardRef(TT);Sp.CheckableTag=PT;const no=Sp;function Cp({children:e}){const t=nd();return F(hv,{theme:{algorithm:t?yu.darkAlgorithm:yu.defaultAlgorithm,token:{colorPrimary:"#ff6699"}},children:e})}function MT(e){return F(Sd,{...e,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var Hi={},AT={get exports(){return Hi},set exports(e){Hi=e;}};const NT=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),qh=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},Kh=({clearTimeout:e,setTimeout:t,willResolve:r})=>(n,{value:i,signal:o}={})=>{if(o&&o.aborted)return Promise.reject(qh());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(qh());},d=()=>{o&&o.removeEventListener("abort",u);},f=new Promise((g,v)=>{s=()=>{d(),r?g(i):v(i);},l=v,a=(t||setTimeout)(s,n);});return o&&o.addEventListener("abort",u,{once:!0}),f.clear=()=>{c(a),a=null,s();},f},Ep=e=>{const t=Kh({...e,willResolve:!0});return t.reject=Kh({...e,willResolve:!1}),t.range=(r,n,i)=>t(NT(r,n),i),t},_d=Ep();_d.createWithTimers=Ep;AT.exports=_d;Hi.default=_d;const kT=10*1e3,IT=200;async function xp(e,t){let r=[];const n=()=>{r=Array.from(document.querySelectorAll(e));};n();const i=performance.now();for(;!r.length&&performance.now()-it.remove())}function $p(){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"))}var hl,Xh=ug;hl=Xh.createRoot,Xh.hydrateRoot;var Od={},Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.DEFAULT_ICON_CONFIGS=void 0;Vt.IconConverter=Pp;Vt.IconProvider=void 0;Vt.IconWrapper=BT;var Va=FT(h);function _p(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return (_p=function(n){return n?r:t})(e)}function FT(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var r=_p(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o];}return n.default=e,r&&r.set(e,n),n}var LT=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Yh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n);}return r}function Zh(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function zT(e,t){if(e==null)return {};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var Op={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"};Vt.DEFAULT_ICON_CONFIGS=Op;function HT(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Pp(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return {size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var Rp=(0, Va.createContext)(Op),WT=Rp.Provider;Vt.IconProvider=WT;function BT(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,l=n.theme,c=n.fill,u=n.className,d=n.spin,f=jT(n,LT),g=(0, Va.useContext)(Rp),v=(0, Va.useMemo)(HT,[]),m=Pp(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},g),p=[g.prefix+"-icon"];return p.push(g.prefix+"-icon-"+e),t&&g.rtl&&p.push(g.prefix+"-icon-rtl"),d&&p.push(g.prefix+"-icon-spin"),u&&p.push(u),Va.default.createElement("span",Zh(Zh({},f),{},{className:p.join(" ")}),r(m))}}Object.defineProperty(Od,"__esModule",{value:!0});var Tp=Od.default=void 0,ac=UT(h),VT=Vt;function UT(e){return e&&e.__esModule?e:{default:e}}var GT=(0, VT.IconWrapper)("close",!1,function(e){return ac.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},ac.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ac.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Tp=Od.default=GT;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var Mp=Pd.default=void 0,sc=KT(h),qT=Vt;function KT(e){return e&&e.__esModule?e:{default:e}}var XT=(0, qT.IconWrapper)("config",!1,function(e){return sc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},sc.default.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),sc.default.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))});Mp=Pd.default=XT;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var Ap=Rd.default=void 0,io=ZT(h),YT=Vt;function ZT(e){return e&&e.__esModule?e:{default:e}}var QT=(0, YT.IconWrapper)("distraught-face",!1,function(e){return io.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},io.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),io.default.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),io.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),io.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Ap=Rd.default=QT;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var Np=Td.default=void 0,oo=eM(h),JT=Vt;function eM(e){return e&&e.__esModule?e:{default:e}}var tM=(0, JT.IconWrapper)("info",!0,function(e){return oo.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},oo.default.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),oo.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),oo.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),oo.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Np=Td.default=tM;var Md={};Object.defineProperty(Md,"__esModule",{value:!0});var kp=Md.default=void 0,lc=nM(h),rM=Vt;function nM(e){return e&&e.__esModule?e:{default:e}}var iM=(0, rM.IconWrapper)("loading",!0,function(e){return lc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},lc.default.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),lc.default.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});kp=Md.default=iM;var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});var Ip=Ad.default=void 0,Tr=aM(h),oM=Vt;function aM(e){return e&&e.__esModule?e:{default:e}}var sM=(0, oM.IconWrapper)("loading-three",!1,function(e){return Tr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Tr.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tr.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tr.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tr.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tr.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tr.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tr.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tr.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tr.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Ip=Ad.default=sM;var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});var Fp=Nd.default=void 0,cc=cM(h),lM=Vt;function cM(e){return e&&e.__esModule?e:{default:e}}var uM=(0, lM.IconWrapper)("return",!0,function(e){return cc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},cc.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),cc.default.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Fp=Nd.default=uM;const dM={Close:Tp,Config:Mp,DistraughtFace:Ap,Return:Fp,Loading:kp,LoadingThree:Ip,Info:Np};function Nn({name:e,theme:t,size:r,fill:n,...i}){t||(t="outline"),r||(r=24);const o=nd();n||(n=o?"#fff":"#333");const a=dM[e];return F(a,{theme:t,size:r,fill:n,...i,style:{fontSize:0,...i.style}})}function _i(){for(var e=arguments.length,t=new Array(e),r=0;r0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function rt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value);}catch(s){a={error:s};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return o}function Rt(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n-1&&(i=setTimeout(function(){Ua.delete(e);},t)),Ua.set(e,Er(Er({},r),{timer:i}));},CM=function(e){return Ua.get(e)},Ga=new Map,EM=function(e){return Ga.get(e)},xM=function(e,t){Ga.set(e,t),t.then(function(r){return Ga.delete(e),r}).catch(function(){Ga.delete(e);});},zn={},$M=function(e,t){zn[e]&&zn[e].forEach(function(r){return r(t)});},dc=function(e,t){return zn[e]||(zn[e]=[]),zn[e].push(t),function(){var n=zn[e].indexOf(t);zn[e].splice(n,1);}},_M=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,s=t.setCache,l=t.getCache,c=h.useRef(),u=h.useRef(),d=function(g,v){s?s(v):SM(g,i,v),$M(g,v.data);},f=function(g,v){return v===void 0&&(v=[]),l?l(v):CM(g)};return Hp(function(){if(r){var g=f(r);g&&Object.hasOwnProperty.call(g,"data")&&(e.state.data=g.data,e.state.params=g.params,(a===-1||new Date().getTime()-g.time<=a)&&(e.state.loading=!1)),c.current=dc(r,function(v){e.setState({data:v});});}},[]),ia(function(){var g;(g=c.current)===null||g===void 0||g.call(c);}),r?{onBefore:function(g){var v=f(r,g);return !v||!Object.hasOwnProperty.call(v,"data")?{}:a===-1||new Date().getTime()-v.time<=a?{loading:!1,data:v==null?void 0:v.data,error:void 0,returnNow:!0}:{data:v==null?void 0:v.data,error:void 0}},onRequest:function(g,v){var m=EM(r);return m&&m!==u.current?{servicePromise:m}:(m=g.apply(void 0,Rt([],rt(v),!1)),u.current=m,xM(r,m),{servicePromise:m})},onSuccess:function(g,v){var m;r&&((m=c.current)===null||m===void 0||m.call(c),d(r,{data:g,params:v,time:new Date().getTime()}),c.current=dc(r,function(p){e.setState({data:p});}));},onMutate:function(g){var v;r&&((v=c.current)===null||v===void 0||v.call(c),d(r,{data:g,params:e.state.params,time:new Date().getTime()}),c.current=dc(r,function(m){e.setState({data:m});}));}}:{}};const OM=_M;var PM=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=h.useRef(),s=h.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),i!==void 0&&(l.trailing=i),o!==void 0&&(l.maxWait=o),l},[n,i,o]);return h.useEffect(function(){if(r){var l=e.runAsync.bind(e);return a.current=nm(function(c){c();},r,s),e.runAsync=function(){for(var c=[],u=0;u-1&&Eo.splice(r,1);}}if(oa){var eg=function(){if(!(!kd()||!DM()))for(var e=0;e{co++,document.body.style.overflow="hidden";},EA=()=>{co--,co<0&&(co=0),co===0&&(document.body.style.overflow="");};function Fd({show:e,onHide:t,children:r,clsModalMask:n,clsModal:i,width:o,hideWhenMaskOnClick:a=!1,hideWhenEsc:s=!1}){h.useLayoutEffect(()=>{e?CA():EA();},[e]);const l=h.useRef(null),c=nd(),{bg:u,c:d}=h.useMemo(()=>{const p=window.getComputedStyle(document.body)["background-color"],b=window.getComputedStyle(document.body).color;return {bg:p,c:b}},[c]),f=h.useMemo(()=>c?{"--bg":u,"--c":d,backgroundColor:u,color:d}:{},[u,d,c]),g=h.useId(),v=h.useMemo(()=>{const p=document.createElement("div");return p.setAttribute("data-id","base-modal-"+g),document.body.appendChild(p),p},[]),m=Ie(p=>{var b;(b=l.current)!=null&&b.contains(p.target)||a&&t();});return bt("esc",p=>{e&&s&&(p.preventDefault(),p.stopImmediatePropagation(),setTimeout(t));}),e?ug.createPortal(F("div",{className:q(_r.modalMask,n),onClick:m,children:F("div",{className:q(_r.modal,i),style:{...f,width:o},ref:l,children:r})}),v):null}const Ld=e=>F(Nn,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),xA="_toast-container_mcbuq_1",$A="_single-line_mcbuq_17";function Wt(e,t=2e3){const r=document.createElement("div");r.className=xA,r.innerText=e,!e.includes(` `)&&!e.includes("r.remove(),t);}const _A="请求失败, 请重试 !!!",OA="操作失败, 请重试 !!!";function qp(){return Wt(_A)}function Kp(){return Wt(OA)}function PA(e){const t=Yo({data:Array.from(e||[]),has(r){return this.data.some(n=>n[0]===r)},set(r,n){const i=this.data.find(o=>o[0]===r);return i?i[1]=n:this.data.push([r,n]),this},get(r){var n;return (n=this.data.find(i=>i[0]===r))==null?void 0:n[1]},delete(r){const n=this.data.findIndex(i=>i[0]===r);return n===-1?!1:(this.data.splice(n,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(r){this.data.forEach(n=>{r(n[1],n[0],this);});},keys(){return this.data.map(r=>r[0]).values()},values(){return this.data.map(r=>r[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const Xp="27eb53fc9058f8c3";async function RA(){var c,u;const t=(await Fu.get("https://passport.bilibili.com/login/app/third",{params:{appkey:Xp,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return {errmsg:"你必须登录B站之后才能使用授权",json:t};if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri))return {errmsg:"无法获得授权网址",json:t};const r=t.data.confirm_uri;let n,i;const o=new Promise(d=>{const f=g=>{if(g.origin!="https://www.mcbbs.net"||!g.data)return;const v=g.data.match(/access_key=([0-9a-z]{32})/);if(!v||!v[1])return d({errmsg:"没有获得匹配的密钥"});d(v[1]);};window.addEventListener("message",f),i=()=>window.removeEventListener("message",f),n=setTimeout(()=>{d({errmsg:"获取授权超时"});},10*1e3);}),a=document.createElement("iframe");a.src=r,a.style.display="none",document.body.appendChild(a);function s(){a==null||a.remove(),i==null||i(),i=void 0,n&&(clearTimeout(n),n=void 0);}const l=await o;return s(),l}async function TA(){const e=await RA();if(typeof e=="object"&&"errmsg"in e){Wt(e.errmsg);return}const t=e;return Oe.accessKey=t,Wt("获取成功"),t}function MA(){Oe.accessKey="",Wt("已删除 access_key");}const Yp="https://api.bilibili.com",Zp="https://app.bilibili.com",vl=Fu.create({baseURL:Yp});vl.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const pl=Fu.create({adapter:t0});pl.interceptors.request.use(function(e){return e.params={appkey:Xp,access_key:Oe.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});pl.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,r=new Uint8Array(e.data),n=t.decode(r);e.data=n;try{e.data=JSON.parse(n);}catch{}}return e});function AA(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw Wt("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}const ao=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Qp=new Set,_u=typeof process=="object"&&process?process:{},Jp=(e,t,r,n)=>{typeof _u.emitWarning=="function"?_u.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`);};let ws=globalThis.AbortController,rg=globalThis.AbortSignal;var cg;if(typeof ws>"u"){rg=class{constructor(){Ke(this,"onabort");Ke(this,"_onabort",[]);Ke(this,"reason");Ke(this,"aborted",!1);}addEventListener(n,i){this._onabort.push(i);}},ws=class{constructor(){Ke(this,"signal",new rg);t();}abort(n){var i,o;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(const a of this.signal._onabort)a(n);(o=(i=this.signal).onabort)==null||o.call(i,n);}}};let e=((cg=_u.env)==null?void 0:cg.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,Jp("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t));};}const NA=e=>!Qp.has(e),_n=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),eb=e=>_n(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?qa:null:null;class qa extends Array{constructor(t){super(t),this.fill(0);}}var Pi;const Si=class{constructor(t,r){Ke(this,"heap");Ke(this,"length");if(!P(Si,Pi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0;}static create(t){const r=eb(t);if(!r)return [];ne(Si,Pi,!0);const n=new Si(t,r);return ne(Si,Pi,!1),n}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Ka=Si;Pi=new WeakMap,ge(Ka,Pi,!1);var br,Qt,Nr,yr,Ri,ct,wr,ut,Xe,de,Nt,Jt,Pt,pt,Sr,Ct,tn,rn,Cr,kr,Tn,Dt,Wo,Pu,Gn,nn,Bo,er,$s,tb,qn,Ti,Vo,Ir,On,Fr,Pn,Uo,Ru,Mi,Xa,Ai,Ya,Ve,Je,Go,Tu,Kn,uo;const Ud=class{constructor(t){ge(this,Wo);ge(this,$s);ge(this,Ir);ge(this,Fr);ge(this,Uo);ge(this,Mi);ge(this,Ai);ge(this,Ve);ge(this,Go);ge(this,Kn);ge(this,br,void 0);ge(this,Qt,void 0);ge(this,Nr,void 0);ge(this,yr,void 0);ge(this,Ri,void 0);Ke(this,"ttl");Ke(this,"ttlResolution");Ke(this,"ttlAutopurge");Ke(this,"updateAgeOnGet");Ke(this,"updateAgeOnHas");Ke(this,"allowStale");Ke(this,"noDisposeOnSet");Ke(this,"noUpdateTTL");Ke(this,"maxEntrySize");Ke(this,"sizeCalculation");Ke(this,"noDeleteOnFetchRejection");Ke(this,"noDeleteOnStaleGet");Ke(this,"allowStaleOnFetchAbort");Ke(this,"allowStaleOnFetchRejection");Ke(this,"ignoreFetchAbort");ge(this,ct,void 0);ge(this,wr,void 0);ge(this,ut,void 0);ge(this,Xe,void 0);ge(this,de,void 0);ge(this,Nt,void 0);ge(this,Jt,void 0);ge(this,Pt,void 0);ge(this,pt,void 0);ge(this,Sr,void 0);ge(this,Ct,void 0);ge(this,tn,void 0);ge(this,rn,void 0);ge(this,Cr,void 0);ge(this,kr,void 0);ge(this,Tn,void 0);ge(this,Dt,void 0);ge(this,Gn,()=>{});ge(this,nn,()=>{});ge(this,Bo,()=>{});ge(this,er,()=>!1);ge(this,qn,t=>{});ge(this,Ti,(t,r,n)=>{});ge(this,Vo,(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:f,maxSize:g=0,maxEntrySize:v=0,sizeCalculation:m,fetchMethod:p,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:_,ignoreFetchAbort:y}=t;if(r!==0&&!_n(r))throw new TypeError("max option must be a nonnegative integer");const x=r?eb(r):Array;if(!x)throw new Error("invalid max value: "+r);if(ne(this,br,r),ne(this,Qt,g),this.maxEntrySize=v||P(this,Qt),this.sizeCalculation=m,this.sizeCalculation){if(!P(this,Qt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(p!==void 0&&typeof p!="function")throw new TypeError("fetchMethod must be a function if specified");if(ne(this,Ri,p),ne(this,Tn,!!p),ne(this,ut,new Map),ne(this,Xe,new Array(r).fill(void 0)),ne(this,de,new Array(r).fill(void 0)),ne(this,Nt,new x(r)),ne(this,Jt,new x(r)),ne(this,Pt,0),ne(this,pt,0),ne(this,Sr,Ka.create(r)),ne(this,ct,0),ne(this,wr,0),typeof c=="function"&&ne(this,Nr,c),typeof u=="function"?(ne(this,yr,u),ne(this,Ct,[])):(ne(this,yr,void 0),ne(this,Ct,void 0)),ne(this,kr,!!P(this,Nr)),ne(this,Dt,!!P(this,yr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!y,this.maxEntrySize!==0){if(P(this,Qt)!==0&&!_n(P(this,Qt)))throw new TypeError("maxSize must be a positive integer if specified");if(!_n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");J(this,$s,tb).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=_n(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!_n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");J(this,Wo,Pu).call(this);}if(P(this,br)===0&&this.ttl===0&&P(this,Qt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!P(this,br)&&!P(this,Qt)){const C="LRU_CACHE_UNBOUNDED";NA(C)&&(Qp.add(C),Jp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",C,Ud));}}static unsafeExposeInternals(t){return {starts:P(t,rn),ttls:P(t,Cr),sizes:P(t,tn),keyMap:P(t,ut),keyList:P(t,Xe),valList:P(t,de),next:P(t,Nt),prev:P(t,Jt),get head(){return P(t,Pt)},get tail(){return P(t,pt)},free:P(t,Sr),isBackgroundFetch:r=>{var n;return J(n=t,Ve,Je).call(n,r)},backgroundFetch:(r,n,i,o)=>{var a;return J(a=t,Ai,Ya).call(a,r,n,i,o)},moveToTail:r=>{var n;return J(n=t,Kn,uo).call(n,r)},indexes:r=>{var n;return J(n=t,Ir,On).call(n,r)},rindexes:r=>{var n;return J(n=t,Fr,Pn).call(n,r)},isStale:r=>{var n;return P(n=t,er).call(n,r)}}}get max(){return P(this,br)}get maxSize(){return P(this,Qt)}get calculatedSize(){return P(this,wr)}get size(){return P(this,ct)}get fetchMethod(){return P(this,Ri)}get dispose(){return P(this,Nr)}get disposeAfter(){return P(this,yr)}getRemainingTTL(t){return P(this,ut).has(t)?1/0:0}*entries(){for(const t of J(this,Ir,On).call(this))P(this,de)[t]!==void 0&&P(this,Xe)[t]!==void 0&&!J(this,Ve,Je).call(this,P(this,de)[t])&&(yield [P(this,Xe)[t],P(this,de)[t]]);}*rentries(){for(const t of J(this,Fr,Pn).call(this))P(this,de)[t]!==void 0&&P(this,Xe)[t]!==void 0&&!J(this,Ve,Je).call(this,P(this,de)[t])&&(yield [P(this,Xe)[t],P(this,de)[t]]);}*keys(){for(const t of J(this,Ir,On).call(this)){const r=P(this,Xe)[t];r!==void 0&&!J(this,Ve,Je).call(this,P(this,de)[t])&&(yield r);}}*rkeys(){for(const t of J(this,Fr,Pn).call(this)){const r=P(this,Xe)[t];r!==void 0&&!J(this,Ve,Je).call(this,P(this,de)[t])&&(yield r);}}*values(){for(const t of J(this,Ir,On).call(this))P(this,de)[t]!==void 0&&!J(this,Ve,Je).call(this,P(this,de)[t])&&(yield P(this,de)[t]);}*rvalues(){for(const t of J(this,Fr,Pn).call(this))P(this,de)[t]!==void 0&&!J(this,Ve,Je).call(this,P(this,de)[t])&&(yield P(this,de)[t]);}[Symbol.iterator](){return this.entries()}find(t,r={}){for(const n of J(this,Ir,On).call(this)){const i=P(this,de)[n],o=J(this,Ve,Je).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,P(this,Xe)[n],this))return this.get(P(this,Xe)[n],r)}}forEach(t,r=this){for(const n of J(this,Ir,On).call(this)){const i=P(this,de)[n],o=J(this,Ve,Je).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,P(this,Xe)[n],this);}}rforEach(t,r=this){for(const n of J(this,Fr,Pn).call(this)){const i=P(this,de)[n],o=J(this,Ve,Je).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,P(this,Xe)[n],this);}}purgeStale(){let t=!1;for(const r of J(this,Fr,Pn).call(this,{allowStale:!0}))P(this,er).call(this,r)&&(this.delete(P(this,Xe)[r]),t=!0);return t}dump(){const t=[];for(const r of J(this,Ir,On).call(this,{allowStale:!0})){const n=P(this,Xe)[r],i=P(this,de)[r],o=J(this,Ve,Je).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;const a={value:o};if(P(this,Cr)&&P(this,rn)){a.ttl=P(this,Cr)[r];const s=ao.now()-P(this,rn)[r];a.start=Math.floor(Date.now()-s);}P(this,tn)&&(a.size=P(this,tn)[r]),t.unshift([n,a]);}return t}load(t){this.clear();for(const[r,n]of t){if(n.start){const i=Date.now()-n.start;n.start=ao.now()-i;}this.set(r,n.value,n);}}set(t,r,n={}){var f,g,v;const{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=n;let{noUpdateTTL:c=this.noUpdateTTL}=n;const u=P(this,Vo).call(this,t,r,n.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=P(this,ct)===0?void 0:P(this,ut).get(t);if(d===void 0)d=P(this,ct)===0?P(this,pt):P(this,Sr).length!==0?P(this,Sr).pop():P(this,ct)===P(this,br)?J(this,Mi,Xa).call(this,!1):P(this,ct),P(this,Xe)[d]=t,P(this,de)[d]=r,P(this,ut).set(t,d),P(this,Nt)[P(this,pt)]=d,P(this,Jt)[d]=P(this,pt),ne(this,pt,d),ya(this,ct)._++,P(this,Ti).call(this,d,u,l),l&&(l.set="add"),c=!1;else {J(this,Kn,uo).call(this,d);const m=P(this,de)[d];if(r!==m){if(P(this,Tn)&&J(this,Ve,Je).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(P(this,kr)&&((f=P(this,Nr))==null||f.call(this,m,t,"set")),P(this,Dt)&&((g=P(this,Ct))==null||g.push([m,t,"set"]))),P(this,qn).call(this,d),P(this,Ti).call(this,d,u,l),P(this,de)[d]=r,l){l.set="replace";const p=m&&J(this,Ve,Je).call(this,m)?m.__staleWhileFetching:m;p!==void 0&&(l.oldValue=p);}}else l&&(l.set="update");}if(i!==0&&!P(this,Cr)&&J(this,Wo,Pu).call(this),P(this,Cr)&&(c||P(this,Bo).call(this,d,i,o),l&&P(this,nn).call(this,l,d)),!a&&P(this,Dt)&&P(this,Ct)){const m=P(this,Ct);let p;for(;p=m==null?void 0:m.shift();)(v=P(this,yr))==null||v.call(this,...p);}return this}pop(){var t;try{for(;P(this,ct);){const r=P(this,de)[P(this,Pt)];if(J(this,Mi,Xa).call(this,!0),J(this,Ve,Je).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(P(this,Dt)&&P(this,Ct)){const r=P(this,Ct);let n;for(;n=r==null?void 0:r.shift();)(t=P(this,yr))==null||t.call(this,...n);}}}has(t,r={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=P(this,ut).get(t);if(o!==void 0){const a=P(this,de)[o];if(J(this,Ve,Je).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(P(this,er).call(this,o))i&&(i.has="stale",P(this,nn).call(this,i,o));else return n&&P(this,Gn).call(this,o),i&&(i.has="hit",P(this,nn).call(this,i,o)),!0}else i&&(i.has="miss");return !1}peek(t,r={}){const{allowStale:n=this.allowStale}=r,i=P(this,ut).get(t);if(i!==void 0&&(n||!P(this,er).call(this,i))){const o=P(this,de)[i];return J(this,Ve,Je).call(this,o)?o.__staleWhileFetching:o}}async fetch(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:m,forceRefresh:p=!1,status:b,signal:w}=r;if(!P(this,Tn))return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:b});const S={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:v,ignoreFetchAbort:g,status:b,signal:w};let _=P(this,ut).get(t);if(_===void 0){b&&(b.fetch="miss");const y=J(this,Ai,Ya).call(this,t,_,S,m);return y.__returned=y}else {const y=P(this,de)[_];if(J(this,Ve,Je).call(this,y)){const O=n&&y.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",O&&(b.returnedStale=!0)),O?y.__staleWhileFetching:y.__returned=y}const x=P(this,er).call(this,_);if(!p&&!x)return b&&(b.fetch="hit"),J(this,Kn,uo).call(this,_),i&&P(this,Gn).call(this,_),b&&P(this,nn).call(this,b,_),y;const C=J(this,Ai,Ya).call(this,t,_,S,m),T=C.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=x?"stale":"refresh",T&&x&&(b.returnedStale=!0)),T?C.__staleWhileFetching:C.__returned=C}}get(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=r,s=P(this,ut).get(t);if(s!==void 0){const l=P(this,de)[s],c=J(this,Ve,Je).call(this,l);return a&&P(this,nn).call(this,a,s),P(this,er).call(this,s)?(a&&(a.get="stale"),c?(a&&n&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?l.__staleWhileFetching:void 0):(o||this.delete(t),a&&n&&(a.returnedStale=!0),n?l:void 0)):(a&&(a.get="hit"),c?l.__staleWhileFetching:(J(this,Kn,uo).call(this,s),i&&P(this,Gn).call(this,s),l))}else a&&(a.get="miss");}delete(t){var n,i,o,a;let r=!1;if(P(this,ct)!==0){const s=P(this,ut).get(t);if(s!==void 0)if(r=!0,P(this,ct)===1)this.clear();else {P(this,qn).call(this,s);const l=P(this,de)[s];J(this,Ve,Je).call(this,l)?l.__abortController.abort(new Error("deleted")):(P(this,kr)||P(this,Dt))&&(P(this,kr)&&((n=P(this,Nr))==null||n.call(this,l,t,"delete")),P(this,Dt)&&((i=P(this,Ct))==null||i.push([l,t,"delete"]))),P(this,ut).delete(t),P(this,Xe)[s]=void 0,P(this,de)[s]=void 0,s===P(this,pt)?ne(this,pt,P(this,Jt)[s]):s===P(this,Pt)?ne(this,Pt,P(this,Nt)[s]):(P(this,Nt)[P(this,Jt)[s]]=P(this,Nt)[s],P(this,Jt)[P(this,Nt)[s]]=P(this,Jt)[s]),ya(this,ct)._--,P(this,Sr).push(s);}}if(P(this,Dt)&&((o=P(this,Ct))!=null&&o.length)){const s=P(this,Ct);let l;for(;l=s==null?void 0:s.shift();)(a=P(this,yr))==null||a.call(this,...l);}return r}clear(){var t,r,n;for(const i of J(this,Fr,Pn).call(this,{allowStale:!0})){const o=P(this,de)[i];if(J(this,Ve,Je).call(this,o))o.__abortController.abort(new Error("deleted"));else {const a=P(this,Xe)[i];P(this,kr)&&((t=P(this,Nr))==null||t.call(this,o,a,"delete")),P(this,Dt)&&((r=P(this,Ct))==null||r.push([o,a,"delete"]));}}if(P(this,ut).clear(),P(this,de).fill(void 0),P(this,Xe).fill(void 0),P(this,Cr)&&P(this,rn)&&(P(this,Cr).fill(0),P(this,rn).fill(0)),P(this,tn)&&P(this,tn).fill(0),ne(this,Pt,0),ne(this,pt,0),P(this,Sr).length=0,ne(this,wr,0),ne(this,ct,0),P(this,Dt)&&P(this,Ct)){const i=P(this,Ct);let o;for(;o=i==null?void 0:i.shift();)(n=P(this,yr))==null||n.call(this,...o);}}};let Ou=Ud;br=new WeakMap,Qt=new WeakMap,Nr=new WeakMap,yr=new WeakMap,Ri=new WeakMap,ct=new WeakMap,wr=new WeakMap,ut=new WeakMap,Xe=new WeakMap,de=new WeakMap,Nt=new WeakMap,Jt=new WeakMap,Pt=new WeakMap,pt=new WeakMap,Sr=new WeakMap,Ct=new WeakMap,tn=new WeakMap,rn=new WeakMap,Cr=new WeakMap,kr=new WeakMap,Tn=new WeakMap,Dt=new WeakMap,Wo=new WeakSet,Pu=function(){const t=new qa(P(this,br)),r=new qa(P(this,br));ne(this,Cr,t),ne(this,rn,r),ne(this,Bo,(o,a,s=ao.now())=>{if(r[o]=a!==0?s:0,t[o]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{P(this,er).call(this,o)&&this.delete(P(this,Xe)[o]);},a+1);l.unref&&l.unref();}}),ne(this,Gn,o=>{r[o]=t[o]!==0?ao.now():0;}),ne(this,nn,(o,a)=>{if(t[a]){const s=t[a],l=r[a];o.ttl=s,o.start=l,o.now=n||i(),o.remainingTTL=o.now+s-l;}});let n=0;const i=()=>{const o=ao.now();if(this.ttlResolution>0){n=o;const a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref();}return o};this.getRemainingTTL=o=>{const a=P(this,ut).get(o);return a===void 0?0:t[a]===0||r[a]===0?1/0:r[a]+t[a]-(n||i())},ne(this,er,o=>t[o]!==0&&r[o]!==0&&(n||i())-r[o]>t[o]);},Gn=new WeakMap,nn=new WeakMap,Bo=new WeakMap,er=new WeakMap,$s=new WeakSet,tb=function(){const t=new qa(P(this,br));ne(this,wr,0),ne(this,tn,t),ne(this,qn,r=>{ne(this,wr,P(this,wr)-t[r]),t[r]=0;}),ne(this,Vo,(r,n,i,o)=>{if(J(this,Ve,Je).call(this,n))return 0;if(!_n(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!_n(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),ne(this,Ti,(r,n,i)=>{if(t[r]=n,P(this,Qt)){const o=P(this,Qt)-t[r];for(;P(this,wr)>o;)J(this,Mi,Xa).call(this,!0);}ne(this,wr,P(this,wr)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=P(this,wr));});},qn=new WeakMap,Ti=new WeakMap,Vo=new WeakMap,Ir=new WeakSet,On=function*({allowStale:t=this.allowStale}={}){if(P(this,ct))for(let r=P(this,pt);!(!J(this,Uo,Ru).call(this,r)||((t||!P(this,er).call(this,r))&&(yield r),r===P(this,Pt)));)r=P(this,Jt)[r];},Fr=new WeakSet,Pn=function*({allowStale:t=this.allowStale}={}){if(P(this,ct))for(let r=P(this,Pt);!(!J(this,Uo,Ru).call(this,r)||((t||!P(this,er).call(this,r))&&(yield r),r===P(this,pt)));)r=P(this,Nt)[r];},Uo=new WeakSet,Ru=function(t){return t!==void 0&&P(this,ut).get(P(this,Xe)[t])===t},Mi=new WeakSet,Xa=function(t){var o,a;const r=P(this,Pt),n=P(this,Xe)[r],i=P(this,de)[r];return P(this,Tn)&&J(this,Ve,Je).call(this,i)?i.__abortController.abort(new Error("evicted")):(P(this,kr)||P(this,Dt))&&(P(this,kr)&&((o=P(this,Nr))==null||o.call(this,i,n,"evict")),P(this,Dt)&&((a=P(this,Ct))==null||a.push([i,n,"evict"]))),P(this,qn).call(this,r),t&&(P(this,Xe)[r]=void 0,P(this,de)[r]=void 0,P(this,Sr).push(r)),P(this,ct)===1?(ne(this,Pt,ne(this,pt,0)),P(this,Sr).length=0):ne(this,Pt,P(this,Nt)[r]),P(this,ut).delete(n),ya(this,ct)._--,r},Ai=new WeakSet,Ya=function(t,r,n,i){const o=r===void 0?void 0:P(this,de)[r];if(J(this,Ve,Je).call(this,o))return o;const a=new ws,{signal:s}=n;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const l={signal:a.signal,options:n,context:i},c=(m,p=!1)=>{const{aborted:b}=a.signal,w=n.ignoreFetchAbort&&m!==void 0;if(n.status&&(b&&!p?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,w&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!w&&!p)return d(a.signal.reason);const S=g;return P(this,de)[r]===g&&(m===void 0?S.__staleWhileFetching?P(this,de)[r]=S.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,m,l.options))),m},u=m=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=m),d(m)),d=m=>{const{aborted:p}=a.signal,b=p&&n.allowStaleOnFetchAbort,w=b||n.allowStaleOnFetchRejection,S=w||n.noDeleteOnFetchRejection,_=g;if(P(this,de)[r]===g&&(!S||_.__staleWhileFetching===void 0?this.delete(t):b||(P(this,de)[r]=_.__staleWhileFetching)),w)return n.status&&_.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),_.__staleWhileFetching;if(_.__returned===_)throw m},f=(m,p)=>{var w;const b=(w=P(this,Ri))==null?void 0:w.call(this,t,o,l);b&&b instanceof Promise&&b.then(S=>m(S),p),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(),n.allowStaleOnFetchAbort&&(m=S=>c(S,!0)));});};n.status&&(n.status.fetchDispatched=!0);const g=new Promise(f).then(c,u),v=Object.assign(g,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(t,v,{...l.options,status:void 0}),r=P(this,ut).get(t)):P(this,de)[r]=v,v},Ve=new WeakSet,Je=function(t){if(!P(this,Tn))return !1;const r=t;return !!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof ws},Go=new WeakSet,Tu=function(t,r){P(this,Jt)[r]=t,P(this,Nt)[t]=r;},Kn=new WeakSet,uo=function(t){t!==P(this,pt)&&(t===P(this,Pt)?ne(this,Pt,P(this,Nt)[t]):J(this,Go,Tu).call(this,P(this,Jt)[t],P(this,Nt)[t]),J(this,Go,Tu).call(this,P(this,pt),t),ne(this,pt,t));};async function kA(e){return (await vl.get("/pvideo",{params:{aid:e}})).data.data}async function IA(e){return []}const hc=new Ou({max:200});async function FA(e){if(hc.has(e))return hc.get(e);const[t,r]=await Promise.all([kA(e),IA()]);return hc.set(e,{pvideoData:t,dmData:r}),{pvideoData:t,dmData:r}}function rb(e){return async function(r){const n=new FormData;n.append("aid",r),n.append("csrf",AA());const o=(await vl.post("/x/v2/history/toview/"+e,n,{withCredentials:!0})).data,a=(o==null?void 0:o.code)===0&&(o==null?void 0:o.message)==="0";return a||Wt((o==null?void 0:o.message)||"出错了"),a}}const LA=rb("add"),DA=rb("del"),nb=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(r,n){const o=(await pl.get(Zp+t,{params:{goto:r.goto,id:r.param,reason_id:n,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return (o==null?void 0:o.code)===0&&(o==null?void 0:o.message)==="0"}},jA=nb("dislike"),zA=nb("cancel"),HA="_modal_1rloz_1",WA="_title-desc_1rloz_4",BA="_reason-list_1rloz_8",VA="_reason_1rloz_8",UA="_active_1rloz_29",GA="_reason-no_1rloz_33",qA="_tips-container_1rloz_47",KA="_tips_1rloz_47",ur={modal:HA,titleDesc:WA,reasonList:BA,reason:VA,active:UA,reasonNo:GA,tipsContainer:qA,tips:KA},bl=PA();function XA(){return Gi(bl)}function YA(e){const t=XA();if(e)return t.get(e)}function ZA({show:e,onHide:t,item:r}){const[n,i]=h.useState(!1),o=Ie(async g=>{if(!r)return;let v=!1,m;try{i(!0),v=await jA(r,g.id);}catch(p){m=p;}finally{i(!1);}if(m)return console.error(m.stack||m),qp();v?Wt("已标记不想看"):Kp(),v&&(bl.set(r.param,{...g}),t());}),a=h.useMemo(()=>{var g;return ((g=r==null?void 0:r.three_point)==null?void 0:g.dislike_reasons)||[]},[r]),s=()=>!!e&&!!r,l=["1","2","3","4","5","6"];bt(l,g=>{if(!s()||!l.includes(g.key))return;const v=Number(g.key)-1;u(v);const m=document.querySelectorAll(`.${ur.reason}`)[v]||null;m==null||m.click();});const[c,u]=h.useState(a.length-1);mA(()=>{u(a.length-1);},[a]);const d=g=>()=>{if(!s())return;const v=c+g;v<0||v>a.length-1||u(v);};bt("leftarrow",d(-1)),bt("rightarrow",d(1)),bt("uparrow",d(-2)),bt("downarrow",d(2)),bt("enter",g=>{var v;s()&&(c<0||c>a.length-1||(g.preventDefault(),g.stopImmediatePropagation(),(v=document.querySelector(`.${ur.reason}.${ur.active}`))==null||v.click()));});const f=h.useMemo(()=>{var g;return ((g=a[c])==null?void 0:g.name)||""},[a,c]);return U(Fd,{show:e,onHide:t,clsModal:ur.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[U("div",{className:_r.modalHeader,children:[U("div",{className:_r.modalTitle,children:["我不想看",F("span",{className:ur.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),F("div",{className:"space",style:{flex:1}}),F(Ld,{onClick:t})]}),U("div",{className:_r.modalBody,children:[F("div",{className:ur.reasonList,children:a.map((g,v)=>U("button",{className:q(ur.reason,{[ur.active]:v===c}),"data-id":g.id,onClick:()=>{u(v),o(g);},disabled:n,children:[F("span",{className:ur.reasonNo,children:v+1}),g.name]},g.id))}),U("div",{className:ur.tipsContainer,children:[U("div",{className:ur.tips,children:[F(Nn,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),f&&U("div",{className:ur.tips,children:[F(Nn,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const Za={show:!1,onHide:ob,item:null},ib=Yo({value:Za.show}),QA=function(){return Gi(ib).value};function ob(){setTimeout(()=>{ab({show:!1,item:null});});}function ab(e){Object.assign(Za,e),ib.value=Za.show,JA().render(F(ZA,{...Za,onHide:ob}));}let gc;function JA(){if(!gc){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),gc=hl(e);}return gc}function eN(e){e!=null&&e.param&&bl.has(e.param)||ab({show:!0,item:e});}function tN(e){if(!e)return "00:00";const t=Math.trunc(e/3600);e-=t*3600;const r=Math.trunc(e/60);e-=r*60;const i=[t,r,e];return i[0]===0&&i.shift(),i.map(a=>hE(a.toString(),2,"0")).join(":")}function mc(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function ng(e){if(e){if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const rN="_bili-video-card_mlccj_1",nN="_image-wrapper_mlccj_4",iN="_preview-card-wrapper_mlccj_8",oN="_preview-card-inner_mlccj_21",aN="_watch-later_mlccj_25",sN="_badge_mlccj_28",lN="_recommend-reason_mlccj_37",cN="_bangumi-desc_mlccj_52",uN="_btn-dislike_mlccj_55",dN="_btn-dislike-icon_mlccj_70",fN="_btn-dislike-tip_mlccj_77",hN="_disliked-wrapper_mlccj_92",gN="_dislike-content-cover_mlccj_106",mN="_dislike-content-cover-inner_mlccj_112",vN="_dislike-icon_mlccj_123",pN="_dislike-reason_mlccj_126",bN="_dislike-desc_mlccj_130",yN="_dislike-content-action_mlccj_134",wN="_skeleton-active_mlccj_151",SN="_ant-skeleton-loading_mlccj_1",dt={biliVideoCard:rN,imageWrapper:nN,previewCardWrapper:iN,previewCardInner:oN,watchLater:aN,badge:sN,recommendReason:lN,bangumiDesc:cN,btnDislike:uN,btnDislikeIcon:dN,btnDislikeTip:fN,dislikedWrapper:hN,dislikeContentCover:gN,dislikeContentCoverInner:mN,dislikeIcon:vN,dislikeReason:pN,dislikeDesc:bN,dislikeContentAction:yN,skeletonActive:wN,antSkeletonLoading:SN};function CN(...e){for(const t of e)if(!isNaN(t))return t;return 0}function EN({className:e,videoDuration:t,pvideo:r,mouseEnterRelativeX:n,previewAnimationProgress:i}){const o=h.useRef(null),a=fA(o),[s,l]=h.useState(()=>({width:0,height:0}));Id(()=>{var f;const d=(f=o.current)==null?void 0:f.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof i=="number")c=i;else {const d=CN(a.elementX,n||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:r,elWidth:s.width,elHeight:s.height,progress:c};return F("div",{ref:o,className:q(dt.previewCardWrapper,e),children:!!(r&&s.width&&s.height&&c)&&F(xN,{...u})})}function xN({videoDuration:e,pvideo:t,elWidth:r,elHeight:n,progress:i}){var y;const o=Math.floor((e||0)*i);let a=h.useMemo(()=>{const x=(t==null?void 0:t.index)||[];let C=_N(x,o);return C!==-1?C:o>x[x.length-1]?(C=Math.floor(x.length*i)-1,C<0&&(C=0),C):0},[t,o]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const f=Math.floor(a/d),g=a-f*d,v=((y=t.image)==null?void 0:y[f])||"",m=Math.floor(g/s)+1,p=g-(m-1)*s,b=r*s,w=n*l,S=(m-1)*n,_=(p-1)*r;return F("div",{className:dt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${_}px -${S}px`,backgroundSize:`${b}px ${w}px`},children:F($N,{progress:i})})}function $N({progress:e}){return F("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:F("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${e*100}%`}})})}function _N(e,t){let r=0,n=e.length-1,i=-1;for(;r<=n;){const s=Math.floor((r+n)/2),l=e[s];if(t===l)return s;l{const{cover_left_icon_1:A,cover_left_text_1:T,cover_left_1_content_description:O,cover_left_icon_2:k,cover_left_text_2:M,cover_left_2_content_description:E}=e;if(wi[A]==="play")return ng(T);if(wi[k]==="play")return ng(M)})(),s=t?e.stat.like:void 0,l=void 0,c=void 0,u=e.title,d=t?e.pic:e.cover,f=t?e.pubdate:void 0,g=(t?e.duration:(y=e.player_args)==null?void 0:y.duration)||0,v=t?e.owner.name:e.args.up_name,m=t?e.owner.face:void 0,p=t?e.owner.mid:e.args.up_id,b=void 0,w=t?void 0:e.badge,S=t?void 0:((x=e.desc_button)==null?void 0:x.text)||"",_=t?(C=e.rcmd_reason)==null?void 0:C.content:e.rcmd_reason;return {isPc:t,isApp:r,id:n,bvid:i,goto:o,play:a,like:s,coin:l,danmaku:c,title:u,coverRaw:d,pubdate:f,duration:g,name:v,face:m,mid:p,favorite:b,bangumiBadge:w,bangumiDesc:S,rcmd_reason:_}}const ON=ep().format("YYYY"),PN=e=>{if(!e)return "";const t=ep.unix(e);return t.format("YYYY")===ON?t.format("M-D"):t.format("YY-M-D")},RN=e=>(e||"").replace(/^http:\/\//,"https://"),vc={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},wi={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},TN={bangumiFollow:1.3},Ss=h.memo(h.forwardRef(function({style:t,className:r,item:n,loading:i,active:o,...a},s){i=i??!n;const l=U("div",{className:q("bili-video-card__skeleton",{hide:!i,[dt.skeletonActive]:i}),children:[F("div",{className:"bili-video-card__skeleton--cover"}),F("div",{className:"bili-video-card__skeleton--info",children:U("div",{className:"bili-video-card__skeleton--right",children:[F("p",{className:"bili-video-card__skeleton--text"}),F("p",{className:"bili-video-card__skeleton--text short"}),F("p",{className:"bili-video-card__skeleton--light"})]})})]}),c=YA((n==null?void 0:n.api)==="app"&&n.param),u=h.useRef(null),d=h.useRef(null);return h.useImperativeHandle(s,()=>({async onCancelDislike(){var f;await((f=u.current)==null?void 0:f.onCancelDislike());},async onToggleWatchLater(){var f;await((f=d.current)==null?void 0:f.onToggleWatchLater());},onTriggerDislike(){var f;(f=d.current)==null||f.onTriggerDislike();},onStartPreviewAnimation(){var f;(f=d.current)==null||f.onStartPreviewAnimation();},onHotkeyPreviewAnimation(){var f;(f=d.current)==null||f.onHotkeyPreviewAnimation();}}),[u,d]),U("div",{style:t,className:q("bili-video-card",dt.biliVideoCard,r),"data-report":"partition_recommend.content",...a,children:[l,!i&&n&&(c?F(MN,{ref:u,item:n,dislikedReason:c}):F(AN,{ref:d,item:n,active:o}))]})})),MN=h.memo(h.forwardRef(function({dislikedReason:t,item:r},n){const i=Ie(async()=>{if(!(t!=null&&t.id))return;let o=!1,a;try{o=await zA(r,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),qp();o?Wt("已撤销"):Kp(),o&&bl.delete(r.param);});return h.useImperativeHandle(n,()=>({onCancelDislike:i}),[]),U("div",{className:q(dt.dislikedWrapper),children:[F("div",{className:dt.dislikeContentCover,children:U("div",{className:dt.dislikeContentCoverInner,children:[F(Nn,{name:"DistraughtFace",size:32,className:dt.dislikeIcon}),F("div",{className:dt.dislikeReason,children:t==null?void 0:t.name}),F("div",{className:dt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),F("div",{className:dt.dislikeContentAction,children:U("button",{onClick:i,children:[F(Nn,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),AN=h.memo(h.forwardRef(function({item:t,active:r=!1},n){const i=t.api==="pc",o=t.api==="app",{id:a,bvid:s,goto:l,play:c,like:u,coin:d,danmaku:f,title:g,coverRaw:v,pubdate:m,duration:p,name:b,face:w,mid:S,favorite:_,bangumiBadge:y,bangumiDesc:x,rcmd_reason:C}=sb(t);["av","bangumi"].includes(l)||console.warn(`[${Vi}]: none (av,bangumi) goto type %s`,l,t);const A=h.useMemo(()=>PN(m),[m]),T=h.useMemo(()=>RN(v),[v]),[O,k]=h.useState(null),M=h.useRef(!1),E=Ie(async()=>{if(!O&&!M.current)try{M.current=!0,k(await FA(a));}finally{M.current=!1;}}),$=h.useRef(null),[R,I]=h.useState(void 0);Zn("mouseenter",be=>{var _e;const $e=(_e=$.current)==null?void 0:_e.getBoundingClientRect();if(!$e)return;const{x:Ue}=$e,Ft=be.pageX-window.pageXOffset-Ue;I(Ft);},{target:$});const N=fc($),{autoPreviewWhenHover:L}=fn(),{onStartPreviewAnimation:D,onHotkeyPreviewAnimation:H,previewAnimationProgress:V}=NN({id:a,title:g,autoPreviewWhenHover:L,active:r,tryFetchVideoData:E,videoPreviewWrapperRef:$});ys(()=>{r&&(unsafeWindow[`${oy}_activeItem`]=t,Oe.autoPreviewWhenKeyboardSelect&&D());},[r]);const W=h.useRef(null),B=fc(W),[re,z]=h.useState(!1),{accessKey:le}=fn(),ie=!!le;h.useEffect(()=>{N&&E();},[N]),h.useImperativeHandle(n,()=>({onToggleWatchLater:pe,onTriggerDislike:ve,onStartPreviewAnimation:D,onHotkeyPreviewAnimation:H}),[]);const[me,ee]=h.useState(!1),pe=Ie(async be=>{if(be==null||be.preventDefault(),me)return;ee(!0);const $e=re?DA:LA;let Ue=!1;try{Ue=await $e(a);}finally{ee(!1);}Ue&&z(Ft=>!Ft);}),Pe=h.useRef(null),De=fc(Pe),ve=Ie(be=>{be==null||be.stopPropagation(),be==null||be.preventDefault(),o&&eN(t);}),xe=t.goto==="bangumi",Me=t.goto==="av",He=i?Me&&s?`/video/${s}`:t.uri:Me?`/video/av${t.param}`:t.uri,oe=h.useMemo(()=>tN(p),[p]),Q=h.useMemo(()=>mc(c),[c]),ae=h.useMemo(()=>mc(u),[u]),Se=h.useMemo(()=>mc(_),[_]),gt=i?ae:Se,nt=Ie(be=>{if(!Oe.openInIINAWhenRightClick)return;const $e=new URL(He,location.href).href,Ue=`iina://open?url=${encodeURIComponent($e)}`;window.open(Ue,"_self"),be.preventDefault();}),mt=({text:be,iconSvgName:$e,iconScale:Ue})=>U("span",{className:"bili-video-card__stats--item",children:[F("svg",{className:"bili-video-card__stats--icon",style:{transform:Ue?`scale(${Ue})`:void 0},children:F("use",{href:$e})}),F("span",{className:"bili-video-card__stats--text",children:be})]}),It=be=>{const $e=wi[be]||wi[1];return vc[$e]},Ze=be=>{const $e=wi[be]||wi[1];return TN[$e]};return U("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:nt,children:[F("a",{href:He,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:U("div",{className:"bili-video-card__image __scale-player-wrap",ref:$,children:[U("div",{className:q("bili-video-card__image--wrap",dt.imageWrapper),children:[U("picture",{className:"v-img bili-video-card__cover",children:[F("source",{srcSet:`${T}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),F("source",{srcSet:`${T}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),F("img",{src:`${T}@672w_378h_1c_!web-home-common-cover`,alt:g,loading:"eager"})]}),(N||typeof V=="number")&&F(EN,{videoDuration:p,pvideo:O==null?void 0:O.pvideoData,mouseEnterRelativeX:R,previewAnimationProgress:V}),U("div",{className:`bili-watch-later ${dt.watchLater}`,style:{display:N||r?"flex":"none"},ref:W,onClick:pe,children:[F("svg",{className:"bili-watch-later__icon",children:F("use",{href:re?"#widget-watch-save":"#widget-watch-later"})}),F("span",{className:"bili-watch-later__tip",style:{display:B?"block":"none"},children:re?"移除":"稍后再看"})]}),o&&ie&&U("div",{ref:Pe,className:dt.btnDislike,onClick:ve,style:{display:N?"flex":"none"},children:[F("svg",{className:dt.btnDislikeIcon,children:F("use",{href:"#widget-close"})}),F("span",{className:dt.btnDislikeTip,style:{display:De?"block":"none"},children:"我不想看"})]})]}),F("div",{className:"bili-video-card__mask",children:U("div",{className:"bili-video-card__stats",children:[F("div",{className:"bili-video-card__stats--left",children:i?U(jt,{children:[mt({text:Q,iconSvgName:vc.play}),mt({text:l==="av"?ae:gt,iconSvgName:vc.like})]}):U(jt,{children:[t.cover_left_text_1&&mt({iconSvgName:It(t.cover_left_icon_1),iconScale:Ze(t.cover_left_icon_1),text:l==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&mt({iconSvgName:It(t.cover_left_icon_2),iconScale:Ze(t.cover_left_icon_2),text:l==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]})}),F("span",{className:"bili-video-card__stats__duration",children:Me&&oe})]})})]})}),F("div",{className:"bili-video-card__info __scale-disable",children:U("div",{className:"bili-video-card__info--right",children:[F("a",{href:He,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:F("h3",{className:"bili-video-card__info--tit",title:g,children:g})}),U("p",{className:"bili-video-card__info--bottom",children:[Me&&U("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${S}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[C?F("span",{className:dt.recommendReason,children:C}):F("svg",{className:"bili-video-card__info--owner__up",children:F("use",{href:"#widget-up"})}),F("span",{className:"bili-video-card__info--author",children:b}),A&&U("span",{className:"bili-video-card__info--date",children:["· ",A]})]}),xe&&U("a",{className:"bili-video-card__info--owner",href:He,target:"_blank",children:[F("span",{className:dt.badge,children:y||""}),F("span",{className:dt.bangumiDesc,children:x||""})]})]})]})})]})}));function NN({id:e,title:t,autoPreviewWhenHover:r,active:n,tryFetchVideoData:i,videoPreviewWrapperRef:o}){const[s,l]=Gp(void 0),[c,u]=h.useState(!1),d=h.useRef(!1),f=h.useRef(!1);Zn("mouseenter",A=>{d.current=!0,r&&!v.current&&C(!0);},{target:o}),Zn("mouseleave",A=>{d.current=!1;},{target:o}),Zn("mousemove",A=>{u(!0),r||p();},{target:o});const g=gA(),v=h.useRef(void 0),m=Ie(()=>{if(g.current)return !0;if(r){if(f.current){if(!d.current)return !0}else if(!n)return !0}else if(!n||c)return !0;return !1}),p=Ie((A=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,l(void 0),w(!1);}),[b,w,S]=rA(!1),_=h.useRef(),y=Ie(()=>{var A;if(!v.current){C();return}w(T=>!T),b&&((A=_.current)==null||A.call(_,s||0));}),x=Ie(()=>s||0),C=Ie((A=!1)=>{f.current=A,u(!1),w(!1),i(),p(!0),l($=>typeof $>"u"?0:$);const T=8e3,O=()=>typeof Oe.autoPreviewUpdateInterval=="number"?Oe.autoPreviewUpdateInterval:400;let k=performance.now(),M=0;_.current=()=>{k=performance.now()-x()*T;};function E($){if(m()){p();return}const R=()=>{const I=performance.now()-k,N=Math.min(I%T/T,1);l(N);};S()||(O()?(!M||performance.now()-M>=O())&&(M=performance.now(),R()):R()),v.current=requestAnimationFrame(E);}v.current=requestAnimationFrame(E);});return {onHotkeyPreviewAnimation:y,onStartPreviewAnimation:C,previewAnimationProgress:s}}function lb(e){return Oe.filterMinDurationEnabled||Oe.filterMinPlayCountEnabled?e.filter(t=>{const{play:r,duration:n}=sb(t);return !(typeof r=="number"&&Oe.filterMinPlayCountEnabled&&Oe.filterMinPlayCount&&r1)for(var r=1;r=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return "[Circular]"}default:return s}}),a=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),yl(t)?r.showHidden=t:t&&Wd(r,t),jr(r.showHidden)&&(r.showHidden=!1),jr(r.depth)&&(r.depth=2),jr(r.colors)&&(r.colors=!1),jr(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=zN),Es(r,e,r.depth)}Hr.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]};Hr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function zN(e,t){var r=Hr.styles[t];return r?"\x1B["+Hr.colors[r][0]+"m"+e+"\x1B["+Hr.colors[r][1]+"m":e}function HN(e,t){return e}function WN(e){var t={};return e.forEach(function(r,n){t[r]=!0;}),t}function Es(e,t,r){if(e.customInspect&&t&&Oo(t.inspect)&&t.inspect!==Hr&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return sa(n)||(n=Es(e,n,r)),n}var i=BN(e,t);if(i)return i;var o=Object.keys(t),a=WN(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),_o(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return bc(t);if(o.length===0){if(Oo(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if($o(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(xs(t))return e.stylize(Date.prototype.toString.call(t),"date");if(_o(t))return bc(t)}var l="",c=!1,u=["{","}"];if(jd(t)&&(c=!0,u=["[","]"]),Oo(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if($o(t)&&(l=" "+RegExp.prototype.toString.call(t)),xs(t)&&(l=" "+Date.prototype.toUTCString.call(t)),_o(t)&&(l=" "+bc(t)),o.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(r<0)return $o(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=VN(e,t,r,a,o):f=o.map(function(g){return ku(e,t,r,a,g,c)}),e.seen.pop(),UN(f,l,u)}function BN(e,t){if(jr(t))return e.stylize("undefined","undefined");if(sa(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(zd(t))return e.stylize(""+t,"number");if(yl(t))return e.stylize(""+t,"boolean");if(aa(t))return e.stylize("null","null")}function bc(e){return "["+Error.prototype.toString.call(e)+"]"}function VN(e,t,r,n,i){for(var o=[],a=0,s=t.length;a-1&&(o?s=s.split(` `).map(function(c){return " "+c}).join(` `).substr(2):s=` `+s.split(` `).map(function(c){return " "+c}).join(` `))):s=e.stylize("[Circular]","special")),jr(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function UN(e,t,r){var n=e.reduce(function(i,o){return o.indexOf(` `)>=0,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function jd(e){return Array.isArray(e)}function yl(e){return typeof e=="boolean"}function aa(e){return e===null}function gb(e){return e==null}function zd(e){return typeof e=="number"}function sa(e){return typeof e=="string"}function mb(e){return typeof e=="symbol"}function jr(e){return e===void 0}function $o(e){return ni(e)&&Hd(e)==="[object RegExp]"}function ni(e){return typeof e=="object"&&e!==null}function xs(e){return ni(e)&&Hd(e)==="[object Date]"}function _o(e){return ni(e)&&(Hd(e)==="[object Error]"||e instanceof Error)}function Oo(e){return typeof e=="function"}function vb(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function pb(e){return Buffer.isBuffer(e)}function Hd(e){return Object.prototype.toString.call(e)}function yc(e){return e<10?"0"+e.toString(10):e.toString(10)}var GN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qN(){var e=new Date,t=[yc(e.getHours()),yc(e.getMinutes()),yc(e.getSeconds())].join(":");return [e.getDate(),GN[e.getMonth()],t].join(" ")}function bb(){console.log("%s - %s",qN(),Wi.apply(null,arguments));}function Wd(e,t){if(!t||!ni(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function yb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const KN={inherits:fb,_extend:Wd,log:bb,isBuffer:pb,isPrimitive:vb,isFunction:Oo,isError:_o,isDate:xs,isObject:ni,isRegExp:$o,isUndefined:jr,isSymbol:mb,isString:sa,isNumber:zd,isNullOrUndefined:gb,isNull:aa,isBoolean:yl,isArray:jd,inspect:Hr,deprecate:Dd,format:Wi,debuglog:hb},XN=Object.freeze(Object.defineProperty({__proto__:null,_extend:Wd,debuglog:hb,default:KN,deprecate:Dd,format:Wi,inherits:fb,inspect:Hr,isArray:jd,isBoolean:yl,isBuffer:pb,isDate:xs,isError:_o,isFunction:Oo,isNull:aa,isNullOrUndefined:gb,isNumber:zd,isObject:ni,isPrimitive:vb,isRegExp:$o,isString:sa,isSymbol:mb,isUndefined:jr,log:bb},Symbol.toStringTag,{value:"Module"})),YN=T0(XN);var ZN=YN.format;function QN(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function JN(e,t){return function(){var r=this,n=[].slice.call(arguments);QN();var i=new AbortController;return n.push(i.signal),new Promise(function(o,a){var s=setTimeout(function(){var l=new wb(t);a(l),i.abort();},t);Promise.resolve(e.apply(r,n)).then(function(l){clearTimeout(s),o(l);},function(l){clearTimeout(s),a(l);});})}}let wb=class Sb extends Error{constructor(t){super(),this.timeout=t,this.message=ZN("timeout of %sms exceed",t),Error.captureStackTrace(this,Sb);}};IN.exports=JN;Cs.TimeoutError=wb;const Cb=Cs,ek=Cb.TimeoutError;kN.exports=function(t,r){const n=t;r=r||{};const i=r.times||5,o=r.timeout;o&&(t=Cb(t,o));const a=r.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(i);for(let u=0;u"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class tk 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 rk=Ho.RetryError=Eb;Ho.TimeoutError=ek;class Bd extends Error{constructor(t){super(),Error.captureStackTrace(this,Bd),this.json=t,this.message=t.message||JSON.stringify(t);}}const nk=10;async function ik(){var n;const t=(await pl.get(Zp+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new Bd(t);return Wt(`${Vi}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((n=t==null?void 0:t.data)==null?void 0:n.items)||[]}const ok=Ho(ik,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Vi,t,e);}});async function ig(){try{return await ok()}catch(e){if(e instanceof rk){console.error(e.errors);const t=[Wi("请求出错, 已重试%s次:",e.times),...e.errors.map((r,n)=>Wi(" %s) %s",n+1,r.message)),"","请重新获取 access_key 后重试~"].join(` `);Wt(t,5e3);}throw e}}async function xb(e){let t=[];const r=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>ig()))).flat();},n=async()=>{for(let i=1;i<=e;i++)t=t.concat(await ig());};return await(Oe.useParallelRequest?r:n)(),t=fm(t,i=>i.param),t.map(i=>({...i,api:"app",uniqId:i.param+"-"+crypto.randomUUID()}))}const $b=14;async function og(e){const t=e.page++;return (await vl.get("/x/web-interface/index/top/rcmd",{baseURL:Yp,withCredentials:!0,params:{fresh_type:3,version:1,ps:$b,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function _b(e,t){let r=[];const n=async()=>{r=(await Promise.all(new Array(e).fill(0).map(()=>og(t)))).flat();},i=async()=>{for(let o=1;o<=e;o++)r=r.concat(await og(t));};return await(Oe.useParallelRequest?n:i)(),r=fm(r,o=>o.id),r.forEach(o=>{var a,s;((a=o.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=o.rcmd_reason).content||(s.content="已关注"));}),r.map(o=>({...o,uniqId:o.id+"-"+crypto.randomUUID(),api:"pc"}))}async function Ob(e,t){let r=[],n=async i=>{let o=Oe.usePcDesktopApi?await _b(Math.ceil(i/$b),t):await xb(Math.ceil(i/nk));o=lb(o),r=r.concat(o);};for(await n(e);r.length{this.scrollComponent=b,u&&u(b);};const p=[r];return i&&(s?a?p.unshift(s):p.push(s):this.defaultLoader&&(a?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),h.createElement(n,m,p)}}Ke(Iu,"propTypes",{children:At.node.isRequired,element:At.node,hasMore:At.bool,initialLoad:At.bool,isReverse:At.bool,loader:At.node,loadMore:At.func.isRequired,pageStart:At.number,ref:At.func,getScrollParent:At.func,threshold:At.number,useCapture:At.bool,useWindow:At.bool}),Ke(Iu,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const Tb="_video-grid_14t5i_9",gk="_limit-two-lines_14t5i_19",Mb="_internal-testing_14t5i_43",mk="_narrow-mode_14t5i_71";function vk({enabled:e,refresh:t,minIndex:r=0,maxIndex:n,containerRef:i,getScrollerRect:o,changeScrollY:a,videoCardRefs:s}){const[l,c]=h.useState(void 0),u=Ie(()=>!(!e||$p())),d=Ie(()=>{var C;if(typeof l!="number"||!i.current)return !1;const y=o(),x=(C=i.current.querySelector(`.${Un.card}.${Un.cardActive}`))==null?void 0:C.getBoundingClientRect();return !(!y||!x||x.top-y.top<-(y.height+x.height)||x.top-y.top>y.height*2+x.height)}),f=y=>x=>{if(!u())return;x==null||x.preventDefault();let C=typeof y=="number"?y:y();const A=d()?l+C:v();if(An){w(n);return}c(A),w(A);};bt("leftarrow",f(-1),{exactMatch:!0}),bt("rightarrow",f(1),{exactMatch:!0}),bt("uparrow",f(()=>-_()),{exactMatch:!0}),bt("downarrow",f(_),{exactMatch:!0});const g=()=>{u()&&c(void 0);};bt("esc",g),bt("enter",()=>{!u()||typeof l!="number"||S(l);}),bt("backspace",()=>{var y;!u()||typeof l!="number"||(y=s[l])==null||y.onTriggerDislike();}),bt(["s","w"],()=>{var y;!u()||typeof l!="number"||(y=s[l])==null||y.onToggleWatchLater();},{exactMatch:!0}),bt(["period","p"],()=>{var y;!u()||typeof l!="number"||(y=s[l])==null||y.onHotkeyPreviewAnimation();},{exactMatch:!0});function v(){const y=o();if(!y)return 0;const x=p();for(let C=0;C=y.top)return C;return 0}const m=`.${Un.card}`;function p(){var y;return [...((y=i.current)==null?void 0:y.querySelectorAll(m))||[]]}function b(y){return p()[y]}function w(y){var T;const x=b(y);(T=x==null?void 0:x.scrollIntoViewIfNeeded)==null||T.call(x,!1);const C=o(),A=x.getBoundingClientRect();if(!(!C||!A)){if(A.top<=C.top){const O=-(C.top-A.top+10);a==null||a({offset:O});return}if(C.bottom-A.bottom<10){const O=10-(C.bottom-A.bottom);a==null||a({offset:O});return}}}function S(y){const x=b(y);if(!x)return;const C=x.querySelector(".bili-video-card__wrap > a");C==null||C.click();}function _(){if(Oe.useNarrowMode)return 2;let y=ag.get(window.innerWidth);if(y)return y;const x=i.current;if(!x)return 0;const C=window.getComputedStyle(x);return C.display!=="grid"?0:(y=C.gridTemplateColumns.split(" ").length,ag.set(window.innerWidth,y),y)}return {activeIndex:l,clearActiveIndex:g}}const ag=new Map,Un={loader:uc` text-align: center; line-height: 60px; font-size: 120%; `,card:uc` border: 2px solid transparent; /* global class under .card */ .bili-video-card__info { padding-left: 2px; padding-bottom: 1px; margin-top: calc(var(--info-margin-top) - 1px); } `,cardActive:uc` border-color: #fb7299; border-radius: 6px; overflow: hidden; `},Ab=h.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:r,className:n,scrollerRef:i},o)=>{const[a,s]=h.useState([]),[l,c]=h.useState(!1),[u,d]=h.useState(!1),f=h.useMemo(()=>({page:1}),[]),g=Ie(async()=>{await(r==null?void 0:r());try{const C=performance.now();y(),c(!0),d(!0),s([]),f.page=1,s(await sk(f)),y();const A=performance.now()-C;}finally{c(!1),d(!1);}});h.useImperativeHandle(o,()=>({refresh:g}),[]),Id(g);const v=Ie(async()=>{const C=await lk(2,f);s(A=>[...A,...C]);}),{useNarrowMode:m}=fn(),p=h.useRef(null),b=Ie(()=>{var C;if(e){const A=wm+50;return new DOMRect(0,A,window.innerWidth,window.innerHeight-A)}else return (C=i==null?void 0:i.current)==null?void 0:C.getBoundingClientRect()}),w=QA(),S=h.useMemo(()=>new Array(a.length).fill(void 0),[a.length]),{activeIndex:_,clearActiveIndex:y}=vk({enabled:t&&!w,refresh:g,maxIndex:a.length-1,containerRef:p,getScrollerRect:b,videoCardRefs:S,changeScrollY:e?function({offset:C,absolute:A}){const T=document.documentElement;if(typeof C=="number"){T.scrollTop+=C;return}if(typeof A=="number"){T.scrollTop=A;return}}:void 0}),x=Fo();return F(Iu,{pageStart:0,loadMore:v,hasMore:!0,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:F("div",{className:Un.loader,children:"加载中..."},0),children:U("div",{ref:p,className:q(Tb,{[Mb]:x},{[mk]:m},n),children:[u&&new Array(24).fill(void 0).map((C,A)=>F(Ss,{loading:!0,className:q(Un.card)},A)),a.map((C,A)=>{const T=A===_;return F(Ss,{ref:O=>S[A]=O,className:q(Un.card,{[Un.cardActive]:T}),loading:l,item:C,active:T},C.uniqId)})]})})}),Nb=F($i,{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 kb({style:e,className:t}){const{runAsync:r,loading:n}=Wp(TA,{manual:!0}),{accessKey:i}=fn(),o=h.useRef(null),a=Ie(async()=>{var c;await r()&&((c=o.current)==null||c.set(!1));});return F(Jv,{size:"small",style:e,className:t,children:i?U(jt,{children:[F($i,{onClick:()=>a(),disabled:n,children:F("span",{children:"重新获取 access_key"})}),F($i,{onClick:MA,children:F("span",{children:"删除 access_key"})})]}):U(jt,{children:[Nb,F($i,{onClick:a,disabled:n,size:"middle",children:F("span",{children:"获取 access_key"})})]})})}function pr({configKey:e,label:t,className:r,extraAction:n,tooltip:i}){const a=!!fn()[e],s=h.useCallback(c=>{const u=c.target.checked;rs({[e]:u}),n==null||n(u);},[]);let l=t||e;return i&&(l=F(Sd,{title:i,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),F(FR,{className:r,checked:a,onChange:s,children:l})}var pk={name:"1qkltea",styles:"margin-left:5px"};const bk=function(){const e=pk;return U(jt,{children:[F(pr,{configKey:"initialShowMore",label:"自动查看更多",css:e}),F(pr,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})},yk="_config-icon_15g5q_1",wk="_settings-group_15g5q_6",Sk="_settings-group-title_15g5q_9",Ck="_settings-group-content_15g5q_14",Ek="_row_15g5q_20",xk="_check_15g5q_28",Ee={configIcon:yk,settingsGroup:wk,settingsGroupTitle:Sk,settingsGroupContent:Ck,row:Ek,check:xk};async function Ib(){Wt("即将刷新网页"),await Hi(500),location.reload();}function $k(){if(window.confirm("确定?"))return qE(),Ib()}function wc(e,t,r){return bt(e,()=>{Oe[t]=!Oe[t];const n=!Oe[t];Wt(`已${n?"禁用":"启用"}「${r}」`);},{exactMatch:!0})}function _k({show:e,onHide:t}){const{usePcDesktopApi:r,autoPreviewUpdateInterval:n,filterMinPlayCount:i,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:s}=fn();return wc(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),wc(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),wc(["shift.c"],"useNarrowMode","居中模式"),U(Fd,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,width:"700px",children:[U("div",{className:_r.modalHeader,children:[U("div",{className:_r.modalTitle,children:[F(Nn,{name:"Config",className:Ee.configIcon}),"设置项"]}),F("div",{className:"space",style:{flex:1}}),F(Ld,{onClick:t})]}),U("main",{className:_r.modalBody,children:[U("div",{className:Ee.settingsGroup,children:[F("div",{className:Ee.settingsGroupTitle,children:"接口切换"}),U("div",{className:q(Ee.settingsGroupContent),children:[U(oc.Group,{buttonStyle:"solid",value:r?"desktop":"app",onChange:l=>{const c=l.target.value;Oe.usePcDesktopApi=c==="desktop";},children:[F(oc.Button,{value:"desktop",children:"使用桌面端接口"}),F(oc.Button,{value:"app",children:"使用 App 端接口"})]}),!r&&F("div",{className:Ee.row,style:{marginTop:5},children:F(kb,{})})]})]}),U("div",{className:Ee.settingsGroup,children:[F("div",{className:Ee.settingsGroupTitle,children:"开关"}),U("div",{className:q(Ee.settingsGroupContent,Ee.row),children:[F(pr,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:U(jt,{children:["首页只保留推荐",F("br",{}),"P.S 需要刷新网页~"]}),className:Ee.check,extraAction:Ib}),F(pr,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:Ee.check,extraAction:l=>{l&&Wt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),F(pr,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:U(jt,{children:["居中两列",F("br",{}),"切换设置快捷键: ",F(no,{color:"green",children:"shift+c"})]}),className:Ee.check}),F(pr,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:U(jt,{children:["并行快但可能有重复",F("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:Ee.check})]})]}),U("div",{className:Ee.settingsGroup,children:[F("div",{className:Ee.settingsGroupTitle,children:"预览"}),U("div",{className:q(Ee.settingsGroupContent,Ee.row),children:[F(pr,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ee.check,tooltip:U(jt,{children:["手动预览快捷键: ",F(no,{color:"green",children:"."})," or ",F(no,{color:"green",children:"p"}),F("br",{}),"切换设置快捷键: ",F(no,{color:"green",children:"shift+p"})]})}),F(pr,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ee.check,tooltip:U(jt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",F("br",{}),"切换设置快捷键: ",F(no,{color:"green",children:"shift+m"})]})}),U("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",F(CT,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>Oe.autoPreviewUpdateInterval=l,value:n,tooltip:{open:!0}}),U("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})]}),U("div",{className:Ee.settingsGroup,children:[U("div",{className:Ee.settingsGroupTitle,children:["视频过滤器",F(MT,{title:"启用视频过滤器会大幅降低加载速度, 谨慎开启!",children:F(Nn,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),U("div",{className:q(Ee.settingsGroupContent),children:[U("div",{className:Ee.row,children:[F(pr,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:F(jt,{children:"不显示播放量很少的视频"})}),F(Uh,{size:"small",min:1,step:1e3,value:i,onChange:l=>l&&rs({filterMinPlayCount:l}),disabled:!o})]}),U("div",{className:Ee.row,style:{marginTop:8},children:[F(pr,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:F(jt,{children:"不显示短视频"})}),F(Uh,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&rs({filterMinDuration:l}),disabled:!s})]})]})]}),U("div",{className:Ee.settingsGroup,children:[F("div",{className:Ee.settingsGroupTitle,children:"高级"}),U("div",{className:q(Ee.settingsGroupContent),children:[F("div",{className:Ee.row,children:F($i,{onClick:$k,danger:!0,children:"恢复默认设置"})}),F("div",{className:Ee.row,style:{marginTop:10},children:F(pr,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:Ee.check})})]})]}),U("div",{className:Ee.settingsGroup,children:[F("div",{className:Ee.settingsGroupTitle,children:"帮助"}),F("div",{className:q(Ee.settingsGroupContent),children:F("div",{className:Ee.row,children:U(Jv,{size:"small",children:[F($i,{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:"查看可用的快捷键"}),Nb]})})})]})]})]})}var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});var Fb=Vd.useSticky=void 0;const Sc=h;function Ok(){const e=(0, Sc.useRef)(null),[t,r]=(0, Sc.useState)(!1);return (0, Sc.useEffect)(()=>{function n(){if(!e.current)return;const i=e.current.getBoundingClientRect().top,o=parseInt(getComputedStyle(e.current).top),a=i<=o;a&&!t?r(!0):!a&&t&&r(!1);}return n(),document.addEventListener("scroll",n),window.addEventListener("resize",n),window.addEventListener("orientationchange",n),()=>{document.removeEventListener("scroll",n),window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n);}},[t]),[e,t]}Fb=Vd.useSticky=Ok;const Pk="_expand-btn_wdzp9_1",Rk="_expanded_wdzp9_12",sg={expandBtn:Pk,expanded:Rk},Tk=h.forwardRef(function({children:t},r){const[n,i]=Bp(!1);h.useImperativeHandle(r,()=>i,[i]);const o=F("button",{className:q("primary-btn",sg.expandBtn),onClick:i.toggle,children:F("svg",{className:q({[sg.expanded]:n}),children:F("use",{href:"#widget-arrow"})})});return U(jt,{children:[o,n&&t]})}),Mk="_modal-mask_juq7d_1",Ak="_narrow-mode_juq7d_1",Nk="_modal_juq7d_1",kk="_modal-header_juq7d_21",Ik="_modal-body_juq7d_22",Fk="_btn-refresh_juq7d_25",so={modalMask:Mk,narrowMode:Ak,modal:Nk,modalHeader:kk,modalBody:Ik,btnRefresh:Fk},Lk=h.memo(function({show:t,onHide:r}){const n=h.useRef(null),i=h.useRef(null),{useNarrowMode:o}=fn(),a=h.useMemo(()=>({[so.narrowMode]:o}),[o]),s=Ie(()=>{var c;return (c=i.current)==null?void 0:c.refresh()}),l=Ie(()=>{n.current&&(n.current.scrollTop=0);});return U(Fd,{show:t,onHide:r,clsModalMask:q(a),clsModal:q(so.modal,a),children:[U("div",{className:q(_r.modalHeader,so.modalHeader),children:[F("div",{className:_r.modalTitle,children:"推荐"}),F("div",{className:"space",style:{flex:1}}),F(Tk,{children:F(bk,{})}),F(jb,{onClick:s,className:so.btnRefresh,refreshHotkeyEnabled:t}),F(Ld,{onClick:r})]}),F("div",{className:q(_r.modalBody,so.modalBody),ref:n,children:F(Ab,{ref:i,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:n})})]})}),lg={btn:_i` padding: 0; width: 31px; height: 31px; border-radius: 50%; `,icon:_i` svg { width: 14px; height: 14px; } `},Zi=Yo({modalFeedVisible:Oe.initialShowMore,modalConfigVisible:!1}),Lb=function(){return Gi(Zi)},Dk=()=>{Zi.modalFeedVisible=!0;},jk=()=>{Zi.modalFeedVisible=!1;},zk=()=>{Zi.modalConfigVisible=!0;},Hk=()=>{Zi.modalConfigVisible=!1;};function Db({onRefresh:e,refreshHotkeyEnabled:t}){const{accessKey:r,pureRecommend:n,usePcDesktopApi:i}=fn(),{modalFeedVisible:o,modalConfigVisible:a}=Gi(Zi),[s,l]=Fb();return U(jt,{children:[U("div",{ref:s,className:"area-header",css:[_i` margin-bottom: 0; height: 50px; `,n&&_i` position: sticky; top: ${wm}px; z-index: 1000; `,n&&l&&_i` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[U("div",{className:"left",children:[F("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),F("svg",{className:"icon",children:F("use",{href:"#channel-cinephile"})}),F("a",{className:"title",href:"#",children:F("span",{children:"推荐"})})]}),U("div",{className:"right",children:[!i&&!r&&F(kb,{style:{marginLeft:5}}),F("button",{className:"primary-btn",css:lg.btn,onClick:zk,children:F(Nn,{name:"Config",css:lg.icon})}),F(jb,{onClick:e,refreshHotkeyEnabled:t}),!n&&U("button",{className:"primary-btn see-more",onClick:Dk,children:[F("span",{children:"查看更多"}),F("svg",{children:F("use",{href:"#widget-arrow"})})]})]})]}),F(Lk,{show:o,onHide:jk}),F(_k,{show:a,onHide:Hk})]})}const jb=h.forwardRef(function({onClick:e,className:t="",style:r,refreshHotkeyEnabled:n},i){n??(n=!0);const[o,a]=h.useState(0),s=Ie(c=>(a(u=>u+360),e==null?void 0:e(c))),l=h.useRef(null);return h.useImperativeHandle(i,()=>({click(){var c;(c=l.current)==null||c.click();}}),[]),bt("r",()=>{var c;n&&($p()||(c=l.current)==null||c.click());},{exactMatch:!0}),U("button",{className:`primary-btn roll-btn ${t}`,onClick:s,style:r,ref:l,children:[F("svg",{style:{transform:`rotate(${o}deg)`,width:"10px",height:"10px",transition:o===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{a(0);},children:F("use",{href:"#widget-roll"})}),F("span",{children:"换一换"})]})}),Wk={grid:_i` /* card=299 col-gap=20 */ width: ${299*2+20}px; margin: 0 auto; `};function Bk(){const{useNarrowMode:e}=fn(),{modalFeedVisible:t,modalConfigVisible:r}=Lb(),n=h.useRef(null),i=Ie(()=>{var a;return (a=n.current)==null?void 0:a.refresh()}),o=Ie(()=>{document.documentElement.scrollTop=0;});return U("section",{"data-area":"推荐",children:[F(Db,{onRefresh:i,refreshHotkeyEnabled:!(t||r)}),F(Ab,{ref:n,css:[e&&Wk.grid,"",""],shortcutEnabled:!(t||r),infiteScrollUseWindow:!0,onScrollToTop:o})]})}function Vk(){const e=h.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Fo(),r=h.useMemo(()=>({page:1}),[]),{data:n,loading:i,error:o,refresh:a}=Wp(()=>ak(r));o&&console.error(o.stack||o);const{modalConfigVisible:s,modalFeedVisible:l}=Lb();return U("section",{"data-area":"推荐",children:[F(Db,{onRefresh:a,refreshHotkeyEnabled:!(s||l)}),F("div",{className:q(Tb,gk,{[Mb]:t}),style:{marginBottom:t?30:0},children:i||o?e.map(c=>F(Ss,{},c)):n.map(c=>F(Ss,{item:c},c.uniqId))})]})}(function(){var t;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(t=window.top)==null?void 0:t.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/")return Uk()})();async function Uk(){return Ba(".adblock-tips"),xp("html.gray",e=>e.classList.remove("gray")),Oe.pureRecommend?qk():Gk()}async function Gk(){const t=Date.now()+1e4;let r;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const o=document.querySelector(".bili-layout > section.bili-grid");r=a=>o==null?void 0:o.insertAdjacentElement("afterend",a);break}if(Fo()&&document.querySelector(".bili-feed4-layout")){r=o=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",o)};break}await Hi(200);}if(!r){console.error(`[${Vi}]: init fail`);return}const n=document.createElement("section");r(n),hl(n).render(F(Cp,{children:F(Vk,{})}));}async function qk(){var i,o;Fo()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),Ba(".bili-feed4 .header-channel")):((o=document.querySelector(".bili-layout"))==null||o.remove(),Ba(".bili-footer"),Ba(".palette-button-wrap > .primary-btn:first-child"));const e=document.createElement("div");e.classList.add(Fo()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const r=document.createElement("section");e==null||e.appendChild(r),hl(r).render(F(Cp,{children:F(Bk,{})}));}});Kk(); })(React, ReactDOM, axios, axiosGmxhrAdapter);