lemon-mse 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lemon.js CHANGED
@@ -1 +1 @@
1
- var ro=Object.defineProperty;var ao=(t,e,s)=>e in t?ro(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var W=(t,e,s)=>ao(t,typeof e!="symbol"?e+"":e,s);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function s(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(n){if(n.ep)return;n.ep=!0;const l=s(n);fetch(n.href,l)}})();const uo=Vue.createApp,Q=Vue.defineComponent,v=Vue.unref,y=Vue.openBlock,b=Vue.createElementBlock,ue=Vue.createCommentVNode,X=Vue.renderList,$=Vue.Fragment,L=Vue.normalizeClass,c=Vue.createElementVNode,Ke=Vue.resolveComponent,O=Vue.withCtx,M=Vue.createVNode,Z=Vue.vShow,B=Vue.withDirectives,Re=Vue.resolveDynamicComponent,V=Vue.createBlock,co=Vue.KeepAlive,k=Vue.ref,Ce=Vue.onMounted,oe=Vue.watch,re=Vue.reactive,Ve=Vue.watchEffect,z=Vue.computed,ce=Vue.isRef,dt=Vue.vModelText,vo=Vue.withKeys,T=Vue.toDisplayString,Bt=Vue.onActivated,vt=Vue.resolveDirective,je=Vue.createTextVNode,F=Vue.withModifiers,xe=Vue.normalizeStyle,fo=Vue.shallowRef,at=Vue.nextTick,tt=Vue.onBeforeUnmount;Vue.h;const po=Vue.onDeactivated,mo=Vue.onUnmounted,Ue=Vue.useModel,Be=Vue.mergeModels,ho=Vue.renderSlot,Vt=Vue.useSlots,go=Vue.provide,yo=Vue.inject,wo=Vue.getCurrentInstance,Xe=(t,e)=>{let s=-1;const a=t.length,n=new Array(a);for(;++s<a;)n[s]=e(t[s]);return n},Ut=(t,e)=>{let s=-1;const a=t.length;for(;++s<a;)e(t[s])},xo=t=>{if(t.scrollTop>0)return!0;t.scrollTop=1;const e=!!t.scrollTop;return t.scrollTop=0,e},ko=async(t,e,s)=>{const a=[],n=[];for(const l of t){const i=Promise.resolve().then(()=>s(l));if(a.push(i),e<=t.length){const r=i.then(()=>n.splice(n.indexOf(r),1));n.push(r),n.length>=e&&await Promise.race(n)}}return Promise.all(a)},ft="http://lemonlive.deno.dev/api/",le=(t,e,s)=>(t=="douyin"&&(s?s.cookie=K[t]:s={cookie:K[t]}),pt(`${ft}${t}/${e}${s?"?"+new URLSearchParams(s).toString():""}`)),ct=async t=>{const e=Object.keys(t.follows);if(!e.length)return Promise.resolve(!1);if(t.id=="douyin"){(await ko(e,4,a=>le("douyin","getLiveStatus",{id:a}))).forEach((a,n)=>t.follows[e[n]].status=a[e[n]].status);return}await le(t.id,"getLiveStatus",{id:e.join(",")}).then(s=>Object.keys(s).forEach(a=>{t.follows[a].status=s[a].status}))},bo=t=>pt(`${ft}sync`,{method:"POST",body:t}),Co=t=>pt(`${ft}sync/${t}`),pt=(t,e)=>fetch(t,e).then(async s=>{const a=await s.json();return a.code!=200?Promise.reject(a.msg):a.data},s=>{Promise.reject("网络异常!")});k(!0);const j=[{name:"虎牙直播",icon:"https://www.huya.com/favicon.ico",id:"huya",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("huya"))},{name:"斗鱼直播",icon:"https://www.douyu.com/favicon.ico",id:"douyu",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("douyu"))},{name:"抖音直播",icon:"https://www.douyin.com/favicon.ico",id:"douyin",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("douyin"))},{name:"哔哩直播",icon:"https://www.bilibili.com/favicon.ico",id:"bilibili",categories:k([]),categoryActive:k(0),recommend:{page:1,hasMore:!0,list:k([])},search:{page:1,hasMore:!0,list:k([])},follows:re(Je("bilibili"))}],ke=["huya","douyu","douyin","bilibili"],q=k(_e("volume",100)),G=k(_e("brightness",100)),We=t=>{q.value=t?Math.min(100,q.value+5):Math.max(0,q.value-5)},Mt=t=>{G.value=t?Math.min(200,G.value+10):Math.max(50,G.value-10)};function Je(t){const e=localStorage.getItem("follows-"+t);return e?JSON.parse(e):{}}function Le(t){const e=j.find(s=>s.id==t.siteId);return t.siteId=e.id,e.follows[t.roomId]={...t,stream:void 0,ws:void 0},localStorage.setItem("follows-"+t.siteId,JSON.stringify(e.follows)),Reflect.has(e.follows,t.roomId)}function _o(t,e){const s=j.find(a=>a.id==t);return delete s.follows[e],localStorage.setItem("follows-"+t,JSON.stringify(s.follows)),Reflect.has(s.follows,e)}function Io(){j.forEach(t=>{for(const e in t.follows)delete t.follows[e];localStorage.removeItem("follows-"+t.id)})}async function Tt(t,e){const s=t.categories;s.value.length||(s.value=await le(t.id,"getCategories"));for(const a of s.value)for(const n of a.list)if(n.cid==e)return n;return null}const w=re(_e("dm-settings",{canvasOpen:!0,canvasFontsize:18,canvasGap:10,canvasOpacity:100,canvasRows:10,canvasSpeed:2.5,canvasColorOpen:!1,sideOpen:!0,sideFontsize:14,sideGap:2,sideColorOpen:!1,sideClean:100,colors:["#ffffff","#7e22ce","1d4ed8","#be185d","#fcd34d"],blockOpen:!1,blockWords:""}));Ve(()=>{be("dm-settings",w)});function _e(t,e){const s=localStorage.getItem(t);return s?JSON.parse(s):e}function be(t,e){localStorage.setItem(t,JSON.stringify(e))}const So=["#ffffff","#000000","#374151","#b91c1c","#f87171","#fdba74","#c2410c","#fcd34d","#b45309","#bef264","#4d7c0f","#86efac","#15803d","#5eead4","#0f766e","#67e8f9","#0e7490","#93c5fd","#1d4ed8","#d8b4fe","#7e22ce","#f0abfc","#a21caf","#f9a8d4","#be185d","#fda4af","#be123c"],Et=z(()=>w.blockWords.length==0?[]:w.blockWords.split(" ").map(t=>new RegExp(t))),K=re(_e("cookies",{}));Ve(()=>be("cookies",K));const P=k(0),we=k(_e("show-chat",!0)),He=k(_e("show-aside",!0));Ve(()=>be("show-chat",we.value));Ve(()=>be("show-aside",He.value));const Ao=VueRouter.createRouter,Mo=VueRouter.createWebHistory,mt=VueRouter.useRoute,ht=VueRouter.useRouter,To=VueRouter.onBeforeRouteUpdate,Eo={key:0,src:"https://live.douyin.com","pos-absolute":"",width:"0",height:"0","op-0":"","b-0":"",style:{"z-index":"-10"}},Oo={"text-sm":"","pos-fixed":"","bottom-0":"","left-0":"","right-0":"","md:py-2":"","b-t-solid":"",b:"","b-gray-7":"","md:b-r-solid":"","md:top-0":"","md:right-auto":"",flex:"","justify-around":"","md:flex-col":"","md:justify-left":"","bg-dark-7":"","z-10":""},jo={"h-full":"",class:"scrolly","md:px-3":""},Lo=Q({__name:"App",setup(t){const e=[{icon:"i-ri-home-smile-line",link:"/"},{icon:"i-ri-apps-2-line",link:"/category"},{icon:"i-ri-heart-line",link:"/follow"},{icon:"i-ri-search-line",link:"/search"},{icon:"i-ri-user-smile-line",link:"/user"}],s=k(!0);Ce(()=>{document.querySelector("main").style.height=`calc(${window.innerHeight}px - 3.5rem)`,setTimeout(()=>s.value=!1,5e3)});const a=mt();return oe(a,()=>{const n=a.params.siteid;if(n==null)return;const l=ke.findIndex(i=>i==n);l!=-1&&(P.value=l)}),(n,l)=>{const i=Ke("router-link"),r=Ke("router-view");return y(),b($,null,[v(s)?(y(),b("iframe",Eo)):ue("",!0),B(c("div",Oo,[(y(),b($,null,X(e,u=>M(i,{to:u.link,"hover:text-amber":"","rounded-2":"","py-2":"","px-4":"","m-2":"",class:L({"text-amber":n.$route.path==u.link})},{default:O(()=>[c("div",{class:L(u.icon)},null,2)]),_:2},1032,["to","class"])),64))],512),[[Z,v(He)]]),c("main",{"mx-2":"","md:mx-0":"",class:L(["md:!h-100vh",{"md:ml-17.5":v(He),"!h-100vh":!v(He)}]),"pt-2":"","box-border":""},[c("div",jo,[M(r,null,{default:O(({Component:u})=>[(y(),V(co,{exclude:["play"]},[(y(),V(Re(u)))],1024))]),_:1})])],2)],64)}}}),Ro=t=>{const e=k(t);return[e,a=>e.value=a]},Bo=/scroll|auto|overlay/i;function Vo(t){return t.tagName!=="HTML"&&t.tagName!=="BODY"&&t.nodeType===1}function Uo(t,e=document.body){let s=t;for(;s&&s!==e&&Vo(s);){const{overflowY:a}=window.getComputedStyle(s);if(Bo.test(a))return s;s=s.parentNode}return e}function Po(t,e=document.body){const s=k();return Ce(()=>{t.value&&(s.value=Uo(t.value,e))}),s}const zo={key:0,"text-center":""},Fo={key:1,"text-center":""},ot=Q({__name:"list",props:{finshedText:{default:"没有更多了"},errorText:{default:"加载失败,点击重新加载"},immediate:{type:Boolean,default:!0},offset:{default:50}},emits:["load","refresh"],setup(t,{emit:e}){const s=t,a=k(0),[n,l]=Ro("normal"),i=k(),r=Po(i),u=e,f=()=>{if(a.value=r.value.scrollTop,n.value!="normal")return;r.value.scrollHeight-r.value.clientHeight-r.value.scrollTop<s.offset&&h()};Ce(()=>{s.immediate&&h(),r.value.addEventListener("scroll",f,{passive:!0})}),Bt(()=>{r.value.scrollTop=a.value,r.value.addEventListener("scroll",f)});const p=()=>{r.value.removeEventListener("scroll",f)};po(p),tt(p);let m;const h=()=>{l("loading"),u("load",l),clearTimeout(m),m=setTimeout(()=>{xo(r.value)||u("load",l)},2e3)};return(E,Y)=>(y(),b("div",{ref_key:"root",ref:i,"h-full":"","select-none":""},[ho(E.$slots,"default"),v(n)=="loading"?(y(),b("div",zo,"加载中...")):v(n)=="finshed"?(y(),b("div",Fo,T(s.finshedText),1)):v(n)=="loaderror"?(y(),b("div",{key:2,"text-center":"","cursor-pointer":"",onClick:h},T(s.errorText),1)):ue("",!0)],512))}}),$o=["data-id","data-site","href"],No={"pos-relative":"","text-rose-4":"","rounded-t-2":"","w-full":"","aspect-video":""},Do={block:"","h-full":"","rounded-2":"","select-none":""},Go={"pos-absolute":"","bottom-0":"","right-0":"","px-2":"","py-1":"","rounded-tl-2":"","bg-dark-6":""},Qo={"line-height-none":"","pos-absolute":"","top-0":"","right-0":"","px-1":"","py-1":"","rounded-tr-1":"","rounded-bl-2":"","bg-dark-6":""},Wo={key:0,"rounded-2":"","text-white":"","pos-absolute":"","text-8":"","top-0":"","bottom-0":"","left-0":"","right-0":"",flex:"","justify-center":"","items-center":"","bg-gray-7":"","bg-op-80":""},Jo={"px-2":"","text-truncate":"","leading-normal":""},Yo={"px-2":"","text-truncate":"","leading-normal":"","pb-2":""},st=Q({__name:"rooms",props:{list:{}},setup(t){let e;const s=ht(),a=k(),n=r=>{clearTimeout(e),e=setTimeout(()=>{const u=i("id",r.target,a.value);if(!u)return;const f=i("site",r.target,a.value);s.push(`/${f}/play/${u}`)},300)},l=r=>{var m;clearTimeout(e);const u=i("id",r.target,a.value);if(!u)return;const p=`/${i("site",r.target,a.value)}/play/${u}`;(m=window.open(p,"_blank"))==null||m.location},i=(r,u,f)=>{if(u==f)return null;const p=u.dataset[r];return p||i(r,u.parentElement,f)};return(r,u)=>{const f=vt("lazy");return r.list.value.length>0?(y(),b("div",{key:0,ref_key:"root",ref:a,grid:"","gap-4":"","p-2":"","justify-evenly":"","cursor-pointer":"","select-none":"","grid-cols-2":"","md:grid-cols-3":"","xl:grid-cols-4":"",class:"2xl:grid-cols-5",onClick:F(n,["prevent"]),onDblclick:F(l,["prevent"])},[(y(!0),b($,null,X(r.list.value,p=>(y(),b("a",{"data-id":p.roomId,"data-site":p.siteId,href:`/${p.siteId}/play/${p.roomId}`,key:`${p.siteId}-${p.roomId}`,shadow:"","rounded-2":"","b-2px":"","b-solid":"","b-transparent":"","hover:b-amber":"","overflow-hidden":""},[c("div",No,[B(c("img",Do,null,512),[[f,p.cover]]),c("div",Go,T(p.category),1),c("div",Qo,[u[0]||(u[0]=c("div",{class:"i-mdi-fire"},null,-1)),c("span",null,T(p.online),1)]),p.status?ue("",!0):(y(),b("div",Wo," 未开播 "))]),c("div",Jo,T(p.title),1),c("div",Yo,T(p.nickname),1)],8,$o))),128))],544)):ue("",!0)}}}),qo={"h-full":""},Ho={flex:"","py-1":"","px-2":"","text-lg":"","gap-2":""},Zo={grow:"","text-center":""},Ko={"hover:text-amber":""},Xo={key:0,class:"h-[calc(100%-3.25rem)] scrolly"},es=Q({__name:"categoryRooms",setup(t){const e=mt(),s=k(""),a=k(),n={list:k([]),page:1,hasMore:!0},l=f=>{const{site:p,id:m}=e.meta;le(p.id,"getCategoryRooms",{id:m,pid:a.value,page:n.page}).then(h=>{if(n.list.value=n.list.value.concat(h.list),n.hasMore=h.hasMore,K[p.id]||(K[p.id]=h.cookie),!h.hasMore)return f("finshed");n.page++,f("normal")},h=>{s.value=h,f("loaderror")})},i=k(!1),r=()=>{document.querySelector("#goTop").click(),i.value=!0;const{site:f,id:p}=e.meta;le(f.id,"getCategoryRooms",{id:p,pid:a.value,page:n.page}).then(m=>{n.list.value=m.list,n.hasMore=m.hasMore,n.page++,K[f.id]||(K[f.id]=m.cookie)},m=>{s.value=m}).finally(()=>i.value=!1)};let u=e.fullPath;return Tt(e.meta.site,e.meta.id).then(f=>{s.value=(f==null?void 0:f.name)||null,a.value=f==null?void 0:f.pid}),Bt(function(){u!=e.fullPath&&(u=e.fullPath,Tt(e.meta.site,e.meta.id).then(f=>{s.value=(f==null?void 0:f.name)||null,a.value=f==null?void 0:f.pid}),n.list.value=[],n.page=1,n.hasMore=!0)}),(f,p)=>{var E;const m=st,h=ot;return y(),b("div",qo,[c("div",Ho,[c("div",{"hover:text-amber":"",onClick:p[0]||(p[0]=(...Y)=>f.$router.back&&f.$router.back(...Y)),class:"i-ri-arrow-left-line"}),c("div",Zo,[c("span",Ko,T(`${(E=v(e).meta.site)==null?void 0:E.name} ${v(s)==null?"分区不存在":v(s)==""?"加载中":v(s)}`),1)]),c("div",{"mr-7":"","md:mr-24":"","hover:text-amber":"",onClick:r,class:L(["i-ri-refresh-line",{"animate-spin":v(i)}])},null,2)]),v(s)?(y(),b("div",Xo,[(y(),V(h,{key:v(u),onLoad:l},{default:O(()=>[M(m,{list:n.list},null,8,["list"])]),_:1}))])):ue("",!0)])}}}),Pt=Symbol("tabs"),ts=(t,e)=>{const s=re([]);return go(t,Object.assign({link:l=>{l.proxy&&s.push(l.proxy)},unlink:l=>{const i=s.indexOf(l.proxy);s.splice(i,1)},children:s},e)),s},zt=t=>{const e=yo(t);if(e==null)return{parent:e,index:k(-1)};const s=wo(),{link:a,unlink:n,children:l}=e;a(s),mo(()=>n(s));const i=z(()=>l.indexOf(s.proxy));return{parent:e,children:l,index:i}},os={class:"h-full","box-border":""},ss={"w-full":"","box-border":"","text-sm":"","sm:text-base":""},ns=["onClick"],ls={class:"h-[calc(100%-2rem)] scrolly","box-border":"","pt-1":""},Pe=Q({__name:"tabs",props:Be({link:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},grow:{type:Boolean,default:!1},swipeable:{type:Boolean,default:!1},swipeloop:{type:Boolean,default:!0},justify:{default:"justify-center"}},{active:{default:0},activeModifiers:{}}),emits:Be(["tabClick"],["update:active"]),setup(t,{emit:e}){const s=Ue(t,"active"),a=t,n=e,l=u=>{s.value=u,n("tabClick",u)},i=ts(Pt,{active:s,props:a}),r=z(()=>Xe(i,u=>u.title));return(u,f)=>{const p=Ke("router-link");return y(),b("div",os,[c("div",ss,[c("div",{flex:"",p1:"","sm:gap-1":"","text-center":"","h-8":"","box-border":"","lg:justify-center":"",class:L([[v(i).length>5||u.grow?"":u.justify],"scrollx"])},[a.link?(y(!0),b($,{key:0},X(v(r),(m,h)=>(y(),V(p,{"px-1":"","sm:px-2":"","box-border":"","shrink-0":"",rounded:"","py-1":"","line-height-none":"","text-centercursor-pointer":"","hover:text-amber":"","cursor-pointer":"",class:L({"text-amber":s.value==h,grow:u.grow}),to:v(i)[h].href},{default:O(()=>[je(T(m),1)]),_:2},1032,["class","to"]))),256)):(y(!0),b($,{key:1},X(v(r),(m,h)=>(y(),b("a",{"px-1":"","sm:px-2":"","box-border":"","shrink-0":"",rounded:"","py-1":"","line-height-none":"","text-centercursor-pointer":"","hover:text-amber":"","cursor-pointer":"",class:L({"text-amber":s.value==h,grow:u.grow}),onClick:E=>l(h)},T(m),11,ns))),256))],2)]),c("div",ls,[(y(),V(Re(u.$slots.default)))])])}}}),is=Symbol("swipe"),rs={"w-full":"","h-full":"","shrink-0":"","pos-relative":""},as=Q({__name:"swipeItem",emits:["inited"],setup(t,{emit:e}){const s=k(!1),{parent:a,children:n,index:l}=zt(is),i=Vt(),r=e,u=z(()=>(a==null?void 0:a.active.value)==l.value?(s.value||(s.value=!0,r("inited",l.value)),!0):l.value==(a.active.value==0?n.length-1:a.active.value-1)||l.value==(a.active.value==n.length-1?0:a.active.value+1)),f=z(()=>u.value||s.value||!(a!=null&&a.props.lazy)?i.default:null);return(p,m)=>B((y(),b("div",rs,[(y(),V(Re(v(f))))],512)),[[Z,v(u)]])}}),us={"h-full":"","w-full":"","shrink-0":"",class:"scrolly"},ze=Q({__name:"tab",props:{title:{},href:{}},emits:["inited"],setup(t,{expose:e,emit:s}){const a=t,n=k(!1),l=Vt(),{parent:i,index:r,children:u}=zt(Pt),f=s,p=z(()=>(i==null?void 0:i.active.value)==r.value?(n.value||(n.value=!0,f("inited",r.value)),!0):(i==null?void 0:i.props.swipeable)&&(r.value==(i.active.value==0?u.length-1:i.active.value-1)||r.value==(i.active.value==u.length-1?0:i.active.value+1))),m=z(()=>p.value||i!=null&&i.props.swipeable||n.value||!(i!=null&&i.props.lazy)?l.default:null);return e({title:a.title}),(h,E)=>{var C,_;const Y=as;return B((y(),b("div",us,[(C=v(i))!=null&&C.props.swipeable?(y(),V(Y,{key:0},{default:O(()=>[(y(),V(Re(v(m))))]),_:1})):(y(),V(Re(v(m)),{key:1}))],512)),[[Z,v(p)||((_=v(i))==null?void 0:_.props.swipeable)]])}}}),cs={key:0,"text-center":""},ds={"pb-2":"",grid:"","gap-4":"","px-4":"","md:px-2":"","grid-cols-4":"","sm:grid-cols-6":"","md:grid-cols-8":"","lg:grid-cols-10":"","xl:grid-cols-15":"",lass:"2xl:grid-cols-18"},vs={"w-full":"","aspect-ratio-square":"",rounded:""},fs={"w-full":"","text-truncate":"","text-xs":"","md:text-sm":"","text-center":""},ps=Q({__name:"category",setup(t){const e=z(()=>j[P.value].id),s=k(),a=n=>{j[n].categories.value.length||(s.value="加载中...",le(e.value,"getCategories").then(l=>{s.value=null,j[n].categories.value=l},l=>s.value=l))};return(n,l)=>{const i=Ke("router-link"),r=ze,u=Pe,f=vt("lazy");return y(),V(u,{active:v(P),"onUpdate:active":l[0]||(l[0]=p=>ce(P)?P.value=p:null),link:!0,"pt-1":""},{default:O(()=>[(y(!0),b($,null,X(v(j),p=>(y(),V(r,{title:p.name,href:`/${p.id}/category`,onInited:a,key:p.id},{default:O(()=>[v(s)?(y(),b("div",cs,T(v(s)),1)):(y(),V(u,{key:1,active:p.categoryActive.value,"onUpdate:active":m=>p.categoryActive.value=m},{default:O(()=>[(y(!0),b($,null,X(p.categories.value,m=>(y(),V(r,{title:m.name,key:m.id},{default:O(()=>[c("div",ds,[(y(!0),b($,null,X(m.list,h=>(y(),V(i,{to:`/${p.id}/category/${h.cid}`,"cursor-pointer":""},{default:O(()=>[B(c("img",vs,null,512),[[f,h.pic]]),c("div",fs,T(h.name),1)]),_:2},1032,["to"]))),256))])]),_:2},1032,["title"]))),128))]),_:2},1032,["active","onUpdate:active"]))]),_:2},1032,["title","href"]))),128))]),_:1},8,["active"])}}}),ms={"text-center":"","py-1":""},hs={class:"w-60% max-w-md pos-relative inline-block"},gs={class:"h-[calc(100%-3rem)]"},ys={key:1},ws={key:1},xs=Q({__name:"search",setup(t){const e=k(""),s=z(()=>j[P.value]),a=k(),n=()=>{if(!e.value)return Promise.resolve();const p=s.value.search;p.list.value=[],p.page=1,p.hasMore=!0,a.value="搜索中...";const m=s.value.id;return le(m,"searchRooms",{page:p.page,kw:e.value}).then(h=>{p.list.value=h.list,p.hasMore=h.hasMore,p.page+=1,a.value="finished",K[m]||(K[m]=h.cookie)},h=>a.value=h)},l=p=>{const m=s.value.search,h=s.value.id;p("loading"),le(h,"searchRooms",{page:m.page,kw:e.value}).then(E=>{if(m.list.value=m.list.value.concat(E.list),m.hasMore=E.hasMore,K[h]||(K[h]=E.cookie),!m.hasMore)return p("finshed");m.page+=1,p("normal")},E=>{p("loaderror")})},i=p=>{r.push(`/${ke[p]}/search`),!u()&&j[p].search.page==1&&n()},r=ht(),u=()=>{if(e.value)return/^[\d]*$/.test(e.value)?(r.push(`/play/${s.value.id}/${e.value}`),!0):!1},f=()=>{u()||(j.forEach(p=>p.search.page=1),n())};return(p,m)=>{const h=st,E=ot,Y=ze,C=Pe;return y(),b($,null,[c("div",ms,[c("div",hs,[B(c("input",{"md:text-4":"",type:"text","onUpdate:modelValue":m[0]||(m[0]=_=>ce(e)?e.value=_:null),"box-border":"","w-full":"","py-2.5":"","pl-3":"","pr-9":"","text-white":"","bg-transparent":"","b-1":"","b-green":"","rounded-6":"","outline-0":"",onKeydown:vo(f,["enter"]),placeholder:"请输入房间号或关键字"},null,544),[[dt,v(e),void 0,{trim:!0}]]),c("div",{class:"i-ri-search-line top-50%",absolute:"","right-3":"",onClick:f,style:{transform:"translateY(-50%)"}})])]),c("div",gs,[M(C,{active:v(P),"onUpdate:active":m[1]||(m[1]=_=>ce(P)?P.value=_:null),onTabClick:i},{default:O(()=>[(y(!0),b($,null,X(v(j),_=>(y(),V(Y,{title:_.name,key:_.id},{default:O(()=>[v(a)=="finished"?(y(),b($,{key:0},[_.search.list.value.length?(y(),V(E,{key:0,onLoad:l},{default:O(()=>[M(h,{list:_.search.list},null,8,["list"])]),_:2},1024)):(y(),b("div",ys," 什么也没有找到 "))],64)):(y(),b("div",ws,T(v(a)),1))]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])],64)}}}),ks={flex:"","items-center":""},bs={"grow-1":"","justify-center":"","gap-2":"","p-2":"",flex:""},Cs={"pos-relative":"",flex:"","gap-2":""},_s={"pos-absolute":"","top-0":"","right-0":"",style:{transform:"translateX(150%)"},"rounded-6":"","bg-white":"",shadow:"","text-amber":""},Is={class:"bg-gray-7 gap-4 p-12 rounded-2 flex flex-col shadow relative mt-30"},Ss={class:"flex justify-center items-center"},As={class:"flex gap-4"},Ms={class:"py-2 min-w-16"},Ts={class:"flex gap-4"},Es={class:"py-2 min-w-16"},Os={class:"h-[calc(100%-3rem)]"},js=Q({__name:"follow",setup(t){const e=Xe(j,_=>({name:_.name,list:z(()=>Object.values(_.follows).sort(S=>S.status?-1:0))}));e.unshift({name:"全部",list:z(()=>j.map(_=>Object.values(_.follows)).flat().sort(_=>_.status?-1:0))});const s=k(0),a=()=>{var S;if(l.value)return;const _=s.value;l.value=!0,_==0?Promise.all(Xe(j,ct)).finally(n):(S=ct(j[_-1]))==null||S.finally(n)},n=()=>setTimeout(()=>l.value=!1,300),l=k(!1),i=k(""),r=k(!1),u=k([]),f=k(!1),p=()=>setTimeout(()=>f.value=!1,300),m=()=>{f.value||(f.value=!0,bo(JSON.stringify(e[0].list.value)).then(_=>{i.value=_,u.value=e[0].list.value}).finally(p))},h=()=>{if(!f.value){if(!/^\d{4}$/.test(i.value))return i.value="";f.value=!0,Co(i.value).then(_=>{u.value=_}).finally(p)}},E=()=>{if(!f.value){if(f.value=!0,i.value.startsWith("[")){try{const _=JSON.parse(i.value);Ut(_,S=>{/^\d+$/.test(S.roomId)&&Le({siteId:S.siteId,roomId:S.roomId,cover:S.face,nickname:S.userName})})}catch{i.value="合并失败"}return p()}u.value.forEach(_=>Le(_)),p()}},Y=()=>{f.value||(f.value=!0,Io(),u.value.forEach(_=>Le(_)),p())};a();const C=_=>_("finshed");return(_,S)=>{const $e=st,ee=ot,ve=ze,fe=Pe;return y(),b($,null,[c("div",ks,[c("div",bs,[c("div",Cs,[S[6]||(S[6]=je("关注用户 ")),c("button",{class:"bg-green-5 rounded border-none cursor-pointer",onClick:S[0]||(S[0]=se=>r.value=!0)},"同步"),c("button",{class:"bg-green-5 rounded border-none cursor-pointer",onClick:a},"刷新"),B(c("div",_s,S[5]||(S[5]=[c("div",{class:"i-ri-refresh-line animate-spin"},null,-1)]),512),[[Z,v(l)]])]),B(c("div",{class:"absolute z-10 top-0 left-0 right-0 bottom-0 flex justify-center items-start",onClick:S[3]||(S[3]=F(se=>r.value=!1,["self"]))},[c("div",Is,[c("div",Ss,[S[8]||(S[8]=c("div",{class:"text-8"},"同步",-1)),B(c("div",null,S[7]||(S[7]=[c("div",{class:"i-ri-refresh-line animate-spin"},null,-1)]),512),[[Z,v(f)]])]),B(c("input",{class:"outline-none p-2 border-none rounded-2 flex-1","onUpdate:modelValue":S[1]||(S[1]=se=>ce(i)?i.value=se:null),type:"text",placeholder:"key"},null,512),[[dt,v(i)]]),c("div",As,[c("div",Ms,"本地 "+T(v(e)[0].list.value.length),1),c("div",{onClick:E,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"}," 合并 "),c("div",{onClick:Y,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"覆盖")]),c("div",Ts,[c("div",Es,"云端 "+T(v(u).length),1),c("div",{onClick:h,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"拉取"),c("div",{onClick:m,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"推送")]),S[9]||(S[9]=c("div",null,[c("div",null,"1. key 有效期 10 分钟"),c("div",null,"2. 拉取需要输入 key"),c("div",null,"3. 推送自动生成 key ")],-1)),c("div",{onClick:S[2]||(S[2]=F(se=>r.value=!1,["stop"])),class:"i-ri-close-circle-line absolute right-2 top-2"})])],512),[[Z,v(r)]])])]),c("div",Os,[M(fe,{active:v(s),"onUpdate:active":S[4]||(S[4]=se=>ce(s)?s.value=se:null)},{default:O(()=>[(y(!0),b($,null,X(v(e),se=>(y(),V(ve,{title:se.name},{default:O(()=>[M(ee,{onLoad:C,"finshed-text":""},{default:O(()=>[M($e,{list:se.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["active"])])],64)}}}),Ls=Q({__name:"index",setup(t){const e=z(()=>j[P.value].id),s=a=>{const n=j[P.value].recommend;le(e.value,"getRecommendRooms",{page:n.page}).then(l=>{if(n.list.value=n.list.value.concat(l.list),n.hasMore=l.hasMore,K[e.value]||(K[e.value]=l.cookie),!n.hasMore)return a("finshed");n.page++,a("normal")},()=>a("loaderror"))};return(a,n)=>{const l=st,i=ot,r=ze,u=Pe;return y(),V(u,{active:v(P),"onUpdate:active":n[0]||(n[0]=f=>ce(P)?P.value=f:null),link:!0,"pt-1":""},{default:O(()=>[(y(!0),b($,null,X(v(j),f=>(y(),V(r,{href:`/${f.id}`,key:f.id,title:f.name,"pos-relative":""},{default:O(()=>[M(i,{onLoad:s,"h-full":""},{default:O(()=>[M(l,{list:f.recommend.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["href","title"]))),128))]),_:1},8,["active"])}}}),Rs=Q({__name:"switch",props:{value:{type:Boolean,required:!0},valueModifiers:{}},emits:["update:value"],setup(t){const e=Ue(t,"value");return(s,a)=>(y(),b("div",{"pos-relative":"",style:{transition:"background-color .3s"},onClick:a[0]||(a[0]=()=>e.value=!e.value),"w-12":"","inline-block":"","cursor-pointer":"","rounded-6":"","h-6":"",class:L([e.value?"bg-amber":"bg-gray-4"])},[c("div",{"w-6":"","h-full":"","rounded-6":"","bg-white":"",style:xe([{transition:"transform .3s"},e.value?"transform:translateX(1.5rem)":""])},null,4)],2))}}),Bs={"rounded-4":"",flex:"","bg-gray-7":"","w-min":"","p-2":"","py-1":"","gap-2":""},Vs=Q({__name:"stepper",props:Be({max:{},min:{},step:{}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(t){const e=t,s=Ue(t,"value"),a=()=>s.value=Math.min(s.value+e.step,e.max),n=()=>s.value=Math.max(s.value-e.step,e.min);return(l,i)=>(y(),b("div",Bs,[c("div",{class:"i-ri-subtract-fill",onClick:n}),c("div",null,T(s.value),1),c("div",{class:"i-ri-add-fill",onClick:a})]))}});function Us(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}const Ze=Us(),Ps=t=>Ze?t.touches==null?t:t.touches[0]||t.changedTouches[0]:t,zs=Q({__name:"slider",props:Be({max:{default:100},min:{default:0},width:{default:30},height:{default:100}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(t){const e=t,s=Ue(t,"value"),a=k(),n=e.width<e.height;let l;const i=m=>{m.stopPropagation(),f(m),document.addEventListener("mousemove",f,!0),document.addEventListener("mouseup",p,!0)},r=z(()=>(s.value-e.min)/(e.max-e.min)*100),u=z(()=>{const m=100-r.value,h=`top:${m}%`,E=`left:${m}%`;return n?{loaded:h,indicator:h}:{loaded:`${E};transform:translateX(-100%)`,indicator:E}}),f=m=>{m.stopPropagation(),m=Ps(m);const E=100-(Math.min(n?l.height:l.width,Math.max(0,n?m.clientY-l.y:m.clientX-l.x))/(n?l.height:l.width)*100|0);s.value=((e.max-e.min)*E|0)/100+e.min|0},p=m=>{m.stopPropagation(),document.removeEventListener("mousemove",f,!0),document.removeEventListener("mouseup",p,!0)};return Ce(()=>{l=a.value.getBoundingClientRect(),a.value.addEventListener("mousedown",i,!0)}),tt(()=>{a.value.removeEventListener("mousedown",i,!0)}),(m,h)=>(y(),b("div",{"cursor-pointer":"",style:xe({width:`${e.width}px`,height:`${e.height}px`}),class:L(n?" py-4 ":"px-4"),flex:"","justify-center":""},[c("div",{"w-full":"","h-full":"","pos-relative":"",flex:"","justify-center":"","items-center":"",ref_key:"root",ref:a,onClick:f},[c("div",{"bg-gray":"","pos-relative":"","overflow-hidden":"",class:L(n?"h-full w-2px":"w-full h-2px")},[c("div",{"w-full":"","bg-amber":"","h-full":"","pos-absolute":"",style:xe(v(u).loaded)},null,4)],2),c("div",{"pos-absolute":"","w-12px":"","h-12px":"","bg-amber":"","rounded-2":"",style:xe(v(u).indicator),class:L(n?"-mt-6px":"-ml-6px")},null,6)],512)],6))}}),Fs={key:0,"z-1":"",fixed:"","top-0":"","bottom-0":"","left-0":"","right-0":"","bg-transparent":"","data-index":"-1"},$s={"p-1":"","data-index":"-1","hover:text-amber":""},Ns={"text-center":"","z-1":"","pos-absolute":"","top-0":"",class:"left-50%","w-max":"",style:{transform:"translate3d(-50%,-100%,0)"}},Ds=["data-index"],Gs=Q({__name:"select",props:Be(["list"],{active:{required:!0},activeModifiers:{}}),emits:["update:active"],setup(t){const e=Ue(t,"active"),s=k(!1),a=n=>{const l=n.target.dataset.index;l&&(l!="-1"&&(e.value=parseInt(l)),s.value=!s.value)};return(n,l)=>(y(),b("div",{"inline-block":"","pos-relative":"",onClick:a,"cursor-pointer":"","text-center":""},[v(s)?(y(),b("div",Fs)):ue("",!0),c("div",$s,T(t.list[e.value]),1),B(c("div",Ns,[(y(!0),b($,null,X(t.list,(i,r)=>(y(),b("div",{"data-index":r,class:L({"text-amber":r==e.value}),"p-1":"","hover:text-amber":""},T(i),11,Ds))),256))],512),[[Z,v(s)]])]))}}),Ot="data:image/png;base64,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",jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAArlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8tivQqAAAAOXRSTlMAQL+AVSFwReurxLHcZuZhaxvx9dKPfhIHXc6LUC4LeVmgOMiFNCbXm5N04LeoSzz7pBYru5YPA5jd4ld+AAAKR0lEQVR42uzba3OiMBQG4INXvKGiUuttvaPVarW27vv//9h21umCJlZOBMPO8Hy2Dm+TcMIJUiKRSCQSiUQikUj8p8bL1JdMm5RtXr++YGeQVpkUTswlqUm7OOmkSZ8MPAW1HPDoS5KBX0EtRwySHMs40yKuCs5tSIseLmSIZ2biXIm0KOGCWyeWAxCLIYFgRBxTCJakA0QV1swUrUkHiKx3CipbhuiVdICAcw/eQWJKOpQgkaNgXvAlJou9B4nGjIIw3iBRJC2OZaiu18EEMhnSIwcZh25bQuaDdClAJk+3PEOmOCBd3k1IFNu3/syChD0jfSqQ6arc7lAlnXaQ6dFPHMi0SKvsChLNPV23gUzqSHpVIfObrto3IWH3SbcRZJ6Znx+SdvUyJFZZkqtBpksxMITMjqTGDUikKBY+IFMjiXYKEvacYuGpCQmzT6JuXBfISQ8yTRIMY7dA2vV+PlNLT7vLxei1sD5AJiUoSz9Weh0tp07tuWfM5vXPIz1CNl/pFiZlGxFqmOVmsdCt5LMUjf7LGg9WqryHnqLVhBadVp/CM2+9QZu31pzCUZ/a0Mqe1ikEWxfalYd0twxioUV3chATE7pLCvFBd5ggRsqk7IBYWas3d5kaljtJBTRxrQaYCqSkCyn77FoPhUXLyVV7xiz71Cam9lN2ZvSqOae1KBxSPkXXDO/etYXI/TDq9CDjXAGCHvGtcWk0psfavuJC55O4arhQytPjZex7J9d+hTNWjbSYr3Buc9+AFLKkyxpnXu8q6QXSaIEzY+Iw4pPjsp4t1XtVnSfSKg8/mzPL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",Ye=window.Flv,Qs=window.pako.ungzip;function Ws(t){return Js(yt(t))}function Js(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{let a=gt(t);(e.messagesList||(e.messagesList=[])).push(Ys(t)),t.limit=a;break}case 8:{e.heartbeatDuration=ae(t,!0);break}case 9:{e.needAck=!!J(t);break}default:Ie(t,s&7)}}return e}function Ys(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.method=de(t,U(t));break}case 2:{e.payload=Nt(t,U(t));break}case 3:{e.msgId=ae(t,!1);break}case 4:{e.msgType=U(t);break}case 5:{e.offset=ae(t,!1);break}case 6:{e.needWrdsStore=!!J(t);break}case 7:{e.wrdsVersion=ae(t,!1);break}case 8:{e.wrdsSubKey=de(t,U(t));break}default:Ie(t,s&7)}}return e}function qs(t){return Hs(yt(t))}function Hs(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 2:{let a=gt(t);e.user=Zs(t),t.limit=a;break}case 3:{e.content=de(t,U(t));break}default:Ie(t,s&7)}}return e}function Zs(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 3:{e.nickName=de(t,U(t));break}default:Ie(t,s&7)}}return e}function Ks(t){let e=$t();return Xs(t,e),an(e)}function Xs(t,e){let s=t.seqId;s!==void 0&&(H(e,8),qe(e,s));let a=t.logId;a!==void 0&&(H(e,16),qe(e,a));let n=t.service;n!==void 0&&(H(e,24),qe(e,n));let l=t.method;l!==void 0&&(H(e,32),qe(e,l));let i=t.headersList;if(i!==void 0)for(let p of i){H(e,42);let m=$t();on(p,m),H(e,m.limit),cn(e,m),rn(m)}let r=t.payloadEncoding;r!==void 0&&(H(e,50),et(e,r));let u=t.payloadType;u!==void 0&&(H(e,58),et(e,u));let f=t.payload;f!==void 0&&(H(e,66),H(e,f.length),un(e,f))}function en(t){return tn(yt(t))}function tn(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.seqId=ae(t,!0);break}case 2:{e.logId=ae(t,!0);break}case 3:{e.service=ae(t,!0);break}case 4:{e.method=ae(t,!0);break}case 5:{let a=gt(t);(e.headersList||(e.headersList=[])).push(sn(t)),t.limit=a;break}case 6:{e.payloadEncoding=de(t,U(t));break}case 7:{e.payloadType=de(t,U(t));break}case 8:{e.payload=Nt(t,U(t));break}default:Ie(t,s&7)}}return e}function on(t,e){let s=t.key;s!==void 0&&(H(e,10),et(e,s));let a=t.value;a!==void 0&&(H(e,18),et(e,a))}function sn(t){let e={};e:for(;!Se(t);){let s=U(t);switch(s>>>3){case 0:break e;case 1:{e.key=de(t,U(t));break}case 2:{e.value=de(t,U(t));break}default:Ie(t,s&7)}}return e}function gt(t){let e=U(t),s=t.limit;return t.limit=t.offset+e,s}function Ie(t,e){switch(e){case 0:for(;J(t)&128;);break;case 2:ut(t,U(t));break;case 5:ut(t,4);break;case 1:ut(t,8);break;default:throw new Error("Unimplemented type: "+e)}}let nn=new Float32Array(1);new Uint8Array(nn.buffer);let ln=new Float64Array(1);new Uint8Array(ln.buffer);let Ft=[];function $t(){const t=Ft.pop();return t?(t.offset=t.limit=0,t):{bytes:new Uint8Array(64),offset:0,limit:0}}function rn(t){Ft.push(t)}function yt(t){return{bytes:t,offset:0,limit:t.length}}function an(t){let e=t.bytes,s=t.limit;return e.length===s?e:e.subarray(0,s)}function ut(t,e){if(t.offset+e>t.limit)throw new Error("Skip past limit");t.offset+=e}function Se(t){return t.offset>=t.limit}function Fe(t,e){let s=t.bytes,a=t.offset,n=t.limit,l=a+e;if(l>s.length){let i=new Uint8Array(l*2);i.set(s),t.bytes=i}return t.offset=l,l>n&&(t.limit=l),a}function wt(t,e){let s=t.offset;if(s+e>t.limit)throw new Error("Read past limit");return t.offset+=e,s}function Nt(t,e){let s=wt(t,e);return t.bytes.subarray(s,s+e)}function un(t,e){let s=Fe(t,e.length);t.bytes.set(e,s)}function de(t,e){let s=wt(t,e),a=String.fromCharCode,n=t.bytes,l="�",i="";for(let r=0;r<e;r++){let u=n[r+s],f,p,m,h;u&128?(u&224)===192?r+1>=e?i+=l:(f=n[r+s+1],(f&192)!==128?i+=l:(h=(u&31)<<6|f&63,h<128?i+=l:(i+=a(h),r++))):(u&240)==224?r+2>=e?i+=l:(f=n[r+s+1],p=n[r+s+2],((f|p<<8)&49344)!==32896?i+=l:(h=(u&15)<<12|(f&63)<<6|p&63,h<2048||h>=55296&&h<=57343?i+=l:(i+=a(h),r+=2))):(u&248)==240?r+3>=e?i+=l:(f=n[r+s+1],p=n[r+s+2],m=n[r+s+3],((f|p<<8|m<<16)&12632256)!==8421504?i+=l:(h=(u&7)<<18|(f&63)<<12|(p&63)<<6|m&63,h<65536||h>1114111?i+=l:(h-=65536,i+=a((h>>10)+55296,(h&1023)+56320),r+=3))):i+=l:i+=a(u)}return i}function et(t,e){let s=e.length,a=0;for(let i=0;i<s;i++){let r=e.charCodeAt(i);r>=55296&&r<=56319&&i+1<s&&(r=(r<<10)+e.charCodeAt(++i)-56613888),a+=r<128?1:r<2048?2:r<65536?3:4}H(t,a);let n=Fe(t,a),l=t.bytes;for(let i=0;i<s;i++){let r=e.charCodeAt(i);r>=55296&&r<=56319&&i+1<s&&(r=(r<<10)+e.charCodeAt(++i)-56613888),r<128?l[n++]=r:(r<2048?l[n++]=r>>6&31|192:(r<65536?l[n++]=r>>12&15|224:(l[n++]=r>>18&7|240,l[n++]=r>>12&63|128),l[n++]=r>>6&63|128),l[n++]=r&63|128)}}function cn(t,e){let s=Fe(t,e.limit),a=t.bytes,n=e.bytes;for(let l=0,i=e.limit;l<i;l++)a[l+s]=n[l]}function J(t){return t.bytes[wt(t,1)]}function Lt(t,e){let s=Fe(t,1);t.bytes[s]=e}function U(t){let e=0,s=0,a;do a=J(t),e<32&&(s|=(a&127)<<e),e+=7;while(a&128);return s}function H(t,e){for(e>>>=0;e>=128;)Lt(t,e&127|128),e>>>=7;Lt(t,e)}function ae(t,e){let s=0,a=0,n=0,l;return l=J(t),s=l&127,l&128&&(l=J(t),s|=(l&127)<<7,l&128&&(l=J(t),s|=(l&127)<<14,l&128&&(l=J(t),s|=(l&127)<<21,l&128&&(l=J(t),a=l&127,l&128&&(l=J(t),a|=(l&127)<<7,l&128&&(l=J(t),a|=(l&127)<<14,l&128&&(l=J(t),a|=(l&127)<<21,l&128&&(l=J(t),n=l&127,l&128&&(l=J(t),n|=(l&127)<<7))))))))),{low:s|a<<28,high:a>>>4|n<<24,unsigned:e}}function qe(t,e){let s=e.low>>>0,a=(e.low>>>28|e.high<<4)>>>0,n=e.high>>>24,l=n===0?a===0?s<16384?s<128?1:2:s<1<<21?3:4:a<16384?a<128?5:6:a<1<<21?7:8:n<128?9:10,i=Fe(t,l),r=t.bytes;switch(l){case 10:r[i+9]=n>>>7&1;case 9:r[i+8]=l!==9?n|128:n&127;case 8:r[i+7]=l!==8?a>>>21|128:a>>>21&127;case 7:r[i+6]=l!==7?a>>>14|128:a>>>14&127;case 6:r[i+5]=l!==6?a>>>7|128:a>>>7&127;case 5:r[i+4]=l!==5?a|128:a&127;case 4:r[i+3]=l!==4?s>>>21|128:s>>>21&127;case 3:r[i+2]=l!==3?s>>>14|128:s>>>14&127;case 2:r[i+1]=l!==2?s>>>7|128:s>>>7&127;case 1:r[i]=l!==1?s|128:s&127}}var dn=function(t,e){t.constructor==String?t=hn(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var s=gn(t),a=8*t.length,n=1732584193,l=-271733879,i=-1732584194,r=271733878,u=0;u<s.length;u++)s[u]=(s[u]<<8|s[u]>>>24)&16711935|(s[u]<<24|s[u]>>>8)&4278255360;s[a>>>5]|=128<<a%32,s[(a+64>>>9<<4)+14]=a;for(var f=vn,p=fn,m=pn,h=mn,u=0;u<s.length;u+=16){var E=n,Y=l,C=i,_=r;n=f(n,l,i,r,s[u+0],7,-680876936),r=f(r,n,l,i,s[u+1],12,-389564586),i=f(i,r,n,l,s[u+2],17,606105819),l=f(l,i,r,n,s[u+3],22,-1044525330),n=f(n,l,i,r,s[u+4],7,-176418897),r=f(r,n,l,i,s[u+5],12,1200080426),i=f(i,r,n,l,s[u+6],17,-1473231341),l=f(l,i,r,n,s[u+7],22,-45705983),n=f(n,l,i,r,s[u+8],7,1770035416),r=f(r,n,l,i,s[u+9],12,-1958414417),i=f(i,r,n,l,s[u+10],17,-42063),l=f(l,i,r,n,s[u+11],22,-1990404162),n=f(n,l,i,r,s[u+12],7,1804603682),r=f(r,n,l,i,s[u+13],12,-40341101),i=f(i,r,n,l,s[u+14],17,-1502002290),l=f(l,i,r,n,s[u+15],22,1236535329),n=p(n,l,i,r,s[u+1],5,-165796510),r=p(r,n,l,i,s[u+6],9,-1069501632),i=p(i,r,n,l,s[u+11],14,643717713),l=p(l,i,r,n,s[u+0],20,-373897302),n=p(n,l,i,r,s[u+5],5,-701558691),r=p(r,n,l,i,s[u+10],9,38016083),i=p(i,r,n,l,s[u+15],14,-660478335),l=p(l,i,r,n,s[u+4],20,-405537848),n=p(n,l,i,r,s[u+9],5,568446438),r=p(r,n,l,i,s[u+14],9,-1019803690),i=p(i,r,n,l,s[u+3],14,-187363961),l=p(l,i,r,n,s[u+8],20,1163531501),n=p(n,l,i,r,s[u+13],5,-1444681467),r=p(r,n,l,i,s[u+2],9,-51403784),i=p(i,r,n,l,s[u+7],14,1735328473),l=p(l,i,r,n,s[u+12],20,-1926607734),n=m(n,l,i,r,s[u+5],4,-378558),r=m(r,n,l,i,s[u+8],11,-2022574463),i=m(i,r,n,l,s[u+11],16,1839030562),l=m(l,i,r,n,s[u+14],23,-35309556),n=m(n,l,i,r,s[u+1],4,-1530992060),r=m(r,n,l,i,s[u+4],11,1272893353),i=m(i,r,n,l,s[u+7],16,-155497632),l=m(l,i,r,n,s[u+10],23,-1094730640),n=m(n,l,i,r,s[u+13],4,681279174),r=m(r,n,l,i,s[u+0],11,-358537222),i=m(i,r,n,l,s[u+3],16,-722521979),l=m(l,i,r,n,s[u+6],23,76029189),n=m(n,l,i,r,s[u+9],4,-640364487),r=m(r,n,l,i,s[u+12],11,-421815835),i=m(i,r,n,l,s[u+15],16,530742520),l=m(l,i,r,n,s[u+2],23,-995338651),n=h(n,l,i,r,s[u+0],6,-198630844),r=h(r,n,l,i,s[u+7],10,1126891415),i=h(i,r,n,l,s[u+14],15,-1416354905),l=h(l,i,r,n,s[u+5],21,-57434055),n=h(n,l,i,r,s[u+12],6,1700485571),r=h(r,n,l,i,s[u+3],10,-1894986606),i=h(i,r,n,l,s[u+10],15,-1051523),l=h(l,i,r,n,s[u+1],21,-2054922799),n=h(n,l,i,r,s[u+8],6,1873313359),r=h(r,n,l,i,s[u+15],10,-30611744),i=h(i,r,n,l,s[u+6],15,-1560198380),l=h(l,i,r,n,s[u+13],21,1309151649),n=h(n,l,i,r,s[u+4],6,-145523070),r=h(r,n,l,i,s[u+11],10,-1120210379),i=h(i,r,n,l,s[u+2],15,718787259),l=h(l,i,r,n,s[u+9],21,-343485551),n=n+E>>>0,l=l+Y>>>0,i=i+C>>>0,r=r+_>>>0}return Dt([n,l,i,r])};const vn=function(t,e,s,a,n,l,i){var r=t+(e&s|~e&a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},fn=function(t,e,s,a,n,l,i){var r=t+(e&a|s&~a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},pn=function(t,e,s,a,n,l,i){var r=t+(e^s^a)+(n>>>0)+i;return(r<<l|r>>>32-l)+e},mn=function(t,e,s,a,n,l,i){var r=t+(s^(e|~a))+(n>>>0)+i;return(r<<l|r>>>32-l)+e},hn=function(t){for(var e=[],s=0;s<t.length;s++)e.push(255&t.charCodeAt(s));return e},gn=function(t){for(var e=[],s=0,a=0;s<t.length;s++,a+=8)e[a>>>5]|=t[s]<<24-a%32;return e},yn=function(t){for(var e=[],s=0;s<32*t.length;s+=8)e.push(t[s>>>5]>>>24-s%32&255);return e},Dt=function(t){if(t.constructor==Number)return 16711935&Rt(t,8)|4278255360&Rt(t,24);for(var e=0;e<t.length;e++)t[e]=Dt(t[e]);return t},Rt=function(t,e){return t<<e|t>>>32-e},wn=function(t){for(var e=[],s=0;s<t.length;s++)e.push((t[s]>>>4).toString(16)),e.push((15&t[s]).toString(16));return e.join("")},xn=(t,e)=>{const a=`,live_id=1,aid=6383,version_code=180800,webcast_sdk_version=1.0.14-beta.0,room_id=${t},sub_room_id=,sub_channel_id=,did_rule=3,user_unique_id=${e},device_platform=web,device_type=,ac=,identity=audience`.substring(1),n=dn(a),l=yn(n),i=wn(l);return window.byted_acrawler.frontierSign({"X-MS-STUB":i})["X-Bogus"]},kn=(t,e)=>{const s=k();let a,n=new ResizeObserver(l=>{clearTimeout(a),a=setTimeout(()=>{s.value.resize()},500)});return Ce(()=>{n.observe(t.value),e.canvas=t.value,s.value=new bn(e)}),tt(()=>{n.unobserve(t.value),clearTimeout(a)}),s};class bn{constructor(e){W(this,"canvas");W(this,"colors");W(this,"ctx");W(this,"isdraw");W(this,"lines");W(this,"textList");W(this,"fontSize");W(this,"font");W(this,"rows");W(this,"gap");W(this,"speed");W(this,"opacity");W(this,"opacityStr");this.isdraw=!1,this.textList=[],this.canvas=e.canvas,this.ctx=this.canvas.getContext("2d"),this.speed=e.speed||2,this.setFont(e.fontSize||16),this.setGap(e.gap||8),this.setRows(e.rows||4),this.setOpacity(e.opacity||100),this.setColors(e.colors||["FFFFFF","#00FF80","#00FFFF","#FF00FF","#8000FF","#FF9933"]),this.resize()}resize(){this.canvas.width=this.canvas.getBoundingClientRect().width*window.devicePixelRatio,this.canvas.height=this.canvas.getBoundingClientRect().height*window.devicePixelRatio,this.initRows()}setOpacity(e){this.opacity=e;const s=Math.floor(2.55*e).toString(16);this.opacityStr=s.length==1?"0"+s:s}setRows(e){this.rows=e}setSpeed(e){this.speed=e}setFont(e){this.ctx.textBaseline="top",this.fontSize=e,this.font=`${e}px sans-serif`}setGap(e){this.gap=e}setColors(e){this.colors=e}clean(){this.textList=[],this.isdraw=!1}destory(){this.lines=[],this.clean()}add(e){const s=this.getLine();if(s==-1)return;const a=Math.ceil(this.ctx.measureText(e).width),n=this.canvas.width+a;this.lines[s].width=n,this.textList.push({value:e,width:a,line:s,left:this.canvas.width,color:this.colors[Math.floor(Math.random()*this.colors.length)]}),!this.isdraw&&(this.isdraw=!0,this.draw())}getLine(){let e=-1,s=this.lines.length;for(;++e<s;)if(this.lines[e].width==this.canvas.width)return e;return-1}initRows(){this.lines=[];let e=-1;const s=this.gap+this.fontSize;for(;++e<this.rows;)this.lines.push({top:this.gap+s*e,width:this.canvas.width})}draw(){this.ctx.textBaseline="top",this.ctx.font=this.font,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);let e=-1,s=this.textList.length;const a=[];for(;++e<s;){const n=this.textList[e],l=n.left+n.width;if(l<=0)continue;this.ctx.fillStyle=n.color+this.opacityStr;const i=this.lines[n.line];i&&(this.ctx.fillText(n.value,n.left,this.lines[n.line].top),n.left-=this.speed,a.push(n),i.width=Math.max(l,this.canvas.width))}this.textList=a,a.length==0?this.isdraw=!1:requestAnimationFrame(this.draw.bind(this))}}const Cn={"w-full":"","h-full":"",flex:"","flex-col":"","lg:flex-row":"","box-border":"","md:pb-2":""},_n={"lg:grow-5":"",flex:"","flex-col":""},In={flex:"","p-2":"","pt-1":"","gap-2":"","text-lg":"","md:pr-3":""},Sn={"hover:text-amber":"",grow:"","w-25":"","box-border":"","text-center":"",truncate:"","text-4":"","md:text-5":"","m-0":"","pr-6":"","sm:pr-2":"","lg:pr-0":""},An={"aspect-ratio-video":""},Mn={"w-full":"","h-full":"","pos-absolute":"","top-0":"","z-1":"",flex:"","justify-center":"","items-center":"","text-6":""},Tn=["src"],En={key:0},On={class:"flex items-center gap-4 p-1"},jn={class:"flex items-center gap-4 p-1"},Ln={key:1,"h-0":"","w-0":""},Rn={grow:"","min-h-50":"","lg:grow-0":"","lg:w-80":"","xl:w-100":"",flex:"","flex-col":"","lg:pr-0":"","pt-3":"","lg-pt-12":"","lg:ml-3":"","box-border":"","lg:b-l-solid":"",b:"","lg:b-l-gray-7":"","lg:pl-3":""},Bn={flex:"","items-center":"","line-height-none":"","gap-4":"",b:"","b-y-solid":"","py-3":"","b-gray-7":"","px-4":""},Vn=["src"],Un={"grow-1":"","w-20":""},Pn={"h-4":"",truncate:""},zn={"h-4":"",flex:"","text-3":"","items-center":"","gap-1":""},Fn=["src"],$n={"pos-absolute":"","top-0":"","right-4":"","text-4":"",flex:"","flex-col":"","gap-3":""},Nn=["src"],Dn=["href"],Gn=["data-id","data-site","href"],Qn={"w-5":"","h-5":"","rounded-5":"",alt:""},Wn={flex:"","flex-col":"",b:"","b-solid":"","b-gray-6":"","rounded-2":"","px-2":""},Jn={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},Yn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},qn={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},Hn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Zn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Kn={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},Xn={flex:"","flex-col":"",b:"","b-solid":"","b-gray-6":"","rounded-2":"","px-2":""},el={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},tl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},ol={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},sl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},nl={flex:"","flex-wrap":"",shadow:"",blur:"","bg-dark":"","p-2":"","box-border":"",b:"","b-solid":"","b-gray-7":"",style:{"box-shadow":"0 6px 15px 0 rgba(0, 0, 0, .5)"},rounded:""},ll=["data-color"],il={"p-3":"","bg-sm":"",flex:"","justify-between":"","items-center":""},rl=Q({__name:"play",setup(t){let e,s,a;const n=re({follow:!1,qn:0,line:0,notice:null,paused:!0,muted:!1,fullscreen:!1,webscreen:!1,showController:!0,pictureInPicture:!1}),l=mt(),i=k(),r=k(),u=k(),f=fo(),p=z(()=>f.value&&f.value.stream.length>0?f.value.stream.map(g=>g.name):[]),m=z(()=>p.value.length>0?f.value.stream[n.qn].lines.map(g=>g.name):[]),h=z(()=>m.value.length>0?f.value.stream[n.qn].lines[n.line].url:""),E=z(()=>j.map(g=>Object.values(g.follows)).flat().sort(g=>g.status?-1:0));oe(h,()=>{var g;if(h.value){if(n.flv){(g=n.flv)==null||g.switchURL(h.value,l.meta.site.id!="bilibili");return}if(Ye!=null&&Ye.isSupported("video")){const d=new Ye({media:r.value,seamlesslyReload:!0,isLive:!0,retryCount:0});return d.load(h.value),n.flv=d}return n.notice="不支持 flv",clearTimeout(s)}});const Y=()=>{u.value.scrollTop=0,Ae=0,u.value.innerHTML=""};let C,_=0,S=!0;const $e=k(),ee=kn($e,{gap:w.canvasGap,rows:w.canvasRows,speed:w.canvasSpeed,opacity:w.canvasOpacity,colors:w.canvasColorOpen?w.colors:["#ffffff"]}),ve=[];let fe;function se(){fe||(fe=setTimeout(()=>{let g=-1;const d=ve.length>5?5:ve.length;for(u.value.style.display="none";++g<d;)u.value.appendChild(ve[g]);u.value.style.display="block",ve.splice(0,5),S&&(u.value.scrollTop=u.value.scrollHeight),fe=void 0},200))}const N=(g,d)=>{var he;if(_++,w.blockOpen&&Et.value.length&&Et.value.some(Ee=>Ee.test(d))||(_%(w.sideClean||100)==0&&(u.value.innerHTML="",Ae=0),w.canvasOpen&&((he=ee.value)==null||he.add(d)),!we.value||!w.sideOpen))return;const I=document.createElement("div"),{sideColorOpen:A,sideFontsize:R,sideGap:D,colors:te}=w;I.style.margin=`${D}px 0`,I.style.fontSize=`${R}px`,A&&(I.style.color=te[Math.floor(Math.random()*te.length)]);const me=document.createElement("span");me.style.opacity="0.5",me.appendChild(document.createTextNode(g+":"));const ge=document.createElement("span");ge.appendChild(document.createTextNode(d)),I.appendChild(me),I.appendChild(ge),ve.push(I),se()};let Ae=0;const Me=()=>{if(u.value.scrollTop>=Ae)return Ae=u.value.scrollTop;Ae=u.value.scrollTop,S=!1,u.value.removeEventListener("scroll",Me)},Wt=()=>{S=!0,u.value.scrollTop=u.value.scrollHeight,u.value.addEventListener("scroll",Me,{passive:!1})};let ne;const xt=async()=>{var d;if(!f.value||C||!w.canvasOpen&&!w.sideOpen)return;let g=!0;if(f.value.siteId=="huya"){const I=(d=f.value)==null?void 0:d.ws;if(!I)return;C=new WebSocket(I),C.onopen=()=>{clearInterval(ne),N("系统","开始连接弹幕服务器"),u.value.addEventListener("scroll",Me),C==null||C.send(JSON.stringify({command:"subscribeNotice",data:["getMessageNotice"],reqId:Date.now().toString()})),ne=setInterval(()=>{C.send("ping")},45e3)},C.onmessage=A=>{if(g)return N("系统","弹幕服务器连接成功"),g=!1;const{sendNick:R,content:D}=JSON.parse(A.data).data;N(R,D)},C.onerror=()=>{clearInterval(ne),N("系统","弹幕服务器连接失败")}}else if(f.value.siteId=="douyu")C=new WebSocket("wss://danmuproxy.douyu.com:8506"),C.onopen=()=>{var I,A;clearInterval(ne),N("系统","开始连接弹幕服务器"),u.value.addEventListener("scroll",Me),C.send(Ne(`type@=loginreq/roomid@=${(I=f.value)==null?void 0:I.roomId}`)),C.send(Ne(`type@=joingroup/rid@=${(A=f.value)==null?void 0:A.roomId}/gid@=-9999`)),ne=setInterval(()=>{C.send(Ne("type@=mrkl/"))},45e3)},C.onmessage=async({data:I})=>{g&&(N("系统","弹幕服务器连接成功"),g=!1),(await I.text()).split(/type@=chatmsg\//).forEach(D=>{const te=D.match(/nn@=(.*)\/txt@=(.*)\/cid/);te!=null&&N(te[1],te[2])})},C.onerror=()=>{clearInterval(ne),N("系统","弹幕服务器连接失败")};else if(f.value.siteId=="douyin"){const I=f.value.ws.split(","),A=I[0],R=I[1],D=xn(A,R);let te=`wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/?room_id=${A}&compress=gzip&version_code=180800&webcast_sdk_version=1.0.14-beta.0&live_id=1&did_rule=3&user_unique_id=${R}&identity=audience&signature=${D}&aid=6383&device_platform=web&browser_language=zh-CN&browser_platform=Win32&browser_name=Mozilla&browser_version=5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F126.0.0.0+Safari%2F537.36+Edg%2F126.0.0.0`;C=new WebSocket(te),C.binaryType="arraybuffer",C.onopen=()=>{clearInterval(ne),N("系统","开始连接弹幕服务器"),console.log(C),u.value.addEventListener("scroll",Me),ne=setInterval(()=>{(C==null?void 0:C.readyState)==1&&C.send(Ks({payloadType:"bh"}))},1e4)},C.onmessage=me=>{g&&(N("系统","弹幕服务器连接成功"),g=!1);const ge=en(new Uint8Array(me.data)),he=Qs(ge.payload),ie=Ws(new Uint8Array(he)).messagesList;if(!ie||ie.length==0)return;const Qe=ie.length;let ye=-1;for(;++ye<Qe;){if(ie[ye].method!="WebcastChatMessage")continue;const x=qs(ie[ye].payload);N(x.user.nickName,x.content)}},C.onerror=function(){console.log(this),clearInterval(ne),N("系统","弹幕服务器连接失败")}}},kt=new TextEncoder;function Ne(g){let d=kt.encode(g);const I=9+d.byteLength,A=[I,0,0,.1,I,0,0,0,177,2,0,0];d=kt.encode(g+"\0");const R=new Uint8Array(12+d.byteLength);return R.set(A),R.set(d,12),R.buffer}const nt=()=>{clearInterval(ne),C&&(C.onmessage=null,It=="douyu"?C.send(Ne("type@=logout")):C.close(),C=null,_=0,u.value&&De==l.fullPath&&N("系统","弹幕服务器断开连接"))};oe(f,()=>xt()),oe([()=>w.sideOpen,()=>w.canvasOpen],()=>{!w.sideOpen&&!w.canvasOpen&&nt(),C||xt()});const lt=()=>{const{site:g,id:d}=l.meta,I=l.meta.site.follows[d];I&&(f.value=I,n.follow=!0),clearInterval(ne),clearTimeout(s),n.notice="加载中...",at(()=>{N("系统","开始获取直播间信息")}),le(g.id,"getRoomDetail",{id:d}).then(A=>{if(f.value=A,n.follow&&Le(A),at(()=>N("系统","直播间信息获取成功")),!A.status)return n.notice="未开播!";document.title=f.value.title},A=>{n.notice=A,at(()=>N("系统","直播间信息获取失败"))}).finally(()=>clearTimeout(s))},Jt=()=>{if(!f.value)return;const{id:g}=l.meta.site;n.follow=n.follow?_o(g,f.value.roomId):Le(f.value)},it=()=>{!f.value||!f.value.status||(clearTimeout(e),e=setTimeout(()=>{n.paused?r.value.play():r.value.pause()},200))},bt=()=>{clearTimeout(e),n.fullscreen=!n.fullscreen,document.fullscreenElement?document.exitFullscreen():i.value.requestFullscreen()},pe=()=>{clearTimeout(a),n.showController=!0,a=setTimeout(()=>{var g,d;(g=r.value)!=null&&g.paused||!((d=r.value)!=null&&d.played.length)||(n.showController=!1)},3e3)},Yt=()=>{clearTimeout(e),n.webscreen=!n.webscreen,n.fullscreen&&(n.fullscreen=!1,document.exitFullscreen())},qt=()=>{n.paused=!1,pe()},Ht=()=>{n.paused=!0,pe()},Ct=g=>{if(h.value)switch(g.code){case"ArrowDown":return We(!1);case"ArrowUp":return We(!0);case"Space":return it()}},Zt=()=>{var g;clearTimeout(e),clearTimeout(a),clearTimeout(s),clearTimeout(fe),nt(),document.title="Lemon live",document.removeEventListener("keydown",Ct),n.pictureInPicture||(g=n.flv)==null||g.destroy()};lt();const _t=ht();let De=l.fullPath;Ce(()=>{i.value.style.filter=G.value==100?"":`brightness(${G.value/100})`,r.value.volume=q.value/100,n.muted=r.value.muted,r.value.addEventListener("canplay",()=>{n.notice=null}),Ze||(i.value.addEventListener("mousemove",pe),document.addEventListener("keydown",Ct)),document.pictureInPictureElement&&document.exitPictureInPicture(),r.value.addEventListener("leavepictureinpicture",()=>{var g;if(!/play/.test(l.path))return _t.push(De);if(l.fullPath==De)return n.pictureInPicture=!1;(g=n.flv)==null||g.destroy()})});let It=l.meta.site.id;To(g=>{const{siteid:d,id:I}=g.params,A=ke.findIndex(R=>R==d);return A==-1?{name:"404"}:(g.meta.site=j[A],g.meta.id=I,n.flv&&(n.flv.destroy(),n.flv=void 0),n.qn=0,n.line=0,n.follow=!1,f.value=void 0,!0)}),oe(()=>l.params,()=>{var g;clearTimeout(fe),nt(),Y(),(g=ee.value)==null||g.destory(),It=l.meta.site.id,De=l.fullPath,lt()}),tt(Zt);const Kt=()=>Promise.all(Xe(j,ct)),Xt=async g=>{g==1&&await Kt()},eo=()=>n.showController?it():pe(),to=()=>{n.pictureInPicture=!n.pictureInPicture,document.pictureInPictureElement?document.exitPictureInPicture():r.value.requestPictureInPicture()},oo=g=>{const d=g.target.dataset.color;if(!d)return;const I=w.colors.findIndex(A=>A==d);if(I==-1)return w.colors.push(d);w.colors.length!=1&&w.colors.splice(I,1)};oe(()=>w.colors,()=>{var g;return(g=ee.value)==null?void 0:g.setColors(w.colors)}),oe(()=>w.canvasSpeed,()=>{var g;return(g=ee.value)==null?void 0:g.setSpeed(w.canvasSpeed)}),oe(()=>w.canvasOpacity,()=>{var g;return(g=ee.value)==null?void 0:g.setOpacity(w.canvasOpacity)}),oe(()=>w.canvasColorOpen,()=>{var g;return(g=ee.value)==null?void 0:g.setColors(w.canvasColorOpen?w.colors:["#ffffff"])}),Ve(()=>{var g,d,I,A;(g=ee.value)==null||g.setGap(w.canvasGap),(d=ee.value)==null||d.setFont(w.canvasFontsize),(I=ee.value)==null||I.setRows(w.canvasRows),(A=ee.value)==null||A.resize()}),oe(q,()=>{pe(),clearTimeout(s),n.notice=`当前音量 ${q.value}%`,r.value.volume=q.value/100,be("volume",q.value),s=setTimeout(()=>n.notice=null,2e3)}),oe(G,()=>{pe(),clearTimeout(s),n.notice=`当前亮度 ${G.value}%`,i.value.style.filter=G.value==100?"":`brightness(${G.value/100})`,be("brightness",G.value),s=setTimeout(()=>n.notice=null,2e3)});let rt;const Ge=k(),so=g=>{clearTimeout(rt),rt=setTimeout(()=>{const d=Te("id",g.target,Ge.value);if(!d)return;const I=Te("site",g.target,Ge.value);_t.push(`/${I}/play/${d}`)},300)},no=g=>{var R;clearTimeout(rt);const d=Te("id",g.target,Ge.value);if(!d)return;const A=`/${Te("site",g.target,Ge.value)}/play/${d}`;(R=window.open(A,"_blank"))==null||R.location},Te=(g,d,I)=>{if(d==I)return null;const A=d.dataset[g];return A||Te(g,d.parentElement,I)},lo=()=>G.value=100;oe(()=>n.muted,()=>{pe(),clearTimeout(s),n.notice=n.muted?"已静音":"已开启声音",s=setTimeout(()=>n.notice=null,2e3)});const io=()=>{if(r.value.muted){r.value.muted=!1,n.muted=!1;return}r.value.muted=!0,n.muted=!0};return(g,d)=>{var he,Ee,ie,Qe,ye;const I=Gs,A=zs,R=ze,D=Vs,te=Rs,me=Pe,ge=vt("lazy");return y(),b("div",Cn,[c("div",_n,[c("div",In,[c("div",{"hover:text-amber":"",onClick:d[0]||(d[0]=(...x)=>g.$router.back&&g.$router.back(...x)),class:"i-ri-arrow-left-line"}),c("h1",Sn,T((he=v(f))==null?void 0:he.title),1),c("div",{onClick:d[1]||(d[1]=x=>we.value=!v(we)),hidden:"","lg:block":"",style:xe(v(we)?"transform:rotate(180deg)":"margin-right:1.5rem"),class:"i-ri-arrow-right-s-fill"},null,4)]),c("div",{ref_key:"player",ref:i,"md:rounded-6px":"","text-4":"","text-white":"",onContextmenu:d[19]||(d[19]=F(()=>{},["prevent"])),"bg-black":"","cursor-default":"",class:L({"cursor-none":!v(n).showController,"text-5":v(n).fullscreen,"text-5 !pos-fixed left-0 right-0 top-0 bottom-0 z-10 ":v(n).webscreen}),"pos-relative":"","w-full":"","overflow-hidden":"","select-none":"","h-full":"",onClick:eo,onDblclick:bt},[c("div",An,[c("video",{playsinline:"","webkit-playsinline":"","x5-video-player-type":"h5",autoplay:"",ref_key:"video",ref:r,"w-full":"","h-full":"","pos-absolute":"",onPlay:qt,onPause:Ht},null,544)]),B(c("div",Mn,[c("span",null,T(v(n).notice),1)],512),[[Z,v(n).notice]]),c("canvas",{ref_key:"canvas",ref:$e,"pos-absolute":"","top-0":"",width:"0",height:"0","w-full":"","h-full":"","z-1":""},null,512),B(c("div",{"pos-absolute":"","bottom-0":"","left-0":"","right-0":"","px-4":"","py-2":"","gap-3":"","z-20":"",flex:"","items-center":"",onClick:d[5]||(d[5]=F(()=>{},["stop"])),onDblclick:d[6]||(d[6]=F(()=>{},["stop"])),class:L({"py-3":v(n).fullscreen||v(n).webscreen}),"bg-black":"","bg-op-30":""},[c("div",{onClick:it,"hover:text-amber":"",class:L(v(n).paused?"i-ri-play-large-fill":"i-ri-pause-large-fill")},null,2),c("div",{"hover:text-amber":"",onClick:Jt,class:L(v(n).follow?"i-ri-heart-fill":"i-ri-heart-line")},null,2),c("div",{"hover:text-amber":"",onClick:lt,class:"i-ri-refresh-line"}),c("img",{"w-1.5em":"","cursor-pointer":"",onClick:d[2]||(d[2]=()=>v(w).canvasOpen=!v(w).canvasOpen),src:v(w).canvasOpen?v(Ot):v(jt)},null,8,Tn),d[33]||(d[33]=c("div",{grow:""},null,-1)),v(p).length?(y(),b("div",En,[M(I,{active:v(n).qn,"onUpdate:active":d[3]||(d[3]=x=>v(n).qn=x),list:v(p)},null,8,["active","list"]),M(I,{active:v(n).line,"onUpdate:active":d[4]||(d[4]=x=>v(n).line=x),list:v(m)},null,8,["active","list"]),v(Ze)?ue("",!0):(y(),b("div",{key:0,"ml-2":"","hover:text-amber":"",onClick:to,class:L(v(n).pictureInPicture?"i-ri-picture-in-picture-exit-line":"i-ri-picture-in-picture-2-line")},null,2))])):ue("",!0),c("div",{"hover:text-amber":"",onClick:Yt,class:"i-mdi-fit-to-screen"}),c("div",{"hover:text-amber":"",onClick:bt,class:L(v(n).fullscreen?"i-ri-fullscreen-exit-fill":"i-ri-fullscreen-fill")},null,2)],34),[[Z,v(n).showController]]),v(Ze)?B((y(),b("div",{key:0,class:L({"py-3":v(n).fullscreen||v(n).webscreen}),"pos-absolute":"","top-0":"","left-0":"","right-0":"","px-4":"","py-2":"","gap-3":"","z-20":"",flex:"","justify-between":"","bg-black":"","bg-op-30":"",onClick:d[11]||(d[11]=F(()=>{},["stop"])),onDblclick:d[12]||(d[12]=F(()=>{},["stop"]))},[c("div",On,[c("div",{onClick:d[7]||(d[7]=x=>v(Mt)(!1)),class:"i-ri-sun-line"}),c("div",null,T(v(G)),1),c("div",{onClick:d[8]||(d[8]=x=>v(Mt)(!0)),class:"i-ri-sun-fill"})]),B(c("div",{"flex-1":"","w-10":"",truncate:"","text-center":""},T((Ee=v(f))==null?void 0:Ee.title),513),[[Z,v(n).fullscreen]]),c("div",jn,[c("div",{onClick:d[9]||(d[9]=x=>v(We)(!1)),class:"i-ri-volume-down-fill"}),c("div",null,T(v(q)),1),c("div",{onClick:d[10]||(d[10]=x=>v(We)(!0)),class:"i-ri-volume-up-fill"})])],34)),[[Z,v(n).showController]]):B((y(),b("div",Ln,[c("div",{onClick:d[14]||(d[14]=F(()=>{},["stop"])),onDblclick:d[15]||(d[15]=F(()=>{},["stop"])),"pos-absolute":"",class:"top-50% left-4 flex items-center flex-col",style:{transform:"translateY(-50%)"},"z-20":""},[c("div",null,T(v(G)),1),M(A,{value:v(G),"onUpdate:value":d[13]||(d[13]=x=>ce(G)?G.value=x:null),max:200,min:50},null,8,["value"]),c("div",{onClick:F(lo,["stop"]),class:"i-ri-sun-line"})],32),c("div",{onClick:d[17]||(d[17]=F(()=>{},["stop"])),onDblclick:d[18]||(d[18]=F(()=>{},["stop"])),"pos-absolute":"",class:"top-50% right-4 flex items-center flex-col",style:{transform:"translateY(-50%)"},"z-20":""},[je(T(v(q))+" ",1),M(A,{value:v(q),"onUpdate:value":d[16]||(d[16]=x=>ce(q)?q.value=x:null),max:100,min:0},null,8,["value"]),c("div",{onClick:F(io,["stop"]),class:L(v(n).muted?"i-ri-volume-mute-line":"i-ri-volume-down-line")},null,2)],32)],512)),[[Z,v(n).showController]])],34)]),B(c("div",Rn,[c("div",Bn,[c("img",{src:(ie=v(f))==null?void 0:ie.avatar,"w-8":"","h-8":"",alt:"","rounded-4":""},null,8,Vn),c("div",Un,[c("div",Pn,T((Qe=v(f))==null?void 0:Qe.nickname),1),c("div",zn,[c("img",{"w-4":"","h-4":"",src:g.$route.meta.site.icon},null,8,Fn),je(" "+T(g.$route.meta.site.name),1)])]),c("div",null,[d[34]||(d[34]=c("div",{"mx-1":"",class:"i-mdi-fire"},null,-1)),c("span",null,T((ye=v(f))==null?void 0:ye.online),1)])]),M(me,{grow:!0,onTabClick:Xt,class:"!h-[calc(100%-3.75rem)]"},{default:O(()=>[M(R,{title:"聊天","pos-relative":""},{default:O(()=>{var x;return[c("div",$n,[c("img",{"w-1.5em":"","cursor-pointer":"",onClick:d[20]||(d[20]=()=>v(w).sideOpen=!v(w).sideOpen),src:v(w).sideOpen?v(Ot):v(jt)},null,8,Nn),c("div",{"text-green-5":"",onClick:Y,class:"i-ri-delete-bin-3-line"}),c("a",{"text-green-5":"",href:(x=v(f))==null?void 0:x.url,target:"_blank"},d[35]||(d[35]=[c("div",{class:"i-ri-link"},null,-1)]),8,Dn),c("div",{onClick:Wt,"text-green-5":"",class:"i-ri-arrow-down-circle-line"})]),c("div",{ref_key:"dm",ref:u,"h-full":"","pl-2":"","box-border":"",class:"scrolly"},null,512)]}),_:1}),M(R,{title:"关注","box-border":"","px-4":""},{default:O(()=>[c("div",{onClick:F(so,["prevent"]),onDblclick:F(no,["prevent"])},[(y(!0),b($,null,X(v(E),x=>{var St,At;return y(),b("a",{"data-id":x.roomId,"data-site":x.siteId,class:L({"text-amber":((St=v(f))==null?void 0:St.siteId)==x.siteId&&((At=v(f))==null?void 0:At.roomId)==x.roomId}),key:`${x.siteId}/${x.roomId}`,href:`/${x.siteId}/play/${x.roomId}`,flex:"","items-center":"","gap-2":"","py-2":""},[B(c("img",Qn,null,512),[[ge,x.avatar]]),c("div",null,T(x.nickname),1),c("div",{"w-3":"","h-3":"","rounded-3":"",class:L([x.status?"bg-green":"bg-red"])},null,2),c("div",null,T(x.status?"直播中":"未开播"),1)],10,Gn)}),128))],32)]),_:1}),M(R,{title:"设置","px-2":""},{default:O(()=>[d[47]||(d[47]=c("div",{"p-3":"","bg-sm":""},"弹幕",-1)),c("div",Wn,[c("div",Jn,[d[36]||(d[36]=c("div",null,"文字大小",-1)),M(D,{value:v(w).canvasFontsize,"onUpdate:value":d[21]||(d[21]=x=>v(w).canvasFontsize=x),max:80,min:8,step:1},null,8,["value"])]),c("div",Yn,[d[37]||(d[37]=c("div",null,"上下间隔",-1)),M(D,{value:v(w).canvasGap,"onUpdate:value":d[22]||(d[22]=x=>v(w).canvasGap=x),max:80,min:1,step:1},null,8,["value"])]),c("div",qn,[d[38]||(d[38]=c("div",null,"最大行数",-1)),M(D,{value:v(w).canvasRows,"onUpdate:value":d[23]||(d[23]=x=>v(w).canvasRows=x),max:50,min:1,step:1},null,8,["value"])]),c("div",Hn,[d[39]||(d[39]=c("div",null,"弹幕速度",-1)),M(D,{value:v(w).canvasSpeed,"onUpdate:value":d[24]||(d[24]=x=>v(w).canvasSpeed=x),max:32,min:.5,step:.5},null,8,["value"])]),c("div",Zn,[d[40]||(d[40]=c("div",null,"弹幕透明",-1)),M(D,{value:v(w).canvasOpacity,"onUpdate:value":d[25]||(d[25]=x=>v(w).canvasOpacity=x),max:100,min:10,step:10},null,8,["value"])]),c("div",Kn,[d[41]||(d[41]=c("div",null,"彩色弹幕",-1)),M(te,{value:v(w).canvasColorOpen,"onUpdate:value":d[26]||(d[26]=x=>v(w).canvasColorOpen=x)},null,8,["value"])])]),d[48]||(d[48]=c("div",{"p-3":"","bg-sm":""},"聊天",-1)),c("div",Xn,[c("div",el,[d[42]||(d[42]=c("div",null,"文字大小",-1)),M(D,{value:v(w).sideFontsize,"onUpdate:value":d[27]||(d[27]=x=>v(w).sideFontsize=x),max:80,min:8,step:1},null,8,["value"])]),c("div",tl,[d[43]||(d[43]=c("div",null,"上下间隔",-1)),M(D,{value:v(w).sideGap,"onUpdate:value":d[28]||(d[28]=x=>v(w).sideGap=x),max:80,min:0,step:1},null,8,["value"])]),c("div",ol,[d[44]||(d[44]=c("div",null,"自动清屏",-1)),M(D,{value:v(w).sideClean,"onUpdate:value":d[29]||(d[29]=x=>v(w).sideClean=x),max:500,min:10,step:10},null,8,["value"])]),c("div",sl,[d[45]||(d[45]=c("div",null,"彩色消息",-1)),M(te,{value:v(w).sideColorOpen,"onUpdate:value":d[30]||(d[30]=x=>v(w).sideColorOpen=x)},null,8,["value"])])]),d[49]||(d[49]=c("div",{"p-3":"","bg-sm":""},"颜色",-1)),c("div",nl,[(y(!0),b($,null,X(v(So),x=>(y(),b("div",{onClick:oo},[c("div",{class:"w-4 h-4 rounded-2 m-2 shadow","box-border":"","data-color":x,"cursor-pointer":"",style:xe(`background:${x};${v(w).colors.includes(x)?"box-shadow:0 0 0px 2px white":""}`)},null,12,ll)]))),256))]),c("div",il,[d[46]||(d[46]=je("屏蔽 ")),M(te,{value:v(w).blockOpen,"onUpdate:value":d[31]||(d[31]=x=>v(w).blockOpen=x)},null,8,["value"])]),B(c("textarea",{"outline-none":"","w-full":"","onUpdate:modelValue":d[32]||(d[32]=x=>v(w).blockWords=x),"text-white":"",b:"","b-solid":"","b-gray-7":"","p-2":"","box-border":"",rows:"5","bg-dark":"",shadow:"","rounded-1":"",placeholder:"以空格分隔"},null,512),[[dt,v(w).blockWords,void 0,{trim:!0}]])]),_:1})]),_:1})],512),[[Z,v(we)]])])}}}),Gt=(t,e)=>{const s=t.__vccOpts||t;for(const[a,n]of e)s[a]=n;return s},al={},ul={"h-full":"","box-border":"","py-2":"",class:"scrolly"};function cl(t,e){return y(),b("div",ul,e[0]||(e[0]=[c("div",{"text-xl":"","p-4":""},"支持",-1),c("div",{"ml-4":""},[c("img",{"h-50":"","mr-5":"",src:"https://i0.hdslb.com/bfs/article/828b4686d0bcd7a427939b1f121f322898845873.png@1e_1c.webp"}),c("img",{"h-50":"",src:"https://i0.hdslb.com/bfs/article/d07b5e8cbae76f0fc38a8049c433d3d598845873.jpg@1e_1c.webp"})],-1)]))}const dl=Gt(al,[["render",cl]]),vl={},fl={"h-full":"",flex:"","justify-center":"","items-center":""};function pl(t,e){return y(),b("div",fl,e[0]||(e[0]=[c("div",{"text-center":"","text-8":"","line-height-8":""},[c("div",{"font-900":""},"404"),c("div",{"mt-4":""},"页面未找到")],-1)]))}const ml=Gt(vl,[["render",pl]]);async function Oe(t){const{siteid:e,id:s}=t.params,a=j.findIndex(n=>n.id==e);return a==-1?{name:"404"}:(t.meta.site=j[a],t.meta.id=s,t.meta.index=a,P.value=a,!0)}const hl=Ao({history:Mo(),routes:[{path:"/",redirect:()=>`/${ke[P.value]}`},{path:"/follow",component:js},{path:"/user",component:dl},{path:"/category",redirect:()=>`/${ke[P.value]}/category`},{path:"/search",redirect:()=>`/${ke[P.value]}/search`},{path:"/:siteid",component:Ls,beforeEnter:Oe},{path:"/:siteid/category",component:ps,beforeEnter:Oe},{path:"/:siteid/category/:id",component:es,beforeEnter:Oe},{path:"/:siteid/play/:id",component:rl,beforeEnter:Oe},{path:"/:siteid/search",component:xs,beforeEnter:Oe},{path:"/:pathMatch(.*)*",name:"404",component:ml}]}),gl={install(t){t.directive("lazy",{mounted(e,s){e.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJtMi4yNSAxNS43NWw1LjE1OS01LjE1OWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGw1LjE1OSA1LjE1OW0tMS41LTEuNWwxLjQwOS0xLjQwOWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGwyLjkwOSAyLjkwOW0tMTggMy43NWgxNi41YTEuNSAxLjUgMCAwIDAgMS41LTEuNVY2YTEuNSAxLjUgMCAwIDAtMS41LTEuNUgzLjc1QTEuNSAxLjUgMCAwIDAgMi4yNSA2djEyYTEuNSAxLjUgMCAwIDAgMS41IDEuNW0xMC41LTExLjI1aC4wMDh2LjAwOGgtLjAwOHptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwYS4zNzUuMzc1IDAgMCAxIC43NSAwIi8+PC9zdmc+";const a=new IntersectionObserver(n=>{Ut(n,l=>{if(l.isIntersecting){const i=new Image;i.src=s.value,i.onload=()=>e.src=s.value,a.unobserve(l.target)}})});a.observe(e)}})}},Qt=uo(Lo);Qt.use(hl).use(gl);Qt.mount("#app");
1
+ var uo=Object.defineProperty;var fo=(n,e,t)=>e in n?uo(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var X=(n,e,t)=>fo(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))c(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&c(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function c(s){if(s.ep)return;s.ep=!0;const l=t(s);fetch(s.href,l)}})();const vo=Vue.createApp,d=Vue.createElementVNode,w=Vue.openBlock,M=Vue.createElementBlock,I=Vue.ref,de=Vue.reactive,ze=Vue.watchEffect,J=Vue.computed,K=Vue.defineComponent,m=Vue.unref,ve=Vue.createCommentVNode,le=Vue.renderList,q=Vue.Fragment,$=Vue.normalizeClass,Xe=Vue.resolveComponent,F=Vue.withCtx,B=Vue.createVNode,ne=Vue.vShow,N=Vue.withDirectives,Be=Vue.resolveDynamicComponent,G=Vue.createBlock,po=Vue.KeepAlive,Ae=Vue.onMounted,re=Vue.watch,U=Vue.toDisplayString,be=Vue.normalizeStyle,Y=Vue.withModifiers,pe=Vue.isRef,Le=Vue.createTextVNode,ft=Vue.resolveDirective,vt=Vue.vModelText,mo=Vue.shallowRef,ct=Vue.nextTick,ot=Vue.onBeforeUnmount,Ut=Vue.onActivated,ho=Vue.withKeys;Vue.h;const go=Vue.onDeactivated,yo=Vue.onUnmounted,Ve=Vue.useModel,Ue=Vue.mergeModels,wo=Vue.renderSlot,zt=Vue.useSlots,xo=Vue.provide,ko=Vue.inject,bo=Vue.getCurrentInstance;var Ze={exports:{}};Ze.exports;var Mt;function _o(){return Mt||(Mt=1,function(n){var e=function(){var t=String.fromCharCode,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",l={};function r(a,u){if(!l[a]){l[a]={};for(var f=0;f<a.length;f++)l[a][a.charAt(f)]=f}return l[a][u]}var i={compressToBase64:function(a){if(a==null)return"";var u=i._compress(a,6,function(f){return c.charAt(f)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(a){return a==null?"":a==""?null:i._decompress(a.length,32,function(u){return r(c,a.charAt(u))})},compressToUTF16:function(a){return a==null?"":i._compress(a,15,function(u){return t(u+32)})+" "},decompressFromUTF16:function(a){return a==null?"":a==""?null:i._decompress(a.length,16384,function(u){return a.charCodeAt(u)-32})},compressToUint8Array:function(a){for(var u=i.compress(a),f=new Uint8Array(u.length*2),p=0,h=u.length;p<h;p++){var T=u.charCodeAt(p);f[p*2]=T>>>8,f[p*2+1]=T%256}return f},decompressFromUint8Array:function(a){if(a==null)return i.decompress(a);for(var u=new Array(a.length/2),f=0,p=u.length;f<p;f++)u[f]=a[f*2]*256+a[f*2+1];var h=[];return u.forEach(function(T){h.push(t(T))}),i.decompress(h.join(""))},compressToEncodedURIComponent:function(a){return a==null?"":i._compress(a,6,function(u){return s.charAt(u)})},decompressFromEncodedURIComponent:function(a){return a==null?"":a==""?null:(a=a.replace(/ /g,"+"),i._decompress(a.length,32,function(u){return r(s,a.charAt(u))}))},compress:function(a){return i._compress(a,16,function(u){return t(u)})},_compress:function(a,u,f){if(a==null)return"";var p,h,T={},z={},S="",C="",_="",V=2,j=3,E=2,L=[],g=0,k=0,A;for(A=0;A<a.length;A+=1)if(S=a.charAt(A),Object.prototype.hasOwnProperty.call(T,S)||(T[S]=j++,z[S]=!0),C=_+S,Object.prototype.hasOwnProperty.call(T,C))_=C;else{if(Object.prototype.hasOwnProperty.call(z,_)){if(_.charCodeAt(0)<256){for(p=0;p<E;p++)g=g<<1,k==u-1?(k=0,L.push(f(g)),g=0):k++;for(h=_.charCodeAt(0),p=0;p<8;p++)g=g<<1|h&1,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=h>>1}else{for(h=1,p=0;p<E;p++)g=g<<1|h,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=0;for(h=_.charCodeAt(0),p=0;p<16;p++)g=g<<1|h&1,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=h>>1}V--,V==0&&(V=Math.pow(2,E),E++),delete z[_]}else for(h=T[_],p=0;p<E;p++)g=g<<1|h&1,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=h>>1;V--,V==0&&(V=Math.pow(2,E),E++),T[C]=j++,_=String(S)}if(_!==""){if(Object.prototype.hasOwnProperty.call(z,_)){if(_.charCodeAt(0)<256){for(p=0;p<E;p++)g=g<<1,k==u-1?(k=0,L.push(f(g)),g=0):k++;for(h=_.charCodeAt(0),p=0;p<8;p++)g=g<<1|h&1,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=h>>1}else{for(h=1,p=0;p<E;p++)g=g<<1|h,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=0;for(h=_.charCodeAt(0),p=0;p<16;p++)g=g<<1|h&1,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=h>>1}V--,V==0&&(V=Math.pow(2,E),E++),delete z[_]}else for(h=T[_],p=0;p<E;p++)g=g<<1|h&1,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=h>>1;V--,V==0&&(V=Math.pow(2,E),E++)}for(h=2,p=0;p<E;p++)g=g<<1|h&1,k==u-1?(k=0,L.push(f(g)),g=0):k++,h=h>>1;for(;;)if(g=g<<1,k==u-1){L.push(f(g));break}else k++;return L.join("")},decompress:function(a){return a==null?"":a==""?null:i._decompress(a.length,32768,function(u){return a.charCodeAt(u)})},_decompress:function(a,u,f){var p=[],h=4,T=4,z=3,S="",C=[],_,V,j,E,L,g,k,A={val:f(0),position:u,index:1};for(_=0;_<3;_+=1)p[_]=_;for(j=0,L=Math.pow(2,2),g=1;g!=L;)E=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=f(A.index++)),j|=(E>0?1:0)*g,g<<=1;switch(j){case 0:for(j=0,L=Math.pow(2,8),g=1;g!=L;)E=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=f(A.index++)),j|=(E>0?1:0)*g,g<<=1;k=t(j);break;case 1:for(j=0,L=Math.pow(2,16),g=1;g!=L;)E=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=f(A.index++)),j|=(E>0?1:0)*g,g<<=1;k=t(j);break;case 2:return""}for(p[3]=k,V=k,C.push(k);;){if(A.index>a)return"";for(j=0,L=Math.pow(2,z),g=1;g!=L;)E=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=f(A.index++)),j|=(E>0?1:0)*g,g<<=1;switch(k=j){case 0:for(j=0,L=Math.pow(2,8),g=1;g!=L;)E=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=f(A.index++)),j|=(E>0?1:0)*g,g<<=1;p[T++]=t(j),k=T-1,h--;break;case 1:for(j=0,L=Math.pow(2,16),g=1;g!=L;)E=A.val&A.position,A.position>>=1,A.position==0&&(A.position=u,A.val=f(A.index++)),j|=(E>0?1:0)*g,g<<=1;p[T++]=t(j),k=T-1,h--;break;case 2:return C.join("")}if(h==0&&(h=Math.pow(2,z),z++),p[k])S=p[k];else if(k===T)S=V+V.charAt(0);else return null;C.push(S),p[T++]=V+S.charAt(0),h--,V=S,h==0&&(h=Math.pow(2,z),z++)}}};return i}();n!=null?n.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(Ze)),Ze.exports}var Vt=_o();const et=(n,e)=>{let t=-1;const c=n.length,s=new Array(c);for(;++t<c;)s[t]=e(n[t]);return s},Ft=(n,e)=>{let t=-1;const c=n.length;for(;++t<c;)e(n[t])},So=n=>{if(n.scrollTop>0)return!0;n.scrollTop=1;const e=!!n.scrollTop;return n.scrollTop=0,e},Ao=async(n,e,t)=>{const c=[],s=[];for(const l of n){const r=Promise.resolve().then(()=>t(l));if(c.push(r),e<=n.length){const i=r.then(()=>s.splice(s.indexOf(i),1));s.push(i),s.length>=e&&await Promise.race(s)}}return Promise.all(c)},Co="https://lemonlive.deno.dev/api/",Pt="https://lemonlivesync.deno.dev/",ce=(n,e,t)=>(n=="douyin"&&(t?t.cookie=se[n]:t={cookie:se[n]}),pt(`${Co}${n}/${e}${t?"?"+new URLSearchParams(t).toString():""}`)),dt=async n=>{const e=Object.keys(n.follows);if(!e.length)return Promise.resolve(!1);if(n.id=="douyin"){(await Ao(e,4,c=>ce("douyin","getLiveStatus",{id:c}))).forEach((c,s)=>n.follows[e[s]].status=c[e[s]].status);return}await ce(n.id,"getLiveStatus",{id:e.join(",")}).then(t=>Object.keys(t).forEach(c=>{n.follows[c].status=t[c].status}))},Io=n=>pt(`${Pt}sync`,{method:"POST",body:Vt.compressToBase64(JSON.stringify(n))}),Mo=n=>pt(`${Pt}sync/${n}`),pt=(n,e)=>fetch(n,e).then(async t=>{let c=await t.text();return c=JSON.parse(Vt.decompressFromBase64(c)),c.code!=200?Promise.reject(c.msg):c.data},t=>{Promise.reject("网络异常!")});I(!0);const P=[{name:"虎牙直播",icon:"https://www.huya.com/favicon.ico",id:"huya",categories:I([]),categoryActive:I(0),recommend:{page:1,hasMore:!0,list:I([])},search:{page:1,hasMore:!0,list:I([])},follows:de(Je("huya"))},{name:"斗鱼直播",icon:"https://www.douyu.com/favicon.ico",id:"douyu",categories:I([]),categoryActive:I(0),recommend:{page:1,hasMore:!0,list:I([])},search:{page:1,hasMore:!0,list:I([])},follows:de(Je("douyu"))},{name:"抖音直播",icon:"https://www.douyin.com/favicon.ico",id:"douyin",categories:I([]),categoryActive:I(0),recommend:{page:1,hasMore:!0,list:I([])},search:{page:1,hasMore:!0,list:I([])},follows:de(Je("douyin"))},{name:"哔哩直播",icon:"https://www.bilibili.com/favicon.ico",id:"bilibili",categories:I([]),categoryActive:I(0),recommend:{page:1,hasMore:!0,list:I([])},search:{page:1,hasMore:!0,list:I([])},follows:de(Je("bilibili"))}],_e=["huya","douyu","douyin","bilibili"],te=I(Ce("volume",100)),H=I(Ce("brightness",100)),We=n=>{te.value=n?Math.min(100,te.value+5):Math.max(0,te.value-5)},Tt=n=>{H.value=n?Math.min(200,H.value+10):Math.max(50,H.value-10)};function Je(n){const e=localStorage.getItem("follows-"+n);return e?JSON.parse(e):{}}function Re(n){const e=P.find(t=>t.id==n.siteId);return n.siteId=e.id,e.follows[n.roomId]={...n,stream:void 0,ws:void 0},localStorage.setItem("follows-"+n.siteId,JSON.stringify(e.follows)),Reflect.has(e.follows,n.roomId)}function To(n,e){const t=P.find(c=>c.id==n);return delete t.follows[e],localStorage.setItem("follows-"+n,JSON.stringify(t.follows)),Reflect.has(t.follows,e)}function Oo(){P.forEach(n=>{for(const e in n.follows)delete n.follows[e];localStorage.removeItem("follows-"+n.id)})}async function Ot(n,e){const t=n.categories;t.value.length||(t.value=await ce(n.id,"getCategories"));for(const c of t.value)for(const s of c.list)if(s.cid==e)return s;return null}const x=de(Ce("dm-settings",{canvasOpen:!0,canvasFontsize:18,canvasGap:10,canvasOpacity:100,canvasRows:10,canvasSpeed:2.5,canvasColorOpen:!1,sideOpen:!0,sideFontsize:14,sideGap:2,sideColorOpen:!1,sideClean:100,colors:["#ffffff","#7e22ce","1d4ed8","#be185d","#fcd34d"],blockOpen:!1,blockWords:""}));ze(()=>{Se("dm-settings",x)});function Ce(n,e){const t=localStorage.getItem(n);return t?JSON.parse(t):e}function Se(n,e){localStorage.setItem(n,JSON.stringify(e))}const Eo=["#ffffff","#000000","#374151","#b91c1c","#f87171","#fdba74","#c2410c","#fcd34d","#b45309","#bef264","#4d7c0f","#86efac","#15803d","#5eead4","#0f766e","#67e8f9","#0e7490","#93c5fd","#1d4ed8","#d8b4fe","#7e22ce","#f0abfc","#a21caf","#f9a8d4","#be185d","#fda4af","#be123c"],Et=J(()=>x.blockWords.length==0?[]:x.blockWords.split(" ").map(n=>new RegExp(n))),se=de(Ce("cookies",{}));ze(()=>Se("cookies",se));const W=I(0),ke=I(Ce("show-chat",!0)),He=I(Ce("show-aside",!0));ze(()=>Se("show-chat",ke.value));ze(()=>Se("show-aside",He.value));const jo=VueRouter.createRouter,Lo=VueRouter.createWebHistory,mt=VueRouter.useRoute,ht=VueRouter.useRouter,Ro=VueRouter.onBeforeRouteUpdate,Bo={key:0,src:"https://live.douyin.com","pos-absolute":"",width:"0",height:"0","op-0":"","b-0":"",style:{"z-index":"-10"}},Uo={"text-sm":"","pos-fixed":"","bottom-0":"","left-0":"","right-0":"","md:py-2":"","b-t-solid":"",b:"","b-gray-7":"","md:b-r-solid":"","md:top-0":"","md:right-auto":"",flex:"","justify-around":"","md:flex-col":"","md:justify-left":"","bg-dark-7":"","z-10":""},zo={"h-full":"",class:"scrolly","md:px-3":""},Vo=K({__name:"App",setup(n){const e=[{icon:"i-ri-home-smile-line",link:"/"},{icon:"i-ri-apps-2-line",link:"/category"},{icon:"i-ri-heart-line",link:"/follow"},{icon:"i-ri-search-line",link:"/search"},{icon:"i-ri-user-smile-line",link:"/user"}],t=I(!0);Ae(()=>{document.querySelector("main").style.height=`calc(${window.innerHeight}px - 3.5rem)`,setTimeout(()=>t.value=!1,5e3)});const c=mt();return re(c,()=>{const s=c.params.siteid;if(s==null)return;const l=_e.findIndex(r=>r==s);l!=-1&&(W.value=l)}),(s,l)=>{const r=Xe("router-link"),i=Xe("router-view");return w(),M(q,null,[m(t)?(w(),M("iframe",Bo)):ve("",!0),N(d("div",Uo,[(w(),M(q,null,le(e,a=>B(r,{to:a.link,"hover:text-amber":"","rounded-2":"","py-2":"","px-4":"","m-2":"",class:$({"text-amber":s.$route.path==a.link})},{default:F(()=>[d("div",{class:$(a.icon)},null,2)]),_:2},1032,["to","class"])),64))],512),[[ne,m(He)]]),d("main",{"mx-2":"","md:mx-0":"",class:$(["md:!h-100vh",{"md:ml-17.5":m(He),"!h-100vh":!m(He)}]),"pt-2":"","box-border":""},[d("div",zo,[B(i,null,{default:F(({Component:a})=>[(w(),G(po,{exclude:["play"]},[(w(),G(Be(a)))],1024))]),_:1})])],2)],64)}}}),Fo=n=>{const e=I(n);return[e,c=>e.value=c]},Po=/scroll|auto|overlay/i;function $o(n){return n.tagName!=="HTML"&&n.tagName!=="BODY"&&n.nodeType===1}function Do(n,e=document.body){let t=n;for(;t&&t!==e&&$o(t);){const{overflowY:c}=window.getComputedStyle(t);if(Po.test(c))return t;t=t.parentNode}return e}function No(n,e=document.body){const t=I();return Ae(()=>{n.value&&(t.value=Do(n.value,e))}),t}const Go={key:0,"text-center":""},Qo={key:1,"text-center":""},nt=K({__name:"list",props:{finshedText:{default:"没有更多了"},errorText:{default:"加载失败,点击重新加载"},immediate:{type:Boolean,default:!0},offset:{default:50}},emits:["load","refresh"],setup(n,{emit:e}){const t=n,c=I(0),[s,l]=Fo("normal"),r=I(),i=No(r),a=e,u=()=>{if(c.value=i.value.scrollTop,s.value!="normal")return;i.value.scrollHeight-i.value.clientHeight-i.value.scrollTop<t.offset&&h()};Ae(()=>{t.immediate&&h(),i.value.addEventListener("scroll",u,{passive:!0})}),Ut(()=>{i.value.scrollTop=c.value,i.value.addEventListener("scroll",u)});const f=()=>{i.value.removeEventListener("scroll",u)};go(f),ot(f);let p;const h=()=>{l("loading"),a("load",l),clearTimeout(p),p=setTimeout(()=>{So(i.value)||a("load",l)},2e3)};return(T,z)=>(w(),M("div",{ref_key:"root",ref:r,"h-full":"","select-none":""},[wo(T.$slots,"default"),m(s)=="loading"?(w(),M("div",Go,"加载中...")):m(s)=="finshed"?(w(),M("div",Qo,U(t.finshedText),1)):m(s)=="loaderror"?(w(),M("div",{key:2,"text-center":"","cursor-pointer":"",onClick:h},U(t.errorText),1)):ve("",!0)],512))}}),Wo=["data-id","data-site","href"],Jo={"pos-relative":"","text-rose-4":"","rounded-t-2":"","w-full":"","aspect-video":""},Yo={block:"","h-full":"","rounded-2":"","select-none":""},qo={"pos-absolute":"","bottom-0":"","right-0":"","px-2":"","py-1":"","rounded-tl-2":"","bg-dark-6":""},Zo={"line-height-none":"","pos-absolute":"","top-0":"","right-0":"","px-1":"","py-1":"","rounded-tr-1":"","rounded-bl-2":"","bg-dark-6":""},Ho={key:0,"rounded-2":"","text-white":"","pos-absolute":"","text-8":"","top-0":"","bottom-0":"","left-0":"","right-0":"",flex:"","justify-center":"","items-center":"","bg-gray-7":"","bg-op-80":""},Ko={"px-2":"","text-truncate":"","leading-normal":""},Xo={"px-2":"","text-truncate":"","leading-normal":"","pb-2":""},st=K({__name:"rooms",props:{list:{}},setup(n){let e;const t=ht(),c=I(),s=i=>{clearTimeout(e),e=setTimeout(()=>{const a=r("id",i.target,c.value);if(!a)return;const u=r("site",i.target,c.value);t.push(`/${u}/play/${a}`)},300)},l=i=>{var p;clearTimeout(e);const a=r("id",i.target,c.value);if(!a)return;const f=`/${r("site",i.target,c.value)}/play/${a}`;(p=window.open(f,"_blank"))==null||p.location},r=(i,a,u)=>{if(a==u)return null;const f=a.dataset[i];return f||r(i,a.parentElement,u)};return(i,a)=>{const u=ft("lazy");return i.list.value.length>0?(w(),M("div",{key:0,ref_key:"root",ref:c,grid:"","gap-4":"","p-2":"","justify-evenly":"","cursor-pointer":"","select-none":"","grid-cols-2":"","md:grid-cols-3":"","xl:grid-cols-4":"",class:"2xl:grid-cols-5",onClick:Y(s,["prevent"]),onDblclick:Y(l,["prevent"])},[(w(!0),M(q,null,le(i.list.value,f=>(w(),M("a",{"data-id":f.roomId,"data-site":f.siteId,href:`/${f.siteId}/play/${f.roomId}`,key:`${f.siteId}-${f.roomId}`,shadow:"","rounded-2":"","b-2px":"","b-solid":"","b-transparent":"","hover:b-amber":"","overflow-hidden":""},[d("div",Jo,[N(d("img",Yo,null,512),[[u,f.cover]]),d("div",qo,U(f.category),1),d("div",Zo,[a[0]||(a[0]=d("div",{class:"i-mdi-fire"},null,-1)),d("span",null,U(f.online),1)]),f.status?ve("",!0):(w(),M("div",Ho," 未开播 "))]),d("div",Ko,U(f.title),1),d("div",Xo,U(f.nickname),1)],8,Wo))),128))],544)):ve("",!0)}}}),en={"h-full":""},tn={flex:"","py-1":"","px-2":"","text-lg":"","gap-2":""},on={grow:"","text-center":""},nn={"hover:text-amber":""},sn={key:0,class:"h-[calc(100%-3.25rem)] scrolly"},ln=K({__name:"categoryRooms",setup(n){const e=mt(),t=I(""),c=I(),s={list:I([]),page:1,hasMore:!0},l=u=>{const{site:f,id:p}=e.meta;ce(f.id,"getCategoryRooms",{id:p,pid:c.value,page:s.page}).then(h=>{if(s.list.value=s.list.value.concat(h.list),s.hasMore=h.hasMore,se[f.id]||(se[f.id]=h.cookie),!h.hasMore)return u("finshed");s.page++,u("normal")},h=>{t.value=h,u("loaderror")})},r=I(!1),i=()=>{document.querySelector("#goTop").click(),r.value=!0;const{site:u,id:f}=e.meta;ce(u.id,"getCategoryRooms",{id:f,pid:c.value,page:s.page}).then(p=>{s.list.value=p.list,s.hasMore=p.hasMore,s.page++,se[u.id]||(se[u.id]=p.cookie)},p=>{t.value=p}).finally(()=>r.value=!1)};let a=e.fullPath;return Ot(e.meta.site,e.meta.id).then(u=>{t.value=(u==null?void 0:u.name)||null,c.value=u==null?void 0:u.pid}),Ut(function(){a!=e.fullPath&&(a=e.fullPath,Ot(e.meta.site,e.meta.id).then(u=>{t.value=(u==null?void 0:u.name)||null,c.value=u==null?void 0:u.pid}),s.list.value=[],s.page=1,s.hasMore=!0)}),(u,f)=>{var T;const p=st,h=nt;return w(),M("div",en,[d("div",tn,[d("div",{"hover:text-amber":"",onClick:f[0]||(f[0]=(...z)=>u.$router.back&&u.$router.back(...z)),class:"i-ri-arrow-left-line"}),d("div",on,[d("span",nn,U(`${(T=m(e).meta.site)==null?void 0:T.name} ${m(t)==null?"分区不存在":m(t)==""?"加载中":m(t)}`),1)]),d("div",{"mr-7":"","md:mr-24":"","hover:text-amber":"",onClick:i,class:$(["i-ri-refresh-line",{"animate-spin":m(r)}])},null,2)]),m(t)?(w(),M("div",sn,[(w(),G(h,{key:m(a),onLoad:l},{default:F(()=>[B(p,{list:s.list},null,8,["list"])]),_:1}))])):ve("",!0)])}}}),$t=Symbol("tabs"),rn=(n,e)=>{const t=de([]);return xo(n,Object.assign({link:l=>{l.proxy&&t.push(l.proxy)},unlink:l=>{const r=t.indexOf(l.proxy);t.splice(r,1)},children:t},e)),t},Dt=n=>{const e=ko(n);if(e==null)return{parent:e,index:I(-1)};const t=bo(),{link:c,unlink:s,children:l}=e;c(t),yo(()=>s(t));const r=J(()=>l.indexOf(t.proxy));return{parent:e,children:l,index:r}},an={class:"h-full","box-border":""},cn={"w-full":"","box-border":"","text-sm":"","sm:text-base":""},un=["onClick"],dn={class:"h-[calc(100%-2rem)] scrolly","box-border":"","pt-1":""},Fe=K({__name:"tabs",props:Ue({link:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},grow:{type:Boolean,default:!1},swipeable:{type:Boolean,default:!1},swipeloop:{type:Boolean,default:!0},justify:{default:"justify-center"}},{active:{default:0},activeModifiers:{}}),emits:Ue(["tabClick"],["update:active"]),setup(n,{emit:e}){const t=Ve(n,"active"),c=n,s=e,l=a=>{t.value=a,s("tabClick",a)},r=rn($t,{active:t,props:c}),i=J(()=>et(r,a=>a.title));return(a,u)=>{const f=Xe("router-link");return w(),M("div",an,[d("div",cn,[d("div",{flex:"",p1:"","sm:gap-1":"","text-center":"","h-8":"","box-border":"","lg:justify-center":"",class:$([[m(r).length>5||a.grow?"":a.justify],"scrollx"])},[c.link?(w(!0),M(q,{key:0},le(m(i),(p,h)=>(w(),G(f,{"px-1":"","sm:px-2":"","box-border":"","shrink-0":"",rounded:"","py-1":"","line-height-none":"","text-centercursor-pointer":"","hover:text-amber":"","cursor-pointer":"",class:$({"text-amber":t.value==h,grow:a.grow}),to:m(r)[h].href},{default:F(()=>[Le(U(p),1)]),_:2},1032,["class","to"]))),256)):(w(!0),M(q,{key:1},le(m(i),(p,h)=>(w(),M("a",{"px-1":"","sm:px-2":"","box-border":"","shrink-0":"",rounded:"","py-1":"","line-height-none":"","text-centercursor-pointer":"","hover:text-amber":"","cursor-pointer":"",class:$({"text-amber":t.value==h,grow:a.grow}),onClick:T=>l(h)},U(p),11,un))),256))],2)]),d("div",dn,[(w(),G(Be(a.$slots.default)))])])}}}),fn=Symbol("swipe"),vn={"w-full":"","h-full":"","shrink-0":"","pos-relative":""},pn=K({__name:"swipeItem",emits:["inited"],setup(n,{emit:e}){const t=I(!1),{parent:c,children:s,index:l}=Dt(fn),r=zt(),i=e,a=J(()=>(c==null?void 0:c.active.value)==l.value?(t.value||(t.value=!0,i("inited",l.value)),!0):l.value==(c.active.value==0?s.length-1:c.active.value-1)||l.value==(c.active.value==s.length-1?0:c.active.value+1)),u=J(()=>a.value||t.value||!(c!=null&&c.props.lazy)?r.default:null);return(f,p)=>N((w(),M("div",vn,[(w(),G(Be(m(u))))],512)),[[ne,m(a)]])}}),mn={"h-full":"","w-full":"","shrink-0":"",class:"scrolly"},Pe=K({__name:"tab",props:{title:{},href:{}},emits:["inited"],setup(n,{expose:e,emit:t}){const c=n,s=I(!1),l=zt(),{parent:r,index:i,children:a}=Dt($t),u=t,f=J(()=>(r==null?void 0:r.active.value)==i.value?(s.value||(s.value=!0,u("inited",i.value)),!0):(r==null?void 0:r.props.swipeable)&&(i.value==(r.active.value==0?a.length-1:r.active.value-1)||i.value==(r.active.value==a.length-1?0:r.active.value+1))),p=J(()=>f.value||r!=null&&r.props.swipeable||s.value||!(r!=null&&r.props.lazy)?l.default:null);return e({title:c.title}),(h,T)=>{var S,C;const z=pn;return N((w(),M("div",mn,[(S=m(r))!=null&&S.props.swipeable?(w(),G(z,{key:0},{default:F(()=>[(w(),G(Be(m(p))))]),_:1})):(w(),G(Be(m(p)),{key:1}))],512)),[[ne,m(f)||((C=m(r))==null?void 0:C.props.swipeable)]])}}}),hn={key:0,"text-center":""},gn={"pb-2":"",grid:"","gap-4":"","px-4":"","md:px-2":"","grid-cols-4":"","sm:grid-cols-6":"","md:grid-cols-8":"","lg:grid-cols-10":"","xl:grid-cols-15":"",lass:"2xl:grid-cols-18"},yn={"w-full":"","aspect-ratio-square":"",rounded:""},wn={"w-full":"","text-truncate":"","text-xs":"","md:text-sm":"","text-center":""},xn=K({__name:"category",setup(n){const e=J(()=>P[W.value].id),t=I(),c=s=>{P[s].categories.value.length||(t.value="加载中...",ce(e.value,"getCategories").then(l=>{t.value=null,P[s].categories.value=l},l=>t.value=l))};return(s,l)=>{const r=Xe("router-link"),i=Pe,a=Fe,u=ft("lazy");return w(),G(a,{active:m(W),"onUpdate:active":l[0]||(l[0]=f=>pe(W)?W.value=f:null),link:!0,"pt-1":""},{default:F(()=>[(w(!0),M(q,null,le(m(P),f=>(w(),G(i,{title:f.name,href:`/${f.id}/category`,onInited:c,key:f.id},{default:F(()=>[m(t)?(w(),M("div",hn,U(m(t)),1)):(w(),G(a,{key:1,active:f.categoryActive.value,"onUpdate:active":p=>f.categoryActive.value=p},{default:F(()=>[(w(!0),M(q,null,le(f.categories.value,p=>(w(),G(i,{title:p.name,key:p.id},{default:F(()=>[d("div",gn,[(w(!0),M(q,null,le(p.list,h=>(w(),G(r,{to:`/${f.id}/category/${h.cid}`,"cursor-pointer":""},{default:F(()=>[N(d("img",yn,null,512),[[u,h.pic]]),d("div",wn,U(h.name),1)]),_:2},1032,["to"]))),256))])]),_:2},1032,["title"]))),128))]),_:2},1032,["active","onUpdate:active"]))]),_:2},1032,["title","href"]))),128))]),_:1},8,["active"])}}}),kn={"text-center":"","py-1":""},bn={class:"w-60% max-w-md pos-relative inline-block"},_n={class:"h-[calc(100%-3rem)]"},Sn={key:1},An={key:1},Cn=K({__name:"search",setup(n){const e=I(""),t=J(()=>P[W.value]),c=I(),s=()=>{if(!e.value)return Promise.resolve();const f=t.value.search;f.list.value=[],f.page=1,f.hasMore=!0,c.value="搜索中...";const p=t.value.id;return ce(p,"searchRooms",{page:f.page,kw:e.value}).then(h=>{f.list.value=h.list,f.hasMore=h.hasMore,f.page+=1,c.value="finished",se[p]||(se[p]=h.cookie)},h=>c.value=h)},l=f=>{const p=t.value.search,h=t.value.id;f("loading"),ce(h,"searchRooms",{page:p.page,kw:e.value}).then(T=>{if(p.list.value=p.list.value.concat(T.list),p.hasMore=T.hasMore,se[h]||(se[h]=T.cookie),!p.hasMore)return f("finshed");p.page+=1,f("normal")},T=>{f("loaderror")})},r=f=>{i.push(`/${_e[f]}/search`),!a()&&P[f].search.page==1&&s()},i=ht(),a=()=>{if(e.value)return/^[\d]*$/.test(e.value)?(i.push(`/play/${t.value.id}/${e.value}`),!0):!1},u=()=>{a()||(P.forEach(f=>f.search.page=1),s())};return(f,p)=>{const h=st,T=nt,z=Pe,S=Fe;return w(),M(q,null,[d("div",kn,[d("div",bn,[N(d("input",{"md:text-4":"",type:"text","onUpdate:modelValue":p[0]||(p[0]=C=>pe(e)?e.value=C:null),"box-border":"","w-full":"","py-2.5":"","pl-3":"","pr-9":"","text-white":"","bg-transparent":"","b-1":"","b-green":"","rounded-6":"","outline-0":"",onKeydown:ho(u,["enter"]),placeholder:"请输入房间号或关键字"},null,544),[[vt,m(e),void 0,{trim:!0}]]),d("div",{class:"i-ri-search-line top-50%",absolute:"","right-3":"",onClick:u,style:{transform:"translateY(-50%)"}})])]),d("div",_n,[B(S,{active:m(W),"onUpdate:active":p[1]||(p[1]=C=>pe(W)?W.value=C:null),onTabClick:r},{default:F(()=>[(w(!0),M(q,null,le(m(P),C=>(w(),G(z,{title:C.name,key:C.id},{default:F(()=>[m(c)=="finished"?(w(),M(q,{key:0},[C.search.list.value.length?(w(),G(T,{key:0,onLoad:l},{default:F(()=>[B(h,{list:C.search.list},null,8,["list"])]),_:2},1024)):(w(),M("div",Sn," 什么也没有找到 "))],64)):(w(),M("div",An,U(m(c)),1))]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])],64)}}}),In={flex:"","items-center":""},Mn={"grow-1":"","justify-center":"","gap-2":"","p-2":"",flex:""},Tn={"pos-relative":"",flex:"","gap-2":""},On={"pos-absolute":"","top-0":"","right-0":"",style:{transform:"translateX(150%)"},"rounded-6":"","bg-white":"",shadow:"","text-amber":""},En={class:"bg-gray-7 gap-4 p-12 rounded-2 flex flex-col shadow relative mt-30"},jn={class:"flex justify-center items-center"},Ln={class:"flex gap-4"},Rn={class:"py-2 min-w-16"},Bn={class:"flex gap-4"},Un={class:"py-2 min-w-16"},zn={class:"h-[calc(100%-3rem)]"},Vn=K({__name:"follow",setup(n){const e=et(P,C=>({name:C.name,list:J(()=>Object.values(C.follows).sort(_=>_.status?-1:0))}));e.unshift({name:"全部",list:J(()=>P.map(C=>Object.values(C.follows)).flat().sort(C=>C.status?-1:0))});const t=I(0),c=()=>{var _;if(l.value)return;const C=t.value;l.value=!0,C==0?Promise.all(et(P,dt)).finally(s):(_=dt(P[C-1]))==null||_.finally(s)},s=()=>setTimeout(()=>l.value=!1,300),l=I(!1),r=I(""),i=I(!1),a=I([]),u=I(!1),f=()=>setTimeout(()=>u.value=!1,300),p=()=>{u.value||(u.value=!0,Io(e[0].list.value).then(C=>{r.value=C,a.value=e[0].list.value}).finally(f))},h=()=>{if(!u.value){if(!/^\d{4}$/.test(r.value))return r.value="";u.value=!0,Mo(r.value).then(C=>{a.value=C},C=>r.value=C).finally(f)}},T=()=>{if(!u.value){if(u.value=!0,r.value.startsWith("[")){try{const C=JSON.parse(r.value);Ft(C,_=>{/^\d+$/.test(_.roomId)&&Re({siteId:_.siteId,roomId:_.roomId,cover:_.face,nickname:_.userName})})}catch{r.value="合并失败"}return f()}a.value.forEach(C=>Re(C)),f()}},z=()=>{u.value||(u.value=!0,Oo(),a.value.forEach(C=>Re(C)),f())};c();const S=C=>C("finshed");return(C,_)=>{const V=st,j=nt,E=Pe,L=Fe;return w(),M(q,null,[d("div",In,[d("div",Mn,[d("div",Tn,[_[6]||(_[6]=Le("关注用户 ")),d("button",{class:"bg-green-5 rounded border-none cursor-pointer",onClick:_[0]||(_[0]=g=>i.value=!0)},"同步"),d("button",{class:"bg-green-5 rounded border-none cursor-pointer",onClick:c},"刷新"),N(d("div",On,_[5]||(_[5]=[d("div",{class:"i-ri-refresh-line animate-spin"},null,-1)]),512),[[ne,m(l)]])]),N(d("div",{class:"absolute z-10 top-0 left-0 right-0 bottom-0 flex justify-center items-start",onClick:_[3]||(_[3]=Y(g=>i.value=!1,["self"]))},[d("div",En,[d("div",jn,[_[8]||(_[8]=d("div",{class:"text-8"},"同步",-1)),N(d("div",null,_[7]||(_[7]=[d("div",{class:"i-ri-refresh-line animate-spin"},null,-1)]),512),[[ne,m(u)]])]),N(d("input",{class:"outline-none p-2 border-none rounded-2 flex-1","onUpdate:modelValue":_[1]||(_[1]=g=>pe(r)?r.value=g:null),type:"text",placeholder:"key"},null,512),[[vt,m(r)]]),d("div",Ln,[d("div",Rn,"本地 "+U(m(e)[0].list.value.length),1),d("div",{onClick:T,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"}," 合并 "),d("div",{onClick:z,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"覆盖")]),d("div",Bn,[d("div",Un,"云端 "+U(m(a).length),1),d("div",{onClick:h,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"拉取"),d("div",{onClick:p,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"推送")]),_[9]||(_[9]=d("div",null,[d("div",null,"1. key 有效期 10 分钟"),d("div",null,"2. 拉取需要输入 key"),d("div",null,"3. 推送自动生成 key ")],-1)),d("div",{onClick:_[2]||(_[2]=Y(g=>i.value=!1,["stop"])),class:"i-ri-close-circle-line absolute right-2 top-2"})])],512),[[ne,m(i)]])])]),d("div",zn,[B(L,{active:m(t),"onUpdate:active":_[4]||(_[4]=g=>pe(t)?t.value=g:null)},{default:F(()=>[(w(!0),M(q,null,le(m(e),g=>(w(),G(E,{title:g.name},{default:F(()=>[B(j,{onLoad:S,"finshed-text":""},{default:F(()=>[B(V,{list:g.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["active"])])],64)}}}),Fn=K({__name:"index",setup(n){const e=J(()=>P[W.value].id),t=c=>{const s=P[W.value].recommend;ce(e.value,"getRecommendRooms",{page:s.page}).then(l=>{if(s.list.value=s.list.value.concat(l.list),s.hasMore=l.hasMore,se[e.value]||(se[e.value]=l.cookie),!s.hasMore)return c("finshed");s.page++,c("normal")},()=>c("loaderror"))};return(c,s)=>{const l=st,r=nt,i=Pe,a=Fe;return w(),G(a,{active:m(W),"onUpdate:active":s[0]||(s[0]=u=>pe(W)?W.value=u:null),link:!0,"pt-1":""},{default:F(()=>[(w(!0),M(q,null,le(m(P),u=>(w(),G(i,{href:`/${u.id}`,key:u.id,title:u.name,"pos-relative":""},{default:F(()=>[B(r,{onLoad:t,"h-full":""},{default:F(()=>[B(l,{list:u.recommend.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["href","title"]))),128))]),_:1},8,["active"])}}}),Pn=K({__name:"switch",props:{value:{type:Boolean,required:!0},valueModifiers:{}},emits:["update:value"],setup(n){const e=Ve(n,"value");return(t,c)=>(w(),M("div",{"pos-relative":"",style:{transition:"background-color .3s"},onClick:c[0]||(c[0]=()=>e.value=!e.value),"w-12":"","inline-block":"","cursor-pointer":"","rounded-6":"","h-6":"",class:$([e.value?"bg-amber":"bg-gray-4"])},[d("div",{"w-6":"","h-full":"","rounded-6":"","bg-white":"",style:be([{transition:"transform .3s"},e.value?"transform:translateX(1.5rem)":""])},null,4)],2))}}),$n={"rounded-4":"",flex:"","bg-gray-7":"","w-min":"","p-2":"","py-1":"","gap-2":""},Dn=K({__name:"stepper",props:Ue({max:{},min:{},step:{}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(n){const e=n,t=Ve(n,"value"),c=()=>t.value=Math.min(t.value+e.step,e.max),s=()=>t.value=Math.max(t.value-e.step,e.min);return(l,r)=>(w(),M("div",$n,[d("div",{class:"i-ri-subtract-fill",onClick:s}),d("div",null,U(t.value),1),d("div",{class:"i-ri-add-fill",onClick:c})]))}});function Nn(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}const Ke=Nn(),Gn=n=>Ke?n.touches==null?n:n.touches[0]||n.changedTouches[0]:n,Qn=K({__name:"slider",props:Ue({max:{default:100},min:{default:0},width:{default:30},height:{default:100}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(n){const e=n,t=Ve(n,"value"),c=I(),s=e.width<e.height;let l;const r=p=>{p.stopPropagation(),u(p),document.addEventListener("mousemove",u,!0),document.addEventListener("mouseup",f,!0)},i=J(()=>(t.value-e.min)/(e.max-e.min)*100),a=J(()=>{const p=100-i.value,h=`top:${p}%`,T=`left:${p}%`;return s?{loaded:h,indicator:h}:{loaded:`${T};transform:translateX(-100%)`,indicator:T}}),u=p=>{p.stopPropagation(),p=Gn(p);const T=100-(Math.min(s?l.height:l.width,Math.max(0,s?p.clientY-l.y:p.clientX-l.x))/(s?l.height:l.width)*100|0);t.value=((e.max-e.min)*T|0)/100+e.min|0},f=p=>{p.stopPropagation(),document.removeEventListener("mousemove",u,!0),document.removeEventListener("mouseup",f,!0)};return Ae(()=>{l=c.value.getBoundingClientRect(),c.value.addEventListener("mousedown",r,!0)}),ot(()=>{c.value.removeEventListener("mousedown",r,!0)}),(p,h)=>(w(),M("div",{"cursor-pointer":"",style:be({width:`${e.width}px`,height:`${e.height}px`}),class:$(s?" py-4 ":"px-4"),flex:"","justify-center":""},[d("div",{"w-full":"","h-full":"","pos-relative":"",flex:"","justify-center":"","items-center":"",ref_key:"root",ref:c,onClick:u},[d("div",{"bg-gray":"","pos-relative":"","overflow-hidden":"",class:$(s?"h-full w-2px":"w-full h-2px")},[d("div",{"w-full":"","bg-amber":"","h-full":"","pos-absolute":"",style:be(m(a).loaded)},null,4)],2),d("div",{"pos-absolute":"","w-12px":"","h-12px":"","bg-amber":"","rounded-2":"",style:be(m(a).indicator),class:$(s?"-mt-6px":"-ml-6px")},null,6)],512)],6))}}),Wn={key:0,"z-1":"",fixed:"","top-0":"","bottom-0":"","left-0":"","right-0":"","bg-transparent":"","data-index":"-1"},Jn={"p-1":"","data-index":"-1","hover:text-amber":""},Yn={"text-center":"","z-1":"","pos-absolute":"","top-0":"",class:"left-50%","w-max":"",style:{transform:"translate3d(-50%,-100%,0)"}},qn=["data-index"],Zn=K({__name:"select",props:Ue(["list"],{active:{required:!0},activeModifiers:{}}),emits:["update:active"],setup(n){const e=Ve(n,"active"),t=I(!1),c=s=>{const l=s.target.dataset.index;l&&(l!="-1"&&(e.value=parseInt(l)),t.value=!t.value)};return(s,l)=>(w(),M("div",{"inline-block":"","pos-relative":"",onClick:c,"cursor-pointer":"","text-center":""},[m(t)?(w(),M("div",Wn)):ve("",!0),d("div",Jn,U(n.list[e.value]),1),N(d("div",Yn,[(w(!0),M(q,null,le(n.list,(r,i)=>(w(),M("div",{"data-index":i,class:$({"text-amber":i==e.value}),"p-1":"","hover:text-amber":""},U(r),11,qn))),256))],512),[[ne,m(t)]])]))}}),jt="data:image/png;base64,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",Lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAArlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8tivQqAAAAOXRSTlMAQL+AVSFwReurxLHcZuZhaxvx9dKPfhIHXc6LUC4LeVmgOMiFNCbXm5N04LeoSzz7pBYru5YPA5jd4ld+AAAKR0lEQVR42uzba3OiMBQG4INXvKGiUuttvaPVarW27vv//9h21umCJlZOBMPO8Hy2Dm+TcMIJUiKRSCQSiUQikUj8p8bL1JdMm5RtXr++YGeQVpkUTswlqUm7OOmkSZ8MPAW1HPDoS5KBX0EtRwySHMs40yKuCs5tSIseLmSIZ2biXIm0KOGCWyeWAxCLIYFgRBxTCJakA0QV1swUrUkHiKx3CipbhuiVdICAcw/eQWJKOpQgkaNgXvAlJou9B4nGjIIw3iBRJC2OZaiu18EEMhnSIwcZh25bQuaDdClAJk+3PEOmOCBd3k1IFNu3/syChD0jfSqQ6arc7lAlnXaQ6dFPHMi0SKvsChLNPV23gUzqSHpVIfObrto3IWH3SbcRZJ6Znx+SdvUyJFZZkqtBpksxMITMjqTGDUikKBY+IFMjiXYKEvacYuGpCQmzT6JuXBfISQ8yTRIMY7dA2vV+PlNLT7vLxei1sD5AJiUoSz9Weh0tp07tuWfM5vXPIz1CNl/pFiZlGxFqmOVmsdCt5LMUjf7LGg9WqryHnqLVhBadVp/CM2+9QZu31pzCUZ/a0Mqe1ikEWxfalYd0twxioUV3chATE7pLCvFBd5ggRsqk7IBYWas3d5kaljtJBTRxrQaYCqSkCyn77FoPhUXLyVV7xiz71Cam9lN2ZvSqOae1KBxSPkXXDO/etYXI/TDq9CDjXAGCHvGtcWk0psfavuJC55O4arhQytPjZex7J9d+hTNWjbSYr3Buc9+AFLKkyxpnXu8q6QXSaIEzY+Iw4pPjsp4t1XtVnSfSKg8/mzPL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",Ye=window.Flv,Hn=window.pako.ungzip;function Kn(n){return Xn(yt(n))}function Xn(n){let e={};e:for(;!Me(n);){let t=Q(n);switch(t>>>3){case 0:break e;case 1:{let c=gt(n);(e.messagesList||(e.messagesList=[])).push(es(n)),n.limit=c;break}case 8:{e.heartbeatDuration=fe(n,!0);break}case 9:{e.needAck=!!ee(n);break}default:Ie(n,t&7)}}return e}function es(n){let e={};e:for(;!Me(n);){let t=Q(n);switch(t>>>3){case 0:break e;case 1:{e.method=me(n,Q(n));break}case 2:{e.payload=Qt(n,Q(n));break}case 3:{e.msgId=fe(n,!1);break}case 4:{e.msgType=Q(n);break}case 5:{e.offset=fe(n,!1);break}case 6:{e.needWrdsStore=!!ee(n);break}case 7:{e.wrdsVersion=fe(n,!1);break}case 8:{e.wrdsSubKey=me(n,Q(n));break}default:Ie(n,t&7)}}return e}function ts(n){return os(yt(n))}function os(n){let e={};e:for(;!Me(n);){let t=Q(n);switch(t>>>3){case 0:break e;case 2:{let c=gt(n);e.user=ns(n),n.limit=c;break}case 3:{e.content=me(n,Q(n));break}default:Ie(n,t&7)}}return e}function ns(n){let e={};e:for(;!Me(n);){let t=Q(n);switch(t>>>3){case 0:break e;case 3:{e.nickName=me(n,Q(n));break}default:Ie(n,t&7)}}return e}function ss(n){let e=Gt();return ls(n,e),vs(e)}function ls(n,e){let t=n.seqId;t!==void 0&&(oe(e,8),qe(e,t));let c=n.logId;c!==void 0&&(oe(e,16),qe(e,c));let s=n.service;s!==void 0&&(oe(e,24),qe(e,s));let l=n.method;l!==void 0&&(oe(e,32),qe(e,l));let r=n.headersList;if(r!==void 0)for(let f of r){oe(e,42);let p=Gt();as(f,p),oe(e,p.limit),ms(e,p),fs(p)}let i=n.payloadEncoding;i!==void 0&&(oe(e,50),tt(e,i));let a=n.payloadType;a!==void 0&&(oe(e,58),tt(e,a));let u=n.payload;u!==void 0&&(oe(e,66),oe(e,u.length),ps(e,u))}function is(n){return rs(yt(n))}function rs(n){let e={};e:for(;!Me(n);){let t=Q(n);switch(t>>>3){case 0:break e;case 1:{e.seqId=fe(n,!0);break}case 2:{e.logId=fe(n,!0);break}case 3:{e.service=fe(n,!0);break}case 4:{e.method=fe(n,!0);break}case 5:{let c=gt(n);(e.headersList||(e.headersList=[])).push(cs(n)),n.limit=c;break}case 6:{e.payloadEncoding=me(n,Q(n));break}case 7:{e.payloadType=me(n,Q(n));break}case 8:{e.payload=Qt(n,Q(n));break}default:Ie(n,t&7)}}return e}function as(n,e){let t=n.key;t!==void 0&&(oe(e,10),tt(e,t));let c=n.value;c!==void 0&&(oe(e,18),tt(e,c))}function cs(n){let e={};e:for(;!Me(n);){let t=Q(n);switch(t>>>3){case 0:break e;case 1:{e.key=me(n,Q(n));break}case 2:{e.value=me(n,Q(n));break}default:Ie(n,t&7)}}return e}function gt(n){let e=Q(n),t=n.limit;return n.limit=n.offset+e,t}function Ie(n,e){switch(e){case 0:for(;ee(n)&128;);break;case 2:ut(n,Q(n));break;case 5:ut(n,4);break;case 1:ut(n,8);break;default:throw new Error("Unimplemented type: "+e)}}let us=new Float32Array(1);new Uint8Array(us.buffer);let ds=new Float64Array(1);new Uint8Array(ds.buffer);let Nt=[];function Gt(){const n=Nt.pop();return n?(n.offset=n.limit=0,n):{bytes:new Uint8Array(64),offset:0,limit:0}}function fs(n){Nt.push(n)}function yt(n){return{bytes:n,offset:0,limit:n.length}}function vs(n){let e=n.bytes,t=n.limit;return e.length===t?e:e.subarray(0,t)}function ut(n,e){if(n.offset+e>n.limit)throw new Error("Skip past limit");n.offset+=e}function Me(n){return n.offset>=n.limit}function $e(n,e){let t=n.bytes,c=n.offset,s=n.limit,l=c+e;if(l>t.length){let r=new Uint8Array(l*2);r.set(t),n.bytes=r}return n.offset=l,l>s&&(n.limit=l),c}function wt(n,e){let t=n.offset;if(t+e>n.limit)throw new Error("Read past limit");return n.offset+=e,t}function Qt(n,e){let t=wt(n,e);return n.bytes.subarray(t,t+e)}function ps(n,e){let t=$e(n,e.length);n.bytes.set(e,t)}function me(n,e){let t=wt(n,e),c=String.fromCharCode,s=n.bytes,l="�",r="";for(let i=0;i<e;i++){let a=s[i+t],u,f,p,h;a&128?(a&224)===192?i+1>=e?r+=l:(u=s[i+t+1],(u&192)!==128?r+=l:(h=(a&31)<<6|u&63,h<128?r+=l:(r+=c(h),i++))):(a&240)==224?i+2>=e?r+=l:(u=s[i+t+1],f=s[i+t+2],((u|f<<8)&49344)!==32896?r+=l:(h=(a&15)<<12|(u&63)<<6|f&63,h<2048||h>=55296&&h<=57343?r+=l:(r+=c(h),i+=2))):(a&248)==240?i+3>=e?r+=l:(u=s[i+t+1],f=s[i+t+2],p=s[i+t+3],((u|f<<8|p<<16)&12632256)!==8421504?r+=l:(h=(a&7)<<18|(u&63)<<12|(f&63)<<6|p&63,h<65536||h>1114111?r+=l:(h-=65536,r+=c((h>>10)+55296,(h&1023)+56320),i+=3))):r+=l:r+=c(a)}return r}function tt(n,e){let t=e.length,c=0;for(let r=0;r<t;r++){let i=e.charCodeAt(r);i>=55296&&i<=56319&&r+1<t&&(i=(i<<10)+e.charCodeAt(++r)-56613888),c+=i<128?1:i<2048?2:i<65536?3:4}oe(n,c);let s=$e(n,c),l=n.bytes;for(let r=0;r<t;r++){let i=e.charCodeAt(r);i>=55296&&i<=56319&&r+1<t&&(i=(i<<10)+e.charCodeAt(++r)-56613888),i<128?l[s++]=i:(i<2048?l[s++]=i>>6&31|192:(i<65536?l[s++]=i>>12&15|224:(l[s++]=i>>18&7|240,l[s++]=i>>12&63|128),l[s++]=i>>6&63|128),l[s++]=i&63|128)}}function ms(n,e){let t=$e(n,e.limit),c=n.bytes,s=e.bytes;for(let l=0,r=e.limit;l<r;l++)c[l+t]=s[l]}function ee(n){return n.bytes[wt(n,1)]}function Rt(n,e){let t=$e(n,1);n.bytes[t]=e}function Q(n){let e=0,t=0,c;do c=ee(n),e<32&&(t|=(c&127)<<e),e+=7;while(c&128);return t}function oe(n,e){for(e>>>=0;e>=128;)Rt(n,e&127|128),e>>>=7;Rt(n,e)}function fe(n,e){let t=0,c=0,s=0,l;return l=ee(n),t=l&127,l&128&&(l=ee(n),t|=(l&127)<<7,l&128&&(l=ee(n),t|=(l&127)<<14,l&128&&(l=ee(n),t|=(l&127)<<21,l&128&&(l=ee(n),c=l&127,l&128&&(l=ee(n),c|=(l&127)<<7,l&128&&(l=ee(n),c|=(l&127)<<14,l&128&&(l=ee(n),c|=(l&127)<<21,l&128&&(l=ee(n),s=l&127,l&128&&(l=ee(n),s|=(l&127)<<7))))))))),{low:t|c<<28,high:c>>>4|s<<24,unsigned:e}}function qe(n,e){let t=e.low>>>0,c=(e.low>>>28|e.high<<4)>>>0,s=e.high>>>24,l=s===0?c===0?t<16384?t<128?1:2:t<1<<21?3:4:c<16384?c<128?5:6:c<1<<21?7:8:s<128?9:10,r=$e(n,l),i=n.bytes;switch(l){case 10:i[r+9]=s>>>7&1;case 9:i[r+8]=l!==9?s|128:s&127;case 8:i[r+7]=l!==8?c>>>21|128:c>>>21&127;case 7:i[r+6]=l!==7?c>>>14|128:c>>>14&127;case 6:i[r+5]=l!==6?c>>>7|128:c>>>7&127;case 5:i[r+4]=l!==5?c|128:c&127;case 4:i[r+3]=l!==4?t>>>21|128:t>>>21&127;case 3:i[r+2]=l!==3?t>>>14|128:t>>>14&127;case 2:i[r+1]=l!==2?t>>>7|128:t>>>7&127;case 1:i[r]=l!==1?t|128:t&127}}var hs=function(n,e){n.constructor==String?n=ks(n):o(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var t=bs(n),c=8*n.length,s=1732584193,l=-271733879,r=-1732584194,i=271733878,a=0;a<t.length;a++)t[a]=(t[a]<<8|t[a]>>>24)&16711935|(t[a]<<24|t[a]>>>8)&4278255360;t[c>>>5]|=128<<c%32,t[(c+64>>>9<<4)+14]=c;for(var u=gs,f=ys,p=ws,h=xs,a=0;a<t.length;a+=16){var T=s,z=l,S=r,C=i;s=u(s,l,r,i,t[a+0],7,-680876936),i=u(i,s,l,r,t[a+1],12,-389564586),r=u(r,i,s,l,t[a+2],17,606105819),l=u(l,r,i,s,t[a+3],22,-1044525330),s=u(s,l,r,i,t[a+4],7,-176418897),i=u(i,s,l,r,t[a+5],12,1200080426),r=u(r,i,s,l,t[a+6],17,-1473231341),l=u(l,r,i,s,t[a+7],22,-45705983),s=u(s,l,r,i,t[a+8],7,1770035416),i=u(i,s,l,r,t[a+9],12,-1958414417),r=u(r,i,s,l,t[a+10],17,-42063),l=u(l,r,i,s,t[a+11],22,-1990404162),s=u(s,l,r,i,t[a+12],7,1804603682),i=u(i,s,l,r,t[a+13],12,-40341101),r=u(r,i,s,l,t[a+14],17,-1502002290),l=u(l,r,i,s,t[a+15],22,1236535329),s=f(s,l,r,i,t[a+1],5,-165796510),i=f(i,s,l,r,t[a+6],9,-1069501632),r=f(r,i,s,l,t[a+11],14,643717713),l=f(l,r,i,s,t[a+0],20,-373897302),s=f(s,l,r,i,t[a+5],5,-701558691),i=f(i,s,l,r,t[a+10],9,38016083),r=f(r,i,s,l,t[a+15],14,-660478335),l=f(l,r,i,s,t[a+4],20,-405537848),s=f(s,l,r,i,t[a+9],5,568446438),i=f(i,s,l,r,t[a+14],9,-1019803690),r=f(r,i,s,l,t[a+3],14,-187363961),l=f(l,r,i,s,t[a+8],20,1163531501),s=f(s,l,r,i,t[a+13],5,-1444681467),i=f(i,s,l,r,t[a+2],9,-51403784),r=f(r,i,s,l,t[a+7],14,1735328473),l=f(l,r,i,s,t[a+12],20,-1926607734),s=p(s,l,r,i,t[a+5],4,-378558),i=p(i,s,l,r,t[a+8],11,-2022574463),r=p(r,i,s,l,t[a+11],16,1839030562),l=p(l,r,i,s,t[a+14],23,-35309556),s=p(s,l,r,i,t[a+1],4,-1530992060),i=p(i,s,l,r,t[a+4],11,1272893353),r=p(r,i,s,l,t[a+7],16,-155497632),l=p(l,r,i,s,t[a+10],23,-1094730640),s=p(s,l,r,i,t[a+13],4,681279174),i=p(i,s,l,r,t[a+0],11,-358537222),r=p(r,i,s,l,t[a+3],16,-722521979),l=p(l,r,i,s,t[a+6],23,76029189),s=p(s,l,r,i,t[a+9],4,-640364487),i=p(i,s,l,r,t[a+12],11,-421815835),r=p(r,i,s,l,t[a+15],16,530742520),l=p(l,r,i,s,t[a+2],23,-995338651),s=h(s,l,r,i,t[a+0],6,-198630844),i=h(i,s,l,r,t[a+7],10,1126891415),r=h(r,i,s,l,t[a+14],15,-1416354905),l=h(l,r,i,s,t[a+5],21,-57434055),s=h(s,l,r,i,t[a+12],6,1700485571),i=h(i,s,l,r,t[a+3],10,-1894986606),r=h(r,i,s,l,t[a+10],15,-1051523),l=h(l,r,i,s,t[a+1],21,-2054922799),s=h(s,l,r,i,t[a+8],6,1873313359),i=h(i,s,l,r,t[a+15],10,-30611744),r=h(r,i,s,l,t[a+6],15,-1560198380),l=h(l,r,i,s,t[a+13],21,1309151649),s=h(s,l,r,i,t[a+4],6,-145523070),i=h(i,s,l,r,t[a+11],10,-1120210379),r=h(r,i,s,l,t[a+2],15,718787259),l=h(l,r,i,s,t[a+9],21,-343485551),s=s+T>>>0,l=l+z>>>0,r=r+S>>>0,i=i+C>>>0}return Wt([s,l,r,i])};const gs=function(n,e,t,c,s,l,r){var i=n+(e&t|~e&c)+(s>>>0)+r;return(i<<l|i>>>32-l)+e},ys=function(n,e,t,c,s,l,r){var i=n+(e&c|t&~c)+(s>>>0)+r;return(i<<l|i>>>32-l)+e},ws=function(n,e,t,c,s,l,r){var i=n+(e^t^c)+(s>>>0)+r;return(i<<l|i>>>32-l)+e},xs=function(n,e,t,c,s,l,r){var i=n+(t^(e|~c))+(s>>>0)+r;return(i<<l|i>>>32-l)+e},ks=function(n){for(var e=[],t=0;t<n.length;t++)e.push(255&n.charCodeAt(t));return e},bs=function(n){for(var e=[],t=0,c=0;t<n.length;t++,c+=8)e[c>>>5]|=n[t]<<24-c%32;return e},_s=function(n){for(var e=[],t=0;t<32*n.length;t+=8)e.push(n[t>>>5]>>>24-t%32&255);return e},Wt=function(n){if(n.constructor==Number)return 16711935&Bt(n,8)|4278255360&Bt(n,24);for(var e=0;e<n.length;e++)n[e]=Wt(n[e]);return n},Bt=function(n,e){return n<<e|n>>>32-e},Ss=function(n){for(var e=[],t=0;t<n.length;t++)e.push((n[t]>>>4).toString(16)),e.push((15&n[t]).toString(16));return e.join("")},As=(n,e)=>{const c=`,live_id=1,aid=6383,version_code=180800,webcast_sdk_version=1.0.14-beta.0,room_id=${n},sub_room_id=,sub_channel_id=,did_rule=3,user_unique_id=${e},device_platform=web,device_type=,ac=,identity=audience`.substring(1),s=hs(c),l=_s(s),r=Ss(l);return window.byted_acrawler.frontierSign({"X-MS-STUB":r})["X-Bogus"]},Cs=(n,e)=>{const t=I();let c,s=new ResizeObserver(l=>{clearTimeout(c),c=setTimeout(()=>{t.value.resize()},500)});return Ae(()=>{s.observe(n.value),e.canvas=n.value,t.value=new Is(e)}),ot(()=>{s.unobserve(n.value),clearTimeout(c)}),t};class Is{constructor(e){X(this,"canvas");X(this,"colors");X(this,"ctx");X(this,"isdraw");X(this,"lines");X(this,"textList");X(this,"fontSize");X(this,"font");X(this,"rows");X(this,"gap");X(this,"speed");X(this,"opacity");X(this,"opacityStr");this.isdraw=!1,this.textList=[],this.canvas=e.canvas,this.ctx=this.canvas.getContext("2d"),this.speed=e.speed||2,this.setFont(e.fontSize||16),this.setGap(e.gap||8),this.setRows(e.rows||4),this.setOpacity(e.opacity||100),this.setColors(e.colors||["FFFFFF","#00FF80","#00FFFF","#FF00FF","#8000FF","#FF9933"]),this.resize()}resize(){this.canvas.width=this.canvas.getBoundingClientRect().width*window.devicePixelRatio,this.canvas.height=this.canvas.getBoundingClientRect().height*window.devicePixelRatio,this.initRows()}setOpacity(e){this.opacity=e;const t=Math.floor(2.55*e).toString(16);this.opacityStr=t.length==1?"0"+t:t}setRows(e){this.rows=e}setSpeed(e){this.speed=e}setFont(e){this.ctx.textBaseline="top",this.fontSize=e,this.font=`${e}px sans-serif`}setGap(e){this.gap=e}setColors(e){this.colors=e}clean(){this.textList=[],this.isdraw=!1}destory(){this.lines=[],this.clean()}add(e){const t=this.getLine();if(t==-1)return;const c=Math.ceil(this.ctx.measureText(e).width),s=this.canvas.width+c;this.lines[t].width=s,this.textList.push({value:e,width:c,line:t,left:this.canvas.width,color:this.colors[Math.floor(Math.random()*this.colors.length)]}),!this.isdraw&&(this.isdraw=!0,this.draw())}getLine(){let e=-1,t=this.lines.length;for(;++e<t;)if(this.lines[e].width==this.canvas.width)return e;return-1}initRows(){this.lines=[];let e=-1;const t=this.gap+this.fontSize;for(;++e<this.rows;)this.lines.push({top:this.gap+t*e,width:this.canvas.width})}draw(){this.ctx.textBaseline="top",this.ctx.font=this.font,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);let e=-1,t=this.textList.length;const c=[];for(;++e<t;){const s=this.textList[e],l=s.left+s.width;if(l<=0)continue;this.ctx.fillStyle=s.color+this.opacityStr;const r=this.lines[s.line];r&&(this.ctx.fillText(s.value,s.left,this.lines[s.line].top),s.left-=this.speed,c.push(s),r.width=Math.max(l,this.canvas.width))}this.textList=c,c.length==0?this.isdraw=!1:requestAnimationFrame(this.draw.bind(this))}}const Ms={"w-full":"","h-full":"",flex:"","flex-col":"","lg:flex-row":"","box-border":"","md:pb-2":""},Ts={"lg:grow-5":"",flex:"","flex-col":""},Os={flex:"","p-2":"","pt-1":"","gap-2":"","text-lg":"","md:pr-3":""},Es={"hover:text-amber":"",grow:"","w-25":"","box-border":"","text-center":"",truncate:"","text-4":"","md:text-5":"","m-0":"","pr-6":"","sm:pr-2":"","lg:pr-0":""},js={"aspect-ratio-video":""},Ls={"w-full":"","h-full":"","pos-absolute":"","top-0":"","z-1":"",flex:"","justify-center":"","items-center":"","text-6":""},Rs=["src"],Bs={key:0},Us={class:"flex items-center gap-4 p-1"},zs={class:"flex items-center gap-4 p-1"},Vs={key:1,"h-0":"","w-0":""},Fs={grow:"","min-h-50":"","lg:grow-0":"","lg:w-80":"","xl:w-100":"",flex:"","flex-col":"","lg:pr-0":"","pt-3":"","lg-pt-12":"","lg:ml-3":"","box-border":"","lg:b-l-solid":"",b:"","lg:b-l-gray-7":"","lg:pl-3":""},Ps={flex:"","items-center":"","line-height-none":"","gap-4":"",b:"","b-y-solid":"","py-3":"","b-gray-7":"","px-4":""},$s=["src"],Ds={"grow-1":"","w-20":""},Ns={"h-4":"",truncate:""},Gs={"h-4":"",flex:"","text-3":"","items-center":"","gap-1":""},Qs=["src"],Ws={"pos-absolute":"","top-0":"","right-4":"","text-4":"",flex:"","flex-col":"","gap-3":""},Js=["src"],Ys=["href"],qs=["data-id","data-site","href"],Zs={"w-5":"","h-5":"","rounded-5":"",alt:""},Hs={flex:"","flex-col":"",b:"","b-solid":"","b-gray-6":"","rounded-2":"","px-2":""},Ks={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},Xs={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},el={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},tl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},ol={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},nl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},sl={flex:"","flex-col":"",b:"","b-solid":"","b-gray-6":"","rounded-2":"","px-2":""},ll={flex:"","justify-between":"","items-center":"","mx-2":"","py-2":""},il={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},rl={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},al={flex:"","justify-between":"","items-center":"",b:"","b-t-gray-6":"","b-t-solid":"","mx-2":"","py-2":""},cl={flex:"","flex-wrap":"",shadow:"",blur:"","bg-dark":"","p-2":"","box-border":"",b:"","b-solid":"","b-gray-7":"",style:{"box-shadow":"0 6px 15px 0 rgba(0, 0, 0, .5)"},rounded:""},ul=["data-color"],dl={"p-3":"","bg-sm":"",flex:"","justify-between":"","items-center":""},fl=K({__name:"play",setup(n){let e,t,c;const s=de({follow:!1,qn:0,line:0,notice:null,paused:!0,muted:!1,fullscreen:!1,webscreen:!1,showController:!0,pictureInPicture:!1}),l=mt(),r=I(),i=I(),a=I(),u=mo(),f=J(()=>u.value&&u.value.stream.length>0?u.value.stream.map(y=>y.name):[]),p=J(()=>f.value.length>0?u.value.stream[s.qn].lines.map(y=>y.name):[]),h=J(()=>p.value.length>0?u.value.stream[s.qn].lines[s.line].url:""),T=J(()=>P.map(y=>Object.values(y.follows)).flat().sort(y=>y.status?-1:0));re(h,()=>{var y;if(h.value){if(s.flv){(y=s.flv)==null||y.switchURL(h.value,l.meta.site.id!="bilibili");return}if(Ye!=null&&Ye.isSupported("video")){const v=new Ye({media:i.value,seamlesslyReload:!0,isLive:!0,retryCount:0});return v.load(h.value),s.flv=v}return s.notice="不支持 flv",clearTimeout(t)}});const z=()=>{a.value.scrollTop=0,A=0,a.value.innerHTML=""};let S,C=0,_=!0;const V=I(),j=Cs(V,{gap:x.canvasGap,rows:x.canvasRows,speed:x.canvasSpeed,opacity:x.canvasOpacity,colors:x.canvasColorOpen?x.colors:["#ffffff"]}),E=[];let L;function g(){L||(L=setTimeout(()=>{let y=-1;const v=E.length>5?5:E.length;for(a.value.style.display="none";++y<v;)a.value.appendChild(E[y]);a.value.style.display="block",E.splice(0,5),_&&(a.value.scrollTop=a.value.scrollHeight),L=void 0},200))}const k=(y,v)=>{var ye;if(C++,x.blockOpen&&Et.value.length&&Et.value.some(Ee=>Ee.test(v))||(C%(x.sideClean||100)==0&&(a.value.innerHTML="",A=0),x.canvasOpen&&((ye=j.value)==null||ye.add(v)),!ke.value||!x.sideOpen))return;const O=document.createElement("div"),{sideColorOpen:R,sideFontsize:D,sideGap:Z,colors:ie}=x;O.style.margin=`${Z}px 0`,O.style.fontSize=`${D}px`,R&&(O.style.color=ie[Math.floor(Math.random()*ie.length)]);const ge=document.createElement("span");ge.style.opacity="0.5",ge.appendChild(document.createTextNode(y+":"));const we=document.createElement("span");we.appendChild(document.createTextNode(v)),O.appendChild(ge),O.appendChild(we),E.push(O),g()};let A=0;const Te=()=>{if(a.value.scrollTop>=A)return A=a.value.scrollTop;A=a.value.scrollTop,_=!1,a.value.removeEventListener("scroll",Te)},qt=()=>{_=!0,a.value.scrollTop=a.value.scrollHeight,a.value.addEventListener("scroll",Te,{passive:!1})};let ae;const xt=async()=>{var v;if(!u.value||S||!x.canvasOpen&&!x.sideOpen)return;let y=!0;if(u.value.siteId=="huya"){const O=(v=u.value)==null?void 0:v.ws;if(!O)return;S=new WebSocket(O),S.onopen=()=>{clearInterval(ae),k("系统","开始连接弹幕服务器"),a.value.addEventListener("scroll",Te),S==null||S.send(JSON.stringify({command:"subscribeNotice",data:["getMessageNotice"],reqId:Date.now().toString()})),ae=setInterval(()=>{S.send("ping")},45e3)},S.onmessage=R=>{if(y)return k("系统","弹幕服务器连接成功"),y=!1;const{sendNick:D,content:Z}=JSON.parse(R.data).data;k(D,Z)},S.onerror=()=>{clearInterval(ae),k("系统","弹幕服务器连接失败")}}else if(u.value.siteId=="douyu")S=new WebSocket("wss://danmuproxy.douyu.com:8506"),S.onopen=()=>{var O,R;clearInterval(ae),k("系统","开始连接弹幕服务器"),a.value.addEventListener("scroll",Te),S.send(De(`type@=loginreq/roomid@=${(O=u.value)==null?void 0:O.roomId}`)),S.send(De(`type@=joingroup/rid@=${(R=u.value)==null?void 0:R.roomId}/gid@=-9999`)),ae=setInterval(()=>{S.send(De("type@=mrkl/"))},45e3)},S.onmessage=async({data:O})=>{y&&(k("系统","弹幕服务器连接成功"),y=!1),(await O.text()).split(/type@=chatmsg\//).forEach(Z=>{const ie=Z.match(/nn@=(.*)\/txt@=(.*)\/cid/);ie!=null&&k(ie[1],ie[2])})},S.onerror=()=>{clearInterval(ae),k("系统","弹幕服务器连接失败")};else if(u.value.siteId=="douyin"){const O=u.value.ws.split(","),R=O[0],D=O[1],Z=As(R,D);let ie=`wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/?room_id=${R}&compress=gzip&version_code=180800&webcast_sdk_version=1.0.14-beta.0&live_id=1&did_rule=3&user_unique_id=${D}&identity=audience&signature=${Z}&aid=6383&device_platform=web&browser_language=zh-CN&browser_platform=Win32&browser_name=Mozilla&browser_version=5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F126.0.0.0+Safari%2F537.36+Edg%2F126.0.0.0`;S=new WebSocket(ie),S.binaryType="arraybuffer",S.onopen=()=>{clearInterval(ae),k("系统","开始连接弹幕服务器"),console.log(S),a.value.addEventListener("scroll",Te),ae=setInterval(()=>{(S==null?void 0:S.readyState)==1&&S.send(ss({payloadType:"bh"}))},1e4)},S.onmessage=ge=>{y&&(k("系统","弹幕服务器连接成功"),y=!1);const we=is(new Uint8Array(ge.data)),ye=Hn(we.payload),ue=Kn(new Uint8Array(ye)).messagesList;if(!ue||ue.length==0)return;const Qe=ue.length;let xe=-1;for(;++xe<Qe;){if(ue[xe].method!="WebcastChatMessage")continue;const b=ts(ue[xe].payload);k(b.user.nickName,b.content)}},S.onerror=function(){console.log(this),clearInterval(ae),k("系统","弹幕服务器连接失败")}}},kt=new TextEncoder;function De(y){let v=kt.encode(y);const O=9+v.byteLength,R=[O,0,0,.1,O,0,0,0,177,2,0,0];v=kt.encode(y+"\0");const D=new Uint8Array(12+v.byteLength);return D.set(R),D.set(v,12),D.buffer}const lt=()=>{clearInterval(ae),S&&(S.onmessage=null,At=="douyu"?S.send(De("type@=logout")):S.close(),S=null,C=0,a.value&&Ne==l.fullPath&&k("系统","弹幕服务器断开连接"))};re(u,()=>xt()),re([()=>x.sideOpen,()=>x.canvasOpen],()=>{!x.sideOpen&&!x.canvasOpen&&lt(),S||xt()});const it=()=>{const{site:y,id:v}=l.meta,O=l.meta.site.follows[v];O&&(u.value=O,s.follow=!0),clearInterval(ae),clearTimeout(t),s.notice="加载中...",ct(()=>{k("系统","开始获取直播间信息")}),ce(y.id,"getRoomDetail",{id:v}).then(R=>{if(u.value=R,s.follow&&Re(R),ct(()=>k("系统","直播间信息获取成功")),!R.status)return s.notice="未开播!";document.title=u.value.title},R=>{s.notice=R,ct(()=>k("系统","直播间信息获取失败"))}).finally(()=>clearTimeout(t))},Zt=()=>{if(!u.value)return;const{id:y}=l.meta.site;s.follow=s.follow?To(y,u.value.roomId):Re(u.value)},rt=()=>{!u.value||!u.value.status||(clearTimeout(e),e=setTimeout(()=>{s.paused?i.value.play():i.value.pause()},200))},bt=()=>{clearTimeout(e),s.fullscreen=!s.fullscreen,document.fullscreenElement?document.exitFullscreen():r.value.requestFullscreen()},he=()=>{clearTimeout(c),s.showController=!0,c=setTimeout(()=>{var y,v;(y=i.value)!=null&&y.paused||!((v=i.value)!=null&&v.played.length)||(s.showController=!1)},3e3)},Ht=()=>{clearTimeout(e),s.webscreen=!s.webscreen,s.fullscreen&&(s.fullscreen=!1,document.exitFullscreen())},Kt=()=>{s.paused=!1,he()},Xt=()=>{s.paused=!0,he()},_t=y=>{if(h.value)switch(y.code){case"ArrowDown":return We(!1);case"ArrowUp":return We(!0);case"Space":return rt()}},eo=()=>{var y;clearTimeout(e),clearTimeout(c),clearTimeout(t),clearTimeout(L),lt(),document.title="Lemon live",document.removeEventListener("keydown",_t),s.pictureInPicture||(y=s.flv)==null||y.destroy()};it();const St=ht();let Ne=l.fullPath;Ae(()=>{r.value.style.filter=H.value==100?"":`brightness(${H.value/100})`,i.value.volume=te.value/100,s.muted=i.value.muted,i.value.addEventListener("canplay",()=>{s.notice=null}),Ke||(r.value.addEventListener("mousemove",he),document.addEventListener("keydown",_t)),document.pictureInPictureElement&&document.exitPictureInPicture(),i.value.addEventListener("leavepictureinpicture",()=>{var y;if(!/play/.test(l.path))return St.push(Ne);if(l.fullPath==Ne)return s.pictureInPicture=!1;(y=s.flv)==null||y.destroy()})});let At=l.meta.site.id;Ro(y=>{const{siteid:v,id:O}=y.params,R=_e.findIndex(D=>D==v);return R==-1?{name:"404"}:(y.meta.site=P[R],y.meta.id=O,s.flv&&(s.flv.destroy(),s.flv=void 0),s.qn=0,s.line=0,s.follow=!1,u.value=void 0,!0)}),re(()=>l.params,()=>{var y;clearTimeout(L),lt(),z(),(y=j.value)==null||y.destory(),At=l.meta.site.id,Ne=l.fullPath,it()}),ot(eo);const to=()=>Promise.all(et(P,dt)),oo=async y=>{y==1&&await to()},no=()=>s.showController?rt():he(),so=()=>{s.pictureInPicture=!s.pictureInPicture,document.pictureInPictureElement?document.exitPictureInPicture():i.value.requestPictureInPicture()},lo=y=>{const v=y.target.dataset.color;if(!v)return;const O=x.colors.findIndex(R=>R==v);if(O==-1)return x.colors.push(v);x.colors.length!=1&&x.colors.splice(O,1)};re(()=>x.colors,()=>{var y;return(y=j.value)==null?void 0:y.setColors(x.colors)}),re(()=>x.canvasSpeed,()=>{var y;return(y=j.value)==null?void 0:y.setSpeed(x.canvasSpeed)}),re(()=>x.canvasOpacity,()=>{var y;return(y=j.value)==null?void 0:y.setOpacity(x.canvasOpacity)}),re(()=>x.canvasColorOpen,()=>{var y;return(y=j.value)==null?void 0:y.setColors(x.canvasColorOpen?x.colors:["#ffffff"])}),ze(()=>{var y,v,O,R;(y=j.value)==null||y.setGap(x.canvasGap),(v=j.value)==null||v.setFont(x.canvasFontsize),(O=j.value)==null||O.setRows(x.canvasRows),(R=j.value)==null||R.resize()}),re(te,()=>{he(),clearTimeout(t),s.notice=`当前音量 ${te.value}%`,i.value.volume=te.value/100,Se("volume",te.value),t=setTimeout(()=>s.notice=null,2e3)}),re(H,()=>{he(),clearTimeout(t),s.notice=`当前亮度 ${H.value}%`,r.value.style.filter=H.value==100?"":`brightness(${H.value/100})`,Se("brightness",H.value),t=setTimeout(()=>s.notice=null,2e3)});let at;const Ge=I(),io=y=>{clearTimeout(at),at=setTimeout(()=>{const v=Oe("id",y.target,Ge.value);if(!v)return;const O=Oe("site",y.target,Ge.value);St.push(`/${O}/play/${v}`)},300)},ro=y=>{var D;clearTimeout(at);const v=Oe("id",y.target,Ge.value);if(!v)return;const R=`/${Oe("site",y.target,Ge.value)}/play/${v}`;(D=window.open(R,"_blank"))==null||D.location},Oe=(y,v,O)=>{if(v==O)return null;const R=v.dataset[y];return R||Oe(y,v.parentElement,O)},ao=()=>H.value=100;re(()=>s.muted,()=>{he(),clearTimeout(t),s.notice=s.muted?"已静音":"已开启声音",t=setTimeout(()=>s.notice=null,2e3)});const co=()=>{if(i.value.muted){i.value.muted=!1,s.muted=!1;return}i.value.muted=!0,s.muted=!0};return(y,v)=>{var ye,Ee,ue,Qe,xe;const O=Zn,R=Qn,D=Pe,Z=Dn,ie=Pn,ge=Fe,we=ft("lazy");return w(),M("div",Ms,[d("div",Ts,[d("div",Os,[d("div",{"hover:text-amber":"",onClick:v[0]||(v[0]=(...b)=>y.$router.back&&y.$router.back(...b)),class:"i-ri-arrow-left-line"}),d("h1",Es,U((ye=m(u))==null?void 0:ye.title),1),d("div",{onClick:v[1]||(v[1]=b=>ke.value=!m(ke)),hidden:"","lg:block":"",style:be(m(ke)?"transform:rotate(180deg)":"margin-right:1.5rem"),class:"i-ri-arrow-right-s-fill"},null,4)]),d("div",{ref_key:"player",ref:r,"md:rounded-6px":"","text-4":"","text-white":"",onContextmenu:v[19]||(v[19]=Y(()=>{},["prevent"])),"bg-black":"","cursor-default":"",class:$({"cursor-none":!m(s).showController,"text-5":m(s).fullscreen,"text-5 !pos-fixed left-0 right-0 top-0 bottom-0 z-10 ":m(s).webscreen}),"pos-relative":"","w-full":"","overflow-hidden":"","select-none":"","h-full":"",onClick:no,onDblclick:bt},[d("div",js,[d("video",{playsinline:"","webkit-playsinline":"","x5-video-player-type":"h5",autoplay:"",ref_key:"video",ref:i,"w-full":"","h-full":"","pos-absolute":"",onPlay:Kt,onPause:Xt},null,544)]),N(d("div",Ls,[d("span",null,U(m(s).notice),1)],512),[[ne,m(s).notice]]),d("canvas",{ref_key:"canvas",ref:V,"pos-absolute":"","top-0":"",width:"0",height:"0","w-full":"","h-full":"","z-1":""},null,512),N(d("div",{"pos-absolute":"","bottom-0":"","left-0":"","right-0":"","px-4":"","py-2":"","gap-3":"","z-20":"",flex:"","items-center":"",onClick:v[5]||(v[5]=Y(()=>{},["stop"])),onDblclick:v[6]||(v[6]=Y(()=>{},["stop"])),class:$({"py-3":m(s).fullscreen||m(s).webscreen}),"bg-black":"","bg-op-30":""},[d("div",{onClick:rt,"hover:text-amber":"",class:$(m(s).paused?"i-ri-play-large-fill":"i-ri-pause-large-fill")},null,2),d("div",{"hover:text-amber":"",onClick:Zt,class:$(m(s).follow?"i-ri-heart-fill":"i-ri-heart-line")},null,2),d("div",{"hover:text-amber":"",onClick:it,class:"i-ri-refresh-line"}),d("img",{"w-1.5em":"","cursor-pointer":"",onClick:v[2]||(v[2]=()=>m(x).canvasOpen=!m(x).canvasOpen),src:m(x).canvasOpen?m(jt):m(Lt)},null,8,Rs),v[33]||(v[33]=d("div",{grow:""},null,-1)),m(f).length?(w(),M("div",Bs,[B(O,{active:m(s).qn,"onUpdate:active":v[3]||(v[3]=b=>m(s).qn=b),list:m(f)},null,8,["active","list"]),B(O,{active:m(s).line,"onUpdate:active":v[4]||(v[4]=b=>m(s).line=b),list:m(p)},null,8,["active","list"]),m(Ke)?ve("",!0):(w(),M("div",{key:0,"ml-2":"","hover:text-amber":"",onClick:so,class:$(m(s).pictureInPicture?"i-ri-picture-in-picture-exit-line":"i-ri-picture-in-picture-2-line")},null,2))])):ve("",!0),d("div",{"hover:text-amber":"",onClick:Ht,class:"i-mdi-fit-to-screen"}),d("div",{"hover:text-amber":"",onClick:bt,class:$(m(s).fullscreen?"i-ri-fullscreen-exit-fill":"i-ri-fullscreen-fill")},null,2)],34),[[ne,m(s).showController]]),m(Ke)?N((w(),M("div",{key:0,class:$({"py-3":m(s).fullscreen||m(s).webscreen}),"pos-absolute":"","top-0":"","left-0":"","right-0":"","px-4":"","py-2":"","gap-3":"","z-20":"",flex:"","justify-between":"","bg-black":"","bg-op-30":"",onClick:v[11]||(v[11]=Y(()=>{},["stop"])),onDblclick:v[12]||(v[12]=Y(()=>{},["stop"]))},[d("div",Us,[d("div",{onClick:v[7]||(v[7]=b=>m(Tt)(!1)),class:"i-ri-sun-line"}),d("div",null,U(m(H)),1),d("div",{onClick:v[8]||(v[8]=b=>m(Tt)(!0)),class:"i-ri-sun-fill"})]),N(d("div",{"flex-1":"","w-10":"",truncate:"","text-center":""},U((Ee=m(u))==null?void 0:Ee.title),513),[[ne,m(s).fullscreen]]),d("div",zs,[d("div",{onClick:v[9]||(v[9]=b=>m(We)(!1)),class:"i-ri-volume-down-fill"}),d("div",null,U(m(te)),1),d("div",{onClick:v[10]||(v[10]=b=>m(We)(!0)),class:"i-ri-volume-up-fill"})])],34)),[[ne,m(s).showController]]):N((w(),M("div",Vs,[d("div",{onClick:v[14]||(v[14]=Y(()=>{},["stop"])),onDblclick:v[15]||(v[15]=Y(()=>{},["stop"])),"pos-absolute":"",class:"top-50% left-4 flex items-center flex-col",style:{transform:"translateY(-50%)"},"z-20":""},[d("div",null,U(m(H)),1),B(R,{value:m(H),"onUpdate:value":v[13]||(v[13]=b=>pe(H)?H.value=b:null),max:200,min:50},null,8,["value"]),d("div",{onClick:Y(ao,["stop"]),class:"i-ri-sun-line"})],32),d("div",{onClick:v[17]||(v[17]=Y(()=>{},["stop"])),onDblclick:v[18]||(v[18]=Y(()=>{},["stop"])),"pos-absolute":"",class:"top-50% right-4 flex items-center flex-col",style:{transform:"translateY(-50%)"},"z-20":""},[Le(U(m(te))+" ",1),B(R,{value:m(te),"onUpdate:value":v[16]||(v[16]=b=>pe(te)?te.value=b:null),max:100,min:0},null,8,["value"]),d("div",{onClick:Y(co,["stop"]),class:$(m(s).muted?"i-ri-volume-mute-line":"i-ri-volume-down-line")},null,2)],32)],512)),[[ne,m(s).showController]])],34)]),N(d("div",Fs,[d("div",Ps,[d("img",{src:(ue=m(u))==null?void 0:ue.avatar,"w-8":"","h-8":"",alt:"","rounded-4":""},null,8,$s),d("div",Ds,[d("div",Ns,U((Qe=m(u))==null?void 0:Qe.nickname),1),d("div",Gs,[d("img",{"w-4":"","h-4":"",src:y.$route.meta.site.icon},null,8,Qs),Le(" "+U(y.$route.meta.site.name),1)])]),d("div",null,[v[34]||(v[34]=d("div",{"mx-1":"",class:"i-mdi-fire"},null,-1)),d("span",null,U((xe=m(u))==null?void 0:xe.online),1)])]),B(ge,{grow:!0,onTabClick:oo,class:"!h-[calc(100%-3.75rem)]"},{default:F(()=>[B(D,{title:"聊天","pos-relative":""},{default:F(()=>{var b;return[d("div",Ws,[d("img",{"w-1.5em":"","cursor-pointer":"",onClick:v[20]||(v[20]=()=>m(x).sideOpen=!m(x).sideOpen),src:m(x).sideOpen?m(jt):m(Lt)},null,8,Js),d("div",{"text-green-5":"",onClick:z,class:"i-ri-delete-bin-3-line"}),d("a",{"text-green-5":"",href:(b=m(u))==null?void 0:b.url,target:"_blank"},v[35]||(v[35]=[d("div",{class:"i-ri-link"},null,-1)]),8,Ys),d("div",{onClick:qt,"text-green-5":"",class:"i-ri-arrow-down-circle-line"})]),d("div",{ref_key:"dm",ref:a,"h-full":"","pl-2":"","box-border":"",class:"scrolly"},null,512)]}),_:1}),B(D,{title:"关注","box-border":"","px-4":""},{default:F(()=>[d("div",{onClick:Y(io,["prevent"]),onDblclick:Y(ro,["prevent"])},[(w(!0),M(q,null,le(m(T),b=>{var Ct,It;return w(),M("a",{"data-id":b.roomId,"data-site":b.siteId,class:$({"text-amber":((Ct=m(u))==null?void 0:Ct.siteId)==b.siteId&&((It=m(u))==null?void 0:It.roomId)==b.roomId}),key:`${b.siteId}/${b.roomId}`,href:`/${b.siteId}/play/${b.roomId}`,flex:"","items-center":"","gap-2":"","py-2":""},[N(d("img",Zs,null,512),[[we,b.avatar]]),d("div",null,U(b.nickname),1),d("div",{"w-3":"","h-3":"","rounded-3":"",class:$([b.status?"bg-green":"bg-red"])},null,2),d("div",null,U(b.status?"直播中":"未开播"),1)],10,qs)}),128))],32)]),_:1}),B(D,{title:"设置","px-2":""},{default:F(()=>[v[47]||(v[47]=d("div",{"p-3":"","bg-sm":""},"弹幕",-1)),d("div",Hs,[d("div",Ks,[v[36]||(v[36]=d("div",null,"文字大小",-1)),B(Z,{value:m(x).canvasFontsize,"onUpdate:value":v[21]||(v[21]=b=>m(x).canvasFontsize=b),max:80,min:8,step:1},null,8,["value"])]),d("div",Xs,[v[37]||(v[37]=d("div",null,"上下间隔",-1)),B(Z,{value:m(x).canvasGap,"onUpdate:value":v[22]||(v[22]=b=>m(x).canvasGap=b),max:80,min:1,step:1},null,8,["value"])]),d("div",el,[v[38]||(v[38]=d("div",null,"最大行数",-1)),B(Z,{value:m(x).canvasRows,"onUpdate:value":v[23]||(v[23]=b=>m(x).canvasRows=b),max:50,min:1,step:1},null,8,["value"])]),d("div",tl,[v[39]||(v[39]=d("div",null,"弹幕速度",-1)),B(Z,{value:m(x).canvasSpeed,"onUpdate:value":v[24]||(v[24]=b=>m(x).canvasSpeed=b),max:32,min:.5,step:.5},null,8,["value"])]),d("div",ol,[v[40]||(v[40]=d("div",null,"弹幕透明",-1)),B(Z,{value:m(x).canvasOpacity,"onUpdate:value":v[25]||(v[25]=b=>m(x).canvasOpacity=b),max:100,min:10,step:10},null,8,["value"])]),d("div",nl,[v[41]||(v[41]=d("div",null,"彩色弹幕",-1)),B(ie,{value:m(x).canvasColorOpen,"onUpdate:value":v[26]||(v[26]=b=>m(x).canvasColorOpen=b)},null,8,["value"])])]),v[48]||(v[48]=d("div",{"p-3":"","bg-sm":""},"聊天",-1)),d("div",sl,[d("div",ll,[v[42]||(v[42]=d("div",null,"文字大小",-1)),B(Z,{value:m(x).sideFontsize,"onUpdate:value":v[27]||(v[27]=b=>m(x).sideFontsize=b),max:80,min:8,step:1},null,8,["value"])]),d("div",il,[v[43]||(v[43]=d("div",null,"上下间隔",-1)),B(Z,{value:m(x).sideGap,"onUpdate:value":v[28]||(v[28]=b=>m(x).sideGap=b),max:80,min:0,step:1},null,8,["value"])]),d("div",rl,[v[44]||(v[44]=d("div",null,"自动清屏",-1)),B(Z,{value:m(x).sideClean,"onUpdate:value":v[29]||(v[29]=b=>m(x).sideClean=b),max:500,min:10,step:10},null,8,["value"])]),d("div",al,[v[45]||(v[45]=d("div",null,"彩色消息",-1)),B(ie,{value:m(x).sideColorOpen,"onUpdate:value":v[30]||(v[30]=b=>m(x).sideColorOpen=b)},null,8,["value"])])]),v[49]||(v[49]=d("div",{"p-3":"","bg-sm":""},"颜色",-1)),d("div",cl,[(w(!0),M(q,null,le(m(Eo),b=>(w(),M("div",{onClick:lo},[d("div",{class:"w-4 h-4 rounded-2 m-2 shadow","box-border":"","data-color":b,"cursor-pointer":"",style:be(`background:${b};${m(x).colors.includes(b)?"box-shadow:0 0 0px 2px white":""}`)},null,12,ul)]))),256))]),d("div",dl,[v[46]||(v[46]=Le("屏蔽 ")),B(ie,{value:m(x).blockOpen,"onUpdate:value":v[31]||(v[31]=b=>m(x).blockOpen=b)},null,8,["value"])]),N(d("textarea",{"outline-none":"","w-full":"","onUpdate:modelValue":v[32]||(v[32]=b=>m(x).blockWords=b),"text-white":"",b:"","b-solid":"","b-gray-7":"","p-2":"","box-border":"",rows:"5","bg-dark":"",shadow:"","rounded-1":"",placeholder:"以空格分隔"},null,512),[[vt,m(x).blockWords,void 0,{trim:!0}]])]),_:1})]),_:1})],512),[[ne,m(ke)]])])}}}),Jt=(n,e)=>{const t=n.__vccOpts||n;for(const[c,s]of e)t[c]=s;return t},vl={},pl={"h-full":"","box-border":"","py-2":"",class:"scrolly"};function ml(n,e){return w(),M("div",pl,e[0]||(e[0]=[d("div",{"text-xl":"","p-4":""},"支持",-1),d("div",{"ml-4":""},[d("img",{"h-50":"","mr-5":"",src:"https://i0.hdslb.com/bfs/article/828b4686d0bcd7a427939b1f121f322898845873.png@1e_1c.webp"}),d("img",{"h-50":"",src:"https://i0.hdslb.com/bfs/article/d07b5e8cbae76f0fc38a8049c433d3d598845873.jpg@1e_1c.webp"})],-1)]))}const hl=Jt(vl,[["render",ml]]),gl={},yl={"h-full":"",flex:"","justify-center":"","items-center":""};function wl(n,e){return w(),M("div",yl,e[0]||(e[0]=[d("div",{"text-center":"","text-8":"","line-height-8":""},[d("div",{"font-900":""},"404"),d("div",{"mt-4":""},"页面未找到")],-1)]))}const xl=Jt(gl,[["render",wl]]);async function je(n){const{siteid:e,id:t}=n.params,c=P.findIndex(s=>s.id==e);return c==-1?{name:"404"}:(n.meta.site=P[c],n.meta.id=t,n.meta.index=c,W.value=c,!0)}const kl=jo({history:Lo(),routes:[{path:"/",redirect:()=>`/${_e[W.value]}`},{path:"/follow",component:Vn},{path:"/user",component:hl},{path:"/category",redirect:()=>`/${_e[W.value]}/category`},{path:"/search",redirect:()=>`/${_e[W.value]}/search`},{path:"/:siteid",component:Fn,beforeEnter:je},{path:"/:siteid/category",component:xn,beforeEnter:je},{path:"/:siteid/category/:id",component:ln,beforeEnter:je},{path:"/:siteid/play/:id",component:fl,beforeEnter:je},{path:"/:siteid/search",component:Cn,beforeEnter:je},{path:"/:pathMatch(.*)*",name:"404",component:xl}]}),bl={install(n){n.directive("lazy",{mounted(e,t){e.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJtMi4yNSAxNS43NWw1LjE1OS01LjE1OWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGw1LjE1OSA1LjE1OW0tMS41LTEuNWwxLjQwOS0xLjQwOWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGwyLjkwOSAyLjkwOW0tMTggMy43NWgxNi41YTEuNSAxLjUgMCAwIDAgMS41LTEuNVY2YTEuNSAxLjUgMCAwIDAtMS41LTEuNUgzLjc1QTEuNSAxLjUgMCAwIDAgMi4yNSA2djEyYTEuNSAxLjUgMCAwIDAgMS41IDEuNW0xMC41LTExLjI1aC4wMDh2LjAwOGgtLjAwOHptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwYS4zNzUuMzc1IDAgMCAxIC43NSAwIi8+PC9zdmc+";const c=new IntersectionObserver(s=>{Ft(s,l=>{if(l.isIntersecting){const r=new Image;r.src=t.value,r.onload=()=>e.src=t.value,c.unobserve(l.target)}})});c.observe(e)}})}},Yt=vo(Vo);Yt.use(kl).use(bl);Yt.mount("#app");