// ==UserScript==
// @name bilibili-app-recommend
// @namespace https://magicdawn.fun
// @version 0.3.0
// @author magicdawn
// @description 为B站首页添加像App一样的推荐
// @license MIT
// @homepageURL https://github.com/magicdawn/bilibili-app-recommend
// @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues
// @include https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match *://www.bilibili.com/*
// @require https://unpkg.com/[email protected]/dist/jquery.min.js
// @require https://unpkg.com/[email protected]/dist/axios.min.js
// @require https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require https://unpkg.com/[email protected]/umd/react.production.min.js
// @require https://unpkg.com/[email protected]/umd/react-dom.production.min.js
// @connect app.bilibili.com
// @connect passport.bilibili.com
// @connect link.acg.tv
// @connect www.mcbbs.net
// @grant GM.xmlHttpRequest
// @grant GM_xmlhttpRequest
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
// @grant unsafeWindow
// ==/UserScript==
;(({ cssTextList = [] }) => {
cssTextList.forEach((s) => {
const style = document.createElement("style");
style.innerText = s;
style.dataset.source = "vite-plugin-monkey";
document.head.appendChild(style);
});
})({
"cssTextList": [
"._toast-container_9119l_1{position:fixed;top:50%;left:50%;z-index:999999;padding:12px 24px;font-size:14px;width:240px;margin-left:-120px;background:#ffb243;color:#fff;border-radius:6px}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._bili-video-card_3h2r6_1{position:relative}._image-wrapper_3h2r6_4{border-radius:\"6px\";overflow:\"hidden\"}._preview-card-wrapper_3h2r6_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._watch-later_3h2r6_21{z-index:3}._badge_3h2r6_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8)}._recommend-reason_3h2r6_32{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_3h2r6_47{color:default}._btn-dislike_3h2r6_50{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_3h2r6_50 ._btn-dislike-icon_3h2r6_65{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_3h2r6_50 ._btn-dislike-tip_3h2r6_72{pointer-events:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_3h2r6_87{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_3h2r6_87{border:1px solid #333}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-icon_3h2r6_118{color:inherit}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-reason_3h2r6_121{font-size:20px;text-align:center}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-desc_3h2r6_125{font-size:16px;text-align:center}._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129{border-top:1px solid #333}._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129 button{font-size:18px;color:inherit}._modal-mask_vh629_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:11003;display:flex;align-items:center;justify-content:center}._modal_vh629_1{width:500px;max-height:calc(80vh - 50px);border-radius:10px;overflow:hidden;background-color:#fff;padding:0 15px 15px;display:flex;flex-direction:column}._modal_vh629_1 ._modal-header_vh629_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal_vh629_1 ._modal-header_vh629_23 ._modal-title_vh629_30{font-size:1.5rem;margin-bottom:0;line-height:1.5}._modal_vh629_1 ._modal-header_vh629_23 ._title-desc_vh629_35{margin-left:5px;font-size:40%}._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39{margin-left:10px}._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_vh629_1 ._modal-body_vh629_57{padding-top:0;flex-grow:1;overflow-y:scroll}._reason-list_vh629_62{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_vh629_62{color:inherit;width:45%;text-align:center;line-height:20px;border:1px solid #eee;margin-top:8px;margin-bottom:8px;padding-top:5px;padding-bottom:5px}body.dark ._reason_vh629_62{border:1px solid #333}._modal-mask_5dl20_1{position:fixed;left:0;top:0;right:0;bottom:0;z-index:11000;background-color:#00000080;display:flex;align-items:center;justify-content:center}._modal-mask_5dl20_1._narrow-mode_5dl20_13{background-color:#000000e6}._modal_5dl20_1{width:calc(100vw - 50px);height:calc(100vh - 50px);border:1px solid #fa6a9d;border-radius:10px;overflow:hidden;background-color:#fff;padding:0 0 15px 15px;display:flex;flex-direction:column}._modal_5dl20_1._narrow-mode_5dl20_13{width:606px;height:calc(100vh - 10px)}._modal_5dl20_1 ._modal-header_5dl20_32{padding-top:10px;padding-bottom:10px;border-bottom:none;padding-right:15px;display:flex;align-items:center}._modal_5dl20_1 ._modal-header_5dl20_32 ._modal-title_5dl20_40{font-size:1.5rem;margin-bottom:0;line-height:1.5}body.dark ._modal_5dl20_1 ._modal-header_5dl20_32 ._btn-refresh_5dl20_45,body.dark ._modal_5dl20_1 ._modal-header_5dl20_32 ._btn-close_5dl20_46{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_5dl20_1 ._modal-header_5dl20_32 ._btn-close_5dl20_46{margin-left:10px}._modal_5dl20_1 ._modal-header_5dl20_32 ._btn-close_5dl20_46 svg{width:10px;height:10px}._modal_5dl20_1 ._modal-body_5dl20_62{padding-top:0;flex-grow:1;overflow-y:scroll;padding-right:15px}._list_5dl20_68{color:inherit}._card_5dl20_71{border:2px solid transparent}._card_5dl20_71._active_5dl20_74{border-color:#fa6a9d;border-radius:6px}._video-card-list_5dl20_78{display:block!important}#_video-card-body_5dl20_1>*{display:block!important}#_video-card-body_5dl20_1._narrow-mode_5dl20_13{grid-template-columns:repeat(2,1fr)}._loader_5dl20_87{text-align:center;line-height:60px;font-size:120%}#_use-narrow-mode_5dl20_1{margin-left:5px;margin-top:1px;cursor:pointer;outline:none}#_use-narrow-mode_5dl20_1+label{margin-left:2px;user-select:none;cursor:pointer}._grid_p5dvw_1{color:default}@media (min-width: 2200px){._video-card-list_p5dvw_5.is-full{grid-column:span 7!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2{grid-column:span 7!important;grid-template-columns:repeat(7,1fr)!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2>*{display:block!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2>*:nth-of-type(1n + 15){display:none!important}}._expand-btn_p5dvw_19{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_p5dvw_19 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_p5dvw_19 svg._expanded_p5dvw_30{transform:rotate(0)}\n"
]
});
var HT=Object.defineProperty,zT=Object.defineProperties;var GT=Object.getOwnPropertyDescriptors;var wi=Object.getOwnPropertySymbols;var If=Object.prototype.hasOwnProperty,Pf=Object.prototype.propertyIsEnumerable;var Ba=(Re,Ce,D)=>Ce in Re?HT(Re,Ce,{enumerable:!0,configurable:!0,writable:!0,value:D}):Re[Ce]=D,vn=(Re,Ce)=>{for(var D in Ce||(Ce={}))If.call(Ce,D)&&Ba(Re,D,Ce[D]);if(wi)for(var D of wi(Ce))Pf.call(Ce,D)&&Ba(Re,D,Ce[D]);return Re},kn=(Re,Ce)=>zT(Re,GT(Ce));var Nf=(Re,Ce)=>{var D={};for(var yt in Re)If.call(Re,yt)&&Ce.indexOf(yt)<0&&(D[yt]=Re[yt]);if(Re!=null&&wi)for(var yt of wi(Re))Ce.indexOf(yt)<0&&Pf.call(Re,yt)&&(D[yt]=Re[yt]);return D};var Wa=(Re,Ce,D)=>(Ba(Re,typeof Ce!="symbol"?Ce+"":Ce,D),D);(function(Re,Ce,D,yt,$f){"use strict";function Un(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var Hn=Un(Re),Ff=Un(Ce),bi=Un(D),Si=Un(yt),Bf=Un($f),Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},xi={exports:{}};const Wf=(i,s)=>Math.floor(Math.random()*(s-i+1)+i),ka=()=>{const i=new Error("Delay aborted");return i.name="AbortError",i},Ua=({clearTimeout:i,setTimeout:s,willResolve:r})=>(u,{value:f,signal:h}={})=>{if(h&&h.aborted)return Promise.reject(ka());let g,m,w;const A=i||clearTimeout,R=()=>{A(g),w(ka())},L=()=>{h&&h.removeEventListener("abort",R)},O=new Promise((E,M)=>{m=()=>{L(),r?E(f):M(f)},w=M,g=(s||setTimeout)(m,u)});return h&&h.addEventListener("abort",R,{once:!0}),O.clear=()=>{A(g),g=null,m()},O},Ha=i=>{const s=Ua(kn(vn({},i),{willResolve:!0}));return s.reject=Ua(kn(vn({},i),{willResolve:!1})),s.range=(r,u,f)=>s(Wf(r,u),f),s},Ai=Ha();Ai.createWithTimers=Ha,xi.exports=Ai,xi.exports.default=Ai;var za=xi.exports,Ti,kf=Ff.default;Ti=kf.createRoot;var Ga={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(i){(function(){var s={}.hasOwnProperty;function r(){for(var u=[],f=0;f<arguments.length;f++){var h=arguments[f];if(!!h){var g=typeof h;if(g==="string"||g==="number")u.push(h);else if(Array.isArray(h)){if(h.length){var m=r.apply(null,h);m&&u.push(m)}}else if(g==="object")if(h.toString===Object.prototype.toString)for(var w in h)s.call(h,w)&&h[w]&&u.push(w);else u.push(h.toString())}}return u.join(" ")}i.exports?(r.default=r,i.exports=r):window.classNames=r})()})(Ga);var Qe=Ga.exports;function ke(i){var s=D.useRef(i);s.current=D.useMemo(function(){return i},[i]);var r=D.useRef();return r.current||(r.current=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return s.current.apply(this,u)}),r.current}function Ka(i,s){if(i===s)return!0;for(var r=0;r<i.length;r++)if(!Object.is(i[r],s[r]))return!1;return!0}function fr(i){var s=D.useRef(i);return s.current=i,s}var Uf=function(s){var r=fr(s);D.useEffect(function(){return function(){r.current()}},[])},Ya=Uf;function Hf(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}var Xa=Hf,zf=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct,Za=zf,Gf=Za,Kf=typeof self=="object"&&self&&self.Object===Object&&self,Yf=Gf||Kf||Function("return this")(),It=Yf,Xf=It,Zf=Xf.Symbol,Ci=Zf,qa=Ci,Ja=Object.prototype,qf=Ja.hasOwnProperty,Jf=Ja.toString,zn=qa?qa.toStringTag:void 0;function jf(i){var s=qf.call(i,zn),r=i[zn];try{i[zn]=void 0;var u=!0}catch{}var f=Jf.call(i);return u&&(s?i[zn]=r:delete i[zn]),f}var Vf=jf,Qf=Object.prototype,eh=Qf.toString;function th(i){return eh.call(i)}var nh=th,ja=Ci,rh=Vf,ih=nh,sh="[object Null]",ah="[object Undefined]",Va=ja?ja.toStringTag:void 0;function oh(i){return i==null?i===void 0?ah:sh:Va&&Va in Object(i)?rh(i):ih(i)}var hr=oh;function uh(i){return i!=null&&typeof i=="object"}var dr=uh,lh=function(s){D.useEffect(function(){s==null||s()},[])},ch=lh,fh=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function Qa(i,s){i===void 0&&(i=!1);var r=fh(D.useState(i),2),u=r[0],f=r[1],h=D.useMemo(function(){var g=s===void 0?!i:s,m=function(){return f(function(O){return O===i?g:i})},w=function(O){return f(O)},A=function(){return f(i)},R=function(){return f(g)};return{toggle:m,set:w,setLeft:A,setRight:R}},[]);return[u,h]}var hh=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function dh(i){i===void 0&&(i=!1);var s=hh(Qa(i),2),r=s[0],u=s[1],f=u.toggle,h=u.set,g=D.useMemo(function(){var m=function(){return h(!0)},w=function(){return h(!1)};return{toggle:f,set:function(R){return h(!!R)},setTrue:m,setFalse:w}},[]);return[r,g]}var ph=!!(typeof window!="undefined"&&window.document&&window.document.createElement),gh=ph;function pr(i,s){if(!!gh){if(!i)return s;var r;return typeof i=="function"?r=i():"current"in i?r=i.current:r=i,r}}var vh=function(s){var r=function(f,h,g){var m=D.useRef(!1),w=D.useRef([]),A=D.useRef([]),R=D.useRef();s(function(){var L,O=Array.isArray(g)?g:[g],E=O.map(function(M){return pr(M)});if(!m.current){m.current=!0,w.current=E,A.current=h,R.current=f();return}(E.length!==w.current.length||!Ka(E,w.current)||!Ka(h,A.current))&&((L=R.current)===null||L===void 0||L.call(R),w.current=E,A.current=h,R.current=f())}),Ya(function(){var L;(L=R.current)===null||L===void 0||L.call(R),m.current=!1})};return r},_h=vh,mh=_h(D.useEffect),eo=mh,to={exports:{}};(function(i,s){(function(r,u){i.exports=u()})(Ct,function(){var r=1e3,u=6e4,f=36e5,h="millisecond",g="second",m="minute",w="hour",A="day",R="week",L="month",O="quarter",E="year",M="date",U="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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,de={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("_")},ae=function(j,W,I){var X=String(j);return!X||X.length>=W?j:""+Array(W+1-X.length).join(I)+j},ie={s:ae,z:function(j){var W=-j.utcOffset(),I=Math.abs(W),X=Math.floor(I/60),P=I%60;return(W<=0?"+":"-")+ae(X,2,"0")+":"+ae(P,2,"0")},m:function j(W,I){if(W.date()<I.date())return-j(I,W);var X=12*(I.year()-W.year())+(I.month()-W.month()),P=W.clone().add(X,L),z=I-P<0,Z=W.clone().add(X+(z?-1:1),L);return+(-(X+(I-P)/(z?P-Z:Z-P))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:L,y:E,w:R,d:A,D:M,h:w,m,s:g,ms:h,Q:O}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},q="en",ge={};ge[q]=de;var Se=function(j){return j instanceof Ie},ye=function j(W,I,X){var P;if(!W)return q;if(typeof W=="string"){var z=W.toLowerCase();ge[z]&&(P=z),I&&(ge[z]=I,P=z);var Z=W.split("-");if(!P&&Z.length>1)return j(Z[0])}else{var oe=W.name;ge[oe]=W,P=oe}return!X&&P&&(q=P),P||!X&&q},Q=function(j,W){if(Se(j))return j.clone();var I=typeof W=="object"?W:{};return I.date=j,I.args=arguments,new Ie(I)},J=ie;J.l=ye,J.i=Se,J.w=function(j,W){return Q(j,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Ie=function(){function j(I){this.$L=ye(I.locale,null,!0),this.parse(I)}var W=j.prototype;return W.parse=function(I){this.$d=function(X){var P=X.date,z=X.utc;if(P===null)return new Date(NaN);if(J.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var Z=P.match(F);if(Z){var oe=Z[2]-1||0,fe=(Z[7]||"0").substring(0,3);return z?new Date(Date.UTC(Z[1],oe,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,fe)):new Date(Z[1],oe,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,fe)}}return new Date(P)}(I),this.$x=I.x||{},this.init()},W.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},W.$utils=function(){return J},W.isValid=function(){return this.$d.toString()!==U},W.isSame=function(I,X){var P=Q(I);return this.startOf(X)<=P&&P<=this.endOf(X)},W.isAfter=function(I,X){return Q(I)<this.startOf(X)},W.isBefore=function(I,X){return this.endOf(X)<Q(I)},W.$g=function(I,X,P){return J.u(I)?this[X]:this.set(P,I)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(I,X){var P=this,z=!!J.u(X)||X,Z=J.p(I),oe=function(Ue,Le){var ct=J.w(P.$u?Date.UTC(P.$y,Le,Ue):new Date(P.$y,Le,Ue),P);return z?ct:ct.endOf(A)},fe=function(Ue,Le){return J.w(P.toDate()[Ue].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(Le)),P)},he=this.$W,Ee=this.$M,tt=this.$D,$e="set"+(this.$u?"UTC":"");switch(Z){case E:return z?oe(1,0):oe(31,11);case L:return z?oe(1,Ee):oe(0,Ee+1);case R:var lt=this.$locale().weekStart||0,Nt=(he<lt?he+7:he)-lt;return oe(z?tt-Nt:tt+(6-Nt),Ee);case A:case M:return fe($e+"Hours",0);case w:return fe($e+"Minutes",1);case m:return fe($e+"Seconds",2);case g:return fe($e+"Milliseconds",3);default:return this.clone()}},W.endOf=function(I){return this.startOf(I,!1)},W.$set=function(I,X){var P,z=J.p(I),Z="set"+(this.$u?"UTC":""),oe=(P={},P[A]=Z+"Date",P[M]=Z+"Date",P[L]=Z+"Month",P[E]=Z+"FullYear",P[w]=Z+"Hours",P[m]=Z+"Minutes",P[g]=Z+"Seconds",P[h]=Z+"Milliseconds",P)[z],fe=z===A?this.$D+(X-this.$W):X;if(z===L||z===E){var he=this.clone().set(M,1);he.$d[oe](fe),he.init(),this.$d=he.set(M,Math.min(this.$D,he.daysInMonth())).$d}else oe&&this.$d[oe](fe);return this.init(),this},W.set=function(I,X){return this.clone().$set(I,X)},W.get=function(I){return this[J.p(I)]()},W.add=function(I,X){var P,z=this;I=Number(I);var Z=J.p(X),oe=function(Ee){var tt=Q(z);return J.w(tt.date(tt.date()+Math.round(Ee*I)),z)};if(Z===L)return this.set(L,this.$M+I);if(Z===E)return this.set(E,this.$y+I);if(Z===A)return oe(1);if(Z===R)return oe(7);var fe=(P={},P[m]=u,P[w]=f,P[g]=r,P)[Z]||1,he=this.$d.getTime()+I*fe;return J.w(he,this)},W.subtract=function(I,X){return this.add(-1*I,X)},W.format=function(I){var X=this,P=this.$locale();if(!this.isValid())return P.invalidDate||U;var z=I||"YYYY-MM-DDTHH:mm:ssZ",Z=J.z(this),oe=this.$H,fe=this.$m,he=this.$M,Ee=P.weekdays,tt=P.months,$e=function(Le,ct,Ot,wt){return Le&&(Le[ct]||Le(X,z))||Ot[ct].slice(0,wt)},lt=function(Le){return J.s(oe%12||12,Le,"0")},Nt=P.meridiem||function(Le,ct,Ot){var wt=Le<12?"AM":"PM";return Ot?wt.toLowerCase():wt},Ue={YY:String(this.$y).slice(-2),YYYY:this.$y,M:he+1,MM:J.s(he+1,2,"0"),MMM:$e(P.monthsShort,he,tt,3),MMMM:$e(tt,he),D:this.$D,DD:J.s(this.$D,2,"0"),d:String(this.$W),dd:$e(P.weekdaysMin,this.$W,Ee,2),ddd:$e(P.weekdaysShort,this.$W,Ee,3),dddd:Ee[this.$W],H:String(oe),HH:J.s(oe,2,"0"),h:lt(1),hh:lt(2),a:Nt(oe,fe,!0),A:Nt(oe,fe,!1),m:String(fe),mm:J.s(fe,2,"0"),s:String(this.$s),ss:J.s(this.$s,2,"0"),SSS:J.s(this.$ms,3,"0"),Z};return z.replace(H,function(Le,ct){return ct||Ue[Le]||Z.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(I,X,P){var z,Z=J.p(X),oe=Q(I),fe=(oe.utcOffset()-this.utcOffset())*u,he=this-oe,Ee=J.m(this,oe);return Ee=(z={},z[E]=Ee/12,z[L]=Ee,z[O]=Ee/3,z[R]=(he-fe)/6048e5,z[A]=(he-fe)/864e5,z[w]=he/f,z[m]=he/u,z[g]=he/r,z)[Z]||he,P?Ee:J.a(Ee)},W.daysInMonth=function(){return this.endOf(L).$D},W.$locale=function(){return ge[this.$L]},W.locale=function(I,X){if(!I)return this.$L;var P=this.clone(),z=ye(I,X,!0);return z&&(P.$L=z),P},W.clone=function(){return J.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},j}(),Pt=Ie.prototype;return Q.prototype=Pt,[["$ms",h],["$s",g],["$m",m],["$H",w],["$W",A],["$M",L],["$y",E],["$D",M]].forEach(function(j){Pt[j[1]]=function(W){return this.$g(W,j[0],j[1])}}),Q.extend=function(j,W){return j.$i||(j(W,Ie,Q),j.$i=!0),Q},Q.locale=ye,Q.isDayjs=Se,Q.unix=function(j){return Q(1e3*j)},Q.en=ge[q],Q.Ls=ge,Q.p={},Q})})(to);var no=to.exports;function yh(){this.__data__=[],this.size=0}var wh=yh;function bh(i,s){return i===s||i!==i&&s!==s}var ro=bh,Sh=ro;function xh(i,s){for(var r=i.length;r--;)if(Sh(i[r][0],s))return r;return-1}var gr=xh,Ah=gr,Th=Array.prototype,Ch=Th.splice;function Eh(i){var s=this.__data__,r=Ah(s,i);if(r<0)return!1;var u=s.length-1;return r==u?s.pop():Ch.call(s,r,1),--this.size,!0}var Lh=Eh,Oh=gr;function Rh(i){var s=this.__data__,r=Oh(s,i);return r<0?void 0:s[r][1]}var Mh=Rh,Dh=gr;function Ih(i){return Dh(this.__data__,i)>-1}var Ph=Ih,Nh=gr;function $h(i,s){var r=this.__data__,u=Nh(r,i);return u<0?(++this.size,r.push([i,s])):r[u][1]=s,this}var Fh=$h,Bh=wh,Wh=Lh,kh=Mh,Uh=Ph,Hh=Fh;function _n(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}_n.prototype.clear=Bh,_n.prototype.delete=Wh,_n.prototype.get=kh,_n.prototype.has=Uh,_n.prototype.set=Hh;var vr=_n,zh=vr;function Gh(){this.__data__=new zh,this.size=0}var Kh=Gh;function Yh(i){var s=this.__data__,r=s.delete(i);return this.size=s.size,r}var Xh=Yh;function Zh(i){return this.__data__.get(i)}var qh=Zh;function Jh(i){return this.__data__.has(i)}var jh=Jh,Vh=hr,Qh=Xa,ed="[object AsyncFunction]",td="[object Function]",nd="[object GeneratorFunction]",rd="[object Proxy]";function id(i){if(!Qh(i))return!1;var s=Vh(i);return s==td||s==nd||s==ed||s==rd}var io=id,sd=It,ad=sd["__core-js_shared__"],od=ad,Ei=od,so=function(){var i=/[^.]+$/.exec(Ei&&Ei.keys&&Ei.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function ud(i){return!!so&&so in i}var ld=ud,cd=Function.prototype,fd=cd.toString;function hd(i){if(i!=null){try{return fd.call(i)}catch{}try{return i+""}catch{}}return""}var ao=hd,dd=io,pd=ld,gd=Xa,vd=ao,_d=/[\\^$.*+?()[\]{}|]/g,md=/^\[object .+?Constructor\]$/,yd=Function.prototype,wd=Object.prototype,bd=yd.toString,Sd=wd.hasOwnProperty,xd=RegExp("^"+bd.call(Sd).replace(_d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ad(i){if(!gd(i)||pd(i))return!1;var s=dd(i)?xd:md;return s.test(vd(i))}var Td=Ad;function Cd(i,s){return i==null?void 0:i[s]}var Ed=Cd,Ld=Td,Od=Ed;function Rd(i,s){var r=Od(i,s);return Ld(r)?r:void 0}var mn=Rd,Md=mn,Dd=It,Id=Md(Dd,"Map"),Li=Id,Pd=mn,Nd=Pd(Object,"create"),_r=Nd,oo=_r;function $d(){this.__data__=oo?oo(null):{},this.size=0}var Fd=$d;function Bd(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}var Wd=Bd,kd=_r,Ud="__lodash_hash_undefined__",Hd=Object.prototype,zd=Hd.hasOwnProperty;function Gd(i){var s=this.__data__;if(kd){var r=s[i];return r===Ud?void 0:r}return zd.call(s,i)?s[i]:void 0}var Kd=Gd,Yd=_r,Xd=Object.prototype,Zd=Xd.hasOwnProperty;function qd(i){var s=this.__data__;return Yd?s[i]!==void 0:Zd.call(s,i)}var Jd=qd,jd=_r,Vd="__lodash_hash_undefined__";function Qd(i,s){var r=this.__data__;return this.size+=this.has(i)?0:1,r[i]=jd&&s===void 0?Vd:s,this}var ep=Qd,tp=Fd,np=Wd,rp=Kd,ip=Jd,sp=ep;function yn(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}yn.prototype.clear=tp,yn.prototype.delete=np,yn.prototype.get=rp,yn.prototype.has=ip,yn.prototype.set=sp;var ap=yn,uo=ap,op=vr,up=Li;function lp(){this.size=0,this.__data__={hash:new uo,map:new(up||op),string:new uo}}var cp=lp;function fp(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}var hp=fp,dp=hp;function pp(i,s){var r=i.__data__;return dp(s)?r[typeof s=="string"?"string":"hash"]:r.map}var mr=pp,gp=mr;function vp(i){var s=gp(this,i).delete(i);return this.size-=s?1:0,s}var _p=vp,mp=mr;function yp(i){return mp(this,i).get(i)}var wp=yp,bp=mr;function Sp(i){return bp(this,i).has(i)}var xp=Sp,Ap=mr;function Tp(i,s){var r=Ap(this,i),u=r.size;return r.set(i,s),this.size+=r.size==u?0:1,this}var Cp=Tp,Ep=cp,Lp=_p,Op=wp,Rp=xp,Mp=Cp;function wn(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}wn.prototype.clear=Ep,wn.prototype.delete=Lp,wn.prototype.get=Op,wn.prototype.has=Rp,wn.prototype.set=Mp;var lo=wn,Dp=vr,Ip=Li,Pp=lo,Np=200;function $p(i,s){var r=this.__data__;if(r instanceof Dp){var u=r.__data__;if(!Ip||u.length<Np-1)return u.push([i,s]),this.size=++r.size,this;r=this.__data__=new Pp(u)}return r.set(i,s),this.size=r.size,this}var Fp=$p,Bp=vr,Wp=Kh,kp=Xh,Up=qh,Hp=jh,zp=Fp;function bn(i){var s=this.__data__=new Bp(i);this.size=s.size}bn.prototype.clear=Wp,bn.prototype.delete=kp,bn.prototype.get=Up,bn.prototype.has=Hp,bn.prototype.set=zp;var Gp=bn,Kp="__lodash_hash_undefined__";function Yp(i){return this.__data__.set(i,Kp),this}var Xp=Yp;function Zp(i){return this.__data__.has(i)}var qp=Zp,Jp=lo,jp=Xp,Vp=qp;function yr(i){var s=-1,r=i==null?0:i.length;for(this.__data__=new Jp;++s<r;)this.add(i[s])}yr.prototype.add=yr.prototype.push=jp,yr.prototype.has=Vp;var Qp=yr;function eg(i,s){for(var r=-1,u=i==null?0:i.length;++r<u;)if(s(i[r],r,i))return!0;return!1}var tg=eg;function ng(i,s){return i.has(s)}var rg=ng,ig=Qp,sg=tg,ag=rg,og=1,ug=2;function lg(i,s,r,u,f,h){var g=r&og,m=i.length,w=s.length;if(m!=w&&!(g&&w>m))return!1;var A=h.get(i),R=h.get(s);if(A&&R)return A==s&&R==i;var L=-1,O=!0,E=r&ug?new ig:void 0;for(h.set(i,s),h.set(s,i);++L<m;){var M=i[L],U=s[L];if(u)var F=g?u(U,M,L,s,i,h):u(M,U,L,i,s,h);if(F!==void 0){if(F)continue;O=!1;break}if(E){if(!sg(s,function(H,de){if(!ag(E,de)&&(M===H||f(M,H,r,u,h)))return E.push(de)})){O=!1;break}}else if(!(M===U||f(M,U,r,u,h))){O=!1;break}}return h.delete(i),h.delete(s),O}var co=lg,cg=It,fg=cg.Uint8Array,hg=fg;function dg(i){var s=-1,r=Array(i.size);return i.forEach(function(u,f){r[++s]=[f,u]}),r}var pg=dg;function gg(i){var s=-1,r=Array(i.size);return i.forEach(function(u){r[++s]=u}),r}var vg=gg,fo=Ci,ho=hg,_g=ro,mg=co,yg=pg,wg=vg,bg=1,Sg=2,xg="[object Boolean]",Ag="[object Date]",Tg="[object Error]",Cg="[object Map]",Eg="[object Number]",Lg="[object RegExp]",Og="[object Set]",Rg="[object String]",Mg="[object Symbol]",Dg="[object ArrayBuffer]",Ig="[object DataView]",po=fo?fo.prototype:void 0,Oi=po?po.valueOf:void 0;function Pg(i,s,r,u,f,h,g){switch(r){case Ig:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case Dg:return!(i.byteLength!=s.byteLength||!h(new ho(i),new ho(s)));case xg:case Ag:case Eg:return _g(+i,+s);case Tg:return i.name==s.name&&i.message==s.message;case Lg:case Rg:return i==s+"";case Cg:var m=yg;case Og:var w=u&bg;if(m||(m=wg),i.size!=s.size&&!w)return!1;var A=g.get(i);if(A)return A==s;u|=Sg,g.set(i,s);var R=mg(m(i),m(s),u,f,h,g);return g.delete(i),R;case Mg:if(Oi)return Oi.call(i)==Oi.call(s)}return!1}var Ng=Pg;function $g(i,s){for(var r=-1,u=s.length,f=i.length;++r<u;)i[f+r]=s[r];return i}var Fg=$g,Bg=Array.isArray,Ri=Bg,Wg=Fg,kg=Ri;function Ug(i,s,r){var u=s(i);return kg(i)?u:Wg(u,r(i))}var Hg=Ug;function zg(i,s){for(var r=-1,u=i==null?0:i.length,f=0,h=[];++r<u;){var g=i[r];s(g,r,i)&&(h[f++]=g)}return h}var Gg=zg;function Kg(){return[]}var Yg=Kg,Xg=Gg,Zg=Yg,qg=Object.prototype,Jg=qg.propertyIsEnumerable,go=Object.getOwnPropertySymbols,jg=go?function(i){return i==null?[]:(i=Object(i),Xg(go(i),function(s){return Jg.call(i,s)}))}:Zg,Vg=jg;function Qg(i,s){for(var r=-1,u=Array(i);++r<i;)u[r]=s(r);return u}var ev=Qg,tv=hr,nv=dr,rv="[object Arguments]";function iv(i){return nv(i)&&tv(i)==rv}var sv=iv,vo=sv,av=dr,_o=Object.prototype,ov=_o.hasOwnProperty,uv=_o.propertyIsEnumerable,lv=vo(function(){return arguments}())?vo:function(i){return av(i)&&ov.call(i,"callee")&&!uv.call(i,"callee")},cv=lv,wr={exports:{}};function fv(){return!1}var hv=fv;(function(i,s){var r=It,u=hv,f=s&&!s.nodeType&&s,h=f&&!0&&i&&!i.nodeType&&i,g=h&&h.exports===f,m=g?r.Buffer:void 0,w=m?m.isBuffer:void 0,A=w||u;i.exports=A})(wr,wr.exports);var dv=9007199254740991,pv=/^(?:0|[1-9]\d*)$/;function gv(i,s){var r=typeof i;return s=s==null?dv:s,!!s&&(r=="number"||r!="symbol"&&pv.test(i))&&i>-1&&i%1==0&&i<s}var vv=gv,_v=9007199254740991;function mv(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=_v}var mo=mv,yv=hr,wv=mo,bv=dr,Sv="[object Arguments]",xv="[object Array]",Av="[object Boolean]",Tv="[object Date]",Cv="[object Error]",Ev="[object Function]",Lv="[object Map]",Ov="[object Number]",Rv="[object Object]",Mv="[object RegExp]",Dv="[object Set]",Iv="[object String]",Pv="[object WeakMap]",Nv="[object ArrayBuffer]",$v="[object DataView]",Fv="[object Float32Array]",Bv="[object Float64Array]",Wv="[object Int8Array]",kv="[object Int16Array]",Uv="[object Int32Array]",Hv="[object Uint8Array]",zv="[object Uint8ClampedArray]",Gv="[object Uint16Array]",Kv="[object Uint32Array]",be={};be[Fv]=be[Bv]=be[Wv]=be[kv]=be[Uv]=be[Hv]=be[zv]=be[Gv]=be[Kv]=!0,be[Sv]=be[xv]=be[Nv]=be[Av]=be[$v]=be[Tv]=be[Cv]=be[Ev]=be[Lv]=be[Ov]=be[Rv]=be[Mv]=be[Dv]=be[Iv]=be[Pv]=!1;function Yv(i){return bv(i)&&wv(i.length)&&!!be[yv(i)]}var Xv=Yv;function Zv(i){return function(s){return i(s)}}var qv=Zv,Mi={exports:{}};(function(i,s){var r=Za,u=s&&!s.nodeType&&s,f=u&&!0&&i&&!i.nodeType&&i,h=f&&f.exports===u,g=h&&r.process,m=function(){try{var w=f&&f.require&&f.require("util").types;return w||g&&g.binding&&g.binding("util")}catch{}}();i.exports=m})(Mi,Mi.exports);var Jv=Xv,jv=qv,yo=Mi.exports,wo=yo&&yo.isTypedArray,Vv=wo?jv(wo):Jv,bo=Vv,Qv=ev,e_=cv,t_=Ri,n_=wr.exports,r_=vv,i_=bo,s_=Object.prototype,a_=s_.hasOwnProperty;function o_(i,s){var r=t_(i),u=!r&&e_(i),f=!r&&!u&&n_(i),h=!r&&!u&&!f&&i_(i),g=r||u||f||h,m=g?Qv(i.length,String):[],w=m.length;for(var A in i)(s||a_.call(i,A))&&!(g&&(A=="length"||f&&(A=="offset"||A=="parent")||h&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||r_(A,w)))&&m.push(A);return m}var u_=o_,l_=Object.prototype;function c_(i){var s=i&&i.constructor,r=typeof s=="function"&&s.prototype||l_;return i===r}var f_=c_;function h_(i,s){return function(r){return i(s(r))}}var d_=h_,p_=d_,g_=p_(Object.keys,Object),v_=g_,__=f_,m_=v_,y_=Object.prototype,w_=y_.hasOwnProperty;function b_(i){if(!__(i))return m_(i);var s=[];for(var r in Object(i))w_.call(i,r)&&r!="constructor"&&s.push(r);return s}var S_=b_,x_=io,A_=mo;function T_(i){return i!=null&&A_(i.length)&&!x_(i)}var C_=T_,E_=u_,L_=S_,O_=C_;function R_(i){return O_(i)?E_(i):L_(i)}var M_=R_,D_=Hg,I_=Vg,P_=M_;function N_(i){return D_(i,P_,I_)}var $_=N_,So=$_,F_=1,B_=Object.prototype,W_=B_.hasOwnProperty;function k_(i,s,r,u,f,h){var g=r&F_,m=So(i),w=m.length,A=So(s),R=A.length;if(w!=R&&!g)return!1;for(var L=w;L--;){var O=m[L];if(!(g?O in s:W_.call(s,O)))return!1}var E=h.get(i),M=h.get(s);if(E&&M)return E==s&&M==i;var U=!0;h.set(i,s),h.set(s,i);for(var F=g;++L<w;){O=m[L];var H=i[O],de=s[O];if(u)var ae=g?u(de,H,O,s,i,h):u(H,de,O,i,s,h);if(!(ae===void 0?H===de||f(H,de,r,u,h):ae)){U=!1;break}F||(F=O=="constructor")}if(U&&!F){var ie=i.constructor,q=s.constructor;ie!=q&&"constructor"in i&&"constructor"in s&&!(typeof ie=="function"&&ie instanceof ie&&typeof q=="function"&&q instanceof q)&&(U=!1)}return h.delete(i),h.delete(s),U}var U_=k_,H_=mn,z_=It,G_=H_(z_,"DataView"),K_=G_,Y_=mn,X_=It,Z_=Y_(X_,"Promise"),q_=Z_,J_=mn,j_=It,V_=J_(j_,"Set"),Q_=V_,em=mn,tm=It,nm=em(tm,"WeakMap"),rm=nm,Di=K_,Ii=Li,Pi=q_,Ni=Q_,$i=rm,xo=hr,Sn=ao,Ao="[object Map]",im="[object Object]",To="[object Promise]",Co="[object Set]",Eo="[object WeakMap]",Lo="[object DataView]",sm=Sn(Di),am=Sn(Ii),om=Sn(Pi),um=Sn(Ni),lm=Sn($i),rn=xo;(Di&&rn(new Di(new ArrayBuffer(1)))!=Lo||Ii&&rn(new Ii)!=Ao||Pi&&rn(Pi.resolve())!=To||Ni&&rn(new Ni)!=Co||$i&&rn(new $i)!=Eo)&&(rn=function(i){var s=xo(i),r=s==im?i.constructor:void 0,u=r?Sn(r):"";if(u)switch(u){case sm:return Lo;case am:return Ao;case om:return To;case um:return Co;case lm:return Eo}return s});var cm=rn,Fi=Gp,fm=co,hm=Ng,dm=U_,Oo=cm,Ro=Ri,Mo=wr.exports,pm=bo,gm=1,Do="[object Arguments]",Io="[object Array]",br="[object Object]",vm=Object.prototype,Po=vm.hasOwnProperty;function _m(i,s,r,u,f,h){var g=Ro(i),m=Ro(s),w=g?Io:Oo(i),A=m?Io:Oo(s);w=w==Do?br:w,A=A==Do?br:A;var R=w==br,L=A==br,O=w==A;if(O&&Mo(i)){if(!Mo(s))return!1;g=!0,R=!1}if(O&&!R)return h||(h=new Fi),g||pm(i)?fm(i,s,r,u,f,h):hm(i,s,w,r,u,f,h);if(!(r&gm)){var E=R&&Po.call(i,"__wrapped__"),M=L&&Po.call(s,"__wrapped__");if(E||M){var U=E?i.value():i,F=M?s.value():s;return h||(h=new Fi),f(U,F,r,u,h)}}return O?(h||(h=new Fi),dm(i,s,r,u,f,h)):!1}var mm=_m,ym=mm,No=dr;function $o(i,s,r,u,f){return i===s?!0:i==null||s==null||!No(i)&&!No(s)?i!==i&&s!==s:ym(i,s,r,u,$o,f)}var wm=$o,bm=wm;function Sm(i,s){return bm(i,s)}var xm=Sm;function Bi(i,s,r){r===void 0&&(r={});var u=fr(s);eo(function(){var f=pr(r.target,window);if(!!(f!=null&&f.addEventListener)){var h=function(m){return u.current(m)};return f.addEventListener(i,h,{capture:r.capture,once:r.once,passive:r.passive}),function(){f.removeEventListener(i,h,{capture:r.capture})}}},[i,r.capture,r.once,r.passive],r.target)}var Am=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h},Wi=function(i,s){var r=s||{},u=r.onEnter,f=r.onLeave,h=Am(dh(!1),2),g=h[0],m=h[1],w=m.setTrue,A=m.setFalse;return Bi("mouseenter",function(){u==null||u(),w()},{target:i}),Bi("mouseleave",function(){f==null||f(),A()},{target:i}),g},Tm=function(s,r){return r===void 0&&(r=[]),xm(s,r)},Cm=function(s,r,u){var f=D.useRef(),h=D.useRef(0);Tm(r,f.current)||(f.current=r,h.current+=1),eo(s,[h.current],u)},Em=Cm,ki=globalThis&&globalThis.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&i[s],u=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&u>=i.length&&(i=void 0),{value:i&&i[u++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},Lm={"0":48,"1":49,"2":50,"3":51,"4":52,"5":53,"6":54,"7":55,"8":56,"9":57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Ui={ctrl:function(s){return s.ctrlKey},shift:function(s){return s.shiftKey},alt:function(s){return s.altKey},meta:function(s){return s.metaKey}};function Om(i){var s=Object.keys(Ui).reduce(function(r,u){return Ui[u](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?s:s+1}function Fo(i,s,r){var u,f;if(!i.key)return!1;if(typeof s=="number")return i.keyCode===s;var h=s.split("."),g=0;try{for(var m=ki(h),w=m.next();!w.done;w=m.next()){var A=w.value,R=Ui[A],L=Lm[A.toLowerCase()];(R&&R(i)||L&&L===i.keyCode)&&g++}}catch(O){u={error:O}}finally{try{w&&!w.done&&(f=m.return)&&f.call(m)}finally{if(u)throw u.error}}return r?g===h.length&&Om(i)===h.length:g===h.length}function Rm(i,s){return typeof i=="function"?i:typeof i=="string"||typeof i=="number"?function(r){return Fo(r,i,s)}:Array.isArray(i)?function(r){return i.some(function(u){return Fo(r,u,s)})}:i?function(){return!0}:function(){return!1}}var Mm=["keydown"];function sn(i,s,r){var u=r||{},f=u.events,h=f===void 0?Mm:f,g=u.target,m=u.exactMatch,w=m===void 0?!1:m,A=fr(s),R=fr(i);Em(function(){var L,O,E,M=pr(g,window);if(!!M){var U=function(ie){var q,ge=Rm(R.current,w);if(ge(ie))return(q=A.current)===null||q===void 0?void 0:q.call(A,ie)};try{for(var F=ki(h),H=F.next();!H.done;H=F.next()){var de=H.value;(E=M==null?void 0:M.addEventListener)===null||E===void 0||E.call(M,de,U)}}catch(ae){L={error:ae}}finally{try{H&&!H.done&&(O=F.return)&&O.call(F)}finally{if(L)throw L.error}}return function(){var ae,ie,q;try{for(var ge=ki(h),Se=ge.next();!Se.done;Se=ge.next()){var ye=Se.value;(q=M==null?void 0:M.removeEventListener)===null||q===void 0||q.call(M,ye,U)}}catch(Q){ae={error:Q}}finally{try{Se&&!Se.done&&(ie=ge.return)&&ie.call(ge)}finally{if(ae)throw ae.error}}}}},[h],g)}var Dm=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function Im(i){var s=D.useRef(0),r=Dm(D.useState(i),2),u=r[0],f=r[1],h=D.useCallback(function(g){cancelAnimationFrame(s.current),s.current=requestAnimationFrame(function(){f(g)})},[]);return Ya(function(){cancelAnimationFrame(s.current)}),[u,h]}var Pm=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h},Nm={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},$m=function(i){var s=Pm(Im(Nm),2),r=s[0],u=s[1];return Bi("mousemove",function(f){var h=f.screenX,g=f.screenY,m=f.clientX,w=f.clientY,A=f.pageX,R=f.pageY,L={screenX:h,screenY:g,clientX:m,clientY:w,pageX:A,pageY:R,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},O=pr(i);if(O){var E=O.getBoundingClientRect(),M=E.left,U=E.top,F=E.width,H=E.height;L.elementPosX=M+window.pageXOffset,L.elementPosY=U+window.pageYOffset,L.elementX=A-L.elementPosX,L.elementY=R-L.elementPosY,L.elementW=F,L.elementH=H}u(L)},{target:document}),r},Fm=function(){var s=D.useRef(!1);return D.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]),s},Bm=Fm,Wm=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function Et(i){var s=Bm(),r=Wm(D.useState(i),2),u=r[0],f=r[1],h=D.useCallback(function(g){s.current||f(g)},[]);return[u,h]}const Hi=Symbol(),km=Symbol(),zi=Symbol(),Gi=Object.getPrototypeOf,Ki=new WeakMap,Bo=i=>i&&(Ki.has(i)?Ki.get(i):Gi(i)===Object.prototype||Gi(i)===Array.prototype),Yi=i=>typeof i=="object"&&i!==null,Um=(i,s)=>{let r=!1;const u=(h,g,m)=>{if(!r){let w=h.a.get(i);w||(w=new Set,h.a.set(i,w)),m&&w.has(Hi)||w.add(g)}},f={f:s,get(h,g){return g===zi?i:(u(this,g),Wo(h[g],this.a,this.c))},has(h,g){return g===km?(r=!0,this.a.delete(i),!0):(u(this,g),g in h)},getOwnPropertyDescriptor(h,g){return u(this,g,!0),Object.getOwnPropertyDescriptor(h,g)},ownKeys(h){return u(this,Hi),Reflect.ownKeys(h)}};return s&&(f.set=f.deleteProperty=()=>!1),f},Wo=(i,s,r)=>{if(!Bo(i))return i;const u=i[zi]||i,f=(g=>Object.isFrozen(g)||Object.values(Object.getOwnPropertyDescriptors(g)).some(m=>!m.writable))(u);let h=r&&r.get(u);return h&&h.f===f||(h=Um(u,f),h.p=new Proxy(f?(g=>{if(Array.isArray(g))return Array.from(g);const m=Object.getOwnPropertyDescriptors(g);return Object.values(m).forEach(w=>{w.configurable=!0}),Object.create(Gi(g),m)})(u):u,h),r&&r.set(u,h)),h.a=s,h.c=r,h.p},Hm=(i,s)=>{const r=Reflect.ownKeys(i),u=Reflect.ownKeys(s);return r.length!==u.length||r.some((f,h)=>f!==u[h])},ko=(i,s,r,u)=>{if(Object.is(i,s))return!1;if(!Yi(i)||!Yi(s))return!0;const f=r.get(i);if(!f)return!0;if(u){const g=u.get(i);if(g&&g.n===s)return g.g;u.set(i,{n:s,g:!1})}let h=null;for(const g of f){const m=g===Hi?Hm(i,s):ko(i[g],s[g],r,u);if(m!==!0&&m!==!1||(h=m),h)break}return h===null&&(h=!0),u&&u.set(i,{n:s,g:h}),h},zm=i=>Bo(i)&&i[zi]||null,Uo=(i,s)=>{Ki.set(i,s)},Gm=(i,s)=>{const r=[],u=new WeakSet,f=(h,g)=>{if(u.has(h))return;Yi(h)&&u.add(h);const m=s.get(h);m?m.forEach(w=>{f(h[w],g?[...g,w]:[w])}):g&&r.push(g)};return f(i),r};var Ho={exports:{}},zo={};/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xn=bi.default;function Km(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Ym=typeof Object.is=="function"?Object.is:Km,Xm=xn.useState,Zm=xn.useEffect,qm=xn.useLayoutEffect,Jm=xn.useDebugValue;function jm(i,s){var r=s(),u=Xm({inst:{value:r,getSnapshot:s}}),f=u[0].inst,h=u[1];return qm(function(){f.value=r,f.getSnapshot=s,Xi(f)&&h({inst:f})},[i,r,s]),Zm(function(){return Xi(f)&&h({inst:f}),i(function(){Xi(f)&&h({inst:f})})},[i]),Jm(r),r}function Xi(i){var s=i.getSnapshot;i=i.value;try{var r=s();return!Ym(i,r)}catch{return!0}}function Vm(i,s){return s()}var Qm=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Vm:jm;zo.useSyncExternalStore=xn.useSyncExternalStore!==void 0?xn.useSyncExternalStore:Qm,Ho.exports=zo;var e0=Ho.exports;const t0=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),Lt=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),Sr=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),n0=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),Gn=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),Go=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),Ko=new WeakSet,Zi=i=>typeof i=="object"&&i!==null,r0=i=>Zi(i)&&!Ko.has(i)&&(Array.isArray(i)||!(Symbol.iterator in i))&&!(i instanceof WeakMap)&&!(i instanceof WeakSet)&&!(i instanceof Error)&&!(i instanceof Number)&&!(i instanceof Date)&&!(i instanceof String)&&!(i instanceof RegExp)&&!(i instanceof ArrayBuffer),Yo=new WeakMap;let Xo=1;const Zo=new WeakMap;function qi(i={}){if(!Zi(i))throw new Error("object required");const s=Yo.get(i);if(s)return s;let r=Xo;const u=new Set,f=(O,E=++Xo)=>{r!==E&&(r=E,u.forEach(M=>M(O,E)))},h=new Map,g=O=>{let E=h.get(O);return E||(E=(M,U)=>{const F=[...M];F[1]=[O,...F[1]],f(F,U)},h.set(O,E)),E},m=O=>{const E=h.get(O);return h.delete(O),E},w=(O,E)=>{const M=Zo.get(E);if((M==null?void 0:M[0])===r)return M[1];const U=Array.isArray(O)?[]:Object.create(Object.getPrototypeOf(O));return Uo(U,!0),Zo.set(E,[r,U]),Reflect.ownKeys(O).forEach(F=>{const H=Reflect.get(O,F,E);if(Ko.has(H))Uo(H,!1),U[F]=H;else if(H instanceof Promise)if(Gn in H)U[F]=H[Gn];else{const de=H[Go]||H;Object.defineProperty(U,F,{get(){if(Gn in H)return H[Gn];throw de}})}else H!=null&&H[Lt]?U[F]=H[Sr]:U[F]=H}),Object.freeze(U),U},A=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),R={get(O,E,M){return E===t0?r:E===Lt?u:E===Sr?w(O,M):E===n0?R:Reflect.get(O,E,M)},deleteProperty(O,E){const M=Reflect.get(O,E),U=M==null?void 0:M[Lt];U&&U.delete(m(E));const F=Reflect.deleteProperty(O,E);return F&&f(["delete",[E],M]),F},is:Object.is,canProxy:r0,set(O,E,M,U){var F;const H=Reflect.has(O,E),de=Reflect.get(O,E,U);if(H&&this.is(de,M))return!0;const ae=de==null?void 0:de[Lt];ae&&ae.delete(m(E)),Zi(M)&&(M=zm(M)||M);let ie;return(F=Object.getOwnPropertyDescriptor(O,E))!=null&&F.set?ie=M:M instanceof Promise?ie=M.then(q=>(ie[Gn]=q,f(["resolve",[E],q]),q)).catch(q=>{ie[Go]=q,f(["reject",[E],q])}):M!=null&&M[Lt]?(ie=M,ie[Lt].add(g(E))):this.canProxy(M)?(ie=qi(M),ie[Lt].add(g(E))):ie=M,Reflect.set(O,E,ie,U),f(["set",[E],M,de]),!0}},L=new Proxy(A,R);return Yo.set(i,L),Reflect.ownKeys(i).forEach(O=>{const E=Object.getOwnPropertyDescriptor(i,O);E.get||E.set?Object.defineProperty(A,O,E):L[O]=i[O]}),L}function i0(i,s,r){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(i!=null&&i[Lt])&&console.warn("Please use proxy object");let u;const f=[],h=g=>{if(f.push(g),r){s(f.splice(0));return}u||(u=Promise.resolve().then(()=>{u=void 0,s(f.splice(0))}))};return i[Lt].add(h),()=>{i[Lt].delete(h)}}function qo(i){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(i!=null&&i[Sr])&&console.warn("Please use proxy object"),i[Sr]}const{useSyncExternalStore:s0}=e0,a0=(i,s)=>{const r=D.useRef();D.useEffect(()=>{r.current=Gm(i,s)}),D.useDebugValue(r.current)};function Jo(i,s){const r=s==null?void 0:s.sync,u=D.useRef(),f=D.useRef();let h=!0;const g=s0(D.useCallback(A=>{const R=i0(i,A,r);return A(),R},[i,r]),()=>{const A=qo(i);try{if(!h&&u.current&&f.current&&!ko(u.current,A,f.current,new WeakMap))return u.current}catch{}return A},()=>qo(i));h=!1;const m=new WeakMap;D.useEffect(()=>{u.current=g,f.current=m}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&a0(g,m);const w=D.useMemo(()=>new WeakMap,[]);return Wo(g,m,w)}const An=qi({accessKey:"",useNarrowMode:!1}),Ji=function(){return Jo(An)},jo="bilibili-app-recommend.config";function o0(){const i=GM_getValue(jo);i&&typeof i=="object"&&Object.assign(An,i)}function u0(){GM_setValue(jo,An)}function ji(i){Object.assign(An,i),u0()}o0();const Vo="_toast-container_9119l_1";var YT={toastContainer:Vo};function Kt(i,s=2e3){const r=Hn.default(`<div class='${Vo}'>${i}</div>`);r.appendTo(document.body),setTimeout(()=>r.remove(),s)}async function l0(){var w,A;const s=(await Si.default.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(!((w=s==null?void 0:s.data)!=null&&w.has_login))return{errmsg:"\u4F60\u5FC5\u987B\u767B\u5F55B\u7AD9\u4E4B\u540E\u624D\u80FD\u4F7F\u7528\u6388\u6743",json:s};if(!((A=s==null?void 0:s.data)!=null&&A.confirm_uri))return{errmsg:"\u65E0\u6CD5\u83B7\u5F97\u6388\u6743\u7F51\u5740",json:s};const r=s.data.confirm_uri;let u;const f=new Promise(R=>{window.addEventListener("message",L=>{if(L.origin!="https://www.mcbbs.net"||!L.data)return;const O=L.data.match(/access_key=([0-9a-z]{32})/);if(!O||!O[1])return R({errmsg:"\u6CA1\u6709\u83B7\u5F97\u5339\u914D\u7684\u5BC6\u94A5"});R(O[1])}),u=setTimeout(()=>{R({errmsg:"\u83B7\u53D6\u6388\u6743\u8D85\u65F6"})},5e3)}),h=Hn.default(`<iframe src='${r}' style="display: none;" />`);h.appendTo(document.body);function g(){h.remove(),u&&(clearTimeout(u),u=null)}const m=await f;return g(),m}async function c0(){const i=await l0();if(typeof i=="object"&&"errmsg"in i){Kt(i.errmsg);return}const s=i;return ji({accessKey:s}),Kt("\u83B7\u53D6\u6210\u529F"),s}function f0(){ji({accessKey:""}),Kt("\u5DF2\u5220\u9664 access_key")}const h0="https://api.bilibili.com",Qo="https://app.bilibili.com",Vi=Si.default.create({baseURL:h0});Vi.interceptors.request.use(function(i){var s;return(s=i.params)!=null&&s._||(i.params=kn(vn({},i.params),{_:Date.now()})),i},function(i){return Promise.reject(i)});const Qi=Si.default.create({adapter:Bf.default});Qi.interceptors.request.use(function(i){return i.params=vn({access_key:An.accessKey||""},i.params),i},function(i){return Promise.reject(i)});async function d0(){return(await Qi.get(Qo+"/x/feed/index",{params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data.data}async function p0(){return es(2)}async function es(i){const s=new Array(i).fill(0).map(f=>d0());let u=(await Promise.all(s)).reduce((f,h)=>f.concat(h),[]);return u=g0(u),u.map(f=>kn(vn({},f),{uniqId:f.param+"-"+crypto.randomUUID()}))}function g0(i){const s=new Set;return i=i.filter(r=>{const{param:u}=r;return s.has(u)?(console.log("[bilibili-app-recommend]: [uniqRecList]: duplicate",r),!1):(s.add(u),!0)}),i}const eu="_expand-btn_wdzp9_1",tu="_expanded_wdzp9_12";var XT={expandBtn:eu,expanded:tu},xr={exports:{}},Ar={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var v0=bi.default,_0=Symbol.for("react.element"),m0=Symbol.for("react.fragment"),y0=Object.prototype.hasOwnProperty,w0=v0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b0={key:!0,ref:!0,__self:!0,__source:!0};function nu(i,s,r){var u,f={},h=null,g=null;r!==void 0&&(h=""+r),s.key!==void 0&&(h=""+s.key),s.ref!==void 0&&(g=s.ref);for(u in s)y0.call(s,u)&&!b0.hasOwnProperty(u)&&(f[u]=s[u]);if(i&&i.defaultProps)for(u in s=i.defaultProps,s)f[u]===void 0&&(f[u]=s[u]);return{$$typeof:_0,type:i,key:h,ref:g,props:f,_owner:w0.current}}Ar.Fragment=m0,Ar.jsx=nu,Ar.jsxs=nu,xr.exports=Ar;const C=xr.exports.jsx,re=xr.exports.jsxs,Tr=xr.exports.Fragment,ru=D.forwardRef(function({children:s},r){const[u,f]=Qa(!1);D.useImperativeHandle(r,()=>f,[f]);const h=C("button",{className:Qe("primary-btn",eu),onClick:f.toggle,children:C("svg",{className:Qe({[tu]:u}),children:C("use",{xlinkHref:"#widget-arrow"})})});return re(Tr,{children:[h,u&&s]})});var iu={exports:{}},S0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",x0=S0,A0=x0;function su(){}function au(){}au.resetWarningCache=su;var T0=function(){function i(u,f,h,g,m,w){if(w!==A0){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}i.isRequired=i;function s(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:au,resetWarningCache:su};return r.PropTypes=r,r};iu.exports=T0();var et=iu.exports;class ts extends D.Component{constructor(s){super(s),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const s=this.getParentElement(this.scrollComponent);s.scrollTop=s.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let s=!1;const r={get passive(){s=!0}};try{document.addEventListener("test",null,r),document.removeEventListener("test",null,r)}catch{}return s}eventListenerOptions(){let s=this.props.useCapture;return this.isPassiveSupported()?s={useCapture:this.props.useCapture,passive:!0}:s={passive:!1},s}setDefaultLoader(s){this.defaultLoader=s}detachMousewheelListener(){let s=window;this.props.useWindow===!1&&(s=this.scrollComponent.parentNode),s.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let s=window;this.props.useWindow===!1&&(s=this.getParentElement(this.scrollComponent)),s.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),s.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(s){const r=this.props.getScrollParent&&this.props.getScrollParent();return r!=null?r:s&&s.parentNode}filterProps(s){return s}attachScrollListener(){const s=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!s)return;let r=window;this.props.useWindow===!1&&(r=s),r.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),r.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(s){s.deltaY===1&&!this.isPassiveSupported()&&s.preventDefault()}scrollListener(){const s=this.scrollComponent,r=window,u=this.getParentElement(s);let f;if(this.props.useWindow){const h=document.documentElement||document.body.parentNode||document.body,g=r.pageYOffset!==void 0?r.pageYOffset:h.scrollTop;this.props.isReverse?f=g:f=this.calculateOffset(s,g)}else this.props.isReverse?f=u.scrollTop:f=s.scrollHeight-u.scrollTop-u.clientHeight;f<Number(this.props.threshold)&&s&&s.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=u.scrollHeight,this.beforeScrollTop=u.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(s,r){return s?this.calculateTopPosition(s)+(s.offsetHeight-r-window.innerHeight):0}calculateTopPosition(s){return s?s.offsetTop+this.calculateTopPosition(s.offsetParent):0}render(){const H=this.filterProps(this.props),{children:r,element:u,hasMore:f,initialLoad:h,isReverse:g,loader:m,loadMore:w,pageStart:A,ref:R,threshold:L,useCapture:O,useWindow:E,getScrollParent:M}=H,U=Nf(H,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);U.ref=de=>{this.scrollComponent=de,R&&R(de)};const F=[r];return f&&(m?g?F.unshift(m):F.push(m):this.defaultLoader&&(g?F.unshift(this.defaultLoader):F.push(this.defaultLoader))),bi.default.createElement(u,U,F)}}Wa(ts,"propTypes",{children:et.node.isRequired,element:et.node,hasMore:et.bool,initialLoad:et.bool,isReverse:et.bool,loader:et.node,loadMore:et.func.isRequired,pageStart:et.number,ref:et.func,getScrollParent:et.func,threshold:et.number,useCapture:et.bool,useWindow:et.bool}),Wa(ts,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});let Kn=0;const C0=()=>{Kn++,document.body.style.overflow="hidden"},E0=()=>{Kn--,Kn<0&&(Kn=0),Kn===0&&(document.body.style.overflow="overlay")};function ou({show:i,onHide:s,children:r,clsModalMask:u,clsModal:f,hideWhenMaskOnClick:h=!1}){D.useLayoutEffect(()=>{i?C0():E0()},[i]);const g=D.useRef(null);D.useEffect(()=>{const R=g.current;if(!R)return;if(document.body.classList.contains("dark")){const O=window.getComputedStyle(document.body)["background-color"],E=window.getComputedStyle(document.body).color;R.style.setProperty("--bg",O),R.style.setProperty("--c",E),R.style.setProperty("background-color","var(--bg)"),R.style.setProperty("color","var(--c)")}},[i]);const m=D.useId(),w=D.useMemo(()=>{const R=document.createElement("div");return R.setAttribute("data-id","base-modal-"+m),document.body.appendChild(R),R},[]),A=ke(R=>{var L;(L=g.current)!=null&&L.contains(R.target)||h&&s()});return i?Ce.createPortal(C("div",{className:Qe(u),onClick:A,children:C("div",{className:Qe(f),ref:g,children:r})}),w):null}var ns={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(i,s){(function(){var r,u="4.17.21",f=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",m="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",A=500,R="__lodash_placeholder__",L=1,O=2,E=4,M=1,U=2,F=1,H=2,de=4,ae=8,ie=16,q=32,ge=64,Se=128,ye=256,Q=512,J=30,Ie="...",Pt=800,j=16,W=1,I=2,X=3,P=1/0,z=9007199254740991,Z=17976931348623157e292,oe=0/0,fe=4294967295,he=fe-1,Ee=fe>>>1,tt=[["ary",Se],["bind",F],["bindKey",H],["curry",ae],["curryRight",ie],["flip",Q],["partial",q],["partialRight",ge],["rearg",ye]],$e="[object Arguments]",lt="[object Array]",Nt="[object AsyncFunction]",Ue="[object Boolean]",Le="[object Date]",ct="[object DOMException]",Ot="[object Error]",wt="[object Function]",Or="[object GeneratorFunction]",nt="[object Map]",He="[object Number]",Xt="[object Null]",Ze="[object Object]",Rr="[object Promise]",a1="[object Proxy]",Yn="[object RegExp]",bt="[object Set]",Xn="[object String]",Mr="[object Symbol]",o1="[object Undefined]",Zn="[object WeakMap]",u1="[object WeakSet]",qn="[object ArrayBuffer]",Tn="[object DataView]",_s="[object Float32Array]",ms="[object Float64Array]",ys="[object Int8Array]",ws="[object Int16Array]",bs="[object Int32Array]",Ss="[object Uint8Array]",xs="[object Uint8ClampedArray]",As="[object Uint16Array]",Ts="[object Uint32Array]",l1=/\b__p \+= '';/g,c1=/\b(__p \+=) '' \+/g,f1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rl=/&(?:amp|lt|gt|quot|#39);/g,il=/[&<>"']/g,h1=RegExp(rl.source),d1=RegExp(il.source),p1=/<%-([\s\S]+?)%>/g,g1=/<%([\s\S]+?)%>/g,sl=/<%=([\s\S]+?)%>/g,v1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_1=/^\w*$/,m1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cs=/[\\^$.*+?()[\]{}|]/g,y1=RegExp(Cs.source),Es=/^\s+/,w1=/\s/,b1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,S1=/\{\n\/\* \[wrapped with (.+)\] \*/,x1=/,? & /,A1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,T1=/[()=,{}\[\]\/\s]/,C1=/\\(\\)?/g,E1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,al=/\w*$/,L1=/^[-+]0x[0-9a-f]+$/i,O1=/^0b[01]+$/i,R1=/^\[object .+?Constructor\]$/,M1=/^0o[0-7]+$/i,D1=/^(?:0|[1-9]\d*)$/,I1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dr=/($^)/,P1=/['\n\r\u2028\u2029\\]/g,Ir="\\ud800-\\udfff",N1="\\u0300-\\u036f",$1="\\ufe20-\\ufe2f",F1="\\u20d0-\\u20ff",ol=N1+$1+F1,ul="\\u2700-\\u27bf",ll="a-z\\xdf-\\xf6\\xf8-\\xff",B1="\\xac\\xb1\\xd7\\xf7",W1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",k1="\\u2000-\\u206f",U1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cl="A-Z\\xc0-\\xd6\\xd8-\\xde",fl="\\ufe0e\\ufe0f",hl=B1+W1+k1+U1,Ls="['\u2019]",H1="["+Ir+"]",dl="["+hl+"]",Pr="["+ol+"]",pl="\\d+",z1="["+ul+"]",gl="["+ll+"]",vl="[^"+Ir+hl+pl+ul+ll+cl+"]",Os="\\ud83c[\\udffb-\\udfff]",G1="(?:"+Pr+"|"+Os+")",_l="[^"+Ir+"]",Rs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ms="[\\ud800-\\udbff][\\udc00-\\udfff]",Cn="["+cl+"]",ml="\\u200d",yl="(?:"+gl+"|"+vl+")",K1="(?:"+Cn+"|"+vl+")",wl="(?:"+Ls+"(?:d|ll|m|re|s|t|ve))?",bl="(?:"+Ls+"(?:D|LL|M|RE|S|T|VE))?",Sl=G1+"?",xl="["+fl+"]?",Y1="(?:"+ml+"(?:"+[_l,Rs,Ms].join("|")+")"+xl+Sl+")*",X1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Al=xl+Sl+Y1,q1="(?:"+[z1,Rs,Ms].join("|")+")"+Al,J1="(?:"+[_l+Pr+"?",Pr,Rs,Ms,H1].join("|")+")",j1=RegExp(Ls,"g"),V1=RegExp(Pr,"g"),Ds=RegExp(Os+"(?="+Os+")|"+J1+Al,"g"),Q1=RegExp([Cn+"?"+gl+"+"+wl+"(?="+[dl,Cn,"$"].join("|")+")",K1+"+"+bl+"(?="+[dl,Cn+yl,"$"].join("|")+")",Cn+"?"+yl+"+"+wl,Cn+"+"+bl,Z1,X1,pl,q1].join("|"),"g"),ey=RegExp("["+ml+Ir+ol+fl+"]"),ty=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ny=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ry=-1,xe={};xe[_s]=xe[ms]=xe[ys]=xe[ws]=xe[bs]=xe[Ss]=xe[xs]=xe[As]=xe[Ts]=!0,xe[$e]=xe[lt]=xe[qn]=xe[Ue]=xe[Tn]=xe[Le]=xe[Ot]=xe[wt]=xe[nt]=xe[He]=xe[Ze]=xe[Yn]=xe[bt]=xe[Xn]=xe[Zn]=!1;var we={};we[$e]=we[lt]=we[qn]=we[Tn]=we[Ue]=we[Le]=we[_s]=we[ms]=we[ys]=we[ws]=we[bs]=we[nt]=we[He]=we[Ze]=we[Yn]=we[bt]=we[Xn]=we[Mr]=we[Ss]=we[xs]=we[As]=we[Ts]=!0,we[Ot]=we[wt]=we[Zn]=!1;var iy={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},sy={"&":"&","<":"<",">":">",'"':""","'":"'"},ay={"&":"&","<":"<",">":">",""":'"',"'":"'"},oy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uy=parseFloat,ly=parseInt,Tl=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct,cy=typeof self=="object"&&self&&self.Object===Object&&self,Be=Tl||cy||Function("return this")(),Is=s&&!s.nodeType&&s,on=Is&&!0&&i&&!i.nodeType&&i,Cl=on&&on.exports===Is,Ps=Cl&&Tl.process,ft=function(){try{var v=on&&on.require&&on.require("util").types;return v||Ps&&Ps.binding&&Ps.binding("util")}catch{}}(),El=ft&&ft.isArrayBuffer,Ll=ft&&ft.isDate,Ol=ft&&ft.isMap,Rl=ft&&ft.isRegExp,Ml=ft&&ft.isSet,Dl=ft&&ft.isTypedArray;function rt(v,b,y){switch(y.length){case 0:return v.call(b);case 1:return v.call(b,y[0]);case 2:return v.call(b,y[0],y[1]);case 3:return v.call(b,y[0],y[1],y[2])}return v.apply(b,y)}function fy(v,b,y,B){for(var V=-1,pe=v==null?0:v.length;++V<pe;){var Pe=v[V];b(B,Pe,y(Pe),v)}return B}function ht(v,b){for(var y=-1,B=v==null?0:v.length;++y<B&&b(v[y],y,v)!==!1;);return v}function hy(v,b){for(var y=v==null?0:v.length;y--&&b(v[y],y,v)!==!1;);return v}function Il(v,b){for(var y=-1,B=v==null?0:v.length;++y<B;)if(!b(v[y],y,v))return!1;return!0}function Zt(v,b){for(var y=-1,B=v==null?0:v.length,V=0,pe=[];++y<B;){var Pe=v[y];b(Pe,y,v)&&(pe[V++]=Pe)}return pe}function Nr(v,b){var y=v==null?0:v.length;return!!y&&En(v,b,0)>-1}function Ns(v,b,y){for(var B=-1,V=v==null?0:v.length;++B<V;)if(y(b,v[B]))return!0;return!1}function Ae(v,b){for(var y=-1,B=v==null?0:v.length,V=Array(B);++y<B;)V[y]=b(v[y],y,v);return V}function qt(v,b){for(var y=-1,B=b.length,V=v.length;++y<B;)v[V+y]=b[y];return v}function $s(v,b,y,B){var V=-1,pe=v==null?0:v.length;for(B&&pe&&(y=v[++V]);++V<pe;)y=b(y,v[V],V,v);return y}function dy(v,b,y,B){var V=v==null?0:v.length;for(B&&V&&(y=v[--V]);V--;)y=b(y,v[V],V,v);return y}function Fs(v,b){for(var y=-1,B=v==null?0:v.length;++y<B;)if(b(v[y],y,v))return!0;return!1}var py=Bs("length");function gy(v){return v.split("")}function vy(v){return v.match(A1)||[]}function Pl(v,b,y){var B;return y(v,function(V,pe,Pe){if(b(V,pe,Pe))return B=pe,!1}),B}function $r(v,b,y,B){for(var V=v.length,pe=y+(B?1:-1);B?pe--:++pe<V;)if(b(v[pe],pe,v))return pe;return-1}function En(v,b,y){return b===b?Ly(v,b,y):$r(v,Nl,y)}function _y(v,b,y,B){for(var V=y-1,pe=v.length;++V<pe;)if(B(v[V],b))return V;return-1}function Nl(v){return v!==v}function $l(v,b){var y=v==null?0:v.length;return y?ks(v,b)/y:oe}function Bs(v){return function(b){return b==null?r:b[v]}}function Ws(v){return function(b){return v==null?r:v[b]}}function Fl(v,b,y,B,V){return V(v,function(pe,Pe,me){y=B?(B=!1,pe):b(y,pe,Pe,me)}),y}function my(v,b){var y=v.length;for(v.sort(b);y--;)v[y]=v[y].value;return v}function ks(v,b){for(var y,B=-1,V=v.length;++B<V;){var pe=b(v[B]);pe!==r&&(y=y===r?pe:y+pe)}return y}function Us(v,b){for(var y=-1,B=Array(v);++y<v;)B[y]=b(y);return B}function yy(v,b){return Ae(b,function(y){return[y,v[y]]})}function Bl(v){return v&&v.slice(0,Hl(v)+1).replace(Es,"")}function it(v){return function(b){return v(b)}}function Hs(v,b){return Ae(b,function(y){return v[y]})}function Jn(v,b){return v.has(b)}function Wl(v,b){for(var y=-1,B=v.length;++y<B&&En(b,v[y],0)>-1;);return y}function kl(v,b){for(var y=v.length;y--&&En(b,v[y],0)>-1;);return y}function wy(v,b){for(var y=v.length,B=0;y--;)v[y]===b&&++B;return B}var by=Ws(iy),Sy=Ws(sy);function xy(v){return"\\"+oy[v]}function Ay(v,b){return v==null?r:v[b]}function Ln(v){return ey.test(v)}function Ty(v){return ty.test(v)}function Cy(v){for(var b,y=[];!(b=v.next()).done;)y.push(b.value);return y}function zs(v){var b=-1,y=Array(v.size);return v.forEach(function(B,V){y[++b]=[V,B]}),y}function Ul(v,b){return function(y){return v(b(y))}}function Jt(v,b){for(var y=-1,B=v.length,V=0,pe=[];++y<B;){var Pe=v[y];(Pe===b||Pe===R)&&(v[y]=R,pe[V++]=y)}return pe}function Fr(v){var b=-1,y=Array(v.size);return v.forEach(function(B){y[++b]=B}),y}function Ey(v){var b=-1,y=Array(v.size);return v.forEach(function(B){y[++b]=[B,B]}),y}function Ly(v,b,y){for(var B=y-1,V=v.length;++B<V;)if(v[B]===b)return B;return-1}function Oy(v,b,y){for(var B=y+1;B--;)if(v[B]===b)return B;return B}function On(v){return Ln(v)?My(v):py(v)}function St(v){return Ln(v)?Dy(v):gy(v)}function Hl(v){for(var b=v.length;b--&&w1.test(v.charAt(b)););return b}var Ry=Ws(ay);function My(v){for(var b=Ds.lastIndex=0;Ds.test(v);)++b;return b}function Dy(v){return v.match(Ds)||[]}function Iy(v){return v.match(Q1)||[]}var Py=function v(b){b=b==null?Be:Rn.defaults(Be.Object(),b,Rn.pick(Be,ny));var y=b.Array,B=b.Date,V=b.Error,pe=b.Function,Pe=b.Math,me=b.Object,Gs=b.RegExp,Ny=b.String,dt=b.TypeError,Br=y.prototype,$y=pe.prototype,Mn=me.prototype,Wr=b["__core-js_shared__"],kr=$y.toString,_e=Mn.hasOwnProperty,Fy=0,zl=function(){var e=/[^.]+$/.exec(Wr&&Wr.keys&&Wr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ur=Mn.toString,By=kr.call(me),Wy=Be._,ky=Gs("^"+kr.call(_e).replace(Cs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hr=Cl?b.Buffer:r,jt=b.Symbol,zr=b.Uint8Array,Gl=Hr?Hr.allocUnsafe:r,Gr=Ul(me.getPrototypeOf,me),Kl=me.create,Yl=Mn.propertyIsEnumerable,Kr=Br.splice,Xl=jt?jt.isConcatSpreadable:r,jn=jt?jt.iterator:r,un=jt?jt.toStringTag:r,Yr=function(){try{var e=dn(me,"defineProperty");return e({},"",{}),e}catch{}}(),Uy=b.clearTimeout!==Be.clearTimeout&&b.clearTimeout,Hy=B&&B.now!==Be.Date.now&&B.now,zy=b.setTimeout!==Be.setTimeout&&b.setTimeout,Xr=Pe.ceil,Zr=Pe.floor,Ks=me.getOwnPropertySymbols,Gy=Hr?Hr.isBuffer:r,Zl=b.isFinite,Ky=Br.join,Yy=Ul(me.keys,me),Ne=Pe.max,ze=Pe.min,Xy=B.now,Zy=b.parseInt,ql=Pe.random,qy=Br.reverse,Ys=dn(b,"DataView"),Vn=dn(b,"Map"),Xs=dn(b,"Promise"),Dn=dn(b,"Set"),Qn=dn(b,"WeakMap"),er=dn(me,"create"),qr=Qn&&new Qn,In={},Jy=pn(Ys),jy=pn(Vn),Vy=pn(Xs),Qy=pn(Dn),ew=pn(Qn),Jr=jt?jt.prototype:r,tr=Jr?Jr.valueOf:r,Jl=Jr?Jr.toString:r;function l(e){if(Oe(e)&&!ee(e)&&!(e instanceof le)){if(e instanceof pt)return e;if(_e.call(e,"__wrapped__"))return jc(e)}return new pt(e)}var Pn=function(){function e(){}return function(t){if(!Te(t))return{};if(Kl)return Kl(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function jr(){}function pt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}l.templateSettings={escape:p1,evaluate:g1,interpolate:sl,variable:"",imports:{_:l}},l.prototype=jr.prototype,l.prototype.constructor=l,pt.prototype=Pn(jr.prototype),pt.prototype.constructor=pt;function le(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=fe,this.__views__=[]}function tw(){var e=new le(this.__wrapped__);return e.__actions__=qe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qe(this.__views__),e}function nw(){if(this.__filtered__){var e=new le(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function rw(){var e=this.__wrapped__.value(),t=this.__dir__,n=ee(e),a=t<0,o=n?e.length:0,c=gb(0,o,this.__views__),d=c.start,p=c.end,_=p-d,S=a?p:d-1,x=this.__iteratees__,T=x.length,N=0,k=ze(_,this.__takeCount__);if(!n||!a&&o==_&&k==_)return wc(e,this.__actions__);var K=[];e:for(;_--&&N<k;){S+=t;for(var ne=-1,Y=e[S];++ne<T;){var ue=x[ne],ce=ue.iteratee,ot=ue.type,Xe=ce(Y);if(ot==I)Y=Xe;else if(!Xe){if(ot==W)continue e;break e}}K[N++]=Y}return K}le.prototype=Pn(jr.prototype),le.prototype.constructor=le;function ln(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function iw(){this.__data__=er?er(null):{},this.size=0}function sw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function aw(e){var t=this.__data__;if(er){var n=t[e];return n===w?r:n}return _e.call(t,e)?t[e]:r}function ow(e){var t=this.__data__;return er?t[e]!==r:_e.call(t,e)}function uw(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=er&&t===r?w:t,this}ln.prototype.clear=iw,ln.prototype.delete=sw,ln.prototype.get=aw,ln.prototype.has=ow,ln.prototype.set=uw;function $t(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function lw(){this.__data__=[],this.size=0}function cw(e){var t=this.__data__,n=Vr(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():Kr.call(t,n,1),--this.size,!0}function fw(e){var t=this.__data__,n=Vr(t,e);return n<0?r:t[n][1]}function hw(e){return Vr(this.__data__,e)>-1}function dw(e,t){var n=this.__data__,a=Vr(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}$t.prototype.clear=lw,$t.prototype.delete=cw,$t.prototype.get=fw,$t.prototype.has=hw,$t.prototype.set=dw;function Ft(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function pw(){this.size=0,this.__data__={hash:new ln,map:new(Vn||$t),string:new ln}}function gw(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t}function vw(e){return ci(this,e).get(e)}function _w(e){return ci(this,e).has(e)}function mw(e,t){var n=ci(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}Ft.prototype.clear=pw,Ft.prototype.delete=gw,Ft.prototype.get=vw,Ft.prototype.has=_w,Ft.prototype.set=mw;function cn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ft;++t<n;)this.add(e[t])}function yw(e){return this.__data__.set(e,w),this}function ww(e){return this.__data__.has(e)}cn.prototype.add=cn.prototype.push=yw,cn.prototype.has=ww;function xt(e){var t=this.__data__=new $t(e);this.size=t.size}function bw(){this.__data__=new $t,this.size=0}function Sw(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function xw(e){return this.__data__.get(e)}function Aw(e){return this.__data__.has(e)}function Tw(e,t){var n=this.__data__;if(n instanceof $t){var a=n.__data__;if(!Vn||a.length<f-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ft(a)}return n.set(e,t),this.size=n.size,this}xt.prototype.clear=bw,xt.prototype.delete=Sw,xt.prototype.get=xw,xt.prototype.has=Aw,xt.prototype.set=Tw;function jl(e,t){var n=ee(e),a=!n&&gn(e),o=!n&&!a&&nn(e),c=!n&&!a&&!o&&Bn(e),d=n||a||o||c,p=d?Us(e.length,Ny):[],_=p.length;for(var S in e)(t||_e.call(e,S))&&!(d&&(S=="length"||o&&(S=="offset"||S=="parent")||c&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||Ut(S,_)))&&p.push(S);return p}function Vl(e){var t=e.length;return t?e[ia(0,t-1)]:r}function Cw(e,t){return fi(qe(e),fn(t,0,e.length))}function Ew(e){return fi(qe(e))}function Zs(e,t,n){(n!==r&&!At(e[t],n)||n===r&&!(t in e))&&Bt(e,t,n)}function nr(e,t,n){var a=e[t];(!(_e.call(e,t)&&At(a,n))||n===r&&!(t in e))&&Bt(e,t,n)}function Vr(e,t){for(var n=e.length;n--;)if(At(e[n][0],t))return n;return-1}function Lw(e,t,n,a){return Vt(e,function(o,c,d){t(a,o,n(o),d)}),a}function Ql(e,t){return e&&Mt(t,Fe(t),e)}function Ow(e,t){return e&&Mt(t,je(t),e)}function Bt(e,t,n){t=="__proto__"&&Yr?Yr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function qs(e,t){for(var n=-1,a=t.length,o=y(a),c=e==null;++n<a;)o[n]=c?r:Oa(e,t[n]);return o}function fn(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function gt(e,t,n,a,o,c){var d,p=t&L,_=t&O,S=t&E;if(n&&(d=o?n(e,a,o,c):n(e)),d!==r)return d;if(!Te(e))return e;var x=ee(e);if(x){if(d=_b(e),!p)return qe(e,d)}else{var T=Ge(e),N=T==wt||T==Or;if(nn(e))return xc(e,p);if(T==Ze||T==$e||N&&!o){if(d=_||N?{}:Hc(e),!p)return _?ab(e,Ow(d,e)):sb(e,Ql(d,e))}else{if(!we[T])return o?e:{};d=mb(e,T,p)}}c||(c=new xt);var k=c.get(e);if(k)return k;c.set(e,d),mf(e)?e.forEach(function(Y){d.add(gt(Y,t,n,Y,e,c))}):vf(e)&&e.forEach(function(Y,ue){d.set(ue,gt(Y,t,n,ue,e,c))});var K=S?_?ga:pa:_?je:Fe,ne=x?r:K(e);return ht(ne||e,function(Y,ue){ne&&(ue=Y,Y=e[ue]),nr(d,ue,gt(Y,t,n,ue,e,c))}),d}function Rw(e){var t=Fe(e);return function(n){return ec(n,e,t)}}function ec(e,t,n){var a=n.length;if(e==null)return!a;for(e=me(e);a--;){var o=n[a],c=t[o],d=e[o];if(d===r&&!(o in e)||!c(d))return!1}return!0}function tc(e,t,n){if(typeof e!="function")throw new dt(g);return lr(function(){e.apply(r,n)},t)}function rr(e,t,n,a){var o=-1,c=Nr,d=!0,p=e.length,_=[],S=t.length;if(!p)return _;n&&(t=Ae(t,it(n))),a?(c=Ns,d=!1):t.length>=f&&(c=Jn,d=!1,t=new cn(t));e:for(;++o<p;){var x=e[o],T=n==null?x:n(x);if(x=a||x!==0?x:0,d&&T===T){for(var N=S;N--;)if(t[N]===T)continue e;_.push(x)}else c(t,T,a)||_.push(x)}return _}var Vt=Lc(Rt),nc=Lc(js,!0);function Mw(e,t){var n=!0;return Vt(e,function(a,o,c){return n=!!t(a,o,c),n}),n}function Qr(e,t,n){for(var a=-1,o=e.length;++a<o;){var c=e[a],d=t(c);if(d!=null&&(p===r?d===d&&!at(d):n(d,p)))var p=d,_=c}return _}function Dw(e,t,n,a){var o=e.length;for(n=te(n),n<0&&(n=-n>o?0:o+n),a=a===r||a>o?o:te(a),a<0&&(a+=o),a=n>a?0:wf(a);n<a;)e[n++]=t;return e}function rc(e,t){var n=[];return Vt(e,function(a,o,c){t(a,o,c)&&n.push(a)}),n}function We(e,t,n,a,o){var c=-1,d=e.length;for(n||(n=wb),o||(o=[]);++c<d;){var p=e[c];t>0&&n(p)?t>1?We(p,t-1,n,a,o):qt(o,p):a||(o[o.length]=p)}return o}var Js=Oc(),ic=Oc(!0);function Rt(e,t){return e&&Js(e,t,Fe)}function js(e,t){return e&&ic(e,t,Fe)}function ei(e,t){return Zt(t,function(n){return Ht(e[n])})}function hn(e,t){t=en(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[Dt(t[n++])];return n&&n==a?e:r}function sc(e,t,n){var a=t(e);return ee(e)?a:qt(a,n(e))}function Ke(e){return e==null?e===r?o1:Xt:un&&un in me(e)?pb(e):Eb(e)}function Vs(e,t){return e>t}function Iw(e,t){return e!=null&&_e.call(e,t)}function Pw(e,t){return e!=null&&t in me(e)}function Nw(e,t,n){return e>=ze(t,n)&&e<Ne(t,n)}function Qs(e,t,n){for(var a=n?Ns:Nr,o=e[0].length,c=e.length,d=c,p=y(c),_=1/0,S=[];d--;){var x=e[d];d&&t&&(x=Ae(x,it(t))),_=ze(x.length,_),p[d]=!n&&(t||o>=120&&x.length>=120)?new cn(d&&x):r}x=e[0];var T=-1,N=p[0];e:for(;++T<o&&S.length<_;){var k=x[T],K=t?t(k):k;if(k=n||k!==0?k:0,!(N?Jn(N,K):a(S,K,n))){for(d=c;--d;){var ne=p[d];if(!(ne?Jn(ne,K):a(e[d],K,n)))continue e}N&&N.push(K),S.push(k)}}return S}function $w(e,t,n,a){return Rt(e,function(o,c,d){t(a,n(o),c,d)}),a}function ir(e,t,n){t=en(t,e),e=Yc(e,t);var a=e==null?e:e[Dt(_t(t))];return a==null?r:rt(a,e,n)}function ac(e){return Oe(e)&&Ke(e)==$e}function Fw(e){return Oe(e)&&Ke(e)==qn}function Bw(e){return Oe(e)&&Ke(e)==Le}function sr(e,t,n,a,o){return e===t?!0:e==null||t==null||!Oe(e)&&!Oe(t)?e!==e&&t!==t:Ww(e,t,n,a,sr,o)}function Ww(e,t,n,a,o,c){var d=ee(e),p=ee(t),_=d?lt:Ge(e),S=p?lt:Ge(t);_=_==$e?Ze:_,S=S==$e?Ze:S;var x=_==Ze,T=S==Ze,N=_==S;if(N&&nn(e)){if(!nn(t))return!1;d=!0,x=!1}if(N&&!x)return c||(c=new xt),d||Bn(e)?Wc(e,t,n,a,o,c):hb(e,t,_,n,a,o,c);if(!(n&M)){var k=x&&_e.call(e,"__wrapped__"),K=T&&_e.call(t,"__wrapped__");if(k||K){var ne=k?e.value():e,Y=K?t.value():t;return c||(c=new xt),o(ne,Y,n,a,c)}}return N?(c||(c=new xt),db(e,t,n,a,o,c)):!1}function kw(e){return Oe(e)&&Ge(e)==nt}function ea(e,t,n,a){var o=n.length,c=o,d=!a;if(e==null)return!c;for(e=me(e);o--;){var p=n[o];if(d&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++o<c;){p=n[o];var _=p[0],S=e[_],x=p[1];if(d&&p[2]){if(S===r&&!(_ in e))return!1}else{var T=new xt;if(a)var N=a(S,x,_,e,t,T);if(!(N===r?sr(x,S,M|U,a,T):N))return!1}}return!0}function oc(e){if(!Te(e)||Sb(e))return!1;var t=Ht(e)?ky:R1;return t.test(pn(e))}function Uw(e){return Oe(e)&&Ke(e)==Yn}function Hw(e){return Oe(e)&&Ge(e)==bt}function zw(e){return Oe(e)&&_i(e.length)&&!!xe[Ke(e)]}function uc(e){return typeof e=="function"?e:e==null?Ve:typeof e=="object"?ee(e)?fc(e[0],e[1]):cc(e):Mf(e)}function ta(e){if(!ur(e))return Yy(e);var t=[];for(var n in me(e))_e.call(e,n)&&n!="constructor"&&t.push(n);return t}function Gw(e){if(!Te(e))return Cb(e);var t=ur(e),n=[];for(var a in e)a=="constructor"&&(t||!_e.call(e,a))||n.push(a);return n}function na(e,t){return e<t}function lc(e,t){var n=-1,a=Je(e)?y(e.length):[];return Vt(e,function(o,c,d){a[++n]=t(o,c,d)}),a}function cc(e){var t=_a(e);return t.length==1&&t[0][2]?Gc(t[0][0],t[0][1]):function(n){return n===e||ea(n,e,t)}}function fc(e,t){return ya(e)&&zc(t)?Gc(Dt(e),t):function(n){var a=Oa(n,e);return a===r&&a===t?Ra(n,e):sr(t,a,M|U)}}function ti(e,t,n,a,o){e!==t&&Js(t,function(c,d){if(o||(o=new xt),Te(c))Kw(e,t,d,n,ti,a,o);else{var p=a?a(ba(e,d),c,d+"",e,t,o):r;p===r&&(p=c),Zs(e,d,p)}},je)}function Kw(e,t,n,a,o,c,d){var p=ba(e,n),_=ba(t,n),S=d.get(_);if(S){Zs(e,n,S);return}var x=c?c(p,_,n+"",e,t,d):r,T=x===r;if(T){var N=ee(_),k=!N&&nn(_),K=!N&&!k&&Bn(_);x=_,N||k||K?ee(p)?x=p:Me(p)?x=qe(p):k?(T=!1,x=xc(_,!0)):K?(T=!1,x=Ac(_,!0)):x=[]:cr(_)||gn(_)?(x=p,gn(p)?x=bf(p):(!Te(p)||Ht(p))&&(x=Hc(_))):T=!1}T&&(d.set(_,x),o(x,_,a,c,d),d.delete(_)),Zs(e,n,x)}function hc(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Ut(t,n)?e[t]:r}function dc(e,t,n){t.length?t=Ae(t,function(c){return ee(c)?function(d){return hn(d,c.length===1?c[0]:c)}:c}):t=[Ve];var a=-1;t=Ae(t,it(G()));var o=lc(e,function(c,d,p){var _=Ae(t,function(S){return S(c)});return{criteria:_,index:++a,value:c}});return my(o,function(c,d){return ib(c,d,n)})}function Yw(e,t){return pc(e,t,function(n,a){return Ra(e,a)})}function pc(e,t,n){for(var a=-1,o=t.length,c={};++a<o;){var d=t[a],p=hn(e,d);n(p,d)&&ar(c,en(d,e),p)}return c}function Xw(e){return function(t){return hn(t,e)}}function ra(e,t,n,a){var o=a?_y:En,c=-1,d=t.length,p=e;for(e===t&&(t=qe(t)),n&&(p=Ae(e,it(n)));++c<d;)for(var _=0,S=t[c],x=n?n(S):S;(_=o(p,x,_,a))>-1;)p!==e&&Kr.call(p,_,1),Kr.call(e,_,1);return e}function gc(e,t){for(var n=e?t.length:0,a=n-1;n--;){var o=t[n];if(n==a||o!==c){var c=o;Ut(o)?Kr.call(e,o,1):oa(e,o)}}return e}function ia(e,t){return e+Zr(ql()*(t-e+1))}function Zw(e,t,n,a){for(var o=-1,c=Ne(Xr((t-e)/(n||1)),0),d=y(c);c--;)d[a?c:++o]=e,e+=n;return d}function sa(e,t){var n="";if(!e||t<1||t>z)return n;do t%2&&(n+=e),t=Zr(t/2),t&&(e+=e);while(t);return n}function se(e,t){return Sa(Kc(e,t,Ve),e+"")}function qw(e){return Vl(Wn(e))}function Jw(e,t){var n=Wn(e);return fi(n,fn(t,0,n.length))}function ar(e,t,n,a){if(!Te(e))return e;t=en(t,e);for(var o=-1,c=t.length,d=c-1,p=e;p!=null&&++o<c;){var _=Dt(t[o]),S=n;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(o!=d){var x=p[_];S=a?a(x,_,p):r,S===r&&(S=Te(x)?x:Ut(t[o+1])?[]:{})}nr(p,_,S),p=p[_]}return e}var vc=qr?function(e,t){return qr.set(e,t),e}:Ve,jw=Yr?function(e,t){return Yr(e,"toString",{configurable:!0,enumerable:!1,value:Da(t),writable:!0})}:Ve;function Vw(e){return fi(Wn(e))}function vt(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var c=y(o);++a<o;)c[a]=e[a+t];return c}function Qw(e,t){var n;return Vt(e,function(a,o,c){return n=t(a,o,c),!n}),!!n}function ni(e,t,n){var a=0,o=e==null?a:e.length;if(typeof t=="number"&&t===t&&o<=Ee){for(;a<o;){var c=a+o>>>1,d=e[c];d!==null&&!at(d)&&(n?d<=t:d<t)?a=c+1:o=c}return o}return aa(e,t,Ve,n)}function aa(e,t,n,a){var o=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var d=t!==t,p=t===null,_=at(t),S=t===r;o<c;){var x=Zr((o+c)/2),T=n(e[x]),N=T!==r,k=T===null,K=T===T,ne=at(T);if(d)var Y=a||K;else S?Y=K&&(a||N):p?Y=K&&N&&(a||!k):_?Y=K&&N&&!k&&(a||!ne):k||ne?Y=!1:Y=a?T<=t:T<t;Y?o=x+1:c=x}return ze(c,he)}function _c(e,t){for(var n=-1,a=e.length,o=0,c=[];++n<a;){var d=e[n],p=t?t(d):d;if(!n||!At(p,_)){var _=p;c[o++]=d===0?0:d}}return c}function mc(e){return typeof e=="number"?e:at(e)?oe:+e}function st(e){if(typeof e=="string")return e;if(ee(e))return Ae(e,st)+"";if(at(e))return Jl?Jl.call(e):"";var t=e+"";return t=="0"&&1/e==-P?"-0":t}function Qt(e,t,n){var a=-1,o=Nr,c=e.length,d=!0,p=[],_=p;if(n)d=!1,o=Ns;else if(c>=f){var S=t?null:cb(e);if(S)return Fr(S);d=!1,o=Jn,_=new cn}else _=t?[]:p;e:for(;++a<c;){var x=e[a],T=t?t(x):x;if(x=n||x!==0?x:0,d&&T===T){for(var N=_.length;N--;)if(_[N]===T)continue e;t&&_.push(T),p.push(x)}else o(_,T,n)||(_!==p&&_.push(T),p.push(x))}return p}function oa(e,t){return t=en(t,e),e=Yc(e,t),e==null||delete e[Dt(_t(t))]}function yc(e,t,n,a){return ar(e,t,n(hn(e,t)),a)}function ri(e,t,n,a){for(var o=e.length,c=a?o:-1;(a?c--:++c<o)&&t(e[c],c,e););return n?vt(e,a?0:c,a?c+1:o):vt(e,a?c+1:0,a?o:c)}function wc(e,t){var n=e;return n instanceof le&&(n=n.value()),$s(t,function(a,o){return o.func.apply(o.thisArg,qt([a],o.args))},n)}function ua(e,t,n){var a=e.length;if(a<2)return a?Qt(e[0]):[];for(var o=-1,c=y(a);++o<a;)for(var d=e[o],p=-1;++p<a;)p!=o&&(c[o]=rr(c[o]||d,e[p],t,n));return Qt(We(c,1),t,n)}function bc(e,t,n){for(var a=-1,o=e.length,c=t.length,d={};++a<o;){var p=a<c?t[a]:r;n(d,e[a],p)}return d}function la(e){return Me(e)?e:[]}function ca(e){return typeof e=="function"?e:Ve}function en(e,t){return ee(e)?e:ya(e,t)?[e]:Jc(ve(e))}var eb=se;function tn(e,t,n){var a=e.length;return n=n===r?a:n,!t&&n>=a?e:vt(e,t,n)}var Sc=Uy||function(e){return Be.clearTimeout(e)};function xc(e,t){if(t)return e.slice();var n=e.length,a=Gl?Gl(n):new e.constructor(n);return e.copy(a),a}function fa(e){var t=new e.constructor(e.byteLength);return new zr(t).set(new zr(e)),t}function tb(e,t){var n=t?fa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function nb(e){var t=new e.constructor(e.source,al.exec(e));return t.lastIndex=e.lastIndex,t}function rb(e){return tr?me(tr.call(e)):{}}function Ac(e,t){var n=t?fa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Tc(e,t){if(e!==t){var n=e!==r,a=e===null,o=e===e,c=at(e),d=t!==r,p=t===null,_=t===t,S=at(t);if(!p&&!S&&!c&&e>t||c&&d&&_&&!p&&!S||a&&d&&_||!n&&_||!o)return 1;if(!a&&!c&&!S&&e<t||S&&n&&o&&!a&&!c||p&&n&&o||!d&&o||!_)return-1}return 0}function ib(e,t,n){for(var a=-1,o=e.criteria,c=t.criteria,d=o.length,p=n.length;++a<d;){var _=Tc(o[a],c[a]);if(_){if(a>=p)return _;var S=n[a];return _*(S=="desc"?-1:1)}}return e.index-t.index}function Cc(e,t,n,a){for(var o=-1,c=e.length,d=n.length,p=-1,_=t.length,S=Ne(c-d,0),x=y(_+S),T=!a;++p<_;)x[p]=t[p];for(;++o<d;)(T||o<c)&&(x[n[o]]=e[o]);for(;S--;)x[p++]=e[o++];return x}function Ec(e,t,n,a){for(var o=-1,c=e.length,d=-1,p=n.length,_=-1,S=t.length,x=Ne(c-p,0),T=y(x+S),N=!a;++o<x;)T[o]=e[o];for(var k=o;++_<S;)T[k+_]=t[_];for(;++d<p;)(N||o<c)&&(T[k+n[d]]=e[o++]);return T}function qe(e,t){var n=-1,a=e.length;for(t||(t=y(a));++n<a;)t[n]=e[n];return t}function Mt(e,t,n,a){var o=!n;n||(n={});for(var c=-1,d=t.length;++c<d;){var p=t[c],_=a?a(n[p],e[p],p,n,e):r;_===r&&(_=e[p]),o?Bt(n,p,_):nr(n,p,_)}return n}function sb(e,t){return Mt(e,ma(e),t)}function ab(e,t){return Mt(e,kc(e),t)}function ii(e,t){return function(n,a){var o=ee(n)?fy:Lw,c=t?t():{};return o(n,e,G(a,2),c)}}function Nn(e){return se(function(t,n){var a=-1,o=n.length,c=o>1?n[o-1]:r,d=o>2?n[2]:r;for(c=e.length>3&&typeof c=="function"?(o--,c):r,d&&Ye(n[0],n[1],d)&&(c=o<3?r:c,o=1),t=me(t);++a<o;){var p=n[a];p&&e(t,p,a,c)}return t})}function Lc(e,t){return function(n,a){if(n==null)return n;if(!Je(n))return e(n,a);for(var o=n.length,c=t?o:-1,d=me(n);(t?c--:++c<o)&&a(d[c],c,d)!==!1;);return n}}function Oc(e){return function(t,n,a){for(var o=-1,c=me(t),d=a(t),p=d.length;p--;){var _=d[e?p:++o];if(n(c[_],_,c)===!1)break}return t}}function ob(e,t,n){var a=t&F,o=or(e);function c(){var d=this&&this!==Be&&this instanceof c?o:e;return d.apply(a?n:this,arguments)}return c}function Rc(e){return function(t){t=ve(t);var n=Ln(t)?St(t):r,a=n?n[0]:t.charAt(0),o=n?tn(n,1).join(""):t.slice(1);return a[e]()+o}}function $n(e){return function(t){return $s(Of(Lf(t).replace(j1,"")),e,"")}}function or(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Pn(e.prototype),a=e.apply(n,t);return Te(a)?a:n}}function ub(e,t,n){var a=or(e);function o(){for(var c=arguments.length,d=y(c),p=c,_=Fn(o);p--;)d[p]=arguments[p];var S=c<3&&d[0]!==_&&d[c-1]!==_?[]:Jt(d,_);if(c-=S.length,c<n)return Nc(e,t,si,o.placeholder,r,d,S,r,r,n-c);var x=this&&this!==Be&&this instanceof o?a:e;return rt(x,this,d)}return o}function Mc(e){return function(t,n,a){var o=me(t);if(!Je(t)){var c=G(n,3);t=Fe(t),n=function(p){return c(o[p],p,o)}}var d=e(t,n,a);return d>-1?o[c?t[d]:d]:r}}function Dc(e){return kt(function(t){var n=t.length,a=n,o=pt.prototype.thru;for(e&&t.reverse();a--;){var c=t[a];if(typeof c!="function")throw new dt(g);if(o&&!d&&li(c)=="wrapper")var d=new pt([],!0)}for(a=d?a:n;++a<n;){c=t[a];var p=li(c),_=p=="wrapper"?va(c):r;_&&wa(_[0])&&_[1]==(Se|ae|q|ye)&&!_[4].length&&_[9]==1?d=d[li(_[0])].apply(d,_[3]):d=c.length==1&&wa(c)?d[p]():d.thru(c)}return function(){var S=arguments,x=S[0];if(d&&S.length==1&&ee(x))return d.plant(x).value();for(var T=0,N=n?t[T].apply(this,S):x;++T<n;)N=t[T].call(this,N);return N}})}function si(e,t,n,a,o,c,d,p,_,S){var x=t&Se,T=t&F,N=t&H,k=t&(ae|ie),K=t&Q,ne=N?r:or(e);function Y(){for(var ue=arguments.length,ce=y(ue),ot=ue;ot--;)ce[ot]=arguments[ot];if(k)var Xe=Fn(Y),ut=wy(ce,Xe);if(a&&(ce=Cc(ce,a,o,k)),c&&(ce=Ec(ce,c,d,k)),ue-=ut,k&&ue<S){var De=Jt(ce,Xe);return Nc(e,t,si,Y.placeholder,n,ce,De,p,_,S-ue)}var Tt=T?n:this,Gt=N?Tt[e]:e;return ue=ce.length,p?ce=Lb(ce,p):K&&ue>1&&ce.reverse(),x&&_<ue&&(ce.length=_),this&&this!==Be&&this instanceof Y&&(Gt=ne||or(Gt)),Gt.apply(Tt,ce)}return Y}function Ic(e,t){return function(n,a){return $w(n,e,t(a),{})}}function ai(e,t){return function(n,a){var o;if(n===r&&a===r)return t;if(n!==r&&(o=n),a!==r){if(o===r)return a;typeof n=="string"||typeof a=="string"?(n=st(n),a=st(a)):(n=mc(n),a=mc(a)),o=e(n,a)}return o}}function ha(e){return kt(function(t){return t=Ae(t,it(G())),se(function(n){var a=this;return e(t,function(o){return rt(o,a,n)})})})}function oi(e,t){t=t===r?" ":st(t);var n=t.length;if(n<2)return n?sa(t,e):t;var a=sa(t,Xr(e/On(t)));return Ln(t)?tn(St(a),0,e).join(""):a.slice(0,e)}function lb(e,t,n,a){var o=t&F,c=or(e);function d(){for(var p=-1,_=arguments.length,S=-1,x=a.length,T=y(x+_),N=this&&this!==Be&&this instanceof d?c:e;++S<x;)T[S]=a[S];for(;_--;)T[S++]=arguments[++p];return rt(N,o?n:this,T)}return d}function Pc(e){return function(t,n,a){return a&&typeof a!="number"&&Ye(t,n,a)&&(n=a=r),t=zt(t),n===r?(n=t,t=0):n=zt(n),a=a===r?t<n?1:-1:zt(a),Zw(t,n,a,e)}}function ui(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=mt(t),n=mt(n)),e(t,n)}}function Nc(e,t,n,a,o,c,d,p,_,S){var x=t&ae,T=x?d:r,N=x?r:d,k=x?c:r,K=x?r:c;t|=x?q:ge,t&=~(x?ge:q),t&de||(t&=~(F|H));var ne=[e,t,o,k,T,K,N,p,_,S],Y=n.apply(r,ne);return wa(e)&&Xc(Y,ne),Y.placeholder=a,Zc(Y,e,t)}function da(e){var t=Pe[e];return function(n,a){if(n=mt(n),a=a==null?0:ze(te(a),292),a&&Zl(n)){var o=(ve(n)+"e").split("e"),c=t(o[0]+"e"+(+o[1]+a));return o=(ve(c)+"e").split("e"),+(o[0]+"e"+(+o[1]-a))}return t(n)}}var cb=Dn&&1/Fr(new Dn([,-0]))[1]==P?function(e){return new Dn(e)}:Na;function $c(e){return function(t){var n=Ge(t);return n==nt?zs(t):n==bt?Ey(t):yy(t,e(t))}}function Wt(e,t,n,a,o,c,d,p){var _=t&H;if(!_&&typeof e!="function")throw new dt(g);var S=a?a.length:0;if(S||(t&=~(q|ge),a=o=r),d=d===r?d:Ne(te(d),0),p=p===r?p:te(p),S-=o?o.length:0,t&ge){var x=a,T=o;a=o=r}var N=_?r:va(e),k=[e,t,n,a,o,x,T,c,d,p];if(N&&Tb(k,N),e=k[0],t=k[1],n=k[2],a=k[3],o=k[4],p=k[9]=k[9]===r?_?0:e.length:Ne(k[9]-S,0),!p&&t&(ae|ie)&&(t&=~(ae|ie)),!t||t==F)var K=ob(e,t,n);else t==ae||t==ie?K=ub(e,t,p):(t==q||t==(F|q))&&!o.length?K=lb(e,t,n,a):K=si.apply(r,k);var ne=N?vc:Xc;return Zc(ne(K,k),e,t)}function Fc(e,t,n,a){return e===r||At(e,Mn[n])&&!_e.call(a,n)?t:e}function Bc(e,t,n,a,o,c){return Te(e)&&Te(t)&&(c.set(t,e),ti(e,t,r,Bc,c),c.delete(t)),e}function fb(e){return cr(e)?r:e}function Wc(e,t,n,a,o,c){var d=n&M,p=e.length,_=t.length;if(p!=_&&!(d&&_>p))return!1;var S=c.get(e),x=c.get(t);if(S&&x)return S==t&&x==e;var T=-1,N=!0,k=n&U?new cn:r;for(c.set(e,t),c.set(t,e);++T<p;){var K=e[T],ne=t[T];if(a)var Y=d?a(ne,K,T,t,e,c):a(K,ne,T,e,t,c);if(Y!==r){if(Y)continue;N=!1;break}if(k){if(!Fs(t,function(ue,ce){if(!Jn(k,ce)&&(K===ue||o(K,ue,n,a,c)))return k.push(ce)})){N=!1;break}}else if(!(K===ne||o(K,ne,n,a,c))){N=!1;break}}return c.delete(e),c.delete(t),N}function hb(e,t,n,a,o,c,d){switch(n){case Tn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case qn:return!(e.byteLength!=t.byteLength||!c(new zr(e),new zr(t)));case Ue:case Le:case He:return At(+e,+t);case Ot:return e.name==t.name&&e.message==t.message;case Yn:case Xn:return e==t+"";case nt:var p=zs;case bt:var _=a&M;if(p||(p=Fr),e.size!=t.size&&!_)return!1;var S=d.get(e);if(S)return S==t;a|=U,d.set(e,t);var x=Wc(p(e),p(t),a,o,c,d);return d.delete(e),x;case Mr:if(tr)return tr.call(e)==tr.call(t)}return!1}function db(e,t,n,a,o,c){var d=n&M,p=pa(e),_=p.length,S=pa(t),x=S.length;if(_!=x&&!d)return!1;for(var T=_;T--;){var N=p[T];if(!(d?N in t:_e.call(t,N)))return!1}var k=c.get(e),K=c.get(t);if(k&&K)return k==t&&K==e;var ne=!0;c.set(e,t),c.set(t,e);for(var Y=d;++T<_;){N=p[T];var ue=e[N],ce=t[N];if(a)var ot=d?a(ce,ue,N,t,e,c):a(ue,ce,N,e,t,c);if(!(ot===r?ue===ce||o(ue,ce,n,a,c):ot)){ne=!1;break}Y||(Y=N=="constructor")}if(ne&&!Y){var Xe=e.constructor,ut=t.constructor;Xe!=ut&&"constructor"in e&&"constructor"in t&&!(typeof Xe=="function"&&Xe instanceof Xe&&typeof ut=="function"&&ut instanceof ut)&&(ne=!1)}return c.delete(e),c.delete(t),ne}function kt(e){return Sa(Kc(e,r,ef),e+"")}function pa(e){return sc(e,Fe,ma)}function ga(e){return sc(e,je,kc)}var va=qr?function(e){return qr.get(e)}:Na;function li(e){for(var t=e.name+"",n=In[t],a=_e.call(In,t)?n.length:0;a--;){var o=n[a],c=o.func;if(c==null||c==e)return o.name}return t}function Fn(e){var t=_e.call(l,"placeholder")?l:e;return t.placeholder}function G(){var e=l.iteratee||Ia;return e=e===Ia?uc:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n=e.__data__;return bb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function _a(e){for(var t=Fe(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,zc(o)]}return t}function dn(e,t){var n=Ay(e,t);return oc(n)?n:r}function pb(e){var t=_e.call(e,un),n=e[un];try{e[un]=r;var a=!0}catch{}var o=Ur.call(e);return a&&(t?e[un]=n:delete e[un]),o}var ma=Ks?function(e){return e==null?[]:(e=me(e),Zt(Ks(e),function(t){return Yl.call(e,t)}))}:$a,kc=Ks?function(e){for(var t=[];e;)qt(t,ma(e)),e=Gr(e);return t}:$a,Ge=Ke;(Ys&&Ge(new Ys(new ArrayBuffer(1)))!=Tn||Vn&&Ge(new Vn)!=nt||Xs&&Ge(Xs.resolve())!=Rr||Dn&&Ge(new Dn)!=bt||Qn&&Ge(new Qn)!=Zn)&&(Ge=function(e){var t=Ke(e),n=t==Ze?e.constructor:r,a=n?pn(n):"";if(a)switch(a){case Jy:return Tn;case jy:return nt;case Vy:return Rr;case Qy:return bt;case ew:return Zn}return t});function gb(e,t,n){for(var a=-1,o=n.length;++a<o;){var c=n[a],d=c.size;switch(c.type){case"drop":e+=d;break;case"dropRight":t-=d;break;case"take":t=ze(t,e+d);break;case"takeRight":e=Ne(e,t-d);break}}return{start:e,end:t}}function vb(e){var t=e.match(S1);return t?t[1].split(x1):[]}function Uc(e,t,n){t=en(t,e);for(var a=-1,o=t.length,c=!1;++a<o;){var d=Dt(t[a]);if(!(c=e!=null&&n(e,d)))break;e=e[d]}return c||++a!=o?c:(o=e==null?0:e.length,!!o&&_i(o)&&Ut(d,o)&&(ee(e)||gn(e)))}function _b(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&_e.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Hc(e){return typeof e.constructor=="function"&&!ur(e)?Pn(Gr(e)):{}}function mb(e,t,n){var a=e.constructor;switch(t){case qn:return fa(e);case Ue:case Le:return new a(+e);case Tn:return tb(e,n);case _s:case ms:case ys:case ws:case bs:case Ss:case xs:case As:case Ts:return Ac(e,n);case nt:return new a;case He:case Xn:return new a(e);case Yn:return nb(e);case bt:return new a;case Mr:return rb(e)}}function yb(e,t){var n=t.length;if(!n)return e;var a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(b1,`{
/* [wrapped with `+t+`] */
`)}function wb(e){return ee(e)||gn(e)||!!(Xl&&e&&e[Xl])}function Ut(e,t){var n=typeof e;return t=t==null?z:t,!!t&&(n=="number"||n!="symbol"&&D1.test(e))&&e>-1&&e%1==0&&e<t}function Ye(e,t,n){if(!Te(n))return!1;var a=typeof t;return(a=="number"?Je(n)&&Ut(t,n.length):a=="string"&&t in n)?At(n[t],e):!1}function ya(e,t){if(ee(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||at(e)?!0:_1.test(e)||!v1.test(e)||t!=null&&e in me(t)}function bb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function wa(e){var t=li(e),n=l[t];if(typeof n!="function"||!(t in le.prototype))return!1;if(e===n)return!0;var a=va(n);return!!a&&e===a[0]}function Sb(e){return!!zl&&zl in e}var xb=Wr?Ht:Fa;function ur(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Mn;return e===n}function zc(e){return e===e&&!Te(e)}function Gc(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in me(n))}}function Ab(e){var t=gi(e,function(a){return n.size===A&&n.clear(),a}),n=t.cache;return t}function Tb(e,t){var n=e[1],a=t[1],o=n|a,c=o<(F|H|Se),d=a==Se&&n==ae||a==Se&&n==ye&&e[7].length<=t[8]||a==(Se|ye)&&t[7].length<=t[8]&&n==ae;if(!(c||d))return e;a&F&&(e[2]=t[2],o|=n&F?0:de);var p=t[3];if(p){var _=e[3];e[3]=_?Cc(_,p,t[4]):p,e[4]=_?Jt(e[3],R):t[4]}return p=t[5],p&&(_=e[5],e[5]=_?Ec(_,p,t[6]):p,e[6]=_?Jt(e[5],R):t[6]),p=t[7],p&&(e[7]=p),a&Se&&(e[8]=e[8]==null?t[8]:ze(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function Cb(e){var t=[];if(e!=null)for(var n in me(e))t.push(n);return t}function Eb(e){return Ur.call(e)}function Kc(e,t,n){return t=Ne(t===r?e.length-1:t,0),function(){for(var a=arguments,o=-1,c=Ne(a.length-t,0),d=y(c);++o<c;)d[o]=a[t+o];o=-1;for(var p=y(t+1);++o<t;)p[o]=a[o];return p[t]=n(d),rt(e,this,p)}}function Yc(e,t){return t.length<2?e:hn(e,vt(t,0,-1))}function Lb(e,t){for(var n=e.length,a=ze(t.length,n),o=qe(e);a--;){var c=t[a];e[a]=Ut(c,n)?o[c]:r}return e}function ba(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xc=qc(vc),lr=zy||function(e,t){return Be.setTimeout(e,t)},Sa=qc(jw);function Zc(e,t,n){var a=t+"";return Sa(e,yb(a,Ob(vb(a),n)))}function qc(e){var t=0,n=0;return function(){var a=Xy(),o=j-(a-n);if(n=a,o>0){if(++t>=Pt)return arguments[0]}else t=0;return e.apply(r,arguments)}}function fi(e,t){var n=-1,a=e.length,o=a-1;for(t=t===r?a:t;++n<t;){var c=ia(n,o),d=e[c];e[c]=e[n],e[n]=d}return e.length=t,e}var Jc=Ab(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(m1,function(n,a,o,c){t.push(o?c.replace(C1,"$1"):a||n)}),t});function Dt(e){if(typeof e=="string"||at(e))return e;var t=e+"";return t=="0"&&1/e==-P?"-0":t}function pn(e){if(e!=null){try{return kr.call(e)}catch{}try{return e+""}catch{}}return""}function Ob(e,t){return ht(tt,function(n){var a="_."+n[0];t&n[1]&&!Nr(e,a)&&e.push(a)}),e.sort()}function jc(e){if(e instanceof le)return e.clone();var t=new pt(e.__wrapped__,e.__chain__);return t.__actions__=qe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Rb(e,t,n){(n?Ye(e,t,n):t===r)?t=1:t=Ne(te(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var o=0,c=0,d=y(Xr(a/t));o<a;)d[c++]=vt(e,o,o+=t);return d}function Mb(e){for(var t=-1,n=e==null?0:e.length,a=0,o=[];++t<n;){var c=e[t];c&&(o[a++]=c)}return o}function Db(){var e=arguments.length;if(!e)return[];for(var t=y(e-1),n=arguments[0],a=e;a--;)t[a-1]=arguments[a];return qt(ee(n)?qe(n):[n],We(t,1))}var Ib=se(function(e,t){return Me(e)?rr(e,We(t,1,Me,!0)):[]}),Pb=se(function(e,t){var n=_t(t);return Me(n)&&(n=r),Me(e)?rr(e,We(t,1,Me,!0),G(n,2)):[]}),Nb=se(function(e,t){var n=_t(t);return Me(n)&&(n=r),Me(e)?rr(e,We(t,1,Me,!0),r,n):[]});function $b(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:te(t),vt(e,t<0?0:t,a)):[]}function Fb(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:te(t),t=a-t,vt(e,0,t<0?0:t)):[]}function Bb(e,t){return e&&e.length?ri(e,G(t,3),!0,!0):[]}function Wb(e,t){return e&&e.length?ri(e,G(t,3),!0):[]}function kb(e,t,n,a){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&Ye(e,t,n)&&(n=0,a=o),Dw(e,t,n,a)):[]}function Vc(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=n==null?0:te(n);return o<0&&(o=Ne(a+o,0)),$r(e,G(t,3),o)}function Qc(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return n!==r&&(o=te(n),o=n<0?Ne(a+o,0):ze(o,a-1)),$r(e,G(t,3),o,!0)}function ef(e){var t=e==null?0:e.length;return t?We(e,1):[]}function Ub(e){var t=e==null?0:e.length;return t?We(e,P):[]}function Hb(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:te(t),We(e,t)):[]}function zb(e){for(var t=-1,n=e==null?0:e.length,a={};++t<n;){var o=e[t];a[o[0]]=o[1]}return a}function tf(e){return e&&e.length?e[0]:r}function Gb(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=n==null?0:te(n);return o<0&&(o=Ne(a+o,0)),En(e,t,o)}function Kb(e){var t=e==null?0:e.length;return t?vt(e,0,-1):[]}var Yb=se(function(e){var t=Ae(e,la);return t.length&&t[0]===e[0]?Qs(t):[]}),Xb=se(function(e){var t=_t(e),n=Ae(e,la);return t===_t(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Qs(n,G(t,2)):[]}),Zb=se(function(e){var t=_t(e),n=Ae(e,la);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?Qs(n,r,t):[]});function qb(e,t){return e==null?"":Ky.call(e,t)}function _t(e){var t=e==null?0:e.length;return t?e[t-1]:r}function Jb(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a;return n!==r&&(o=te(n),o=o<0?Ne(a+o,0):ze(o,a-1)),t===t?Oy(e,t,o):$r(e,Nl,o,!0)}function jb(e,t){return e&&e.length?hc(e,te(t)):r}var Vb=se(nf);function nf(e,t){return e&&e.length&&t&&t.length?ra(e,t):e}function Qb(e,t,n){return e&&e.length&&t&&t.length?ra(e,t,G(n,2)):e}function eS(e,t,n){return e&&e.length&&t&&t.length?ra(e,t,r,n):e}var tS=kt(function(e,t){var n=e==null?0:e.length,a=qs(e,t);return gc(e,Ae(t,function(o){return Ut(o,n)?+o:o}).sort(Tc)),a});function nS(e,t){var n=[];if(!(e&&e.length))return n;var a=-1,o=[],c=e.length;for(t=G(t,3);++a<c;){var d=e[a];t(d,a,e)&&(n.push(d),o.push(a))}return gc(e,o),n}function xa(e){return e==null?e:qy.call(e)}function rS(e,t,n){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&Ye(e,t,n)?(t=0,n=a):(t=t==null?0:te(t),n=n===r?a:te(n)),vt(e,t,n)):[]}function iS(e,t){return ni(e,t)}function sS(e,t,n){return aa(e,t,G(n,2))}function aS(e,t){var n=e==null?0:e.length;if(n){var a=ni(e,t);if(a<n&&At(e[a],t))return a}return-1}function oS(e,t){return ni(e,t,!0)}function uS(e,t,n){return aa(e,t,G(n,2),!0)}function lS(e,t){var n=e==null?0:e.length;if(n){var a=ni(e,t,!0)-1;if(At(e[a],t))return a}return-1}function cS(e){return e&&e.length?_c(e):[]}function fS(e,t){return e&&e.length?_c(e,G(t,2)):[]}function hS(e){var t=e==null?0:e.length;return t?vt(e,1,t):[]}function dS(e,t,n){return e&&e.length?(t=n||t===r?1:te(t),vt(e,0,t<0?0:t)):[]}function pS(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:te(t),t=a-t,vt(e,t<0?0:t,a)):[]}function gS(e,t){return e&&e.length?ri(e,G(t,3),!1,!0):[]}function vS(e,t){return e&&e.length?ri(e,G(t,3)):[]}var _S=se(function(e){return Qt(We(e,1,Me,!0))}),mS=se(function(e){var t=_t(e);return Me(t)&&(t=r),Qt(We(e,1,Me,!0),G(t,2))}),yS=se(function(e){var t=_t(e);return t=typeof t=="function"?t:r,Qt(We(e,1,Me,!0),r,t)});function wS(e){return e&&e.length?Qt(e):[]}function bS(e,t){return e&&e.length?Qt(e,G(t,2)):[]}function SS(e,t){return t=typeof t=="function"?t:r,e&&e.length?Qt(e,r,t):[]}function Aa(e){if(!(e&&e.length))return[];var t=0;return e=Zt(e,function(n){if(Me(n))return t=Ne(n.length,t),!0}),Us(t,function(n){return Ae(e,Bs(n))})}function rf(e,t){if(!(e&&e.length))return[];var n=Aa(e);return t==null?n:Ae(n,function(a){return rt(t,r,a)})}var xS=se(function(e,t){return Me(e)?rr(e,t):[]}),AS=se(function(e){return ua(Zt(e,Me))}),TS=se(function(e){var t=_t(e);return Me(t)&&(t=r),ua(Zt(e,Me),G(t,2))}),CS=se(function(e){var t=_t(e);return t=typeof t=="function"?t:r,ua(Zt(e,Me),r,t)}),ES=se(Aa);function LS(e,t){return bc(e||[],t||[],nr)}function OS(e,t){return bc(e||[],t||[],ar)}var RS=se(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,rf(e,n)});function sf(e){var t=l(e);return t.__chain__=!0,t}function MS(e,t){return t(e),e}function hi(e,t){return t(e)}var DS=kt(function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,o=function(c){return qs(c,e)};return t>1||this.__actions__.length||!(a instanceof le)||!Ut(n)?this.thru(o):(a=a.slice(n,+n+(t?1:0)),a.__actions__.push({func:hi,args:[o],thisArg:r}),new pt(a,this.__chain__).thru(function(c){return t&&!c.length&&c.push(r),c}))});function IS(){return sf(this)}function PS(){return new pt(this.value(),this.__chain__)}function NS(){this.__values__===r&&(this.__values__=yf(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function $S(){return this}function FS(e){for(var t,n=this;n instanceof jr;){var a=jc(n);a.__index__=0,a.__values__=r,t?o.__wrapped__=a:t=a;var o=a;n=n.__wrapped__}return o.__wrapped__=e,t}function BS(){var e=this.__wrapped__;if(e instanceof le){var t=e;return this.__actions__.length&&(t=new le(this)),t=t.reverse(),t.__actions__.push({func:hi,args:[xa],thisArg:r}),new pt(t,this.__chain__)}return this.thru(xa)}function WS(){return wc(this.__wrapped__,this.__actions__)}var kS=ii(function(e,t,n){_e.call(e,n)?++e[n]:Bt(e,n,1)});function US(e,t,n){var a=ee(e)?Il:Mw;return n&&Ye(e,t,n)&&(t=r),a(e,G(t,3))}function HS(e,t){var n=ee(e)?Zt:rc;return n(e,G(t,3))}var zS=Mc(Vc),GS=Mc(Qc);function KS(e,t){return We(di(e,t),1)}function YS(e,t){return We(di(e,t),P)}function XS(e,t,n){return n=n===r?1:te(n),We(di(e,t),n)}function af(e,t){var n=ee(e)?ht:Vt;return n(e,G(t,3))}function of(e,t){var n=ee(e)?hy:nc;return n(e,G(t,3))}var ZS=ii(function(e,t,n){_e.call(e,n)?e[n].push(t):Bt(e,n,[t])});function qS(e,t,n,a){e=Je(e)?e:Wn(e),n=n&&!a?te(n):0;var o=e.length;return n<0&&(n=Ne(o+n,0)),mi(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&En(e,t,n)>-1}var JS=se(function(e,t,n){var a=-1,o=typeof t=="function",c=Je(e)?y(e.length):[];return Vt(e,function(d){c[++a]=o?rt(t,d,n):ir(d,t,n)}),c}),jS=ii(function(e,t,n){Bt(e,n,t)});function di(e,t){var n=ee(e)?Ae:lc;return n(e,G(t,3))}function VS(e,t,n,a){return e==null?[]:(ee(t)||(t=t==null?[]:[t]),n=a?r:n,ee(n)||(n=n==null?[]:[n]),dc(e,t,n))}var QS=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function ex(e,t,n){var a=ee(e)?$s:Fl,o=arguments.length<3;return a(e,G(t,4),n,o,Vt)}function tx(e,t,n){var a=ee(e)?dy:Fl,o=arguments.length<3;return a(e,G(t,4),n,o,nc)}function nx(e,t){var n=ee(e)?Zt:rc;return n(e,vi(G(t,3)))}function rx(e){var t=ee(e)?Vl:qw;return t(e)}function ix(e,t,n){(n?Ye(e,t,n):t===r)?t=1:t=te(t);var a=ee(e)?Cw:Jw;return a(e,t)}function sx(e){var t=ee(e)?Ew:Vw;return t(e)}function ax(e){if(e==null)return 0;if(Je(e))return mi(e)?On(e):e.length;var t=Ge(e);return t==nt||t==bt?e.size:ta(e).length}function ox(e,t,n){var a=ee(e)?Fs:Qw;return n&&Ye(e,t,n)&&(t=r),a(e,G(t,3))}var ux=se(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ye(e,t[0],t[1])?t=[]:n>2&&Ye(t[0],t[1],t[2])&&(t=[t[0]]),dc(e,We(t,1),[])}),pi=Hy||function(){return Be.Date.now()};function lx(e,t){if(typeof t!="function")throw new dt(g);return e=te(e),function(){if(--e<1)return t.apply(this,arguments)}}function uf(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Wt(e,Se,r,r,r,r,t)}function lf(e,t){var n;if(typeof t!="function")throw new dt(g);return e=te(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ta=se(function(e,t,n){var a=F;if(n.length){var o=Jt(n,Fn(Ta));a|=q}return Wt(e,a,t,n,o)}),cf=se(function(e,t,n){var a=F|H;if(n.length){var o=Jt(n,Fn(cf));a|=q}return Wt(t,a,e,n,o)});function ff(e,t,n){t=n?r:t;var a=Wt(e,ae,r,r,r,r,r,t);return a.placeholder=ff.placeholder,a}function hf(e,t,n){t=n?r:t;var a=Wt(e,ie,r,r,r,r,r,t);return a.placeholder=hf.placeholder,a}function df(e,t,n){var a,o,c,d,p,_,S=0,x=!1,T=!1,N=!0;if(typeof e!="function")throw new dt(g);t=mt(t)||0,Te(n)&&(x=!!n.leading,T="maxWait"in n,c=T?Ne(mt(n.maxWait)||0,t):c,N="trailing"in n?!!n.trailing:N);function k(De){var Tt=a,Gt=o;return a=o=r,S=De,d=e.apply(Gt,Tt),d}function K(De){return S=De,p=lr(ue,t),x?k(De):d}function ne(De){var Tt=De-_,Gt=De-S,Df=t-Tt;return T?ze(Df,c-Gt):Df}function Y(De){var Tt=De-_,Gt=De-S;return _===r||Tt>=t||Tt<0||T&&Gt>=c}function ue(){var De=pi();if(Y(De))return ce(De);p=lr(ue,ne(De))}function ce(De){return p=r,N&&a?k(De):(a=o=r,d)}function ot(){p!==r&&Sc(p),S=0,a=_=o=p=r}function Xe(){return p===r?d:ce(pi())}function ut(){var De=pi(),Tt=Y(De);if(a=arguments,o=this,_=De,Tt){if(p===r)return K(_);if(T)return Sc(p),p=lr(ue,t),k(_)}return p===r&&(p=lr(ue,t)),d}return ut.cancel=ot,ut.flush=Xe,ut}var cx=se(function(e,t){return tc(e,1,t)}),fx=se(function(e,t,n){return tc(e,mt(t)||0,n)});function hx(e){return Wt(e,Q)}function gi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new dt(g);var n=function(){var a=arguments,o=t?t.apply(this,a):a[0],c=n.cache;if(c.has(o))return c.get(o);var d=e.apply(this,a);return n.cache=c.set(o,d)||c,d};return n.cache=new(gi.Cache||Ft),n}gi.Cache=Ft;function vi(e){if(typeof e!="function")throw new dt(g);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function dx(e){return lf(2,e)}var px=eb(function(e,t){t=t.length==1&&ee(t[0])?Ae(t[0],it(G())):Ae(We(t,1),it(G()));var n=t.length;return se(function(a){for(var o=-1,c=ze(a.length,n);++o<c;)a[o]=t[o].call(this,a[o]);return rt(e,this,a)})}),Ca=se(function(e,t){var n=Jt(t,Fn(Ca));return Wt(e,q,r,t,n)}),pf=se(function(e,t){var n=Jt(t,Fn(pf));return Wt(e,ge,r,t,n)}),gx=kt(function(e,t){return Wt(e,ye,r,r,r,t)});function vx(e,t){if(typeof e!="function")throw new dt(g);return t=t===r?t:te(t),se(e,t)}function _x(e,t){if(typeof e!="function")throw new dt(g);return t=t==null?0:Ne(te(t),0),se(function(n){var a=n[t],o=tn(n,0,t);return a&&qt(o,a),rt(e,this,o)})}function mx(e,t,n){var a=!0,o=!0;if(typeof e!="function")throw new dt(g);return Te(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),df(e,t,{leading:a,maxWait:t,trailing:o})}function yx(e){return uf(e,1)}function wx(e,t){return Ca(ca(t),e)}function bx(){if(!arguments.length)return[];var e=arguments[0];return ee(e)?e:[e]}function Sx(e){return gt(e,E)}function xx(e,t){return t=typeof t=="function"?t:r,gt(e,E,t)}function Ax(e){return gt(e,L|E)}function Tx(e,t){return t=typeof t=="function"?t:r,gt(e,L|E,t)}function Cx(e,t){return t==null||ec(e,t,Fe(t))}function At(e,t){return e===t||e!==e&&t!==t}var Ex=ui(Vs),Lx=ui(function(e,t){return e>=t}),gn=ac(function(){return arguments}())?ac:function(e){return Oe(e)&&_e.call(e,"callee")&&!Yl.call(e,"callee")},ee=y.isArray,Ox=El?it(El):Fw;function Je(e){return e!=null&&_i(e.length)&&!Ht(e)}function Me(e){return Oe(e)&&Je(e)}function Rx(e){return e===!0||e===!1||Oe(e)&&Ke(e)==Ue}var nn=Gy||Fa,Mx=Ll?it(Ll):Bw;function Dx(e){return Oe(e)&&e.nodeType===1&&!cr(e)}function Ix(e){if(e==null)return!0;if(Je(e)&&(ee(e)||typeof e=="string"||typeof e.splice=="function"||nn(e)||Bn(e)||gn(e)))return!e.length;var t=Ge(e);if(t==nt||t==bt)return!e.size;if(ur(e))return!ta(e).length;for(var n in e)if(_e.call(e,n))return!1;return!0}function Px(e,t){return sr(e,t)}function Nx(e,t,n){n=typeof n=="function"?n:r;var a=n?n(e,t):r;return a===r?sr(e,t,r,n):!!a}function Ea(e){if(!Oe(e))return!1;var t=Ke(e);return t==Ot||t==ct||typeof e.message=="string"&&typeof e.name=="string"&&!cr(e)}function $x(e){return typeof e=="number"&&Zl(e)}function Ht(e){if(!Te(e))return!1;var t=Ke(e);return t==wt||t==Or||t==Nt||t==a1}function gf(e){return typeof e=="number"&&e==te(e)}function _i(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=z}function Te(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Oe(e){return e!=null&&typeof e=="object"}var vf=Ol?it(Ol):kw;function Fx(e,t){return e===t||ea(e,t,_a(t))}function Bx(e,t,n){return n=typeof n=="function"?n:r,ea(e,t,_a(t),n)}function Wx(e){return _f(e)&&e!=+e}function kx(e){if(xb(e))throw new V(h);return oc(e)}function Ux(e){return e===null}function Hx(e){return e==null}function _f(e){return typeof e=="number"||Oe(e)&&Ke(e)==He}function cr(e){if(!Oe(e)||Ke(e)!=Ze)return!1;var t=Gr(e);if(t===null)return!0;var n=_e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&kr.call(n)==By}var La=Rl?it(Rl):Uw;function zx(e){return gf(e)&&e>=-z&&e<=z}var mf=Ml?it(Ml):Hw;function mi(e){return typeof e=="string"||!ee(e)&&Oe(e)&&Ke(e)==Xn}function at(e){return typeof e=="symbol"||Oe(e)&&Ke(e)==Mr}var Bn=Dl?it(Dl):zw;function Gx(e){return e===r}function Kx(e){return Oe(e)&&Ge(e)==Zn}function Yx(e){return Oe(e)&&Ke(e)==u1}var Xx=ui(na),Zx=ui(function(e,t){return e<=t});function yf(e){if(!e)return[];if(Je(e))return mi(e)?St(e):qe(e);if(jn&&e[jn])return Cy(e[jn]());var t=Ge(e),n=t==nt?zs:t==bt?Fr:Wn;return n(e)}function zt(e){if(!e)return e===0?e:0;if(e=mt(e),e===P||e===-P){var t=e<0?-1:1;return t*Z}return e===e?e:0}function te(e){var t=zt(e),n=t%1;return t===t?n?t-n:t:0}function wf(e){return e?fn(te(e),0,fe):0}function mt(e){if(typeof e=="number")return e;if(at(e))return oe;if(Te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Bl(e);var n=O1.test(e);return n||M1.test(e)?ly(e.slice(2),n?2:8):L1.test(e)?oe:+e}function bf(e){return Mt(e,je(e))}function qx(e){return e?fn(te(e),-z,z):e===0?e:0}function ve(e){return e==null?"":st(e)}var Jx=Nn(function(e,t){if(ur(t)||Je(t)){Mt(t,Fe(t),e);return}for(var n in t)_e.call(t,n)&&nr(e,n,t[n])}),Sf=Nn(function(e,t){Mt(t,je(t),e)}),yi=Nn(function(e,t,n,a){Mt(t,je(t),e,a)}),jx=Nn(function(e,t,n,a){Mt(t,Fe(t),e,a)}),Vx=kt(qs);function Qx(e,t){var n=Pn(e);return t==null?n:Ql(n,t)}var eA=se(function(e,t){e=me(e);var n=-1,a=t.length,o=a>2?t[2]:r;for(o&&Ye(t[0],t[1],o)&&(a=1);++n<a;)for(var c=t[n],d=je(c),p=-1,_=d.length;++p<_;){var S=d[p],x=e[S];(x===r||At(x,Mn[S])&&!_e.call(e,S))&&(e[S]=c[S])}return e}),tA=se(function(e){return e.push(r,Bc),rt(xf,r,e)});function nA(e,t){return Pl(e,G(t,3),Rt)}function rA(e,t){return Pl(e,G(t,3),js)}function iA(e,t){return e==null?e:Js(e,G(t,3),je)}function sA(e,t){return e==null?e:ic(e,G(t,3),je)}function aA(e,t){return e&&Rt(e,G(t,3))}function oA(e,t){return e&&js(e,G(t,3))}function uA(e){return e==null?[]:ei(e,Fe(e))}function lA(e){return e==null?[]:ei(e,je(e))}function Oa(e,t,n){var a=e==null?r:hn(e,t);return a===r?n:a}function cA(e,t){return e!=null&&Uc(e,t,Iw)}function Ra(e,t){return e!=null&&Uc(e,t,Pw)}var fA=Ic(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ur.call(t)),e[t]=n},Da(Ve)),hA=Ic(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ur.call(t)),_e.call(e,t)?e[t].push(n):e[t]=[n]},G),dA=se(ir);function Fe(e){return Je(e)?jl(e):ta(e)}function je(e){return Je(e)?jl(e,!0):Gw(e)}function pA(e,t){var n={};return t=G(t,3),Rt(e,function(a,o,c){Bt(n,t(a,o,c),a)}),n}function gA(e,t){var n={};return t=G(t,3),Rt(e,function(a,o,c){Bt(n,o,t(a,o,c))}),n}var vA=Nn(function(e,t,n){ti(e,t,n)}),xf=Nn(function(e,t,n,a){ti(e,t,n,a)}),_A=kt(function(e,t){var n={};if(e==null)return n;var a=!1;t=Ae(t,function(c){return c=en(c,e),a||(a=c.length>1),c}),Mt(e,ga(e),n),a&&(n=gt(n,L|O|E,fb));for(var o=t.length;o--;)oa(n,t[o]);return n});function mA(e,t){return Af(e,vi(G(t)))}var yA=kt(function(e,t){return e==null?{}:Yw(e,t)});function Af(e,t){if(e==null)return{};var n=Ae(ga(e),function(a){return[a]});return t=G(t),pc(e,n,function(a,o){return t(a,o[0])})}function wA(e,t,n){t=en(t,e);var a=-1,o=t.length;for(o||(o=1,e=r);++a<o;){var c=e==null?r:e[Dt(t[a])];c===r&&(a=o,c=n),e=Ht(c)?c.call(e):c}return e}function bA(e,t,n){return e==null?e:ar(e,t,n)}function SA(e,t,n,a){return a=typeof a=="function"?a:r,e==null?e:ar(e,t,n,a)}var Tf=$c(Fe),Cf=$c(je);function xA(e,t,n){var a=ee(e),o=a||nn(e)||Bn(e);if(t=G(t,4),n==null){var c=e&&e.constructor;o?n=a?new c:[]:Te(e)?n=Ht(c)?Pn(Gr(e)):{}:n={}}return(o?ht:Rt)(e,function(d,p,_){return t(n,d,p,_)}),n}function AA(e,t){return e==null?!0:oa(e,t)}function TA(e,t,n){return e==null?e:yc(e,t,ca(n))}function CA(e,t,n,a){return a=typeof a=="function"?a:r,e==null?e:yc(e,t,ca(n),a)}function Wn(e){return e==null?[]:Hs(e,Fe(e))}function EA(e){return e==null?[]:Hs(e,je(e))}function LA(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=mt(n),n=n===n?n:0),t!==r&&(t=mt(t),t=t===t?t:0),fn(mt(e),t,n)}function OA(e,t,n){return t=zt(t),n===r?(n=t,t=0):n=zt(n),e=mt(e),Nw(e,t,n)}function RA(e,t,n){if(n&&typeof n!="boolean"&&Ye(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=zt(e),t===r?(t=e,e=0):t=zt(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var o=ql();return ze(e+o*(t-e+uy("1e-"+((o+"").length-1))),t)}return ia(e,t)}var MA=$n(function(e,t,n){return t=t.toLowerCase(),e+(n?Ef(t):t)});function Ef(e){return Ma(ve(e).toLowerCase())}function Lf(e){return e=ve(e),e&&e.replace(I1,by).replace(V1,"")}function DA(e,t,n){e=ve(e),t=st(t);var a=e.length;n=n===r?a:fn(te(n),0,a);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function IA(e){return e=ve(e),e&&d1.test(e)?e.replace(il,Sy):e}function PA(e){return e=ve(e),e&&y1.test(e)?e.replace(Cs,"\\$&"):e}var NA=$n(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),$A=$n(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),FA=Rc("toLowerCase");function BA(e,t,n){e=ve(e),t=te(t);var a=t?On(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return oi(Zr(o),n)+e+oi(Xr(o),n)}function WA(e,t,n){e=ve(e),t=te(t);var a=t?On(e):0;return t&&a<t?e+oi(t-a,n):e}function kA(e,t,n){e=ve(e),t=te(t);var a=t?On(e):0;return t&&a<t?oi(t-a,n)+e:e}function UA(e,t,n){return n||t==null?t=0:t&&(t=+t),Zy(ve(e).replace(Es,""),t||0)}function HA(e,t,n){return(n?Ye(e,t,n):t===r)?t=1:t=te(t),sa(ve(e),t)}function zA(){var e=arguments,t=ve(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var GA=$n(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function KA(e,t,n){return n&&typeof n!="number"&&Ye(e,t,n)&&(t=n=r),n=n===r?fe:n>>>0,n?(e=ve(e),e&&(typeof t=="string"||t!=null&&!La(t))&&(t=st(t),!t&&Ln(e))?tn(St(e),0,n):e.split(t,n)):[]}var YA=$n(function(e,t,n){return e+(n?" ":"")+Ma(t)});function XA(e,t,n){return e=ve(e),n=n==null?0:fn(te(n),0,e.length),t=st(t),e.slice(n,n+t.length)==t}function ZA(e,t,n){var a=l.templateSettings;n&&Ye(e,t,n)&&(t=r),e=ve(e),t=yi({},t,a,Fc);var o=yi({},t.imports,a.imports,Fc),c=Fe(o),d=Hs(o,c),p,_,S=0,x=t.interpolate||Dr,T="__p += '",N=Gs((t.escape||Dr).source+"|"+x.source+"|"+(x===sl?E1:Dr).source+"|"+(t.evaluate||Dr).source+"|$","g"),k="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ry+"]")+`
`;e.replace(N,function(Y,ue,ce,ot,Xe,ut){return ce||(ce=ot),T+=e.slice(S,ut).replace(P1,xy),ue&&(p=!0,T+=`' +
__e(`+ue+`) +
'`),Xe&&(_=!0,T+=`';
`+Xe+`;
__p += '`),ce&&(T+=`' +
((__t = (`+ce+`)) == null ? '' : __t) +
'`),S=ut+Y.length,Y}),T+=`';
`;var K=_e.call(t,"variable")&&t.variable;if(!K)T=`with (obj) {
`+T+`
}
`;else if(T1.test(K))throw new V(m);T=(_?T.replace(l1,""):T).replace(c1,"$1").replace(f1,"$1;"),T="function("+(K||"obj")+`) {
`+(K?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(_?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+T+`return __p
}`;var ne=Rf(function(){return pe(c,k+"return "+T).apply(r,d)});if(ne.source=T,Ea(ne))throw ne;return ne}function qA(e){return ve(e).toLowerCase()}function JA(e){return ve(e).toUpperCase()}function jA(e,t,n){if(e=ve(e),e&&(n||t===r))return Bl(e);if(!e||!(t=st(t)))return e;var a=St(e),o=St(t),c=Wl(a,o),d=kl(a,o)+1;return tn(a,c,d).join("")}function VA(e,t,n){if(e=ve(e),e&&(n||t===r))return e.slice(0,Hl(e)+1);if(!e||!(t=st(t)))return e;var a=St(e),o=kl(a,St(t))+1;return tn(a,0,o).join("")}function QA(e,t,n){if(e=ve(e),e&&(n||t===r))return e.replace(Es,"");if(!e||!(t=st(t)))return e;var a=St(e),o=Wl(a,St(t));return tn(a,o).join("")}function eT(e,t){var n=J,a=Ie;if(Te(t)){var o="separator"in t?t.separator:o;n="length"in t?te(t.length):n,a="omission"in t?st(t.omission):a}e=ve(e);var c=e.length;if(Ln(e)){var d=St(e);c=d.length}if(n>=c)return e;var p=n-On(a);if(p<1)return a;var _=d?tn(d,0,p).join(""):e.slice(0,p);if(o===r)return _+a;if(d&&(p+=_.length-p),La(o)){if(e.slice(p).search(o)){var S,x=_;for(o.global||(o=Gs(o.source,ve(al.exec(o))+"g")),o.lastIndex=0;S=o.exec(x);)var T=S.index;_=_.slice(0,T===r?p:T)}}else if(e.indexOf(st(o),p)!=p){var N=_.lastIndexOf(o);N>-1&&(_=_.slice(0,N))}return _+a}function tT(e){return e=ve(e),e&&h1.test(e)?e.replace(rl,Ry):e}var nT=$n(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ma=Rc("toUpperCase");function Of(e,t,n){return e=ve(e),t=n?r:t,t===r?Ty(e)?Iy(e):vy(e):e.match(t)||[]}var Rf=se(function(e,t){try{return rt(e,r,t)}catch(n){return Ea(n)?n:new V(n)}}),rT=kt(function(e,t){return ht(t,function(n){n=Dt(n),Bt(e,n,Ta(e[n],e))}),e});function iT(e){var t=e==null?0:e.length,n=G();return e=t?Ae(e,function(a){if(typeof a[1]!="function")throw new dt(g);return[n(a[0]),a[1]]}):[],se(function(a){for(var o=-1;++o<t;){var c=e[o];if(rt(c[0],this,a))return rt(c[1],this,a)}})}function sT(e){return Rw(gt(e,L))}function Da(e){return function(){return e}}function aT(e,t){return e==null||e!==e?t:e}var oT=Dc(),uT=Dc(!0);function Ve(e){return e}function Ia(e){return uc(typeof e=="function"?e:gt(e,L))}function lT(e){return cc(gt(e,L))}function cT(e,t){return fc(e,gt(t,L))}var fT=se(function(e,t){return function(n){return ir(n,e,t)}}),hT=se(function(e,t){return function(n){return ir(e,n,t)}});function Pa(e,t,n){var a=Fe(t),o=ei(t,a);n==null&&!(Te(t)&&(o.length||!a.length))&&(n=t,t=e,e=this,o=ei(t,Fe(t)));var c=!(Te(n)&&"chain"in n)||!!n.chain,d=Ht(e);return ht(o,function(p){var _=t[p];e[p]=_,d&&(e.prototype[p]=function(){var S=this.__chain__;if(c||S){var x=e(this.__wrapped__),T=x.__actions__=qe(this.__actions__);return T.push({func:_,args:arguments,thisArg:e}),x.__chain__=S,x}return _.apply(e,qt([this.value()],arguments))})}),e}function dT(){return Be._===this&&(Be._=Wy),this}function Na(){}function pT(e){return e=te(e),se(function(t){return hc(t,e)})}var gT=ha(Ae),vT=ha(Il),_T=ha(Fs);function Mf(e){return ya(e)?Bs(Dt(e)):Xw(e)}function mT(e){return function(t){return e==null?r:hn(e,t)}}var yT=Pc(),wT=Pc(!0);function $a(){return[]}function Fa(){return!1}function bT(){return{}}function ST(){return""}function xT(){return!0}function AT(e,t){if(e=te(e),e<1||e>z)return[];var n=fe,a=ze(e,fe);t=G(t),e-=fe;for(var o=Us(a,t);++n<e;)t(n);return o}function TT(e){return ee(e)?Ae(e,Dt):at(e)?[e]:qe(Jc(ve(e)))}function CT(e){var t=++Fy;return ve(e)+t}var ET=ai(function(e,t){return e+t},0),LT=da("ceil"),OT=ai(function(e,t){return e/t},1),RT=da("floor");function MT(e){return e&&e.length?Qr(e,Ve,Vs):r}function DT(e,t){return e&&e.length?Qr(e,G(t,2),Vs):r}function IT(e){return $l(e,Ve)}function PT(e,t){return $l(e,G(t,2))}function NT(e){return e&&e.length?Qr(e,Ve,na):r}function $T(e,t){return e&&e.length?Qr(e,G(t,2),na):r}var FT=ai(function(e,t){return e*t},1),BT=da("round"),WT=ai(function(e,t){return e-t},0);function kT(e){return e&&e.length?ks(e,Ve):0}function UT(e,t){return e&&e.length?ks(e,G(t,2)):0}return l.after=lx,l.ary=uf,l.assign=Jx,l.assignIn=Sf,l.assignInWith=yi,l.assignWith=jx,l.at=Vx,l.before=lf,l.bind=Ta,l.bindAll=rT,l.bindKey=cf,l.castArray=bx,l.chain=sf,l.chunk=Rb,l.compact=Mb,l.concat=Db,l.cond=iT,l.conforms=sT,l.constant=Da,l.countBy=kS,l.create=Qx,l.curry=ff,l.curryRight=hf,l.debounce=df,l.defaults=eA,l.defaultsDeep=tA,l.defer=cx,l.delay=fx,l.difference=Ib,l.differenceBy=Pb,l.differenceWith=Nb,l.drop=$b,l.dropRight=Fb,l.dropRightWhile=Bb,l.dropWhile=Wb,l.fill=kb,l.filter=HS,l.flatMap=KS,l.flatMapDeep=YS,l.flatMapDepth=XS,l.flatten=ef,l.flattenDeep=Ub,l.flattenDepth=Hb,l.flip=hx,l.flow=oT,l.flowRight=uT,l.fromPairs=zb,l.functions=uA,l.functionsIn=lA,l.groupBy=ZS,l.initial=Kb,l.intersection=Yb,l.intersectionBy=Xb,l.intersectionWith=Zb,l.invert=fA,l.invertBy=hA,l.invokeMap=JS,l.iteratee=Ia,l.keyBy=jS,l.keys=Fe,l.keysIn=je,l.map=di,l.mapKeys=pA,l.mapValues=gA,l.matches=lT,l.matchesProperty=cT,l.memoize=gi,l.merge=vA,l.mergeWith=xf,l.method=fT,l.methodOf=hT,l.mixin=Pa,l.negate=vi,l.nthArg=pT,l.omit=_A,l.omitBy=mA,l.once=dx,l.orderBy=VS,l.over=gT,l.overArgs=px,l.overEvery=vT,l.overSome=_T,l.partial=Ca,l.partialRight=pf,l.partition=QS,l.pick=yA,l.pickBy=Af,l.property=Mf,l.propertyOf=mT,l.pull=Vb,l.pullAll=nf,l.pullAllBy=Qb,l.pullAllWith=eS,l.pullAt=tS,l.range=yT,l.rangeRight=wT,l.rearg=gx,l.reject=nx,l.remove=nS,l.rest=vx,l.reverse=xa,l.sampleSize=ix,l.set=bA,l.setWith=SA,l.shuffle=sx,l.slice=rS,l.sortBy=ux,l.sortedUniq=cS,l.sortedUniqBy=fS,l.split=KA,l.spread=_x,l.tail=hS,l.take=dS,l.takeRight=pS,l.takeRightWhile=gS,l.takeWhile=vS,l.tap=MS,l.throttle=mx,l.thru=hi,l.toArray=yf,l.toPairs=Tf,l.toPairsIn=Cf,l.toPath=TT,l.toPlainObject=bf,l.transform=xA,l.unary=yx,l.union=_S,l.unionBy=mS,l.unionWith=yS,l.uniq=wS,l.uniqBy=bS,l.uniqWith=SS,l.unset=AA,l.unzip=Aa,l.unzipWith=rf,l.update=TA,l.updateWith=CA,l.values=Wn,l.valuesIn=EA,l.without=xS,l.words=Of,l.wrap=wx,l.xor=AS,l.xorBy=TS,l.xorWith=CS,l.zip=ES,l.zipObject=LS,l.zipObjectDeep=OS,l.zipWith=RS,l.entries=Tf,l.entriesIn=Cf,l.extend=Sf,l.extendWith=yi,Pa(l,l),l.add=ET,l.attempt=Rf,l.camelCase=MA,l.capitalize=Ef,l.ceil=LT,l.clamp=LA,l.clone=Sx,l.cloneDeep=Ax,l.cloneDeepWith=Tx,l.cloneWith=xx,l.conformsTo=Cx,l.deburr=Lf,l.defaultTo=aT,l.divide=OT,l.endsWith=DA,l.eq=At,l.escape=IA,l.escapeRegExp=PA,l.every=US,l.find=zS,l.findIndex=Vc,l.findKey=nA,l.findLast=GS,l.findLastIndex=Qc,l.findLastKey=rA,l.floor=RT,l.forEach=af,l.forEachRight=of,l.forIn=iA,l.forInRight=sA,l.forOwn=aA,l.forOwnRight=oA,l.get=Oa,l.gt=Ex,l.gte=Lx,l.has=cA,l.hasIn=Ra,l.head=tf,l.identity=Ve,l.includes=qS,l.indexOf=Gb,l.inRange=OA,l.invoke=dA,l.isArguments=gn,l.isArray=ee,l.isArrayBuffer=Ox,l.isArrayLike=Je,l.isArrayLikeObject=Me,l.isBoolean=Rx,l.isBuffer=nn,l.isDate=Mx,l.isElement=Dx,l.isEmpty=Ix,l.isEqual=Px,l.isEqualWith=Nx,l.isError=Ea,l.isFinite=$x,l.isFunction=Ht,l.isInteger=gf,l.isLength=_i,l.isMap=vf,l.isMatch=Fx,l.isMatchWith=Bx,l.isNaN=Wx,l.isNative=kx,l.isNil=Hx,l.isNull=Ux,l.isNumber=_f,l.isObject=Te,l.isObjectLike=Oe,l.isPlainObject=cr,l.isRegExp=La,l.isSafeInteger=zx,l.isSet=mf,l.isString=mi,l.isSymbol=at,l.isTypedArray=Bn,l.isUndefined=Gx,l.isWeakMap=Kx,l.isWeakSet=Yx,l.join=qb,l.kebabCase=NA,l.last=_t,l.lastIndexOf=Jb,l.lowerCase=$A,l.lowerFirst=FA,l.lt=Xx,l.lte=Zx,l.max=MT,l.maxBy=DT,l.mean=IT,l.meanBy=PT,l.min=NT,l.minBy=$T,l.stubArray=$a,l.stubFalse=Fa,l.stubObject=bT,l.stubString=ST,l.stubTrue=xT,l.multiply=FT,l.nth=jb,l.noConflict=dT,l.noop=Na,l.now=pi,l.pad=BA,l.padEnd=WA,l.padStart=kA,l.parseInt=UA,l.random=RA,l.reduce=ex,l.reduceRight=tx,l.repeat=HA,l.replace=zA,l.result=wA,l.round=BT,l.runInContext=v,l.sample=rx,l.size=ax,l.snakeCase=GA,l.some=ox,l.sortedIndex=iS,l.sortedIndexBy=sS,l.sortedIndexOf=aS,l.sortedLastIndex=oS,l.sortedLastIndexBy=uS,l.sortedLastIndexOf=lS,l.startCase=YA,l.startsWith=XA,l.subtract=WT,l.sum=kT,l.sumBy=UT,l.template=ZA,l.times=AT,l.toFinite=zt,l.toInteger=te,l.toLength=wf,l.toLower=qA,l.toNumber=mt,l.toSafeInteger=qx,l.toString=ve,l.toUpper=JA,l.trim=jA,l.trimEnd=VA,l.trimStart=QA,l.truncate=eT,l.unescape=tT,l.uniqueId=CT,l.upperCase=nT,l.upperFirst=Ma,l.each=af,l.eachRight=of,l.first=tf,Pa(l,function(){var e={};return Rt(l,function(t,n){_e.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=u,ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),ht(["drop","take"],function(e,t){le.prototype[e]=function(n){n=n===r?1:Ne(te(n),0);var a=this.__filtered__&&!t?new le(this):this.clone();return a.__filtered__?a.__takeCount__=ze(n,a.__takeCount__):a.__views__.push({size:ze(n,fe),type:e+(a.__dir__<0?"Right":"")}),a},le.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),ht(["filter","map","takeWhile"],function(e,t){var n=t+1,a=n==W||n==X;le.prototype[e]=function(o){var c=this.clone();return c.__iteratees__.push({iteratee:G(o,3),type:n}),c.__filtered__=c.__filtered__||a,c}}),ht(["head","last"],function(e,t){var n="take"+(t?"Right":"");le.prototype[e]=function(){return this[n](1).value()[0]}}),ht(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");le.prototype[e]=function(){return this.__filtered__?new le(this):this[n](1)}}),le.prototype.compact=function(){return this.filter(Ve)},le.prototype.find=function(e){return this.filter(e).head()},le.prototype.findLast=function(e){return this.reverse().find(e)},le.prototype.invokeMap=se(function(e,t){return typeof e=="function"?new le(this):this.map(function(n){return ir(n,e,t)})}),le.prototype.reject=function(e){return this.filter(vi(G(e)))},le.prototype.slice=function(e,t){e=te(e);var n=this;return n.__filtered__&&(e>0||t<0)?new le(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=te(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},le.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},le.prototype.toArray=function(){return this.take(fe)},Rt(le.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),o=l[a?"take"+(t=="last"?"Right":""):t],c=a||/^find/.test(t);!o||(l.prototype[t]=function(){var d=this.__wrapped__,p=a?[1]:arguments,_=d instanceof le,S=p[0],x=_||ee(d),T=function(ue){var ce=o.apply(l,qt([ue],p));return a&&N?ce[0]:ce};x&&n&&typeof S=="function"&&S.length!=1&&(_=x=!1);var N=this.__chain__,k=!!this.__actions__.length,K=c&&!N,ne=_&&!k;if(!c&&x){d=ne?d:new le(this);var Y=e.apply(d,p);return Y.__actions__.push({func:hi,args:[T],thisArg:r}),new pt(Y,N)}return K&&ne?e.apply(this,p):(Y=this.thru(T),K?a?Y.value()[0]:Y.value():Y)})}),ht(["pop","push","shift","sort","splice","unshift"],function(e){var t=Br[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var o=arguments;if(a&&!this.__chain__){var c=this.value();return t.apply(ee(c)?c:[],o)}return this[n](function(d){return t.apply(ee(d)?d:[],o)})}}),Rt(le.prototype,function(e,t){var n=l[t];if(n){var a=n.name+"";_e.call(In,a)||(In[a]=[]),In[a].push({name:t,func:n})}}),In[si(r,H).name]=[{name:"wrapper",func:r}],le.prototype.clone=tw,le.prototype.reverse=nw,le.prototype.value=rw,l.prototype.at=DS,l.prototype.chain=IS,l.prototype.commit=PS,l.prototype.next=NS,l.prototype.plant=FS,l.prototype.reverse=BS,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=WS,l.prototype.first=l.prototype.head,jn&&(l.prototype[jn]=$S),l},Rn=Py();on?((on.exports=Rn)._=Rn,Is._=Rn):Be._=Rn}).call(Ct)})(ns,ns.exports);function L0(i){if(!i)return"00:00";const s=Math.trunc(i/3600);i-=s*3600;const r=Math.trunc(i/60);i-=r*60;const f=[s,r,i];return f[0]===0&&f.shift(),f.map(g=>ns.exports.padStart(g.toString(),2,"0")).join(":")}function rs(i){if(!i)return"";if(i<=9999)return i.toString();let s=(i/1e4).toFixed(1);return s=s.replace(/\.0$/,""),`${s}\u4E07`}function O0({className:i,item:s,pvideo:r}){var Q;const u=D.useRef(null),f=$m(u.current),{elementW:h,elementH:g,elementX:m}=f;let w=0,A=0;h&&m&&!isNaN(m)&&!isNaN(h)&&(w=m/h,w<0&&(w=0),w>1&&(w=1),A=Math.floor((s.duration||0)*w));let R=D.useMemo(()=>{const J=(r==null?void 0:r.index)||[];let Ie=M0(J,A);return Ie!==-1?Ie:A>J[J.length-1]?(Ie=Math.floor(J.length*w)-1,Ie<0&&(Ie=0),Ie):0},[r,A]);const{img_x_len:L,img_y_len:O,img_x_size:E,img_y_size:M}=r,U=O*L;R=R+1;const F=Math.floor(R/U),H=R-F*U,de=((Q=r.image)==null?void 0:Q[F])||"",ae=Math.floor(H/L)+1,ie=H-(ae-1)*L,q=h*L,ge=g*O;let Se=(ae-1)*g,ye=(ie-1)*h;return C("div",{ref:u,className:i,style:{backgroundColor:"black",backgroundImage:`url(${de})`,backgroundPosition:`-${ye}px -${Se}px`,backgroundSize:`${q}px ${ge}px`},children:C(R0,{progress:w})})}function R0({progress:i}){return C("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:C("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${i*100}%`}})})}function M0(i,s){var m;let r=0,u=i.length-1,f=-1;for(;r<=u;){const w=Math.floor((r+u)/2),A=i[w];if(s===A)return w;A<s?(r=w+1,f=w):u=w-1}if(f===-1)return-1;const h=i[f],g=(m=i[f+1])!=null?m:0;return h<s&&s<g?f:-1}function D0(){var s;const i=(s=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:s[1];if(!i)throw Kt("\u627E\u4E0D\u5230 csrf token, \u8BF7\u68C0\u67E5\u662F\u5426\u767B\u5F55"),new Error("\u627E\u4E0D\u5230 csrf token, \u8BF7\u68C0\u67E5\u662F\u5426\u767B\u5F55");return i}const is=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,uu=typeof AbortController!="undefined"?AbortController:Object.assign(class{constructor(){this.signal=new uu.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),ss=new Set,as=(i,s)=>{const r=`LRU_CACHE_OPTION_${i}`;Cr(r)&&us(r,`${i} option`,`options.${s}`,Yt)},os=(i,s)=>{const r=`LRU_CACHE_METHOD_${i}`;if(Cr(r)){const{prototype:u}=Yt,{get:f}=Object.getOwnPropertyDescriptor(u,i);us(r,`${i} method`,`cache.${s}()`,f)}},I0=(i,s)=>{const r=`LRU_CACHE_PROPERTY_${i}`;if(Cr(r)){const{prototype:u}=Yt,{get:f}=Object.getOwnPropertyDescriptor(u,i);us(r,`${i} property`,`cache.${s}`,f)}},lu=(...i)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...i):console.error(...i)},Cr=i=>!ss.has(i),us=(i,s,r,u)=>{ss.add(i);const f=`The ${s} is deprecated. Please use ${r} instead.`;lu(f,"DeprecationWarning",i,u)},an=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),cu=i=>an(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?Er:null:null;class Er extends Array{constructor(s){super(s),this.fill(0)}}class P0{constructor(s){if(s===0)return[];const r=cu(s);this.heap=new r(s),this.length=0}push(s){this.heap[this.length++]=s}pop(){return this.heap[--this.length]}}class Yt{constructor(s={}){const{max:r=0,ttl:u,ttlResolution:f=1,ttlAutopurge:h,updateAgeOnGet:g,updateAgeOnHas:m,allowStale:w,dispose:A,disposeAfter:R,noDisposeOnSet:L,noUpdateTTL:O,maxSize:E=0,sizeCalculation:M,fetchMethod:U}=s,{length:F,maxAge:H,stale:de}=s instanceof Yt?{}:s;if(r!==0&&!an(r))throw new TypeError("max option must be a nonnegative integer");const ae=r?cu(r):Array;if(!ae)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=E,this.sizeCalculation=M||F,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=U||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new ae(r),this.prev=new ae(r),this.head=0,this.tail=0,this.free=new P0(r),this.initialFill=1,this.size=0,typeof A=="function"&&(this.dispose=A),typeof R=="function"?(this.disposeAfter=R,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!L,this.noUpdateTTL=!!O,this.maxSize!==0){if(!an(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!w||!!de,this.updateAgeOnGet=!!g,this.updateAgeOnHas=!!m,this.ttlResolution=an(f)||f===0?f:1,this.ttlAutopurge=!!h,this.ttl=u||H||0,this.ttl){if(!an(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const ie="LRU_CACHE_UNBOUNDED";Cr(ie)&&(ss.add(ie),lu("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ie,Yt))}de&&as("stale","allowStale"),H&&as("maxAge","ttl"),F&&as("length","sizeCalculation")}getRemainingTTL(s){return this.has(s,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Er(this.max),this.starts=new Er(this.max),this.setItemTTL=(u,f)=>{if(this.starts[u]=f!==0?is.now():0,this.ttls[u]=f,f!==0&&this.ttlAutopurge){const h=setTimeout(()=>{this.isStale(u)&&this.delete(this.keyList[u])},f+1);h.unref&&h.unref()}},this.updateItemAge=u=>{this.starts[u]=this.ttls[u]!==0?is.now():0};let s=0;const r=()=>{const u=is.now();if(this.ttlResolution>0){s=u;const f=setTimeout(()=>s=0,this.ttlResolution);f.unref&&f.unref()}return u};this.getRemainingTTL=u=>{const f=this.keyMap.get(u);return f===void 0?0:this.ttls[f]===0||this.starts[f]===0?1/0:this.starts[f]+this.ttls[f]-(s||r())},this.isStale=u=>this.ttls[u]!==0&&this.starts[u]!==0&&(s||r())-this.starts[u]>this.ttls[u]}updateItemAge(s){}setItemTTL(s,r){}isStale(s){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Er(this.max),this.removeItemSize=s=>this.calculatedSize-=this.sizes[s],this.requireSize=(s,r,u,f)=>{if(!an(u))if(f){if(typeof f!="function")throw new TypeError("sizeCalculation must be a function");if(u=f(r,s),!an(u))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return u},this.addItemSize=(s,r,u,f)=>{this.sizes[s]=f;const h=this.maxSize-this.sizes[s];for(;this.calculatedSize>h;)this.evict(!0);this.calculatedSize+=this.sizes[s]},this.delete=s=>{if(this.size!==0){const r=this.keyMap.get(s);r!==void 0&&(this.calculatedSize-=this.sizes[r])}return Yt.prototype.delete.call(this,s)}}removeItemSize(s){}addItemSize(s,r,u,f){}requireSize(s,r,u,f){if(u||f)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:s=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((s||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:s=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((s||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(s){return this.keyMap.get(this.keyList[s])===s}*entries(){for(const s of this.indexes())yield[this.keyList[s],this.valList[s]]}*rentries(){for(const s of this.rindexes())yield[this.keyList[s],this.valList[s]]}*keys(){for(const s of this.indexes())yield this.keyList[s]}*rkeys(){for(const s of this.rindexes())yield this.keyList[s]}*values(){for(const s of this.indexes())yield this.valList[s]}*rvalues(){for(const s of this.rindexes())yield this.valList[s]}[Symbol.iterator](){return this.entries()}find(s,r={}){for(const u of this.indexes())if(s(this.valList[u],this.keyList[u],this))return this.get(this.keyList[u],r)}forEach(s,r=this){for(const u of this.indexes())s.call(r,this.valList[u],this.keyList[u],this)}rforEach(s,r=this){for(const u of this.rindexes())s.call(r,this.valList[u],this.keyList[u],this)}get prune(){return os("prune","purgeStale"),this.purgeStale}purgeStale(){let s=!1;for(const r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),s=!0);return s}dump(){const s=[];for(const r of this.indexes()){const u=this.keyList[r],h={value:this.valList[r]};this.ttls&&(h.ttl=this.ttls[r]),this.sizes&&(h.size=this.sizes[r]),s.unshift([u,h])}return s}load(s){this.clear();for(const[r,u]of s)this.set(r,u.value,u)}dispose(s,r,u){}set(s,r,{ttl:u=this.ttl,noDisposeOnSet:f=this.noDisposeOnSet,size:h=0,sizeCalculation:g=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL}={}){h=this.requireSize(s,r,h,g);let w=this.size===0?void 0:this.keyMap.get(s);if(w===void 0)w=this.newIndex(),this.keyList[w]=s,this.valList[w]=r,this.keyMap.set(s,w),this.next[this.tail]=w,this.prev[w]=this.tail,this.tail=w,this.size++,this.addItemSize(w,r,s,h),m=!1;else{const A=this.valList[w];r!==A&&(this.isBackgroundFetch(A)?A.__abortController.abort():f||(this.dispose(A,s,"set"),this.disposeAfter&&this.disposed.push([A,s,"set"])),this.removeItemSize(w),this.valList[w]=r,this.addItemSize(w,r,s,h)),this.moveToTail(w)}if(u!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),m||this.setItemTTL(w,u),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){const s=this.valList[this.head];return this.evict(!0),s}}evict(s){const r=this.head,u=this.keyList[r],f=this.valList[r];return this.isBackgroundFetch(f)?f.__abortController.abort():(this.dispose(f,u,"evict"),this.disposeAfter&&this.disposed.push([f,u,"evict"])),this.removeItemSize(r),s&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(u),this.size--,r}has(s,{updateAgeOnHas:r=this.updateAgeOnHas}={}){const u=this.keyMap.get(s);return u!==void 0&&!this.isStale(u)?(r&&this.updateItemAge(u),!0):!1}peek(s,{allowStale:r=this.allowStale}={}){const u=this.keyMap.get(s);if(u!==void 0&&(r||!this.isStale(u)))return this.valList[u]}backgroundFetch(s,r,u){const f=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(f))return f;const h=new uu,g={signal:h.signal,options:u},m=Promise.resolve(this.fetchMethod(s,f,g)).then(w=>(h.signal.aborted||this.set(s,w,g.options),w));return m.__abortController=h,m.__staleWhileFetching=f,r===void 0?(this.set(s,m,g.options),r=this.keyMap.get(s)):this.valList[r]=m,m}isBackgroundFetch(s){return s&&typeof s=="object"&&typeof s.then=="function"&&Object.prototype.hasOwnProperty.call(s,"__staleWhileFetching")}async fetch(s,{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,ttl:f=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:g=0,sizeCalculation:m=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(s,{allowStale:r,updateAgeOnGet:u});const A={allowStale:r,updateAgeOnGet:u,ttl:f,noDisposeOnSet:h,size:g,sizeCalculation:m,noUpdateTTL:w};let R=this.keyMap.get(s);if(R===void 0)return this.backgroundFetch(s,R,A);{const L=this.valList[R];if(this.isBackgroundFetch(L))return r&&L.__staleWhileFetching!==void 0?L.__staleWhileFetching:L;if(!this.isStale(R))return this.moveToTail(R),u&&this.updateItemAge(R),L;const O=this.backgroundFetch(s,R,A);return r&&O.__staleWhileFetching!==void 0?O.__staleWhileFetching:O}}get(s,{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet}={}){const f=this.keyMap.get(s);if(f!==void 0){const h=this.valList[f],g=this.isBackgroundFetch(h);return this.isStale(f)?g?r?h.__staleWhileFetching:void 0:(this.delete(s),r?h:void 0):g?void 0:(this.moveToTail(f),u&&this.updateItemAge(f),h)}}connect(s,r){this.prev[r]=s,this.next[s]=r}moveToTail(s){s!==this.tail&&(s===this.head?this.head=this.next[s]:this.connect(this.prev[s],this.next[s]),this.connect(this.tail,s),this.tail=s)}get del(){return os("del","delete"),this.delete}delete(s){let r=!1;if(this.size!==0){const u=this.keyMap.get(s);if(u!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(u);const f=this.valList[u];this.isBackgroundFetch(f)?f.__abortController.abort():(this.dispose(f,s,"delete"),this.disposeAfter&&this.disposed.push([f,s,"delete"])),this.keyMap.delete(s),this.keyList[u]=null,this.valList[u]=null,u===this.tail?this.tail=this.prev[u]:u===this.head?this.head=this.next[u]:(this.next[this.prev[u]]=this.next[u],this.prev[this.next[u]]=this.prev[u]),this.size--,this.free.push(u)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(const s of this.rindexes({allowStale:!0})){const r=this.valList[s];if(this.isBackgroundFetch(r))r.__abortController.abort();else{const u=this.keyList[s];this.dispose(r,u,"delete"),this.disposeAfter&&this.disposed.push([r,u,"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 os("reset","clear"),this.clear}get length(){return I0("length","size"),this.size}}var N0=Yt;async function $0(i){return(await Vi.get("/pvideo",{params:{aid:i}})).data.data}async function F0(i){return[]}const ls=new N0({max:200});async function B0(i){if(ls.has(i))return ls.get(i);const[s,r]=await Promise.all([$0(i),F0()]);return ls.set(i,{pvideoData:s,dmData:r}),{pvideoData:s,dmData:r}}function fu(i){return async function(r){const u=new FormData;u.append("aid",r),u.append("csrf",D0());const h=(await Vi.post("/x/v2/history/toview/"+i,u,{withCredentials:!0})).data;return(h==null?void 0:h.code)===0&&(h==null?void 0:h.message)==="0"}}const W0=fu("add"),k0=fu("del"),hu=i=>{const s={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[i];return async function(r,u){var m;const h=(await Qi.get(Qo+s,{params:{goto:r.goto,id:r.param,mid:r.mid,rid:r.tid,tag_id:(m=r.tag)==null?void 0:m.tag_id,reason_id:u,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return(h==null?void 0:h.code)===0&&(h==null?void 0:h.message)==="0"}},U0=hu("dislike"),H0=hu("cancel"),du="_bili-video-card_3h2r6_1",pu="_image-wrapper_3h2r6_4",gu="_preview-card-wrapper_3h2r6_8",vu="_watch-later_3h2r6_21",_u="_badge_3h2r6_24",mu="_recommend-reason_3h2r6_32",yu="_bangumi-desc_3h2r6_47",wu="_btn-dislike_3h2r6_50",bu="_btn-dislike-icon_3h2r6_65",Su="_btn-dislike-tip_3h2r6_72",xu="_disliked-wrapper_3h2r6_87",Au="_dislike-content-cover_3h2r6_101",Tu="_dislike-content-cover-inner_3h2r6_107",z0="_dislike-icon_3h2r6_118",Cu="_dislike-reason_3h2r6_121",Eu="_dislike-desc_3h2r6_125",Lu="_dislike-content-action_3h2r6_129";var qT={biliVideoCard:du,imageWrapper:pu,previewCardWrapper:gu,watchLater:vu,badge:_u,recommendReason:mu,bangumiDesc:yu,btnDislike:wu,btnDislikeIcon:bu,btnDislikeTip:Su,dislikedWrapper:xu,dislikeContentCover:Au,dislikeContentCoverInner:Tu,dislikeIcon:z0,dislikeReason:Cu,dislikeDesc:Eu,dislikeContentAction:Lu};function G0(i){const s=qi({data:Array.from(i||[]),has(r){return this.data.some(u=>u[0]===r)},set(r,u){const f=this.data.find(h=>h[0]===r);return f?f[1]=u:this.data.push([r,u]),this},get(r){var u;return(u=this.data.find(f=>f[0]===r))==null?void 0:u[1]},delete(r){const u=this.data.findIndex(f=>f[0]===r);return u===-1?!1:(this.data.splice(u,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(r){this.data.forEach(u=>{r(u[1],u[0],this)})},keys(){return this.data.map(r=>r[0]).values()},values(){return this.data.map(r=>r[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(s,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(s),s}const Ou="_modal-mask_vh629_1",Ru="_modal_vh629_1",Mu="_modal-header_vh629_23",Du="_modal-title_vh629_30",Iu="_title-desc_vh629_35",Pu="_btn-close_vh629_39",Nu="_modal-body_vh629_57",$u="_reason-list_vh629_62",Fu="_reason_vh629_62";var JT={modalMask:Ou,modal:Ru,modalHeader:Mu,modalTitle:Du,titleDesc:Iu,btnClose:Pu,modalBody:Nu,reasonList:$u,reason:Fu};const cs=G0();function K0(){return Jo(cs)}function Y0(i){return K0().get(i)}function X0({show:i,onHide:s,item:r}){const[u,f]=Et(!1),h=ke(async(m,w)=>{if(!r)return;let A=!1,R=null;try{f(!0),A=await U0(r,m)}catch(L){R=L}finally{f(!1)}if(R){Kt("\u6807\u8BB0\u4E0D\u559C\u6B22: \u8BF7\u6C42\u5931\u8D25, \u8BF7\u91CD\u8BD5!"),console.error(R.stack||R);return}Kt("\u6807\u8BB0\u4E0D\u559C\u6B22: "+(A?"\u6210\u529F":"\u5931\u8D25")),A&&(cs.set(r.param,{id:m,name:w}),s())}),g=D.useMemo(()=>{var m;return[...(m=r==null?void 0:r.dislike_reasons)!=null?m:[],{reason_id:12,reason_name:"\u6B64\u7C7B\u5185\u5BB9\u8FC7\u591A"},{reason_id:13,reason_name:"\u63A8\u8350\u8FC7"}]},[r]);return re(ou,{show:i,onHide:s,clsModalMask:Ou,clsModal:Ru,hideWhenMaskOnClick:!0,children:[re("div",{className:Mu,children:[re("div",{className:Du,children:["\u6211\u4E0D\u60F3\u770B",C("span",{className:Iu,children:"(\u9009\u62E9\u540E\u5C06\u51CF\u5C11\u76F8\u4F3C\u5185\u5BB9\u63A8\u8350)"})]}),C("div",{className:"space",style:{flex:1}}),re("button",{className:`primary-btn roll-btn ${Pu}`,onClick:s,children:[C("svg",{style:{transform:"rotate(0deg)"},children:C("use",{xlinkHref:"#widget-close"})}),C("span",{children:"\u5173\u95ED"})]})]}),C("div",{className:Nu,children:C("div",{className:$u,children:g.map(m=>C("button",{className:Fu,"data-id":m.reason_id,onClick:()=>h(m.reason_id,m.reason_name),disabled:u,children:m.reason_name},m.reason_id))})})]})}let Bu={show:!1,onHide:Wu,item:null};function Wu(){ku({show:!1,item:null})}function ku(i){Object.assign(Bu,i),Z0().render(C(X0,kn(vn({},Bu),{onHide:Wu})))}let fs;function Z0(){if(!fs){const i=document.createElement("div");i.classList.add("show-dislike-container"),document.body.appendChild(i),fs=Ti(i)}return fs}function q0(i){ku({show:!0,item:i})}const J0=no().format("YYYY"),j0=i=>{if(!i)return"";const s=no.unix(i);return s.format("YYYY")===J0?s.format("M-D"):s.format("YY-M-D")},V0=i=>i.replace(/^http:\/\//,"https://"),Uu=D.memo(function({style:i,className:s,item:r,loading:u}){const f=D.useRef(null),h=Wi(f),g=D.useRef(null),m=Wi(g),[w,A]=Et(!1),{accessKey:R}=Ji(),L=Boolean(R),{param:O,title:E,cover:M,goto:U,play:F,like:H,coin:de,desc:ae,danmaku:ie,ctime:q,duration:ge,name:Se,face:ye,mid:Q,favorite:J,badge:Ie,rcmd_reason:Pt}=r,j=D.useMemo(()=>j0(q),[q]),W=D.useMemo(()=>V0(M),[M]),[I,X]=Et(null),[P,z]=Et(!1),Z=ke(async()=>{if(!I&&!P)try{z(!0);const He=await B0(O);X(He)}finally{z(!1)}});D.useEffect(()=>{h&&Z()},[h]);let oe=!1;const fe=ke(async He=>{if(He.preventDefault(),oe)return;oe=!0;const Xt=w?k0:W0;let Ze=!1;try{Ze=await Xt(O)}finally{oe=!1}Ze&&A(Rr=>!Rr)}),he=Y0(O),Ee=Boolean(he),tt=D.useRef(null),$e=Wi(tt),lt=ke(He=>{He.stopPropagation(),He.preventDefault(),q0(r)}),Nt=ke(async()=>{if(!(he!=null&&he.id))return;let He=!1,Xt=null;try{He=await H0(r,he.id)}catch(Ze){Xt=Ze}if(Xt)return console.error(Xt.stack||Xt),Kt("\u8BF7\u6C42\u5931\u8D25!");Kt(`\u64A4\u9500\u4E0D\u559C\u6B22: \u64CD\u4F5C${He?"\u6210\u529F":"\u5931\u8D25"}!`),He&&cs.delete(O)}),Ue=r.goto==="av"?`/video/av${O}`:r.uri,Le=D.useMemo(()=>L0(ge),[ge]),ct=D.useMemo(()=>rs(F),[F]),Ot=D.useMemo(()=>rs(H),[H]),wt=D.useMemo(()=>rs(J),[J]),Or=re("div",{className:Qe("bili-video-card__skeleton",{hide:!u}),children:[C("div",{className:"bili-video-card__skeleton--cover"}),C("div",{className:"bili-video-card__skeleton--info",children:re("div",{className:"bili-video-card__skeleton--right",children:[C("p",{className:"bili-video-card__skeleton--text"}),C("p",{className:"bili-video-card__skeleton--text short"}),C("p",{className:"bili-video-card__skeleton--light"})]})})]}),nt=re("div",{className:Qe(xu),children:[C("div",{className:Au,children:re("div",{className:Tu,children:[C("div",{className:"icon"}),C("div",{className:Cu,children:he==null?void 0:he.name}),C("div",{className:Eu,children:"\u5C06\u51CF\u5C11\u6B64\u7C7B\u5185\u5BB9\u63A8\u8350"})]})}),C("div",{className:Lu,children:C("button",{onClick:Nt,children:"\u64A4\u9500"})})]});return re("div",{style:i,className:Qe("bili-video-card",du,s),"data-report":"partition_recommend.content",children:[Or,!u&&Ee&&nt,!u&&!Ee&&re("div",{className:"bili-video-card__wrap __scale-wrap",style:{backgroundColor:Ee?"red":"unset"},children:[C("a",{href:Ue,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:re("div",{className:"bili-video-card__image __scale-player-wrap",ref:f,children:[re("div",{className:Qe("bili-video-card__image--wrap",pu),children:[re("picture",{className:"v-img bili-video-card__cover",children:[C("source",{srcSet:`${W}@672w_378h_1c.webp`,type:"image/webp"}),C("img",{src:`${W}@672w_378h_1c.webp`,alt:E,loading:"lazy"})]}),h&&(I==null?void 0:I.pvideoData)?C(O0,{className:gu,item:r,pvideo:I==null?void 0:I.pvideoData}):null,re("div",{className:`bili-watch-later ${vu}`,style:{display:h?"flex":"none"},ref:g,onClick:fe,children:[C("svg",{className:"bili-watch-later__icon",children:C("use",{xlinkHref:w?"#widget-watch-save":"#widget-watch-later"})}),C("span",{className:"bili-watch-later__tip",style:{display:m?"block":"none"},children:w?"\u79FB\u9664":"\u7A0D\u540E\u518D\u770B"})]}),L&&re("div",{ref:tt,className:wu,onClick:lt,style:{display:h?"flex":"none"},children:[C("svg",{className:bu,children:C("use",{xlinkHref:"#widget-close"})}),C("span",{className:Su,style:{display:$e?"block":"none"},children:"\u4E0D\u559C\u6B22"})]})]}),C("div",{className:"bili-video-card__mask",children:re("div",{className:"bili-video-card__stats",children:[re("div",{className:"bili-video-card__stats--left",children:[re("span",{className:"bili-video-card__stats--item",children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-play-count"})}),C("span",{className:"bili-video-card__stats--text",children:ct})]}),C("span",{className:"bili-video-card__stats--item",children:U==="av"?re(Tr,{children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-agree"})}),C("span",{className:"bili-video-card__stats--text",children:Ot})]}):re(Tr,{children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-agree"})}),C("span",{className:"bili-video-card__stats--text",children:wt})]})})]}),C("span",{className:"bili-video-card__stats__duration",children:Le})]})})]})}),C("div",{className:"bili-video-card__info __scale-disable",children:re("div",{className:"bili-video-card__info--right",children:[C("a",{href:Ue,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:C("h3",{className:"bili-video-card__info--tit",title:E,children:E})}),re("p",{className:"bili-video-card__info--bottom",children:[U==="av"?re("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${Q}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[Pt!=null&&Pt.content?C("span",{className:mu,children:Pt.content}):C("svg",{className:"bili-video-card__info--owner__up",children:C("use",{xlinkHref:"#widget-up"})}),C("span",{className:"bili-video-card__info--author",children:Se}),j?re("span",{className:"bili-video-card__info--date",children:["\xB7 ",j]}):null]}):null,U==="bangumi"?re("a",{className:"bili-video-card__info--owner",href:Ue,target:"_blank",children:[C("span",{className:_u,children:Ie}),C("span",{className:yu,children:ae})]}):null]})]})})]})]})}),Hu="_modal-mask_5dl20_1",zu="_narrow-mode_5dl20_13",Gu="_modal_5dl20_1",Ku="_modal-header_5dl20_32",Yu="_modal-title_5dl20_40",Xu="_btn-refresh_5dl20_45",Zu="_btn-close_5dl20_46",Lr="_modal-body_5dl20_62",Q0="_list_5dl20_68",hs="_card_5dl20_71",ds="_active_5dl20_74",qu="_video-card-list_5dl20_78",ps="_video-card-body_5dl20_1",Ju="_loader_5dl20_87",gs="_use-narrow-mode_5dl20_1";var jT={modalMask:Hu,narrowMode:zu,modal:Gu,modalHeader:Ku,modalTitle:Yu,btnRefresh:Xu,btnClose:Zu,modalBody:Lr,list:Q0,card:hs,active:ds,videoCardList:qu,videoCardBody:ps,loader:Ju,useNarrowMode:gs};const e1=D.memo(function({show:s,onHide:r}){const[u,f]=Et([]),[h,g]=Et(!1),m=D.useRef(null),w=ke(async()=>{m.current&&(m.current.scrollTop=0),await za(50);try{g(!0),ge(),f(await es(2)),ge()}finally{g(!1)}}),A=ke(async ye=>{const Q=await es(2);f(J=>[...J,...Q])}),{useNarrowMode:R}=Ji(),L=D.useCallback(ye=>{const Q=ye.target.checked;ji({useNarrowMode:Q})},[]),O=D.useMemo(()=>({[zu]:R}),[R]),[E,M]=Et(null),U=ke(()=>{if(E===null)return!1;const ye=document.querySelector(`${vs}.${ds}`),Q=document.querySelector(`.${Lr}`);if(!ye||!Q)return!1;const J=Q.getBoundingClientRect(),Ie=ye.getBoundingClientRect();return!(Ie.top-J.top<-(J.height+Ie.height)||Ie.top-J.top>J.height*2+Ie.height)}),F=ke(ye=>{if(!s)return;let Q=U()?E+ye:t1();Q<0||Q>u.length-1||(M(Q),n1(Q))}),H=D.useCallback(()=>{F(-1)},[]),de=D.useCallback(()=>{F(1)},[]),ae=D.useCallback(()=>{F(-el())},[]),ie=D.useCallback(()=>{F(el())},[]),q=ke(()=>{!E||!s||r1(E)}),ge=ke(()=>{!s||M(null)});sn("leftarrow",H),sn("rightarrow",de),sn("uparrow",ae),sn("downarrow",ie),sn("enter",q),sn("esc",ge);const Se=ke(()=>{!s||w()});return sn("r",Se,{exactMatch:!0}),re(ou,{show:s,onHide:r,clsModalMask:Qe(Hu,O),clsModal:Qe(Gu,O),children:[re("div",{className:Ku,children:[C("div",{className:Yu,children:"\u63A8\u8350"}),C("div",{className:"space",style:{flex:1}}),re(ru,{children:[C("input",{type:"checkbox",id:gs,checked:R,onChange:L}),C("label",{htmlFor:gs,children:"\u542F\u7528\u7A84\u5C4F\u6A21\u5F0F"})]}),re("button",{className:`primary-btn roll-btn ${Xu}`,onClick:w,children:[C("svg",{children:C("use",{xlinkHref:"#widget-roll"})}),C("span",{children:"\u6362\u4E00\u6362"})]}),re("button",{className:`primary-btn roll-btn ${Zu}`,onClick:r,children:[C("svg",{children:C("use",{xlinkHref:"#widget-close"})}),C("span",{children:"\u5173\u95ED"})]})]}),C("div",{className:Lr,ref:m,children:C(ts,{pageStart:0,loadMore:A,hasMore:!0,useWindow:!1,threshold:360,style:{minHeight:"100%"},loader:C("div",{className:Ju,children:"\u52A0\u8F7D\u4E2D..."},0),children:C("div",{className:`video-card-list is-full ${qu}`,children:C("div",{id:ps,className:Qe("video-card-body",O),children:u.map((ye,Q)=>C(Uu,{item:ye,loading:h,className:Qe(hs,{[ds]:Q===E})},ye.uniqId))})})})})]})});function t1(){const i=document.querySelector(`.${Lr}`);if(!i)return 0;const s=i.getBoundingClientRect(),r=ju();for(let u=0;u<r.length;u++)if(r[u].getBoundingClientRect().top>=s.top)return u;return 0}const vs=`#${ps} .${hs}`;function ju(){return[...document.querySelectorAll(vs)]}function Vu(i){return ju()[i]}function n1(i){var r;const s=Vu(i);(r=s==null?void 0:s.scrollIntoViewIfNeeded)==null||r.call(s,!1)}function r1(i){const s=Vu(i);if(!s)return;const r=s.querySelector(".bili-video-card__wrap > a");r==null||r.click()}const Qu=new Map;function el(){if(An.useNarrowMode)return 2;let i=Qu.get(window.innerWidth);if(i)return i;const s=document.querySelector(vs);if(!s)throw new Error("expect found first card");i=1;let r=s.getBoundingClientRect().top,u=s.nextElementSibling;for(;u&&u.getBoundingClientRect().top===r;)i++,u=u.nextElementSibling;return Qu.set(window.innerWidth,i),i}const tl="_grid_p5dvw_1",nl="_video-card-list_p5dvw_5";var eC={grid:tl,videoCardList:nl,expandBtn:"_expand-btn_p5dvw_19",expanded:"_expanded_p5dvw_30"};function i1(){const i=D.useRef(null),{accessKey:s}=Ji(),r=ke(async(M=!1)=>{var F;await c0()&&((F=i.current)==null||F.set(!1))}),u=f0,f=ke(()=>{const M="https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E";window.open(M,"_blank")}),[h,g]=Et([]),[m,w]=Et(!1),A=ke(async()=>{w(!0);try{const M=await p0();g(M)}finally{w(!1)}});ch(async()=>{A()});const[R,L]=Et(!1),O=D.useCallback(()=>{L(!0)},[]),E=D.useCallback(()=>{L(!1)},[]);return C("section",{className:Qe("bili-grid no-margin",tl),"data-area":"\u63A8\u8350",children:re("div",{className:`video-card-list is-full ${nl}`,children:[re("div",{className:"area-header",children:[re("div",{className:"left",children:[C("a",{id:"\u5F71\u89C6",className:"the-world area-anchor","data-id":"25"}),C("svg",{className:"icon",children:C("use",{xlinkHref:"#channel-cinephile"})}),C("a",{className:"title",href:"#",children:C("span",{children:"\u63A8\u8350"})})]}),re("div",{className:"right",children:[s?re(ru,{ref:i,children:[C("button",{className:"primary-btn roll-btn",onClick:f,children:C("span",{children:"access_key \u8BF4\u660E"})}),C("button",{className:"primary-btn roll-btn",onClick:()=>r(!0),children:C("span",{children:"\u91CD\u65B0\u83B7\u53D6 access_key"})}),C("button",{className:"primary-btn roll-btn",onClick:u,children:C("span",{children:"\u5220\u9664 access_key"})})]}):re(Tr,{children:[C("button",{className:"primary-btn roll-btn",onClick:f,children:C("span",{children:"access_key \u8BF4\u660E"})}),C("button",{className:"primary-btn roll-btn",onClick:r,children:C("span",{children:"\u83B7\u53D6 access_key"})})]}),re("button",{className:"primary-btn roll-btn",onClick:A,children:[C("svg",{style:{transform:"rotate(0deg)"},children:C("use",{xlinkHref:"#widget-roll"})}),C("span",{children:"\u6362\u4E00\u6362"})]}),re("button",{className:"primary-btn see-more",onClick:O,children:[C("span",{children:"\u67E5\u770B\u66F4\u591A"}),C("svg",{children:C("use",{xlinkHref:"#widget-arrow"})})]})]})]}),C(e1,{show:R,onHide:E}),C("div",{className:"video-card-body more-class1 more-class2",children:h.map(M=>C(Uu,{item:M,loading:m},M.uniqId))})]})})}(function(){var s;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(s=window.top)==null?void 0:s.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/")return s1()})();async function s1(){const i=Date.now(),s=10*1e3,r=()=>Hn.default(".bili-layout > section.bili-grid").length>0;for(;!r()&&Date.now()-i<s;)await za(100);if(!r()){console.error("[bilibili-app-recommend]: init fail");return}const u=Hn.default(".bili-layout > section.bili-grid").eq(0),f=Hn.default("<section></section>");f.insertAfter(u);const h=f[0];Ti(h).render(C(i1,{}))}})($,ReactDOM,React,axios,axiosGmxhrAdapter);