Greasy Fork

Greasy Fork is available in English.

bilibili-app-recommend

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

当前为 2022-06-06 提交的版本,查看 最新版本

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