bilibili-app-recommend

Add app like recommend part to bilibili homepage

目前為 2022-05-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name                bilibili-app-recommend
// @namespace           https://magicdawn.fun
// @version             0.0.7
// @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://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js
// @require             https://cdn.jsdelivr.net/npm/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require             https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// @require             https://cdn.jsdelivr.net/npm/react@18/umd/react.production.min.js
// @require             https://cdn.jsdelivr.net/npm/react-dom@18/umd/react-dom.production.min.js
//
// ==/UserScript==
(()=>{var i={803:(e,t)=>{var i;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var n,r=typeof i;if("string"==r||"number"==r)e.push(i);else if(Array.isArray(i))!i.length||(n=a.apply(null,i))&&e.push(n);else if("object"==r)if(i.toString===Object.prototype.toString)for(var s in i)o.call(i,s)&&i[s]&&e.push(s);else e.push(i.toString())}}return e.join(" ")}e.exports?e.exports=a.default=a:void 0!==(i=function(){return a}.apply(t,[]))&&(e.exports=i)}()},9:(e,t,i)=>{"use strict";i.d(t,{Fy:()=>r,Kh:()=>c,X3:()=>o,YD:()=>d,ZP:()=>f,_m:()=>h,d$:()=>a,jm:()=>l,oC:()=>s,o_:()=>u});var t=i(117),t=i.n(t),n=i(488),i=i.n(n)()(t()),r=(i.push([e.id,".modal-mask_vsFTk {\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_VuPWb {\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_VuPWb .modal-header_LjV9S {\n  padding-top: 10px;\n  padding-bottom: 10px;\n  border-bottom: none;\n  display: flex;\n  align-items: center;\n}\n.modal_VuPWb .modal-header_LjV9S .modal-title_qlilb {\n  font-size: 1.5rem;\n  margin-bottom: 0;\n  line-height: 1.5;\n}\nbody.dark .modal_VuPWb .modal-header_LjV9S .btn-refresh_UAaHz,\nbody.dark .modal_VuPWb .modal-header_LjV9S .btn-close_Sew_b {\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_VuPWb .modal-header_LjV9S .btn-close_Sew_b {\n  margin-left: 10px;\n}\n.modal_VuPWb .modal-body_cCBH_ {\n  padding-top: 0;\n  flex-grow: 1;\n  overflow-y: scroll;\n}\n.list_ATnXW {\n  color: inherit;\n}\n.card_j5epc {\n  color: inherit;\n}\n.video-card-list_TnzRe.is-full .video-card-body.more-class1.more-class2 > * {\n  display: block !important;\n}\n.loader_Fd9nU {\n  text-align: center;\n  line-height: 60px;\n  font-size: 120%;\n}\n",""]),"modal-mask_vsFTk"),s="modal_VuPWb",o="modal-header_LjV9S",a="modal-title_qlilb",l="btn-refresh_UAaHz",c="btn-close_Sew_b",u="modal-body_cCBH_",d="video-card-list_TnzRe",h="loader_Fd9nU";const f=i},730:(e,t,i)=>{"use strict";i.d(t,{Nd:()=>a,R0:()=>o,Rs:()=>l,ZP:()=>c,Zl:()=>s,sN:()=>r});var t=i(117),t=i.n(t),n=i(488),i=i.n(n)()(t()),r=(i.push([e.id,".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  border-radius: inherit;\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",""]),"preview-card-wrapper_obs_2"),s="watch-later_QtZPa",o="badge_oIZF5",a="recommend-reason__Cdvz",l="bangumi-desc_dFbZr";const c=i},181:(e,t,i)=>{"use strict";i.d(t,{GG:()=>o,YD:()=>s,ZP:()=>l,eC:()=>r,zh:()=>a});var t=i(117),t=i.n(t),n=i(488),i=i.n(n)()(t()),r=(i.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=i},913:(e,t,i)=>{"use strict";i.d(t,{C:()=>r,Z:()=>s});var t=i(117),t=i.n(t),n=i(488),i=i.n(n)()(t()),r=(i.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=i},488:e=>{"use strict";e.exports=function(n){var u=[];return u.toString=function(){return this.map(function(e){var t="",i=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),i&&(t+="@layer".concat(0<e[5].length?" ".concat(e[5]):""," {")),t+=n(e),i&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t}).join("")},u.i=function(e,t,i,n,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)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]);i&&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),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),u.push(c))}},u}},117:e=>{"use strict";e.exports=function(e){return e[1]}},624:function(e){e.exports=function(){"use strict";var c=1e3,u=6e4,d=36e5,l="millisecond",f="second",p="minute",m="hour",v="day",g="week",y="month",h="quarter",b="year",x="date",w="Invalid Date",o=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,i){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(i)+e},t={s:s,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),n=Math.floor(i/60),r=i%60;return(t<=0?"+":"-")+s(n,2,"0")+":"+s(r,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var n=12*(i.year()-t.year())+(i.month()-t.month()),r=t.clone().add(n,y),s=i-r<0,o=t.clone().add(n+(s?-1:1),y);return+(-(n+(i-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}},S="en",j={},n=(j[S]=e,function(e){return e instanceof a}),r=function e(t,i,n){var r;if(!t)return S;if("string"==typeof t){var s=t.toLowerCase();j[s]&&(r=s),i&&(j[s]=i,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!n&&r&&(S=r),r||!n&&S},k=function(e,t){if(n(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new a(i)},L=t,a=(L.l=r,L.i=n,L.w=function(e,t){return k(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,i=e.utc;if(null===t)return new Date(NaN);if(L.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(o);if(n){var r=n[2]-1||0,s=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[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 L},t.isValid=function(){return!(this.$d.toString()===w)},t.isSame=function(e,t){var i=k(e);return this.startOf(t)<=i&&i<=this.endOf(t)},t.isAfter=function(e,t){return k(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<k(e)},t.$g=function(e,t,i){return L.u(e)?this[t]:this.set(i,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var n=this,r=!!L.u(t)||t,i=L.p(e),s=function(e,t){var i=L.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(v)},o=function(e,t){return L.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},a=this.$W,l=this.$M,c=this.$D,u="set"+(this.$u?"UTC":"");switch(i){case b:return r?s(1,0):s(31,11);case y:return r?s(1,l):s(0,l+1);case g:var d=this.$locale().weekStart||0,h=(a<d?a+7:a)-d;return s(r?c-h:c+(6-h),l);case v:case x:return o(u+"Hours",0);case m:return o(u+"Minutes",1);case p:return o(u+"Seconds",2);case f:return o(u+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var i,n=L.p(e),r="set"+(this.$u?"UTC":""),s=(i={},i[v]=r+"Date",i[x]=r+"Date",i[y]=r+"Month",i[b]=r+"FullYear",i[m]=r+"Hours",i[p]=r+"Minutes",i[f]=r+"Seconds",i[l]=r+"Milliseconds",i)[n],o=n===v?this.$D+(t-this.$W):t;if(n===y||n===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[L.p(e)]()},t.add=function(i,e){var t,n=this;i=Number(i);var r=L.p(e),s=function(e){var t=k(n);return L.w(t.date(t.date()+Math.round(e*i)),n)};if(r===y)return this.set(y,this.$M+i);if(r===b)return this.set(b,this.$y+i);if(r===v)return s(1);if(r===g)return s(7);var o=(t={},t[p]=u,t[m]=d,t[f]=c,t)[r]||1,a=this.$d.getTime()+i*o;return L.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||w;var s=e||"YYYY-MM-DDTHH:mm:ssZ",i=L.z(this),n=this.$H,o=this.$m,a=this.$M,l=t.weekdays,c=t.months,u=function(e,t,i,n){return e&&(e[t]||e(r,s))||i[t].slice(0,n)},d=function(e){return L.s(n%12||12,e,"0")},h=t.meridiem||function(e,t,i){var n=e<12?"AM":"PM";return i?n.toLowerCase():n},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:L.s(a+1,2,"0"),MMM:u(t.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:L.s(this.$D,2,"0"),d:String(this.$W),dd:u(t.weekdaysMin,this.$W,l,2),ddd:u(t.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:L.s(n,2,"0"),h:d(1),hh:d(2),a:h(n,o,!0),A:h(n,o,!1),m:String(o),mm:L.s(o,2,"0"),s:String(this.$s),ss:L.s(this.$s,2,"0"),SSS:L.s(this.$ms,3,"0"),Z:i};return s.replace(_,function(e,t){return t||f[e]||i.replace(":","")})},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,t,i){var n,r=L.p(t),s=k(e),o=(s.utcOffset()-this.utcOffset())*u,a=this-s,l=L.m(this,s);return l=(n={},n[b]=l/12,n[y]=l,n[h]=l/3,n[g]=(a-o)/6048e5,n[v]=(a-o)/864e5,n[m]=a/d,n[p]=a/u,n[f]=a/c,n)[r]||a,i?l:L.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 i=this.clone(),n=r(e,t,!0);return n&&(i.$L=n),i},t.clone=function(){return L.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}()),i=a.prototype;return k.prototype=i,[["$ms",l],["$s",f],["$m",p],["$H",m],["$W",v],["$M",y],["$y",b],["$D",x]].forEach(function(t){i[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),k.extend=function(e,t){return e.$i||(e(t,a,k),e.$i=!0),k},k.locale=r,k.isDayjs=n,k.unix=function(e){return k(1e3*e)},k.en=j[S],k.Ls=j,k.p={},k}()},746:e=>{"use strict";const h=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},t=({clearTimeout:c,setTimeout:u,willResolve:d})=>(i,{value:n,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),(d?e:t)(n)},a=t,s=(u||setTimeout)(o,i)});return r&&r.addEventListener("abort",l,{once:!0}),t.clear=()=>{e(s),s=null,o()},t};var i=e=>{const n=t({...e,willResolve:!0});return n.reject=t({...e,willResolve:!1}),n.range=(e,t,i)=>n(((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(e,t),i),n};const n=i();n.createWithTimers=i,e.exports=n,e.exports.default=n},555:e=>{const n="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 i="LRU_CACHE_OPTION_"+e;w(i)&&r(i,e+" option","options."+t,k)},t=(e,t)=>{var i,n="LRU_CACHE_METHOD_"+e;w(n)&&(i=k["prototype"],i=Object.getOwnPropertyDescriptor(i,e)["get"],r(n,e+" method",`cache.${t}()`,i))},x=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},w=e=>!y.has(e),r=(e,t,i,n)=>{y.add(e);t=`The ${t} is deprecated. Please use ${i} instead.`;x(t,"DeprecationWarning",e,n)},_=e=>e&&e===Math.floor(e)&&0<e&&isFinite(e),S=e=>_(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=S(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class k{constructor(e={}){var{max:t=0,ttl:i,ttlResolution:n=1,ttlAutopurge:r,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:c,noDisposeOnSet:u,noUpdateTTL:d,maxSize:h=0,sizeCalculation:f,fetchMethod:p}=e,{length:e,maxAge:m,stale:v}=e instanceof k?{}:e;if(0!==t&&!_(t))throw new TypeError("max option must be a nonnegative integer");const g=t?S(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=!!u,this.noUpdateTTL=!!d,0!==this.maxSize){if(!_(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=_(n)||0===n?n:1,this.ttlAutopurge=!!r,this.ttl=i||m||0,this.ttl){if(!_(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",w(h)&&(y.add(h),x("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",h,k))),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?n.now():0,0!==(this.ttls[e]=t)&&this.ttlAutopurge){const i=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);i.unref&&i.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?n.now():0};let i=0;const t=()=>{var e=n.now();if(0<this.ttlResolution){i=e;const t=setTimeout(()=>i=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]-(i||t())},this.isStale=e=>0!==this.ttls[e]&&0!==this.starts[e]&&(i||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,i,n)=>{if(!_(i)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(i=n(t,e),!_(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.addItemSize=(e,t,i,n)=>{this.sizes[e]=n;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]),k.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,i,n){}requireSize(e,t,i,n){if(i||n)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 i of this.indexes())if(e(this.valList[i],this.keyList[i],this))return this.get(this.keyList[i],t)}forEach(e,t=this){for(const i of this.indexes())e.call(t,this.valList[i],this.keyList[i],this)}rforEach(e,t=this){for(const i of this.rindexes())e.call(t,this.valList[i],this.keyList[i],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 i of this.indexes()){var t=this.keyList[i];const n={value:this.valList[i]};this.ttls&&(n.ttl=this.ttls[i]),this.sizes&&(n.size=this.sizes[i]),e.unshift([t,n])}return e}load(e){this.clear();for(var[t,i]of e)this.set(t,i.value,i)}dispose(e,t,i){}set(e,t,{ttl:i=this.ttl,noDisposeOnSet:n=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():n||(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===i||0!==this.ttl||this.ttls||this.initializeTTLTracking(),o||this.setItemTTL(a,i),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,i=this.keyList[t];const n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,i,"evict"),this.disposeAfter&&this.disposed.push([n,i,"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(i),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,i){var n=void 0===e?void 0:this.valList[e];if(this.isBackgroundFetch(n))return n;const r=new a,s={signal:r.signal,options:i},o=Promise.resolve(this.fetchMethod(t,n,s)).then(e=>(r.signal.aborted||this.set(t,e,s.options),e));return o.__abortController=r,o.__staleWhileFetching=n,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:i=this.updateAgeOnGet,ttl:n=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:i});n={allowStale:t,updateAgeOnGet:i,ttl:n,noDisposeOnSet:r,size:s,sizeCalculation:o,noUpdateTTL:a},r=this.keyMap.get(e);if(void 0===r)return this.backgroundFetch(e,r,n);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),i&&this.updateItemAge(r),s;o=this.backgroundFetch(e,r,n);return t&&void 0!==o.__staleWhileFetching?o.__staleWhileFetching:o}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet}={}){var n,r,s=this.keyMap.get(e);if(void 0!==s)return n=this.valList[s],r=this.isBackgroundFetch(n),this.isStale(s)?r?t?n.__staleWhileFetching:void 0:(this.delete(e),t?n:void 0):r?void 0:(this.moveToTail(s),i&&this.updateItemAge(s),n)}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 i=this.keyMap.get(e);if(void 0!==i)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(i);const n=this.valList[i];this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,e,"delete"),this.disposeAfter&&this.disposed.push([n,e,"delete"])),this.keyMap.delete(e),this.keyList[i]=null,this.valList[i]=null,i===this.tail?this.tail=this.prev[i]:i===this.head?this.head=this.next[i]:(this.next[this.prev[i]]=this.next[i],this.prev[this.next[i]]=this.prev[i]),this.size--,this.free.push(i)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const t of this.rindexes({allowStale:!0})){const i=this.valList[t];var e;this.isBackgroundFetch(i)?i.__abortController.abort():(e=this.keyList[t],this.dispose(i,e,"delete"),this.disposeAfter&&this.disposed.push([i,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,i,n;return t="size",n="LRU_CACHE_PROPERTY_"+(e="length"),w(n)&&(i=k["prototype"],i=Object.getOwnPropertyDescriptor(i,e)["get"],r(n,e+" property","cache."+t,i)),this.size}}e.exports=k},49:(e,t,i)=>{"use strict";var o=i(257);function n(){}function r(){}r.resetWarningCache=n,e.exports=function(){function e(e,t,i,n,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 i={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:n};return i.PropTypes=i}},507:(e,t,i)=>{e.exports=i(49)()},257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},529:(e,t,i)=>{"use strict";i=i(533);t.s=i.createRoot,i.hydrateRoot},103:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e};function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=i(363),l=o(s),i=o(i(507));function o(e){return e&&e.__esModule?e:{default:e}}s=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(e){if(!(this instanceof i))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,(i.__proto__||Object.getPrototypeOf(i)).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),n(i,[{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,i=window,n=this.getParentElement(t);(this.props.useWindow?(e=document.documentElement||document.body.parentNode||document.body,i=void 0!==i.pageYOffset?i.pageYOffset:e.scrollTop,this.props.isReverse?i:this.calculateOffset(t,i)):this.props.isReverse?n.scrollTop:t.scrollHeight-n.scrollTop-n.clientHeight)<Number(this.props.threshold)&&t&&null!==t.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.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),i=e.children,n=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 i,n={};for(i in e)0<=t.indexOf(i)||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"])),i=(e.ref=function(e){t.scrollComponent=e,a&&a(e)},[i]);return r&&(o?s?i.unshift(o):i.push(o):this.defaultLoader&&(s?i.unshift(this.defaultLoader):i.push(this.defaultLoader))),l.default.createElement(n,e,i)}}]),i}(s.Component);s.propTypes={children:i.default.node.isRequired,element:i.default.node,hasMore:i.default.bool,initialLoad:i.default.bool,isReverse:i.default.bool,loader:i.default.node,loadMore:i.default.func.isRequired,pageStart:i.default.number,ref:i.default.func,getScrollParent:i.default.func,threshold:i.default.number,useCapture:i.default.bool,useWindow:i.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,i)=>{e.exports=i(103)},768:(e,t,i)=>{"use strict";var i=i(363),a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function r(e,t,i){var n,r={},s=null,o=null;for(n in void 0!==i&&(s=""+i),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(o=t.ref),t)l.call(t,n)&&!u.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===r[n]&&(r[n]=t[n]);return{$$typeof:a,type:e,key:s,ref:o,props:r,_owner:c.current}}t.Fragment=n,t.jsx=r,t.jsxs=r},10:(e,t,i)=>{"use strict";e.exports=i(768)},590:e=>{"use strict";var c=[];function u(e){for(var t=-1,i=0;i<c.length;i++)if(c[i].identifier===e){t=i;break}return t}function a(e,t){for(var i={},n=[],r=0;r<e.length;r++){var s=e[r],o=t.base?s[0]+t.base:s[0],a=i[o]||0,l="".concat(o," ").concat(a),o=(i[o]=a+1,u(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 i=e.domAPI(e);return i.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||i.update(t=e):i.remove()}}(a,t),t.byIndex=r,c.splice(r,0,{identifier:l,updater:s,references:1})),n.push(l)}return n}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 i=u(o[t]);c[i].references--}for(var e=a(e,s),n=0;n<o.length;n++){var r=u(o[n]);0===c[r].references&&(c[r].updater(),c.splice(r,1))}o=e}}},804:e=>{"use strict";var i={};e.exports=function(e,t){if(!(e=function(e){if(void 0===i[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}i[e]=t}return i[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,i)=>{"use strict";e.exports=function(e){var t=i.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,i,n,r;t=o,i=s,n="",(e=e).supports&&(n+="@supports (".concat(e.supports,") {")),e.media&&(n+="@media ".concat(e.media," {")),(r=void 0!==e.layer)&&(n+="@layer".concat(0<e.layer.length?" ".concat(e.layer):""," {")),n+=e.css,r&&(n+="}"),e.media&&(n+="}"),e.supports&&(n+="}"),(r=e.sourceMap)&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),i.styleTagTransform(n,t,i.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))}}},363:e=>{"use strict";e.exports=React},533:e=>{"use strict";e.exports=ReactDOM}},n={};function dt(e){var t=n[e];if(void 0!==t)return t.exports;t=n[e]={id:e,exports:{}};return i[e].call(t.exports,t,t.exports,dt),t.exports}dt.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return dt.d(t,{a:t}),t},dt.d=(e,t)=>{for(var i in t)dt.o(t,i)&&!dt.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},dt.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);(()=>{"use strict";var D=dt(10),M=dt(529),e=$,s=dt.n(e),e=dt(803),R=dt.n(e),F=dt(363);const O=function(){var e=(0,F.useRef)(!1);return(0,F.useEffect)(function(){return e.current=!1,function(){e.current=!0}},[]),e};var z=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,s=i.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(n=s.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o};const W=function(e){var t=O(),i=(e=z((0,F.useState)(e),2))[0],n=e[1];return[i,(0,F.useCallback)(function(e){t.current||n(e)},[])]};const H=function(e){var i=(0,F.useRef)(e),t=(i.current=(0,F.useMemo)(function(){return e},[e]),(0,F.useRef)());return t.current||(t.current=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.current.apply(this,e)}),t.current};const C=function(e){(0,F.useEffect)(function(){null!=e&&e()},[])};var P=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,s=i.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(n=s.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o};const p=function(i,e){void 0===i&&(i=!1);var t=P((0,F.useState)(i),2),n=t[0],r=t[1];return[n,(0,F.useMemo)(function(){var t=void 0===e?!i:e;return{toggle:function(){return r(function(e){return e===i?t:i})},set:function(e){return r(e)},setLeft:function(){return r(i)},setRight:function(){return r(t)}}},[])]},m={access_key:""};const A="bilibili-app-recommend.config";function E(e){Object.assign(m,e),GM_setValue(A,m)}(e=GM_getValue(A))&&"object"==typeof e&&Object.assign(m,e);var e=axios,r=dt.n(e),e=dt(590),e=dt.n(e),t=dt(937),t=dt.n(t),i=dt(804),i=dt.n(i),n=dt(98),n=dt.n(n),o=dt(980),o=dt.n(o),a=dt(776),a=dt.n(a),l=dt(913),c={};c.styleTagTransform=a(),c.setAttributes=n(),c.insert=i().bind(null,"head"),c.domAPI=t(),c.insertStyleElement=o(),e()(l.Z,c),l.Z&&l.Z.locals&&l.Z.locals;function v(e,t=2e3){const i=s()(`<div class='${l.C}'>${e}</div>`);i.appendTo(document.body),setTimeout(()=>i.remove(),t)}async function U(){var e=await async function(){var e=(await r().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 i;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:"没有获得匹配的密钥"})}),i=setTimeout(()=>{t({errmsg:"获取授权超时"})},5e3)});const n=s()(`<iframe src='${e}' style="display: none;" />`);return n.appendTo(document.body),e=await t,n.remove(),i&&(clearTimeout(i),i=null),e}();{if(!("object"==typeof e&&"errmsg"in e))return E({access_key:e}),v("获取成功"),e;v(e.errmsg)}}c=axiosGmxhrAdapter,c=dt.n(c);const Z=r().create({adapter:c()});async function g(e){e=new Array(e).fill(0).map(e=>async function(){return(await Z.get("https://app.bilibili.com/x/feed/index",{params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0),access_key:m.access_key||""}})).data.data}());const t=await Promise.all(e);return t.reduce((e,t)=>e.concat(t),[])}var X=dt(533),c=dt(746),V=dt.n(c),c=dt(381),B=dt.n(c),G=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,s=i.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(n=s.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o};const q=function(e){var t=(0,F.useRef)(e);return t.current=e,t},J=!("undefined"==typeof window||!window.document||!window.document.createElement);function u(e,t){if(J){if(!e)return t;t="function"==typeof e?e():"current"in e?e.current:e;return t}}const Q=function(e){var t=q(e);(0,F.useEffect)(function(){return function(){t.current()}},[])};function K(e,t){if(e===t)return 1;for(var i=0;i<e.length;i++)if(!Object.is(e[i],t[i]))return;return 1}const ee=function(e){return function(i,n,r){var s=(0,F.useRef)(!1),o=(0,F.useRef)([]),a=(0,F.useRef)([]),l=(0,F.useRef)();e(function(){var e,t=(Array.isArray(r)?r:[r]).map(function(e){return u(e)});if(!s.current)return s.current=!0,o.current=t,a.current=n,void(l.current=i());t.length===o.current.length&&K(t,o.current)&&K(n,a.current)||(null!=(e=l.current)&&e.call(l),o.current=t,a.current=n,l.current=i())}),Q(function(){var e;null!=(e=l.current)&&e.call(l),s.current=!1})}},te=ee(F.useEffect);const d=function(i,e,n){void 0===n&&(n={});var r=q(e);te(function(){var e,t=u(n.target,window);if(null!=t&&t.addEventListener)return e=function(e){return r.current(e)},t.addEventListener(i,e,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(i,e,{capture:n.capture})}},[i,n.capture,n.once,n.passive],n.target)};var ie=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,s=i.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(n=s.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o};const ne=function(e,t){var i,n,t=t||{},r=t.onEnter,s=t.onLeave,t=ie((void 0===(t=!1)&&(t=!1),o=(t=G(p(t),2))[0],i=(t=t[1]).toggle,n=t.set,[o,(0,F.useMemo)(function(){return{toggle:i,set:function(e){return n(!!e)},setTrue:function(){return n(!0)},setFalse:function(){return n(!1)}}},[])]),2),o=t[0],t=t[1],a=t.setTrue,l=t.setFalse;return d("mouseenter",function(){null!=r&&r(),a()},{target:e}),d("mouseleave",function(){null!=s&&s(),l()},{target:e}),o};var c=dt(624),re=dt.n(c),se=Math.floor;const oe=function(e,t){var i="";if(!e||t<1||9007199254740991<t)return i;for(;t%2&&(i+=e),(t=se(t/2))&&(e+=e),t;);return i};var c="object"==typeof global&&global&&global.Object===Object&&global,h="object"==typeof self&&self&&self.Object===Object&&self,c=(c||h||Function("return this")()).Symbol;const ae=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r},le=Array.isArray;var h=Object.prototype,ce=h.hasOwnProperty,ue=h.toString,f=c?c.toStringTag:void 0;const de=function(e){var t=ce.call(e,f),i=e[f];try{var n=!(e[f]=void 0)}catch(e){}var r=ue.call(e);return n&&(t?e[f]=i:delete e[f]),r};var he=Object.prototype.toString;const fe=function(e){return he.call(e)};var pe=c?c.toStringTag:void 0;const me=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(pe&&pe in Object(e)?de:fe)(e)};const ve=function(e){return null!=e&&"object"==typeof e};const ge=function(e){return"symbol"==typeof e||ve(e)&&"[object Symbol]"==me(e)};var h=c?c.prototype:void 0,ye=h?h.toString:void 0;const be=function e(t){if("string"==typeof t)return t;if(le(t))return ae(t,e)+"";if(ge(t))return ye?ye.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i};const xe=function(e,t,i){for(var n=-1,r=e.length,s=((i=r<i?r:i)<0&&(i+=r),r=i<(t=t<0?r<-t?0:r+t:t)?0:i-t>>>0,t>>>=0,Array(r));++n<r;)s[n]=e[n+t];return s};const we=function(e,t,i){var n=e.length;return i=void 0===i?n:i,!t&&n<=i?e:xe(e,t,i)};var _e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const y=function(e){return _e.test(e)};const Se=function(t){return function(e){return null==e?void 0:e[t]}},je=Se("length");var c="\\ud800-\\udfff",h="["+c+"]",b="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",x="\\ud83c[\\udffb-\\udfff]",c="[^"+c+"]",w="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",S="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",j="[\\ufe0e\\ufe0f]?",j=j+S+("(?:\\u200d(?:"+[c,w,_].join("|")+")"+j+S+")*"),S="(?:"+[c+b+"?",b,w,_,h].join("|")+")",ke=RegExp(x+"(?="+x+")|"+S+j,"g");const Le=function(e){for(var t=ke.lastIndex=0;ke.test(e);)++t;return t};const Ne=function(e){return(y(e)?Le:je)(e)};const Te=function(e){return e.split("")};var c="\\ud800-\\udfff",b="["+c+"]",w="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_="\\ud83c[\\udffb-\\udfff]",h="[^"+c+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",j="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="[\\ufe0e\\ufe0f]?",c=c+j+("(?:\\u200d(?:"+[h,x,S].join("|")+")"+c+j+")*"),j="(?:"+[h+w+"?",w,x,S,b].join("|")+")",Me=RegExp(_+"(?="+_+")|"+j+c,"g");const Oe=function(e){return e.match(Me)||[]};const ze=function(e){return(y(e)?Oe:Te)(e)};var Ce=Math.ceil;const Pe=function(e,t){var i=(t=void 0===t?" ":be(t)).length;return i<2?i?oe(t,e):t:(i=oe(t,Ce(e/Ne(t))),y(t)?we(ze(i),0,e).join(""):i.slice(0,e))};var $e=/\s/;const Ae=function(e){for(var t=e.length;t--&&$e.test(e.charAt(t)););return t};var Ee=/^\s+/;const De=function(e){return e&&e.slice(0,Ae(e)+1).replace(Ee,"")};const Re=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Fe=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,He=/^0o[0-7]+$/i,Ie=parseInt;const Ye=function(e){if("number"==typeof e)return e;if(ge(e))return NaN;if(Re(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=Re(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=De(e);var t=We.test(e);return t||He.test(e)?Ie(e.slice(2),t?2:8):Fe.test(e)?NaN:+e};const Ue=function(e){return e?(e=Ye(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};const Ze=function(e){var t=(e=Ue(e))%1;return e==e?t?e-t:e:0};const Xe=function(e){return null==e?"":be(e)};const Ve=function(e,t,i){e=Xe(e);var n=(t=Ze(t))?Ne(e):0;return t&&n<t?Pe(t-n,i)+e:e};function I(e){if(!e)return"";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return(t=t.replace(/\.0$/,""))+"万"}var Be=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,s=i.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(n=s.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o};const Ge=function(e){var t=(0,F.useRef)(0),i=(e=Be((0,F.useState)(e),2))[0],n=e[1],e=(0,F.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){n(e)})},[]);return Q(function(){cancelAnimationFrame(t.current)}),[i,e]};var qe=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,s=i.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(n=s.next()).done;)o.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},Je={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 Qe(a){var e=qe(Ge(Je),2),t=e[0],l=e[1];return d("mousemove",function(e){var t,i=e.screenX,n=e.screenY,r=e.clientX,s=e.clientY,o=e.pageX,e=e.pageY,i={screenX:i,screenY:n,clientX:r,clientY:s,pageX:o,pageY:e,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},n=u(a);n&&(s=(r=n.getBoundingClientRect()).left,n=r.top,t=r.width,r=r.height,i.elementPosX=s+window.pageXOffset,i.elementPosY=n+window.pageYOffset,i.elementX=o-i.elementPosX,i.elementY=e-i.elementPosY,i.elementW=t,i.elementH=r),l(i)},{target:document}),t}function Ke({className:e,item:t,pvideo:i}){var n=(0,F.useRef)(null),{elementW:r,elementH:s,elementX:o}=Qe(n.current);let a=0,l=0;r&&o&&!isNaN(o)&&!isNaN(r)&&(1<(a=(a=o/r)<0?0:a)&&(a=1),l=Math.floor((t.duration||0)*a));var o=(0,F.useMemo)(()=>{var e=i?.index||[];let t=function(e,t){let i=0,n=e.length-1,r=-1;for(;i<=n;){var s=Math.floor((i+n)/2),o=e[s];if(t===o)return s;o<t?(i=s+1,r=s):n=s-1}if(-1===r)return-1;var a=e[r],l=e[r+1]??0;return a<t&&t<l?r:-1}(e,l);return-1!==t?t:l>e[e.length-1]?t=(t=Math.floor(e.length*a)-1)<0?0:t:0},[i,l]),{img_x_len:t,img_y_len:c}=i,u=c*t,d=(o+=1,Math.floor(o/u)),o=o-d*u,u=i.image?.[d]||"",d=Math.floor(o/t)+1;return(0,D.jsx)("div",{ref:n,className:e,style:{backgroundColor:"black",backgroundImage:`url(${u})`,backgroundPosition:`-${(o-(d-1)*t-1)*r}px -${(d-1)*s}px`,backgroundSize:r*t+`px ${s*c}px`},children:(0,D.jsx)(et,{progress:a})})}function et({progress:e}){return(0,D.jsx)("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:(0,D.jsx)("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:100*e+"%"}})})}h=dt(555),w=dt.n(h);const k=r().create({baseURL:"https://api.bilibili.com"});k.interceptors.request.use(function(e){return e.params?._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const L=new(w())({max:200});async function tt(e){if(L.has(e))return L.get(e);var[t,i]=await Promise.all([async function(e){return(await k.get("/pvideo",{params:{aid:e}})).data.data}(e),async function(){return[]}()]);return L.set(e,{pvideoData:t,dmData:i}),{pvideoData:t,dmData:i}}function it(i){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 k.post("/x/v2/history/toview/"+i,t,{withCredentials:!0})).data;return 0===e?.code&&"0"===e?.message}}const nt=it("add"),rt=it("del");var Y=dt(730),x={};x.styleTagTransform=a(),x.setAttributes=n(),x.insert=i().bind(null,"head"),x.domAPI=t(),x.insertStyleElement=o(),e()(Y.ZP,x),Y.ZP&&Y.ZP.locals&&Y.ZP.locals;const st=re()().format("YYYY"),ot=e=>{if(!e)return"";const t=re().unix(e);return t.format("YYYY")===st?t.format("M-D"):t.format("YY-M-D")},at=e=>e.replace(/^http:\/\//,"https://");function lt({item:e,className:t,loading:i}){var n=(0,F.useRef)(null);const r=ne(n);var s=(0,F.useRef)(null),o=ne(s);const[a,l]=W(!1),{param:c,title:u,cover:d,goto:h,play:f,like:p,desc:m,ctime:v,duration:g,name:y,mid:b,favorite:x,badge:w,rcmd_reason:_}=e;var S=(0,F.useMemo)(()=>ot(v),[v]),j=(0,F.useMemo)(()=>at(d),[d]);const[k,L]=W(null),[N,T]=W(!1),M=H(async()=>{if(!k&&!N)try{T(!0);var e=await tt(c);L(e)}finally{T(!1)}});(0,F.useEffect)(()=>{r&&M()},[r]);let O=!1;var z=H(async e=>{if(e.preventDefault(),!O){O=!0;const t=a?rt:nt;let e=!1;try{e=await t(c)}finally{O=!1}e&&l(e=>!e)}}),C=(H(()=>{}),H(()=>{}),"av"===e.goto?"/video/av"+c:e.uri),P=(0,F.useMemo)(()=>{{var e;if(!(e=g))return"00:00";var t=Math.trunc(e/3600),i=(e-=3600*t,Math.trunc(e/60)),e=e-=60*i;const n=[t,i,e];return 0===n[0]&&n.shift(),n.map(e=>Ve(e.toString(),2,"0")).join(":")}},[g]),$=(0,F.useMemo)(()=>I(f),[f]),A=(0,F.useMemo)(()=>I(p),[p]),E=(0,F.useMemo)(()=>I(x),[x]);return(0,D.jsxs)("div",{className:R()("bili-video-card",t),"data-report":"partition_recommend.content",children:[(0,D.jsxs)("div",{className:R()("bili-video-card__skeleton",{hide:!i}),children:[(0,D.jsx)("div",{className:"bili-video-card__skeleton--cover"}),(0,D.jsx)("div",{className:"bili-video-card__skeleton--info",children:(0,D.jsxs)("div",{className:"bili-video-card__skeleton--right",children:[(0,D.jsx)("p",{className:"bili-video-card__skeleton--text"}),(0,D.jsx)("p",{className:"bili-video-card__skeleton--text short"}),(0,D.jsx)("p",{className:"bili-video-card__skeleton--light"})]})})]}),i?null:(0,D.jsxs)("div",{className:"bili-video-card__wrap __scale-wrap",children:[(0,D.jsx)("a",{href:C,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:(0,D.jsxs)("div",{className:"bili-video-card__image __scale-player-wrap",ref:n,children:[(0,D.jsxs)("div",{className:"bili-video-card__image--wrap",style:{overflow:"hidden"},children:[(0,D.jsxs)("picture",{className:"v-img bili-video-card__cover",children:[(0,D.jsx)("source",{srcSet:j+"@672w_378h_1c.webp",type:"image/webp"}),(0,D.jsx)("img",{src:j+"@672w_378h_1c.webp",alt:u,loading:"lazy"})]}),r&&k?.pvideoData?(0,D.jsx)(Ke,{className:Y.sN,item:e,pvideo:k?.pvideoData}):null,(0,D.jsxs)("div",{className:"bili-watch-later "+Y.Zl,style:{display:r?"flex":"none"},ref:s,onClick:z,children:[(0,D.jsx)("svg",{className:"bili-watch-later__icon",children:(0,D.jsx)("use",{xlinkHref:a?"#widget-watch-save":"#widget-watch-later"})}),(0,D.jsx)("span",{className:"bili-watch-later__tip",style:{display:o?"block":"none"},children:a?"移除":"稍后再看"})]})]}),(0,D.jsx)("div",{className:"bili-video-card__mask",children:(0,D.jsxs)("div",{className:"bili-video-card__stats",children:[(0,D.jsxs)("div",{className:"bili-video-card__stats--left",children:[(0,D.jsxs)("span",{className:"bili-video-card__stats--item",children:[(0,D.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,D.jsx)("use",{xlinkHref:"#widget-play-count"})}),(0,D.jsx)("span",{className:"bili-video-card__stats--text",children:$})]}),(0,D.jsx)("span",{className:"bili-video-card__stats--item",children:"av"===h?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,D.jsx)("use",{xlinkHref:"#widget-agree"})}),(0,D.jsx)("span",{className:"bili-video-card__stats--text",children:A})]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("svg",{className:"bili-video-card__stats--icon",children:(0,D.jsx)("use",{xlinkHref:"#widget-agree"})}),(0,D.jsx)("span",{className:"bili-video-card__stats--text",children:E})]})})]}),(0,D.jsx)("span",{className:"bili-video-card__stats__duration",children:P})]})})]})}),(0,D.jsx)("div",{className:"bili-video-card__info __scale-disable",children:(0,D.jsxs)("div",{className:"bili-video-card__info--right",children:[(0,D.jsx)("a",{href:C,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:(0,D.jsx)("h3",{className:"bili-video-card__info--tit",title:u,children:u})}),(0,D.jsxs)("p",{className:"bili-video-card__info--bottom",children:["av"===h?(0,D.jsxs)("a",{className:"bili-video-card__info--owner",href:"//space.bilibili.com/"+b,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[_?.content?(0,D.jsx)("span",{className:Y.Nd,children:_.content}):(0,D.jsx)("svg",{className:"bili-video-card__info--owner__up",children:(0,D.jsx)("use",{xlinkHref:"#widget-up"})}),(0,D.jsx)("span",{className:"bili-video-card__info--author",children:y}),S?(0,D.jsxs)("span",{className:"bili-video-card__info--date",children:["· ",S]}):null]}):null,"bangumi"===h?(0,D.jsxs)("a",{className:"bili-video-card__info--owner",href:C,target:"_blank",children:[(0,D.jsx)("span",{className:Y.R0,children:w}),(0,D.jsx)("span",{className:Y.Rs,children:m})]}):null]})]})})]})]})}var N=dt(9),S={};S.styleTagTransform=a(),S.setAttributes=n(),S.insert=i().bind(null,"head"),S.domAPI=t(),S.insertStyleElement=o(),e()(N.ZP,S),N.ZP&&N.ZP.locals&&N.ZP.locals;const ct=function({show:e,onHide:t}){const n=(0,F.useRef)(null),[i,r]=((0,F.useEffect)(()=>{const e=n.current;var t,i;e&&document.body.classList.contains("dark")&&(t=window.getComputedStyle(document.body)["background-color"],i=window.getComputedStyle(document.body).color,e.style.setProperty("--bg",t),e.style.setProperty("--c",i),e.style.setProperty("background-color","var(--bg)"),e.style.setProperty("color","var(--c)"))},[e]),W([])),[s,o]=W(!1),a=(0,F.useRef)(null);var l=H(async()=>{a.current&&(a.current.scrollTop=0),await V()(50);try{o(!0),r(await g(2))}finally{o(!1)}}),c=H(async e=>{const t=await g(2);r(e=>[...e,...t])});(0,F.useLayoutEffect)(()=>{e?document.body.style.overflow="hidden":(r([]),document.body.style.overflow="auto")},[e]);const u=(0,F.useId)();var d=(0,F.useMemo)(()=>{const e=document.createElement("div");return e.setAttribute("data-id","modal-feed-"+u),document.body.appendChild(e),e},[]);return e?(0,X.createPortal)((0,D.jsx)("div",{className:N.Fy,children:(0,D.jsxs)("div",{className:N.oC,ref:n,children:[(0,D.jsxs)("div",{className:N.X3,children:[(0,D.jsx)("div",{className:N.d$,children:"推荐"}),(0,D.jsx)("div",{className:"space",style:{flex:1}}),(0,D.jsxs)("button",{className:"primary-btn roll-btn "+N.jm,onClick:l,children:[(0,D.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,D.jsx)("use",{xlinkHref:"#widget-roll"})}),(0,D.jsx)("span",{children:"换一换"})]}),(0,D.jsx)("button",{className:"primary-btn roll-btn "+N.Kh,onClick:t,children:(0,D.jsx)("span",{children:"关闭"})})]}),(0,D.jsx)("div",{className:N.o_,ref:a,children:(0,D.jsx)(B(),{pageStart:0,loadMore:c,hasMore:!0,useWindow:!1,threshold:320,loader:(0,D.jsx)("div",{className:N._m,children:"加载中..."},0),children:(0,D.jsx)("div",{className:"video-card-list is-full "+N.YD,children:(0,D.jsx)("div",{className:"video-card-body more-class1 more-class2",children:i.map(e=>(0,D.jsx)(lt,{item:e,loading:s},e.param))})})})})]})}),d):null};var T=dt(181),b={};b.styleTagTransform=a(),b.setAttributes=n(),b.insert=i().bind(null,"head"),b.domAPI=t(),b.insertStyleElement=o(),e()(T.ZP,b),T.ZP&&T.ZP.locals&&T.ZP.locals;function ut(){const[e,t]=W(m.access_key),i=H(async(e=!1)=>{!e&&m.access_key?t(m.access_key):(e=await U())&&t(e)});var n=H(()=>{E({access_key:""}),v("已删除 access_key"),t("")});const[r,s]=W([]),[o,a]=W(!1),l=H(async()=>{a(!0);try{var e=await g(2);s(e)}finally{a(!1)}}),[c,u]=(C(async()=>{l()}),W(!1));var d=H(()=>{u(!0)}),[h,f]=p(!1);return(0,D.jsx)("section",{className:R()("bili-grid no-margin",T.eC),"data-area":"推荐",children:(0,D.jsxs)("div",{className:"video-card-list is-full "+T.YD,children:[(0,D.jsxs)("div",{className:"area-header",children:[(0,D.jsxs)("div",{className:"left",children:[(0,D.jsx)("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),(0,D.jsx)("svg",{className:"icon",children:(0,D.jsx)("use",{xlinkHref:"#channel-cinephile"})}),(0,D.jsx)("a",{className:"title",href:"#",children:(0,D.jsx)("span",{children:"推荐"})})]}),(0,D.jsxs)("div",{className:"right",children:[e?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("button",{className:R()("primary-btn",T.GG),onClick:f.toggle,children:(0,D.jsx)("svg",{className:R()({[T.zh]:h}),children:(0,D.jsx)("use",{xlinkHref:"#widget-arrow"})})}),h&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("button",{className:"primary-btn roll-btn",onClick:()=>i(!0),children:(0,D.jsx)("span",{children:"重新获取 access_key"})}),(0,D.jsx)("button",{className:"primary-btn roll-btn",onClick:n,children:(0,D.jsx)("span",{children:"删除 access_key"})})]})]}):(0,D.jsx)("button",{className:"primary-btn roll-btn",onClick:i,children:(0,D.jsx)("span",{children:"获取 access_key"})}),(0,D.jsxs)("button",{className:"primary-btn roll-btn",onClick:l,children:[(0,D.jsx)("svg",{style:{transform:"rotate(0deg)"},children:(0,D.jsx)("use",{xlinkHref:"#widget-roll"})}),(0,D.jsx)("span",{children:"换一换"})]}),(0,D.jsxs)("button",{className:"primary-btn see-more",onClick:d,children:[(0,D.jsx)("span",{children:"查看更多"}),(0,D.jsx)("svg",{children:(0,D.jsx)("use",{xlinkHref:"#widget-arrow"})})]})]})]}),(0,D.jsx)(ct,{show:c,onHide:()=>u(!1)}),(0,D.jsx)("div",{className:"video-card-body more-class1 more-class2",children:r.map(e=>(0,D.jsx)(lt,{item:e,loading:o},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 V()(100);if(t()){var i=s()(".bili-layout > section.bili-grid").eq(0);const n=s()("<section></section>");n.insertAfter(i);i=n[0];const r=(0,M.s)(i);r.render((0,D.jsx)(ut,{}))}else console.error("[bilibili-app-recommend]: init fail")}()})()})();

QingJ © 2025

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