您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Add app like recommend part to bilibili homepage
当前为
// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.1.0 // @description Add app like recommend part to bilibili homepage // @description:zh-CN 为B站首页添加像App一样的推荐 // @author magicdawn // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @homepageURL https://github.com/magicdawn/bilibili-app-recommend // @license MIT // // @match *://www.bilibili.com/* // // @include https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?* // // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // // @grant GM.xmlHttpRequest // @grant GM_xmlhttpRequest // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant unsafeWindow // // @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]/dist/jquery.min.js // @require https://unpkg.com/react@18/umd/react.production.min.js // @require https://unpkg.com/react-dom@18/umd/react-dom.production.min.js // // ==/UserScript== (()=>{var n={803:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i,r=typeof n;if("string"==r||"number"==r)e.push(n);else if(Array.isArray(n))!n.length||(i=a.apply(null,n))&&e.push(i);else if("object"==r)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?e.exports=a.default=a:void 0!==(n=function(){return a}.apply(t,[]))&&(e.exports=n)}()},312:(e,t,n)=>{"use strict";n.d(t,{Fy:()=>r,Kh:()=>l,X3:()=>o,ZP:()=>h,a0:()=>d,d$:()=>a,o4:()=>u,oC:()=>s,o_:()=>c});var t=n(117),t=n.n(t),i=n(488),n=n.n(i)()(t()),r=(n.push([e.id,".modal-mask_HxnuB {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 11003;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.modal_LojaL {\n width: 500px;\n max-height: calc(80vh - 50px);\n border-radius: 10px;\n overflow: hidden;\n background-color: #fff;\n padding: 0 15px 15px 15px;\n display: flex;\n flex-direction: column;\n}\n.modal_LojaL .modal-header_qOmD9 {\n padding-top: 10px;\n padding-bottom: 10px;\n border-bottom: none;\n display: flex;\n align-items: center;\n}\n.modal_LojaL .modal-header_qOmD9 .modal-title_tQHq7 {\n font-size: 1.5rem;\n margin-bottom: 0;\n line-height: 1.5;\n}\nbody.dark .modal_LojaL .modal-header_qOmD9 .btn-refresh_YczJ4,\nbody.dark .modal_LojaL .modal-header_qOmD9 .btn-close_S2u9M {\n color: #eee !important;\n background-color: #333 !important;\n border-color: transparent !important;\n height: auto;\n padding: 8px 12px;\n line-height: 16px;\n font-size: 13px;\n}\n.modal_LojaL .modal-header_qOmD9 .btn-close_S2u9M {\n margin-left: 10px;\n}\n.modal_LojaL .modal-body_gHML9 {\n padding-top: 0;\n flex-grow: 1;\n overflow-y: scroll;\n}\n.reason-list_ukHPg {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.reason_mB3ny {\n color: inherit;\n width: 45%;\n text-align: center;\n line-height: 20px;\n border: 1px solid #fa6a9d;\n margin: 5px;\n padding-top: 10px;\n padding-bottom: 10px;\n}\n",""]),"modal-mask_HxnuB"),s="modal_LojaL",o="modal-header_qOmD9",a="modal-title_tQHq7",l="btn-close_S2u9M",c="modal-body_gHML9",d="reason-list_ukHPg",u="reason_mB3ny";const h=n},890:(e,t,n)=>{"use strict";n.d(t,{Fy:()=>r,Kh:()=>c,X3:()=>o,YD:()=>u,ZP:()=>f,_m:()=>h,d$:()=>a,jm:()=>l,oC:()=>s,o_:()=>d});var t=n(117),t=n.n(t),i=n(488),n=n.n(i)()(t()),r=(n.push([e.id,".modal-mask_FKlSg {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 11000;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.modal_bVes0 {\n width: calc(100vw - 50px);\n height: calc(100vh - 50px);\n border: 1px solid #fa6a9d;\n border-radius: 10px;\n overflow: hidden;\n background-color: #fff;\n padding: 0 15px 15px 15px;\n display: flex;\n flex-direction: column;\n}\n.modal_bVes0 .modal-header_o9hlK {\n padding-top: 10px;\n padding-bottom: 10px;\n border-bottom: none;\n display: flex;\n align-items: center;\n}\n.modal_bVes0 .modal-header_o9hlK .modal-title_Pyz37 {\n font-size: 1.5rem;\n margin-bottom: 0;\n line-height: 1.5;\n}\nbody.dark .modal_bVes0 .modal-header_o9hlK .btn-refresh_wWa1E,\nbody.dark .modal_bVes0 .modal-header_o9hlK .btn-close_F5j3r {\n color: #eee !important;\n background-color: #333 !important;\n border-color: transparent !important;\n height: auto;\n padding: 8px 12px;\n line-height: 16px;\n font-size: 13px;\n}\n.modal_bVes0 .modal-header_o9hlK .btn-close_F5j3r {\n margin-left: 10px;\n}\n.modal_bVes0 .modal-body_YwOQL {\n padding-top: 0;\n flex-grow: 1;\n overflow-y: scroll;\n}\n.list_zBH17 {\n color: inherit;\n}\n.card_uAIRm {\n color: inherit;\n}\n.video-card-list_Ixfjz.is-full .video-card-body.more-class1.more-class2 > * {\n display: block !important;\n}\n.loader_ASd8K {\n text-align: center;\n line-height: 60px;\n font-size: 120%;\n}\n",""]),"modal-mask_FKlSg"),s="modal_bVes0",o="modal-header_o9hlK",a="modal-title_Pyz37",l="btn-refresh_wWa1E",c="btn-close_F5j3r",d="modal-body_YwOQL",u="video-card-list_Ixfjz",h="loader_ASd8K";const f=n},730:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>v,Mi:()=>m,N0:()=>u,NS:()=>b,Nd:()=>c,R0:()=>l,Rs:()=>d,Xm:()=>h,ZP:()=>x,Zl:()=>a,_W:()=>f,be:()=>s,f8:()=>y,k7:()=>r,qH:()=>g,sA:()=>p,sN:()=>o});var t=n(117),t=n.n(t),i=n(488),n=n.n(i)()(t()),r=(n.push([e.id,".bili-video-card_QhI4T {\n position: relative;\n}\n.image-wrapper_xDARo {\n border-radius: '6px';\n overflow: 'hidden';\n}\n.preview-card-wrapper_obs_2 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n overflow: hidden;\n border-top-left-radius: inherit;\n border-top-right-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n.watch-later_QtZPa {\n z-index: 3;\n}\n.badge_oIZF5 {\n color: #fa6a9d;\n border-radius: 2px;\n border: 1px #fa6a9d solid;\n line-height: 20px;\n padding: 0 10px;\n transform: scale(0.8);\n}\n.recommend-reason__Cdvz {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n display: inline-block;\n color: var(--Or5);\n background-color: var(--Or1);\n border-radius: 4px;\n margin-right: 4px;\n font-size: var(--follow-icon-font-size);\n line-height: var(--follow-icon-line-height);\n height: var(--follow-icon-line-height);\n padding: 0 4px;\n cursor: default;\n}\n.bangumi-desc_dFbZr {\n color: default;\n}\n.btn-dislike_n_tLk {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 8px;\n left: 8px;\n width: 28px;\n height: 28px;\n border-radius: 6px;\n cursor: pointer;\n background-color: rgba(33, 33, 33, 0.8);\n z-index: 9;\n transform: translateZ(0);\n}\n.btn-dislike_n_tLk .btn-dislike-icon_ok4uD {\n pointer-events: none;\n user-select: none;\n width: 16px;\n height: 16px;\n color: #fff;\n}\n.btn-dislike_n_tLk .btn-dislike-tip_J1o6Z {\n pointer-events: none;\n user-select: none;\n position: absolute;\n bottom: -6px;\n left: -5px;\n transform: translateY(100%);\n font-size: 12px;\n color: #fff;\n border-radius: 4px;\n line-height: 18px;\n padding: 4px 8px;\n background-color: rgba(0, 0, 0, 0.8);\n white-space: nowrap;\n}\n.disliked-wrapper_YMf_U {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n border: 1px solid #ccc;\n border-radius: 6px;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ {\n border-top-left-radius: 6px;\n border-top-right-radius: 6px;\n padding-top: 56.25%;\n position: relative;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ .dislike-content-cover-inner_nN6hk {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ .dislike-content-cover-inner_nN6hk .dislike-icon_RkFpM {\n color: inherit;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ .dislike-content-cover-inner_nN6hk .dislike-reason_Udnlx {\n font-size: 20px;\n text-align: center;\n}\n.disliked-wrapper_YMf_U .dislike-content-cover_l4QF_ .dislike-content-cover-inner_nN6hk .dislike-desc_rnRJY {\n font-size: 16px;\n text-align: center;\n}\n.disliked-wrapper_YMf_U .dislike-content-action_xracr {\n flex: 1;\n width: 100%;\n border-top: 1px solid #ccc;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.disliked-wrapper_YMf_U .dislike-content-action_xracr button {\n font-size: 18px;\n color: inherit;\n}\n",""]),"bili-video-card_QhI4T"),s="image-wrapper_xDARo",o="preview-card-wrapper_obs_2",a="watch-later_QtZPa",l="badge_oIZF5",c="recommend-reason__Cdvz",d="bangumi-desc_dFbZr",u="btn-dislike_n_tLk",h="btn-dislike-icon_ok4uD",f="btn-dislike-tip_J1o6Z",p="disliked-wrapper_YMf_U",m="dislike-content-cover_l4QF_",v="dislike-content-cover-inner_nN6hk",g="dislike-reason_Udnlx",y="dislike-desc_rnRJY",b="dislike-content-action_xracr";const x=n},181:(e,t,n)=>{"use strict";n.d(t,{GG:()=>o,YD:()=>s,ZP:()=>l,eC:()=>r,zh:()=>a});var t=n(117),t=n.n(t),i=n(488),n=n.n(i)()(t()),r=(n.push([e.id,".grid_L8TTJ {\n color: default;\n}\n@media (min-width: 2200px) {\n .video-card-list_dUuWi.is-full {\n grid-column: span 7 !important;\n }\n .video-card-list_dUuWi.is-full .video-card-body.more-class1.more-class2 {\n grid-column: span 7 !important;\n grid-template-columns: repeat(7, 1fr) !important;\n }\n .video-card-list_dUuWi.is-full .video-card-body.more-class1.more-class2 > * {\n display: block !important;\n }\n .video-card-list_dUuWi.is-full .video-card-body.more-class1.more-class2 > *:nth-of-type(1n + 15) {\n display: none !important;\n }\n}\n.expand-btn_wnnXm {\n padding: 0;\n width: 31px;\n height: 31px;\n border-radius: 50%;\n}\n.expand-btn_wnnXm svg {\n width: 13px;\n height: 13px;\n transform: rotateZ(180deg);\n}\n.expand-btn_wnnXm svg.expanded_Uzmr_ {\n transform: rotateZ(0deg);\n}\n",""]),"grid_L8TTJ"),s="video-card-list_dUuWi",o="expand-btn_wnnXm",a="expanded_Uzmr_";const l=n},913:(e,t,n)=>{"use strict";n.d(t,{C:()=>r,Z:()=>s});var t=n(117),t=n.n(t),i=n(488),n=n.n(i)()(t()),r=(n.push([e.id,".toast-container_LjLRu {\n position: fixed;\n top: 50%;\n left: 50%;\n z-index: 999999;\n padding: 12px 24px;\n font-size: 14px;\n width: 240px;\n margin-left: -120px;\n background: #ffb243;\n color: #fff;\n border-radius: 6px;\n}\n",""]),"toast-container_LjLRu");const s=n},488:e=>{"use strict";e.exports=function(i){var d=[];return d.toString=function(){return this.map(function(e){var t="",n=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),n&&(t+="@layer".concat(0<e[5].length?" ".concat(e[5]):""," {")),t+=i(e),n&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t}).join("")},d.i=function(e,t,n,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(s[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&s[c[0]]||(void 0!==r&&(void 0!==c[5]&&(c[1]="@layer".concat(0<c[5].length?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=r),t&&(c[2]&&(c[1]="@media ".concat(c[2]," {").concat(c[1],"}")),c[2]=t),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),d.push(c))}},d}},117:e=>{"use strict";e.exports=function(e){return e[1]}},624:function(e){e.exports=function(){"use strict";var c=1e3,d=6e4,u=36e5,l="millisecond",f="second",p="minute",m="hour",v="day",g="week",y="month",h="quarter",b="year",x="date",_="Invalid Date",o=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,e={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},s=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},t={s:s,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+s(i,2,"0")+":"+s(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,y),s=n-r<0,o=t.clone().add(i+(s?-1:1),y);return+(-(i+(n-r)/(s?r-o:o-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:y,y:b,w:g,d:v,D:x,h:m,m:p,s:f,ms:l,Q:h}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},k="en",j={},i=(j[k]=e,function(e){return e instanceof a}),r=function e(t,n,i){var r;if(!t)return k;if("string"==typeof t){var s=t.toLowerCase();j[s]&&(r=s),n&&(j[s]=n,r=s);var o=t.split("-");if(!r&&o.length>1)return e(o[0])}else{var a=t.name;j[a]=t,r=a}return!i&&r&&(k=r),r||!i&&k},S=function(e,t){if(i(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new a(n)},N=t,a=(N.l=r,N.i=i,N.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},function(){function e(e){this.$L=r(e.locale,null,!0),this.parse(e)}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(N.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(o);if(i){var r=i[2]-1||0,s=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return N},t.isValid=function(){return!(this.$d.toString()===_)},t.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},t.isAfter=function(e,t){return S(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<S(e)},t.$g=function(e,t,n){return N.u(e)?this[t]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var i=this,r=!!N.u(t)||t,n=N.p(e),s=function(e,t){var n=N.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return r?n:n.endOf(v)},o=function(e,t){return N.w(i.toDate()[e].apply(i.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},a=this.$W,l=this.$M,c=this.$D,d="set"+(this.$u?"UTC":"");switch(n){case b:return r?s(1,0):s(31,11);case y:return r?s(1,l):s(0,l+1);case g:var u=this.$locale().weekStart||0,h=(a<u?a+7:a)-u;return s(r?c-h:c+(6-h),l);case v:case x:return o(d+"Hours",0);case m:return o(d+"Minutes",1);case p:return o(d+"Seconds",2);case f:return o(d+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var n,i=N.p(e),r="set"+(this.$u?"UTC":""),s=(n={},n[v]=r+"Date",n[x]=r+"Date",n[y]=r+"Month",n[b]=r+"FullYear",n[m]=r+"Hours",n[p]=r+"Minutes",n[f]=r+"Seconds",n[l]=r+"Milliseconds",n)[i],o=i===v?this.$D+(t-this.$W):t;if(i===y||i===b){var a=this.clone().set(x,1);a.$d[s](o),a.init(),this.$d=a.set(x,Math.min(this.$D,a.daysInMonth())).$d}else s&&this.$d[s](o);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[N.p(e)]()},t.add=function(n,e){var t,i=this;n=Number(n);var r=N.p(e),s=function(e){var t=S(i);return N.w(t.date(t.date()+Math.round(e*n)),i)};if(r===y)return this.set(y,this.$M+n);if(r===b)return this.set(b,this.$y+n);if(r===v)return s(1);if(r===g)return s(7);var o=(t={},t[p]=d,t[m]=u,t[f]=c,t)[r]||1,a=this.$d.getTime()+n*o;return N.w(a,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var r=this,t=this.$locale();if(!this.isValid())return t.invalidDate||_;var s=e||"YYYY-MM-DDTHH:mm:ssZ",n=N.z(this),i=this.$H,o=this.$m,a=this.$M,l=t.weekdays,c=t.months,d=function(e,t,n,i){return e&&(e[t]||e(r,s))||n[t].slice(0,i)},u=function(e){return N.s(i%12||12,e,"0")},h=t.meridiem||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:N.s(a+1,2,"0"),MMM:d(t.monthsShort,a,c,3),MMMM:d(c,a),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:d(t.weekdaysMin,this.$W,l,2),ddd:d(t.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(i),HH:N.s(i,2,"0"),h:u(1),hh:u(2),a:h(i,o,!0),A:h(i,o,!1),m:String(o),mm:N.s(o,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:n};return s.replace(w,function(e,t){return t||f[e]||n.replace(":","")})},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,t,n){var i,r=N.p(t),s=S(e),o=(s.utcOffset()-this.utcOffset())*d,a=this-s,l=N.m(this,s);return l=(i={},i[b]=l/12,i[y]=l,i[h]=l/3,i[g]=(a-o)/6048e5,i[v]=(a-o)/864e5,i[m]=a/u,i[p]=a/d,i[f]=a/c,i)[r]||a,n?l:N.a(l)},t.daysInMonth=function(){return this.endOf(y).$D},t.$locale=function(){return j[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=r(e,t,!0);return i&&(n.$L=i),n},t.clone=function(){return N.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}()),n=a.prototype;return S.prototype=n,[["$ms",l],["$s",f],["$m",p],["$H",m],["$W",v],["$M",y],["$y",b],["$D",x]].forEach(function(t){n[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),S.extend=function(e,t){return e.$i||(e(t,a,S),e.$i=!0),S},S.locale=r,S.isDayjs=i,S.unix=function(e){return S(1e3*e)},S.en=j[k],S.Ls=j,S.p={},S}()},746:e=>{"use strict";const h=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},t=({clearTimeout:c,setTimeout:d,willResolve:u})=>(n,{value:i,signal:r}={})=>{if(r&&r.aborted)return Promise.reject(h());let s,o,a;const e=c||clearTimeout,l=()=>{e(s),a(h())},t=new Promise((e,t)=>{o=()=>{r&&r.removeEventListener("abort",l),(u?e:t)(i)},a=t,s=(d||setTimeout)(o,n)});return r&&r.addEventListener("abort",l,{once:!0}),t.clear=()=>{e(s),s=null,o()},t};var n=e=>{const i=t({...e,willResolve:!0});return i.reject=t({...e,willResolve:!1}),i.range=(e,t,n)=>i(((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(e,t),n),i};const i=n();i.createWithTimers=n,e.exports=i,e.exports.default=i},555:e=>{const i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date;const a="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new a.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),y=new Set,b=(e,t)=>{var n="LRU_CACHE_OPTION_"+e;_(n)&&r(n,e+" option","options."+t,S)},t=(e,t)=>{var n,i="LRU_CACHE_METHOD_"+e;_(i)&&(n=S["prototype"],n=Object.getOwnPropertyDescriptor(n,e)["get"],r(i,e+" method",`cache.${t}()`,n))},x=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},_=e=>!y.has(e),r=(e,t,n,i)=>{y.add(e);t=`The ${t} is deprecated. Please use ${n} instead.`;x(t,"DeprecationWarning",e,i)},w=e=>e&&e===Math.floor(e)&&0<e&&isFinite(e),k=e=>w(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?s:null:null;class s extends Array{constructor(e){super(e),this.fill(0)}}class j{constructor(e){if(0===e)return[];const t=k(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class S{constructor(e={}){var{max:t=0,ttl:n,ttlResolution:i=1,ttlAutopurge:r,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:u,maxSize:h=0,sizeCalculation:f,fetchMethod:p}=e,{length:e,maxAge:m,stale:v}=e instanceof S?{}:e;if(0!==t&&!w(t))throw new TypeError("max option must be a nonnegative integer");const g=t?k(t):Array;if(!g)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=h,this.sizeCalculation=f||e,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=p||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new g(t),this.prev=new g(t),this.head=0,this.tail=0,this.free=new j(t),this.initialFill=1,this.size=0,"function"==typeof l&&(this.dispose=l),"function"==typeof c?(this.disposeAfter=c,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!u,0!==this.maxSize){if(!w(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!a||!!v,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=w(i)||0===i?i:1,this.ttlAutopurge=!!r,this.ttl=n||m||0,this.ttl){if(!w(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");this.ttlAutopurge||this.max||this.maxSize||(h="LRU_CACHE_UNBOUNDED",_(h)&&(y.add(h),x("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",h,S))),v&&b("stale","allowStale"),m&&b("maxAge","ttl"),e&&b("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new s(this.max),this.starts=new s(this.max),this.setItemTTL=(e,t)=>{if(this.starts[e]=0!==t?i.now():0,0!==(this.ttls[e]=t)&&this.ttlAutopurge){const n=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?i.now():0};let n=0;const t=()=>{var e=i.now();if(0<this.ttlResolution){n=e;const t=setTimeout(()=>n=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=e=>{e=this.keyMap.get(e);return void 0===e?0:0===this.ttls[e]||0===this.starts[e]?1/0:this.starts[e]+this.ttls[e]-(n||t())},this.isStale=e=>0!==this.ttls[e]&&0!==this.starts[e]&&(n||t())-this.starts[e]>this.ttls[e]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new s(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,n,i)=>{if(!w(n)){if(!i)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof i)throw new TypeError("sizeCalculation must be a function");if(n=i(t,e),!w(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t,n,i)=>{this.sizes[e]=i;for(var r=this.maxSize-this.sizes[e];this.calculatedSize>r;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{var t;return 0!==this.size&&void 0!==(t=this.keyMap.get(e))&&(this.calculatedSize-=this.sizes[t]),S.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,n,i){}requireSize(e,t,n,i){if(n||i)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let e=this.tail;;){1;{if(!this.isValidIndex(e))break;if(!t&&this.isStale(e)||(yield e),e===this.head)break;e=this.prev[e]}}}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let e=this.head;;){1;{if(!this.isValidIndex(e))break;if(!t&&this.isStale(e)||(yield e),e===this.tail)break;e=this.next[e]}}}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of this.indexes())if(e(this.valList[n],this.keyList[n],this))return this.get(this.keyList[n],t)}forEach(e,t=this){for(const n of this.indexes())e.call(t,this.valList[n],this.keyList[n],this)}rforEach(e,t=this){for(const n of this.rindexes())e.call(t,this.valList[n],this.keyList[n],this)}get prune(){return t("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const n of this.indexes()){var t=this.keyList[n];const i={value:this.valList[n]};this.ttls&&(i.ttl=this.ttls[n]),this.sizes&&(i.size=this.sizes[n]),e.unshift([t,i])}return e}load(e){this.clear();for(var[t,n]of e)this.set(t,n.value,n)}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,noDisposeOnSet:i=this.noDisposeOnSet,size:r=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:o=this.noUpdateTTL}={}){r=this.requireSize(e,t,r,s);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,r),o=!1;else{const l=this.valList[a];t!==l&&(this.isBackgroundFetch(l)?l.__abortController.abort():i||(this.dispose(l,e,"set"),this.disposeAfter&&this.disposed.push([l,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,r)),this.moveToTail(a)}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),o||this.setItemTTL(a,n),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){var e;if(this.size)return e=this.valList[this.head],this.evict(!0),e}evict(e){var t=this.head,n=this.keyList[t];const i=this.valList[t];return this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,n,"evict"),this.disposeAfter&&this.disposed.push([i,n,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(n),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){e=this.keyMap.get(e);return void 0!==e&&!this.isStale(e)&&(t&&this.updateItemAge(e),!0)}peek(e,{allowStale:t=this.allowStale}={}){e=this.keyMap.get(e);if(void 0!==e&&(t||!this.isStale(e)))return this.valList[e]}backgroundFetch(t,e,n){var i=void 0===e?void 0:this.valList[e];if(this.isBackgroundFetch(i))return i;const r=new a,s={signal:r.signal,options:n},o=Promise.resolve(this.fetchMethod(t,i,s)).then(e=>(r.signal.aborted||this.set(t,e,s.options),e));return o.__abortController=r,o.__staleWhileFetching=i,void 0===e?(this.set(t,o,s.options),e=this.keyMap.get(t)):this.valList[e]=o,o}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,ttl:i=this.ttl,noDisposeOnSet:r=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:n});i={allowStale:t,updateAgeOnGet:n,ttl:i,noDisposeOnSet:r,size:s,sizeCalculation:o,noUpdateTTL:a},r=this.keyMap.get(e);if(void 0===r)return this.backgroundFetch(e,r,i);s=this.valList[r];if(this.isBackgroundFetch(s))return t&&void 0!==s.__staleWhileFetching?s.__staleWhileFetching:s;if(!this.isStale(r))return this.moveToTail(r),n&&this.updateItemAge(r),s;o=this.backgroundFetch(e,r,i);return t&&void 0!==o.__staleWhileFetching?o.__staleWhileFetching:o}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet}={}){var i,r,s=this.keyMap.get(e);if(void 0!==s)return i=this.valList[s],r=this.isBackgroundFetch(i),this.isStale(s)?r?t?i.__staleWhileFetching:void 0:(this.delete(e),t?i:void 0):r?void 0:(this.moveToTail(s),n&&this.updateItemAge(s),i)}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return t("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){var n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const i=this.valList[n];this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,e,"delete"),this.disposeAfter&&this.disposed.push([i,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const t of this.rindexes({allowStale:!0})){const n=this.valList[t];var e;this.isBackgroundFetch(n)?n.__abortController.abort():(e=this.keyList[t],this.dispose(n,e,"delete"),this.disposeAfter&&this.disposed.push([n,e,"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 t("reset","clear"),this.clear}get length(){var e,t,n,i;return t="size",i="LRU_CACHE_PROPERTY_"+(e="length"),_(i)&&(n=S["prototype"],n=Object.getOwnPropertyDescriptor(n,e)["get"],r(i,e+" property","cache."+t,n)),this.size}}e.exports=S},49:(e,t,n)=>{"use strict";var o=n(257);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,s){if(s!==o)throw s=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"),s.name="Invariant Violation",s}function t(){return e}var n={array:e.isRequired=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:r,resetWarningCache:i};return n.PropTypes=n}},507:(e,t,n)=>{e.exports=n(49)()},257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},529:(e,t,n)=>{"use strict";n=n(533);t.s=n.createRoot,n.hydrateRoot},103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=n(363),l=o(s),n=o(n(507));function o(e){return e&&e.__esModule?e:{default:e}}s=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");e=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return e.scrollListener=e.scrollListener.bind(e),e.eventListenerOptions=e.eventListenerOptions.bind(e),e.mousewheelListener=e.mousewheelListener.bind(e),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i(n,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){var e;this.props.isReverse&&this.loadMore&&((e=this.getParentElement(this.scrollComponent)).scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1),this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;(e=!1===this.props.useWindow?this.scrollComponent.parentNode:e).removeEventListener("mousewheel",this.mousewheelListener,this.options||this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;(e=!1===this.props.useWindow?this.getParentElement(this.scrollComponent):e).removeEventListener("scroll",this.scrollListener,this.options||this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options||this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e,t=this.getParentElement(this.scrollComponent);this.props.hasMore&&t&&(e=window,(e=!1===this.props.useWindow?t:e).addEventListener("mousewheel",this.mousewheelListener,this.options||this.props.useCapture),e.addEventListener("scroll",this.scrollListener,this.options||this.props.useCapture),e.addEventListener("resize",this.scrollListener,this.options||this.props.useCapture),this.props.initialLoad&&this.scrollListener())}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e,t=this.scrollComponent,n=window,i=this.getParentElement(t);(this.props.useWindow?(e=document.documentElement||document.body.parentNode||document.body,n=void 0!==n.pageYOffset?n.pageYOffset:e.scrollTop,this.props.isReverse?n:this.calculateOffset(t,n)):this.props.isReverse?i.scrollTop:t.scrollHeight-i.scrollTop-i.clientHeight)<Number(this.props.threshold)&&t&&null!==t.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=i.scrollHeight,this.beforeScrollTop=i.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var t=this,e=this.filterProps(this.props),n=e.children,i=e.element,r=e.hasMore,s=(e.initialLoad,e.isReverse),o=e.loader,a=(e.loadMore,e.pageStart,e.ref),e=(e.threshold,e.useCapture,e.useWindow,e.getScrollParent,function(e,t){var n,i={};for(n in e)0<=t.indexOf(n)||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}(e,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"])),n=(e.ref=function(e){t.scrollComponent=e,a&&a(e)},[n]);return r&&(o?s?n.unshift(o):n.push(o):this.defaultLoader&&(s?n.unshift(this.defaultLoader):n.push(this.defaultLoader))),l.default.createElement(i,e,n)}}]),n}(s.Component);s.propTypes={children:n.default.node.isRequired,element:n.default.node,hasMore:n.default.bool,initialLoad:n.default.bool,isReverse:n.default.bool,loader:n.default.node,loadMore:n.default.func.isRequired,pageStart:n.default.number,ref:n.default.func,getScrollParent:n.default.func,threshold:n.default.number,useCapture:n.default.bool,useWindow:n.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},381:(e,t,n)=>{e.exports=n(103)},768:(e,t,n)=>{"use strict";var n=n(363),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function r(e,t,n){var i,r={},s=null,o=null;for(i in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(o=t.ref),t)l.call(t,i)&&!d.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===r[i]&&(r[i]=t[i]);return{$$typeof:a,type:e,key:s,ref:o,props:r,_owner:c.current}}t.Fragment=i,t.jsx=r,t.jsxs=r},10:(e,t,n)=>{"use strict";e.exports=n(768)},590:e=>{"use strict";var c=[];function d(e){for(var t=-1,n=0;n<c.length;n++)if(c[n].identifier===e){t=n;break}return t}function a(e,t){for(var n={},i=[],r=0;r<e.length;r++){var s=e[r],o=t.base?s[0]+t.base:s[0],a=n[o]||0,l="".concat(o," ").concat(a),o=(n[o]=a+1,d(l)),a={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};-1!==o?(c[o].references++,c[o].updater(a)):(s=function(t,e){var n=e.domAPI(e);return n.update(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer||n.update(t=e):n.remove()}}(a,t),t.byIndex=r,c.splice(r,0,{identifier:l,updater:s,references:1})),i.push(l)}return i}e.exports=function(e,s){var o=a(e=e||[],s=s||{});return function(e){e=e||[];for(var t=0;t<o.length;t++){var n=d(o[t]);c[n].references--}for(var e=a(e,s),i=0;i<o.length;i++){var r=d(o[i]);0===c[r].references&&(c[r].updater(),c.splice(r,1))}o=e}}},804:e=>{"use strict";var n={};e.exports=function(e,t){if(!(e=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e)))throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(t)}},980:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},98:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},937:e=>{"use strict";e.exports=function(s){var o=s.insertStyleElement(s);return{update:function(e){var t,n,i,r;t=o,n=s,i="",(e=e).supports&&(i+="@supports (".concat(e.supports,") {")),e.media&&(i+="@media ".concat(e.media," {")),(r=void 0!==e.layer)&&(i+="@layer".concat(0<e.layer.length?" ".concat(e.layer):""," {")),i+=e.css,r&&(i+="}"),e.media&&(i+="}"),e.supports&&(i+="}"),(r=e.sourceMap)&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),n.styleTagTransform(i,t,n.options)},remove:function(){var e;null!==(e=o).parentNode&&e.parentNode.removeChild(e)}}}},776:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},52:(e,t,n)=>{"use strict";n=n(363);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return 1}}var r="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=o({inst:{value:n,getSnapshot:t}}),r=i[0].inst,s=i[1];return l(function(){r.value=n,r.getSnapshot=t,d(r)&&s({inst:r})},[e,n,t]),a(function(){return d(r)&&s({inst:r}),e(function(){d(r)&&s({inst:r})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:r},108:(e,t,n)=>{"use strict";e.exports=n(52)},363:e=>{"use strict";e.exports=React},533:e=>{"use strict";e.exports=ReactDOM}},i={};function dn(e){var t=i[e];if(void 0!==t)return t.exports;t=i[e]={id:e,exports:{}};return n[e].call(t.exports,t,t.exports,dn),t.exports}dn.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return dn.d(t,{a:t}),t},dn.d=(e,t)=>{for(var n in t)dn.o(t,n)&&!dn.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},dn.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);(()=>{"use strict";var Z=dn(10),O=dn(529),e=$,s=dn.n(e),e=dn(803),X=dn.n(e),K=dn(363),T=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o};const P=function(n,e){void 0===n&&(n=!1);var t=T((0,K.useState)(n),2),i=t[0],r=t[1];return[i,(0,K.useMemo)(function(){var t=void 0===e?!n:e;return{toggle:function(){return r(function(e){return e===n?t:n})},set:function(e){return r(e)},setLeft:function(){return r(n)},setRight:function(){return r(t)}}},[])]};const q=function(e){var n=(0,K.useRef)(e),t=(n.current=(0,K.useMemo)(function(){return e},[e]),(0,K.useRef)());return t.current||(t.current=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.current.apply(this,e)}),t.current};const z=function(){var e=(0,K.useRef)(!1);return(0,K.useEffect)(function(){return e.current=!1,function(){e.current=!0}},[]),e};var E=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o};const B=function(e){var t=z(),n=(e=E((0,K.useState)(e),2))[0],i=e[1];return[n,(0,K.useCallback)(function(e){t.current||i(e)},[])]};const A=function(e){(0,K.useEffect)(function(){null!=e&&e()},[])},o=Symbol(),C=Symbol(),D=Symbol(),R=Object.getPrototypeOf,H=new WeakMap,F=e=>e&&(H.has(e)?H.get(e):R(e)===Object.prototype||R(e)===Array.prototype),a=e=>"object"==typeof e&&null!==e,Y=(r,e)=>{let s=!1;const n=(t,n,i)=>{if(!s){let e=t.a.get(r);e||(e=new Set,t.a.set(r,e)),i&&e.has(o)||e.add(n)}},t={f:e,get(e,t){return t===D?r:(n(this,t),I(e[t],this.a,this.c))},has(e,t){return t===C?(s=!0,this.a.delete(r),!0):(n(this,t),t in e)},getOwnPropertyDescriptor(e,t){return n(this,t,!0),Object.getOwnPropertyDescriptor(e,t)},ownKeys(e){return n(this,o),Reflect.ownKeys(e)}};return e&&(t.set=t.deleteProperty=()=>!1),t},I=(e,t,n)=>{if(!F(e))return e;var e=e[D]||e,i=(i=e,Object.isFrozen(i)||Object.values(Object.getOwnPropertyDescriptors(i)).some(e=>!e.writable));let r=n&&n.get(e);return r&&r.f===i||((r=Y(e,i)).p=new Proxy(i?(e=>{if(Array.isArray(e))return Array.from(e);var t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(R(e),t)})(e):e,r),n&&n.set(e,r)),r.a=t,r.c=n,r.p},W=(e,t)=>{const n=Reflect.ownKeys(e),i=Reflect.ownKeys(t);return n.length!==i.length||n.some((e,t)=>e!==i[t])},U=(e,t,n,i)=>{if(Object.is(e,t))return!1;if(!a(e)||!a(t))return!0;const r=n.get(e);if(!r)return!0;if(i){const o=i.get(e);if(o&&o.n===t)return o.g;i.set(e,{n:t,g:!1})}let s=null;for(const a of r){const r=a===o?W(e,t):U(e[a],t[a],n,i);if(s=!0!==r&&!1!==r?s:r)break}return null===s&&(s=!0),i&&i.set(e,{n:t,g:s}),s},Q=(e,t=!0)=>{H.set(e,t)},J=(e,i)=>{const r=[],s=new WeakSet,o=(t,n)=>{if(!s.has(t)){a(t)&&s.add(t);const e=i.get(t);e?e.forEach(e=>{o(t[e],n?[...n,e]:[e])}):n&&r.push(n)}};return o(e),r};e=dn(108);const ee=Symbol("VERSION"),h=Symbol("LISTENERS"),f=Symbol("SNAPSHOT"),te=Symbol("HANDLER"),p=Symbol("PROMISE_RESULT"),ne=Symbol("PROMISE_ERROR"),ie=new WeakSet;const re=e=>"object"==typeof e&&null!==e,se=e=>re(e)&&!ie.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),oe=new WeakMap;let ae=1;const le=new WeakMap;function ce(n={}){if(!re(n))throw new Error("object required");var e=oe.get(n);if(e)return e;let o=ae;const a=new Set,l=(t,n=++ae)=>{o!==n&&(o=n,a.forEach(e=>e(t,n)))},r=new Map,c=i=>{let e=r.get(i);return e||(e=(e,t)=>{const n=[...e];n[1]=[i,...n[1]],l(n,t)},r.set(i,e)),e},d=e=>{var t=r.get(e);return r.delete(e),t},i=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),u={get(e,t,n){if(t===ee)return o;if(t===h)return a;if(t!==f)return t===te?u:Reflect.get(e,t,n);{var i=e;var r=n;t=le.get(r);if((null==t?void 0:t[0])===o)return t[1];const s=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i));return Q(s,!0),le.set(r,[o,s]),Reflect.ownKeys(i).forEach(e=>{const t=Reflect.get(i,e,r);if(ie.has(t))Q(t,!1),s[e]=t;else if(t instanceof Promise)if(p in t)s[e]=t[p];else{const n=t[ne]||t;Object.defineProperty(s,e,{get(){if(p in t)return t[p];throw n}})}else null!=t&&t[h]?s[e]=t[f]:s[e]=t}),Object.freeze(s),s}},deleteProperty(e,t){var n=Reflect.get(e,t);const i=null==n?void 0:n[h];i&&i.delete(d(t));e=Reflect.deleteProperty(e,t);return e&&l(["delete",[t],n]),e},is:Object.is,canProxy:se,set(e,t,n,i){var r=Reflect.has(e,t),s=Reflect.get(e,t,i);if(r&&this.is(s,n))return!0;const o=null==s?void 0:s[h];o&&o.delete(d(t)),re(n)&&(r=n,n=F(r)&&r[D]||null||n);let a;return null!=(r=Object.getOwnPropertyDescriptor(e,t))&&r.set?a=n:n instanceof Promise?a=n.then(e=>(a[p]=e,l(["resolve",[t],e]),e)).catch(e=>{a[ne]=e,l(["reject",[t],e])}):null!=n&&n[h]?(a=n)[h].add(c(t)):this.canProxy(n)?(a=ce(n))[h].add(c(t)):a=n,Reflect.set(e,t,a,i),l(["set",[t],n,s]),!0}},s=new Proxy(i,u);return oe.set(n,s),Reflect.ownKeys(n).forEach(e=>{var t=Object.getOwnPropertyDescriptor(n,e);t.get||t.set?Object.defineProperty(i,e,t):s[e]=n[e]}),s}function de(e,t,n){null!=e&&e[h]||console.warn("Please use proxy object");let i;const r=[],s=e=>{r.push(e),n?t(r.splice(0)):i=i||Promise.resolve().then(()=>{i=void 0,t(r.splice(0))})};return e[h].add(s),()=>{e[h].delete(s)}}function ue(e){return null!=e&&e[f]||console.warn("Please use proxy object"),e[f]}const he=e["useSyncExternalStore"],fe=(e,t)=>{const n=(0,K.useRef)();(0,K.useEffect)(()=>{n.current=J(e,t)}),(0,K.useDebugValue)(n.current)};function pe(n,e){const i=null==e?void 0:e.sync,t=(0,K.useRef)(),r=(0,K.useRef)();let s=!0;const o=he((0,K.useCallback)(e=>{var t=de(n,e,i);return e(),t},[n,i]),()=>{var e=ue(n);try{if(!s&&t.current&&r.current&&!U(t.current,e,r.current,new WeakMap))return t.current}catch(e){}return e},()=>ue(n)),a=(s=!1,new WeakMap);(0,K.useEffect)(()=>{t.current=o,r.current=a}),fe(o,a);e=(0,K.useMemo)(()=>new WeakMap,[]);return I(o,a,e)}const t=ce({accessKey:""}),me=function(){return pe(t)};const ve="bilibili-app-recommend.config";function ge(e){Object.assign(t,e),GM_setValue(ve,t)}(e=GM_getValue(ve))&&"object"==typeof e&&Object.assign(t,e);var e=axios,ye=dn.n(e),e=dn(590),e=dn.n(e),n=dn(937),n=dn.n(n),i=dn(804),i=dn.n(i),r=dn(98),r=dn.n(r),l=dn(980),l=dn.n(l),c=dn(776),c=dn.n(c),d=dn(913),u={};u.styleTagTransform=c(),u.setAttributes=r(),u.insert=i().bind(null,"head"),u.domAPI=n(),u.insertStyleElement=l(),e()(d.Z,u),d.Z&&d.Z.locals&&d.Z.locals;function V(e,t=2e3){const n=s()(`<div class='${d.C}'>${e}</div>`);n.appendTo(document.body),setTimeout(()=>n.remove(),t)}async function be(){var e=await async function(){var e=(await ye().get("https://passport.bilibili.com/login/app/third",{params:{appkey:"27eb53fc9058f8c3",api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!e?.data?.has_login)return{errmsg:"你必须登录B站之后才能使用授权",json:e};if(!e?.data?.confirm_uri)return{errmsg:"无法获得授权网址",json:e};e=e.data.confirm_uri;let n;var t=new Promise(t=>{window.addEventListener("message",e=>{if("https://www.mcbbs.net"==e.origin&&e.data)return e=e.data.match(/access_key=([0-9a-z]{32})/),e&&e[1]?void t(e[1]):t({errmsg:"没有获得匹配的密钥"})}),n=setTimeout(()=>{t({errmsg:"获取授权超时"})},5e3)});const i=s()(`<iframe src='${e}' style="display: none;" />`);return i.appendTo(document.body),e=await t,i.remove(),n&&(clearTimeout(n),n=null),e}();{if(!("object"==typeof e&&"errmsg"in e))return ge({accessKey:e}),V("获取成功"),e;V(e.errmsg)}}function xe(){ge({accessKey:""}),V("已删除 access_key")}u=axiosGmxhrAdapter,u=dn.n(u);const _e="https://app.bilibili.com",we=ye().create({baseURL:"https://api.bilibili.com"}),ke=(we.interceptors.request.use(function(e){return e.params?._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)}),ye().create({adapter:u()}));async function je(e){e=new Array(e).fill(0).map(e=>async function(){return(await ke.get(_e+"/x/feed/index",{params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data.data}());const t=await Promise.all(e);let n=t.reduce((e,t)=>e.concat(t),[]);const i=new Set;return n=n.filter(e=>{var t=e["param"];return i.has(t)?(console.log("[getRecommendTimes]: duplicate",e),!1):(i.add(t),!0)})}ke.interceptors.request.use(function(e){return e.params={access_key:t.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});var u=dn(746),Se=dn.n(u),u=dn(381),Ne=dn.n(u),Me=dn(533);function Le({show:e,onHide:t,children:n,clsModalMask:i,clsModal:r,hideWhenMaskOnClick:s=!1}){(0,K.useLayoutEffect)(()=>{document.body.style.overflow=e?"hidden":"auto"},[e]);const o=(0,K.useRef)(null),a=((0,K.useEffect)(()=>{const e=o.current;var t,n;e&&document.body.classList.contains("dark")&&(t=window.getComputedStyle(document.body)["background-color"],n=window.getComputedStyle(document.body).color,e.style.setProperty("--bg",t),e.style.setProperty("--c",n),e.style.setProperty("background-color","var(--bg)"),e.style.setProperty("color","var(--c)"))},[e]),(0,K.useId)());var l=(0,K.useMemo)(()=>{const e=document.createElement("div");return e.setAttribute("data-id","modal-feed-"+a),document.body.appendChild(e),e},[]),c=q(e=>{o.current?.contains(e.target)||s&&t()});return e?(0,Me.createPortal)((0,Z.jsx)("div",{className:X()(i),onClick:c,children:(0,Z.jsx)("div",{className:X()(r),ref:o,children:n})}),l):null}var Oe=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o};const Te=function(e){var t=(0,K.useRef)(e);return t.current=e,t},Pe=!("undefined"==typeof window||!window.document||!window.document.createElement);function ze(e,t){if(Pe){if(!e)return t;t="function"==typeof e?e():"current"in e?e.current:e;return t}}const Ee=function(e){var t=Te(e);(0,K.useEffect)(function(){return function(){t.current()}},[])};function Ae(e,t){if(e===t)return 1;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return;return 1}const Ce=function(e){return function(n,i,r){var s=(0,K.useRef)(!1),o=(0,K.useRef)([]),a=(0,K.useRef)([]),l=(0,K.useRef)();e(function(){var e,t=(Array.isArray(r)?r:[r]).map(function(e){return ze(e)});if(!s.current)return s.current=!0,o.current=t,a.current=i,void(l.current=n());t.length===o.current.length&&Ae(t,o.current)&&Ae(i,a.current)||(null!=(e=l.current)&&e.call(l),o.current=t,a.current=i,l.current=n())}),Ee(function(){var e;null!=(e=l.current)&&e.call(l),s.current=!1})}},De=Ce(K.useEffect);const $e=function(n,e,i){void 0===i&&(i={});var r=Te(e);De(function(){var e,t=ze(i.target,window);if(null!=t&&t.addEventListener)return e=function(e){return r.current(e)},t.addEventListener(n,e,{capture:i.capture,once:i.once,passive:i.passive}),function(){t.removeEventListener(n,e,{capture:i.capture})}},[n,i.capture,i.once,i.passive],i.target)};var Re=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o};function He(e,t){var n,i,r=(t=t||{}).onEnter,s=t.onLeave,o=(t=Re((void 0===(t=!1)&&(t=!1),o=(t=Oe(P(t),2))[0],n=(t=t[1]).toggle,i=t.set,[o,(0,K.useMemo)(function(){return{toggle:n,set:function(e){return i(!!e)},setTrue:function(){return i(!0)},setFalse:function(){return i(!1)}}},[])]),2))[0],a=(t=t[1]).setTrue,l=t.setFalse;return $e("mouseenter",function(){null!=r&&r(),a()},{target:e}),$e("mouseleave",function(){null!=s&&s(),l()},{target:e}),o}var u=dn(624),Fe=dn.n(u),Ye=Math.floor;const Ie=function(e,t){var n="";if(!e||t<1||9007199254740991<t)return n;for(;t%2&&(n+=e),(t=Ye(t/2))&&(e+=e),t;);return n};var u="object"==typeof global&&global&&global.Object===Object&&global,m="object"==typeof self&&self&&self.Object===Object&&self,u=(u||m||Function("return this")()).Symbol;const We=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r},Ue=Array.isArray;var m=Object.prototype,Ze=m.hasOwnProperty,Xe=m.toString,v=u?u.toStringTag:void 0;const Ke=function(e){var t=Ze.call(e,v),n=e[v];try{var i=!(e[v]=void 0)}catch(e){}var r=Xe.call(e);return i&&(t?e[v]=n:delete e[v]),r};var qe=Object.prototype.toString;const Be=function(e){return qe.call(e)};var Ve=u?u.toStringTag:void 0;const Ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(Ve&&Ve in Object(e)?Ke:Be)(e)};const Qe=function(e){return null!=e&&"object"==typeof e};const Je=function(e){return"symbol"==typeof e||Qe(e)&&"[object Symbol]"==Ge(e)};var m=u?u.prototype:void 0,et=m?m.toString:void 0;const tt=function e(t){if("string"==typeof t)return t;if(Ue(t))return We(t,e)+"";if(Je(t))return et?et.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const nt=function(e,t,n){for(var i=-1,r=e.length,s=((n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0,Array(r));++i<r;)s[i]=e[i+t];return s};const it=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&i<=n?e:nt(e,t,n)};var rt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const st=function(e){return rt.test(e)};const ot=function(t){return function(e){return null==e?void 0:e[t]}},at=ot("length");var u="\\ud800-\\udfff",m="["+u+"]",g="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",y="\\ud83c[\\udffb-\\udfff]",u="[^"+u+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",_="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",w="[\\ufe0e\\ufe0f]?",w=w+_+("(?:\\u200d(?:"+[u,b,x].join("|")+")"+w+_+")*"),_="(?:"+[u+g+"?",g,b,x,m].join("|")+")",lt=RegExp(y+"(?="+y+")|"+_+w,"g");const ct=function(e){for(var t=lt.lastIndex=0;lt.test(e);)++t;return t};const dt=function(e){return(st(e)?ct:at)(e)};const ut=function(e){return e.split("")};var u="\\ud800-\\udfff",g="["+u+"]",b="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",x="\\ud83c[\\udffb-\\udfff]",m="[^"+u+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",w="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",u="[\\ufe0e\\ufe0f]?",u=u+w+("(?:\\u200d(?:"+[m,y,_].join("|")+")"+u+w+")*"),w="(?:"+[m+b+"?",b,y,_,g].join("|")+")",ht=RegExp(x+"(?="+x+")|"+w+u,"g");const ft=function(e){return e.match(ht)||[]};const pt=function(e){return(st(e)?ft:ut)(e)};var mt=Math.ceil;const vt=function(e,t){var n=(t=void 0===t?" ":tt(t)).length;return n<2?n?Ie(t,e):t:(n=Ie(t,mt(e/dt(t))),st(t)?it(pt(n),0,e).join(""):n.slice(0,e))};var gt=/\s/;const yt=function(e){for(var t=e.length;t--&>.test(e.charAt(t)););return t};var bt=/^\s+/;const xt=function(e){return e&&e.slice(0,yt(e)+1).replace(bt,"")};const _t=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var wt=/^[-+]0x[0-9a-f]+$/i,kt=/^0b[01]+$/i,jt=/^0o[0-7]+$/i,St=parseInt;const Nt=function(e){if("number"==typeof e)return e;if(Je(e))return NaN;if(_t(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=_t(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=xt(e);var t=kt.test(e);return t||jt.test(e)?St(e.slice(2),t?2:8):wt.test(e)?NaN:+e};const Mt=function(e){return e?(e=Nt(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};const Lt=function(e){var t=(e=Mt(e))%1;return e==e?t?e-t:e:0};const Ot=function(e){return null==e?"":tt(e)};const Tt=function(e,t,n){e=Ot(e);var i=(t=Lt(t))?dt(e):0;return t&&i<t?vt(t-i,n)+e:e};function Pt(e){if(!e)return"";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return(t=t.replace(/\.0$/,""))+"万"}var zt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o};const Et=function(e){var t=(0,K.useRef)(0),n=(e=zt((0,K.useState)(e),2))[0],i=e[1],e=(0,K.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(e)})},[]);return Ee(function(){cancelAnimationFrame(t.current)}),[n,e]};var At=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o},Ct={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN};function Dt({className:e,item:t,pvideo:n}){var i=(0,K.useRef)(null);a=i.current,r=At(Et(Ct),2),s=r[0],l=r[1],$e("mousemove",function(e){var t,n=e.screenX,i=e.screenY,r=e.clientX,s=e.clientY,o=e.pageX,e=e.pageY,n={screenX:n,screenY:i,clientX:r,clientY:s,pageX:o,pageY:e,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},i=ze(a);i&&(s=(r=i.getBoundingClientRect()).left,i=r.top,t=r.width,r=r.height,n.elementPosX=s+window.pageXOffset,n.elementPosY=i+window.pageYOffset,n.elementX=o-n.elementPosX,n.elementY=e-n.elementPosY,n.elementW=t,n.elementH=r),l(n)},{target:document});var a,l,{elementW:r,elementH:s,elementX:o}=s;let c=0,d=0;r&&o&&!isNaN(o)&&!isNaN(r)&&(1<(c=(c=o/r)<0?0:c)&&(c=1),d=Math.floor((t.duration||0)*c));var o=(0,K.useMemo)(()=>{var e=n?.index||[];let t=function(e,t){let n=0,i=e.length-1,r=-1;for(;n<=i;){var s=Math.floor((n+i)/2),o=e[s];if(t===o)return s;o<t?(n=s+1,r=s):i=s-1}if(-1===r)return-1;var a=e[r],l=e[r+1]??0;return a<t&&t<l?r:-1}(e,d);return-1!==t?t:d>e[e.length-1]?t=(t=Math.floor(e.length*c)-1)<0?0:t:0},[n,d]),{img_x_len:t,img_y_len:u}=n,h=u*t,f=(o+=1,Math.floor(o/h)),o=o-f*h,h=n.image?.[f]||"",f=Math.floor(o/t)+1;return(0,Z.jsx)("div",{ref:i,className:e,style:{backgroundColor:"black",backgroundImage:`url(${h})`,backgroundPosition:`-${(o-(f-1)*t-1)*r}px -${(f-1)*s}px`,backgroundSize:r*t+`px ${s*u}px`},children:(0,Z.jsx)($t,{progress:c})})}function $t({progress:e}){return(0,Z.jsx)("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:(0,Z.jsx)("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:100*e+"%"}})})}m=dn(555);const Rt=new(dn.n(m)())({max:200});async function Ht(e){if(Rt.has(e))return Rt.get(e);var[t,n]=await Promise.all([async function(e){return(await we.get("/pvideo",{params:{aid:e}})).data.data}(e),async function(){return[]}()]);return Rt.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Ft(n){return async function(e){const t=new FormData;t.append("aid",e),t.append("csrf",function(){var e=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/)?.[1];if(e)return e;throw V("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录")}());e=(await we.post("/x/v2/history/toview/"+n,t,{withCredentials:!0})).data;return 0===e?.code&&"0"===e?.message}}const Yt=Ft("add"),It=Ft("del");b=e=>{const n={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(e,t){e=(await ke.get(_e+n,{params:{goto:e.goto,id:e.param,mid:e.mid,rid:e.tid,tag_id:e.tag?.tag_id,reason_id:t,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return 0===e?.code&&"0"===e?.message}};const Wt=b("dislike"),Ut=b("cancel");var G=dn(730),y={};y.styleTagTransform=c(),y.setAttributes=r(),y.insert=i().bind(null,"head"),y.domAPI=n(),y.insertStyleElement=l(),e()(G.ZP,y),G.ZP&&G.ZP.locals&&G.ZP.locals;Symbol();const k=new WeakMap,j=new WeakMap,Zt=(t,e)=>{const n=k.get(t);n&&(n[0].forEach(e=>{e=e.d;t!==e&&Zt(e)}),++n[2],e&&n[3].add(e))},Xt=t=>{const e=k.get(t);e&&(--e[2],e[2]||(e[3].forEach(e=>e()),e[3].clear()),e[0].forEach(e=>{e=e.d;t!==e&&Xt(e)}))},Kt=e=>{const{s:o,d:t}=e;let n=j.get(t),i=(n||(n=[new Set],j.set(e.d,n)),n[0].add(e),k.get(o));if(!i){const a=new Set;var r=de(o,s=>{a.forEach(e=>{const{d:t,c:n,n:i,i:r}=e;o===t&&s.every(e=>1===e[1].length&&r.includes(e[1][0]))||e.p||(Zt(o,n),i?Xt(o):e.p=Promise.resolve().then(()=>{delete e.p,Xt(o)}))})},!0);i=[a,r,0,new Set],k.set(o,i)}i[0].add(e)},qt=e=>{var{s:t,d:n}=e;const i=j.get(n);null!=i&&i[0].delete(e),0===(null==i?void 0:i[0].size)&&j.delete(n);n=k.get(t);if(n){const[r,s]=n;r.delete(e),r.size||(s(),k.delete(t))}},Bt=e=>{e=j.get(e);return e?Array.from(e[0]):[]};Kt,qt,Bt;var S,N=dn(312),_={};_.styleTagTransform=c(),_.setAttributes=r(),_.insert=i().bind(null,"head"),_.domAPI=n(),_.insertStyleElement=l(),e()(N.ZP,_),N.ZP&&N.ZP.locals&&N.ZP.locals;S=ce({data:Array.from(S||[]),has(t){return this.data.some(e=>e[0]===t)},set(t,e){const n=this.data.find(e=>e[0]===t);return n?n[1]=e:this.data.push([t,e]),this},get(t){var e;return null==(e=this.data.find(e=>e[0]===t))?void 0:e[1]},delete(t){var e=this.data.findIndex(e=>e[0]===t);return-1!==e&&(this.data.splice(e,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(t){this.data.forEach(e=>{t(e[1],e[0],this)})},keys(){return this.data.map(e=>e[0]).values()},values(){return this.data.map(e=>e[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}}),Object.defineProperties(S,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(S);const Vt=S;function Gt(e){const t=pe(Vt);return t.get(e)}function Qt({show:e,onHide:r,item:s}){const[t,o]=B(!1),n=q(async(n,i)=>{if(s){let e=!1,t=null;try{o(!0),e=await Wt(s,n)}catch(e){t=e}finally{o(!1)}if(t)return V("标记不喜欢: 请求失败, 请重试!"),void console.error(t.stack||t);V("标记不喜欢: "+(e?"成功":"失败")),e&&(Vt.set(s.param,{id:n,name:i}),r())}}),i=(0,K.useMemo)(()=>[...s?.dislike_reasons??[],{reason_id:12,reason_name:"此类内容过多"},{reason_id:13,reason_name:"推荐过"}],[s]);return(0,Z.jsxs)(Le,{show:e,onHide:r,clsModalMask:N.Fy,clsModal:N.oC,hideWhenMaskOnClick:!0,children:[(0,Z.jsxs)("div",{className:N.X3,children:[(0,Z.jsx)("div",{className:N.d$,children:"不喜欢"}),(0,Z.jsx)("div",{className:"space",style:{flex:1}}),(0,Z.jsxs)("button",{className:"primary-btn roll-btn "+N.Kh,onClick:r,children:[(0,Z.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,Z.jsx)("use",{xlinkHref:"#widget-close"})}),(0,Z.jsx)("span",{children:"关闭"})]})]}),(0,Z.jsx)("div",{className:N.o_,children:(0,Z.jsx)("div",{className:N.a0,children:i.map(e=>(0,Z.jsx)("button",{className:N.o4,"data-id":e.reason_id,onClick:()=>n(e.reason_id,e.reason_name),disabled:t,children:e.reason_name},e.reason_id))})})]})}let Jt={show:!1,onHide:en,item:null};function en(){tn({show:!1,item:null})}function tn(e){Object.assign(Jt,e),function(){if(!nn){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),nn=(0,O.s)(e)}return nn}().render((0,Z.jsx)(Qt,{...Jt,onHide:en}))}let nn;const rn=Fe()().format("YYYY"),sn=e=>{if(!e)return"";const t=Fe().unix(e);return t.format("YYYY")===rn?t.format("M-D"):t.format("YY-M-D")},on=e=>e.replace(/^http:\/\//,"https://");function an({item:n,className:e,loading:t}){var i=(0,K.useRef)(null);const r=He(i);var s=(0,K.useRef)(null),o=He(s);const[a,l]=B(!1);var c=me()["accessKey"],c=Boolean(c);const{param:d,title:u,cover:h,goto:f,play:p,like:m,desc:v,ctime:g,duration:y,name:b,mid:x,favorite:_,badge:w,rcmd_reason:k}=n;var j=(0,K.useMemo)(()=>sn(g),[g]),S=(0,K.useMemo)(()=>on(h),[h]);const[N,M]=B(null),[L,O]=B(!1),D=q(async()=>{if(console.log(n),!N&&!L)try{O(!0);var e=await Ht(d);M(e),console.log(e)}finally{O(!1)}});(0,K.useEffect)(()=>{r&&D()},[r]);let T=!1;var $=q(async e=>{if(e.preventDefault(),!T){T=!0;const t=a?It:Yt;let e=!1;try{e=await t(d)}finally{T=!1}e&&l(e=>!e)}});const P=Gt(d);var z=Boolean(P),E=(0,K.useRef)(null),R=He(E),H=q(e=>{e.stopPropagation(),e.preventDefault(),tn({show:!0,item:n})}),A=q(async()=>{if(P?.id){let e=!1,t=null;try{e=await Ut(n,P.id)}catch(e){t=e}if(t)return console.error(t.stack||t),V("请求失败!");V(`撤销不喜欢: 操作${e?"成功":"失败"}!`),e&&Vt.delete(d)}}),C="av"===n.goto?"/video/av"+d:n.uri,F=(0,K.useMemo)(()=>{{var e;if(!(e=y))return"00:00";var t=Math.trunc(e/3600),n=(e-=3600*t,Math.trunc(e/60)),e=e-=60*n;const i=[t,n,e];return 0===i[0]&&i.shift(),i.map(e=>Tt(e.toString(),2,"0")).join(":")}},[y]),Y=(0,K.useMemo)(()=>Pt(p),[p]),I=(0,K.useMemo)(()=>Pt(m),[m]),W=(0,K.useMemo)(()=>Pt(_),[_]),U=(0,Z.jsxs)("div",{className:X()("bili-video-card__skeleton",{hide:!t}),children:[(0,Z.jsx)("div",{className:"bili-video-card__skeleton--cover"}),(0,Z.jsx)("div",{className:"bili-video-card__skeleton--info",children:(0,Z.jsxs)("div",{className:"bili-video-card__skeleton--right",children:[(0,Z.jsx)("p",{className:"bili-video-card__skeleton--text"}),(0,Z.jsx)("p",{className:"bili-video-card__skeleton--text short"}),(0,Z.jsx)("p",{className:"bili-video-card__skeleton--light"})]})})]}),A=(0,Z.jsxs)("div",{className:X()(G.sA),children:[(0,Z.jsx)("div",{className:G.Mi,children:(0,Z.jsxs)("div",{className:G.Cf,children:[(0,Z.jsx)("div",{className:"icon"}),(0,Z.jsx)("div",{className:G.qH,children:P?.name}),(0,Z.jsx)("div",{className:G.f8,children:"将减少此类内容推荐"})]})}),(0,Z.jsx)("div",{className:G.NS,children:(0,Z.jsx)("button",{onClick:A,children:"撤销"})})]});return(0,Z.jsxs)("div",{className:X()("bili-video-card",G.k7,e),"data-report":"partition_recommend.content",children:[U,!t&&z&&A,!t&&!z&&(0,Z.jsxs)("div",{className:"bili-video-card__wrap __scale-wrap",style:{backgroundColor:z?"red":"unset"},children:[(0,Z.jsx)("a",{href:C,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:(0,Z.jsxs)("div",{className:"bili-video-card__image __scale-player-wrap",ref:i,children:[(0,Z.jsxs)("div",{className:X()("bili-video-card__image--wrap",G.be),children:[(0,Z.jsxs)("picture",{className:"v-img bili-video-card__cover",children:[(0,Z.jsx)("source",{srcSet:S+"@672w_378h_1c.webp",type:"image/webp"}),(0,Z.jsx)("img",{src:S+"@672w_378h_1c.webp",alt:u,loading:"lazy"})]}),r&&N?.pvideoData?(0,Z.jsx)(Dt,{className:G.sN,item:n,pvideo:N?.pvideoData}):null,(0,Z.jsxs)("div",{className:"bili-watch-later "+G.Zl,style:{display:r?"flex":"none"},ref:s,onClick:$,children:[(0,Z.jsx)("svg",{className:"bili-watch-later__icon",children:(0,Z.jsx)("use",{xlinkHref:a?"#widget-watch-save":"#widget-watch-later"})}),(0,Z.jsx)("span",{className:"bili-watch-later__tip",style:{display:o?"block":"none"},children:a?"移除":"稍后再看"})]}),c&&(0,Z.jsxs)("div",{ref:E,className:G.N0,onClick:H,style:{display:r?"flex":"none"},children:[(0,Z.jsx)("svg",{className:G.Xm,children:(0,Z.jsx)("use",{xlinkHref:"#widget-close"})}),(0,Z.jsx)("span",{className:G._W,style:{display:R?"block":"none"},children:"不喜欢"})]})]}),(0,Z.jsx)("div",{className:"bili-video-card__mask",children:(0,Z.jsxs)("div",{className:"bili-video-card__stats",children:[(0,Z.jsxs)("div",{className:"bili-video-card__stats--left",children:[(0,Z.jsxs)("span",{className:"bili-video-card__stats--item",children:[(0,Z.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,Z.jsx)("use",{xlinkHref:"#widget-play-count"})}),(0,Z.jsx)("span",{className:"bili-video-card__stats--text",children:Y})]}),(0,Z.jsx)("span",{className:"bili-video-card__stats--item",children:"av"===f?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,Z.jsx)("use",{xlinkHref:"#widget-agree"})}),(0,Z.jsx)("span",{className:"bili-video-card__stats--text",children:I})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,Z.jsx)("use",{xlinkHref:"#widget-agree"})}),(0,Z.jsx)("span",{className:"bili-video-card__stats--text",children:W})]})})]}),(0,Z.jsx)("span",{className:"bili-video-card__stats__duration",children:F})]})})]})}),(0,Z.jsx)("div",{className:"bili-video-card__info __scale-disable",children:(0,Z.jsxs)("div",{className:"bili-video-card__info--right",children:[(0,Z.jsx)("a",{href:C,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:(0,Z.jsx)("h3",{className:"bili-video-card__info--tit",title:u,children:u})}),(0,Z.jsxs)("p",{className:"bili-video-card__info--bottom",children:["av"===f?(0,Z.jsxs)("a",{className:"bili-video-card__info--owner",href:"//space.bilibili.com/"+x,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[k?.content?(0,Z.jsx)("span",{className:G.Nd,children:k.content}):(0,Z.jsx)("svg",{className:"bili-video-card__info--owner__up",children:(0,Z.jsx)("use",{xlinkHref:"#widget-up"})}),(0,Z.jsx)("span",{className:"bili-video-card__info--author",children:b}),j?(0,Z.jsxs)("span",{className:"bili-video-card__info--date",children:["· ",j]}):null]}):null,"bangumi"===f?(0,Z.jsxs)("a",{className:"bili-video-card__info--owner",href:C,target:"_blank",children:[(0,Z.jsx)("span",{className:G.R0,children:w}),(0,Z.jsx)("span",{className:G.Rs,children:v})]}):null]})]})})]})]})}var M=dn(890),g={};g.styleTagTransform=c(),g.setAttributes=r(),g.insert=i().bind(null,"head"),g.domAPI=n(),g.insertStyleElement=l(),e()(M.ZP,g),M.ZP&&M.ZP.locals&&M.ZP.locals;function ln({show:e,onHide:t}){const[n,i]=B([]),[r,s]=B(!1),o=(0,K.useRef)(null);var a=q(async()=>{o.current&&(o.current.scrollTop=0),await Se()(50);try{s(!0),i(await je(2))}finally{s(!1)}}),l=q(async e=>{const t=await je(2);i(e=>[...e,...t])});return(0,Z.jsxs)(Le,{show:e,onHide:t,clsModalMask:M.Fy,clsModal:M.oC,children:[(0,Z.jsxs)("div",{className:M.X3,children:[(0,Z.jsx)("div",{className:M.d$,children:"推荐"}),(0,Z.jsx)("div",{className:"space",style:{flex:1}}),(0,Z.jsxs)("button",{className:"primary-btn roll-btn "+M.jm,onClick:a,children:[(0,Z.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,Z.jsx)("use",{xlinkHref:"#widget-roll"})}),(0,Z.jsx)("span",{children:"换一换"})]}),(0,Z.jsxs)("button",{className:"primary-btn roll-btn "+M.Kh,onClick:t,children:[(0,Z.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,Z.jsx)("use",{xlinkHref:"#widget-close"})}),(0,Z.jsx)("span",{children:"关闭"})]})]}),(0,Z.jsx)("div",{className:M.o_,ref:o,children:(0,Z.jsx)(Ne(),{pageStart:0,loadMore:l,hasMore:!0,useWindow:!1,threshold:320,loader:(0,Z.jsx)("div",{className:M._m,children:"加载中..."},0),children:(0,Z.jsx)("div",{className:"video-card-list is-full "+M.YD,children:(0,Z.jsx)("div",{className:"video-card-body more-class1 more-class2",children:n.map(e=>(0,Z.jsx)(an,{item:e,loading:r},e.param))})})})})]})}var L=dn(181),x={};x.styleTagTransform=c(),x.setAttributes=r(),x.insert=i().bind(null,"head"),x.domAPI=n(),x.insertStyleElement=l(),e()(L.ZP,x),L.ZP&&L.ZP.locals&&L.ZP.locals;function cn(){const[e,t]=P(!1);var n=me()["accessKey"];const i=q(async(e=0)=>{await be()&&t.set(!1)});var r=xe,s=q(()=>{window.open("https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E","_blank")});const[o,a]=B([]),[l,c]=B(!1),d=q(async()=>{c(!0);try{var e=await je(2);a(e)}finally{c(!1)}}),[u,h]=(A(async()=>{d()}),B(!1));var f=q(()=>{h(!0)});return(0,Z.jsx)("section",{className:X()("bili-grid no-margin",L.eC),"data-area":"推荐",children:(0,Z.jsxs)("div",{className:"video-card-list is-full "+L.YD,children:[(0,Z.jsxs)("div",{className:"area-header",children:[(0,Z.jsxs)("div",{className:"left",children:[(0,Z.jsx)("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),(0,Z.jsx)("svg",{className:"icon",children:(0,Z.jsx)("use",{xlinkHref:"#channel-cinephile"})}),(0,Z.jsx)("a",{className:"title",href:"#",children:(0,Z.jsx)("span",{children:"推荐"})})]}),(0,Z.jsxs)("div",{className:"right",children:[n?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("button",{className:X()("primary-btn",L.GG),onClick:t.toggle,children:(0,Z.jsx)("svg",{className:X()({[L.zh]:e}),children:(0,Z.jsx)("use",{xlinkHref:"#widget-arrow"})})}),e&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("button",{className:"primary-btn roll-btn",onClick:s,children:(0,Z.jsx)("span",{children:"access_key 说明"})}),(0,Z.jsx)("button",{className:"primary-btn roll-btn",onClick:()=>i(!0),children:(0,Z.jsx)("span",{children:"重新获取 access_key"})}),(0,Z.jsx)("button",{className:"primary-btn roll-btn",onClick:r,children:(0,Z.jsx)("span",{children:"删除 access_key"})})]})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("button",{className:"primary-btn roll-btn",onClick:s,children:(0,Z.jsx)("span",{children:"access_key 说明"})}),(0,Z.jsx)("button",{className:"primary-btn roll-btn",onClick:i,children:(0,Z.jsx)("span",{children:"获取 access_key"})})]}),(0,Z.jsxs)("button",{className:"primary-btn roll-btn",onClick:d,children:[(0,Z.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,Z.jsx)("use",{xlinkHref:"#widget-roll"})}),(0,Z.jsx)("span",{children:"换一换"})]}),(0,Z.jsxs)("button",{className:"primary-btn see-more",onClick:f,children:[(0,Z.jsx)("span",{children:"查看更多"}),(0,Z.jsx)("svg",{children:(0,Z.jsx)("use",{xlinkHref:"#widget-arrow"})})]})]})]}),(0,Z.jsx)(ln,{show:u,onHide:()=>h(!1)}),(0,Z.jsx)("div",{className:"video-card-body more-class1 more-class2",children:o.map(e=>(0,Z.jsx)(an,{item:e,loading:l},e.param))})]})})}location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?")?(window.stop(),window.top?.postMessage(location.href,"https://www.bilibili.com")):"/"===location.pathname&&async function(){var e=Date.now(),t=()=>0<s()(".bili-layout > section.bili-grid").length;for(;!t()&&Date.now()-e<1e4;)await Se()(100);if(t()){var n=s()(".bili-layout > section.bili-grid").eq(0);const i=s()("<section></section>");i.insertAfter(n);n=i[0];const r=(0,O.s)(n);r.render((0,Z.jsx)(cn,{}))}else console.error("[bilibili-app-recommend]: init fail")}()})()})();