1234567891011121314151617181920 |
- var Vn=Object.defineProperty,jn=Object.defineProperties;var zn=Object.getOwnPropertyDescriptors;var Dt=Object.getOwnPropertySymbols;var Wn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable;var Pt=(e,t,n)=>t in e?Vn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t)=>{for(var n in t||(t={}))Wn.call(t,n)&&Pt(e,n,t[n]);if(Dt)for(var n of Dt(t))Kn.call(t,n)&&Pt(e,n,t[n]);return e},ke=(e,t)=>jn(e,zn(t));import{l as rn,r as ue,c as me,s as P,a as m,b as At,d as sn,e as Yn,f as an,t as Gn,g as ln,h as qn,o as Qn,i as cn,S as Jn,j as $n,k as H,L as j,V as Xn,A as Zn,m as eo,n as to,p as no,q as oo,u as Nt,v as ro,w as so,T as Ut,x as Ot,y as io,z as se,B as ht}from"./index.971264d4.js";import{d as Y,k as he,a as i,t as C,v as mt,x as gt,y as pt,j as Qe,A as ee,B as ao,C as un,D as dn,F as yt,G as fn,H as lo,I as co,J as hn,K as uo,L as Je,i as Et,r as G,M as fo,h as Tt,N as ho,l as ne,O as mo,P as go,Q as po,R as $e,S as Xe,T as Ze}from"./vendor.8df6bc42.js";const yo="_liveHeader_turek_1",vo="_liveLogo_turek_12",wo="_liveHeaderLeft_turek_17",bo="_liveHeaderLeftIcon_turek_23",Co="_liveHeaderLeftText_turek_27",So="_avatarWrapper_turek_30",Ao="_userAvatar_turek_37";var ae={liveHeader:yo,liveLogo:vo,liveHeaderLeft:wo,liveHeaderLeftIcon:bo,liveHeaderLeftText:Co,avatarWrapper:So,userAvatar:Ao},Eo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAJy0lEQVRYR62ZeXTTVRbHPy9tU5qmC90oqSylDBYBPbgM6PEIOqioVEekMgocdMTDjkwtAxTBslNgKrJDBaWnIoyKMgozc8bBQQdBFodddlpKW5bSJulC0yS/35z3a9KmadI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II=",To=Y({methods:{async loginOut(){try{await rn(),await ue.post("/api-auth/exit",{data:{}}),me("camera"),me("microphone"),P.user=null,m.syncLikeTimer&&clearTimeout(m.syncLikeTimer),he.success("\u9000\u51FA\u6210\u529F"),At(),this.$router.push({path:"/login",query:Z({},this.$route.query)})}catch{}}},render(){var e,t,n;return i("div",{class:ae.liveHeader},[i("div",{class:ae.liveHeaderLeft},[i("div",{class:ae.liveHeaderLeftIcon},[i("img",{class:ae.liveLogo,src:(e=P.user)==null?void 0:e.tenantLogo,alt:""},null),(t=P.user)==null?void 0:t.tenantName]),i("div",{class:ae.liveHeaderLeftText},[C("\u300A"),(n=P.user)==null?void 0:n.roomTitle,C("\u300B")])]),i(mt,{trigger:"hover"},{default:()=>{var o,s,r;return[i("div",{class:ae.avatarWrapper},[((o=P.user)==null?void 0:o.speakerPic)?i("img",{class:ae.userAvatar,src:(s=P.user)==null?void 0:s.speakerPic},null):i("img",{class:ae.userAvatar,src:Eo},null),i("span",null,[(r=P.user)==null?void 0:r.speakerName])])]},dropdown:()=>i(gt,null,{default:()=>[i(pt,{command:"1",onClick:this.loginOut},{default:()=>[i("span",null,[C("\u5B89\u5168\u9000\u51FA")])]})]})})])}});const Bo="_header_nc46v_1",Io="_title_nc46v_10";var Ht={header:Bo,title:Io},_o=Y({name:"LiveBroadcastHeader",methods:{async startLive(){try{await Qe.confirm("\u5F00\u542F\u540E\u5B66\u751F\u5C06\u770B\u5230\u89C6\u9891\u753B\u9762","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await sn(),he.success("\u5F00\u542F\u6210\u529F")}catch(e){console.log(e)}},async closeLive(){try{await Qe.confirm("\u5173\u95ED\u540E\u5C06\u5207\u65AD\u89C6\u9891\uFF0C\u5B66\u751F\u4E0D\u53EF\u89C2\u770B","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await Yn(),he.success("\u5173\u95ED\u6210\u529F")}catch{}},async closeRoom(){var e;try{await Qe.confirm("\u7ED3\u675F\u540E\u5C06\u65E0\u6CD5\u8FDB\u5165\u76F4\u64AD\u95F4","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"});const t=(e=P.user)==null?void 0:e.id;await ue.get("/api-web/imLiveBroadcastRoom/roomDestroy/"+t,{}),me("camera"),me("microphone"),P.user=null,At(),he.success("\u7ED3\u675F"),this.$router.push({path:"/login",query:Z({},this.$route.query)})}catch{}}},render(){var e;return i("div",{class:Ht.header},[i("h3",{class:Ht.title},[C("\u76F4\u64AD\u5185\u5BB9\uFF1A"),(e=P.user)==null?void 0:e.liveRemark]),i("div",null,[m.videoStatus==="liveing"?i(ee,{type:"danger",color:"#01A79E",onClick:this.closeLive},{default:()=>[C("\u6682\u505C\u76F4\u64AD")]}):i(ee,{type:"primary",color:"#01A79E",onClick:this.startLive},{default:()=>[C("\u5F00\u542F\u76F4\u64AD")]}),i(ee,{type:"primary",color:"#EA4132",onClick:this.closeRoom},{default:()=>[C("\u7ED3\u675F\u76F4\u64AD")]})])])}});const Ro="_volumeSlider_1akc3_71",Lo="_volumeIcon_1akc3_80",ko="_btnInner_1akc3_85";var q={"action-bar":"_action-bar_1akc3_1","bar-btn":"_bar-btn_1akc3_12","bar-btn-text":"_bar-btn-text_1akc3_19",volumeSlider:Ro,volumeIcon:Lo,btnInner:ko};const Mo="_shareWrap_d61fv_1",xo="_shareBtn_d61fv_27";var re={shareWrap:Mo,shareBtn:xo};function Fo(){let e=window.location.href,t="";return/online/.test(e)?t="https://mstuonline.dayaedu.com":/dev/.test(e)?t="http://mstudev.dayaedu.com":/test/.test(e)?t="http://mstutest.dayaedu.com":t="http://mstudev.dayaedu.com",t}var mn=globalThis&&globalThis.__awaiter||function(e,t,n,o){function s(r){return r instanceof n?r:new n(function(a){a(r)})}return new(n||(n=Promise))(function(r,a){function l(u){try{d(o.next(u))}catch(h){a(h)}}function c(u){try{d(o.throw(u))}catch(h){a(h)}}function d(u){u.done?r(u.value):s(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};const Vt="application/font-woff",jt="image/jpeg",Do={woff:Vt,woff2:Vt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:jt,jpeg:jt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function Po(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Pe(e){const t=Po(e).toLowerCase();return Do[t]||""}function No(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),o=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(s),t&&(o.href=t),s.href=e,s.href}function vt(e){return e.search(/^(data:)/)!==-1}function Ne(e,t){return`data:${t};base64,${e}`}function Uo(e){return e.split(/,/)[1]}const Oo=function(){let t=0;const n=()=>`0000${(Math.random()*Math.pow(36,4)<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${n()}${t}`)}();function de(e){const t=[];for(let n=0,o=e.length;n<o;n+=1)t.push(e[n]);return t}function Ue(e,t){const n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}function Ho(e){const t=Ue(e,"border-left-width"),n=Ue(e,"border-right-width");return e.clientWidth+t+n}function Vo(e){const t=Ue(e,"border-top-width"),n=Ue(e,"border-bottom-width");return e.clientHeight+t+n}function jo(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}function Bt(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>t(o),o.onerror=n,o.crossOrigin="anonymous",o.decoding="sync",o.src=e})}function zo(e){return mn(this,void 0,void 0,function*(){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)})}function Wo(e,t,n){return mn(this,void 0,void 0,function*(){const o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg"),r=document.createElementNS(o,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),s.appendChild(r),r.appendChild(e),zo(s)})}const et={};function Ko(e){let t=e.replace(/\?.*/,"");return/ttf|otf|eot|woff2?/i.test(t)&&(t=t.replace(/.*\//,"")),t}function It(e,t){const n=Ko(e);if(et[n]!=null)return et[n];t.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());const o=r=>{let a="";if(t.imagePlaceholder){const c=t.imagePlaceholder.split(/,/);c&&c[1]&&(a=c[1])}let l=`Failed to fetch resource: ${e}`;return r&&(l=typeof r=="string"?r:r.message),l&&console.error(l),{blob:a,contentType:""}},s=window.fetch(e).then(r=>r.blob().then(a=>({blob:a,contentType:r.headers.get("Content-Type")||""}))).then(({blob:r,contentType:a})=>new Promise((l,c)=>{const d=new FileReader;d.onloadend=()=>l({contentType:a,blob:d.result}),d.onerror=c,d.readAsDataURL(r)})).then(({blob:r,contentType:a})=>({contentType:a,blob:Uo(r)})).catch(o);return et[n]=s,s}function Yo(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Go(e){return de(e).map(t=>{const n=e.getPropertyValue(t),o=e.getPropertyPriority(t);return`${t}: ${n}${o?" !important":""};`}).join(" ")}function qo(e,t,n){const o=`.${e}:${t}`,s=n.cssText?Yo(n):Go(n);return document.createTextNode(`${o}{${s}}`)}function zt(e,t,n){const o=window.getComputedStyle(e,n),s=o.getPropertyValue("content");if(s===""||s==="none")return;const r=Oo();try{t.className=`${t.className} ${r}`}catch{return}const a=document.createElement("style");a.appendChild(qo(r,n,o)),t.appendChild(a)}function Qo(e,t){zt(e,t,":before"),zt(e,t,":after")}var Ce=globalThis&&globalThis.__awaiter||function(e,t,n,o){function s(r){return r instanceof n?r:new n(function(a){a(r)})}return new(n||(n=Promise))(function(r,a){function l(u){try{d(o.next(u))}catch(h){a(h)}}function c(u){try{d(o.throw(u))}catch(h){a(h)}}function d(u){u.done?r(u.value):s(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};function Jo(e){return Ce(this,void 0,void 0,function*(){const t=e.toDataURL();return t==="data:,"?Promise.resolve(e.cloneNode(!1)):Bt(t)})}function $o(e,t){return Ce(this,void 0,void 0,function*(){return Promise.resolve(e.poster).then(n=>It(n,t)).then(n=>Ne(n.blob,Pe(e.poster)||n.contentType)).then(n=>Bt(n))})}function Xo(e,t){return Ce(this,void 0,void 0,function*(){return e instanceof HTMLCanvasElement?Jo(e):e instanceof HTMLVideoElement&&e.poster?$o(e,t):Promise.resolve(e.cloneNode(!1))})}const Zo=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";function er(e,t,n){var o;return Ce(this,void 0,void 0,function*(){const s=Zo(e)&&e.assignedNodes?de(e.assignedNodes()):de(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes);return s.length===0||e instanceof HTMLVideoElement?Promise.resolve(t):s.reduce((r,a)=>r.then(()=>gn(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()).then(()=>t)})}function tr(e,t){const n=window.getComputedStyle(e),o=t.style;!o||(n.cssText?o.cssText=n.cssText:de(n).forEach(s=>{o.setProperty(s,n.getPropertyValue(s),n.getPropertyPriority(s))}))}function nr(e,t){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}function or(e,t){return Ce(this,void 0,void 0,function*(){return t instanceof Element?Promise.resolve().then(()=>tr(e,t)).then(()=>Qo(e,t)).then(()=>nr(e,t)).then(()=>t):Promise.resolve(t)})}function gn(e,t,n){return Ce(this,void 0,void 0,function*(){return!n&&t.filter&&!t.filter(e)?Promise.resolve(null):Promise.resolve(e).then(o=>Xo(o,t)).then(o=>er(e,o,t)).then(o=>or(e,o))})}var rr=globalThis&&globalThis.__awaiter||function(e,t,n,o){function s(r){return r instanceof n?r:new n(function(a){a(r)})}return new(n||(n=Promise))(function(r,a){function l(u){try{d(o.next(u))}catch(h){a(h)}}function c(u){try{d(o.throw(u))}catch(h){a(h)}}function d(u){u.done?r(u.value):s(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};const pn=/url\((['"]?)([^'"]+?)\1\)/g,sr=/url\([^)]+\)\s*format\((["'])([^"']+)\1\)/g,ir=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function ar(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function lr(e){const t=[];return e.replace(pn,(n,o,s)=>(t.push(s),n)),t.filter(n=>!vt(n))}function cr(e,t,n,o,s){const r=n?No(t,n):t;return Promise.resolve(r).then(a=>s?s(a):It(a,o)).then(a=>typeof a=="string"?Ne(a,Pe(t)):Ne(a.blob,Pe(t)||a.contentType)).then(a=>e.replace(ar(t),`$1${a}$3`)).then(a=>a,()=>r)}function ur(e,{preferredFontFormat:t}){return t?e.replace(ir,n=>{for(;;){const[o,,s]=sr.exec(n)||[];if(!s)return"";if(s===t)return`src: ${o};`}}):e}function yn(e){return e.search(pn)!==-1}function vn(e,t,n){return rr(this,void 0,void 0,function*(){if(!yn(e))return Promise.resolve(e);const o=ur(e,n);return Promise.resolve(o).then(lr).then(s=>s.reduce((r,a)=>r.then(l=>cr(l,a,t,n)),Promise.resolve(o)))})}var Ve=globalThis&&globalThis.__awaiter||function(e,t,n,o){function s(r){return r instanceof n?r:new n(function(a){a(r)})}return new(n||(n=Promise))(function(r,a){function l(u){try{d(o.next(u))}catch(h){a(h)}}function c(u){try{d(o.throw(u))}catch(h){a(h)}}function d(u){u.done?r(u.value):s(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};function dr(e,t){var n;return Ve(this,void 0,void 0,function*(){const o=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue("background");return o?Promise.resolve(o).then(s=>vn(s,null,t)).then(s=>(e.style.setProperty("background",s,e.style.getPropertyPriority("background")),e)):Promise.resolve(e)})}function fr(e,t){return Ve(this,void 0,void 0,function*(){if(!(e instanceof HTMLImageElement&&!vt(e.src))&&!(e instanceof SVGImageElement&&!vt(e.href.baseVal)))return Promise.resolve(e);const n=e instanceof HTMLImageElement?e.src:e.href.baseVal;return Promise.resolve(n).then(o=>It(o,t)).then(o=>Ne(o.blob,Pe(n)||o.contentType)).then(o=>new Promise((s,r)=>{e.onload=s,e.onerror=r,e instanceof HTMLImageElement?(e.srcset="",e.src=o):e.href.baseVal=o})).then(()=>e,()=>e)})}function hr(e,t){return Ve(this,void 0,void 0,function*(){const o=de(e.childNodes).map(s=>wn(s,t));return Promise.all(o).then(()=>e)})}function wn(e,t){return Ve(this,void 0,void 0,function*(){return e instanceof Element?Promise.resolve(e).then(n=>dr(n,t)).then(n=>fr(n,t)).then(n=>hr(n,t)):Promise.resolve(e)})}function mr(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const o=t.style;return o!=null&&Object.keys(o).forEach(s=>{n[s]=o[s]}),e}var Ie=globalThis&&globalThis.__awaiter||function(e,t,n,o){function s(r){return r instanceof n?r:new n(function(a){a(r)})}return new(n||(n=Promise))(function(r,a){function l(u){try{d(o.next(u))}catch(h){a(h)}}function c(u){try{d(o.throw(u))}catch(h){a(h)}}function d(u){u.done?r(u.value):s(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};const Wt={};function Kt(e){const t=Wt[e];if(t!=null)return t;const n=window.fetch(e).then(o=>({url:e,cssText:o.text()}));return Wt[e]=n,n}function Yt(e){return Ie(this,void 0,void 0,function*(){return e.cssText.then(t=>{let n=t;const o=/url\(["']?([^"')]+)["']?\)/g,r=(n.match(/url\([^)]+\)/g)||[]).map(a=>{let l=a.replace(o,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),window.fetch(l).then(c=>c.blob()).then(c=>new Promise((d,u)=>{const h=new FileReader;h.onloadend=()=>{n=n.replace(a,`url(${h.result})`),d([a,h.result])},h.onerror=u,h.readAsDataURL(c)}))});return Promise.all(r).then(()=>n)})})}function Gt(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let o=e.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=s.exec(o);if(c===null)break;t.push(c[0])}o=o.replace(s,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(a,"gi");for(;;){let c=r.exec(o);if(c===null){if(c=l.exec(o),c===null)break;r.lastIndex=l.lastIndex}else l.lastIndex=r.lastIndex;t.push(c[0])}return t}function gr(e){return Ie(this,void 0,void 0,function*(){const t=[],n=[];return e.forEach(o=>{if("cssRules"in o)try{de(o.cssRules).forEach((s,r)=>{if(s.type===CSSRule.IMPORT_RULE){let a=r+1;const l=s.href,c=Kt(l).then(d=>d?Yt(d):"").then(d=>Gt(d).forEach(u=>{try{o.insertRule(u,u.startsWith("@import")?a+=1:o.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:u,error:h})}})).catch(d=>{console.error("Error loading remote css",d.toString())});n.push(c)}})}catch(s){const r=e.find(a=>a.href==null)||document.styleSheets[0];o.href!=null&&n.push(Kt(o.href).then(a=>a?Yt(a):"").then(a=>Gt(a).forEach(l=>{r.insertRule(l,o.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a.toString())})),console.error("Error inlining remote css file",s.toString())}}),Promise.all(n).then(()=>(e.forEach(o=>{if("cssRules"in o)try{de(o.cssRules).forEach(s=>{t.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${o.href}`,s.toString())}}),t))})}function pr(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>yn(t.style.getPropertyValue("src")))}function yr(e){return Ie(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.ownerDocument==null&&n(new Error("Provided element is not within a Document")),t(de(e.ownerDocument.styleSheets))}).then(t=>gr(t)).then(pr)})}function vr(e,t){return Ie(this,void 0,void 0,function*(){return yr(e).then(n=>Promise.all(n.map(o=>{const s=o.parentStyleSheet?o.parentStyleSheet.href:null;return vn(o.cssText,s,t)}))).then(n=>n.join(`
- `))})}function wr(e,t){return Ie(this,void 0,void 0,function*(){return(t.fontEmbedCSS!=null?Promise.resolve(t.fontEmbedCSS):vr(e,t)).then(n=>{const o=document.createElement("style"),s=document.createTextNode(n);return o.appendChild(s),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o),e})})}var _t=globalThis&&globalThis.__awaiter||function(e,t,n,o){function s(r){return r instanceof n?r:new n(function(a){a(r)})}return new(n||(n=Promise))(function(r,a){function l(u){try{d(o.next(u))}catch(h){a(h)}}function c(u){try{d(o.throw(u))}catch(h){a(h)}}function d(u){u.done?r(u.value):s(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};function bn(e,t={}){const n=t.width||Ho(e),o=t.height||Vo(e);return{width:n,height:o}}function br(e,t={}){return _t(this,void 0,void 0,function*(){const{width:n,height:o}=bn(e,t);return Promise.resolve(e).then(s=>gn(s,t,!0)).then(s=>wr(s,t)).then(s=>wn(s,t)).then(s=>mr(s,t)).then(s=>Wo(s,n,o))})}const $=16384;function Cr(e){(e.width>$||e.height>$)&&(e.width>$&&e.height>$?e.width>e.height?(e.height*=$/e.width,e.width=$):(e.width*=$/e.height,e.height=$):e.width>$?(e.height*=$/e.width,e.width=$):(e.width*=$/e.height,e.height=$))}function Sr(e,t={}){return _t(this,void 0,void 0,function*(){return br(e,t).then(Bt).then(n=>{const o=document.createElement("canvas"),s=o.getContext("2d"),r=t.pixelRatio||jo(),{width:a,height:l}=bn(e,t),c=t.canvasWidth||a,d=t.canvasHeight||l;return o.width=c*r,o.height=d*r,t.skipAutoScale||Cr(o),o.style.width=`${c}`,o.style.height=`${d}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(n,0,0,o.width,o.height),o})})}function Ar(e,t={}){return _t(this,void 0,void 0,function*(){return Sr(e,t).then(n=>n.toDataURL())})}var Cn={exports:{}};/*!
- * clipboard.js v2.0.10
- * https://clipboardjs.com/
- *
- * Licensed MIT © Zeno Rocha
- */(function(e,t){(function(o,s){e.exports=s()})(un,function(){return function(){var n={686:function(r,a,l){l.d(a,{default:function(){return Hn}});var c=l(279),d=l.n(c),u=l(370),h=l.n(u),p=l(817),y=l.n(p);function g(M){try{return document.execCommand(M)}catch{return!1}}var w=function(B){var E=y()(B);return g("cut"),E},I=w;function b(M){var B=document.documentElement.getAttribute("dir")==="rtl",E=document.createElement("textarea");E.style.fontSize="12pt",E.style.border="0",E.style.padding="0",E.style.margin="0",E.style.position="absolute",E.style[B?"right":"left"]="-9999px";var x=window.pageYOffset||document.documentElement.scrollTop;return E.style.top="".concat(x,"px"),E.setAttribute("readonly",""),E.value=M,E}var L=function(B){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},x="";if(typeof B=="string"){var _=b(B);E.container.appendChild(_),x=y()(_),g("copy"),_.remove()}else x=y()(B),g("copy");return x},S=L;function A(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(E){return typeof E}:A=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},A(M)}var T=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=B.action,x=E===void 0?"copy":E,_=B.container,D=B.target,te=B.text;if(x!=="copy"&&x!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(D!==void 0)if(D&&A(D)==="object"&&D.nodeType===1){if(x==="copy"&&D.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(x==="cut"&&(D.hasAttribute("readonly")||D.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(te)return S(te,{container:_});if(D)return x==="cut"?I(D):S(D,{container:_})},v=T;function f(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(E){return typeof E}:f=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},f(M)}function k(M,B){if(!(M instanceof B))throw new TypeError("Cannot call a class as a function")}function U(M,B){for(var E=0;E<B.length;E++){var x=B[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(M,x.key,x)}}function F(M,B,E){return B&&U(M.prototype,B),E&&U(M,E),M}function V(M,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(B&&B.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),B&&z(M,B)}function z(M,B){return z=Object.setPrototypeOf||function(x,_){return x.__proto__=_,x},z(M,B)}function W(M){var B=Ge();return function(){var x=ie(M),_;if(B){var D=ie(this).constructor;_=Reflect.construct(x,arguments,D)}else _=x.apply(this,arguments);return Se(this,_)}}function Se(M,B){return B&&(f(B)==="object"||typeof B=="function")?B:Ye(M)}function Ye(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function Ge(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ie(M){return ie=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},ie(M)}function qe(M,B){var E="data-clipboard-".concat(M);if(!!B.hasAttribute(E))return B.getAttribute(E)}var On=function(M){V(E,M);var B=W(E);function E(x,_){var D;return k(this,E),D=B.call(this),D.resolveOptions(_),D.listenClick(x),D}return F(E,[{key:"resolveOptions",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof _.action=="function"?_.action:this.defaultAction,this.target=typeof _.target=="function"?_.target:this.defaultTarget,this.text=typeof _.text=="function"?_.text:this.defaultText,this.container=f(_.container)==="object"?_.container:document.body}},{key:"listenClick",value:function(_){var D=this;this.listener=h()(_,"click",function(te){return D.onClick(te)})}},{key:"onClick",value:function(_){var D=_.delegateTarget||_.currentTarget,te=this.action(D)||"copy",Le=v({action:te,container:this.container,target:this.target(D),text:this.text(D)});this.emit(Le?"success":"error",{action:te,text:Le,trigger:D,clearSelection:function(){D&&D.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(_){return qe("action",_)}},{key:"defaultTarget",value:function(_){var D=qe("target",_);if(D)return document.querySelector(D)}},{key:"defaultText",value:function(_){return qe("text",_)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(_){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(_,D)}},{key:"cut",value:function(_){return I(_)}},{key:"isSupported",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],D=typeof _=="string"?[_]:_,te=!!document.queryCommandSupported;return D.forEach(function(Le){te=te&&!!document.queryCommandSupported(Le)}),te}}]),E}(d()),Hn=On},828:function(r){var a=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function c(d,u){for(;d&&d.nodeType!==a;){if(typeof d.matches=="function"&&d.matches(u))return d;d=d.parentNode}}r.exports=c},438:function(r,a,l){var c=l(828);function d(p,y,g,w,I){var b=h.apply(this,arguments);return p.addEventListener(g,b,I),{destroy:function(){p.removeEventListener(g,b,I)}}}function u(p,y,g,w,I){return typeof p.addEventListener=="function"?d.apply(null,arguments):typeof g=="function"?d.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return d(b,y,g,w,I)}))}function h(p,y,g,w){return function(I){I.delegateTarget=c(I.target,y),I.delegateTarget&&w.call(p,I)}}r.exports=u},879:function(r,a){a.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},a.nodeList=function(l){var c=Object.prototype.toString.call(l);return l!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in l&&(l.length===0||a.node(l[0]))},a.string=function(l){return typeof l=="string"||l instanceof String},a.fn=function(l){var c=Object.prototype.toString.call(l);return c==="[object Function]"}},370:function(r,a,l){var c=l(879),d=l(438);function u(g,w,I){if(!g&&!w&&!I)throw new Error("Missing required arguments");if(!c.string(w))throw new TypeError("Second argument must be a String");if(!c.fn(I))throw new TypeError("Third argument must be a Function");if(c.node(g))return h(g,w,I);if(c.nodeList(g))return p(g,w,I);if(c.string(g))return y(g,w,I);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function h(g,w,I){return g.addEventListener(w,I),{destroy:function(){g.removeEventListener(w,I)}}}function p(g,w,I){return Array.prototype.forEach.call(g,function(b){b.addEventListener(w,I)}),{destroy:function(){Array.prototype.forEach.call(g,function(b){b.removeEventListener(w,I)})}}}function y(g,w,I){return d(document.body,g,w,I)}r.exports=u},817:function(r){function a(l){var c;if(l.nodeName==="SELECT")l.focus(),c=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var d=l.hasAttribute("readonly");d||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),d||l.removeAttribute("readonly"),c=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var u=window.getSelection(),h=document.createRange();h.selectNodeContents(l),u.removeAllRanges(),u.addRange(h),c=u.toString()}return c}r.exports=a},279:function(r){function a(){}a.prototype={on:function(l,c,d){var u=this.e||(this.e={});return(u[l]||(u[l]=[])).push({fn:c,ctx:d}),this},once:function(l,c,d){var u=this;function h(){u.off(l,h),c.apply(d,arguments)}return h._=c,this.on(l,h,d)},emit:function(l){var c=[].slice.call(arguments,1),d=((this.e||(this.e={}))[l]||[]).slice(),u=0,h=d.length;for(u;u<h;u++)d[u].fn.apply(d[u].ctx,c);return this},off:function(l,c){var d=this.e||(this.e={}),u=d[l],h=[];if(u&&c)for(var p=0,y=u.length;p<y;p++)u[p].fn!==c&&u[p].fn._!==c&&h.push(u[p]);return h.length?d[l]=h:delete d[l],this}},r.exports=a,r.exports.TinyEmitter=a}},o={};function s(r){if(o[r])return o[r].exports;var a=o[r]={exports:{}};return n[r](a,a.exports,s),a.exports}return function(){s.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(a,{a}),a}}(),function(){s.d=function(r,a){for(var l in a)s.o(a,l)&&!s.o(r,l)&&Object.defineProperty(r,l,{enumerable:!0,get:a[l]})}}(),function(){s.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)}}(),s(686)}().default})})(Cn);var Er=ao(Cn.exports);const Tr="_shareWrap_ap100_1",Br="_chioseBox_ap100_5",Ir="_cell_ap100_17",_r="_dotle_ap100_27",Rr="_teamInfo_ap100_38",Lr="_title_ap100_42",kr="_subInfo_ap100_47",Mr="_tableWrap_ap100_51";var le={shareWrap:Tr,chioseBox:Br,cell:Ir,dotle:_r,teamInfo:Rr,title:Lr,subInfo:kr,tableWrap:Mr};function xr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}var Fr=Y({name:"LiveBroadcastGroupChat",data(){return{searchForm:{search:""},checkList:[],tableList:[]}},async mounted(){this.getList()},beforeUnmount(){},methods:{onReSet(){this.searchForm.search="",this.checkList=[],this.search()},search(){this.getList()},async getList(){try{const e=await ue("/api-web/imGroup/queryGroupList",{params:Z({},this.searchForm)});this.tableList=e.data}catch(e){console.log(e)}},resectCheck(e){const t=e;this.checkList.indexOf(t)==-1?this.checkList.push(t):this.checkList.splice(this.checkList.indexOf(t),1)}},render(){let e;return i("div",null,[i(dn,{model:this.searchForm,ref:"form",inline:!0,class:le.form},{default:()=>[i(yt,null,{default:()=>[i(fn,{clearable:!0,placeholder:"\u7FA4\u804A\u540D\u79F0/\u8BFE\u7A0B\u540D\u79F0",modelValue:this.searchForm.search,onInput:t=>this.searchForm.search=t},null)]}),i(yt,null,{default:()=>[i(ee,{type:"primary",onClick:this.search},{default:()=>[C("\u641C\u7D22")]}),i(ee,{type:"danger",onClick:this.onReSet},{default:()=>[C("\u91CD\u7F6E")]})]})]}),this.tableList.length>0?i("div",{class:le.tableWrap},[i(lo,{modelValue:this.checkList},xr(e=this.tableList.map(t=>i("div",{class:le.cell,onClick:()=>this.resectCheck(t.id)},[i(co,{class:le.chioseBox,label:t.id,onChange:()=>this.resectCheck(t.id)},{default:()=>[i("br",null,null)]}),i("div",{class:le.dotle},[t.type=="MUSIC"?"\u4E50\u56E2":"VIP"]),i("div",{class:le.teamInfo},[i("p",{class:le.title},[t.name]),i("p",{class:le.subInfo},[t.memo,C("\uFF08\u5171"),t.memberNum,C("\u4EBA\uFF09")])])])))?e:{default:()=>[e]})]):i(uo,{description:"\u6682\u65E0\u7FA4\u804A"},null)])}});const Dr="_third_p1nol_1",Pr="_preCore_p1nol_19",Nr="_title_p1nol_19",Ur="_second_p1nol_22",Or="_first_p1nol_43",Hr="_icon_p1nol_61",Vr="_teacher_p1nol_68",jr="_start_p1nol_84",zr="_time_p1nol_103",Wr="_content_p1nol_112",Kr="_pre_p1nol_19",Yr="_end_p1nol_132",Gr="_bottom_p1nol_139",qr="_logo_p1nol_145",Qr="_code_p1nol_149";var R={third:Dr,preCore:Pr,title:Nr,second:Ur,first:Or,icon:Hr,teacher:Vr,start:jr,time:zr,content:Wr,pre:Kr,end:Yr,bottom:Gr,logo:qr,code:Qr},_e={},Jr=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Sn={},X={};let Rt;const $r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];X.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};X.getSymbolTotalCodewords=function(t){return $r[t]};X.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};X.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Rt=t};X.isKanjiModeEnabled=function(){return typeof Rt!="undefined"};X.toSJIS=function(t){return Rt(t)};var je={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(o){return o&&typeof o.bit!="undefined"&&o.bit>=0&&o.bit<4},e.from=function(o,s){if(e.isValid(o))return o;try{return t(o)}catch{return s}}})(je);function An(){this.buffer=[],this.length=0}An.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Xr=An;function Re(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Re.prototype.set=function(e,t,n,o){const s=e*this.size+t;this.data[s]=n,o&&(this.reservedBit[s]=!0)};Re.prototype.get=function(e,t){return this.data[e*this.size+t]};Re.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Re.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Zr=Re,En={};(function(e){const t=X.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const s=Math.floor(o/7)+2,r=t(o),a=r===145?26:Math.ceil((r-13)/(2*s-2))*2,l=[r-7];for(let c=1;c<s-1;c++)l[c]=l[c-1]-a;return l.push(6),l.reverse()},e.getPositions=function(o){const s=[],r=e.getRowColCoords(o),a=r.length;for(let l=0;l<a;l++)for(let c=0;c<a;c++)l===0&&c===0||l===0&&c===a-1||l===a-1&&c===0||s.push([r[l],r[c]]);return s}})(En);var Tn={};const es=X.getSymbolSize,qt=7;Tn.getPositions=function(t){const n=es(t);return[[0,0],[n-qt,0],[0,n-qt]]};var Bn={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},e.from=function(s){return e.isValid(s)?parseInt(s,10):void 0},e.getPenaltyN1=function(s){const r=s.size;let a=0,l=0,c=0,d=null,u=null;for(let h=0;h<r;h++){l=c=0,d=u=null;for(let p=0;p<r;p++){let y=s.get(h,p);y===d?l++:(l>=5&&(a+=t.N1+(l-5)),d=y,l=1),y=s.get(p,h),y===u?c++:(c>=5&&(a+=t.N1+(c-5)),u=y,c=1)}l>=5&&(a+=t.N1+(l-5)),c>=5&&(a+=t.N1+(c-5))}return a},e.getPenaltyN2=function(s){const r=s.size;let a=0;for(let l=0;l<r-1;l++)for(let c=0;c<r-1;c++){const d=s.get(l,c)+s.get(l,c+1)+s.get(l+1,c)+s.get(l+1,c+1);(d===4||d===0)&&a++}return a*t.N2},e.getPenaltyN3=function(s){const r=s.size;let a=0,l=0,c=0;for(let d=0;d<r;d++){l=c=0;for(let u=0;u<r;u++)l=l<<1&2047|s.get(d,u),u>=10&&(l===1488||l===93)&&a++,c=c<<1&2047|s.get(u,d),u>=10&&(c===1488||c===93)&&a++}return a*t.N3},e.getPenaltyN4=function(s){let r=0;const a=s.data.length;for(let c=0;c<a;c++)r+=s.data[c];return Math.abs(Math.ceil(r*100/a/5)-10)*t.N4};function n(o,s,r){switch(o){case e.Patterns.PATTERN000:return(s+r)%2===0;case e.Patterns.PATTERN001:return s%2===0;case e.Patterns.PATTERN010:return r%3===0;case e.Patterns.PATTERN011:return(s+r)%3===0;case e.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(r/3))%2===0;case e.Patterns.PATTERN101:return s*r%2+s*r%3===0;case e.Patterns.PATTERN110:return(s*r%2+s*r%3)%2===0;case e.Patterns.PATTERN111:return(s*r%3+(s+r)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(s,r){const a=r.size;for(let l=0;l<a;l++)for(let c=0;c<a;c++)r.isReserved(c,l)||r.xor(c,l,n(s,c,l))},e.getBestMask=function(s,r){const a=Object.keys(e.Patterns).length;let l=0,c=1/0;for(let d=0;d<a;d++){r(d),e.applyMask(d,s);const u=e.getPenaltyN1(s)+e.getPenaltyN2(s)+e.getPenaltyN3(s)+e.getPenaltyN4(s);e.applyMask(d,s),u<c&&(c=u,l=d)}return l}})(Bn);var ze={};const ce=je,Me=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],xe=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ze.getBlocksCount=function(t,n){switch(n){case ce.L:return Me[(t-1)*4+0];case ce.M:return Me[(t-1)*4+1];case ce.Q:return Me[(t-1)*4+2];case ce.H:return Me[(t-1)*4+3];default:return}};ze.getTotalCodewordsCount=function(t,n){switch(n){case ce.L:return xe[(t-1)*4+0];case ce.M:return xe[(t-1)*4+1];case ce.Q:return xe[(t-1)*4+2];case ce.H:return xe[(t-1)*4+3];default:return}};var In={},We={};const Te=new Uint8Array(512),Oe=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Te[n]=t,Oe[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Te[n]=Te[n-255]})();We.log=function(t){if(t<1)throw new Error("log("+t+")");return Oe[t]};We.exp=function(t){return Te[t]};We.mul=function(t,n){return t===0||n===0?0:Te[Oe[t]+Oe[n]]};(function(e){const t=We;e.mul=function(o,s){const r=new Uint8Array(o.length+s.length-1);for(let a=0;a<o.length;a++)for(let l=0;l<s.length;l++)r[a+l]^=t.mul(o[a],s[l]);return r},e.mod=function(o,s){let r=new Uint8Array(o);for(;r.length-s.length>=0;){const a=r[0];for(let c=0;c<s.length;c++)r[c]^=t.mul(s[c],a);let l=0;for(;l<r.length&&r[l]===0;)l++;r=r.slice(l)}return r},e.generateECPolynomial=function(o){let s=new Uint8Array([1]);for(let r=0;r<o;r++)s=e.mul(s,new Uint8Array([1,t.exp(r)]));return s}})(In);const _n=In;function Lt(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Lt.prototype.initialize=function(t){this.degree=t,this.genPoly=_n.generateECPolynomial(this.degree)};Lt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const o=_n.mod(n,this.genPoly),s=this.degree-o.length;if(s>0){const r=new Uint8Array(this.degree);return r.set(o,s),r}return o};var ts=Lt,Rn={},fe={},kt={};kt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var oe={};const Ln="[0-9]+",ns="[A-Z $%*+\\-./:]+";let Be="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Be=Be.replace(/u/g,"\\u");const os="(?:(?![A-Z0-9 $%*+\\-./:]|"+Be+`)(?:.|[\r
- ]))+`;oe.KANJI=new RegExp(Be,"g");oe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");oe.BYTE=new RegExp(os,"g");oe.NUMERIC=new RegExp(Ln,"g");oe.ALPHANUMERIC=new RegExp(ns,"g");const rs=new RegExp("^"+Be+"$"),ss=new RegExp("^"+Ln+"$"),is=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");oe.testKanji=function(t){return rs.test(t)};oe.testNumeric=function(t){return ss.test(t)};oe.testAlphanumeric=function(t){return is.test(t)};(function(e){const t=kt,n=oe;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(r,a){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?r.ccBits[0]:a<27?r.ccBits[1]:r.ccBits[2]},e.getBestModeForData=function(r){return n.testNumeric(r)?e.NUMERIC:n.testAlphanumeric(r)?e.ALPHANUMERIC:n.testKanji(r)?e.KANJI:e.BYTE},e.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},e.isValid=function(r){return r&&r.bit&&r.ccBits};function o(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+s)}}e.from=function(r,a){if(e.isValid(r))return r;try{return o(r)}catch{return a}}})(fe);(function(e){const t=X,n=ze,o=je,s=fe,r=kt,a=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,l=t.getBCHDigit(a);function c(p,y,g){for(let w=1;w<=40;w++)if(y<=e.getCapacity(w,g,p))return w}function d(p,y){return s.getCharCountIndicator(p,y)+4}function u(p,y){let g=0;return p.forEach(function(w){g+=d(w.mode,y)+w.getBitsLength()}),g}function h(p,y){for(let g=1;g<=40;g++)if(u(p,g)<=e.getCapacity(g,y,s.MIXED))return g}e.from=function(y,g){return r.isValid(y)?parseInt(y,10):g},e.getCapacity=function(y,g,w){if(!r.isValid(y))throw new Error("Invalid QR Code version");typeof w=="undefined"&&(w=s.BYTE);const I=t.getSymbolTotalCodewords(y),b=n.getTotalCodewordsCount(y,g),L=(I-b)*8;if(w===s.MIXED)return L;const S=L-d(w,y);switch(w){case s.NUMERIC:return Math.floor(S/10*3);case s.ALPHANUMERIC:return Math.floor(S/11*2);case s.KANJI:return Math.floor(S/13);case s.BYTE:default:return Math.floor(S/8)}},e.getBestVersionForData=function(y,g){let w;const I=o.from(g,o.M);if(Array.isArray(y)){if(y.length>1)return h(y,I);if(y.length===0)return 1;w=y[0]}else w=y;return c(w.mode,w.getLength(),I)},e.getEncodedBits=function(y){if(!r.isValid(y)||y<7)throw new Error("Invalid QR Code version");let g=y<<12;for(;t.getBCHDigit(g)-l>=0;)g^=a<<t.getBCHDigit(g)-l;return y<<12|g}})(Rn);var kn={};const wt=X,Mn=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,as=1<<14|1<<12|1<<10|1<<4|1<<1,Qt=wt.getBCHDigit(Mn);kn.getEncodedBits=function(t,n){const o=t.bit<<3|n;let s=o<<10;for(;wt.getBCHDigit(s)-Qt>=0;)s^=Mn<<wt.getBCHDigit(s)-Qt;return(o<<10|s)^as};var xn={};const ls=fe;function ye(e){this.mode=ls.NUMERIC,this.data=e.toString()}ye.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ye.prototype.getLength=function(){return this.data.length};ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)};ye.prototype.write=function(t){let n,o,s;for(n=0;n+3<=this.data.length;n+=3)o=this.data.substr(n,3),s=parseInt(o,10),t.put(s,10);const r=this.data.length-n;r>0&&(o=this.data.substr(n),s=parseInt(o,10),t.put(s,r*3+1))};var cs=ye;const us=fe,tt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ve(e){this.mode=us.ALPHANUMERIC,this.data=e}ve.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ve.prototype.getLength=function(){return this.data.length};ve.prototype.getBitsLength=function(){return ve.getBitsLength(this.data.length)};ve.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let o=tt.indexOf(this.data[n])*45;o+=tt.indexOf(this.data[n+1]),t.put(o,11)}this.data.length%2&&t.put(tt.indexOf(this.data[n]),6)};var ds=ve,fs=function(t){for(var n=[],o=t.length,s=0;s<o;s++){var r=t.charCodeAt(s);if(r>=55296&&r<=56319&&o>s+1){var a=t.charCodeAt(s+1);a>=56320&&a<=57343&&(r=(r-55296)*1024+a-56320+65536,s+=1)}if(r<128){n.push(r);continue}if(r<2048){n.push(r>>6|192),n.push(r&63|128);continue}if(r<55296||r>=57344&&r<65536){n.push(r>>12|224),n.push(r>>6&63|128),n.push(r&63|128);continue}if(r>=65536&&r<=1114111){n.push(r>>18|240),n.push(r>>12&63|128),n.push(r>>6&63|128),n.push(r&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const hs=fs,ms=fe;function we(e){this.mode=ms.BYTE,this.data=new Uint8Array(hs(e))}we.getBitsLength=function(t){return t*8};we.prototype.getLength=function(){return this.data.length};we.prototype.getBitsLength=function(){return we.getBitsLength(this.data.length)};we.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var gs=we;const ps=fe,ys=X;function be(e){this.mode=ps.KANJI,this.data=e}be.getBitsLength=function(t){return t*13};be.prototype.getLength=function(){return this.data.length};be.prototype.getBitsLength=function(){return be.getBitsLength(this.data.length)};be.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=ys.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
- Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var vs=be,Fn={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,o,s){var r={},a={};a[o]=0;var l=t.PriorityQueue.make();l.push(o,0);for(var c,d,u,h,p,y,g,w,I;!l.empty();){c=l.pop(),d=c.value,h=c.cost,p=n[d]||{};for(u in p)p.hasOwnProperty(u)&&(y=p[u],g=h+y,w=a[u],I=typeof a[u]=="undefined",(I||w>g)&&(a[u]=g,l.push(u,g),r[u]=d))}if(typeof s!="undefined"&&typeof a[s]=="undefined"){var b=["Could not find a path from ",o," to ",s,"."].join("");throw new Error(b)}return r},extract_shortest_path_from_predecessor_list:function(n,o){for(var s=[],r=o;r;)s.push(r),r=n[r];return s.reverse(),s},find_path:function(n,o,s){var r=t.single_source_shortest_paths(n,o,s);return t.extract_shortest_path_from_predecessor_list(r,s)},PriorityQueue:{make:function(n){var o=t.PriorityQueue,s={},r;n=n||{};for(r in o)o.hasOwnProperty(r)&&(s[r]=o[r]);return s.queue=[],s.sorter=n.sorter||o.default_sorter,s},default_sorter:function(n,o){return n.cost-o.cost},push:function(n,o){var s={value:n,cost:o};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Fn);(function(e){const t=fe,n=cs,o=ds,s=gs,r=vs,a=oe,l=X,c=Fn.exports;function d(b){return unescape(encodeURIComponent(b)).length}function u(b,L,S){const A=[];let T;for(;(T=b.exec(S))!==null;)A.push({data:T[0],index:T.index,mode:L,length:T[0].length});return A}function h(b){const L=u(a.NUMERIC,t.NUMERIC,b),S=u(a.ALPHANUMERIC,t.ALPHANUMERIC,b);let A,T;return l.isKanjiModeEnabled()?(A=u(a.BYTE,t.BYTE,b),T=u(a.KANJI,t.KANJI,b)):(A=u(a.BYTE_KANJI,t.BYTE,b),T=[]),L.concat(S,A,T).sort(function(f,k){return f.index-k.index}).map(function(f){return{data:f.data,mode:f.mode,length:f.length}})}function p(b,L){switch(L){case t.NUMERIC:return n.getBitsLength(b);case t.ALPHANUMERIC:return o.getBitsLength(b);case t.KANJI:return r.getBitsLength(b);case t.BYTE:return s.getBitsLength(b)}}function y(b){return b.reduce(function(L,S){const A=L.length-1>=0?L[L.length-1]:null;return A&&A.mode===S.mode?(L[L.length-1].data+=S.data,L):(L.push(S),L)},[])}function g(b){const L=[];for(let S=0;S<b.length;S++){const A=b[S];switch(A.mode){case t.NUMERIC:L.push([A,{data:A.data,mode:t.ALPHANUMERIC,length:A.length},{data:A.data,mode:t.BYTE,length:A.length}]);break;case t.ALPHANUMERIC:L.push([A,{data:A.data,mode:t.BYTE,length:A.length}]);break;case t.KANJI:L.push([A,{data:A.data,mode:t.BYTE,length:d(A.data)}]);break;case t.BYTE:L.push([{data:A.data,mode:t.BYTE,length:d(A.data)}])}}return L}function w(b,L){const S={},A={start:{}};let T=["start"];for(let v=0;v<b.length;v++){const f=b[v],k=[];for(let U=0;U<f.length;U++){const F=f[U],V=""+v+U;k.push(V),S[V]={node:F,lastCount:0},A[V]={};for(let z=0;z<T.length;z++){const W=T[z];S[W]&&S[W].node.mode===F.mode?(A[W][V]=p(S[W].lastCount+F.length,F.mode)-p(S[W].lastCount,F.mode),S[W].lastCount+=F.length):(S[W]&&(S[W].lastCount=F.length),A[W][V]=p(F.length,F.mode)+4+t.getCharCountIndicator(F.mode,L))}}T=k}for(let v=0;v<T.length;v++)A[T[v]].end=0;return{map:A,table:S}}function I(b,L){let S;const A=t.getBestModeForData(b);if(S=t.from(L,A),S!==t.BYTE&&S.bit<A.bit)throw new Error('"'+b+'" cannot be encoded with mode '+t.toString(S)+`.
- Suggested mode is: `+t.toString(A));switch(S===t.KANJI&&!l.isKanjiModeEnabled()&&(S=t.BYTE),S){case t.NUMERIC:return new n(b);case t.ALPHANUMERIC:return new o(b);case t.KANJI:return new r(b);case t.BYTE:return new s(b)}}e.fromArray=function(L){return L.reduce(function(S,A){return typeof A=="string"?S.push(I(A,null)):A.data&&S.push(I(A.data,A.mode)),S},[])},e.fromString=function(L,S){const A=h(L,l.isKanjiModeEnabled()),T=g(A),v=w(T,S),f=c.find_path(v.map,"start","end"),k=[];for(let U=1;U<f.length-1;U++)k.push(v.table[f[U]].node);return e.fromArray(y(k))},e.rawSplit=function(L){return e.fromArray(h(L,l.isKanjiModeEnabled()))}})(xn);const Ke=X,nt=je,ws=Xr,bs=Zr,Cs=En,Ss=Tn,bt=Bn,Ct=ze,As=ts,He=Rn,Es=kn,Ts=fe,ot=xn;function Bs(e,t){const n=e.size,o=Ss.getPositions(t);for(let s=0;s<o.length;s++){const r=o[s][0],a=o[s][1];for(let l=-1;l<=7;l++)if(!(r+l<=-1||n<=r+l))for(let c=-1;c<=7;c++)a+c<=-1||n<=a+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?e.set(r+l,a+c,!0,!0):e.set(r+l,a+c,!1,!0))}}function Is(e){const t=e.size;for(let n=8;n<t-8;n++){const o=n%2===0;e.set(n,6,o,!0),e.set(6,n,o,!0)}}function _s(e,t){const n=Cs.getPositions(t);for(let o=0;o<n.length;o++){const s=n[o][0],r=n[o][1];for(let a=-2;a<=2;a++)for(let l=-2;l<=2;l++)a===-2||a===2||l===-2||l===2||a===0&&l===0?e.set(s+a,r+l,!0,!0):e.set(s+a,r+l,!1,!0)}}function Rs(e,t){const n=e.size,o=He.getEncodedBits(t);let s,r,a;for(let l=0;l<18;l++)s=Math.floor(l/3),r=l%3+n-8-3,a=(o>>l&1)===1,e.set(s,r,a,!0),e.set(r,s,a,!0)}function rt(e,t,n){const o=e.size,s=Es.getEncodedBits(t,n);let r,a;for(r=0;r<15;r++)a=(s>>r&1)===1,r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(o-15+r,8,a,!0),r<8?e.set(8,o-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(o-8,8,1,!0)}function Ls(e,t){const n=e.size;let o=-1,s=n-1,r=7,a=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let c=0;c<2;c++)if(!e.isReserved(s,l-c)){let d=!1;a<t.length&&(d=(t[a]>>>r&1)===1),e.set(s,l-c,d),r--,r===-1&&(a++,r=7)}if(s+=o,s<0||n<=s){s-=o,o=-o;break}}}function ks(e,t,n){const o=new ws;n.forEach(function(c){o.put(c.mode.bit,4),o.put(c.getLength(),Ts.getCharCountIndicator(c.mode,e)),c.write(o)});const s=Ke.getSymbolTotalCodewords(e),r=Ct.getTotalCodewordsCount(e,t),a=(s-r)*8;for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const l=(a-o.getLengthInBits())/8;for(let c=0;c<l;c++)o.put(c%2?17:236,8);return Ms(o,e,t)}function Ms(e,t,n){const o=Ke.getSymbolTotalCodewords(t),s=Ct.getTotalCodewordsCount(t,n),r=o-s,a=Ct.getBlocksCount(t,n),l=o%a,c=a-l,d=Math.floor(o/a),u=Math.floor(r/a),h=u+1,p=d-u,y=new As(p);let g=0;const w=new Array(a),I=new Array(a);let b=0;const L=new Uint8Array(e.buffer);for(let f=0;f<a;f++){const k=f<c?u:h;w[f]=L.slice(g,g+k),I[f]=y.encode(w[f]),g+=k,b=Math.max(b,k)}const S=new Uint8Array(o);let A=0,T,v;for(T=0;T<b;T++)for(v=0;v<a;v++)T<w[v].length&&(S[A++]=w[v][T]);for(T=0;T<p;T++)for(v=0;v<a;v++)S[A++]=I[v][T];return S}function xs(e,t,n,o){let s;if(Array.isArray(e))s=ot.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){const u=ot.rawSplit(e);d=He.getBestVersionForData(u,n)}s=ot.fromString(e,d||40)}else throw new Error("Invalid data");const r=He.getBestVersionForData(s,n);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=r;else if(t<r)throw new Error(`
- The chosen QR Code version cannot contain this amount of data.
- Minimum version required to store current data is: `+r+`.
- `);const a=ks(t,n,s),l=Ke.getSymbolSize(t),c=new bs(l);return Bs(c,t),Is(c),_s(c,t),rt(c,n,0),t>=7&&Rs(c,t),Ls(c,a),isNaN(o)&&(o=bt.getBestMask(c,rt.bind(null,c,n))),bt.applyMask(o,c),rt(c,n,o),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:o,segments:s}}Sn.create=function(t,n){if(typeof t=="undefined"||t==="")throw new Error("No input text");let o=nt.M,s,r;return typeof n!="undefined"&&(o=nt.from(n.errorCorrectionLevel,nt.M),s=He.from(n.version),r=bt.from(n.maskPattern),n.toSJISFunc&&Ke.setToSJISFunction(n.toSJISFunc)),xs(t,s,o,r)};var Dn={},Mt={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let o=n.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+n);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(r){return[r,r]}))),o.length===6&&o.push("F","F");const s=parseInt(o.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const s=typeof o.margin=="undefined"||o.margin===null||o.margin<0?4:o.margin,r=o.width&&o.width>=21?o.width:void 0,a=o.scale||4;return{width:r,scale:r?4:a,margin:s,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,s){return s.width&&s.width>=o+s.margin*2?s.width/(o+s.margin*2):s.scale},e.getImageWidth=function(o,s){const r=e.getScale(o,s);return Math.floor((o+s.margin*2)*r)},e.qrToImageData=function(o,s,r){const a=s.modules.size,l=s.modules.data,c=e.getScale(a,r),d=Math.floor((a+r.margin*2)*c),u=r.margin*c,h=[r.color.light,r.color.dark];for(let p=0;p<d;p++)for(let y=0;y<d;y++){let g=(p*d+y)*4,w=r.color.light;if(p>=u&&y>=u&&p<d-u&&y<d-u){const I=Math.floor((p-u)/c),b=Math.floor((y-u)/c);w=h[l[I*a+b]?1:0]}o[g++]=w.r,o[g++]=w.g,o[g++]=w.b,o[g]=w.a}}})(Mt);(function(e){const t=Mt;function n(s,r,a){s.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=a,r.width=a,r.style.height=a+"px",r.style.width=a+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(r,a,l){let c=l,d=a;typeof c=="undefined"&&(!a||!a.getContext)&&(c=a,a=void 0),a||(d=o()),c=t.getOptions(c);const u=t.getImageWidth(r.modules.size,c),h=d.getContext("2d"),p=h.createImageData(u,u);return t.qrToImageData(p.data,r,c),n(h,d,u),h.putImageData(p,0,0),d},e.renderToDataURL=function(r,a,l){let c=l;typeof c=="undefined"&&(!a||!a.getContext)&&(c=a,a=void 0),c||(c={});const d=e.render(r,a,c),u=c.type||"image/png",h=c.rendererOpts||{};return d.toDataURL(u,h.quality)}})(Dn);var Pn={};const Fs=Mt;function Jt(e,t){const n=e.a/255,o=t+'="'+e.hex+'"';return n<1?o+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function st(e,t,n){let o=e+t;return typeof n!="undefined"&&(o+=" "+n),o}function Ds(e,t,n){let o="",s=0,r=!1,a=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),d=Math.floor(l/t);!c&&!r&&(r=!0),e[l]?(a++,l>0&&c>0&&e[l-1]||(o+=r?st("M",c+n,.5+d+n):st("m",s,0),s=0,r=!1),c+1<t&&e[l+1]||(o+=st("h",a),a=0)):s++}return o}Pn.render=function(t,n,o){const s=Fs.getOptions(n),r=t.modules.size,a=t.modules.data,l=r+s.margin*2,c=s.color.light.a?"<path "+Jt(s.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+Jt(s.color.dark,"stroke")+' d="'+Ds(a,r,s.margin)+'"/>',u='viewBox="0 0 '+l+" "+l+'"',h=s.width?'width="'+s.width+'" height="'+s.width+'" ':"",p='<svg xmlns="http://www.w3.org/2000/svg" '+h+u+' shape-rendering="crispEdges">'+c+d+`</svg>
- `;return typeof o=="function"&&o(null,p),p};const Ps=Jr,St=Sn,Nn=Dn,Ns=Pn;function xt(e,t,n,o,s){const r=[].slice.call(arguments,1),a=r.length,l=typeof r[a-1]=="function";if(!l&&!Ps())throw new Error("Callback required as last argument");if(l){if(a<2)throw new Error("Too few arguments provided");a===2?(s=n,n=t,t=o=void 0):a===3&&(t.getContext&&typeof s=="undefined"?(s=o,o=void 0):(s=o,o=n,n=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(n=t,t=o=void 0):a===2&&!t.getContext&&(o=n,n=t,t=void 0),new Promise(function(c,d){try{const u=St.create(n,o);c(e(u,t,o))}catch(u){d(u)}})}try{const c=St.create(n,o);s(null,e(c,t,o))}catch(c){s(c)}}_e.create=St.create;_e.toCanvas=xt.bind(null,Nn.render);_e.toDataURL=xt.bind(null,Nn.renderToDataURL);_e.toString=xt.bind(null,function(e,t,n){return Ns.render(e,n)});var Us=_e,Os="./assets/icon1.ef6bbd86.png",Hs="./assets/icon2.e7f0fa2e.png",Vs="./assets/icon3.0d23bbac.png",it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmCAYAAACyAQkgAAAAAXNSR0IArs4c6QAAA7pJREFUWEftmF1oHFUUx8+5k2yhIVILUosSv0AtrYKiSO2DaB9E1EIfUpBiQaxLqybM3hkCfqBBq+JmzrkLiwuNWCOUolBEFFREqgiiVkQUg5FiaWkrwopIoiZNsvfILK2kde98RZ/ceVr2nvOf3/zvOXfuXAQACMOwr9Vq3RT/LnDNGmMOJ+UNDw8PeJ53RQFtUEodI6LjGCdXKpXrEPHbIkIAcJSZr0rK1Vo/AQB7iuiLyNPGmGe6oEvd6zqas5a6NRob1m2mTmXTbaZuM+V0oNtMLsP+F80EAE8x87P/xqZkkpk3/Ie7pxFjzFgbdHBw0BsYGLjQdTMReQgAnneMf87MG5NAy+Xyyv7+/pUJ+u8BgGs/vIuZ97ZB064wDLdaa990xH3AzHemaSSNB0Hwtojc2ylGRLYbYw5kBd1mrX2jkxAiHiSiweWAaq0/BIDNDtAtxph3MoEGQbBTRF52wDAzB8sBDYLgGxG53mHEbUT0SSbQlOXlQWbetxxQrfXPALCmk0ZPT88l1Wr1p6ygBwDgPsfU3JL2cZ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CYII=",js=Y({name:"LiveBroadcastSharePreview",props:["form","url"],data(){return{detail:{roomTitle:"",liveStartTime:"",liveRemark:""}}},mounted(){let e=document.getElementById("canvas"),t=this.url;Us.toCanvas(e,t,{width:79,margin:1},function(n){n&&console.error(n),console.log("QRCode success!")})},methods:{copyText(){},shareImage(){}},render(){return i("div",{id:"preview"},[this.form.preTemplate==="1"?i("div",{class:R.first},[i("h2",null,[this.form.roomTitle]),i("p",{class:R.teacher},[C(" \u4E3B\u8BB2\u4EBA\uFF1A"),this.form.speakerName]),i("img",{src:Os,class:R.icon,alt:""},null),i("div",{class:R.preCore},[i("img",{src:ct,class:R.start,alt:""},null),i("p",{class:R.title},[C("\u5F00\u64AD\u65F6\u95F4")]),i("p",{class:R.time},[this.form.liveStartTime]),i("p",{class:R.title},[C("\u76F4\u64AD\u5185\u5BB9")]),i("div",{class:R.content},[i("img",{class:R.pre,src:at,alt:""},null),i("img",{class:R.end,src:it,alt:""},null),this.form.liveRemark])]),i("div",{class:R.bottom},[i("img",{class:R.logo,src:lt,alt:""},null),i("div",{class:R.code},[i("div",null,[i("canvas",{id:"canvas",height:"80",width:"80",style:"width: 80px; margin:0"},null)])])])]):null,this.form.preTemplate==="2"?i("div",{class:R.second},[i("h2",null,[this.form.roomTitle]),i("p",{class:R.teacher},[C("\u4E3B\u8BB2\u4EBA\uFF1A"),this.form.speakerName]),i("img",{src:Vs,class:R.icon,alt:""},null),i("div",{class:R.preCore},[i("img",{src:ct,class:R.start,alt:""},null),i("p",{class:R.title},[C("\u5F00\u64AD\u65F6\u95F4")]),i("p",{class:R.time},[this.form.liveStartTime]),i("p",{class:R.title},[C("\u76F4\u64AD\u5185\u5BB9")]),i("div",{class:R.content},[i("img",{class:R.pre,src:at,alt:""},null),i("img",{class:R.end,src:it,alt:""},null),this.form.liveRemark])]),i("div",{class:R.bottom},[i("img",{class:R.logo,src:lt,alt:""},null),i("div",{class:R.code},[i("div",null,[i("canvas",{id:"canvas",height:"80",width:"80",style:"width: 80px; margin:0"},null)])])])]):null,this.form.preTemplate==="3"?i("div",{class:R.third},[i("h2",null,[this.form.roomTitle]),i("p",{class:R.teacher},[C("\u4E3B\u8BB2\u4EBA\uFF1A"),this.form.speakerName]),i("img",{src:Hs,class:R.icon,alt:""},null),i("div",{class:R.preCore},[i("img",{src:ct,class:R.start,alt:""},null),i("p",{class:R.title},[C("\u5F00\u64AD\u65F6\u95F4")]),i("p",{class:R.time},[this.form.liveStartTime]),i("p",{class:R.title},[C("\u76F4\u64AD\u5185\u5BB9")]),i("div",{class:R.content},[i("img",{class:R.pre,src:at,alt:""},null),i("img",{class:R.end,src:it,alt:""},null),this.form.liveRemark])]),i("div",{class:R.bottom},[i("img",{class:R.logo,src:lt,alt:""},null),i("div",{class:R.code},[i("div",null,[i("canvas",{id:"canvas",height:"80",width:"80",style:"width: 80px; margin:0"},null)])])])]):null])}});const $t=Et(null);Et(null);var zs=Y({name:"LiveBroadcastShare",props:{onClose:{type:Function,default:()=>{}}},data(){return{form:{shareType:"1"},detail:{roomTitle:"",liveStartTime:"",liveRemark:"",roomUid:"",speakerName:""},url:""}},async mounted(){this.detail=Z({},P.user),this.url=Fo()+`/#/liveClassTransfer?roomUid=${this.detail.roomUid}`},methods:{copyText(){let e=`\u4E50\u56E2\u8001\u5E08\u9080\u8BF7\u60A8\u53C2\u4E0E\u76F4\u64AD\u8BFE\uFF01
- ${this.detail.roomTitle||""}
- \u4E3B\u8BB2\u4EBA\uFF1A${this.detail.speakerName}
- \u76F4\u64AD\u65F6\u95F4\uFF1A${this.detail.liveStartTime||""}
- \u76F4\u64AD\u5185\u5BB9\uFF1A${this.detail.liveRemark||""}
- \u76F4\u64AD\u5730\u5740\uFF1A${this.url}
- `;if(e){const n=document.createElement("button");var t=new Er(n,{text:function(){return e}});t.on("success",()=>{he.success("\u590D\u5236\u6210\u529F"),this.onClose(),t.destroy()}),t.on("error",()=>{console.log("\u8BE5\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u81EA\u52A8\u590D\u5236"),t.destroy()}),n.click()}},shareImage(){var e=document.getElementById("preview");e&&Ar(e).then(t=>{var n=new Image;n.src=t;let o=document.createElement("a"),s=this.detail.roomTitle||"\u5206\u4EAB\u56FE\u7247\u6587\u4EF6.png";o.href=t,o.setAttribute("download",s),document.body.appendChild(o),o.click(),this.onClose()}).catch(function(t){console.error("oops, something went wrong!",t)})},async shareChat(){var t;let e=((t=$t.value)==null?void 0:t.checkList)||[];if(!(e.length>0)){he.error("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u7FA4\u804A");return}try{let n={groupIds:e.join(","),roomUid:this.detail.roomUid};const o=await ue.get("/api-web/imLiveBroadcastRoom/shareGroup",{params:Z({},n)});he.success("\u5206\u4EAB\u6210\u529F"),this.onClose()}catch(n){console.log(n)}},changeRafdio(e){this.form.shareType=e}},render(){return i("div",null,[i(dn,{model:this.form,ref:"form",class:re.form},{default:()=>[i(yt,{label:"\u5206\u4EAB\u65B9\u5F0F"},{default:()=>[i(Je,{modelValue:this.form.shareType,onChange:()=>{this.changeRafdio("1")},label:"1"},{default:()=>[C("\u94FE\u63A5\u5206\u4EAB")]}),i(Je,{modelValue:this.form.shareType,onChange:()=>{this.changeRafdio("2")},label:"2"},{default:()=>[C("\u4E8C\u7EF4\u7801\u5206\u4EAB")]}),i(Je,{modelValue:this.form.shareType,onChange:()=>{this.changeRafdio("3")},label:"3"},{default:()=>[C("\u7FA4\u804A\u5206\u4EAB")]})]})]}),i("div",null,[this.form.shareType==="1"?i("div",{class:"linkWrap"},[i("div",{class:re.shareWrap},[i("h2",null,[C("\u4E50\u56E2\u8001\u5E08\u9080\u8BF7\u60A8\u53C2\u4E0E\u76F4\u64AD\u8BFE\uFF01")]),i("h4",null,[this.detail.roomTitle]),i("p",null,[C("\u4E3B\u8BB2\u4EBA\uFF1A"),this.detail.speakerName]),i("p",null,[C("\u5F00\u64AD\u65F6\u95F4\uFF1A"),this.detail.liveStartTime]),i("p",null,[C("\u76F4\u64AD\u5185\u5BB9\uFF1A"),this.detail.liveRemark]),i("p",null,[C("\u76F4\u64AD\u5730\u5740\uFF1A"),this.url])]),i("div",{class:[re.shareBtn,"shareText"],onClick:this.copyText,ref:"shareText","data-clipboard-action":"copy"},[C("\u590D\u5236\u5206\u4EAB\u5185\u5BB9")])]):null]),this.form.shareType==="2"?i("div",{class:re.codeWrap},[i("div",{class:re.shareWrap},[i(js,{form:this.detail,url:this.url},null)]),i("div",{class:re.shareBtn,onClick:this.shareImage},[C("\u4E0B\u8F7D\u56FE\u7247")])]):null,this.form.shareType=="3"?i("div",{class:re.shareWrap},[i("div",{class:re.groupWrap},[i(Fr,{ref:$t},null)]),i("div",{class:re.shareBtn,onClick:this.shareChat},[C("\u53D1\u9001\u5206\u4EAB\u4FE1\u606F")])]):null])}});function Xt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const J=Tt({volume:0,barStatus:{camera:!1,volume:!1,microphone:!1,screen:!1,share:!1},shareVisiable:!1});var Ws=Y({name:"LiveBroadcast-ActionBar",computed:{isCameraDisabled(){return J.barStatus.camera&&m.deviceStatus.camera!=="denied"&&m.cameras.length},isMicrophoneDisabled(){return J.barStatus.microphone&&m.deviceStatus.microphone!=="denied"&&m.microphones.length},isVolumeDisabled(){return J.volume===0}},mounted(){console.log(m.cameras,m.cameras.length)},methods:{startShare(){console.log("\u8C03\u7528"),J.shareVisiable=!0},volumeChange(e){J.volume=e,an(e)}},render(){return i("div",{class:q["action-bar"],id:"action-bar"},[i("div",{style:{display:"flex"}},[i("div",{class:q["bar-btn"]},[i("div",{class:q.btnInner},[i(G("SvgIcon"),{onClick:()=>{Gn("camera"),!m.screenShareStatus&&(J.barStatus.camera=!J.barStatus.camera)},name:this.isCameraDisabled?"bar-camera-disabled":"bar-camera",style:{width:"22px",cursor:"pointer"}},null),m.cameras.length===0?null:i(mt,{placement:"top",disabled:m.cameras.length===0,onCommand:ln},{default:()=>[i("div",{class:q["bar-btn"],style:{height:"32px"}},[i(G("SvgIcon"),{name:"bar-arrow-down",style:{width:"18px"}},null)])],dropdown:()=>{let e;return i(gt,null,Xt(e=m.cameras.map(t=>i(pt,{disabled:t===m.selectedCamera,command:t},{default:()=>[t.label]})))?e:{default:()=>[e]})}})]),i("span",{class:q["bar-btn-text"]},[C("\u6444\u50CF\u5934")])]),i("div",{class:q["bar-btn"],onClick:qn},[i("div",{class:q.btnInner},[i(G("SvgIcon"),{name:m.videoStatus==="liveing"?"bar-screen-share":"bar-screen-share-disabled2",style:{width:"22px",cursor:"pointer"}},null)]),i("span",{class:q["bar-btn-text"]},[m.screenShareStatus?"\u53D6\u6D88\u5171\u4EAB":"\u5C4F\u5E55\u5171\u4EAB"])]),i("div",{class:q["bar-btn"]},[i("div",{class:q.btnInner},[i(G("SvgIcon"),{onClick:()=>{const e=m.videoStatus==="liveing";J.barStatus.microphone=!J.barStatus.microphone,J.barStatus.microphone?me("microphone",e):Qn("microphone",e)},name:this.isMicrophoneDisabled?"bar-mike-disabled":"bar-mike",style:{width:"22px",cursor:"pointer"}},null),m.microphones.length===0?null:i(mt,{placement:"top-start",disabled:m.microphones.length===0,"popper-options":{boundariesElement:"#action-bar",gpuAcceleration:!1},onCommand:cn},{default:()=>[i("div",{class:q["bar-btn"],style:{height:"32px"}},[i(G("SvgIcon"),{name:"bar-arrow-down",style:{width:"18px"}},null)])],dropdown:()=>{let e;return i(gt,null,Xt(e=m.microphones.map(t=>i(pt,{disabled:t===m.selectedMicrophone,command:t},{default:()=>[t.label]})))?e:{default:()=>[e]})}})]),i("span",{class:q["bar-btn-text"]},[C("\u9EA6\u514B\u98CE")])])]),i("div",{style:{display:"flex"},onClick:this.startShare},[i("div",{class:q["bar-btn"]},[i("div",{class:q.btnInner},[i(G("SvgIcon"),{name:"bar-share",style:{width:"22px",cursor:"pointer"}},null)]),i("span",{class:q["bar-btn-text"]},[C("\u5206\u4EAB")])])]),i(fo,{width:"510px","destroy-on-close":!0,"append-to-body":!0,modelValue:J.shareVisiable,title:"\u5206\u4EAB","before-close":()=>{J.shareVisiable=!1}},{default:()=>[i(zs,{onClose:()=>J.shareVisiable=!1},null)]})])}});const Ks="_container_19awp_1",Ys="_title_19awp_21",Gs="_tips_19awp_25";var K={container:Ks,title:Ys,tips:Gs},qs=Y({name:"VideoStatus",render(){return i("div",{class:K.container},[m.deviceStatus.camera==="denied"?i("div",{class:K.denied},[i(G("SvgIcon"),{name:"camera-status",class:K.icon},null),i("p",{class:K.title},[C("\u6444\u50CF\u5934\u88AB\u7981\u7528")]),i("p",{class:K.tips},[C("\u8BF7\u6388\u6743\u5141\u8BB8\u8BBF\u95EE\u6444\u50CF\u5934")])]):null,m.deviceStatus.camera==="init"?i("div",{class:K.init},[i(G("SvgIcon"),{name:"camera-status",class:K.icon},null),i("p",{class:K.title},[C("\u8BF7\u5B8C\u6210\u6444\u50CF\u5934\u6388\u6743")]),i("p",{class:K.tips},[C("\u8BF7\u6388\u6743\u5141\u8BB8\u8BBF\u95EE\u6444\u50CF\u5934")])]):null,m.deviceStatus.camera==="closed"?i("div",{class:K.closed},[i(G("SvgIcon"),{name:"camera-status",class:K.icon},null),i("p",{class:K.title},[C("\u6444\u50CF\u5934\u5DF2\u5173\u95ED")]),i("p",{class:K.tips},[C("\u60A8\u5DF2\u5173\u95ED\u6444\u50CF\u5934")])]):null,m.deviceStatus.camera==="none"?i("div",{class:K.none},[i(G("SvgIcon"),{name:"camera-status",class:K.icon},null),i("p",{class:K.title},[C("\u6682\u65E0\u6444\u50CF\u5934")]),i("p",{class:K.tips},[C("\u8BE5\u8BBE\u5907\u65E0\u6444\u50CF\u5934")])]):null])}}),Un={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(un,function(){var n,o,s=1e3,r=6e4,a=36e5,l=864e5,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=31536e6,u=2592e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,p={years:d,months:u,days:l,hours:a,minutes:r,seconds:s,milliseconds:1,weeks:6048e5},y=function(T){return T instanceof A},g=function(T,v,f){return new A(T,f,v.$l)},w=function(T){return o.p(T)+"s"},I=function(T){return T<0},b=function(T){return I(T)?Math.ceil(T):Math.floor(T)},L=function(T){return Math.abs(T)},S=function(T,v){return T?I(T)?{negative:!0,format:""+L(T)+v}:{negative:!1,format:""+T+v}:{negative:!1,format:""}},A=function(){function T(f,k,U){var F=this;if(this.$d={},this.$l=U,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),k)return g(f*p[w(k)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(W){F.$d[w(W)]=f[W]}),this.calMilliseconds(),this;if(typeof f=="string"){var V=f.match(h);if(V){var z=V.slice(2).map(function(W){return W!=null?Number(W):0});return this.$d.years=z[0],this.$d.months=z[1],this.$d.weeks=z[2],this.$d.days=z[3],this.$d.hours=z[4],this.$d.minutes=z[5],this.$d.seconds=z[6],this.calMilliseconds(),this}}return this}var v=T.prototype;return v.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(k,U){return k+(f.$d[U]||0)*p[U]},0)},v.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=b(f/d),f%=d,this.$d.months=b(f/u),f%=u,this.$d.days=b(f/l),f%=l,this.$d.hours=b(f/a),f%=a,this.$d.minutes=b(f/r),f%=r,this.$d.seconds=b(f/s),f%=s,this.$d.milliseconds=f},v.toISOString=function(){var f=S(this.$d.years,"Y"),k=S(this.$d.months,"M"),U=+this.$d.days||0;this.$d.weeks&&(U+=7*this.$d.weeks);var F=S(U,"D"),V=S(this.$d.hours,"H"),z=S(this.$d.minutes,"M"),W=this.$d.seconds||0;this.$d.milliseconds&&(W+=this.$d.milliseconds/1e3);var Se=S(W,"S"),Ye=f.negative||k.negative||F.negative||V.negative||z.negative||Se.negative,Ge=V.format||z.format||Se.format?"T":"",ie=(Ye?"-":"")+"P"+f.format+k.format+F.format+Ge+V.format+z.format+Se.format;return ie==="P"||ie==="-P"?"P0D":ie},v.toJSON=function(){return this.toISOString()},v.format=function(f){var k=f||"YYYY-MM-DDTHH:mm:ss",U={Y:this.$d.years,YY:o.s(this.$d.years,2,"0"),YYYY:o.s(this.$d.years,4,"0"),M:this.$d.months,MM:o.s(this.$d.months,2,"0"),D:this.$d.days,DD:o.s(this.$d.days,2,"0"),H:this.$d.hours,HH:o.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:o.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:o.s(this.$d.seconds,2,"0"),SSS:o.s(this.$d.milliseconds,3,"0")};return k.replace(c,function(F,V){return V||String(U[F])})},v.as=function(f){return this.$ms/p[w(f)]},v.get=function(f){var k=this.$ms,U=w(f);return U==="milliseconds"?k%=1e3:k=U==="weeks"?b(k/p[U]):this.$d[U],k===0?0:k},v.add=function(f,k,U){var F;return F=k?f*p[w(k)]:y(f)?f.$ms:g(f,this).$ms,g(this.$ms+F*(U?-1:1),this)},v.subtract=function(f,k){return this.add(f,k,!0)},v.locale=function(f){var k=this.clone();return k.$l=f,k},v.clone=function(){return g(this.$ms,this)},v.humanize=function(f){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},v.milliseconds=function(){return this.get("milliseconds")},v.asMilliseconds=function(){return this.as("milliseconds")},v.seconds=function(){return this.get("seconds")},v.asSeconds=function(){return this.as("seconds")},v.minutes=function(){return this.get("minutes")},v.asMinutes=function(){return this.as("minutes")},v.hours=function(){return this.get("hours")},v.asHours=function(){return this.as("hours")},v.days=function(){return this.get("days")},v.asDays=function(){return this.as("days")},v.weeks=function(){return this.get("weeks")},v.asWeeks=function(){return this.as("weeks")},v.months=function(){return this.get("months")},v.asMonths=function(){return this.as("months")},v.years=function(){return this.get("years")},v.asYears=function(){return this.as("years")},T}();return function(T,v,f){n=f,o=f().$utils(),f.duration=function(F,V){var z=f.locale();return g(F,{$l:z},V)},f.isDuration=y;var k=v.prototype.add,U=v.prototype.subtract;v.prototype.add=function(F,V){return y(F)&&(F=F.asMilliseconds()),k.bind(this)(F,V)},v.prototype.subtract=function(F,V){return y(F)&&(F=F.asMilliseconds()),U.bind(this)(F,V)}}})})(Un);var Qs=Un.exports;const Js="_time_1c1wd_1",$s="_status_1c1wd_14",Xs="_text_1c1wd_27";var ut={time:Js,status:$s,text:Xs};ne.extend(Qs);var Zs=Y({setup(){const e=Tt({duration:""}),t=sessionStorage.getItem(Jn),n=Number(t);let o=null;return ho(()=>{o=setInterval(()=>{const s=ne().valueOf();n&&s-n&&(e.duration=ne.duration(s-n).format("HH:mm:ss"))})}),mo(()=>{o&&clearInterval(o)}),()=>m.videoStatus==="liveing"&&n?i("div",{class:ut.time},[i("div",{class:ut.status},[i("div",{class:"line-scale-pulse-out"},[i("div",null,null),i("div",null,null),i("div",null,null)]),i("span",null,[C("\u76F4\u64AD\u4E2D")])]),i("span",{class:ut.text},[e.duration])]):null}});const ei="_main_dv466_1",ti="_video_dv466_14",ni="_headerSection_dv466_25",oi="_headerContent_dv466_32";var Ae={main:ei,video:ti,headerSection:ni,headerContent:oi,"header-top":"_header-top_dv466_36","header-up":"_header-up_dv466_1","header-down":"_header-down_dv466_1"};const Zt=Et(null);let en,dt;var ri=Y({name:"LiveBroadcast",data(){return{headerStatus:!1}},computed:{isLive(){return console.log(m.videoStatus),m.videoStatus==="liveing"?setTimeout(()=>{this.headerStatus=!0},3e3):this.headerStatus=!1,m.videoStatus==="liveing"}},async mounted(){this.initializeRoom(),$n(),H.on(j["RC:Chatroom:Like"],this.onLikeMessage),window.onbeforeunload=this.beforeunload},beforeUnmount(){H.off(j["RC:Chatroom:Like"],this.onLikeMessage),window.onbeforeunload=null},methods:{beforeunload(){if(m.videoStatus==="liveing")return"\u5F53\u524D\u6B63\u5728\u76F4\u64AD\u4E2D\u662F\u5426\u786E\u8BA4\u5173\u95ED\u9875\u9762\uFF1F"},onLikeMessage(e){m.likeCount+=e.counts},getDeviceByDeviceType(e){const t=localStorage.getItem(Xn),n=localStorage.getItem(Zn);return e==="camera"?t?m.cameras.find(o=>o.deviceId===t)||m.cameras[0]:m.cameras[0]:n?m.microphones.find(o=>o.deviceId===n)||m.microphones[0]:m.microphones[0]},async initializeRoom(){var e,t,n,o;if(!P.user)throw Error("\u8BF7\u5148\u767B\u5F55");try{m.likeCount=((e=P.user)==null?void 0:e.likeNum)||0,m.lookCount=((t=P.user)==null?void 0:t.lookNum)||0;const s=sessionStorage.getItem(eo)==="liveing";await to((n=P.user)==null?void 0:n.imToken),m.videoRef=Zt.value,await no(),await oo(),ln(this.getDeviceByDeviceType("camera")),cn(this.getDeviceByDeviceType("microphone")),dt=await Nt("camera"),m.videoRef&&dt.play(m.videoRef),en=await Nt("microphone"),m.videoStatus="stream";const r=await ro((o=P.user)==null?void 0:o.roomUid,so.VIDEO,{onMessageReceive(l,c){console.log(l,c)},onKickOff(l){console.log(l)},async onTrackPublish(l){var d;const c=await((d=r==null?void 0:r.room)==null?void 0:d.subscribe(l));console.log(c),(c==null?void 0:c.code)&&c.code!==Ut.SUCCESS&&console.log("\u8D44\u6E90\u8BA2\u9605\u5931\u8D25 ->",c.code)},onTrackUnpublish(l){console.log(l),H.emit(j["RM:RTC:TrackUnpublish"],l)},onSwitchRole(l,c){H.emit(j["RM:RTC:SwitchRole"],{userId:l,role:c})},onTrackReady(l){l.isAudioTrack()&&l.play()},onUserJoin(l){console.log("onUserJoin",l)},onUserLeave(l){H.emit(j["RM:RTC:UserLeave"],l),console.log("onUserLeave",l)}});r.room&&r.code===Ut.SUCCESS&&(m.joinedRoom=r.room),s?(await sn(!1),m.videoStatus="liveing"):(await Ot([dt],"camera",!1),await Ot([en],"microphone",!1));const a=localStorage.getItem(io);a&&(J.volume=parseInt(a),an(parseInt(a)))}catch(s){m.videoStatus="error",console.log(s)}},closeLive(){m.videoStatus="stream"}},render(){return i("div",{class:Ae.main},[(this.isLive,null),i("div",{class:[Ae.headerSection]},[i(_o,{class:[Ae.headerContent,this.headerStatus?Ae["header-top"]:null]},null)]),i("div",{class:Ae.video},[i("video",{ref:Zt},null),m.screenShareStatus?null:i(qs,null,null),m.videoStatus==="liveing"?i(Zs,null,null):null]),i(Ws,null,null)])}});const si="_container_1cod9_1",ii="_dataCount_1cod9_6",ai="_num_1cod9_17",li="_text_1cod9_22",ci="_dataIcon_1cod9_26",ui="_tabContainer_1cod9_31",di="_tabIcon_1cod9_31",fi="_point_1cod9_36",hi="_tabContent_1cod9_67",mi="_tabList_1cod9_73";var Q={container:si,dataCount:ii,num:ai,text:li,dataIcon:ci,tabContainer:ui,tabIcon:di,point:fi,tabContent:hi,tabList:mi};const gi="_message_4zab7_1",pi="_buttonGroup_4zab7_1";var tn={message:gi,buttonGroup:pi},yi=Y({name:"message",data(){return{options:"ALL"}},mounted(){var t,n;const e=((t=P.user)==null?void 0:t.roomConfig)?JSON.parse((n=P.user)==null?void 0:n.roomConfig):{};m.allowChatCtrl=e.whether_chat===0,m.allowSeatsCtrl=e.whether_mic===0},methods:{async SeatsCtrl(){try{const e=P.user,t=(e==null?void 0:e.roomConfig)?JSON.parse(e==null?void 0:e.roomConfig):{};await ue.post("/api-web/imLiveBroadcastRoom/update",{requestType:"json",data:{id:e.id,liveRemark:e.liveRemark,liveStartTime:e.liveStartTime,preTemplate:e.preTemplate,roomConfig:{whether_chat:t.whether_chat,whether_like:t.whether_like,whether_mic:m.allowSeatsCtrl?1:0,whether_video:t.whether_video},roomTitle:e.roomTitle,speakerId:e.speakerId,tenantId:e.tenantId}}),P.user.roomConfig=JSON.stringify({whether_chat:t.whether_chat,whether_like:t.whether_like,whether_mic:m.allowSeatsCtrl?1:0,whether_video:t.whether_video}),await se(Z({seatBan:m.allowSeatsCtrl},ht()),"SeatsCtrl"),m.allowSeatsCtrl=!m.allowSeatsCtrl}catch{}},async ChatBan(){try{const e=P.user,t=(e==null?void 0:e.roomConfig)?JSON.parse(e==null?void 0:e.roomConfig):{};await ue.post("/api-web/imLiveBroadcastRoom/update",{requestType:"json",data:{id:e.id,liveRemark:e.liveRemark,liveStartTime:e.liveStartTime,preTemplate:e.preTemplate,roomConfig:{whether_chat:m.allowChatCtrl?1:0,whether_like:t.whether_like,whether_video:t.whether_video,whether_mic:t.whether_mic},roomTitle:e.roomTitle,speakerId:e.speakerId,tenantId:e.tenantId}}),P.user.roomConfig=JSON.stringify({whether_chat:m.allowChatCtrl?1:0,whether_like:t.whether_like,whether_video:t.whether_video,whether_mic:t.whether_mic}),await se(Z({chatBan:m.allowChatCtrl},ht()),"ChatBan"),m.allowChatCtrl=!m.allowChatCtrl}catch{}}},render(){return i("div",{class:tn.message},[i("div",{class:tn.buttonGroup},[i(ee,{type:m.allowChatCtrl?"info":"primary",onClick:this.ChatBan},{default:()=>[m.allowChatCtrl?"\u5173\u95ED\u804A\u5929":"\u5F00\u542F\u804A\u5929"]}),i(ee,{type:m.allowSeatsCtrl?"info":"primary",onClick:this.SeatsCtrl},{default:()=>[m.allowSeatsCtrl?"\u5173\u95ED\u8FDE\u9EA6":"\u5F00\u542F\u8FDE\u9EA6"]})])])}});const vi="_sendMessage_p2cnx_1",wi="_form_p2cnx_10";var nn={sendMessage:vi,form:wi};const ge=Tt({messageList:[],joinList:{},joinTips:!1,lookList:{}});var O=ge;const pe=e=>{ge.messageList.push(e)},De=(e,t)=>{ge.joinTips=!0,ge.joinList[e]=t},Fe=e=>{delete ge.joinList[e]},Ee=(e,t)=>{ge.lookList[e]=t},bi=e=>{delete ge.lookList[e]};var Ci=Y({data(){return{message:""}},methods:{onKeyDown(e){e.keyCode===13&&this.message.trim()!==""&&this.sendMessage()},async sendMessage(){try{await se(this.message);const e=ht();pe({id:String(e.id),name:e.name,content:this.message,isSelf:!0,sendTime:ne(new Date).format("HH:mm:ss")}),this.message="",this.scrollToBottom()}catch{}},scrollToBottom(){this.$nextTick(()=>{var e,t;(t=document.querySelector("#tabList"))==null||t.scrollTo(0,((e=document.querySelector("#messageList"))==null?void 0:e.scrollHeight)||0)})}},render(){return i("div",{class:nn.sendMessage},[i("div",{class:nn.form},[i(fn,{modelValue:this.message,onKeydown:this.onKeyDown,onInput:e=>this.message=e,placeholder:"\u8BF7\u8F93\u5165\u6D88\u606F"},null),i(ee,{disabled:!this.message,onClick:this.sendMessage,round:!0,type:"primary"},{default:()=>[C("\u53D1\u9001")]})])])}});const Si="_itemContent_1nb8n_1",Ai="_itemInfo_1nb8n_11",Ei="_itemName_1nb8n_14",Ti="_userName_1nb8n_20",Bi="_rightTime_1nb8n_30",Ii="_itemText_1nb8n_38",_i="_active_1nb8n_42",Ri="_joinText_1nb8n_45",Li="_join_1nb8n_45",ki="_btn_1nb8n_54",Mi="_downBtn_1nb8n_66",xi="_loadingStyle_1nb8n_71";var N={itemContent:Si,itemInfo:Ai,itemName:Ei,userName:Ti,"name-style":"_name-style_1nb8n_26",rightTime:Bi,itemText:Ii,active:_i,joinText:Ri,join:Li,btn:ki,downBtn:Mi,loadingStyle:xi,"slide-top-enter-active":"_slide-top-enter-active_1nb8n_78","error-num":"_error-num_1nb8n_1"};const Fi="_icon_1svqd_9";var ft={"empty-container":"_empty-container_1svqd_1",icon:Fi},Ft=Y({props:{text:{type:String,default:"\u6682\u65E0\u6570\u636E"},icon:{type:String,default:"noData-no-message"}},render(){return i("div",{class:ft["empty-container"]},[i(G("SvgIcon"),{name:this.icon,class:[ft.icon]},null),i("p",{class:ft["empty-text"]},[this.text])])}}),Di=Y({data(){return{joinList:{},loadingJoin:!1,upStatus:!1,downStatus:!1}},computed:{count(){let e=0;for(const t in O.joinList)if(Object.prototype.hasOwnProperty.call(O.joinList,t)&&(O.joinList[t].userRoomType===4&&(e+=1),e>3))break;return e}},mounted(){H.on(j["RC:Chatroom:SeatApply"],this.onSeatApply),H.on(j["RC:Chatroom:SeatResponse"],this.onSeatApply),H.on(j["RM:RTC:UserLeave"],this.onSeatApply),H.on(j["RC:Chatroom:downSeat"],this.onDownSeat),H.on(j["RM:RTC:SwitchRole"],this.onSwitchRole),H.on(j["RC:Chatroom:Leave"],this.onLeave),H.on(j["RC:LookerLoginOut"],this.onLeave)},unmounted(){H.off(j["RC:Chatroom:SeatApply"],this.onSeatApply),H.off(j["RC:Chatroom:SeatResponse"],this.onSeatApply),H.off(j["RM:RTC:UserLeave"],this.onSeatApply),H.off(j["RM:RTC:SwitchRole"],this.onSwitchRole),H.off(j["RC:Chatroom:Leave"],this.onLeave),H.off(j["RC:LookerLoginOut"],this.onLeave)},methods:{async onLeave(e){const t=e.userId||e.fromUserId;O.joinList[t]&&Fe(t),O.lookList[t]&&(bi(t),m.lookCount=m.lookCount-1>=0?m.lookCount-1:0),await se({count:m.lookCount},"MemberCount")},onSeatApply(e){if(Array.isArray(e)){for(const r of e)console.log("onSeatApply",r),Fe(r);return}const t=e.$EventMessage.messageType==="RC:Chatroom:SeatResponse",n=t?4:3,o=ne(e.$EventMessage.sentTime||new Date).format("HH:mm:ss");let s={name:e.audienceName,id:String(e.audienceId),system:1,isSelf:!1,content:"",sendTime:o};if(e.type===3){console.log(e,"\u7533\u8BF7\u8FDE\u9EA6");const r={name:e.audienceName,id:e.audienceId,userRoomType:n,type:e.type};De(e.audienceId,r),Ee(e.audienceId,r),s.content=t?"\u540C\u610F\u4E86\u8FDE\u9EA6\u7533\u8BF7":"\u53D1\u8D77\u4E86\u8FDE\u9EA6\u7533\u8BF7",pe(s),H.emit("MESSAGE:Change")}if(e.type===4){if(console.log(e,"\u53D6\u6D88\u8FDE\u9EA6"),O.joinList[e.audienceId]&&Fe(e.audienceId),O.lookList[e.audienceId]){let r=O.lookList[e.audienceId];r.userRoomType=1,Ee(e.audienceId,r)}s.content=t?"\u62D2\u7EDD\u4E86\u8FDE\u9EA6\u7533\u8BF7":"\u53D6\u6D88\u4E86\u8FDE\u9EA6\u7533\u8BF7",pe(s),H.emit("MESSAGE:Change")}},agree(e){var n,o;if(this.count>3||this.upStatus){console.log(!0,2323);return}this.upStatus=!0;const t=ke(Z({},e),{audienceName:e.name,audienceId:String(e.id),teacherId:String((n=P.user)==null?void 0:n.id),teacherName:(o=P.user)==null?void 0:o.speakerName,userRoomType:4,type:1});De(e.id,t),Ee(e.id,t),se(t,"SeatResponse"),setTimeout(()=>{this.upStatus=!1},300)},refuse(e){var n,o;if(this.downStatus)return;this.downStatus=!0;const t=ke(Z({},e),{audienceName:e.name,audienceId:String(e.id),teacherId:String((n=P.user)==null?void 0:n.id),teacherName:(o=P.user)==null?void 0:o.speakerName,userRoomType:4,type:5});De(e.id,t),se(t,"SeatApply"),setTimeout(()=>{this.downStatus=!1},300)},onDownSeat(e){var t;if(console.log(e,"onDownSeat"),O.joinList[e.audienceId]){const n=O.joinList[e.audienceId],o=ne(new Date).format("HH:mm:ss");console.log(e.$EventMessage.senderUserId,(t=P.user)==null?void 0:t.speakerId,"onDownSeat");let s=n.type==5?"\u88AB\u62A5\u4E0B\u9EA6":"\u53D6\u6D88\u4E86\u8FDE\u9EA6\u7533\u8BF7",r={name:e.audienceName,id:e.audienceId,system:1,isSelf:!1,content:s,sendTime:o};pe(r),H.emit("MESSAGE:Change"),Fe(e.audienceId)}},onSwitchRole(e){if(console.log(e,"onSwitchRole"),O.lookList[e.userId]&&e.role===2){let t=O.lookList[e.userId];t.userRoomType=1,Ee(e.userId,t)}}},render(){const e=Object.values(O.joinList);return i("div",{style:{minHeight:"100%",position:"relative"}},[e.length>0?e.map(t=>i("div",{class:N.itemContent},[i("div",{class:N.itemInfo},[i("div",{class:N.itemName},[i("p",{class:N.userName},[i("span",{class:N["name-style"]},[t.name]),t.userRoomType!==4?i("span",{style:{paddingLeft:"10px"}},[C("\u7533\u8BF7\u8FDE\u9EA6")]):i("span",{style:{paddingLeft:"10px",color:"var(--live-text-color)"}},[C("\u6B63\u5728\u8FDE\u9EA6")])]),t.userRoomType!==4?i("div",{class:N.joinText},[i("div",{class:N.join},null),i(ee,{size:"small",type:"primary",disabled:this.count>3,class:N.btn,onClick:()=>this.agree(t)},{default:()=>[C("\u4E0A\u9EA6")]})]):i("div",{class:N.joinText},[i("div",{class:N.join},null),i(ee,{size:"small",plain:!0,class:[N.btn,N.downBtn],onClick:()=>this.refuse(t)},{default:()=>[C("\u4E0B\u9EA6")]})])])])])):this.loadingJoin?i("div",{class:N.loadingStyle},[i("div",{class:"el-loading-mask",style:"background-color: rgba(0, 0, 0, 0.8);"},[i("div",{class:"el-loading-spinner"},[i("svg",{class:"circular",viewBox:"25 25 50 50"},[i("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"},null)])])])]):i(Ft,{style:{paddingTop:"120px"},text:"\u6682\u65E0\u5B66\u5458\u53D1\u8D77\u8FDE\u9EA6\uFF01",icon:"noData-no-join"},null)])}}),Pi=Y({data(){return{loadingLook:!1,upStatus:!1,downStatus:!1}},computed:{count(){let e=0;for(const t in O.lookList)if(Object.prototype.hasOwnProperty.call(O.lookList,t)){const n=O.lookList[t];if((n.userRoomType===2||n.userRoomType===4)&&(e+=1),e>3)break}return e}},async mounted(){await this._init(),this.loadingLook=!0,H.on(j["RC:Chatroom:Welcome"],this.onWelcome),setTimeout(()=>{this.loadingLook=!1})},methods:{async _init(){try{const e=sessionStorage.getItem("roomUid");(await ue.get("/api-web/imLiveBroadcastRoom/queryRoomUserInfo",{params:{roomUid:e}})).data.forEach(o=>{O.lookList[o.userId]||(O.lookList[o.userId]={id:o.userId,name:o.userName,type:3,userRoomType:1,time:ne().format("YYYY-MM-DD HH:mm:ss")})})}catch{}},async onWelcome(e){if(e&&e.user){const t=ne(e.$EventMessage.sentTime||new Date).format("HH:mm:ss");let n={name:e.user.name,id:e.user.id,sendTime:t,userRoomType:1,type:3};!!O.lookList[n.id]||(Ee(n.id,n),console.log("\u6DFB\u52A0\u89C2\u770B\u4EBA\u5458",n),m.lookCount+=1),await se({count:m.lookCount},"MemberCount"),this.loadingLook=!1}},async onUpLook(e){var t,n;try{if(console.log(this.count,O.lookList,"this.count, runtimeModel.lookList"),this.count>3)return;const o={audienceName:e.name,audienceId:String(e.id),teacherId:String((t=P.user)==null?void 0:t.id),teacherName:(n=P.user)==null?void 0:n.speakerName,userRoomType:2,type:1};e.userRoomType=2,await se(o,"SeatApply")}catch{}},async onDownLook(e){var t,n;try{const o=ke(Z({},e),{audienceName:e.name,audienceId:String(e.id),teacherId:String((t=P.user)==null?void 0:t.id),teacherName:(n=P.user)==null?void 0:n.speakerName,type:5});De(e.id,o),se(o,"SeatApply")}catch{}}},render(){const e=Object.values(O.lookList);return i("div",null,[e.length>0?e.map(t=>i("div",{class:N.itemContent},[i("div",{class:N.itemInfo},[i("div",{class:N.itemName},[i("p",{class:N.userName},[i("span",{class:N["name-style"]},[t.name])]),t.userRoomType!==4?i(ee,{size:"small",type:"primary",disabled:this.count>3||t.userRoomType===2||m.videoStatus!=="liveing",class:N.btn,onClick:()=>this.onUpLook(t)},{default:()=>[C("\u4E0A\u9EA6")]}):i(ee,{size:"small",plain:!0,class:[N.btn,N.downBtn],onClick:()=>this.onDownLook(t)},{default:()=>[C("\u4E0B\u9EA6")]})])])])):this.loadingLook?i("div",{class:N.loadingStyle},[i("div",{class:"el-loading-mask",style:"background-color: rgba(0, 0, 0, 0.8);"},[i("div",{class:"el-loading-spinner"},[i("svg",{class:"circular",viewBox:"25 25 50 50"},[i("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"},null)])])])]):i(Ft,{style:{paddingTop:"120px"},text:"\u6682\u65E0\u5B66\u5458\u89C2\u770B\uFF01",icon:"noData-no-user"},null)])}}),Ni=Y({data(){return{messageList:[],loadingMessage:!1}},mounted(){this.loadingMessage=!0,H.on(j["RC:TxtMsg"],this.onMessage),H.on(j["RC:ForcedOffline"],this.onForcedOffline),H.on("MESSAGE:Change",this.scrollToBottom),setTimeout(()=>{this.loadingMessage=!1},2e3),this.scrollToBottom()},beforeUnmount(){H.off(j["RC:TxtMsg"],this.onMessage)},methods:{async onForcedOffline(){try{await rn(),await ue.post("/api-auth/exit",{data:{}}),me("camera"),me("microphone"),m.syncLikeTimer&&clearTimeout(m.syncLikeTimer),P.user=null,At(),this.$router.push({path:"/login",query:Z({},this.$route.query)})}catch{}},onLike(e){var t;if(e&&e.user){const n=ne(e.$EventMessage.sentTime||new Date).format("HH:mm:ss");console.log(e,"like");let o={name:(t=e.user)==null?void 0:t.name,id:e.user.id,isSelf:!1,content:"\u7ED9\u60A8\u70B9\u4E86"+e.counts+"\u4E2A\u8D5E",sendTime:n};pe(o),this.loadingMessage=!1}this.scrollToBottom()},onMessage(e){var t;if(e&&e.user){const n=ne(e.$EventMessage.sentTime||new Date).format("HH:mm:ss");let o={name:(t=e.user)==null?void 0:t.name,id:e.user.id,isSelf:!1,content:e.content,sendTime:n};e.user.id===P.user.speakerId&&(o.isSelf=!0),pe(o),this.loadingMessage=!1}this.scrollToBottom()},scrollToBottom(){this.$nextTick(()=>{var e,t;(t=document.querySelector("#tabList"))==null||t.scrollTo(0,((e=document.querySelector("#messageList"))==null?void 0:e.scrollHeight)||0)})}},render(){return i("div",{style:{minHeight:"100%",position:"relative"},id:"messageList"},[O.messageList.length>0?O.messageList.map(e=>i("div",{class:[N.itemContent,N["slide-top-enter-active"]]},[i("div",{class:N.itemInfo},[i("div",{class:N.itemName},[i("div",{class:N.userName},[e.isSelf?i(go,{effect:"dark",color:"#01A79E"},{default:()=>[C("\u4E3B\u8BB2\u4EBA")]}):null,i("span",{class:N["name-style"]},[e.name,e.system?null:"\uFF1A"]),i("span",{class:[N.itemText,e.isSelf?N.active:null]},[e.content])]),i("p",{class:N.rightTime},[e.sendTime])])])])):this.loadingMessage?i("div",{class:N.loadingStyle},[i("div",{class:"el-loading-mask",style:"background-color: rgba(0, 0, 0, 0.8);"},[i("div",{class:"el-loading-spinner"},[i("svg",{class:"circular",viewBox:"25 25 50 50"},[i("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"},null)])])])]):i(Ft,{style:{paddingTop:"120px"},text:"\u6682\u65E0\u5B66\u5458\u4E92\u52A8\uFF01",icon:"noData-no-message"},null)])}}),Ui=Y({name:"LiveMessage",data(){return{modelIndex:"message"}},computed:{joinStatus(){let e=O.joinTips;const t=Object.values(O.joinList);return(O.joinTips&&this.modelIndex==="join"||t.length<=0)&&(e=!1,O.joinTips=!1),e}},methods:{tabChange(e){this.modelIndex=e.props.name,this.modelIndex==="message"&&this.$refs.messageModel.scrollToBottom()}},render(){return i("div",{class:Q.container},[i("div",{class:Q.dataCount},[i("div",null,[i("p",{class:Q.num},[m.lookCount]),i("p",{class:Q.text},[i(G("SvgIcon"),{name:"message-look",color:"#fff",class:Q.dataIcon},null),C("\u5F53\u524D\u89C2\u770B")])]),i("div",null,[i("p",{class:Q.num},[m.likeCount]),i("p",{class:Q.text},[i(G("SvgIcon"),{name:"message-giveUp",color:"#fff",class:Q.dataIcon},null),C("\u7D2F\u8BA1\u70B9\u8D5E")])])]),i(po,{modelValue:this.modelIndex,"onTab-click":this.tabChange,class:Q.tabContainer},{default:()=>[i($e,{name:"message"},{label:()=>i("span",{style:{display:"flex",alignItems:"center"}},[i(G("SvgIcon"),{name:"message-message",color:this.modelIndex==="message"?"#00FFF0":"#fff",class:Q.tabIcon},null),C("\u804A\u5929")])}),i($e,{name:"join"},{label:()=>i("span",{style:{display:"flex",alignItems:"center",position:"relative"}},[i(G("SvgIcon"),{name:"message-evenEtc",color:this.modelIndex==="join"?"#00FFF0":"#fff",class:Q.tabIcon},null),C("\u8FDE\u9EA6 "),this.joinStatus?i("i",{class:Q.point},null):null])}),i($e,{name:"look"},{label:()=>i("span",{style:{display:"flex",alignItems:"center"}},[i(G("SvgIcon"),{name:"message-look",color:this.modelIndex==="look"?"#00FFF0":"#fff",class:Q.tabIcon},null),C("\u89C2\u770B")])})]}),i("div",{class:Q.tabContent},[i(yi,null,null),i("div",{class:Q.tabList,id:"tabList"},[Xe(i(Ni,{ref:"messageModel"},null),[[Ze,this.modelIndex==="message"]]),Xe(i(Di,null,null),[[Ze,this.modelIndex==="join"]]),Xe(i(Pi,null,null),[[Ze,this.modelIndex==="look"]])]),i(Ci,null,null)])])}});const Oi="_container_13n1h_1",Hi="_home_13n1h_4";var on={container:Oi,home:Hi},Ki=Y({render(){return i("div",{class:on.home},[i(To,null,null),i("div",{class:on.container},[i(ri,null,null),i(Ui,null,null)])])}});export{Ki as default};
|