lemon-mse 0.3.7 → 0.3.9
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/flv.d.ts +638 -0
- package/dist/flv.js +7 -24
- package/dist/hls.d.ts +3 -0
- package/dist/hls.js +26 -31
- package/dist/hls_.d.ts +3718 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +33 -37
- package/dist/lemon/index-CfUqUxGr.js +3 -0
- package/dist/lemon/logo-Ch3azj_E.svg +1 -0
- package/package.json +6 -33
- package/dist/es/a.d.ts +0 -3105
- package/dist/es/flv.d.ts +0 -587
- package/dist/es/flv.js +0 -6
- package/dist/es/hls.d.ts +0 -3
- package/dist/es/hls.js +0 -14
- package/dist/es/index.d.ts +0 -4
- package/dist/es/index.js +0 -19
- package/dist/lemon.js +0 -1
- /package/dist/{lemon.css → lemon/index-DRP1g3d_.css} +0 -0
- /package/dist/{webmssdk.es5.js → lemon/webmssdk.es5.js} +0 -0
package/dist/lemon.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
var gi=Object.defineProperty;var wi=(s,t,e)=>t in s?gi(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var Y=(s,t,e)=>wi(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 yi=Vue.createApp,p=Vue.createElementVNode,T=Vue.openBlock,D=Vue.createElementBlock,U=Vue.ref,Te=Vue.reactive,Qe=Vue.watchEffect,J=Vue.computed,X=Vue.defineComponent,k=Vue.unref,fe=Vue.renderList,se=Vue.Fragment,H=Vue.normalizeClass,Ot=Vue.resolveComponent,G=Vue.withCtx,P=Vue.createVNode,ye=Vue.vShow,Q=Vue.withDirectives,at=Vue.resolveDynamicComponent,K=Vue.createBlock,xi=Vue.KeepAlive,_e=Vue.createCommentVNode,Je=Vue.onMounted,ve=Vue.watch,$e=Vue.isRef,Rt=Vue.vModelText,ki=Vue.withKeys,N=Vue.toDisplayString,Sn=Vue.onActivated,Ut=Vue.resolveDirective,Ze=Vue.normalizeStyle,ne=Vue.withModifiers,Et=Vue.createTextVNode,_i=Vue.shallowRef,Kt=Vue.nextTick,jt=Vue.onBeforeUnmount,bi=Vue.h,Si=Vue.onDeactivated,Ai=Vue.onUnmounted,ft=Vue.useModel,vs=Vue.useSlots,An=Vue.render,Ti=Vue.Transition,ct=Vue.mergeModels,Ci=Vue.renderSlot,Ii=Vue.provide,Ei=Vue.inject,Mi=Vue.getCurrentInstance;var Yt={exports:{}},Is;function Oi(){return Is||(Is=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,v=a.length;h<v;h++){var y=a.charCodeAt(h);u[h*2]=y>>>8,u[h*2+1]=y%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 v=[];return a.forEach(function(y){v.push(e(y))}),r.decompress(v.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,v,y={},b={},C="",E="",I="",B=2,S=3,_=2,x=[],m=0,f=0,g;for(g=0;g<d.length;g+=1)if(C=d.charAt(g),Object.prototype.hasOwnProperty.call(y,C)||(y[C]=S++,b[C]=!0),E=I+C,Object.prototype.hasOwnProperty.call(y,E))I=E;else{if(Object.prototype.hasOwnProperty.call(b,I)){if(I.charCodeAt(0)<256){for(h=0;h<_;h++)m=m<<1,f==a-1?(f=0,x.push(u(m)),m=0):f++;for(v=I.charCodeAt(0),h=0;h<8;h++)m=m<<1|v&1,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=v>>1}else{for(v=1,h=0;h<_;h++)m=m<<1|v,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=0;for(v=I.charCodeAt(0),h=0;h<16;h++)m=m<<1|v&1,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=v>>1}B--,B==0&&(B=Math.pow(2,_),_++),delete b[I]}else for(v=y[I],h=0;h<_;h++)m=m<<1|v&1,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=v>>1;B--,B==0&&(B=Math.pow(2,_),_++),y[E]=S++,I=String(C)}if(I!==""){if(Object.prototype.hasOwnProperty.call(b,I)){if(I.charCodeAt(0)<256){for(h=0;h<_;h++)m=m<<1,f==a-1?(f=0,x.push(u(m)),m=0):f++;for(v=I.charCodeAt(0),h=0;h<8;h++)m=m<<1|v&1,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=v>>1}else{for(v=1,h=0;h<_;h++)m=m<<1|v,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=0;for(v=I.charCodeAt(0),h=0;h<16;h++)m=m<<1|v&1,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=v>>1}B--,B==0&&(B=Math.pow(2,_),_++),delete b[I]}else for(v=y[I],h=0;h<_;h++)m=m<<1|v&1,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=v>>1;B--,B==0&&(B=Math.pow(2,_),_++)}for(v=2,h=0;h<_;h++)m=m<<1|v&1,f==a-1?(f=0,x.push(u(m)),m=0):f++,v=v>>1;for(;;)if(m=m<<1,f==a-1){x.push(u(m));break}else f++;return x.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=[],v=4,y=4,b=3,C="",E=[],I,B,S,_,x,m,f,g={val:u(0),position:a,index:1};for(I=0;I<3;I+=1)h[I]=I;for(S=0,x=Math.pow(2,2),m=1;m!=x;)_=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(_>0?1:0)*m,m<<=1;switch(S){case 0:for(S=0,x=Math.pow(2,8),m=1;m!=x;)_=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(_>0?1:0)*m,m<<=1;f=e(S);break;case 1:for(S=0,x=Math.pow(2,16),m=1;m!=x;)_=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(_>0?1:0)*m,m<<=1;f=e(S);break;case 2:return""}for(h[3]=f,B=f,E.push(f);;){if(g.index>d)return"";for(S=0,x=Math.pow(2,b),m=1;m!=x;)_=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(_>0?1:0)*m,m<<=1;switch(f=S){case 0:for(S=0,x=Math.pow(2,8),m=1;m!=x;)_=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(_>0?1:0)*m,m<<=1;h[y++]=e(S),f=y-1,v--;break;case 1:for(S=0,x=Math.pow(2,16),m=1;m!=x;)_=g.val&g.position,g.position>>=1,g.position==0&&(g.position=a,g.val=u(g.index++)),S|=(_>0?1:0)*m,m<<=1;h[y++]=e(S),f=y-1,v--;break;case 2:return E.join("")}if(v==0&&(v=Math.pow(2,b),b++),h[f])C=h[f];else if(f===y)C=B+B.charAt(0);else return null;E.push(C),h[y++]=B+C.charAt(0),v--,B=C,v==0&&(v=Math.pow(2,b),b++)}}};return r}();s!=null?s.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Yt)),Yt.exports}var $t=Oi();function Es(s){var t;typeof s.remove<"u"?s.remove():(t=s.parentNode)==null||t.removeChild(s)}function Ri(s,t,e,l={}){const n=bi(s,t,l),i=document.createElement("div");return i.classList.add("v-toast--pending"),e.appendChild(i),An(n,i),n.component}class Bi{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 Li(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=Li(),Tn=(s,t)=>{const e=s.__vccOpts||s;for(const[l,n]of t)e[l]=n;return e},Di=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;An(null,s),Es(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),Es(s),this.isActive=!0,this.duration&&(this.timer=new Bi(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)}}),Ui=["innerHTML"];function ji(s,t,e,l,n,i){return T(),K(Ti,{"enter-active-class":s.transition.enter,"leave-active-class":s.transition.leave},{default:G(()=>[Q(p("div",{ref:"root",role:"alert",class:H(["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]=p("div",{class:"v-toast__icon"},null,-1)),p("p",{class:"v-toast__text",innerHTML:s.message},null,8,Ui)],34),[[ye,s.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}const $i=Tn(Di,[["render",ji]]),zi=(s={})=>({open(t){let e=null;typeof t=="string"&&(e=t);const n=Object.assign({},{message:e},s,t);return{dismiss:Ri($i,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 wn,yn,xn,kn,_n,bn;const Ms=((wn=typeof globalThis<"u"?globalThis:void 0)==null?void 0:wn.crypto)||((yn=typeof global<"u"?global:void 0)==null?void 0:yn.crypto)||((xn=typeof window<"u"?window:void 0)==null?void 0:xn.crypto)||((kn=typeof self<"u"?self:void 0)==null?void 0:kn.crypto)||((bn=(_n=typeof frames<"u"?frames:void 0)==null?void 0:_n[0])==null?void 0:bn.crypto);let as;Ms?as=s=>{const t=[];for(let e=0,l;e<s;e+=4)t.push(Ms.getRandomValues(new Uint32Array(1))[0]);return new Oe(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 Oe(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 Oe 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=Fi){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(Oe,"random",as);const Fi={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 Oe(e,t/2)}},Os={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 Oe(e,t)}},Cn={stringify(s){try{return decodeURIComponent(escape(Os.stringify(s)))}catch{throw new Error("Malformed UTF-8 data")}},parse(s){return Os.parse(unescape(encodeURIComponent(s)))}};class Ni extends zt{constructor(){super(),this._minBufferSize=0}reset(){this._data=new Oe,this._nDataBytes=0}_append(t){let e=t;typeof e=="string"&&(e=Cn.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 Oe(e,u)}clone(){const t=super.clone.call(this);return t._data=this._data.clone(),t}}class In extends Ni{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 Pi(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 Pi extends zt{constructor(t,e){super();const l=new t;this._hasher=l;let n=e;typeof n=="string"&&(n=Cn.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 O=[];for(let s=0;s<64;s+=1)O[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 Vi extends In{_doReset(){this._hash=new Oe([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(t,e){const l=t;for(let z=0;z<16;z+=1){const $=e+z,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],v=l[e+7],y=l[e+8],b=l[e+9],C=l[e+10],E=l[e+11],I=l[e+12],B=l[e+13],S=l[e+14],_=l[e+15];let x=n[0],m=n[1],f=n[2],g=n[3];x=oe(x,m,f,g,i,7,O[0]),g=oe(g,x,m,f,c,12,O[1]),f=oe(f,g,x,m,r,17,O[2]),m=oe(m,f,g,x,d,22,O[3]),x=oe(x,m,f,g,a,7,O[4]),g=oe(g,x,m,f,u,12,O[5]),f=oe(f,g,x,m,h,17,O[6]),m=oe(m,f,g,x,v,22,O[7]),x=oe(x,m,f,g,y,7,O[8]),g=oe(g,x,m,f,b,12,O[9]),f=oe(f,g,x,m,C,17,O[10]),m=oe(m,f,g,x,E,22,O[11]),x=oe(x,m,f,g,I,7,O[12]),g=oe(g,x,m,f,B,12,O[13]),f=oe(f,g,x,m,S,17,O[14]),m=oe(m,f,g,x,_,22,O[15]),x=le(x,m,f,g,c,5,O[16]),g=le(g,x,m,f,h,9,O[17]),f=le(f,g,x,m,E,14,O[18]),m=le(m,f,g,x,i,20,O[19]),x=le(x,m,f,g,u,5,O[20]),g=le(g,x,m,f,C,9,O[21]),f=le(f,g,x,m,_,14,O[22]),m=le(m,f,g,x,a,20,O[23]),x=le(x,m,f,g,b,5,O[24]),g=le(g,x,m,f,S,9,O[25]),f=le(f,g,x,m,d,14,O[26]),m=le(m,f,g,x,y,20,O[27]),x=le(x,m,f,g,B,5,O[28]),g=le(g,x,m,f,r,9,O[29]),f=le(f,g,x,m,v,14,O[30]),m=le(m,f,g,x,I,20,O[31]),x=re(x,m,f,g,u,4,O[32]),g=re(g,x,m,f,y,11,O[33]),f=re(f,g,x,m,E,16,O[34]),m=re(m,f,g,x,S,23,O[35]),x=re(x,m,f,g,c,4,O[36]),g=re(g,x,m,f,a,11,O[37]),f=re(f,g,x,m,v,16,O[38]),m=re(m,f,g,x,C,23,O[39]),x=re(x,m,f,g,B,4,O[40]),g=re(g,x,m,f,i,11,O[41]),f=re(f,g,x,m,d,16,O[42]),m=re(m,f,g,x,h,23,O[43]),x=re(x,m,f,g,b,4,O[44]),g=re(g,x,m,f,I,11,O[45]),f=re(f,g,x,m,_,16,O[46]),m=re(m,f,g,x,r,23,O[47]),x=ae(x,m,f,g,i,6,O[48]),g=ae(g,x,m,f,v,10,O[49]),f=ae(f,g,x,m,S,15,O[50]),m=ae(m,f,g,x,u,21,O[51]),x=ae(x,m,f,g,I,6,O[52]),g=ae(g,x,m,f,d,10,O[53]),f=ae(f,g,x,m,C,15,O[54]),m=ae(m,f,g,x,c,21,O[55]),x=ae(x,m,f,g,y,6,O[56]),g=ae(g,x,m,f,_,10,O[57]),f=ae(f,g,x,m,h,15,O[58]),m=ae(m,f,g,x,B,21,O[59]),x=ae(x,m,f,g,a,6,O[60]),g=ae(g,x,m,f,E,10,O[61]),f=ae(f,g,x,m,r,15,O[62]),m=ae(m,f,g,x,b,21,O[63]),n[0]=n[0]+x|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 Rs=In._createHelper(Vi),Ft=(s,t)=>{let e=-1;const l=s.length,n=new Array(l);for(;++e<l;)n[e]=t(s[e]);return n},Hi=(s,t)=>{let e=-1;const l=s.length;for(;++e<l;)t(s[e])},Gi=s=>{if(s.scrollTop>0)return!0;s.scrollTop=1;const t=!!s.scrollTop;return s.scrollTop=0,t},Zi=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)},Bs=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=Rs(`${d}|tars_mp|102`).toString();return`&wsSecret=${Rs([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`},Wi=window.location.origin+"/api/",Qi="https://lemonlive66.deno.dev/api/",be=(s,t,e)=>(s=="douyin"&&(e?e.cookie=ge[s]:e={cookie:ge[s]}),En(`${t!="getCategories"&&window.location.origin.endsWith(".pages.dev")&&(s=="bilibili"||s=="douyu"&&t=="getRoomDetail")?Qi:Wi}${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 Zi(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}))},Nt=(s,t)=>En(`https://lemonlive999.deno.dev/${s}`,{method:"POST",body:JSON.stringify(t)}),Ji=s=>Nt("sync",{follows:$t.compressToBase64(JSON.stringify(s)),token:je.value}),Ki=()=>Nt("sync",{get:!0,token:je.value}).then(s=>JSON.parse($t.decompressFromBase64(s))),Yi=s=>Nt("sign",s),qi=s=>Nt("reset",s),ot=zi({duration:3e3,position:"top"}),En=(s,t)=>fetch(s,t).then(async e=>{let l=await e.text();return l=JSON.parse($t.decompressFromBase64(l)),l.code!=200?(console.log(l.msg),ot.error(l.msg),Promise.reject(l.msg)):l.data},e=>{ot.error("请求异常!")});U(!0);const Mn={huya:"虎牙",bilibili:"哔哩",douyu:"斗鱼",douyin:"抖音"},Z=[{name:"虎牙直播",icon:"https://www.huya.com/favicon.ico",id:"huya",categories:U([]),categoryActive:U(0),recommend:{page:1,hasMore:!0,list:U([])},search:{page:1,hasMore:!0,list:U([])},follows:Te(kt("huya"))},{name:"斗鱼直播",icon:"https://www.douyu.com/favicon.ico",id:"douyu",categories:U([]),categoryActive:U(0),recommend:{page:1,hasMore:!0,list:U([])},search:{page:1,hasMore:!0,list:U([])},follows:Te(kt("douyu"))},{name:"抖音直播",icon:"https://www.douyin.com/favicon.ico",id:"douyin",categories:U([]),categoryActive:U(0),recommend:{page:1,hasMore:!0,list:U([])},search:{page:1,hasMore:!0,list:U([])},follows:Te(kt("douyin"))},{name:"哔哩直播",icon:"https://www.bilibili.com/favicon.ico",id:"bilibili",categories:U([]),categoryActive:U(0),recommend:{page:1,hasMore:!0,list:U([])},search:{page:1,hasMore:!0,list:U([])},follows:Te(kt("bilibili"))}],We=["huya","douyu","douyin","bilibili"],pe=U(Be("volume",100)),ce=U(Be("brightness",100)),xt=s=>{pe.value=s?Math.min(100,pe.value+5):Math.max(0,pe.value-5)},Ls=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 Bt(s){const t=Z.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=Z.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(){Z.forEach(s=>{for(const t in s.follows)delete s.follows[t];localStorage.removeItem("follows-"+s.id)})}async function Ds(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 M=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:""}));Qe(()=>{Ce("dm-settings",M)});function Be(s,t){const e=localStorage.getItem(s);return e?JSON.parse(e):t}function Ce(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"],Us=J(()=>M.blockWords.length==0?[]:M.blockWords.split(" ").map(s=>new RegExp(s))),ge=Te(Be("cookies",{}));Qe(()=>Ce("cookies",ge));const te=U(0),Ge=U(Be("show-chat",!0)),it=U(Be("show-aside",!0));Qe(()=>Ce("show-chat",Ge.value));Qe(()=>Ce("show-aside",it.value));const st=U(Be("user",{})),je=U(Be("token","")),lt=Ft(Z,s=>({name:s.name,list:J(()=>Object.values(s.follows).sort(t=>t.status?-1:0))}));lt.unshift({name:"全部",list:J(()=>Z.map(s=>Object.values(s.follows)).flat().sort(s=>s.status?-1:0))});const to=VueRouter.createRouter,so=VueRouter.createWebHistory,ps=VueRouter.useRoute,Pt=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=U(!0);Je(()=>{document.querySelector("main").style.height=`calc(${window.innerHeight}px - 3.5rem)`,setTimeout(()=>e.value=!1,5e3)});const l=ps();return ve(l,()=>{const n=l.params.siteid;if(n==null)return;const i=We.findIndex(c=>c==n);i!=-1&&(te.value=i)}),Qe(()=>{document.querySelectorAll(".v-toast").forEach(n=>{n.style.left=it?"70px":"0"})}),(n,i)=>{const c=Ot("router-link"),r=Ot("router-view");return T(),D(se,null,[Q(p("div",io,[(T(),D(se,null,fe(t,d=>P(c,{to:d.link,class:H(["hover:text-amber rounded-2 py-2 px-4 m-2",{"text-amber":n.$route.path==d.link}])},{default:G(()=>[p("div",{class:H(d.icon)},null,2)]),_:2},1032,["to","class"])),64))],512),[[ye,k(it)]]),p("main",{class:H(["md:!h-100vh mx-2 md:mx-0 pt-2 box-border",{"md:ml-17.5":k(it),"!h-100vh":!k(it)}])},[p("div",oo,[P(r,null,{default:G(({Component:d})=>[(T(),K(xi,{exclude:["play"]},[(T(),K(at(d)))],1024))]),_:1})])],2),k(e)?(T(),D("iframe",lo)):_e("",!0)],64)}}}),ao=s=>{const t=U(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=U();return Je(()=>{s.value&&(e.value=fo(s.value,t))}),e}const vo={key:0,class:"text-center"},po={key:1,class:"text-center"},Vt=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=U(0),[n,i]=ao("normal"),c=U(),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&&v()};Je(()=>{e.immediate&&v(),r.value.addEventListener("scroll",a,{passive:!0})}),Sn(()=>{r.value.scrollTop=l.value,r.value.addEventListener("scroll",a)});const u=()=>{r.value.removeEventListener("scroll",a)};Si(u),jt(u);let h;const v=()=>{i("loading"),d("load",i),clearTimeout(h),h=setTimeout(()=>{Gi(r.value)||d("load",i)},2e3)};return(y,b)=>(T(),D("div",{ref_key:"root",ref:c,class:"h-full select-none"},[Ci(y.$slots,"default"),k(n)=="loading"?(T(),D("div",vo,"加载中...")):k(n)=="finshed"?(T(),D("div",po,N(e.finshedText),1)):k(n)=="loaderror"?(T(),D("div",{key:2,class:"text-center cursor-pointer",onClick:v},N(e.errorText),1)):_e("",!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"},ko={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"},bo={class:"px-2 text-truncate leading-normal pb-2"},ms=X({__name:"rooms",props:{list:{}},setup(s){let t;const e=Pt(),l=U(),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=Ut("lazy");return r.list.value.length>0?(T(),D("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"])},[(T(!0),D(se,null,fe(r.list.value,u=>(T(),D("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"},[p("div",go,[Q(p("img",wo,null,512),[[a,u.cover]]),p("div",yo,N(u.category),1),p("div",xo,[d[0]||(d[0]=p("div",{class:"i-mdi-fire"},null,-1)),p("span",null,N(u.online),1)]),u.status?_e("",!0):(T(),D("div",ko," 未开播 "))]),p("div",_o,N(u.title),1),p("div",bo,N(u.nickname),1)],8,mo))),128))],544)):_e("",!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=ps(),e=U(""),l=U(),n={list:U([]),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(v=>{if(n.list.value=n.list.value.concat(v.list),n.hasMore=v.hasMore,ge[u.id]||(ge[u.id]=v.cookie),!v.hasMore)return a("finshed");n.page++,a("normal")},v=>{e.value=v,a("loaderror")})},c=U(!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 Ds(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}),Sn(function(){d!=t.fullPath&&(d=t.fullPath,Ds(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 y;const h=ms,v=Vt;return T(),D("div",So,[p("div",Ao,[p("div",{onClick:u[0]||(u[0]=(...b)=>a.$router.back&&a.$router.back(...b)),class:"i-ri-arrow-left-line hover:text-amber absolute left-2"}),p("div",{onClick:r,class:H(["i-ri-refresh-line hover:text-amber absolute right-4 md:right-unset md:left-12",{"animate-spin":k(c)}])},null,2),p("span",To,N(`${(y=k(t).meta.site)==null?void 0:y.name} ${k(e)==null?"分区不存在":k(e)==""?"加载中":k(e)}`),1)]),k(e)?(T(),D("div",Co,[(T(),K(v,{key:k(d),onLoad:i},{default:G(()=>[P(h,{list:n.list},null,8,["list"])]),_:1}))])):_e("",!0)])}}}),On=Symbol("tabs"),Eo=(s,t)=>{const e=Te([]);return Ii(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},Rn=s=>{const t=Ei(s);if(t==null)return{parent:t,index:U(-1)};const e=Mi(),{link:l,unlink:n,children:i}=t;l(e),Ai(()=>n(e));const c=J(()=>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"},ht=X({__name:"tabs",props:ct({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:ct(["tabClick"],["update:active"]),setup(s,{emit:t}){const e=ft(s,"active"),l=s,n=t,i=a=>{e.value=a,n("tabClick",a)},c=Eo(On,{active:e,props:l}),r=J(()=>Ft(c,a=>a.title)),d=vs();return(a,u)=>{const h=Ot("router-link");return T(),D("div",Mo,[p("div",Oo,[p("div",{class:H(["flex p1 sm:gap-1 text-center h-8 box-border lg:justify-center scrollx",[k(c).length>5||a.grow?"":a.justify]])},[l.link?(T(!0),D(se,{key:0},fe(k(r),(v,y)=>(T(),K(h,{class:H(["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==y,grow:a.grow}]),to:k(c)[y].href},{default:G(()=>[Et(N(v),1)]),_:2},1032,["class","to"]))),256)):(T(!0),D(se,{key:1},fe(k(r),(v,y)=>(T(),D("a",{class:H(["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==y,grow:a.grow}]),onClick:b=>i(y)},N(v),11,Ro))),256))],2)]),p("div",Bo,[(T(),K(at(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=U(!1),{parent:l,children:n,index:i}=Rn(Lo),c=vs(),r=t,d=J(()=>(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=J(()=>d.value||e.value||!(l!=null&&l.props.lazy)?c.default:null);return(u,h)=>Q((T(),D("div",Do,[(T(),K(at(k(a))))],512)),[[ye,k(d)]])}}),jo={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=U(!1),i=vs(),{parent:c,index:r,children:d}=Rn(On),a=e,u=J(()=>(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=J(()=>u.value||c!=null&&c.props.swipeable||n.value||!(c!=null&&c.props.lazy)?i.default:null);return t({title:l.title}),(v,y)=>{var C,E;const b=Uo;return Q((T(),D("div",jo,[(C=k(c))!=null&&C.props.swipeable?(T(),K(b,{key:0},{default:G(()=>[(T(),K(at(k(h))))]),_:1})):(T(),K(at(k(h)),{key:1}))],512)),[[ye,k(u)||((E=k(c))==null?void 0:E.props.swipeable)]])}}}),$o={key:0,class:"text-center"},zo={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=J(()=>Z[te.value].id),e=U(),l=n=>{Z[n].categories.value.length||(e.value="加载中...",be(t.value,"getCategories").then(i=>{e.value=null,Z[n].categories.value=i},i=>e.value=i))};return(n,i)=>{const c=Ot("router-link"),r=vt,d=ht,a=Ut("lazy");return T(),K(d,{active:k(te),"onUpdate:active":i[0]||(i[0]=u=>$e(te)?te.value=u:null),link:!0,class:"pt-1"},{default:G(()=>[(T(!0),D(se,null,fe(k(Z),u=>(T(),K(r,{title:u.name,href:`/${u.id}/category`,onInited:l,key:u.id},{default:G(()=>[k(e)?(T(),D("div",$o,N(k(e)),1)):(T(),K(d,{key:1,active:u.categoryActive.value,"onUpdate:active":h=>u.categoryActive.value=h},{default:G(()=>[(T(!0),D(se,null,fe(u.categories.value,h=>(T(),K(r,{title:h.name,key:h.id},{default:G(()=>[p("div",zo,[(T(!0),D(se,null,fe(h.list,v=>(T(),K(c,{to:`/${u.id}/category/${v.cid}`,class:"cursor-pointer"},{default:G(()=>[Q(p("img",Fo,null,512),[[a,v.pic]]),p("div",No,N(v.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"},Go={class:"h-[calc(100%-3rem)]"},Zo={key:1},Wo={key:1},Qo=X({__name:"search",setup(s){const t=U(""),e=J(()=>Z[te.value]),l=U(),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(v=>{u.list.value=v.list,u.hasMore=v.hasMore,u.page+=1,l.value="finished",ge[h]||(ge[h]=v.cookie)},v=>l.value=v)},i=u=>{const h=e.value.search,v=e.value.id;u("loading"),be(v,"searchRooms",{page:h.page,kw:t.value}).then(y=>{if(h.list.value=h.list.value.concat(y.list),h.hasMore=y.hasMore,ge[v]||(ge[v]=y.cookie),!h.hasMore)return u("finshed");h.page+=1,u("normal")},y=>{u("loaderror")})},c=u=>{r.push(`/${We[u]}/search`),!d()&&Z[u].search.page==1&&n()},r=Pt(),d=()=>{if(t.value)return/^[\d]*$/.test(t.value)?(r.push(`/play/${e.value.id}/${t.value}`),!0):!1},a=()=>{d()||(Z.forEach(u=>u.search.page=1),n())};return(u,h)=>{const v=ms,y=Vt,b=vt,C=ht;return T(),D(se,null,[p("div",Vo,[p("div",Ho,[Q(p("input",{class:"md:text-4 box-border w-full py-2.5 pl-3 pr-9 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-0",type:"text","onUpdate:modelValue":h[0]||(h[0]=E=>$e(t)?t.value=E:null),onKeydown:ki(a,["enter"]),placeholder:"请输入房间号或关键字"},null,544),[[Rt,k(t),void 0,{trim:!0}]]),p("div",{class:"i-ri-search-line top-50% absolute right-3",onClick:a,style:{transform:"translateY(-50%)"}})])]),p("div",Go,[P(C,{active:k(te),"onUpdate:active":h[1]||(h[1]=E=>$e(te)?te.value=E:null),onTabClick:c},{default:G(()=>[(T(!0),D(se,null,fe(k(Z),E=>(T(),K(b,{title:E.name,key:E.id},{default:G(()=>[k(l)=="finished"?(T(),D(se,{key:0},[E.search.list.value.length?(T(),K(y,{key:0,onLoad:i},{default:G(()=>[P(v,{list:E.search.list},null,8,["list"])]),_:2},1024)):(T(),D("div",Zo," 什么也没有找到 "))],64)):(T(),D("div",Wo,N(k(l)),1))]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])],64)}}}),Jo=["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=Pt(),l=U(),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=Ut("lazy");return r.list.value.length>0?(T(),D("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"])},[(T(!0),D(se,null,fe(r.list.value,u=>(T(),D("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"},[p("div",Ko,[Q(p("img",Yo,null,512),[[a,u.cover]]),p("div",qo,N(u.category),1),p("div",Xo,[d[0]||(d[0]=p("div",{class:"i-mdi-fire"},null,-1)),p("span",null,N(u.online),1)]),u.status?_e("",!0):(T(),D("div",el," 未开播 ")),p("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=>k(us)(u.siteId,u.roomId),["stop"])},null,8,tl)]),p("div",sl,N(u.title),1),p("div",nl,[p("div",il,[p("img",{src:u.avatar,alt:"",class:"w-6 h-6 rounded-4"},null,8,ol),p("div",ll,N(u.nickname),1)]),p("div",null,N(k(Mn)[u.siteId]),1)])],8,Jo))),128))],544)):_e("",!0)}}}),al={class:"flex justify-center items-center"},cl={class:"h-[calc(100%-3rem)]"},ul=X({__name:"follow",setup(s){const t=U(0),e=U(!1),l=()=>{var r;if(e.value)return;const c=t.value;e.value=!0,c==0?Promise.all(Ft(Z,cs)).finally(n):(r=cs(Z[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=Vt,u=vt,h=ht;return T(),D(se,null,[p("div",al,[r[1]||(r[1]=p("div",null,"我的关注",-1)),p("div",{onClick:l,class:H(["rounded-6 mx-4 hover:text-amber i-ri-refresh-line",{"animate-spin":k(e)}])},null,2)]),p("div",cl,[P(h,{active:k(t),"onUpdate:active":r[0]||(r[0]=v=>$e(t)?t.value=v:null)},{default:G(()=>[(T(!0),D(se,null,fe(k(lt),v=>(T(),K(u,{title:v.name},{default:G(()=>[P(a,{onLoad:i,"finshed-text":""},{default:G(()=>[P(d,{list:v.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["active"])])],64)}}}),dl=X({__name:"index",setup(s){const t=J(()=>Z[te.value].id),e=l=>{const n=Z[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=ms,c=Vt,r=vt,d=ht;return T(),K(d,{active:k(te),"onUpdate:active":n[0]||(n[0]=a=>$e(te)?te.value=a:null),link:!0,class:"pt-1"},{default:G(()=>[(T(!0),D(se,null,fe(k(Z),a=>(T(),K(r,{href:`/${a.id}`,key:a.id,title:a.name,class:"pos-relative"},{default:G(()=>[P(c,{onLoad:e,class:"h-full"},{default:G(()=>[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=ft(s,"value");return(e,l)=>(T(),D("div",{onClick:l[0]||(l[0]=()=>t.value=!t.value),class:H(["pos-relative w-12 inline-block cursor-pointer rounded-6 h-6",[t.value?"bg-amber":"bg-gray-4"]]),style:{transition:"background-color .3s"}},[p("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"},vl=X({__name:"stepper",props:ct({max:{},min:{},step:{}},{value:{required:!0},valueModifiers:{}}),emits:["update:value"],setup(s){const t=s,e=ft(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)=>(T(),D("div",hl,[p("div",{class:"i-ri-subtract-fill",onClick:n}),p("div",null,N(e.value),1),p("div",{class:"i-ri-add-fill",onClick:l})]))}});function pl(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}const Mt=pl(),ml=s=>Mt?s.touches==null?s:s.touches[0]||s.changedTouches[0]:s,gl=X({__name:"slider",props:ct({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=ft(s,"value"),l=U(),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=J(()=>(e.value-t.min)/(t.max-t.min)*100),d=J(()=>{const h=100-r.value,v=`top:${h}%`,y=`left:${h}%`;return n?{loaded:v,indicator:v}:{loaded:`${y};transform:translateX(-100%)`,indicator:y}}),a=h=>{h.stopPropagation(),h=ml(h);const y=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)*y|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)}),jt(()=>{l.value.removeEventListener("mousedown",c,!0)}),(h,v)=>(T(),D("div",{class:H(["cursor-pointer flex justify-center",n?" py-4 ":"px-4"]),style:Ze({width:`${t.width}px`,height:`${t.height}px`})},[p("div",{ref_key:"root",ref:l,onClick:a,class:"w-full h-full pos-relative flex justify-center items-center"},[p("div",{class:H(["bg-gray pos-relative overflow-hidden",n?"h-full w-2px":"w-full h-2px"])},[p("div",{class:"w-full bg-amber h-full pos-absolute",style:Ze(k(d).loaded)},null,4)],2),p("div",{class:H(["pos-absolute w-12px h-12px bg-amber rounded-2",n?"-mt-6px":"-ml-6px"]),style:Ze(k(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)"}},kl=["data-index"],_l=X({__name:"select",props:ct(["list"],{active:{required:!0},activeModifiers:{}}),emits:["update:active"],setup(s){const t=ft(s,"active"),e=U(!1),l=n=>{const i=n.target.dataset.index;i&&(i!="-1"&&(t.value=parseInt(i)),e.value=!e.value)};return(n,i)=>(T(),D("div",{onClick:l,class:"inline-block pos-relative cursor-pointer text-center"},[k(e)?(T(),D("div",wl)):_e("",!0),p("div",yl,N(s.list[t.value]),1),Q(p("div",xl,[(T(!0),D(se,null,fe(s.list,(c,r)=>(T(),D("div",{"data-index":r,class:H([{"text-amber":r==t.value},"p-1 hover:text-amber"])},N(c),11,kl))),256))],512),[[ye,k(e)]])]))}}),js="data:image/png;base64,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",$s="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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",_t=window.Flv,bt=window.Hls;function Ke(s){let t=s.length;for(;--t>=0;)s[t]=0}const bl=3,Sl=258,Bn=29,Al=256,Tl=Al+1+Bn,Ln=30,Cl=512,Il=new Array((Tl+2)*2);Ke(Il);const El=new Array(Ln*2);Ke(El);const Ml=new Array(Cl);Ke(Ml);const Ol=new Array(Sl-bl+1);Ke(Ol);const Rl=new Array(Bn);Ke(Rl);const Bl=new Array(Ln);Ke(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()),jl=(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 ke=jl,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"},Dn={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 zl=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},Un={assign:zl,flattenChunks:Fl};let jn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{jn=!1}const ut=new Uint8Array(256);for(let s=0;s<256;s++)ut[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;ut[254]=ut[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&&jn)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=ut[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+ut[s[e]]>t?e:t},hs={string2buf:Nl,buf2string:Vl,utf8border:Hl};function Gl(){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=Gl;const St=16209,Wl=16191;var Ql=function(t,e){let l,n,i,c,r,d,a,u,h,v,y,b,C,E,I,B,S,_,x,m,f,g,z,$;const L=t.state;l=t.next_in,z=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,v=L.window,y=L.hold,b=L.bits,C=L.lencode,E=L.distcode,I=(1<<L.lenbits)-1,B=(1<<L.distbits)-1;e:do{b<15&&(y+=z[l++]<<b,b+=8,y+=z[l++]<<b,b+=8),S=C[y&I];t:for(;;){if(_=S>>>24,y>>>=_,b-=_,_=S>>>16&255,_===0)$[i++]=S&65535;else if(_&16){x=S&65535,_&=15,_&&(b<_&&(y+=z[l++]<<b,b+=8),x+=y&(1<<_)-1,y>>>=_,b-=_),b<15&&(y+=z[l++]<<b,b+=8,y+=z[l++]<<b,b+=8),S=E[y&B];s:for(;;){if(_=S>>>24,y>>>=_,b-=_,_=S>>>16&255,_&16){if(m=S&65535,_&=15,b<_&&(y+=z[l++]<<b,b+=8,b<_&&(y+=z[l++]<<b,b+=8)),m+=y&(1<<_)-1,m>d){t.msg="invalid distance too far back",L.mode=St;break e}if(y>>>=_,b-=_,_=i-c,m>_){if(_=m-_,_>u&&L.sane){t.msg="invalid distance too far back",L.mode=St;break e}if(f=0,g=v,h===0){if(f+=a-_,_<x){x-=_;do $[i++]=v[f++];while(--_);f=i-m,g=$}}else if(h<_){if(f+=a+h-_,_-=h,_<x){x-=_;do $[i++]=v[f++];while(--_);if(f=0,h<x){_=h,x-=_;do $[i++]=v[f++];while(--_);f=i-m,g=$}}}else if(f+=h-_,_<x){x-=_;do $[i++]=v[f++];while(--_);f=i-m,g=$}for(;x>2;)$[i++]=g[f++],$[i++]=g[f++],$[i++]=g[f++],x-=3;x&&($[i++]=g[f++],x>1&&($[i++]=g[f++]))}else{f=i-m;do $[i++]=$[f++],$[i++]=$[f++],$[i++]=$[f++],x-=3;while(x>2);x&&($[i++]=$[f++],x>1&&($[i++]=$[f++]))}}else if(_&64){t.msg="invalid distance code",L.mode=St;break e}else{S=E[(S&65535)+(y&(1<<_)-1)];continue s}break}}else if(_&64)if(_&32){L.mode=Wl;break e}else{t.msg="invalid literal/length code",L.mode=St;break e}else{S=C[(S&65535)+(y&(1<<_)-1)];continue t}break}}while(l<n&&i<r);x=b>>3,l-=x,b-=x<<3,y&=(1<<b)-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=y,L.bits=b};const He=15,zs=852,Fs=592,Ns=0,qt=1,Ps=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]),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,v=0,y=0,b=0,C=0,E=0,I=0,B=0,S,_,x,m,f,g=null,z;const $=new Uint16Array(He+1),L=new Uint16Array(He+1);let he=null,Ie,Ne,ie;for(a=0;a<=He;a++)$[a]=0;for(u=0;u<l;u++)$[t[e+u]]++;for(y=d,v=He;v>=1&&$[v]===0;v--);if(y>v&&(y=v),v===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,r.bits=1,0;for(h=1;h<v&&$[h]===0;h++);for(y<h&&(y=h),E=1,a=1;a<=He;a++)if(E<<=1,E-=$[a],E<0)return-1;if(E>0&&(s===Ns||v!==1))return-1;for(L[1]=0,a=1;a<He;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===Ns?(g=he=c,z=20):s===qt?(g=Jl,he=Kl,z=257):(g=Yl,he=ql,z=0),B=0,u=0,a=h,f=i,b=y,C=0,x=-1,I=1<<y,m=I-1,s===qt&&I>zs||s===Ps&&I>Fs)return 1;for(;;){Ie=a-C,c[u]+1<z?(Ne=0,ie=c[u]):c[u]>=z?(Ne=he[c[u]-z],ie=g[c[u]-z]):(Ne=96,ie=0),S=1<<a-C,_=1<<b,h=_;do _-=S,n[f+(B>>C)+_]=Ie<<24|Ne<<16|ie|0;while(_!==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===v)break;a=t[e+c[u]]}if(a>y&&(B&m)!==x){for(C===0&&(C=y),f+=h,b=a-C,E=1<<b;b+C<v&&(E-=$[b+C],!(E<=0));)b++,E<<=1;if(I+=1<<b,s===qt&&I>zs||s===Ps&&I>Fs)return 1;x=B&m,n[x]=y<<24|b<<16|f-i|0}}return B!==0&&(n[f+B]=a-C<<24|64<<16|0),r.bits=y,0};var rt=Xl;const er=0,$n=1,zn=2,{Z_FINISH:Vs,Z_BLOCK:tr,Z_TREES:At,Z_OK:ze,Z_STREAM_END:sr,Z_NEED_DICT:nr,Z_STREAM_ERROR:xe,Z_DATA_ERROR:Fn,Z_MEM_ERROR:Nn,Z_BUF_ERROR:ir,Z_DEFLATED:Hs}=Dn,Ht=16180,Gs=16181,Zs=16182,Ws=16183,Qs=16184,Js=16185,Ks=16186,Ys=16187,qs=16188,Xs=16189,Lt=16190,Se=16191,Xt=16192,en=16193,es=16194,tn=16195,sn=16196,nn=16197,on=16198,Tt=16199,Ct=16200,ln=16201,rn=16202,an=16203,cn=16204,un=16205,ts=16206,dn=16207,fn=16208,V=16209,Pn=16210,Vn=16211,or=852,lr=592,rr=15,ar=rr,hn=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 Fe=s=>{if(!s)return 1;const t=s.state;return!t||t.strm!==s||t.mode<Ht||t.mode>Vn?1:0},Hn=s=>{if(Fe(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=Ht,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,ze},Gn=s=>{if(Fe(s))return xe;const t=s.state;return t.wsize=0,t.whave=0,t.wnext=0,Hn(s)},Zn=(s,t)=>{let e;if(Fe(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))},Wn=(s,t)=>{if(!s)return xe;const e=new cr;s.state=e,e.strm=s,e.window=null,e.mode=Ht;const l=Zn(s,t);return l!==ze&&(s.state=null),l},ur=s=>Wn(s,ar);let vn=!0,ss,ns;const dr=s=>{if(vn){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(rt($n,s.lens,0,288,ss,0,s.work,{bits:9}),t=0;t<32;)s.lens[t++]=5;rt(zn,s.lens,0,32,ns,0,s.work,{bits:5}),vn=!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,v,y,b,C,E=0,I,B,S,_,x,m,f,g;const z=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(Fe(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,v=d,g=ze;e:for(;;)switch(e.mode){case Ht: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,z[0]=a&255,z[1]=a>>>8&255,e.check=ke(e.check,z,2,0),a=0,u=0,e.mode=Gs;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((a&255)<<8)+(a>>8))%31){s.msg="incorrect header check",e.mode=V;break}if((a&15)!==Hs){s.msg="unknown compression method",e.mode=V;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=V;break}e.dmax=1<<e.wbits,e.flags=0,s.adler=e.check=1,e.mode=a&512?Xs:Se,a=0,u=0;break;case Gs:for(;u<16;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(e.flags=a,(e.flags&255)!==Hs){s.msg="unknown compression method",e.mode=V;break}if(e.flags&57344){s.msg="unknown header flags set",e.mode=V;break}e.head&&(e.head.text=a>>8&1),e.flags&512&&e.wrap&4&&(z[0]=a&255,z[1]=a>>>8&255,e.check=ke(e.check,z,2,0)),a=0,u=0,e.mode=Zs;case Zs: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&&(z[0]=a&255,z[1]=a>>>8&255,z[2]=a>>>16&255,z[3]=a>>>24&255,e.check=ke(e.check,z,4,0)),a=0,u=0,e.mode=Ws;case Ws: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&&(z[0]=a&255,z[1]=a>>>8&255,e.check=ke(e.check,z,2,0)),a=0,u=0,e.mode=Qs;case Qs: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&&(z[0]=a&255,z[1]=a>>>8&255,e.check=ke(e.check,z,2,0)),a=0,u=0}else e.head&&(e.head.extra=null);e.mode=Js;case Js:if(e.flags&1024&&(y=e.length,y>r&&(y=r),y&&(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+y),f)),e.flags&512&&e.wrap&4&&(e.check=ke(e.check,l,y,i)),r-=y,i+=y,e.length-=y),e.length))break e;e.length=0,e.mode=Ks;case Ks:if(e.flags&2048){if(r===0)break e;y=0;do f=l[i+y++],e.head&&f&&e.length<65536&&(e.head.name+=String.fromCharCode(f));while(f&&y<r);if(e.flags&512&&e.wrap&4&&(e.check=ke(e.check,l,y,i)),r-=y,i+=y,f)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=Ys;case Ys:if(e.flags&4096){if(r===0)break e;y=0;do f=l[i+y++],e.head&&f&&e.length<65536&&(e.head.comment+=String.fromCharCode(f));while(f&&y<r);if(e.flags&512&&e.wrap&4&&(e.check=ke(e.check,l,y,i)),r-=y,i+=y,f)break e}else e.head&&(e.head.comment=null);e.mode=qs;case qs: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=V;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 Xs:for(;u<32;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}s.adler=e.check=hn(a),a=0,u=0,e.mode=Lt;case Lt: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===At)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=en;break;case 1:if(dr(e),e.mode=Tt,t===At){a>>>=2,u-=2;break e}break;case 2:e.mode=sn;break;case 3:s.msg="invalid block type",e.mode=V}a>>>=2,u-=2;break;case en: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=V;break}if(e.length=a&65535,a=0,u=0,e.mode=es,t===At)break e;case es:e.mode=tn;case tn:if(y=e.length,y){if(y>r&&(y=r),y>d&&(y=d),y===0)break e;n.set(l.subarray(i,i+y),c),r-=y,i+=y,d-=y,c+=y,e.length-=y;break}e.mode=Se;break;case sn: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=V;break}e.have=0,e.mode=nn;case nn: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=rt(er,e.lens,0,19,e.lencode,0,e.work,$),e.lenbits=$.bits,g){s.msg="invalid code lengths set",e.mode=V;break}e.have=0,e.mode=on;case on:for(;e.have<e.nlen+e.ndist;){for(;E=e.lencode[a&(1<<e.lenbits)-1],I=E>>>24,B=E>>>16&255,S=E&65535,!(I<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(S<16)a>>>=I,u-=I,e.lens[e.have++]=S;else{if(S===16){for(L=I+2;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(a>>>=I,u-=I,e.have===0){s.msg="invalid bit length repeat",e.mode=V;break}f=e.lens[e.have-1],y=3+(a&3),a>>>=2,u-=2}else if(S===17){for(L=I+3;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=I,u-=I,f=0,y=3+(a&7),a>>>=3,u-=3}else{for(L=I+7;u<L;){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=I,u-=I,f=0,y=11+(a&127),a>>>=7,u-=7}if(e.have+y>e.nlen+e.ndist){s.msg="invalid bit length repeat",e.mode=V;break}for(;y--;)e.lens[e.have++]=f}}if(e.mode===V)break;if(e.lens[256]===0){s.msg="invalid code -- missing end-of-block",e.mode=V;break}if(e.lenbits=9,$={bits:e.lenbits},g=rt($n,e.lens,0,e.nlen,e.lencode,0,e.work,$),e.lenbits=$.bits,g){s.msg="invalid literal/lengths set",e.mode=V;break}if(e.distbits=6,e.distcode=e.distdyn,$={bits:e.distbits},g=rt(zn,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,$),e.distbits=$.bits,g){s.msg="invalid distances set",e.mode=V;break}if(e.mode=Tt,t===At)break e;case Tt:e.mode=Ct;case Ct: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,Ql(s,v),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;E=e.lencode[a&(1<<e.lenbits)-1],I=E>>>24,B=E>>>16&255,S=E&65535,!(I<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(B&&!(B&240)){for(_=I,x=B,m=S;E=e.lencode[m+((a&(1<<_+x)-1)>>_)],I=E>>>24,B=E>>>16&255,S=E&65535,!(_+I<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=_,u-=_,e.back+=_}if(a>>>=I,u-=I,e.back+=I,e.length=S,B===0){e.mode=un;break}if(B&32){e.back=-1,e.mode=Se;break}if(B&64){s.msg="invalid literal/length code",e.mode=V;break}e.extra=B&15,e.mode=ln;case ln: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=rn;case rn:for(;E=e.distcode[a&(1<<e.distbits)-1],I=E>>>24,B=E>>>16&255,S=E&65535,!(I<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}if(!(B&240)){for(_=I,x=B,m=S;E=e.distcode[m+((a&(1<<_+x)-1)>>_)],I=E>>>24,B=E>>>16&255,S=E&65535,!(_+I<=u);){if(r===0)break e;r--,a+=l[i++]<<u,u+=8}a>>>=_,u-=_,e.back+=_}if(a>>>=I,u-=I,e.back+=I,B&64){s.msg="invalid distance code",e.mode=V;break}e.offset=S,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.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=V;break}e.mode=cn;case cn:if(d===0)break e;if(y=v-d,e.offset>y){if(y=e.offset-y,y>e.whave&&e.sane){s.msg="invalid distance too far back",e.mode=V;break}y>e.wnext?(y-=e.wnext,b=e.wsize-y):b=e.wnext-y,y>e.length&&(y=e.length),C=e.window}else C=n,b=c-e.offset,y=e.length;y>d&&(y=d),d-=y,e.length-=y;do n[c++]=C[b++];while(--y);e.length===0&&(e.mode=Ct);break;case un:if(d===0)break e;n[c++]=e.length,d--,e.mode=Ct;break;case ts:if(e.wrap){for(;u<32;){if(r===0)break e;r--,a|=l[i++]<<u,u+=8}if(v-=d,s.total_out+=v,e.total+=v,e.wrap&4&&v&&(s.adler=e.check=e.flags?ke(e.check,n,v,c-v):ds(e.check,n,v,c-v)),v=d,e.wrap&4&&(e.flags?a:hn(a))!==e.check){s.msg="incorrect data check",e.mode=V;break}a=0,u=0}e.mode=dn;case dn: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=V;break}a=0,u=0}e.mode=fn;case fn:g=sr;break e;case V:g=Fn;break e;case Pn:return Nn;case Vn: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||v!==s.avail_out&&e.mode<V&&(e.mode<ts||t!==Vs))&&Qn(s,s.output,s.next_out,v-s.avail_out),h-=s.avail_in,v-=s.avail_out,s.total_in+=h,s.total_out+=v,e.total+=v,e.wrap&4&&v&&(s.adler=e.check=e.flags?ke(e.check,n,v,s.next_out-v):ds(e.check,n,v,s.next_out-v)),s.data_type=e.bits+(e.last?64:0)+(e.mode===Se?128:0)+(e.mode===Tt||e.mode===es?256:0),(h===0&&v===0||t===Vs)&&g===ze&&(g=ir),g},hr=s=>{if(Fe(s))return xe;let t=s.state;return t.window&&(t.window=null),s.state=null,ze},vr=(s,t)=>{if(Fe(s))return xe;const e=s.state;return e.wrap&2?(e.head=t,t.done=!1,ze):xe},pr=(s,t)=>{const e=t.length;let l,n,i;return Fe(s)||(l=s.state,l.wrap!==0&&l.mode!==Lt)?xe:l.mode===Lt&&(n=1,n=ds(n,t,e,0),n!==l.check)?Fn:(i=Qn(s,t,e,e),i?(l.mode=Pn,Nn):(l.havedict=1,ze))};var mr=Gn,gr=Zn,wr=Hn,yr=ur,xr=Wn,kr=fr,_r=hr,br=vr,Sr=pr,Ar="pako inflate (from Nodeca project)",Ae={inflateReset:mr,inflateReset2:gr,inflateResetKeep:wr,inflateInit:yr,inflateInit2:xr,inflate:kr,inflateEnd:_r,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 Jn=Object.prototype.toString,{Z_NO_FLUSH:Ir,Z_FINISH:Er,Z_OK:dt,Z_STREAM_END:is,Z_NEED_DICT:os,Z_STREAM_ERROR:Mr,Z_DATA_ERROR:pn,Z_MEM_ERROR:Or}=Dn;function Gt(s){this.options=Un.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!==dt)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):Jn.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Ae.inflateSetDictionary(this.strm,t.dictionary),e!==dt)))throw new Error(fs[e])}Gt.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,Jn.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===dt?i=Ae.inflate(e,c):i===pn&&(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 pn: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===dt&&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};Gt.prototype.onData=function(s){this.chunks.push(s)};Gt.prototype.onEnd=function(s){s===dt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Un.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg};function Rr(s,t){const e=new Gt(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 jr(s){return $r(ws(s))}function $r(s){let t={};e:for(;!qe(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{let l=gs(s);(t.messagesList||(t.messagesList=[])).push(zr(s)),s.limit=l;break}case 8:{t.heartbeatDuration=Me(s,!0);break}case 9:{t.needAck=!!de(s);break}default:Ye(s,e&7)}}return t}function zr(s){let t={};e:for(;!qe(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=qn(s,q(s));break}case 3:{t.msgId=Me(s,!1);break}case 4:{t.msgType=q(s);break}case 5:{t.offset=Me(s,!1);break}case 6:{t.needWrdsStore=!!de(s);break}case 7:{t.wrdsVersion=Me(s,!1);break}case 8:{t.wrdsSubKey=Re(s,q(s));break}default:Ye(s,e&7)}}return t}function Fr(s){return Nr(ws(s))}function Nr(s){let t={};e:for(;!qe(s);){let e=q(s);switch(e>>>3){case 0:break e;case 2:{let l=gs(s);t.user=Pr(s),s.limit=l;break}case 3:{t.content=Re(s,q(s));break}default:Ye(s,e&7)}}return t}function Pr(s){let t={};e:for(;!qe(s);){let e=q(s);switch(e>>>3){case 0:break e;case 3:{t.nickName=Re(s,q(s));break}default:Ye(s,e&7)}}return t}function Vr(s){let t=Yn();return Hr(s,t),qr(t)}function Hr(s,t){let e=s.seqId;e!==void 0&&(me(t,8),It(t,e));let l=s.logId;l!==void 0&&(me(t,16),It(t,l));let n=s.service;n!==void 0&&(me(t,24),It(t,n));let i=s.method;i!==void 0&&(me(t,32),It(t,i));let c=s.headersList;if(c!==void 0)for(let u of c){me(t,42);let h=Yn();Wr(u,h),me(t,h.limit),ea(t,h),Yr(h)}let r=s.payloadEncoding;r!==void 0&&(me(t,50),Dt(t,r));let d=s.payloadType;d!==void 0&&(me(t,58),Dt(t,d));let a=s.payload;a!==void 0&&(me(t,66),me(t,a.length),Xr(t,a))}function Gr(s){return Zr(ws(s))}function Zr(s){let t={};e:for(;!qe(s);){let e=q(s);switch(e>>>3){case 0:break e;case 1:{t.seqId=Me(s,!0);break}case 2:{t.logId=Me(s,!0);break}case 3:{t.service=Me(s,!0);break}case 4:{t.method=Me(s,!0);break}case 5:{let l=gs(s);(t.headersList||(t.headersList=[])).push(Qr(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=qn(s,q(s));break}default:Ye(s,e&7)}}return t}function Wr(s,t){let e=s.key;e!==void 0&&(me(t,10),Dt(t,e));let l=s.value;l!==void 0&&(me(t,18),Dt(t,l))}function Qr(s){let t={};e:for(;!qe(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:Ye(s,e&7)}}return t}function gs(s){let t=q(s),e=s.limit;return s.limit=s.offset+t,e}function Ye(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 Kr=new Float64Array(1);new Uint8Array(Kr.buffer);let Kn=[];function Yn(){const s=Kn.pop();return s?(s.offset=s.limit=0,s):{bytes:new Uint8Array(64),offset:0,limit:0}}function Yr(s){Kn.push(s)}function ws(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 qe(s){return s.offset>=s.limit}function pt(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 ys(s,t){let e=s.offset;if(e+t>s.limit)throw new Error("Read past limit");return s.offset+=t,e}function qn(s,t){let e=ys(s,t);return s.bytes.subarray(e,e+t)}function Xr(s,t){let e=pt(s,t.length);s.bytes.set(t,e)}function Re(s,t){let e=ys(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,v;d&128?(d&224)===192?r+1>=t?c+=i:(a=n[r+e+1],(a&192)!==128?c+=i:(v=(d&31)<<6|a&63,v<128?c+=i:(c+=l(v),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:(v=(d&15)<<12|(a&63)<<6|u&63,v<2048||v>=55296&&v<=57343?c+=i:(c+=l(v),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:(v=(d&7)<<18|(a&63)<<12|(u&63)<<6|h&63,v<65536||v>1114111?c+=i:(v-=65536,c+=l((v>>10)+55296,(v&1023)+56320),r+=3))):c+=i:c+=l(d)}return c}function Dt(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=pt(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=pt(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[ys(s,1)]}function mn(s,t){let e=pt(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;)mn(s,t&127|128),t>>>=7;mn(s,t)}function Me(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 It(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=pt(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,v=oa,d=0;d<e.length;d+=16){var y=n,b=i,C=c,E=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=v(n,i,c,r,e[d+0],6,-198630844),r=v(r,n,i,c,e[d+7],10,1126891415),c=v(c,r,n,i,e[d+14],15,-1416354905),i=v(i,c,r,n,e[d+5],21,-57434055),n=v(n,i,c,r,e[d+12],6,1700485571),r=v(r,n,i,c,e[d+3],10,-1894986606),c=v(c,r,n,i,e[d+10],15,-1051523),i=v(i,c,r,n,e[d+1],21,-2054922799),n=v(n,i,c,r,e[d+8],6,1873313359),r=v(r,n,i,c,e[d+15],10,-30611744),c=v(c,r,n,i,e[d+6],15,-1560198380),i=v(i,c,r,n,e[d+13],21,1309151649),n=v(n,i,c,r,e[d+4],6,-145523070),r=v(r,n,i,c,e[d+11],10,-1120210379),c=v(c,r,n,i,e[d+2],15,718787259),i=v(i,c,r,n,e[d+9],21,-343485551),n=n+y>>>0,i=i+b>>>0,c=c+C>>>0,r=r+E>>>0}return Xn([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},Xn=function(s){if(s.constructor==Number)return 16711935&gn(s,8)|4278255360&gn(s,24);for(var t=0;t<s.length;t++)s[t]=Xn(s[t]);return s},gn=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=U();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)}),jt(()=>{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"},va={class:"lg:grow-5 flex flex-col"},pa={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},ka={class:"flex items-center gap-4 p-1"},_a={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:""},ja=["onClick"],$a={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"},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"},Ga={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"},Wa={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"},Ja={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=ps(),c=U(),r=U(),d=U(),a=_i(),u=J(()=>{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(j=>j.name):[]}),h=J(()=>u.value.length>0?a.value.stream[n.qn].lines.map(A=>A.name):[]),v=J(()=>h.value.length>0?a.value.stream[n.qn].lines[n.line].url:""),y=J(()=>Z.map(A=>Object.values(A.follows)).flat().sort(A=>A.status?-1:0)),b=J(()=>{var A;return((A=a.value)==null?void 0:A.siteId)=="bilibili"?"hls":"flv"});let C;const E=J(()=>{var A;return((A=a.value)==null?void 0:A.siteId)=="huya"&&(["一起看","星秀","原创"].includes(a.value.category)||a.value.info.name.endsWith("-imgplus"))}),I=()=>{E.value&&(C=setInterval(()=>{const A=Bs(a.value.info);n.flv.switchURL(v.value+A,!0)},11e4))};ve(v,()=>{var A,w;if(clearInterval(C),!!v.value){if(b.value=="flv"){const j=a.value.siteId=="huya"?v.value+Bs(a.value.info):v.value;if(n.flv)return(A=n.flv)==null||A.switchURL(j,!0),I();if(_t!=null&&_t.isSupported("video")){const F=new _t({media:r.value,seamlesslyReload:!0,isLive:!0,retryCount:0});return F.load(j),n.flv=F,I()}}if(n.hls)return(w=n.hls)==null?void 0:w.loadSource(v.value);if(bt!=null&&bt.isSupported()){const j=new bt;return j.attachMedia(r.value),j.loadSource(v.value),n.hls=j}return n.notice="播放失败",clearTimeout(e)}}),ve(b,()=>{var A,w;if(b.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,_=0,x=!0;const m=U(),f=da(m,{gap:M.canvasGap,rows:M.canvasRows,speed:M.canvasSpeed,opacity:M.canvasOpacity,colors:M.canvasColorOpen?M.colors:["#ffffff"]}),g=[];let z;function $(){z||(z=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),x&&(d.value.scrollTop=d.value.scrollHeight),z=void 0},200))}const L=(A,w)=>{var Ue;if(_++,M.blockOpen&&Us.value.length&&Us.value.some(et=>et.test(w))||(_%(M.sideClean||100)==0&&(d.value.innerHTML="",he=0),M.canvasOpen&&((Ue=f.value)==null||Ue.add(w)),!Ge.value||!M.sideOpen))return;const j=document.createElement("div"),{sideColorOpen:F,sideFontsize:W,sideGap:ee,colors:we}=M;j.style.margin=`${ee}px 0`,j.style.fontSize=`${W}px`,F&&(j.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 Pe=document.createElement("span");Pe.appendChild(document.createTextNode(w)),j.appendChild(De),j.appendChild(Pe),g.push(j),$()};let he=0;const Ie=()=>{if(d.value.scrollTop>=he)return he=d.value.scrollTop;he=d.value.scrollTop,x=!1,d.value.removeEventListener("scroll",Ie)},Ne=()=>{x=!0,d.value.scrollTop=d.value.scrollHeight,d.value.addEventListener("scroll",Ie,{passive:!1})};let ie;const xs=async()=>{var w;if(S||!M.canvasOpen&&!M.sideOpen)return;let A=!0;if(a.value.siteId=="huya"){const j=(w=a.value)==null?void 0:w.ws;if(!j)return;S=new WebSocket(j),S.onopen=()=>{clearInterval(ie),L("系统","开始连接弹幕服务器"),d.value.addEventListener("scroll",Ie),S==null||S.send(JSON.stringify({command:"subscribeNotice",data:["getMessageNotice"],reqId:Date.now().toString()})),ie=setInterval(()=>{S.send("ping")},45e3)},S.onmessage=F=>{if(A)return L("系统","弹幕服务器连接成功"),A=!1;const{sendNick:W,content:ee}=JSON.parse(F.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 j,F;clearInterval(ie),L("系统","开始连接弹幕服务器"),d.value.addEventListener("scroll",Ie),S.send(mt(`type@=loginreq/roomid@=${(j=a.value)==null?void 0:j.roomId}`)),S.send(mt(`type@=joingroup/rid@=${(F=a.value)==null?void 0:F.roomId}/gid@=-9999`)),ie=setInterval(()=>{S.send(mt("type@=mrkl/"))},45e3)},S.onmessage=async({data:j})=>{A&&(L("系统","弹幕服务器连接成功"),A=!1),(await j.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 j=a.value.ws.split(","),F=j[0],W=j[1],ee=ua(F,W);let we=`wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/?room_id=${F}&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",Ie),ie=setInterval(()=>{(S==null?void 0:S.readyState)==1&&S.send(Vr({payloadType:"bh"}))},1e4)},S.onmessage=De=>{A&&(L("系统","弹幕服务器连接成功"),A=!1);const Pe=Gr(new Uint8Array(De.data)),Ue=Ur(Pe.payload),Ee=jr(new Uint8Array(Ue)).messagesList;if(!Ee||Ee.length==0)return;const yt=Ee.length;let Ve=-1;for(;++Ve<yt;){if(Ee[Ve].method!="WebcastChatMessage")continue;const tt=Fr(Ee[Ve].payload);L(tt.user.nickName,tt.content)}},S.onerror=function(){clearInterval(ie),L("系统","弹幕服务器连接失败")}}},ks=new TextEncoder;function mt(A){let w=ks.encode(A);const j=9+w.byteLength,F=[j,0,0,.1,j,0,0,0,177,2,0,0];w=ks.encode(A+"\0");const W=new Uint8Array(12+w.byteLength);return W.set(F),W.set(w,12),W.buffer}const Zt=()=>{clearInterval(ie),S&&(S.onmessage=null,As=="douyu"?S.send(mt("type@=logout")):S.close(),S=null,_=0,d.value&>==i.fullPath&&L("系统","弹幕服务器断开连接"))};ve(a,()=>xs()),ve([()=>M.sideOpen,()=>M.canvasOpen],()=>{!M.sideOpen&&!M.canvasOpen&&Zt(),S||xs()});const Wt=()=>{const{site:A,id:w}=i.meta,j=i.meta.site.follows[w];j&&(a.value=j,n.follow=!0),clearInterval(C),clearInterval(ie),clearTimeout(e),n.notice="加载中...",Kt(()=>{L("系统","开始获取直播间信息")}),be(A.id,"getRoomDetail",{id:w}).then(F=>{if(a.value=F,n.follow&&Bt(F),Kt(()=>L("系统","直播间信息获取成功")),!F.status)return n.notice="未开播!";document.title=a.value.title},F=>{n.notice=F,Kt(()=>L("系统","直播间信息获取失败"))}).finally(()=>clearTimeout(e))},ti=()=>{if(!a.value)return;const{id:A}=i.meta.site;n.follow=n.follow?us(A,a.value.roomId):Bt(a.value)},Qt=()=>{!a.value||!a.value.status||(clearTimeout(t),t=setTimeout(()=>{n.paused?r.value.play():r.value.pause()},200))},_s=()=>{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)},si=()=>{clearTimeout(t),n.webscreen=!n.webscreen,n.fullscreen&&(n.fullscreen=!1,document.exitFullscreen())},ni=()=>{n.paused=!1,Le()},ii=()=>{n.paused=!0,Le()},bs=A=>{if(v.value)switch(A.code){case"ArrowDown":return xt(!1);case"ArrowUp":return xt(!0);case"Space":return Qt()}},oi=()=>{var A;clearTimeout(t),clearTimeout(l),clearTimeout(e),clearTimeout(z),clearInterval(C),Zt(),document.title="Lemon live",document.removeEventListener("keydown",bs),b.value&&!n.pictureInPicture&&((A=n[b.value])==null||A.destroy())};Wt();const Ss=Pt();let gt=i.fullPath;Je(()=>{c.value.style.filter=ce.value==100?"":`brightness(${ce.value/100})`,r.value.volume=pe.value/100,n.muted=r.value.muted,r.value.addEventListener("canplay",()=>{n.notice=null}),Mt||(c.value.addEventListener("mousemove",Le),document.addEventListener("keydown",bs)),document.pictureInPictureElement&&document.exitPictureInPicture(),r.value.addEventListener("leavepictureinpicture",()=>{var A;if(!/play/.test(i.path))return Ss.push(gt);if(i.fullPath==gt)return n.pictureInPicture=!1;(A=n[b.value])==null||A.destroy()})});let As=i.meta.site.id;no(A=>{var W;const{siteid:w,id:j}=A.params,F=We.findIndex(ee=>ee==w);return F==-1?{name:"404"}:(A.meta.site=Z[F],A.meta.id=j,b.value&&((W=n[b.value])==null||W.destroy(),n[b.value]=void 0),n.qn=0,n.line=0,n.follow=!1,a.value=void 0,!0)}),ve(()=>i.params,()=>{var A;clearTimeout(z),Zt(),B(),(A=f.value)==null||A.destory(),As=i.meta.site.id,gt=i.fullPath,Wt()}),jt(oi);const li=()=>Promise.all(Ft(Z,cs)),ri=async A=>{A==1&&await li()},ai=()=>n.showController?Qt():Le(),ci=()=>{n.pictureInPicture=!n.pictureInPicture,document.pictureInPictureElement?document.exitPictureInPicture():r.value.requestPictureInPicture()},ui=A=>{const w=A.target.dataset.color;if(!w)return;const j=M.colors.findIndex(F=>F==w);if(j==-1)return M.colors.push(w);M.colors.length!=1&&M.colors.splice(j,1)};ve(()=>M.colors,()=>{var A;return(A=f.value)==null?void 0:A.setColors(M.colors)}),ve(()=>M.canvasSpeed,()=>{var A;return(A=f.value)==null?void 0:A.setSpeed(M.canvasSpeed)}),ve(()=>M.canvasOpacity,()=>{var A;return(A=f.value)==null?void 0:A.setOpacity(M.canvasOpacity)}),ve(()=>M.canvasColorOpen,()=>{var A;return(A=f.value)==null?void 0:A.setColors(M.canvasColorOpen?M.colors:["#ffffff"])}),Qe(()=>{var A,w,j,F;(A=f.value)==null||A.setGap(M.canvasGap),(w=f.value)==null||w.setFont(M.canvasFontsize),(j=f.value)==null||j.setRows(M.canvasRows),(F=f.value)==null||F.resize()}),ve(pe,()=>{Le(),clearTimeout(e),n.notice=`当前音量 ${pe.value}%`,r.value.volume=pe.value/100,Ce("volume",pe.value),e=setTimeout(()=>n.notice=null,2e3)}),ve(ce,()=>{Le(),clearTimeout(e),n.notice=`当前亮度 ${ce.value}%`,c.value.style.filter=ce.value==100?"":`brightness(${ce.value/100})`,Ce("brightness",ce.value),e=setTimeout(()=>n.notice=null,2e3)});let Jt;const wt=U(),di=A=>{clearTimeout(Jt),Jt=setTimeout(()=>{const w=Xe("id",A.target,wt.value);if(!w)return;const j=Xe("site",A.target,wt.value);Ss.push(`/${j}/play/${w}`)},300)},fi=A=>{var W;clearTimeout(Jt);const w=Xe("id",A.target,wt.value);if(!w)return;const F=`/${Xe("site",A.target,wt.value)}/play/${w}`;(W=window.open(F,"_blank"))==null||W.location},Xe=(A,w,j)=>{if(w==j)return null;const F=w.dataset[A];return F||Xe(A,w.parentElement,j)},hi=()=>ce.value=100;ve(()=>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 pi(A,w,j){j.stopPropagation(),j.preventDefault(),us(A,w),A==a.value.siteId&&w==a.value.roomId&&(n.follow=!1)}return(A,w)=>{var Ue,et,Ee,yt,Ve,tt;const j=_l,F=gl,W=vt,ee=vl,we=fl,De=ht,Pe=Ut("lazy");return T(),D("div",ha,[p("div",va,[p("div",pa,[p("div",{onClick:w[0]||(w[0]=(...R)=>A.$router.back&&A.$router.back(...R)),class:"i-ri-arrow-left-line hover:text-amber"}),p("h1",ma,N((Ue=k(a))==null?void 0:Ue.title),1),p("div",{onClick:w[1]||(w[1]=R=>Ge.value=!k(Ge)),style:Ze(k(Ge)?"transform:rotate(180deg)":"margin-right:1.5rem"),class:"i-ri-arrow-right-s-fill hidden lg:block"},null,4)]),p("div",{ref_key:"player",ref:c,class:H(["md:rounded-6px text-4 text-white bg-black cursor-default pos-relative w-full overflow-hidden select-none h-full",{"cursor-none":!k(n).showController,"text-5":k(n).fullscreen,"text-5 !pos-fixed left-0 right-0 top-0 bottom-0 z-10 ":k(n).webscreen}]),onContextmenu:w[19]||(w[19]=ne(()=>{},["prevent"])),onClick:ai,onDblclick:_s},[p("div",ga,[p("video",{playsinline:"","webkit-playsinline":"","x5-video-player-type":"h5",autoplay:"",ref_key:"video",ref:r,class:"w-full h-full pos-absolute",onPlay:ni,onPause:ii},null,544)]),Q(p("div",wa,[p("span",null,N(k(n).notice),1)],512),[[ye,k(n).notice]]),p("canvas",{ref_key:"canvas",ref:m,width:"0",height:"0",class:"w-full h-full z-1 pos-absolute top-0"},null,512),Q(p("div",{class:H(["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":k(n).fullscreen||k(n).webscreen}]),onClick:w[5]||(w[5]=ne(()=>{},["stop"])),onDblclick:w[6]||(w[6]=ne(()=>{},["stop"]))},[p("div",{onClick:Qt,class:H(["hover:text-amber",k(n).paused?"i-ri-play-large-fill":"i-ri-pause-large-fill"])},null,2),p("div",{onClick:ti,class:H(["hover:text-amber",k(n).follow?"i-ri-heart-fill":"i-ri-heart-line"])},null,2),p("div",{onClick:Wt,class:"i-ri-refresh-line hover:text-amber"}),p("img",{class:"w-1.5em cursor-pointer",onClick:w[2]||(w[2]=()=>k(M).canvasOpen=!k(M).canvasOpen),src:k(M).canvasOpen?k(js):k($s)},null,8,ya),w[33]||(w[33]=p("div",{class:"grow"},null,-1)),k(u).length?(T(),D("div",xa,[P(j,{active:k(n).qn,"onUpdate:active":w[3]||(w[3]=R=>k(n).qn=R),list:k(u)},null,8,["active","list"]),P(j,{active:k(n).line,"onUpdate:active":w[4]||(w[4]=R=>k(n).line=R),list:k(h)},null,8,["active","list"]),k(Mt)?_e("",!0):(T(),D("div",{key:0,class:H(["hover:text-amber ml-2",k(n).pictureInPicture?"i-ri-picture-in-picture-exit-line":"i-ri-picture-in-picture-2-line"]),onClick:ci},null,2))])):_e("",!0),p("div",{onClick:si,class:"i-mdi-fit-to-screen hover:text-amber"}),p("div",{onClick:_s,class:H(["hover:text-amber",k(n).fullscreen?"i-ri-fullscreen-exit-fill":"i-ri-fullscreen-fill"])},null,2)],34),[[ye,k(n).showController]]),k(Mt)?Q((T(),D("div",{key:0,class:H([{"py-3":k(n).fullscreen||k(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"]))},[p("div",ka,[p("div",{onClick:w[7]||(w[7]=R=>k(Ls)(!1)),class:"i-ri-sun-line"}),p("div",null,N(k(ce)),1),p("div",{onClick:w[8]||(w[8]=R=>k(Ls)(!0)),class:"i-ri-sun-fill"})]),Q(p("div",{class:"flex-1 w-10 truncate text-center"},N((et=k(a))==null?void 0:et.title),513),[[ye,k(n).fullscreen]]),p("div",_a,[p("div",{onClick:w[9]||(w[9]=R=>k(xt)(!1)),class:"i-ri-volume-down-fill"}),p("div",null,N(k(pe)),1),p("div",{onClick:w[10]||(w[10]=R=>k(xt)(!0)),class:"i-ri-volume-up-fill"})])],34)),[[ye,k(n).showController]]):Q((T(),D("div",ba,[p("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%)"}},[p("div",null,N(k(ce)),1),P(F,{value:k(ce),"onUpdate:value":w[13]||(w[13]=R=>$e(ce)?ce.value=R:null),max:200,min:50},null,8,["value"]),p("div",{onClick:ne(hi,["stop"]),class:"i-ri-sun-line"})],32),p("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%)"}},[Et(N(k(pe))+" ",1),P(F,{value:k(pe),"onUpdate:value":w[16]||(w[16]=R=>$e(pe)?pe.value=R:null),max:100,min:0},null,8,["value"]),p("div",{onClick:ne(vi,["stop"]),class:H(k(n).muted?"i-ri-volume-mute-line":"i-ri-volume-down-line")},null,2)],32)],512)),[[ye,k(n).showController]])],34)]),Q(p("div",Sa,[p("div",Aa,[p("img",{src:(Ee=k(a))==null?void 0:Ee.avatar,alt:"",class:"w-8 h-8 rounded-4"},null,8,Ta),p("div",Ca,[p("div",Ia,N((yt=k(a))==null?void 0:yt.nickname),1),p("div",Ea,[p("img",{class:"w-4 h-4",src:A.$route.meta.site.icon},null,8,Ma),Et(" "+N(A.$route.meta.site.name)+" "+N((Ve=k(a))==null?void 0:Ve.category),1)])]),p("div",null,[w[34]||(w[34]=p("div",{class:"i-mdi-fire mx-1"},null,-1)),p("span",null,N((tt=k(a))==null?void 0:tt.online),1)])]),P(De,{grow:!0,onTabClick:ri,class:"!h-[calc(100%-3.75rem)]"},{default:G(()=>[P(W,{title:"聊天",class:"pos-relative"},{default:G(()=>{var R;return[p("div",Oa,[p("img",{onClick:w[20]||(w[20]=()=>k(M).sideOpen=!k(M).sideOpen),class:"w-1.5em cursor-pointer",src:k(M).sideOpen?k(js):k($s)},null,8,Ra),p("div",{onClick:B,class:"i-ri-delete-bin-3-line text-green-5"}),p("a",{class:"text-green-5",href:(R=k(a))==null?void 0:R.url,target:"_blank"},w[35]||(w[35]=[p("div",{class:"i-ri-link"},null,-1)]),8,Ba),p("div",{onClick:Ne,class:"i-ri-arrow-down-circle-line text-green-5"})]),p("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:G(()=>[p("div",{onClick:ne(di,["prevent"]),onDblclick:ne(fi,["prevent"])},[(T(!0),D(se,null,fe(k(y),R=>{var Ts,Cs;return T(),D("a",{"data-id":R.roomId,"data-site":R.siteId,class:H([{"text-amber":((Ts=k(a))==null?void 0:Ts.siteId)==R.siteId&&((Cs=k(a))==null?void 0:Cs.roomId)==R.roomId},"flex items-center justify-between gap-2 py-2"]),key:`${R.siteId}/${R.roomId}`,href:`/${R.siteId}/play/${R.roomId}`},[p("div",Da,[Q(p("img",Ua,null,512),[[Pe,R.avatar]]),p("div",null,N(k(Mn)[R.siteId]),1),p("div",null,N(R.nickname),1),p("div",{class:H(["inline-block w-3 h-3 rounded-3",[R.status?"bg-amber":"bg-red"]])},null,2),p("div",null,N(R.status?"直播中":"未开播"),1)]),p("div",{class:"i-mdi-heart-off-outline pos-relative w-6 h-6 hover:text-amber",onClick:mi=>pi(R.siteId,R.roomId,mi)},null,8,ja)],10,La)}),128))],32)]),_:1}),P(W,{title:"设置",class:"px-2"},{default:G(()=>[w[47]||(w[47]=p("div",{class:"p-3"},"弹幕",-1)),p("div",$a,[p("div",za,[w[36]||(w[36]=p("div",null,"文字大小",-1)),P(ee,{value:k(M).canvasFontsize,"onUpdate:value":w[21]||(w[21]=R=>k(M).canvasFontsize=R),max:80,min:8,step:1},null,8,["value"])]),p("div",Fa,[w[37]||(w[37]=p("div",null,"上下间隔",-1)),P(ee,{value:k(M).canvasGap,"onUpdate:value":w[22]||(w[22]=R=>k(M).canvasGap=R),max:80,min:1,step:1},null,8,["value"])]),p("div",Na,[w[38]||(w[38]=p("div",null,"最大行数",-1)),P(ee,{value:k(M).canvasRows,"onUpdate:value":w[23]||(w[23]=R=>k(M).canvasRows=R),max:50,min:1,step:1},null,8,["value"])]),p("div",Pa,[w[39]||(w[39]=p("div",null,"弹幕速度",-1)),P(ee,{value:k(M).canvasSpeed,"onUpdate:value":w[24]||(w[24]=R=>k(M).canvasSpeed=R),max:32,min:.5,step:.5},null,8,["value"])]),p("div",Va,[w[40]||(w[40]=p("div",null,"弹幕透明",-1)),P(ee,{value:k(M).canvasOpacity,"onUpdate:value":w[25]||(w[25]=R=>k(M).canvasOpacity=R),max:100,min:10,step:10},null,8,["value"])]),p("div",Ha,[w[41]||(w[41]=p("div",null,"彩色弹幕",-1)),P(we,{value:k(M).canvasColorOpen,"onUpdate:value":w[26]||(w[26]=R=>k(M).canvasColorOpen=R)},null,8,["value"])])]),w[48]||(w[48]=p("div",{class:"p-3"},"聊天",-1)),p("div",Ga,[p("div",Za,[w[42]||(w[42]=p("div",null,"文字大小",-1)),P(ee,{value:k(M).sideFontsize,"onUpdate:value":w[27]||(w[27]=R=>k(M).sideFontsize=R),max:80,min:8,step:1},null,8,["value"])]),p("div",Wa,[w[43]||(w[43]=p("div",null,"上下间隔",-1)),P(ee,{value:k(M).sideGap,"onUpdate:value":w[28]||(w[28]=R=>k(M).sideGap=R),max:80,min:0,step:1},null,8,["value"])]),p("div",Qa,[w[44]||(w[44]=p("div",null,"自动清屏",-1)),P(ee,{value:k(M).sideClean,"onUpdate:value":w[29]||(w[29]=R=>k(M).sideClean=R),max:500,min:10,step:10},null,8,["value"])]),p("div",Ja,[w[45]||(w[45]=p("div",null,"彩色消息",-1)),P(we,{value:k(M).sideColorOpen,"onUpdate:value":w[30]||(w[30]=R=>k(M).sideColorOpen=R)},null,8,["value"])])]),w[49]||(w[49]=p("div",{class:"p-3"},"颜色",-1)),p("div",Ka,[(T(!0),D(se,null,fe(k(eo),R=>(T(),D("div",{onClick:ui},[p("div",{class:"w-4 h-4 rounded-2 m-2 shadow cursor-pointer box-border","data-color":R,style:Ze(`background:${R};${k(M).colors.includes(R)?"box-shadow:0 0 0px 2px white":""}`)},null,12,Ya)]))),256))]),p("div",qa,[w[46]||(w[46]=Et("屏蔽 ")),P(we,{value:k(M).blockOpen,"onUpdate:value":w[31]||(w[31]=R=>k(M).blockOpen=R)},null,8,["value"])]),Q(p("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=>k(M).blockWords=R),rows:"5",placeholder:"以空格分隔"},null,512),[[Rt,k(M).blockWords,void 0,{trim:!0}]])]),_:1})]),_:1})],512),[[ye,k(Ge)]])])}}}),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"},ic={class:"flex"},oc={class:"text-xl flex items-center"},lc={class:"i-ri-refresh-line w-6 h-6 animate-spin"},rc={class:"flex justify-between"},ac={class:"py-2"},cc={class:"flex justify-between"},uc={class:"py-2"},dc={key:1,class:"flex flex-col justify-center items-center h-80vh"},fc={class:"w-50% max-w-xs justify-center items-center flex flex-col"},hc={class:"pos-relative w-full mt-6"},vc={class:"pos-relative w-full mt-4 mb-6"},pc={key:0,class:"flex w-full justify-evenly"},mc=X({__name:"user",setup(s){const t=U([]),e=Te({username:"",password:""}),l=/^[\u4e00-\u9fa5a-zA-Z0-9]{1,12}$/,n=/^.{0,12}$/,i=U(!1),c=()=>{if(!l.test(e.username))return ot.warning("账号1到12个字符!");if(!n.test(e.password))return ot.warning("密码0到12个字符!");if(i.value)return qi({...e,token:je.value}).then(b=>{je.value=b.token,Ce("token",b.token),ot.success("密码修改成功!"),i.value=!1});Yi(e).then(b=>{st.value=b.user,je.value=b.token,Ce("user",b.user),Ce("token",b.token),st.value.follows&&(t.value=JSON.parse($t.decompressFromBase64(st.value.follows)))})},r=U(!1),d=()=>setTimeout(()=>r.value=!1,300),a=()=>{r.value||(r.value=!0,Ji(lt[0].list.value).then(()=>{t.value=lt[0].list.value}).finally(d))},u=()=>{r.value||(r.value=!0,Ki().then(b=>{t.value=b}).finally(d))},h=()=>{r.value||(r.value=!0,t.value.forEach(b=>Bt(b)),d())},v=()=>{r.value||(r.value=!0,Xi(),t.value.forEach(b=>Bt(b)),d())},y=()=>{st.value=void 0,je.value=void 0,localStorage.removeItem("user"),localStorage.removeItem("token")};return(b,C)=>(T(),D("div",ec,[k(je)&&!k(i)?(T(),D("div",tc,[C[5]||(C[5]=p("div",{class:"text-xl"},"账号",-1)),p("div",sc,[p("div",nc,N(k(st).username),1),p("div",ic,[p("div",{onClick:C[0]||(C[0]=()=>i.value=!0),class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4 mx-4"},"改密 "),p("div",{onClick:y,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"登出")])]),p("div",oc,[C[4]||(C[4]=p("div",{class:"mr-4"},"同步",-1)),Q(p("div",lc,null,512),[[ye,k(r)]])]),p("div",rc,[p("div",ac,"本地 "+N(k(lt)[0].list.value.length),1),p("div",{class:"flex"},[p("div",{onClick:h,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4 mx-4"},"合并"),p("div",{onClick:v,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"覆盖")])]),p("div",cc,[p("div",uc,"云端 "+N(k(t).length),1),p("div",{class:"flex"},[p("div",{onClick:u,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4 mx-4"},"拉取"),p("div",{onClick:a,class:"bg-green-7 hover:bg-op-50 cursor-pointer rounded py-2 px-4"},"推送")])]),C[6]||(C[6]=p("div",{class:"text-xl"},"支持",-1)),C[7]||(C[7]=p("div",{class:"flex justify-between"},[p("img",{class:"h-50",src:"https://i0.hdslb.com/bfs/article/828b4686d0bcd7a427939b1f121f322898845873.png@1e_1c.webp"}),p("img",{class:"h-50",src:"https://i0.hdslb.com/bfs/article/d07b5e8cbae76f0fc38a8049c433d3d598845873.jpg@1e_1c.webp"})],-1))])):(T(),D("div",dc,[p("div",fc,[C[11]||(C[11]=p("div",{class:"text-2xl font-bold"},"Lemon live",-1)),p("div",hc,[Q(p("input",{class:"md:text-4 box-border w-full py-3 px-12 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-none",type:"text","onUpdate:modelValue":C[1]||(C[1]=E=>k(e).username=E),placeholder:"请输入账号 1到12个字符"},null,512),[[Rt,k(e).username,void 0,{trim:!0}]]),C[8]||(C[8]=p("div",{class:"i-ri-user-smile-line pos-absolute left-4 top-2 bg-gray"},null,-1))]),p("div",vc,[Q(p("input",{class:"md:text-4 box-border w-full py-3 px-12 text-white bg-transparent b-1 b-style-groove b-green rounded-6 outline-none",type:"text","onUpdate:modelValue":C[2]||(C[2]=E=>k(e).password=E),placeholder:"请输入密码 0到12个字符"},null,512),[[Rt,k(e).password,void 0,{trim:!0}]]),C[9]||(C[9]=p("div",{class:"i-ri-lock-password-line pos-absolute left-4 top-2 bg-gray"},null,-1))]),k(i)?(T(),D("div",pc,[p("div",{onClick:C[3]||(C[3]=()=>i.value=!1),class:"cursor-pointer flex gap-2 text-black bg-gray-5 hover:bg-green-7 py-3 px-8 rounded-6"},"取消"),p("div",{onClick:c,class:"cursor-pointer flex gap-2 text-black bg-green-5 hover:bg-green-7 py-3 px-8 rounded-6"},"确定")])):(T(),D("div",{key:1,onClick:c,class:"cursor-pointer flex gap-2 text-black bg-green-5 hover:bg-green-7 py-3 px-8 rounded-6"},C[10]||(C[10]=[p("div",null,"注册",-1),p("div",null,"/",-1),p("div",null,"登录",-1)])))])]))]))}}),gc={},wc={"h-full":"",flex:"","justify-center":"","items-center":""};function yc(s,t){return T(),D("div",wc,t[0]||(t[0]=[p("div",{"text-center":"","text-8":"","line-height-8":""},[p("div",{"font-900":""},"404"),p("div",{"mt-4":""},"页面未找到")],-1)]))}const xc=Tn(gc,[["render",yc]]);async function nt(s){const{siteid:t,id:e}=s.params,l=Z.findIndex(n=>n.id==t);return l==-1?{name:"404"}:(s.meta.site=Z[l],s.meta.id=e,s.meta.index=l,te.value=l,!0)}const kc=to({history:so(),routes:[{path:"/",redirect:()=>`/${We[te.value]}`},{path:"/follow",component:ul},{path:"/user",component:mc},{path:"/category",redirect:()=>`/${We[te.value]}/category`},{path:"/search",redirect:()=>`/${We[te.value]}/search`},{path:"/:siteid",component:dl,beforeEnter:nt},{path:"/:siteid/category",component:Po,beforeEnter:nt},{path:"/:siteid/category/:id",component:Io,beforeEnter:nt},{path:"/:siteid/play/:id",component:Xa,beforeEnter:nt},{path:"/:siteid/search",component:Qo,beforeEnter:nt},{path:"/:pathMatch(.*)*",name:"404",component:xc}]}),_c={install(s){s.directive("lazy",{mounted(t,e){t.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJtMi4yNSAxNS43NWw1LjE1OS01LjE1OWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGw1LjE1OSA1LjE1OW0tMS41LTEuNWwxLjQwOS0xLjQwOWEyLjI1IDIuMjUgMCAwIDEgMy4xODIgMGwyLjkwOSAyLjkwOW0tMTggMy43NWgxNi41YTEuNSAxLjUgMCAwIDAgMS41LTEuNVY2YTEuNSAxLjUgMCAwIDAtMS41LTEuNUgzLjc1QTEuNSAxLjUgMCAwIDAgMi4yNSA2djEyYTEuNSAxLjUgMCAwIDAgMS41IDEuNW0xMC41LTExLjI1aC4wMDh2LjAwOGgtLjAwOHptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwYS4zNzUuMzc1IDAgMCAxIC43NSAwIi8+PC9zdmc+";const l=new IntersectionObserver(n=>{Hi(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)}})}},ei=yi(ro);ei.use(kc).use(_c);ei.mount("#app");
|
File without changes
|
File without changes
|