// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.10.6 // @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== (e=>{const i=document.createElement("style");i.dataset.source="vite-plugin-monkey",i.textContent=e,document.head.append(i)})(` .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_tu03i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_tu03i_9{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_tu03i_9{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid_tu03i_9{grid-template-columns:repeat(6,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid_tu03i_9{grid-template-columns:repeat(7,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 15){display:none!important}}._video-grid_tu03i_9._internal-testing_tu03i_51{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 5){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 6){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_tu03i_79{grid-template-columns:repeat(2,1fr)!important}._config-icon_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, Lu, Xb) { '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 Hb=Object.defineProperty;var Wb=(e,t,r)=>t in e?Hb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Bb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ze=(e,t,r)=>(Wb(e,typeof t!="symbol"?t+"":t,r),r),Tl=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var R=(e,t,r)=>(Tl(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)=>(Tl(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),pa=(e,t,r,n)=>({set _(i){ne(e,t,i,r);},get _(){return R(e,t,n)}}),Q=(e,t,r)=>(Tl(e,t,"access private method"),r);var fk=Bb((ln,cn)=>{function Yb(e){if(e.sheet)return e.sheet;for(var t=0;t0?xt(Vi,--zt):0,Ii--,ct===10&&(Ii=1,xs--),ct}function nr(){return ct=zt2||Oo(ct)>3?"":" "}function l0(e,t){for(;--t&&nr()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return Uo(e,ka()+(t<6&&Hr()==32&&nr()==32))}function xc(e){for(;nr();)switch(ct){case e:return zt;case 34:case 39:e!==34&&e!==39&&xc(ct);break;case 40:e===41&&xc(e);break;case 92:nr();break}return zt}function c0(e,t){for(;nr()&&e+ct!==47+10;)if(e+ct===42+42&&Hr()===47)break;return "/*"+Uo(t,zt-1)+"*"+$s(e===47?e:nr())}function u0(e){for(;!Oo(Hr());)nr();return Uo(e,zt)}function bg(e){return vg(Fa("",null,null,null,[""],e=pg(e),0,[0],e))}function Fa(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,E=0,C="",O=i,y=o,S=n,w=C;p;)switch(v=E,E=nr()){case 40:if(v!=108&&xt(w,d-1)==58){$c(w+=Te(Ia(E),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:w+=Ia(E);break;case 9:case 10:case 13:case 32:w+=s0(v);break;case 92:w+=l0(ka()-1,7);continue;case 47:switch(Hr()){case 42:case 47:va(d0(c0(nr(),ka()),t,r),l);break;default:w+="/";}break;case 123*m:s[c++]=Dr(w)*b;case 125*m:case 59:case 0:switch(E){case 0:case 125:p=0;case 59+u:b==-1&&(w=Te(w,/\f/g,"")),g>0&&Dr(w)-d&&va(g>32?of(w+";",n,r,d-1):of(Te(w," ","")+";",n,r,d-2),l);break;case 59:w+=";";default:if(va(S=nf(w,t,r,c,u,i,s,C,O=[],y=[],d),o),E===123)if(u===0)Fa(w,t,S,S,O,o,d,s,y);else switch(f===99&&xt(w,3)===110?100:f){case 100:case 109:case 115:Fa(e,S,S,n&&va(nf(e,S,S,0,0,i,s,C,i,O=[],d),y),i,y,d,s,n?O:y);break;default:Fa(w,S,S,S,[""],y,0,s,y);}}c=u=g=0,m=b=1,C=w="",d=a;break;case 58:d=1+Dr(w),g=v;default:if(m<1){if(E==123)--m;else if(E==125&&m++==0&&a0()==125)continue}switch(w+=$s(E),E*m){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(Dr(w)-1)*b,b=1;break;case 64:Hr()===45&&(w+=Ia(nr())),f=Hr(),u=d=Dr(C=w+=u0(ka())),E++;break;case 45:v===45&&Dr(w)==2&&(m=0);}}return o}function nf(e,t,r,n,i,o,a,s,l,c,u){for(var d=i-1,f=i===0?o:[""],g=zu(f),v=0,m=0,p=0;v0?f[b]+" "+E:Te(E,/&\f/g,f[b])))&&(l[p++]=C);return _s(e,t,r,i===0?Du:s,l,c,u)}function d0(e,t,r){return _s(e,t,r,fg,$s(o0()),_o(e,2,-2),0)}function of(e,t,r,n){return _s(e,t,r,ju,_o(e,0,n),_o(e,n+1,-1),n)}function Qn(e,t){for(var r="",n=zu(e),i=0;i6)switch(xt(e,t+1)){case 109:if(xt(e,t+4)!==45)break;case 102:return Te(e,/(.+:)(.+)-([^]+)/,"$1"+Pe+"$2-$3$1"+Za+(xt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~$c(e,"stretch")?wg(Te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(xt(e,t+1)!==115)break;case 6444:switch(xt(e,Dr(e)-3-(~$c(e,"!important")&&10))){case 107:return Te(e,":",":"+Pe)+e;case 101:return Te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pe+(xt(e,14)===45?"inline-":"")+"box$3$1"+Pe+"$2$3$1"+Tt+"$2box$3")+e}break;case 5936:switch(xt(e,t+11)){case 114:return Pe+e+Tt+Te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pe+e+Tt+Te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pe+e+Tt+Te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pe+e+Tt+e+e}return e}var w0=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case ju:t.return=wg(t.value,t.length);break;case hg:return Qn([Ji(t,{value:Te(t.value,"@","@"+Pe)})],i);case Du:if(t.length)return i0(t.props,function(o){switch(n0(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([Ji(t,{props:[Te(o,/:(read-\w+)/,":"+Za+"$1")]})],i);case"::placeholder":return Qn([Ji(t,{props:[Te(o,/:(plac\w+)/,":"+Pe+"input-$1")]}),Ji(t,{props:[Te(o,/:(plac\w+)/,":"+Za+"$1")]}),Ji(t,{props:[Te(o,/:(plac\w+)/,Tt+"input-$1")]})],i)}return ""})}},S0=[w0],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||S0,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 A0={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},N0=/[A-Z]|^ms/g,k0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tg=function(t){return t.charCodeAt(1)===45},sf=function(t){return t!=null&&typeof t!="boolean"},Ml=g0(function(e){return Tg(e)?e:e.replace(N0,"-$&").toLowerCase()}),lf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(k0,function(n,i,o){return jr={name:i,styles:o,next:jr},i})}return A0[t]!==1&&!Tg(t)&&typeof r=="number"&&r!==0?r+"px":r};function Po(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 jr={name:r.name,styles:r.styles,next:jr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)jr={name:n.name,styles:n.styles,next:jr},n=n.next;var i=r.styles+";";return i}return I0(e,t,r)}case"function":{if(e!==void 0){var o=jr,a=r(e);return jr=o,Po(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function I0(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i0)return a(u);if(f==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var f=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return f*o;case"weeks":case"week":case"w":return f*i;case"days":case"day":case"d":return f*n;case"hours":case"hour":case"hrs":case"hr":case"h":return f*r;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function s(u){var d=Math.abs(u);return d>=n?Math.round(u/n)+"d":d>=r?Math.round(u/r)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=n?c(u,d,n,"day"):d>=r?c(u,d,r,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,f,g){var v=d>=f*1.5;return Math.round(u/f)+" "+g+(v?"s":"")}return Al}function X0(e){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=i,r.enabled=a,r.humanize=K0(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u];}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f{if(S==="%%")return "%";O++;const M=r.formatters[w];if(typeof M=="function"){const A=p[O];S=M.call(b,A),p.splice(O,1),O--;}return S}),r.formatArgs.call(b,p),(b.log||r.log).apply(b,p);}return m.namespace=u,m.useColors=r.useColors(),m.color=r.selectColor(u),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(g!==r.namespaces&&(g=r.namespaces,v=r.enabled(u)),v),set:p=>{f=p;}}),typeof r.init=="function"&&r.init(m),m}function n(u,d){const f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d;const f=(typeof u=="string"?u:"").split(/[\s,]+/),g=f.length;for(d=0;d"-"+d)].join(",");return r.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,f;for(d=0,f=r.skips.length;d{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function i(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function o(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=Y0(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Oc,Oc.exports);var Z0=Oc.exports;const Q0=vn(Z0),kn="bilibili-app-recommend",J0="bilibili_app_recommend",Ig=Q0(kn);var ey=typeof global=="object"&&global&&global.Object===Object&&global;const Fg=ey;var ty=typeof self=="object"&&self&&self.Object===Object&&self,ry=Fg||ty||Function("return this")();const Gr=ry;var ny=Gr.Symbol;const Vr=ny;var Lg=Object.prototype,iy=Lg.hasOwnProperty,oy=Lg.toString,eo=Vr?Vr.toStringTag:void 0;function ay(e){var t=iy.call(e,eo),r=e[eo];try{e[eo]=void 0;var n=!0;}catch{}var i=oy.call(e);return n&&(t?e[eo]=r:delete e[eo]),i}var sy=Object.prototype,ly=sy.toString;function cy(e){return ly.call(e)}var uy="[object Null]",dy="[object Undefined]",df=Vr?Vr.toStringTag:void 0;function Ui(e){return e==null?e===void 0?dy:uy:df&&df in Object(e)?ay(e):cy(e)}function Fi(e){return e!=null&&typeof e=="object"}var fy="[object Symbol]";function js(e){return typeof e=="symbol"||Fi(e)&&Ui(e)==fy}function hy(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r0){if(++t>=qy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Zy(e){return function(){return e}}var Qy=function(){try{var e=ni(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Qa=Qy;var Jy=Qa?function(e,t){return Qa(e,"toString",{configurable:!0,enumerable:!1,value:Zy(t),writable:!0})}:jg;const e1=Jy;var t1=Yy(e1);const r1=t1;function n1(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o-1}var l1=9007199254740991,c1=/^(?:0|[1-9]\d*)$/;function Gu(e,t){var r=typeof e;return t=t??l1,!!t&&(r=="number"||r!="symbol"&&c1.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=m1}function p1(e){return e!=null&&Ku(e.length)&&!zg(e)}var v1=Object.prototype;function b1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||v1;return e===r}function y1(e,t){for(var r=-1,n=Array(e);++r-1}function Aw(e,t){var r=this.__data__,n=zs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function bn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(s)?t>1?qg(s,t-1,r,n,i):Gg(i,s):n||(i[i.length]=s);}return i}function Zw(e){var t=e==null?0:e.length;return t?qg(e,1):[]}function Qw(e){return r1(g1(e,void 0,Zw),e+"")}var Jw="Expected a function";function eS(e,t){var r;if(typeof t!="function")throw new TypeError(Jw);return e=_y(e),function(){return --e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function tS(){this.__data__=new bn,this.size=0;}function rS(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function nS(e){return this.__data__.get(e)}function iS(e){return this.__data__.has(e)}var oS=200;function aS(e,t){var r=this.__data__;if(r instanceof bn){var n=r.__data__;if(!Mo||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&TS?new Ao:void 0;for(o.set(e,t),o.set(t,e);++d=t||w<0||d&&M>=o}function b(){var S=Fl();if(p(S))return E(S);s=setTimeout(b,m(S));}function E(S){return s=void 0,f&&n?g(S):(n=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0;}function O(){return s===void 0?a:E(Fl())}function y(){var S=Fl(),w=p(S);if(n=arguments,i=this,l=S,w){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=C,y.flush=O,y}function pC(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=PC){var c=t?null:OC(e);if(c)return Ju(c);a=!1,i=Kg,l=new Ao;}else l=t?[]:s;e:for(;++nnew Proxy(e,t);const Nc=Object.getPrototypeOf,kc=new WeakMap,tm=e=>e&&(kc.has(e)?kc.get(e):Nc(e)===Object.prototype||Nc(e)===Array.prototype),Ja=e=>typeof e=="object"&&e!==null,AC=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(Nc(e),t)},td=e=>e[ed]||e,rm=(e,t,r,n)=>{if(!tm(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,AC(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),rm(Reflect.get(v,m),u[to],u.c)),has:(v,m)=>m===RC?(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=MC(a||o,s[0]),r&&r.set(o,s)),s[1][to]=t,s[1].c=r,s[1].p},nm=(e,t,r,n)=>{if(Object.is(e,t))return !1;if(!Ja(e)||!Ja(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=nm(e[a],t[a],r,n),o)return o;return o===null&&(o=!0),o}finally{n&&n.set(e,{n:t,g:o});}},NC=e=>tm(e)&&e[ed]||null,Lf=(e,t=!0)=>{kc.set(e,t);},kC=(e,t,r)=>{const n=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;Ja(a)&&i.add(a);const l=Ja(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},Ll=e=>typeof e=="object"&&e!==null,Rn=new WeakMap,ya=new WeakSet,IC=(e=Object.is,t=(c,u)=>new Proxy(c,u),r=c=>Ll(c)&&!ya.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 Lf(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(ya.has(m))Lf(m,!1);else if(m instanceof Promise)delete p.value,p.get=()=>d(m);else if(Rn.has(m)){const[b,E]=Rn.get(m);p.value=o(b,E(),d);}Object.defineProperty(g,v,p);}),g},a=new WeakMap,s=[1,1],l=c=>{if(!Ll(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const f=new Set,g=(A,_=++s[0])=>{d!==_&&(d=_,f.forEach(N=>N(A,_)));};let v=s[1];const m=(A=++s[1])=>(v!==A&&!f.size&&(v=A,b.forEach(([_])=>{const N=_[1](A);N>d&&(d=N);})),d),p=A=>(_,N)=>{const T=[..._];T[1]=[A,...T[1]],g(T,N);},b=new Map,E=(A,_)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(A))throw new Error("prop listener already exists");if(f.size){const N=_[3](p(A));b.set(A,[_,N]);}else b.set(A,[_]);},C=A=>{var _;const N=b.get(A);N&&(b.delete(A),(_=N[1])==null||_.call(N));},O=A=>(f.add(A),f.size===1&&b.forEach(([N,T],$)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&T)throw new Error("remove already exists");const x=N[3](p($));b.set($,[N,x]);}),()=>{f.delete(A),f.size===0&&b.forEach(([N,T],$)=>{T&&(T(),b.set($,[N]));});}),y=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),w=t(y,{deleteProperty(A,_){const N=Reflect.get(A,_);C(_);const T=Reflect.deleteProperty(A,_);return T&&g(["delete",[_],N]),T},set(A,_,N,T){const $=Reflect.has(A,_),x=Reflect.get(A,_,T);if($&&(e(x,N)||a.has(N)&&e(x,a.get(N))))return !0;C(_),Ll(N)&&(N=NC(N)||N);let P=N;if(N instanceof Promise)N.then(I=>{N.status="fulfilled",N.value=I,g(["resolve",[_],I]);}).catch(I=>{N.status="rejected",N.reason=I,g(["reject",[_],I]);});else {!Rn.has(N)&&r(N)&&(P=l(N));const I=!ya.has(P)&&Rn.get(P);I&&E(_,I);}return Reflect.set(A,_,P,T),g(["set",[_],N,x]),!0}});a.set(c,w);const M=[y,m,o,O];return Rn.set(w,M),Reflect.ownKeys(c).forEach(A=>{const _=Object.getOwnPropertyDescriptor(c,A);"value"in _&&(w[A]=c[A],delete _.value,delete _.writable),Object.defineProperty(y,A,_);}),w})=>[l,Rn,ya,e,t,r,n,i,o,a,s],[FC]=IC();function qo(e={}){return FC(e)}function im(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 Df(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 om={exports:{}},am={};/** * @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 Li=h;function LC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DC=typeof Object.is=="function"?Object.is:LC,jC=Li.useState,zC=Li.useEffect,HC=Li.useLayoutEffect,WC=Li.useDebugValue;function BC(e,t){var r=t(),n=jC({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return HC(function(){i.value=r,i.getSnapshot=t,Dl(i)&&o({inst:i});},[e,r,t]),zC(function(){return Dl(i)&&o({inst:i}),e(function(){Dl(i)&&o({inst:i});})},[e]),WC(r),r}function Dl(e){var t=e.getSnapshot;e=e.value;try{var r=t();return !DC(e,r)}catch{return !0}}function VC(e,t){return t()}var UC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VC:BC;am.useSyncExternalStore=Li.useSyncExternalStore!==void 0?Li.useSyncExternalStore:UC;om.exports=am;var GC=om.exports;const qC=vn(GC),{use:jf}=h,{useSyncExternalStore:KC}=qC,XC=(e,t)=>{const r=h.useRef();h.useEffect(()=>{r.current=kC(e,t,!0);}),h.useDebugValue(r.current);},YC=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=KC(h.useCallback(c=>{const u=im(e,c,r);return c(),u},[e,r]),()=>{const c=Df(e,jf);try{if(!o&&n.current&&i.current&&!nm(n.current,c,i.current,new WeakMap))return n.current}catch{}return c},()=>Df(e,jf));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"&&XC(a,s);const l=h.useMemo(()=>new WeakMap,[]);return rm(a,s,l,YC)}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},_e=qo({...rd}),sm=Object.keys(rd),fn=function(){return Gi(_e)},ZC=kn,lm=`${ZC}.settings`;function QC(){const e=GM_getValue(lm);e&&typeof e=="object"&&Object.assign(_e,em(e,sm)),im(_e,()=>{JC();});}function JC(){const e=em(_e,sm);GM_setValue(lm,e);}function es(e){Object.assign(_e,e);}function eE(){return es(rd)}QC();var cm={exports:{}};(function(e,t){(function(r,n){e.exports=n();})(Cg,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,E={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($){var x=["th","st","nd","rd"],P=$%100;return "["+$+(x[(P-20)%10]||x[P]||x[0])+"]"}},C=function($,x,P){var I=String($);return !I||I.length>=x?$:""+Array(x+1-I.length).join(P)+$},O={s:C,z:function($){var x=-$.utcOffset(),P=Math.abs(x),I=Math.floor(P/60),k=P%60;return (x<=0?"+":"-")+C(I,2,"0")+":"+C(k,2,"0")},m:function $(x,P){if(x.date()1)return $(D[0])}else {var z=x.name;S[z]=x,k=z;}return !I&&k&&(y=k),k||!I&&y},A=function($,x){if(w($))return $.clone();var P=typeof x=="object"?x:{};return P.date=$,P.args=arguments,new N(P)},_=O;_.l=M,_.i=w,_.w=function($,x){return A($,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var N=function(){function $(P){this.$L=M(P.locale,null,!0),this.parse(P);}var x=$.prototype;return x.parse=function(P){this.$d=function(I){var k=I.date,L=I.utc;if(k===null)return new Date(NaN);if(_.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var D=k.match(p);if(D){var z=D[2]-1||0,B=(D[7]||"0").substring(0,3);return L?new Date(Date.UTC(D[1],z,D[3]||1,D[4]||0,D[5]||0,D[6]||0,B)):new Date(D[1],z,D[3]||1,D[4]||0,D[5]||0,D[6]||0,B)}}return new Date(k)}(P),this.$x=P.x||{},this.init();},x.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds();},x.$utils=function(){return _},x.isValid=function(){return this.$d.toString()!==m},x.isSame=function(P,I){var k=A(P);return this.startOf(I)<=k&&k<=this.endOf(I)},x.isAfter=function(P,I){return A(P)!!document.querySelectorAll(".bili-feed4").length),zf=document.querySelector(".bili-header__bar"),iE=!!(zf&&window.getComputedStyle(zf).display==="none"),dm=iE?50:64,fm=()=>document.body.classList.contains("dark"),hm=qo({value:fm()});function nd(){return Gi(hm).value}const La=new MutationObserver(function(){hm.value=fm();});La.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{La==null||La.disconnect();});function hr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e){return De=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},De(e)}function oE(e,t){if(De(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(De(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function gm(e){var t=oE(e,"string");return De(t)==="symbol"?t:String(t)}function Hf(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 rs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sE(e,t){if(t&&(De(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rs(e)}function qs(e){var t=aE();return function(){var n=ts(e),i;if(t){var o=ts(this).constructor;i=Reflect.construct(n,arguments,o);}else i=n.apply(this,arguments);return sE(this,i)}}var mm={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function 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(Di(n)):Vu.isFragment(n)&&n.props?r=r.concat(Di(n.props.children,t)):r.push(n));}),r}var Fc={},cE=function(t){};function uE(e,t){}function dE(e,t){}function fE(){Fc={};}function pm(e,t,r){!t&&!Fc[r]&&(e(!1,r),Fc[r]=!0);}function jt(e,t){pm(uE,e,t);}function hE(e,t){pm(dE,e,t);}jt.preMessage=cE;jt.resetWarned=fE;jt.noteOnce=hE;function X(e,t,r){return t=gm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wf(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(){!Dc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yE?(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(){!Dc||!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=bE.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}(),ym=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof ji(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new PE(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 ji(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 TE(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}(),Sm=typeof WeakMap<"u"?new WeakMap:new bm,Cm=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=wE.getInstance(),n=new RE(t,r,this);Sm.set(this,n);}return e}();["observe","unobserve","disconnect"].forEach(function(e){Cm.prototype[e]=function(){var t;return (t=Sm.get(this))[e].apply(t,arguments)};});var ME=function(){return typeof is.ResizeObserver<"u"?is.ResizeObserver:Cm}(),An=new Map;function AE(e){e.forEach(function(t){var r,n=t.target;(r=An.get(n))===null||r===void 0||r.forEach(function(i){return i(n)});});}var Em=new ME(AE);function NE(e,t){An.has(e)||(An.set(e,new Set),Em.observe(e)),An.get(e).add(t);}function kE(e,t){An.has(e)&&(An.get(e).delete(t),An.get(e).size||(Em.unobserve(e),An.delete(e)));}var IE=function(e){Gs(r,e);var t=qs(r);function r(){return hr(this,r),t.apply(this,arguments)}return gr(r,[{key:"render",value:function(){return this.props.children}}]),r}(h__namespace.Component),jc=h__namespace.createContext(null);function FE(e){var t=e.children,r=e.onBatchResize,n=h__namespace.useRef(0),i=h__namespace.useRef([]),o=h__namespace.useContext(jc),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(jc.Provider,{value:a},t)}function LE(e,t){var r=e.children,n=e.disabled,i=h__namespace.useRef(null),o=h__namespace.useRef(null),a=h__namespace.useContext(jc),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)&&Ko(l),d=u?l.ref:null,f=h__namespace.useMemo(function(){return ii(d,i)},[d,i]),g=function(){return Lc(i.current)||Lc(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,E=b.onResize,C=b.data,O=p.getBoundingClientRect(),y=O.width,S=O.height,w=p.offsetWidth,M=p.offsetHeight,A=Math.floor(y),_=Math.floor(S);if(c.current.width!==A||c.current.height!==_||c.current.offsetWidth!==w||c.current.offsetHeight!==M){var N={width:A,height:_,offsetWidth:w,offsetHeight:M};c.current=N;var T=w===Math.round(y)?y:w,$=M===Math.round(S)?S:M,x=j(j({},N),{},{offsetWidth:T,offsetHeight:$});a==null||a(x,p,C),E&&Promise.resolve().then(function(){E(x,p);});}},[]);return h__namespace.useEffect(function(){var p=g();return p&&!n&&NE(p,m),function(){return kE(p,m)}},[i.current,n]),h__namespace.createElement(IE,{ref:o},u?h__namespace.cloneElement(l,{ref:f}):l)}var DE=h__namespace.forwardRef(LE),jE="rc-observer-key";function zE(e,t){var r=e.children,n=typeof r=="function"?[r]:Di(r);return n.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(jE,"-").concat(o);return h__namespace.createElement(DE,kt({},e,{key:a,ref:o===0?t:void 0}),i)})}var ad=h__namespace.forwardRef(zE);ad.Collection=FE;function $m(e,t){var r=j({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n];}),r}function zc(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 BE(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 ir(e,t){if(e==null)return {};var r=BE(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 _m(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(jt(!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):qE}function Xs(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function KE(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Pm(e){return Array.from((Wc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Tm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!or())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Vf,KE(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var o=Xs(t),a=o.firstChild;if(n){if(n==="queue"){var s=Pm(o).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Vf))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a);}else o.appendChild(i);return i}function Rm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Xs(t);return Pm(r).find(function(n){return n.getAttribute(Om(t))===e})}function as(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Rm(e,t);if(r){var n=Xs(t);n.removeChild(r);}}function XE(e,t){var r=Wc.get(e);if(!r||!GE(document,r)){var n=Tm("",t),i=n.parentNode;Wc.set(e,i),e.removeChild(n);}}function zi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Xs(r);XE(n,r);var i=Rm(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=Tm(e,r);return l.setAttribute(Om(r),t),l}function ss(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&De(n)==="object"?t+=ss(n):t+=n;}),t}function YE(e,t){return ld("".concat(t,"_").concat(ss(e)))}var mo="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Mm="903px";function ZE(e,t){if(or()){var r;zi(e,mo);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===Mm;return (r=n.parentNode)===null||r===void 0||r.removeChild(n),as(mo),i}return !1}var jl=void 0;function QE(){return jl===void 0&&(jl=ZE("@layer ".concat(mo," { .").concat(mo," { width: ").concat(Mm,"!important; } }"),function(e){e.className=mo;})),jl}function Am(e){if(Array.isArray(e))return e}function JE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1;}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u;}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Nm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,t){return Am(e)||JE(e,t)||sd(e,t)||Nm()}function km(e,t,r,n){var i=h__namespace.useContext(cd),o=i.cache,a=[e].concat(ee(t));return h__namespace.useMemo(function(){o.update(a,function(s){var l=s||[],c=G(l,2),u=c[0],d=u===void 0?0:u,f=c[1],g=f,v=g||r();return [d+1,v]});},[a.join("_")]),h__namespace.useEffect(function(){return function(){o.update(a,function(s){var l=s||[],c=G(l,2),u=c[0],d=u===void 0?0:u,f=c[1],g=d-1;return g===0?(n==null||n(f,!1),null):[d-1,f]});}},a),o.get(a)[1]}var e$={},t$="css",Wn=new Map;function r$(e){Wn.set(e,(Wn.get(e)||0)+1);}function n$(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Hc,'="').concat(e,'"]'));r.forEach(function(n){if(n[yi]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n);}});}}function i$(e,t){Wn.set(e,(Wn.get(e)||0)-1);var r=Array.from(Wn.keys()),n=r.filter(function(i){var o=Wn.get(i)||0;return o<=0});n.length2&&arguments[2]!==void 0?arguments[2]:{},n=h.useContext(cd),i=n.cache.instanceId,o=r.salt,a=o===void 0?"":o,s=r.override,l=s===void 0?e$:s,c=r.formatToken,u=h__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(ee(t)))},[t]),d=h__namespace.useMemo(function(){return ss(u)},[u]),f=h__namespace.useMemo(function(){return ss(l)},[l]),g=km("token",[a,e.id,d,f],function(){var v=e.getDerivativeToken(u),m=j(j({},v),l);c&&(m=c(m));var p=YE(m,a);m._tokenKey=p,r$(p);var b="".concat(t$,"-").concat(ld(p));return m._hashId=b,[m,b]},function(v){i$(v[0]._tokenKey,i);});return g}var a$={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},Uf=or(),s$="_skip_check_",Im="_multi_value_";function Gf(e){var t=Qn(bg(e),yg);return t.replace(/\{%%%\:[^;];}/g,";")}function l$(e){return De(e)==="object"&&e&&(s$ in e||Im in e)}function c$(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(ee(l.slice(1))).join(" ")});return o.join(",")}var u$=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(C){var O=C.getName(s);if(!g[O]){var y=e(C.style,r,{root:!1,parentSelectors:a}),S=G(y,1),w=S[0];g[O]="@keyframes ".concat(C.getName(s)).concat(w);}}function m(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(y){Array.isArray(y)?m(y,O):y&&O.push(y);}),O}var p=m(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var O=typeof C=="string"&&!i?{}:C;if(typeof O=="string")f+="".concat(O,` `);else if(O._keyframe)v(O);else {var y=d.reduce(function(S,w){var M;return (w==null||(M=w.visit)===null||M===void 0?void 0:M.call(w,S))||S},O);Object.keys(y).forEach(function(S){var w=y[S];if(De(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!l$(w)){var M=!1,A=S.trim(),_=!1;(i||o)&&s?A.startsWith("@")?M=!0:A=c$(S,s,c):i&&!s&&(A==="&"||A==="")&&(A="",_=!0);var N=e(w,r,{root:_,injectHash:M,parentSelectors:[].concat(ee(a),[A])}),T=G(N,2),$=T[0],x=T[1];g=j(j({},g),x),f+="".concat(A).concat($);}else {let k=function(L,D){var z=L.replace(/[A-Z]/g,function(W){return "-".concat(W.toLowerCase())}),B=D;!a$[L]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),L==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(v(D),B=D.getName(s)),f+="".concat(z,":").concat(B,";");};var P,I=(P=w==null?void 0:w.value)!==null&&P!==void 0?P:w;De(w)==="object"&&w!==null&&w!==void 0&&w[Im]&&Array.isArray(I)?I.forEach(function(L){k(S,L);}):k(S,I);}});}}),!i)f="{".concat(f,"}");else if(l&&QE()){var b=l.split(","),E=b[b.length-1].trim();f="@layer ".concat(E," {").concat(f,"}"),b.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f));}return [f,g]};function d$(e,t){return ld("".concat(e.join("%")).concat(t))}function f$(){return null}function Bc(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=h__namespace.useContext(cd),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=s.cache,p=r._tokenKey,b=[p].concat(ee(n)),E=Uf,C=km("style",b,function(){var M=t(),A=u$(M,{hashId:i,hashPriority:u,layer:o,path:n.join("-"),transformers:g,linters:v}),_=G(A,2),N=_[0],T=_[1],$=Gf(N),x=d$(b,$);if(E){var P={mark:xi,prepend:"queue",attachTo:d},I=typeof a=="function"?a():a;I&&(P.csp={nonce:I});var k=zi($,x,P);k[yi]=m.instanceId,k.setAttribute(Hc,p),Object.keys(T).forEach(function(L){zi(Gf(T[L]),"_effect-".concat(L),P);});}return [$,p,x]},function(M,A){var _=G(M,3),N=_[2];(A||l)&&Uf&&as(N,{mark:xi});}),O=G(C,3),y=O[0],S=O[1],w=O[2];return function(M){var A;if(!f||E||!c)A=h__namespace.createElement(f$,null);else {var _;A=h__namespace.createElement("style",kt({},(_={},X(_,Hc,S),X(_,xi,w),_),{dangerouslySetInnerHTML:{__html:y}}));}return h__namespace.createElement(h__namespace.Fragment,null,A,M)}}var Bt=function(){function e(t,r){hr(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=r;}return gr(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 h$(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),qf+=1;}return gr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),zl=new ud;function Fm(e){var t=Array.isArray(e)?e:[e];return zl.has(t)||zl.set(t,new g$(t)),zl.get(t)}function di(e){return e.notSplit=!0,e}di(["borderTop","borderBottom"]),di(["borderTop"]),di(["borderBottom"]),di(["borderLeft","borderRight"]),di(["borderLeft"]),di(["borderRight"]);var m$=h.createContext({});const dd=m$;var Vn="RC_FORM_INTERNAL_HOOKS",Fe=function(){jt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},Hi=h__namespace.createContext({getFieldValue:Fe,getFieldsValue:Fe,getFieldError:Fe,getFieldWarning:Fe,getFieldsError:Fe,isFieldsTouched:Fe,isFieldTouched:Fe,isFieldValidating:Fe,isFieldsValidating:Fe,resetFields:Fe,setFields:Fe,setFieldValue:Fe,setFieldsValue:Fe,validateFields:Fe,submit:Fe,getInternalHooks:function(){return Fe(),{dispatch:Fe,initEntityValue:Fe,registerField:Fe,useSubscribe:Fe,setInitialValues:Fe,destroyForm:Fe,setCallbacks:Fe,registerWatch:Fe,getFields:Fe,setValidateMessages:Fe,setPreserve:Fe,getInitialValue:Fe}}}),Vc=h__namespace.createContext(null);function Uc(e){return e==null?[]:Array.isArray(e)?e:[e]}function p$(e){return e&&!!e._init}function ar(){ar=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(T,$,x){T[$]=x.value;},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(T,$,x){return Object.defineProperty(T,$,{value:x,enumerable:!0,configurable:!0,writable:!0}),T[$]}try{l({},"");}catch{l=function(x,P,I){return x[P]=I};}function c(T,$,x,P){var I=$&&$.prototype instanceof f?$:f,k=Object.create(I.prototype),L=new A(P||[]);return n(k,"_invoke",{value:y(T,x,L)}),k}function u(T,$,x){try{return {type:"normal",arg:T.call($,x)}}catch(P){return {type:"throw",arg:P}}}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(_([])));b&&b!==t&&r.call(b,o)&&(m=b);var E=v.prototype=f.prototype=Object.create(m);function C(T){["next","throw","return"].forEach(function($){l(T,$,function(x){return this._invoke($,x)});});}function O(T,$){function x(I,k,L,D){var z=u(T[I],T,k);if(z.type!=="throw"){var B=z.arg,W=B.value;return W&&De(W)=="object"&&r.call(W,"__await")?$.resolve(W.__await).then(function(V){x("next",V,L,D);},function(V){x("throw",V,L,D);}):$.resolve(W).then(function(V){B.value=V,L(B);},function(V){return x("throw",V,L,D)})}D(z.arg);}var P;n(this,"_invoke",{value:function(k,L){function D(){return new $(function(z,B){x(k,L,z,B);})}return P=P?P.then(D,D):D()}});}function y(T,$,x){var P="suspendedStart";return function(I,k){if(P==="executing")throw new Error("Generator is already running");if(P==="completed"){if(I==="throw")throw k;return N()}for(x.method=I,x.arg=k;;){var L=x.delegate;if(L){var D=S(L,x);if(D){if(D===d)continue;return D}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(P==="suspendedStart")throw P="completed",x.arg;x.dispatchException(x.arg);}else x.method==="return"&&x.abrupt("return",x.arg);P="executing";var z=u(T,$,x);if(z.type==="normal"){if(P=x.done?"completed":"suspendedYield",z.arg===d)continue;return {value:z.arg,done:x.done}}z.type==="throw"&&(P="completed",x.method="throw",x.arg=z.arg);}}}function S(T,$){var x=$.method,P=T.iterator[x];if(P===void 0)return $.delegate=null,x==="throw"&&T.iterator.return&&($.method="return",$.arg=void 0,S(T,$),$.method==="throw")||x!=="return"&&($.method="throw",$.arg=new TypeError("The iterator does not provide a '"+x+"' method")),d;var I=u(P,T.iterator,$.arg);if(I.type==="throw")return $.method="throw",$.arg=I.arg,$.delegate=null,d;var k=I.arg;return k?k.done?($[T.resultName]=k.value,$.next=T.nextLoc,$.method!=="return"&&($.method="next",$.arg=void 0),$.delegate=null,d):k:($.method="throw",$.arg=new TypeError("iterator result is not an object"),$.delegate=null,d)}function w(T){var $={tryLoc:T[0]};1 in T&&($.catchLoc=T[1]),2 in T&&($.finallyLoc=T[2],$.afterLoc=T[3]),this.tryEntries.push($);}function M(T){var $=T.completion||{};$.type="normal",delete $.arg,T.completion=$;}function A(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(w,this),this.reset(!0);}function _(T){if(T){var $=T[o];if($)return $.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var x=-1,P=function I(){for(;++x=0;--I){var k=this.tryEntries[I],L=k.completion;if(k.tryLoc==="root")return P("end");if(k.tryLoc<=this.prev){var D=r.call(k,"catchLoc"),z=r.call(k,"finallyLoc");if(D&&z){if(this.prev=0;--P){var I=this.tryEntries[P];if(I.tryLoc<=this.prev&&r.call(I,"finallyLoc")&&this.prev=0;--x){var P=this.tryEntries[x];if(P.finallyLoc===$)return this.complete(P.completion,P.afterLoc),M(P),d}},catch:function($){for(var x=this.tryEntries.length-1;x>=0;--x){var P=this.tryEntries[x];if(P.tryLoc===$){var I=P.completion;if(I.type==="throw"){var k=I.arg;M(P);}return k}}throw new Error("illegal catch attempt")},delegateYield:function($,x,P){return this.delegate={iterator:_($),resultName:x,nextLoc:P},this.method==="next"&&(this.arg=void 0),d}},e}function Kf(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){Kf(o,n,i,a,s,"next",l);}function s(l){Kf(o,n,i,a,s,"throw",l);}a(void 0);})}}function Un(){return Un=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 Da(e,t,r){return b$()?Da=Reflect.construct.bind():Da=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&ko(c,a.prototype),c},Da.apply(null,arguments)}function y$(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function qc(e){var t=typeof Map=="function"?new Map:void 0;return qc=function(n){if(n===null||!y$(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 Da(n,arguments,Gc(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ko(i,n)},qc(e)}var w$=/%[sdj%]/g,S$=function(){};typeof process<"u"&&process.env;function Kc(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 rr(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 mt(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||C$(t)&&typeof e=="string"&&!e)}function E$(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 Xf(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(Jf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(T$())},hex:function(t){return typeof t=="string"&&!!t.match(Jf.hex)}},R$=function(t,r,n,i,o){if(t.required&&r===void 0){Lm(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(rr(o.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(rr(o.messages.types[s],t.fullField,t.type));},M$=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(rr(o.messages[d].len,t.fullField,t.len)):s&&!l&&ut.max?i.push(rr(o.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(rr(o.messages[d].range,t.fullField,t.min,t.max));},fi="enum",A$=function(t,r,n,i,o){t[fi]=Array.isArray(t[fi])?t[fi]:[],t[fi].indexOf(r)===-1&&i.push(rr(o.messages[fi],t.fullField,t[fi].join(", ")));},N$=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(rr(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(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));}}},Ce={required:Lm,whitespace:P$,type:R$,range:M$,enum:A$,pattern:N$},k$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r,"string")&&!t.required)return n();Ce.required(t,r,i,a,o,"string"),mt(r,"string")||(Ce.type(t,r,i,a,o),Ce.range(t,r,i,a,o),Ce.pattern(t,r,i,a,o),t.whitespace===!0&&Ce.whitespace(t,r,i,a,o));}n(a);},I$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o),r!==void 0&&Ce.type(t,r,i,a,o);}n(a);},F$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o),r!==void 0&&(Ce.type(t,r,i,a,o),Ce.range(t,r,i,a,o));}n(a);},L$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o),r!==void 0&&Ce.type(t,r,i,a,o);}n(a);},D$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o),mt(r)||Ce.type(t,r,i,a,o);}n(a);},j$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o),r!==void 0&&(Ce.type(t,r,i,a,o),Ce.range(t,r,i,a,o));}n(a);},z$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o),r!==void 0&&(Ce.type(t,r,i,a,o),Ce.range(t,r,i,a,o));}n(a);},H$=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();Ce.required(t,r,i,a,o,"array"),r!=null&&(Ce.type(t,r,i,a,o),Ce.range(t,r,i,a,o));}n(a);},W$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o),r!==void 0&&Ce.type(t,r,i,a,o);}n(a);},B$="enum",V$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o),r!==void 0&&Ce[B$](t,r,i,a,o);}n(a);},U$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r,"string")&&!t.required)return n();Ce.required(t,r,i,a,o),mt(r,"string")||Ce.pattern(t,r,i,a,o);}n(a);},G$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r,"date")&&!t.required)return n();if(Ce.required(t,r,i,a,o),!mt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ce.type(t,l,i,a,o),l&&Ce.range(t,l.getTime(),i,a,o);}}n(a);},q$=function(t,r,n,i,o){var a=[],s=Array.isArray(r)?"array":typeof r;Ce.required(t,r,i,a,o,s),n(a);},Hl=function(t,r,n,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(mt(r,a)&&!t.required)return n();Ce.required(t,r,i,s,o,a),mt(r,a)||Ce.type(t,r,i,s,o);}n(s);},K$=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(mt(r)&&!t.required)return n();Ce.required(t,r,i,a,o);}n(a);},po={string:k$,method:I$,number:F$,boolean:L$,regexp:D$,integer:j$,float:z$,array:H$,object:W$,enum:V$,pattern:U$,date:G$,url:Hl,hex:Hl,email:Hl,required:q$,any:K$};function Xc(){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 Yc=Xc(),Xo=function(){function e(r){this.rules=null,this._messages=Yc,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=Qf(Xc(),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 E(O){if(Array.isArray(O)){var y;p=(y=p).concat.apply(y,O);}else p.push(O);}for(var C=0;C3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!an(e,t.slice(0,-1))?e:jm(e,t,r,n)}function Ys(e){return Array.isArray(e)?Z$(e):De(e)==="object"&&e!==null?Y$(e):e}function Y$(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var r in e)t[r]=Ys(e[r]);return t}return e}function Z$(e){return e.map(function(t){return Ys(t)})}function ot(e){return Uc(e)}function eh(e,t){var r={};return t.forEach(function(n){var i=an(e,n);r=_n(r,n,i);}),r}function vo(e,t){return e&&e.some(function(r){return Hm(r,t)})}function th(e){return De(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function zm(e,t){var r=Array.isArray(e)?ee(e):j({},e);return t&&Object.keys(t).forEach(function(n){var i=r[n],o=t[n],a=th(i)&&th(o);r[n]=a?zm(i,o||{}):Ys(o);}),r}function bo(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(ee(e.slice(0,r)),[i],ee(e.slice(r,t)),ee(e.slice(t+1,n))):o<0?[].concat(ee(e.slice(0,t)),ee(e.slice(t+1,r+1)),[i],ee(e.slice(r+1,n))):e}var nh=Xo;function ex(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var ih="CODE_LOGIC_ERROR";function Zc(e,t,r,n,i){return Qc.apply(this,arguments)}function Qc(){return Qc=qi(ar().mark(function e(t,r,n,i,o){var a,s,l,c,u,d,f,g,v;return ar().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=j({},n),delete a.ruleIndex,nh.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(ih)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new nh(X({},t,[a])),u=bo({},Dm,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,E){var C=b.message,O=C===ih?u.default:C;return h__namespace.isValidElement(O)?h__namespace.cloneElement(O,{key:"error_".concat(E)}):O}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(b,E){return Zc("".concat(t,".").concat(E),b,l,i,o)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,E){return [].concat(ee(b),ee(E))},[]));case 23:return g=j(j({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),v=d.map(function(b){return typeof b=="string"?ex(b,g):b}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Qc.apply(this,arguments)}function tx(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,E=function(){for(var y=arguments.length,S=new Array(y),w=0;w0&&arguments[0]!==void 0?arguments[0]:cr;if(i.validatePromise===d){var y;i.validatePromise=null;var S=[],w=[];(y=O.forEach)===null||y===void 0||y.call(O,function(M){var A=M.rule.warningOnly,_=M.errors,N=_===void 0?cr:_;A?w.push.apply(w,ee(N)):S.push.apply(S,ee(N));}),i.errors=S,i.warnings=w,i.triggerMetaEvent(),i.reRender();}}),C});return i.validatePromise=d,i.dirty=!0,i.errors=cr,i.warnings=cr,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(Vn),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=Di(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 an(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,E=i.getNamePath(),C=p.getInternalHooks,O=p.getFieldsValue,y=C(Vn),S=y.dispatch,w=i.getValue(),M=m||function(T){return X({},v,T)},A=l[u],_=j(j({},l),M(w));_[u]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var T,$=arguments.length,x=new Array($),P=0;P<$;P++)x[P]=arguments[P];f?T=f.apply(void 0,x):T=J$.apply(void 0,[v].concat(x)),g&&(T=g(T,w,O(!0))),S({type:"updateValue",namePath:E,value:T}),A&&A.apply(void 0,x);};var N=Uc(b||[]);return N.forEach(function(T){var $=_[T];_[T]=function(){$&&$.apply(void 0,arguments);var x=i.props.rules;x&&x.length&&S({type:"validateField",namePath:E,triggerName:T});};}),_},n.fieldContext){var o=n.fieldContext.getInternalHooks,a=o(Vn),s=a.initEntityValue;s(rs(i));}return i}return gr(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(Vn),c=l.registerField;this.cancelRegisterFunc=c(this);}o===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,l=a.isFunction,c;return l?c=s:h__namespace.isValidElement(s)?c=h__namespace.cloneElement(s,this.getControlled(s.props)):(jt(!s,"`children` of Field is not validate ReactElement."),c=s),h__namespace.createElement(h__namespace.Fragment,{key:i},c)}}]),r}(h__namespace.Component);fd.contextType=Hi;fd.defaultProps={trigger:"onChange",valuePropName:"value"};function Wm(e){var t=e.name,r=ir(e,ix),n=h__namespace.useContext(Hi),i=h__namespace.useContext(Vc),o=t!==void 0?ot(t):void 0,a="keep";return r.isListField||(a="_".concat((o||[]).join("_"))),h__namespace.createElement(fd,kt({key:a,name:o,isListField:!!i},r,{fieldContext:n}))}var ox=function(t){var r=t.name,n=t.initialValue,i=t.children,o=t.rules,a=t.validateTrigger,s=t.isListField,l=h__namespace.useContext(Hi),c=h__namespace.useContext(Vc),u=h__namespace.useRef({keys:[],id:0}),d=u.current,f=h__namespace.useMemo(function(){var p=ot(l.prefixName)||[];return [].concat(ee(p),ee(ot(r)))},[l.prefixName,r]),g=h__namespace.useMemo(function(){return j(j({},l),{},{prefixName:f})},[l,f]),v=h__namespace.useMemo(function(){return {getKey:function(b){var E=f.length,C=b[E];return [d.keys[C],b.slice(E+1)]}}},[f]);if(typeof i!="function")return jt(!1,"Form.List only accepts function as children."),null;var m=function(b,E,C){var O=C.source;return O==="internal"?!1:b!==E};return h__namespace.createElement(Vc.Provider,{value:v},h__namespace.createElement(Hi.Provider,{value:g},h__namespace.createElement(Wm,{name:[],shouldUpdate:m,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:s??!!c},function(p,b){var E=p.value,C=E===void 0?[]:E,O=p.onChange,y=l.getFieldValue,S=function(){var _=y(f||[]);return _||[]},w={add:function(_,N){var T=S();N>=0&&N<=T.length?(d.keys=[].concat(ee(d.keys.slice(0,N)),[d.id],ee(d.keys.slice(N))),O([].concat(ee(T.slice(0,N)),[_],ee(T.slice(N))))):(d.keys=[].concat(ee(d.keys),[d.id]),O([].concat(ee(T),[_]))),d.id+=1;},remove:function(_){var N=S(),T=new Set(Array.isArray(_)?_:[_]);T.size<=0||(d.keys=d.keys.filter(function($,x){return !T.has(x)}),O(N.filter(function($,x){return !T.has(x)})));},move:function(_,N){if(_!==N){var T=S();_<0||_>=T.length||N<0||N>=T.length||(d.keys=rh(d.keys,_,N),O(rh(T,_,N)));}}},M=C||[];return Array.isArray(M)||(M=[]),i(M.map(function(A,_){var N=d.keys[_];return N===void 0&&(d.keys[_]=d.id,N=d.keys[_],d.id+=1),{name:_,key:N,isListField:!0}}),w,b)})))};function ax(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 Bm="__@field_split__";function Wl(e){return e.map(function(t){return "".concat(De(t),":").concat(t)}).join(Bm)}var hi=function(){function e(){hr(this,e),this.kvs=new Map;}return gr(e,[{key:"set",value:function(r,n){this.kvs.set(Wl(r),n);}},{key:"get",value:function(r){return this.kvs.get(Wl(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(Wl(r));}},{key:"map",value:function(r){return ee(this.kvs.entries()).map(function(n){var i=G(n,2),o=i[0],a=i[1],s=o.split(Bm);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}(),sx=["name"],lx=gr(function e(t){var r=this;hr(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===Vn?(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}):(jt(!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=bo({},n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=_n(a,l,an(n,l));}),r.prevWithoutPreserves=null,r.updateStore(a);}},this.destroyForm=function(){var n=new hi;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0);}),r.prevWithoutPreserves=n;},this.getInitialValue=function(n){var i=an(r.initialValues,n);return n.length?Ys(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 hi;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=ot(o);return i.get(a)||{INVALIDATE_NAME_PATH:ot(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);}}),eh(r.store,a.map(ot))},this.getFieldValue=function(n){r.warningUnhooked();var i=ot(n);return an(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:ot(n[a]),errors:[],warnings:[]}})},this.getFieldError=function(n){r.warningUnhooked();var i=ot(n),o=r.getFieldsError([i])[0];return o.errors},this.getFieldWarning=function(n){r.warningUnhooked();var i=ot(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 hi,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)jt(!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)jt(!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,ee(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,ee(ee(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(bo({},r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(ot);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=ir(a,sx),c=ot(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=an(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 !Hm(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(ee(o))}),o},this.updateValue=function(n,i){var o=ot(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=eh(r.store,[o]);l(c,r.getFieldsValue());}r.triggerOnFieldsChange([o].concat(ee(s)));},this.setFieldsValue=function(n){r.warningUnhooked();var i=r.store;if(n){var o=bo(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 hi;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=ot(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 hi;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 vo(n,u)});o(l,a);}},this.validateFields=function(n,i){r.warningUnhooked();var o=!!n,a=o?n.map(ot):[],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||vo(a,f)){var g=u.validateRules(j({validateMessages:j(j({},Dm),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(E){var C=E.rule.warningOnly,O=E.errors;C?b.push.apply(b,ee(O)):p.push.apply(p,ee(O));}),p.length?Promise.reject({name:f,errors:p,warnings:b}):{name:f,errors:p,warnings:b}}));}}});var l=ax(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 Vm(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 lx(o);t.current=a.getForm();}return [t.current]}var tu=h__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Um=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,a=h__namespace.useContext(tu),s=h__namespace.useRef({});return h__namespace.createElement(tu.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)},cx=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],ux=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,E=ir(t,cx),C=h__namespace.useContext(tu),O=Vm(a),y=G(O,1),S=y[0],w=S.getInternalHooks(Vn),M=w.useSubscribe,A=w.setInitialValues,_=w.setCallbacks,N=w.setValidateMessages,T=w.setPreserve,$=w.destroyForm;h__namespace.useImperativeHandle(r,function(){return S}),h__namespace.useEffect(function(){return C.registerForm(n,S),function(){C.unregisterForm(n);}},[C,S,n]),N(j(j({},C.validateMessages),d)),_({onValuesChange:v,onFieldsChange:function(W){if(C.triggerFormChange(n,W),m){for(var V=arguments.length,te=new Array(V>1?V-1:0),H=1;H{const{locale:t={},children:r,_ANT_MARK__:n}=e;h__namespace.useEffect(()=>(lh(t&&t.Modal),()=>{lh();}),[t]);const i=h__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h__namespace.createElement(qm.Provider,{value:i},r)},Sx=wx,Cx="5.4.6",ls=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function _t(e,t){Ex(e)&&(e="100%");var r=$x(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 Sa(e){return Math.min(1,Math.max(0,e))}function Ex(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $x(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Km(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ca(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Gn(e){return e.length===1?"0"+e:String(e)}function xx(e,t,r){return {r:_t(e,255)*255,g:_t(t,255)*255,b:_t(r,255)*255}}function ch(e,t,r){e=_t(e,255),t=_t(t,255),r=_t(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 _x(e,t,r){var n,i,o;if(e=_t(e,360),t=_t(t,100),r=_t(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=Vl(s,a,e+1/3),i=Vl(s,a,e),o=Vl(s,a,e-1/3);}return {r:n*255,g:i*255,b:o*255}}function ru(e,t,r){e=_t(e,255),t=_t(t,255),r=_t(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 iu={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 bi(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=Nx(e)),typeof e=="object"&&(Jr(e.r)&&Jr(e.g)&&Jr(e.b)?(t=xx(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jr(e.h)&&Jr(e.s)&&Jr(e.v)?(n=Ca(e.s),i=Ca(e.v),t=Ox(e.h,n,i),a=!0,s="hsv"):Jr(e.h)&&Jr(e.s)&&Jr(e.l)&&(n=Ca(e.s),o=Ca(e.l),t=_x(e.h,n,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Km(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 Mx="[-\\+]?\\d+%?",Ax="[-\\+]?\\d*\\.\\d+%?",Nn="(?:".concat(Ax,")|(?:").concat(Mx,")"),Ul="[\\s|\\(]+(".concat(Nn,")[,|\\s]+(").concat(Nn,")[,|\\s]+(").concat(Nn,")\\s*\\)?"),Gl="[\\s|\\(]+(".concat(Nn,")[,|\\s]+(").concat(Nn,")[,|\\s]+(").concat(Nn,")[,|\\s]+(").concat(Nn,")\\s*\\)?"),vr={CSS_UNIT:new RegExp(Nn),rgb:new RegExp("rgb"+Ul),rgba:new RegExp("rgba"+Gl),hsl:new RegExp("hsl"+Ul),hsla:new RegExp("hsla"+Gl),hsv:new RegExp("hsv"+Ul),hsva:new RegExp("hsva"+Gl),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 Nx(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(iu[e])e=iu[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var r=vr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=vr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=vr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=vr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=vr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=vr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=vr.hex8.exec(e),r?{r:Qt(r[1]),g:Qt(r[2]),b:Qt(r[3]),a:uh(r[4]),format:t?"name":"hex8"}:(r=vr.hex6.exec(e),r?{r:Qt(r[1]),g:Qt(r[2]),b:Qt(r[3]),format:t?"name":"hex"}:(r=vr.hex4.exec(e),r?{r:Qt(r[1]+r[1]),g:Qt(r[2]+r[2]),b:Qt(r[3]+r[3]),a:uh(r[4]+r[4]),format:t?"name":"hex8"}:(r=vr.hex3.exec(e),r?{r:Qt(r[1]+r[1]),g:Qt(r[2]+r[2]),b:Qt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Jr(e){return !!vr.CSS_UNIT.exec(String(e))}var Nt=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=Rx(t)),this.originalInput=t;var i=bi(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=Km(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=ru(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=ru(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=ch(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=ch(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),nu(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),Px(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(_t(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(_t(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="#"+nu(this.r,this.g,this.b,!1),r=0,n=Object.entries(iu);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=Sa(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=Sa(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=Sa(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=Sa(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)-Ea*t:Math.round(e.h)+Ea*t:n=r?Math.round(e.h)+Ea*t:Math.round(e.h)-Ea*t,n<0?n+=360:n>=360&&(n-=360),n}function gh(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-dh*t:t===Ym?n=e.s+dh:n=e.s+kx*t,n>1&&(n=1),r&&t===Xm&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function mh(e,t,r){var n;return r?n=e.v+Ix*t:n=e.v-Fx*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=bi(e),i=Xm;i>0;i-=1){var o=fh(n),a=$a(bi({h:hh(o,i,!0),s:gh(o,i,!0),v:mh(o,i,!0)}));r.push(a);}r.push($a(n));for(var s=1;s<=Ym;s+=1){var l=fh(n),c=$a(bi({h:hh(l,s),s:gh(l,s),v:mh(l,s)}));r.push(c);}return t.theme==="dark"?Lx.map(function(u){var d=u.index,f=u.opacity,g=$a(Dx(bi(t.backgroundColor||"#141414"),bi(r[d]),f*100));return g}):r}var ql={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"},Kl={},Xl={};Object.keys(ql).forEach(function(e){Kl[e]=hn(ql[e]),Kl[e].primary=Kl[e][5],Xl[e]=hn(ql[e],{theme:"dark",backgroundColor:"#141414"}),Xl[e].primary=Xl[e][5];});const jx=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Zm=jx;function zx(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 gd={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"},Zs=Object.assign(Object.assign({},gd),{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 Qm(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 Nt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Hx=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}},Wx=Hx;function Bx(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},Wx(n))}const en=(e,t)=>new Nt(e).setAlpha(t).toRgbString(),ro=(e,t)=>new Nt(e).darken(t).toHexString(),Vx=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]}},Ux=(e,t)=>{const r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:en(n,.88),colorTextSecondary:en(n,.65),colorTextTertiary:en(n,.45),colorTextQuaternary:en(n,.25),colorFill:en(n,.15),colorFillSecondary:en(n,.06),colorFillTertiary:en(n,.04),colorFillQuaternary:en(n,.02),colorBgLayout:ro(r,4),colorBgContainer:ro(r,0),colorBgElevated:ro(r,0),colorBgSpotlight:en(n,.85),colorBorder:ro(r,15),colorBorderSecondary:ro(r,6)}};function Gx(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 qx=e=>{const t=Gx(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]}},Jm=qx;function Qs(e){const t=Object.keys(gd).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),Qm(e,{generateColorPalettes:Vx,generateNeutralColorPalettes:Ux})),Jm(e.fontSize)),zx(e)),Zm(e)),Bx(e))}function Yl(e){return e>=0&&e<=255}function xa(e,t){const{r,g:n,b:i,a:o}=new Nt(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new Nt(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(Yl(u)&&Yl(d)&&Yl(f))return new Nt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Nt({r,g:n,b:i,a:1}).toRgbString()}var Kx=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:xa(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:xa(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:xa(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:xa(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 Nt("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Nt("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Nt("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 ep="anticon",Yx=(e,t)=>t||(e?`ant-${e}`:"ant"),ut=h__namespace.createContext({getPrefixCls:Yx,iconPrefixCls:ep}),Zx=(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,E=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,`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:E,height:E,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"}}},fr=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),tp=()=>({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"}}),Qx=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Jx=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"}}}),e_=(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"}}}}},Js=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),t_=e=>({"&:focus-visible":Object.assign({},Js(e))});function wn(e,t,r,n){return i=>{const[o,a,s]=el(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=h.useContext(ut),d=l(),f={theme:o,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return Bc(Object.assign(Object.assign({},f),{path:["Shared",d]}),()=>[{"&":Jx(a)}]),[Bc(Object.assign(Object.assign({},f),{path:[e,i,c]}),()=>{const{token:g,flush:v}=n_(a),m=typeof r=="function"?r(g):r,p=Object.assign(Object.assign({},m),a[e]),b=`.${i}`,E=Ht(g,{componentCls:b,prefixCls:i,iconCls:`.${c}`,antCls:`.${d}`},p),C=t(E,{hashId:s,prefixCls:i,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:a[e]});return v(e,p),[(n==null?void 0:n.resetStyle)===!1?null:e_(a,i),C]}),s]}}const rp=typeof CSSINJS_STATISTIC<"u";let ou=!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]});});}),ou=!0,n}function r_(){}function n_(e){let t,r=e,n=r_;return rp&&(t=new Set,r=new Proxy(e,{get(i,o){return ou&&t.add(o),i[o]}}),n=(i,o)=>{Array.from(t);}),{token:r,keys:t,flush:n}}function np(e,t){return ls.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 i_=Fm(Qs),cs={token:Zs,hashed:!0},ip=h.createContext(cs);function el(){const{token:e,hashed:t,theme:r,components:n}=h.useContext(ip),i=`${Cx}-${t||""}`,o=r||i_,[a,s]=o$(o,[Zs,e],{salt:i,override:Object.assign({override:e},n),formatToken:Xx});return [o,a,t?s:""]}const o_=`-ant-${Date.now()}-${Math.random()}`;function a_(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 Nt(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 Nt(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 Nt(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 s_(e,t){const r=a_(e,t);or()&&zi(r,`${o_}-dynamic-theme`);}const au=h__namespace.createContext(!1),l_=e=>{let{children:t,disabled:r}=e;const n=h__namespace.useContext(au);return h__namespace.createElement(au.Provider,{value:r??n},t)},Zo=au,su=h__namespace.createContext(void 0),c_=e=>{let{children:t,size:r}=e;const n=h__namespace.useContext(su);return h__namespace.createElement(su.Provider,{value:r||n},t)},Ki=su;function u_(){const e=h.useContext(Zo),t=h.useContext(Ki);return {componentDisabled:e,componentSize:t}}function d_(e,t){const r=e||{},n=r.inherit===!1||!t?cs: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 !_m(s,c,!0)}))}const f_=(e,t)=>{const[r,n]=el();return Bc({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},tp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},h_=f_;var g_=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&&(op=t),n&&s_(v_(),n);},y_=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(($,x)=>{const{prefixCls:P}=e;if(x)return x;const I=P||f.getPrefixCls("");return $?`${I}-${$}`:I},[f.getPrefixCls,e.prefixCls]),b=g||f.iconPrefixCls||ep,E=b!==f.iconPrefixCls,C=r||f.csp,O=h_(b,C),y=d_(v,f.theme),S={csp:C,autoInsertSpaceInButton:n,locale:o||d,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,getPrefixCls:p,iconPrefixCls:b,theme:y},w=Object.assign({},f);Object.keys(S).forEach($=>{S[$]!==void 0&&(w[$]=S[$]);}),m_.forEach($=>{const x=e[$];x&&(w[$]=x);});const M=id(()=>w,w,($,x)=>{const P=Object.keys($),I=Object.keys(x);return P.length!==I.length||P.some(k=>$[k]!==x[k])}),A=h__namespace.useMemo(()=>({prefixCls:b,csp:C}),[b,C]);let _=E?O(t):t;const N=h__namespace.useMemo(()=>{var $,x,P;return bo({},(($=hd.Form)===null||$===void 0?void 0:$.defaultValidateMessages)||{},((P=(x=M.locale)===null||x===void 0?void 0:x.Form)===null||P===void 0?void 0:P.defaultValidateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[M,i==null?void 0:i.validateMessages]);Object.keys(N).length>0&&(_=h__namespace.createElement(Um,{validateMessages:N},t)),o&&(_=h__namespace.createElement(Sx,{locale:o,_ANT_MARK__:yx},_)),(b||C)&&(_=h__namespace.createElement(dd.Provider,{value:A},_)),a&&(_=h__namespace.createElement(c_,{size:a},_));const T=h__namespace.useMemo(()=>{const $=y||{},{algorithm:x,token:P}=$,I=g_($,["algorithm","token"]),k=x&&(!Array.isArray(x)||x.length>0)?Fm(x):void 0;return Object.assign(Object.assign({},I),{theme:k,token:Object.assign(Object.assign({},Zs),P)})},[y]);return v&&(_=h__namespace.createElement(ip.Provider,{value:T},_)),m!==void 0&&(_=h__namespace.createElement(l_,{disabled:m},_)),h__namespace.createElement(ut.Provider,{value:M},_)},Xi=e=>{const t=h__namespace.useContext(ut),r=h__namespace.useContext(qm);return h__namespace.createElement(y_,Object.assign({parentContext:t,legacyLocale:r},e))};Xi.ConfigContext=ut;Xi.SizeContext=Ki;Xi.config=b_;Xi.useConfig=u_;Object.defineProperty(Xi,"SizeContext",{get:()=>Ki});const ap=Xi;var sp=function(t){return +setTimeout(t,16)},lp=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(sp=function(t){return window.requestAnimationFrame(t)},lp=function(t){return window.cancelAnimationFrame(t)});var ph=0,md=new Map;function cp(e){md.delete(e);}var gn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ph+=1;var n=ph;function i(o){if(o===0)cp(n),t();else {var a=sp(function(){i(o-1);});md.set(n,a);}}return i(r),n};gn.cancel=function(e){var t=md.get(e);return cp(t),lp(t)};function w_(e,t){jt(e,"[@ant-design/icons] ".concat(t));}function vh(e){return De(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(De(e.icon)==="object"||typeof e.icon=="function")}function bh(){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 lu(e,t,r){return r?h.createElement(e.tag,j(j({key:t},bh(e.attrs)),r),(e.children||[]).map(function(n,i){return lu(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):h.createElement(e.tag,j({key:t},bh(e.attrs)),(e.children||[]).map(function(n,i){return lu(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function up(e){return hn(e)[0]}function dp(e){return e?Array.isArray(e)?e:[e]:[]}var S_=` .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); } } `,C_=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S_,r=h.useContext(dd),n=r.csp,i=r.prefixCls,o=t;i&&(o=o.replace(/anticon/g,i)),h.useEffect(function(){zi(o,"@ant-design-icons",{prepend:!0,csp:n});},[]);},E_=["icon","className","onClick","style","primaryColor","secondaryColor"],yo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $_(e){var t=e.primaryColor,r=e.secondaryColor;yo.primaryColor=t,yo.secondaryColor=r||up(t),yo.calculated=!!r;}function x_(){return j({},yo)}var tl=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=ir(t,E_),c=yo;if(a&&(c={primaryColor:a,secondaryColor:s||up(a)}),C_(),w_(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)})),lu(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))};tl.displayName="IconReact";tl.getTwoToneColors=x_;tl.setTwoToneColors=$_;const pd=tl;function fp(e){var t=dp(e),r=G(t,2),n=r[0],i=r[1];return pd.setTwoToneColors({primaryColor:n,secondaryColor:i})}function __(){var e=pd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var O_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];fp("#1890ff");var rl=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=ir(e,O_),d=h__namespace.useContext(dd),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,E=dp(c),C=G(E,2),O=C[0],y=C[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(pd,{icon:i,primaryColor:O,secondaryColor:y,style:b}))});rl.displayName="AntdIcon";rl.getTwoToneColor=__;rl.setTwoToneColor=fp;const nl=rl;var P_={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 T_=P_;var hp=function(t,r){return h__namespace.createElement(nl,j(j({},t),{},{ref:r,icon:T_}))};hp.displayName="CloseOutlined";const R_=h__namespace.forwardRef(hp);var M_=h__namespace.createContext({}),A_=function(e){Gs(r,e);var t=qs(r);function r(){return hr(this,r),t.apply(this,arguments)}return gr(r,[{key:"render",value:function(){return this.props.children}}]),r}(h__namespace.Component);function _i(e){var t=h__namespace.useRef(!1),r=h__namespace.useState(e),n=G(r,2),i=n[0],o=n[1];h__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||o(s);}return [i,a]}var Hn="none",_a="appear",Oa="enter",Pa="leave",yh="none",xr="prepare",wi="start",Si="active",vd="end",gp="prepared";function wh(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 N_(e,t){var r={animationend:wh("Animation","AnimationEnd"),transitionend:wh("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var k_=N_(or(),typeof window<"u"?window:{}),mp={};if(or()){var I_=document.createElement("div");mp=I_.style;}var Ta={};function pp(e){if(Ta[e])return Ta[e];var t=k_[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 D_=[xr,wi,Si,vd],j_=[xr,gp],Sp=!1,z_=!0;function Cp(e){return e===Si||e===vd}const H_=function(e,t,r){var n=_i(yh),i=G(n,2),o=i[0],a=i[1],s=L_(),l=G(s,2),c=l[0],u=l[1];function d(){a(xr,!0);}var f=t?j_:D_;return wp(function(){if(o!==yh&&o!==vd){var g=f.indexOf(o),v=f[g+1],m=r(o);m===Sp?a(v,!0):v&&c(function(p){function b(){p.isCanceled()||a(v,!0);}m===!0?b():Promise.resolve(m).then(b);});}},[e,o]),h__namespace.useEffect(function(){return function(){u();}},[]),[d,o]};function W_(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,E=n.onAppearActive,C=n.onEnterActive,O=n.onLeaveActive,y=n.onAppearEnd,S=n.onEnterEnd,w=n.onLeaveEnd,M=n.onVisibleChanged,A=_i(),_=G(A,2),N=_[0],T=_[1],$=_i(Hn),x=G($,2),P=x[0],I=x[1],k=_i(null),L=G(k,2),D=L[0],z=L[1],B=h.useRef(!1),W=h.useRef(null);function V(){return r()}var te=h.useRef(!1);function H(){I(Hn,!0),z(null,!0);}function J(re){var oe=V();if(!(re&&!re.deadline&&re.target!==oe)){var de=te.current,ke;P===_a&&de?ke=y==null?void 0:y(oe,re):P===Oa&&de?ke=S==null?void 0:S(oe,re):P===Pa&&de&&(ke=w==null?void 0:w(oe,re)),P!==Hn&&de&&ke!==!1&&H();}}var ae=F_(J),ve=G(ae,1),ie=ve[0],be=function(oe){var de,ke,Ie;switch(oe){case _a:return de={},X(de,xr,f),X(de,wi,m),X(de,Si,E),de;case Oa:return ke={},X(ke,xr,g),X(ke,wi,p),X(ke,Si,C),ke;case Pa:return Ie={},X(Ie,xr,v),X(Ie,wi,b),X(Ie,Si,O),Ie;default:return {}}},we=h__namespace.useMemo(function(){return be(P)},[P]),Be=H_(P,!e,function(re){if(re===xr){var oe=we[xr];return oe?oe(V()):Sp}if(me in we){var de;z(((de=we[me])===null||de===void 0?void 0:de.call(we,V(),null))||null);}return me===Si&&(ie(V()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0});},u))),me===gp&&H(),z_}),je=G(Be,2),ye=je[0],me=je[1],nt=Cp(me);te.current=nt,wp(function(){T(t);var re=B.current;B.current=!0;var oe;!re&&t&&s&&(oe=_a),re&&t&&o&&(oe=Oa),(re&&!t&&c||!re&&d&&!t&&c)&&(oe=Pa);var de=be(oe);oe&&(e||de[xr])?(I(oe),ye()):I(Hn);},[t]),h.useEffect(function(){(P===_a&&!s||P===Oa&&!o||P===Pa&&!c)&&I(Hn);},[s,o,c]),h.useEffect(function(){return function(){B.current=!1,clearTimeout(W.current);}},[]);var Oe=h__namespace.useRef(!1);h.useEffect(function(){N&&(Oe.current=!0),N!==void 0&&P===Hn&&((Oe.current||N)&&(M==null||M(N)),Oe.current=!0);},[N,P]);var ze=D;return we[xr]&&me===wi&&(ze=j({transition:"none"},ze)),[P,me,ze,N??t]}function B_(e){var t=e;De(e)==="object"&&(t=e.transitionSupport);function r(i,o){return !!(i.motionName&&t&&o!==!1)}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=h__namespace.useContext(M_),p=m.motion,b=r(i,p),E=h.useRef(),C=h.useRef();function O(){try{return E.current instanceof HTMLElement?E.current:Lc(C.current)}catch{return null}}var y=W_(b,s,O,i),S=G(y,4),w=S[0],M=S[1],A=S[2],_=S[3],N=h__namespace.useRef(_);_&&(N.current=!0);var T=h__namespace.useCallback(function(z){E.current=z,od(o,z);},[o]),$,x=j(j({},v),{},{visible:s});if(!d)$=null;else if(w===Hn)_?$=d(j({},x),T):!c&&N.current&&g?$=d(j(j({},x),{},{className:g}),T):u||!c&&!g?$=d(j(j({},x),{},{style:{display:"none"}}),T):$=null;else {var P,I;M===xr?I="prepare":Cp(M)?I="active":M===wi&&(I="start");var k=Eh(f,"".concat(w,"-").concat(I));$=d(j(j({},x),{},{className:q(Eh(f,w),(P={},X(P,k,k&&I),X(P,f,typeof f=="string"),P)),style:A}),T);}if(h__namespace.isValidElement($)&&Ko($)){var L=$,D=L.ref;D||($=h__namespace.cloneElement($,{ref:T}));}return h__namespace.createElement(A_,{ref:C},$)});return n.displayName="CSSMotion",n}const Qo=B_(yp);var cu="add",uu="keep",du="remove",Zl="removed";function V_(e){var t;return e&&De(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function fu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(V_)}function U_(){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=fu(e),a=fu(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!==du}),r.forEach(function(u){u.key===c&&(u.status=uu);});}),r}var G_=["component","children","onVisibleChanged","onAllRemoved"],q_=["status"],K_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function X_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qo,r=function(n){Gs(o,n);var i=qs(o);function o(){var a;hr(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:bd}=h__namespace;function Ep(e){return e&&bd(e)&&e.type===h__namespace.Fragment}function Z_(e,t,r){return bd(e)?h__namespace.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function Wi(e,t){return Z_(e,e,t)}function tn(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}}},Q_={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 J_=Q_;var $p=function(t,r){return h__namespace.createElement(nl,j(j({},t),{},{ref:r,icon:J_}))};$p.displayName="LoadingOutlined";const $h=h__namespace.forwardRef($p);var Jo=j({},ug__namespace),eO=Jo.version,tO=Jo.render,rO=Jo.unmountComponentAtNode,il;try{var nO=Number((eO||"").split(".")[0]);nO>=18&&(il=Jo.createRoot);}catch{}function xh(e){var t=Jo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&De(t)==="object"&&(t.usingClientEntryPoint=e);}var us="__rc_react_root__";function iO(e,t){xh(!0);var r=t[us]||il(t);xh(!1),r.render(e),t[us]=r;}function oO(e,t){tO(e,t);}function aO(e,t){if(il){iO(e,t);return}oO(e,t);}function sO(e){return hu.apply(this,arguments)}function hu(){return hu=qi(ar().mark(function e(t){return ar().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[us])===null||i===void 0||i.unmount(),delete t[us];}));case 1:case"end":return n.stop()}},e)})),hu.apply(this,arguments)}function lO(e){rO(e);}function cO(e){return gu.apply(this,arguments)}function gu(){return gu=qi(ar().mark(function e(t){return ar().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(il===void 0){n.next=2;break}return n.abrupt("return",sO(t));case 2:lO(t);case 3:case"end":return n.stop()}},e)})),gu.apply(this,arguments)}const xp=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},uO=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}}}}},dO=wn("Wave",e=>[uO(e)]);function fO(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 Ql(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&fO(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function hO(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Ql(t)?t:Ql(r)?r:Ql(n)?n:null}function Jl(e){return Number.isNaN(e)?0:e}const gO=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),E={left:l,top:u,width:f,height:v,borderRadius:a.map(O=>`${O}px`).join(" ")};i&&(E["--wave-color"]=i);function C(){const O=getComputedStyle(r);o(hO(r));const y=O.position==="static",{borderLeftWidth:S,borderTopWidth:w}=O;c(y?r.offsetLeft:Jl(-parseFloat(S))),d(y?r.offsetTop:Jl(-parseFloat(w))),g(r.offsetWidth),m(r.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:A,borderBottomLeftRadius:_,borderBottomRightRadius:N}=O;s([M,A,N,_].map(T=>Jl(parseFloat(T))));}return h__namespace.useEffect(()=>{if(r){const O=gn(()=>{C(),b(!0);});let y;return typeof ResizeObserver<"u"&&(y=new ResizeObserver(C),y.observe(r)),()=>{gn.cancel(O),y==null||y.disconnect();}}},[]),p?h__namespace.createElement(Qo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,y)=>{var S;if(y.deadline||y.propertyName==="opacity"){const w=(S=n.current)===null||S===void 0?void 0:S.parentElement;cO(w).then(()=>{w==null||w.remove();});}return !1}},O=>{let{className:y}=O;return h__namespace.createElement("div",{ref:n,className:q(t,y),style:E})}):null};function mO(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),aO(h__namespace.createElement(gO,{target:e,className:t}),r);}function pO(e,t){function r(){const n=e.current;mO(n,t);}return r}const vO=e=>{const{children:t,disabled:r}=e,{getPrefixCls:n}=h.useContext(ut),i=h.useRef(null),o=n("wave"),[,a]=dO(o),s=pO(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"||!xp(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=Ko(t)?ii(t.ref,i):i;return Wi(t,{ref:l})},_p=vO,bO=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},yO=bO,wO=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"}}}},Op=wn("Space",e=>[wO(e),yO(e)],()=>({}),{resetStyle:!1});var Pp=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(ol),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}},mu=e=>{let{children:t}=e;return h__namespace.createElement(ol.Provider,{value:null},t)},SO=e=>{var{children:t}=e,r=Pp(e,["children"]);return h__namespace.createElement(ol.Provider,{value:r},t)},CO=e=>{const{getPrefixCls:t,direction:r}=h__namespace.useContext(ut),{size:n="middle",direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Pp(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=t("space-compact",a),[f,g]=Op(d),v=q(d,g,{[`${d}-rtl`]:r==="rtl",[`${d}-block`]:o,[`${d}-vertical`]:i==="vertical"},s,l),m=h__namespace.useContext(ol),p=Di(c),b=h__namespace.useMemo(()=>p.map((E,C)=>{const O=E&&E.key||`${d}-item-${C}`;return h__namespace.createElement(SO,{key:O,compactSize:n,compactDirection:i,isFirstItem:C===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:C===p.length-1&&(!m||(m==null?void 0:m.isLastItem))},E)}),[n,p,m]);return p.length===0?null:f(h__namespace.createElement("div",Object.assign({className:v},u),b))},EO=CO,ec=()=>({width:0,opacity:0,transform:"scale(0)"}),tc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$O=e=>{let{prefixCls:t,loading:r,existIcon:n}=e;const i=!!r;return n?h.createElement("span",{className:`${t}-loading-icon`},h.createElement($h,null)):h.createElement(Qo,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:ec,onAppearActive:tc,onEnterStart:ec,onEnterActive:tc,onLeaveStart:tc,onLeaveActive:ec},(o,a)=>{let{className:s,style:l}=o;return h.createElement("span",{className:`${t}-loading-icon`,style:l,ref:a},h.createElement($h,{className:s}))})},xO=$O;var _O=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(ut),{prefixCls:n,size:i,className:o}=e,a=_O(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=el();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(Rp.Provider,{value:i},h__namespace.createElement("div",Object.assign({},a,{className:u})))},PO=OO,_h=/^[\u4e00-\u9fa5]{2}$/,pu=_h.test.bind(_h);function TO(e){return typeof e=="string"}function rc(e){return e==="text"||e==="link"}function RO(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&TO(e.type)&&pu(e.props.children)?Wi(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?pu(e)?h.createElement("span",null,e.split("").join(r)):h.createElement("span",null,e):Ep(e)?h.createElement("span",null,e):e}function MO(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=>RO(i,t))}const Oh=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),AO=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}},Oh(`${t}-primary`,i),Oh(`${t}-danger`,o)]}},NO=AO;function kO(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 IO(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 Mp(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({},kO(e,n,t)),IO(r,n,t))}}function FO(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function LO(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 DO(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},FO(e,t)),LO(e.componentCls,t))}}const jO=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({},t_(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}}),zO=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),HO=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),vu=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),ds=(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}})}),yd=e=>({"&:disabled":Object.assign({},vu(e))}),Ap=e=>Object.assign({},yd(e)),fs=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Np=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ap(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})),ds(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})),ds(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),yd(e))}),WO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ap(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})),ds(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})),ds(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yd(e))}),BO=e=>Object.assign(Object.assign({},Np(e)),{borderStyle:"dashed"}),VO=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},mn({color:e.colorLinkHover},{color:e.colorLinkActive})),fs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},mn({color:e.colorErrorHover},{color:e.colorErrorActive})),fs(e))}),UO=e=>Object.assign(Object.assign(Object.assign({},mn({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),fs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},fs(e)),mn({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),GO=e=>Object.assign(Object.assign({},vu(e)),{[`&${e.componentCls}:hover`]:Object.assign({},vu(e))}),qO=e=>{const{componentCls:t}=e;return {[`${t}-default`]:Np(e),[`${t}-primary`]:WO(e),[`${t}-dashed`]:BO(e),[`${t}-link`]:VO(e),[`${t}-text`]:UO(e),[`${t}-disabled`]:GO(e)}},wd=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}`]:zO(e)},{[`${r}${r}-round${t}`]:HO(e)}]},KO=e=>wd(e),XO=e=>{const t=Ht(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return wd(t,`${e.componentCls}-sm`)},YO=e=>{const t=Ht(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return wd(t,`${e.componentCls}-lg`)},ZO=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},QO=wn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=Ht(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r});return [jO(n),XO(n),KO(n),YO(n),ZO(n),qO(n),NO(n),Mp(e),DO(e)]});var JO=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=JO(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:b,autoInsertSpaceInButton:E,direction:C}=h__namespace.useContext(ut),O=b("btn",n),[y,S]=QO(O),w=h__namespace.useContext(Ki),M=h__namespace.useContext(Zo),A=l??M,_=h__namespace.useContext(Rp),N=h__namespace.useMemo(()=>eP(r),[r]),[T,$]=h__namespace.useState(N.loading),[x,P]=h__namespace.useState(!1),k=t||h__namespace.createRef(),L=()=>h__namespace.Children.count(d)===1&&!f&&!rc(i),D=()=>{if(!k||!k.current||E===!1)return;const ye=k.current.textContent;L()&&pu(ye)?x||P(!0):x&&P(!1);};h__namespace.useEffect(()=>{let ye=null;N.delay>0?ye=setTimeout(()=>{ye=null,$(!0);},N.delay):$(N.loading);function me(){ye&&(clearTimeout(ye),ye=null);}return me},[N]),h__namespace.useEffect(D,[k]);const z=ye=>{const{onClick:me}=e;if(T||A){ye.preventDefault();return}me==null||me(ye);},B=E!==!1,{compactSize:W,compactItemClassnames:V}=Tp(O,C),te={large:"lg",small:"sm",middle:void 0},H=W||_||s||w,J=H&&te[H]||"",ae=T?"loading":f,ve=$m(p,["navigate"]),ie=ve.href!==void 0&&A,be=q(O,S,{[`${O}-${a}`]:a!=="default"&&a,[`${O}-${i}`]:i,[`${O}-${J}`]:J,[`${O}-icon-only`]:!d&&d!==0&&!!ae,[`${O}-background-ghost`]:g&&!rc(i),[`${O}-loading`]:T,[`${O}-two-chinese-chars`]:x&&B&&!T,[`${O}-block`]:v,[`${O}-dangerous`]:!!o,[`${O}-rtl`]:C==="rtl",[`${O}-disabled`]:ie},V,c,u),we=f&&!T?f:h__namespace.createElement(xO,{existIcon:!!f,prefixCls:O,loading:!!T}),Be=d||d===0?MO(d,L()&&B):null;if(ve.href!==void 0)return y(h__namespace.createElement("a",Object.assign({},ve,{className:be,onClick:z,ref:k}),we,Be));let je=h__namespace.createElement("button",Object.assign({},p,{type:m,className:be,onClick:z,disabled:A,ref:k}),we,Be);return rc(i)||(je=h__namespace.createElement(_p,{disabled:!!T},je)),y(je)},Sd=h__namespace.forwardRef(tP);Sd.Group=PO;Sd.__ANT_BUTTON=!0;const Oi=Sd,rP=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var kp=h__namespace.createContext(null),Mt=or()?h__namespace.useLayoutEffect:h__namespace.useEffect,wo=function(t,r){var n=h__namespace.useRef(!0);Mt(function(){if(!n.current)return t()},r),Mt(function(){return n.current=!1,function(){n.current=!0;}},[]);},Ph=[];function nP(e,t){var r=h__namespace.useState(function(){if(!or())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(kp),s=h__namespace.useState(Ph),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(ee(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 Mt(function(){return e?a?a(f):f():g(),g},[e]),Mt(function(){c.length&&(c.forEach(function(v){return v()}),u(Ph));},[c]),[i,d]}var nc;function iP(e){if(typeof document>"u")return 0;if(e||nc===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),nc=i-o;}return nc}function oP(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var aP="rc-util-locker-".concat(Date.now()),Th=0;function sP(e){var t=!!e,r=h__namespace.useState(function(){return Th+=1,"".concat(aP,"_").concat(Th)}),n=G(r,1),i=n[0];Mt(function(){if(t){var o=iP(),a=oP();zi(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` }`),i);}else as(i);return function(){as(i);}},[t,i]);}var Rh=!1;function lP(e){return typeof e=="boolean"&&(Rh=e),Rh}var Mh=function(t){return t===!1?!1:!or()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ip=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 Mh(i)}),v=G(g,2),m=v[0],p=v[1];h__namespace.useEffect(function(){var N=Mh(i);p(N??null);});var b=nP(f&&!m),E=G(b,2),C=E[0],O=E[1],y=m??C;sP(n&&r&&or()&&(y===C||y===document.body));var S=null;if(s&&Ko(s)&&t){var w=s;S=w.ref;}var M=vm(S,t);if(!f||!or()||m===void 0)return null;var A=y===!1||lP(),_=s;return t&&(_=h__namespace.cloneElement(s,{ref:M})),h__namespace.createElement(kp.Provider,{value:O},A?_:ug.createPortal(_,y))});function cP(){var e=j({},h__namespace);return e.useId}var Ah=0;function uP(e){var t=h__namespace.useState("ssr-id"),r=G(t,2),n=r[0],i=r[1],o=cP(),a=o==null?void 0:o();return h__namespace.useEffect(function(){if(!o){var s=Ah;Ah+=1,i("rc_unique_".concat(s));}},[]),e||a||n}const Io=h__namespace.createContext({}),Nh=e=>{let{children:t,status:r,override:n}=e;const i=h.useContext(Io),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(Io.Provider,{value:o},t)},dP=()=>or()&&window.document.documentElement;let Ra;const fP=()=>{if(!dP())return !1;if(Ra!==void 0)return Ra;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),Ra=e.scrollHeight===1,document.body.removeChild(e),Ra},hP=e=>({animationDuration:e,animationFillMode:"both"}),gP=e=>({animationDuration:e,animationFillMode:"both"}),mP=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({},hP(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},gP(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"}}},pP=new Bt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vP=new Bt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),kh=new Bt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ih=new Bt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),bP=new Bt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),yP=new Bt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),wP=new Bt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),SP=new Bt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),CP=new Bt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),EP=new Bt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),$P=new Bt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),xP=new Bt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_P={zoom:{inKeyframes:pP,outKeyframes:vP},"zoom-big":{inKeyframes:kh,outKeyframes:Ih},"zoom-big-fast":{inKeyframes:kh,outKeyframes:Ih},"zoom-left":{inKeyframes:wP,outKeyframes:SP},"zoom-right":{inKeyframes:CP,outKeyframes:EP},"zoom-up":{inKeyframes:bP,outKeyframes:yP},"zoom-down":{inKeyframes:$P,outKeyframes:xP}},OP=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=_P[t];return [mP(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 ic(e){return e!==void 0}function al(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,a=r.postState,s=_i(function(){return ic(i)?i:ic(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=tn(o),v=_i([d]),m=G(v,2),p=m[0],b=m[1];wo(function(){var C=p[0];c!==C&&g(c,C);},[p]),wo(function(){ic(i)||u(i);},[i]);var E=tn(function(C,O){u(C,O),b([d],O);});return [f,E]}const Fp=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 Fh=h__namespace.createContext(null);function Lh(e){return e?Array.isArray(e)?e:[e]:[]}function PP(e,t,r,n){return h__namespace.useMemo(function(){var i=Lh(r??t),o=Lh(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 TP(){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 RP(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 gi(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 $n(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 AP(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=tn(function(){if(t&&r&&e){let Zr=function(oa,jn){var aa=_.x+oa,sa=_.y+jn,la=aa+W,El=sa+B,$l=Math.max(aa,H.left),xl=Math.max(sa,H.top),ca=Math.min(la,H.right),_l=Math.min(El,H.bottom);return Math.max(0,(ca-$l)*(_l-xl))},Qr=function(){pt=_.y+Ue,Pt=pt+B,Pr=_.x+Ve,mr=Pr+W;};var E=t,C=E.style.left,O=E.style.top,y=E.ownerDocument,S=ea(E),w=j(j({},i[n]),o);E.style.left="0",E.style.top="0";var M;if(Array.isArray(r))M={x:r[0],y:r[1],width:0,height:0};else {var A=r.getBoundingClientRect();M={x:A.x,y:A.y,width:A.width,height:A.height};}var _=E.getBoundingClientRect(),N=S.getComputedStyle(E),T=N.width,$=N.height,x=y.documentElement,P=x.clientWidth,I=x.clientHeight,k=x.scrollWidth,L=x.scrollHeight,D=x.scrollTop,z=x.scrollLeft,B=_.height,W=_.width,V=M.height,te=M.width,H=w.htmlRegion==="scroll"?{left:-z,top:-D,right:k-z,bottom:L-D}:{left:0,top:0,right:P,bottom:I};H=MP(H,f),E.style.left=C,E.style.top=O;var J=hs(Math.round(W/parseFloat(T)*1e3)/1e3),ae=hs(Math.round(B/parseFloat($)*1e3)/1e3);if(J===0||ae===0||ns(r)&&!xp(r))return;var ve=w.offset,ie=w.targetOffset,be=ve||[],we=G(be,2),Be=we[0],je=Be===void 0?0:Be,ye=we[1],me=ye===void 0?0:ye,nt=ie||[],Oe=G(nt,2),ze=Oe[0],re=ze===void 0?0:ze,oe=Oe[1],de=oe===void 0?0:oe;M.x+=re,M.y+=de;var ke=w.points||[],Ie=G(ke,2),Ct=Ie[0],rt=Ie[1],st=jh(rt),pe=jh(Ct),He=gi(M,st),lt=gi(_,pe),Ee=j({},w),Ve=He.x-lt.x+je,Ue=He.y-lt.y+me,Ot=Zr(Ve,Ue),dt=gi(M,["t","l"]),Ut=gi(_,["t","l"]),Cn=gi(M,["b","r"]),qr=gi(_,["b","r"]),lr=w.overflow||{},le=lr.adjustX,se=lr.adjustY,$e=lr.shiftX,he=lr.shiftY,Ge=function(jn){return typeof jn=="boolean"?jn:jn>=0},pt,Pt,Pr,mr;Qr();var Ln=Ge(se),Gt=pe[0]===st[0];if(Ln&&pe[0]==="t"&&(Pt>H.bottom||g.current.bt)){var Kr=Ue;Gt?Kr-=B-V:Kr=dt.y-qr.y-me,Zr(Ve,Kr)>=Ot?(g.current.bt=!0,Ue=Kr,Ee.points=[$n(pe,0),$n(st,0)]):g.current.bt=!1;}if(Ln&&pe[0]==="b"&&(pt=Ot?(g.current.tb=!0,Ue=Ft,Ee.points=[$n(pe,0),$n(st,0)]):g.current.tb=!1;}var Dn=Ge(le),En=pe[1]===st[1];if(Dn&&pe[1]==="l"&&(mr>H.right||g.current.rl)){var Tr=Ve;En?Tr-=W-te:Tr=dt.x-qr.x-je,Zr(Tr,Ue)>=Ot?(g.current.rl=!0,Ve=Tr,Ee.points=[$n(pe,1),$n(st,1)]):g.current.rl=!1;}if(Dn&&pe[1]==="r"&&(Pr=Ot?(g.current.lr=!0,Ve=Xr,Ee.points=[$n(pe,1),$n(st,1)]):g.current.lr=!1;}Qr();var Rr=$e===!0?0:$e;typeof Rr=="number"&&(PrH.right&&(Ve-=mr-H.right,M.x>H.right-Rr&&(Ve+=M.x-H.right+Rr)));var Me=he===!0?0:he;typeof Me=="number"&&(ptH.bottom&&(Ue-=Pt-H.bottom,M.y>H.bottom-Me&&(Ue+=M.y-H.bottom+Me)));var Se=_.x+Ve,ce=Se+W,Xe=_.y+Ue,We=Xe+B,pr=M.x,qt=pr+te,Kt=M.y,Et=Kt+V,si=Math.max(Se,pr),li=Math.min(ce,qt),Yr=(si+li)/2,Qi=Yr-Se,wl=Math.max(Xe,Kt),Sl=Math.min(We,Et),Cl=(wl+Sl)/2,ci=Cl-Xe;a==null||a(t,Ee),u({ready:!0,offsetX:Ve/J,offsetY:Ue/ae,arrowX:Qi/J,arrowY:ci/ae,scaleX:J,scaleY:ae,align:Ee});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&m();});},b=function(){u(function(C){return j(j({},C),{},{ready:!1})});};return Mt(b,[n]),Mt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function NP(e,t,r,n){Mt(function(){if(e&&t&&r){let u=function(){n();};var i=t,o=r,a=bu(i),s=bu(o),l=ea(o),c=new Set([l].concat(ee(a),ee(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 kP(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 IP(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?React.createElement(Qo,kt({},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 FP=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,E=e.forceRender,C=e.getPopupContainer,O=e.autoDestroy,y=e.portal,S=e.zIndex,w=e.onMouseEnter,M=e.onMouseLeave,A=e.ready,_=e.offsetX,N=e.offsetY,T=e.onAlign,$=e.onPrepare,x=e.stretch,P=e.targetWidth,I=e.targetHeight,k=typeof r=="function"?r():r,L=l||c,D=(C==null?void 0:C.length)>0,z=h__namespace.useState(!C||!D),B=G(z,2),W=B[0],V=B[1];if(Mt(function(){!W&&D&&a&&V(!0);},[W,D,a]),!W)return null;var te=A||!l?{left:_,top:N}:{left:"-1000vw",top:"-1000vh"},H={};return x&&(x.includes("height")&&I?H.height=I:x.includes("minHeight")&&I&&(H.minHeight=I),x.includes("width")&&P?H.width=P:x.includes("minWidth")&&P&&(H.minWidth=P)),l||(H.pointerEvents="none"),h__namespace.createElement(y,{open:E||L,getContainer:C&&function(){return C(a)},autoDestroy:O},h__namespace.createElement(IP,{prefixCls:i,open:l,zIndex:S,mask:d,motion:b}),h__namespace.createElement(ad,{onResize:T,disabled:!l},function(J){return h__namespace.createElement(Qo,kt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:"".concat(i,"-hidden")},p,{onAppearPrepare:$,onEnterPrepare:$,visible:l,onVisibleChanged:function(ve){var ie;p==null||(ie=p.onVisibleChanged)===null||ie===void 0||ie.call(p,ve),s(ve);}}),function(ae,ve){var ie=ae.className,be=ae.style,we=q(i,ie,n);return h__namespace.createElement("div",{ref:ii(J,t,ve),className:we,style:j(j(j(j({},te),H),be),{},{boxSizing:"border-box",zIndex:S},o),onMouseEnter:w,onMouseLeave:M,onClick:u},f&&h__namespace.createElement(kP,{prefixCls:i,align:g,arrowX:v,arrowY:m}),k)})}))}),LP=h__namespace.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=Ko(r),o=h__namespace.useCallback(function(s){od(t,n?n(s):s);},[n]),a=vm(o,r.ref);return i?h__namespace.cloneElement(r,{ref:a}):r}),DP=["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 jP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ip,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,E=r.focusDelay,C=r.blurDelay,O=r.mask,y=r.maskClosable,S=y===void 0?!0:y,w=r.getPopupContainer,M=r.forceRender,A=r.autoDestroy,_=r.destroyPopupOnHide,N=r.popup,T=r.popupClassName,$=r.popupStyle,x=r.popupPlacement,P=r.builtinPlacements,I=P===void 0?{}:P,k=r.popupAlign,L=r.zIndex,D=r.stretch,z=r.getPopupClassNameFromAlign,B=r.alignPoint,W=r.onPopupClick,V=r.onPopupAlign,te=r.arrow,H=r.popupMotion,J=r.maskMotion,ae=r.popupTransitionName,ve=r.popupAnimation,ie=r.maskTransitionName,be=r.maskAnimation,we=r.className,Be=r.getTriggerDOMNode,je=ir(r,DP),ye=A||_||!1,me=h__namespace.useState(!1),nt=G(me,2),Oe=nt[0],ze=nt[1];Mt(function(){ze(Fp());},[]);var re=h__namespace.useRef({}),oe=h__namespace.useContext(Fh),de=h__namespace.useMemo(function(){return {registerSubPopup:function(fe,Ae){re.current[fe]=Ae,oe==null||oe.registerSubPopup(fe,Ae);}}},[oe]),ke=uP(),Ie=h__namespace.useState(null),Ct=G(Ie,2),rt=Ct[0],st=Ct[1],pe=tn(function(Z){ns(Z)&&rt!==Z&&st(Z),oe==null||oe.registerSubPopup(ke,Z);}),He=h__namespace.useState(null),lt=G(He,2),Ee=lt[0],Ve=lt[1],Ue=tn(function(Z){ns(Z)&&Ee!==Z&&Ve(Z);}),Ot=h__namespace.Children.only(a),dt=(Ot==null?void 0:Ot.props)||{},Ut={},Cn=tn(function(Z){var fe,Ae,Ye=Ee;return (Ye==null?void 0:Ye.contains(Z))||(Ye==null||(fe=Ye.getRootNode())===null||fe===void 0?void 0:fe.host)===Z||Z===Ye||(rt==null?void 0:rt.contains(Z))||(rt==null||(Ae=rt.getRootNode())===null||Ae===void 0?void 0:Ae.host)===Z||Z===rt||Object.values(re.current).some(function(et){return (et==null?void 0:et.contains(Z))||Z===et})}),qr=Dh(o,H,ve,ae),lr=Dh(o,J,be,ie),le=h__namespace.useState(f||!1),se=G(le,2),$e=se[0],he=se[1],Ge=d??$e,pt=tn(function(Z){d===void 0&&he(Z);});Mt(function(){he(d||!1);},[d]);var Pt=h__namespace.useRef(Ge);Pt.current=Ge;var Pr=tn(function(Z){Ge!==Z&&(pt(Z),g==null||g(Z));}),mr=h__namespace.useRef(),Ln=function(){clearTimeout(mr.current);},Gt=function(fe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ln(),Ae===0?Pr(fe):mr.current=setTimeout(function(){Pr(fe);},Ae*1e3);};h__namespace.useEffect(function(){return Ln},[]);var Kr=h__namespace.useState(!1),Ft=G(Kr,2),Dn=Ft[0],En=Ft[1],Tr=h__namespace.useRef(!0);Mt(function(){(!Tr.current||Ge)&&En(!0),Tr.current=!0;},[Ge]);var Xr=h__namespace.useState(null),Rr=G(Xr,2),Me=Rr[0],Se=Rr[1],ce=h__namespace.useState([0,0]),Xe=G(ce,2),We=Xe[0],pr=Xe[1],qt=function(fe){pr([fe.clientX,fe.clientY]);},Kt=AP(Ge,rt,B?We:Ee,x,I,k,V),Et=G(Kt,9),si=Et[0],li=Et[1],Yr=Et[2],Qi=Et[3],wl=Et[4],Sl=Et[5],Cl=Et[6],ci=Et[7],Zr=Et[8],Qr=tn(function(){Dn||Zr();});NP(Ge,Ee,rt,Qr),Mt(function(){Qr();},[We]),Mt(function(){Ge&&!(I!=null&&I[x])&&Qr();},[JSON.stringify(k)]);var oa=h__namespace.useMemo(function(){var Z=RP(I,o,ci,B);return q(Z,z==null?void 0:z(ci))},[ci,z,I,o,B]);h__namespace.useImperativeHandle(n,function(){return {forceAlign:Qr}});var jn=function(fe){En(!1),Zr(),v==null||v(fe);},aa=function(){return new Promise(function(fe){Se(function(){return fe});})};Mt(function(){Me&&(Zr(),Me(),Se(null));},[Me]);var sa=h__namespace.useState(0),la=G(sa,2),El=la[0],$l=la[1],xl=h__namespace.useState(0),ca=G(xl,2),_l=ca[0],kb=ca[1],Ib=function(fe,Ae){if(Qr(),D){var Ye=Ae.getBoundingClientRect();$l(Ye.width),kb(Ye.height);}},Fb=PP(Oe,l,c,u),Zd=G(Fb,2),ua=Zd[0],da=Zd[1],fa=function(fe,Ae,Ye,et){Ut[fe]=function(ga){var ui;et==null||et(ga),Gt(Ae,Ye);for(var Pl=arguments.length,rf=new Array(Pl>1?Pl-1:0),ma=1;ma1?Ae-1:0),et=1;et1?Ae-1:0),et=1;ett||e;var WP={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 BP=WP;var Lp=function(t,r){return h__namespace.createElement(nl,j(j({},t),{},{ref:r,icon:BP}))};Lp.displayName="DownOutlined";const VP=h__namespace.forwardRef(Lp);var mi={shiftX:64,adjustY:1},pi={adjustX:1,shiftY:!0},ur=[0,0],UP={left:{points:["cr","cl"],overflow:pi,offset:[-4,0],targetOffset:ur},right:{points:["cl","cr"],overflow:pi,offset:[4,0],targetOffset:ur},top:{points:["bc","tc"],overflow:mi,offset:[0,-4],targetOffset:ur},bottom:{points:["tc","bc"],overflow:mi,offset:[0,4],targetOffset:ur},topLeft:{points:["bl","tl"],overflow:mi,offset:[0,-4],targetOffset:ur},leftTop:{points:["tr","tl"],overflow:pi,offset:[-4,0],targetOffset:ur},topRight:{points:["br","tr"],overflow:mi,offset:[0,-4],targetOffset:ur},rightTop:{points:["tl","tr"],overflow:pi,offset:[4,0],targetOffset:ur},bottomRight:{points:["tr","br"],overflow:mi,offset:[0,4],targetOffset:ur},rightBottom:{points:["bl","br"],overflow:pi,offset:[4,0],targetOffset:ur},bottomLeft:{points:["tl","bl"],overflow:mi,offset:[0,4],targetOffset:ur},leftBottom:{points:["br","bl"],overflow:pi,offset:[-4,0],targetOffset:ur}};function Dp(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 GP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],qP=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,E=t.motion,C=t.placement,O=C===void 0?"right":C,y=t.align,S=y===void 0?{}:y,w=t.destroyTooltipOnHide,M=w===void 0?!1:w,A=t.defaultVisible,_=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var T=t.overlay,$=t.id,x=t.showArrow,P=x===void 0?!0:x,I=ir(t,GP),k=h.useRef(null);h.useImperativeHandle(r,function(){return k.current});var L=j({},I);"visible"in t&&(L.popupVisible=t.visible);var D=function(){return h__namespace.createElement(Dp,{key:"content",prefixCls:f,id:$,overlayInnerStyle:N},T)};return h__namespace.createElement(zP,kt({popupClassName:n,prefixCls:f,popup:D,action:o,builtinPlacements:UP,popupPlacement:O,ref:k,popupAlign:S,getPopupContainer:_,onPopupVisibleChange:v,afterPopupVisibleChange:m,popupTransitionName:p,popupAnimation:b,popupMotion:E,defaultPopupVisible:A,autoDestroy:M,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:P},L),g)};const KP=h.forwardRef(qP),xn=(e,t)=>new Nt(e).setAlpha(t).toRgbString(),vi=(e,t)=>new Nt(e).lighten(t).toHexString(),XP=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]}},YP=(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:vi(r,12),colorBgContainer:vi(r,8),colorBgLayout:vi(r,0),colorBgSpotlight:vi(r,26),colorBorder:vi(r,26),colorBorderSecondary:vi(r,19)}},ZP=(e,t)=>{const r=Object.keys(gd).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??Qs(e);return Object.assign(Object.assign(Object.assign({},n),r),Qm(e,{generateColorPalettes:XP,generateNeutralColorPalettes:YP}))},QP=ZP;function JP(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 e2=(e,t)=>{const r=t??Qs(e),n=r.fontSizeSM,i=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),JP(t??e)),Jm(n)),{controlHeight:i}),Zm(Object.assign(Object.assign({},r),{controlHeight:i})))},t2=e2;function r2(){const[e,t,r]=el();return {theme:e,token:t,hashId:r}}const yu={defaultConfig:cs,defaultSeed:cs.token,useToken:r2,defaultAlgorithm:Qs,darkAlgorithm:QP,compactAlgorithm:t2},jp=8;function zp(e){const t=jp,{contentRadius:r,limitVerticalRadius:n}=e,i=r>12?r+2:12;return {dropdownArrowOffset:i,dropdownArrowOffsetVertical:n?t:i}}function Ma(e,t){return e?t:{}}function n2(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}=zp({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"},Zx(n,i,o,s,a)),{"&:before":{background:s}})]},Ma(!!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}}})),Ma(!!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}}})),Ma(!!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}})),Ma(!!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 zh={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"]}},o2={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"]}},a2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s2(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,a=t/2,s={};return Object.keys(zh).forEach(l=>{const c=n&&o2[l]||zh[l],u=Object.assign(Object.assign({},c),{offset:[0,0]});switch(s[l]=u,a2.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=zp({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 l2=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({},fr(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,jp)}},[`${t}-content`]:{position:"relative"}}),np(e,(f,g)=>{let{darkColor:v}=g;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},n2(Ht(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:o,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Hp=(e,t)=>wn("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 [l2(l),OP(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=n;return {zIndexPopup:i+70,colorBgDefault:o}})(e),c2=ls.map(e=>`${e}-inverse`),u2=["success","processing","error","default","warning"];function Wp(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ee(c2),ee(ls)).includes(e):ls.includes(e)}function d2(e){return u2.includes(e)}function Bp(e,t){const r=Wp(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 f2(e){const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=h__namespace.useContext(ut),l=s("tooltip",t),[c,u]=Hp(l,!0),d=Bp(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(Dp,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),i)))}var h2=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 p2(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}=m2(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=Wi(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 Vp=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:E=!1,autoAdjustOverflow:C=!0}=e,O=!!v,{token:y}=g2(),{getPopupContainer:S,getPrefixCls:w,direction:M}=h__namespace.useContext(ut),A=h__namespace.useRef(null),_=()=>{var re;(re=A.current)===null||re===void 0||re.forceAlign();};h__namespace.useImperativeHandle(t,()=>({forceAlign:_,forcePopupAlign:()=>{_();}}));const[N,T]=al(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),$=!m&&!p&&m!==0,x=re=>{var oe,de;T($?!1:re),$||((oe=e.onOpenChange)===null||oe===void 0||oe.call(e,re),(de=e.onVisibleChange)===null||de===void 0||de.call(e,re));},P=h__namespace.useMemo(()=>{var re,oe;let de=E;return typeof v=="object"&&(de=(oe=(re=v.pointAtCenter)!==null&&re!==void 0?re:v.arrowPointAtCenter)!==null&&oe!==void 0?oe:E),b||s2({arrowPointAtCenter:de,autoAdjustOverflow:C,arrowWidth:O?y.sizePopupArrow:0,borderRadius:y.borderRadius,offset:y.marginXXS})},[E,v,b,y]),I=(re,oe)=>{const de=Object.keys(P).find(ke=>{var Ie,Ct;return P[ke].points[0]===((Ie=oe.points)===null||Ie===void 0?void 0:Ie[0])&&P[ke].points[1]===((Ct=oe.points)===null||Ct===void 0?void 0:Ct[1])});if(de){const ke=re.getBoundingClientRect(),Ie={top:"50%",left:"50%"};/top|Bottom/.test(de)?Ie.top=`${ke.height-oe.offset[1]}px`:/Top|bottom/.test(de)&&(Ie.top=`${-oe.offset[1]}px`),/left|Right/.test(de)?Ie.left=`${ke.width-oe.offset[0]}px`:/right|Left/.test(de)&&(Ie.left=`${-oe.offset[0]}px`),re.style.transformOrigin=`${Ie.left} ${Ie.top}`;}},k=h__namespace.useMemo(()=>m===0?m:p||m||"",[p,m]),L=h__namespace.createElement(mu,null,typeof k=="function"?k():k),{getPopupContainer:D,placement:z="top",mouseEnterDelay:B=.1,mouseLeaveDelay:W=.1,overlayStyle:V,rootClassName:te}=e,H=h2(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=w("tooltip",i),ae=w(),ve=e["data-popover-inject"];let ie=N;!("open"in e)&&!("visible"in e)&&$&&(ie=!1);const be=p2(bd(u)&&!Ep(u)?u:h__namespace.createElement("span",null,u),J),we=be.props,Be=!we.className||typeof we.className=="string"?q(we.className,{[o||`${J}-open`]:!0}):we.className,[je,ye]=Hp(J,!ve),me=Bp(J,l),nt=Object.assign(Object.assign({},c),me.overlayStyle),Oe=me.arrowStyle,ze=q(s,{[`${J}-rtl`]:M==="rtl"},me.className,te,ye);return je(h__namespace.createElement(KP,Object.assign({},H,{showArrow:O,placement:z,mouseEnterDelay:B,mouseLeaveDelay:W,prefixCls:J,overlayClassName:ze,overlayStyle:Object.assign(Object.assign({},Oe),V),getTooltipContainer:D||a||S,ref:A,builtinPlacements:P,overlay:L,visible:ie,onVisibleChange:x,afterVisibleChange:d??f,onPopupAlign:I,overlayInnerStyle:nt,arrowContent:h__namespace.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:rP(ae,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ie?Wi(be,{className:Be}):be))});Vp._InternalPanelDoNotUseOrYouWillBeFired=f2;const Cd=Vp,v2=()=>{const[e,t]=h__namespace.useState(!1);return h__namespace.useEffect(()=>{t(fP());},[]),e};function b2(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(Up);let f={};return d||(r==="vertical"?n{const{getPrefixCls:t,space:r,direction:n}=h__namespace.useContext(ut),{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=y2(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),m=v2(),[p,b]=h__namespace.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(x=>S2(x)),[i]),E=Di(l,{keepEmpty:!0}),C=o===void 0&&c==="horizontal"?"center":o,O=t("space",u),[y,S]=Op(O),w=q(O,S,`${O}-${c}`,{[`${O}-rtl`]:n==="rtl",[`${O}-align-${C}`]:C},a,s),M=`${O}-item`,A=n==="rtl"?"marginLeft":"marginRight";let _=0;const N=E.map((x,P)=>{x!=null&&(_=P);const I=x&&x.key||`${M}-${P}`;return h__namespace.createElement(b2,{className:M,key:I,direction:c,index:P,marginDirection:A,split:d,wrap:g},x)}),T=h__namespace.useMemo(()=>({horizontalSize:p,verticalSize:b,latestIndex:_,supportFlexGap:m}),[p,b,_,m]);if(E.length===0)return null;const $={};return g&&($.flexWrap="wrap",m||($.marginBottom=-b)),m&&($.columnGap=p,$.rowGap=b),y(h__namespace.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},$),f)},v),h__namespace.createElement(Up.Provider,{value:T},N)))},Gp=C2;Gp.Compact=EO;const qp=Gp,Kp=h__namespace.createContext(null),E2=Kp.Provider,Xp=h__namespace.createContext(null),$2=Xp.Provider;var x2=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],Yp=h.forwardRef(function(e,t){var r,n=e.prefixCls,i=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,g=e.onChange,v=ir(e,x2),m=h.useRef(null),p=al(u,{value:s}),b=G(p,2),E=b[0],C=b[1];h.useImperativeHandle(t,function(){return {focus:function(){var w;(w=m.current)===null||w===void 0||w.focus();},blur:function(){var w;(w=m.current)===null||w===void 0||w.blur();},input:m.current}});var O=q(i,o,(r={},X(r,"".concat(i,"-checked"),E),X(r,"".concat(i,"-disabled"),l),r)),y=function(w){l||("checked"in e||C(w.target.checked),g==null||g({target:j(j({},e),{},{checked:w.target.checked}),stopPropagation:function(){w.stopPropagation();},preventDefault:function(){w.preventDefault();},nativeEvent:w.nativeEvent}));};return h__namespace.createElement("span",{className:O,style:a},h__namespace.createElement("input",kt({},v,{className:"".concat(i,"-input"),ref:m,onChange:y,disabled:l,checked:!!E,type:f})),h__namespace.createElement("span",{className:"".concat(i,"-inner")}))});const _2=new Bt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),O2=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return {[n]:Object.assign(Object.assign({},fr(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"}})}},P2=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:E,wireframe:C,colorWhite:O}=e,y=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},fr(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:_2,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},fr(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({},Js(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:C?n:O,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:C?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(${E/i})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},T2=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:E,radioCheckedColor:C,radioButtonCheckedBg:O,radioButtonHoverColor:y,radioButtonActiveColor:S,radioSolidCheckedColor:w,colorTextDisabled:M,colorBgContainerDisabled:A,radioDisabledButtonCheckedColor:_,radioDisabledButtonCheckedBg:N}=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:E,borderEndStartRadius:E},"&:last-child":{borderStartEndRadius:E,borderEndEndRadius:E}},[`${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:C},"&:has(:focus-visible)":Object.assign({},Js(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:C,background:O,borderColor:C,"&::before":{backgroundColor:C},"&:first-child":{borderColor:C},"&:hover":{color:y,borderColor:y,"&::before":{backgroundColor:y}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:w,background:C,borderColor:C,"&:hover":{color:w,background:y,borderColor:y},"&:active":{color:w,background:S,borderColor:S}},"&-disabled":{color:M,backgroundColor:A,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:M,backgroundColor:A,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:_,backgroundColor:N,borderColor:a,boxShadow:"none"}}}},Zp=wn("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,E=a,C=4,O=E-C*2,y=m?O:E-(C+r)*2,S=d,w=u,M=l,A=c,_=t-r,$=Ht(e,{radioFocusShadow:p,radioButtonFocusShadow:b,radioSize:E,radioDotSize:y,radioDotDisabledSize:O,radioCheckedColor:S,radioDotDisabledColor:i,radioSolidCheckedColor:v,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:w,radioButtonHoverColor:M,radioButtonActiveColor:A,radioButtonPaddingHorizontal:_,radioDisabledButtonCheckedBg:n,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:f});return [O2($),P2($),T2($)]});var R2=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(Kp),o=h__namespace.useContext(Xp),{getPrefixCls:a,direction:s}=h__namespace.useContext(ut),l=h__namespace.useRef(null),c=ii(t,l),{isFormItemInput:u}=h__namespace.useContext(Io),d=A=>{var _,N;(_=e.onChange)===null||_===void 0||_.call(e,A),(N=i==null?void 0:i.onChange)===null||N===void 0||N.call(i,A);},{prefixCls:f,className:g,rootClassName:v,children:m,style:p}=e,b=R2(e,["prefixCls","className","rootClassName","children","style"]),E=a("radio",f),C=((i==null?void 0:i.optionType)||o)==="button"?`${E}-button`:E,[O,y]=Zp(E),S=Object.assign({},b),w=h__namespace.useContext(Zo);i&&(S.name=i.name,S.onChange=d,S.checked=e.value===i.value,S.disabled=(r=S.disabled)!==null&&r!==void 0?r:i.disabled),S.disabled=(n=S.disabled)!==null&&n!==void 0?n:w;const M=q(`${C}-wrapper`,{[`${C}-wrapper-checked`]:S.checked,[`${C}-wrapper-disabled`]:S.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:u},g,v,y);return O(h__namespace.createElement("label",{className:M,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},h__namespace.createElement(Yp,Object.assign({},S,{type:"radio",prefixCls:C,ref:c})),m!==void 0?h__namespace.createElement("span",null,m):null))},A2=h__namespace.forwardRef(M2),gs=A2,N2=h__namespace.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=h__namespace.useContext(ut),i=h__namespace.useContext(Ki),[o,a]=al(e.defaultValue,{value:e.value}),s=$=>{const x=o,P=$.target.value;"value"in e||a(P);const{onChange:I}=e;I&&P!==x&&I($);},{prefixCls:l,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:g,children:v,size:m,style:p,id:b,onMouseEnter:E,onMouseLeave:C,onFocus:O,onBlur:y}=e,S=r("radio",l),w=`${S}-group`,[M,A]=Zp(S);let _=v;d&&d.length>0&&(_=d.map($=>typeof $=="string"||typeof $=="number"?h__namespace.createElement(gs,{key:$.toString(),prefixCls:S,disabled:g,value:$,checked:o===$},$):h__namespace.createElement(gs,{key:`radio-group-value-options-${$.value}`,prefixCls:S,disabled:$.disabled||g,value:$.value,checked:o===$.value,style:$.style},$.label)));const N=m||i,T=q(w,`${w}-${f}`,{[`${w}-${N}`]:N,[`${w}-rtl`]:n==="rtl"},c,u,A);return M(h__namespace.createElement("div",Object.assign({},Y_(e),{className:T,style:p,onMouseEnter:E,onMouseLeave:C,onFocus:O,onBlur:y,id:b,ref:t}),h__namespace.createElement(E2,{value:{onChange:s,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))}),k2=h__namespace.memo(N2);var I2=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(ut),{prefixCls:n}=e,i=I2(e,["prefixCls"]),o=r("radio",n);return h__namespace.createElement($2,{value:"button"},h__namespace.createElement(gs,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},L2=h__namespace.forwardRef(F2),sl=gs;sl.Button=L2;sl.Group=k2;sl.__ANT_RADIO=!0;const ac=sl,Qp=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ll=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),ms=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Jp=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ll(Ht(e,{inputBorderHoverColor:e.colorBorder})))}),ev=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}},tv=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),rv=(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({},ms(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({},ms(Ht(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${r}-prefix, ${r}-suffix`]:{color:i}}}},nv=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}`},Qp(e.colorTextPlaceholder)),{"&:hover":Object.assign({},ll(e)),"&:focus, &-focused":Object.assign({},ms(e)),"&-disabled, &[disabled]":Object.assign({},Jp(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({},ev(e)),"&-sm":Object.assign({},tv(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),D2=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({},ev(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},tv(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"},Qx()),{[`${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 j2(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 z2=new Bt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),H2=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},fr(e)),{display:"inline-flex"}),[r]:Object.assign(Object.assign({},fr(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({},fr(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({},Js(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:z2,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 W2(e,t){const r=Ht(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [H2(r)]}const iv=wn("Checkbox",(e,t)=>{let{prefixCls:r}=t;return [W2(r,e)]});var B2=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=B2(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:f}=h__namespace.useContext(ut),[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(T=>typeof T=="string"||typeof T=="number"?{label:T,value:T}:T),E=T=>{p($=>$.filter(x=>x!==T));},C=T=>{p($=>[].concat(ee($),[T]));},O=T=>{const $=g.indexOf(T.value),x=ee(g);$===-1?x.push(T.value):x.splice($,1),"value"in u||v(x);const P=b();c==null||c(x.filter(I=>m.includes(I)).sort((I,k)=>{const L=P.findIndex(z=>z.value===I),D=P.findIndex(z=>z.value===k);return L-D}));},y=d("checkbox",o),S=`${y}-group`,[w,M]=iv(y),A=$m(u,["value","disabled"]);i&&i.length>0&&(n=b().map(T=>h__namespace.createElement(av,{prefixCls:y,key:T.value.toString(),disabled:"disabled"in T?T.disabled:u.disabled,value:T.value,checked:g.includes(T.value),onChange:T.onChange,className:`${S}-item`,style:T.style},T.label)));const _={toggleOption:O,value:g,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:E},N=q(S,{[`${S}-rtl`]:f==="rtl"},a,s,M);return w(h__namespace.createElement("div",Object.assign({className:N,style:l},A,{ref:t}),h__namespace.createElement(ov.Provider,{value:_},n)))},U2=h__namespace.forwardRef(V2),G2=h__namespace.memo(U2);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{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=q2(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:m}=h__namespace.useContext(ut),p=h__namespace.useContext(ov),{isFormItemInput:b}=h__namespace.useContext(Io),E=h__namespace.useContext(Zo),C=(r=(p==null?void 0:p.disabled)||f)!==null&&r!==void 0?r:E,O=h__namespace.useRef(g.value);h__namespace.useEffect(()=>{p==null||p.registerValue(g.value);},[]),h__namespace.useEffect(()=>{if(!d)return g.value!==O.current&&(p==null||p.cancelValue(O.current),p==null||p.registerValue(g.value),O.current=g.value),()=>p==null?void 0:p.cancelValue(g.value)},[g.value]);const y=v("checkbox",n),[S,w]=iv(y),M=Object.assign({},g);p&&!d&&(M.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),p.toggleOption&&p.toggleOption({label:a,value:g.value});},M.name=p.name,M.checked=p.value.includes(g.value));const A=q({[`${y}-wrapper`]:!0,[`${y}-rtl`]:m==="rtl",[`${y}-wrapper-checked`]:M.checked,[`${y}-wrapper-disabled`]:C,[`${y}-wrapper-in-form-item`]:b},i,o,w),_=q({[`${y}-indeterminate`]:s},w),N=s?"mixed":void 0;return S(h__namespace.createElement("label",{className:A,style:l,onMouseEnter:c,onMouseLeave:u},h__namespace.createElement(Yp,Object.assign({"aria-checked":N},M,{prefixCls:y,className:_,disabled:C,ref:t})),a!==void 0&&h__namespace.createElement("span",null,a)))},X2=h__namespace.forwardRef(K2),av=X2,Ed=av;Ed.Group=G2;Ed.__ANT_CHECKBOX=!0;const Y2=Ed;var Z2={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 Q2=Z2;var sv=function(t,r){return h__namespace.createElement(nl,j(j({},t),{},{ref:r,icon:Q2}))};sv.displayName="UpOutlined";const J2=h__namespace.forwardRef(sv);function wu(){return typeof BigInt=="function"}function Jn(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 $d(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Fo(e){var t=String(e);if($d(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 cl(e){var t=String(e);if($d(e)){if(e>Number.MAX_SAFE_INTEGER)return String(wu()?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()?"":cl(this.number):this.origin}}]),e}(),tT=function(){function e(t){if(hr(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),lv(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if($d(r)&&(r=Number(r)),r=typeof r=="string"?r:cl(r),xd(r)){var n=Jn(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 gr(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=Jn(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()?"":Jn("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function br(e){return wu()?new tT(e):new eT(e)}function ja(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var i=Jn(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=br(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-u));return ja(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 rT=function(){var t=h.useState(!1),r=G(t,2),n=r[0],i=r[1];return Mt(function(){i(Fp());},[]),n},nT=200,iT=600;function oT(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,E){b.preventDefault(),l.current(E);function C(){l.current(E),s.current=setTimeout(C,nT);}s.current=setTimeout(C,iT);},u=function(){clearTimeout(s.current);};h__namespace.useEffect(function(){return u},[]);var d=rT();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",kt({},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",kt({},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 Hh(e){var t=typeof e=="number"?cl(e):Jn(e).fullStr,r=t.includes(".");return r?Jn(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function aT(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){jt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message));}}return [n,i]}const sT=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 lT=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Wh=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},Bh=function(t){var r=br(t);return r.isInvalidate()?null:r},cv=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,E=e.controls,C=E===void 0?!0:E,O=e.stringMode,y=e.parser,S=e.formatter,w=e.precision,M=e.decimalSeparator,A=e.onChange,_=e.onInput,N=e.onPressEnter,T=e.onStep,$=ir(e,lT),x="".concat(i,"-input"),P=h__namespace.useRef(null),I=h__namespace.useState(!1),k=G(I,2),L=k[0],D=k[1],z=h__namespace.useRef(!1),B=h__namespace.useRef(!1),W=h__namespace.useRef(!1),V=h__namespace.useState(function(){return br(f??d)}),te=G(V,2),H=te[0],J=te[1];function ae(le){f===void 0&&J(le);}var ve=h__namespace.useCallback(function(le,se){if(!se)return w>=0?w:Math.max(Fo(le),Fo(u))},[w,u]),ie=h__namespace.useCallback(function(le){var se=String(le);if(y)return y(se);var $e=se;return M&&($e=$e.replace(M,".")),$e.replace(/[^\w.-]+/g,"")},[y,M]),be=h__namespace.useRef(""),we=h__namespace.useCallback(function(le,se){if(S)return S(le,{userTyping:se,input:String(be.current)});var $e=typeof le=="number"?cl(le):le;if(!se){var he=ve($e,se);if(xd($e)&&(M||he>=0)){var Ge=M||".";$e=ja($e,Ge,he);}}return $e},[S,ve,M]),Be=h__namespace.useState(function(){var le=d??f;return H.isInvalidate()&&["string","number"].includes(De(le))?Number.isNaN(le)?"":le:we(H.toString(),!1)}),je=G(Be,2),ye=je[0],me=je[1];be.current=ye;function nt(le,se){me(we(le.isInvalidate()?le.toString(!1):le.toString(!se),se));}var Oe=h__namespace.useMemo(function(){return Bh(l)},[l,w]),ze=h__namespace.useMemo(function(){return Bh(s)},[s,w]),re=h__namespace.useMemo(function(){return !Oe||!H||H.isInvalidate()?!1:Oe.lessEquals(H)},[Oe,H]),oe=h__namespace.useMemo(function(){return !ze||!H||H.isInvalidate()?!1:H.lessEquals(ze)},[ze,H]),de=aT(P.current,L),ke=G(de,2),Ie=ke[0],Ct=ke[1],rt=function(se){return Oe&&!se.lessEquals(Oe)?Oe:ze&&!ze.lessEquals(se)?ze:null},st=function(se){return !rt(se)},pe=function(se,$e){var he=se,Ge=st(he)||he.isEmpty();if(!he.isEmpty()&&!$e&&(he=rt(he)||he,Ge=!0),!v&&!g&&Ge){var pt=he.toString(),Pt=ve(pt,$e);return Pt>=0&&(he=br(ja(pt,".",Pt)),st(he)||(he=br(ja(pt,".",Pt,!0)))),he.equals(H)||(ae(he),A==null||A(he.isEmpty()?null:Wh(O,he)),f===void 0&&nt(he,$e)),he}return H},He=sT(),lt=function le(se){if(Ie(),me(se),!B.current){var $e=ie(se),he=br($e);he.isNaN()||pe(he,!0);}_==null||_(se),He(function(){var Ge=se;y||(Ge=se.replace(/。/g,".")),Ge!==se&&le(Ge);});},Ee=function(){B.current=!0;},Ve=function(){B.current=!1,lt(P.current.value);},Ue=function(se){lt(se.target.value);},Ot=function(se){var $e;if(!(se&&re||!se&&oe)){z.current=!1;var he=br(W.current?Hh(u):u);se||(he=he.negate());var Ge=(H||br(0)).add(he.toString()),pt=pe(Ge,!1);T==null||T(Wh(O,pt),{offset:W.current?Hh(u):u,type:se?"up":"down"}),($e=P.current)===null||$e===void 0||$e.focus();}},dt=function(se){var $e=br(ie(ye)),he=$e;$e.isNaN()?he=H:he=pe($e,se),f!==void 0?nt(H,!1):he.isNaN()||nt(he,!1);},Ut=function(){z.current=!0;},Cn=function(se){var $e=se.which,he=se.shiftKey;z.current=!0,he?W.current=!0:W.current=!1,$e===Y.ENTER&&(B.current||(z.current=!1),dt(!1),N==null||N(se)),b!==!1&&!B.current&&[Y.UP,Y.DOWN].includes($e)&&(Ot(Y.UP===$e),se.preventDefault());},qr=function(){z.current=!1,W.current=!1;},lr=function(){dt(!1),D(!1),z.current=!1;};return wo(function(){H.isInvalidate()||nt(H,!1);},[w]),wo(function(){var le=br(f);J(le);var se=br(ie(ye));(!le.equals(se)||!z.current||S)&&nt(le,z.current);},[f]),wo(function(){S&&Ct();},[ye]),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"),H.isNaN()),X(r,"".concat(i,"-out-of-range"),!H.isInvalidate()&&!st(H)),r)),style:a,onFocus:function(){D(!0);},onBlur:lr,onKeyDown:Cn,onKeyUp:qr,onCompositionStart:Ee,onCompositionEnd:Ve,onBeforeInput:Ut},C&&h__namespace.createElement(oT,{prefixCls:i,upNode:m,downNode:p,upDisabled:re,downDisabled:oe,onStep:Ot}),h__namespace.createElement("div",{className:"".concat(x,"-wrap")},h__namespace.createElement("input",kt({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":H.isInvalidate()?null:H.toString(),step:u},$,{ref:ii(P,t),className:x,value:ye,onChange:Ue,disabled:g,readOnly:v}))))});cv.displayName="InputNumber";const cT=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:E,borderRadiusLG:C,controlWidth:O,handleVisible:y}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fr(e)),nv(e)),rv(e,t)),{display:"inline-block",width:O,margin:0,padding:0,border:`${r}px ${n} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:C,[`input${t}-input`]:{height:s-2*r}},"&-sm":{padding:0,borderRadius:E,[`input${t}-input`]:{height:l-2*r,padding:`0 ${u}px`}},"&:hover":Object.assign({},ll(e)),"&-focused":Object.assign({},ms(e)),"&-disabled":Object.assign(Object.assign({},Jp(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":Object.assign(Object.assign(Object.assign({},fr(e)),D2(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}}}),[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},fr(e)),{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",fontSize:"inherit",verticalAlign:"top"}),Qp(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({},tp()),{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}}}]},uT=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({},nv(e)),rv(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({},ll(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}}})}},dT=wn("InputNumber",e=>{const t=j2(e);return [cT(t),uT(t),Mp(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var fT=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(ut),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:E,controls:C}=e,O=fT(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=r("input-number",f),[S,w]=dT(y),{compactSize:M,compactItemClassnames:A}=Tp(y,n);let _=h__namespace.createElement(J2,{className:`${y}-handler-up-inner`}),N=h__namespace.createElement(VP,{className:`${y}-handler-down-inner`});const T=typeof C=="boolean"?C:void 0;typeof C=="object"&&(_=typeof C.upIcon>"u"?_:h__namespace.createElement("span",{className:`${y}-handler-up-inner`},C.upIcon),N=typeof C.downIcon>"u"?N:h__namespace.createElement("span",{className:`${y}-handler-down-inner`},C.downIcon));const{hasFeedback:$,status:x,isFormItemInput:P,feedbackIcon:I}=h__namespace.useContext(Io),k=HP(x,E),L=M||u||i,D=m!=null||$,z=!!(g||v),B=h__namespace.useContext(Zo),W=d??B,V=q({[`${y}-lg`]:L==="large",[`${y}-sm`]:L==="small",[`${y}-rtl`]:n==="rtl",[`${y}-borderless`]:!p,[`${y}-in-form-item`]:P},oc(y,k),A,w,l,!D&&!z&&c);let te=h__namespace.createElement(cv,Object.assign({ref:s,disabled:W,className:V,upHandler:_,downHandler:N,prefixCls:y,readOnly:b,controls:T},O));if(D){const H=q(`${y}-affix-wrapper`,oc(`${y}-affix-wrapper`,k,$),{[`${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},!z&&l,!z&&c,w);te=h__namespace.createElement("div",{className:H,style:e.style,onMouseUp:()=>s.current.focus()},m&&h__namespace.createElement("span",{className:`${y}-prefix`},m),Wi(te,{style:null,value:e.value,onFocus:J=>{var ae;a(!0),(ae=e.onFocus)===null||ae===void 0||ae.call(e,J);},onBlur:J=>{var ae;a(!1),(ae=e.onBlur)===null||ae===void 0||ae.call(e,J);}}),$&&h__namespace.createElement("span",{className:`${y}-suffix`},I));}if(z){const H=`${y}-group`,J=`${H}-addon`,ae=g?h__namespace.createElement("div",{className:J},g):null,ve=v?h__namespace.createElement("div",{className:J},v):null,ie=q(`${y}-wrapper`,H,w,{[`${H}-rtl`]:n==="rtl"}),be=q(`${y}-group-wrapper`,{[`${y}-group-wrapper-sm`]:L==="small",[`${y}-group-wrapper-lg`]:L==="large",[`${y}-group-wrapper-rtl`]:n==="rtl"},oc(`${y}-group-wrapper`,k,$),w,l,c);te=h__namespace.createElement("div",{className:be,style:e.style},h__namespace.createElement("div",{className:ie},ae&&h__namespace.createElement(mu,null,h__namespace.createElement(Nh,{status:!0,override:!0},ae)),Wi(te,{style:null,disabled:W}),ve&&h__namespace.createElement(mu,null,h__namespace.createElement(Nh,{status:!0,override:!0},ve))));}return S(te)}),dv=uv,hT=e=>h__namespace.createElement(ap,{theme:{components:{InputNumber:{handleVisible:!0}}}},h__namespace.createElement(uv,Object.assign({},e)));dv._InternalPanelDoNotUseOrYouWillBeFired=hT;const Vh=dv;var oi=h__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Su(e,t,r){return (e-t)/(r-t)}function _d(e,t,r,n){var i=Su(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 Ci(e,t){return Array.isArray(e)?e[t]:e}var gT=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],mT=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=ir(e,gT),g=h__namespace.useContext(oi),v=g.min,m=g.max,p=g.direction,b=g.disabled,E=g.keyboard,C=g.range,O=g.tabIndex,y=g.ariaLabelForHandle,S=g.ariaLabelledByForHandle,w=g.ariaValueTextFormatterForHandle,M="".concat(i,"-handle"),A=function(x){b||s(x,a);},_=function(x){if(!b&&E){var P=null;switch(x.which||x.keyCode){case Y.LEFT:P=p==="ltr"||p==="btt"?-1:1;break;case Y.RIGHT:P=p==="ltr"||p==="btt"?1:-1;break;case Y.UP:P=p!=="ttb"?1:-1;break;case Y.DOWN:P=p!=="ttb"?-1:1;break;case Y.HOME:P="min";break;case Y.END:P="max";break;case Y.PAGE_UP:P=2;break;case Y.PAGE_DOWN:P=-2;break}P!==null&&(x.preventDefault(),d(P,a));}},N=_d(p,o,v,m),T=h__namespace.createElement("div",kt({ref:t,className:q(M,(r={},X(r,"".concat(M,"-").concat(a+1),C),X(r,"".concat(M,"-dragging"),u),r)),style:j(j({},N),l),onMouseDown:A,onTouchStart:A,onKeyDown:_,tabIndex:b?null:Ci(O,a),role:"slider","aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":o,"aria-disabled":b,"aria-label":Ci(y,a),"aria-labelledby":Ci(S,a),"aria-valuetext":(n=Ci(w,a))===null||n===void 0?void 0:n(o)},f));return c&&(T=c(T,{index:a,prefixCls:i,value:o,dragging:u})),T}),pT=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],vT=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=ir(e,pT),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(mT,kt({ref:function(v){v?u.current[f]=v:delete u.current[f];},dragging:l===f,prefixCls:r,style:Ci(n,f),key:f,value:d,valueIndex:f,onStartMove:i,onOffsetChange:o,render:s},c))}))});function Uh(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function bT(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),E=G(b,2),C=E[0],O=E[1],y=h__namespace.useState(r),S=G(y,2),w=S[0],M=S[1],A=h__namespace.useRef(null),_=h__namespace.useRef(null);h__namespace.useEffect(function(){m===-1&&O(r);},[r,m]),h__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",A.current),document.removeEventListener("mouseup",_.current),document.removeEventListener("touchmove",A.current),document.removeEventListener("touchend",_.current);}},[]);var N=function(k,L){C.some(function(D,z){return D!==k[z]})&&(L!==void 0&&f(L),O(k),a(k));},T=function(k,L){if(k===-1){var D=w[0],z=w[w.length-1],B=n-D,W=i-z,V=L*(i-n);V=Math.max(V,B),V=Math.min(V,W);var te=o(D+V);V=te-D;var H=w.map(function(ie){return ie+V});N(H);}else {var J=(i-n)*L,ae=ee(C);ae[k]=w[k];var ve=l(ae,J,k,"dist");N(ve.values,ve.value);}},$=h__namespace.useRef(T);$.current=T;var x=function(k,L){k.stopPropagation();var D=r[L];p(L),f(D),M(r);var z=Uh(k),B=z.pageX,W=z.pageY,V=function(J){J.preventDefault();var ae=Uh(J),ve=ae.pageX,ie=ae.pageY,be=ve-B,we=ie-W,Be=e.current.getBoundingClientRect(),je=Be.width,ye=Be.height,me;switch(t){case"btt":me=-we/ye;break;case"ttb":me=we/ye;break;case"rtl":me=-be/je;break;default:me=be/je;}$.current(L,me);},te=function H(J){J.preventDefault(),document.removeEventListener("mouseup",H),document.removeEventListener("mousemove",V),document.removeEventListener("touchend",H),document.removeEventListener("touchmove",V),A.current=null,_.current=null,p(-1),s();};document.addEventListener("mouseup",te),document.addEventListener("mousemove",V),document.addEventListener("touchend",te),document.addEventListener("touchmove",V),A.current=V,_.current=te;},P=h__namespace.useMemo(function(){var I=ee(r).sort(function(L,D){return L-D}),k=ee(C).sort(function(L,D){return L-D});return I.every(function(L,D){return L===k[D]})?C:r},[r,C]);return [m,d,P,x]}function yT(e){var t=e.prefixCls,r=e.style,n=e.start,i=e.end,o=e.index,a=e.onStartMove,s=h__namespace.useContext(oi),l=s.direction,c=s.min,u=s.max,d=s.disabled,f=s.range,g="".concat(t,"-track"),v=Su(n,c,u),m=Su(i,c,u),p=function(C){!d&&a&&a(C,-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 wT(e){var t=e.prefixCls,r=e.style,n=e.values,i=e.startPoint,o=e.onStartMove,a=h__namespace.useContext(oi),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 E,C=v[p],O=C+m,y=[];n.forEach(function(_){y.push(_.value);}),y.push(e,t),y.push(s(C));var S=m>0?1:-1;b==="unit"?y.push(s(C+S*r)):y.push(s(O)),y=y.filter(function(_){return _!==null}).filter(function(_){return m<0?_<=C:_>=C}),b==="unit"&&(y=y.filter(function(_){return _!==C}));var w=b==="unit"?C:O;E=y[0];var M=Math.abs(E-w);if(y.forEach(function(_){var N=Math.abs(_-w);N1){var A=ee(v);return A[p]=E,g(A,m-S,p,b)}return E}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",E=v[p],C=c(v,m,p,b);return {value:C,changed:C!==E}},d=function(v){return o===null&&v===0||typeof o=="number"&&v3&&arguments[3]!==void 0?arguments[3]:"unit",E=v.map(l),C=E[p],O=c(E,m,p,b);if(E[p]=O,i===!1){var y=o||0;p>0&&E[p-1]!==C&&(E[p]=Math.max(E[p],E[p-1]+y)),p0;A-=1)for(var _=!0;d(E[A]-E[A-1])&&_;){var N=u(E,-1,A-1);E[A-1]=N.value,_=N.changed;}for(var T=E.length-1;T>0;T-=1)for(var $=!0;d(E[T]-E[T-1])&&$;){var x=u(E,-1,T-1);E[T-1]=x.value,$=x.changed;}for(var P=0;P=0?x:!1},[x,re]),de=h__namespace.useMemo(function(){var Me=Object.keys(J||{});return Me.map(function(Se){var ce=J[Se],Xe={value:Number(Se)};return ce&&De(ce)==="object"&&!h__namespace.isValidElement(ce)&&("label"in ce||"style"in ce)?(Xe.style=ce.style,Xe.label=ce.label):Xe.label=ce,Xe}).filter(function(Se){var ce=Se.label;return ce||typeof ce=="number"}).sort(function(Se,ce){return Se.value-ce.value})},[J]),ke=xT(Oe,ze,re,de,T,oe),Ie=G(ke,2),Ct=Ie[0],rt=Ie[1],st=al(y,{value:O}),pe=G(st,2),He=pe[0],lt=pe[1],Ee=h__namespace.useMemo(function(){var Me=He==null?[]:Array.isArray(He)?He:[He],Se=G(Me,1),ce=Se[0],Xe=ce===void 0?Oe:ce,We=He===null?[]:[Xe];if(S){if(We=ee(Me),w||He===void 0){var pr=w>=0?w+1:2;for(We=We.slice(0,pr);We.length=0&&ye.current.focus(Me);}le(null);},[lr]);var $e=h__namespace.useMemo(function(){return P&&re===null?!1:P},[P,re]),he=function(){_==null||_(Ue(Ve.current));},Ge=bT(me,nt,Ee,Oe,ze,Ct,Ot,he,rt),pt=G(Ge,4),Pt=pt[0],Pr=pt[1],mr=pt[2],Ln=pt[3],Gt=function(Se,ce){Ln(Se,ce),A==null||A(Ue(Ve.current));},Kr=Pt!==-1;h__namespace.useEffect(function(){if(!Kr){var Me=Ee.lastIndexOf(Pr);ye.current.focus(Me);}},[Kr]);var Ft=h__namespace.useMemo(function(){return ee(mr).sort(function(Me,Se){return Me-Se})},[mr]),Dn=h__namespace.useMemo(function(){return S?[Ft[0],Ft[Ft.length-1]]:[Oe,Ft[0]]},[Ft,S,Oe]),En=G(Dn,2),Tr=En[0],Xr=En[1];h__namespace.useImperativeHandle(t,function(){return {focus:function(){ye.current.focus(0);},blur:function(){var Se=document,ce=Se.activeElement;me.current.contains(ce)&&(ce==null||ce.blur());}}}),h__namespace.useEffect(function(){d&&ye.current.focus(0);},[]);var Rr=h__namespace.useMemo(function(){return {min:Oe,max:ze,direction:nt,disabled:l,keyboard:u,step:re,included:D,includedStart:Tr,includedEnd:Xr,range:S,tabIndex:be,ariaLabelForHandle:we,ariaLabelledByForHandle:Be,ariaValueTextFormatterForHandle:je}},[Oe,ze,nt,l,u,re,D,Tr,Xr,S,be,we,Be,je]);return h__namespace.createElement(oi.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"),k),X(r,"".concat(i,"-horizontal"),!k),X(r,"".concat(i,"-with-marks"),de.length),r)),style:a,onMouseDown:Ut},h__namespace.createElement("div",{className:"".concat(i,"-rail"),style:V}),h__namespace.createElement(wT,{prefixCls:i,style:B,values:Ft,startPoint:z,onStartMove:$e?Gt:null}),h__namespace.createElement($T,{prefixCls:i,marks:de,dots:ae,style:te,activeStyle:H}),h__namespace.createElement(vT,{ref:ye,prefixCls:i,style:W,values:mr,draggingIndex:Pt,onStartMove:Gt,onOffsetChange:se,onFocus:f,onBlur:g,handleRender:ve}),h__namespace.createElement(CT,{prefixCls:i,marks:de,onClick:dt})))});const OT=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(Cd,Object.assign({ref:ii(n,t)},e))}),PT=OT,TT=e=>{const{componentCls:t,controlSize:r,dotSize:n,marginFull:i,marginPart:o,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},fr(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 Nt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}}})}},fv=(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}}},RT=e=>{const{componentCls:t,marginPartWithMark:r}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},fv(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},MT=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},fv(e,!1)),{height:"100%"})}},AT=wn("Slider",e=>{const t=Ht(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [TT(t),RT(t),MT(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 NT=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():"",IT=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=NT(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:f,direction:g,getPopupContainer:v}=h__namespace.useContext(ut),[m,p]=h__namespace.useState({}),b=(_,N)=>{p(T=>Object.assign(Object.assign({},T),{[_]:N}));},E=(_,N)=>_||(N?g==="rtl"?"left":"right":"top"),C=f("slider",r),[O,y]=AT(C),S=q(i,o,{[`${C}-rtl`]:g==="rtl"},y);g==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[w,M]=h__namespace.useMemo(()=>n?typeof n=="object"?[!0,n.draggableTrack]:[!0,!1]:[!1],[n]),A=(_,N)=>{var T;const{index:$,dragging:x}=N,{tooltip:P={},vertical:I}=e,k=Object.assign({},P),{open:L,placement:D,getPopupContainer:z,prefixCls:B,formatter:W}=k;let V;W||W===null?V=W:s||s===null?V=s:V=kT;const te=V?m[$]||x:!1,H=(T=L??l)!==null&&T!==void 0?T:L===void 0&&te,J=Object.assign(Object.assign({},_.props),{onMouseEnter:()=>b($,!0),onMouseLeave:()=>b($,!1)}),ae=f("tooltip",B??a);return h__namespace.createElement(PT,{prefixCls:ae,title:V?V(N.value):"",open:H,placement:E(D??u,I),key:$,overlayClassName:`${C}-tooltip`,getPopupContainer:z||c||v},h__namespace.cloneElement(_,J))};return O(h__namespace.createElement(_T,Object.assign({},d,{step:d.step,range:w,draggableTrack:M,className:S,ref:t,prefixCls:C,handleRender:A})))}),FT=IT;function LT(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Aa=(e,t,r)=>{const n=LT(r);return {[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`]}}},DT=e=>np(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"}}}}),jT=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:i}=e,o=n-r,a=t-r;return {[i]:Object.assign(Object.assign({},fr(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}}},hv=wn("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 [jT(u),DT(u),Aa(u,"success","Success"),Aa(u,"processing","Info"),Aa(u,"error","Error"),Aa(u,"warning","Warning")]});var zT=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=zT(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=h__namespace.useContext(ut),l=g=>{i==null||i(!n),o==null||o(g);},c=s("tag",t),[u,d]=hv(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})))},WT=HT;var BT=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=BT(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:m}=h__namespace.useContext(ut),[p,b]=h__namespace.useState(!0);h__namespace.useEffect(()=>{"visible"in g&&b(g.visible);},[g.visible]);const E=Wp(l)||d2(l),C=Object.assign({backgroundColor:l&&!E?l:void 0},o),O=v("tag",r),[y,S]=hv(O),w=q(O,{[`${O}-${l}`]:E,[`${O}-has-color`]:l&&!E,[`${O}-hidden`]:!p,[`${O}-rtl`]:m==="rtl",[`${O}-borderless`]:!f},n,i,S),M=x=>{x.stopPropagation(),c==null||c(x),!x.defaultPrevented&&b(!1);},A=h__namespace.useMemo(()=>d?u?h__namespace.createElement("span",{className:`${O}-close-icon`,onClick:M},u):h__namespace.createElement(R_,{className:`${O}-close-icon`,onClick:M}):null,[d,u,O,M]),_=typeof g.onClick=="function"||a&&a.type==="a",N=s||null,T=N?h__namespace.createElement(h__namespace.Fragment,null,N,h__namespace.createElement("span",null,a)):a,$=h__namespace.createElement("span",Object.assign({},g,{ref:t,className:w,style:C}),T,A);return y(_?h__namespace.createElement(_p,null,$):$)},gv=h__namespace.forwardRef(VT);gv.CheckableTag=WT;const no=gv;function mv({children:e}){const t=nd();return F(ap,{theme:{algorithm:t?yu.darkAlgorithm:yu.defaultAlgorithm,token:{colorPrimary:"#ff6699"}},children:e})}function UT(e){return F(Cd,{...e,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var Od={exports:{}};const GT=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Gh=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},qh=({clearTimeout:e,setTimeout:t,willResolve:r})=>(n,{value:i,signal:o}={})=>{if(o&&o.aborted)return Promise.reject(Gh());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(Gh());},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},pv=e=>{const t=qh({...e,willResolve:!0});return t.reject=qh({...e,willResolve:!1}),t.range=(r,n,i)=>t(GT(r,n),i),t},Pd=pv();Pd.createWithTimers=pv;Od.exports=Pd;Od.exports.default=Pd;var qT=Od.exports;const ul=vn(qT),KT=10*1e3,XT=200;async function vv(e,t,r=()=>!0){let n=[];const i=()=>{n=Array.from(document.querySelectorAll(e)).filter(r);};i();const a=performance.now()+KT;for(;!n.length&&performance.now()n.remove(),t)}function Td(){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 dl,Kh=ug;dl=Kh.createRoot,Kh.hydrateRoot;var Rd={},Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.DEFAULT_ICON_CONFIGS=void 0;Vt.IconConverter=wv;Vt.IconProvider=void 0;Vt.IconWrapper=nR;var Ha=YT(h);function bv(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return (bv=function(n){return n?r:t})(e)}function YT(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var r=bv(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 ZT=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Xh(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 Yh(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function eR(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 yv={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=yv;function tR(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function wv(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 Sv=(0, Ha.createContext)(yv),rR=Sv.Provider;Vt.IconProvider=rR;function nR(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,ZT),g=(0, Ha.useContext)(Sv),v=(0, Ha.useMemo)(tR,[]),m=wv(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),Ha.default.createElement("span",Yh(Yh({},f),{},{className:p.join(" ")}),r(m))}}Object.defineProperty(Rd,"__esModule",{value:!0});var Cv=Rd.default=void 0,sc=oR(h),iR=Vt;function oR(e){return e&&e.__esModule?e:{default:e}}var aR=(0, iR.IconWrapper)("close",!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:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),sc.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Cv=Rd.default=aR;var Md={};Object.defineProperty(Md,"__esModule",{value:!0});var Ev=Md.default=void 0,lc=lR(h),sR=Vt;function lR(e){return e&&e.__esModule?e:{default:e}}var cR=(0, sR.IconWrapper)("config",!1,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:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),lc.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}))});Ev=Md.default=cR;var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});var $v=Ad.default=void 0,io=dR(h),uR=Vt;function dR(e){return e&&e.__esModule?e:{default:e}}var fR=(0, uR.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}))});$v=Ad.default=fR;var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});var xv=Nd.default=void 0,oo=gR(h),hR=Vt;function gR(e){return e&&e.__esModule?e:{default:e}}var mR=(0, hR.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}))});xv=Nd.default=mR;var kd={};Object.defineProperty(kd,"__esModule",{value:!0});var _v=kd.default=void 0,cc=vR(h),pR=Vt;function vR(e){return e&&e.__esModule?e:{default:e}}var bR=(0, pR.IconWrapper)("loading",!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:"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}),cc.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}))});_v=kd.default=bR;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var Ov=Id.default=void 0,Mr=wR(h),yR=Vt;function wR(e){return e&&e.__esModule?e:{default:e}}var SR=(0, yR.IconWrapper)("loading-three",!1,function(e){return Mr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Mr.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Ov=Id.default=SR;var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var Pv=Fd.default=void 0,uc=ER(h),CR=Vt;function ER(e){return e&&e.__esModule?e:{default:e}}var $R=(0, CR.IconWrapper)("return",!0,function(e){return uc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},uc.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),uc.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}))});Pv=Fd.default=$R;const xR={Close:Cv,Config:Ev,DistraughtFace:$v,Return:Pv,Loading:_v,LoadingThree:Ov,Info:xv};function In({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=xR[e];return F(a,{theme:t,size:r,fill:n,...i,style:{fontSize:0,...i.style}})}function Zh(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Qh(e,t,r){var n=[],i=Uu(e,n,r);return n.length<2?r:i+t(n)}var _R=function(t){var r=Sg(t);r.sheet.speedy=function(s){this.isSpeedy=s;},r.compat=!0;var n=function(){for(var l=arguments.length,c=new Array(l),u=0;u0&&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 it(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 At(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n-1&&(i=setTimeout(function(){Wa.delete(e);},t)),Wa.set(e,_r(_r({},r),{timer:i}));},FR=function(e){return Wa.get(e)},Ba=new Map,LR=function(e){return Ba.get(e)},DR=function(e,t){Ba.set(e,t),t.then(function(r){return Ba.delete(e),r}).catch(function(){Ba.delete(e);});},Bn={},jR=function(e,t){Bn[e]&&Bn[e].forEach(function(r){return r(t)});},fc=function(e,t){return Bn[e]||(Bn[e]=[]),Bn[e].push(t),function(){var n=Bn[e].indexOf(t);Bn[e].splice(n,1);}},zR=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):IR(g,i,v),jR(g,v.data);},f=function(g,v){return v===void 0&&(v=[]),l?l(v):FR(g)};return Nv(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=fc(r,function(v){e.setState({data:v});});}},[]),ta(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=LR(r);return m&&m!==u.current?{servicePromise:m}:(m=g.apply(void 0,At([],it(v),!1)),u.current=m,DR(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=fc(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=fc(r,function(m){e.setState({data:m});}));}}:{}};const HR=zR;var WR=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=Jg(function(c){c();},r,s),e.runAsync=function(){for(var c=[],u=0;u-1&&Co.splice(r,1);}}if(ra){var Jh=function(){if(!(!Ld()||!QR()))for(var e=0;e{co++,document.body.style.overflow="hidden";},LM=()=>{co--,co<0&&(co=0),co===0&&(document.body.style.overflow="");};function jd({show:e,onHide:t,children:r,clsModalMask:n,clsModal:i,width:o,hideWhenMaskOnClick:a=!1,hideWhenEsc:s=!1}){h.useLayoutEffect(()=>{e?FM():LM();},[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=Le(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(Or.modalMask,n),onClick:m,children:F("div",{className:q(Or.modal,i),style:{...f,width:o},ref:l,children:r})}),v):null}const zd=e=>F(In,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),DM="_toast-container_mcbuq_1",jM="_single-line_mcbuq_17";function Wt(e,t=2e3){const r=document.createElement("div");r.className=DM,r.innerText=e,!e.includes(` `)&&!e.includes("r.remove(),t);}const zM="请求失败, 请重试 !!!",HM="操作失败, 请重试 !!!";function jv(){return Wt(zM)}function zv(){return Wt(HM)}function WM(e){const t=qo({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 Hv="27eb53fc9058f8c3";async function BM(){var c,u;const t=(await Lu.get("https://passport.bilibili.com/login/app/third",{params:{appkey:Hv,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 VM(){const e=await BM();if(typeof e=="object"&&"errmsg"in e){Wt(e.errmsg);return}const t=e;return _e.accessKey=t,Wt("获取成功"),t}function UM(){_e.accessKey="",Wt("已删除 access_key");}const Wv="https://api.bilibili.com",Bv="https://app.bilibili.com",gl=Lu.create({baseURL:Wv});gl.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 ml=Lu.create({adapter:Xb});ml.interceptors.request.use(function(e){return e.params={appkey:Hv,access_key:_e.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});ml.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 GM(){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,Vv=new Set,xu=typeof process=="object"&&process?process:{},Uv=(e,t,r,n)=>{typeof xu.emitWarning=="function"?xu.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`);};let vs=globalThis.AbortController,tg=globalThis.AbortSignal;var cg;if(typeof vs>"u"){tg=class{constructor(){Ze(this,"onabort");Ze(this,"_onabort",[]);Ze(this,"reason");Ze(this,"aborted",!1);}addEventListener(n,i){this._onabort.push(i);}},vs=class{constructor(){Ze(this,"signal",new tg);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=xu.env)==null?void 0:cg.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,Uv("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 qM=e=>!Vv.has(e),On=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Gv=e=>On(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Va:null:null;class Va extends Array{constructor(t){super(t),this.fill(0);}}var Ri;const Ei=class{constructor(t,r){Ze(this,"heap");Ze(this,"length");if(!R(Ei,Ri))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0;}static create(t){const r=Gv(t);if(!r)return [];ne(Ei,Ri,!0);const n=new Ei(t,r);return ne(Ei,Ri,!1),n}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Ua=Ei;Ri=new WeakMap,ge(Ua,Ri,!1);var wr,Jt,kr,Sr,Mi,ft,Cr,ht,Qe,ue,It,er,Rt,vt,Er,$t,rn,nn,$r,Ir,Mn,Lt,jo,Ou,Xn,on,zo,tr,Ss,qv,Yn,Ai,Ho,Fr,Pn,Lr,Tn,Wo,Pu,Ni,Ga,ki,qa,qe,tt,Bo,Tu,Zn,uo;const Yd=class{constructor(t){ge(this,jo);ge(this,Ss);ge(this,Fr);ge(this,Lr);ge(this,Wo);ge(this,Ni);ge(this,ki);ge(this,qe);ge(this,Bo);ge(this,Zn);ge(this,wr,void 0);ge(this,Jt,void 0);ge(this,kr,void 0);ge(this,Sr,void 0);ge(this,Mi,void 0);Ze(this,"ttl");Ze(this,"ttlResolution");Ze(this,"ttlAutopurge");Ze(this,"updateAgeOnGet");Ze(this,"updateAgeOnHas");Ze(this,"allowStale");Ze(this,"noDisposeOnSet");Ze(this,"noUpdateTTL");Ze(this,"maxEntrySize");Ze(this,"sizeCalculation");Ze(this,"noDeleteOnFetchRejection");Ze(this,"noDeleteOnStaleGet");Ze(this,"allowStaleOnFetchAbort");Ze(this,"allowStaleOnFetchRejection");Ze(this,"ignoreFetchAbort");ge(this,ft,void 0);ge(this,Cr,void 0);ge(this,ht,void 0);ge(this,Qe,void 0);ge(this,ue,void 0);ge(this,It,void 0);ge(this,er,void 0);ge(this,Rt,void 0);ge(this,vt,void 0);ge(this,Er,void 0);ge(this,$t,void 0);ge(this,rn,void 0);ge(this,nn,void 0);ge(this,$r,void 0);ge(this,Ir,void 0);ge(this,Mn,void 0);ge(this,Lt,void 0);ge(this,Xn,()=>{});ge(this,on,()=>{});ge(this,zo,()=>{});ge(this,tr,()=>!1);ge(this,Yn,t=>{});ge(this,Ai,(t,r,n)=>{});ge(this,Ho,(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:E,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:O,ignoreFetchAbort:y}=t;if(r!==0&&!On(r))throw new TypeError("max option must be a nonnegative integer");const S=r?Gv(r):Array;if(!S)throw new Error("invalid max value: "+r);if(ne(this,wr,r),ne(this,Jt,g),this.maxEntrySize=v||R(this,Jt),this.sizeCalculation=m,this.sizeCalculation){if(!R(this,Jt)&&!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,Mi,p),ne(this,Mn,!!p),ne(this,ht,new Map),ne(this,Qe,new Array(r).fill(void 0)),ne(this,ue,new Array(r).fill(void 0)),ne(this,It,new S(r)),ne(this,er,new S(r)),ne(this,Rt,0),ne(this,vt,0),ne(this,Er,Ua.create(r)),ne(this,ft,0),ne(this,Cr,0),typeof c=="function"&&ne(this,kr,c),typeof u=="function"?(ne(this,Sr,u),ne(this,$t,[])):(ne(this,Sr,void 0),ne(this,$t,void 0)),ne(this,Ir,!!R(this,kr)),ne(this,Lt,!!R(this,Sr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!y,this.maxEntrySize!==0){if(R(this,Jt)!==0&&!On(R(this,Jt)))throw new TypeError("maxSize must be a positive integer if specified");if(!On(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Q(this,Ss,qv).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=On(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!On(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Q(this,jo,Ou).call(this);}if(R(this,wr)===0&&this.ttl===0&&R(this,Jt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!R(this,wr)&&!R(this,Jt)){const w="LRU_CACHE_UNBOUNDED";qM(w)&&(Vv.add(w),Uv("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",w,Yd));}}static unsafeExposeInternals(t){return {starts:R(t,nn),ttls:R(t,$r),sizes:R(t,rn),keyMap:R(t,ht),keyList:R(t,Qe),valList:R(t,ue),next:R(t,It),prev:R(t,er),get head(){return R(t,Rt)},get tail(){return R(t,vt)},free:R(t,Er),isBackgroundFetch:r=>{var n;return Q(n=t,qe,tt).call(n,r)},backgroundFetch:(r,n,i,o)=>{var a;return Q(a=t,ki,qa).call(a,r,n,i,o)},moveToTail:r=>{var n;return Q(n=t,Zn,uo).call(n,r)},indexes:r=>{var n;return Q(n=t,Fr,Pn).call(n,r)},rindexes:r=>{var n;return Q(n=t,Lr,Tn).call(n,r)},isStale:r=>{var n;return R(n=t,tr).call(n,r)}}}get max(){return R(this,wr)}get maxSize(){return R(this,Jt)}get calculatedSize(){return R(this,Cr)}get size(){return R(this,ft)}get fetchMethod(){return R(this,Mi)}get dispose(){return R(this,kr)}get disposeAfter(){return R(this,Sr)}getRemainingTTL(t){return R(this,ht).has(t)?1/0:0}*entries(){for(const t of Q(this,Fr,Pn).call(this))R(this,ue)[t]!==void 0&&R(this,Qe)[t]!==void 0&&!Q(this,qe,tt).call(this,R(this,ue)[t])&&(yield [R(this,Qe)[t],R(this,ue)[t]]);}*rentries(){for(const t of Q(this,Lr,Tn).call(this))R(this,ue)[t]!==void 0&&R(this,Qe)[t]!==void 0&&!Q(this,qe,tt).call(this,R(this,ue)[t])&&(yield [R(this,Qe)[t],R(this,ue)[t]]);}*keys(){for(const t of Q(this,Fr,Pn).call(this)){const r=R(this,Qe)[t];r!==void 0&&!Q(this,qe,tt).call(this,R(this,ue)[t])&&(yield r);}}*rkeys(){for(const t of Q(this,Lr,Tn).call(this)){const r=R(this,Qe)[t];r!==void 0&&!Q(this,qe,tt).call(this,R(this,ue)[t])&&(yield r);}}*values(){for(const t of Q(this,Fr,Pn).call(this))R(this,ue)[t]!==void 0&&!Q(this,qe,tt).call(this,R(this,ue)[t])&&(yield R(this,ue)[t]);}*rvalues(){for(const t of Q(this,Lr,Tn).call(this))R(this,ue)[t]!==void 0&&!Q(this,qe,tt).call(this,R(this,ue)[t])&&(yield R(this,ue)[t]);}[Symbol.iterator](){return this.entries()}find(t,r={}){for(const n of Q(this,Fr,Pn).call(this)){const i=R(this,ue)[n],o=Q(this,qe,tt).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,R(this,Qe)[n],this))return this.get(R(this,Qe)[n],r)}}forEach(t,r=this){for(const n of Q(this,Fr,Pn).call(this)){const i=R(this,ue)[n],o=Q(this,qe,tt).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,R(this,Qe)[n],this);}}rforEach(t,r=this){for(const n of Q(this,Lr,Tn).call(this)){const i=R(this,ue)[n],o=Q(this,qe,tt).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,R(this,Qe)[n],this);}}purgeStale(){let t=!1;for(const r of Q(this,Lr,Tn).call(this,{allowStale:!0}))R(this,tr).call(this,r)&&(this.delete(R(this,Qe)[r]),t=!0);return t}dump(){const t=[];for(const r of Q(this,Fr,Pn).call(this,{allowStale:!0})){const n=R(this,Qe)[r],i=R(this,ue)[r],o=Q(this,qe,tt).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;const a={value:o};if(R(this,$r)&&R(this,nn)){a.ttl=R(this,$r)[r];const s=ao.now()-R(this,nn)[r];a.start=Math.floor(Date.now()-s);}R(this,rn)&&(a.size=R(this,rn)[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;if(r===void 0)return this.delete(t),this;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=R(this,Ho).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=R(this,ft)===0?void 0:R(this,ht).get(t);if(d===void 0)d=R(this,ft)===0?R(this,vt):R(this,Er).length!==0?R(this,Er).pop():R(this,ft)===R(this,wr)?Q(this,Ni,Ga).call(this,!1):R(this,ft),R(this,Qe)[d]=t,R(this,ue)[d]=r,R(this,ht).set(t,d),R(this,It)[R(this,vt)]=d,R(this,er)[d]=R(this,vt),ne(this,vt,d),pa(this,ft)._++,R(this,Ai).call(this,d,u,l),l&&(l.set="add"),c=!1;else {Q(this,Zn,uo).call(this,d);const m=R(this,ue)[d];if(r!==m){if(R(this,Mn)&&Q(this,qe,tt).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(R(this,Ir)&&((f=R(this,kr))==null||f.call(this,m,t,"set")),R(this,Lt)&&((g=R(this,$t))==null||g.push([m,t,"set"]))),R(this,Yn).call(this,d),R(this,Ai).call(this,d,u,l),R(this,ue)[d]=r,l){l.set="replace";const p=m&&Q(this,qe,tt).call(this,m)?m.__staleWhileFetching:m;p!==void 0&&(l.oldValue=p);}}else l&&(l.set="update");}if(i!==0&&!R(this,$r)&&Q(this,jo,Ou).call(this),R(this,$r)&&(c||R(this,zo).call(this,d,i,o),l&&R(this,on).call(this,l,d)),!a&&R(this,Lt)&&R(this,$t)){const m=R(this,$t);let p;for(;p=m==null?void 0:m.shift();)(v=R(this,Sr))==null||v.call(this,...p);}return this}pop(){var t;try{for(;R(this,ft);){const r=R(this,ue)[R(this,Rt)];if(Q(this,Ni,Ga).call(this,!0),Q(this,qe,tt).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(R(this,Lt)&&R(this,$t)){const r=R(this,$t);let n;for(;n=r==null?void 0:r.shift();)(t=R(this,Sr))==null||t.call(this,...n);}}}has(t,r={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=R(this,ht).get(t);if(o!==void 0){const a=R(this,ue)[o];if(Q(this,qe,tt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(R(this,tr).call(this,o))i&&(i.has="stale",R(this,on).call(this,i,o));else return n&&R(this,Xn).call(this,o),i&&(i.has="hit",R(this,on).call(this,i,o)),!0}else i&&(i.has="miss");return !1}peek(t,r={}){const{allowStale:n=this.allowStale}=r,i=R(this,ht).get(t);if(i!==void 0&&(n||!R(this,tr).call(this,i))){const o=R(this,ue)[i];return Q(this,qe,tt).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:E}=r;if(!R(this,Mn))return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:b});const C={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:E};let O=R(this,ht).get(t);if(O===void 0){b&&(b.fetch="miss");const y=Q(this,ki,qa).call(this,t,O,C,m);return y.__returned=y}else {const y=R(this,ue)[O];if(Q(this,qe,tt).call(this,y)){const _=n&&y.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",_&&(b.returnedStale=!0)),_?y.__staleWhileFetching:y.__returned=y}const S=R(this,tr).call(this,O);if(!p&&!S)return b&&(b.fetch="hit"),Q(this,Zn,uo).call(this,O),i&&R(this,Xn).call(this,O),b&&R(this,on).call(this,b,O),y;const w=Q(this,ki,qa).call(this,t,O,C,m),A=w.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=S?"stale":"refresh",A&&S&&(b.returnedStale=!0)),A?w.__staleWhileFetching:w.__returned=w}}get(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=r,s=R(this,ht).get(t);if(s!==void 0){const l=R(this,ue)[s],c=Q(this,qe,tt).call(this,l);return a&&R(this,on).call(this,a,s),R(this,tr).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:(Q(this,Zn,uo).call(this,s),i&&R(this,Xn).call(this,s),l))}else a&&(a.get="miss");}delete(t){var n,i,o,a;let r=!1;if(R(this,ft)!==0){const s=R(this,ht).get(t);if(s!==void 0)if(r=!0,R(this,ft)===1)this.clear();else {R(this,Yn).call(this,s);const l=R(this,ue)[s];Q(this,qe,tt).call(this,l)?l.__abortController.abort(new Error("deleted")):(R(this,Ir)||R(this,Lt))&&(R(this,Ir)&&((n=R(this,kr))==null||n.call(this,l,t,"delete")),R(this,Lt)&&((i=R(this,$t))==null||i.push([l,t,"delete"]))),R(this,ht).delete(t),R(this,Qe)[s]=void 0,R(this,ue)[s]=void 0,s===R(this,vt)?ne(this,vt,R(this,er)[s]):s===R(this,Rt)?ne(this,Rt,R(this,It)[s]):(R(this,It)[R(this,er)[s]]=R(this,It)[s],R(this,er)[R(this,It)[s]]=R(this,er)[s]),pa(this,ft)._--,R(this,Er).push(s);}}if(R(this,Lt)&&((o=R(this,$t))!=null&&o.length)){const s=R(this,$t);let l;for(;l=s==null?void 0:s.shift();)(a=R(this,Sr))==null||a.call(this,...l);}return r}clear(){var t,r,n;for(const i of Q(this,Lr,Tn).call(this,{allowStale:!0})){const o=R(this,ue)[i];if(Q(this,qe,tt).call(this,o))o.__abortController.abort(new Error("deleted"));else {const a=R(this,Qe)[i];R(this,Ir)&&((t=R(this,kr))==null||t.call(this,o,a,"delete")),R(this,Lt)&&((r=R(this,$t))==null||r.push([o,a,"delete"]));}}if(R(this,ht).clear(),R(this,ue).fill(void 0),R(this,Qe).fill(void 0),R(this,$r)&&R(this,nn)&&(R(this,$r).fill(0),R(this,nn).fill(0)),R(this,rn)&&R(this,rn).fill(0),ne(this,Rt,0),ne(this,vt,0),R(this,Er).length=0,ne(this,Cr,0),ne(this,ft,0),R(this,Lt)&&R(this,$t)){const i=R(this,$t);let o;for(;o=i==null?void 0:i.shift();)(n=R(this,Sr))==null||n.call(this,...o);}}};let _u=Yd;wr=new WeakMap,Jt=new WeakMap,kr=new WeakMap,Sr=new WeakMap,Mi=new WeakMap,ft=new WeakMap,Cr=new WeakMap,ht=new WeakMap,Qe=new WeakMap,ue=new WeakMap,It=new WeakMap,er=new WeakMap,Rt=new WeakMap,vt=new WeakMap,Er=new WeakMap,$t=new WeakMap,rn=new WeakMap,nn=new WeakMap,$r=new WeakMap,Ir=new WeakMap,Mn=new WeakMap,Lt=new WeakMap,jo=new WeakSet,Ou=function(){const t=new Va(R(this,wr)),r=new Va(R(this,wr));ne(this,$r,t),ne(this,nn,r),ne(this,zo,(o,a,s=ao.now())=>{if(r[o]=a!==0?s:0,t[o]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{R(this,tr).call(this,o)&&this.delete(R(this,Qe)[o]);},a+1);l.unref&&l.unref();}}),ne(this,Xn,o=>{r[o]=t[o]!==0?ao.now():0;}),ne(this,on,(o,a)=>{if(t[a]){const s=t[a],l=r[a];o.ttl=s,o.start=l,o.now=n||i();const c=o.now-l;o.remainingTTL=s-c;}});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=R(this,ht).get(o);if(a===void 0)return 0;const s=t[a],l=r[a];if(s===0||l===0)return 1/0;const c=(n||i())-l;return s-c},ne(this,tr,o=>t[o]!==0&&r[o]!==0&&(n||i())-r[o]>t[o]);},Xn=new WeakMap,on=new WeakMap,zo=new WeakMap,tr=new WeakMap,Ss=new WeakSet,qv=function(){const t=new Va(R(this,wr));ne(this,Cr,0),ne(this,rn,t),ne(this,Yn,r=>{ne(this,Cr,R(this,Cr)-t[r]),t[r]=0;}),ne(this,Ho,(r,n,i,o)=>{if(Q(this,qe,tt).call(this,n))return 0;if(!On(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!On(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,Ai,(r,n,i)=>{if(t[r]=n,R(this,Jt)){const o=R(this,Jt)-t[r];for(;R(this,Cr)>o;)Q(this,Ni,Ga).call(this,!0);}ne(this,Cr,R(this,Cr)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=R(this,Cr));});},Yn=new WeakMap,Ai=new WeakMap,Ho=new WeakMap,Fr=new WeakSet,Pn=function*({allowStale:t=this.allowStale}={}){if(R(this,ft))for(let r=R(this,vt);!(!Q(this,Wo,Pu).call(this,r)||((t||!R(this,tr).call(this,r))&&(yield r),r===R(this,Rt)));)r=R(this,er)[r];},Lr=new WeakSet,Tn=function*({allowStale:t=this.allowStale}={}){if(R(this,ft))for(let r=R(this,Rt);!(!Q(this,Wo,Pu).call(this,r)||((t||!R(this,tr).call(this,r))&&(yield r),r===R(this,vt)));)r=R(this,It)[r];},Wo=new WeakSet,Pu=function(t){return t!==void 0&&R(this,ht).get(R(this,Qe)[t])===t},Ni=new WeakSet,Ga=function(t){var o,a;const r=R(this,Rt),n=R(this,Qe)[r],i=R(this,ue)[r];return R(this,Mn)&&Q(this,qe,tt).call(this,i)?i.__abortController.abort(new Error("evicted")):(R(this,Ir)||R(this,Lt))&&(R(this,Ir)&&((o=R(this,kr))==null||o.call(this,i,n,"evict")),R(this,Lt)&&((a=R(this,$t))==null||a.push([i,n,"evict"]))),R(this,Yn).call(this,r),t&&(R(this,Qe)[r]=void 0,R(this,ue)[r]=void 0,R(this,Er).push(r)),R(this,ft)===1?(ne(this,Rt,ne(this,vt,0)),R(this,Er).length=0):ne(this,Rt,R(this,It)[r]),R(this,ht).delete(n),pa(this,ft)._--,r},ki=new WeakSet,qa=function(t,r,n,i){const o=r===void 0?void 0:R(this,ue)[r];if(Q(this,qe,tt).call(this,o))return o;const a=new vs,{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,E=n.ignoreFetchAbort&&m!==void 0;if(n.status&&(b&&!p?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,E&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!E&&!p)return d(a.signal.reason);const C=g;return R(this,ue)[r]===g&&(m===void 0?C.__staleWhileFetching?R(this,ue)[r]=C.__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,E=b||n.allowStaleOnFetchRejection,C=E||n.noDeleteOnFetchRejection,O=g;if(R(this,ue)[r]===g&&(!C||O.__staleWhileFetching===void 0?this.delete(t):b||(R(this,ue)[r]=O.__staleWhileFetching)),E)return n.status&&O.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),O.__staleWhileFetching;if(O.__returned===O)throw m},f=(m,p)=>{var E;const b=(E=R(this,Mi))==null?void 0:E.call(this,t,o,l);b&&b instanceof Promise&&b.then(C=>m(C),p),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(),n.allowStaleOnFetchAbort&&(m=C=>c(C,!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=R(this,ht).get(t)):R(this,ue)[r]=v,v},qe=new WeakSet,tt=function(t){if(!R(this,Mn))return !1;const r=t;return !!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof vs},Bo=new WeakSet,Tu=function(t,r){R(this,er)[r]=t,R(this,It)[t]=r;},Zn=new WeakSet,uo=function(t){t!==R(this,vt)&&(t===R(this,Rt)?ne(this,Rt,R(this,It)[t]):Q(this,Bo,Tu).call(this,R(this,er)[t],R(this,It)[t]),Q(this,Bo,Tu).call(this,R(this,vt),t),ne(this,vt,t));};async function KM(e){return (await gl.get("/pvideo",{params:{aid:e}})).data.data}async function XM(e){return []}const gc=new _u({max:200});async function YM(e){if(gc.has(e))return gc.get(e);const[t,r]=await Promise.all([KM(e),XM()]);return gc.set(e,{pvideoData:t,dmData:r}),{pvideoData:t,dmData:r}}function Kv(e){return async function(r){const n=new FormData;n.append("aid",r),n.append("csrf",GM());const o=(await gl.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 ZM=Kv("add"),QM=Kv("del"),Xv=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(r,n){const o=(await ml.get(Bv+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"}},JM=Xv("dislike"),eA=Xv("cancel"),tA="_modal_1rloz_1",rA="_title-desc_1rloz_4",nA="_reason-list_1rloz_8",iA="_reason_1rloz_8",oA="_active_1rloz_29",aA="_reason-no_1rloz_33",sA="_tips-container_1rloz_47",lA="_tips_1rloz_47",dr={modal:tA,titleDesc:rA,reasonList:nA,reason:iA,active:oA,reasonNo:aA,tipsContainer:sA,tips:lA},pl=WM();function cA(){return Gi(pl)}function uA(e){const t=cA();if(e)return t.get(e)}function dA({show:e,onHide:t,item:r}){const[n,i]=h.useState(!1),o=Le(async g=>{if(!r)return;let v=!1,m;try{i(!0),v=await JM(r,g.id);}catch(p){m=p;}finally{i(!1);}if(m)return console.error(m.stack||m),jv();v?Wt("已标记不想看"):zv(),v&&(pl.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(`.${dr.reason}`)[v]||null;m==null||m.click();});const[c,u]=h.useState(a.length-1);TM(()=>{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(`.${dr.reason}.${dr.active}`))==null||v.click()));});const f=h.useMemo(()=>{var g;return ((g=a[c])==null?void 0:g.name)||""},[a,c]);return U(jd,{show:e,onHide:t,clsModal:dr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[U("div",{className:Or.modalHeader,children:[U("div",{className:Or.modalTitle,children:["我不想看",F("span",{className:dr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),F("div",{className:"space",style:{flex:1}}),F(zd,{onClick:t})]}),U("div",{className:Or.modalBody,children:[F("div",{className:dr.reasonList,children:a.map((g,v)=>U("button",{className:q(dr.reason,{[dr.active]:v===c}),"data-id":g.id,onClick:()=>{u(v),o(g);},disabled:n,children:[F("span",{className:dr.reasonNo,children:v+1}),g.name]},g.id))}),U("div",{className:dr.tipsContainer,children:[U("div",{className:dr.tips,children:[F(In,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),f&&U("div",{className:dr.tips,children:[F(In,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const Ka={show:!1,onHide:Zv,item:null},Yv=qo({value:Ka.show}),fA=function(){return Gi(Yv).value};function Zv(){setTimeout(()=>{Qv({show:!1,item:null});});}function Qv(e){Object.assign(Ka,e),Yv.value=Ka.show,hA().render(F(dA,{...Ka,onHide:Zv}));}let mc;function hA(){if(!mc){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),mc=dl(e);}return mc}function gA(e){e!=null&&e.param&&pl.has(e.param)||Qv({show:!0,item:e});}function mA(e){return e||(e=0),Us.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function pc(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function rg(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const pA="_bili-video-card_mlccj_1",vA="_image-wrapper_mlccj_4",bA="_preview-card-wrapper_mlccj_8",yA="_preview-card-inner_mlccj_21",wA="_watch-later_mlccj_25",SA="_badge_mlccj_28",CA="_recommend-reason_mlccj_37",EA="_bangumi-desc_mlccj_52",$A="_btn-dislike_mlccj_55",xA="_btn-dislike-icon_mlccj_70",_A="_btn-dislike-tip_mlccj_77",OA="_disliked-wrapper_mlccj_92",PA="_dislike-content-cover_mlccj_106",TA="_dislike-content-cover-inner_mlccj_112",RA="_dislike-icon_mlccj_123",MA="_dislike-reason_mlccj_126",AA="_dislike-desc_mlccj_130",NA="_dislike-content-action_mlccj_134",kA="_skeleton-active_mlccj_151",IA="_ant-skeleton-loading_mlccj_1",gt={biliVideoCard:pA,imageWrapper:vA,previewCardWrapper:bA,previewCardInner:yA,watchLater:wA,badge:SA,recommendReason:CA,bangumiDesc:EA,btnDislike:$A,btnDislikeIcon:xA,btnDislikeTip:_A,dislikedWrapper:OA,dislikeContentCover:PA,dislikeContentCoverInner:TA,dislikeIcon:RA,dislikeReason:MA,dislikeDesc:AA,dislikeContentAction:NA,skeletonActive:kA,antSkeletonLoading:IA};function FA(...e){for(const t of e)if(!isNaN(t))return t;return 0}function LA({className:e,videoDuration:t,pvideo:r,mouseEnterRelativeX:n,previewAnimationProgress:i}){const o=h.useRef(null),a=_M(o),[s,l]=h.useState(()=>({width:0,height:0}));Dd(()=>{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=FA(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(gt.previewCardWrapper,e),children:!!(r&&s.width&&s.height&&c)&&F(DA,{...u})})}function DA({videoDuration:e,pvideo:t,elWidth:r,elHeight:n,progress:i}){var y;const o=Math.floor((e||0)*i);let a=h.useMemo(()=>{const S=(t==null?void 0:t.index)||[];let w=zA(S,o);return w!==-1?w:o>S[S.length-1]?(w=Math.floor(S.length*i)-1,w<0&&(w=0),w):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,E=n*l,C=(m-1)*n,O=(p-1)*r;return F("div",{className:gt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${O}px -${C}px`,backgroundSize:`${b}px ${E}px`},children:F(jA,{progress:i})})}function jA({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 zA(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 t=Do[e]||Do[1];return Ru[t]},BA=e=>{const t=Do[e];if(t)return HA[t]};function ng(e){return {iconSvgName:WA(e),iconSvgScale:BA(e)}}function Jv(e){var M,A,_;const t=e.api==="pc",r=e.api==="app",n=String(t?e.id:e.param),i=t?e.bvid:"",o=e.goto,a=N=>{if(t)return;const{cover_left_icon_1:T,cover_left_text_1:$,cover_left_icon_2:x,cover_left_text_2:P}=e;if(T&&Do[T]===N)return rg($);if(x&&Do[x]===N)return rg(P)},s=t?e.stat.view:a("play"),l=t?e.stat.like:void 0,c=void 0,u=t?e.stat.danmaku:a("danmaku"),d=e.title,f=t?e.pic:e.cover,g=t?e.pubdate:void 0,v=(t?e.duration:(M=e.player_args)==null?void 0:M.duration)||0,m=t?e.owner.name:e.args.up_name,p=t?e.owner.face:void 0,b=t?e.owner.mid:e.args.up_id,E=void 0,C=t?void 0:e.badge,O=t?void 0:((A=e.desc_button)==null?void 0:A.text)||e.desc||"",y=t?void 0:e.badge_style,S=t?(_=e.rcmd_reason)==null?void 0:_.content:e.rcmd_reason,w=t?void 0:e.rcmd_reason_style;return {isPc:t,isApp:r,id:n,bvid:i,goto:o,play:s,like:l,coin:c,danmaku:u,title:d,coverRaw:f,pubdate:g,duration:v,name:m,face:p,mid:b,favorite:E,recommendReason:S,recommendReasonStyleConfig:w,appBadge:C,appBadgeDesc:O,appBadgeStyleConfig:y}}const VA=Us().format("YYYY"),UA=e=>{if(!e)return "";const t=Us.unix(e);return t.format("YYYY")===VA?t.format("M-D"):t.format("YY-M-D")},GA=e=>(e||"").replace(/^http:\/\//,"https://"),bs=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,[gt.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=uA((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",gt.biliVideoCard,r),"data-report":"partition_recommend.content",...a,children:[l,!i&&n&&(c?F(qA,{ref:u,item:n,dislikedReason:c}):F(KA,{ref:d,item:n,active:o}))]})})),qA=h.memo(h.forwardRef(function({dislikedReason:t,item:r},n){const i=Le(async()=>{if(!(t!=null&&t.id))return;let o=!1,a;try{o=await eA(r,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),jv();o?Wt("已撤销"):zv(),o&&pl.delete(r.param);});return h.useImperativeHandle(n,()=>({onCancelDislike:i}),[]),U("div",{className:q(gt.dislikedWrapper),children:[F("div",{className:gt.dislikeContentCover,children:U("div",{className:gt.dislikeContentCoverInner,children:[F(In,{name:"DistraughtFace",size:32,className:gt.dislikeIcon}),F("div",{className:gt.dislikeReason,children:t==null?void 0:t.name}),F("div",{className:gt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),F("div",{className:gt.dislikeContentAction,children:U("button",{onClick:i,children:[F(In,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),KA=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:E,mid:C,recommendReason:O,recommendReasonStyleConfig:y,favorite:S,appBadge:w,appBadgeDesc:M,appBadgeStyleConfig:A}=h.useMemo(()=>Jv(t),[t]),_=t.goto==="av",N=t.goto==="bangumi",T=t.goto==="picture";["av","bangumi","picture"].includes(l)||console.warn(`[${kn}]: none (av,bangumi,picture) goto type %s`,l,t);const $=h.useMemo(()=>UA(m),[m]),x=h.useMemo(()=>GA(v),[v]),[P,I]=h.useState(null),k=h.useRef(!1),L=Le(async()=>{if(!P&&!k.current)try{k.current=!0,I(await YM(a));}finally{k.current=!1;}}),D=h.useRef(null),[z,B]=h.useState(void 0);ei("mouseenter",pe=>{var Ve;const He=(Ve=D.current)==null?void 0:Ve.getBoundingClientRect();if(!He)return;const{x:lt}=He,Ee=pe.pageX-window.pageXOffset-lt;B(Ee);},{target:D});const W=hc(D),{autoPreviewWhenHover:V}=fn(),{onStartPreviewAnimation:te,onHotkeyPreviewAnimation:H,previewAnimationProgress:J}=XA({id:a,title:g,autoPreviewWhenHover:V,active:r,tryFetchVideoData:L,videoPreviewWrapperRef:D});ps(()=>{r&&(unsafeWindow[`${J0}_activeItem`]=t,_e.autoPreviewWhenKeyboardSelect&&te());},[r]);const ae=h.useRef(null),ve=hc(ae),[ie,be]=h.useState(!1),{accessKey:we}=fn(),Be=!!we;h.useEffect(()=>{W&&L();},[W]),h.useImperativeHandle(n,()=>({onToggleWatchLater:me,onTriggerDislike:ze,onStartPreviewAnimation:te,onHotkeyPreviewAnimation:H}),[]);const[je,ye]=h.useState(!1),me=Le(async pe=>{if(pe==null||pe.preventDefault(),je)return;ye(!0);const He=ie?QM:ZM;let lt=!1;try{lt=await He(a);}finally{ye(!1);}lt&&be(Ee=>!Ee);}),nt=h.useRef(null),Oe=hc(nt),ze=Le(pe=>{pe==null||pe.stopPropagation(),pe==null||pe.preventDefault(),o&&gA(t);}),re=h.useMemo(()=>i?_&&s?`/video/${s}`:t.uri:(()=>{var pe;if(t.uri.startsWith("http://")||t.uri.startsWith("https://"))return t.uri;if(_)return `/video/av${t.param}`;if(N)return console.warn(`[${kn}]: bangumi uri should not starts with 'bilibili://': %s`,t.uri),t.uri;if(T){const He=(pe=/^bilibili:\/\/article\/(\d+)$/.exec(t.uri))==null?void 0:pe[1];return He?`/read/cv${He}`:t.uri}return t.uri})(),[t]),oe=h.useMemo(()=>mA(p),[p]),de=h.useMemo(()=>pc(c),[c]),ke=h.useMemo(()=>pc(u),[u]),Ie=h.useMemo(()=>pc(S),[S]),Ct=i?ke:Ie,rt=Le(pe=>{if(!_e.openInIINAWhenRightClick)return;const He=new URL(re,location.href).href,lt=`iina://open?url=${encodeURIComponent(He)}`;window.open(lt,"_self"),pe.preventDefault();}),st=({text:pe,iconSvgName:He,iconSvgScale:lt})=>U("span",{className:"bili-video-card__stats--item",children:[F("svg",{className:"bili-video-card__stats--icon",style:{transform:lt?`scale(${lt})`:void 0},children:F("use",{href:He})}),F("span",{className:"bili-video-card__stats--text",children:pe})]});return U("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:rt,children:[F("a",{href:re,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:U("div",{className:"bili-video-card__image __scale-player-wrap",ref:D,children:[U("div",{className:q("bili-video-card__image--wrap",gt.imageWrapper),children:[U("picture",{className:"v-img bili-video-card__cover",children:[F("source",{srcSet:`${x}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),F("source",{srcSet:`${x}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),F("img",{src:`${x}@672w_378h_1c_!web-home-common-cover`,alt:g,loading:"eager"})]}),(W||typeof J=="number")&&F(LA,{videoDuration:p,pvideo:P==null?void 0:P.pvideoData,mouseEnterRelativeX:z,previewAnimationProgress:J}),U("div",{className:`bili-watch-later ${gt.watchLater}`,style:{display:W||r?"flex":"none"},ref:ae,onClick:me,children:[F("svg",{className:"bili-watch-later__icon",children:F("use",{href:ie?"#widget-watch-save":"#widget-watch-later"})}),F("span",{className:"bili-watch-later__tip",style:{display:ve?"block":"none"},children:ie?"移除":"稍后再看"})]}),o&&Be&&U("div",{ref:nt,className:gt.btnDislike,onClick:ze,style:{display:W?"flex":"none"},children:[F("svg",{className:gt.btnDislikeIcon,children:F("use",{href:"#widget-close"})}),F("span",{className:gt.btnDislikeTip,style:{display:Oe?"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(Dt,{children:[st({text:de,iconSvgName:Ru.play}),st({text:l==="av"?ke:Ct,iconSvgName:Ru.like})]}):U(Dt,{children:[t.cover_left_text_1&&st({...ng(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&&st({...ng(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:_&&oe})]})})]})}),F("div",{className:"bili-video-card__info __scale-disable",children:U("div",{className:"bili-video-card__info--right",children:[F("a",{href:re,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})}),F("p",{className:"bili-video-card__info--bottom",children:_?U("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${C}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[O?F("span",{className:gt.recommendReason,children:O}):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}),$&&U("span",{className:"bili-video-card__info--date",children:["· ",$]})]}):w||M?U("a",{className:"bili-video-card__info--owner",href:re,target:"_blank",children:[F("span",{className:gt.badge,children:w||""}),F("span",{className:gt.bangumiDesc,children:M||""})]}):null})]})})]})}));function XA({id:e,title:t,autoPreviewWhenHover:r,active:n,tryFetchVideoData:i,videoPreviewWrapperRef:o}){const[s,l]=Dv(void 0),[c,u]=h.useState(!1),d=h.useRef(!1),f=h.useRef(!1);ei("mouseenter",M=>{d.current=!0,r&&!v.current&&w(!0);},{target:o}),ei("mouseleave",M=>{d.current=!1;},{target:o}),ei("mousemove",M=>{u(!0),r||p();},{target:o});const g=PM(),v=h.useRef(void 0),m=Le(()=>{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=Le((M=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,l(void 0),E(!1);}),[b,E,C]=pM(!1),O=h.useRef(),y=Le(()=>{var M;if(!v.current){w();return}E(A=>!A),b&&((M=O.current)==null||M.call(O,s||0));}),S=Le(()=>s||0),w=Le((M=!1)=>{f.current=M,u(!1),E(!1),i(),p(!0),l(x=>typeof x>"u"?0:x);const A=8e3,_=()=>typeof _e.autoPreviewUpdateInterval=="number"?_e.autoPreviewUpdateInterval:400;let N=performance.now(),T=0;O.current=()=>{N=performance.now()-S()*A;};function $(x){if(m()){p();return}const P=()=>{const I=performance.now()-N,k=Math.min(I%A/A,1);l(k);};C()||(_()?(!T||performance.now()-T>=_())&&(T=performance.now(),P()):P()),v.current=requestAnimationFrame($);}v.current=requestAnimationFrame($);});return {onHotkeyPreviewAnimation:y,onStartPreviewAnimation:w,previewAnimationProgress:s}}const Hd="_video-grid_tu03i_9",YA="_limit-two-lines_tu03i_19",eb="_internal-testing_tu03i_51",ZA="_narrow-mode_tu03i_79";function QA({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=Le(()=>!(!e||Td())),d=Le(()=>{var w;if(typeof l!="number"||!i.current)return !1;const y=o(),S=(w=i.current.querySelector(`.${Kn.card}.${Kn.cardActive}`))==null?void 0:w.getBoundingClientRect();return !(!y||!S||S.top-y.top<-(y.height+S.height)||S.top-y.top>y.height*2+S.height)}),f=y=>S=>{if(!u())return;S==null||S.preventDefault();let w=typeof y=="number"?y:y();const M=d()?l+w:m();if(Mn){C(n);return}c(M),C(M);};bt("leftarrow",f(-1),{exactMatch:!0}),bt("rightarrow",f(1),{exactMatch:!0});const g=()=>vl(i.current);bt("uparrow",f(()=>-g()),{exactMatch:!0}),bt("downarrow",f(g),{exactMatch:!0});const v=()=>{u()&&c(void 0);};bt("esc",v),bt("enter",()=>{!u()||typeof l!="number"||O(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 m(){const y=o();if(!y)return 0;const S=b();for(let w=0;w=y.top)return w;return 0}const p=`.${Kn.card}`;function b(){var y;return [...((y=i.current)==null?void 0:y.querySelectorAll(p))||[]]}function E(y){return b()[y]}function C(y){var A;const S=E(y);(A=S==null?void 0:S.scrollIntoViewIfNeeded)==null||A.call(S,!1);const w=o(),M=S.getBoundingClientRect();if(!(!w||!M)){if(M.top<=w.top){const _=-(w.top-M.top+10);a==null||a({offset:_});return}if(w.bottom-M.bottom<10){const _=10-(w.bottom-M.bottom);a==null||a({offset:_});return}}}function O(y){const S=E(y);if(!S)return;const w=S.querySelector(".bili-video-card__wrap > a");w==null||w.click();}return {activeIndex:l,clearActiveIndex:v}}const ig=new Map;function vl(e){if(_e.useNarrowMode)return 2;let t=ig.get(window.innerWidth);if(t)return t;if(e||(e=document.querySelector(`.${Hd}`)),!e)return 0;const r=window.getComputedStyle(e);return r.display!=="grid"?0:(t=r.gridTemplateColumns.split(" ").length,ig.set(window.innerWidth,t),t)}function tb(){return _e.filterMinDurationEnabled||_e.filterMinPlayCountEnabled}function rb(e){return tb()?e.filter(t=>{const{play:r,duration:n}=Jv(t);return !(typeof r=="number"&&_e.filterMinPlayCountEnabled&&_e.filterMinPlayCount&&r<_e.filterMinPlayCount||n&&_e.filterMinDurationEnabled&&_e.filterMinDuration&&n<_e.filterMinDuration)}):e}var bl={exports:{}},Wd={exports:{}},nb={exports:{}},at=nb.exports={},Ar,Nr;function Mu(){throw new Error("setTimeout has not been defined")}function Au(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ar=setTimeout:Ar=Mu;}catch{Ar=Mu;}try{typeof clearTimeout=="function"?Nr=clearTimeout:Nr=Au;}catch{Nr=Au;}})();function ib(e){if(Ar===setTimeout)return setTimeout(e,0);if((Ar===Mu||!Ar)&&setTimeout)return Ar=setTimeout,setTimeout(e,0);try{return Ar(e,0)}catch{try{return Ar.call(null,e,0)}catch{return Ar.call(this,e,0)}}}function JA(e){if(Nr===clearTimeout)return clearTimeout(e);if((Nr===Au||!Nr)&&clearTimeout)return Nr=clearTimeout,clearTimeout(e);try{return Nr(e)}catch{try{return Nr.call(null,e)}catch{return Nr.call(this,e)}}}var sn=[],Ti=!1,qn,Xa=-1;function eN(){!Ti||!qn||(Ti=!1,qn.length?sn=qn.concat(sn):Xa=-1,sn.length&&ob());}function ob(){if(!Ti){var e=ib(eN);Ti=!0;for(var t=sn.length;t;){for(qn=sn,sn=[];++Xa1)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&&qd(r,t),zr(r.showHidden)&&(r.showHidden=!1),zr(r.depth)&&(r.depth=2),zr(r.colors)&&(r.colors=!1),zr(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=nN),ys(r,e,r.depth)}Wr.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]};Wr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function nN(e,t){var r=Wr.styles[t];return r?"\x1B["+Wr.colors[r][0]+"m"+e+"\x1B["+Wr.colors[r][1]+"m":e}function iN(e,t){return e}function oN(e){var t={};return e.forEach(function(r,n){t[r]=!0;}),t}function ys(e,t,r){if(e.customInspect&&t&&xo(t.inspect)&&t.inspect!==Wr&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return ia(n)||(n=ys(e,n,r)),n}var i=aN(e,t);if(i)return i;var o=Object.keys(t),a=oN(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),$o(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return yc(t);if(o.length===0){if(xo(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Eo(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(ws(t))return e.stylize(Date.prototype.toString.call(t),"date");if($o(t))return yc(t)}var l="",c=!1,u=["{","}"];if(Vd(t)&&(c=!0,u=["[","]"]),xo(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Eo(t)&&(l=" "+RegExp.prototype.toString.call(t)),ws(t)&&(l=" "+Date.prototype.toUTCString.call(t)),$o(t)&&(l=" "+yc(t)),o.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(r<0)return Eo(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=sN(e,t,r,a,o):f=o.map(function(g){return ku(e,t,r,a,g,c)}),e.seen.pop(),lN(f,l,u)}function aN(e,t){if(zr(t))return e.stylize("undefined","undefined");if(ia(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(Ud(t))return e.stylize(""+t,"number");if(yl(t))return e.stylize(""+t,"boolean");if(na(t))return e.stylize("null","null")}function yc(e){return "["+Error.prototype.toString.call(e)+"]"}function sN(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")),zr(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 lN(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 Vd(e){return Array.isArray(e)}function yl(e){return typeof e=="boolean"}function na(e){return e===null}function cb(e){return e==null}function Ud(e){return typeof e=="number"}function ia(e){return typeof e=="string"}function ub(e){return typeof e=="symbol"}function zr(e){return e===void 0}function Eo(e){return ai(e)&&Gd(e)==="[object RegExp]"}function ai(e){return typeof e=="object"&&e!==null}function ws(e){return ai(e)&&Gd(e)==="[object Date]"}function $o(e){return ai(e)&&(Gd(e)==="[object Error]"||e instanceof Error)}function xo(e){return typeof e=="function"}function db(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function fb(e){return Buffer.isBuffer(e)}function Gd(e){return Object.prototype.toString.call(e)}function wc(e){return e<10?"0"+e.toString(10):e.toString(10)}var cN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function uN(){var e=new Date,t=[wc(e.getHours()),wc(e.getMinutes()),wc(e.getSeconds())].join(":");return [e.getDate(),cN[e.getMonth()],t].join(" ")}function hb(){console.log("%s - %s",uN(),Bi.apply(null,arguments));}function qd(e,t){if(!t||!ai(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function gb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const dN={inherits:sb,_extend:qd,log:hb,isBuffer:fb,isPrimitive:db,isFunction:xo,isError:$o,isDate:ws,isObject:ai,isRegExp:Eo,isUndefined:zr,isSymbol:ub,isString:ia,isNumber:Ud,isNullOrUndefined:cb,isNull:na,isBoolean:yl,isArray:Vd,inspect:Wr,deprecate:Bd,format:Bi,debuglog:lb},fN=Object.freeze(Object.defineProperty({__proto__:null,_extend:qd,debuglog:lb,default:dN,deprecate:Bd,format:Bi,inherits:sb,inspect:Wr,isArray:Vd,isBoolean:yl,isBuffer:fb,isDate:ws,isError:$o,isFunction:xo,isNull:na,isNullOrUndefined:cb,isNumber:Ud,isObject:ai,isPrimitive:db,isRegExp:Eo,isString:ia,isSymbol:ub,isUndefined:zr,log:hb},Symbol.toStringTag,{value:"Module"})),hN=C0(fN);var gN=hN.format;function mN(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function pN(e,t){return function(){var r=this,n=[].slice.call(arguments);mN();var i=new AbortController;return n.push(i.signal),new Promise(function(o,a){var s=setTimeout(function(){var l=new mb(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 mb=class pb extends Error{constructor(t){super(),this.timeout=t,this.message=gN("timeout of %sms exceed",t),Error.captureStackTrace(this,pb);}};Wd.exports=pN;Wd.exports.TimeoutError=mb;var vN=Wd.exports;const vb=vN,bN=vb.TimeoutError;bl.exports=function(t,r){const n=t;r=r||{};const i=r.times||5,o=r.timeout;o&&(t=vb(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 yN 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 wN=bl.exports.RetryError=bb;bl.exports.TimeoutError=bN;var SN=bl.exports;const CN=vn(SN);class Kd extends Error{constructor(t){super(),Error.captureStackTrace(this,Kd),this.json=t,this.message=t.message||JSON.stringify(t);}}const EN=10;async function $N(){var n;const t=(await ml.get(Bv+"/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 Kd(t);return Wt(`${kn}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((n=t==null?void 0:t.data)==null?void 0:n.items)||[]}const xN=CN($N,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",kn,t,e);}});async function og(){try{return await xN()}catch(e){if(e instanceof wN){console.error(e.errors);const t=[Bi("请求出错, 已重试%s次:",e.times),...e.errors.map((r,n)=>Bi(" %s) %s",n+1,r.message)),"","请重新获取 access_key 后重试~"].join(` `);Wt(t,5e3);}throw e}}async function yb(e){let t=[];const r=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>og()))).flat();},n=async()=>{for(let i=1;i<=e;i++)t=t.concat(await og());};return await(_e.useParallelRequest?r:n)(),t=Vs(t,i=>i.param),t.map(i=>({...i,api:"app",uniqId:i.param+"-"+crypto.randomUUID()}))}const wb=14;async function ag(e){const t=e.page++;return (await gl.get("/x/web-interface/index/top/rcmd",{baseURL:Wv,withCredentials:!0,params:{fresh_type:3,version:1,ps:wb,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function Sb(e,t){let r=[];const n=async()=>{r=(await Promise.all(new Array(e).fill(0).map(()=>ag(t)))).flat();},i=async()=>{for(let o=1;o<=e;o++)r=r.concat(await ag(t));};return await(_e.useParallelRequest?n:i)(),r=Vs(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"}))}Ig.extend("service");const Ya=e=>e.api==="pc"?e.id:e.param;function _N(e,t){const r=e.map(Ya);return t=Vs(t,Ya),e.concat(t.filter(n=>!r.includes(Ya(n))))}async function Cb(e,t,r=5){let n=[],i=async o=>{const a=_e.usePcDesktopApi?wb:EN,s=tb()?r:1.2,l=Math.ceil(o*s/a);let c=_e.usePcDesktopApi?await Sb(l,t):await yb(l);c=rb(c),n=n.concat(c),n=Vs(n,Ya);};for(await i(e);n.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)}}Ze(Iu,"propTypes",{children:Zt.node.isRequired,element:Zt.node,hasMore:Zt.bool,initialLoad:Zt.bool,isReverse:Zt.bool,loader:Zt.node,loadMore:Zt.func.isRequired,pageStart:Zt.number,ref:Zt.func,getScrollParent:Zt.func,threshold:Zt.number,useCapture:Zt.bool,useWindow:Zt.bool}),Ze(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 Sc=Ig.extend("components:RecGrid"),Kn={loader:dc` text-align: center; line-height: 60px; font-size: 120%; `,card:dc` 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:dc` border-color: #fb7299; border-radius: 6px; overflow: hidden; `},_b=h.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:r,className:n,scrollerRef:i},o)=>{const[a,s]=h.useState([]),[l,c]=h.useState(!1),u=h.useMemo(()=>({page:1}),[]),d=Le(async()=>{Sc("call refresh()"),await(r==null?void 0:r());try{const y=performance.now();C(),c(!0),s([]),u.page=1,s(await PN(u)),C();const S=performance.now()-y;}finally{c(!1);}});h.useImperativeHandle(o,()=>({refresh:d}),[]),Dd(d);const f=Le(async()=>{Sc("call fetchMore: current page = %s",u.page);const y=vl(),S=Math.ceil(a.length/y)*y+1;let w=a;for(;w.length %s",a.length,w.length),s(w);}),{useNarrowMode:g}=fn(),v=h.useRef(null),m=Le(()=>{var y;if(e){const S=dm+50;return new DOMRect(0,S,window.innerWidth,window.innerHeight-S)}else return (y=i==null?void 0:i.current)==null?void 0:y.getBoundingClientRect()}),p=fA(),b=h.useMemo(()=>new Array(a.length).fill(void 0),[a.length]),{activeIndex:E,clearActiveIndex:C}=QA({enabled:t&&!p,refresh:d,maxIndex:a.length-1,containerRef:v,getScrollerRect:m,videoCardRefs:b,changeScrollY:e?function({offset:y,absolute:S}){const w=document.documentElement;if(typeof y=="number"){w.scrollTop+=y;return}if(typeof S=="number"){w.scrollTop=S;return}}:void 0}),O=No();return F(Iu,{pageStart:0,hasMore:!l,loadMore:f,initialLoad:!1,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:F("div",{className:Kn.loader,children:"加载中..."},-1),children:F("div",{ref:v,className:q(Hd,{[eb]:O},{[ZA]:g},n),children:l?new Array(24).fill(void 0).map((y,S)=>F(bs,{loading:!0,className:q(Kn.card)},S)):a.map((y,S)=>{const w=S===E;return F(bs,{ref:M=>b[S]=M,className:q(Kn.card,{[Kn.cardActive]:w}),item:y,active:w},y.uniqId)})})})}),Ob=F(Oi,{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 Pb({style:e,className:t}){const{runAsync:r,loading:n}=kv(VM,{manual:!0}),{accessKey:i}=fn();return F(qp,{size:"small",style:e,className:t,children:i?U(Dt,{children:[F(Oi,{onClick:r,disabled:n,children:F("span",{children:"重新获取 access_key"})}),F(Oi,{onClick:UM,children:F("span",{children:"删除 access_key"})})]}):U(Dt,{children:[Ob,F(Oi,{onClick:r,disabled:n,size:"middle",children:F("span",{children:"获取 access_key"})})]})})}function yr({configKey:e,label:t,className:r,extraAction:n,tooltip:i}){const a=!!fn()[e],s=h.useCallback(c=>{const u=c.target.checked;es({[e]:u}),n==null||n(u);},[]);let l=t||e;return i&&(l=F(Cd,{title:i,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),F(Y2,{className:r,checked:a,onChange:s,children:l})}var IN={name:"1qkltea",styles:"margin-left:5px"};const FN=function(){const e=IN;return U(Dt,{children:[F(yr,{configKey:"initialShowMore",label:"自动查看更多",css:e}),F(yr,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})},LN="_config-icon_15g5q_1",DN="_settings-group_15g5q_6",jN="_settings-group-title_15g5q_9",zN="_settings-group-content_15g5q_14",HN="_row_15g5q_20",WN="_check_15g5q_28",xe={configIcon:LN,settingsGroup:DN,settingsGroupTitle:jN,settingsGroupContent:zN,row:HN,check:WN};async function Tb(){Wt("即将刷新网页"),await ul(500),location.reload();}function BN(){if(window.confirm("确定?"))return eE(),Tb()}function Cc(e,t,r){return bt(e,n=>{if(Td())return;_e[t]=!_e[t];const i=!_e[t];Wt(`已${i?"禁用":"启用"}「${r}」`);},{exactMatch:!0})}function VN({show:e,onHide:t}){const{usePcDesktopApi:r,autoPreviewUpdateInterval:n,filterMinPlayCount:i,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:s}=fn();return Cc(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Cc(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Cc(["shift.c"],"useNarrowMode","居中模式"),U(jd,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,width:"700px",children:[U("div",{className:Or.modalHeader,children:[U("div",{className:Or.modalTitle,children:[F(In,{name:"Config",className:xe.configIcon}),"设置项"]}),F("div",{className:"space",style:{flex:1}}),F(zd,{onClick:t})]}),U("main",{className:Or.modalBody,children:[U("div",{className:xe.settingsGroup,children:[F("div",{className:xe.settingsGroupTitle,children:"接口切换"}),U("div",{className:q(xe.settingsGroupContent),children:[U(ac.Group,{buttonStyle:"solid",value:r?"desktop":"app",onChange:l=>{const c=l.target.value;_e.usePcDesktopApi=c==="desktop";},children:[F(ac.Button,{value:"desktop",children:"使用桌面端接口"}),F(ac.Button,{value:"app",children:"使用 App 端接口"})]}),!r&&F("div",{className:xe.row,style:{marginTop:5},children:F(Pb,{})})]})]}),U("div",{className:xe.settingsGroup,children:[F("div",{className:xe.settingsGroupTitle,children:"开关"}),U("div",{className:q(xe.settingsGroupContent,xe.row),children:[F(yr,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:U(Dt,{children:["首页只保留推荐",F("br",{}),"P.S 需要刷新网页~"]}),className:xe.check,extraAction:Tb}),F(yr,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:xe.check,extraAction:l=>{l&&Wt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),F(yr,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:U(Dt,{children:["居中两列",F("br",{}),"切换设置快捷键: ",F(no,{color:"green",children:"shift+c"})]}),className:xe.check}),F(yr,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:U(Dt,{children:["并行快但可能有重复",F("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:xe.check})]})]}),U("div",{className:xe.settingsGroup,children:[F("div",{className:xe.settingsGroupTitle,children:"预览"}),U("div",{className:q(xe.settingsGroupContent,xe.row),children:[F(yr,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:xe.check,tooltip:U(Dt,{children:["手动预览快捷键: ",F(no,{color:"green",children:"."})," or ",F(no,{color:"green",children:"p"}),F("br",{}),"切换设置快捷键: ",F(no,{color:"green",children:"shift+p"})]})}),F(yr,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:xe.check,tooltip:U(Dt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",F("br",{}),"切换设置快捷键: ",F(no,{color:"green",children:"shift+m"})]})}),U("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",F(FT,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>_e.autoPreviewUpdateInterval=l,value:n,tooltip:{open:!0}}),U("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})]}),U("div",{className:xe.settingsGroup,children:[U("div",{className:xe.settingsGroupTitle,children:["视频过滤器",F(UT,{title:"启用视频过滤器会大幅降低加载速度, 谨慎开启!",children:F(In,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),U("div",{className:q(xe.settingsGroupContent),children:[U("div",{className:xe.row,children:[F(yr,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:F(Dt,{children:"不显示播放量很少的视频"})}),F(Vh,{size:"small",min:1,step:1e3,value:i,onChange:l=>l&&es({filterMinPlayCount:l}),disabled:!o})]}),U("div",{className:xe.row,style:{marginTop:8},children:[F(yr,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:F(Dt,{children:"不显示短视频"})}),F(Vh,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&es({filterMinDuration:l}),disabled:!s})]})]})]}),U("div",{className:xe.settingsGroup,children:[F("div",{className:xe.settingsGroupTitle,children:"高级"}),U("div",{className:q(xe.settingsGroupContent),children:[F("div",{className:xe.row,children:F(Oi,{onClick:BN,danger:!0,children:"恢复默认设置"})}),F("div",{className:xe.row,style:{marginTop:10},children:F(yr,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:xe.check})})]})]}),U("div",{className:xe.settingsGroup,children:[F("div",{className:xe.settingsGroupTitle,children:"帮助"}),F("div",{className:q(xe.settingsGroupContent),children:F("div",{className:xe.row,children:U(qp,{size:"small",children:[F(Oi,{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:"查看可用的快捷键"}),Ob]})})})]})]})]})}var Xd={};Object.defineProperty(Xd,"__esModule",{value:!0});var Rb=Xd.useSticky=void 0;const Ec=h;function UN(){const e=(0, Ec.useRef)(null),[t,r]=(0, Ec.useState)(!1);return (0, Ec.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]}Rb=Xd.useSticky=UN;const GN="_expand-btn_wdzp9_1",qN="_expanded_wdzp9_12",sg={expandBtn:GN,expanded:qN},KN=h.forwardRef(function({children:t},r){const[n,i]=Iv(!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(Dt,{children:[o,n&&t]})}),XN="_modal-mask_juq7d_1",YN="_narrow-mode_juq7d_1",ZN="_modal_juq7d_1",QN="_modal-header_juq7d_21",JN="_modal-body_juq7d_22",ek="_btn-refresh_juq7d_25",so={modalMask:XN,narrowMode:YN,modal:ZN,modalHeader:QN,modalBody:JN,btnRefresh:ek},tk=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=Le(()=>{var c;return (c=i.current)==null?void 0:c.refresh()}),l=Le(()=>{n.current&&(n.current.scrollTop=0);});return U(jd,{show:t,onHide:r,clsModalMask:q(a),clsModal:q(so.modal,a),children:[U("div",{className:q(Or.modalHeader,so.modalHeader),children:[F("div",{className:Or.modalTitle,children:"推荐"}),F("div",{className:"space",style:{flex:1}}),F(KN,{children:F(FN,{})}),F(Nb,{onClick:s,className:so.btnRefresh,refreshHotkeyEnabled:t}),F(zd,{onClick:r})]}),F("div",{className:q(Or.modalBody,so.modalBody),ref:n,children:F(_b,{ref:i,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:n})})]})}),lg={btn:Pi` padding: 0; width: 31px; height: 31px; border-radius: 50%; `,icon:Pi` svg { width: 14px; height: 14px; } `},Zi=qo({modalFeedVisible:_e.initialShowMore,modalConfigVisible:!1}),Mb=function(){return Gi(Zi)},rk=()=>{Zi.modalFeedVisible=!0;},nk=()=>{Zi.modalFeedVisible=!1;},ik=()=>{Zi.modalConfigVisible=!0;},ok=()=>{Zi.modalConfigVisible=!1;};function Ab({onRefresh:e,refreshHotkeyEnabled:t}){const{accessKey:r,pureRecommend:n,usePcDesktopApi:i}=fn(),{modalFeedVisible:o,modalConfigVisible:a}=Gi(Zi),[s,l]=Rb();return U(Dt,{children:[U("div",{ref:s,className:"area-header",css:[Pi` margin-bottom: 0; height: 50px; `,n&&Pi` position: sticky; top: ${dm}px; z-index: 1000; `,n&&l&&Pi` 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(Pb,{style:{marginLeft:5}}),F("button",{className:"primary-btn",css:lg.btn,onClick:ik,children:F(In,{name:"Config",css:lg.icon})}),F(Nb,{onClick:e,refreshHotkeyEnabled:t}),!n&&U("button",{className:"primary-btn see-more",onClick:rk,children:[F("span",{children:"查看更多"}),F("svg",{children:F("use",{href:"#widget-arrow"})})]})]})]}),F(tk,{show:o,onHide:nk}),F(VN,{show:a,onHide:ok})]})}const Nb=h.forwardRef(function({onClick:e,className:t="",style:r,refreshHotkeyEnabled:n},i){n??(n=!0);const[o,a]=h.useState(0),s=Le(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&&(Td()||(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:"换一换"})]})}),ak={grid:Pi` /* card=299 col-gap=20 */ width: ${299*2+20}px; margin: 0 auto; `};function sk(){const{useNarrowMode:e}=fn(),{modalFeedVisible:t,modalConfigVisible:r}=Mb(),n=h.useRef(null),i=Le(()=>{var a;return (a=n.current)==null?void 0:a.refresh()}),o=Le(()=>{document.documentElement.scrollTop=0;});return U("section",{"data-area":"推荐",children:[F(Ab,{onRefresh:i,refreshHotkeyEnabled:!(t||r)}),F(_b,{ref:n,css:[e&&ak.grid,"",""],shortcutEnabled:!(t||r),infiteScrollUseWindow:!0,onScrollToTop:o})]})}function lk(){const e=h.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=No(),r=h.useMemo(()=>({page:1}),[]),{data:n,loading:i,error:o,refresh:a}=kv(()=>ON(r));o&&console.error(o.stack||o);const{modalConfigVisible:s,modalFeedVisible:l}=Mb();return U("section",{"data-area":"推荐",children:[F(Ab,{onRefresh:a,refreshHotkeyEnabled:!(s||l)}),F("div",{className:q(Hd,YA,{[eb]:t}),style:{marginBottom:t?30:0},children:i||o?e.map(c=>F(bs,{},c)):n.map(c=>F(bs,{item:c},c.uniqId))})]})}Us.extend(nE);(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 ck()})();async function ck(){return za(".adblock-tips"),vv("html.gray",e=>e.classList.remove("gray")),_e.pureRecommend?dk():uk()}async function uk(){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(No()&&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 ul(200);}if(!r){console.error(`[${kn}]: init fail`);return}const n=document.createElement("section");r(n),dl(n).render(F(mv,{children:F(lk,{})}));}async function dk(){var i,o;No()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),za(".bili-feed4 .header-channel")):((o=document.querySelector(".bili-layout"))==null||o.remove(),za(".bili-footer"),za(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(No()?"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),dl(r).render(F(mv,{children:F(sk,{})}));}});fk(); })(React, ReactDOM, axios, axiosGmxhrAdapter);