bilibili-app-recommend

为B站首页添加像App一样的推荐

目前為 2023-01-10 提交的版本,檢視 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.8.0
// @author       magicdawn
// @description  为B站首页添加像App一样的推荐
// @license      MIT
// @homepageURL  https://github.com/magicdawn/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/[email protected]/dist/axios.min.js
// @require      https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require      https://unpkg.com/[email protected]/umd/react.production.min.js
// @require      https://unpkg.com/[email protected]/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        GM_xmlhttpRequest
// @grant        unsafeWindow
// ==/UserScript==

(i=>{const e=document.createElement("style");e.dataset.source="vite-plugin-monkey",e.innerText=i,document.head.appendChild(e)})(`.primary-btn[disabled]:active,.primary-btn[disabled]:hover{cursor:wait;background-color:inherit}._modal-mask_1fjgs_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_1fjgs_1{width:500px;max-height:calc(80vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1fjgs_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1fjgs_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1fjgs_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1fjgs_42{margin-left:10px}._btn-close_1fjgs_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1fjgs_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_g0in4_1{width:500px}._title-desc_g0in4_4{margin-left:5px;font-size:40%}._reason-list_g0in4_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_g0in4_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_g0in4_8{border:1px solid #333}._reason-no_g0in4_29{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:#fb7299;color:#fff}._tips_g0in4_43{margin-top:20px;display:flex;align-items:center}._bili-video-card_1a93a_1{position:relative}._image-wrapper_1a93a_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_1a93a_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;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_1a93a_8 ._preview-card-inner_1a93a_21{width:100%;height:100%}._watch-later_1a93a_25{z-index:3}._badge_1a93a_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8)}._recommend-reason_1a93a_36{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_1a93a_51{color:default}._btn-dislike_1a93a_54{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_1a93a_54 ._btn-dislike-icon_1a93a_69{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_1a93a_54 ._btn-dislike-tip_1a93a_76{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_1a93a_91{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_1a93a_91{border:1px solid #333}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105 ._dislike-content-cover-inner_1a93a_111{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105 ._dislike-content-cover-inner_1a93a_111 ._dislike-icon_1a93a_122{margin-bottom:5px}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105 ._dislike-content-cover-inner_1a93a_111 ._dislike-reason_1a93a_125{font-size:20px;text-align:center}._disliked-wrapper_1a93a_91 ._dislike-content-cover_1a93a_105 ._dislike-content-cover-inner_1a93a_111 ._dislike-desc_1a93a_129{font-size:16px;text-align:center}._disliked-wrapper_1a93a_91 ._dislike-content-action_1a93a_133{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_1a93a_91 ._dislike-content-action_1a93a_133{border-top:1px solid #333}._disliked-wrapper_1a93a_91 ._dislike-content-action_1a93a_133 button{font-size:16px;color:inherit;display:flex;align-items:center}._video-grid_14t5i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_14t5i_9{grid-template-columns:repeat(4,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_14t5i_9{grid-template-columns:repeat(5,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px){._video-grid_14t5i_9{grid-template-columns:repeat(6,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 13){display:none!important}}._video-grid_14t5i_9._internal-testing_14t5i_43{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_14t5i_9._internal-testing_14t5i_43{grid-template-columns:repeat(4,1fr)}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-one-line_14t5i_50>*:nth-of-type(1n + 5){display:none!important}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-two-lines_14t5i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_14t5i_9._internal-testing_14t5i_43{grid-template-columns:repeat(5,1fr)}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-one-line_14t5i_50>*:nth-of-type(1n + 6){display:none!important}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-two-lines_14t5i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_14t5i_71{grid-template-columns:repeat(2,1fr)!important}._config-icon_4kok1_1{line-height:1;margin-right:5px;font-size:0}._settings-group_4kok1_6{margin-bottom:10px}._settings-group_4kok1_6 ._settings-group-title_4kok1_9{font-size:2em}._settings-group_4kok1_6 ._settings-group-content_4kok1_12{color:default}._settings-group_4kok1_6 ._settings-group-content_4kok1_12 button:first-child{margin-left:0}._row_4kok1_18{display:flex;align-items:center;flex-wrap:wrap}._check_4kok1_23{margin-right:20px;margin-bottom:5px}._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_1as61_1._narrow-mode_1as61_1{background-color:#000000e6}._modal_1as61_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}body.dark ._modal_1as61_1{border:1px solid #fb7299}._modal_1as61_1._narrow-mode_1as61_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_1as61_1._narrow-mode_1as61_1{border:none}._modal-header_1as61_21,._modal-body_1as61_22{padding-right:15px}body.dark ._btn-refresh_1as61_25{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}
`);

var mv=Object.defineProperty;var gv=(p,me,$e)=>me in p?mv(p,me,{enumerable:!0,configurable:!0,writable:!0,value:$e}):p[me]=$e;var rr=(p,me,$e)=>(gv(p,typeof me!="symbol"?me+"":me,$e),$e);(function(p,me,$e,xc){"use strict";const en=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function Ac(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ce=en(p),Ji=Ac(p),Oc=en(me),ir=en($e),Tc=en(xc);var Mc=typeof global=="object"&&global&&global.Object===Object&&global;const Zi=Mc;var Lc=typeof self=="object"&&self&&self.Object===Object&&self,Rc=Zi||Lc||Function("return this")();const ge=Rc;var Pc=ge.Symbol;const ye=Pc;var Qi=Object.prototype,Dc=Qi.hasOwnProperty,Nc=Qi.toString,_t=ye?ye.toStringTag:void 0;function Fc(e){var t=Dc.call(e,_t),n=e[_t];try{e[_t]=void 0;var r=!0}catch{}var i=Nc.call(e);return r&&(t?e[_t]=n:delete e[_t]),i}var Ic=Object.prototype,jc=Ic.toString;function zc(e){return jc.call(e)}var Wc="[object Null]",Bc="[object Undefined]",qi=ye?ye.toStringTag:void 0;function et(e){return e==null?e===void 0?Bc:Wc:qi&&qi in Object(e)?Fc(e):zc(e)}function tt(e){return e!=null&&typeof e=="object"}var $c="[object Symbol]";function tn(e){return typeof e=="symbol"||tt(e)&&et(e)==$c}function Hc(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Uc=Array.isArray;const ve=Uc;var Gc=1/0,es=ye?ye.prototype:void 0,ts=es?es.toString:void 0;function sr(e){if(typeof e=="string")return e;if(ve(e))return Hc(e,sr)+"";if(tn(e))return ts?ts.call(e):"";var t=e+"";return t=="0"&&1/e==-Gc?"-0":t}var Vc=/\s/;function Yc(e){for(var t=e.length;t--&&Vc.test(e.charAt(t)););return t}var Kc=/^\s+/;function Xc(e){return e&&e.slice(0,Yc(e)+1).replace(Kc,"")}function Re(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ns=0/0,Jc=/^[-+]0x[0-9a-f]+$/i,Zc=/^0b[01]+$/i,Qc=/^0o[0-7]+$/i,qc=parseInt;function or(e){if(typeof e=="number")return e;if(tn(e))return ns;if(Re(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Re(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Xc(e);var n=Zc.test(e);return n||Qc.test(e)?qc(e.slice(2),n?2:8):Jc.test(e)?ns:+e}var rs=1/0,eu=17976931348623157e292;function tu(e){if(!e)return e===0?e:0;if(e=or(e),e===rs||e===-rs){var t=e<0?-1:1;return t*eu}return e===e?e:0}function is(e){var t=tu(e),n=t%1;return t===t?n?t-n:t:0}function ss(e){return e}var nu="[object AsyncFunction]",ru="[object Function]",iu="[object GeneratorFunction]",su="[object Proxy]";function os(e){if(!Re(e))return!1;var t=et(e);return t==ru||t==iu||t==nu||t==su}var ou=ge["__core-js_shared__"];const ar=ou;var as=function(){var e=/[^.]+$/.exec(ar&&ar.keys&&ar.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function au(e){return!!as&&as in e}var cu=Function.prototype,uu=cu.toString;function He(e){if(e!=null){try{return uu.call(e)}catch{}try{return e+""}catch{}}return""}var lu=/[\\^$.*+?()[\]{}|]/g,fu=/^\[object .+?Constructor\]$/,du=Function.prototype,hu=Object.prototype,pu=du.toString,mu=hu.hasOwnProperty,gu=RegExp("^"+pu.call(mu).replace(lu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yu(e){if(!Re(e)||au(e))return!1;var t=os(e)?gu:fu;return t.test(He(e))}function vu(e,t){return e==null?void 0:e[t]}function Ue(e,t){var n=vu(e,t);return yu(n)?n:void 0}var bu=Ue(ge,"WeakMap");const cr=bu;function wu(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _u(){}var Su=800,ku=16,Eu=Date.now;function Cu(e){var t=0,n=0;return function(){var r=Eu(),i=ku-(r-n);if(n=r,i>0){if(++t>=Su)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function xu(e){return function(){return e}}var Au=function(){try{var e=Ue(Object,"defineProperty");return e({},"",{}),e}catch{}}();const nn=Au;var Ou=nn?function(e,t){return nn(e,"toString",{configurable:!0,enumerable:!1,value:xu(t),writable:!0})}:ss,Tu=Cu(Ou);const Mu=Tu;function Lu(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function Ru(e){return e!==e}function Pu(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Du(e,t,n){return t===t?Pu(e,t,n):Lu(e,Ru,n)}function Nu(e,t){var n=e==null?0:e.length;return!!n&&Du(e,t,0)>-1}var Fu=9007199254740991,Iu=/^(?:0|[1-9]\d*)$/;function ur(e,t){var n=typeof e;return t=t==null?Fu:t,!!t&&(n=="number"||n!="symbol"&&Iu.test(e))&&e>-1&&e%1==0&&e<t}function ju(e,t,n){t=="__proto__"&&nn?nn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){return e===t||e!==e&&t!==t}var zu=Object.prototype,Wu=zu.hasOwnProperty;function Bu(e,t,n){var r=e[t];(!(Wu.call(e,t)&&lr(r,n))||n===void 0&&!(t in e))&&ju(e,t,n)}var cs=Math.max;function $u(e,t,n){return t=cs(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=cs(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),wu(e,this,a)}}var Hu=9007199254740991;function fr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hu}function Uu(e){return e!=null&&fr(e.length)&&!os(e)}var Gu=Object.prototype;function Vu(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Gu;return e===n}function Yu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Ku="[object Arguments]";function us(e){return tt(e)&&et(e)==Ku}var ls=Object.prototype,Xu=ls.hasOwnProperty,Ju=ls.propertyIsEnumerable,Zu=us(function(){return arguments}())?us:function(e){return tt(e)&&Xu.call(e,"callee")&&!Ju.call(e,"callee")};const dr=Zu;function Qu(){return!1}var fs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ds=fs&&typeof module=="object"&&module&&!module.nodeType&&module,qu=ds&&ds.exports===fs,hs=qu?ge.Buffer:void 0,el=hs?hs.isBuffer:void 0,tl=el||Qu;const hr=tl;var nl="[object Arguments]",rl="[object Array]",il="[object Boolean]",sl="[object Date]",ol="[object Error]",al="[object Function]",cl="[object Map]",ul="[object Number]",ll="[object Object]",fl="[object RegExp]",dl="[object Set]",hl="[object String]",pl="[object WeakMap]",ml="[object ArrayBuffer]",gl="[object DataView]",yl="[object Float32Array]",vl="[object Float64Array]",bl="[object Int8Array]",wl="[object Int16Array]",_l="[object Int32Array]",Sl="[object Uint8Array]",kl="[object Uint8ClampedArray]",El="[object Uint16Array]",Cl="[object Uint32Array]",U={};U[yl]=U[vl]=U[bl]=U[wl]=U[_l]=U[Sl]=U[kl]=U[El]=U[Cl]=!0,U[nl]=U[rl]=U[ml]=U[il]=U[gl]=U[sl]=U[ol]=U[al]=U[cl]=U[ul]=U[ll]=U[fl]=U[dl]=U[hl]=U[pl]=!1;function xl(e){return tt(e)&&fr(e.length)&&!!U[et(e)]}function Al(e){return function(t){return e(t)}}var ps=typeof exports=="object"&&exports&&!exports.nodeType&&exports,St=ps&&typeof module=="object"&&module&&!module.nodeType&&module,Ol=St&&St.exports===ps,pr=Ol&&Zi.process,Tl=function(){try{var e=St&&St.require&&St.require("util").types;return e||pr&&pr.binding&&pr.binding("util")}catch{}}();const ms=Tl;var gs=ms&&ms.isTypedArray,Ml=gs?Al(gs):xl;const ys=Ml;var Ll=Object.prototype,Rl=Ll.hasOwnProperty;function Pl(e,t){var n=ve(e),r=!n&&dr(e),i=!n&&!r&&hr(e),s=!n&&!r&&!i&&ys(e),o=n||r||i||s,a=o?Yu(e.length,String):[],c=a.length;for(var u in e)(t||Rl.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ur(u,c)))&&a.push(u);return a}function Dl(e,t){return function(n){return e(t(n))}}var Nl=Dl(Object.keys,Object);const Fl=Nl;var Il=Object.prototype,jl=Il.hasOwnProperty;function zl(e){if(!Vu(e))return Fl(e);var t=[];for(var n in Object(e))jl.call(e,n)&&n!="constructor"&&t.push(n);return t}function vs(e){return Uu(e)?Pl(e):zl(e)}var Wl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bl=/^\w*$/;function mr(e,t){if(ve(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||tn(e)?!0:Bl.test(e)||!Wl.test(e)||t!=null&&e in Object(t)}var $l=Ue(Object,"create");const kt=$l;function Hl(){this.__data__=kt?kt(null):{},this.size=0}function Ul(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gl="__lodash_hash_undefined__",Vl=Object.prototype,Yl=Vl.hasOwnProperty;function Kl(e){var t=this.__data__;if(kt){var n=t[e];return n===Gl?void 0:n}return Yl.call(t,e)?t[e]:void 0}var Xl=Object.prototype,Jl=Xl.hasOwnProperty;function Zl(e){var t=this.__data__;return kt?t[e]!==void 0:Jl.call(t,e)}var Ql="__lodash_hash_undefined__";function ql(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kt&&t===void 0?Ql:t,this}function Ge(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ge.prototype.clear=Hl,Ge.prototype.delete=Ul,Ge.prototype.get=Kl,Ge.prototype.has=Zl,Ge.prototype.set=ql;function ef(){this.__data__=[],this.size=0}function rn(e,t){for(var n=e.length;n--;)if(lr(e[n][0],t))return n;return-1}var tf=Array.prototype,nf=tf.splice;function rf(e){var t=this.__data__,n=rn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nf.call(t,n,1),--this.size,!0}function sf(e){var t=this.__data__,n=rn(t,e);return n<0?void 0:t[n][1]}function of(e){return rn(this.__data__,e)>-1}function af(e,t){var n=this.__data__,r=rn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Pe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pe.prototype.clear=ef,Pe.prototype.delete=rf,Pe.prototype.get=sf,Pe.prototype.has=of,Pe.prototype.set=af;var cf=Ue(ge,"Map");const Et=cf;function uf(){this.size=0,this.__data__={hash:new Ge,map:new(Et||Pe),string:new Ge}}function lf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sn(e,t){var n=e.__data__;return lf(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ff(e){var t=sn(this,e).delete(e);return this.size-=t?1:0,t}function df(e){return sn(this,e).get(e)}function hf(e){return sn(this,e).has(e)}function pf(e,t){var n=sn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function De(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}De.prototype.clear=uf,De.prototype.delete=ff,De.prototype.get=df,De.prototype.has=hf,De.prototype.set=pf;var mf="Expected a function";function gr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mf);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(gr.Cache||De),n}gr.Cache=De;var gf=500;function yf(e){var t=gr(e,function(r){return n.size===gf&&n.clear(),r}),n=t.cache;return t}var vf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bf=/\\(\\)?/g,wf=yf(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vf,function(n,r,i,s){t.push(i?s.replace(bf,"$1"):r||n)}),t});const _f=wf;function bs(e){return e==null?"":sr(e)}function on(e,t){return ve(e)?e:mr(e,t)?[e]:_f(bs(e))}var Sf=1/0;function Ct(e){if(typeof e=="string"||tn(e))return e;var t=e+"";return t=="0"&&1/e==-Sf?"-0":t}function yr(e,t){t=on(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ct(t[n++])];return n&&n==r?e:void 0}function kf(e,t,n){var r=e==null?void 0:yr(e,t);return r===void 0?n:r}function ws(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var _s=ye?ye.isConcatSpreadable:void 0;function Ef(e){return ve(e)||dr(e)||!!(_s&&e&&e[_s])}function Ss(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=Ef),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?Ss(a,t-1,n,r,i):ws(i,a):r||(i[i.length]=a)}return i}function Cf(e){var t=e==null?0:e.length;return t?Ss(e,1):[]}function xf(e){return Mu($u(e,void 0,Cf),e+"")}var Af="Expected a function";function Of(e,t){var n;if(typeof t!="function")throw new TypeError(Af);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function Tf(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function Mf(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Tf(e,t,n)}var Lf="\\ud800-\\udfff",Rf="\\u0300-\\u036f",Pf="\\ufe20-\\ufe2f",Df="\\u20d0-\\u20ff",Nf=Rf+Pf+Df,Ff="\\ufe0e\\ufe0f",If="\\u200d",jf=RegExp("["+If+Lf+Nf+Ff+"]");function vr(e){return jf.test(e)}function zf(e){return e.split("")}var ks="\\ud800-\\udfff",Wf="\\u0300-\\u036f",Bf="\\ufe20-\\ufe2f",$f="\\u20d0-\\u20ff",Hf=Wf+Bf+$f,Uf="\\ufe0e\\ufe0f",Gf="["+ks+"]",br="["+Hf+"]",wr="\\ud83c[\\udffb-\\udfff]",Vf="(?:"+br+"|"+wr+")",Es="[^"+ks+"]",Cs="(?:\\ud83c[\\udde6-\\uddff]){2}",xs="[\\ud800-\\udbff][\\udc00-\\udfff]",Yf="\\u200d",As=Vf+"?",Os="["+Uf+"]?",Kf="(?:"+Yf+"(?:"+[Es,Cs,xs].join("|")+")"+Os+As+")*",Xf=Os+As+Kf,Jf="(?:"+[Es+br+"?",br,Cs,xs,Gf].join("|")+")",Zf=RegExp(wr+"(?="+wr+")|"+Jf+Xf,"g");function Qf(e){return e.match(Zf)||[]}function qf(e){return vr(e)?Qf(e):zf(e)}function ed(){this.__data__=new Pe,this.size=0}function td(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function nd(e){return this.__data__.get(e)}function rd(e){return this.__data__.has(e)}var id=200;function sd(e,t){var n=this.__data__;if(n instanceof Pe){var r=n.__data__;if(!Et||r.length<id-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new De(r)}return n.set(e,t),this.size=n.size,this}function Ne(e){var t=this.__data__=new Pe(e);this.size=t.size}Ne.prototype.clear=ed,Ne.prototype.delete=td,Ne.prototype.get=nd,Ne.prototype.has=rd,Ne.prototype.set=sd;function od(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function ad(){return[]}var cd=Object.prototype,ud=cd.propertyIsEnumerable,Ts=Object.getOwnPropertySymbols,ld=Ts?function(e){return e==null?[]:(e=Object(e),od(Ts(e),function(t){return ud.call(e,t)}))}:ad;const fd=ld;function dd(e,t,n){var r=t(e);return ve(e)?r:ws(r,n(e))}function Ms(e){return dd(e,vs,fd)}var hd=Ue(ge,"DataView");const _r=hd;var pd=Ue(ge,"Promise");const Sr=pd;var md=Ue(ge,"Set");const nt=md;var Ls="[object Map]",gd="[object Object]",Rs="[object Promise]",Ps="[object Set]",Ds="[object WeakMap]",Ns="[object DataView]",yd=He(_r),vd=He(Et),bd=He(Sr),wd=He(nt),_d=He(cr),Ve=et;(_r&&Ve(new _r(new ArrayBuffer(1)))!=Ns||Et&&Ve(new Et)!=Ls||Sr&&Ve(Sr.resolve())!=Rs||nt&&Ve(new nt)!=Ps||cr&&Ve(new cr)!=Ds)&&(Ve=function(e){var t=et(e),n=t==gd?e.constructor:void 0,r=n?He(n):"";if(r)switch(r){case yd:return Ns;case vd:return Ls;case bd:return Rs;case wd:return Ps;case _d:return Ds}return t});const Fs=Ve;var Sd=ge.Uint8Array;const Is=Sd;var kd="__lodash_hash_undefined__";function Ed(e){return this.__data__.set(e,kd),this}function Cd(e){return this.__data__.has(e)}function xt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new De;++t<n;)this.add(e[t])}xt.prototype.add=xt.prototype.push=Ed,xt.prototype.has=Cd;function xd(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function js(e,t){return e.has(t)}var Ad=1,Od=2;function zs(e,t,n,r,i,s){var o=n&Ad,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var u=s.get(e),l=s.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,m=n&Od?new xt:void 0;for(s.set(e,t),s.set(t,e);++f<a;){var y=e[f],g=t[f];if(r)var E=o?r(g,y,f,t,e,s):r(y,g,f,e,t,s);if(E!==void 0){if(E)continue;d=!1;break}if(m){if(!xd(t,function(k,L){if(!js(m,L)&&(y===k||i(y,k,n,r,s)))return m.push(L)})){d=!1;break}}else if(!(y===g||i(y,g,n,r,s))){d=!1;break}}return s.delete(e),s.delete(t),d}function Td(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function kr(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Md=1,Ld=2,Rd="[object Boolean]",Pd="[object Date]",Dd="[object Error]",Nd="[object Map]",Fd="[object Number]",Id="[object RegExp]",jd="[object Set]",zd="[object String]",Wd="[object Symbol]",Bd="[object ArrayBuffer]",$d="[object DataView]",Ws=ye?ye.prototype:void 0,Er=Ws?Ws.valueOf:void 0;function Hd(e,t,n,r,i,s,o){switch(n){case $d:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bd:return!(e.byteLength!=t.byteLength||!s(new Is(e),new Is(t)));case Rd:case Pd:case Fd:return lr(+e,+t);case Dd:return e.name==t.name&&e.message==t.message;case Id:case zd:return e==t+"";case Nd:var a=Td;case jd:var c=r&Md;if(a||(a=kr),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=Ld,o.set(e,t);var l=zs(a(e),a(t),r,i,s,o);return o.delete(e),l;case Wd:if(Er)return Er.call(e)==Er.call(t)}return!1}var Ud=1,Gd=Object.prototype,Vd=Gd.hasOwnProperty;function Yd(e,t,n,r,i,s){var o=n&Ud,a=Ms(e),c=a.length,u=Ms(t),l=u.length;if(c!=l&&!o)return!1;for(var f=c;f--;){var d=a[f];if(!(o?d in t:Vd.call(t,d)))return!1}var m=s.get(e),y=s.get(t);if(m&&y)return m==t&&y==e;var g=!0;s.set(e,t),s.set(t,e);for(var E=o;++f<c;){d=a[f];var k=e[d],L=t[d];if(r)var I=o?r(L,k,d,t,e,s):r(k,L,d,e,t,s);if(!(I===void 0?k===L||i(k,L,n,r,s):I)){g=!1;break}E||(E=d=="constructor")}if(g&&!E){var F=e.constructor,R=t.constructor;F!=R&&"constructor"in e&&"constructor"in t&&!(typeof F=="function"&&F instanceof F&&typeof R=="function"&&R instanceof R)&&(g=!1)}return s.delete(e),s.delete(t),g}var Kd=1,Bs="[object Arguments]",$s="[object Array]",an="[object Object]",Xd=Object.prototype,Hs=Xd.hasOwnProperty;function Jd(e,t,n,r,i,s){var o=ve(e),a=ve(t),c=o?$s:Fs(e),u=a?$s:Fs(t);c=c==Bs?an:c,u=u==Bs?an:u;var l=c==an,f=u==an,d=c==u;if(d&&hr(e)){if(!hr(t))return!1;o=!0,l=!1}if(d&&!l)return s||(s=new Ne),o||ys(e)?zs(e,t,n,r,i,s):Hd(e,t,c,n,r,i,s);if(!(n&Kd)){var m=l&&Hs.call(e,"__wrapped__"),y=f&&Hs.call(t,"__wrapped__");if(m||y){var g=m?e.value():e,E=y?t.value():t;return s||(s=new Ne),i(g,E,n,r,s)}}return d?(s||(s=new Ne),Yd(e,t,n,r,i,s)):!1}function cn(e,t,n,r,i){return e===t?!0:e==null||t==null||!tt(e)&&!tt(t)?e!==e&&t!==t:Jd(e,t,n,r,cn,i)}var Zd=1,Qd=2;function qd(e,t,n,r){var i=n.length,s=i,o=!r;if(e==null)return!s;for(e=Object(e);i--;){var a=n[i];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<s;){a=n[i];var c=a[0],u=e[c],l=a[1];if(o&&a[2]){if(u===void 0&&!(c in e))return!1}else{var f=new Ne;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?cn(l,u,Zd|Qd,r,f):d))return!1}}return!0}function Us(e){return e===e&&!Re(e)}function eh(e){for(var t=vs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Us(i)]}return t}function Gs(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function th(e){var t=eh(e);return t.length==1&&t[0][2]?Gs(t[0][0],t[0][1]):function(n){return n===e||qd(n,e,t)}}function nh(e,t){return e!=null&&t in Object(e)}function rh(e,t,n){t=on(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var o=Ct(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&fr(i)&&ur(o,i)&&(ve(e)||dr(e)))}function Vs(e,t){return e!=null&&rh(e,t,nh)}var ih=1,sh=2;function oh(e,t){return mr(e)&&Us(t)?Gs(Ct(e),t):function(n){var r=kf(n,e);return r===void 0&&r===t?Vs(n,e):cn(t,r,ih|sh)}}function Ys(e){return function(t){return t==null?void 0:t[e]}}function ah(e){return function(t){return yr(t,e)}}function ch(e){return mr(e)?Ys(Ct(e)):ah(e)}function uh(e){return typeof e=="function"?e:e==null?ss:typeof e=="object"?ve(e)?oh(e[0],e[1]):th(e):ch(e)}var lh=function(){return ge.Date.now()};const Cr=lh;var fh="Expected a function",dh=Math.max,hh=Math.min;function Ks(e,t,n){var r,i,s,o,a,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(fh);t=or(t)||0,Re(n)&&(l=!!n.leading,f="maxWait"in n,s=f?dh(or(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d);function m(A){var O=r,$=i;return r=i=void 0,u=A,o=e.apply($,O),o}function y(A){return u=A,a=setTimeout(k,t),l?m(A):o}function g(A){var O=A-c,$=A-u,x=t-O;return f?hh(x,s-$):x}function E(A){var O=A-c,$=A-u;return c===void 0||O>=t||O<0||f&&$>=s}function k(){var A=Cr();if(E(A))return L(A);a=setTimeout(k,g(A))}function L(A){return a=void 0,d&&r?m(A):(r=i=void 0,o)}function I(){a!==void 0&&clearTimeout(a),u=0,r=c=i=a=void 0}function F(){return a===void 0?o:L(Cr())}function R(){var A=Cr(),O=E(A);if(r=arguments,i=this,c=A,O){if(a===void 0)return y(c);if(f)return clearTimeout(a),a=setTimeout(k,t),m(c)}return a===void 0&&(a=setTimeout(k,t)),o}return R.cancel=I,R.flush=F,R}function ph(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function mh(e,t){return cn(e,t)}function gh(e,t,n,r){if(!Re(e))return e;t=on(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var c=Ct(t[i]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var l=a[c];u=r?r(l,c,a):void 0,u===void 0&&(u=Re(l)?l:ur(t[i+1])?[]:{})}Bu(a,c,u),a=a[c]}return e}function yh(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=yr(e,o);n(a,o)&&gh(s,on(o,e),a)}return s}function vh(e){return Of(2,e)}var bh=9007199254740991,wh=Math.floor;function Xs(e,t){var n="";if(!e||t<1||t>bh)return n;do t%2&&(n+=e),t=wh(t/2),t&&(e+=e);while(t);return n}var _h=Ys("length");const Sh=_h;var Js="\\ud800-\\udfff",kh="\\u0300-\\u036f",Eh="\\ufe20-\\ufe2f",Ch="\\u20d0-\\u20ff",xh=kh+Eh+Ch,Ah="\\ufe0e\\ufe0f",Oh="["+Js+"]",xr="["+xh+"]",Ar="\\ud83c[\\udffb-\\udfff]",Th="(?:"+xr+"|"+Ar+")",Zs="[^"+Js+"]",Qs="(?:\\ud83c[\\udde6-\\uddff]){2}",qs="[\\ud800-\\udbff][\\udc00-\\udfff]",Mh="\\u200d",eo=Th+"?",to="["+Ah+"]?",Lh="(?:"+Mh+"(?:"+[Zs,Qs,qs].join("|")+")"+to+eo+")*",Rh=to+eo+Lh,Ph="(?:"+[Zs+xr+"?",xr,Qs,qs,Oh].join("|")+")",no=RegExp(Ar+"(?="+Ar+")|"+Ph+Rh,"g");function Dh(e){for(var t=no.lastIndex=0;no.test(e);)++t;return t}function ro(e){return vr(e)?Dh(e):Sh(e)}var Nh=Math.ceil;function Fh(e,t){t=t===void 0?" ":sr(t);var n=t.length;if(n<2)return n?Xs(t,e):t;var r=Xs(t,Nh(e/ro(t)));return vr(t)?Mf(qf(r),0,e).join(""):r.slice(0,e)}function Ih(e,t,n){e=bs(e),t=is(t);var r=t?ro(e):0;return t&&r<t?Fh(t-r,n)+e:e}function jh(e,t){return yh(e,t,function(n,r){return Vs(e,r)})}var zh=xf(function(e,t){return e==null?{}:jh(e,t)});const io=zh;var Wh="Expected a function";function Bh(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Wh);return Re(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ks(e,t,{leading:r,maxWait:t,trailing:i})}var $h=1/0,Hh=nt&&1/kr(new nt([,-0]))[1]==$h?function(e){return new nt(e)}:_u;const Uh=Hh;var Gh=200;function Vh(e,t,n){var r=-1,i=Nu,s=e.length,o=!0,a=[],c=a;if(n)o=!1,i=ph;else if(s>=Gh){var u=t?null:Uh(e);if(u)return kr(u);o=!1,i=js,c=new xt}else c=t?[]:a;e:for(;++r<s;){var l=e[r],f=t?t(l):l;if(l=n||l!==0?l:0,o&&f===f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),a.push(l)}else i(c,f,n)||(c!==a&&c.push(f),a.push(l))}return a}function so(e,t){return e&&e.length?Vh(e,uh(t)):[]}const Yh=Symbol(),Or=Symbol(),At="a",Ot="w";let Kh=(e,t)=>new Proxy(e,t);const Tr=Object.getPrototypeOf,Mr=new WeakMap,oo=e=>e&&(Mr.has(e)?Mr.get(e):Tr(e)===Object.prototype||Tr(e)===Array.prototype),un=e=>typeof e=="object"&&e!==null,ao=new WeakMap,Lr=e=>e[Or]||e,co=(e,t,n)=>{if(!oo(e))return e;const r=Lr(e),i=(o=>Object.isFrozen(o)||Object.values(Object.getOwnPropertyDescriptors(o)).some(a=>!a.writable))(r);let s=n&&n.get(r);return s&&s[1].f===i||(s=((o,a)=>{const c={f:a};let u=!1;const l=(d,m)=>{if(!u){let y=c[At].get(o);if(y||(y={},c[At].set(o,y)),d===Ot)y[Ot]=!0;else{let g=y[d];g||(g=new Set,y[d]=g),g.add(m)}}},f={get:(d,m)=>m===Or?o:(l("k",m),co(Reflect.get(d,m),c[At],c.c)),has:(d,m)=>m===Yh?(u=!0,c[At].delete(o),!0):(l("h",m),Reflect.has(d,m)),getOwnPropertyDescriptor:(d,m)=>(l("o",m),Reflect.getOwnPropertyDescriptor(d,m)),ownKeys:d=>(l(Ot),Reflect.ownKeys(d))};return a&&(f.set=f.deleteProperty=()=>!1),[f,c]})(r,i),s[1].p=Kh(i?(o=>{let a=ao.get(o);if(!a){if(Array.isArray(o))a=Array.from(o);else{const c=Object.getOwnPropertyDescriptors(o);Object.values(c).forEach(u=>{u.configurable=!0}),a=Object.create(Tr(o),c)}ao.set(o,a)}return a})(r):r,s[0]),n&&n.set(r,s)),s[1][At]=t,s[1].c=n,s[1].p},uo=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!un(e)||!un(t))return!0;const i=n.get(Lr(e));if(!i)return!0;if(r){const o=r.get(e);if(o&&o.n===t)return o.g;r.set(e,{n:t,g:!1})}let s=null;try{for(const o of i.h||[])if(s=Reflect.has(e,o)!==Reflect.has(t,o),s)return s;if(i[Ot]===!0){if(s=((o,a)=>{const c=Reflect.ownKeys(o),u=Reflect.ownKeys(a);return c.length!==u.length||c.some((l,f)=>l!==u[f])})(e,t),s)return s}else for(const o of i.o||[])if(s=!!Reflect.getOwnPropertyDescriptor(e,o)!=!!Reflect.getOwnPropertyDescriptor(t,o),s)return s;for(const o of i.k||[])if(s=uo(e[o],t[o],n,r),s)return s;return s===null&&(s=!0),s}finally{r&&r.set(e,{n:t,g:s})}},Xh=e=>oo(e)&&e[Or]||null,lo=(e,t=!0)=>{Mr.set(e,t)},Jh=(e,t,n)=>{const r=[],i=new WeakSet,s=(o,a)=>{if(i.has(o))return;un(o)&&i.add(o);const c=un(o)&&t.get(Lr(o));if(c){var u,l;if((u=c.h)==null||u.forEach(d=>{const m=`:has(${String(d)})`;r.push(a?[...a,m]:[m])}),c[Ot]===!0){const d=":ownKeys";r.push(a?[...a,d]:[d])}else{var f;(f=c.o)==null||f.forEach(d=>{const m=`:hasOwn(${String(d)})`;r.push(a?[...a,m]:[m])})}(l=c.k)==null||l.forEach(d=>{n&&!("value"in(Object.getOwnPropertyDescriptor(o,d)||{}))||s(o[d],a?[...a,d]:[d])})}else a&&r.push(a)};return s(e),r};var Zh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qh(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var fo={exports:{}},ho={};/**
 * @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 rt=ce.default;function ep(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tp=typeof Object.is=="function"?Object.is:ep,np=rt.useState,rp=rt.useEffect,ip=rt.useLayoutEffect,sp=rt.useDebugValue;function op(e,t){var n=t(),r=np({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return ip(function(){i.value=n,i.getSnapshot=t,Rr(i)&&s({inst:i})},[e,n,t]),rp(function(){return Rr(i)&&s({inst:i}),e(function(){Rr(i)&&s({inst:i})})},[e]),sp(n),n}function Rr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tp(e,n)}catch{return!0}}function ap(e,t){return t()}var cp=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ap:op;ho.useSyncExternalStore=rt.useSyncExternalStore!==void 0?rt.useSyncExternalStore:cp,function(e){e.exports=ho}(fo);const up=Qh(fo.exports),Pr=e=>typeof e=="object"&&e!==null,Ye=new WeakMap,Dr=new WeakSet,lp=(e=Object.is,t=(u,l)=>new Proxy(u,l),n=u=>Pr(u)&&!Dr.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),r=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},i=new WeakMap,s=(u,l,f=r)=>{const d=i.get(u);if((d==null?void 0:d[0])===l)return d[1];const m=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return lo(m,!0),i.set(u,[l,m]),Reflect.ownKeys(u).forEach(y=>{const g=Reflect.get(u,y);Dr.has(g)?(lo(g,!1),m[y]=g):g instanceof Promise?Object.defineProperty(m,y,{get(){return f(g)}}):Ye.has(g)?m[y]=Nr(g,f):m[y]=g}),Object.freeze(m)},o=new WeakMap,a=[1,1],c=u=>{if(!Pr(u))throw new Error("object required");const l=o.get(u);if(l)return l;let f=a[0];const d=new Set,m=(x,C=++a[0])=>{f!==C&&(f=C,d.forEach(_=>_(x,C)))};let y=a[1];const g=(x=++a[1])=>(y!==x&&!d.size&&(y=x,k.forEach(([C])=>{const _=C[1](x);_>f&&(f=_)})),f),E=x=>(C,_)=>{const P=[...C];P[1]=[x,...P[1]],m(P,_)},k=new Map,L=(x,C)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&k.has(x))throw new Error("prop listener already exists");if(d.size){const _=C[3](E(x));k.set(x,[C,_])}else k.set(x,[C])},I=x=>{var C;const _=k.get(x);_&&(k.delete(x),(C=_[1])==null||C.call(_))},F=x=>(d.add(x),d.size===1&&k.forEach(([_,P],b)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&P)throw new Error("remove already exists");const w=_[3](E(b));k.set(b,[_,w])}),()=>{d.delete(x),d.size===0&&k.forEach(([_,P],b)=>{P&&(P(),k.set(b,[_]))})}),R=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),O=t(R,{deleteProperty(x,C){const _=Reflect.get(x,C);I(C);const P=Reflect.deleteProperty(x,C);return P&&m(["delete",[C],_]),P},set(x,C,_,P){var b;const w=Reflect.has(x,C),v=Reflect.get(x,C,P);if(w&&e(v,_))return!0;I(C),Pr(_)&&(_=Xh(_)||_);let M=_;if(!((b=Object.getOwnPropertyDescriptor(x,C))!=null&&b.set))if(_ instanceof Promise)_.then(S=>{_.status="fulfilled",_.value=S,m(["resolve",[C],S])}).catch(S=>{_.status="rejected",_.reason=S,m(["reject",[C],S])});else{!Ye.has(_)&&n(_)&&(M=it(_));const S=Ye.get(M);S&&L(C,S)}return Reflect.set(x,C,M,P),m(["set",[C],_,v]),!0}});o.set(u,O);const $=[R,g,s,F];return Ye.set(O,$),Reflect.ownKeys(u).forEach(x=>{const C=Object.getOwnPropertyDescriptor(u,x);C.get||C.set?Object.defineProperty(R,x,C):O[x]=u[x]}),O})=>[c,Ye,Dr,e,t,n,r,i,s,o,a],[fp]=lp();function it(e={}){return fp(e)}function po(e,t,n){const r=Ye.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let i;const s=[],o=r[3];let a=!1;const u=o(l=>{if(s.push(l),n){t(s.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,a&&t(s.splice(0))}))});return a=!0,()=>{a=!1,u()}}function Nr(e,t){const n=Ye.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,i,s]=n;return s(r,i(),t)}const{use:mo}=ce.default,{useSyncExternalStore:dp}=up,hp=(e,t)=>{const n=p.useRef();p.useEffect(()=>{n.current=Jh(e,t,!0)}),p.useDebugValue(n.current)};function st(e,t){const n=t==null?void 0:t.sync,r=p.useRef(),i=p.useRef();let s=!0;const o=dp(p.useCallback(u=>{const l=po(e,u,n);return u(),l},[e,n]),()=>{const u=Nr(e,mo);try{if(!s&&r.current&&i.current&&!uo(r.current,u,i.current,new WeakMap))return r.current}catch{}return u},()=>Nr(e,mo));s=!1;const a=new WeakMap;p.useEffect(()=>{r.current=o,i.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&hp(o,a);const c=p.useMemo(()=>new WeakMap,[]);return co(o,a,c)}const Fr={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1},re=it({...Fr}),go=Object.keys(Fr),je=function(){return st(re)},yo="bilibili-app-recommend",Ir=`${yo}.config`,ln=`${yo}.settings`;function pp(){Object.keys(GM_getValue(Ir)||{}).length&&!Object.keys(GM_getValue(ln)||{}).length&&(GM_setValue(ln,GM_getValue(Ir)),GM_deleteValue(Ir));const e=GM_getValue(ln);e&&typeof e=="object"&&Object.assign(re,io(e,go)),po(re,()=>{mp()})}function mp(){const e=io(re,go);GM_setValue(ln,e)}function vo(e){Object.assign(re,e)}function gp(){return vo(Fr)}pp();var Tt={exports:{}};const yp=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),bo=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},wo=({clearTimeout:e,setTimeout:t,willResolve:n})=>(r,{value:i,signal:s}={})=>{if(s&&s.aborted)return Promise.reject(bo());let o,a,c;const u=e||clearTimeout,l=()=>{u(o),c(bo())},f=()=>{s&&s.removeEventListener("abort",l)},d=new Promise((m,y)=>{a=()=>{f(),n?m(i):y(i)},c=y,o=(t||setTimeout)(a,r)});return s&&s.addEventListener("abort",l,{once:!0}),d.clear=()=>{u(o),o=null,a()},d},_o=e=>{const t=wo({...e,willResolve:!0});return t.reject=wo({...e,willResolve:!1}),t.range=(n,r,i)=>t(yp(n,r),i),t},jr=_o();jr.createWithTimers=_o,Tt.exports=jr,Tt.exports.default=jr;var fn,So=Oc.default;fn=So.createRoot,So.hydrateRoot;const vv="",Mt=vh(()=>!!document.querySelectorAll(".bili-feed4").length),ko=document.querySelector(".bili-header__bar"),Eo=Boolean(ko&&window.getComputedStyle(ko).display==="none")?50:64,Co=()=>document.body.classList.contains("dark"),xo=it({value:Co()});function Ao(){return st(xo).value}const dn=new MutationObserver(function(){xo.value=Co()});dn.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{dn==null||dn.disconnect()});var zr={},ie={};Object.defineProperty(ie,"__esModule",{value:!0}),ie.DEFAULT_ICON_CONFIGS=void 0,ie.IconConverter=Ro,ie.IconProvider=void 0,ie.IconWrapper=Cp;var hn=vp(ce.default);function Oo(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Oo=function(r){return r?n:t})(e)}function vp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Oo(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}var bp=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?To(Object(n),!0).forEach(function(r){wp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(e,t){if(e==null)return{};var n=Sp(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Sp(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Lo={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"};ie.DEFAULT_ICON_CONFIGS=Lo;function kp(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Ro(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],s=t.theme||n.theme;switch(s){case"outline":i.push(typeof r[0]=="string"?r[0]:"currentColor"),i.push("none"),i.push(typeof r[0]=="string"?r[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof r[0]=="string"?r[0]:"currentColor"),i.push(typeof r[0]=="string"?r[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof r[0]=="string"?r[0]:"currentColor"),i.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),i.push(typeof r[0]=="string"?r[0]:"currentColor"),i.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof r[0]=="string"?r[0]:"currentColor"),i.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),i.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),i.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return{size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:i,id:e}}var Po=(0,hn.createContext)(Lo),Ep=Po.Provider;ie.IconProvider=Ep;function Cp(e,t,n){return function(r){var i=r.size,s=r.strokeWidth,o=r.strokeLinecap,a=r.strokeLinejoin,c=r.theme,u=r.fill,l=r.className,f=r.spin,d=_p(r,bp),m=(0,hn.useContext)(Po),y=(0,hn.useMemo)(kp,[]),g=Ro(y,{size:i,strokeWidth:s,strokeLinecap:o,strokeLinejoin:a,theme:c,fill:u},m),E=[m.prefix+"-icon"];return E.push(m.prefix+"-icon-"+e),t&&m.rtl&&E.push(m.prefix+"-icon-rtl"),f&&E.push(m.prefix+"-icon-spin"),l&&E.push(l),hn.default.createElement("span",Mo(Mo({},d),{},{className:E.join(" ")}),n(g))}}Object.defineProperty(zr,"__esModule",{value:!0});var Do=zr.default=void 0,Wr=Ap(ce.default),xp=ie;function Ap(e){return e&&e.__esModule?e:{default:e}}var Op=(0,xp.IconWrapper)("close",!1,function(e){return Wr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Wr.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Wr.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Do=zr.default=Op;var Br={};Object.defineProperty(Br,"__esModule",{value:!0});var No=Br.default=void 0,$r=Mp(ce.default),Tp=ie;function Mp(e){return e&&e.__esModule?e:{default:e}}var Lp=(0,Tp.IconWrapper)("config",!1,function(e){return $r.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},$r.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}),$r.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}))});No=Br.default=Lp;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});var Fo=Hr.default=void 0,Lt=Pp(ce.default),Rp=ie;function Pp(e){return e&&e.__esModule?e:{default:e}}var Dp=(0,Rp.IconWrapper)("distraught-face",!1,function(e){return Lt.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Lt.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}),Lt.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}),Lt.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Lt.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Fo=Hr.default=Dp;var Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});var Io=Ur.default=void 0,Rt=Fp(ce.default),Np=ie;function Fp(e){return e&&e.__esModule?e:{default:e}}var Ip=(0,Np.IconWrapper)("info",!0,function(e){return Rt.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Rt.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}),Rt.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]}),Rt.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rt.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Io=Ur.default=Ip;var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});var jo=Gr.default=void 0,Vr=zp(ce.default),jp=ie;function zp(e){return e&&e.__esModule?e:{default:e}}var Wp=(0,jp.IconWrapper)("loading",!0,function(e){return Vr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Vr.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}),Vr.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}))});jo=Gr.default=Wp;var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0});var zo=Yr.default=void 0,be=$p(ce.default),Bp=ie;function $p(e){return e&&e.__esModule?e:{default:e}}var Hp=(0,Bp.IconWrapper)("loading-three",!1,function(e){return be.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},be.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}),be.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),be.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),be.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),be.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),be.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),be.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),be.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),be.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});zo=Yr.default=Hp;var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});var Wo=Kr.default=void 0,Xr=Gp(ce.default),Up=ie;function Gp(e){return e&&e.__esModule?e:{default:e}}var Vp=(0,Up.IconWrapper)("return",!0,function(e){return Xr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Xr.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Xr.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}))});Wo=Kr.default=Vp;function Yp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Kp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Xp=function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Kp(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Yp(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),te="-ms-",pn="-moz-",z="-webkit-",Bo="comm",Jr="rule",Zr="decl",Jp="@import",$o="@keyframes",Zp=Math.abs,mn=String.fromCharCode,Qp=Object.assign;function qp(e,t){return ee(e,0)^45?(((t<<2^ee(e,0))<<2^ee(e,1))<<2^ee(e,2))<<2^ee(e,3):0}function Ho(e){return e.trim()}function em(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,n){return e.replace(t,n)}function Qr(e,t){return e.indexOf(t)}function ee(e,t){return e.charCodeAt(t)|0}function Pt(e,t,n){return e.slice(t,n)}function we(e){return e.length}function qr(e){return e.length}function gn(e,t){return t.push(e),e}function tm(e,t){return e.map(t).join("")}var yn=1,ot=1,Uo=0,se=0,K=0,at="";function vn(e,t,n,r,i,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:yn,column:ot,length:o,return:""}}function Dt(e,t){return Qp(vn("",null,null,"",null,null,0),e,{length:-e.length},t)}function nm(){return K}function rm(){return K=se>0?ee(at,--se):0,ot--,K===10&&(ot=1,yn--),K}function ue(){return K=se<Uo?ee(at,se++):0,ot++,K===10&&(ot=1,yn++),K}function _e(){return ee(at,se)}function bn(){return se}function Nt(e,t){return Pt(at,e,t)}function Ft(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Go(e){return yn=ot=1,Uo=we(at=e),se=0,[]}function Vo(e){return at="",e}function wn(e){return Ho(Nt(se-1,ei(e===91?e+2:e===40?e+1:e)))}function im(e){for(;(K=_e())&&K<33;)ue();return Ft(e)>2||Ft(K)>3?"":" "}function sm(e,t){for(;--t&&ue()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return Nt(e,bn()+(t<6&&_e()==32&&ue()==32))}function ei(e){for(;ue();)switch(K){case e:return se;case 34:case 39:e!==34&&e!==39&&ei(K);break;case 40:e===41&&ei(e);break;case 92:ue();break}return se}function om(e,t){for(;ue()&&e+K!==47+10;)if(e+K===42+42&&_e()===47)break;return"/*"+Nt(t,se-1)+"*"+mn(e===47?e:ue())}function am(e){for(;!Ft(_e());)ue();return Nt(e,se)}function cm(e){return Vo(_n("",null,null,null,[""],e=Go(e),0,[0],e))}function _n(e,t,n,r,i,s,o,a,c){for(var u=0,l=0,f=o,d=0,m=0,y=0,g=1,E=1,k=1,L=0,I="",F=i,R=s,A=r,O=I;E;)switch(y=L,L=ue()){case 40:if(y!=108&&ee(O,f-1)==58){Qr(O+=W(wn(L),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:O+=wn(L);break;case 9:case 10:case 13:case 32:O+=im(y);break;case 92:O+=sm(bn()-1,7);continue;case 47:switch(_e()){case 42:case 47:gn(um(om(ue(),bn()),t,n),c);break;default:O+="/"}break;case 123*g:a[u++]=we(O)*k;case 125*g:case 59:case 0:switch(L){case 0:case 125:E=0;case 59+l:m>0&&we(O)-f&&gn(m>32?Ko(O+";",r,n,f-1):Ko(W(O," ","")+";",r,n,f-2),c);break;case 59:O+=";";default:if(gn(A=Yo(O,t,n,u,l,i,a,I,F=[],R=[],f),s),L===123)if(l===0)_n(O,t,A,A,F,s,f,a,R);else switch(d===99&&ee(O,3)===110?100:d){case 100:case 109:case 115:_n(e,A,A,r&&gn(Yo(e,A,A,0,0,i,a,I,i,F=[],f),R),i,R,f,a,r?F:R);break;default:_n(O,A,A,A,[""],R,0,a,R)}}u=l=m=0,g=k=1,I=O="",f=o;break;case 58:f=1+we(O),m=y;default:if(g<1){if(L==123)--g;else if(L==125&&g++==0&&rm()==125)continue}switch(O+=mn(L),L*g){case 38:k=l>0?1:(O+="\f",-1);break;case 44:a[u++]=(we(O)-1)*k,k=1;break;case 64:_e()===45&&(O+=wn(ue())),d=_e(),l=f=we(I=O+=am(bn())),L++;break;case 45:y===45&&we(O)==2&&(g=0)}}return s}function Yo(e,t,n,r,i,s,o,a,c,u,l){for(var f=i-1,d=i===0?s:[""],m=qr(d),y=0,g=0,E=0;y<r;++y)for(var k=0,L=Pt(e,f+1,f=Zp(g=o[y])),I=e;k<m;++k)(I=Ho(g>0?d[k]+" "+L:W(L,/&\f/g,d[k])))&&(c[E++]=I);return vn(e,t,n,i===0?Jr:a,c,u,l)}function um(e,t,n){return vn(e,t,n,Bo,mn(nm()),Pt(e,2,-2),0)}function Ko(e,t,n,r){return vn(e,t,n,Zr,Pt(e,0,r),Pt(e,r+1,-1),r)}function ct(e,t){for(var n="",r=qr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function lm(e,t,n,r){switch(e.type){case Jp:case Zr:return e.return=e.return||e.value;case Bo:return"";case $o:return e.return=e.value+"{"+ct(e.children,r)+"}";case Jr:e.value=e.props.join(",")}return we(n=ct(e.children,r))?e.return=e.value+"{"+n+"}":""}function fm(e){var t=qr(e);return function(n,r,i,s){for(var o="",a=0;a<t;a++)o+=e[a](n,r,i,s)||"";return o}}function dm(e){return function(t){t.root||(t=t.return)&&e(t)}}function hm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var pm=function(t,n,r){for(var i=0,s=0;i=s,s=_e(),i===38&&s===12&&(n[r]=1),!Ft(s);)ue();return Nt(t,se)},mm=function(t,n){var r=-1,i=44;do switch(Ft(i)){case 0:i===38&&_e()===12&&(n[r]=1),t[r]+=pm(se-1,n,r);break;case 2:t[r]+=wn(i);break;case 4:if(i===44){t[++r]=_e()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=mn(i)}while(i=ue());return t},gm=function(t,n){return Vo(mm(Go(t),n))},Xo=new WeakMap,ym=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Xo.get(r))&&!i){Xo.set(t,!0);for(var s=[],o=gm(n,s),a=r.props,c=0,u=0;c<o.length;c++)for(var l=0;l<a.length;l++,u++)t.props[u]=s[c]?o[c].replace(/&\f/g,a[l]):a[l]+" "+o[c]}}},vm=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Jo(e,t){switch(qp(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+pn+e+te+e+e;case 6828:case 4268:return z+e+te+e+e;case 6165:return z+e+te+"flex-"+e+e;case 5187:return z+e+W(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+te+"flex-$1$2")+e;case 5443:return z+e+te+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return z+e+te+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+te+W(e,"shrink","negative")+e;case 5292:return z+e+te+W(e,"basis","preferred-size")+e;case 6060:return z+"box-"+W(e,"-grow","")+z+e+te+W(e,"grow","positive")+e;case 4554:return z+W(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(we(e)-1-t>6)switch(ee(e,t+1)){case 109:if(ee(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+pn+(ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Qr(e,"stretch")?Jo(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ee(e,t+1)!==115)break;case 6444:switch(ee(e,we(e)-3-(~Qr(e,"!important")&&10))){case 107:return W(e,":",":"+z)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(ee(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+te+"$2box$3")+e}break;case 5936:switch(ee(e,t+11)){case 114:return z+e+te+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+te+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+te+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+te+e+e}return e}var bm=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Zr:t.return=Jo(t.value,t.length);break;case $o:return ct([Dt(t,{value:W(t.value,"@","@"+z)})],i);case Jr:if(t.length)return tm(t.props,function(s){switch(em(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ct([Dt(t,{props:[W(s,/:(read-\w+)/,":"+pn+"$1")]})],i);case"::placeholder":return ct([Dt(t,{props:[W(s,/:(plac\w+)/,":"+z+"input-$1")]}),Dt(t,{props:[W(s,/:(plac\w+)/,":"+pn+"$1")]}),Dt(t,{props:[W(s,/:(plac\w+)/,te+"input-$1")]})],i)}return""})}},wm=[bm],Zo=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var E=g.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||wm,s={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var E=g.getAttribute("data-emotion").split(" "),k=1;k<E.length;k++)s[E[k]]=!0;a.push(g)});var c,u=[ym,vm];{var l,f=[lm,dm(function(g){l.insert(g)})],d=fm(u.concat(i,f)),m=function(E){return ct(cm(E),d)};c=function(E,k,L,I){l=L,m(E?E+"{"+k.styles+"}":k.styles),I&&(y.inserted[k.name]=!0)}}var y={key:n,sheet:new Xp({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return y.sheet.hydrate(a),y},Qo={exports:{}},B={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Z=typeof Symbol=="function"&&Symbol.for,ti=Z?Symbol.for("react.element"):60103,ni=Z?Symbol.for("react.portal"):60106,Sn=Z?Symbol.for("react.fragment"):60107,kn=Z?Symbol.for("react.strict_mode"):60108,En=Z?Symbol.for("react.profiler"):60114,Cn=Z?Symbol.for("react.provider"):60109,xn=Z?Symbol.for("react.context"):60110,ri=Z?Symbol.for("react.async_mode"):60111,An=Z?Symbol.for("react.concurrent_mode"):60111,On=Z?Symbol.for("react.forward_ref"):60112,Tn=Z?Symbol.for("react.suspense"):60113,_m=Z?Symbol.for("react.suspense_list"):60120,Mn=Z?Symbol.for("react.memo"):60115,Ln=Z?Symbol.for("react.lazy"):60116,Sm=Z?Symbol.for("react.block"):60121,km=Z?Symbol.for("react.fundamental"):60117,Em=Z?Symbol.for("react.responder"):60118,Cm=Z?Symbol.for("react.scope"):60119;function le(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ti:switch(e=e.type,e){case ri:case An:case Sn:case En:case kn:case Tn:return e;default:switch(e=e&&e.$$typeof,e){case xn:case On:case Ln:case Mn:case Cn:return e;default:return t}}case ni:return t}}}function qo(e){return le(e)===An}B.AsyncMode=ri,B.ConcurrentMode=An,B.ContextConsumer=xn,B.ContextProvider=Cn,B.Element=ti,B.ForwardRef=On,B.Fragment=Sn,B.Lazy=Ln,B.Memo=Mn,B.Portal=ni,B.Profiler=En,B.StrictMode=kn,B.Suspense=Tn,B.isAsyncMode=function(e){return qo(e)||le(e)===ri},B.isConcurrentMode=qo,B.isContextConsumer=function(e){return le(e)===xn},B.isContextProvider=function(e){return le(e)===Cn},B.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ti},B.isForwardRef=function(e){return le(e)===On},B.isFragment=function(e){return le(e)===Sn},B.isLazy=function(e){return le(e)===Ln},B.isMemo=function(e){return le(e)===Mn},B.isPortal=function(e){return le(e)===ni},B.isProfiler=function(e){return le(e)===En},B.isStrictMode=function(e){return le(e)===kn},B.isSuspense=function(e){return le(e)===Tn},B.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sn||e===An||e===En||e===kn||e===Tn||e===_m||typeof e=="object"&&e!==null&&(e.$$typeof===Ln||e.$$typeof===Mn||e.$$typeof===Cn||e.$$typeof===xn||e.$$typeof===On||e.$$typeof===km||e.$$typeof===Em||e.$$typeof===Cm||e.$$typeof===Sm)},B.typeOf=le,function(e){e.exports=B}(Qo);var ea=Qo.exports,xm={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Am={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ta={};ta[ea.ForwardRef]=xm,ta[ea.Memo]=Am;var Om=!0;function ii(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var na=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Om===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},ra=function(t,n,r){na(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Tm(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Mm={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},Lm=/[A-Z]|^ms/g,Rm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ia=function(t){return t.charCodeAt(1)===45},sa=function(t){return t!=null&&typeof t!="boolean"},si=hm(function(e){return ia(e)?e:e.replace(Lm,"-$&").toLowerCase()}),oa=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Rm,function(r,i,s){return Se={name:i,styles:s,next:Se},i})}return Mm[t]!==1&&!ia(t)&&typeof n=="number"&&n!==0?n+"px":n},wv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function It(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Se={name:n.name,styles:n.styles,next:Se},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Se={name:r.name,styles:r.styles,next:Se},r=r.next;var i=n.styles+";";return i}return Pm(e,t,n)}case"function":{if(e!==void 0){var s=Se,o=n(e);return Se=s,It(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function Pm(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=It(e,t,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=s+"{"+t[o]+"}":sa(o)&&(r+=si(s)+":"+oa(s,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var a=0;a<o.length;a++)sa(o[a])&&(r+=si(s)+":"+oa(s,o[a])+";");else{var c=It(e,t,o);switch(s){case"animation":case"animationName":{r+=si(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var aa=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Se,jt=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,s="";Se=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,s+=It(r,n,o)):s+=o[0];for(var a=1;a<t.length;a++)s+=It(r,n,t[a]),i&&(s+=o[a]);aa.lastIndex=0;for(var c="",u;(u=aa.exec(s))!==null;)c+="-"+u[1];var l=Tm(s)+c;return{name:l,styles:s,next:Se}},Dm=function(t){return t()},Nm=Ji["useInsertionEffect"]?Ji["useInsertionEffect"]:!1,Fm=Nm||Dm,Rn={}.hasOwnProperty,ca=p.createContext(typeof HTMLElement<"u"?Zo({key:"css"}):null);ca.Provider;var Im=function(t){return p.forwardRef(function(n,r){var i=p.useContext(ca);return t(n,i,r)})},jm=p.createContext({}),oi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ua=function(t,n){var r={};for(var i in n)Rn.call(n,i)&&(r[i]=n[i]);return r[oi]=t,r},zm=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return na(n,r,i),Fm(function(){return ra(n,r,i)}),null},la=Im(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[oi],s=[r],o="";typeof e.className=="string"?o=ii(t.registered,s,e.className):e.className!=null&&(o=e.className+" ");var a=jt(s,void 0,p.useContext(jm));o+=t.key+"-"+a.name;var c={};for(var u in e)Rn.call(e,u)&&u!=="css"&&u!==oi&&(c[u]=e[u]);return c.ref=n,c.className=o,p.createElement(p.Fragment,null,p.createElement(zm,{cache:t,serialized:a,isStringTag:typeof i=="string"}),p.createElement(i,c))}),Pn={exports:{}},Dn={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wm=ce.default,Bm=Symbol.for("react.element"),$m=Symbol.for("react.fragment"),Hm=Object.prototype.hasOwnProperty,Um=Wm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gm={key:!0,ref:!0,__self:!0,__source:!0};function fa(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Hm.call(t,r)&&!Gm.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Bm,type:e,key:s,ref:o,props:i,_owner:Um.current}}Dn.Fragment=$m,Dn.jsx=fa,Dn.jsxs=fa,function(e){e.exports=Dn}(Pn);const Vm=Pn.exports.Fragment,da=Pn.exports.jsx,ha=Pn.exports.jsxs;var ze=Vm;function h(e,t,n){return Rn.call(t,"css")?da(la,ua(e,t),n):da(e,t,n)}function T(e,t,n){return Rn.call(t,"css")?ha(la,ua(e,t),n):ha(e,t,n)}const Ym={Close:Do,Config:No,DistraughtFace:Fo,Return:Wo,Loading:jo,LoadingThree:zo,Info:Io};function ut({name:e,theme:t,size:n,fill:r,...i}){t||(t="outline"),n||(n=24);const s=Ao();r||(r=s?"#fff":"#333");const o=Ym[e];return h(o,{theme:t,size:n,fill:r,...i,style:{fontSize:0,...i.style}})}var pa={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var s=arguments[i];if(!!s){var o=typeof s;if(o==="string"||o==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var a=n.apply(null,s);a&&r.push(a)}}else if(o==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){r.push(s.toString());continue}for(var c in s)t.call(s,c)&&s[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(pa);const X=pa.exports;function lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jt(t)}function ma(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ga(e,t,n){var r=[],i=ii(e,r,n);return r.length<2?n:i+t(r)}var Km=function(t){var n=Zo(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=jt(u,n.registered,void 0);return ra(n,f,!1),n.key+"-"+f.name},i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=jt(u,n.registered),d="animation-"+f.name;return ma(n,{name:f.name,styles:"@keyframes "+d+"{"+f.styles+"}"}),d},s=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=jt(u,n.registered);ma(n,f)},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return ga(n.registered,r,Xm(u))};return{css:r,cx:o,injectGlobal:s,keyframes:i,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:ii.bind(null,n.registered),merge:ga.bind(null,n.registered,r)}},Xm=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=e(i);else{s="";for(var o in i)i[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=i}s&&(n&&(n+=" "),n+=s)}}return n},Jm=Km({key:"css"}),ai=Jm.css;const Zm=e=>(t,n)=>{const r=p.useRef(!1);e(()=>()=>{r.current=!1},[]),e(()=>{if(!r.current)r.current=!0;else return t()},n)};function ya(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Qm(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(l){try{u(r.next(l))}catch(f){o(f)}}function c(l){try{u(r.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):i(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}const ft=e=>typeof e=="function",qm=e=>typeof e=="string",va=e=>typeof e=="number",ci=!1;function H(e){ci&&(ft(e)||console.error(`useMemoizedFn expected parameter is a function, got ${typeof e}`));const t=p.useRef(e);t.current=p.useMemo(()=>e,[e]);const n=p.useRef();return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}const ui=Zm(p.useEffect),ba=(e,{manual:t,ready:n=!0,defaultParams:r=[],refreshDeps:i=[],refreshDepsAction:s})=>{const o=p.useRef(!1);return o.current=!1,ui(()=>{!t&&n&&(o.current=!0,e.run(...r))},[n]),ui(()=>{o.current||t||(o.current=!0,s?s():e.refresh())},[...i]),{onBefore:()=>{if(!n)return{stopNow:!0}}}};ba.onInit=({ready:e=!0,manual:t})=>({loading:!t&&e});const eg=ba;function li(e,t){if(e===t)return!0;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function wa(e,t){const{current:n}=p.useRef({deps:t,obj:void 0,initialized:!1});return(n.initialized===!1||!li(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function zt(e){const t=p.useRef(e);return t.current=e,t}const Wt=e=>{ci&&(ft(e)||console.error(`useUnmount expected parameter is a function, got ${typeof e}`));const t=zt(e);p.useEffect(()=>()=>{t.current()},[])},Nn=new Map,tg=(e,t,n)=>{const r=Nn.get(e);r!=null&&r.timer&&clearTimeout(r.timer);let i;t>-1&&(i=setTimeout(()=>{Nn.delete(e)},t)),Nn.set(e,Object.assign(Object.assign({},n),{timer:i}))},ng=e=>Nn.get(e),Fn=new Map,rg=e=>Fn.get(e),ig=(e,t)=>{Fn.set(e,t),t.then(n=>(Fn.delete(e),n)).catch(()=>{Fn.delete(e)})},Ke={},sg=(e,t)=>{Ke[e]&&Ke[e].forEach(n=>n(t))},fi=(e,t)=>(Ke[e]||(Ke[e]=[]),Ke[e].push(t),function(){const r=Ke[e].indexOf(t);Ke[e].splice(r,1)}),og=(e,{cacheKey:t,cacheTime:n=5*60*1e3,staleTime:r=0,setCache:i,getCache:s})=>{const o=p.useRef(),a=p.useRef(),c=(l,f)=>{i?i(f):tg(l,n,f),sg(l,f.data)},u=(l,f=[])=>s?s(f):ng(l);return wa(()=>{if(!t)return;const l=u(t);l&&Object.hasOwnProperty.call(l,"data")&&(e.state.data=l.data,e.state.params=l.params,(r===-1||new Date().getTime()-l.time<=r)&&(e.state.loading=!1)),o.current=fi(t,f=>{e.setState({data:f})})},[]),Wt(()=>{var l;(l=o.current)===null||l===void 0||l.call(o)}),t?{onBefore:l=>{const f=u(t,l);return!f||!Object.hasOwnProperty.call(f,"data")?{}:r===-1||new Date().getTime()-f.time<=r?{loading:!1,data:f==null?void 0:f.data,error:void 0,returnNow:!0}:{data:f==null?void 0:f.data,error:void 0}},onRequest:(l,f)=>{let d=rg(t);return d&&d!==a.current?{servicePromise:d}:(d=l(...f),a.current=d,ig(t,d),{servicePromise:d})},onSuccess:(l,f)=>{var d;t&&((d=o.current)===null||d===void 0||d.call(o),c(t,{data:l,params:f,time:new Date().getTime()}),o.current=fi(t,m=>{e.setState({data:m})}))},onMutate:l=>{var f;t&&((f=o.current)===null||f===void 0||f.call(o),c(t,{data:l,params:e.state.params,time:new Date().getTime()}),o.current=fi(t,d=>{e.setState({data:d})}))}}:{}},ag=(e,{debounceWait:t,debounceLeading:n,debounceTrailing:r,debounceMaxWait:i})=>{const s=p.useRef(),o=p.useMemo(()=>{const a={};return n!==void 0&&(a.leading=n),r!==void 0&&(a.trailing=r),i!==void 0&&(a.maxWait=i),a},[n,r,i]);return p.useEffect(()=>{if(t){const a=e.runAsync.bind(e);return s.current=Ks(c=>{c()},t,o),e.runAsync=(...c)=>new Promise((u,l)=>{var f;(f=s.current)===null||f===void 0||f.call(s,()=>{a(...c).then(u).catch(l)})}),()=>{var c;(c=s.current)===null||c===void 0||c.cancel(),e.runAsync=a}}},[t,o]),t?{onCancel:()=>{var a;(a=s.current)===null||a===void 0||a.cancel()}}:{}},cg=(e,{loadingDelay:t})=>{const n=p.useRef();if(!t)return{};const r=()=>{n.current&&clearTimeout(n.current)};return{onBefore:()=>(r(),n.current=setTimeout(()=>{e.setState({loading:!0})},t),{loading:!1}),onFinally:()=>{r()},onCancel:()=>{r()}}},Bt=!!(typeof window<"u"&&window.document&&window.document.createElement);function di(){return Bt?document.visibilityState!=="hidden":!0}const $t=[];function ug(e){return $t.push(e),function(){const n=$t.indexOf(e);$t.splice(n,1)}}if(Bt){const e=()=>{if(!!di())for(let t=0;t<$t.length;t++){const n=$t[t];n()}};window.addEventListener("visibilitychange",e,!1)}const lg=(e,{pollingInterval:t,pollingWhenHidden:n=!0,pollingErrorRetryCount:r=-1})=>{const i=p.useRef(),s=p.useRef(),o=p.useRef(0),a=()=>{var c;i.current&&clearTimeout(i.current),(c=s.current)===null||c===void 0||c.call(s)};return ui(()=>{t||a()},[t]),t?{onBefore:()=>{a()},onError:()=>{o.current+=1},onSuccess:()=>{o.current=0},onFinally:()=>{r===-1||r!==-1&&o.current<=r?i.current=setTimeout(()=>{!n&&!di()?s.current=ug(()=>{e.refresh()}):e.refresh()},t):o.current=0},onCancel:()=>{a()}}:{}};function fg(e,t){let n=!1;return(...r)=>{n||(n=!0,e(...r),setTimeout(()=>{n=!1},t))}}function dg(){return Bt&&typeof navigator.onLine<"u"?navigator.onLine:!0}const Ht=[];function hg(e){return Ht.push(e),function(){const n=Ht.indexOf(e);n>-1&&Ht.splice(n,1)}}if(Bt){const e=()=>{if(!(!di()||!dg()))for(let t=0;t<Ht.length;t++){const n=Ht[t];n()}};window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1)}const pg=(e,{refreshOnWindowFocus:t,focusTimespan:n=5e3})=>{const r=p.useRef(),i=()=>{var s;(s=r.current)===null||s===void 0||s.call(r)};return p.useEffect(()=>{if(t){const s=fg(e.refresh.bind(e),n);r.current=hg(()=>{s()})}return()=>{i()}},[t,n]),Wt(()=>{i()}),{}},mg=(e,{retryInterval:t,retryCount:n})=>{const r=p.useRef(),i=p.useRef(0),s=p.useRef(!1);return n?{onBefore:()=>{s.current||(i.current=0),s.current=!1,r.current&&clearTimeout(r.current)},onSuccess:()=>{i.current=0},onError:()=>{if(i.current+=1,n===-1||i.current<=n){const o=t!=null?t:Math.min(1e3*Math.pow(2,i.current),3e4);r.current=setTimeout(()=>{s.current=!0,e.refresh()},o)}else i.current=0},onCancel:()=>{i.current=0,r.current&&clearTimeout(r.current)}}:{}},gg=(e,{throttleWait:t,throttleLeading:n,throttleTrailing:r})=>{const i=p.useRef(),s={};return n!==void 0&&(s.leading=n),r!==void 0&&(s.trailing=r),p.useEffect(()=>{if(t){const o=e.runAsync.bind(e);return i.current=Bh(a=>{a()},t,s),e.runAsync=(...a)=>new Promise((c,u)=>{var l;(l=i.current)===null||l===void 0||l.call(i,()=>{o(...a).then(c).catch(u)})}),()=>{var a;e.runAsync=o,(a=i.current)===null||a===void 0||a.cancel()}}},[t,n,r]),t?{onCancel:()=>{var o;(o=i.current)===null||o===void 0||o.cancel()}}:{}},yg=e=>{ci&&(ft(e)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof e}".`)),p.useEffect(()=>{e==null||e()},[])},vg=()=>{const[,e]=p.useState({});return p.useCallback(()=>e({}),[])};class bg{constructor(t,n,r,i={}){this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Object.assign(Object.assign(Object.assign({},this.state),{loading:!n.manual}),i)}setState(t={}){this.state=Object.assign(Object.assign({},this.state),t),this.subscribe()}runPluginHandler(t,...n){const r=this.pluginImpls.map(i=>{var s;return(s=i[t])===null||s===void 0?void 0:s.call(i,...n)}).filter(Boolean);return Object.assign({},...r)}runAsync(...t){var n,r,i,s,o,a,c,u,l,f;return Qm(this,void 0,void 0,function*(){this.count+=1;const d=this.count,m=this.runPluginHandler("onBefore",t),{stopNow:y=!1,returnNow:g=!1}=m,E=ya(m,["stopNow","returnNow"]);if(y)return new Promise(()=>{});if(this.setState(Object.assign({loading:!0,params:t},E)),g)return Promise.resolve(E.data);(r=(n=this.options).onBefore)===null||r===void 0||r.call(n,t);try{let{servicePromise:k}=this.runPluginHandler("onRequest",this.serviceRef.current,t);k||(k=this.serviceRef.current(...t));const L=yield k;return d!==this.count?new Promise(()=>{}):(this.setState({data:L,error:void 0,loading:!1}),(s=(i=this.options).onSuccess)===null||s===void 0||s.call(i,L,t),this.runPluginHandler("onSuccess",L,t),(a=(o=this.options).onFinally)===null||a===void 0||a.call(o,t,L,void 0),d===this.count&&this.runPluginHandler("onFinally",t,L,void 0),L)}catch(k){if(d!==this.count)return new Promise(()=>{});throw this.setState({error:k,loading:!1}),(u=(c=this.options).onError)===null||u===void 0||u.call(c,k,t),this.runPluginHandler("onError",k,t),(f=(l=this.options).onFinally)===null||f===void 0||f.call(l,t,void 0,k),d===this.count&&this.runPluginHandler("onFinally",t,void 0,k),k}})}run(...t){this.runAsync(...t).catch(n=>{this.options.onError||console.error(n)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(t){const n=ft(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n})}}function wg(e,t={},n=[]){const{manual:r=!1}=t,i=ya(t,["manual"]),s=Object.assign({manual:r},i),o=zt(e),a=vg(),c=wa(()=>{const u=n.map(l=>{var f;return(f=l==null?void 0:l.onInit)===null||f===void 0?void 0:f.call(l,s)}).filter(Boolean);return new bg(o,s,a,Object.assign({},...u))},[]);return c.options=s,c.pluginImpls=n.map(u=>u(c,s)),yg(()=>{if(!r){const u=c.state.params||t.defaultParams||[];c.run(...u)}}),Wt(()=>{c.cancel()}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:H(c.cancel.bind(c)),refresh:H(c.refresh.bind(c)),refreshAsync:H(c.refreshAsync.bind(c)),run:H(c.run.bind(c)),runAsync:H(c.runAsync.bind(c)),mutate:H(c.mutate.bind(c))}}function _a(e,t,n){return wg(e,t,[...n||[],ag,cg,lg,pg,gg,eg,og,mg])}function Sa(e=!1,t){const[n,r]=p.useState(e),i=p.useMemo(()=>{const s=t===void 0?!e:t;return{toggle:()=>r(l=>l===e?s:e),set:l=>r(l),setLeft:()=>r(e),setRight:()=>r(s)}},[]);return[n,i]}function _g(e=!1){const[t,{toggle:n,set:r}]=Sa(e),i=p.useMemo(()=>({toggle:n,set:a=>r(!!a),setTrue:()=>r(!0),setFalse:()=>r(!1)}),[]);return[t,i]}function In(e,t){if(!Bt)return;if(!e)return t;let n;return ft(e)?n=e():"current"in e?n=e.current:n=e,n}const ka=(e=>(n,r,i)=>{const s=p.useRef(!1),o=p.useRef([]),a=p.useRef([]),c=p.useRef();e(()=>{var u;const f=(Array.isArray(i)?i:[i]).map(d=>In(d));if(!s.current){s.current=!0,o.current=f,a.current=r,c.current=n();return}(f.length!==o.current.length||!li(f,o.current)||!li(r,a.current))&&((u=c.current)===null||u===void 0||u.call(c),o.current=f,a.current=r,c.current=n())}),Wt(()=>{var u;(u=c.current)===null||u===void 0||u.call(c),s.current=!1})})(p.useEffect);var Ea={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Zh,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",c="hour",u="day",l="week",f="month",d="quarter",m="year",y="date",g="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|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,L={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(b){var w=["th","st","nd","rd"],v=b%100;return"["+b+(w[(v-20)%10]||w[v]||w[0])+"]"}},I=function(b,w,v){var M=String(b);return!M||M.length>=w?b:""+Array(w+1-M.length).join(v)+b},F={s:I,z:function(b){var w=-b.utcOffset(),v=Math.abs(w),M=Math.floor(v/60),S=v%60;return(w<=0?"+":"-")+I(M,2,"0")+":"+I(S,2,"0")},m:function b(w,v){if(w.date()<v.date())return-b(v,w);var M=12*(v.year()-w.year())+(v.month()-w.month()),S=w.clone().add(M,f),D=v-S<0,N=w.clone().add(M+(D?-1:1),f);return+(-(M+(v-S)/(D?S-N:N-S))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:f,y:m,w:l,d:u,D:y,h:c,m:a,s:o,ms:s,Q:d}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},R="en",A={};A[R]=L;var O=function(b){return b instanceof _},$=function b(w,v,M){var S;if(!w)return R;if(typeof w=="string"){var D=w.toLowerCase();A[D]&&(S=D),v&&(A[D]=v,S=D);var N=w.split("-");if(!S&&N.length>1)return b(N[0])}else{var j=w.name;A[j]=w,S=j}return!M&&S&&(R=S),S||!M&&R},x=function(b,w){if(O(b))return b.clone();var v=typeof w=="object"?w:{};return v.date=b,v.args=arguments,new _(v)},C=F;C.l=$,C.i=O,C.w=function(b,w){return x(b,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var _=function(){function b(v){this.$L=$(v.locale,null,!0),this.parse(v)}var w=b.prototype;return w.parse=function(v){this.$d=function(M){var S=M.date,D=M.utc;if(S===null)return new Date(NaN);if(C.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var N=S.match(E);if(N){var j=N[2]-1||0,V=(N[7]||"0").substring(0,3);return D?new Date(Date.UTC(N[1],j,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)):new Date(N[1],j,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)}}return new Date(S)}(v),this.$x=v.x||{},this.init()},w.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},w.$utils=function(){return C},w.isValid=function(){return this.$d.toString()!==g},w.isSame=function(v,M){var S=x(v);return this.startOf(M)<=S&&S<=this.endOf(M)},w.isAfter=function(v,M){return x(v)<this.startOf(M)},w.isBefore=function(v,M){return this.endOf(M)<x(v)},w.$g=function(v,M,S){return C.u(v)?this[M]:this.set(S,v)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(v,M){var S=this,D=!!C.u(M)||M,N=C.p(v),j=function(Be,ne){var pe=C.w(S.$u?Date.UTC(S.$y,ne,Be):new Date(S.$y,ne,Be),S);return D?pe:pe.endOf(u)},V=function(Be,ne){return C.w(S.toDate()[Be].apply(S.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ne)),S)},G=this.$W,q=this.$M,Oe=this.$D,he="set"+(this.$u?"UTC":"");switch(N){case m:return D?j(1,0):j(31,11);case f:return D?j(1,q):j(0,q+1);case l:var Te=this.$locale().weekStart||0,Me=(G<Te?G+7:G)-Te;return j(D?Oe-Me:Oe+(6-Me),q);case u:case y:return V(he+"Hours",0);case c:return V(he+"Minutes",1);case a:return V(he+"Seconds",2);case o:return V(he+"Milliseconds",3);default:return this.clone()}},w.endOf=function(v){return this.startOf(v,!1)},w.$set=function(v,M){var S,D=C.p(v),N="set"+(this.$u?"UTC":""),j=(S={},S[u]=N+"Date",S[y]=N+"Date",S[f]=N+"Month",S[m]=N+"FullYear",S[c]=N+"Hours",S[a]=N+"Minutes",S[o]=N+"Seconds",S[s]=N+"Milliseconds",S)[D],V=D===u?this.$D+(M-this.$W):M;if(D===f||D===m){var G=this.clone().set(y,1);G.$d[j](V),G.init(),this.$d=G.set(y,Math.min(this.$D,G.daysInMonth())).$d}else j&&this.$d[j](V);return this.init(),this},w.set=function(v,M){return this.clone().$set(v,M)},w.get=function(v){return this[C.p(v)]()},w.add=function(v,M){var S,D=this;v=Number(v);var N=C.p(M),j=function(q){var Oe=x(D);return C.w(Oe.date(Oe.date()+Math.round(q*v)),D)};if(N===f)return this.set(f,this.$M+v);if(N===m)return this.set(m,this.$y+v);if(N===u)return j(1);if(N===l)return j(7);var V=(S={},S[a]=r,S[c]=i,S[o]=n,S)[N]||1,G=this.$d.getTime()+v*V;return C.w(G,this)},w.subtract=function(v,M){return this.add(-1*v,M)},w.format=function(v){var M=this,S=this.$locale();if(!this.isValid())return S.invalidDate||g;var D=v||"YYYY-MM-DDTHH:mm:ssZ",N=C.z(this),j=this.$H,V=this.$m,G=this.$M,q=S.weekdays,Oe=S.months,he=function(ne,pe,qt,bt){return ne&&(ne[pe]||ne(M,D))||qt[pe].slice(0,bt)},Te=function(ne){return C.s(j%12||12,ne,"0")},Me=S.meridiem||function(ne,pe,qt){var bt=ne<12?"AM":"PM";return qt?bt.toLowerCase():bt},Be={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:C.s(G+1,2,"0"),MMM:he(S.monthsShort,G,Oe,3),MMMM:he(Oe,G),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:he(S.weekdaysMin,this.$W,q,2),ddd:he(S.weekdaysShort,this.$W,q,3),dddd:q[this.$W],H:String(j),HH:C.s(j,2,"0"),h:Te(1),hh:Te(2),a:Me(j,V,!0),A:Me(j,V,!1),m:String(V),mm:C.s(V,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:N};return D.replace(k,function(ne,pe){return pe||Be[ne]||N.replace(":","")})},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(v,M,S){var D,N=C.p(M),j=x(v),V=(j.utcOffset()-this.utcOffset())*r,G=this-j,q=C.m(this,j);return q=(D={},D[m]=q/12,D[f]=q,D[d]=q/3,D[l]=(G-V)/6048e5,D[u]=(G-V)/864e5,D[c]=G/i,D[a]=G/r,D[o]=G/n,D)[N]||G,S?q:C.a(q)},w.daysInMonth=function(){return this.endOf(f).$D},w.$locale=function(){return A[this.$L]},w.locale=function(v,M){if(!v)return this.$L;var S=this.clone(),D=$(v,M,!0);return D&&(S.$L=D),S},w.clone=function(){return C.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},b}(),P=_.prototype;return x.prototype=P,[["$ms",s],["$s",o],["$m",a],["$H",c],["$W",u],["$M",f],["$y",m],["$D",y]].forEach(function(b){P[b[1]]=function(w){return this.$g(w,b[0],b[1])}}),x.extend=function(b,w){return b.$i||(b(w,_,x),b.$i=!0),x},x.locale=$,x.isDayjs=O,x.unix=function(b){return x(1e3*b)},x.en=A[R],x.Ls=A,x.p={},x})})(Ea);const Ca=Ea.exports;function jn(e,t,n={}){const r=zt(t);ka(()=>{const i=In(n.target,window);if(!(i!=null&&i.addEventListener))return;const s=o=>r.current(o);return i.addEventListener(e,s,{capture:n.capture,once:n.once,passive:n.passive}),()=>{i.removeEventListener(e,s,{capture:n.capture})}},[e,n.capture,n.once,n.passive],n.target)}const hi=(e,t)=>{const{onEnter:n,onLeave:r,onChange:i}=t||{},[s,{setTrue:o,setFalse:a}]=_g(!1);return jn("mouseenter",()=>{n==null||n(),o(),i==null||i(!0)},{target:e}),jn("mouseleave",()=>{r==null||r(),a(),i==null||i(!1)},{target:e}),s},Sg=(e,t=[])=>mh(e,t),kg=(e,t,n)=>{const r=p.useRef(),i=p.useRef(0);Sg(t,r.current)||(r.current=t,i.current+=1),ka(e,[i.current],n)},Eg=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),zn={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};Eg?zn.meta=[91,93]:zn.meta=[91,92];const pi={ctrl:e=>e.ctrlKey,shift:e=>e.shiftKey,alt:e=>e.altKey,meta:e=>e.type==="keyup"?zn.meta.includes(e.keyCode):e.metaKey};function Cg(e){const t=Object.keys(pi).reduce((n,r)=>pi[r](e)?n+1:n,0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function xa(e,t,n){if(!e.key)return!1;if(va(t))return e.keyCode===t;const r=t.split(".");let i=0;for(const s of r){const o=pi[s],a=zn[s.toLowerCase()];(o&&o(e)||a&&a===e.keyCode)&&i++}return n?i===r.length&&Cg(e)===r.length:i===r.length}function xg(e,t){return ft(e)?e:qm(e)||va(e)?n=>xa(n,e,t):Array.isArray(e)?n=>e.some(r=>xa(n,r,t)):()=>Boolean(e)}const Ag=["keydown"];function ke(e,t,n){const{events:r=Ag,target:i,exactMatch:s=!1,useCapture:o=!1}=n||{},a=zt(t),c=zt(e);kg(()=>{var u;const l=In(i,window);if(!l)return;const f=d=>{var m;if(xg(c.current,s)(d))return(m=a.current)===null||m===void 0?void 0:m.call(a,d)};for(const d of r)(u=l==null?void 0:l.addEventListener)===null||u===void 0||u.call(l,d,f,o);return()=>{var d;for(const m of r)(d=l==null?void 0:l.removeEventListener)===null||d===void 0||d.call(l,m,f,o)}},[r],i)}function Og(e){const t=p.useRef(0),[n,r]=p.useState(e),i=p.useCallback(s=>{cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{r(s)})},[]);return Wt(()=>{cancelAnimationFrame(t.current)}),[n,i]}const Tg={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Mg=e=>{const[t,n]=Og(Tg);return jn("mousemove",r=>{const{screenX:i,screenY:s,clientX:o,clientY:a,pageX:c,pageY:u}=r,l={screenX:i,screenY:s,clientX:o,clientY:a,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},f=In(e);if(f){const{left:d,top:m,width:y,height:g}=f.getBoundingClientRect();l.elementPosX=d+window.pageXOffset,l.elementPosY=m+window.pageYOffset,l.elementX=c-l.elementPosX,l.elementY=u-l.elementPosY,l.elementW=y,l.elementH=g}n(l)},{target:()=>document}),t},de={modalMask:"_modal-mask_1fjgs_1",modal:"_modal_1fjgs_1",modalHeader:"_modal-header_1fjgs_23",modalBody:"_modal-body_1fjgs_30",modalTitle:"_modal-title_1fjgs_35",btnClose:"_btn-close_1fjgs_42"};let Ut=0;const Lg=()=>{Ut++,document.body.style.overflow="hidden"},Rg=()=>{Ut--,Ut<0&&(Ut=0),Ut===0&&(document.body.style.overflow="overlay")};function mi({show:e,onHide:t,children:n,clsModalMask:r,clsModal:i,hideWhenMaskOnClick:s=!1,hideWhenEsc:o=!1}){p.useLayoutEffect(()=>{e?Lg():Rg()},[e]);const a=p.useRef(null),c=Ao(),{bg:u,c:l}=p.useMemo(()=>{const g=window.getComputedStyle(document.body)["background-color"],E=window.getComputedStyle(document.body).color;return{bg:g,c:E}},[c]),f=p.useMemo(()=>c?{"--bg":u,"--c":l,backgroundColor:u,color:l}:{},[u,l,c]),d=p.useId(),m=p.useMemo(()=>{const g=document.createElement("div");return g.setAttribute("data-id","base-modal-"+d),document.body.appendChild(g),g},[]),y=H(g=>{var E;(E=a.current)!=null&&E.contains(g.target)||s&&t()});return ke("esc",()=>{!e||o&&t()}),e?me.createPortal(h("div",{className:X(de.modalMask,r),onClick:y,children:h("div",{className:X(de.modal,i),style:f,ref:a,children:n})}),m):null}const gi=e=>h(ut,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});var dt=1e3,ht=dt*60,pt=ht*60,Xe=pt*24,Pg=Xe*7,Dg=Xe*365.25,Ng=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return Fg(e);if(n==="number"&&isFinite(e))return t.long?jg(e):Ig(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Fg(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*Dg;case"weeks":case"week":case"w":return n*Pg;case"days":case"day":case"d":return n*Xe;case"hours":case"hour":case"hrs":case"hr":case"h":return n*pt;case"minutes":case"minute":case"mins":case"min":case"m":return n*ht;case"seconds":case"second":case"secs":case"sec":case"s":return n*dt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function Ig(e){var t=Math.abs(e);return t>=Xe?Math.round(e/Xe)+"d":t>=pt?Math.round(e/pt)+"h":t>=ht?Math.round(e/ht)+"m":t>=dt?Math.round(e/dt)+"s":e+"ms"}function jg(e){var t=Math.abs(e);return t>=Xe?Wn(e,t,Xe,"day"):t>=pt?Wn(e,t,pt,"hour"):t>=ht?Wn(e,t,ht,"minute"):t>=dt?Wn(e,t,dt,"second"):e+" ms"}function Wn(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+" "+r+(i?"s":"")}const Aa="_toast-container_mcbuq_1",Oa="_single-line_mcbuq_17",Uv={toastContainer:Aa,singleLine:Oa};function fe(e,t=2e3){let n=typeof t=="number"?t:Ng(t);const r=document.createElement("div");r.className=Aa,r.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&r.classList.add(Oa),document.body.appendChild(r),setTimeout(()=>r.remove(),n)}const zg="\u8BF7\u6C42\u5931\u8D25, \u8BF7\u91CD\u8BD5 !!!",Wg="\u64CD\u4F5C\u5931\u8D25, \u8BF7\u91CD\u8BD5 !!!";function Ta(){return fe(zg)}function Ma(){return fe(Wg)}function Bg(e){const t=it({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const i=this.data.find(s=>s[0]===n);return i?i[1]=r:this.data.push([n,r]),this},get(n){var r;return(r=this.data.find(i=>i[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(i=>i[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this)})},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const La="27eb53fc9058f8c3";async function $g(){var c,u;const t=(await ir.default.get("https://passport.bilibili.com/login/app/third",{params:{appkey:La,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:"\u4F60\u5FC5\u987B\u767B\u5F55B\u7AD9\u4E4B\u540E\u624D\u80FD\u4F7F\u7528\u6388\u6743",json:t};if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri))return{errmsg:"\u65E0\u6CD5\u83B7\u5F97\u6388\u6743\u7F51\u5740",json:t};const n=t.data.confirm_uri;let r;const i=new Promise(l=>{window.addEventListener("message",f=>{if(f.origin!="https://www.mcbbs.net"||!f.data)return;const d=f.data.match(/access_key=([0-9a-z]{32})/);if(!d||!d[1])return l({errmsg:"\u6CA1\u6709\u83B7\u5F97\u5339\u914D\u7684\u5BC6\u94A5"});l(d[1])}),r=setTimeout(()=>{l({errmsg:"\u83B7\u53D6\u6388\u6743\u8D85\u65F6"})},10*1e3)}),s=document.createElement("iframe");s.src=n,s.style.display="none",document.body.appendChild(s);function o(){s.remove(),r&&(clearTimeout(r),r=null)}const a=await i;return o(),a}async function Hg(){const e=await $g();if(typeof e=="object"&&"errmsg"in e){fe(e.errmsg);return}const t=e;return re.accessKey=t,fe("\u83B7\u53D6\u6210\u529F"),t}function Ug(){re.accessKey="",fe("\u5DF2\u5220\u9664 access_key")}const Ra="https://api.bilibili.com",Pa="https://app.bilibili.com",Bn=ir.default.create({baseURL:Ra});Bn.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 $n=ir.default.create({adapter:Tc.default});$n.interceptors.request.use(function(e){return e.params={appkey:La,access_key:re.accessKey||"",...e.params},e},function(e){return Promise.reject(e)}),$n.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r)}catch{}}return e});function Gg(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw fe("\u627E\u4E0D\u5230 csrf token, \u8BF7\u68C0\u67E5\u662F\u5426\u767B\u5F55"),new Error("\u627E\u4E0D\u5230 csrf token, \u8BF7\u68C0\u67E5\u662F\u5426\u767B\u5F55");return e}const Gt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Hn=typeof AbortController=="function"?AbortController:class{constructor(){this.signal=new Da}abort(){this.signal.dispatchEvent("abort")}},Vg=typeof AbortSignal=="function",Yg=typeof Hn.AbortSignal=="function",Da=Vg?AbortSignal:Yg?Hn.AbortController:class{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(t){if(t==="abort"){this.aborted=!0;const n={type:t,target:this};this.onabort(n),this._listeners.forEach(r=>r(n),this)}}onabort(){}addEventListener(t,n){t==="abort"&&this._listeners.push(n)}removeEventListener(t,n){t==="abort"&&(this._listeners=this._listeners.filter(r=>r!==n))}},yi=new Set,vi=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;Un(n)&&wi(n,`${e} option`,`options.${t}`,Je)},bi=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(Un(n)){const{prototype:r}=Je,{get:i}=Object.getOwnPropertyDescriptor(r,e);wi(n,`${e} method`,`cache.${t}()`,i)}},Kg=(e,t)=>{const n=`LRU_CACHE_PROPERTY_${e}`;if(Un(n)){const{prototype:r}=Je,{get:i}=Object.getOwnPropertyDescriptor(r,e);wi(n,`${e} property`,`cache.${t}`,i)}},Na=(...e)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...e):console.error(...e)},Un=e=>!yi.has(e),wi=(e,t,n,r)=>{yi.add(e);const i=`The ${t} is deprecated. Please use ${n} instead.`;Na(i,"DeprecationWarning",e,r)},We=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Fa=e=>We(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Gn:null:null;class Gn extends Array{constructor(t){super(t),this.fill(0)}}class Xg{constructor(t){if(t===0)return[];const n=Fa(t);this.heap=new n(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class Je{constructor(t={}){const{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,disposeAfter:l,noDisposeOnSet:f,noUpdateTTL:d,maxSize:m=0,maxEntrySize:y=0,sizeCalculation:g,fetchMethod:E,fetchContext:k,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:I}=t,{length:F,maxAge:R,stale:A}=t instanceof Je?{}:t;if(n!==0&&!We(n))throw new TypeError("max option must be a nonnegative integer");const O=n?Fa(n):Array;if(!O)throw new Error("invalid max value: "+n);if(this.max=n,this.maxSize=m,this.maxEntrySize=y||this.maxSize,this.sizeCalculation=g||F,this.sizeCalculation){if(!this.maxSize&&!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(this.fetchMethod=E||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=k,!this.fetchMethod&&k!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(n).fill(null),this.valList=new Array(n).fill(null),this.next=new O(n),this.prev=new O(n),this.head=0,this.tail=0,this.free=new Xg(n),this.initialFill=1,this.size=0,typeof u=="function"&&(this.dispose=u),typeof l=="function"?(this.disposeAfter=l,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!L,this.maxEntrySize!==0){if(this.maxSize!==0&&!We(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!We(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!c||!!A,this.noDeleteOnStaleGet=!!I,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=We(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||R||0,this.ttl){if(!We(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const $="LRU_CACHE_UNBOUNDED";Un($)&&(yi.add($),Na("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",$,Je))}A&&vi("stale","allowStale"),R&&vi("maxAge","ttl"),F&&vi("length","sizeCalculation")}getRemainingTTL(t){return this.has(t,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Gn(this.max),this.starts=new Gn(this.max),this.setItemTTL=(r,i,s=Gt.now())=>{if(this.starts[r]=i!==0?s:0,this.ttls[r]=i,i!==0&&this.ttlAutopurge){const o=setTimeout(()=>{this.isStale(r)&&this.delete(this.keyList[r])},i+1);o.unref&&o.unref()}},this.updateItemAge=r=>{this.starts[r]=this.ttls[r]!==0?Gt.now():0};let t=0;const n=()=>{const r=Gt.now();if(this.ttlResolution>0){t=r;const i=setTimeout(()=>t=0,this.ttlResolution);i.unref&&i.unref()}return r};this.getRemainingTTL=r=>{const i=this.keyMap.get(r);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(t||n())},this.isStale=r=>this.ttls[r]!==0&&this.starts[r]!==0&&(t||n())-this.starts[r]>this.ttls[r]}updateItemAge(t){}setItemTTL(t,n,r){}isStale(t){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Gn(this.max),this.removeItemSize=t=>{this.calculatedSize-=this.sizes[t],this.sizes[t]=0},this.requireSize=(t,n,r,i)=>{if(this.isBackgroundFetch(n))return 0;if(!We(r))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(r=i(n,t),!We(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return r},this.addItemSize=(t,n)=>{if(this.sizes[t]=n,this.maxSize){const r=this.maxSize-this.sizes[t];for(;this.calculatedSize>r;)this.evict(!0)}this.calculatedSize+=this.sizes[t]}}removeItemSize(t){}addItemSize(t,n){}requireSize(t,n,r,i){if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let n=this.tail;!(!this.isValidIndex(n)||((t||!this.isStale(n))&&(yield n),n===this.head));)n=this.prev[n]}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let n=this.head;!(!this.isValidIndex(n)||((t||!this.isStale(n))&&(yield n),n===this.tail));)n=this.next[n]}isValidIndex(t){return this.keyMap.get(this.keyList[t])===t}*entries(){for(const t of this.indexes())yield[this.keyList[t],this.valList[t]]}*rentries(){for(const t of this.rindexes())yield[this.keyList[t],this.valList[t]]}*keys(){for(const t of this.indexes())yield this.keyList[t]}*rkeys(){for(const t of this.rindexes())yield this.keyList[t]}*values(){for(const t of this.indexes())yield this.valList[t]}*rvalues(){for(const t of this.rindexes())yield this.valList[t]}[Symbol.iterator](){return this.entries()}find(t,n={}){for(const r of this.indexes())if(t(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],n)}forEach(t,n=this){for(const r of this.indexes())t.call(n,this.valList[r],this.keyList[r],this)}rforEach(t,n=this){for(const r of this.rindexes())t.call(n,this.valList[r],this.keyList[r],this)}get prune(){return bi("prune","purgeStale"),this.purgeStale}purgeStale(){let t=!1;for(const n of this.rindexes({allowStale:!0}))this.isStale(n)&&(this.delete(this.keyList[n]),t=!0);return t}dump(){const t=[];for(const n of this.indexes({allowStale:!0})){const r=this.keyList[n],i=this.valList[n],o={value:this.isBackgroundFetch(i)?i.__staleWhileFetching:i};if(this.ttls){o.ttl=this.ttls[n];const a=Gt.now()-this.starts[n];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[n]),t.unshift([r,o])}return t}load(t){this.clear();for(const[n,r]of t){if(r.start){const i=Date.now()-r.start;r.start=Gt.now()-i}this.set(n,r.value,r)}}dispose(t,n,r){}set(t,n,{ttl:r=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL}={}){if(o=this.requireSize(t,n,o,a),this.maxEntrySize&&o>this.maxEntrySize)return this.delete(t),this;let u=this.size===0?void 0:this.keyMap.get(t);if(u===void 0)u=this.newIndex(),this.keyList[u]=t,this.valList[u]=n,this.keyMap.set(t,u),this.next[this.tail]=u,this.prev[u]=this.tail,this.tail=u,this.size++,this.addItemSize(u,o),c=!1;else{const l=this.valList[u];n!==l&&(this.isBackgroundFetch(l)?l.__abortController.abort():s||(this.dispose(l,t,"set"),this.disposeAfter&&this.disposed.push([l,t,"set"])),this.removeItemSize(u),this.valList[u]=n,this.addItemSize(u,o)),this.moveToTail(u)}if(r!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),c||this.setItemTTL(u,r,i),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){const t=this.valList[this.head];return this.evict(!0),t}}evict(t){const n=this.head,r=this.keyList[n],i=this.valList[n];return this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,r,"evict"),this.disposeAfter&&this.disposed.push([i,r,"evict"])),this.removeItemSize(n),t&&(this.keyList[n]=null,this.valList[n]=null,this.free.push(n)),this.head=this.next[n],this.keyMap.delete(r),this.size--,n}has(t,{updateAgeOnHas:n=this.updateAgeOnHas}={}){const r=this.keyMap.get(t);return r!==void 0&&!this.isStale(r)?(n&&this.updateItemAge(r),!0):!1}peek(t,{allowStale:n=this.allowStale}={}){const r=this.keyMap.get(t);if(r!==void 0&&(n||!this.isStale(r))){const i=this.valList[r];return this.isBackgroundFetch(i)?i.__staleWhileFetching:i}}backgroundFetch(t,n,r,i){const s=n===void 0?void 0:this.valList[n];if(this.isBackgroundFetch(s))return s;const o=new Hn,a={signal:o.signal,options:r,context:i},c=d=>(o.signal.aborted||this.set(t,d,a.options),d),u=d=>{if(this.valList[n]===f&&(!r.noDeleteOnFetchRejection||f.__staleWhileFetching===void 0?this.delete(t):this.valList[n]=f.__staleWhileFetching),f.__returned===f)throw d},l=d=>d(this.fetchMethod(t,s,a)),f=new Promise(l).then(c,u);return f.__abortController=o,f.__staleWhileFetching=s,f.__returned=null,n===void 0?(this.set(t,f,a.options),n=this.keyMap.get(t)):this.valList[n]=f,f}isBackgroundFetch(t){return t&&typeof t=="object"&&typeof t.then=="function"&&Object.prototype.hasOwnProperty.call(t,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(t,"__returned")&&(t.__returned===t||t.__returned===null)}async fetch(t,{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,fetchContext:f=this.fetchContext,forceRefresh:d=!1}={}){if(!this.fetchMethod)return this.get(t,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i});const m={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:l};let y=this.keyMap.get(t);if(y===void 0){const g=this.backgroundFetch(t,y,m,f);return g.__returned=g}else{const g=this.valList[y];if(this.isBackgroundFetch(g))return n&&g.__staleWhileFetching!==void 0?g.__staleWhileFetching:g.__returned=g;if(!d&&!this.isStale(y))return this.moveToTail(y),r&&this.updateItemAge(y),g;const E=this.backgroundFetch(t,y,m,f);return n&&E.__staleWhileFetching!==void 0?E.__staleWhileFetching:E.__returned=E}}get(t,{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet}={}){const s=this.keyMap.get(t);if(s!==void 0){const o=this.valList[s],a=this.isBackgroundFetch(o);return this.isStale(s)?a?n?o.__staleWhileFetching:void 0:(i||this.delete(t),n?o:void 0):a?void 0:(this.moveToTail(s),r&&this.updateItemAge(s),o)}}connect(t,n){this.prev[n]=t,this.next[t]=n}moveToTail(t){t!==this.tail&&(t===this.head?this.head=this.next[t]:this.connect(this.prev[t],this.next[t]),this.connect(this.tail,t),this.tail=t)}get del(){return bi("del","delete"),this.delete}delete(t){let n=!1;if(this.size!==0){const r=this.keyMap.get(t);if(r!==void 0)if(n=!0,this.size===1)this.clear();else{this.removeItemSize(r);const i=this.valList[r];this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,t,"delete"),this.disposeAfter&&this.disposed.push([i,t,"delete"])),this.keyMap.delete(t),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return n}clear(){for(const t of this.rindexes({allowStale:!0})){const n=this.valList[t];if(this.isBackgroundFetch(n))n.__abortController.abort();else{const r=this.keyList[t];this.dispose(n,r,"delete"),this.disposeAfter&&this.disposed.push([n,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return bi("reset","clear"),this.clear}get length(){return Kg("length","size"),this.size}static get AbortController(){return Hn}static get AbortSignal(){return Da}}var Jg=Je;const Zg=Jg;async function Qg(e){return(await Bn.get("/pvideo",{params:{aid:e}})).data.data}async function qg(e){return[]}const _i=new Zg({max:200});async function ey(e){if(_i.has(e))return _i.get(e);const[t,n]=await Promise.all([Qg(e),qg()]);return _i.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Ia(e){return async function(n){const r=new FormData;r.append("aid",n),r.append("csrf",Gg());const s=(await Bn.post("/x/v2/history/toview/"+e,r,{withCredentials:!0})).data,o=(s==null?void 0:s.code)===0&&(s==null?void 0:s.message)==="0";return o||fe((s==null?void 0:s.message)||"\u51FA\u9519\u4E86"),o}}const ty=Ia("add"),ny=Ia("del"),ja=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){var a;const s=(await $n.get(Pa+t,{params:{goto:n.goto,id:n.param,mid:n.mid,rid:n.tid,tag_id:(a=n.tag)==null?void 0:a.tag_id,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return(s==null?void 0:s.code)===0&&(s==null?void 0:s.message)==="0"}},ry=ja("dislike"),iy=ja("cancel"),Ze={modal:"_modal_g0in4_1",titleDesc:"_title-desc_g0in4_4",reasonList:"_reason-list_g0in4_8",reason:"_reason_g0in4_8",reasonNo:"_reason-no_g0in4_29",tips:"_tips_g0in4_43"},Vn=Bg();function sy(){return st(Vn)}function oy(e){const t=sy();if(!!e)return t.get(e)}function ay({show:e,onHide:t,item:n}){const[r,i]=p.useState(!1),s=H(async c=>{if(!n)return;let u=!1,l=null;try{i(!0),u=await ry(n,c.id)}catch(f){l=f}finally{i(!1)}if(l)return console.error(l.stack||l),Ta();u?fe("\u5DF2\u6807\u8BB0\u4E0D\u60F3\u770B"):Ma(),u&&(Vn.set(n.param,{...c}),t())}),o=p.useMemo(()=>{var c;return((c=n==null?void 0:n.three_point)==null?void 0:c.dislike_reasons)||[]},[n]),a=["1","2","3","4","5","6"];return ke(a,c=>{if(!e||!n||!a.includes(c.key))return;const u=Number(c.key)-1,l=document.querySelectorAll(`.${Ze.reason}`)[u]||null;l==null||l.click()}),T(mi,{show:e,onHide:t,clsModal:Ze.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[T("div",{className:de.modalHeader,children:[T("div",{className:de.modalTitle,children:["\u6211\u4E0D\u60F3\u770B",h("span",{className:Ze.titleDesc,children:"(\u9009\u62E9\u540E\u5C06\u51CF\u5C11\u76F8\u4F3C\u5185\u5BB9\u63A8\u8350)"})]}),h("div",{className:"space",style:{flex:1}}),h(gi,{onClick:t})]}),T("div",{className:de.modalBody,children:[h("div",{className:Ze.reasonList,children:o.map((c,u)=>T("button",{className:Ze.reason,"data-id":c.id,onClick:()=>s(c),disabled:r,children:[h("span",{className:Ze.reasonNo,children:u+1}),c.name]},c.id))}),T("div",{className:Ze.tips,children:[h(ut,{name:"Info",size:15,style:{marginRight:5}}),"\u4F7F\u7528\u5220\u9664\u952E\u6253\u5F00\u5F39\u6846, \u6570\u5B57\u952E\u9009\u62E9, Esc \u5173\u95ED"]})]})]})}const Yn={show:!1,onHide:Wa,item:null},za=it({value:Yn.show}),cy=function(){return st(za).value};function Wa(){Ba({show:!1,item:null})}function Ba(e){Object.assign(Yn,e),za.value=Yn.show,uy().render(h(ay,{...Yn,onHide:Wa}))}let Si;function uy(){if(!Si){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Si=fn(e)}return Si}function $a(e){(e==null?void 0:e.param)&&Vn.has(e.param)||Ba({show:!0,item:e})}function ly(e){if(!e)return"00:00";const t=Math.trunc(e/3600);e-=t*3600;const n=Math.trunc(e/60);e-=n*60;const i=[t,n,e];return i[0]===0&&i.shift(),i.map(o=>Ih(o.toString(),2,"0")).join(":")}function ki(e){if(!e)return"";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}\u4E07`}const Q={biliVideoCard:"_bili-video-card_1a93a_1",imageWrapper:"_image-wrapper_1a93a_4",previewCardWrapper:"_preview-card-wrapper_1a93a_8",previewCardInner:"_preview-card-inner_1a93a_21",watchLater:"_watch-later_1a93a_25",badge:"_badge_1a93a_28",recommendReason:"_recommend-reason_1a93a_36",bangumiDesc:"_bangumi-desc_1a93a_51",btnDislike:"_btn-dislike_1a93a_54",btnDislikeIcon:"_btn-dislike-icon_1a93a_69",btnDislikeTip:"_btn-dislike-tip_1a93a_76",dislikedWrapper:"_disliked-wrapper_1a93a_91",dislikeContentCover:"_dislike-content-cover_1a93a_105",dislikeContentCoverInner:"_dislike-content-cover-inner_1a93a_111",dislikeIcon:"_dislike-icon_1a93a_122",dislikeReason:"_dislike-reason_1a93a_125",dislikeDesc:"_dislike-desc_1a93a_129",dislikeContentAction:"_dislike-content-action_1a93a_133"};function Ei(e,t){return isNaN(e)?t:e}function fy({className:e,videoDuration:t,pvideo:n,enterCursorState:r}){const i=p.useRef(null),s=Mg(i),o={videoDuration:t,pvideo:n,cursorState:s,elWidth:Ei(s.elementW,r.width),elHeight:Ei(s.elementH,r.height),relativeX:Ei(s.elementX,r.relativeX)};return h("div",{ref:i,className:X(Q.previewCardWrapper,e),children:n?h(dy,{...o}):!1})}function dy({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,relativeX:i}){var A;let s=0,o=0;n&&i&&!isNaN(i)&&!isNaN(n)&&(s=i/n,s<0&&(s=0),s>1&&(s=1),o=Math.floor((e||0)*s));let a=p.useMemo(()=>{const O=(t==null?void 0:t.index)||[];let $=py(O,o);return $!==-1?$:o>O[O.length-1]?($=Math.floor(O.length*s)-1,$<0&&($=0),$):0},[t,o]);const{img_x_len:c,img_y_len:u,img_x_size:l,img_y_size:f}=t,d=u*c;a=a+1;const m=Math.floor(a/d),y=a-m*d,g=((A=t.image)==null?void 0:A[m])||"",E=Math.floor(y/c)+1,k=y-(E-1)*c,L=n*c,I=r*u,F=(E-1)*r,R=(k-1)*n;return h("div",{className:Q.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${R}px -${F}px`,backgroundSize:`${L}px ${I}px`},children:h(hy,{progress:s})})}function hy({progress:e}){return h("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:h("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${e*100}%`}})})}function py(e,t){var a;let n=0,r=e.length-1,i=-1;for(;n<=r;){const c=Math.floor((n+r)/2),u=e[c];if(t===u)return c;u<t?(n=c+1,i=c):r=c-1}if(i===-1)return-1;const s=e[i],o=(a=e[i+1])!=null?a:0;return s<t&&t<o?i:-1}const my=Ca().format("YYYY"),gy=e=>{if(!e)return"";const t=Ca.unix(e);return t.format("YYYY")===my?t.format("M-D"):t.format("YY-M-D")},yy=e=>(e||"").replace(/^http:\/\//,"https://"),Ci=p.memo(function({style:t,className:n,item:r,loading:i,...s}){i=i!=null?i:!r;const o=T("div",{className:X("bili-video-card__skeleton",{hide:!i}),children:[h("div",{className:"bili-video-card__skeleton--cover"}),h("div",{className:"bili-video-card__skeleton--info",children:T("div",{className:"bili-video-card__skeleton--right",children:[h("p",{className:"bili-video-card__skeleton--text"}),h("p",{className:"bili-video-card__skeleton--text short"}),h("p",{className:"bili-video-card__skeleton--light"})]})})]}),a=oy((r==null?void 0:r.api)==="app"&&r.param);return T("div",{style:t,className:X("bili-video-card",Q.biliVideoCard,n),"data-report":"partition_recommend.content",...s,children:[o,!i&&r&&(a?h(vy,{item:r,dislikedReason:a}):h(by,{item:r}))]})}),vy=p.memo(function({dislikedReason:t,item:n}){const r=H(async()=>{if(!(t!=null&&t.id))return;let i=!1,s=null;try{i=await iy(n,t.id)}catch(o){s=o}if(s)return console.error(s.stack||s),Ta();i?fe("\u5DF2\u64A4\u9500"):Ma(),i&&Vn.delete(n.param)});return T("div",{className:X(Q.dislikedWrapper),children:[h("div",{className:Q.dislikeContentCover,children:T("div",{className:Q.dislikeContentCoverInner,children:[h(ut,{name:"DistraughtFace",size:32,className:Q.dislikeIcon}),h("div",{className:Q.dislikeReason,children:t==null?void 0:t.name}),h("div",{className:Q.dislikeDesc,children:(t==null?void 0:t.toast)||"\u5C06\u51CF\u5C11\u6B64\u7C7B\u5185\u5BB9\u63A8\u8350"})]})}),h("div",{className:Q.dislikeContentAction,children:T("button",{onClick:r,children:[h(ut,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"\u64A4\u9500"]})})]})}),by=p.memo(function({item:t}){var Sc,kc,Ec;const n=p.useRef(null),[r,i]=p.useState(()=>({width:0,height:0,relativeX:0}));jn("mouseenter",ae=>{var Cc;const Le=(Cc=n.current)==null?void 0:Cc.getBoundingClientRect();if(!Le)return;const{width:wt,height:Xi,x:pv}=Le;i({width:wt,height:Xi,relativeX:ae.pageX-window.pageXOffset-pv})},{target:n});const s=hi(n),o=p.useRef(null),a=hi(o),[c,u]=p.useState(!1),{accessKey:l}=je(),f=Boolean(l),d=t.api==="pc",m=t.api==="app",y=String(d?t.id:t.param),g=d?t.bvid:"",E=t.goto,k=d?t.stat.view:void 0,L=d?t.stat.like:void 0,I=t.title,F=d?t.pic:t.cover,R=d?t.pubdate:void 0,A=(d?t.duration:(Sc=t.player_args)==null?void 0:Sc.duration)||0,O=d?t.owner.name:t.args.up_name;d&&t.owner.face;const $=d?t.owner.mid:t.args.up_id,x=void 0,C=d?void 0:t.badge,_=d?void 0:((kc=t.desc_button)==null?void 0:kc.text)||"",P=d?(Ec=t.rcmd_reason)==null?void 0:Ec.content:t.rcmd_reason,b=p.useMemo(()=>gy(R),[R]),w=p.useMemo(()=>yy(F),[F]),[v,M]=p.useState(null),[S,D]=p.useState(!1),N=H(async()=>{if(!v&&!S)try{D(!0);const ae=await ey(y);M(ae)}finally{D(!1)}});p.useEffect(()=>{s&&N()},[s]);let j=!1;const V=H(async ae=>{if(ae.preventDefault(),j)return;j=!0;const Le=c?ny:ty;let wt=!1;try{wt=await Le(y)}finally{j=!1}wt&&u(Xi=>!Xi)}),G=p.useRef(null),q=hi(G),Oe=H(ae=>{ae.stopPropagation(),ae.preventDefault(),m&&$a(t)}),he=t.goto==="bangumi",Te=t.goto==="av",Me=d?Te&&g?`/video/${g}`:t.uri:Te?`/video/av${t.param}`:t.uri,Be=p.useMemo(()=>ly(A),[A]),ne=p.useMemo(()=>ki(k),[k]),pe=p.useMemo(()=>ki(L),[L]),qt=p.useMemo(()=>ki(x),[x]),bt=d?pe:qt,hv=H(ae=>{if(!re.openInIINAWhenRightClick)return;const Le=new URL(Me,location.href).href,wt=`iina://open?url=${encodeURIComponent(Le)}`;window.open(wt,"_self"),ae.preventDefault()}),nr=({text:ae,iconSvgName:Le})=>T("span",{className:"bili-video-card__stats--item",children:[h("svg",{className:"bili-video-card__stats--icon",children:h("use",{xlinkHref:Le})}),h("span",{className:"bili-video-card__stats--text",children:ae})]}),Ki={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-agree"},wc={1:"play",2:"like",3:"danmaku",4:"bangumiFollow"},_c=ae=>{const Le=wc[ae]||wc[1];return Ki[Le]};return T("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:hv,children:[h("a",{href:Me,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:T("div",{className:"bili-video-card__image __scale-player-wrap",ref:n,children:[T("div",{className:X("bili-video-card__image--wrap",Q.imageWrapper),children:[T("picture",{className:"v-img bili-video-card__cover",children:[h("source",{srcSet:`${w}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),h("source",{srcSet:`${w}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),h("img",{src:`${w}@672w_378h_1c_!web-home-common-cover`,alt:I,loading:"eager"})]}),s&&h(fy,{videoDuration:A,pvideo:v==null?void 0:v.pvideoData,enterCursorState:r}),T("div",{className:`bili-watch-later ${Q.watchLater}`,style:{display:s?"flex":"none"},ref:o,onClick:V,children:[h("svg",{className:"bili-watch-later__icon",children:h("use",{xlinkHref:c?"#widget-watch-save":"#widget-watch-later"})}),h("span",{className:"bili-watch-later__tip",style:{display:a?"block":"none"},children:c?"\u79FB\u9664":"\u7A0D\u540E\u518D\u770B"})]}),m&&f&&T("div",{ref:G,className:Q.btnDislike,onClick:Oe,style:{display:s?"flex":"none"},children:[h("svg",{className:Q.btnDislikeIcon,children:h("use",{xlinkHref:"#widget-close"})}),h("span",{className:Q.btnDislikeTip,style:{display:q?"block":"none"},children:"\u6211\u4E0D\u60F3\u770B"})]})]}),h("div",{className:"bili-video-card__mask",children:T("div",{className:"bili-video-card__stats",children:[h("div",{className:"bili-video-card__stats--left",children:d?T(ze,{children:[nr({text:ne,iconSvgName:Ki.play}),nr({text:E==="av"?pe:bt,iconSvgName:Ki.like})]}):T(ze,{children:[nr({iconSvgName:_c(t.cover_left_icon_1),text:t.cover_left_text_1}),nr({iconSvgName:_c(t.cover_left_icon_2),text:t.cover_left_text_2})]})}),h("span",{className:"bili-video-card__stats__duration",children:Te&&Be})]})})]})}),h("div",{className:"bili-video-card__info __scale-disable",children:T("div",{className:"bili-video-card__info--right",children:[h("a",{href:Me,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:h("h3",{className:"bili-video-card__info--tit",title:I,children:I})}),T("p",{className:"bili-video-card__info--bottom",children:[Te&&T("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${$}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[P?h("span",{className:Q.recommendReason,children:P}):h("svg",{className:"bili-video-card__info--owner__up",children:h("use",{xlinkHref:"#widget-up"})}),h("span",{className:"bili-video-card__info--author",children:O}),b&&T("span",{className:"bili-video-card__info--date",children:["\xB7 ",b]})]}),he&&T("a",{className:"bili-video-card__info--owner",href:Me,target:"_blank",children:[h("span",{className:Q.badge,children:C||""}),h("span",{className:Q.bangumiDesc,children:_||""})]})]})]})})]})}),Ha="bilibili-app-recommend";var Kn={exports:{}},xi={exports:{}},Vt={exports:{}},Y=Vt.exports={},Ee,Ce;function Ai(){throw new Error("setTimeout has not been defined")}function Oi(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ee=setTimeout:Ee=Ai}catch{Ee=Ai}try{typeof clearTimeout=="function"?Ce=clearTimeout:Ce=Oi}catch{Ce=Oi}})();function Ua(e){if(Ee===setTimeout)return setTimeout(e,0);if((Ee===Ai||!Ee)&&setTimeout)return Ee=setTimeout,setTimeout(e,0);try{return Ee(e,0)}catch{try{return Ee.call(null,e,0)}catch{return Ee.call(this,e,0)}}}function wy(e){if(Ce===clearTimeout)return clearTimeout(e);if((Ce===Oi||!Ce)&&clearTimeout)return Ce=clearTimeout,clearTimeout(e);try{return Ce(e)}catch{try{return Ce.call(null,e)}catch{return Ce.call(this,e)}}}var Fe=[],mt=!1,Qe,Xn=-1;function _y(){!mt||!Qe||(mt=!1,Qe.length?Fe=Qe.concat(Fe):Xn=-1,Fe.length&&Ga())}function Ga(){if(!mt){var e=Ua(_y);mt=!0;for(var t=Fe.length;t;){for(Qe=Fe,Fe=[];++Xn<t;)Qe&&Qe[Xn].run();Xn=-1,t=Fe.length}Qe=null,mt=!1,wy(e)}}Y.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Fe.push(new Va(e,t)),Fe.length===1&&!mt&&Ua(Ga)};function Va(e,t){this.fun=e,this.array=t}Va.prototype.run=function(){this.fun.apply(null,this.array)},Y.title="browser",Y.browser=!0,Y.env={},Y.argv=[],Y.version="",Y.versions={};function Ie(){}Y.on=Ie,Y.addListener=Ie,Y.once=Ie,Y.off=Ie,Y.removeListener=Ie,Y.removeAllListeners=Ie,Y.emit=Ie,Y.prependListener=Ie,Y.prependOnceListener=Ie,Y.listeners=function(e){return[]},Y.binding=function(e){throw new Error("process.binding is not supported")},Y.cwd=function(){return"/"},Y.chdir=function(e){throw new Error("process.chdir is not supported")},Y.umask=function(){return 0};var Ti;typeof Object.create=="function"?Ti=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:Ti=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t};const Ya=Ti;var Sy=/%[sdj%]/g;function gt(e){if(!Kt(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(xe(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,i=r.length,s=String(e).replace(Sy,function(a){if(a==="%%")return"%";if(n>=i)return a;switch(a){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}default:return a}}),o=r[n];n<i;o=r[++n])Yt(o)||!qe(o)?s+=" "+o:s+=" "+xe(o);return s}function Mi(e,t){if(Ae(global.process))return function(){return Mi(e,t).apply(this,arguments)};if(Vt.exports.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(Vt.exports.throwDeprecation)throw new Error(t);Vt.exports.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}return r}var Jn={},Li;function Ka(e){if(Ae(Li)&&(Li=Vt.exports.env.NODE_DEBUG||""),e=e.toUpperCase(),!Jn[e])if(new RegExp("\\b"+e+"\\b","i").test(Li)){var t=0;Jn[e]=function(){var n=gt.apply(null,arguments);console.error("%s %d: %s",e,t,n)}}else Jn[e]=function(){};return Jn[e]}function xe(e,t){var n={seen:[],stylize:Ey};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Qn(t)?n.showHidden=t:t&&ji(n,t),Ae(n.showHidden)&&(n.showHidden=!1),Ae(n.depth)&&(n.depth=2),Ae(n.colors)&&(n.colors=!1),Ae(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=ky),Zn(n,e,n.depth)}xe.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]},xe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ky(e,t){var n=xe.styles[t];return n?"\x1B["+xe.colors[n][0]+"m"+e+"\x1B["+xe.colors[n][1]+"m":e}function Ey(e,t){return e}function Cy(e){var t={};return e.forEach(function(n,r){t[n]=!0}),t}function Zn(e,t,n){if(e.customInspect&&t&&Zt(t.inspect)&&t.inspect!==xe&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return Kt(r)||(r=Zn(e,r,n)),r}var i=xy(e,t);if(i)return i;var s=Object.keys(t),o=Cy(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),Jt(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return Ri(t);if(s.length===0){if(Zt(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Xt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(qn(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Jt(t))return Ri(t)}var c="",u=!1,l=["{","}"];if(Di(t)&&(u=!0,l=["[","]"]),Zt(t)){var f=t.name?": "+t.name:"";c=" [Function"+f+"]"}if(Xt(t)&&(c=" "+RegExp.prototype.toString.call(t)),qn(t)&&(c=" "+Date.prototype.toUTCString.call(t)),Jt(t)&&(c=" "+Ri(t)),s.length===0&&(!u||t.length==0))return l[0]+c+l[1];if(n<0)return Xt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var d;return u?d=Ay(e,t,n,o,s):d=s.map(function(m){return Pi(e,t,n,o,m,u)}),e.seen.pop(),Oy(d,c,l)}function xy(e,t){if(Ae(t))return e.stylize("undefined","undefined");if(Kt(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(Ni(t))return e.stylize(""+t,"number");if(Qn(t))return e.stylize(""+t,"boolean");if(Yt(t))return e.stylize("null","null")}function Ri(e){return"["+Error.prototype.toString.call(e)+"]"}function Ay(e,t,n,r,i){for(var s=[],o=0,a=t.length;o<a;++o)ec(t,String(o))?s.push(Pi(e,t,n,r,String(o),!0)):s.push("");return i.forEach(function(c){c.match(/^\d+$/)||s.push(Pi(e,t,n,r,c,!0))}),s}function Pi(e,t,n,r,i,s){var o,a,c;if(c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},c.get?c.set?a=e.stylize("[Getter/Setter]","special"):a=e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),ec(r,i)||(o="["+i+"]"),a||(e.seen.indexOf(c.value)<0?(Yt(n)?a=Zn(e,c.value,null):a=Zn(e,c.value,n-1),a.indexOf(`
`)>-1&&(s?a=a.split(`
`).map(function(u){return"  "+u}).join(`
`).substr(2):a=`
`+a.split(`
`).map(function(u){return"   "+u}).join(`
`))):a=e.stylize("[Circular]","special")),Ae(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function Oy(e,t,n){var r=e.reduce(function(i,s){return s.indexOf(`
`)>=0,i+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+`
 `)+" "+e.join(`,
  `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function Di(e){return Array.isArray(e)}function Qn(e){return typeof e=="boolean"}function Yt(e){return e===null}function Xa(e){return e==null}function Ni(e){return typeof e=="number"}function Kt(e){return typeof e=="string"}function Ja(e){return typeof e=="symbol"}function Ae(e){return e===void 0}function Xt(e){return qe(e)&&Fi(e)==="[object RegExp]"}function qe(e){return typeof e=="object"&&e!==null}function qn(e){return qe(e)&&Fi(e)==="[object Date]"}function Jt(e){return qe(e)&&(Fi(e)==="[object Error]"||e instanceof Error)}function Zt(e){return typeof e=="function"}function Za(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function Qa(e){return Buffer.isBuffer(e)}function Fi(e){return Object.prototype.toString.call(e)}function Ii(e){return e<10?"0"+e.toString(10):e.toString(10)}var Ty=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function My(){var e=new Date,t=[Ii(e.getHours()),Ii(e.getMinutes()),Ii(e.getSeconds())].join(":");return[e.getDate(),Ty[e.getMonth()],t].join(" ")}function qa(){console.log("%s - %s",My(),gt.apply(null,arguments))}function ji(e,t){if(!t||!qe(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function ec(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ly=qh(Object.freeze(Object.defineProperty({__proto__:null,format:gt,deprecate:Mi,debuglog:Ka,inspect:xe,isArray:Di,isBoolean:Qn,isNull:Yt,isNullOrUndefined:Xa,isNumber:Ni,isString:Kt,isSymbol:Ja,isUndefined:Ae,isRegExp:Xt,isObject:qe,isDate:qn,isError:Jt,isFunction:Zt,isPrimitive:Za,isBuffer:Qa,log:qa,inherits:Ya,_extend:ji,default:{inherits:Ya,_extend:ji,log:qa,isBuffer:Qa,isPrimitive:Za,isFunction:Zt,isError:Jt,isDate:qn,isObject:qe,isRegExp:Xt,isUndefined:Ae,isSymbol:Ja,isString:Kt,isNumber:Ni,isNullOrUndefined:Xa,isNull:Yt,isBoolean:Qn,isArray:Di,inspect:xe,deprecate:Mi,format:gt,debuglog:Ka}},Symbol.toStringTag,{value:"Module"}))).format;function Ry(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal")}function Py(e,t){return function(){var n=this,r=[].slice.call(arguments);Ry();var i=new AbortController;return r.push(i.signal),new Promise(function(s,o){var a=setTimeout(function(){var c=new er(t);o(c),i.abort()},t);Promise.resolve(e.apply(n,r)).then(function(c){clearTimeout(a),s(c)},function(c){clearTimeout(a),o(c)})})}}class er extends Error{constructor(t){super(),this.timeout=t,this.message=Ly("timeout of %sms exceed",t),Error.captureStackTrace(this,er)}}xi.exports=Py,xi.exports.TimeoutError=er;const tc=xi.exports,Dy=tc.TimeoutError;Kn.exports=function(t,n){const r=t;n=n||{};const i=n.times||5,s=n.timeout;s&&(t=tc(t,s));const o=n.onerror;return async function(){const a=this,c=[].slice.call(arguments),u=new Array(i);for(let l=0;l<i;l++){let f,d;try{f=await t.apply(a,c)}catch(m){d=m}if(!d)return f;if(d instanceof TypeError)throw d;if(d instanceof Ny)throw d.originalError;u[l]=d,o&&o(d,l)}throw new nc({times:i,timeout:s,fn:r,errors:u})}};class nc extends Error{constructor(t){super(),this.times=t.times,this.timeout=t.timeout,this.fn=t.fn,this.errors=t.errors,this.name="RetryError",this.message=`tried function ${this.fn.name||"<anonymous>"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor)}}class Ny 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 Fy=Kn.exports.RetryError=nc;Kn.exports.TimeoutError=Dy;class zi extends Error{constructor(n){super();rr(this,"json");Error.captureStackTrace(this,zi),this.json=n,this.message=n.message||JSON.stringify(n)}}async function Iy(){var r;const t=(await $n.get(Pa+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+(Math.random()*10).toFixed(0)}})).data;if(!t.data){if(t.code===-663)throw new zi(t);return fe(`${Ha}: \u672A\u77E5\u9519\u8BEF, \u8BF7\u8054\u7CFB\u5F00\u53D1\u8005

  code=${t.code} message=${t.message||""}`,"5s"),[]}return((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const jy=Kn.exports(Iy,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Ha,t,e)}});async function zy(){try{return await jy()}catch(e){if(e instanceof Fy){console.error(e.errors);const t=[gt("\u8BF7\u6C42\u51FA\u9519, \u5DF2\u91CD\u8BD5%s\u6B21:",e.times),...e.errors.map((n,r)=>gt("  %s) %s",r+1,n.message)),"","\u8BF7\u91CD\u65B0\u83B7\u53D6 access_key \u540E\u91CD\u8BD5~"].join(`
`);fe(t,"5s")}throw e}}async function rc(e){let t=[];const n=new Array(e).fill(0).map(i=>zy());return t=(await Promise.all(n)).reduce((i,s)=>i.concat(s||[]),[]),t=so(t,i=>i.param),t.map(i=>({...i,api:"app",uniqId:i.param+"-"+crypto.randomUUID()}))}async function Wy(){return rc(2)}async function By(e){const t=e.page++;return(await Bn.get("/x/web-interface/index/top/rcmd",{baseURL:Ra,withCredentials:!0,params:{fresh_type:3,version:1,ps:14,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function ic(e,t){let n=(await Promise.all(new Array(e).fill(0).map(()=>By(t)))).flat();return n=so(n,r=>r.id),n.forEach(r=>{var i,s;((i=r.rcmd_reason)==null?void 0:i.reason_type)===1&&((s=r.rcmd_reason).content||(s.content="\u5DF2\u5173\u6CE8"))}),n.map(r=>({...r,uniqId:r.id+"-"+crypto.randomUUID(),api:"pc"}))}async function $y(e){return ic(1,e)}async function sc(e,t){return re.usePcDesktopApi?ic(e,t):rc(e)}async function Hy(e){return re.usePcDesktopApi?$y(e):Wy()}var oe={exports:{}},Uy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Gy=Uy,Vy=Gy;function oc(){}function ac(){}ac.resetWarningCache=oc;var Yy=function(){function e(r,i,s,o,a,c){if(c!==Vy){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ac,resetWarningCache:oc};return n.PropTypes=n,n};oe.exports=Yy();class Wi extends p.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n!=null?n:t&&t.parentNode}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const s=document.documentElement||document.body.parentNode||document.body,o=n.pageYOffset!==void 0?n.pageYOffset:s.scrollTop;this.props.isReverse?i=o:i=this.calculateOffset(t,o)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(t,n){return t?this.calculateTopPosition(t)+(t.offsetHeight-n-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:n,element:r,hasMore:i,initialLoad:s,isReverse:o,loader:a,loadMore:c,pageStart:u,ref:l,threshold:f,useCapture:d,useWindow:m,getScrollParent:y,...g}=t;g.ref=k=>{this.scrollComponent=k,l&&l(k)};const E=[n];return i&&(a?o?E.unshift(a):E.push(a):this.defaultLoader&&(o?E.unshift(this.defaultLoader):E.push(this.defaultLoader))),ce.default.createElement(r,g,E)}}rr(Wi,"propTypes",{children:oe.exports.node.isRequired,element:oe.exports.node,hasMore:oe.exports.bool,initialLoad:oe.exports.bool,isReverse:oe.exports.bool,loader:oe.exports.node,loadMore:oe.exports.func.isRequired,pageStart:oe.exports.number,ref:oe.exports.func,getScrollParent:oe.exports.func,threshold:oe.exports.number,useCapture:oe.exports.bool,useWindow:oe.exports.bool}),rr(Wi,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const Bi="_video-grid_14t5i_9",cc="_limit-two-lines_14t5i_19",$i="_internal-testing_14t5i_43",Ky="_limit-one-line_14t5i_50",uc="_narrow-mode_14t5i_71",b1={videoGrid:Bi,limitTwoLines:cc,internalTesting:$i,limitOneLine:Ky,narrowMode:uc};function Xy({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:i,getScrollerRect:s,openDislikeAt:o,changeScrollY:a}){const[c,u]=p.useState(null),l=H(()=>{var b;if(c===null||!i.current)return!1;const _=s(),P=(b=i.current.querySelector(`.${yt.card}.${yt.cardActive}`))==null?void 0:b.getBoundingClientRect();return!(!_||!P||P.top-_.top<-(_.height+P.height)||P.top-_.top>_.height*2+P.height)}),f=H((_,P)=>{if(!e)return;P==null||P.preventDefault();const b=l()?c+_:F();if(b<n){$(n);return}if(b>r){$(r);return}u(b),$(b)}),d=p.useCallback(_=>{f(-1,_)},[]),m=p.useCallback(_=>{f(1,_)},[]);ke("leftarrow",d),ke("rightarrow",m);const y=p.useCallback(_=>{f(-C(),_)},[]),g=p.useCallback(_=>{f(C(),_)},[]);ke("uparrow",y),ke("downarrow",g);const E=H(()=>{!e||u(null)}),k=H(()=>{!e||typeof c!="number"||x(c)}),L=H(()=>{!e||typeof c!="number"||o(c)});ke("esc",E),ke("enter",k),ke("backspace",L);const I=H(()=>{!e||t()});ke("r",I,{exactMatch:!0});function F(){const _=s();if(!_)return 0;const P=A();for(let b=0;b<P.length;b++)if(P[b].getBoundingClientRect().top>=_.top)return b;return 0}const R=`.${yt.card}`;function A(){var _;return[...((_=i.current)==null?void 0:_.querySelectorAll(R))||[]]}function O(_){return A()[_]}function $(_){var v;const P=O(_);(v=P==null?void 0:P.scrollIntoViewIfNeeded)==null||v.call(P,!1);const b=s(),w=P.getBoundingClientRect();if(!(!b||!w)){if(w.top<=b.top){const M=-(b.top-w.top+10);a==null||a({offset:M});return}if(b.bottom-w.bottom<10){const M=10-(b.bottom-w.bottom);a==null||a({offset:M});return}}}function x(_){const P=O(_);if(!P)return;const b=P.querySelector(".bili-video-card__wrap > a");b==null||b.click()}function C(){if(re.useNarrowMode)return 2;let _=lc.get(window.innerWidth);if(_)return _;const P=i.current;if(!P)return 0;const b=window.getComputedStyle(P);return b.display!=="grid"?0:(_=b.gridTemplateColumns.split(" ").length,lc.set(window.innerWidth,_),_)}return{activeIndex:c,clearActiveIndex:E}}const lc=new Map,yt={loader:ai`
    text-align: center;
    line-height: 60px;
    font-size: 120%;
  `,card:ai`
    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:ai`
    border-color: #fb7299;
    border-radius: 6px;
    overflow: hidden;
  `},fc=p.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:i},s)=>{const[o,a]=p.useState([]),[c,u]=p.useState(!1);p.useImperativeHandle(s,()=>({refresh:f}));const l=p.useMemo(()=>({page:1}),[]),f=H(async()=>{await(n==null?void 0:n());try{L(),u(!0),l.page=1,a(await sc(2,l)),L()}finally{u(!1)}}),d=H(async()=>{const F=await sc(2,l);a(R=>[...R,...F])}),{useNarrowMode:m}=je(),y=p.useRef(null),g=H(()=>{var F;if(e){const R=Eo+50;return new DOMRect(0,R,window.innerWidth,window.innerHeight-R)}else return(F=i==null?void 0:i.current)==null?void 0:F.getBoundingClientRect()}),E=cy(),{activeIndex:k,clearActiveIndex:L}=Xy({enabled:t&&!E,refresh:f,maxIndex:o.length-1,containerRef:y,getScrollerRect:g,openDislikeAt(F){const R=o[F];R.api==="app"&&$a(R)},changeScrollY:e?function({offset:F,absolute:R}){const A=document.documentElement;if(typeof F=="number"){A.scrollTop+=F;return}if(typeof R=="number"){A.scrollTop=R;return}}:void 0}),I=Mt();return h(Wi,{pageStart:0,loadMore:d,hasMore:!0,useWindow:e,threshold:360,style:{minHeight:"100%"},loader:h("div",{className:yt.loader,children:"\u52A0\u8F7D\u4E2D..."},0),children:h("div",{ref:y,className:X(Bi,{[$i]:I},{[uc]:m},r),children:o.map((F,R)=>h(Ci,{loading:c,item:F,className:X(yt.card,{[yt.cardActive]:R===k})},F.uniqId))})})});function Hi(){const e=p.useRef(null),{accessKey:t}=je(),n=_a(Hg,{manual:!0}),r=H(async()=>{var a;await n.runAsync()&&((a=e.current)==null||a.set(!1))}),i=Ug,s=H(()=>{const o="https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E";window.open(o,"_blank")});return h(ze,{children:t?T(ze,{children:[h("button",{className:"primary-btn roll-btn",onClick:s,children:h("span",{children:"access_key \u8BF4\u660E"})}),h("button",{className:"primary-btn roll-btn",onClick:()=>r(),disabled:n.loading,children:h("span",{children:"\u91CD\u65B0\u83B7\u53D6 access_key"})}),h("button",{className:"primary-btn roll-btn",onClick:i,children:h("span",{children:"\u5220\u9664 access_key"})})]}):T(ze,{children:[h("button",{className:"primary-btn roll-btn",onClick:s,children:h("span",{children:"access_key \u8BF4\u660E"})}),h("button",{className:"primary-btn roll-btn",onClick:r,disabled:n.loading,children:h("span",{children:"\u83B7\u53D6 access_key"})})]})})}const Ui={container:{name:"8irbms",styles:"display:inline-flex;align-items:center"},checkbox:{name:"4l4ubo",styles:"cursor:pointer;outline:none"},label:{name:"side0b",styles:"margin-left:2px;user-select:none;cursor:pointer"}};function dc({className:e,label:t,checked:n,onChange:r}){const i=p.useCallback(o=>{const a=o.target.checked;r(a)},[r]),s=p.useId();return T("span",{css:Ui.container,className:e,children:[h("input",{type:"checkbox",id:s,checked:n,onChange:i,css:Ui.checkbox}),h("label",{htmlFor:s,css:Ui.label,children:t})]})}function vt({configKey:e,label:t,className:n}){const i=!!je()[e],s=p.useCallback(o=>{vo({[e]:o}),o&&e==="initialShowMore"&&fe("\u5DF2\u5F00\u542F\u81EA\u52A8\u67E5\u770B\u66F4\u591A: \u4E0B\u6B21\u6253\u5F00\u9996\u9875\u65F6\u5C06\u76F4\u63A5\u5C55\u793A\u63A8\u8350\u5F39\u6846")},[]);return h(dc,{className:n,label:t||e,checked:i,onChange:s})}var Jy={name:"1qkltea",styles:"margin-left:5px"};const Zy=function(){const e=Jy;return T(ze,{children:[h(vt,{configKey:"initialShowMore",label:"\u81EA\u52A8\u67E5\u770B\u66F4\u591A",css:e}),h(vt,{configKey:"useNarrowMode",label:"\u542F\u7528\u5C45\u4E2D\u6A21\u5F0F(\u5C45\u4E2D\u4E24\u5217)",css:e})]})},J={configIcon:"_config-icon_4kok1_1",settingsGroup:"_settings-group_4kok1_6",settingsGroupTitle:"_settings-group-title_4kok1_9",settingsGroupContent:"_settings-group-content_4kok1_12",row:"_row_4kok1_18",check:"_check_4kok1_23"};async function hc(){fe("\u5373\u5C06\u5237\u65B0\u7F51\u9875"),await Tt.exports(500),location.reload()}function Qy(){if(!!window.confirm("\u786E\u5B9A?"))return gp(),hc()}function qy({show:e,onHide:t}){const{pureRecommend:n,usePcDesktopApi:r}=je();return T(mi,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[T("div",{className:de.modalHeader,children:[T("div",{className:de.modalTitle,children:[h(ut,{name:"Config",className:J.configIcon}),"\u8BBE\u7F6E\u9879"]}),h("div",{className:"space",style:{flex:1}}),h(gi,{onClick:t})]}),T("main",{className:de.modalBody,children:[!r&&T("div",{className:J.settingsGroup,children:[h("div",{className:J.settingsGroupTitle,children:"Auth"}),h("div",{className:X(J.settingsGroupContent,J.row),children:h(Hi,{})})]}),T("div",{className:J.settingsGroup,children:[h("div",{className:J.settingsGroupTitle,children:"\u5F00\u5173"}),T("div",{className:X(J.settingsGroupContent,J.row),children:[h(dc,{label:"\u5F00\u542F\u7EAF\u63A8\u8350\u6A21\u5F0F",checked:n,className:J.check,onChange:i=>(re.pureRecommend=i,hc())}),h(vt,{configKey:"initialShowMore",label:"\u81EA\u52A8\u67E5\u770B\u66F4\u591A",className:J.check}),h(vt,{configKey:"useNarrowMode",label:"\u542F\u7528\u5C45\u4E2D\u6A21\u5F0F(\u5C45\u4E2D\u4E24\u5217)",className:J.check}),h(vt,{configKey:"usePcDesktopApi",label:"\u4F7F\u7528\u684C\u9762\u7AEF\u63A5\u53E3(\u9ED8\u8BA4\u4F7F\u7528 App \u7AEF\u63A5\u53E3)",className:J.check})]})]}),T("div",{className:J.settingsGroup,children:[h("div",{className:J.settingsGroupTitle,children:"\u9AD8\u7EA7"}),T("div",{className:X(J.settingsGroupContent),children:[h("div",{className:J.row,children:h("button",{className:"primary-btn roll-btn",style:{display:"inline-flex"},onClick:Qy,children:h("span",{children:"\u6062\u590D\u9ED8\u8BA4\u8BBE\u7F6E"})})}),h("div",{className:J.row,style:{marginTop:10},children:h(vt,{configKey:"openInIINAWhenRightClick",label:"\u53F3\u952E\u5728 IINA \u4E2D\u6253\u5F00",className:J.check})})]})]})]})]})}var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});var pc=Gi.useSticky=void 0;const Vi=ce.default;function ev(){const e=(0,Vi.useRef)(null),[t,n]=(0,Vi.useState)(!1);return(0,Vi.useEffect)(()=>{function r(){if(!e.current)return;const i=e.current.getBoundingClientRect().top,s=parseInt(getComputedStyle(e.current).top),o=i<=s;o&&!t?n(!0):!o&&t&&n(!1)}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r)}},[t]),[e,t]}pc=Gi.useSticky=ev;const mc={expandBtn:"_expand-btn_wdzp9_1",expanded:"_expanded_wdzp9_12"},gc=p.forwardRef(function({children:t},n){const[r,i]=Sa(!1);p.useImperativeHandle(n,()=>i,[i]);const s=h("button",{className:X("primary-btn",mc.expandBtn),onClick:i.toggle,children:h("svg",{className:X({[mc.expanded]:r}),children:h("use",{xlinkHref:"#widget-arrow"})})});return T(ze,{children:[s,r&&t]})}),Qt={modalMask:"_modal-mask_1as61_1",narrowMode:"_narrow-mode_1as61_1",modal:"_modal_1as61_1",modalHeader:"_modal-header_1as61_21",modalBody:"_modal-body_1as61_22",btnRefresh:"_btn-refresh_1as61_25"},tv=p.memo(function({show:t,onHide:n}){const r=p.useRef(null),i=p.useRef(null),{useNarrowMode:s}=je(),o=p.useMemo(()=>({[Qt.narrowMode]:s}),[s]),a=H(()=>{var u;return(u=i.current)==null?void 0:u.refresh()}),c=H(()=>{r.current&&(r.current.scrollTop=0)});return T(mi,{show:t,onHide:n,clsModalMask:X(o),clsModal:X(Qt.modal,o),children:[T("div",{className:X(de.modalHeader,Qt.modalHeader),children:[h("div",{className:de.modalTitle,children:"\u63A8\u8350"}),h("div",{className:"space",style:{flex:1}}),h(gc,{children:h(Zy,{})}),T("button",{className:`primary-btn roll-btn ${Qt.btnRefresh}`,onClick:a,children:[h("svg",{children:h("use",{xlinkHref:"#widget-roll"})}),h("span",{children:"\u6362\u4E00\u6362"})]}),h(gi,{onClick:n})]}),h("div",{className:X(de.modalBody,Qt.modalBody),ref:r,children:h(fc,{ref:i,shortcutEnabled:t,onScrollToTop:c,infiteScrollUseWindow:!1,scrollerRef:r})})]})}),yc={btn:lt`
    padding: 0;
    width: 31px;
    height: 31px;
    border-radius: 50%;
  `,icon:lt`
    svg {
      width: 14px;
      height: 14px;
    }
  `},tr=it({showMore:re.initialShowMore}),nv=function(){return st(tr)},rv=()=>{tr.showMore=!0},iv=()=>{tr.showMore=!1};function vc({onRefresh:e}){const{accessKey:t,pureRecommend:n,usePcDesktopApi:r}=je(),i=p.useRef(null),{showMore:s}=st(tr),[o,a]=p.useState(!1),c=p.useCallback(()=>{a(!0)},[]),u=p.useCallback(()=>{a(!1)},[]),[l,f]=pc();return T(ze,{children:[T("div",{ref:l,className:"area-header",css:[lt`
            margin-bottom: 0;
            height: 50px;
          `,n&&lt`
              position: sticky;
              top: ${Eo}px;
              z-index: 1000;
            `,n&&f&&lt`
              background-color: var(--bg1_float);
              box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
            `,"",""],children:[T("div",{className:"left",children:[h("a",{id:"\u5F71\u89C6",className:"the-world area-anchor","data-id":"25"}),h("svg",{className:"icon",children:h("use",{xlinkHref:"#channel-cinephile"})}),h("a",{className:"title",href:"#",children:h("span",{children:"\u63A8\u8350"})})]}),T("div",{className:"right",children:[!r&&(t?h(gc,{ref:i,children:h(Hi,{})}):h(Hi,{})),h("button",{className:"primary-btn",css:yc.btn,onClick:c,children:h(ut,{name:"Config",css:yc.icon})}),T("button",{className:"primary-btn roll-btn",onClick:e,children:[h("svg",{style:{transform:"rotate(0deg)"},children:h("use",{xlinkHref:"#widget-roll"})}),h("span",{children:"\u6362\u4E00\u6362"})]}),T("button",{className:"primary-btn see-more",onClick:rv,children:[h("span",{children:"\u67E5\u770B\u66F4\u591A"}),h("svg",{children:h("use",{xlinkHref:"#widget-arrow"})})]})]})]}),h(tv,{show:s,onHide:iv}),h(qy,{show:o,onHide:u})]})}const sv={grid:lt`
    /* card=299 col-gap=20  */
    width: ${299*2+20}px;
    margin: 0 auto;
  `};function ov(){const{useNarrowMode:e}=je(),{showMore:t}=nv(),n=p.useRef(null),r=H(()=>{var s;return(s=n.current)==null?void 0:s.refresh()}),i=H(()=>{document.documentElement.scrollTop=0});return T("section",{"data-area":"\u63A8\u8350",children:[h(vc,{onRefresh:r}),h(fc,{ref:n,css:[e&&sv.grid,"",""],shortcutEnabled:!t,infiteScrollUseWindow:!0,onScrollToTop:i})]})}function av(){const e=p.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Mt(),n=p.useMemo(()=>({page:1}),[]),{data:r,loading:i,error:s,refresh:o}=_a(()=>Hy(n));return s&&console.error(s.stack||s),T("section",{"data-area":"\u63A8\u8350",children:[h(vc,{onRefresh:o}),h("div",{className:X(Bi,cc,{[$i]:t}),style:{marginBottom:t?30:0},children:i||s?e.map(a=>h(Ci,{},a)):r.map(a=>h(Ci,{item:a},a.uniqId))})]})}const cv=10*1e3,uv=200;async function bc(e,t){let n=[];const r=()=>{n=Array.from(document.querySelectorAll(e))};r();const i=performance.now();for(;!n.length&&performance.now()-i<cv;)await Tt.exports(uv),r();if(!n.length){console.log("[bilibili-app-recommend]: tryAction timeout, selector = %s",e);return}for(const s of n)await Promise.resolve(t(s))}function Yi(e){return bc(e,t=>t.remove())}(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 lv()})();async function lv(){return Yi(".adblock-tips"),bc("html.gray",e=>e.classList.remove("gray")),re.pureRecommend?dv():fv()}async function fv(){const t=Date.now()+1e4;let n=null;for(;;){if(document.querySelector(".bili-layout > section.bili-grid")){n=document.querySelector(".bili-layout > section.bili-grid");break}if(Mt()&&document.querySelector(".recommended-container")){n=document.querySelector(".recommended-container");break}if(Date.now()>t)break;await Tt.exports(100)}if(!n){console.error("[bilibili-app-recommend]: init fail");return}const r=document.createElement("section");n.insertAdjacentElement("afterend",r),fn(r).render(h(av,{}))}async function dv(){var i,s;Mt()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),Yi(".bili-feed4 .header-channel")):((s=document.querySelector(".bili-layout"))==null||s.remove(),Yi(".bili-footer"));const e=document.createElement("div");e.classList.add(Mt()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const n=document.createElement("section");e==null||e.appendChild(n),fn(n).render(h(ov,{}))}})(React,ReactDOM,axios,axiosGmxhrAdapter);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址