lemon-mse 0.3.2 → 0.3.3
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 +1 -1
- package/package.json +1 -1
package/dist/lemon.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var wi=Object.defineProperty;var yi=(s,t,e)=>t in s?wi(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var Y=(s,t,e)=>yi(s,typeof t!="symbol"?t+"":t,e);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function e(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(n){if(n.ep)return;n.ep=!0;const i=e(n);fetch(n.href,i)}})();const xi=Vue.createApp,v=Vue.createElementVNode,I=Vue.openBlock,U=Vue.createElementBlock,D=Vue.ref,Te=Vue.reactive,We=Vue.watchEffect,Q=Vue.computed,X=Vue.defineComponent,y=Vue.unref,fe=Vue.renderList,se=Vue.Fragment,V=Vue.normalizeClass,Ot=Vue.resolveComponent,Z=Vue.withCtx,P=Vue.createVNode,ye=Vue.vShow,J=Vue.withDirectives,ct=Vue.resolveDynamicComponent,K=Vue.createBlock,_i=Vue.KeepAlive,ke=Vue.createCommentVNode,Je=Vue.onMounted,pe=Vue.watch,F=Vue.toDisplayString,nt=Vue.createTextVNode,it=Vue.vModelText,Tn=Vue.onActivated,Dt=Vue.resolveDirective,ze=Vue.isRef,ki=Vue.withKeys,Ze=Vue.normalizeStyle,ne=Vue.withModifiers,bi=Vue.shallowRef,Qt=Vue.nextTick,Ut=Vue.onBeforeUnmount,Si=Vue.h,Ai=Vue.onDeactivated,Ti=Vue.onUnmounted,Cn=Vue.render,Ci=Vue.Transition,ht=Vue.useModel,ut=Vue.mergeModels,Ii=Vue.renderSlot,ps=Vue.useSlots,Ei=Vue.provide,Mi=Vue.inject,Oi=Vue.getCurrentInstance;var Kt={exports:{}},Es;function Ri(){return Es||(Es=1,function(s){var t=function(){var e=String.fromCharCode,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function c(d,a){if(!i[d]){i[d]={};for(var u=0;u<d.length;u++)i[d][d.charAt(u)]=u}return i[d][a]}var r={compressToBase64:function(d){if(d==null)return"";var a=r._compress(d,6,function(u){return l.charAt(u)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(d){return d==null?"":d==""?null:r._decompress(d.length,32,function(a){return c(l,d.charAt(a))})},compressToUTF16:function(d){return d==null?"":r._compress(d,15,function(a){return e(a+32)})+" "},decompressFromUTF16:function(d){return d==null?"":d==""?null:r._decompress(d.length,16384,function(a){return d.charCodeAt(a)-32})},compressToUint8Array:function(d){for(var a=r.compress(d),u=new Uint8Array(a.length*2),h=0,p=a.length;h<p;h++){var x=a.charCodeAt(h);u[h*2]=x>>>8,u[h*2+1]=x%256}return u},decompressFromUint8Array:function(d){if(d==null)return r.decompress(d);for(var a=new Array(d.length/2),u=0,h=a.length;u<h;u++)a[u]=d[u*2]*256+d[u*2+1];var p=[];return a.forEach(function(x){p.push(e(x))}),r.decompress(p.join(""))},compressToEncodedURIComponent:function(d){return d==null?"":r._compress(d,6,function(a){return n.charAt(a)})},decompressFromEncodedURIComponent:function(d){return d==null?"":d==""?null:(d=d.replace(/ /g,"+"),r._decompress(d.length,32,function(a){return c(n,d.charAt(a))}))},compress:function(d){return r._compress(d,16,function(a){return e(a)})},_compress:function(d,a,u){if(d==null)return"";var h,p,x={},T={},O="",b="",C="",B=2,S=3,k=2,_=[],m=0,f=0,g;for(g=0;g<d.length;g+=1)if(O=d.charAt(g),Object.prototype.hasOwnProperty.call(x,O)||(x[O]=S++,T[O]=!0),b=C+O,Object.prototype.hasOwnProperty.call(x,b))C=b;else{if(Object.prototype.hasOwnProperty.call(T,C)){if(C.charCodeAt(0)<256){for(h=0;h<k;h++)m=m<<1,f==a-1?(f=0,_.push(u(m)),m=0):f++;for(p=C.charCodeAt(0),h=0;h<8;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1}else{for(p=1,h=0;h<k;h++)m=m<<1|p,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=0;for(p=C.charCodeAt(0),h=0;h<16;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1}B--,B==0&&(B=Math.pow(2,k),k++),delete T[C]}else for(p=x[C],h=0;h<k;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1;B--,B==0&&(B=Math.pow(2,k),k++),x[b]=S++,C=String(O)}if(C!==""){if(Object.prototype.hasOwnProperty.call(T,C)){if(C.charCodeAt(0)<256){for(h=0;h<k;h++)m=m<<1,f==a-1?(f=0,_.push(u(m)),m=0):f++;for(p=C.charCodeAt(0),h=0;h<8;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1}else{for(p=1,h=0;h<k;h++)m=m<<1|p,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=0;for(p=C.charCodeAt(0),h=0;h<16;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1}B--,B==0&&(B=Math.pow(2,k),k++),delete T[C]}else for(p=x[C],h=0;h<k;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1;B--,B==0&&(B=Math.pow(2,k),k++)}for(p=2,h=0;h<k;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1;for(;;)if(m=m<<1,f==a-1){_.push(u(m));break}else f++;return _.join("")},decompress:function(d){return d==null?"":d==""?null:r._decompress(d.length,32768,function(a){return d.charCodeAt(a)})},_decompress:function(d,a,u){var h=[],p=4,x=4,T=3,O="",b=[],C,B,S,k,_,m,f,g={val:u(0),position:a,index:1};for(C=0;C<3;C+=1)h[C]=C;for(S=0,_=Math.pow(2,2),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;switch(S){case 0:for(S=0,_=Math.pow(2,8),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;f=e(S);break;case 1:for(S=0,_=Math.pow(2,16),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;f=e(S);break;case 2:return""}for(h[3]=f,B=f,b.push(f);;){if(g.index>d)return"";for(S=0,_=Math.pow(2,T),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;switch(f=S){case 0:for(S=0,_=Math.pow(2,8),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;h[x++]=e(S),f=x-1,p--;break;case 1:for(S=0,_=Math.pow(2,16),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;h[x++]=e(S),f=x-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,T),T++),h[f])O=h[f];else if(f===x)O=B+B.charAt(0);else return null;b.push(O),h[x++]=B+O.charAt(0),p--,B=O,p==0&&(p=Math.pow(2,T),T++)}}};return r}();s!=null?s.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Kt)),Kt.exports}var vs=Ri();function Ms(s){var t;typeof s.remove<"u"?s.remove():(t=s.parentNode)==null||t.removeChild(s)}function Bi(s,t,e,l={}){const n=Si(s,t,l),i=document.createElement("div");return i.classList.add("v-toast--pending"),e.appendChild(i),Cn(n,i),n.component}class Li{constructor(t,e){Y(this,"startedAt");Y(this,"callback");Y(this,"delay");Y(this,"timer");this.startedAt=Date.now(),this.callback=t,this.delay=e,this.timer=setTimeout(t,e)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const ue=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"});function Di(s){return{all:s=s||new Map,on:function(t,e){var l=s.get(t);l?l.push(e):s.set(t,[e])},off:function(t,e){var l=s.get(t);l&&(e?l.splice(l.indexOf(e)>>>0,1):s.set(t,[]))},emit:function(t,e){var l=s.get(t);l&&l.slice().map(function(n){n(e)}),(l=s.get("*"))&&l.slice().map(function(n){n(t,e)})}}}const rs=Di(),In=(s,t)=>{const e=s.__vccOpts||s;for(const[l,n]of t)e[l]=n;return e},Ui=X({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:ue.BOTTOM_RIGHT,validator(s){return Object.values(ue).includes(s)}},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onDismiss:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data(){return{isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}},beforeMount(){this.setupContainer()},mounted(){this.showNotice(),rs.on("toast-clear",this.dismiss)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-toast.v-toast--top"),this.parentBottom=document.querySelector(".v-toast.v-toast--bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-toast v-toast--top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-toast v-toast--bottom");const s=document.body;s.appendChild(this.parentTop),s.appendChild(this.parentBottom)},shouldQueue(){return this.queue?this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0:!1},dismiss(){this.timer&&this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout(()=>{this.onDismiss.apply(null,arguments);const s=this.$refs.root;Cn(null,s),Ms(s)},150)},showNotice(){if(this.shouldQueue()){this.queueTimer=setTimeout(this.showNotice,250);return}const s=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),Ms(s),this.isActive=!0,this.duration&&(this.timer=new Li(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(s){!this.pauseOnHover||!this.timer||(s?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case ue.TOP:case ue.TOP_RIGHT:case ue.TOP_LEFT:return this.parentTop;case ue.BOTTOM:case ue.BOTTOM_RIGHT:case ue.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case ue.TOP:case ue.TOP_RIGHT:case ue.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case ue.BOTTOM:case ue.BOTTOM_RIGHT:case ue.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){rs.off("toast-clear",this.dismiss)}}),zi=["innerHTML"];function $i(s,t,e,l,n,i){return I(),K(Ci,{"enter-active-class":s.transition.enter,"leave-active-class":s.transition.leave},{default:Z(()=>[J(v("div",{ref:"root",role:"alert",class:V(["v-toast__item",[`v-toast__item--${s.type}`,`v-toast__item--${s.position}`]]),onMouseover:t[0]||(t[0]=c=>s.toggleTimer(!0)),onMouseleave:t[1]||(t[1]=c=>s.toggleTimer(!1)),onClick:t[2]||(t[2]=(...c)=>s.whenClicked&&s.whenClicked(...c))},[t[3]||(t[3]=v("div",{class:"v-toast__icon"},null,-1)),v("p",{class:"v-toast__text",innerHTML:s.message},null,8,zi)],34),[[ye,s.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}const ji=In(Ui,[["render",$i]]),Fi=(s={})=>({open(t){let e=null;typeof t=="string"&&(e=t);const n=Object.assign({},{message:e},s,t);return{dismiss:Bi(ji,n,document.body).ctx.dismiss}},clear(){rs.emit("toast-clear")},success(t,e={}){return this.open(Object.assign({},{message:t,type:"success"},e))},error(t,e={}){return this.open(Object.assign({},{message:t,type:"error"},e))},info(t,e={}){return this.open(Object.assign({},{message:t,type:"info"},e))},warning(t,e={}){return this.open(Object.assign({},{message:t,type:"warning"},e))},default(t,e={}){return this.open(Object.assign({},{message:t,type:"default"},e))}});var xn,_n,kn,bn,Sn,An;const Os=((xn=typeof globalThis<"u"?globalThis:void 0)==null?void 0:xn.crypto)||((_n=typeof global<"u"?global:void 0)==null?void 0:_n.crypto)||((kn=typeof window<"u"?window:void 0)==null?void 0:kn.crypto)||((bn=typeof self<"u"?self:void 0)==null?void 0:bn.crypto)||((An=(Sn=typeof frames<"u"?frames:void 0)==null?void 0:Sn[0])==null?void 0:An.crypto);let as;Os?as=s=>{const t=[];for(let e=0,l;e<s;e+=4)t.push(Os.getRandomValues(new Uint32Array(1))[0]);return new Me(t,s)}:as=s=>{const t=[],e=l=>{let n=l,i=987654321;const c=4294967295;return()=>{i=36969*(i&65535)+(i>>16)&c,n=18e3*(n&65535)+(n>>16)&c;let r=(i<<16)+n&c;return r/=4294967296,r+=.5,r*(Math.random()>.5?1:-1)}};for(let l=0,n;l<s;l+=4){const i=e((n||Math.random())*4294967296);n=i()*987654071,t.push(i()*4294967296|0)}return new Me(t,s)};class zt{static create(...t){return new this(...t)}mixIn(t){return Object.assign(this,t)}clone(){const t=new this.constructor;return Object.assign(t,this),t}}class Me extends zt{constructor(t=[],e=t.length*4){super();let l=t;if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){const n=l.byteLength,i=[];for(let c=0;c<n;c+=1)i[c>>>2]|=l[c]<<24-c%4*8;this.words=i,this.sigBytes=n}else this.words=t,this.sigBytes=e}toString(t=Ni){return t.stringify(this)}concat(t){const e=this.words,l=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(let c=0;c<i;c+=1){const r=l[c>>>2]>>>24-c%4*8&255;e[n+c>>>2]|=r<<24-(n+c)%4*8}else for(let c=0;c<i;c+=4)e[n+c>>>2]=l[c>>>2];return this.sigBytes+=i,this}clamp(){const{words:t,sigBytes:e}=this;t[e>>>2]&=4294967295<<32-e%4*8,t.length=Math.ceil(e/4)}clone(){const t=super.clone.call(this);return t.words=this.words.slice(0),t}}Y(Me,"random",as);const Ni={stringify(s){const{words:t,sigBytes:e}=s,l=[];for(let n=0;n<e;n+=1){const i=t[n>>>2]>>>24-n%4*8&255;l.push((i>>>4).toString(16)),l.push((i&15).toString(16))}return l.join("")},parse(s){const t=s.length,e=[];for(let l=0;l<t;l+=2)e[l>>>3]|=parseInt(s.substr(l,2),16)<<24-l%8*4;return new Me(e,t/2)}},Rs={stringify(s){const{words:t,sigBytes:e}=s,l=[];for(let n=0;n<e;n+=1){const i=t[n>>>2]>>>24-n%4*8&255;l.push(String.fromCharCode(i))}return l.join("")},parse(s){const t=s.length,e=[];for(let l=0;l<t;l+=1)e[l>>>2]|=(s.charCodeAt(l)&255)<<24-l%4*8;return new Me(e,t)}},En={stringify(s){try{return decodeURIComponent(escape(Rs.stringify(s)))}catch{throw new Error("Malformed UTF-8 data")}},parse(s){return Rs.parse(unescape(encodeURIComponent(s)))}};class Pi extends zt{constructor(){super(),this._minBufferSize=0}reset(){this._data=new Me,this._nDataBytes=0}_append(t){let e=t;typeof e=="string"&&(e=En.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(t){let e;const{_data:l,blockSize:n}=this,i=l.words,c=l.sigBytes,r=n*4;let d=c/r;t?d=Math.ceil(d):d=Math.max((d|0)-this._minBufferSize,0);const a=d*n,u=Math.min(a*4,c);if(a){for(let h=0;h<a;h+=n)this._doProcessBlock(i,h);e=i.splice(0,a),l.sigBytes-=u}return new Me(e,u)}clone(){const t=super.clone.call(this);return t._data=this._data.clone(),t}}class Mn extends Pi{constructor(t){super(),this.blockSize=512/32,this.cfg=Object.assign(new zt,t),this.reset()}static _createHelper(t){return(e,l)=>new t(l).finalize(e)}static _createHmacHelper(t){return(e,l)=>new Vi(t,l).finalize(e)}reset(){super.reset.call(this),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){return t&&this._append(t),this._doFinalize()}}class Vi extends zt{constructor(t,e){super();const l=new t;this._hasher=l;let n=e;typeof n=="string"&&(n=En.parse(n));const i=l.blockSize,c=i*4;n.sigBytes>c&&(n=l.finalize(e)),n.clamp();const r=n.clone();this._oKey=r;const d=n.clone();this._iKey=d;const a=r.words,u=d.words;for(let h=0;h<i;h+=1)a[h]^=1549556828,u[h]^=909522486;r.sigBytes=c,d.sigBytes=c,this.reset()}reset(){const t=this._hasher;t.reset(),t.update(this._iKey)}update(t){return this._hasher.update(t),this}finalize(t){const e=this._hasher,l=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(l))}}const M=[];for(let s=0;s<64;s+=1)M[s]=Math.abs(Math.sin(s+1))*4294967296|0;const oe=(s,t,e,l,n,i,c)=>{const r=s+(t&e|~t&l)+n+c;return(r<<i|r>>>32-i)+t},le=(s,t,e,l,n,i,c)=>{const r=s+(t&l|e&~l)+n+c;return(r<<i|r>>>32-i)+t},re=(s,t,e,l,n,i,c)=>{const r=s+(t^e^l)+n+c;return(r<<i|r>>>32-i)+t},ae=(s,t,e,l,n,i,c)=>{const r=s+(e^(t|~l))+n+c;return(r<<i|r>>>32-i)+t};class Hi extends Mn{_doReset(){this._hash=new Me([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(t,e){const l=t;for(let j=0;j<16;j+=1){const $=e+j,L=t[$];l[$]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}const n=this._hash.words,i=l[e+0],c=l[e+1],r=l[e+2],d=l[e+3],a=l[e+4],u=l[e+5],h=l[e+6],p=l[e+7],x=l[e+8],T=l[e+9],O=l[e+10],b=l[e+11],C=l[e+12],B=l[e+13],S=l[e+14],k=l[e+15];let _=n[0],m=n[1],f=n[2],g=n[3];_=oe(_,m,f,g,i,7,M[0]),g=oe(g,_,m,f,c,12,M[1]),f=oe(f,g,_,m,r,17,M[2]),m=oe(m,f,g,_,d,22,M[3]),_=oe(_,m,f,g,a,7,M[4]),g=oe(g,_,m,f,u,12,M[5]),f=oe(f,g,_,m,h,17,M[6]),m=oe(m,f,g,_,p,22,M[7]),_=oe(_,m,f,g,x,7,M[8]),g=oe(g,_,m,f,T,12,M[9]),f=oe(f,g,_,m,O,17,M[10]),m=oe(m,f,g,_,b,22,M[11]),_=oe(_,m,f,g,C,7,M[12]),g=oe(g,_,m,f,B,12,M[13]),f=oe(f,g,_,m,S,17,M[14]),m=oe(m,f,g,_,k,22,M[15]),_=le(_,m,f,g,c,5,M[16]),g=le(g,_,m,f,h,9,M[17]),f=le(f,g,_,m,b,14,M[18]),m=le(m,f,g,_,i,20,M[19]),_=le(_,m,f,g,u,5,M[20]),g=le(g,_,m,f,O,9,M[21]),f=le(f,g,_,m,k,14,M[22]),m=le(m,f,g,_,a,20,M[23]),_=le(_,m,f,g,T,5,M[24]),g=le(g,_,m,f,S,9,M[25]),f=le(f,g,_,m,d,14,M[26]),m=le(m,f,g,_,x,20,M[27]),_=le(_,m,f,g,B,5,M[28]),g=le(g,_,m,f,r,9,M[29]),f=le(f,g,_,m,p,14,M[30]),m=le(m,f,g,_,C,20,M[31]),_=re(_,m,f,g,u,4,M[32]),g=re(g,_,m,f,x,11,M[33]),f=re(f,g,_,m,b,16,M[34]),m=re(m,f,g,_,S,23,M[35]),_=re(_,m,f,g,c,4,M[36]),g=re(g,_,m,f,a,11,M[37]),f=re(f,g,_,m,p,16,M[38]),m=re(m,f,g,_,O,23,M[39]),_=re(_,m,f,g,B,4,M[40]),g=re(g,_,m,f,i,11,M[41]),f=re(f,g,_,m,d,16,M[42]),m=re(m,f,g,_,h,23,M[43]),_=re(_,m,f,g,T,4,M[44]),g=re(g,_,m,f,C,11,M[45]),f=re(f,g,_,m,k,16,M[46]),m=re(m,f,g,_,r,23,M[47]),_=ae(_,m,f,g,i,6,M[48]),g=ae(g,_,m,f,p,10,M[49]),f=ae(f,g,_,m,S,15,M[50]),m=ae(m,f,g,_,u,21,M[51]),_=ae(_,m,f,g,C,6,M[52]),g=ae(g,_,m,f,d,10,M[53]),f=ae(f,g,_,m,O,15,M[54]),m=ae(m,f,g,_,c,21,M[55]),_=ae(_,m,f,g,x,6,M[56]),g=ae(g,_,m,f,k,10,M[57]),f=ae(f,g,_,m,h,15,M[58]),m=ae(m,f,g,_,B,21,M[59]),_=ae(_,m,f,g,a,6,M[60]),g=ae(g,_,m,f,b,10,M[61]),f=ae(f,g,_,m,r,15,M[62]),m=ae(m,f,g,_,T,21,M[63]),n[0]=n[0]+_|0,n[1]=n[1]+m|0,n[2]=n[2]+f|0,n[3]=n[3]+g|0}_doFinalize(){const t=this._data,e=t.words,l=this._nDataBytes*8,n=t.sigBytes*8;e[n>>>5]|=128<<24-n%32;const i=Math.floor(l/4294967296),c=l;e[(n+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,e[(n+64>>>9<<4)+14]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,t.sigBytes=(e.length+1)*4,this._process();const r=this._hash,d=r.words;for(let a=0;a<4;a+=1){const u=d[a];d[a]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}return r}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Bs=Mn._createHelper(Hi),$t=(s,t)=>{let e=-1;const l=s.length,n=new Array(l);for(;++e<l;)n[e]=t(s[e]);return n},Zi=(s,t)=>{let e=-1;const l=s.length;for(;++e<l;)t(s[e])},Gi=/^([A-Za-z0-9_\-\.\u4e00-\u9fa5])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,8})$/,Wi=s=>Gi.test(s),Ji=s=>{if(s.scrollTop>0)return!0;s.scrollTop=1;const t=!!s.scrollTop;return s.scrollTop=0,t},Qi=async(s,t,e)=>{const l=[],n=[];for(const i of s){const c=Promise.resolve().then(()=>e(i));if(l.push(c),t<=s.length){const r=c.then(()=>n.splice(n.indexOf(r),1));n.push(r),n.length>=t&&await Promise.race(n)}}return Promise.all(l)},Ls=s=>{let t="",e=-1,l=13;for(;++e<l;)t+=Math.random()*10|0;const n=(Date.now()%1e10*1e3+(1e3*Math.random()|0)%4294967295).toString(),i=new URLSearchParams(s.code),c=i.get("fs"),r=(Date.now()/1e3|21600).toString(16),d=(Date.now()+Number(t)).toString(),a=atob(i.get("fm")).split("_")[0],u=Bs(`${d}|tars_mp|102`).toString();return`&wsSecret=${Bs([a,t,s.name,u,r].join("_")).toString()}&uuid=${n}&wsTime=${r}&uid=${t}&seqid=${d}&fs=${c}&ctype=tars_mp&t=102&ver=1&sv=2401310321`},jt=window.location.origin+"/api/",be=(s,t,e={})=>(s=="douyin"&&(e?e.cookie=ge[s]:e={cookie:ge[s]}),e.token=parseInt((Date.now()/1e3).toString()).toString(20),Ft(`${jt}${s}/${t}${e?"?"+new URLSearchParams(e).toString():""}`)),cs=async s=>{const t=Object.keys(s.follows);if(!t.length)return Promise.resolve(!1);if(s.id=="douyin"){(await Qi(t,4,l=>be("douyin","getLiveStatus",{id:l}))).forEach((l,n)=>s.follows[t[n]].status=l[t[n]].status);return}await be(s.id,"getLiveStatus",{id:t.join(",")}).then(e=>Object.keys(e).forEach(l=>{s.follows[l].status=e[l].status}))},Ki=s=>Ft(`${jt}sync`,{method:"POST",body:JSON.stringify({follows:vs.compressToBase64(JSON.stringify(s)),token:lt.value})}),Yi=()=>Ft(`${jt}sync`,{method:"POST",body:JSON.stringify({get:!0,token:lt.value})}).then(s=>JSON.parse(vs.decompressFromBase64(s))),Ds=(s,t)=>Ft(jt+s,{method:"POST",body:JSON.stringify(t)}),ot=Fi({duration:3e3,position:"top"}),Ft=(s,t)=>fetch(s,t).then(async e=>{let l=await e.text();return l=JSON.parse(vs.decompressFromBase64(l)),l.code!=200?(console.log(l.msg),ot.error(l.msg),Promise.reject(l.msg)):l.data},e=>{ot.error("请求异常!")});D(!0);const On={huya:"虎牙",bilibili:"哔哩",douyu:"斗鱼",douyin:"抖音"},G=[{name:"虎牙直播",icon:"https://www.huya.com/favicon.ico",id:"huya",categories:D([]),categoryActive:D(0),recommend:{page:1,hasMore:!0,list:D([])},search:{page:1,hasMore:!0,list:D([])},follows:Te(kt("huya"))},{name:"斗鱼直播",icon:"https://www.douyu.com/favicon.ico",id:"douyu",categories:D([]),categoryActive:D(0),recommend:{page:1,hasMore:!0,list:D([])},search:{page:1,hasMore:!0,list:D([])},follows:Te(kt("douyu"))},{name:"抖音直播",icon:"https://www.douyin.com/favicon.ico",id:"douyin",categories:D([]),categoryActive:D(0),recommend:{page:1,hasMore:!0,list:D([])},search:{page:1,hasMore:!0,list:D([])},follows:Te(kt("douyin"))},{name:"哔哩直播",icon:"https://www.bilibili.com/favicon.ico",id:"bilibili",categories:D([]),categoryActive:D(0),recommend:{page:1,hasMore:!0,list:D([])},search:{page:1,hasMore:!0,list:D([])},follows:Te(kt("bilibili"))}],Ge=["huya","douyu","douyin","bilibili"],ve=D(Be("volume",100)),ce=D(Be("brightness",100)),_t=s=>{ve.value=s?Math.min(100,ve.value+5):Math.max(0,ve.value-5)},Us=s=>{ce.value=s?Math.min(200,ce.value+10):Math.max(50,ce.value-10)};function kt(s){const t=localStorage.getItem("follows-"+s);return t?JSON.parse(t):{}}function Rt(s){const t=G.find(e=>e.id==s.siteId);return s.siteId=t.id,t.follows[s.roomId]={...s,stream:void 0,ws:void 0},localStorage.setItem("follows-"+s.siteId,JSON.stringify(t.follows)),Reflect.has(t.follows,s.roomId)}function us(s,t){const e=G.find(l=>l.id==s);return delete e.follows[t],localStorage.setItem("follows-"+s,JSON.stringify(e.follows)),Reflect.has(e.follows,t)}function qi(){G.forEach(s=>{for(const t in s.follows)delete s.follows[t];localStorage.removeItem("follows-"+s.id)})}async function zs(s,t){const e=s.categories;e.value.length||(e.value=await be(s.id,"getCategories"));for(const l of e.value)for(const n of l.list)if(n.cid==t)return n;return null}const E=Te(Be("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:""}));We(()=>{Oe("dm-settings",E)});function Be(s,t){const e=localStorage.getItem(s);return e?JSON.parse(e):t}function Oe(s,t){localStorage.setItem(s,JSON.stringify(t))}const Xi=["#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"],$s=Q(()=>E.blockWords.length==0?[]:E.blockWords.split(" ").map(s=>new RegExp(s))),ge=Te(Be("cookies",{}));We(()=>Oe("cookies",ge));const te=D(0),He=D(Be("show-chat",!0)),st=D(Be("show-aside",!0));We(()=>Oe("show-chat",He.value));We(()=>Oe("show-aside",st.value));const Yt=D(Be("user",{})),lt=D(Be("token","")),rt=$t(G,s=>({name:s.name,list:Q(()=>Object.values(s.follows).sort(t=>t.status?-1:0))}));rt.unshift({name:"全部",list:Q(()=>G.map(s=>Object.values(s.follows)).flat().sort(s=>s.status?-1:0))});const eo=VueRouter.createRouter,to=VueRouter.createWebHistory,ms=VueRouter.useRoute,Nt=VueRouter.useRouter,so=VueRouter.onBeforeRouteUpdate,no={class:"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"},io={class:"h-full scrolly md:px-3"},oo={key:0,src:"https://live.douyin.com","pos-absolute":"",width:"0",height:"0","op-0":"","b-0":"",style:{"z-index":"-10"}},lo=X({__name:"App",setup(s){const t=[{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"}],e=D(!0);Je(()=>{document.querySelector("main").style.height=`calc(${window.innerHeight}px - 3.5rem)`,setTimeout(()=>e.value=!1,5e3)});const l=ms();return pe(l,()=>{const n=l.params.siteid;if(n==null)return;const i=Ge.findIndex(c=>c==n);i!=-1&&(te.value=i)}),We(()=>{document.querySelectorAll(".v-toast").forEach(n=>{n.style.left=st?"70px":"0"})}),(n,i)=>{const c=Ot("router-link"),r=Ot("router-view");return I(),U(se,null,[J(v("div",no,[(I(),U(se,null,fe(t,d=>P(c,{to:d.link,class:V(["hover:text-amber rounded-2 py-2 px-4 m-2",{"text-amber":n.$route.path==d.link}])},{default:Z(()=>[v("div",{class:V(d.icon)},null,2)]),_:2},1032,["to","class"])),64))],512),[[ye,y(st)]]),v("main",{class:V(["md:!h-100vh mx-2 md:mx-0 pt-2 box-border",{"md:ml-17.5":y(st),"!h-100vh":!y(st)}])},[v("div",io,[P(r,null,{default:Z(({Component:d})=>[(I(),K(_i,{exclude:["play"]},[(I(),K(ct(d)))],1024))]),_:1})])],2),y(e)?(I(),U("iframe",oo)):ke("",!0)],64)}}}),ro=s=>{const t=D(s);return[t,l=>t.value=l]},ao=/scroll|auto|overlay/i;function co(s){return s.tagName!=="HTML"&&s.tagName!=="BODY"&&s.nodeType===1}function uo(s,t=document.body){let e=s;for(;e&&e!==t&&co(e);){const{overflowY:l}=window.getComputedStyle(e);if(ao.test(l))return e;e=e.parentNode}return t}function fo(s,t=document.body){const e=D();return Je(()=>{s.value&&(e.value=uo(s.value,t))}),e}const ho={key:0,class:"text-center"},po={key:1,class:"text-center"},Pt=X({__name:"list",props:{finshedText:{default:"没有更多了"},errorText:{default:"加载失败,点击重新加载"},immediate:{type:Boolean,default:!0},offset:{default:50}},emits:["load","refresh"],setup(s,{emit:t}){const e=s,l=D(0),[n,i]=ro("normal"),c=D(),r=fo(c),d=t,a=()=>{if(l.value=r.value.scrollTop,n.value!="normal")return;r.value.scrollHeight-r.value.clientHeight-r.value.scrollTop<e.offset&&p()};Je(()=>{e.immediate&&p(),r.value.addEventListener("scroll",a,{passive:!0})}),Tn(()=>{r.value.scrollTop=l.value,r.value.addEventListener("scroll",a)});const u=()=>{r.value.removeEventListener("scroll",a)};Ai(u),Ut(u);let h;const p=()=>{i("loading"),d("load",i),clearTimeout(h),h=setTimeout(()=>{Ji(r.value)||d("load",i)},2e3)};return(x,T)=>(I(),U("div",{ref_key:"root",ref:c,class:"h-full select-none"},[Ii(x.$slots,"default"),y(n)=="loading"?(I(),U("div",ho,"加载中...")):y(n)=="finshed"?(I(),U("div",po,F(e.finshedText),1)):y(n)=="loaderror"?(I(),U("div",{key:2,class:"text-center cursor-pointer",onClick:p},F(e.errorText),1)):ke("",!0)],512))}}),vo=["data-id","data-site","href"],mo={class:"pos-relative text-fuchsia-5 rounded-t-2 w-full aspect-video"},go={class:"mx-auto h-full rounded-2 select-none block"},wo={class:"pos-absolute bottom-0 right-0 px-2 py-1 rounded-tl-2 bg-dark-6"},yo={class:"line-height-none pos-absolute top-0 right-0 px-1 py-1 rounded-tr-1 rounded-bl-2 bg-dark-6"},xo={key:0,class:"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"},_o={class:"px-2 text-truncate leading-normal"},ko={class:"px-2 text-truncate leading-normal pb-2"},gs=X({__name:"rooms",props:{list:{}},setup(s){let t;const e=Nt(),l=D(),n=r=>{clearTimeout(t),t=setTimeout(()=>{const d=c("id",r.target,l.value);if(!d)return;const a=c("site",r.target,l.value);e.push(`/${a}/play/${d}`)},300)},i=r=>{var h;clearTimeout(t);const d=c("id",r.target,l.value);if(!d)return;const u=`/${c("site",r.target,l.value)}/play/${d}`;(h=window.open(u,"_blank"))==null||h.location},c=(r,d,a)=>{if(d==a)return null;const u=d.dataset[r];return u||c(r,d.parentElement,a)};return(r,d)=>{const a=Dt("lazy");return r.list.value.length>0?(I(),U("div",{key:0,ref_key:"root",ref:l,class:"grid gap-4 p-2 justify-evenly cursor-pointer select-none grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5",onClick:ne(n,["prevent"]),onDblclick:ne(i,["prevent"])},[(I(!0),U(se,null,fe(r.list.value,u=>(I(),U("a",{"data-id":u.roomId,"data-site":u.siteId,href:`/${u.siteId}/play/${u.roomId}`,key:`${u.siteId}-${u.roomId}`,class:"shadow rounded-2 b-2px b-solid b-transparent hover:b-amber overflow-hidden"},[v("div",mo,[J(v("img",go,null,512),[[a,u.cover]]),v("div",wo,F(u.category),1),v("div",yo,[d[0]||(d[0]=v("div",{class:"i-mdi-fire"},null,-1)),v("span",null,F(u.online),1)]),u.status?ke("",!0):(I(),U("div",xo," 未开播 "))]),v("div",_o,F(u.title),1),v("div",ko,F(u.nickname),1)],8,vo))),128))],544)):ke("",!0)}}}),bo={class:"h-full"},So={class:"py-1 px-2 text-lg text-center relative"},Ao={class:"hover:text-amber"},To={key:0,class:"h-[calc(100%-3.25rem)] scrolly"},Co=X({__name:"categoryRooms",setup(s){const t=ms(),e=D(""),l=D(),n={list:D([]),page:1,hasMore:!0},i=a=>{const{site:u,id:h}=t.meta;be(u.id,"getCategoryRooms",{id:h,pid:l.value,page:n.page}).then(p=>{if(n.list.value=n.list.value.concat(p.list),n.hasMore=p.hasMore,ge[u.id]||(ge[u.id]=p.cookie),!p.hasMore)return a("finshed");n.page++,a("normal")},p=>{e.value=p,a("loaderror")})},c=D(!1),r=()=>{document.querySelector("#goTop").click(),c.value=!0;const{site:a,id:u}=t.meta;be(a.id,"getCategoryRooms",{id:u,pid:l.value,page:n.page}).then(h=>{n.list.value=h.list,n.hasMore=h.hasMore,n.page++,ge[a.id]||(ge[a.id]=h.cookie)},h=>{e.value=h}).finally(()=>c.value=!1)};let d=t.fullPath;return zs(t.meta.site,t.meta.id).then(a=>{e.value=(a==null?void 0:a.name)||null,l.value=a==null?void 0:a.pid}),Tn(function(){d!=t.fullPath&&(d=t.fullPath,zs(t.meta.site,t.meta.id).then(a=>{e.value=(a==null?void 0:a.name)||null,l.value=a==null?void 0:a.pid}),n.list.value=[],n.page=1,n.hasMore=!0)}),(a,u)=>{var x;const h=gs,p=Pt;return I(),U("div",bo,[v("div",So,[v("div",{onClick:u[0]||(u[0]=(...T)=>a.$router.back&&a.$router.back(...T)),class:"i-ri-arrow-left-line hover:text-amber absolute left-2"}),v("div",{onClick:r,class:V(["i-ri-refresh-line hover:text-amber absolute right-4 md:right-unset md:left-12",{"animate-spin":y(c)}])},null,2),v("span",Ao,F(`${(x=y(t).meta.site)==null?void 0:x.name} ${y(e)==null?"分区不存在":y(e)==""?"加载中":y(e)}`),1)]),y(e)?(I(),U("div",To,[(I(),K(p,{key:y(d),onLoad:i},{default:Z(()=>[P(h,{list:n.list},null,8,["list"])]),_:1}))])):ke("",!0)])}}}),Rn=Symbol("tabs"),Io=(s,t)=>{const e=Te([]);return Ei(s,Object.assign({link:i=>{i.proxy&&e.push(i.proxy)},unlink:i=>{const c=e.indexOf(i.proxy);e.splice(c,1)},children:e},t)),e},Bn=s=>{const t=Mi(s);if(t==null)return{parent:t,index:D(-1)};const e=Oi(),{link:l,unlink:n,children:i}=t;l(e),Ti(()=>n(e));const c=Q(()=>i.indexOf(e.proxy));return{parent:t,children:i,index:c}},Eo={class:"h-full box-border"},Mo={class:"w-full box-border text-sm sm:text-base"},Oo=["onClick"],Ro={class:"h-[calc(100%-2rem)] scrolly box-border pt-1"},pt=X({__name:"tabs",props:ut({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:ut(["tabClick"],["update:active"]),setup(s,{emit:t}){const e=ht(s,"active"),l=s,n=t,i=a=>{e.value=a,n("tabClick",a)},c=Io(Rn,{active:e,props:l}),r=Q(()=>$t(c,a=>a.title)),d=ps();return(a,u)=>{const h=Ot("router-link");return I(),U("div",Eo,[v("div",Mo,[v("div",{class:V(["flex p1 sm:gap-1 text-center h-8 box-border lg:justify-center scrollx",[y(c).length>5||a.grow?"":a.justify]])},[l.link?(I(!0),U(se,{key:0},fe(y(r),(p,x)=>(I(),K(h,{class:V(["px-1 sm:px-2 box-border shrink-0 rounded py-1 line-height-none text-centercursor-pointer hover:text-amber cursor-pointer",{"text-amber":e.value==x,grow:a.grow}]),to:y(c)[x].href},{default:Z(()=>[nt(F(p),1)]),_:2},1032,["class","to"]))),256)):(I(!0),U(se,{key:1},fe(y(r),(p,x)=>(I(),U("a",{class:V(["px-1 sm:px-2 box-border shrink-0 rounded py-1 line-height-none text-centercursor-pointer hover:text-amber cursor-pointer",{"text-amber":e.value==x,grow:a.grow}]),onClick:T=>i(x)},F(p),11,Oo))),256))],2)]),v("div",Ro,[(I(),K(ct(d.default)))])])}}}),Bo=Symbol("swipe"),Lo={class:"w-full h-full shrink-0 pos-relative"},Do=X({__name:"swipeItem",emits:["inited"],setup(s,{emit:t}){const e=D(!1),{parent:l,children:n,index:i}=Bn(Bo),c=ps(),r=t,d=Q(()=>(l==null?void 0:l.active.value)==i.value?(e.value||(e.value=!0,r("inited",i.value)),!0):i.value==(l.active.value==0?n.length-1:l.active.value-1)||i.value==(l.active.value==n.length-1?0:l.active.value+1)),a=Q(()=>d.value||e.value||!(l!=null&&l.props.lazy)?c.default:null);return(u,h)=>J((I(),U("div",Lo,[(I(),K(ct(y(a))))],512)),[[ye,y(d)]])}}),Uo={class:"scrolly h-full w-full shrink-0"},vt=X({__name:"tab",props:{title:{},href:{}},emits:["inited"],setup(s,{expose:t,emit:e}){const l=s,n=D(!1),i=ps(),{parent:c,index:r,children:d}=Bn(Rn),a=e,u=Q(()=>(c==null?void 0:c.active.value)==r.value?(n.value||(n.value=!0,a("inited",r.value)),!0):(c==null?void 0:c.props.swipeable)&&(r.value==(c.active.value==0?d.length-1:c.active.value-1)||r.value==(c.active.value==d.length-1?0:c.active.value+1))),h=Q(()=>u.value||c!=null&&c.props.swipeable||n.value||!(c!=null&&c.props.lazy)?i.default:null);return t({title:l.title}),(p,x)=>{var O,b;const T=Do;return J((I(),U("div",Uo,[(O=y(c))!=null&&O.props.swipeable?(I(),K(T,{key:0},{default:Z(()=>[(I(),K(ct(y(h))))]),_:1})):(I(),K(ct(y(h)),{key:1}))],512)),[[ye,y(u)||((b=y(c))==null?void 0:b.props.swipeable)]])}}}),zo={key:0,class:"text-center"},$o={class:"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 2xl:grid-cols-18"},jo={class:"w-full aspect-ratio-square rounded"},Fo={class:"w-full text-truncate text-xs md:text-sm text-center"},No=X({__name:"category",setup(s){const t=Q(()=>G[te.value].id),e=D(),l=n=>{G[n].categories.value.length||(e.value="加载中...",be(t.value,"getCategories").then(i=>{e.value=null,G[n].categories.value=i},i=>e.value=i))};return(n,i)=>{const c=Ot("router-link"),r=vt,d=pt,a=Dt("lazy");return I(),K(d,{active:y(te),"onUpdate:active":i[0]||(i[0]=u=>ze(te)?te.value=u:null),link:!0,class:"pt-1"},{default:Z(()=>[(I(!0),U(se,null,fe(y(G),u=>(I(),K(r,{title:u.name,href:`/${u.id}/category`,onInited:l,key:u.id},{default:Z(()=>[y(e)?(I(),U("div",zo,F(y(e)),1)):(I(),K(d,{key:1,active:u.categoryActive.value,"onUpdate:active":h=>u.categoryActive.value=h},{default:Z(()=>[(I(!0),U(se,null,fe(u.categories.value,h=>(I(),K(r,{title:h.name,key:h.id},{default:Z(()=>[v("div",$o,[(I(!0),U(se,null,fe(h.list,p=>(I(),K(c,{to:`/${u.id}/category/${p.cid}`,class:"cursor-pointer"},{default:Z(()=>[J(v("img",jo,null,512),[[a,p.pic]]),v("div",Fo,F(p.name),1)]),_:2},1032,["to"]))),256))])]),_:2},1032,["title"]))),128))]),_:2},1032,["active","onUpdate:active"]))]),_:2},1032,["title","href"]))),128))]),_:1},8,["active"])}}}),Po={"text-center":"","py-1":""},Vo={class:"w-60% max-w-md pos-relative inline-block"},Ho={class:"h-[calc(100%-3rem)]"},Zo={key:1},Go={key:1},Wo=X({__name:"search",setup(s){const t=D(""),e=Q(()=>G[te.value]),l=D(),n=()=>{if(!t.value)return Promise.resolve();const u=e.value.search;u.list.value=[],u.page=1,u.hasMore=!0,l.value="搜索中...";const h=e.value.id;return be(h,"searchRooms",{page:u.page,kw:t.value}).then(p=>{u.list.value=p.list,u.hasMore=p.hasMore,u.page+=1,l.value="finished",ge[h]||(ge[h]=p.cookie)},p=>l.value=p)},i=u=>{const h=e.value.search,p=e.value.id;u("loading"),be(p,"searchRooms",{page:h.page,kw:t.value}).then(x=>{if(h.list.value=h.list.value.concat(x.list),h.hasMore=x.hasMore,ge[p]||(ge[p]=x.cookie),!h.hasMore)return u("finshed");h.page+=1,u("normal")},x=>{u("loaderror")})},c=u=>{r.push(`/${Ge[u]}/search`),!d()&&G[u].search.page==1&&n()},r=Nt(),d=()=>{if(t.value)return/^[\d]*$/.test(t.value)?(r.push(`/play/${e.value.id}/${t.value}`),!0):!1},a=()=>{d()||(G.forEach(u=>u.search.page=1),n())};return(u,h)=>{const p=gs,x=Pt,T=vt,O=pt;return I(),U(se,null,[v("div",Po,[v("div",Vo,[J(v("input",{class:"md:text-4 box-border w-full py-2.5 pl-3 pr-9 text-white bg-transparent b-1 b-amber rounded-6 outline-0",type:"text","onUpdate:modelValue":h[0]||(h[0]=b=>ze(t)?t.value=b:null),onKeydown:ki(a,["enter"]),placeholder:"请输入房间号或关键字"},null,544),[[it,y(t),void 0,{trim:!0}]]),v("div",{class:"i-ri-search-line top-50% absolute right-3",onClick:a,style:{transform:"translateY(-50%)"}})])]),v("div",Ho,[P(O,{active:y(te),"onUpdate:active":h[1]||(h[1]=b=>ze(te)?te.value=b:null),onTabClick:c},{default:Z(()=>[(I(!0),U(se,null,fe(y(G),b=>(I(),K(T,{title:b.name,key:b.id},{default:Z(()=>[y(l)=="finished"?(I(),U(se,{key:0},[b.search.list.value.length?(I(),K(x,{key:0,onLoad:i},{default:Z(()=>[P(p,{list:b.search.list},null,8,["list"])]),_:2},1024)):(I(),U("div",Zo," 什么也没有找到 "))],64)):(I(),U("div",Go,F(y(l)),1))]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])],64)}}}),Jo=["data-id","data-site"],Qo={class:"pos-relative text-fuchsia-5 rounded-t-2 w-full aspect-video"},Ko={class:"blockmx-auto text-center h-full rounded-2 select-none"},Yo={class:"pos-absolute bottom-0 right-0 px-2 py-1 rounded-tl-2 bg-dark-6"},qo={class:"line-height-none pos-absolute top-0 right-0 px-1 py-1 rounded-tr-1 rounded-bl-2 bg-dark-6"},Xo={key:0,class:"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"},el=["onClick"],tl={class:"px-2 text-truncate leading-normal"},sl={class:"px-2 pb-2 flex items-center justify-between"},nl={class:"flex items-center grow"},il=["src"],ol={class:"text-truncate mx-1 w-2 grow"},ll=X({__name:"rooms2",props:{list:{}},setup(s){let t;const e=Nt(),l=D(),n=r=>{clearTimeout(t),t=setTimeout(()=>{const d=c("id",r.target,l.value);if(!d)return;const a=c("site",r.target,l.value);e.push(`/${a}/play/${d}`)},300)},i=r=>{var h;clearTimeout(t);const d=c("id",r.target,l.value);if(!d)return;const u=`/${c("site",r.target,l.value)}/play/${d}`;(h=window.open(u,"_blank"))==null||h.location},c=(r,d,a)=>{if(d==a)return null;const u=d.dataset[r];return u||c(r,d.parentElement,a)};return(r,d)=>{const a=Dt("lazy");return r.list.value.length>0?(I(),U("div",{key:0,ref_key:"root",ref:l,class:"grid gap-4 p-2 justify-evenly cursor-pointer select-none grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5",onClick:n,onDblclick:ne(i,["prevent"])},[(I(!0),U(se,null,fe(r.list.value,u=>(I(),U("div",{"data-id":u.roomId,"data-site":u.siteId,key:`${u.siteId}-${u.roomId}`,class:"shadow rounded-2 b-2px b-solid b-transparent hover:b-amber overflow-hidden"},[v("div",Qo,[J(v("img",Ko,null,512),[[a,u.cover]]),v("div",Yo,F(u.category),1),v("div",qo,[d[0]||(d[0]=v("div",{class:"i-mdi-fire"},null,-1)),v("span",null,F(u.online),1)]),u.status?ke("",!0):(I(),U("div",Xo," 未开播 ")),v("div",{class:"pos-absolute z-1 left-2 top-2 text-green-5 w-6 h-6 hover:text-amber i-mdi-heart-off-outline",onClick:ne(h=>y(us)(u.siteId,u.roomId),["stop"])},null,8,el)]),v("div",tl,F(u.title),1),v("div",sl,[v("div",nl,[v("img",{src:u.avatar,alt:"",class:"w-6 h-6 rounded-4"},null,8,il),v("div",ol,F(u.nickname),1)]),v("div",null,F(y(On)[u.siteId]),1)])],8,Jo))),128))],544)):ke("",!0)}}}),rl={class:"flex justify-center items-center"},al={class:"h-[calc(100%-3rem)]"},cl=X({__name:"follow",setup(s){const t=D(0),e=D(!1),l=()=>{var r;if(e.value)return;const c=t.value;e.value=!0,c==0?Promise.all($t(G,cs)).finally(n):(r=cs(G[c-1]))==null||r.finally(n)},n=()=>setTimeout(()=>e.value=!1,300);l();const i=c=>c("finshed");return(c,r)=>{const d=ll,a=Pt,u=vt,h=pt;return I(),U(se,null,[v("div",rl,[r[1]||(r[1]=v("div",null,"我的关注",-1)),v("div",{onClick:l,class:V(["rounded-6 mx-4 hover:text-amber i-ri-refresh-line",{"animate-spin":y(e)}])},null,2)]),v("div",al,[P(h,{active:y(t),"onUpdate:active":r[0]||(r[0]=p=>ze(t)?t.value=p:null)},{default:Z(()=>[(I(!0),U(se,null,fe(y(rt),p=>(I(),K(u,{title:p.name},{default:Z(()=>[P(a,{onLoad:i,"finshed-text":""},{default:Z(()=>[P(d,{list:p.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["active"])])],64)}}}),ul=X({__name:"index",setup(s){const t=Q(()=>G[te.value].id),e=l=>{const n=G[te.value].recommend;be(t.value,"getRecommendRooms",{page:n.page}).then(i=>{if(n.list.value=n.list.value.concat(i.list),n.hasMore=i.hasMore,ge[t.value]||(ge[t.value]=i.cookie),!n.hasMore)return l("finshed");n.page++,l("normal")},()=>l("loaderror"))};return(l,n)=>{const i=gs,c=Pt,r=vt,d=pt;return I(),K(d,{active:y(te),"onUpdate:active":n[0]||(n[0]=a=>ze(te)?te.value=a:null),link:!0,class:"pt-1"},{default:Z(()=>[(I(!0),U(se,null,fe(y(G),a=>(I(),K(r,{href:`/${a.id}`,key:a.id,title:a.name,class:"pos-relative"},{default:Z(()=>[P(c,{onLoad:e,class:"h-full"},{default:Z(()=>[P(i,{list:a.recommend.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["href","title"]))),128))]),_:1},8,["active"])}}}),dl=X({__name:"switch",props:{value:{type:Boolean,required:!0},valueModifiers:{}},emits:["update:value"],setup(s){const t=ht(s,"value");return(e,l)=>(I(),U("div",{onClick:l[0]||(l[0]=()=>t.value=!t.value),class:V(["pos-relative w-12 inline-block cursor-pointer rounded-6 h-6",[t.value?"bg-amber":"bg-gray-4"]]),style:{transition:"background-color .3s"}},[v("div",{class:"w-6 h-full rounded-6 bg-white",style:Ze([{transition:"transform .3s"},t.value?"transform:translateX(1.5rem)":""])},null,4)],2))}}),fl={class:"rounded-4 flex bg-gray-7 w-min p-2 py-1 gap-2"},hl=X({__name:"stepper",props:ut({max:{},min:{},step:{}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(s){const t=s,e=ht(s,"value"),l=()=>e.value=Math.min(e.value+t.step,t.max),n=()=>e.value=Math.max(e.value-t.step,t.min);return(i,c)=>(I(),U("div",fl,[v("div",{class:"i-ri-subtract-fill",onClick:n}),v("div",null,F(e.value),1),v("div",{class:"i-ri-add-fill",onClick:l})]))}});function pl(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}const Mt=pl(),vl=s=>Mt?s.touches==null?s:s.touches[0]||s.changedTouches[0]:s,ml=X({__name:"slider",props:ut({max:{default:100},min:{default:0},width:{default:30},height:{default:100}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(s){const t=s,e=ht(s,"value"),l=D(),n=t.width<t.height;let i;const c=h=>{h.stopPropagation(),a(h),document.addEventListener("mousemove",a,!0),document.addEventListener("mouseup",u,!0)},r=Q(()=>(e.value-t.min)/(t.max-t.min)*100),d=Q(()=>{const h=100-r.value,p=`top:${h}%`,x=`left:${h}%`;return n?{loaded:p,indicator:p}:{loaded:`${x};transform:translateX(-100%)`,indicator:x}}),a=h=>{h.stopPropagation(),h=vl(h);const x=100-(Math.min(n?i.height:i.width,Math.max(0,n?h.clientY-i.y:h.clientX-i.x))/(n?i.height:i.width)*100|0);e.value=((t.max-t.min)*x|0)/100+t.min|0},u=h=>{h.stopPropagation(),document.removeEventListener("mousemove",a,!0),document.removeEventListener("mouseup",u,!0)};return Je(()=>{i=l.value.getBoundingClientRect(),l.value.addEventListener("mousedown",c,!0)}),Ut(()=>{l.value.removeEventListener("mousedown",c,!0)}),(h,p)=>(I(),U("div",{class:V(["cursor-pointer flex justify-center",n?" py-4 ":"px-4"]),style:Ze({width:`${t.width}px`,height:`${t.height}px`})},[v("div",{ref_key:"root",ref:l,onClick:a,class:"w-full h-full pos-relative flex justify-center items-center"},[v("div",{class:V(["bg-gray pos-relative overflow-hidden",n?"h-full w-2px":"w-full h-2px"])},[v("div",{class:"w-full bg-amber h-full pos-absolute",style:Ze(y(d).loaded)},null,4)],2),v("div",{class:V(["pos-absolute w-12px h-12px bg-amber rounded-2",n?"-mt-6px":"-ml-6px"]),style:Ze(y(d).indicator)},null,6)],512)],6))}}),gl={key:0,class:"z-1 fixed top-0 bottom-0 left-0 right-0 bg-transparent","data-index":"-1"},wl={class:"p-1 hover:text-amber","data-index":"-1"},yl={class:"left-50% text-center z-1 pos-absolute top-0 w-max",style:{transform:"translate3d(-50%,-100%,0)"}},xl=["data-index"],_l=X({__name:"select",props:ut(["list"],{active:{required:!0},activeModifiers:{}}),emits:["update:active"],setup(s){const t=ht(s,"active"),e=D(!1),l=n=>{const i=n.target.dataset.index;i&&(i!="-1"&&(t.value=parseInt(i)),e.value=!e.value)};return(n,i)=>(I(),U("div",{onClick:l,class:"inline-block pos-relative cursor-pointer text-center"},[y(e)?(I(),U("div",gl)):ke("",!0),v("div",wl,F(s.list[t.value]),1),J(v("div",yl,[(I(!0),U(se,null,fe(s.list,(c,r)=>(I(),U("div",{"data-index":r,class:V([{"text-amber":r==t.value},"p-1 hover:text-amber"])},F(c),11,xl))),256))],512),[[ye,y(e)]])]))}}),js="data:image/png;base64,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",Fs="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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",bt=window.Flv,St=window.Hls;function Qe(s){let t=s.length;for(;--t>=0;)s[t]=0}const kl=3,bl=258,Ln=29,Sl=256,Al=Sl+1+Ln,Dn=30,Tl=512,Cl=new Array((Al+2)*2);Qe(Cl);const Il=new Array(Dn*2);Qe(Il);const El=new Array(Tl);Qe(El);const Ml=new Array(bl-kl+1);Qe(Ml);const Ol=new Array(Ln);Qe(Ol);const Rl=new Array(Dn);Qe(Rl);const Bl=(s,t,e,l)=>{let n=s&65535|0,i=s>>>16&65535|0,c=0;for(;e!==0;){c=e>2e3?2e3:e,e-=c;do n=n+t[l++]|0,i=i+n|0;while(--c);n%=65521,i%=65521}return n|i<<16|0};var ds=Bl;const Ll=()=>{let s,t=[];for(var e=0;e<256;e++){s=e;for(var l=0;l<8;l++)s=s&1?3988292384^s>>>1:s>>>1;t[e]=s}return t},Dl=new Uint32Array(Ll()),Ul=(s,t,e,l)=>{const n=Dl,i=l+e;s^=-1;for(let c=l;c<i;c++)s=s>>>8^n[(s^t[c])&255];return s^-1};var _e=Ul,fs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Un={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const zl=(s,t)=>Object.prototype.hasOwnProperty.call(s,t);var $l=function(s){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const l in e)zl(e,l)&&(s[l]=e[l])}}return s},jl=s=>{let t=0;for(let l=0,n=s.length;l<n;l++)t+=s[l].length;const e=new Uint8Array(t);for(let l=0,n=0,i=s.length;l<i;l++){let c=s[l];e.set(c,n),n+=c.length}return e},zn={assign:$l,flattenChunks:jl};let $n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{$n=!1}const dt=new Uint8Array(256);for(let s=0;s<256;s++)dt[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;dt[254]=dt[254]=1;var Fl=s=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(s);let t,e,l,n,i,c=s.length,r=0;for(n=0;n<c;n++)e=s.charCodeAt(n),(e&64512)===55296&&n+1<c&&(l=s.charCodeAt(n+1),(l&64512)===56320&&(e=65536+(e-55296<<10)+(l-56320),n++)),r+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(r),i=0,n=0;i<r;n++)e=s.charCodeAt(n),(e&64512)===55296&&n+1<c&&(l=s.charCodeAt(n+1),(l&64512)===56320&&(e=65536+(e-55296<<10)+(l-56320),n++)),e<128?t[i++]=e:e<2048?(t[i++]=192|e>>>6,t[i++]=128|e&63):e<65536?(t[i++]=224|e>>>12,t[i++]=128|e>>>6&63,t[i++]=128|e&63):(t[i++]=240|e>>>18,t[i++]=128|e>>>12&63,t[i++]=128|e>>>6&63,t[i++]=128|e&63);return t};const Nl=(s,t)=>{if(t<65534&&s.subarray&&$n)return String.fromCharCode.apply(null,s.length===t?s:s.subarray(0,t));let e="";for(let l=0;l<t;l++)e+=String.fromCharCode(s[l]);return e};var Pl=(s,t)=>{const e=t||s.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(s.subarray(0,t));let l,n;const i=new Array(e*2);for(n=0,l=0;l<e;){let c=s[l++];if(c<128){i[n++]=c;continue}let r=dt[c];if(r>4){i[n++]=65533,l+=r-1;continue}for(c&=r===2?31:r===3?15:7;r>1&&l<e;)c=c<<6|s[l++]&63,r--;if(r>1){i[n++]=65533;continue}c<65536?i[n++]=c:(c-=65536,i[n++]=55296|c>>10&1023,i[n++]=56320|c&1023)}return Nl(i,n)},Vl=(s,t)=>{t=t||s.length,t>s.length&&(t=s.length);let e=t-1;for(;e>=0&&(s[e]&192)===128;)e--;return e<0||e===0?t:e+dt[s[e]]>t?e:t},hs={string2buf:Fl,buf2string:Pl,utf8border:Vl};function Hl(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Zl=Hl;const At=16209,Gl=16191;var Wl=function(t,e){let l,n,i,c,r,d,a,u,h,p,x,T,O,b,C,B,S,k,_,m,f,g,j,$;const L=t.state;l=t.next_in,j=t.input,n=l+(t.avail_in-5),i=t.next_out,$=t.output,c=i-(e-t.avail_out),r=i+(t.avail_out-257),d=L.dmax,a=L.wsize,u=L.whave,h=L.wnext,p=L.window,x=L.hold,T=L.bits,O=L.lencode,b=L.distcode,C=(1<<L.lenbits)-1,B=(1<<L.distbits)-1;e:do{T<15&&(x+=j[l++]<<T,T+=8,x+=j[l++]<<T,T+=8),S=O[x&C];t:for(;;){if(k=S>>>24,x>>>=k,T-=k,k=S>>>16&255,k===0)$[i++]=S&65535;else if(k&16){_=S&65535,k&=15,k&&(T<k&&(x+=j[l++]<<T,T+=8),_+=x&(1<<k)-1,x>>>=k,T-=k),T<15&&(x+=j[l++]<<T,T+=8,x+=j[l++]<<T,T+=8),S=b[x&B];s:for(;;){if(k=S>>>24,x>>>=k,T-=k,k=S>>>16&255,k&16){if(m=S&65535,k&=15,T<k&&(x+=j[l++]<<T,T+=8,T<k&&(x+=j[l++]<<T,T+=8)),m+=x&(1<<k)-1,m>d){t.msg="invalid distance too far back",L.mode=At;break e}if(x>>>=k,T-=k,k=i-c,m>k){if(k=m-k,k>u&&L.sane){t.msg="invalid distance too far back",L.mode=At;break e}if(f=0,g=p,h===0){if(f+=a-k,k<_){_-=k;do $[i++]=p[f++];while(--k);f=i-m,g=$}}else if(h<k){if(f+=a+h-k,k-=h,k<_){_-=k;do $[i++]=p[f++];while(--k);if(f=0,h<_){k=h,_-=k;do $[i++]=p[f++];while(--k);f=i-m,g=$}}}else if(f+=h-k,k<_){_-=k;do $[i++]=p[f++];while(--k);f=i-m,g=$}for(;_>2;)$[i++]=g[f++],$[i++]=g[f++],$[i++]=g[f++],_-=3;_&&($[i++]=g[f++],_>1&&($[i++]=g[f++]))}else{f=i-m;do $[i++]=$[f++],$[i++]=$[f++],$[i++]=$[f++],_-=3;while(_>2);_&&($[i++]=$[f++],_>1&&($[i++]=$[f++]))}}else if(k&64){t.msg="invalid distance code",L.mode=At;break e}else{S=b[(S&65535)+(x&(1<<k)-1)];continue s}break}}else if(k&64)if(k&32){L.mode=Gl;break e}else{t.msg="invalid literal/length code",L.mode=At;break e}else{S=O[(S&65535)+(x&(1<<k)-1)];continue t}break}}while(l<n&&i<r);_=T>>3,l-=_,T-=_<<3,x&=(1<<T)-1,t.next_in=l,t.next_out=i,t.avail_in=l<n?5+(n-l):5-(l-n),t.avail_out=i<r?257+(r-i):257-(i-r),L.hold=x,L.bits=T};const Ve=15,Ns=852,Ps=592,Vs=0,qt=1,Hs=2,Jl=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Ql=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Kl=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Yl=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),ql=(s,t,e,l,n,i,c,r)=>{const d=r.bits;let a=0,u=0,h=0,p=0,x=0,T=0,O=0,b=0,C=0,B=0,S,k,_,m,f,g=null,j;const $=new Uint16Array(Ve+1),L=new Uint16Array(Ve+1);let he=null,Ce,Fe,ie;for(a=0;a<=Ve;a++)$[a]=0;for(u=0;u<l;u++)$[t[e+u]]++;for(x=d,p=Ve;p>=1&&$[p]===0;p--);if(x>p&&(x=p),p===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,r.bits=1,0;for(h=1;h<p&&$[h]===0;h++);for(x<h&&(x=h),b=1,a=1;a<=Ve;a++)if(b<<=1,b-=$[a],b<0)return-1;if(b>0&&(s===Vs||p!==1))return-1;for(L[1]=0,a=1;a<Ve;a++)L[a+1]=L[a]+$[a];for(u=0;u<l;u++)t[e+u]!==0&&(c[L[t[e+u]]++]=u);if(s===Vs?(g=he=c,j=20):s===qt?(g=Jl,he=Ql,j=257):(g=Kl,he=Yl,j=0),B=0,u=0,a=h,f=i,T=x,O=0,_=-1,C=1<<x,m=C-1,s===qt&&C>Ns||s===Hs&&C>Ps)return 1;for(;;){Ce=a-O,c[u]+1<j?(Fe=0,ie=c[u]):c[u]>=j?(Fe=he[c[u]-j],ie=g[c[u]-j]):(Fe=96,ie=0),S=1<<a-O,k=1<<T,h=k;do k-=S,n[f+(B>>O)+k]=Ce<<24|Fe<<16|ie|0;while(k!==0);for(S=1<<a-1;B&S;)S>>=1;if(S!==0?(B&=S-1,B+=S):B=0,u++,--$[a]===0){if(a===p)break;a=t[e+c[u]]}if(a>x&&(B&m)!==_){for(O===0&&(O=x),f+=h,T=a-O,b=1<<T;T+O<p&&(b-=$[T+O],!(b<=0));)T++,b<<=1;if(C+=1<<T,s===qt&&C>Ns||s===Hs&&C>Ps)return 1;_=B&m,n[_]=x<<24|T<<16|f-i|0}}return B!==0&&(n[f+B]=a-O<<24|64<<16|0),r.bits=x,0};var at=ql;const Xl=0,jn=1,Fn=2,{Z_FINISH:Zs,Z_BLOCK:er,Z_TREES:Tt,Z_OK:$e,Z_STREAM_END:tr,Z_NEED_DICT:sr,Z_STREAM_ERROR:xe,Z_DATA_ERROR:Nn,Z_MEM_ERROR:Pn,Z_BUF_ERROR:nr,Z_DEFLATED:Gs}=Un,Vt=16180,Ws=16181,Js=16182,Qs=16183,Ks=16184,Ys=16185,qs=16186,Xs=16187,en=16188,tn=16189,Bt=16190,Se=16191,Xt=16192,sn=16193,es=16194,nn=16195,on=16196,ln=16197,rn=16198,Ct=16199,It=16200,an=16201,cn=16202,un=16203,dn=16204,fn=16205,ts=16206,hn=16207,pn=16208,H=16209,Vn=16210,Hn=16211,ir=852,or=592,lr=15,rr=lr,vn=s=>(s>>>24&255)+(s>>>8&65280)+((s&65280)<<8)+((s&255)<<24);function ar(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const je=s=>{if(!s)return 1;const t=s.state;return!t||t.strm!==s||t.mode<Vt||t.mode>Hn?1:0},Zn=s=>{if(je(s))return xe;const t=s.state;return s.total_in=s.total_out=t.total=0,s.msg="",t.wrap&&(s.adler=t.wrap&1),t.mode=Vt,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(ir),t.distcode=t.distdyn=new Int32Array(or),t.sane=1,t.back=-1,$e},Gn=s=>{if(je(s))return xe;const t=s.state;return t.wsize=0,t.whave=0,t.wnext=0,Zn(s)},Wn=(s,t)=>{let e;if(je(s))return xe;const l=s.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?xe:(l.window!==null&&l.wbits!==t&&(l.window=null),l.wrap=e,l.wbits=t,Gn(s))},Jn=(s,t)=>{if(!s)return xe;const e=new ar;s.state=e,e.strm=s,e.window=null,e.mode=Vt;const l=Wn(s,t);return l!==$e&&(s.state=null),l},cr=s=>Jn(s,rr);let mn=!0,ss,ns;const ur=s=>{if(mn){ss=new Int32Array(512),ns=new Int32Array(32);let t=0;for(;t<144;)s.lens[t++]=8;for(;t<256;)s.lens[t++]=9;for(;t<280;)s.lens[t++]=7;for(;t<288;)s.lens[t++]=8;for(at(jn,s.lens,0,288,ss,0,s.work,{bits:9}),t=0;t<32;)s.lens[t++]=5;at(Fn,s.lens,0,32,ns,0,s.work,{bits:5}),mn=!1}s.lencode=ss,s.lenbits=9,s.distcode=ns,s.distbits=5},Qn=(s,t,e,l)=>{let n;const i=s.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),l>=i.wsize?(i.window.set(t.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>l&&(n=l),i.window.set(t.subarray(e-l,e-l+n),i.wnext),l-=n,l?(i.window.set(t.subarray(e-l,e),0),i.wnext=l,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0},dr=(s,t)=>{let e,l,n,i,c,r,d,a,u,h,p,x,T,O,b=0,C,B,S,k,_,m,f,g;const j=new Uint8Array(4);let $,L;const he=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(je(s)||!s.output||!s.input&&s.avail_in!==0)return xe;e=s.state,e.mode===Se&&(e.mode=Xt),c=s.next_out,n=s.output,d=s.avail_out,i=s.next_in,l=s.input,r=s.avail_in,a=e.hold,u=e.bits,h=r,p=d,g=$e;e:for(;;)switch(e.mode){case Vt:if(e.wrap===0){e.mode=Xt;break}for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.wrap&2&&a===35615){e.wbits===0&&(e.wbits=15),e.check=0,j[0]=a&255,j[1]=a>>>8&255,e.check=_e(e.check,j,2,0),a=0,u=0,e.mode=Ws;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((a&255)<<8)+(a>>8))%31){s.msg="incorrect header check",e.mode=H;break}if((a&15)!==Gs){s.msg="unknown compression method",e.mode=H;break}if(a>>>=4,u-=4,f=(a&15)+8,e.wbits===0&&(e.wbits=f),f>15||f>e.wbits){s.msg="invalid window size",e.mode=H;break}e.dmax=1<<e.wbits,e.flags=0,s.adler=e.check=1,e.mode=a&512?tn:Se,a=0,u=0;break;case Ws:for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.flags=a,(e.flags&255)!==Gs){s.msg="unknown compression method",e.mode=H;break}if(e.flags&57344){s.msg="unknown header flags set",e.mode=H;break}e.head&&(e.head.text=a>>8&1),e.flags&512&&e.wrap&4&&(j[0]=a&255,j[1]=a>>>8&255,e.check=_e(e.check,j,2,0)),a=0,u=0,e.mode=Js;case Js:for(;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.head&&(e.head.time=a),e.flags&512&&e.wrap&4&&(j[0]=a&255,j[1]=a>>>8&255,j[2]=a>>>16&255,j[3]=a>>>24&255,e.check=_e(e.check,j,4,0)),a=0,u=0,e.mode=Qs;case Qs:for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.head&&(e.head.xflags=a&255,e.head.os=a>>8),e.flags&512&&e.wrap&4&&(j[0]=a&255,j[1]=a>>>8&255,e.check=_e(e.check,j,2,0)),a=0,u=0,e.mode=Ks;case Ks:if(e.flags&1024){for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.length=a,e.head&&(e.head.extra_len=a),e.flags&512&&e.wrap&4&&(j[0]=a&255,j[1]=a>>>8&255,e.check=_e(e.check,j,2,0)),a=0,u=0}else e.head&&(e.head.extra=null);e.mode=Ys;case Ys:if(e.flags&1024&&(x=e.length,x>r&&(x=r),x&&(e.head&&(f=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(l.subarray(i,i+x),f)),e.flags&512&&e.wrap&4&&(e.check=_e(e.check,l,x,i)),r-=x,i+=x,e.length-=x),e.length))break e;e.length=0,e.mode=qs;case qs:if(e.flags&2048){if(r===0)break e;x=0;do f=l[i+x++],e.head&&f&&e.length<65536&&(e.head.name+=String.fromCharCode(f));while(f&&x<r);if(e.flags&512&&e.wrap&4&&(e.check=_e(e.check,l,x,i)),r-=x,i+=x,f)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=Xs;case Xs:if(e.flags&4096){if(r===0)break e;x=0;do f=l[i+x++],e.head&&f&&e.length<65536&&(e.head.comment+=String.fromCharCode(f));while(f&&x<r);if(e.flags&512&&e.wrap&4&&(e.check=_e(e.check,l,x,i)),r-=x,i+=x,f)break e}else e.head&&(e.head.comment=null);e.mode=en;case en:if(e.flags&512){for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.wrap&4&&a!==(e.check&65535)){s.msg="header crc mismatch",e.mode=H;break}a=0,u=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),s.adler=e.check=0,e.mode=Se;break;case tn:for(;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}s.adler=e.check=vn(a),a=0,u=0,e.mode=Bt;case Bt:if(e.havedict===0)return s.next_out=c,s.avail_out=d,s.next_in=i,s.avail_in=r,e.hold=a,e.bits=u,sr;s.adler=e.check=1,e.mode=Se;case Se:if(t===er||t===Tt)break e;case Xt:if(e.last){a>>>=u&7,u-=u&7,e.mode=ts;break}for(;u<3;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}switch(e.last=a&1,a>>>=1,u-=1,a&3){case 0:e.mode=sn;break;case 1:if(ur(e),e.mode=Ct,t===Tt){a>>>=2,u-=2;break e}break;case 2:e.mode=on;break;case 3:s.msg="invalid block type",e.mode=H}a>>>=2,u-=2;break;case sn:for(a>>>=u&7,u-=u&7;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if((a&65535)!==(a>>>16^65535)){s.msg="invalid stored block lengths",e.mode=H;break}if(e.length=a&65535,a=0,u=0,e.mode=es,t===Tt)break e;case es:e.mode=nn;case nn:if(x=e.length,x){if(x>r&&(x=r),x>d&&(x=d),x===0)break e;n.set(l.subarray(i,i+x),c),r-=x,i+=x,d-=x,c+=x,e.length-=x;break}e.mode=Se;break;case on:for(;u<14;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.nlen=(a&31)+257,a>>>=5,u-=5,e.ndist=(a&31)+1,a>>>=5,u-=5,e.ncode=(a&15)+4,a>>>=4,u-=4,e.nlen>286||e.ndist>30){s.msg="too many length or distance symbols",e.mode=H;break}e.have=0,e.mode=ln;case ln:for(;e.have<e.ncode;){for(;u<3;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.lens[he[e.have++]]=a&7,a>>>=3,u-=3}for(;e.have<19;)e.lens[he[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,$={bits:e.lenbits},g=at(Xl,e.lens,0,19,e.lencode,0,e.work,$),e.lenbits=$.bits,g){s.msg="invalid code lengths set",e.mode=H;break}e.have=0,e.mode=rn;case rn:for(;e.have<e.nlen+e.ndist;){for(;b=e.lencode[a&(1<<e.lenbits)-1],C=b>>>24,B=b>>>16&255,S=b&65535,!(C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(S<16)a>>>=C,u-=C,e.lens[e.have++]=S;else{if(S===16){for(L=C+2;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(a>>>=C,u-=C,e.have===0){s.msg="invalid bit length repeat",e.mode=H;break}f=e.lens[e.have-1],x=3+(a&3),a>>>=2,u-=2}else if(S===17){for(L=C+3;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=C,u-=C,f=0,x=3+(a&7),a>>>=3,u-=3}else{for(L=C+7;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=C,u-=C,f=0,x=11+(a&127),a>>>=7,u-=7}if(e.have+x>e.nlen+e.ndist){s.msg="invalid bit length repeat",e.mode=H;break}for(;x--;)e.lens[e.have++]=f}}if(e.mode===H)break;if(e.lens[256]===0){s.msg="invalid code -- missing end-of-block",e.mode=H;break}if(e.lenbits=9,$={bits:e.lenbits},g=at(jn,e.lens,0,e.nlen,e.lencode,0,e.work,$),e.lenbits=$.bits,g){s.msg="invalid literal/lengths set",e.mode=H;break}if(e.distbits=6,e.distcode=e.distdyn,$={bits:e.distbits},g=at(Fn,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,$),e.distbits=$.bits,g){s.msg="invalid distances set",e.mode=H;break}if(e.mode=Ct,t===Tt)break e;case Ct:e.mode=It;case It:if(r>=6&&d>=258){s.next_out=c,s.avail_out=d,s.next_in=i,s.avail_in=r,e.hold=a,e.bits=u,Wl(s,p),c=s.next_out,n=s.output,d=s.avail_out,i=s.next_in,l=s.input,r=s.avail_in,a=e.hold,u=e.bits,e.mode===Se&&(e.back=-1);break}for(e.back=0;b=e.lencode[a&(1<<e.lenbits)-1],C=b>>>24,B=b>>>16&255,S=b&65535,!(C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(B&&!(B&240)){for(k=C,_=B,m=S;b=e.lencode[m+((a&(1<<k+_)-1)>>k)],C=b>>>24,B=b>>>16&255,S=b&65535,!(k+C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=k,u-=k,e.back+=k}if(a>>>=C,u-=C,e.back+=C,e.length=S,B===0){e.mode=fn;break}if(B&32){e.back=-1,e.mode=Se;break}if(B&64){s.msg="invalid literal/length code",e.mode=H;break}e.extra=B&15,e.mode=an;case an:if(e.extra){for(L=e.extra;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.length+=a&(1<<e.extra)-1,a>>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=cn;case cn:for(;b=e.distcode[a&(1<<e.distbits)-1],C=b>>>24,B=b>>>16&255,S=b&65535,!(C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(!(B&240)){for(k=C,_=B,m=S;b=e.distcode[m+((a&(1<<k+_)-1)>>k)],C=b>>>24,B=b>>>16&255,S=b&65535,!(k+C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=k,u-=k,e.back+=k}if(a>>>=C,u-=C,e.back+=C,B&64){s.msg="invalid distance code",e.mode=H;break}e.offset=S,e.extra=B&15,e.mode=un;case un:if(e.extra){for(L=e.extra;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.offset+=a&(1<<e.extra)-1,a>>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){s.msg="invalid distance too far back",e.mode=H;break}e.mode=dn;case dn:if(d===0)break e;if(x=p-d,e.offset>x){if(x=e.offset-x,x>e.whave&&e.sane){s.msg="invalid distance too far back",e.mode=H;break}x>e.wnext?(x-=e.wnext,T=e.wsize-x):T=e.wnext-x,x>e.length&&(x=e.length),O=e.window}else O=n,T=c-e.offset,x=e.length;x>d&&(x=d),d-=x,e.length-=x;do n[c++]=O[T++];while(--x);e.length===0&&(e.mode=It);break;case fn:if(d===0)break e;n[c++]=e.length,d--,e.mode=It;break;case ts:if(e.wrap){for(;u<32;){if(r===0)break e;r--,a|=l[i++]<<u,u+=8}if(p-=d,s.total_out+=p,e.total+=p,e.wrap&4&&p&&(s.adler=e.check=e.flags?_e(e.check,n,p,c-p):ds(e.check,n,p,c-p)),p=d,e.wrap&4&&(e.flags?a:vn(a))!==e.check){s.msg="incorrect data check",e.mode=H;break}a=0,u=0}e.mode=hn;case hn:if(e.wrap&&e.flags){for(;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.wrap&4&&a!==(e.total&4294967295)){s.msg="incorrect length check",e.mode=H;break}a=0,u=0}e.mode=pn;case pn:g=tr;break e;case H:g=Nn;break e;case Vn:return Pn;case Hn:default:return xe}return s.next_out=c,s.avail_out=d,s.next_in=i,s.avail_in=r,e.hold=a,e.bits=u,(e.wsize||p!==s.avail_out&&e.mode<H&&(e.mode<ts||t!==Zs))&&Qn(s,s.output,s.next_out,p-s.avail_out),h-=s.avail_in,p-=s.avail_out,s.total_in+=h,s.total_out+=p,e.total+=p,e.wrap&4&&p&&(s.adler=e.check=e.flags?_e(e.check,n,p,s.next_out-p):ds(e.check,n,p,s.next_out-p)),s.data_type=e.bits+(e.last?64:0)+(e.mode===Se?128:0)+(e.mode===Ct||e.mode===es?256:0),(h===0&&p===0||t===Zs)&&g===$e&&(g=nr),g},fr=s=>{if(je(s))return xe;let t=s.state;return t.window&&(t.window=null),s.state=null,$e},hr=(s,t)=>{if(je(s))return xe;const e=s.state;return e.wrap&2?(e.head=t,t.done=!1,$e):xe},pr=(s,t)=>{const e=t.length;let l,n,i;return je(s)||(l=s.state,l.wrap!==0&&l.mode!==Bt)?xe:l.mode===Bt&&(n=1,n=ds(n,t,e,0),n!==l.check)?Nn:(i=Qn(s,t,e,e),i?(l.mode=Vn,Pn):(l.havedict=1,$e))};var vr=Gn,mr=Wn,gr=Zn,wr=cr,yr=Jn,xr=dr,_r=fr,kr=hr,br=pr,Sr="pako inflate (from Nodeca project)",Ae={inflateReset:vr,inflateReset2:mr,inflateResetKeep:gr,inflateInit:wr,inflateInit2:yr,inflate:xr,inflateEnd:_r,inflateGetHeader:kr,inflateSetDictionary:br,inflateInfo:Sr};function Ar(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Tr=Ar;const Kn=Object.prototype.toString,{Z_NO_FLUSH:Cr,Z_FINISH:Ir,Z_OK:ft,Z_STREAM_END:is,Z_NEED_DICT:os,Z_STREAM_ERROR:Er,Z_DATA_ERROR:gn,Z_MEM_ERROR:Mr}=Un;function Ht(s){this.options=zn.assign({chunkSize:1024*64,windowBits:15,to:""},s||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(s&&s.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Zl,this.strm.avail_out=0;let e=Ae.inflateInit2(this.strm,t.windowBits);if(e!==ft)throw new Error(fs[e]);if(this.header=new Tr,Ae.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=hs.string2buf(t.dictionary):Kn.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Ae.inflateSetDictionary(this.strm,t.dictionary),e!==ft)))throw new Error(fs[e])}Ht.prototype.push=function(s,t){const e=this.strm,l=this.options.chunkSize,n=this.options.dictionary;let i,c,r;if(this.ended)return!1;for(t===~~t?c=t:c=t===!0?Ir:Cr,Kn.call(s)==="[object ArrayBuffer]"?e.input=new Uint8Array(s):e.input=s,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(l),e.next_out=0,e.avail_out=l),i=Ae.inflate(e,c),i===os&&n&&(i=Ae.inflateSetDictionary(e,n),i===ft?i=Ae.inflate(e,c):i===gn&&(i=os));e.avail_in>0&&i===is&&e.state.wrap>0&&s[e.next_in]!==0;)Ae.inflateReset(e),i=Ae.inflate(e,c);switch(i){case Er:case gn:case os:case Mr:return this.onEnd(i),this.ended=!0,!1}if(r=e.avail_out,e.next_out&&(e.avail_out===0||i===is))if(this.options.to==="string"){let d=hs.utf8border(e.output,e.next_out),a=e.next_out-d,u=hs.buf2string(e.output,d);e.next_out=a,e.avail_out=l-a,a&&e.output.set(e.output.subarray(d,d+a),0),this.onData(u)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===ft&&r===0)){if(i===is)return i=Ae.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Ht.prototype.onData=function(s){this.chunks.push(s)};Ht.prototype.onEnd=function(s){s===ft&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=zn.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg};function Or(s,t){const e=new Ht(t);if(e.push(s),e.err)throw e.msg||fs[e.err];return e.result}var Rr=Or,Br={ungzip:Rr};const{ungzip:Lr}=Br;var Dr=Lr;function Ur(s){return zr(ys(s))}function zr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{let l=ws(s);(t.messagesList||(t.messagesList=[])).push($r(s)),s.limit=l;break}case 8:{t.heartbeatDuration=Ee(s,!0);break}case 9:{t.needAck=!!de(s);break}default:Ke(s,e&7)}}return t}function $r(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{t.method=Re(s,q(s));break}case 2:{t.payload=Xn(s,q(s));break}case 3:{t.msgId=Ee(s,!1);break}case 4:{t.msgType=q(s);break}case 5:{t.offset=Ee(s,!1);break}case 6:{t.needWrdsStore=!!de(s);break}case 7:{t.wrdsVersion=Ee(s,!1);break}case 8:{t.wrdsSubKey=Re(s,q(s));break}default:Ke(s,e&7)}}return t}function jr(s){return Fr(ys(s))}function Fr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 2:{let l=ws(s);t.user=Nr(s),s.limit=l;break}case 3:{t.content=Re(s,q(s));break}default:Ke(s,e&7)}}return t}function Nr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 3:{t.nickName=Re(s,q(s));break}default:Ke(s,e&7)}}return t}function Pr(s){let t=qn();return Vr(s,t),Yr(t)}function Vr(s,t){let e=s.seqId;e!==void 0&&(me(t,8),Et(t,e));let l=s.logId;l!==void 0&&(me(t,16),Et(t,l));let n=s.service;n!==void 0&&(me(t,24),Et(t,n));let i=s.method;i!==void 0&&(me(t,32),Et(t,i));let c=s.headersList;if(c!==void 0)for(let u of c){me(t,42);let h=qn();Gr(u,h),me(t,h.limit),Xr(t,h),Kr(h)}let r=s.payloadEncoding;r!==void 0&&(me(t,50),Lt(t,r));let d=s.payloadType;d!==void 0&&(me(t,58),Lt(t,d));let a=s.payload;a!==void 0&&(me(t,66),me(t,a.length),qr(t,a))}function Hr(s){return Zr(ys(s))}function Zr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{t.seqId=Ee(s,!0);break}case 2:{t.logId=Ee(s,!0);break}case 3:{t.service=Ee(s,!0);break}case 4:{t.method=Ee(s,!0);break}case 5:{let l=ws(s);(t.headersList||(t.headersList=[])).push(Wr(s)),s.limit=l;break}case 6:{t.payloadEncoding=Re(s,q(s));break}case 7:{t.payloadType=Re(s,q(s));break}case 8:{t.payload=Xn(s,q(s));break}default:Ke(s,e&7)}}return t}function Gr(s,t){let e=s.key;e!==void 0&&(me(t,10),Lt(t,e));let l=s.value;l!==void 0&&(me(t,18),Lt(t,l))}function Wr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{t.key=Re(s,q(s));break}case 2:{t.value=Re(s,q(s));break}default:Ke(s,e&7)}}return t}function ws(s){let t=q(s),e=s.limit;return s.limit=s.offset+t,e}function Ke(s,t){switch(t){case 0:for(;de(s)&128;);break;case 2:ls(s,q(s));break;case 5:ls(s,4);break;case 1:ls(s,8);break;default:throw new Error("Unimplemented type: "+t)}}let Jr=new Float32Array(1);new Uint8Array(Jr.buffer);let Qr=new Float64Array(1);new Uint8Array(Qr.buffer);let Yn=[];function qn(){const s=Yn.pop();return s?(s.offset=s.limit=0,s):{bytes:new Uint8Array(64),offset:0,limit:0}}function Kr(s){Yn.push(s)}function ys(s){return{bytes:s,offset:0,limit:s.length}}function Yr(s){let t=s.bytes,e=s.limit;return t.length===e?t:t.subarray(0,e)}function ls(s,t){if(s.offset+t>s.limit)throw new Error("Skip past limit");s.offset+=t}function Ye(s){return s.offset>=s.limit}function mt(s,t){let e=s.bytes,l=s.offset,n=s.limit,i=l+t;if(i>e.length){let c=new Uint8Array(i*2);c.set(e),s.bytes=c}return s.offset=i,i>n&&(s.limit=i),l}function xs(s,t){let e=s.offset;if(e+t>s.limit)throw new Error("Read past limit");return s.offset+=t,e}function Xn(s,t){let e=xs(s,t);return s.bytes.subarray(e,e+t)}function qr(s,t){let e=mt(s,t.length);s.bytes.set(t,e)}function Re(s,t){let e=xs(s,t),l=String.fromCharCode,n=s.bytes,i="�",c="";for(let r=0;r<t;r++){let d=n[r+e],a,u,h,p;d&128?(d&224)===192?r+1>=t?c+=i:(a=n[r+e+1],(a&192)!==128?c+=i:(p=(d&31)<<6|a&63,p<128?c+=i:(c+=l(p),r++))):(d&240)==224?r+2>=t?c+=i:(a=n[r+e+1],u=n[r+e+2],((a|u<<8)&49344)!==32896?c+=i:(p=(d&15)<<12|(a&63)<<6|u&63,p<2048||p>=55296&&p<=57343?c+=i:(c+=l(p),r+=2))):(d&248)==240?r+3>=t?c+=i:(a=n[r+e+1],u=n[r+e+2],h=n[r+e+3],((a|u<<8|h<<16)&12632256)!==8421504?c+=i:(p=(d&7)<<18|(a&63)<<12|(u&63)<<6|h&63,p<65536||p>1114111?c+=i:(p-=65536,c+=l((p>>10)+55296,(p&1023)+56320),r+=3))):c+=i:c+=l(d)}return c}function Lt(s,t){let e=t.length,l=0;for(let c=0;c<e;c++){let r=t.charCodeAt(c);r>=55296&&r<=56319&&c+1<e&&(r=(r<<10)+t.charCodeAt(++c)-56613888),l+=r<128?1:r<2048?2:r<65536?3:4}me(s,l);let n=mt(s,l),i=s.bytes;for(let c=0;c<e;c++){let r=t.charCodeAt(c);r>=55296&&r<=56319&&c+1<e&&(r=(r<<10)+t.charCodeAt(++c)-56613888),r<128?i[n++]=r:(r<2048?i[n++]=r>>6&31|192:(r<65536?i[n++]=r>>12&15|224:(i[n++]=r>>18&7|240,i[n++]=r>>12&63|128),i[n++]=r>>6&63|128),i[n++]=r&63|128)}}function Xr(s,t){let e=mt(s,t.limit),l=s.bytes,n=t.bytes;for(let i=0,c=t.limit;i<c;i++)l[i+e]=n[i]}function de(s){return s.bytes[xs(s,1)]}function wn(s,t){let e=mt(s,1);s.bytes[e]=t}function q(s){let t=0,e=0,l;do l=de(s),t<32&&(e|=(l&127)<<t),t+=7;while(l&128);return e}function me(s,t){for(t>>>=0;t>=128;)wn(s,t&127|128),t>>>=7;wn(s,t)}function Ee(s,t){let e=0,l=0,n=0,i;return i=de(s),e=i&127,i&128&&(i=de(s),e|=(i&127)<<7,i&128&&(i=de(s),e|=(i&127)<<14,i&128&&(i=de(s),e|=(i&127)<<21,i&128&&(i=de(s),l=i&127,i&128&&(i=de(s),l|=(i&127)<<7,i&128&&(i=de(s),l|=(i&127)<<14,i&128&&(i=de(s),l|=(i&127)<<21,i&128&&(i=de(s),n=i&127,i&128&&(i=de(s),n|=(i&127)<<7))))))))),{low:e|l<<28,high:l>>>4|n<<24,unsigned:t}}function Et(s,t){let e=t.low>>>0,l=(t.low>>>28|t.high<<4)>>>0,n=t.high>>>24,i=n===0?l===0?e<16384?e<128?1:2:e<1<<21?3:4:l<16384?l<128?5:6:l<1<<21?7:8:n<128?9:10,c=mt(s,i),r=s.bytes;switch(i){case 10:r[c+9]=n>>>7&1;case 9:r[c+8]=i!==9?n|128:n&127;case 8:r[c+7]=i!==8?l>>>21|128:l>>>21&127;case 7:r[c+6]=i!==7?l>>>14|128:l>>>14&127;case 6:r[c+5]=i!==6?l>>>7|128:l>>>7&127;case 5:r[c+4]=i!==5?l|128:l&127;case 4:r[c+3]=i!==4?e>>>21|128:e>>>21&127;case 3:r[c+2]=i!==3?e>>>14|128:e>>>14&127;case 2:r[c+1]=i!==2?e>>>7|128:e>>>7&127;case 1:r[c]=i!==1?e|128:e&127}}var ea=function(s,t){s.constructor==String?s=oa(s):o(s)?s=Array.prototype.slice.call(s,0):Array.isArray(s)||s.constructor===Uint8Array||(s=s.toString());for(var e=la(s),l=8*s.length,n=1732584193,i=-271733879,c=-1732584194,r=271733878,d=0;d<e.length;d++)e[d]=(e[d]<<8|e[d]>>>24)&16711935|(e[d]<<24|e[d]>>>8)&4278255360;e[l>>>5]|=128<<l%32,e[(l+64>>>9<<4)+14]=l;for(var a=ta,u=sa,h=na,p=ia,d=0;d<e.length;d+=16){var x=n,T=i,O=c,b=r;n=a(n,i,c,r,e[d+0],7,-680876936),r=a(r,n,i,c,e[d+1],12,-389564586),c=a(c,r,n,i,e[d+2],17,606105819),i=a(i,c,r,n,e[d+3],22,-1044525330),n=a(n,i,c,r,e[d+4],7,-176418897),r=a(r,n,i,c,e[d+5],12,1200080426),c=a(c,r,n,i,e[d+6],17,-1473231341),i=a(i,c,r,n,e[d+7],22,-45705983),n=a(n,i,c,r,e[d+8],7,1770035416),r=a(r,n,i,c,e[d+9],12,-1958414417),c=a(c,r,n,i,e[d+10],17,-42063),i=a(i,c,r,n,e[d+11],22,-1990404162),n=a(n,i,c,r,e[d+12],7,1804603682),r=a(r,n,i,c,e[d+13],12,-40341101),c=a(c,r,n,i,e[d+14],17,-1502002290),i=a(i,c,r,n,e[d+15],22,1236535329),n=u(n,i,c,r,e[d+1],5,-165796510),r=u(r,n,i,c,e[d+6],9,-1069501632),c=u(c,r,n,i,e[d+11],14,643717713),i=u(i,c,r,n,e[d+0],20,-373897302),n=u(n,i,c,r,e[d+5],5,-701558691),r=u(r,n,i,c,e[d+10],9,38016083),c=u(c,r,n,i,e[d+15],14,-660478335),i=u(i,c,r,n,e[d+4],20,-405537848),n=u(n,i,c,r,e[d+9],5,568446438),r=u(r,n,i,c,e[d+14],9,-1019803690),c=u(c,r,n,i,e[d+3],14,-187363961),i=u(i,c,r,n,e[d+8],20,1163531501),n=u(n,i,c,r,e[d+13],5,-1444681467),r=u(r,n,i,c,e[d+2],9,-51403784),c=u(c,r,n,i,e[d+7],14,1735328473),i=u(i,c,r,n,e[d+12],20,-1926607734),n=h(n,i,c,r,e[d+5],4,-378558),r=h(r,n,i,c,e[d+8],11,-2022574463),c=h(c,r,n,i,e[d+11],16,1839030562),i=h(i,c,r,n,e[d+14],23,-35309556),n=h(n,i,c,r,e[d+1],4,-1530992060),r=h(r,n,i,c,e[d+4],11,1272893353),c=h(c,r,n,i,e[d+7],16,-155497632),i=h(i,c,r,n,e[d+10],23,-1094730640),n=h(n,i,c,r,e[d+13],4,681279174),r=h(r,n,i,c,e[d+0],11,-358537222),c=h(c,r,n,i,e[d+3],16,-722521979),i=h(i,c,r,n,e[d+6],23,76029189),n=h(n,i,c,r,e[d+9],4,-640364487),r=h(r,n,i,c,e[d+12],11,-421815835),c=h(c,r,n,i,e[d+15],16,530742520),i=h(i,c,r,n,e[d+2],23,-995338651),n=p(n,i,c,r,e[d+0],6,-198630844),r=p(r,n,i,c,e[d+7],10,1126891415),c=p(c,r,n,i,e[d+14],15,-1416354905),i=p(i,c,r,n,e[d+5],21,-57434055),n=p(n,i,c,r,e[d+12],6,1700485571),r=p(r,n,i,c,e[d+3],10,-1894986606),c=p(c,r,n,i,e[d+10],15,-1051523),i=p(i,c,r,n,e[d+1],21,-2054922799),n=p(n,i,c,r,e[d+8],6,1873313359),r=p(r,n,i,c,e[d+15],10,-30611744),c=p(c,r,n,i,e[d+6],15,-1560198380),i=p(i,c,r,n,e[d+13],21,1309151649),n=p(n,i,c,r,e[d+4],6,-145523070),r=p(r,n,i,c,e[d+11],10,-1120210379),c=p(c,r,n,i,e[d+2],15,718787259),i=p(i,c,r,n,e[d+9],21,-343485551),n=n+x>>>0,i=i+T>>>0,c=c+O>>>0,r=r+b>>>0}return ei([n,i,c,r])};const ta=function(s,t,e,l,n,i,c){var r=s+(t&e|~t&l)+(n>>>0)+c;return(r<<i|r>>>32-i)+t},sa=function(s,t,e,l,n,i,c){var r=s+(t&l|e&~l)+(n>>>0)+c;return(r<<i|r>>>32-i)+t},na=function(s,t,e,l,n,i,c){var r=s+(t^e^l)+(n>>>0)+c;return(r<<i|r>>>32-i)+t},ia=function(s,t,e,l,n,i,c){var r=s+(e^(t|~l))+(n>>>0)+c;return(r<<i|r>>>32-i)+t},oa=function(s){for(var t=[],e=0;e<s.length;e++)t.push(255&s.charCodeAt(e));return t},la=function(s){for(var t=[],e=0,l=0;e<s.length;e++,l+=8)t[l>>>5]|=s[e]<<24-l%32;return t},ra=function(s){for(var t=[],e=0;e<32*s.length;e+=8)t.push(s[e>>>5]>>>24-e%32&255);return t},ei=function(s){if(s.constructor==Number)return 16711935&yn(s,8)|4278255360&yn(s,24);for(var t=0;t<s.length;t++)s[t]=ei(s[t]);return s},yn=function(s,t){return s<<t|s>>>32-t},aa=function(s){for(var t=[],e=0;e<s.length;e++)t.push((s[e]>>>4).toString(16)),t.push((15&s[e]).toString(16));return t.join("")},ca=(s,t)=>{const l=`,live_id=1,aid=6383,version_code=180800,webcast_sdk_version=1.0.14-beta.0,room_id=${s},sub_room_id=,sub_channel_id=,did_rule=3,user_unique_id=${t},device_platform=web,device_type=,ac=,identity=audience`.substring(1),n=ea(l),i=ra(n),c=aa(i);return window.byted_acrawler.frontierSign({"X-MS-STUB":c})["X-Bogus"]},ua=(s,t)=>{const e=D();let l,n=new ResizeObserver(i=>{clearTimeout(l),l=setTimeout(()=>{e.value.resize()},500)});return Je(()=>{n.observe(s.value),t.canvas=s.value,e.value=new da(t)}),Ut(()=>{n.unobserve(s.value),clearTimeout(l)}),e};class da{constructor(t){Y(this,"canvas");Y(this,"colors");Y(this,"ctx");Y(this,"isdraw");Y(this,"lines");Y(this,"textList");Y(this,"fontSize");Y(this,"font");Y(this,"rows");Y(this,"gap");Y(this,"speed");Y(this,"opacity");Y(this,"opacityStr");this.isdraw=!1,this.textList=[],this.canvas=t.canvas,this.ctx=this.canvas.getContext("2d"),this.speed=t.speed||2,this.setFont(t.fontSize||16),this.setGap(t.gap||8),this.setRows(t.rows||4),this.setOpacity(t.opacity||100),this.setColors(t.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(t){this.opacity=t;const e=Math.floor(2.55*t).toString(16);this.opacityStr=e.length==1?"0"+e:e}setRows(t){this.rows=t}setSpeed(t){this.speed=t}setFont(t){this.ctx.textBaseline="top",this.fontSize=t,this.font=`${t}px sans-serif`}setGap(t){this.gap=t}setColors(t){this.colors=t}clean(){this.textList=[],this.isdraw=!1}destory(){this.lines=[],this.clean()}add(t){const e=this.getLine();if(e==-1)return;const l=Math.ceil(this.ctx.measureText(t).width),n=this.canvas.width+l;this.lines[e].width=n,this.textList.push({value:t,width:l,line:e,left:this.canvas.width,color:this.colors[Math.floor(Math.random()*this.colors.length)]}),!this.isdraw&&(this.isdraw=!0,this.draw())}getLine(){let t=-1,e=this.lines.length;for(;++t<e;)if(this.lines[t].width==this.canvas.width)return t;return-1}initRows(){this.lines=[];let t=-1;const e=this.gap+this.fontSize;for(;++t<this.rows;)this.lines.push({top:this.gap+e*t,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 t=-1,e=this.textList.length;const l=[];for(;++t<e;){const n=this.textList[t],i=n.left+n.width;if(i<=0)continue;this.ctx.fillStyle=n.color+this.opacityStr;const c=this.lines[n.line];c&&(this.ctx.fillText(n.value,n.left,this.lines[n.line].top),n.left-=this.speed,l.push(n),c.width=Math.max(i,this.canvas.width))}this.textList=l,l.length==0?this.isdraw=!1:requestAnimationFrame(this.draw.bind(this))}}const fa={class:"w-full h-full flex flex-col lg:flex-row box-border md:pb-2"},ha={class:"lg:grow-5 flex flex-col"},pa={class:"flex p-2 pt-1 gap-2 text-lg md:pr-3"},va={class:"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"},ma={class:"aspect-ratio-video"},ga={class:"w-full h-full pos-absolute top-0 z-1 flex justify-center items-center text-6"},wa=["src"],ya={key:0},xa={class:"flex items-center gap-4 p-1"},_a={class:"flex items-center gap-4 p-1"},ka={key:1,class:"h-0 w-0"},ba={class:"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"},Sa={class:"flex items-center line-height-none gap-4 b b-y-solid py-3 b-gray-7 px-4"},Aa=["src"],Ta={class:"grow-1 w-20"},Ca={class:"h-4 truncate"},Ia={class:"h-4 flex text-3 items-center gap-1"},Ea=["src"],Ma={class:"pos-absolute top-0 right-4 text-4 flex flex-col gap-3"},Oa=["src"],Ra=["href"],Ba=["data-id","data-site","href"],La={class:"flex items-center gap-2"},Da={class:"w-5 h-5 rounded-5",alt:""},Ua=["onClick"],za={class:"flex flex-col b b-solid b-gray-6 rounded-2 px-2"},$a={class:"flex justify-between items-center mx-2 py-2"},ja={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Fa={class:"flex justify-between items-center mx-2 py-2"},Na={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Pa={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Va={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Ha={class:"flex flex-col b b-solid b-gray-6 rounded-2 px-2"},Za={class:"flex justify-between items-center mx-2 py-2"},Ga={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Wa={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Ja={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Qa={class:"flex flex-wrap shadow blur bg-dark p-2 box-border b b-solid b-gray-7 rounded",style:{"box-shadow":"0 6px 15px 0 rgba(0, 0, 0, .5)"}},Ka=["data-color"],Ya={class:"p-3 flex justify-between items-center"},qa=X({__name:"play",setup(s){let t,e,l;const n=Te({follow:!1,qn:0,line:0,notice:null,paused:!0,muted:!1,fullscreen:!1,webscreen:!1,showController:!0,pictureInPicture:!1}),i=ms(),c=D(),r=D(),d=D(),a=bi(),u=Q(()=>{var A,w;return a.value&&((w=(A=a.value)==null?void 0:A.stream)==null?void 0:w.length)>0?a.value.stream.map(z=>z.name):[]}),h=Q(()=>u.value.length>0?a.value.stream[n.qn].lines.map(A=>A.name):[]),p=Q(()=>h.value.length>0?a.value.stream[n.qn].lines[n.line].url:""),x=Q(()=>G.map(A=>Object.values(A.follows)).flat().sort(A=>A.status?-1:0)),T=Q(()=>{var A;return((A=a.value)==null?void 0:A.siteId)=="bilibili"?"hls":"flv"});let O;const b=Q(()=>{var A;return((A=a.value)==null?void 0:A.siteId)=="huya"&&(["一起看","星秀","原创"].includes(a.value.category)||a.value.info.name.endsWith("-imgplus"))}),C=()=>{b.value&&(O=setInterval(()=>{const A=Ls(a.value.info);n.flv.switchURL(p.value+A,!0)},11e4))};pe(p,()=>{var A,w;if(clearInterval(O),!!p.value){if(T.value=="flv"){const z=a.value.siteId=="huya"?p.value+Ls(a.value.info):p.value;if(n.flv)return(A=n.flv)==null||A.switchURL(z,!0),C();if(bt!=null&&bt.isSupported("video")){const N=new bt({media:r.value,seamlesslyReload:!0,isLive:!0,retryCount:0});return N.load(z),n.flv=N,C()}}if(n.hls)return(w=n.hls)==null?void 0:w.loadSource(p.value);if(St!=null&&St.isSupported()){const z=new St;return z.attachMedia(r.value),z.loadSource(p.value),n.hls=z}return n.notice="播放失败",clearTimeout(e)}}),pe(T,()=>{var A,w;if(T.value=="flv"){(A=n.hls)==null||A.destroy(),n.hls=void 0;return}(w=n.flv)==null||w.destroy(),n.flv=void 0});const B=()=>{d.value.scrollTop=0,he=0,d.value.innerHTML=""};let S,k=0,_=!0;const m=D(),f=ua(m,{gap:E.canvasGap,rows:E.canvasRows,speed:E.canvasSpeed,opacity:E.canvasOpacity,colors:E.canvasColorOpen?E.colors:["#ffffff"]}),g=[];let j;function $(){j||(j=setTimeout(()=>{let A=-1;const w=g.length>5?5:g.length;for(d.value.style.display="none";++A<w;)d.value.appendChild(g[A]);d.value.style.display="block",g.splice(0,5),_&&(d.value.scrollTop=d.value.scrollHeight),j=void 0},200))}const L=(A,w)=>{var Ue;if(k++,E.blockOpen&&$s.value.length&&$s.value.some(Xe=>Xe.test(w))||(k%(E.sideClean||100)==0&&(d.value.innerHTML="",he=0),E.canvasOpen&&((Ue=f.value)==null||Ue.add(w)),!He.value||!E.sideOpen))return;const z=document.createElement("div"),{sideColorOpen:N,sideFontsize:W,sideGap:ee,colors:we}=E;z.style.margin=`${ee}px 0`,z.style.fontSize=`${W}px`,N&&(z.style.color=we[Math.floor(Math.random()*we.length)]);const De=document.createElement("span");De.style.opacity="0.5",De.appendChild(document.createTextNode(A+":"));const Ne=document.createElement("span");Ne.appendChild(document.createTextNode(w)),z.appendChild(De),z.appendChild(Ne),g.push(z),$()};let he=0;const Ce=()=>{if(d.value.scrollTop>=he)return he=d.value.scrollTop;he=d.value.scrollTop,_=!1,d.value.removeEventListener("scroll",Ce)},Fe=()=>{_=!0,d.value.scrollTop=d.value.scrollHeight,d.value.addEventListener("scroll",Ce,{passive:!1})};let ie;const _s=async()=>{var w;if(S||!E.canvasOpen&&!E.sideOpen)return;let A=!0;if(a.value.siteId=="huya"){const z=(w=a.value)==null?void 0:w.ws;if(!z)return;S=new WebSocket(z),S.onopen=()=>{clearInterval(ie),L("系统","开始连接弹幕服务器"),d.value.addEventListener("scroll",Ce),S==null||S.send(JSON.stringify({command:"subscribeNotice",data:["getMessageNotice"],reqId:Date.now().toString()})),ie=setInterval(()=>{S.send("ping")},45e3)},S.onmessage=N=>{if(A)return L("系统","弹幕服务器连接成功"),A=!1;const{sendNick:W,content:ee}=JSON.parse(N.data).data;L(W,ee)},S.onerror=()=>{clearInterval(ie),L("系统","弹幕服务器连接失败")}}else if(a.value.siteId=="douyu")S=new WebSocket("wss://danmuproxy.douyu.com:8506"),S.onopen=()=>{var z,N;clearInterval(ie),L("系统","开始连接弹幕服务器"),d.value.addEventListener("scroll",Ce),S.send(gt(`type@=loginreq/roomid@=${(z=a.value)==null?void 0:z.roomId}`)),S.send(gt(`type@=joingroup/rid@=${(N=a.value)==null?void 0:N.roomId}/gid@=-9999`)),ie=setInterval(()=>{S.send(gt("type@=mrkl/"))},45e3)},S.onmessage=async({data:z})=>{A&&(L("系统","弹幕服务器连接成功"),A=!1),(await z.text()).split(/type@=chatmsg\//).forEach(ee=>{const we=ee.match(/nn@=(.*)\/txt@=(.*)\/cid/);we!=null&&L(we[1],we[2])})},S.onerror=()=>{clearInterval(ie),L("系统","弹幕服务器连接失败")};else if(a.value.siteId=="douyin"){const z=a.value.ws.split(","),N=z[0],W=z[1],ee=ca(N,W);let we=`wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/?room_id=${N}&compress=gzip&version_code=180800&webcast_sdk_version=1.0.14-beta.0&live_id=1&did_rule=3&user_unique_id=${W}&identity=audience&signature=${ee}&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(we),S.binaryType="arraybuffer",S.onopen=()=>{clearInterval(ie),L("系统","开始连接弹幕服务器"),d.value.addEventListener("scroll",Ce),ie=setInterval(()=>{(S==null?void 0:S.readyState)==1&&S.send(Pr({payloadType:"bh"}))},1e4)},S.onmessage=De=>{A&&(L("系统","弹幕服务器连接成功"),A=!1);const Ne=Hr(new Uint8Array(De.data)),Ue=Dr(Ne.payload),Ie=Ur(new Uint8Array(Ue)).messagesList;if(!Ie||Ie.length==0)return;const xt=Ie.length;let Pe=-1;for(;++Pe<xt;){if(Ie[Pe].method!="WebcastChatMessage")continue;const et=jr(Ie[Pe].payload);L(et.user.nickName,et.content)}},S.onerror=function(){clearInterval(ie),L("系统","弹幕服务器连接失败")}}},ks=new TextEncoder;function gt(A){let w=ks.encode(A);const z=9+w.byteLength,N=[z,0,0,.1,z,0,0,0,177,2,0,0];w=ks.encode(A+"\0");const W=new Uint8Array(12+w.byteLength);return W.set(N),W.set(w,12),W.buffer}const Zt=()=>{clearInterval(ie),S&&(S.onmessage=null,Ts=="douyu"?S.send(gt("type@=logout")):S.close(),S=null,k=0,d.value&&wt==i.fullPath&&L("系统","弹幕服务器断开连接"))};pe(a,()=>_s()),pe([()=>E.sideOpen,()=>E.canvasOpen],()=>{!E.sideOpen&&!E.canvasOpen&&Zt(),S||_s()});const Gt=()=>{const{site:A,id:w}=i.meta,z=i.meta.site.follows[w];z&&(a.value=z,n.follow=!0),clearInterval(O),clearInterval(ie),clearTimeout(e),n.notice="加载中...",Qt(()=>{L("系统","开始获取直播间信息")}),be(A.id,"getRoomDetail",{id:w}).then(N=>{if(a.value=N,n.follow&&Rt(N),Qt(()=>L("系统","直播间信息获取成功")),!N.status)return n.notice="未开播!";document.title=a.value.title},N=>{n.notice=N,Qt(()=>L("系统","直播间信息获取失败"))}).finally(()=>clearTimeout(e))},si=()=>{if(!a.value)return;const{id:A}=i.meta.site;n.follow=n.follow?us(A,a.value.roomId):Rt(a.value)},Wt=()=>{!a.value||!a.value.status||(clearTimeout(t),t=setTimeout(()=>{n.paused?r.value.play():r.value.pause()},200))},bs=()=>{clearTimeout(t),n.fullscreen=!n.fullscreen,document.fullscreenElement?document.exitFullscreen():c.value.requestFullscreen()},Le=()=>{clearTimeout(l),n.showController=!0,l=setTimeout(()=>{var A,w;(A=r.value)!=null&&A.paused||!((w=r.value)!=null&&w.played.length)||(n.showController=!1)},3e3)},ni=()=>{clearTimeout(t),n.webscreen=!n.webscreen,n.fullscreen&&(n.fullscreen=!1,document.exitFullscreen())},ii=()=>{n.paused=!1,Le()},oi=()=>{n.paused=!0,Le()},Ss=A=>{if(p.value)switch(A.code){case"ArrowDown":return _t(!1);case"ArrowUp":return _t(!0);case"Space":return Wt()}},li=()=>{var A;clearTimeout(t),clearTimeout(l),clearTimeout(e),clearTimeout(j),clearInterval(O),Zt(),document.title="Lemon live",document.removeEventListener("keydown",Ss),T.value&&!n.pictureInPicture&&((A=n[T.value])==null||A.destroy())};Gt();const As=Nt();let wt=i.fullPath;Je(()=>{c.value.style.filter=ce.value==100?"":`brightness(${ce.value/100})`,r.value.volume=ve.value/100,n.muted=r.value.muted,r.value.addEventListener("canplay",()=>{n.notice=null}),Mt||(c.value.addEventListener("mousemove",Le),document.addEventListener("keydown",Ss)),document.pictureInPictureElement&&document.exitPictureInPicture(),r.value.addEventListener("leavepictureinpicture",()=>{var A;if(!/play/.test(i.path))return As.push(wt);if(i.fullPath==wt)return n.pictureInPicture=!1;(A=n[T.value])==null||A.destroy()})});let Ts=i.meta.site.id;so(A=>{var W;const{siteid:w,id:z}=A.params,N=Ge.findIndex(ee=>ee==w);return N==-1?{name:"404"}:(A.meta.site=G[N],A.meta.id=z,T.value&&((W=n[T.value])==null||W.destroy(),n[T.value]=void 0),n.qn=0,n.line=0,n.follow=!1,a.value=void 0,!0)}),pe(()=>i.params,()=>{var A;clearTimeout(j),Zt(),B(),(A=f.value)==null||A.destory(),Ts=i.meta.site.id,wt=i.fullPath,Gt()}),Ut(li);const ri=()=>Promise.all($t(G,cs)),ai=async A=>{A==1&&await ri()},ci=()=>n.showController?Wt():Le(),ui=()=>{n.pictureInPicture=!n.pictureInPicture,document.pictureInPictureElement?document.exitPictureInPicture():r.value.requestPictureInPicture()},di=A=>{const w=A.target.dataset.color;if(!w)return;const z=E.colors.findIndex(N=>N==w);if(z==-1)return E.colors.push(w);E.colors.length!=1&&E.colors.splice(z,1)};pe(()=>E.colors,()=>{var A;return(A=f.value)==null?void 0:A.setColors(E.colors)}),pe(()=>E.canvasSpeed,()=>{var A;return(A=f.value)==null?void 0:A.setSpeed(E.canvasSpeed)}),pe(()=>E.canvasOpacity,()=>{var A;return(A=f.value)==null?void 0:A.setOpacity(E.canvasOpacity)}),pe(()=>E.canvasColorOpen,()=>{var A;return(A=f.value)==null?void 0:A.setColors(E.canvasColorOpen?E.colors:["#ffffff"])}),We(()=>{var A,w,z,N;(A=f.value)==null||A.setGap(E.canvasGap),(w=f.value)==null||w.setFont(E.canvasFontsize),(z=f.value)==null||z.setRows(E.canvasRows),(N=f.value)==null||N.resize()}),pe(ve,()=>{Le(),clearTimeout(e),n.notice=`当前音量 ${ve.value}%`,r.value.volume=ve.value/100,Oe("volume",ve.value),e=setTimeout(()=>n.notice=null,2e3)}),pe(ce,()=>{Le(),clearTimeout(e),n.notice=`当前亮度 ${ce.value}%`,c.value.style.filter=ce.value==100?"":`brightness(${ce.value/100})`,Oe("brightness",ce.value),e=setTimeout(()=>n.notice=null,2e3)});let Jt;const yt=D(),fi=A=>{clearTimeout(Jt),Jt=setTimeout(()=>{const w=qe("id",A.target,yt.value);if(!w)return;const z=qe("site",A.target,yt.value);As.push(`/${z}/play/${w}`)},300)},hi=A=>{var W;clearTimeout(Jt);const w=qe("id",A.target,yt.value);if(!w)return;const N=`/${qe("site",A.target,yt.value)}/play/${w}`;(W=window.open(N,"_blank"))==null||W.location},qe=(A,w,z)=>{if(w==z)return null;const N=w.dataset[A];return N||qe(A,w.parentElement,z)},pi=()=>ce.value=100;pe(()=>n.muted,()=>{Le(),clearTimeout(e),n.notice=n.muted?"已静音":"已开启声音",e=setTimeout(()=>n.notice=null,2e3)});const vi=()=>{if(r.value.muted){r.value.muted=!1,n.muted=!1;return}r.value.muted=!0,n.muted=!0};function mi(A,w,z){z.stopPropagation(),z.preventDefault(),us(A,w),A==a.value.siteId&&w==a.value.roomId&&(n.follow=!1)}return(A,w)=>{var Ue,Xe,Ie,xt,Pe,et;const z=_l,N=ml,W=vt,ee=hl,we=dl,De=pt,Ne=Dt("lazy");return I(),U("div",fa,[v("div",ha,[v("div",pa,[v("div",{onClick:w[0]||(w[0]=(...R)=>A.$router.back&&A.$router.back(...R)),class:"i-ri-arrow-left-line hover:text-amber"}),v("h1",va,F((Ue=y(a))==null?void 0:Ue.title),1),v("div",{onClick:w[1]||(w[1]=R=>He.value=!y(He)),style:Ze(y(He)?"transform:rotate(180deg)":"margin-right:1.5rem"),class:"i-ri-arrow-right-s-fill hidden lg:block"},null,4)]),v("div",{ref_key:"player",ref:c,class:V(["md:rounded-6px text-4 text-white bg-black cursor-default pos-relative w-full overflow-hidden select-none h-full",{"cursor-none":!y(n).showController,"text-5":y(n).fullscreen,"text-5 !pos-fixed left-0 right-0 top-0 bottom-0 z-10 ":y(n).webscreen}]),onContextmenu:w[19]||(w[19]=ne(()=>{},["prevent"])),onClick:ci,onDblclick:bs},[v("div",ma,[v("video",{playsinline:"","webkit-playsinline":"","x5-video-player-type":"h5",autoplay:"",ref_key:"video",ref:r,class:"w-full h-full pos-absolute",onPlay:ii,onPause:oi},null,544)]),J(v("div",ga,[v("span",null,F(y(n).notice),1)],512),[[ye,y(n).notice]]),v("canvas",{ref_key:"canvas",ref:m,width:"0",height:"0",class:"w-full h-full z-1 pos-absolute top-0"},null,512),J(v("div",{class:V(["pos-absolute bottom-0 left-0 right-0 px-4 py-2 gap-3 z-20 flex items-center bg-black bg-op-30",{"py-3":y(n).fullscreen||y(n).webscreen}]),onClick:w[5]||(w[5]=ne(()=>{},["stop"])),onDblclick:w[6]||(w[6]=ne(()=>{},["stop"]))},[v("div",{onClick:Wt,class:V(["hover:text-amber",y(n).paused?"i-ri-play-large-fill":"i-ri-pause-large-fill"])},null,2),v("div",{onClick:si,class:V(["hover:text-amber",y(n).follow?"i-ri-heart-fill":"i-ri-heart-line"])},null,2),v("div",{onClick:Gt,class:"i-ri-refresh-line hover:text-amber"}),v("img",{class:"w-1.5em cursor-pointer",onClick:w[2]||(w[2]=()=>y(E).canvasOpen=!y(E).canvasOpen),src:y(E).canvasOpen?y(js):y(Fs)},null,8,wa),w[33]||(w[33]=v("div",{class:"grow"},null,-1)),y(u).length?(I(),U("div",ya,[P(z,{active:y(n).qn,"onUpdate:active":w[3]||(w[3]=R=>y(n).qn=R),list:y(u)},null,8,["active","list"]),P(z,{active:y(n).line,"onUpdate:active":w[4]||(w[4]=R=>y(n).line=R),list:y(h)},null,8,["active","list"]),y(Mt)?ke("",!0):(I(),U("div",{key:0,class:V(["hover:text-amber ml-2",y(n).pictureInPicture?"i-ri-picture-in-picture-exit-line":"i-ri-picture-in-picture-2-line"]),onClick:ui},null,2))])):ke("",!0),v("div",{onClick:ni,class:"i-mdi-fit-to-screen hover:text-amber"}),v("div",{onClick:bs,class:V(["hover:text-amber",y(n).fullscreen?"i-ri-fullscreen-exit-fill":"i-ri-fullscreen-fill"])},null,2)],34),[[ye,y(n).showController]]),y(Mt)?J((I(),U("div",{key:0,class:V([{"py-3":y(n).fullscreen||y(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:w[11]||(w[11]=ne(()=>{},["stop"])),onDblclick:w[12]||(w[12]=ne(()=>{},["stop"]))},[v("div",xa,[v("div",{onClick:w[7]||(w[7]=R=>y(Us)(!1)),class:"i-ri-sun-line"}),v("div",null,F(y(ce)),1),v("div",{onClick:w[8]||(w[8]=R=>y(Us)(!0)),class:"i-ri-sun-fill"})]),J(v("div",{class:"flex-1 w-10 truncate text-center"},F((Xe=y(a))==null?void 0:Xe.title),513),[[ye,y(n).fullscreen]]),v("div",_a,[v("div",{onClick:w[9]||(w[9]=R=>y(_t)(!1)),class:"i-ri-volume-down-fill"}),v("div",null,F(y(ve)),1),v("div",{onClick:w[10]||(w[10]=R=>y(_t)(!0)),class:"i-ri-volume-up-fill"})])],34)),[[ye,y(n).showController]]):J((I(),U("div",ka,[v("div",{onClick:w[14]||(w[14]=ne(()=>{},["stop"])),onDblclick:w[15]||(w[15]=ne(()=>{},["stop"])),class:"top-50% left-4 flex items-center flex-col pos-absolute z-20",style:{transform:"translateY(-50%)"}},[v("div",null,F(y(ce)),1),P(N,{value:y(ce),"onUpdate:value":w[13]||(w[13]=R=>ze(ce)?ce.value=R:null),max:200,min:50},null,8,["value"]),v("div",{onClick:ne(pi,["stop"]),class:"i-ri-sun-line"})],32),v("div",{onClick:w[17]||(w[17]=ne(()=>{},["stop"])),onDblclick:w[18]||(w[18]=ne(()=>{},["stop"])),class:"top-50% right-4 flex items-center flex-col pos-absolute z-20",style:{transform:"translateY(-50%)"}},[nt(F(y(ve))+" ",1),P(N,{value:y(ve),"onUpdate:value":w[16]||(w[16]=R=>ze(ve)?ve.value=R:null),max:100,min:0},null,8,["value"]),v("div",{onClick:ne(vi,["stop"]),class:V(y(n).muted?"i-ri-volume-mute-line":"i-ri-volume-down-line")},null,2)],32)],512)),[[ye,y(n).showController]])],34)]),J(v("div",ba,[v("div",Sa,[v("img",{src:(Ie=y(a))==null?void 0:Ie.avatar,alt:"",class:"w-8 h-8 rounded-4"},null,8,Aa),v("div",Ta,[v("div",Ca,F((xt=y(a))==null?void 0:xt.nickname),1),v("div",Ia,[v("img",{class:"w-4 h-4",src:A.$route.meta.site.icon},null,8,Ea),nt(" "+F(A.$route.meta.site.name)+" "+F((Pe=y(a))==null?void 0:Pe.category),1)])]),v("div",null,[w[34]||(w[34]=v("div",{class:"i-mdi-fire mx-1"},null,-1)),v("span",null,F((et=y(a))==null?void 0:et.online),1)])]),P(De,{grow:!0,onTabClick:ai,class:"!h-[calc(100%-3.75rem)]"},{default:Z(()=>[P(W,{title:"聊天",class:"pos-relative"},{default:Z(()=>{var R;return[v("div",Ma,[v("img",{onClick:w[20]||(w[20]=()=>y(E).sideOpen=!y(E).sideOpen),class:"w-1.5em cursor-pointer",src:y(E).sideOpen?y(js):y(Fs)},null,8,Oa),v("div",{onClick:B,class:"i-ri-delete-bin-3-line text-green-5"}),v("a",{class:"text-green-5",href:(R=y(a))==null?void 0:R.url,target:"_blank"},w[35]||(w[35]=[v("div",{class:"i-ri-link"},null,-1)]),8,Ra),v("div",{onClick:Fe,class:"i-ri-arrow-down-circle-line text-green-5"})]),v("div",{ref_key:"dm",ref:d,class:"scrolly h-full pl-2 box-border"},null,512)]}),_:1}),P(W,{title:"关注",class:"box-border px-4"},{default:Z(()=>[v("div",{onClick:ne(fi,["prevent"]),onDblclick:ne(hi,["prevent"])},[(I(!0),U(se,null,fe(y(x),R=>{var Cs,Is;return I(),U("a",{"data-id":R.roomId,"data-site":R.siteId,class:V([{"text-amber":((Cs=y(a))==null?void 0:Cs.siteId)==R.siteId&&((Is=y(a))==null?void 0:Is.roomId)==R.roomId},"flex items-center justify-between gap-2 py-2"]),key:`${R.siteId}/${R.roomId}`,href:`/${R.siteId}/play/${R.roomId}`},[v("div",La,[J(v("img",Da,null,512),[[Ne,R.avatar]]),v("div",null,F(y(On)[R.siteId]),1),v("div",null,F(R.nickname),1),v("div",{class:V(["inline-block w-3 h-3 rounded-3",[R.status?"bg-amber":"bg-red"]])},null,2),v("div",null,F(R.status?"直播中":"未开播"),1)]),v("div",{class:"i-mdi-heart-off-outline pos-relative w-6 h-6 hover:text-amber",onClick:gi=>mi(R.siteId,R.roomId,gi)},null,8,Ua)],10,Ba)}),128))],32)]),_:1}),P(W,{title:"设置",class:"px-2"},{default:Z(()=>[w[47]||(w[47]=v("div",{class:"p-3"},"弹幕",-1)),v("div",za,[v("div",$a,[w[36]||(w[36]=v("div",null,"文字大小",-1)),P(ee,{value:y(E).canvasFontsize,"onUpdate:value":w[21]||(w[21]=R=>y(E).canvasFontsize=R),max:80,min:8,step:1},null,8,["value"])]),v("div",ja,[w[37]||(w[37]=v("div",null,"上下间隔",-1)),P(ee,{value:y(E).canvasGap,"onUpdate:value":w[22]||(w[22]=R=>y(E).canvasGap=R),max:80,min:1,step:1},null,8,["value"])]),v("div",Fa,[w[38]||(w[38]=v("div",null,"最大行数",-1)),P(ee,{value:y(E).canvasRows,"onUpdate:value":w[23]||(w[23]=R=>y(E).canvasRows=R),max:50,min:1,step:1},null,8,["value"])]),v("div",Na,[w[39]||(w[39]=v("div",null,"弹幕速度",-1)),P(ee,{value:y(E).canvasSpeed,"onUpdate:value":w[24]||(w[24]=R=>y(E).canvasSpeed=R),max:32,min:.5,step:.5},null,8,["value"])]),v("div",Pa,[w[40]||(w[40]=v("div",null,"弹幕透明",-1)),P(ee,{value:y(E).canvasOpacity,"onUpdate:value":w[25]||(w[25]=R=>y(E).canvasOpacity=R),max:100,min:10,step:10},null,8,["value"])]),v("div",Va,[w[41]||(w[41]=v("div",null,"彩色弹幕",-1)),P(we,{value:y(E).canvasColorOpen,"onUpdate:value":w[26]||(w[26]=R=>y(E).canvasColorOpen=R)},null,8,["value"])])]),w[48]||(w[48]=v("div",{class:"p-3"},"聊天",-1)),v("div",Ha,[v("div",Za,[w[42]||(w[42]=v("div",null,"文字大小",-1)),P(ee,{value:y(E).sideFontsize,"onUpdate:value":w[27]||(w[27]=R=>y(E).sideFontsize=R),max:80,min:8,step:1},null,8,["value"])]),v("div",Ga,[w[43]||(w[43]=v("div",null,"上下间隔",-1)),P(ee,{value:y(E).sideGap,"onUpdate:value":w[28]||(w[28]=R=>y(E).sideGap=R),max:80,min:0,step:1},null,8,["value"])]),v("div",Wa,[w[44]||(w[44]=v("div",null,"自动清屏",-1)),P(ee,{value:y(E).sideClean,"onUpdate:value":w[29]||(w[29]=R=>y(E).sideClean=R),max:500,min:10,step:10},null,8,["value"])]),v("div",Ja,[w[45]||(w[45]=v("div",null,"彩色消息",-1)),P(we,{value:y(E).sideColorOpen,"onUpdate:value":w[30]||(w[30]=R=>y(E).sideColorOpen=R)},null,8,["value"])])]),w[49]||(w[49]=v("div",{class:"p-3"},"颜色",-1)),v("div",Qa,[(I(!0),U(se,null,fe(y(Xi),R=>(I(),U("div",{onClick:di},[v("div",{class:"w-4 h-4 rounded-2 m-2 shadow cursor-pointer box-border","data-color":R,style:Ze(`background:${R};${y(E).colors.includes(R)?"box-shadow:0 0 0px 2px white":""}`)},null,12,Ka)]))),256))]),v("div",Ya,[w[46]||(w[46]=nt("屏蔽 ")),P(we,{value:y(E).blockOpen,"onUpdate:value":w[31]||(w[31]=R=>y(E).blockOpen=R)},null,8,["value"])]),J(v("textarea",{class:"outline-none w-full text-white b b-solid b-gray-7 p-2 box-border bg-dark shadow rounded-1","onUpdate:modelValue":w[32]||(w[32]=R=>y(E).blockWords=R),rows:"5",placeholder:"以空格分隔"},null,512),[[it,y(E).blockWords,void 0,{trim:!0}]])]),_:1})]),_:1})],512),[[ye,y(He)]])])}}}),Xa={class:"scrolly h-full box-border py-2"},ec={key:0,class:"flex justify-center flex-col gap-4 px-6 w-xs"},tc={class:"flex justify-between"},sc={class:"py-2 text-sm mr-4"},nc={class:"text-xl"},ic={class:"i-ri-refresh-line animate-spin ml-4"},oc={class:"flex justify-between"},lc={class:"py-2"},rc={class:"flex justify-between"},ac={class:"py-2"},cc={key:1,class:"flex flex-col justify-center items-center h-80vh"},uc={class:"w-60% max-w-xs justify-center items-center flex flex-col gap-4"},dc={class:"pos-relative w-full"},fc={class:"pos-relative w-full"},hc=["placeholder"],pc=X({__name:"user",setup(s){const t=D("signin"),e=Te({email:"",password:"",code:"",info:{}}),l=()=>{let O=!0;Wi(e.email)||(O=!1,ot.warning("邮箱不合法!")),t.value!="signin"&&!/^[0-9]{4}$/.test(e.code)&&(O=!1,ot.warning("验证码不合法!")),O&&Ds(t.value,{...e}).then(b=>{Yt.value=b.user,lt.value=b.token,Oe("user",b.user),Oe("token",b.token)})},n=D(-1);let i;const c=()=>{n.value==-1&&(n.value=30,clearInterval(i),i=setInterval(()=>{n.value--,n.value<=-1&&clearInterval(i)},1e3),Ds("sendcode",{type:t.value,email:e.email}).then(O=>{O&&ot.success(O)}))},r=D([]),d=D(!1),a=()=>setTimeout(()=>d.value=!1,300),u=()=>{d.value||(d.value=!0,Ki(rt[0].list.value).then(O=>{r.value=rt[0].list.value}).finally(a))},h=()=>{d.value||(d.value=!0,Yi().then(O=>{console.log(O),r.value=O}).finally(a))},p=()=>{d.value||(d.value=!0,r.value.forEach(O=>Rt(O)),a())},x=()=>{d.value||(d.value=!0,qi(),r.value.forEach(O=>Rt(O)),a())},T=()=>{Yt.value=void 0,lt.value=void 0,localStorage.removeItem("user"),localStorage.removeItem("token")};return(O,b)=>(I(),U("div",Xa,[y(lt)?(I(),U("div",ec,[b[6]||(b[6]=v("div",{class:"text-xl"},"账号",-1)),v("div",tc,[v("div",sc,F(y(Yt).email),1),v("div",{onClick:T,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"登出")]),v("div",nc,[b[5]||(b[5]=nt("同步")),J(v("div",ic,null,512),[[ye,y(d)]])]),v("div",oc,[v("div",lc,"本地 "+F(y(rt)[0].list.value.length),1),v("div",{class:"flex"},[v("div",{onClick:p,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4 mx-4"},"合并"),v("div",{onClick:x,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"覆盖")])]),v("div",rc,[v("div",ac,"云端 "+F(y(r).length),1),v("div",{class:"flex"},[v("div",{onClick:h,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4 mx-4"},"拉取"),v("div",{onClick:u,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"推送")])]),b[7]||(b[7]=v("div",{class:"text-xl"},"支持",-1)),b[8]||(b[8]=v("div",{class:"flex justify-between"},[v("img",{class:"h-50",src:"https://i0.hdslb.com/bfs/article/828b4686d0bcd7a427939b1f121f322898845873.png@1e_1c.webp"}),v("img",{class:"h-50",src:"https://i0.hdslb.com/bfs/article/d07b5e8cbae76f0fc38a8049c433d3d598845873.jpg@1e_1c.webp"})],-1))])):(I(),U("div",cc,[v("div",uc,[b[12]||(b[12]=v("div",{class:"text-2xl font-bold"},"Lemon live",-1)),v("div",dc,[J(v("input",{class:"md:text-4 box-border w-full py-2.5 pl-12 pr-13 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-0",type:"text","onUpdate:modelValue":b[0]||(b[0]=C=>y(e).email=C),placeholder:"请输入邮箱"},null,512),[[it,y(e).email,void 0,{trim:!0}]]),b[9]||(b[9]=v("div",{class:"i-ri-mail-line pos-absolute left-4 top-2 bg-gray"},null,-1))]),v("div",fc,[J(v("input",{class:"md:text-4 box-border w-full py-2.5 pl-12 pr-13 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-0",type:"text","onUpdate:modelValue":b[1]||(b[1]=C=>y(e).password=C),placeholder:`请输入${y(t)=="resetpassword"?"新":""}密码`},null,8,hc),[[it,y(e).password,void 0,{trim:!0}]]),b[10]||(b[10]=v("div",{class:"i-ri-lock-password-line pos-absolute left-4 top-2 bg-gray"},null,-1))]),v("div",{class:V(["pos-relative w-full",[y(t)=="signin"?"w-0 h-0 overflow-hidden ":"w-full"]])},[J(v("input",{class:"md:text-4 box-border w-full py-2.5 pl-12 pr-13 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-0",type:"text","onUpdate:modelValue":b[2]||(b[2]=C=>y(e).code=C),placeholder:"请输入验证码"},null,512),[[it,y(e).code,void 0,{trim:!0}]]),b[11]||(b[11]=v("div",{class:"i-ri-circle-line pos-absolute left-4 top-2 bg-gray"},null,-1)),v("div",{class:"pos-absolute right-4 top-2 cursor-pointer h-full hover:text-green",onClick:c},F(y(n)==-1?"获取":y(n)),1)],2),v("div",{class:"text-sm text-gray cursor-pointer",onClick:b[3]||(b[3]=()=>t.value="resetpassword")},"忘记密码?"),v("div",{onClick:l,class:"cursor-pointer text-black bg-green-5 hover:bg-green-7 py-2 px-12 rounded-4"},F(y(t)=="signup"?"注册":"登录"),1),v("div",{class:"cursor-pointer py-2 px-12 rounded-4 hover:text-green",onClick:b[4]||(b[4]=()=>t.value=y(t)!="signup"?"signup":"signin")},"去"+F(y(t)!="signup"?"注册":"登录"),1)])]))]))}}),vc={},mc={"h-full":"",flex:"","justify-center":"","items-center":""};function gc(s,t){return I(),U("div",mc,t[0]||(t[0]=[v("div",{"text-center":"","text-8":"","line-height-8":""},[v("div",{"font-900":""},"404"),v("div",{"mt-4":""},"页面未找到")],-1)]))}const wc=In(vc,[["render",gc]]);async function tt(s){const{siteid:t,id:e}=s.params,l=G.findIndex(n=>n.id==t);return l==-1?{name:"404"}:(s.meta.site=G[l],s.meta.id=e,s.meta.index=l,te.value=l,!0)}const yc=eo({history:to(),routes:[{path:"/",redirect:()=>`/${Ge[te.value]}`},{path:"/follow",component:cl},{path:"/user",component:pc},{path:"/category",redirect:()=>`/${Ge[te.value]}/category`},{path:"/search",redirect:()=>`/${Ge[te.value]}/search`},{path:"/:siteid",component:ul,beforeEnter:tt},{path:"/:siteid/category",component:No,beforeEnter:tt},{path:"/:siteid/category/:id",component:Co,beforeEnter:tt},{path:"/:siteid/play/:id",component:qa,beforeEnter:tt},{path:"/:siteid/search",component:Wo,beforeEnter:tt},{path:"/:pathMatch(.*)*",name:"404",component:wc}]}),xc={install(s){s.directive("lazy",{mounted(t,e){t.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJtMi4yNSAxNS43NWw1LjE1OS01LjE1OWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGw1LjE1OSA1LjE1OW0tMS41LTEuNWwxLjQwOS0xLjQwOWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGwyLjkwOSAyLjkwOW0tMTggMy43NWgxNi41YTEuNSAxLjUgMCAwIDAgMS41LTEuNVY2YTEuNSAxLjUgMCAwIDAtMS41LTEuNUgzLjc1QTEuNSAxLjUgMCAwIDAgMi4yNSA2djEyYTEuNSAxLjUgMCAwIDAgMS41IDEuNW0xMC41LTExLjI1aC4wMDh2LjAwOGgtLjAwOHptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwYS4zNzUuMzc1IDAgMCAxIC43NSAwIi8+PC9zdmc+";const l=new IntersectionObserver(n=>{Zi(n,i=>{if(i.isIntersecting){const c=new Image;c.src=e.value,c.onload=()=>t.src=e.value,l.unobserve(i.target)}})});l.observe(t)}})}},ti=xi(lo);ti.use(yc).use(xc);ti.mount("#app");
|
1
|
+
var wi=Object.defineProperty;var yi=(s,t,e)=>t in s?wi(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var Y=(s,t,e)=>yi(s,typeof t!="symbol"?t+"":t,e);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function e(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(n){if(n.ep)return;n.ep=!0;const i=e(n);fetch(n.href,i)}})();const xi=Vue.createApp,v=Vue.createElementVNode,I=Vue.openBlock,U=Vue.createElementBlock,D=Vue.ref,Te=Vue.reactive,We=Vue.watchEffect,Q=Vue.computed,X=Vue.defineComponent,y=Vue.unref,fe=Vue.renderList,se=Vue.Fragment,V=Vue.normalizeClass,Ot=Vue.resolveComponent,Z=Vue.withCtx,P=Vue.createVNode,ye=Vue.vShow,J=Vue.withDirectives,ct=Vue.resolveDynamicComponent,K=Vue.createBlock,_i=Vue.KeepAlive,ke=Vue.createCommentVNode,Je=Vue.onMounted,pe=Vue.watch,F=Vue.toDisplayString,nt=Vue.createTextVNode,it=Vue.vModelText,Tn=Vue.onActivated,Dt=Vue.resolveDirective,ze=Vue.isRef,ki=Vue.withKeys,Ze=Vue.normalizeStyle,ne=Vue.withModifiers,bi=Vue.shallowRef,Qt=Vue.nextTick,Ut=Vue.onBeforeUnmount,Si=Vue.h,Ai=Vue.onDeactivated,Ti=Vue.onUnmounted,Cn=Vue.render,Ci=Vue.Transition,ht=Vue.useModel,ut=Vue.mergeModels,Ii=Vue.renderSlot,ps=Vue.useSlots,Ei=Vue.provide,Mi=Vue.inject,Oi=Vue.getCurrentInstance;var Kt={exports:{}},Es;function Ri(){return Es||(Es=1,function(s){var t=function(){var e=String.fromCharCode,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function c(d,a){if(!i[d]){i[d]={};for(var u=0;u<d.length;u++)i[d][d.charAt(u)]=u}return i[d][a]}var r={compressToBase64:function(d){if(d==null)return"";var a=r._compress(d,6,function(u){return l.charAt(u)});switch(a.length%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function(d){return d==null?"":d==""?null:r._decompress(d.length,32,function(a){return c(l,d.charAt(a))})},compressToUTF16:function(d){return d==null?"":r._compress(d,15,function(a){return e(a+32)})+" "},decompressFromUTF16:function(d){return d==null?"":d==""?null:r._decompress(d.length,16384,function(a){return d.charCodeAt(a)-32})},compressToUint8Array:function(d){for(var a=r.compress(d),u=new Uint8Array(a.length*2),h=0,p=a.length;h<p;h++){var x=a.charCodeAt(h);u[h*2]=x>>>8,u[h*2+1]=x%256}return u},decompressFromUint8Array:function(d){if(d==null)return r.decompress(d);for(var a=new Array(d.length/2),u=0,h=a.length;u<h;u++)a[u]=d[u*2]*256+d[u*2+1];var p=[];return a.forEach(function(x){p.push(e(x))}),r.decompress(p.join(""))},compressToEncodedURIComponent:function(d){return d==null?"":r._compress(d,6,function(a){return n.charAt(a)})},decompressFromEncodedURIComponent:function(d){return d==null?"":d==""?null:(d=d.replace(/ /g,"+"),r._decompress(d.length,32,function(a){return c(n,d.charAt(a))}))},compress:function(d){return r._compress(d,16,function(a){return e(a)})},_compress:function(d,a,u){if(d==null)return"";var h,p,x={},T={},O="",b="",C="",B=2,S=3,k=2,_=[],m=0,f=0,g;for(g=0;g<d.length;g+=1)if(O=d.charAt(g),Object.prototype.hasOwnProperty.call(x,O)||(x[O]=S++,T[O]=!0),b=C+O,Object.prototype.hasOwnProperty.call(x,b))C=b;else{if(Object.prototype.hasOwnProperty.call(T,C)){if(C.charCodeAt(0)<256){for(h=0;h<k;h++)m=m<<1,f==a-1?(f=0,_.push(u(m)),m=0):f++;for(p=C.charCodeAt(0),h=0;h<8;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1}else{for(p=1,h=0;h<k;h++)m=m<<1|p,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=0;for(p=C.charCodeAt(0),h=0;h<16;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1}B--,B==0&&(B=Math.pow(2,k),k++),delete T[C]}else for(p=x[C],h=0;h<k;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1;B--,B==0&&(B=Math.pow(2,k),k++),x[b]=S++,C=String(O)}if(C!==""){if(Object.prototype.hasOwnProperty.call(T,C)){if(C.charCodeAt(0)<256){for(h=0;h<k;h++)m=m<<1,f==a-1?(f=0,_.push(u(m)),m=0):f++;for(p=C.charCodeAt(0),h=0;h<8;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1}else{for(p=1,h=0;h<k;h++)m=m<<1|p,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=0;for(p=C.charCodeAt(0),h=0;h<16;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1}B--,B==0&&(B=Math.pow(2,k),k++),delete T[C]}else for(p=x[C],h=0;h<k;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1;B--,B==0&&(B=Math.pow(2,k),k++)}for(p=2,h=0;h<k;h++)m=m<<1|p&1,f==a-1?(f=0,_.push(u(m)),m=0):f++,p=p>>1;for(;;)if(m=m<<1,f==a-1){_.push(u(m));break}else f++;return _.join("")},decompress:function(d){return d==null?"":d==""?null:r._decompress(d.length,32768,function(a){return d.charCodeAt(a)})},_decompress:function(d,a,u){var h=[],p=4,x=4,T=3,O="",b=[],C,B,S,k,_,m,f,g={val:u(0),position:a,index:1};for(C=0;C<3;C+=1)h[C]=C;for(S=0,_=Math.pow(2,2),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;switch(S){case 0:for(S=0,_=Math.pow(2,8),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;f=e(S);break;case 1:for(S=0,_=Math.pow(2,16),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;f=e(S);break;case 2:return""}for(h[3]=f,B=f,b.push(f);;){if(g.index>d)return"";for(S=0,_=Math.pow(2,T),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;switch(f=S){case 0:for(S=0,_=Math.pow(2,8),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;h[x++]=e(S),f=x-1,p--;break;case 1:for(S=0,_=Math.pow(2,16),m=1;m!=_;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(k>0?1:0)*m,m<<=1;h[x++]=e(S),f=x-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,T),T++),h[f])O=h[f];else if(f===x)O=B+B.charAt(0);else return null;b.push(O),h[x++]=B+O.charAt(0),p--,B=O,p==0&&(p=Math.pow(2,T),T++)}}};return r}();s!=null?s.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Kt)),Kt.exports}var vs=Ri();function Ms(s){var t;typeof s.remove<"u"?s.remove():(t=s.parentNode)==null||t.removeChild(s)}function Bi(s,t,e,l={}){const n=Si(s,t,l),i=document.createElement("div");return i.classList.add("v-toast--pending"),e.appendChild(i),Cn(n,i),n.component}class Li{constructor(t,e){Y(this,"startedAt");Y(this,"callback");Y(this,"delay");Y(this,"timer");this.startedAt=Date.now(),this.callback=t,this.delay=e,this.timer=setTimeout(t,e)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const ue=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"});function Di(s){return{all:s=s||new Map,on:function(t,e){var l=s.get(t);l?l.push(e):s.set(t,[e])},off:function(t,e){var l=s.get(t);l&&(e?l.splice(l.indexOf(e)>>>0,1):s.set(t,[]))},emit:function(t,e){var l=s.get(t);l&&l.slice().map(function(n){n(e)}),(l=s.get("*"))&&l.slice().map(function(n){n(t,e)})}}}const rs=Di(),In=(s,t)=>{const e=s.__vccOpts||s;for(const[l,n]of t)e[l]=n;return e},Ui=X({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:ue.BOTTOM_RIGHT,validator(s){return Object.values(ue).includes(s)}},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onDismiss:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data(){return{isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}},beforeMount(){this.setupContainer()},mounted(){this.showNotice(),rs.on("toast-clear",this.dismiss)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-toast.v-toast--top"),this.parentBottom=document.querySelector(".v-toast.v-toast--bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-toast v-toast--top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-toast v-toast--bottom");const s=document.body;s.appendChild(this.parentTop),s.appendChild(this.parentBottom)},shouldQueue(){return this.queue?this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0:!1},dismiss(){this.timer&&this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout(()=>{this.onDismiss.apply(null,arguments);const s=this.$refs.root;Cn(null,s),Ms(s)},150)},showNotice(){if(this.shouldQueue()){this.queueTimer=setTimeout(this.showNotice,250);return}const s=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),Ms(s),this.isActive=!0,this.duration&&(this.timer=new Li(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(s){!this.pauseOnHover||!this.timer||(s?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case ue.TOP:case ue.TOP_RIGHT:case ue.TOP_LEFT:return this.parentTop;case ue.BOTTOM:case ue.BOTTOM_RIGHT:case ue.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case ue.TOP:case ue.TOP_RIGHT:case ue.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case ue.BOTTOM:case ue.BOTTOM_RIGHT:case ue.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){rs.off("toast-clear",this.dismiss)}}),zi=["innerHTML"];function $i(s,t,e,l,n,i){return I(),K(Ci,{"enter-active-class":s.transition.enter,"leave-active-class":s.transition.leave},{default:Z(()=>[J(v("div",{ref:"root",role:"alert",class:V(["v-toast__item",[`v-toast__item--${s.type}`,`v-toast__item--${s.position}`]]),onMouseover:t[0]||(t[0]=c=>s.toggleTimer(!0)),onMouseleave:t[1]||(t[1]=c=>s.toggleTimer(!1)),onClick:t[2]||(t[2]=(...c)=>s.whenClicked&&s.whenClicked(...c))},[t[3]||(t[3]=v("div",{class:"v-toast__icon"},null,-1)),v("p",{class:"v-toast__text",innerHTML:s.message},null,8,zi)],34),[[ye,s.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}const ji=In(Ui,[["render",$i]]),Fi=(s={})=>({open(t){let e=null;typeof t=="string"&&(e=t);const n=Object.assign({},{message:e},s,t);return{dismiss:Bi(ji,n,document.body).ctx.dismiss}},clear(){rs.emit("toast-clear")},success(t,e={}){return this.open(Object.assign({},{message:t,type:"success"},e))},error(t,e={}){return this.open(Object.assign({},{message:t,type:"error"},e))},info(t,e={}){return this.open(Object.assign({},{message:t,type:"info"},e))},warning(t,e={}){return this.open(Object.assign({},{message:t,type:"warning"},e))},default(t,e={}){return this.open(Object.assign({},{message:t,type:"default"},e))}});var xn,_n,kn,bn,Sn,An;const Os=((xn=typeof globalThis<"u"?globalThis:void 0)==null?void 0:xn.crypto)||((_n=typeof global<"u"?global:void 0)==null?void 0:_n.crypto)||((kn=typeof window<"u"?window:void 0)==null?void 0:kn.crypto)||((bn=typeof self<"u"?self:void 0)==null?void 0:bn.crypto)||((An=(Sn=typeof frames<"u"?frames:void 0)==null?void 0:Sn[0])==null?void 0:An.crypto);let as;Os?as=s=>{const t=[];for(let e=0,l;e<s;e+=4)t.push(Os.getRandomValues(new Uint32Array(1))[0]);return new Me(t,s)}:as=s=>{const t=[],e=l=>{let n=l,i=987654321;const c=4294967295;return()=>{i=36969*(i&65535)+(i>>16)&c,n=18e3*(n&65535)+(n>>16)&c;let r=(i<<16)+n&c;return r/=4294967296,r+=.5,r*(Math.random()>.5?1:-1)}};for(let l=0,n;l<s;l+=4){const i=e((n||Math.random())*4294967296);n=i()*987654071,t.push(i()*4294967296|0)}return new Me(t,s)};class zt{static create(...t){return new this(...t)}mixIn(t){return Object.assign(this,t)}clone(){const t=new this.constructor;return Object.assign(t,this),t}}class Me extends zt{constructor(t=[],e=t.length*4){super();let l=t;if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){const n=l.byteLength,i=[];for(let c=0;c<n;c+=1)i[c>>>2]|=l[c]<<24-c%4*8;this.words=i,this.sigBytes=n}else this.words=t,this.sigBytes=e}toString(t=Ni){return t.stringify(this)}concat(t){const e=this.words,l=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(let c=0;c<i;c+=1){const r=l[c>>>2]>>>24-c%4*8&255;e[n+c>>>2]|=r<<24-(n+c)%4*8}else for(let c=0;c<i;c+=4)e[n+c>>>2]=l[c>>>2];return this.sigBytes+=i,this}clamp(){const{words:t,sigBytes:e}=this;t[e>>>2]&=4294967295<<32-e%4*8,t.length=Math.ceil(e/4)}clone(){const t=super.clone.call(this);return t.words=this.words.slice(0),t}}Y(Me,"random",as);const Ni={stringify(s){const{words:t,sigBytes:e}=s,l=[];for(let n=0;n<e;n+=1){const i=t[n>>>2]>>>24-n%4*8&255;l.push((i>>>4).toString(16)),l.push((i&15).toString(16))}return l.join("")},parse(s){const t=s.length,e=[];for(let l=0;l<t;l+=2)e[l>>>3]|=parseInt(s.substr(l,2),16)<<24-l%8*4;return new Me(e,t/2)}},Rs={stringify(s){const{words:t,sigBytes:e}=s,l=[];for(let n=0;n<e;n+=1){const i=t[n>>>2]>>>24-n%4*8&255;l.push(String.fromCharCode(i))}return l.join("")},parse(s){const t=s.length,e=[];for(let l=0;l<t;l+=1)e[l>>>2]|=(s.charCodeAt(l)&255)<<24-l%4*8;return new Me(e,t)}},En={stringify(s){try{return decodeURIComponent(escape(Rs.stringify(s)))}catch{throw new Error("Malformed UTF-8 data")}},parse(s){return Rs.parse(unescape(encodeURIComponent(s)))}};class Pi extends zt{constructor(){super(),this._minBufferSize=0}reset(){this._data=new Me,this._nDataBytes=0}_append(t){let e=t;typeof e=="string"&&(e=En.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(t){let e;const{_data:l,blockSize:n}=this,i=l.words,c=l.sigBytes,r=n*4;let d=c/r;t?d=Math.ceil(d):d=Math.max((d|0)-this._minBufferSize,0);const a=d*n,u=Math.min(a*4,c);if(a){for(let h=0;h<a;h+=n)this._doProcessBlock(i,h);e=i.splice(0,a),l.sigBytes-=u}return new Me(e,u)}clone(){const t=super.clone.call(this);return t._data=this._data.clone(),t}}class Mn extends Pi{constructor(t){super(),this.blockSize=512/32,this.cfg=Object.assign(new zt,t),this.reset()}static _createHelper(t){return(e,l)=>new t(l).finalize(e)}static _createHmacHelper(t){return(e,l)=>new Vi(t,l).finalize(e)}reset(){super.reset.call(this),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){return t&&this._append(t),this._doFinalize()}}class Vi extends zt{constructor(t,e){super();const l=new t;this._hasher=l;let n=e;typeof n=="string"&&(n=En.parse(n));const i=l.blockSize,c=i*4;n.sigBytes>c&&(n=l.finalize(e)),n.clamp();const r=n.clone();this._oKey=r;const d=n.clone();this._iKey=d;const a=r.words,u=d.words;for(let h=0;h<i;h+=1)a[h]^=1549556828,u[h]^=909522486;r.sigBytes=c,d.sigBytes=c,this.reset()}reset(){const t=this._hasher;t.reset(),t.update(this._iKey)}update(t){return this._hasher.update(t),this}finalize(t){const e=this._hasher,l=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(l))}}const M=[];for(let s=0;s<64;s+=1)M[s]=Math.abs(Math.sin(s+1))*4294967296|0;const oe=(s,t,e,l,n,i,c)=>{const r=s+(t&e|~t&l)+n+c;return(r<<i|r>>>32-i)+t},le=(s,t,e,l,n,i,c)=>{const r=s+(t&l|e&~l)+n+c;return(r<<i|r>>>32-i)+t},re=(s,t,e,l,n,i,c)=>{const r=s+(t^e^l)+n+c;return(r<<i|r>>>32-i)+t},ae=(s,t,e,l,n,i,c)=>{const r=s+(e^(t|~l))+n+c;return(r<<i|r>>>32-i)+t};class Hi extends Mn{_doReset(){this._hash=new Me([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(t,e){const l=t;for(let j=0;j<16;j+=1){const $=e+j,L=t[$];l[$]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}const n=this._hash.words,i=l[e+0],c=l[e+1],r=l[e+2],d=l[e+3],a=l[e+4],u=l[e+5],h=l[e+6],p=l[e+7],x=l[e+8],T=l[e+9],O=l[e+10],b=l[e+11],C=l[e+12],B=l[e+13],S=l[e+14],k=l[e+15];let _=n[0],m=n[1],f=n[2],g=n[3];_=oe(_,m,f,g,i,7,M[0]),g=oe(g,_,m,f,c,12,M[1]),f=oe(f,g,_,m,r,17,M[2]),m=oe(m,f,g,_,d,22,M[3]),_=oe(_,m,f,g,a,7,M[4]),g=oe(g,_,m,f,u,12,M[5]),f=oe(f,g,_,m,h,17,M[6]),m=oe(m,f,g,_,p,22,M[7]),_=oe(_,m,f,g,x,7,M[8]),g=oe(g,_,m,f,T,12,M[9]),f=oe(f,g,_,m,O,17,M[10]),m=oe(m,f,g,_,b,22,M[11]),_=oe(_,m,f,g,C,7,M[12]),g=oe(g,_,m,f,B,12,M[13]),f=oe(f,g,_,m,S,17,M[14]),m=oe(m,f,g,_,k,22,M[15]),_=le(_,m,f,g,c,5,M[16]),g=le(g,_,m,f,h,9,M[17]),f=le(f,g,_,m,b,14,M[18]),m=le(m,f,g,_,i,20,M[19]),_=le(_,m,f,g,u,5,M[20]),g=le(g,_,m,f,O,9,M[21]),f=le(f,g,_,m,k,14,M[22]),m=le(m,f,g,_,a,20,M[23]),_=le(_,m,f,g,T,5,M[24]),g=le(g,_,m,f,S,9,M[25]),f=le(f,g,_,m,d,14,M[26]),m=le(m,f,g,_,x,20,M[27]),_=le(_,m,f,g,B,5,M[28]),g=le(g,_,m,f,r,9,M[29]),f=le(f,g,_,m,p,14,M[30]),m=le(m,f,g,_,C,20,M[31]),_=re(_,m,f,g,u,4,M[32]),g=re(g,_,m,f,x,11,M[33]),f=re(f,g,_,m,b,16,M[34]),m=re(m,f,g,_,S,23,M[35]),_=re(_,m,f,g,c,4,M[36]),g=re(g,_,m,f,a,11,M[37]),f=re(f,g,_,m,p,16,M[38]),m=re(m,f,g,_,O,23,M[39]),_=re(_,m,f,g,B,4,M[40]),g=re(g,_,m,f,i,11,M[41]),f=re(f,g,_,m,d,16,M[42]),m=re(m,f,g,_,h,23,M[43]),_=re(_,m,f,g,T,4,M[44]),g=re(g,_,m,f,C,11,M[45]),f=re(f,g,_,m,k,16,M[46]),m=re(m,f,g,_,r,23,M[47]),_=ae(_,m,f,g,i,6,M[48]),g=ae(g,_,m,f,p,10,M[49]),f=ae(f,g,_,m,S,15,M[50]),m=ae(m,f,g,_,u,21,M[51]),_=ae(_,m,f,g,C,6,M[52]),g=ae(g,_,m,f,d,10,M[53]),f=ae(f,g,_,m,O,15,M[54]),m=ae(m,f,g,_,c,21,M[55]),_=ae(_,m,f,g,x,6,M[56]),g=ae(g,_,m,f,k,10,M[57]),f=ae(f,g,_,m,h,15,M[58]),m=ae(m,f,g,_,B,21,M[59]),_=ae(_,m,f,g,a,6,M[60]),g=ae(g,_,m,f,b,10,M[61]),f=ae(f,g,_,m,r,15,M[62]),m=ae(m,f,g,_,T,21,M[63]),n[0]=n[0]+_|0,n[1]=n[1]+m|0,n[2]=n[2]+f|0,n[3]=n[3]+g|0}_doFinalize(){const t=this._data,e=t.words,l=this._nDataBytes*8,n=t.sigBytes*8;e[n>>>5]|=128<<24-n%32;const i=Math.floor(l/4294967296),c=l;e[(n+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,e[(n+64>>>9<<4)+14]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,t.sigBytes=(e.length+1)*4,this._process();const r=this._hash,d=r.words;for(let a=0;a<4;a+=1){const u=d[a];d[a]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}return r}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Bs=Mn._createHelper(Hi),$t=(s,t)=>{let e=-1;const l=s.length,n=new Array(l);for(;++e<l;)n[e]=t(s[e]);return n},Zi=(s,t)=>{let e=-1;const l=s.length;for(;++e<l;)t(s[e])},Gi=/^([A-Za-z0-9_\-\.\u4e00-\u9fa5])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,8})$/,Wi=s=>Gi.test(s),Ji=s=>{if(s.scrollTop>0)return!0;s.scrollTop=1;const t=!!s.scrollTop;return s.scrollTop=0,t},Qi=async(s,t,e)=>{const l=[],n=[];for(const i of s){const c=Promise.resolve().then(()=>e(i));if(l.push(c),t<=s.length){const r=c.then(()=>n.splice(n.indexOf(r),1));n.push(r),n.length>=t&&await Promise.race(n)}}return Promise.all(l)},Ls=s=>{let t="",e=-1,l=13;for(;++e<l;)t+=Math.random()*10|0;const n=(Date.now()%1e10*1e3+(1e3*Math.random()|0)%4294967295).toString(),i=new URLSearchParams(s.code),c=i.get("fs"),r=(Date.now()/1e3|21600).toString(16),d=(Date.now()+Number(t)).toString(),a=atob(i.get("fm")).split("_")[0],u=Bs(`${d}|tars_mp|102`).toString();return`&wsSecret=${Bs([a,t,s.name,u,r].join("_")).toString()}&uuid=${n}&wsTime=${r}&uid=${t}&seqid=${d}&fs=${c}&ctype=tars_mp&t=102&ver=1&sv=2401310321`},jt=window.location.origin+"/api/",Ki="https://lemonlive66.deno.dev/api/",be=(s,t,e)=>(s=="douyin"&&(e?e.cookie=ge[s]:e={cookie:ge[s]}),Ft(`${t!="getCategories"&&window.location.host.endsWith(".page.dev")&&(s=="bilibili"||s=="douyu"&&t=="getRoomDetail")?Ki:jt}${s}/${t}${e?"?"+new URLSearchParams(e).toString():""}`)),cs=async s=>{const t=Object.keys(s.follows);if(!t.length)return Promise.resolve(!1);if(s.id=="douyin"){(await Qi(t,4,l=>be("douyin","getLiveStatus",{id:l}))).forEach((l,n)=>s.follows[t[n]].status=l[t[n]].status);return}await be(s.id,"getLiveStatus",{id:t.join(",")}).then(e=>Object.keys(e).forEach(l=>{s.follows[l].status=e[l].status}))},Yi=s=>Ft(`${jt}sync`,{method:"POST",body:JSON.stringify({follows:vs.compressToBase64(JSON.stringify(s)),token:lt.value})}),qi=()=>Ft(`${jt}sync`,{method:"POST",body:JSON.stringify({get:!0,token:lt.value})}).then(s=>JSON.parse(vs.decompressFromBase64(s))),Ds=(s,t)=>Ft(jt+s,{method:"POST",body:JSON.stringify(t)}),ot=Fi({duration:3e3,position:"top"}),Ft=(s,t)=>fetch(s,t).then(async e=>{let l=await e.text();return l=JSON.parse(vs.decompressFromBase64(l)),l.code!=200?(console.log(l.msg),ot.error(l.msg),Promise.reject(l.msg)):l.data},e=>{ot.error("请求异常!")});D(!0);const On={huya:"虎牙",bilibili:"哔哩",douyu:"斗鱼",douyin:"抖音"},G=[{name:"虎牙直播",icon:"https://www.huya.com/favicon.ico",id:"huya",categories:D([]),categoryActive:D(0),recommend:{page:1,hasMore:!0,list:D([])},search:{page:1,hasMore:!0,list:D([])},follows:Te(kt("huya"))},{name:"斗鱼直播",icon:"https://www.douyu.com/favicon.ico",id:"douyu",categories:D([]),categoryActive:D(0),recommend:{page:1,hasMore:!0,list:D([])},search:{page:1,hasMore:!0,list:D([])},follows:Te(kt("douyu"))},{name:"抖音直播",icon:"https://www.douyin.com/favicon.ico",id:"douyin",categories:D([]),categoryActive:D(0),recommend:{page:1,hasMore:!0,list:D([])},search:{page:1,hasMore:!0,list:D([])},follows:Te(kt("douyin"))},{name:"哔哩直播",icon:"https://www.bilibili.com/favicon.ico",id:"bilibili",categories:D([]),categoryActive:D(0),recommend:{page:1,hasMore:!0,list:D([])},search:{page:1,hasMore:!0,list:D([])},follows:Te(kt("bilibili"))}],Ge=["huya","douyu","douyin","bilibili"],ve=D(Be("volume",100)),ce=D(Be("brightness",100)),_t=s=>{ve.value=s?Math.min(100,ve.value+5):Math.max(0,ve.value-5)},Us=s=>{ce.value=s?Math.min(200,ce.value+10):Math.max(50,ce.value-10)};function kt(s){const t=localStorage.getItem("follows-"+s);return t?JSON.parse(t):{}}function Rt(s){const t=G.find(e=>e.id==s.siteId);return s.siteId=t.id,t.follows[s.roomId]={...s,stream:void 0,ws:void 0},localStorage.setItem("follows-"+s.siteId,JSON.stringify(t.follows)),Reflect.has(t.follows,s.roomId)}function us(s,t){const e=G.find(l=>l.id==s);return delete e.follows[t],localStorage.setItem("follows-"+s,JSON.stringify(e.follows)),Reflect.has(e.follows,t)}function Xi(){G.forEach(s=>{for(const t in s.follows)delete s.follows[t];localStorage.removeItem("follows-"+s.id)})}async function zs(s,t){const e=s.categories;e.value.length||(e.value=await be(s.id,"getCategories"));for(const l of e.value)for(const n of l.list)if(n.cid==t)return n;return null}const E=Te(Be("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:""}));We(()=>{Oe("dm-settings",E)});function Be(s,t){const e=localStorage.getItem(s);return e?JSON.parse(e):t}function Oe(s,t){localStorage.setItem(s,JSON.stringify(t))}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"],$s=Q(()=>E.blockWords.length==0?[]:E.blockWords.split(" ").map(s=>new RegExp(s))),ge=Te(Be("cookies",{}));We(()=>Oe("cookies",ge));const te=D(0),He=D(Be("show-chat",!0)),st=D(Be("show-aside",!0));We(()=>Oe("show-chat",He.value));We(()=>Oe("show-aside",st.value));const Yt=D(Be("user",{})),lt=D(Be("token","")),rt=$t(G,s=>({name:s.name,list:Q(()=>Object.values(s.follows).sort(t=>t.status?-1:0))}));rt.unshift({name:"全部",list:Q(()=>G.map(s=>Object.values(s.follows)).flat().sort(s=>s.status?-1:0))});const to=VueRouter.createRouter,so=VueRouter.createWebHistory,ms=VueRouter.useRoute,Nt=VueRouter.useRouter,no=VueRouter.onBeforeRouteUpdate,io={class:"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"},oo={class:"h-full scrolly md:px-3"},lo={key:0,src:"https://live.douyin.com","pos-absolute":"",width:"0",height:"0","op-0":"","b-0":"",style:{"z-index":"-10"}},ro=X({__name:"App",setup(s){const t=[{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"}],e=D(!0);Je(()=>{document.querySelector("main").style.height=`calc(${window.innerHeight}px - 3.5rem)`,setTimeout(()=>e.value=!1,5e3)});const l=ms();return pe(l,()=>{const n=l.params.siteid;if(n==null)return;const i=Ge.findIndex(c=>c==n);i!=-1&&(te.value=i)}),We(()=>{document.querySelectorAll(".v-toast").forEach(n=>{n.style.left=st?"70px":"0"})}),(n,i)=>{const c=Ot("router-link"),r=Ot("router-view");return I(),U(se,null,[J(v("div",io,[(I(),U(se,null,fe(t,d=>P(c,{to:d.link,class:V(["hover:text-amber rounded-2 py-2 px-4 m-2",{"text-amber":n.$route.path==d.link}])},{default:Z(()=>[v("div",{class:V(d.icon)},null,2)]),_:2},1032,["to","class"])),64))],512),[[ye,y(st)]]),v("main",{class:V(["md:!h-100vh mx-2 md:mx-0 pt-2 box-border",{"md:ml-17.5":y(st),"!h-100vh":!y(st)}])},[v("div",oo,[P(r,null,{default:Z(({Component:d})=>[(I(),K(_i,{exclude:["play"]},[(I(),K(ct(d)))],1024))]),_:1})])],2),y(e)?(I(),U("iframe",lo)):ke("",!0)],64)}}}),ao=s=>{const t=D(s);return[t,l=>t.value=l]},co=/scroll|auto|overlay/i;function uo(s){return s.tagName!=="HTML"&&s.tagName!=="BODY"&&s.nodeType===1}function fo(s,t=document.body){let e=s;for(;e&&e!==t&&uo(e);){const{overflowY:l}=window.getComputedStyle(e);if(co.test(l))return e;e=e.parentNode}return t}function ho(s,t=document.body){const e=D();return Je(()=>{s.value&&(e.value=fo(s.value,t))}),e}const po={key:0,class:"text-center"},vo={key:1,class:"text-center"},Pt=X({__name:"list",props:{finshedText:{default:"没有更多了"},errorText:{default:"加载失败,点击重新加载"},immediate:{type:Boolean,default:!0},offset:{default:50}},emits:["load","refresh"],setup(s,{emit:t}){const e=s,l=D(0),[n,i]=ao("normal"),c=D(),r=ho(c),d=t,a=()=>{if(l.value=r.value.scrollTop,n.value!="normal")return;r.value.scrollHeight-r.value.clientHeight-r.value.scrollTop<e.offset&&p()};Je(()=>{e.immediate&&p(),r.value.addEventListener("scroll",a,{passive:!0})}),Tn(()=>{r.value.scrollTop=l.value,r.value.addEventListener("scroll",a)});const u=()=>{r.value.removeEventListener("scroll",a)};Ai(u),Ut(u);let h;const p=()=>{i("loading"),d("load",i),clearTimeout(h),h=setTimeout(()=>{Ji(r.value)||d("load",i)},2e3)};return(x,T)=>(I(),U("div",{ref_key:"root",ref:c,class:"h-full select-none"},[Ii(x.$slots,"default"),y(n)=="loading"?(I(),U("div",po,"加载中...")):y(n)=="finshed"?(I(),U("div",vo,F(e.finshedText),1)):y(n)=="loaderror"?(I(),U("div",{key:2,class:"text-center cursor-pointer",onClick:p},F(e.errorText),1)):ke("",!0)],512))}}),mo=["data-id","data-site","href"],go={class:"pos-relative text-fuchsia-5 rounded-t-2 w-full aspect-video"},wo={class:"mx-auto h-full rounded-2 select-none block"},yo={class:"pos-absolute bottom-0 right-0 px-2 py-1 rounded-tl-2 bg-dark-6"},xo={class:"line-height-none pos-absolute top-0 right-0 px-1 py-1 rounded-tr-1 rounded-bl-2 bg-dark-6"},_o={key:0,class:"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={class:"px-2 text-truncate leading-normal"},bo={class:"px-2 text-truncate leading-normal pb-2"},gs=X({__name:"rooms",props:{list:{}},setup(s){let t;const e=Nt(),l=D(),n=r=>{clearTimeout(t),t=setTimeout(()=>{const d=c("id",r.target,l.value);if(!d)return;const a=c("site",r.target,l.value);e.push(`/${a}/play/${d}`)},300)},i=r=>{var h;clearTimeout(t);const d=c("id",r.target,l.value);if(!d)return;const u=`/${c("site",r.target,l.value)}/play/${d}`;(h=window.open(u,"_blank"))==null||h.location},c=(r,d,a)=>{if(d==a)return null;const u=d.dataset[r];return u||c(r,d.parentElement,a)};return(r,d)=>{const a=Dt("lazy");return r.list.value.length>0?(I(),U("div",{key:0,ref_key:"root",ref:l,class:"grid gap-4 p-2 justify-evenly cursor-pointer select-none grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5",onClick:ne(n,["prevent"]),onDblclick:ne(i,["prevent"])},[(I(!0),U(se,null,fe(r.list.value,u=>(I(),U("a",{"data-id":u.roomId,"data-site":u.siteId,href:`/${u.siteId}/play/${u.roomId}`,key:`${u.siteId}-${u.roomId}`,class:"shadow rounded-2 b-2px b-solid b-transparent hover:b-amber overflow-hidden"},[v("div",go,[J(v("img",wo,null,512),[[a,u.cover]]),v("div",yo,F(u.category),1),v("div",xo,[d[0]||(d[0]=v("div",{class:"i-mdi-fire"},null,-1)),v("span",null,F(u.online),1)]),u.status?ke("",!0):(I(),U("div",_o," 未开播 "))]),v("div",ko,F(u.title),1),v("div",bo,F(u.nickname),1)],8,mo))),128))],544)):ke("",!0)}}}),So={class:"h-full"},Ao={class:"py-1 px-2 text-lg text-center relative"},To={class:"hover:text-amber"},Co={key:0,class:"h-[calc(100%-3.25rem)] scrolly"},Io=X({__name:"categoryRooms",setup(s){const t=ms(),e=D(""),l=D(),n={list:D([]),page:1,hasMore:!0},i=a=>{const{site:u,id:h}=t.meta;be(u.id,"getCategoryRooms",{id:h,pid:l.value,page:n.page}).then(p=>{if(n.list.value=n.list.value.concat(p.list),n.hasMore=p.hasMore,ge[u.id]||(ge[u.id]=p.cookie),!p.hasMore)return a("finshed");n.page++,a("normal")},p=>{e.value=p,a("loaderror")})},c=D(!1),r=()=>{document.querySelector("#goTop").click(),c.value=!0;const{site:a,id:u}=t.meta;be(a.id,"getCategoryRooms",{id:u,pid:l.value,page:n.page}).then(h=>{n.list.value=h.list,n.hasMore=h.hasMore,n.page++,ge[a.id]||(ge[a.id]=h.cookie)},h=>{e.value=h}).finally(()=>c.value=!1)};let d=t.fullPath;return zs(t.meta.site,t.meta.id).then(a=>{e.value=(a==null?void 0:a.name)||null,l.value=a==null?void 0:a.pid}),Tn(function(){d!=t.fullPath&&(d=t.fullPath,zs(t.meta.site,t.meta.id).then(a=>{e.value=(a==null?void 0:a.name)||null,l.value=a==null?void 0:a.pid}),n.list.value=[],n.page=1,n.hasMore=!0)}),(a,u)=>{var x;const h=gs,p=Pt;return I(),U("div",So,[v("div",Ao,[v("div",{onClick:u[0]||(u[0]=(...T)=>a.$router.back&&a.$router.back(...T)),class:"i-ri-arrow-left-line hover:text-amber absolute left-2"}),v("div",{onClick:r,class:V(["i-ri-refresh-line hover:text-amber absolute right-4 md:right-unset md:left-12",{"animate-spin":y(c)}])},null,2),v("span",To,F(`${(x=y(t).meta.site)==null?void 0:x.name} ${y(e)==null?"分区不存在":y(e)==""?"加载中":y(e)}`),1)]),y(e)?(I(),U("div",Co,[(I(),K(p,{key:y(d),onLoad:i},{default:Z(()=>[P(h,{list:n.list},null,8,["list"])]),_:1}))])):ke("",!0)])}}}),Rn=Symbol("tabs"),Eo=(s,t)=>{const e=Te([]);return Ei(s,Object.assign({link:i=>{i.proxy&&e.push(i.proxy)},unlink:i=>{const c=e.indexOf(i.proxy);e.splice(c,1)},children:e},t)),e},Bn=s=>{const t=Mi(s);if(t==null)return{parent:t,index:D(-1)};const e=Oi(),{link:l,unlink:n,children:i}=t;l(e),Ti(()=>n(e));const c=Q(()=>i.indexOf(e.proxy));return{parent:t,children:i,index:c}},Mo={class:"h-full box-border"},Oo={class:"w-full box-border text-sm sm:text-base"},Ro=["onClick"],Bo={class:"h-[calc(100%-2rem)] scrolly box-border pt-1"},pt=X({__name:"tabs",props:ut({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:ut(["tabClick"],["update:active"]),setup(s,{emit:t}){const e=ht(s,"active"),l=s,n=t,i=a=>{e.value=a,n("tabClick",a)},c=Eo(Rn,{active:e,props:l}),r=Q(()=>$t(c,a=>a.title)),d=ps();return(a,u)=>{const h=Ot("router-link");return I(),U("div",Mo,[v("div",Oo,[v("div",{class:V(["flex p1 sm:gap-1 text-center h-8 box-border lg:justify-center scrollx",[y(c).length>5||a.grow?"":a.justify]])},[l.link?(I(!0),U(se,{key:0},fe(y(r),(p,x)=>(I(),K(h,{class:V(["px-1 sm:px-2 box-border shrink-0 rounded py-1 line-height-none text-centercursor-pointer hover:text-amber cursor-pointer",{"text-amber":e.value==x,grow:a.grow}]),to:y(c)[x].href},{default:Z(()=>[nt(F(p),1)]),_:2},1032,["class","to"]))),256)):(I(!0),U(se,{key:1},fe(y(r),(p,x)=>(I(),U("a",{class:V(["px-1 sm:px-2 box-border shrink-0 rounded py-1 line-height-none text-centercursor-pointer hover:text-amber cursor-pointer",{"text-amber":e.value==x,grow:a.grow}]),onClick:T=>i(x)},F(p),11,Ro))),256))],2)]),v("div",Bo,[(I(),K(ct(d.default)))])])}}}),Lo=Symbol("swipe"),Do={class:"w-full h-full shrink-0 pos-relative"},Uo=X({__name:"swipeItem",emits:["inited"],setup(s,{emit:t}){const e=D(!1),{parent:l,children:n,index:i}=Bn(Lo),c=ps(),r=t,d=Q(()=>(l==null?void 0:l.active.value)==i.value?(e.value||(e.value=!0,r("inited",i.value)),!0):i.value==(l.active.value==0?n.length-1:l.active.value-1)||i.value==(l.active.value==n.length-1?0:l.active.value+1)),a=Q(()=>d.value||e.value||!(l!=null&&l.props.lazy)?c.default:null);return(u,h)=>J((I(),U("div",Do,[(I(),K(ct(y(a))))],512)),[[ye,y(d)]])}}),zo={class:"scrolly h-full w-full shrink-0"},vt=X({__name:"tab",props:{title:{},href:{}},emits:["inited"],setup(s,{expose:t,emit:e}){const l=s,n=D(!1),i=ps(),{parent:c,index:r,children:d}=Bn(Rn),a=e,u=Q(()=>(c==null?void 0:c.active.value)==r.value?(n.value||(n.value=!0,a("inited",r.value)),!0):(c==null?void 0:c.props.swipeable)&&(r.value==(c.active.value==0?d.length-1:c.active.value-1)||r.value==(c.active.value==d.length-1?0:c.active.value+1))),h=Q(()=>u.value||c!=null&&c.props.swipeable||n.value||!(c!=null&&c.props.lazy)?i.default:null);return t({title:l.title}),(p,x)=>{var O,b;const T=Uo;return J((I(),U("div",zo,[(O=y(c))!=null&&O.props.swipeable?(I(),K(T,{key:0},{default:Z(()=>[(I(),K(ct(y(h))))]),_:1})):(I(),K(ct(y(h)),{key:1}))],512)),[[ye,y(u)||((b=y(c))==null?void 0:b.props.swipeable)]])}}}),$o={key:0,class:"text-center"},jo={class:"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 2xl:grid-cols-18"},Fo={class:"w-full aspect-ratio-square rounded"},No={class:"w-full text-truncate text-xs md:text-sm text-center"},Po=X({__name:"category",setup(s){const t=Q(()=>G[te.value].id),e=D(),l=n=>{G[n].categories.value.length||(e.value="加载中...",be(t.value,"getCategories").then(i=>{e.value=null,G[n].categories.value=i},i=>e.value=i))};return(n,i)=>{const c=Ot("router-link"),r=vt,d=pt,a=Dt("lazy");return I(),K(d,{active:y(te),"onUpdate:active":i[0]||(i[0]=u=>ze(te)?te.value=u:null),link:!0,class:"pt-1"},{default:Z(()=>[(I(!0),U(se,null,fe(y(G),u=>(I(),K(r,{title:u.name,href:`/${u.id}/category`,onInited:l,key:u.id},{default:Z(()=>[y(e)?(I(),U("div",$o,F(y(e)),1)):(I(),K(d,{key:1,active:u.categoryActive.value,"onUpdate:active":h=>u.categoryActive.value=h},{default:Z(()=>[(I(!0),U(se,null,fe(u.categories.value,h=>(I(),K(r,{title:h.name,key:h.id},{default:Z(()=>[v("div",jo,[(I(!0),U(se,null,fe(h.list,p=>(I(),K(c,{to:`/${u.id}/category/${p.cid}`,class:"cursor-pointer"},{default:Z(()=>[J(v("img",Fo,null,512),[[a,p.pic]]),v("div",No,F(p.name),1)]),_:2},1032,["to"]))),256))])]),_:2},1032,["title"]))),128))]),_:2},1032,["active","onUpdate:active"]))]),_:2},1032,["title","href"]))),128))]),_:1},8,["active"])}}}),Vo={class:"text-center py-1"},Ho={class:"w-60% max-w-md pos-relative inline-block"},Zo={class:"h-[calc(100%-3rem)]"},Go={key:1},Wo={key:1},Jo=X({__name:"search",setup(s){const t=D(""),e=Q(()=>G[te.value]),l=D(),n=()=>{if(!t.value)return Promise.resolve();const u=e.value.search;u.list.value=[],u.page=1,u.hasMore=!0,l.value="搜索中...";const h=e.value.id;return be(h,"searchRooms",{page:u.page,kw:t.value}).then(p=>{u.list.value=p.list,u.hasMore=p.hasMore,u.page+=1,l.value="finished",ge[h]||(ge[h]=p.cookie)},p=>l.value=p)},i=u=>{const h=e.value.search,p=e.value.id;u("loading"),be(p,"searchRooms",{page:h.page,kw:t.value}).then(x=>{if(h.list.value=h.list.value.concat(x.list),h.hasMore=x.hasMore,ge[p]||(ge[p]=x.cookie),!h.hasMore)return u("finshed");h.page+=1,u("normal")},x=>{u("loaderror")})},c=u=>{r.push(`/${Ge[u]}/search`),!d()&&G[u].search.page==1&&n()},r=Nt(),d=()=>{if(t.value)return/^[\d]*$/.test(t.value)?(r.push(`/play/${e.value.id}/${t.value}`),!0):!1},a=()=>{d()||(G.forEach(u=>u.search.page=1),n())};return(u,h)=>{const p=gs,x=Pt,T=vt,O=pt;return I(),U(se,null,[v("div",Vo,[v("div",Ho,[J(v("input",{class:"md:text-4 box-border w-full py-2.5 pl-3 pr-9 text-white bg-transparent b-1 b-amber rounded-6 outline-0",type:"text","onUpdate:modelValue":h[0]||(h[0]=b=>ze(t)?t.value=b:null),onKeydown:ki(a,["enter"]),placeholder:"请输入房间号或关键字"},null,544),[[it,y(t),void 0,{trim:!0}]]),v("div",{class:"i-ri-search-line top-50% absolute right-3",onClick:a,style:{transform:"translateY(-50%)"}})])]),v("div",Zo,[P(O,{active:y(te),"onUpdate:active":h[1]||(h[1]=b=>ze(te)?te.value=b:null),onTabClick:c},{default:Z(()=>[(I(!0),U(se,null,fe(y(G),b=>(I(),K(T,{title:b.name,key:b.id},{default:Z(()=>[y(l)=="finished"?(I(),U(se,{key:0},[b.search.list.value.length?(I(),K(x,{key:0,onLoad:i},{default:Z(()=>[P(p,{list:b.search.list},null,8,["list"])]),_:2},1024)):(I(),U("div",Go," 什么也没有找到 "))],64)):(I(),U("div",Wo,F(y(l)),1))]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])],64)}}}),Qo=["data-id","data-site"],Ko={class:"pos-relative text-fuchsia-5 rounded-t-2 w-full aspect-video"},Yo={class:"blockmx-auto text-center h-full rounded-2 select-none"},qo={class:"pos-absolute bottom-0 right-0 px-2 py-1 rounded-tl-2 bg-dark-6"},Xo={class:"line-height-none pos-absolute top-0 right-0 px-1 py-1 rounded-tr-1 rounded-bl-2 bg-dark-6"},el={key:0,class:"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"},tl=["onClick"],sl={class:"px-2 text-truncate leading-normal"},nl={class:"px-2 pb-2 flex items-center justify-between"},il={class:"flex items-center grow"},ol=["src"],ll={class:"text-truncate mx-1 w-2 grow"},rl=X({__name:"rooms2",props:{list:{}},setup(s){let t;const e=Nt(),l=D(),n=r=>{clearTimeout(t),t=setTimeout(()=>{const d=c("id",r.target,l.value);if(!d)return;const a=c("site",r.target,l.value);e.push(`/${a}/play/${d}`)},300)},i=r=>{var h;clearTimeout(t);const d=c("id",r.target,l.value);if(!d)return;const u=`/${c("site",r.target,l.value)}/play/${d}`;(h=window.open(u,"_blank"))==null||h.location},c=(r,d,a)=>{if(d==a)return null;const u=d.dataset[r];return u||c(r,d.parentElement,a)};return(r,d)=>{const a=Dt("lazy");return r.list.value.length>0?(I(),U("div",{key:0,ref_key:"root",ref:l,class:"grid gap-4 p-2 justify-evenly cursor-pointer select-none grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5",onClick:n,onDblclick:ne(i,["prevent"])},[(I(!0),U(se,null,fe(r.list.value,u=>(I(),U("div",{"data-id":u.roomId,"data-site":u.siteId,key:`${u.siteId}-${u.roomId}`,class:"shadow rounded-2 b-2px b-solid b-transparent hover:b-amber overflow-hidden"},[v("div",Ko,[J(v("img",Yo,null,512),[[a,u.cover]]),v("div",qo,F(u.category),1),v("div",Xo,[d[0]||(d[0]=v("div",{class:"i-mdi-fire"},null,-1)),v("span",null,F(u.online),1)]),u.status?ke("",!0):(I(),U("div",el," 未开播 ")),v("div",{class:"pos-absolute z-1 left-2 top-2 text-green-5 w-6 h-6 hover:text-amber i-mdi-heart-off-outline",onClick:ne(h=>y(us)(u.siteId,u.roomId),["stop"])},null,8,tl)]),v("div",sl,F(u.title),1),v("div",nl,[v("div",il,[v("img",{src:u.avatar,alt:"",class:"w-6 h-6 rounded-4"},null,8,ol),v("div",ll,F(u.nickname),1)]),v("div",null,F(y(On)[u.siteId]),1)])],8,Qo))),128))],544)):ke("",!0)}}}),al={class:"flex justify-center items-center"},cl={class:"h-[calc(100%-3rem)]"},ul=X({__name:"follow",setup(s){const t=D(0),e=D(!1),l=()=>{var r;if(e.value)return;const c=t.value;e.value=!0,c==0?Promise.all($t(G,cs)).finally(n):(r=cs(G[c-1]))==null||r.finally(n)},n=()=>setTimeout(()=>e.value=!1,300);l();const i=c=>c("finshed");return(c,r)=>{const d=rl,a=Pt,u=vt,h=pt;return I(),U(se,null,[v("div",al,[r[1]||(r[1]=v("div",null,"我的关注",-1)),v("div",{onClick:l,class:V(["rounded-6 mx-4 hover:text-amber i-ri-refresh-line",{"animate-spin":y(e)}])},null,2)]),v("div",cl,[P(h,{active:y(t),"onUpdate:active":r[0]||(r[0]=p=>ze(t)?t.value=p:null)},{default:Z(()=>[(I(!0),U(se,null,fe(y(rt),p=>(I(),K(u,{title:p.name},{default:Z(()=>[P(a,{onLoad:i,"finshed-text":""},{default:Z(()=>[P(d,{list:p.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["active"])])],64)}}}),dl=X({__name:"index",setup(s){const t=Q(()=>G[te.value].id),e=l=>{const n=G[te.value].recommend;be(t.value,"getRecommendRooms",{page:n.page}).then(i=>{if(n.list.value=n.list.value.concat(i.list),n.hasMore=i.hasMore,ge[t.value]||(ge[t.value]=i.cookie),!n.hasMore)return l("finshed");n.page++,l("normal")},()=>l("loaderror"))};return(l,n)=>{const i=gs,c=Pt,r=vt,d=pt;return I(),K(d,{active:y(te),"onUpdate:active":n[0]||(n[0]=a=>ze(te)?te.value=a:null),link:!0,class:"pt-1"},{default:Z(()=>[(I(!0),U(se,null,fe(y(G),a=>(I(),K(r,{href:`/${a.id}`,key:a.id,title:a.name,class:"pos-relative"},{default:Z(()=>[P(c,{onLoad:e,class:"h-full"},{default:Z(()=>[P(i,{list:a.recommend.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["href","title"]))),128))]),_:1},8,["active"])}}}),fl=X({__name:"switch",props:{value:{type:Boolean,required:!0},valueModifiers:{}},emits:["update:value"],setup(s){const t=ht(s,"value");return(e,l)=>(I(),U("div",{onClick:l[0]||(l[0]=()=>t.value=!t.value),class:V(["pos-relative w-12 inline-block cursor-pointer rounded-6 h-6",[t.value?"bg-amber":"bg-gray-4"]]),style:{transition:"background-color .3s"}},[v("div",{class:"w-6 h-full rounded-6 bg-white",style:Ze([{transition:"transform .3s"},t.value?"transform:translateX(1.5rem)":""])},null,4)],2))}}),hl={class:"rounded-4 flex bg-gray-7 w-min p-2 py-1 gap-2"},pl=X({__name:"stepper",props:ut({max:{},min:{},step:{}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(s){const t=s,e=ht(s,"value"),l=()=>e.value=Math.min(e.value+t.step,t.max),n=()=>e.value=Math.max(e.value-t.step,t.min);return(i,c)=>(I(),U("div",hl,[v("div",{class:"i-ri-subtract-fill",onClick:n}),v("div",null,F(e.value),1),v("div",{class:"i-ri-add-fill",onClick:l})]))}});function vl(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}const Mt=vl(),ml=s=>Mt?s.touches==null?s:s.touches[0]||s.changedTouches[0]:s,gl=X({__name:"slider",props:ut({max:{default:100},min:{default:0},width:{default:30},height:{default:100}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(s){const t=s,e=ht(s,"value"),l=D(),n=t.width<t.height;let i;const c=h=>{h.stopPropagation(),a(h),document.addEventListener("mousemove",a,!0),document.addEventListener("mouseup",u,!0)},r=Q(()=>(e.value-t.min)/(t.max-t.min)*100),d=Q(()=>{const h=100-r.value,p=`top:${h}%`,x=`left:${h}%`;return n?{loaded:p,indicator:p}:{loaded:`${x};transform:translateX(-100%)`,indicator:x}}),a=h=>{h.stopPropagation(),h=ml(h);const x=100-(Math.min(n?i.height:i.width,Math.max(0,n?h.clientY-i.y:h.clientX-i.x))/(n?i.height:i.width)*100|0);e.value=((t.max-t.min)*x|0)/100+t.min|0},u=h=>{h.stopPropagation(),document.removeEventListener("mousemove",a,!0),document.removeEventListener("mouseup",u,!0)};return Je(()=>{i=l.value.getBoundingClientRect(),l.value.addEventListener("mousedown",c,!0)}),Ut(()=>{l.value.removeEventListener("mousedown",c,!0)}),(h,p)=>(I(),U("div",{class:V(["cursor-pointer flex justify-center",n?" py-4 ":"px-4"]),style:Ze({width:`${t.width}px`,height:`${t.height}px`})},[v("div",{ref_key:"root",ref:l,onClick:a,class:"w-full h-full pos-relative flex justify-center items-center"},[v("div",{class:V(["bg-gray pos-relative overflow-hidden",n?"h-full w-2px":"w-full h-2px"])},[v("div",{class:"w-full bg-amber h-full pos-absolute",style:Ze(y(d).loaded)},null,4)],2),v("div",{class:V(["pos-absolute w-12px h-12px bg-amber rounded-2",n?"-mt-6px":"-ml-6px"]),style:Ze(y(d).indicator)},null,6)],512)],6))}}),wl={key:0,class:"z-1 fixed top-0 bottom-0 left-0 right-0 bg-transparent","data-index":"-1"},yl={class:"p-1 hover:text-amber","data-index":"-1"},xl={class:"left-50% text-center z-1 pos-absolute top-0 w-max",style:{transform:"translate3d(-50%,-100%,0)"}},_l=["data-index"],kl=X({__name:"select",props:ut(["list"],{active:{required:!0},activeModifiers:{}}),emits:["update:active"],setup(s){const t=ht(s,"active"),e=D(!1),l=n=>{const i=n.target.dataset.index;i&&(i!="-1"&&(t.value=parseInt(i)),e.value=!e.value)};return(n,i)=>(I(),U("div",{onClick:l,class:"inline-block pos-relative cursor-pointer text-center"},[y(e)?(I(),U("div",wl)):ke("",!0),v("div",yl,F(s.list[t.value]),1),J(v("div",xl,[(I(!0),U(se,null,fe(s.list,(c,r)=>(I(),U("div",{"data-index":r,class:V([{"text-amber":r==t.value},"p-1 hover:text-amber"])},F(c),11,_l))),256))],512),[[ye,y(e)]])]))}}),js="data:image/png;base64,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",Fs="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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",bt=window.Flv,St=window.Hls;function Qe(s){let t=s.length;for(;--t>=0;)s[t]=0}const bl=3,Sl=258,Ln=29,Al=256,Tl=Al+1+Ln,Dn=30,Cl=512,Il=new Array((Tl+2)*2);Qe(Il);const El=new Array(Dn*2);Qe(El);const Ml=new Array(Cl);Qe(Ml);const Ol=new Array(Sl-bl+1);Qe(Ol);const Rl=new Array(Ln);Qe(Rl);const Bl=new Array(Dn);Qe(Bl);const Ll=(s,t,e,l)=>{let n=s&65535|0,i=s>>>16&65535|0,c=0;for(;e!==0;){c=e>2e3?2e3:e,e-=c;do n=n+t[l++]|0,i=i+n|0;while(--c);n%=65521,i%=65521}return n|i<<16|0};var ds=Ll;const Dl=()=>{let s,t=[];for(var e=0;e<256;e++){s=e;for(var l=0;l<8;l++)s=s&1?3988292384^s>>>1:s>>>1;t[e]=s}return t},Ul=new Uint32Array(Dl()),zl=(s,t,e,l)=>{const n=Ul,i=l+e;s^=-1;for(let c=l;c<i;c++)s=s>>>8^n[(s^t[c])&255];return s^-1};var _e=zl,fs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Un={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const $l=(s,t)=>Object.prototype.hasOwnProperty.call(s,t);var jl=function(s){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const l in e)$l(e,l)&&(s[l]=e[l])}}return s},Fl=s=>{let t=0;for(let l=0,n=s.length;l<n;l++)t+=s[l].length;const e=new Uint8Array(t);for(let l=0,n=0,i=s.length;l<i;l++){let c=s[l];e.set(c,n),n+=c.length}return e},zn={assign:jl,flattenChunks:Fl};let $n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{$n=!1}const dt=new Uint8Array(256);for(let s=0;s<256;s++)dt[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;dt[254]=dt[254]=1;var Nl=s=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(s);let t,e,l,n,i,c=s.length,r=0;for(n=0;n<c;n++)e=s.charCodeAt(n),(e&64512)===55296&&n+1<c&&(l=s.charCodeAt(n+1),(l&64512)===56320&&(e=65536+(e-55296<<10)+(l-56320),n++)),r+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(r),i=0,n=0;i<r;n++)e=s.charCodeAt(n),(e&64512)===55296&&n+1<c&&(l=s.charCodeAt(n+1),(l&64512)===56320&&(e=65536+(e-55296<<10)+(l-56320),n++)),e<128?t[i++]=e:e<2048?(t[i++]=192|e>>>6,t[i++]=128|e&63):e<65536?(t[i++]=224|e>>>12,t[i++]=128|e>>>6&63,t[i++]=128|e&63):(t[i++]=240|e>>>18,t[i++]=128|e>>>12&63,t[i++]=128|e>>>6&63,t[i++]=128|e&63);return t};const Pl=(s,t)=>{if(t<65534&&s.subarray&&$n)return String.fromCharCode.apply(null,s.length===t?s:s.subarray(0,t));let e="";for(let l=0;l<t;l++)e+=String.fromCharCode(s[l]);return e};var Vl=(s,t)=>{const e=t||s.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(s.subarray(0,t));let l,n;const i=new Array(e*2);for(n=0,l=0;l<e;){let c=s[l++];if(c<128){i[n++]=c;continue}let r=dt[c];if(r>4){i[n++]=65533,l+=r-1;continue}for(c&=r===2?31:r===3?15:7;r>1&&l<e;)c=c<<6|s[l++]&63,r--;if(r>1){i[n++]=65533;continue}c<65536?i[n++]=c:(c-=65536,i[n++]=55296|c>>10&1023,i[n++]=56320|c&1023)}return Pl(i,n)},Hl=(s,t)=>{t=t||s.length,t>s.length&&(t=s.length);let e=t-1;for(;e>=0&&(s[e]&192)===128;)e--;return e<0||e===0?t:e+dt[s[e]]>t?e:t},hs={string2buf:Nl,buf2string:Vl,utf8border:Hl};function Zl(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Gl=Zl;const At=16209,Wl=16191;var Jl=function(t,e){let l,n,i,c,r,d,a,u,h,p,x,T,O,b,C,B,S,k,_,m,f,g,j,$;const L=t.state;l=t.next_in,j=t.input,n=l+(t.avail_in-5),i=t.next_out,$=t.output,c=i-(e-t.avail_out),r=i+(t.avail_out-257),d=L.dmax,a=L.wsize,u=L.whave,h=L.wnext,p=L.window,x=L.hold,T=L.bits,O=L.lencode,b=L.distcode,C=(1<<L.lenbits)-1,B=(1<<L.distbits)-1;e:do{T<15&&(x+=j[l++]<<T,T+=8,x+=j[l++]<<T,T+=8),S=O[x&C];t:for(;;){if(k=S>>>24,x>>>=k,T-=k,k=S>>>16&255,k===0)$[i++]=S&65535;else if(k&16){_=S&65535,k&=15,k&&(T<k&&(x+=j[l++]<<T,T+=8),_+=x&(1<<k)-1,x>>>=k,T-=k),T<15&&(x+=j[l++]<<T,T+=8,x+=j[l++]<<T,T+=8),S=b[x&B];s:for(;;){if(k=S>>>24,x>>>=k,T-=k,k=S>>>16&255,k&16){if(m=S&65535,k&=15,T<k&&(x+=j[l++]<<T,T+=8,T<k&&(x+=j[l++]<<T,T+=8)),m+=x&(1<<k)-1,m>d){t.msg="invalid distance too far back",L.mode=At;break e}if(x>>>=k,T-=k,k=i-c,m>k){if(k=m-k,k>u&&L.sane){t.msg="invalid distance too far back",L.mode=At;break e}if(f=0,g=p,h===0){if(f+=a-k,k<_){_-=k;do $[i++]=p[f++];while(--k);f=i-m,g=$}}else if(h<k){if(f+=a+h-k,k-=h,k<_){_-=k;do $[i++]=p[f++];while(--k);if(f=0,h<_){k=h,_-=k;do $[i++]=p[f++];while(--k);f=i-m,g=$}}}else if(f+=h-k,k<_){_-=k;do $[i++]=p[f++];while(--k);f=i-m,g=$}for(;_>2;)$[i++]=g[f++],$[i++]=g[f++],$[i++]=g[f++],_-=3;_&&($[i++]=g[f++],_>1&&($[i++]=g[f++]))}else{f=i-m;do $[i++]=$[f++],$[i++]=$[f++],$[i++]=$[f++],_-=3;while(_>2);_&&($[i++]=$[f++],_>1&&($[i++]=$[f++]))}}else if(k&64){t.msg="invalid distance code",L.mode=At;break e}else{S=b[(S&65535)+(x&(1<<k)-1)];continue s}break}}else if(k&64)if(k&32){L.mode=Wl;break e}else{t.msg="invalid literal/length code",L.mode=At;break e}else{S=O[(S&65535)+(x&(1<<k)-1)];continue t}break}}while(l<n&&i<r);_=T>>3,l-=_,T-=_<<3,x&=(1<<T)-1,t.next_in=l,t.next_out=i,t.avail_in=l<n?5+(n-l):5-(l-n),t.avail_out=i<r?257+(r-i):257-(i-r),L.hold=x,L.bits=T};const Ve=15,Ns=852,Ps=592,Vs=0,qt=1,Hs=2,Ql=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Kl=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Yl=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ql=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Xl=(s,t,e,l,n,i,c,r)=>{const d=r.bits;let a=0,u=0,h=0,p=0,x=0,T=0,O=0,b=0,C=0,B=0,S,k,_,m,f,g=null,j;const $=new Uint16Array(Ve+1),L=new Uint16Array(Ve+1);let he=null,Ce,Fe,ie;for(a=0;a<=Ve;a++)$[a]=0;for(u=0;u<l;u++)$[t[e+u]]++;for(x=d,p=Ve;p>=1&&$[p]===0;p--);if(x>p&&(x=p),p===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,r.bits=1,0;for(h=1;h<p&&$[h]===0;h++);for(x<h&&(x=h),b=1,a=1;a<=Ve;a++)if(b<<=1,b-=$[a],b<0)return-1;if(b>0&&(s===Vs||p!==1))return-1;for(L[1]=0,a=1;a<Ve;a++)L[a+1]=L[a]+$[a];for(u=0;u<l;u++)t[e+u]!==0&&(c[L[t[e+u]]++]=u);if(s===Vs?(g=he=c,j=20):s===qt?(g=Ql,he=Kl,j=257):(g=Yl,he=ql,j=0),B=0,u=0,a=h,f=i,T=x,O=0,_=-1,C=1<<x,m=C-1,s===qt&&C>Ns||s===Hs&&C>Ps)return 1;for(;;){Ce=a-O,c[u]+1<j?(Fe=0,ie=c[u]):c[u]>=j?(Fe=he[c[u]-j],ie=g[c[u]-j]):(Fe=96,ie=0),S=1<<a-O,k=1<<T,h=k;do k-=S,n[f+(B>>O)+k]=Ce<<24|Fe<<16|ie|0;while(k!==0);for(S=1<<a-1;B&S;)S>>=1;if(S!==0?(B&=S-1,B+=S):B=0,u++,--$[a]===0){if(a===p)break;a=t[e+c[u]]}if(a>x&&(B&m)!==_){for(O===0&&(O=x),f+=h,T=a-O,b=1<<T;T+O<p&&(b-=$[T+O],!(b<=0));)T++,b<<=1;if(C+=1<<T,s===qt&&C>Ns||s===Hs&&C>Ps)return 1;_=B&m,n[_]=x<<24|T<<16|f-i|0}}return B!==0&&(n[f+B]=a-O<<24|64<<16|0),r.bits=x,0};var at=Xl;const er=0,jn=1,Fn=2,{Z_FINISH:Zs,Z_BLOCK:tr,Z_TREES:Tt,Z_OK:$e,Z_STREAM_END:sr,Z_NEED_DICT:nr,Z_STREAM_ERROR:xe,Z_DATA_ERROR:Nn,Z_MEM_ERROR:Pn,Z_BUF_ERROR:ir,Z_DEFLATED:Gs}=Un,Vt=16180,Ws=16181,Js=16182,Qs=16183,Ks=16184,Ys=16185,qs=16186,Xs=16187,en=16188,tn=16189,Bt=16190,Se=16191,Xt=16192,sn=16193,es=16194,nn=16195,on=16196,ln=16197,rn=16198,Ct=16199,It=16200,an=16201,cn=16202,un=16203,dn=16204,fn=16205,ts=16206,hn=16207,pn=16208,H=16209,Vn=16210,Hn=16211,or=852,lr=592,rr=15,ar=rr,vn=s=>(s>>>24&255)+(s>>>8&65280)+((s&65280)<<8)+((s&255)<<24);function cr(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const je=s=>{if(!s)return 1;const t=s.state;return!t||t.strm!==s||t.mode<Vt||t.mode>Hn?1:0},Zn=s=>{if(je(s))return xe;const t=s.state;return s.total_in=s.total_out=t.total=0,s.msg="",t.wrap&&(s.adler=t.wrap&1),t.mode=Vt,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(or),t.distcode=t.distdyn=new Int32Array(lr),t.sane=1,t.back=-1,$e},Gn=s=>{if(je(s))return xe;const t=s.state;return t.wsize=0,t.whave=0,t.wnext=0,Zn(s)},Wn=(s,t)=>{let e;if(je(s))return xe;const l=s.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?xe:(l.window!==null&&l.wbits!==t&&(l.window=null),l.wrap=e,l.wbits=t,Gn(s))},Jn=(s,t)=>{if(!s)return xe;const e=new cr;s.state=e,e.strm=s,e.window=null,e.mode=Vt;const l=Wn(s,t);return l!==$e&&(s.state=null),l},ur=s=>Jn(s,ar);let mn=!0,ss,ns;const dr=s=>{if(mn){ss=new Int32Array(512),ns=new Int32Array(32);let t=0;for(;t<144;)s.lens[t++]=8;for(;t<256;)s.lens[t++]=9;for(;t<280;)s.lens[t++]=7;for(;t<288;)s.lens[t++]=8;for(at(jn,s.lens,0,288,ss,0,s.work,{bits:9}),t=0;t<32;)s.lens[t++]=5;at(Fn,s.lens,0,32,ns,0,s.work,{bits:5}),mn=!1}s.lencode=ss,s.lenbits=9,s.distcode=ns,s.distbits=5},Qn=(s,t,e,l)=>{let n;const i=s.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),l>=i.wsize?(i.window.set(t.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>l&&(n=l),i.window.set(t.subarray(e-l,e-l+n),i.wnext),l-=n,l?(i.window.set(t.subarray(e-l,e),0),i.wnext=l,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0},fr=(s,t)=>{let e,l,n,i,c,r,d,a,u,h,p,x,T,O,b=0,C,B,S,k,_,m,f,g;const j=new Uint8Array(4);let $,L;const he=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(je(s)||!s.output||!s.input&&s.avail_in!==0)return xe;e=s.state,e.mode===Se&&(e.mode=Xt),c=s.next_out,n=s.output,d=s.avail_out,i=s.next_in,l=s.input,r=s.avail_in,a=e.hold,u=e.bits,h=r,p=d,g=$e;e:for(;;)switch(e.mode){case Vt:if(e.wrap===0){e.mode=Xt;break}for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.wrap&2&&a===35615){e.wbits===0&&(e.wbits=15),e.check=0,j[0]=a&255,j[1]=a>>>8&255,e.check=_e(e.check,j,2,0),a=0,u=0,e.mode=Ws;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((a&255)<<8)+(a>>8))%31){s.msg="incorrect header check",e.mode=H;break}if((a&15)!==Gs){s.msg="unknown compression method",e.mode=H;break}if(a>>>=4,u-=4,f=(a&15)+8,e.wbits===0&&(e.wbits=f),f>15||f>e.wbits){s.msg="invalid window size",e.mode=H;break}e.dmax=1<<e.wbits,e.flags=0,s.adler=e.check=1,e.mode=a&512?tn:Se,a=0,u=0;break;case Ws:for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.flags=a,(e.flags&255)!==Gs){s.msg="unknown compression method",e.mode=H;break}if(e.flags&57344){s.msg="unknown header flags set",e.mode=H;break}e.head&&(e.head.text=a>>8&1),e.flags&512&&e.wrap&4&&(j[0]=a&255,j[1]=a>>>8&255,e.check=_e(e.check,j,2,0)),a=0,u=0,e.mode=Js;case Js:for(;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.head&&(e.head.time=a),e.flags&512&&e.wrap&4&&(j[0]=a&255,j[1]=a>>>8&255,j[2]=a>>>16&255,j[3]=a>>>24&255,e.check=_e(e.check,j,4,0)),a=0,u=0,e.mode=Qs;case Qs:for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.head&&(e.head.xflags=a&255,e.head.os=a>>8),e.flags&512&&e.wrap&4&&(j[0]=a&255,j[1]=a>>>8&255,e.check=_e(e.check,j,2,0)),a=0,u=0,e.mode=Ks;case Ks:if(e.flags&1024){for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.length=a,e.head&&(e.head.extra_len=a),e.flags&512&&e.wrap&4&&(j[0]=a&255,j[1]=a>>>8&255,e.check=_e(e.check,j,2,0)),a=0,u=0}else e.head&&(e.head.extra=null);e.mode=Ys;case Ys:if(e.flags&1024&&(x=e.length,x>r&&(x=r),x&&(e.head&&(f=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(l.subarray(i,i+x),f)),e.flags&512&&e.wrap&4&&(e.check=_e(e.check,l,x,i)),r-=x,i+=x,e.length-=x),e.length))break e;e.length=0,e.mode=qs;case qs:if(e.flags&2048){if(r===0)break e;x=0;do f=l[i+x++],e.head&&f&&e.length<65536&&(e.head.name+=String.fromCharCode(f));while(f&&x<r);if(e.flags&512&&e.wrap&4&&(e.check=_e(e.check,l,x,i)),r-=x,i+=x,f)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=Xs;case Xs:if(e.flags&4096){if(r===0)break e;x=0;do f=l[i+x++],e.head&&f&&e.length<65536&&(e.head.comment+=String.fromCharCode(f));while(f&&x<r);if(e.flags&512&&e.wrap&4&&(e.check=_e(e.check,l,x,i)),r-=x,i+=x,f)break e}else e.head&&(e.head.comment=null);e.mode=en;case en:if(e.flags&512){for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.wrap&4&&a!==(e.check&65535)){s.msg="header crc mismatch",e.mode=H;break}a=0,u=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),s.adler=e.check=0,e.mode=Se;break;case tn:for(;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}s.adler=e.check=vn(a),a=0,u=0,e.mode=Bt;case Bt:if(e.havedict===0)return s.next_out=c,s.avail_out=d,s.next_in=i,s.avail_in=r,e.hold=a,e.bits=u,nr;s.adler=e.check=1,e.mode=Se;case Se:if(t===tr||t===Tt)break e;case Xt:if(e.last){a>>>=u&7,u-=u&7,e.mode=ts;break}for(;u<3;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}switch(e.last=a&1,a>>>=1,u-=1,a&3){case 0:e.mode=sn;break;case 1:if(dr(e),e.mode=Ct,t===Tt){a>>>=2,u-=2;break e}break;case 2:e.mode=on;break;case 3:s.msg="invalid block type",e.mode=H}a>>>=2,u-=2;break;case sn:for(a>>>=u&7,u-=u&7;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if((a&65535)!==(a>>>16^65535)){s.msg="invalid stored block lengths",e.mode=H;break}if(e.length=a&65535,a=0,u=0,e.mode=es,t===Tt)break e;case es:e.mode=nn;case nn:if(x=e.length,x){if(x>r&&(x=r),x>d&&(x=d),x===0)break e;n.set(l.subarray(i,i+x),c),r-=x,i+=x,d-=x,c+=x,e.length-=x;break}e.mode=Se;break;case on:for(;u<14;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.nlen=(a&31)+257,a>>>=5,u-=5,e.ndist=(a&31)+1,a>>>=5,u-=5,e.ncode=(a&15)+4,a>>>=4,u-=4,e.nlen>286||e.ndist>30){s.msg="too many length or distance symbols",e.mode=H;break}e.have=0,e.mode=ln;case ln:for(;e.have<e.ncode;){for(;u<3;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.lens[he[e.have++]]=a&7,a>>>=3,u-=3}for(;e.have<19;)e.lens[he[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,$={bits:e.lenbits},g=at(er,e.lens,0,19,e.lencode,0,e.work,$),e.lenbits=$.bits,g){s.msg="invalid code lengths set",e.mode=H;break}e.have=0,e.mode=rn;case rn:for(;e.have<e.nlen+e.ndist;){for(;b=e.lencode[a&(1<<e.lenbits)-1],C=b>>>24,B=b>>>16&255,S=b&65535,!(C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(S<16)a>>>=C,u-=C,e.lens[e.have++]=S;else{if(S===16){for(L=C+2;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(a>>>=C,u-=C,e.have===0){s.msg="invalid bit length repeat",e.mode=H;break}f=e.lens[e.have-1],x=3+(a&3),a>>>=2,u-=2}else if(S===17){for(L=C+3;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=C,u-=C,f=0,x=3+(a&7),a>>>=3,u-=3}else{for(L=C+7;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=C,u-=C,f=0,x=11+(a&127),a>>>=7,u-=7}if(e.have+x>e.nlen+e.ndist){s.msg="invalid bit length repeat",e.mode=H;break}for(;x--;)e.lens[e.have++]=f}}if(e.mode===H)break;if(e.lens[256]===0){s.msg="invalid code -- missing end-of-block",e.mode=H;break}if(e.lenbits=9,$={bits:e.lenbits},g=at(jn,e.lens,0,e.nlen,e.lencode,0,e.work,$),e.lenbits=$.bits,g){s.msg="invalid literal/lengths set",e.mode=H;break}if(e.distbits=6,e.distcode=e.distdyn,$={bits:e.distbits},g=at(Fn,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,$),e.distbits=$.bits,g){s.msg="invalid distances set",e.mode=H;break}if(e.mode=Ct,t===Tt)break e;case Ct:e.mode=It;case It:if(r>=6&&d>=258){s.next_out=c,s.avail_out=d,s.next_in=i,s.avail_in=r,e.hold=a,e.bits=u,Jl(s,p),c=s.next_out,n=s.output,d=s.avail_out,i=s.next_in,l=s.input,r=s.avail_in,a=e.hold,u=e.bits,e.mode===Se&&(e.back=-1);break}for(e.back=0;b=e.lencode[a&(1<<e.lenbits)-1],C=b>>>24,B=b>>>16&255,S=b&65535,!(C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(B&&!(B&240)){for(k=C,_=B,m=S;b=e.lencode[m+((a&(1<<k+_)-1)>>k)],C=b>>>24,B=b>>>16&255,S=b&65535,!(k+C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=k,u-=k,e.back+=k}if(a>>>=C,u-=C,e.back+=C,e.length=S,B===0){e.mode=fn;break}if(B&32){e.back=-1,e.mode=Se;break}if(B&64){s.msg="invalid literal/length code",e.mode=H;break}e.extra=B&15,e.mode=an;case an:if(e.extra){for(L=e.extra;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.length+=a&(1<<e.extra)-1,a>>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=cn;case cn:for(;b=e.distcode[a&(1<<e.distbits)-1],C=b>>>24,B=b>>>16&255,S=b&65535,!(C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(!(B&240)){for(k=C,_=B,m=S;b=e.distcode[m+((a&(1<<k+_)-1)>>k)],C=b>>>24,B=b>>>16&255,S=b&65535,!(k+C<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=k,u-=k,e.back+=k}if(a>>>=C,u-=C,e.back+=C,B&64){s.msg="invalid distance code",e.mode=H;break}e.offset=S,e.extra=B&15,e.mode=un;case un:if(e.extra){for(L=e.extra;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}e.offset+=a&(1<<e.extra)-1,a>>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){s.msg="invalid distance too far back",e.mode=H;break}e.mode=dn;case dn:if(d===0)break e;if(x=p-d,e.offset>x){if(x=e.offset-x,x>e.whave&&e.sane){s.msg="invalid distance too far back",e.mode=H;break}x>e.wnext?(x-=e.wnext,T=e.wsize-x):T=e.wnext-x,x>e.length&&(x=e.length),O=e.window}else O=n,T=c-e.offset,x=e.length;x>d&&(x=d),d-=x,e.length-=x;do n[c++]=O[T++];while(--x);e.length===0&&(e.mode=It);break;case fn:if(d===0)break e;n[c++]=e.length,d--,e.mode=It;break;case ts:if(e.wrap){for(;u<32;){if(r===0)break e;r--,a|=l[i++]<<u,u+=8}if(p-=d,s.total_out+=p,e.total+=p,e.wrap&4&&p&&(s.adler=e.check=e.flags?_e(e.check,n,p,c-p):ds(e.check,n,p,c-p)),p=d,e.wrap&4&&(e.flags?a:vn(a))!==e.check){s.msg="incorrect data check",e.mode=H;break}a=0,u=0}e.mode=hn;case hn:if(e.wrap&&e.flags){for(;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.wrap&4&&a!==(e.total&4294967295)){s.msg="incorrect length check",e.mode=H;break}a=0,u=0}e.mode=pn;case pn:g=sr;break e;case H:g=Nn;break e;case Vn:return Pn;case Hn:default:return xe}return s.next_out=c,s.avail_out=d,s.next_in=i,s.avail_in=r,e.hold=a,e.bits=u,(e.wsize||p!==s.avail_out&&e.mode<H&&(e.mode<ts||t!==Zs))&&Qn(s,s.output,s.next_out,p-s.avail_out),h-=s.avail_in,p-=s.avail_out,s.total_in+=h,s.total_out+=p,e.total+=p,e.wrap&4&&p&&(s.adler=e.check=e.flags?_e(e.check,n,p,s.next_out-p):ds(e.check,n,p,s.next_out-p)),s.data_type=e.bits+(e.last?64:0)+(e.mode===Se?128:0)+(e.mode===Ct||e.mode===es?256:0),(h===0&&p===0||t===Zs)&&g===$e&&(g=ir),g},hr=s=>{if(je(s))return xe;let t=s.state;return t.window&&(t.window=null),s.state=null,$e},pr=(s,t)=>{if(je(s))return xe;const e=s.state;return e.wrap&2?(e.head=t,t.done=!1,$e):xe},vr=(s,t)=>{const e=t.length;let l,n,i;return je(s)||(l=s.state,l.wrap!==0&&l.mode!==Bt)?xe:l.mode===Bt&&(n=1,n=ds(n,t,e,0),n!==l.check)?Nn:(i=Qn(s,t,e,e),i?(l.mode=Vn,Pn):(l.havedict=1,$e))};var mr=Gn,gr=Wn,wr=Zn,yr=ur,xr=Jn,_r=fr,kr=hr,br=pr,Sr=vr,Ar="pako inflate (from Nodeca project)",Ae={inflateReset:mr,inflateReset2:gr,inflateResetKeep:wr,inflateInit:yr,inflateInit2:xr,inflate:_r,inflateEnd:kr,inflateGetHeader:br,inflateSetDictionary:Sr,inflateInfo:Ar};function Tr(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Cr=Tr;const Kn=Object.prototype.toString,{Z_NO_FLUSH:Ir,Z_FINISH:Er,Z_OK:ft,Z_STREAM_END:is,Z_NEED_DICT:os,Z_STREAM_ERROR:Mr,Z_DATA_ERROR:gn,Z_MEM_ERROR:Or}=Un;function Ht(s){this.options=zn.assign({chunkSize:1024*64,windowBits:15,to:""},s||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(s&&s.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Gl,this.strm.avail_out=0;let e=Ae.inflateInit2(this.strm,t.windowBits);if(e!==ft)throw new Error(fs[e]);if(this.header=new Cr,Ae.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=hs.string2buf(t.dictionary):Kn.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Ae.inflateSetDictionary(this.strm,t.dictionary),e!==ft)))throw new Error(fs[e])}Ht.prototype.push=function(s,t){const e=this.strm,l=this.options.chunkSize,n=this.options.dictionary;let i,c,r;if(this.ended)return!1;for(t===~~t?c=t:c=t===!0?Er:Ir,Kn.call(s)==="[object ArrayBuffer]"?e.input=new Uint8Array(s):e.input=s,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(l),e.next_out=0,e.avail_out=l),i=Ae.inflate(e,c),i===os&&n&&(i=Ae.inflateSetDictionary(e,n),i===ft?i=Ae.inflate(e,c):i===gn&&(i=os));e.avail_in>0&&i===is&&e.state.wrap>0&&s[e.next_in]!==0;)Ae.inflateReset(e),i=Ae.inflate(e,c);switch(i){case Mr:case gn:case os:case Or:return this.onEnd(i),this.ended=!0,!1}if(r=e.avail_out,e.next_out&&(e.avail_out===0||i===is))if(this.options.to==="string"){let d=hs.utf8border(e.output,e.next_out),a=e.next_out-d,u=hs.buf2string(e.output,d);e.next_out=a,e.avail_out=l-a,a&&e.output.set(e.output.subarray(d,d+a),0),this.onData(u)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===ft&&r===0)){if(i===is)return i=Ae.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Ht.prototype.onData=function(s){this.chunks.push(s)};Ht.prototype.onEnd=function(s){s===ft&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=zn.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg};function Rr(s,t){const e=new Ht(t);if(e.push(s),e.err)throw e.msg||fs[e.err];return e.result}var Br=Rr,Lr={ungzip:Br};const{ungzip:Dr}=Lr;var Ur=Dr;function zr(s){return $r(ys(s))}function $r(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{let l=ws(s);(t.messagesList||(t.messagesList=[])).push(jr(s)),s.limit=l;break}case 8:{t.heartbeatDuration=Ee(s,!0);break}case 9:{t.needAck=!!de(s);break}default:Ke(s,e&7)}}return t}function jr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{t.method=Re(s,q(s));break}case 2:{t.payload=Xn(s,q(s));break}case 3:{t.msgId=Ee(s,!1);break}case 4:{t.msgType=q(s);break}case 5:{t.offset=Ee(s,!1);break}case 6:{t.needWrdsStore=!!de(s);break}case 7:{t.wrdsVersion=Ee(s,!1);break}case 8:{t.wrdsSubKey=Re(s,q(s));break}default:Ke(s,e&7)}}return t}function Fr(s){return Nr(ys(s))}function Nr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 2:{let l=ws(s);t.user=Pr(s),s.limit=l;break}case 3:{t.content=Re(s,q(s));break}default:Ke(s,e&7)}}return t}function Pr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 3:{t.nickName=Re(s,q(s));break}default:Ke(s,e&7)}}return t}function Vr(s){let t=qn();return Hr(s,t),qr(t)}function Hr(s,t){let e=s.seqId;e!==void 0&&(me(t,8),Et(t,e));let l=s.logId;l!==void 0&&(me(t,16),Et(t,l));let n=s.service;n!==void 0&&(me(t,24),Et(t,n));let i=s.method;i!==void 0&&(me(t,32),Et(t,i));let c=s.headersList;if(c!==void 0)for(let u of c){me(t,42);let h=qn();Wr(u,h),me(t,h.limit),ea(t,h),Yr(h)}let r=s.payloadEncoding;r!==void 0&&(me(t,50),Lt(t,r));let d=s.payloadType;d!==void 0&&(me(t,58),Lt(t,d));let a=s.payload;a!==void 0&&(me(t,66),me(t,a.length),Xr(t,a))}function Zr(s){return Gr(ys(s))}function Gr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{t.seqId=Ee(s,!0);break}case 2:{t.logId=Ee(s,!0);break}case 3:{t.service=Ee(s,!0);break}case 4:{t.method=Ee(s,!0);break}case 5:{let l=ws(s);(t.headersList||(t.headersList=[])).push(Jr(s)),s.limit=l;break}case 6:{t.payloadEncoding=Re(s,q(s));break}case 7:{t.payloadType=Re(s,q(s));break}case 8:{t.payload=Xn(s,q(s));break}default:Ke(s,e&7)}}return t}function Wr(s,t){let e=s.key;e!==void 0&&(me(t,10),Lt(t,e));let l=s.value;l!==void 0&&(me(t,18),Lt(t,l))}function Jr(s){let t={};e:for(;!Ye(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{t.key=Re(s,q(s));break}case 2:{t.value=Re(s,q(s));break}default:Ke(s,e&7)}}return t}function ws(s){let t=q(s),e=s.limit;return s.limit=s.offset+t,e}function Ke(s,t){switch(t){case 0:for(;de(s)&128;);break;case 2:ls(s,q(s));break;case 5:ls(s,4);break;case 1:ls(s,8);break;default:throw new Error("Unimplemented type: "+t)}}let Qr=new Float32Array(1);new Uint8Array(Qr.buffer);let Kr=new Float64Array(1);new Uint8Array(Kr.buffer);let Yn=[];function qn(){const s=Yn.pop();return s?(s.offset=s.limit=0,s):{bytes:new Uint8Array(64),offset:0,limit:0}}function Yr(s){Yn.push(s)}function ys(s){return{bytes:s,offset:0,limit:s.length}}function qr(s){let t=s.bytes,e=s.limit;return t.length===e?t:t.subarray(0,e)}function ls(s,t){if(s.offset+t>s.limit)throw new Error("Skip past limit");s.offset+=t}function Ye(s){return s.offset>=s.limit}function mt(s,t){let e=s.bytes,l=s.offset,n=s.limit,i=l+t;if(i>e.length){let c=new Uint8Array(i*2);c.set(e),s.bytes=c}return s.offset=i,i>n&&(s.limit=i),l}function xs(s,t){let e=s.offset;if(e+t>s.limit)throw new Error("Read past limit");return s.offset+=t,e}function Xn(s,t){let e=xs(s,t);return s.bytes.subarray(e,e+t)}function Xr(s,t){let e=mt(s,t.length);s.bytes.set(t,e)}function Re(s,t){let e=xs(s,t),l=String.fromCharCode,n=s.bytes,i="�",c="";for(let r=0;r<t;r++){let d=n[r+e],a,u,h,p;d&128?(d&224)===192?r+1>=t?c+=i:(a=n[r+e+1],(a&192)!==128?c+=i:(p=(d&31)<<6|a&63,p<128?c+=i:(c+=l(p),r++))):(d&240)==224?r+2>=t?c+=i:(a=n[r+e+1],u=n[r+e+2],((a|u<<8)&49344)!==32896?c+=i:(p=(d&15)<<12|(a&63)<<6|u&63,p<2048||p>=55296&&p<=57343?c+=i:(c+=l(p),r+=2))):(d&248)==240?r+3>=t?c+=i:(a=n[r+e+1],u=n[r+e+2],h=n[r+e+3],((a|u<<8|h<<16)&12632256)!==8421504?c+=i:(p=(d&7)<<18|(a&63)<<12|(u&63)<<6|h&63,p<65536||p>1114111?c+=i:(p-=65536,c+=l((p>>10)+55296,(p&1023)+56320),r+=3))):c+=i:c+=l(d)}return c}function Lt(s,t){let e=t.length,l=0;for(let c=0;c<e;c++){let r=t.charCodeAt(c);r>=55296&&r<=56319&&c+1<e&&(r=(r<<10)+t.charCodeAt(++c)-56613888),l+=r<128?1:r<2048?2:r<65536?3:4}me(s,l);let n=mt(s,l),i=s.bytes;for(let c=0;c<e;c++){let r=t.charCodeAt(c);r>=55296&&r<=56319&&c+1<e&&(r=(r<<10)+t.charCodeAt(++c)-56613888),r<128?i[n++]=r:(r<2048?i[n++]=r>>6&31|192:(r<65536?i[n++]=r>>12&15|224:(i[n++]=r>>18&7|240,i[n++]=r>>12&63|128),i[n++]=r>>6&63|128),i[n++]=r&63|128)}}function ea(s,t){let e=mt(s,t.limit),l=s.bytes,n=t.bytes;for(let i=0,c=t.limit;i<c;i++)l[i+e]=n[i]}function de(s){return s.bytes[xs(s,1)]}function wn(s,t){let e=mt(s,1);s.bytes[e]=t}function q(s){let t=0,e=0,l;do l=de(s),t<32&&(e|=(l&127)<<t),t+=7;while(l&128);return e}function me(s,t){for(t>>>=0;t>=128;)wn(s,t&127|128),t>>>=7;wn(s,t)}function Ee(s,t){let e=0,l=0,n=0,i;return i=de(s),e=i&127,i&128&&(i=de(s),e|=(i&127)<<7,i&128&&(i=de(s),e|=(i&127)<<14,i&128&&(i=de(s),e|=(i&127)<<21,i&128&&(i=de(s),l=i&127,i&128&&(i=de(s),l|=(i&127)<<7,i&128&&(i=de(s),l|=(i&127)<<14,i&128&&(i=de(s),l|=(i&127)<<21,i&128&&(i=de(s),n=i&127,i&128&&(i=de(s),n|=(i&127)<<7))))))))),{low:e|l<<28,high:l>>>4|n<<24,unsigned:t}}function Et(s,t){let e=t.low>>>0,l=(t.low>>>28|t.high<<4)>>>0,n=t.high>>>24,i=n===0?l===0?e<16384?e<128?1:2:e<1<<21?3:4:l<16384?l<128?5:6:l<1<<21?7:8:n<128?9:10,c=mt(s,i),r=s.bytes;switch(i){case 10:r[c+9]=n>>>7&1;case 9:r[c+8]=i!==9?n|128:n&127;case 8:r[c+7]=i!==8?l>>>21|128:l>>>21&127;case 7:r[c+6]=i!==7?l>>>14|128:l>>>14&127;case 6:r[c+5]=i!==6?l>>>7|128:l>>>7&127;case 5:r[c+4]=i!==5?l|128:l&127;case 4:r[c+3]=i!==4?e>>>21|128:e>>>21&127;case 3:r[c+2]=i!==3?e>>>14|128:e>>>14&127;case 2:r[c+1]=i!==2?e>>>7|128:e>>>7&127;case 1:r[c]=i!==1?e|128:e&127}}var ta=function(s,t){s.constructor==String?s=la(s):o(s)?s=Array.prototype.slice.call(s,0):Array.isArray(s)||s.constructor===Uint8Array||(s=s.toString());for(var e=ra(s),l=8*s.length,n=1732584193,i=-271733879,c=-1732584194,r=271733878,d=0;d<e.length;d++)e[d]=(e[d]<<8|e[d]>>>24)&16711935|(e[d]<<24|e[d]>>>8)&4278255360;e[l>>>5]|=128<<l%32,e[(l+64>>>9<<4)+14]=l;for(var a=sa,u=na,h=ia,p=oa,d=0;d<e.length;d+=16){var x=n,T=i,O=c,b=r;n=a(n,i,c,r,e[d+0],7,-680876936),r=a(r,n,i,c,e[d+1],12,-389564586),c=a(c,r,n,i,e[d+2],17,606105819),i=a(i,c,r,n,e[d+3],22,-1044525330),n=a(n,i,c,r,e[d+4],7,-176418897),r=a(r,n,i,c,e[d+5],12,1200080426),c=a(c,r,n,i,e[d+6],17,-1473231341),i=a(i,c,r,n,e[d+7],22,-45705983),n=a(n,i,c,r,e[d+8],7,1770035416),r=a(r,n,i,c,e[d+9],12,-1958414417),c=a(c,r,n,i,e[d+10],17,-42063),i=a(i,c,r,n,e[d+11],22,-1990404162),n=a(n,i,c,r,e[d+12],7,1804603682),r=a(r,n,i,c,e[d+13],12,-40341101),c=a(c,r,n,i,e[d+14],17,-1502002290),i=a(i,c,r,n,e[d+15],22,1236535329),n=u(n,i,c,r,e[d+1],5,-165796510),r=u(r,n,i,c,e[d+6],9,-1069501632),c=u(c,r,n,i,e[d+11],14,643717713),i=u(i,c,r,n,e[d+0],20,-373897302),n=u(n,i,c,r,e[d+5],5,-701558691),r=u(r,n,i,c,e[d+10],9,38016083),c=u(c,r,n,i,e[d+15],14,-660478335),i=u(i,c,r,n,e[d+4],20,-405537848),n=u(n,i,c,r,e[d+9],5,568446438),r=u(r,n,i,c,e[d+14],9,-1019803690),c=u(c,r,n,i,e[d+3],14,-187363961),i=u(i,c,r,n,e[d+8],20,1163531501),n=u(n,i,c,r,e[d+13],5,-1444681467),r=u(r,n,i,c,e[d+2],9,-51403784),c=u(c,r,n,i,e[d+7],14,1735328473),i=u(i,c,r,n,e[d+12],20,-1926607734),n=h(n,i,c,r,e[d+5],4,-378558),r=h(r,n,i,c,e[d+8],11,-2022574463),c=h(c,r,n,i,e[d+11],16,1839030562),i=h(i,c,r,n,e[d+14],23,-35309556),n=h(n,i,c,r,e[d+1],4,-1530992060),r=h(r,n,i,c,e[d+4],11,1272893353),c=h(c,r,n,i,e[d+7],16,-155497632),i=h(i,c,r,n,e[d+10],23,-1094730640),n=h(n,i,c,r,e[d+13],4,681279174),r=h(r,n,i,c,e[d+0],11,-358537222),c=h(c,r,n,i,e[d+3],16,-722521979),i=h(i,c,r,n,e[d+6],23,76029189),n=h(n,i,c,r,e[d+9],4,-640364487),r=h(r,n,i,c,e[d+12],11,-421815835),c=h(c,r,n,i,e[d+15],16,530742520),i=h(i,c,r,n,e[d+2],23,-995338651),n=p(n,i,c,r,e[d+0],6,-198630844),r=p(r,n,i,c,e[d+7],10,1126891415),c=p(c,r,n,i,e[d+14],15,-1416354905),i=p(i,c,r,n,e[d+5],21,-57434055),n=p(n,i,c,r,e[d+12],6,1700485571),r=p(r,n,i,c,e[d+3],10,-1894986606),c=p(c,r,n,i,e[d+10],15,-1051523),i=p(i,c,r,n,e[d+1],21,-2054922799),n=p(n,i,c,r,e[d+8],6,1873313359),r=p(r,n,i,c,e[d+15],10,-30611744),c=p(c,r,n,i,e[d+6],15,-1560198380),i=p(i,c,r,n,e[d+13],21,1309151649),n=p(n,i,c,r,e[d+4],6,-145523070),r=p(r,n,i,c,e[d+11],10,-1120210379),c=p(c,r,n,i,e[d+2],15,718787259),i=p(i,c,r,n,e[d+9],21,-343485551),n=n+x>>>0,i=i+T>>>0,c=c+O>>>0,r=r+b>>>0}return ei([n,i,c,r])};const sa=function(s,t,e,l,n,i,c){var r=s+(t&e|~t&l)+(n>>>0)+c;return(r<<i|r>>>32-i)+t},na=function(s,t,e,l,n,i,c){var r=s+(t&l|e&~l)+(n>>>0)+c;return(r<<i|r>>>32-i)+t},ia=function(s,t,e,l,n,i,c){var r=s+(t^e^l)+(n>>>0)+c;return(r<<i|r>>>32-i)+t},oa=function(s,t,e,l,n,i,c){var r=s+(e^(t|~l))+(n>>>0)+c;return(r<<i|r>>>32-i)+t},la=function(s){for(var t=[],e=0;e<s.length;e++)t.push(255&s.charCodeAt(e));return t},ra=function(s){for(var t=[],e=0,l=0;e<s.length;e++,l+=8)t[l>>>5]|=s[e]<<24-l%32;return t},aa=function(s){for(var t=[],e=0;e<32*s.length;e+=8)t.push(s[e>>>5]>>>24-e%32&255);return t},ei=function(s){if(s.constructor==Number)return 16711935&yn(s,8)|4278255360&yn(s,24);for(var t=0;t<s.length;t++)s[t]=ei(s[t]);return s},yn=function(s,t){return s<<t|s>>>32-t},ca=function(s){for(var t=[],e=0;e<s.length;e++)t.push((s[e]>>>4).toString(16)),t.push((15&s[e]).toString(16));return t.join("")},ua=(s,t)=>{const l=`,live_id=1,aid=6383,version_code=180800,webcast_sdk_version=1.0.14-beta.0,room_id=${s},sub_room_id=,sub_channel_id=,did_rule=3,user_unique_id=${t},device_platform=web,device_type=,ac=,identity=audience`.substring(1),n=ta(l),i=aa(n),c=ca(i);return window.byted_acrawler.frontierSign({"X-MS-STUB":c})["X-Bogus"]},da=(s,t)=>{const e=D();let l,n=new ResizeObserver(i=>{clearTimeout(l),l=setTimeout(()=>{e.value.resize()},500)});return Je(()=>{n.observe(s.value),t.canvas=s.value,e.value=new fa(t)}),Ut(()=>{n.unobserve(s.value),clearTimeout(l)}),e};class fa{constructor(t){Y(this,"canvas");Y(this,"colors");Y(this,"ctx");Y(this,"isdraw");Y(this,"lines");Y(this,"textList");Y(this,"fontSize");Y(this,"font");Y(this,"rows");Y(this,"gap");Y(this,"speed");Y(this,"opacity");Y(this,"opacityStr");this.isdraw=!1,this.textList=[],this.canvas=t.canvas,this.ctx=this.canvas.getContext("2d"),this.speed=t.speed||2,this.setFont(t.fontSize||16),this.setGap(t.gap||8),this.setRows(t.rows||4),this.setOpacity(t.opacity||100),this.setColors(t.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(t){this.opacity=t;const e=Math.floor(2.55*t).toString(16);this.opacityStr=e.length==1?"0"+e:e}setRows(t){this.rows=t}setSpeed(t){this.speed=t}setFont(t){this.ctx.textBaseline="top",this.fontSize=t,this.font=`${t}px sans-serif`}setGap(t){this.gap=t}setColors(t){this.colors=t}clean(){this.textList=[],this.isdraw=!1}destory(){this.lines=[],this.clean()}add(t){const e=this.getLine();if(e==-1)return;const l=Math.ceil(this.ctx.measureText(t).width),n=this.canvas.width+l;this.lines[e].width=n,this.textList.push({value:t,width:l,line:e,left:this.canvas.width,color:this.colors[Math.floor(Math.random()*this.colors.length)]}),!this.isdraw&&(this.isdraw=!0,this.draw())}getLine(){let t=-1,e=this.lines.length;for(;++t<e;)if(this.lines[t].width==this.canvas.width)return t;return-1}initRows(){this.lines=[];let t=-1;const e=this.gap+this.fontSize;for(;++t<this.rows;)this.lines.push({top:this.gap+e*t,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 t=-1,e=this.textList.length;const l=[];for(;++t<e;){const n=this.textList[t],i=n.left+n.width;if(i<=0)continue;this.ctx.fillStyle=n.color+this.opacityStr;const c=this.lines[n.line];c&&(this.ctx.fillText(n.value,n.left,this.lines[n.line].top),n.left-=this.speed,l.push(n),c.width=Math.max(i,this.canvas.width))}this.textList=l,l.length==0?this.isdraw=!1:requestAnimationFrame(this.draw.bind(this))}}const ha={class:"w-full h-full flex flex-col lg:flex-row box-border md:pb-2"},pa={class:"lg:grow-5 flex flex-col"},va={class:"flex p-2 pt-1 gap-2 text-lg md:pr-3"},ma={class:"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"},ga={class:"aspect-ratio-video"},wa={class:"w-full h-full pos-absolute top-0 z-1 flex justify-center items-center text-6"},ya=["src"],xa={key:0},_a={class:"flex items-center gap-4 p-1"},ka={class:"flex items-center gap-4 p-1"},ba={key:1,class:"h-0 w-0"},Sa={class:"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"},Aa={class:"flex items-center line-height-none gap-4 b b-y-solid py-3 b-gray-7 px-4"},Ta=["src"],Ca={class:"grow-1 w-20"},Ia={class:"h-4 truncate"},Ea={class:"h-4 flex text-3 items-center gap-1"},Ma=["src"],Oa={class:"pos-absolute top-0 right-4 text-4 flex flex-col gap-3"},Ra=["src"],Ba=["href"],La=["data-id","data-site","href"],Da={class:"flex items-center gap-2"},Ua={class:"w-5 h-5 rounded-5",alt:""},za=["onClick"],$a={class:"flex flex-col b b-solid b-gray-6 rounded-2 px-2"},ja={class:"flex justify-between items-center mx-2 py-2"},Fa={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Na={class:"flex justify-between items-center mx-2 py-2"},Pa={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Va={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Ha={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Za={class:"flex flex-col b b-solid b-gray-6 rounded-2 px-2"},Ga={class:"flex justify-between items-center mx-2 py-2"},Wa={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Ja={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Qa={class:"flex justify-between items-center b b-t-gray-6 b-t-solid mx-2 py-2"},Ka={class:"flex flex-wrap shadow blur bg-dark p-2 box-border b b-solid b-gray-7 rounded",style:{"box-shadow":"0 6px 15px 0 rgba(0, 0, 0, .5)"}},Ya=["data-color"],qa={class:"p-3 flex justify-between items-center"},Xa=X({__name:"play",setup(s){let t,e,l;const n=Te({follow:!1,qn:0,line:0,notice:null,paused:!0,muted:!1,fullscreen:!1,webscreen:!1,showController:!0,pictureInPicture:!1}),i=ms(),c=D(),r=D(),d=D(),a=bi(),u=Q(()=>{var A,w;return a.value&&((w=(A=a.value)==null?void 0:A.stream)==null?void 0:w.length)>0?a.value.stream.map(z=>z.name):[]}),h=Q(()=>u.value.length>0?a.value.stream[n.qn].lines.map(A=>A.name):[]),p=Q(()=>h.value.length>0?a.value.stream[n.qn].lines[n.line].url:""),x=Q(()=>G.map(A=>Object.values(A.follows)).flat().sort(A=>A.status?-1:0)),T=Q(()=>{var A;return((A=a.value)==null?void 0:A.siteId)=="bilibili"?"hls":"flv"});let O;const b=Q(()=>{var A;return((A=a.value)==null?void 0:A.siteId)=="huya"&&(["一起看","星秀","原创"].includes(a.value.category)||a.value.info.name.endsWith("-imgplus"))}),C=()=>{b.value&&(O=setInterval(()=>{const A=Ls(a.value.info);n.flv.switchURL(p.value+A,!0)},11e4))};pe(p,()=>{var A,w;if(clearInterval(O),!!p.value){if(T.value=="flv"){const z=a.value.siteId=="huya"?p.value+Ls(a.value.info):p.value;if(n.flv)return(A=n.flv)==null||A.switchURL(z,!0),C();if(bt!=null&&bt.isSupported("video")){const N=new bt({media:r.value,seamlesslyReload:!0,isLive:!0,retryCount:0});return N.load(z),n.flv=N,C()}}if(n.hls)return(w=n.hls)==null?void 0:w.loadSource(p.value);if(St!=null&&St.isSupported()){const z=new St;return z.attachMedia(r.value),z.loadSource(p.value),n.hls=z}return n.notice="播放失败",clearTimeout(e)}}),pe(T,()=>{var A,w;if(T.value=="flv"){(A=n.hls)==null||A.destroy(),n.hls=void 0;return}(w=n.flv)==null||w.destroy(),n.flv=void 0});const B=()=>{d.value.scrollTop=0,he=0,d.value.innerHTML=""};let S,k=0,_=!0;const m=D(),f=da(m,{gap:E.canvasGap,rows:E.canvasRows,speed:E.canvasSpeed,opacity:E.canvasOpacity,colors:E.canvasColorOpen?E.colors:["#ffffff"]}),g=[];let j;function $(){j||(j=setTimeout(()=>{let A=-1;const w=g.length>5?5:g.length;for(d.value.style.display="none";++A<w;)d.value.appendChild(g[A]);d.value.style.display="block",g.splice(0,5),_&&(d.value.scrollTop=d.value.scrollHeight),j=void 0},200))}const L=(A,w)=>{var Ue;if(k++,E.blockOpen&&$s.value.length&&$s.value.some(Xe=>Xe.test(w))||(k%(E.sideClean||100)==0&&(d.value.innerHTML="",he=0),E.canvasOpen&&((Ue=f.value)==null||Ue.add(w)),!He.value||!E.sideOpen))return;const z=document.createElement("div"),{sideColorOpen:N,sideFontsize:W,sideGap:ee,colors:we}=E;z.style.margin=`${ee}px 0`,z.style.fontSize=`${W}px`,N&&(z.style.color=we[Math.floor(Math.random()*we.length)]);const De=document.createElement("span");De.style.opacity="0.5",De.appendChild(document.createTextNode(A+":"));const Ne=document.createElement("span");Ne.appendChild(document.createTextNode(w)),z.appendChild(De),z.appendChild(Ne),g.push(z),$()};let he=0;const Ce=()=>{if(d.value.scrollTop>=he)return he=d.value.scrollTop;he=d.value.scrollTop,_=!1,d.value.removeEventListener("scroll",Ce)},Fe=()=>{_=!0,d.value.scrollTop=d.value.scrollHeight,d.value.addEventListener("scroll",Ce,{passive:!1})};let ie;const _s=async()=>{var w;if(S||!E.canvasOpen&&!E.sideOpen)return;let A=!0;if(a.value.siteId=="huya"){const z=(w=a.value)==null?void 0:w.ws;if(!z)return;S=new WebSocket(z),S.onopen=()=>{clearInterval(ie),L("系统","开始连接弹幕服务器"),d.value.addEventListener("scroll",Ce),S==null||S.send(JSON.stringify({command:"subscribeNotice",data:["getMessageNotice"],reqId:Date.now().toString()})),ie=setInterval(()=>{S.send("ping")},45e3)},S.onmessage=N=>{if(A)return L("系统","弹幕服务器连接成功"),A=!1;const{sendNick:W,content:ee}=JSON.parse(N.data).data;L(W,ee)},S.onerror=()=>{clearInterval(ie),L("系统","弹幕服务器连接失败")}}else if(a.value.siteId=="douyu")S=new WebSocket("wss://danmuproxy.douyu.com:8506"),S.onopen=()=>{var z,N;clearInterval(ie),L("系统","开始连接弹幕服务器"),d.value.addEventListener("scroll",Ce),S.send(gt(`type@=loginreq/roomid@=${(z=a.value)==null?void 0:z.roomId}`)),S.send(gt(`type@=joingroup/rid@=${(N=a.value)==null?void 0:N.roomId}/gid@=-9999`)),ie=setInterval(()=>{S.send(gt("type@=mrkl/"))},45e3)},S.onmessage=async({data:z})=>{A&&(L("系统","弹幕服务器连接成功"),A=!1),(await z.text()).split(/type@=chatmsg\//).forEach(ee=>{const we=ee.match(/nn@=(.*)\/txt@=(.*)\/cid/);we!=null&&L(we[1],we[2])})},S.onerror=()=>{clearInterval(ie),L("系统","弹幕服务器连接失败")};else if(a.value.siteId=="douyin"){const z=a.value.ws.split(","),N=z[0],W=z[1],ee=ua(N,W);let we=`wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/?room_id=${N}&compress=gzip&version_code=180800&webcast_sdk_version=1.0.14-beta.0&live_id=1&did_rule=3&user_unique_id=${W}&identity=audience&signature=${ee}&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(we),S.binaryType="arraybuffer",S.onopen=()=>{clearInterval(ie),L("系统","开始连接弹幕服务器"),d.value.addEventListener("scroll",Ce),ie=setInterval(()=>{(S==null?void 0:S.readyState)==1&&S.send(Vr({payloadType:"bh"}))},1e4)},S.onmessage=De=>{A&&(L("系统","弹幕服务器连接成功"),A=!1);const Ne=Zr(new Uint8Array(De.data)),Ue=Ur(Ne.payload),Ie=zr(new Uint8Array(Ue)).messagesList;if(!Ie||Ie.length==0)return;const xt=Ie.length;let Pe=-1;for(;++Pe<xt;){if(Ie[Pe].method!="WebcastChatMessage")continue;const et=Fr(Ie[Pe].payload);L(et.user.nickName,et.content)}},S.onerror=function(){clearInterval(ie),L("系统","弹幕服务器连接失败")}}},ks=new TextEncoder;function gt(A){let w=ks.encode(A);const z=9+w.byteLength,N=[z,0,0,.1,z,0,0,0,177,2,0,0];w=ks.encode(A+"\0");const W=new Uint8Array(12+w.byteLength);return W.set(N),W.set(w,12),W.buffer}const Zt=()=>{clearInterval(ie),S&&(S.onmessage=null,Ts=="douyu"?S.send(gt("type@=logout")):S.close(),S=null,k=0,d.value&&wt==i.fullPath&&L("系统","弹幕服务器断开连接"))};pe(a,()=>_s()),pe([()=>E.sideOpen,()=>E.canvasOpen],()=>{!E.sideOpen&&!E.canvasOpen&&Zt(),S||_s()});const Gt=()=>{const{site:A,id:w}=i.meta,z=i.meta.site.follows[w];z&&(a.value=z,n.follow=!0),clearInterval(O),clearInterval(ie),clearTimeout(e),n.notice="加载中...",Qt(()=>{L("系统","开始获取直播间信息")}),be(A.id,"getRoomDetail",{id:w}).then(N=>{if(a.value=N,n.follow&&Rt(N),Qt(()=>L("系统","直播间信息获取成功")),!N.status)return n.notice="未开播!";document.title=a.value.title},N=>{n.notice=N,Qt(()=>L("系统","直播间信息获取失败"))}).finally(()=>clearTimeout(e))},si=()=>{if(!a.value)return;const{id:A}=i.meta.site;n.follow=n.follow?us(A,a.value.roomId):Rt(a.value)},Wt=()=>{!a.value||!a.value.status||(clearTimeout(t),t=setTimeout(()=>{n.paused?r.value.play():r.value.pause()},200))},bs=()=>{clearTimeout(t),n.fullscreen=!n.fullscreen,document.fullscreenElement?document.exitFullscreen():c.value.requestFullscreen()},Le=()=>{clearTimeout(l),n.showController=!0,l=setTimeout(()=>{var A,w;(A=r.value)!=null&&A.paused||!((w=r.value)!=null&&w.played.length)||(n.showController=!1)},3e3)},ni=()=>{clearTimeout(t),n.webscreen=!n.webscreen,n.fullscreen&&(n.fullscreen=!1,document.exitFullscreen())},ii=()=>{n.paused=!1,Le()},oi=()=>{n.paused=!0,Le()},Ss=A=>{if(p.value)switch(A.code){case"ArrowDown":return _t(!1);case"ArrowUp":return _t(!0);case"Space":return Wt()}},li=()=>{var A;clearTimeout(t),clearTimeout(l),clearTimeout(e),clearTimeout(j),clearInterval(O),Zt(),document.title="Lemon live",document.removeEventListener("keydown",Ss),T.value&&!n.pictureInPicture&&((A=n[T.value])==null||A.destroy())};Gt();const As=Nt();let wt=i.fullPath;Je(()=>{c.value.style.filter=ce.value==100?"":`brightness(${ce.value/100})`,r.value.volume=ve.value/100,n.muted=r.value.muted,r.value.addEventListener("canplay",()=>{n.notice=null}),Mt||(c.value.addEventListener("mousemove",Le),document.addEventListener("keydown",Ss)),document.pictureInPictureElement&&document.exitPictureInPicture(),r.value.addEventListener("leavepictureinpicture",()=>{var A;if(!/play/.test(i.path))return As.push(wt);if(i.fullPath==wt)return n.pictureInPicture=!1;(A=n[T.value])==null||A.destroy()})});let Ts=i.meta.site.id;no(A=>{var W;const{siteid:w,id:z}=A.params,N=Ge.findIndex(ee=>ee==w);return N==-1?{name:"404"}:(A.meta.site=G[N],A.meta.id=z,T.value&&((W=n[T.value])==null||W.destroy(),n[T.value]=void 0),n.qn=0,n.line=0,n.follow=!1,a.value=void 0,!0)}),pe(()=>i.params,()=>{var A;clearTimeout(j),Zt(),B(),(A=f.value)==null||A.destory(),Ts=i.meta.site.id,wt=i.fullPath,Gt()}),Ut(li);const ri=()=>Promise.all($t(G,cs)),ai=async A=>{A==1&&await ri()},ci=()=>n.showController?Wt():Le(),ui=()=>{n.pictureInPicture=!n.pictureInPicture,document.pictureInPictureElement?document.exitPictureInPicture():r.value.requestPictureInPicture()},di=A=>{const w=A.target.dataset.color;if(!w)return;const z=E.colors.findIndex(N=>N==w);if(z==-1)return E.colors.push(w);E.colors.length!=1&&E.colors.splice(z,1)};pe(()=>E.colors,()=>{var A;return(A=f.value)==null?void 0:A.setColors(E.colors)}),pe(()=>E.canvasSpeed,()=>{var A;return(A=f.value)==null?void 0:A.setSpeed(E.canvasSpeed)}),pe(()=>E.canvasOpacity,()=>{var A;return(A=f.value)==null?void 0:A.setOpacity(E.canvasOpacity)}),pe(()=>E.canvasColorOpen,()=>{var A;return(A=f.value)==null?void 0:A.setColors(E.canvasColorOpen?E.colors:["#ffffff"])}),We(()=>{var A,w,z,N;(A=f.value)==null||A.setGap(E.canvasGap),(w=f.value)==null||w.setFont(E.canvasFontsize),(z=f.value)==null||z.setRows(E.canvasRows),(N=f.value)==null||N.resize()}),pe(ve,()=>{Le(),clearTimeout(e),n.notice=`当前音量 ${ve.value}%`,r.value.volume=ve.value/100,Oe("volume",ve.value),e=setTimeout(()=>n.notice=null,2e3)}),pe(ce,()=>{Le(),clearTimeout(e),n.notice=`当前亮度 ${ce.value}%`,c.value.style.filter=ce.value==100?"":`brightness(${ce.value/100})`,Oe("brightness",ce.value),e=setTimeout(()=>n.notice=null,2e3)});let Jt;const yt=D(),fi=A=>{clearTimeout(Jt),Jt=setTimeout(()=>{const w=qe("id",A.target,yt.value);if(!w)return;const z=qe("site",A.target,yt.value);As.push(`/${z}/play/${w}`)},300)},hi=A=>{var W;clearTimeout(Jt);const w=qe("id",A.target,yt.value);if(!w)return;const N=`/${qe("site",A.target,yt.value)}/play/${w}`;(W=window.open(N,"_blank"))==null||W.location},qe=(A,w,z)=>{if(w==z)return null;const N=w.dataset[A];return N||qe(A,w.parentElement,z)},pi=()=>ce.value=100;pe(()=>n.muted,()=>{Le(),clearTimeout(e),n.notice=n.muted?"已静音":"已开启声音",e=setTimeout(()=>n.notice=null,2e3)});const vi=()=>{if(r.value.muted){r.value.muted=!1,n.muted=!1;return}r.value.muted=!0,n.muted=!0};function mi(A,w,z){z.stopPropagation(),z.preventDefault(),us(A,w),A==a.value.siteId&&w==a.value.roomId&&(n.follow=!1)}return(A,w)=>{var Ue,Xe,Ie,xt,Pe,et;const z=kl,N=gl,W=vt,ee=pl,we=fl,De=pt,Ne=Dt("lazy");return I(),U("div",ha,[v("div",pa,[v("div",va,[v("div",{onClick:w[0]||(w[0]=(...R)=>A.$router.back&&A.$router.back(...R)),class:"i-ri-arrow-left-line hover:text-amber"}),v("h1",ma,F((Ue=y(a))==null?void 0:Ue.title),1),v("div",{onClick:w[1]||(w[1]=R=>He.value=!y(He)),style:Ze(y(He)?"transform:rotate(180deg)":"margin-right:1.5rem"),class:"i-ri-arrow-right-s-fill hidden lg:block"},null,4)]),v("div",{ref_key:"player",ref:c,class:V(["md:rounded-6px text-4 text-white bg-black cursor-default pos-relative w-full overflow-hidden select-none h-full",{"cursor-none":!y(n).showController,"text-5":y(n).fullscreen,"text-5 !pos-fixed left-0 right-0 top-0 bottom-0 z-10 ":y(n).webscreen}]),onContextmenu:w[19]||(w[19]=ne(()=>{},["prevent"])),onClick:ci,onDblclick:bs},[v("div",ga,[v("video",{playsinline:"","webkit-playsinline":"","x5-video-player-type":"h5",autoplay:"",ref_key:"video",ref:r,class:"w-full h-full pos-absolute",onPlay:ii,onPause:oi},null,544)]),J(v("div",wa,[v("span",null,F(y(n).notice),1)],512),[[ye,y(n).notice]]),v("canvas",{ref_key:"canvas",ref:m,width:"0",height:"0",class:"w-full h-full z-1 pos-absolute top-0"},null,512),J(v("div",{class:V(["pos-absolute bottom-0 left-0 right-0 px-4 py-2 gap-3 z-20 flex items-center bg-black bg-op-30",{"py-3":y(n).fullscreen||y(n).webscreen}]),onClick:w[5]||(w[5]=ne(()=>{},["stop"])),onDblclick:w[6]||(w[6]=ne(()=>{},["stop"]))},[v("div",{onClick:Wt,class:V(["hover:text-amber",y(n).paused?"i-ri-play-large-fill":"i-ri-pause-large-fill"])},null,2),v("div",{onClick:si,class:V(["hover:text-amber",y(n).follow?"i-ri-heart-fill":"i-ri-heart-line"])},null,2),v("div",{onClick:Gt,class:"i-ri-refresh-line hover:text-amber"}),v("img",{class:"w-1.5em cursor-pointer",onClick:w[2]||(w[2]=()=>y(E).canvasOpen=!y(E).canvasOpen),src:y(E).canvasOpen?y(js):y(Fs)},null,8,ya),w[33]||(w[33]=v("div",{class:"grow"},null,-1)),y(u).length?(I(),U("div",xa,[P(z,{active:y(n).qn,"onUpdate:active":w[3]||(w[3]=R=>y(n).qn=R),list:y(u)},null,8,["active","list"]),P(z,{active:y(n).line,"onUpdate:active":w[4]||(w[4]=R=>y(n).line=R),list:y(h)},null,8,["active","list"]),y(Mt)?ke("",!0):(I(),U("div",{key:0,class:V(["hover:text-amber ml-2",y(n).pictureInPicture?"i-ri-picture-in-picture-exit-line":"i-ri-picture-in-picture-2-line"]),onClick:ui},null,2))])):ke("",!0),v("div",{onClick:ni,class:"i-mdi-fit-to-screen hover:text-amber"}),v("div",{onClick:bs,class:V(["hover:text-amber",y(n).fullscreen?"i-ri-fullscreen-exit-fill":"i-ri-fullscreen-fill"])},null,2)],34),[[ye,y(n).showController]]),y(Mt)?J((I(),U("div",{key:0,class:V([{"py-3":y(n).fullscreen||y(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:w[11]||(w[11]=ne(()=>{},["stop"])),onDblclick:w[12]||(w[12]=ne(()=>{},["stop"]))},[v("div",_a,[v("div",{onClick:w[7]||(w[7]=R=>y(Us)(!1)),class:"i-ri-sun-line"}),v("div",null,F(y(ce)),1),v("div",{onClick:w[8]||(w[8]=R=>y(Us)(!0)),class:"i-ri-sun-fill"})]),J(v("div",{class:"flex-1 w-10 truncate text-center"},F((Xe=y(a))==null?void 0:Xe.title),513),[[ye,y(n).fullscreen]]),v("div",ka,[v("div",{onClick:w[9]||(w[9]=R=>y(_t)(!1)),class:"i-ri-volume-down-fill"}),v("div",null,F(y(ve)),1),v("div",{onClick:w[10]||(w[10]=R=>y(_t)(!0)),class:"i-ri-volume-up-fill"})])],34)),[[ye,y(n).showController]]):J((I(),U("div",ba,[v("div",{onClick:w[14]||(w[14]=ne(()=>{},["stop"])),onDblclick:w[15]||(w[15]=ne(()=>{},["stop"])),class:"top-50% left-4 flex items-center flex-col pos-absolute z-20",style:{transform:"translateY(-50%)"}},[v("div",null,F(y(ce)),1),P(N,{value:y(ce),"onUpdate:value":w[13]||(w[13]=R=>ze(ce)?ce.value=R:null),max:200,min:50},null,8,["value"]),v("div",{onClick:ne(pi,["stop"]),class:"i-ri-sun-line"})],32),v("div",{onClick:w[17]||(w[17]=ne(()=>{},["stop"])),onDblclick:w[18]||(w[18]=ne(()=>{},["stop"])),class:"top-50% right-4 flex items-center flex-col pos-absolute z-20",style:{transform:"translateY(-50%)"}},[nt(F(y(ve))+" ",1),P(N,{value:y(ve),"onUpdate:value":w[16]||(w[16]=R=>ze(ve)?ve.value=R:null),max:100,min:0},null,8,["value"]),v("div",{onClick:ne(vi,["stop"]),class:V(y(n).muted?"i-ri-volume-mute-line":"i-ri-volume-down-line")},null,2)],32)],512)),[[ye,y(n).showController]])],34)]),J(v("div",Sa,[v("div",Aa,[v("img",{src:(Ie=y(a))==null?void 0:Ie.avatar,alt:"",class:"w-8 h-8 rounded-4"},null,8,Ta),v("div",Ca,[v("div",Ia,F((xt=y(a))==null?void 0:xt.nickname),1),v("div",Ea,[v("img",{class:"w-4 h-4",src:A.$route.meta.site.icon},null,8,Ma),nt(" "+F(A.$route.meta.site.name)+" "+F((Pe=y(a))==null?void 0:Pe.category),1)])]),v("div",null,[w[34]||(w[34]=v("div",{class:"i-mdi-fire mx-1"},null,-1)),v("span",null,F((et=y(a))==null?void 0:et.online),1)])]),P(De,{grow:!0,onTabClick:ai,class:"!h-[calc(100%-3.75rem)]"},{default:Z(()=>[P(W,{title:"聊天",class:"pos-relative"},{default:Z(()=>{var R;return[v("div",Oa,[v("img",{onClick:w[20]||(w[20]=()=>y(E).sideOpen=!y(E).sideOpen),class:"w-1.5em cursor-pointer",src:y(E).sideOpen?y(js):y(Fs)},null,8,Ra),v("div",{onClick:B,class:"i-ri-delete-bin-3-line text-green-5"}),v("a",{class:"text-green-5",href:(R=y(a))==null?void 0:R.url,target:"_blank"},w[35]||(w[35]=[v("div",{class:"i-ri-link"},null,-1)]),8,Ba),v("div",{onClick:Fe,class:"i-ri-arrow-down-circle-line text-green-5"})]),v("div",{ref_key:"dm",ref:d,class:"scrolly h-full pl-2 box-border"},null,512)]}),_:1}),P(W,{title:"关注",class:"box-border px-4"},{default:Z(()=>[v("div",{onClick:ne(fi,["prevent"]),onDblclick:ne(hi,["prevent"])},[(I(!0),U(se,null,fe(y(x),R=>{var Cs,Is;return I(),U("a",{"data-id":R.roomId,"data-site":R.siteId,class:V([{"text-amber":((Cs=y(a))==null?void 0:Cs.siteId)==R.siteId&&((Is=y(a))==null?void 0:Is.roomId)==R.roomId},"flex items-center justify-between gap-2 py-2"]),key:`${R.siteId}/${R.roomId}`,href:`/${R.siteId}/play/${R.roomId}`},[v("div",Da,[J(v("img",Ua,null,512),[[Ne,R.avatar]]),v("div",null,F(y(On)[R.siteId]),1),v("div",null,F(R.nickname),1),v("div",{class:V(["inline-block w-3 h-3 rounded-3",[R.status?"bg-amber":"bg-red"]])},null,2),v("div",null,F(R.status?"直播中":"未开播"),1)]),v("div",{class:"i-mdi-heart-off-outline pos-relative w-6 h-6 hover:text-amber",onClick:gi=>mi(R.siteId,R.roomId,gi)},null,8,za)],10,La)}),128))],32)]),_:1}),P(W,{title:"设置",class:"px-2"},{default:Z(()=>[w[47]||(w[47]=v("div",{class:"p-3"},"弹幕",-1)),v("div",$a,[v("div",ja,[w[36]||(w[36]=v("div",null,"文字大小",-1)),P(ee,{value:y(E).canvasFontsize,"onUpdate:value":w[21]||(w[21]=R=>y(E).canvasFontsize=R),max:80,min:8,step:1},null,8,["value"])]),v("div",Fa,[w[37]||(w[37]=v("div",null,"上下间隔",-1)),P(ee,{value:y(E).canvasGap,"onUpdate:value":w[22]||(w[22]=R=>y(E).canvasGap=R),max:80,min:1,step:1},null,8,["value"])]),v("div",Na,[w[38]||(w[38]=v("div",null,"最大行数",-1)),P(ee,{value:y(E).canvasRows,"onUpdate:value":w[23]||(w[23]=R=>y(E).canvasRows=R),max:50,min:1,step:1},null,8,["value"])]),v("div",Pa,[w[39]||(w[39]=v("div",null,"弹幕速度",-1)),P(ee,{value:y(E).canvasSpeed,"onUpdate:value":w[24]||(w[24]=R=>y(E).canvasSpeed=R),max:32,min:.5,step:.5},null,8,["value"])]),v("div",Va,[w[40]||(w[40]=v("div",null,"弹幕透明",-1)),P(ee,{value:y(E).canvasOpacity,"onUpdate:value":w[25]||(w[25]=R=>y(E).canvasOpacity=R),max:100,min:10,step:10},null,8,["value"])]),v("div",Ha,[w[41]||(w[41]=v("div",null,"彩色弹幕",-1)),P(we,{value:y(E).canvasColorOpen,"onUpdate:value":w[26]||(w[26]=R=>y(E).canvasColorOpen=R)},null,8,["value"])])]),w[48]||(w[48]=v("div",{class:"p-3"},"聊天",-1)),v("div",Za,[v("div",Ga,[w[42]||(w[42]=v("div",null,"文字大小",-1)),P(ee,{value:y(E).sideFontsize,"onUpdate:value":w[27]||(w[27]=R=>y(E).sideFontsize=R),max:80,min:8,step:1},null,8,["value"])]),v("div",Wa,[w[43]||(w[43]=v("div",null,"上下间隔",-1)),P(ee,{value:y(E).sideGap,"onUpdate:value":w[28]||(w[28]=R=>y(E).sideGap=R),max:80,min:0,step:1},null,8,["value"])]),v("div",Ja,[w[44]||(w[44]=v("div",null,"自动清屏",-1)),P(ee,{value:y(E).sideClean,"onUpdate:value":w[29]||(w[29]=R=>y(E).sideClean=R),max:500,min:10,step:10},null,8,["value"])]),v("div",Qa,[w[45]||(w[45]=v("div",null,"彩色消息",-1)),P(we,{value:y(E).sideColorOpen,"onUpdate:value":w[30]||(w[30]=R=>y(E).sideColorOpen=R)},null,8,["value"])])]),w[49]||(w[49]=v("div",{class:"p-3"},"颜色",-1)),v("div",Ka,[(I(!0),U(se,null,fe(y(eo),R=>(I(),U("div",{onClick:di},[v("div",{class:"w-4 h-4 rounded-2 m-2 shadow cursor-pointer box-border","data-color":R,style:Ze(`background:${R};${y(E).colors.includes(R)?"box-shadow:0 0 0px 2px white":""}`)},null,12,Ya)]))),256))]),v("div",qa,[w[46]||(w[46]=nt("屏蔽 ")),P(we,{value:y(E).blockOpen,"onUpdate:value":w[31]||(w[31]=R=>y(E).blockOpen=R)},null,8,["value"])]),J(v("textarea",{class:"outline-none w-full text-white b b-solid b-gray-7 p-2 box-border bg-dark shadow rounded-1","onUpdate:modelValue":w[32]||(w[32]=R=>y(E).blockWords=R),rows:"5",placeholder:"以空格分隔"},null,512),[[it,y(E).blockWords,void 0,{trim:!0}]])]),_:1})]),_:1})],512),[[ye,y(He)]])])}}}),ec={class:"scrolly h-full box-border py-2"},tc={key:0,class:"flex justify-center flex-col gap-4 px-6 w-xs"},sc={class:"flex justify-between"},nc={class:"py-2 text-sm mr-4"},ic={class:"text-xl"},oc={class:"i-ri-refresh-line animate-spin ml-4"},lc={class:"flex justify-between"},rc={class:"py-2"},ac={class:"flex justify-between"},cc={class:"py-2"},uc={key:1,class:"flex flex-col justify-center items-center h-80vh"},dc={class:"w-60% max-w-xs justify-center items-center flex flex-col gap-4"},fc={class:"pos-relative w-full"},hc={class:"pos-relative w-full"},pc=["placeholder"],vc=X({__name:"user",setup(s){const t=D("signin"),e=Te({email:"",password:"",code:"",info:{}}),l=()=>{let O=!0;Wi(e.email)||(O=!1,ot.warning("邮箱不合法!")),t.value!="signin"&&!/^[0-9]{4}$/.test(e.code)&&(O=!1,ot.warning("验证码不合法!")),O&&Ds(t.value,{...e}).then(b=>{Yt.value=b.user,lt.value=b.token,Oe("user",b.user),Oe("token",b.token)})},n=D(-1);let i;const c=()=>{n.value==-1&&(n.value=30,clearInterval(i),i=setInterval(()=>{n.value--,n.value<=-1&&clearInterval(i)},1e3),Ds("sendcode",{type:t.value,email:e.email}).then(O=>{O&&ot.success(O)}))},r=D([]),d=D(!1),a=()=>setTimeout(()=>d.value=!1,300),u=()=>{d.value||(d.value=!0,Yi(rt[0].list.value).then(O=>{r.value=rt[0].list.value}).finally(a))},h=()=>{d.value||(d.value=!0,qi().then(O=>{console.log(O),r.value=O}).finally(a))},p=()=>{d.value||(d.value=!0,r.value.forEach(O=>Rt(O)),a())},x=()=>{d.value||(d.value=!0,Xi(),r.value.forEach(O=>Rt(O)),a())},T=()=>{Yt.value=void 0,lt.value=void 0,localStorage.removeItem("user"),localStorage.removeItem("token")};return(O,b)=>(I(),U("div",ec,[y(lt)?(I(),U("div",tc,[b[6]||(b[6]=v("div",{class:"text-xl"},"账号",-1)),v("div",sc,[v("div",nc,F(y(Yt).email),1),v("div",{onClick:T,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"登出")]),v("div",ic,[b[5]||(b[5]=nt("同步")),J(v("div",oc,null,512),[[ye,y(d)]])]),v("div",lc,[v("div",rc,"本地 "+F(y(rt)[0].list.value.length),1),v("div",{class:"flex"},[v("div",{onClick:p,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4 mx-4"},"合并"),v("div",{onClick:x,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"覆盖")])]),v("div",ac,[v("div",cc,"云端 "+F(y(r).length),1),v("div",{class:"flex"},[v("div",{onClick:h,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4 mx-4"},"拉取"),v("div",{onClick:u,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"推送")])]),b[7]||(b[7]=v("div",{class:"text-xl"},"支持",-1)),b[8]||(b[8]=v("div",{class:"flex justify-between"},[v("img",{class:"h-50",src:"https://i0.hdslb.com/bfs/article/828b4686d0bcd7a427939b1f121f322898845873.png@1e_1c.webp"}),v("img",{class:"h-50",src:"https://i0.hdslb.com/bfs/article/d07b5e8cbae76f0fc38a8049c433d3d598845873.jpg@1e_1c.webp"})],-1))])):(I(),U("div",uc,[v("div",dc,[b[12]||(b[12]=v("div",{class:"text-2xl font-bold"},"Lemon live",-1)),v("div",fc,[J(v("input",{class:"md:text-4 box-border w-full py-2.5 pl-12 pr-13 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-0",type:"text","onUpdate:modelValue":b[0]||(b[0]=C=>y(e).email=C),placeholder:"请输入邮箱"},null,512),[[it,y(e).email,void 0,{trim:!0}]]),b[9]||(b[9]=v("div",{class:"i-ri-mail-line pos-absolute left-4 top-2 bg-gray"},null,-1))]),v("div",hc,[J(v("input",{class:"md:text-4 box-border w-full py-2.5 pl-12 pr-13 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-0",type:"text","onUpdate:modelValue":b[1]||(b[1]=C=>y(e).password=C),placeholder:`请输入${y(t)=="resetpassword"?"新":""}密码`},null,8,pc),[[it,y(e).password,void 0,{trim:!0}]]),b[10]||(b[10]=v("div",{class:"i-ri-lock-password-line pos-absolute left-4 top-2 bg-gray"},null,-1))]),v("div",{class:V(["pos-relative w-full",[y(t)=="signin"?"w-0 h-0 overflow-hidden ":"w-full"]])},[J(v("input",{class:"md:text-4 box-border w-full py-2.5 pl-12 pr-13 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-0",type:"text","onUpdate:modelValue":b[2]||(b[2]=C=>y(e).code=C),placeholder:"请输入验证码"},null,512),[[it,y(e).code,void 0,{trim:!0}]]),b[11]||(b[11]=v("div",{class:"i-ri-circle-line pos-absolute left-4 top-2 bg-gray"},null,-1)),v("div",{class:"pos-absolute right-4 top-2 cursor-pointer h-full hover:text-green",onClick:c},F(y(n)==-1?"获取":y(n)),1)],2),v("div",{class:"text-sm text-gray cursor-pointer",onClick:b[3]||(b[3]=()=>t.value="resetpassword")},"忘记密码?"),v("div",{onClick:l,class:"cursor-pointer text-black bg-green-5 hover:bg-green-7 py-2 px-12 rounded-4"},F(y(t)=="signup"?"注册":"登录"),1),v("div",{class:"cursor-pointer py-2 px-12 rounded-4 hover:text-green",onClick:b[4]||(b[4]=()=>t.value=y(t)!="signup"?"signup":"signin")},"去"+F(y(t)!="signup"?"注册":"登录"),1)])]))]))}}),mc={},gc={"h-full":"",flex:"","justify-center":"","items-center":""};function wc(s,t){return I(),U("div",gc,t[0]||(t[0]=[v("div",{"text-center":"","text-8":"","line-height-8":""},[v("div",{"font-900":""},"404"),v("div",{"mt-4":""},"页面未找到")],-1)]))}const yc=In(mc,[["render",wc]]);async function tt(s){const{siteid:t,id:e}=s.params,l=G.findIndex(n=>n.id==t);return l==-1?{name:"404"}:(s.meta.site=G[l],s.meta.id=e,s.meta.index=l,te.value=l,!0)}const xc=to({history:so(),routes:[{path:"/",redirect:()=>`/${Ge[te.value]}`},{path:"/follow",component:ul},{path:"/user",component:vc},{path:"/category",redirect:()=>`/${Ge[te.value]}/category`},{path:"/search",redirect:()=>`/${Ge[te.value]}/search`},{path:"/:siteid",component:dl,beforeEnter:tt},{path:"/:siteid/category",component:Po,beforeEnter:tt},{path:"/:siteid/category/:id",component:Io,beforeEnter:tt},{path:"/:siteid/play/:id",component:Xa,beforeEnter:tt},{path:"/:siteid/search",component:Jo,beforeEnter:tt},{path:"/:pathMatch(.*)*",name:"404",component:yc}]}),_c={install(s){s.directive("lazy",{mounted(t,e){t.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJtMi4yNSAxNS43NWw1LjE1OS01LjE1OWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGw1LjE1OSA1LjE1OW0tMS41LTEuNWwxLjQwOS0xLjQwOWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGwyLjkwOSAyLjkwOW0tMTggMy43NWgxNi41YTEuNSAxLjUgMCAwIDAgMS41LTEuNVY2YTEuNSAxLjUgMCAwIDAtMS41LTEuNUgzLjc1QTEuNSAxLjUgMCAwIDAgMi4yNSA2djEyYTEuNSAxLjUgMCAwIDAgMS41IDEuNW0xMC41LTExLjI1aC4wMDh2LjAwOGgtLjAwOHptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwYS4zNzUuMzc1IDAgMCAxIC43NSAwIi8+PC9zdmc+";const l=new IntersectionObserver(n=>{Zi(n,i=>{if(i.isIntersecting){const c=new Image;c.src=e.value,c.onload=()=>t.src=e.value,l.unobserve(i.target)}})});l.observe(t)}})}},ti=xi(ro);ti.use(xc).use(_c);ti.mount("#app");
|