Files
xj-admin/public/static/im-web/js/app.5521fbd6.js
T
weixin be946d3f0b update
1.更新im
2.修改最近提的问题
2025-07-06 15:15:37 +08:00

1 line
600 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(e){function t(t){for(var o,a,r=t[0],l=t[1],c=t[2],d=0,u=[];d<r.length;d++)a=r[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&u.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);p&&p(t);while(u.length)u.shift()();return s.push.apply(s,c||[]),n()}function n(){for(var e,t=0;t<s.length;t++){for(var n=s[t],o=!0,a=1;a<n.length;a++){var r=n[a];0!==i[r]&&(o=!1)}o&&(s.splice(t--,1),e=l(l.s=n[0]))}return e}var o={},a={app:0},i={app:0},s=[];function r(e){return l.p+"js/"+({about:"about"}[e]||e)+"."+{about:"842aae86"}[e]+".js"}function l(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.e=function(e){var t=[],n={about:1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var o="css/"+({about:"about"}[e]||e)+"."+{about:"d6b71b4b"}[e]+".css",i=l.p+o,s=document.getElementsByTagName("link"),r=0;r<s.length;r++){var c=s[r],d=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(d===o||d===i))return t()}var u=document.getElementsByTagName("style");for(r=0;r<u.length;r++){c=u[r],d=c.getAttribute("data-href");if(d===o||d===i)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var o=t&&t.target&&t.target.src||i,s=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=o,delete a[e],p.parentNode.removeChild(p),n(s)},p.href=i;var m=document.getElementsByTagName("head")[0];m.appendChild(p)})).then((function(){a[e]=0})));var o=i[e];if(0!==o)if(o)t.push(o[2]);else{var s=new Promise((function(t,n){o=i[e]=[t,n]}));t.push(o[2]=s);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,l.nc&&d.setAttribute("nonce",l.nc),d.src=r(e);var u=new Error;c=function(t){d.onerror=d.onload=null,clearTimeout(p);var n=i[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",u.name="ChunkLoadError",u.type=o,u.request=a,n[1](u)}i[e]=void 0}};var p=setTimeout((function(){c({type:"timeout",target:d})}),12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(t)},l.m=e,l.c=o,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)l.d(n,o,function(t){return e[t]}.bind(null,o));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="",l.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],d=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var p=d;s.push([0,"vendors~app"]),n()})({0:function(e,t,n){e.exports=n("cd49")},"0066":function(e,t,n){},"0149":function(e){e.exports=JSON.parse('{"登录":"log in","登录当前账号":"Log in with current account","切换其他账号":"Switch accounts","我已阅读并同意":"I have read and agree to","和":"and","隐私条例":"Privacy Policy","用户协议":"User Agreement","免费体验":"Free trial","体验更多Demo":"More demos","访问官网":"Official website","超10亿用户的信赖":"1+ billion users trust Tencent Cloud Instant Messenger","一分钟":"1 Minute","改2行代码,1分钟跑通demo":"Quick demo run in 1 minute with changing only 2 lines of code required","每月服务客户数超过10000家":"Over 10,000 customers per month","消息收发成功率":"Success rate of message sending & receiving and service reliability higher than 99.99%","10亿":"1 billion","每月活跃用户数超过10亿":"Over 1 billion active users per month","请输入手机号":"Enter a mobile number","请输入userID":"Please enter your userID","请输入验证码":"Enter the verification code","请输入正确的手机号":"Enter a valid mobile number","请先勾选用户协议":"Agree to the User Agreement first","获取验证码":"Send verification code","登录失败":"Login failed","验证码发送成功":"Verification code sent successfully","发送验证码失败":"Failed to send the verification code","Android":"Android","iOS":"iOS","小程序":"Applet","Windows":"Windows","Mac OS":"Mac OS","扫描二维码下载":"Applet scanning QR code download","微信扫码进入":" WeChat scanning QR code to enter","点击直接下载":"Click to download directly","更多客户端体验":"More client experiences","微信扫一扫,免费体验腾讯云 IM 小程序":"Scan wechat and experience Tencent cloud im applet for free","或者截图至相册,切换微信扫一扫识别体验":"Or take a screenshot to the photo album to switch the wechat scanning recognition experience"}')},"01ce":function(e,t,n){"use strict";n("6f92")},"020d":function(e,t,n){},"031b":function(e,t,n){},"0504":function(e,t,n){},"05da":function(e,t,n){"use strict";n("e6ce")},"0613":function(e,t,n){"use strict";var o=n("5b1a"),a=n.n(o),i=n("5502");const s=[{id:1,label:"发送一条消息",status:!1},{id:2,label:"撤回一条消息",status:!1},{id:3,label:"修改一次我的昵称",status:!1},{id:4,label:"发起一个群聊",status:!1},{id:5,label:"开启一次群禁言",status:!1},{id:6,label:"解散一个群聊",status:!1},{id:7,label:"发起一次通话",status:!1}],r={taskList:s,userInfo:{},isMsgNeedReadReceipt:!0,displayOnlineStatus:!0,allowNotification:!0,_isTIMCallKit:!0,consultInfo:{},titleName:"",doctorName:""};if(localStorage.getItem("TUIKit-userInfo")){const e=localStorage.getItem("TUIKit-userInfo")||{};try{r.userInfo=JSON.parse(e)}catch(l){r.userInfo={}}}if(sessionStorage.getItem("isMsgNeedReadReceipt")){const e=sessionStorage.getItem("isMsgNeedReadReceipt")||"";try{r.isMsgNeedReadReceipt=JSON.parse(e)}catch(l){r.isMsgNeedReadReceipt=!1}}if(sessionStorage.getItem("displayOnlineStatus")){const e=sessionStorage.getItem("displayOnlineStatus")||"";try{r.displayOnlineStatus=JSON.parse(e)}catch(l){r.displayOnlineStatus=!1}}if(sessionStorage.getItem("allowNotification")){const e=sessionStorage.getItem("allowNotification")||"";try{r.allowNotification=JSON.parse(e)}catch(l){r.allowNotification=!1}}t["a"]=Object(i["a"])({state:r,getters:{getConsultInfo(e){return e.consultInfo},getTitleName(e){return e.titleName},getDoctorName(e){return e.doctorName}},mutations:{handleTask(e,t){e.taskList[t].status=!0},setUserInfo(e,t){e.userInfo=t,localStorage.setItem("TUIKit-userInfo",a()(t))},setNeedReadReceipt(e,t){e.isMsgNeedReadReceipt=t,sessionStorage.setItem("isMsgNeedReadReceipt",a()(t))},setDisplayOnlineStatus(e,t){e.displayOnlineStatus=t,sessionStorage.setItem("displayOnlineStatus",a()(t))},setNotification(e,t){e.allowNotification=t,sessionStorage.setItem("allowNotification",a()(t))},setConsultInfo(e,t){e.consultInfo=t},setTitleName(e,t){e.titleName=t},setDoctorName(e,t){e.doctorName=t}},actions:{},modules:{}})},"0d53":function(e,t,n){},1:function(e,t){},"10d3":function(e,t,n){"use strict";n("f419")},1182:function(e,t,n){"use strict";n("a185")},1294:function(e,t,n){},"12c0":function(e,t,n){},1431:function(e,t,n){},"14ed":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAABRdJREFUeF7tnO2ZFSEMhdlOtBOtRK1ErUStRK1ES3HPXXl2FoEkEIaM9/Dn/rjAhLwkB5iPh8QSygMPoayhMYlAgk0CAiGQYB4IZg4jhECCeSCYOYwQAgnmgWDmMEIIJJgHgpnDCCGQYB4IZg4jhECCeSCYOYwQAgnmgWDmMEIIxMUDb1JK71JKr1JKPx9/v6aUfrv0vLmTK0bIp5TSx8JvP1JKH/4HKFcD8j2lhOioldcEcl54IzV96cCAJYgQpK5LlytECCICkSGVz48VkM4uXaIDqelFy+EEsngq9vSidmkCWQREoxcEssj5ZbdavSCQE4Bo9QIbQERRWZiyHCFp9eLt301hbS/SA5J39vjFJhJ1V+7sMWGwec0TR71p3b3K0uoFnIdBwZkteC0guMavYvKgP8BdAWXqejuBaPUCEOC8XKxAWqlwVYqz2vdiruwCotWLmtOsA8YO/30jvXpD6Y1Lda0dQCx6gegoixWIBN/rDEyKeNXRzplARvSiNrGtQNAHNKS2MsN/HnpS042j7WXaba6HtEBag9EutDB7kDqkojF8BAjsR7vWOFTppGN8L+oBHFGoKhIQKdxVF1FW0jplBAhMkMaivX45HKlfLEhqqbfqlh4QKScq/ayqZjF6FIgGilVPJB+ZIfeA9FYnKi8rKh33F4rqtyozQDz1xE03jgPvAdGuhrSOLOtp9KLW9ywQLz1x040IQMyhfDB6FogmdUn2uerGbiAWvVgRIblPyaktPXHXjVkgmD0z965nz488IiT7wLo/WaIbHkB23rv2BGLVkyW6QSAvE6GUurKeSPVmU/HNqpFVliR4o6subTvPCNHqCc6heicNbj4hkOdp0NOT3mQZXb6bd+orZqI2Cnr1Vtkl6UnNJtM5lWbwjBCbnpQ+ddENinp/qkrinVu76QaByLlD0hNX3SAQGYh0jrckOrjsrYNhypIn7Isaq1ZZuIh0TlWaar1/Ig6Vq6xnF0nnVK1lr+vzXQTy7GZJN1qz21VPCOTJzZJu4HS79WwX2rtBIRBZN7SHiy56cu9AJN0o9xvW+yeiiJcV7h2I9f6GdN41nbruGYikG61zKqndFJQRIAjjb+ZYfGqAthFu4Ur7DcmpEpRhPRkBMsji1szjOdrZjaFVN1rjXaInZwPJg1M9Cd7wxCwQq260gCzRk11A8tp95KMxM0CkVGO9vyH1J6W+f2DvfpR05KMxo0BmdaMVKRIUk570gEghOaMlx7ZWXRkB4qUby/VEeh0Bs+r4NukoBM37JVpdGQHipRvL9UQCMgqgbIewzh8c6/WZn4rsLY2tQKSUYtWN0dSlmnBnAcEg8ltUUrRIumIFEuWlTyxgAKVbzgQCQ7S61NMVLyCr7ou39ieqFdfZQPLs0L4MVAtzK5DaJHB/nuow7VvXU93I2gUE9o/qihVITpd5cZJTopQ9Zv7PbxzjNx81qd4z3AlkVFdGgMw499S2u4GM6Err24uqHH2qdwcuFgGIVVf4eaYB0KNNtLpS658RMup1oZ12v1J2QyCLgFh05WgCgSwEYtUV1CeQE4BY9ys7X0Z1cUekVVZvQBpdYYS4TAl9J9I5mNeprd6iBTWvEiHHodfOwVaeTS1we7vLKwLJRy44m0IqUx1rn+rViYtdFcjEkGM3JZBgfAiEQIJ5IJg5jBACCeaBYOYwQggkmAeCmcMIIZBgHghmDiOEQIJ5IJg5jBACCeaBYOYwQggkmAeCmfMHU1mYdEaYItIAAAAASUVORK5CYII="},"17da":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return r}));const o="https://web.sdk.qcloud.com/im/assets/emoji/",a={"[NO]":"emoji_0@2x.png","[OK]":"emoji_1@2x.png","[下雨]":"emoji_2@2x.png","[么么哒]":"emoji_3@2x.png","[乒乓]":"emoji_4@2x.png","[便便]":"emoji_5@2x.png","[信封]":"emoji_6@2x.png","[偷笑]":"emoji_7@2x.png","[傲慢]":"emoji_8@2x.png","[再见]":"emoji_9@2x.png","[冷汗]":"emoji_10@2x.png","[凋谢]":"emoji_11@2x.png","[刀]":"emoji_12@2x.png","[删除]":"emoji_13@2x.png","[勾引]":"emoji_14@2x.png","[发呆]":"emoji_15@2x.png","[发抖]":"emoji_16@2x.png","[可怜]":"emoji_17@2x.png","[可爱]":"emoji_18@2x.png","[右哼哼]":"emoji_19@2x.png","[右太极]":"emoji_20@2x.png","[右车头]":"emoji_21@2x.png","[吐]":"emoji_22@2x.png","[吓]":"emoji_23@2x.png","[咒骂]":"emoji_24@2x.png","[咖啡]":"emoji_25@2x.png","[啤酒]":"emoji_26@2x.png","[嘘]":"emoji_27@2x.png","[回头]":"emoji_28@2x.png","[困]":"emoji_29@2x.png","[坏笑]":"emoji_30@2x.png","[多云]":"emoji_31@2x.png","[大兵]":"emoji_32@2x.png","[大哭]":"emoji_33@2x.png","[太阳]":"emoji_34@2x.png","[奋斗]":"emoji_35@2x.png","[奶瓶]":"emoji_36@2x.png","[委屈]":"emoji_37@2x.png","[害羞]":"emoji_38@2x.png","[尴尬]":"emoji_39@2x.png","[左哼哼]":"emoji_40@2x.png","[左太极]":"emoji_41@2x.png","[左车头]":"emoji_42@2x.png","[差劲]":"emoji_43@2x.png","[弱]":"emoji_44@2x.png","[强]":"emoji_45@2x.png","[彩带]":"emoji_46@2x.png","[彩球]":"emoji_47@2x.png","[得意]":"emoji_48@2x.png","[微笑]":"emoji_49@2x.png","[心碎了]":"emoji_50@2x.png","[快哭了]":"emoji_51@2x.png","[怄火]":"emoji_52@2x.png","[怒]":"emoji_53@2x.png","[惊恐]":"emoji_54@2x.png","[惊讶]":"emoji_55@2x.png","[憨笑]":"emoji_56@2x.png","[手枪]":"emoji_57@2x.png","[打哈欠]":"emoji_58@2x.png","[抓狂]":"emoji_59@2x.png","[折磨]":"emoji_60@2x.png","[抠鼻]":"emoji_61@2x.png","[抱抱]":"emoji_62@2x.png","[抱拳]":"emoji_63@2x.png","[拳头]":"emoji_64@2x.png","[挥手]":"emoji_65@2x.png","[握手]":"emoji_66@2x.png","[撇嘴]":"emoji_67@2x.png","[擦汗]":"emoji_68@2x.png","[敲打]":"emoji_69@2x.png","[晕]":"emoji_70@2x.png","[月亮]":"emoji_71@2x.png","[棒棒糖]":"emoji_72@2x.png","[汽车]":"emoji_73@2x.png","[沙发]":"emoji_74@2x.png","[流汗]":"emoji_75@2x.png","[流泪]":"emoji_76@2x.png","[激动]":"emoji_77@2x.png","[灯泡]":"emoji_78@2x.png","[炸弹]":"emoji_79@2x.png","[熊猫]":"emoji_80@2x.png","[爆筋]":"emoji_81@2x.png","[爱你]":"emoji_82@2x.png","[爱心]":"emoji_83@2x.png","[爱情]":"emoji_84@2x.png","[猪头]":"emoji_85@2x.png","[猫咪]":"emoji_86@2x.png","[献吻]":"emoji_87@2x.png","[玫瑰]":"emoji_88@2x.png","[瓢虫]":"emoji_89@2x.png","[疑问]":"emoji_90@2x.png","[白眼]":"emoji_91@2x.png","[皮球]":"emoji_92@2x.png","[睡觉]":"emoji_93@2x.png","[磕头]":"emoji_94@2x.png","[示爱]":"emoji_95@2x.png","[礼品袋]":"emoji_96@2x.png","[礼物]":"emoji_97@2x.png","[篮球]":"emoji_98@2x.png","[米饭]":"emoji_99@2x.png","[糗大了]":"emoji_100@2x.png","[红双喜]":"emoji_101@2x.png","[红灯笼]":"emoji_102@2x.png","[纸巾]":"emoji_103@2x.png","[胜利]":"emoji_104@2x.png","[色]":"emoji_105@2x.png","[药]":"emoji_106@2x.png","[菜刀]":"emoji_107@2x.png","[蛋糕]":"emoji_108@2x.png","[蜡烛]":"emoji_109@2x.png","[街舞]":"emoji_110@2x.png","[衰]":"emoji_111@2x.png","[西瓜]":"emoji_112@2x.png","[调皮]":"emoji_113@2x.png","[象棋]":"emoji_114@2x.png","[跳绳]":"emoji_115@2x.png","[跳跳]":"emoji_116@2x.png","[车厢]":"emoji_117@2x.png","[转圈]":"emoji_118@2x.png","[鄙视]":"emoji_119@2x.png","[酷]":"emoji_120@2x.png","[钞票]":"emoji_121@2x.png","[钻戒]":"emoji_122@2x.png","[闪电]":"emoji_123@2x.png","[闭嘴]":"emoji_124@2x.png","[闹钟]":"emoji_125@2x.png","[阴险]":"emoji_126@2x.png","[难过]":"emoji_127@2x.png","[雨伞]":"emoji_128@2x.png","[青蛙]":"emoji_129@2x.png","[面条]":"emoji_130@2x.png","[鞭炮]":"emoji_131@2x.png","[风车]":"emoji_132@2x.png","[飞吻]":"emoji_133@2x.png","[飞机]":"emoji_134@2x.png","[饥饿]":"emoji_135@2x.png","[香蕉]":"emoji_136@2x.png","[骷髅]":"emoji_137@2x.png","[麦克风]":"emoji_138@2x.png","[麻将]":"emoji_139@2x.png","[鼓掌]":"emoji_140@2x.png","[龇牙]":"emoji_141@2x.png"},i=["[龇牙]","[调皮]","[流汗]","[偷笑]","[再见]","[敲打]","[擦汗]","[猪头]","[玫瑰]","[流泪]","[大哭]","[嘘]","[酷]","[抓狂]","[委屈]","[便便]","[炸弹]","[菜刀]","[可爱]","[色]","[害羞]","[得意]","[吐]","[微笑]","[怒]","[尴尬]","[惊恐]","[冷汗]","[爱心]","[示爱]","[白眼]","[傲慢]","[难过]","[惊讶]","[疑问]","[困]","[么么哒]","[憨笑]","[爱情]","[衰]","[撇嘴]","[阴险]","[奋斗]","[发呆]","[右哼哼]","[抱抱]","[坏笑]","[飞吻]","[鄙视]","[晕]","[大兵]","[可怜]","[强]","[弱]","[握手]","[胜利]","[抱拳]","[凋谢]","[米饭]","[蛋糕]","[西瓜]","[啤酒]","[瓢虫]","[勾引]","[OK]","[爱你]","[咖啡]","[月亮]","[刀]","[发抖]","[差劲]","[拳头]","[心碎了]","[太阳]","[礼物]","[皮球]","[骷髅]","[挥手]","[闪电]","[饥饿]","[咒骂]","[折磨]","[抠鼻]","[鼓掌]","[糗大了]","[左哼哼]","[打哈欠]","[快哭了]","[吓]","[篮球]","[乒乓]","[NO]","[跳跳]","[怄火]","[转圈]","[磕头]","[回头]","[跳绳]","[激动]","[街舞]","[献吻]","[左太极]","[右太极]","[闭嘴]","[猫咪]","[红双喜]","[鞭炮]","[红灯笼]","[麻将]","[麦克风]","[礼品袋]","[信封]","[象棋]","[彩带]","[蜡烛]","[爆筋]","[棒棒糖]","[奶瓶]","[面条]","[香蕉]","[飞机]","[左车头]","[车厢]","[右车头]","[多云]","[下雨]","[钞票]","[熊猫]","[灯泡]","[风车]","[闹钟]","[雨伞]","[彩球]","[钻戒]","[沙发]","[纸巾]","[手枪]","[青蛙]"],s="https://web.sdk.qcloud.com/im/assets/face-elem/",r=[{icon:1,list:["yz00","yz01","yz02","yz03","yz04","yz05","yz06","yz07","yz08","yz09","yz10","yz11","yz12","yz13","yz14","yz15","yz16","yz17"]},{icon:2,list:["ys00","ys01","ys02","ys03","ys04","ys05","ys06","ys07","ys08","ys09","ys10","ys11","ys12","ys13","ys14","ys15"]},{icon:3,list:["gcs00","gcs01","gcs02","gcs03","gcs04","gcs05","gcs06","gcs07","gcs08","gcs09","gcs10","gcs11","gcs12","gcs13","gcs14","gcs15","gcs16"]}]},"181e":function(e,t,n){"use strict";n("bd25")},1848:function(e,t,n){"use strict";n("ba1b")},"18c1":function(e,t,n){"use strict";n("7f52")},1928:function(e,t,n){},"1d6e":function(e,t,n){},2068:function(e,t,n){"use strict";n("c985")},"20f7":function(e,t,n){},2259:function(e,t,n){"use strict";n("e5da")},"259d":function(e,t,n){"use strict";n.d(t,"f",(function(){return B})),n.d(t,"m",(function(){return M})),n.d(t,"d",(function(){return x})),n.d(t,"o",(function(){return V})),n.d(t,"p",(function(){return L})),n.d(t,"s",(function(){return R})),n.d(t,"r",(function(){return A})),n.d(t,"h",(function(){return G})),n.d(t,"k",(function(){return H})),n.d(t,"j",(function(){return z})),n.d(t,"t",(function(){return F})),n.d(t,"e",(function(){return $})),n.d(t,"i",(function(){return Y})),n.d(t,"l",(function(){return K})),n.d(t,"g",(function(){return q})),n.d(t,"x",(function(){return Z})),n.d(t,"c",(function(){return J})),n.d(t,"w",(function(){return Q})),n.d(t,"n",(function(){return X})),n.d(t,"a",(function(){return te})),n.d(t,"v",(function(){return ne})),n.d(t,"b",(function(){return oe})),n.d(t,"u",(function(){return ae})),n.d(t,"q",(function(){return ie}));n("d9e2");var o=n("14b1"),a=n.n(o),i=n("52da"),s=n.n(i),r=n("fa81"),l=n.n(r),c=n("65b8"),d=n.n(c),u=n("4573"),p=n.n(u),m=n("3818"),h=n.n(m),v=n("b4d1"),f=n.n(v),g=n("acf5"),b=n.n(g),O=n("cca4"),y=n.n(O),j=n("e946"),k=n.n(j),I=n("045d"),w=n.n(I),E=n("505e"),C=n.n(E),T=(n("2b0b"),n("9474")),S=n.n(T);function _(e){const t=e;let n,o,a,i;return t>=3600?(o=S()(""+t/3600,10)<10?"0"+S()(""+t/3600,10):S()(""+t/3600,10),a=S()(""+t%60/60,10)<10?"0"+S()(""+t%60/60,10):S()(""+t%60/60,10),i=t%3600<10?"0"+t%3600:t%3600,i>60&&(a=S()(""+i/60,10)<10?"0"+S()(""+i/60,10):S()(""+i/60,10),i=i%60<10?"0"+i%60:i%60),n=`${o}:${a}:${i}`):t>=60&&t<3600?(a=S()(""+t/60,10)<10?"0"+S()(""+t/60,10):S()(""+t/60,10),i=t%60<10?"0"+t%60:t%60,n=`00:${a}:${i}`):t<60&&(i=t<10?"0"+t:t,n="00:00:"+i),n}var D=n("b05a"),N=n("c959"),U=n("2e20");function B(e){var t,n,o,a,i,s;let r="";switch(e.type){case N["a"].TYPES.CONV_C2C:r=Q(null===e||void 0===e||null===(t=e.userProfile)||void 0===t?void 0:t.avatar)?null===e||void 0===e||null===(n=e.userProfile)||void 0===n?void 0:n.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png";break;case N["a"].TYPES.CONV_GROUP:r=Q(null===e||void 0===e||null===(o=e.groupProfile)||void 0===o?void 0:o.avatar)?null===e||void 0===e||null===(a=e.groupProfile)||void 0===a?void 0:a.avatar:"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg";break;case N["a"].TYPES.CONV_SYSTEM:r=Q(null===e||void 0===e||null===(i=e.groupProfile)||void 0===i?void 0:i.avatar)?null===e||void 0===e||null===(s=e.groupProfile)||void 0===s?void 0:s.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/group_avatar.png";break}return r}function M(e){var t,n;const{t:o}=window.TUIKitTUICore.config.i18n.useI18n();let a="";switch(e.type){case N["a"].TYPES.CONV_C2C:a=(null===e||void 0===e?void 0:e.userProfile.nick)||(null===e||void 0===e||null===(t=e.userProfile)||void 0===t?void 0:t.userID)||"";break;case N["a"].TYPES.CONV_GROUP:a=e.groupProfile.name||(null===e||void 0===e||null===(n=e.groupProfile)||void 0===n?void 0:n.groupID)||"";break;case N["a"].TYPES.CONV_SYSTEM:a=o("系统通知");break}return a}function x(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),n=[`[${t("TUIConversation.有人@我")}]`,`[${t("TUIConversation.@所有人")}]`,`[${t("TUIConversation.@所有人")}][${t("TUIConversation.有人@我")}]`];let o="";for(let a=0;a<e.groupAtInfoList.length;a++)e.groupAtInfoList[a].atTypeArray[0]&&e.unreadCount>0&&(o=n[e.groupAtInfoList[a].atTypeArray[0]-1]);return o}function V(e){var t;const n={referenceMessageForShow:"",referenceMessageType:0};if(!e||null===e||void 0===e||!e.ID||null===e||void 0===e||!e.type)return n;switch(e.type){case N["a"].TYPES.MSG_TEXT:n.referenceMessageForShow=null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.text,n.referenceMessageType=1;break;case N["a"].TYPES.MSG_CUSTOM:n.referenceMessageForShow="[自定义消息]",n.referenceMessageType=2;break;case N["a"].TYPES.MSG_IMAGE:n.referenceMessageForShow="[图片]",n.referenceMessageType=3;break;case N["a"].TYPES.MSG_AUDIO:n.referenceMessageForShow="[语音]",n.referenceMessageType=4;break;case N["a"].TYPES.MSG_VIDEO:n.referenceMessageForShow="[视频]",n.referenceMessageType=5;break;case N["a"].TYPES.MSG_FILE:n.referenceMessageForShow="[文件]",n.referenceMessageType=6;break;case N["a"].TYPES.MSG_FACE:n.referenceMessageForShow="[表情]",n.referenceMessageType=8;break}return n}function L(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),{lastMessage:n}=e,o=e;let a="",i="";const s=o.unreadCount>0&&o.messageRemindType===N["a"].TYPES.MSG_REMIND_ACPT_NOT_NOTE?`[${o.unreadCount>99?"99+":o.unreadCount}${t("TUIConversation.条")}] `:"";if(o.type===N["a"].TYPES.CONV_GROUP&&(a=n.fromAccount===o.groupProfile.selfInfo.userID?t("TUIConversation.我"):n.nameCard||n.nick||n.fromAccount),n.type===N["a"].TYPES.MSG_TEXT)i=n.payload.text;else if(n.type===N["a"].TYPES.MSG_CUSTOM){var r;const e=te(null===n||void 0===n||null===(r=n.payload)||void 0===r?void 0:r.data);if(1===(null===e||void 0===e?void 0:e.businessID))return i=W(n),i;i=n.messageForShow}else i=n.messageForShow;return n.isRevoked&&(i=t("TUIChat.撤回了一条消息")),o.type===N["a"].TYPES.CONV_GROUP&&n.type===N["a"].TYPES.MSG_GRP_TIP?i:`${s}${a?a+":":""}${i}`}function R(e){var t,n,o,i;const{t:r}=window.TUIKitTUICore.config.i18n.useI18n(),l={message:e,text:""};let c=(null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e||null===(t=e.payload)||void 0===t||null===(t=t.userIDList)||void 0===t?void 0:t.join(","));var d,u;(null===e||void 0===e||null===(n=e.payload)||void 0===n||null===(n=n.memberList)||void 0===n?void 0:n.length)>0&&(c="",null===e||void 0===e||null===(d=e.payload)||void 0===d||null===(d=d.memberList)||void 0===d||a()(d).call(d,e=>{c+=((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.userID))+","}),c=null===(u=c)||void 0===u?void 0:s()(u).call(u,0,-1));if((null===e||void 0===e?void 0:e.type)===(null===N["a"]||void 0===N["a"]||null===(o=N["a"].TYPES)||void 0===o?void 0:o.MSG_GRP_TIP))switch(e.payload.operationType){case N["a"].TYPES.GRP_TIP_MBR_JOIN:l.text=`${c} ${r("message.tip.加入群组")}`;break;case N["a"].TYPES.GRP_TIP_MBR_QUIT:l.text=`${r("message.tip.群成员")}${c} ${r("message.tip.退出群组")}`;break;case N["a"].TYPES.GRP_TIP_MBR_KICKED_OUT:l.text=`${r("message.tip.群成员")}${c} ${r("message.tip.被")}${e.payload.operatorID}${r("message.tip.踢出群组")}`;break;case N["a"].TYPES.GRP_TIP_MBR_SET_ADMIN:l.text=`${r("message.tip.群成员")}${c} ${r("message.tip.成为管理员")}`;break;case N["a"].TYPES.GRP_TIP_MBR_CANCELED_ADMIN:l.text=`${r("message.tip.群成员")}${c} ${r("message.tip.被撤销管理员")}`;break;case N["a"].TYPES.GRP_TIP_GRP_PROFILE_UPDATED:l.text=P(e);break;case N["a"].TYPES.GRP_TIP_MBR_PROFILE_UPDATED:for(const t of e.payload.memberList)t.muteTime>0?l.text=`${r("message.tip.群成员")}${t.userID}${r("message.tip.被禁言")}`:l.text=`${r("message.tip.群成员")}${t.userID}${r("message.tip.被取消禁言")}`;break;default:l.text=`[${r("message.tip.群提示消息")}]`;break}else if("group_create"===(null===e||void 0===e||null===(i=e.payload)||void 0===i?void 0:i.data)){var p;l.text=null===e||void 0===e||null===(p=e.payload)||void 0===p?void 0:p.extension}else l.text=W(e);return l}function P(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),{payload:n}=e,{newGroupProfile:o}=n,{operatorID:a}=n;let i="";const s=l()(o)[0];switch(s){case"muteAllMembers":i=o[s]?`${t("message.tip.管理员")} ${a} ${t("message.tip.开启全员禁言")}`:`${t("message.tip.管理员")} ${a} ${t("message.tip.取消全员禁言")}`;break;case"ownerID":i=`${o[s]} ${t("message.tip.成为新的群主")}`;break;case"groupName":i=`${a} ${t("message.tip.修改群名为")} ${o[s]}`;break;case"notification":i=`${a} ${t("message.tip.发布新公告")}`;break;default:break}return i}function A(e){const t={text:Object(D["a"])(e.payload)};return t}function G(e){var t;const n={message:e,name:"",url:""};return n.name=e.payload.data,d()(t=e.payload.data).call(t,"@2x")<0&&(n.name=n.name+"@2x"),n.url=`https://web.sdk.qcloud.com/im/assets/face-elem/${n.name}.png`,n}function H(e){const t={lon:"",lat:"",href:"",url:"",description:"",message:e};return t.lon=e.payload.longitude.toFixed(6),t.lat=e.payload.latitude.toFixed(6),t.href=`https://map.qq.com/?type=marker&isopeninfowin=1&markertype=1&pointx=${t.lon}&pointy=${t.lat}&name=${e.payload.description}`,t.url=`https://apis.map.qq.com/ws/staticmap/v2/?center=${t.lat},${t.lon}&zoom=10&size=300*150&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|${t.lat},${t.lon}&key=UBNBZ-PTP3P-TE7DB-LHRTI-Y4YLE-VWBBD`,t.description=e.payload.description,t}function z(e){return{progress:"unSend"===(null===e||void 0===e?void 0:e.status)&&e.progress,url:e.payload.imageInfoArray[0].url,width:e.payload.imageInfoArray[0].width,height:e.payload.imageInfoArray[0].height,message:e}}function F(e){var t,n,o,a;return{progress:"unSend"===(null===e||void 0===e?void 0:e.status)&&(null===e||void 0===e?void 0:e.progress),url:null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.videoUrl,snapshotUrl:null===e||void 0===e||null===(n=e.payload)||void 0===n?void 0:n.snapshotUrl,snapshotWidth:null===e||void 0===e||null===(o=e.payload)||void 0===o?void 0:o.snapshotWidth,snapshotHeight:null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.snapshotHeight,message:e}}function $(e){return{progress:"unSend"===(null===e||void 0===e?void 0:e.status)&&e.progress,url:e.payload.url,message:e,second:e.payload.second}}function Y(e){let t="";return t=e.payload.fileSize>=1048576?(e.payload.fileSize/1048576).toFixed(2)+" Mb":e.payload.fileSize>=1024?(e.payload.fileSize/1024).toFixed(2)+" Kb":e.payload.fileSize.toFixed(2)+"B",{progress:"unSend"===(null===e||void 0===e?void 0:e.status)&&e.progress,url:e.payload.fileUrl,message:e,name:e.payload.fileName,size:t}}function K(e){return{message:e,...e.payload}}function W(e){var t,n;const{t:o}=window.TUIKitTUICore.config.i18n.useI18n();let a={},i={};try{var s;a=te(null===e||void 0===e||null===(s=e.payload)||void 0===s?void 0:s.data)}catch(c){a={}}if(1!==a.businessID)return"";try{i=te(a.data)}catch(c){i={}}let r="";null===(t=a)||void 0===t||null===(t=t.inviteeList)||void 0===t||p()(t).call(t,(e,t)=>{var n;t<(null===(n=a)||void 0===n||null===(n=n.inviteeList)||void 0===n?void 0:n.length)-1?r+=`"${e}"、`:r+=`"${e}" `});const l=`"${null===(n=a)||void 0===n?void 0:n.inviter}" `;switch(a.actionType){case 1:return i.call_end>=0&&!a.groupID?`${o("message.custom.通话时长")}${_(i.call_end)}`:a.groupID&&a.timeout>0?`${l}${o("message.custom.发起通话")}`:a.groupID?""+o("message.custom.结束群聊"):i.data&&"switchToAudio"===i.data.cmd?""+o("message.custom.切换语音通话"):i.data&&"switchToVideo"===i.data.cmd?""+o("message.custom.切换视频通话"):""+o("message.custom.发起通话");case 2:return`${a.groupID?l:""}${o("message.custom.取消通话")}`;case 3:return i.data&&"switchToAudio"===i.data.cmd?""+o("message.custom.切换语音通话"):i.data&&"switchToVideo"===i.data.cmd?""+o("message.custom.切换视频通话"):`${a.groupID?r:""}${o("message.custom.已接听")}`;case 4:return`${a.groupID?r:""}${o("message.custom.拒绝通话")}`;case 5:return i.data&&"switchToAudio"===i.data.cmd?""+o("message.custom.切换语音通话"):i.data&&"switchToVideo"===i.data.cmd?""+o("message.custom.切换视频通话"):`${a.groupID?r:""}${o("message.custom.无应答")}`;default:return""}}function q(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n();return{message:e,custom:W(e)||`[${t("message.custom.自定义消息")}]`}}function Z(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),n=e.payload.groupProfile.name||e.payload.groupProfile.groupID;switch(e.payload.operationType){case 1:return`${e.payload.operatorID} ${t("message.tip.申请加入群组")}${n}`;case 2:return`${t("message.tip.成功加入群组")}${n}`;case 3:return`${t("message.tip.申请加入群组")}${n} ${t("message.tip.被拒绝")}`;case 4:return`${t("message.tip.你被管理员")}${e.payload.operatorID} ${t("message.tip.踢出群组")}${n}`;case 5:return`${t("message.tip.群")}${n} ${t("message.tip.被")} ${e.payload.operatorID} ${t("message.tip.解散")}`;case 6:return`${e.payload.operatorID} ${t("message.tip.创建群")}${n}`;case 7:return`${e.payload.operatorID} ${t("message.tip.邀请你加群")}${n}`;case 8:return`${t("message.tip.你退出群组")}${n}`;case 9:return`${t("message.tip.你被")}${e.payload.operatorID} ${t("message.tip.设置为群")}${n} ${t("message.tip.的管理员")}`;case 10:return`${t("message.tip.你被")}${e.payload.operatorID} ${t("message.tip.撤销群")}${n} ${t("message.tip.的管理员身份")}`;case 12:return`${e.payload.operatorID} ${t("message.tip.邀请你加群")}${n}`;case 13:return`${e.payload.operatorID} ${t("message.tip.同意加群")}${n}`;case 14:return`${e.payload.operatorID} ${t("message.tip.拒接加群")}${n}`;case 255:return`${t("message.tip.自定义群系统通知")}: ${e.payload.userDefinedField}`}}function J(e,t,n){var o;const i=(null===e||void 0===e?void 0:e.querySelectorAll("."+t))||[],r=a()(o=s()(Array.prototype).call(i)).call(o,e=>new h.a((t,n)=>{e.onload=()=>{t(e)},e.onloadeddata=()=>{t(e)},e.onprogress=()=>{t(e)},e.complete&&t(e)}));return h.a.all(r).then(()=>{n&&n()}).catch(e=>{console.error("网络异常",e)})}function Q(e){return/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)}function X(e,t,n){return{businessID:e,version:t,...n}}function ee(e){if("string"===typeof e)try{const t=JSON.parse(e);return!!t}catch(t){return!1}return!1}function te(e){return e&&ee(e)?JSON.parse(e):e}function ne(e){if(!e)return!1;try{var t;const{businessID:n}=te(null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.data);if(n===U["a"].typeUserTyping)return!0}catch{return!1}return!1}function oe(e,t=new f.a){if("object"!==typeof e||null===e)throw new TypeError("传入参数不是对象");if(t.has(e))return t.get(e);const n=b()(y()(e)),o=l()(e);return p()(o).call(o,o=>{const a=e[o];"object"!==typeof a||null===a?n[o]=a:k()(a)?n[o]=[...a]:a instanceof w.a?n[o]=new w.a([...a]):a instanceof C.a?n[o]=new C.a([...a]):(t.set(e,e),n[o]=oe(a,t))}),n}const ae=e=>{var t,n,o,a,i,s;return!!((null===e||void 0===e?void 0:e.type)===(null===N["a"]||void 0===N["a"]||null===(t=N["a"].TYPES)||void 0===t?void 0:t.MSG_GRP_TIP)||(null===e||void 0===e?void 0:e.type)===(null===N["a"]||void 0===N["a"]||null===(n=N["a"].TYPES)||void 0===n?void 0:n.MSG_CUSTOM)&&(null===e||void 0===e?void 0:e.conversationType)===(null===N["a"]||void 0===N["a"]||null===(o=N["a"].TYPES)||void 0===o?void 0:o.CONV_GROUP)&&null!==U["a"]&&void 0!==U["a"]&&U["a"].TYPE_CALL_MESSAGE||(null===e||void 0===e?void 0:e.type)===(null===N["a"]||void 0===N["a"]||null===(a=N["a"].TYPES)||void 0===a?void 0:a.MSG_CUSTOM)&&(null===e||void 0===e?void 0:e.conversationType)===(null===N["a"]||void 0===N["a"]||null===(i=N["a"].TYPES)||void 0===i?void 0:i.CONV_GROUP)&&"group_create"===(null===e||void 0===e||null===(s=e.payload)||void 0===s?void 0:s.data))},ie=(e,t,n,o)=>{const a=e/t,i=n/o;return e<=n&&t<=o?{width:e,height:t}:e<=n&&t>o||e>n&&t>o&&a<=i?{width:e*(o/t),height:o}:{width:n,height:t*(n/e)}}},2857:function(e,t,n){"use strict";n("5c55")},2929:function(e,t,n){"use strict";n("34be")},"292f":function(e){e.exports=JSON.parse('{"发起单聊":"New one-to-one chat","发起群聊":"New group chat","请输入userID":"Enter a user ID","删除会话":"Delete conversation","系统通知":"System notification","置顶会话":"Top conversation","取消置顶":"cancel top conversation","消息免打扰":"Message not disturb","取消免打扰":"cancel not disturb","有人@我":"Someone {\'@\'} me","@所有人":"{\'@\'}Everyone","条":"strip","我":"me","网络异常,请您检查网络设置":"Network exception, please check the network settings"}')},"29ef":function(e,t,n){"use strict";n("ad38")},"2b91":function(e,t,n){"use strict";n("3105")},"2e20":function(e,t,n){"use strict";const o={typeC2C:"isC2C",typeGroup:"isGroup",cancel:"cancel",group:"GROUP",handleMessage:{revoke:"revoke",copy:"copy",delete:"delete",forward:"forward",reply:"reply",reference:"reference"},at:"@",all:"所有人",typeText:1,typeCustom:2,typeImage:3,typeAudio:4,typeVideo:5,typeFile:6,typeFace:8,typeForward:"forward",typeMute:"mute",typeOrder:"order",typeService:"consultion",typeReply:"quick_reply",typeEvaluate:"evaluation",typeTextLink:"text_link",typeAndroid:"android",typeIphone:"iphone",typeMini:"miniprogram",typeSystem:"system",typeBusinessCard:"business_card",typeArchives:"archives",typeMedicalExaminationReport:"medical_examination_report",typeUserTyping:"user_typing_status",typeInputStatusIng:"EIMAMSG_InputStatus_Ing",typeInputStatusEnd:"EIMAMSG_InputStatus_End",scrollType:{toBottom:"bottom",toTarget:"target"},inViewType:{page:"page",scroll:"scroll"},TYPE_CALL_MESSAGE:1,CALL_ACTION_TYPE:{INVITE:1,CANCEL_INVITE:2,ACCEPT_INVITE:3,REJECT_INVITE:4,INVITE_TIMEOUT:5}};t["a"]=o},3105:function(e,t,n){},"336d":function(e){e.exports=JSON.parse('{"群聊通知":"Group Chat Notifications","系统通知":"System Notifications","我的群聊":"My Group Chats","输入群ID,按回车搜索":"Enter a group ID","群名称":"Group name","群ID":"Group ID","加入群聊":"Join group chat","解散群聊":"Disband group chat","退出群聊":"Quit group chat","进入群聊":"Enter group chat","群类型":"Group type","请填写验证信息":"Enter the verification info","申请加入":"Request to join","已申请":"Requested","接受":"Accept","拒绝":"Refuse","已处理":"Handled","添加群聊":"add group chat","已加入":"joined","该群组不存在":"The group does not exist","加群":"join","我的好友":"Friend","发送消息":"Send Message","个性签名":"Signature"}')},"34bb":function(e,t,n){e.exports=n.p+"img/doctor-img.fa4faaf8.webp"},"34be":function(e,t,n){},3588:function(e,t,n){},"37a4":function(e){e.exports=JSON.parse('{"撤回":"Recall message","删除":"Delete message","复制":"Copy","重新发送":"Resend","转发":"Forward","引用":"Reference","回复":"Reply","回复详情":"Replies","条回复":"replies","打开":"Open","已读":"Read","全部已读":"All read","人已读":" read","人未读":" unread","人关闭阅读状态":" read status closed","消息详情":"Message Detail","关闭阅读状态":"Read status closed","该消息不存在":"The message does not exist","无法定位到原消息":"Unable to navigate to the original message","未读":"Unread","您":"You","撤回了一条消息":"recalled a message","重新编辑":"Re-edit","我":"I","查看更多":"View more","转发给":"Forward to","请输入消息":"Enter a message","描述":"Description","经度":"Longitude","纬度":"Latitude","自定义消息":"Custom message","图片":"[photo]","语音":"[audio]","视频":"[video]","表情":"[face]","文件":"[file]","自定义":"[custom message]","管理员开启全员禁言":"The admin enables Mute All","您已被管理员禁言":"You have been muted by the admin","按Enter发送,Ctrl+Enter换行":"Press Enter to send a message and Ctrl+Enter to start a new line","单击下载":"Click download","确认重发该消息?":"Confirm to resend the message?","取消":"Cancel","确定":"Submit","对方正在输入":"Typing...","回到最新位置":"Back to the latest location","条新消息":" new messages","安全提示":"【Security Tips】This APP is only used to experience the functions of Tencent Cloud Instant Messaging products, and cannot be used for business negotiation and expansion. Don\'t trust money-related information such as remittances and lottery wins, don\'t make unfamiliar phone calls easily, and beware of being deceived.","点此投诉":"Complain","语音通话":"Voice Call","视频通话":"Video Call","发起群语音":"Make group voice call","发起群视频":"Make group video call","已接听":"Answered","拒绝通话":"Decline Call","无应答":"No Answer","取消通话":"Cancel Call","发起通话":"Start Call","结束群聊":"Edit Group Call","通话时长":"Duration","欢迎使用TUICallKit":"Welcome to TUICallKit","检测到您暂未集成TUICallKit,无法体验音视频通话功能":"It is detected that you have not integrated TUI CallKit yet, so you cannot experience the audio and video call. ","请点击":"Please click","集成TUICallKit":" Integrate TUICallKit ","开通腾讯实时音视频服务":"Integration Tencent Real-Time Communication","进行体验":"to experience.","您当前购买使用的套餐包暂未开通此功能":"The package you purchased does not support this ability.","选择提醒的人":"Select Contact","manage":{"群公告":"Group notice","群成员":"Group member","群管理":"Manage group","好友工作群":"Work","陌生人社交群":"Public","临时会议群":"Meeting","直播群":"AVChatRom","自由加入":"Join freely","需要验证":"Require approval","禁止加群":"Disallow group joining","人":"","群ID":"Group ID","群头像":"Group profile photo","群类型":"Group type","加群方式":"Group joining mode","转让群组":"Transfer ownership","解散群聊":"Disband group","退出群组":"Quit group","群管理员":"Group admin","全员禁言":"Mute All","全员禁言开启后,只允许群主和管理员发言。":"If Mute All is enabled, only the group owner and admin can speak.","单独禁言人员":"Mute a member","删除成员":"Remove member","确定从群聊中删除该成员?":"Are you sure you want to remove this member from the group chat?","确定从群聊中删除所选成员?":"Are you sure you want to remove selected member(s) from the group chat?","暂无公告":"No notice","发布":"Post","编辑":"Edit","群名称":"Group name","查看更多":"View more","管理员":"Admin","群主":"Group owner","我":"me","添加成员":"Add member","新增管理员":"Add admin","移除管理员":"Revoke admin","新增禁言用户":"Add muted member","移除禁言用户":"Remove muted member","修改群聊名称":"Edit group name","修改群聊名称后,将在群内通知其他成员":"After modifying the group chat name, other members will be notified in the group","仅限中文、字母、数字和下划线,2-20个字":"Chinese, letters, numbers and underscores only, 2-20 words","请先注册 TUIGroup 模块":"Please register the TUIGroup module first","该用户不存在":"The user does not exist","该用户不在群组内":"The user is not in the group"}}')},3910:function(e,t,n){"use strict";n("f271")},"3a39c":function(e,t,n){"use strict";n("dbc1")},"3b1e":function(e,t,n){"use strict";n("8903")},"3e72":function(e,t,n){"use strict";n("1928")},"403c":function(e){e.exports=JSON.parse('{"请对本次服务进行评价":"请对本次服务进行评价","提交评价":"提交评价","服务评价工具":"服务评价工具","使用":"使用","自定义消息":"自定义消息","搭建":"搭建","星":"星"}')},"408a":function(e,t,n){},"409e":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAABcBJREFUeF7tnYuN1TAQRb2dQCdQCVAJUAlQCVAJUAm8u3rWywbP1+NkIk2kFdJu7Dj3zM+OE55aHakUeEo1mhpMKyDJjKCAFJBkCiQbTnlIAUmmQLLhlIcUkGQKJBtOeUgBSaZAsuGUhxSQZAokG055SAFJpkCy4ZSHFJBkCiQbTnmID8ib1hp+frTWft9/fD3tWl0VCMR411p71Vr7efv3a6QogrJfbtd6vzkHUD5EXf+KQD611j7uRAsVhQECA/g1+Pvn2+8wrunjakC+30PF6MZfR1kpo+rIGPrpIVCuAgSWiVCBUEUdCBsIXSsPhCqMgzqmjeIKQAABniEdIRYqXeQesmAgowMJ/u2Mp2YHwoWIvSBHAQEMGMgSKJmBcPliZJ1HAcG1JUNxjyUjEE2+OBuIBoorp2UDos0XGYBgDCiBQ0NXJiBSGOgQkDhHIrjDhCKRU6dI+cTsJVmAaPMFKhhMCkfl7xlAAIqDYq66zgaizRe4MVgbZuQUvLOASPnENK4zgWjzBSDAM/qREUiYl5wFRJsvRtYVCQQzb4gZsTgZsqxyBhBLvoB37I8IIKNQaQotg3GFeMmRQDz5YlTdRAChrBmhcWQE2kKM8xJVxaUFQtXa2oEiX3CLcr2ffb5YBYSaP5irosEAqb419ya+sKON9Vow3HnakBHhIVzYnH22wmkmrgZzHqKtgiJgWEJFBJDusZTna41jdO+cbmLY4oDsH1VGCL/vYzu/0PYfAUSaO+DvojUzA6bCFqo5QCEPDoi2GtIKuT9PFVMXVVm9W24tasZLKGOGAQJ0OiAzNxvlIRBFWovyegkXttg+z/AQS75YVWVt+w2Z0BmqLdYYPUDQ4cyza7jtzBHpIZrQ5fUSKmyxodoLJGTLi5PKCiBTpSpxH9yGCFL3AvJQk0rw3nznyiMF5AHEFWIYL6c21bEldQF5KMqFGG8e+UsAIwubAvJSMbOAQh6kwiA5Yy8gLxU1C1hA1j7CjQZirgjLQ16auFlAwUOoQoFc0yogLxU1C+gEQk4OC8haINSEs4AoVwUqZCmF2p4WLdq27+jZunmsFbLOmYeQyzEF5AGEW+rwPjIwTzQLyAMIt+Kr3Z2zj8AFxJGTehMq3ouPXYlr1uLiTRjvcxpOvBXL7/U8RPCcFQ+oqD5Zj/PkEExqvjlDQ/8UhbP5czNzKSlcjPMOb7jixhkOZEbMiK2a0UBWbHJwh0CPh8wA6W3FHXzMRSKBrPIOdwg8Cwj07rtXrLtQIoFwmwG9yRz35sofaHj2VlLPxuYoIByMmdwBXan5hwiZAyLt6osIXejDmlcigEi7+mdC6tSMX5qBYisL3nqdfT9E014rwiwQaVe/d89xN1B3uJJCVpQH9JjaPzjG9avJK7NAuF39s6HKXV11USQPiYQivZPRryXllVVArKFzpM10CX0kENyANi9x4swCWfV+YUgJfTSQblXal4FGeWUWyCiEepfXt17C3ZNYXZ0RsvYuDkv15JUIIH0ssGrrPGgUqkK848ikTuUiT16JBBKVI7k5jbZ6fB7LWSFrK4Q1r1DfXlSHhSgK9364MtpctWUAYs0r2T7PNPpsbL8nc27KBMQyXxkZ+RkeIr3vvv1ojsoxswHBoLV5ZX+DRwOR3lJ2vcKQEYhlvrKFciQQaS3MPZasQKx5Bee7RVDFksdJS9fCsgOx5JUjgHDzDYzVXFXtjeEKQLR55Qgg0sLk1Fets8xDtBFDmq+YS0zthTfnUQ+ecErI9a/iIVvtRlY6HSqUcKI3Y/932SsC6SGsfy5W/MKOUmzNadT/XWKeb1AXuyoQjXirzsHr01gUhVf+uV3Eu1tyOL4Csgqbs98C4hRuVbMCskpZZ78FxCncqmYFZJWyzn4LiFO4Vc0KyCplnf0WEKdwq5oVkFXKOvstIE7hVjUrIKuUdfZbQJzCrWpWQFYp6+y3gDiFW9WsgKxS1tnvP5Az1XQJBKYyAAAAAElFTkSuQmCC"},4176:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"e",(function(){return V})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return R})),n.d(t,"d",(function(){return P}));var o=n("9474"),a=n.n(o),i=n("65b8"),s=n.n(i),r=(n("14d9"),n("fc56")),l=n.n(r),c=n("4573"),d=n.n(c),u=n("4c43"),p=n.n(u),m=n("3393"),h=n.n(m),v=n("c192"),f=n.n(v),g=n("7a23");const b={key:0},O={key:1};function y(e,t,n,o,a,i){return Object(g["openBlock"])(),Object(g["createBlock"])(g["Transition"],{name:"fade",onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy"))},{default:Object(g["withCtx"])(()=>[Object(g["withDirectives"])(Object(g["createElementVNode"])("div",{class:Object(g["normalizeClass"])(["message",[e.handleStyle(e.type),e.isH5&&"message-h5"]]),style:Object(g["normalizeStyle"])(e.customStyle)},[e.isH5?Object(g["createCommentVNode"])("",!0):(Object(g["openBlock"])(),Object(g["createElementBlock"])("p",b,Object(g["toDisplayString"])(e.message),1)),e.isH5?(Object(g["openBlock"])(),Object(g["createElementBlock"])("span",O,Object(g["toDisplayString"])(e.message),1)):Object(g["createCommentVNode"])("",!0)],6),[[g["vShow"],e.visible]])]),_:1},8,["onBeforeLeave"])}var j=n("34ae"),k=Object(g["defineComponent"])({name:"TUIMessage",props:{message:{type:String,default:""},duration:{type:Number,default:3e3},repeatNum:{type:Number,default:1},id:{type:String,default:""},onClose:{type:Function,required:!1},offset:{type:Number,default:20},zIndex:{type:Number,default:0},isH5:{type:Boolean,default:!1},type:{type:String,default:""}},setup(e){const t=Object(g["ref"])(!1);let n=void 0;function o(){e.duration>0&&({stop:n}=Object(j["useTimeoutFn"])(()=>{t.value&&i()},e.duration))}function a(){var e;null===(e=n)||void 0===e||e()}function i(){t.value=!1}Object(g["watch"])(()=>e.repeatNum,()=>{a(),o()});const s=Object(g["computed"])(()=>({top:e.offset+"px",zIndex:e.zIndex}));Object(g["onMounted"])(()=>{o(),t.value=!0});const r=e=>!e||"error"!==e&&"success"!==e&&"warning"!==e?"normal":e;return{visible:t,customStyle:s,handleStyle:r}}}),I=(n("d0f1"),n("6b0d")),w=n.n(I);const E=w()(k,[["render",y],["__scopeId","data-v-3852e376"]]);var C=E;const T=[];let S=1;const _=document.body,D=function(e){const t=l()(T).call(T,t=>{var n,o,a;return""+(null!==(n=null===(o=t.vm.props)||void 0===o?void 0:o.message)&&void 0!==n?n:"")===""+(null!==(a=e.message)&&void 0!==a?a:"")});if(t)return t.vm.component.props.repeatNum+=1,{close:()=>s.component.proxy.visible=!1};let n=e.offset||20;d()(T).call(T,({vm:e})=>{var t;n+=((null===(t=e.el)||void 0===t?void 0:t.offsetHeight)||0)+20}),n+=20;const o="message_"+(S+=1),a=e.onClose,i={zIndex:20+S,offset:n,id:o,...e,onClose:()=>{N(o,a)}},s=Object(g["createVNode"])(C,i),r=document.createElement("div");return s.props.onDestroy=()=>{Object(g["render"])(null,r)},Object(g["render"])(s,r),T.push({vm:s}),_.appendChild(r.firstElementChild),{close:()=>s.component.proxy.visible=!1}};function N(e,t){const n=p()(T).call(T,({vm:t})=>e===t.component.props.id);if(-1===n)return;const{vm:o}=T[n];if(!o)return;null===t||void 0===t||t(o);const a=o.el.offsetHeight;h()(T).call(T,n,1);const i=T.length;if(!(i<1))for(let s=n;s<i;s++){const e=f()(T[s].vm.el.style.top,10)-a-16;T[s].vm.component.props.offset=e}}var U=D;const B={80001:"您发送的消息可能包含违规内容,请停止发送此类内容",80002:"您发送的消息超过最大长度限制(>8KB)"};var M=B;function x(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),n=6e4,o=60*n,i=24*o,s=7*i,r=(new Date).getTime(),l=r-e;let c="";if(l<0)return;const d=l/n,u=l/o,p=l/i,m=l/s;if(m>=1&&m<=4)c=` ${a()(""+m,10)} ${t("time.周")}${t("time.前")}`;else if(p>=1&&p<=6)c=` ${a()(""+p,10)} ${t("time.天")}${t("time.前")}`;else if(u>=1&&u<=23)c=` ${a()(""+u,10)} ${t("time.小时")}${t("time.前")}`;else if(d>=1&&d<=59)c=` ${a()(""+d,10)} ${t("time.分钟")}${t("time.前")}`;else if(l>=0&&l<=n)c=""+t("time.刚刚");else{const t=new Date;t.setTime(e);const n=t.getFullYear(),o=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate();c=`${n}-${o}-${a}`}return c}function V(e){const{t:t}=window.TUIKitTUICore.config.i18n.useI18n(),n=e.payload.groupProfile.name||e.payload.groupProfile.groupID;switch(e.payload.operationType){case 1:return`${e.payload.operatorID} ${t("message.tip.申请加入群组")}${n}`;case 2:return`${t("message.tip.成功加入群组")}${n}`;case 3:return`${t("message.tip.申请加入群组")}${n} ${t("message.tip.被拒绝")}`;case 4:return`${t("message.tip.你被管理员")}${e.payload.operatorID} ${t("message.tip.踢出群组")}${n}`;case 5:return`${t("message.tip.群")}${n} ${t("message.tip.被")} ${e.payload.operatorID} ${t("message.tip.解散")}`;case 6:return`${e.payload.operatorID} ${t("message.tip.创建群")}${n}`;case 7:return`${e.payload.operatorID} ${t("message.tip.邀请你加群")}${n}`;case 8:return`${t("message.tip.你退出群组")}${n}`;case 9:return`${t("message.tip.你被")}${e.payload.operatorID} ${t("message.tip.设置为群")}${n} ${t("message.tip.的管理员")}`;case 10:return`${t("message.tip.你被")}${e.payload.operatorID} ${t("message.tip.撤销群")}${n} ${t("message.tip.的管理员身份")}`;case 12:return`${e.payload.operatorID} ${t("message.tip.邀请你加群")}${n}`;case 13:return`${e.payload.operatorID} ${t("message.tip.同意加群")}${n}`;case 14:return`${e.payload.operatorID} ${t("message.tip.拒接加群")}${n}`;case 255:return`${t("message.tip.自定义群系统通知")}: ${e.payload.userDefinedField}`}}function L(e,t){null!==e&&void 0!==e&&e.type&&null!==e&&void 0!==e&&e.message?U({message:`${e.type} : ${e.message}`||e,isH5:!(null===t||void 0===t||!t.isH5),type:"error"}):U({message:M[e.code]||e,isH5:!(null===t||void 0===t||!t.isH5),type:"error"})}function R(e,t){U({message:e,isH5:!(null===t||void 0===t||!t.isH5),type:"success"})}function P(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(-1===s()(t).call(t,e[n]))return!1;return!0}},4189:function(e){e.exports=JSON.parse('{"发起单聊":"发起单聊","发起群聊":"发起群聊","请输入userID":"请输入userID","删除会话":"删除会话","置顶会话":"置顶会话","取消置顶":"取消置顶","消息免打扰":"消息免打扰","取消免打扰":"取消免打扰","系统通知":"系统通知","有人@我":"有人{\'@\'}我","@所有人":"{\'@\'}所有人","条":"条","我":"我","网络异常,请您检查网络设置":"网络异常,请您检查网络设置"}')},"41f3":function(e,t,n){},4481:function(e,t,n){},"45e3":function(e){e.exports=JSON.parse('{"撤回":"撤回","删除":"删除","复制":"复制","重新发送":"重新发送","转发":"转发","引用":"引用","回复":"回复","回复详情":"回复详情","条回复":"条回复","打开":"打开","已读":"已读","未读":"未读","人已读":"人已读","人未读":"人未读","人关闭阅读状态":"人关闭阅读状态","全部已读":"全部已读","消息详情":"消息详情","关闭阅读状态":"关闭","您":"您","撤回了一条消息":"撤回了一条消息","重新编辑":"重新编辑","我":"我","自定义消息":"自定义消息","查看更多":"查看更多","确认重发该消息?":"确认重发该消息?","取消":"取消","确定":"确定","转发给":"转发给","请输入消息":"请输入消息","描述":"描述","经度":"经度","纬度":"纬度","图片":"[图片]","语音":"[语音]","视频":"[视频]","表情":"[表情]","文件":"[文件]","自定义":"[自定义消息]","管理员开启全员禁言":"管理员开启全员禁言","您已被管理员禁言":"您已被管理员禁言","按Enter发送,Ctrl+Enter换行":"按Enter发送,Ctrl+Enter换行","单击下载":"单击下载","该消息不存在":"该消息不存在","无法定位到原消息":"无法定位到原消息","对方正在输入":"对方正在输入...","回到最新位置":"回到最新位置","条新消息":"条新消息","安全提示":"【安全提示】本 APP 仅用于体验腾讯云即时通信 IM 产品功能,不可用于业务洽谈与拓展。请勿轻信汇款、中奖等涉及钱款的信息,勿轻易拨打陌生电话,谨防上当受骗。","点此投诉":"点此投诉","语音通话":"语音通话","视频通话":"视频通话","发起群语音":"发起群语音","发起群视频":"发起群视频","已接听":"已接听","拒绝通话":"拒绝通话","无应答":"无应答","取消通话":"取消通话","发起通话":"发起通话","结束群聊":"结束群聊","通话时长":"通话时长","欢迎使用TUICallKit":"欢迎使用腾讯云音视频通话组件TUICallKit ","检测到您暂未集成TUICallKit,无法体验音视频通话功能":"检测到您暂未集成TUICallKit,无法体验音视频通话功能。","请点击":"请点击","集成TUICallKit":"集成 TUICallKit ","开通腾讯实时音视频服务":"开通腾讯实时音视频服务","进行体验":"进行体验。","您当前购买使用的套餐包暂未开通群消息已读回执功能":"您当前购买使用的套餐包暂未开通【群消息已读回执】功能,请升级至旗舰版进行体验","您当前购买使用的套餐包暂未开通在线用户列表功能":"您当前购买使用的套餐包暂未开通【在线用户列表】功能,请升级至旗舰版进行体验","您当前购买使用的套餐包暂未开通此功能":"您当前购买使用的套餐包暂未开通此功能。","选择提醒的人":"选择提醒的人","manage":{"群公告":"群公告","群成员":"群成员","群管理":"群管理","好友工作群":"好友工作群","陌生人社交群":"陌生人社交群","临时会议群":"临时会议群","直播群":"直播群","自由加入":"自由加入","需要验证":"需要验证","禁止加群":"禁止加群","人":"人","群ID":"群ID","群头像":"群头像","群类型":"群类型","加群方式":"加群方式","转让群组":"转让群组","解散群聊":"解散群聊","退出群组":"退出群组","群管理员":"群管理员","全员禁言":"全员禁言","全员禁言开启后,只允许群主和管理员发言。":"全员禁言开启后,只允许群主和管理员发言。","单独禁言人员":"单独禁言人员","删除成员":"删除成员","确定从群聊中删除该成员?":"确定从群聊中删除该成员?","确定从群聊中删除所选成员?":"确定从群聊中删除所选成员?","暂无公告":"暂无公告","发布":"发布","编辑":"编辑","群名称":"群名称","查看更多":"查看更多","管理员":"管理员","群主":"群主","我":"我","添加成员":"添加成员","新增管理员":"新增管理员","移除管理员":"移除管理员","新增禁言用户":"新增禁言用户","移除禁言用户":"移除禁言用户","修改群聊名称":"修改群聊名称","修改群聊名称后,将在群内通知其他成员":"修改群聊名称后,将在群内通知其他成员","仅限中文、字母、数字和下划线,2-20个字":"仅限中文、字母、数字和下划线,2-20个字","请先注册 TUIGroup 模块":"请先注册 TUIGroup 模块","该用户不存在":"该用户不存在","该用户不在群组内":"该用户不在群组内"}}')},"463a":function(e,t,n){},4678:function(e,t,n){var o={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="4678"},4712:function(e,t,n){"use strict";n("1d6e")},4853:function(e,t,n){"use strict";n("7c77")},"486b":function(e,t,n){},"48d5":function(e,t,n){"use strict";var o=n("65b8"),a=n.n(o),i=n("4328"),s=n.n(i);const r=window.location.href,l=-1!==a()(r).call(r,"?")?r.split("?")[1].replace("#/",""):"",c=s.a.parse(l);t["a"]=c},"49b8":function(e,t,n){},"4c00":function(e,t,n){},5066:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAjNJREFUOE+llM1PE2EQxp/Z0m5rquVQrJWqbVzQUI+aaJCDNV5I/IoVDxpP3hQvXogXV/8AA1HjP+AJOZgY8SBLUDyIMTElfpFUFgPxqw26rtRurfuabeyyW3bLRuY4O/PL88zMuwSHEEZH+d/B4AmOseOMsJuAOADeqbYxR42JrZJ00ke4DiDhBeAOFEUu1dMzBMKF/wHVe0yFKUm6sVaYAa0B/9kcdlN2bnM7PlU0PCgWVxVPxgL+BPm8dWZhjkNnKGQ2i507IBULmFxctAGrjGG6VLLlaNvY2GmOozvW7P4NEVwWBDO1MxLBO0VZoe5ntYq+6ZwdmJKkuyBk3bzsCYcxmN6F7qlnq9qtzTA5LskEJOvVSZ7H1Y4Oszka4NHG83ir/nAEvlQUDM7Pm98oNS6VrUdrzK+7tdUsGNgu4OHXL8ipqiPws6Yht7RkAzI3L20tLXi0dx+OPJ/Ct2p1RZmq6405zVDoCuyLxTAgLNu3dq/3+5F+PIEKW25nwFxToJPyABFup9P4UCrh2uysvYRhpCnQaD7bnkBeVTGhfEciwGOoqwuvVBVX3hunaw9dZ2eaAo0FHYvFcHRjDFvWhRD0+TBZKKB/ZsZJ/IKvrAmeLcf9fmQ3xZGNx2Ec9Pk3rzFXNg6kHnRKzmSGPQOtkg5Ho7hvfdeEm/KBg/21w262ZU9PA+yW/OTpRYhi7YbWAlwA9Ety5pDtL+UdyFiFEX0khhfEsXvcr8pIvrdXa3TxF8d3xwD3/EDQAAAAAElFTkSuQmCC"},"524e":function(e){e.exports=JSON.parse('{"常用语-快捷回复工具":"常用语-快捷回复工具","在吗?在吗?在吗?重要的话说三遍。":"在吗?在吗?在吗?重要的话说三遍。","好久没聊天了,快来和我说说话~":"好久没聊天了,快来和我说说话~","好的,就这么说定了。":"好的,就这么说定了。","感恩的心,感谢有你。":"感恩的心,感谢有你。","糟糕!是心动的感觉!":"糟糕!是心动的感觉!","心疼地抱抱自己,我太难了!":"心疼地抱抱自己,我太难了!","没关系,别在意,事情过去就过去了。":"没关系,别在意,事情过去就过去了。","早上好,今天也是让人期待的一天呢!":"早上好,今天也是让人期待的一天呢!","熬夜有什么用,又没人陪你聊天,早点休息吧。":"熬夜有什么用,又没人陪你聊天,早点休息吧。"}')},5392:function(e,t,n){"use strict";n("d307")},"53f8":function(e,t,n){},"54ba":function(e){e.exports=JSON.parse('{"欢迎使用":"欢迎使用","建议体验功能":"建议体验功能","用UI组件快速集成":"用UI组件快速集成","创建项目":"创建项目","下载TUIKit组件":"下载 TUIKit 组件","引入TUIKit组件":"引入 TUIKit 组件","获取SDKAppID":"获取 SDKAppID 、密钥与 userID","调用TUIKit组件":"调用 TUIKit 组件","启动项目":"启动项目","发送您的第一条消息":"发送您的第一条消息","首购低至1折":"首购低至1折","IM首购9percent折":" IM 首购低至0.9折","续费9折起":"续费9折起","复购75%起":"复购7.5折起","立即选购":"立即选购","体验更多Demo":"体验更多Demo","立即前往":"立即前往","已完成":"已完成","待体验":"待体验","发送一条消息":"发送一条消息","撤回一条消息":"撤回一条消息","切换一次使用语言":"切换一次使用语言","发起一个群聊":"发起一个群聊","开启一次群禁言":"开启一次群禁言","解散一个群聊":"解散一个群聊","发起一次通话":"发起一次通话","修改一次我的昵称":"修改一次我的昵称","我们为您默认提供了一位“示例好友”和一个“示例客服群”您不用额外添加好友和群聊就可完整体验腾讯云 IM 单聊、群聊的所有功能。":"我们为您默认提供了一位“示例好友”和一个“示例客服群”,您不用额外添加好友和群聊就可完整体验腾讯云 IM 单聊、群聊的所有功能。","随时随地":"随时随地,即“登”即“测”,快试试吧!","男":"男","女":"女","用户ID":"用户ID","个性签名":"个性签名","暂未设置":"暂未设置","出生年月":"出生年月","编辑资料":"编辑资料","关于腾讯云IM":"关于腾讯云IM","退出登录":"退出登录","隐私条例":"隐私条例","用户协议":"用户协议","免责声明":"免责声明","联系我们":"联系我们","注销账户":"注销账户","SDK版本":"SDK版本","注销后,您将无法使用当前账号,相关数据也将删除无法找回。 当前账号":"注销后,您将无法使用当前账号,相关数据也将删除无法找回。 当前账号","IM-免责声明":"IM-免责声明","IM(“本产品”)是由腾讯云提供的一款测试产品,腾讯云享有本产品的著作权和所有权。本产品仅用于功能体验,不得用于任何商业用途。依据相关部门监管要求,严禁在使用中有任何色情、辱骂、暴恐、涉政等违法内容传播。":"IM(“本产品”)是由腾讯云提供的一款测试产品,腾讯云享有本产品的著作权和所有权。本产品仅用于功能体验,不得用于任何商业用途。依据相关部门监管要求,严禁在使用中有任何色情、辱骂、暴恐、涉政等违法内容传播。","同意":"同意","取消":"取消","注销":"注销","关闭":"关闭","开启":"开启","关于腾讯云·通信":"关于腾讯云·通信","消息":"消息","通讯录":"通讯录","个人中心":"个人中心","已读回执":"已读回执","消息阅读状态":"消息阅读状态","关闭阅读状态":"关闭后,您收发的消息均不带消息阅读状态,您将无法看到对方是否已读,同时对方也无法看到您是否已读。","开启阅读状态":"开启后,您在群聊中收发的消息均带有消息阅读状态,并且可以看到对方是否已读。与您单聊的好友若也开启了消息阅读状态,您与好友在单聊中收发的消息也将带有消息阅读状态。","显示在线状态":"显示在线状态","开启在线状态":"开启后,您将可以在会话列表和通讯录中看到好友在线或离线的状态提示。","关闭在线状态":"关闭后,您将不可以在会话列表和通讯录中看到好友在线或离线的状态提示。","消息通知":"消息通知"}')},"577b":function(e,t,n){},"599e":function(e,t,n){},"5c55":function(e,t,n){},"5cd6":function(e,t,n){},"5ce0":function(e){e.exports=JSON.parse('{"资料设置":"资料设置","头像":"头像","昵称":"昵称","账号":"账号","个性签名":"个性签名","性别":"性别","男":"男","女":"女","不显示":"不显示","出生年月":"出生年月","取消":"取消","保存":"保存","请选择出生日期":"请选择出生日期","选择头像":"选择头像","设置昵称":"设置昵称","仅限中文、字母、数字和下划线,2-20个字":"仅限中文、字母、数字和下划线,2-20个字","请输入昵称":"请输入昵称","性别选择":"性别选择","请输入内容":"请输入内容","用户ID":"用户ID","暂未设置":"暂未设置"}')},"5e50":function(e,t,n){"use strict";n("408a")},"606b":function(e,t,n){"use strict";n("a1ae")},"622e":function(e,t,n){e.exports=n.p+"img/close-image.e1bb760f.png"},6314:function(e,t,n){},6609:function(e){e.exports=JSON.parse('{"tip":{"群成员":"群成员","加入群组":"加入群组","退出群组":"退出群组","被":"被","踢出群组":"踢出群组","成为管理员":"成为管理员","被撤销管理员":"被撤销管理员","被禁言":"被禁言","被取消禁言":"被取消禁言","群提示消息":"群提示消息","管理员":"管理员","开启全员禁言":"开启全员禁言","取消全员禁言":"取消全员禁言","成为新的群主":"成为新的群主","修改群名为":"修改群名为","发布新公告":"发布新公告","申请加入群组":"申请加入群组","成功加入群组":"成功加入群组","被拒绝":"被拒绝","你被管理员":"你被管理员","群":"群","解散":"解散","创建群":"创建群","邀请你加群":"邀请你加群","你退出群组":"你退出群组","你被":"你被","设置为群":"设置为群","的管理员":"的管理员","撤销群":"撤销群","的管理员身份":"的管理员身份","同意加群":"同意加群","拒接加群":"拒接加群","自定义群系统通知":"自定义群系统通知"},"custom":{"自定义消息":"自定义消息","通话时长":"通话时长","结束群聊":"结束群聊","切换语音通话":"切换语音通话","切换视频通话":"切换视频通话","发起通话":"发起通话","取消通话":"取消通话","已接听":"已接听","拒绝通话":"拒绝通话","无应答":"无应答","对本次服务评价":"对本次服务评价","查看详情>>":"查看详情>>"}}')},"668f":function(e,t,n){"use strict";n("020d")},"6a25":function(e,t,n){"use strict";n("f1ac")},"6b4c":function(e,t,n){},"6ba3":function(e,t,n){"use strict";const o=function(){const e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,o=/(?:Android)/.test(e),a=/(?:Firefox)/.test(e),i=/(?:iPad|PlayBook)/.test(e)||o&&!/(?:Mobile)/.test(e)||a&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!i,r=!s&&!o&&!n;return{isTablet:i,isPhone:s,isAndroid:o,isPC:r,isH5:s||o||i}};t["a"]=o},"6d25":function(e,t,n){},"6e04":function(e,t,n){"use strict";n("20f7")},"6f92":function(e,t,n){},"703d":function(e,t,n){e.exports=n.p+"img/at.f3555aa3.svg"},"72af":function(e){e.exports=JSON.parse('{"请对本次服务进行评价":"Please rate this service","提交评价":"Feedback","常用语-快捷回复工具":"Common Expressions - Quick Reply Tool","使用":"Build with","自定义消息":"Custom message","搭建":"","在吗?在吗?在吗?重要的话说三遍。":"Are you there? ","好久没聊天了,快来和我说说话~":"Its been a long time. How about you?","好的,就这么说定了。":"Okay. It\'s a deal.","感恩的心,感谢有你。":"So grateful! ","糟糕!是心动的感觉!":"Oh, no. Flipped.","心疼地抱抱自己,我太难了!":"Give myself a warm hug. ","没关系,别在意,事情过去就过去了。":"Take it easy.","早上好,今天也是让人期待的一天呢!":"Good morning. Have a wonderful day.","熬夜有什么用,又没人陪你聊天,早点休息吧。":"It\'s better to go to bed early."}')},"736b":function(e,t,n){"use strict";n("76de")},7507:function(e,t,n){},"76de":function(e,t,n){},"77d5":function(e,t,n){"use strict";n("e537")},"77ea":function(e,t,n){"use strict";n("0d53")},"7a54":function(e,t,n){"use strict";n("3588")},"7aa9":function(e,t,n){},"7af0":function(e,t,n){"use strict";n("6b4c")},"7b94":function(e,t,n){"use strict";n("7aa9")},"7c02":function(e,t,n){"use strict";n("4c00")},"7c77":function(e,t,n){},"7d94":function(e,t,n){"use strict";n("577b")},"7f52":function(e,t,n){},8617:function(e,t,n){"use strict";n("599e")},8893:function(e){e.exports=JSON.parse('{"请对本次服务进行评价":"Please rate this service","提交评价":"Feedback","服务评价工具":"Service rate tool","使用":"Build with","自定义消息":"Custom message","搭建":"","星":"Star"}')},8903:function(e,t,n){},"8a56":function(e,t,n){},"8f32":function(e,t,n){"use strict";n("49b8")},"8fe9":function(e){e.exports=JSON.parse('{"输入groupID搜索":"Enter groupId search","群名称":"Group name","群ID":"Group ID","加入群聊":"Join","解散群聊":"Dissolution","退出群聊":"Quit","群类型":"Group type","请填写验证信息":"Please fill in the verification information","申请加入":"Apply Join","已申请":"Applied"}')},"92c8":function(e){e.exports=JSON.parse('{"取消":"取消","完成":"完成","已选中":"已选中","人":"人","保存":"保存","请输入userID":"请输入userID","确定":"确定","全选":"全选","已在群聊中":"已在群聊中"}')},"944d":function(e,t,n){"use strict";n("4481")},9687:function(e,t,n){},9785:function(e,t,n){"use strict";n("c039")},"999c":function(e){e.exports=JSON.parse('{"周":"week(s) ","天":"day(s)","小时":"hour(s) ","分钟":"minute(s)","刚刚":"Just now","前":" ago","昨天":"Yesterday","星期一":"Monday","星期二":"Tuesday","星期三":"Wednesday","星期四":"Thursday","星期五":"Friday","星期六":"Saturday","星期日":"Sunday"}')},"9a2f":function(e,t,n){"use strict";n("1431")},"9c10":function(e){e.exports=JSON.parse('{"tip":{"群成员":"group members","加入群组":"joined the group","退出群组":"left the group","被":"by","踢出群组":"was kicked out of the group","成为管理员":"was set as an admin","被撤销管理员":"was revoked","被禁言":" was unmuted","被取消禁言":"cancel the prohibition","群提示消息":"group prompt message","管理员":"The admin","开启全员禁言":"enabled Mute All","取消全员禁言":"disabled Mute All","成为新的群主":"became the new group owner","修改群名为":"changed the group name to","发布新公告":"posted a new notice","申请加入群组":"requested to join the group","成功加入群组":"Successfully joined the group","被拒绝":"The request to join the group was refused","你被管理员":"You","群":"group","解散":"disbanded","创建群":"created the group","邀请你加群":"invite you to join the group","你退出群组":"You left the group","你被":"You were","设置为群":"set as group","的管理员":"as an admin","撤销群":"revoked","的管理员身份":"admin role of the group","同意加群":"agreed to join the group","拒接加群":"refused to join the group","自定义群系统通知":"Custom group system notification"},"custom":{"自定义消息":"Custom message","通话时长":"Call duration","结束群聊":"End","切换语音通话":"Switch voice call","切换视频通话":"Switch video call","发起通话":"Start a call","取消通话":"Cancel","已接听":"Answered","拒绝通话":"Decline","无应答":"No answer","对本次服务评价":"Rate this service","查看详情>>":"View details >>"}}')},a185:function(e,t,n){},a1ae:function(e,t,n){},a46a:function(e){e.exports=JSON.parse('{"输入groupID搜索":"输入groupID搜索","群名称":"群名称","群ID":"群ID","加入群聊":"加入群聊","解散群聊":"解散群聊","退出群聊":"退出群聊","群类型":"群类型","请填写验证信息":"请填写验证信息","申请加入":"申请加入","已申请":"已申请"}')},a53a:function(e,t,n){},a6a0:function(e,t,n){"use strict";n("9687")},a7be:function(e,t,n){},a94d:function(e,t,n){"use strict";n("8a56")},a9cb:function(e,t,n){},aa66:function(e,t,n){"use strict";n("486b")},ad38:function(e,t,n){},ae10:function(e,t,n){"use strict";n("f7e2")},ae69:function(e,t,n){"use strict";n("41f3")},aeac:function(e,t,n){"use strict";n("dce1")},aee3:function(e,t,n){},afbc:function(e,t,n){"use strict";var o=n("6605"),a=n("fcd0");const i=[{path:"/",name:"Home",component:()=>n.e("about").then(n.bind(null,"bb51"))}],s=Object(o["a"])({history:Object(o["b"])(""),routes:i});s.beforeEach((e,t,n)=>{"Login"===e.name||a["b"].isLogin?n():n({name:"Login"})}),t["a"]=s},b05a:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("14d9");var o=n("65b8"),a=n.n(o),i=n("52da"),s=n.n(i),r=n("17da");function l(e){const t=[];let n=e.text,o=-1,i=-1;while(""!==n)switch(o=a()(n).call(n,"["),i=a()(n).call(n,"]"),o){case 0:if(-1===i)t.push({name:"text",text:n}),n="";else{const e=s()(n).call(n,0,i+1);r["b"][e]?(t.push({name:"img",src:r["d"]+r["b"][e]}),n=n.substring(i+1)):(t.push({name:"text",text:"["}),n=s()(n).call(n,1))}break;case-1:t.push({name:"text",text:n}),n="";break;default:t.push({name:"text",text:s()(n).call(n,0,o)}),n=n.substring(o);break}return t}},b0af:function(e){e.exports=JSON.parse('{"发起会话":"发起会话","发起单聊":"发起单聊","发起群聊":"发起群聊","该用户不存在":"该用户不存在","创建群聊,请注册 TUIGroup 模块":"创建群聊,请注册 TUIGroup 模块","创建成功":"创建成功","发起多人会话(群聊)":"发起多人会话(群聊)","群头像":"群头像","群名称":"群名称","群ID":"群ID","群类型":"群类型","选填":"选填","取消":"取消","创建":"创建","类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主神奇。详见":"类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主神奇。详见","类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见":"类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见","创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见":"创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见","创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见":"创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见","产品文档":"产品文档","设置群名称":"设置群名称","请输入群名称":"请输入群名称","设置群ID":"设置群ID","请输入群ID":"请输入群ID","选择群类型":"选择群类型"}')},b15c:function(e){e.exports=JSON.parse('{"周":"周","天":"天","小时":"小时","分钟":"分钟","刚刚":"刚刚","前":"前","昨天":"昨天","星期一":"星期一","星期二":"星期二","星期三":"星期三","星期四":"星期四","星期五":"星期五","星期六":"星期六","星期日":"星期日"}')},b23d:function(e,t,n){"use strict";n("c96d")},b4c9:function(e,t,n){},b617:function(e,t,n){"use strict";n("b4c9")},b77c:function(e,t,n){"use strict";n("0066")},ba1b:function(e,t,n){},bbb6:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n("e311");const a=604800;function i(e){const{SDKAppID:t,secretKey:n,userID:i}=e,s=new o["a"](t,n,a),r=s.genTestUserSig(i);return{SDKAppID:t,userSig:r}}},bc82:function(e){e.exports=JSON.parse('{"资料设置":"Edit profile","头像":"Profile photo","昵称":"Name","账号":"Account","个性签名":"Status","性别":"Gender","男":"Male","女":"Female","不显示":"Rather not say","出生年月":"Birthday","取消":"Cancel","保存":"Save","请选择出生日期":"Select the date of birthday","选择头像":"Select Avatar","设置昵称":"Setting Name","仅限中文、字母、数字和下划线,2-20个字":"Chinese, letters, numbers and underscores only, 2-20 words","请输入昵称":"Enter Name","性别选择":"Select gender","请输入内容":"Enter content","用户ID":"userID","暂未设置":"Not set yet"}')},bd25:function(e,t,n){},be7e:function(e,t,n){"use strict";n("12c0")},c039:function(e,t,n){},c193:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return l["a"]})),n.d(t,"b",(function(){return c["a"]})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return w}));const o={theme:"dark"};function a(e){e.setCommonStore(o)}function i(e){console.log("app",e)}const s={name:"TUITheme",plugin:a,install:i};var r=s,l=n("c7e2"),c=n("6ba3"),d=n("2b0b"),u=n.n(d),p=n("14b1"),m=n.n(p);const h=[{name:"TUILongPress",callback:(e,t,n)=>{if("function"!==typeof t.value){const e=n.context.name;let o=`[longpress:] provided expression '${t.expression}' is not afunction, but has to be `;e&&(o+=`Found in component '${e}' `),console.warn(o)}let o=null;const a=e=>{"click"===e.type&&0!==e.button||null===o&&(o=u()(()=>{s(e)},1e3))},i=e=>{null!==o&&(clearTimeout(o),o=null)},s=e=>{t.value(e)};e.addEventListener("mousedown",a,!1),e.addEventListener("touchstart",a,!1),e.addEventListener("click",i),e.addEventListener("mouseout",i),e.addEventListener("touchend",i),e.addEventListener("touchcancel",i)}}],v=e=>{m()(h).call(h,t=>{e.directive(t.name,{beforeMount:t.callback})})};var f=v,g=n("2fa7"),b=n("3818"),O=n.n(b),y=n("259d"),j=n("ea1b"),k=n.n(j);class I{constructor(e){Object(g["a"])(this,"allowNotifications",!0),Object(g["a"])(this,"showPreviews",!0),Object(g["a"])(this,"notificationTitle","腾讯云 IM "),Object(g["a"])(this,"notificationIcon","https://web.sdk.qcloud.com/im/demo/latest/faviconnew.png"),e&&(void 0!==(null===e||void 0===e?void 0:e.allowNotifications)&&(this.allowNotifications=e.allowNotifications),void 0!==(null===e||void 0===e?void 0:e.showPreviews)&&(this.showPreviews=e.showPreviews),void 0!==(null===e||void 0===e?void 0:e.notificationTitle)&&(this.notificationTitle=e.notificationTitle),void 0!==(null===e||void 0===e?void 0:e.notificationIcon)&&(this.notificationIcon=e.notificationIcon))}static getInstance(e){return I.instance||(I.instance=new I(e)),I.instance}static plugin(e,t){e.config.notification=this.getInstance(t),this.TUICore=e}static install(e){e.use(this.getInstance())}setNotificationConfiguration(e){e&&(void 0!==(null===e||void 0===e?void 0:e.allowNotifications)&&(this.allowNotifications=e.allowNotifications),void 0!==(null===e||void 0===e?void 0:e.showPreviews)&&(this.showPreviews=e.showPreviews),void 0!==(null===e||void 0===e?void 0:e.notificationTitle)&&(this.notificationTitle=e.notificationTitle),void 0!==(null===e||void 0===e?void 0:e.notificationIcon)&&(this.notificationIcon=e.notificationIcon))}async notify(e){this.allowNotifications&&this.checkNotificationAbility()&&await this.requestNotificationPermission()&&await this.handleNotification(e)}checkNotificationAbility(){return"Notification"in window&&"denied"!==window.Notification.permission}requestNotificationPermission(){return new O.a((e,t)=>{var n;null!==(n=window)&&void 0!==n&&n.Notification||t(!1),"granted"===window.Notification.permission&&e(!0),window.Notification.requestPermission().then(t=>{"granted"===t&&e(!0)}).catch(()=>{t(!1)})})}async handleNotification(e){var t;if(!this._isMessageNeedNotification(e))return;const n=this._handleNotificationType(e);let o,a={badge:this.notificationIcon,icon:this.notificationIcon,body:"",requireInteraction:!1};switch(n){case"call":if(o=this._handleCallNotificationContent(e),null===(t=o)||void 0===t||!t.content)return;a.body=o.content,a.requireInteraction=!o.callEnd;break;case"chat":a.body=await this._handleChatNotificationContent(e),a.requireInteraction=!1;break}const i=new Notification(this.notificationTitle,a);i.onclick=()=>{var t;if(window.focus(),!e||null===e||void 0===e||!e.conversationID)return;const n=null===I||void 0===I||null===(t=I.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t?void 0:t.TUIConversation;(null===e||void 0===e?void 0:e.conversationType)!==k.a.TYPES.CONV_C2C&&(null===e||void 0===e?void 0:e.conversationType)!==k.a.TYPES.CONV_GROUP||null===n||void 0===n||n.getConversationProfile(null===e||void 0===e?void 0:e.conversationID).then(e=>{var t,o;(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.conversation)&&n.handleCurrentConversation(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.conversation)}),i.close()}}_isMessageNeedNotification(e){var t;if(!e||null===e||void 0===e||!e.ID||null===e||void 0===e||!e.type||null!==e&&void 0!==e&&e.isRevoked||null!==e&&void 0!==e&&e.isDeleted||y["v"]&&Object(y["v"])(e))return!1;if((null===e||void 0===e?void 0:e.type)===k.a.TYPES.MSG_GRP_TIP||(null===e||void 0===e?void 0:e.type)===k.a.TYPES.MSG_GRP_SYS_NOTICE)return!1;const n=null===I||void 0===I||null===(t=I.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t||null===(t=t.TUIConversation)||void 0===t||null===(t=t.currentStore)||void 0===t?void 0:t.currentConversationID;return!this.checkPageFocus()||(null===e||void 0===e?void 0:e.conversationID)!==n}_handleNotificationType(e){if(e.type===k.a.TYPES.MSG_CUSTOM){var t;const n=Object(y["a"])(null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.data);if(1===(null===n||void 0===n?void 0:n.businessID)||"av_call"===(null===n||void 0===n?void 0:n.businessID))return"call"}return"chat"}async _handleChatNotificationContent(e){var t;let n="";if(!e||null===e||void 0===e||!e.ID||null===e||void 0===e||!e.type)return n;switch(this.showPreviews){case!0:n=await this._handleChatNotificationContentTitle(e),n+=this._handleChatNotificationContentText(e);break;case!1:n="您有"+await(null===I||void 0===I||null===(t=I.TUICore)||void 0===t||null===(t=t.tim)||void 0===t?void 0:t.getTotalUnreadMessageCount())+"条新消息";break;default:break}return n}async _handleChatNotificationContentTitle(e){var t;let n="";switch(null===e||void 0===e?void 0:e.conversationType){case k.a.TYPES.CONV_C2C:n=((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.from))+": ";break;case k.a.TYPES.CONV_GROUP:n=(null===e||void 0===e?void 0:e.conversationID)+": ",await(null===I||void 0===I||null===(t=I.TUICore)||void 0===t||null===(t=t.tim)||void 0===t||null===(t=t.getConversationProfile(null===e||void 0===e?void 0:e.conversationID))||void 0===t?void 0:t.then(t=>{var o;n=((null===t||void 0===t||null===(o=t.data)||void 0===o||null===(o=o.conversation)||void 0===o||null===(o=o.groupProfile)||void 0===o?void 0:o.name)||(null===e||void 0===e?void 0:e.conversationID))+": "}).catch(()=>{n=(null===e||void 0===e?void 0:e.conversationID)+": "}));break;case k.a.TYPES.CONV_SYSTEM:n="系统消息: ";break;default:break}return n}_handleChatNotificationContentText(e){var t;let n="";switch(e.type){case k.a.TYPES.MSG_TEXT:n+=null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.text;break;case k.a.TYPES.MSG_CUSTOM:n+="[自定义消息]";break;case k.a.TYPES.MSG_IMAGE:n+="[图片]";break;case k.a.TYPES.MSG_AUDIO:n+="[语音]";break;case k.a.TYPES.MSG_VIDEO:n+="[视频]";break;case k.a.TYPES.MSG_FILE:n+="[文件]";break;case k.a.TYPES.MSG_FACE:n+="[表情]";break;case k.a.TYPES.MSG_MERGER:n+="[聊天记录]";break;case k.a.TYPES.MSG_LOCATION:n+="[位置]";break;default:break}return n}_handleCallNotificationContent(e){let t="",n=!1;try{if(e.type===k.a.TYPES.MSG_CUSTOM){var o;const a=Object(y["a"])(null===e||void 0===e||null===(o=e.payload)||void 0===o?void 0:o.data),i=Object(y["a"])(a.data);1===(null===a||void 0===a?void 0:a.businessID)&&(1===a.actionType&&(a.groupID&&a.timeout>0||!a.call_end&&0!==a.call_end&&!a.groupID&&(null===i||void 0===i||!i.data||"switchToAudio"!==(null===i||void 0===i?void 0:i.data.cmd)&&"switchToVideo"!==(null===i||void 0===i?void 0:i.data.cmd)))?(t=this.showPreviews?a.inviter+" 发起通话":"您有一个通话请求",n=!1):2===a.actionType&&(t=this.showPreviews?a.inviter+" 取消通话":"通话取消",n=!0))}}catch(a){console.warn(a)}return{content:t,callEnd:n}}checkPageFocus(){return document.hasFocus()}}Object(g["a"])(I,"TUICore",void 0),Object(g["a"])(I,"instance",void 0);var w=I},c548:function(e,t,n){"use strict";n("6314")},c7e2:function(e,t,n){"use strict";n.d(t,"b",(function(){return M}));var o=n("2fa7"),a=n("9ca6"),i=n("37a4"),s=n("292f"),r=n("8fe9"),l=n("bc82"),c=n("336d"),d=n("e32f"),u=n("9c10"),p=n("f017"),m=n("999c"),h=n("72af"),v=n("8893");const f={en:{"取消":"Cancel","发送":"Send","系统通知":"System notification","关闭":"Close","确定":"Save",TUIChat:i,TUIConversation:s,TUIGroup:r,TUIProfile:l,TUIContact:c,message:u,component:p,time:m,Evaluate:v,Words:h,TUISearch:d}};var g=f,b=n("45e3"),O=n("4189"),y=n("a46a"),j=n("5ce0"),k=n("d39e"),I=n("b0af"),w=n("6609"),E=n("92c8"),C=n("b15c"),T=n("524e"),S=n("403c");const _={zh_cn:{"取消":"取消","发送":"发送","系统通知":"系统通知","关闭":"关闭","确定":"确定",TUIChat:b,TUIConversation:O,TUIGroup:y,TUIProfile:j,TUIContact:k,message:w,component:E,time:C,Evaluate:S,Words:T,TUISearch:I}};var D=_;const N={...g,...D};var U=N;class B{constructor(e){Object(o["a"])(this,"messages",{en:{},zh_cn:{}}),Object(o["a"])(this,"i18n",void 0),this.messages=e}static getInstance(){return B.instance||(B.instance=new B(U)),B.instance}provideMessage(e){return this.messages.en={...this.messages.en,...e.en},this.messages.zh_cn={...this.messages.zh_cn,...e.zh_cn},this.messages}useI18n(){return Object(a["b"])()}static install(e){const t=B.getInstance(),n="zh";t.i18n=Object(a["a"])({legacy:!1,globalInjection:!0,global:!0,locale:"zh"===n?"zh_cn":n,fallbackLocale:"zh_cn",messages:t.messages}),e.use(t.i18n)}static plugin(e){e.config.i18n=B.getInstance()}}function M(){return B.getInstance().i18n.global.locale}Object(o["a"])(B,"instance",void 0);t["a"]=B},c959:function(e,t,n){"use strict";var o=n("ea1b"),a=n.n(o);t["a"]=a.a},c96d:function(e,t,n){},c985:function(e,t,n){},cb8a:function(e,t,n){"use strict";n("a53a")},cd49:function(e,t,n){"use strict";n.r(t),n.d(t,"sdkAppId",(function(){return R})),n.d(t,"urlF",(function(){return V})),n.d(t,"tokenF",(function(){return L}));n("14d9");var o=n("5b1a"),a=n.n(o),i=n("7a23");const s={class:"app"};function r(e,t){const n=Object(i["resolveComponent"])("router-view");return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",s,[Object(i["createVNode"])(n)])}n("ce48");var l=n("6b0d"),c=n.n(l);const d={},u=c()(d,[["render",r]]);var p=u,m=n("afbc"),h=n("0613"),v=n("3ef4"),f=n("c3a1");n("7437");const g=n("0149"),b=n("f712"),O={en:{"当前语言":"English","即时通信":"IM","即时通信IM":"IM","社交娱乐":"Entertaining & Socializing","腾讯云":"Tencent Cloud","使用指引":"User Guide",Login:g,Home:b}};var y=O;const j=n("e68c"),k=n("54ba"),I={zh_cn:{"当前语言":"简体中文","即时通信":"即时通信","即时通信IM":"即时通信IM","社交娱乐":"社交娱乐","腾讯云":"腾讯云","使用指引":"使用指引",Login:j,Home:k}};var w=I;const E={...y,...w};var C=E,T=n("fcd0"),S=n("2016"),_=n("c193"),D=n("bbb6"),N=n("1344"),U=n("48d5");const{userId:B,sdkAppId:M,userSig:x,urlF:V,tokenF:L}=U["a"];sessionStorage.setItem("tokenF",L+"");const R=1*M,P=T["b"].init({SDKAppID:R}),A={userID:B,userSig:x},G=e=>{P.login(e).then(t=>{const n={...e,expire:(new Date).getTime()+D["a"]};h["a"].commit("setUserInfo",n),window.parent.postMessage(a()({code:"closeLoading"}),"*"),m["a"].push({name:"Home"})}).catch(e=>{console.log("该关了"),window.parent.postMessage(a()({code:"closeLoading"}),"*"),Object(v["a"])({message:e,grouping:!0,type:"error"})})};G(A),P.config.i18n.provideMessage(C),P.use(T["a"]),P.use(S["a"]),P.use(_["c"]);const H=Object(i["createApp"])(p),z=Object(N["a"])(),F={};F.$on=z.on,F.$off=z.off,F.$emit=z.emit,H.config.globalProperties.$bus=F,H.use(h["a"]).use(m["a"]).use(P).use(F).use(f["a"]).mount("#app")},ce48:function(e,t,n){"use strict";n("a7be")},d0f1:function(e,t,n){"use strict";n("6d25")},d307:function(e,t,n){},d35b:function(e,t,n){e.exports=n.p+"img/mute.4ee858f2.svg"},d39e:function(e){e.exports=JSON.parse('{"群聊通知":"群聊通知","系统通知":"系统通知","我的群聊":"我的群聊","输入群ID,按回车搜索":"输入群ID,按回车搜索","群名称":"群名称","群ID":"群ID","加入群聊":"加入群聊","解散群聊":"解散群聊","退出群聊":"退出群聊","进入群聊":"进入群聊","群类型":"群类型","请填写验证信息":"请填写验证信息","申请加入":"申请加入","已申请":"已申请","接受":"接受","拒绝":"拒绝","已处理":"已处理","添加群聊":"添加群聊","已加入":"已加入","该群组不存在":"该群组不存在","加群":"加群","我的好友":"我的好友","发送消息":"发送消息","个性签名":"个性签名"}')},d45a:function(e,t,n){"use strict";n("53f8")},d4db:function(e,t,n){"use strict";n("1294")},dbc1:function(e,t,n){},dc3f:function(e,t,n){"use strict";n("031b")},dce0:function(e,t,n){"use strict";n("a9cb")},dce1:function(e,t,n){},dd44:function(e,t,n){e.exports=n.p+"img/default_avatar.b5538259.png"},e157:function(e,t,n){"use strict";n("aee3")},e311:function(e,t,n){"use strict";(function(e){var o,a,i=n("e946"),s=n.n(i),r=n("52da"),l=n.n(r),c=n("65b8"),d=n.n(c),u=n("05f2"),p=n.n(u),m=n("9474"),h=n.n(m),v=n("b0bc"),f=n.n(v),g=n("44a4"),b=n.n(g),O=n("2e10"),y=n.n(O),j=n("acf5"),k=n.n(j),I=n("a3e3"),w=n.n(I),E=n("3393"),C=n.n(E),T=n("2b0b"),S=n.n(T),_=n("cca4"),D=n.n(_),N=n("fa81"),U=n.n(N),B=n("2b58"),M=n.n(B),x=n("5b1a"),V=n.n(x),L=n("4573"),R=n.n(L),P=n("ec69"),A=n.n(P),G=n("14b1"),H=n.n(G),z=n("298b"),F=n.n(z),$=n("7c78"),Y=n.n($),K=n("2d80"),W=n.n(K),q=n("78b2"),Z=n.n(q),J=n("b6ce"),Q=n.n(J),X=n("f72b"),ee=n.n(X),te=n("3002"),ne=n.n(te),oe=(n("d9e2"),n("14d9"),n("2c66"),n("249d"),n("40e9"),n("e9f5"),n("db9ba"),n("5377"),n("907a"),n("986a"),n("1d02"),n("3c5d"),n("6ce5"),n("2834"),n("4ea1"),n("c73d"),"undefined"!=typeof e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),ae=[],ie=[],se="undefined"!=typeof Uint8Array?Uint8Array:Array,re=!1;function le(){re=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)ae[t]=e[t],ie[e.charCodeAt(t)]=t;ie["-".charCodeAt(0)]=62,ie["_".charCodeAt(0)]=63}function ce(e,t,n){for(var o,a,i=[],s=t;s<n;s+=3)o=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(ae[(a=o)>>18&63]+ae[a>>12&63]+ae[a>>6&63]+ae[63&a]);return i.join("")}function de(e){var t;re||le();for(var n=e.length,o=n%3,a="",i=[],s=0,r=n-o;s<r;s+=16383)i.push(ce(e,s,s+16383>r?r:s+16383));return 1===o?(t=e[n-1],a+=ae[t>>2],a+=ae[t<<4&63],a+="=="):2===o&&(t=(e[n-2]<<8)+e[n-1],a+=ae[t>>10],a+=ae[t>>4&63],a+=ae[t<<2&63],a+="="),i.push(a),i.join("")}function ue(e,t,n,o,a){var i,s,r=8*a-o-1,l=(1<<r)-1,c=l>>1,d=-7,u=n?a-1:0,p=n?-1:1,m=e[t+u];for(u+=p,i=m&(1<<-d)-1,m>>=-d,d+=r;d>0;i=256*i+e[t+u],u+=p,d-=8);for(s=i&(1<<-d)-1,i>>=-d,d+=o;d>0;s=256*s+e[t+u],u+=p,d-=8);if(0===i)i=1-c;else{if(i===l)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,o),i-=c}return(m?-1:1)*s*Math.pow(2,i-o)}function pe(e,t,n,o,a,i){var s,r,l,c=8*i-a-1,d=(1<<c)-1,u=d>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,m=o?0:i-1,h=o?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(r=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(s++,l/=2),s+u>=d?(r=0,s=d):s+u>=1?(r=(t*l-1)*Math.pow(2,a),s+=u):(r=t*Math.pow(2,u-1)*Math.pow(2,a),s=0));a>=8;e[n+m]=255&r,m+=h,r/=256,a-=8);for(s=s<<a|r,c+=a;c>0;e[n+m]=255&s,m+=h,s/=256,c-=8);e[n+m-h]|=128*v}var me={}.toString,he=s.a||function(e){return"[object Array]"==me.call(e)};function ve(){return ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fe(e,t){if(ve()<t)throw new RangeError("Invalid typed array length");return ge.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ge.prototype:(null===e&&(e=new ge(t)),e.length=t),e}function ge(e,t,n){if(!(ge.TYPED_ARRAY_SUPPORT||this instanceof ge))return new ge(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ye(this,e)}return be(this,e,t,n)}function be(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o),ge.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ge.prototype:e=je(e,t),e}(e,t,n,o):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!ge.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|we(t,n),a=(e=fe(e,o)).write(t,n);return a!==o&&(e=l()(e).call(e,0,a)),e}(e,t,n):function(e,t){if(Ie(t)){var n=0|ke(t.length);return 0===(e=fe(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?fe(e,0):je(e,t);if("Buffer"===t.type&&he(t.data))return je(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Oe(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ye(e,t){if(Oe(t),e=fe(e,t<0?0:0|ke(t)),!ge.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function je(e,t){var n=t.length<0?0:0|ke(t.length);e=fe(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function ke(e){if(e>=ve())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ve().toString(16)+" bytes");return 0|e}function Ie(e){return!(null==e||!e._isBuffer)}function we(e,t){if(Ie(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Je(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Qe(e).length;default:if(o)return Je(e).length;t=(""+t).toLowerCase(),o=!0}}function Ee(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ae(this,t,n);case"utf8":case"utf-8":return Ve(this,t,n);case"ascii":return Re(this,t,n);case"latin1":case"binary":return Pe(this,t,n);case"base64":return xe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function Ce(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function Te(e,t,n,o,a){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=ge.from(t,o)),Ie(t))return 0===t.length?-1:Se(e,t,n,o,a);if("number"==typeof t)return t&=255,ge.TYPED_ARRAY_SUPPORT&&"function"==typeof d()(Uint8Array.prototype)?a?d()(Uint8Array.prototype).call(e,t,n):p()(Uint8Array.prototype).call(e,t,n):Se(e,[t],n,o,a);throw new TypeError("val must be string, number or Buffer")}function Se(e,t,n,o,a){var i,s=1,r=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;s=2,r/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){var d=-1;for(i=n;i<r;i++)if(c(e,i)===c(t,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===l)return d*s}else-1!==d&&(i-=i-d),d=-1}else for(n+l>r&&(n=r-l),i=n;i>=0;i--){for(var u=!0,p=0;p<l;p++)if(c(e,i+p)!==c(t,p)){u=!1;break}if(u)return i}return-1}function _e(e,t,n,o){n=Number(n)||0;var a=e.length-n;o?(o=Number(o))>a&&(o=a):o=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var s=0;s<o;++s){var r=h()(t.substr(2*s,2),16);if(isNaN(r))return s;e[n+s]=r}return s}function De(e,t,n,o){return Xe(Je(t,e.length-n),e,n,o)}function Ne(e,t,n,o){return Xe(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function Ue(e,t,n,o){return Ne(e,t,n,o)}function Be(e,t,n,o){return Xe(Qe(t),e,n,o)}function Me(e,t,n,o){return Xe(function(e,t){for(var n,o,a,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),o=n>>8,a=n%256,i.push(a),i.push(o);return i}(t,e.length-n),e,n,o)}function xe(e,t,n){return 0===t&&n===e.length?de(e):de(l()(e).call(e,t,n))}function Ve(e,t,n){n=Math.min(e.length,n);for(var o=[],a=t;a<n;){var i,s,r,c,d=e[a],u=null,p=d>239?4:d>223?3:d>191?2:1;if(a+p<=n)switch(p){case 1:d<128&&(u=d);break;case 2:128==(192&(i=e[a+1]))&&(c=(31&d)<<6|63&i)>127&&(u=c);break;case 3:i=e[a+1],s=e[a+2],128==(192&i)&&128==(192&s)&&(c=(15&d)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[a+1],s=e[a+2],r=e[a+3],128==(192&i)&&128==(192&s)&&128==(192&r)&&(c=(15&d)<<18|(63&i)<<12|(63&s)<<6|63&r)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),a+=p}return function(e){var t=e.length;if(t<=Le)return String.fromCharCode.apply(String,e);for(var n="",o=0;o<t;)n+=String.fromCharCode.apply(String,l()(e).call(e,o,o+=Le));return n}(o)}ge.TYPED_ARRAY_SUPPORT=void 0===oe.TYPED_ARRAY_SUPPORT||oe.TYPED_ARRAY_SUPPORT,ge.poolSize=8192,ge._augment=function(e){return e.__proto__=ge.prototype,e},ge.from=function(e,t,n){return be(null,e,t,n)},ge.TYPED_ARRAY_SUPPORT&&(ge.prototype.__proto__=Uint8Array.prototype,ge.__proto__=Uint8Array),ge.alloc=function(e,t,n){return function(e,t,n,o,a,i){return Oe(t),t<=0?fe(e,t):void 0!==n?"string"==typeof o?f()(a=fe(e,t)).call(a,n,o):f()(i=fe(e,t)).call(i,n):fe(e,t)}(null,e,t,n)},ge.allocUnsafe=function(e){return ye(null,e)},ge.allocUnsafeSlow=function(e){return ye(null,e)},ge.isBuffer=et,ge.compare=function(e,t){if(!Ie(e)||!Ie(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,a=0,i=Math.min(n,o);a<i;++a)if(e[a]!==t[a]){n=e[a],o=t[a];break}return n<o?-1:o<n?1:0},ge.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ge.concat=function(e,t){if(!he(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ge.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=ge.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var i=e[n];if(!Ie(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(o,a),a+=i.length}return o},ge.byteLength=we,ge.prototype._isBuffer=!0,ge.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ce(this,t,t+1);return this},ge.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ce(this,t,t+3),Ce(this,t+1,t+2);return this},ge.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ce(this,t,t+7),Ce(this,t+1,t+6),Ce(this,t+2,t+5),Ce(this,t+3,t+4);return this},ge.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Ve(this,0,e):Ee.apply(this,arguments)},ge.prototype.equals=function(e){if(!Ie(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ge.compare(this,e)},ge.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ge.prototype.compare=function(e,t,n,o,a){if(!Ie(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===a&&(a=this.length),t<0||n>e.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&t>=n)return 0;if(o>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(o>>>=0),s=(n>>>=0)-(t>>>=0),r=Math.min(i,s),c=l()(p=this).call(p,o,a),d=l()(e).call(e,t,n),u=0;u<r;++u){var p;if(c[u]!==d[u]){i=c[u],s=d[u];break}}return i<s?-1:s<i?1:0},ge.prototype.includes=function(e,t,n){var o;return-1!==d()(o=this).call(o,e,t,n)},ge.prototype.indexOf=function(e,t,n){return Te(this,e,t,n,!0)},ge.prototype.lastIndexOf=function(e,t,n){return Te(this,e,t,n,!1)},ge.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return _e(this,e,t,n);case"utf8":case"utf-8":return De(this,e,t,n);case"ascii":return Ne(this,e,t,n);case"latin1":case"binary":return Ue(this,e,t,n);case"base64":return Be(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},ge.prototype.toJSON=function(){return{type:"Buffer",data:l()(Array.prototype).call(this._arr||this,0)}};var Le=4096;function Re(e,t,n){var o="";n=Math.min(e.length,n);for(var a=t;a<n;++a)o+=String.fromCharCode(127&e[a]);return o}function Pe(e,t,n){var o="";n=Math.min(e.length,n);for(var a=t;a<n;++a)o+=String.fromCharCode(e[a]);return o}function Ae(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var a="",i=t;i<n;++i)a+=Ze(e[i]);return a}function Ge(e,t,n){for(var o=l()(e).call(e,t,n),a="",i=0;i<o.length;i+=2)a+=String.fromCharCode(o[i]+256*o[i+1]);return a}function He(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function ze(e,t,n,o,a,i){if(!Ie(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function Fe(e,t,n,o){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a<i;++a)e[n+a]=(t&255<<8*(o?a:1-a))>>>8*(o?a:1-a)}function $e(e,t,n,o){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a<i;++a)e[n+a]=t>>>8*(o?a:3-a)&255}function Ye(e,t,n,o,a,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ke(e,t,n,o,a){return a||Ye(e,0,n,4),pe(e,t,n,o,23,4),n+4}function We(e,t,n,o,a){return a||Ye(e,0,n,8),pe(e,t,n,o,52,8),n+8}ge.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),ge.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ge.prototype;else{var a=t-e;n=new ge(a,void 0);for(var i=0;i<a;++i)n[i]=this[i+e]}return n},ge.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||He(e,t,this.length);for(var o=this[e],a=1,i=0;++i<t&&(a*=256);)o+=this[e+i]*a;return o},ge.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||He(e,t,this.length);for(var o=this[e+--t],a=1;t>0&&(a*=256);)o+=this[e+--t]*a;return o},ge.prototype.readUInt8=function(e,t){return t||He(e,1,this.length),this[e]},ge.prototype.readUInt16LE=function(e,t){return t||He(e,2,this.length),this[e]|this[e+1]<<8},ge.prototype.readUInt16BE=function(e,t){return t||He(e,2,this.length),this[e]<<8|this[e+1]},ge.prototype.readUInt32LE=function(e,t){return t||He(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ge.prototype.readUInt32BE=function(e,t){return t||He(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ge.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||He(e,t,this.length);for(var o=this[e],a=1,i=0;++i<t&&(a*=256);)o+=this[e+i]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},ge.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||He(e,t,this.length);for(var o=t,a=1,i=this[e+--o];o>0&&(a*=256);)i+=this[e+--o]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},ge.prototype.readInt8=function(e,t){return t||He(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ge.prototype.readInt16LE=function(e,t){t||He(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ge.prototype.readInt16BE=function(e,t){t||He(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ge.prototype.readInt32LE=function(e,t){return t||He(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ge.prototype.readInt32BE=function(e,t){return t||He(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ge.prototype.readFloatLE=function(e,t){return t||He(e,4,this.length),ue(this,e,!0,23,4)},ge.prototype.readFloatBE=function(e,t){return t||He(e,4,this.length),ue(this,e,!1,23,4)},ge.prototype.readDoubleLE=function(e,t){return t||He(e,8,this.length),ue(this,e,!0,52,8)},ge.prototype.readDoubleBE=function(e,t){return t||He(e,8,this.length),ue(this,e,!1,52,8)},ge.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||ze(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},ge.prototype.writeUIntBE=function(e,t,n,o){e=+e,t|=0,n|=0,o||ze(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},ge.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,1,255,0),ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ge.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,2,65535,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Fe(this,e,t,!0),t+2},ge.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,2,65535,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Fe(this,e,t,!1),t+2},ge.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,4,4294967295,0),ge.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$e(this,e,t,!0),t+4},ge.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,4,4294967295,0),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$e(this,e,t,!1),t+4},ge.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var a=Math.pow(2,8*n-1);ze(this,e,t,n,a-1,-a)}var i=0,s=1,r=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===r&&0!==this[t+i-1]&&(r=1),this[t+i]=(e/s>>0)-r&255;return t+n},ge.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var a=Math.pow(2,8*n-1);ze(this,e,t,n,a-1,-a)}var i=n-1,s=1,r=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===r&&0!==this[t+i+1]&&(r=1),this[t+i]=(e/s>>0)-r&255;return t+n},ge.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,1,127,-128),ge.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ge.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,2,32767,-32768),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Fe(this,e,t,!0),t+2},ge.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,2,32767,-32768),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Fe(this,e,t,!1),t+2},ge.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,4,2147483647,-2147483648),ge.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$e(this,e,t,!0),t+4},ge.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ze(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ge.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$e(this,e,t,!1),t+4},ge.prototype.writeFloatLE=function(e,t,n){return Ke(this,e,t,!0,n)},ge.prototype.writeFloatBE=function(e,t,n){return Ke(this,e,t,!1,n)},ge.prototype.writeDoubleLE=function(e,t,n){return We(this,e,t,!0,n)},ge.prototype.writeDoubleBE=function(e,t,n){return We(this,e,t,!1,n)},ge.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var a,i=o-n;if(this===e&&n<t&&t<o)for(a=i-1;a>=0;--a)e[a+t]=this[a+n];else if(i<1e3||!ge.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},ge.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!ge.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=Ie(e)?e:Je(new ge(e,o).toString()),r=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%r]}return this};var qe=/[^+\/0-9A-Za-z-_]/g;function Ze(e){return e<16?"0"+e.toString(16):e.toString(16)}function Je(e,t){var n;t=t||1/0;for(var o=e.length,a=null,i=[],s=0;s<o;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===o){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Qe(e){return function(e){var t,n,o,a,i,s;re||le();var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[r-2]?2:"="===e[r-1]?1:0,s=new se(3*r/4-i),o=i>0?r-4:r;var l=0;for(t=0,n=0;t<o;t+=4,n+=3)a=ie[e.charCodeAt(t)]<<18|ie[e.charCodeAt(t+1)]<<12|ie[e.charCodeAt(t+2)]<<6|ie[e.charCodeAt(t+3)],s[l++]=a>>16&255,s[l++]=a>>8&255,s[l++]=255&a;return 2===i?(a=ie[e.charCodeAt(t)]<<2|ie[e.charCodeAt(t+1)]>>4,s[l++]=255&a):1===i&&(a=ie[e.charCodeAt(t)]<<10|ie[e.charCodeAt(t+1)]<<4|ie[e.charCodeAt(t+2)]>>2,s[l++]=a>>8&255,s[l++]=255&a),s}(function(e){if((e=function(e){return b()(e)?b()(e).call(e):e.replace(/^\s+|\s+$/g,"")}(e).replace(qe,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Xe(e,t,n,o){for(var a=0;a<o&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function et(e){return null!=e&&(!!e._isBuffer||tt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof l()(e)&&tt(l()(e).call(e,0,0))}(e))}function tt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function nt(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof y.a?y.a:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var ot=nt((function(e,t){var n;e.exports=(n=n||function(e,t){var n=k.a||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},i=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes,a=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<a;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[o+i>>>2]|=s<<24-(o+i)%4*8}else for(i=0;i<a;i+=4)t[o+i>>>2]=n[i>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e,t=i.clone.call(this);return t.words=l()(e=this.words).call(e,0),t},random:function(t){for(var n,o=[],a=function(t){t=t;var n=987654321,o=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&o)<<16)+(t=18e3*(65535&t)+(t>>16)&o)&o;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var r=a(4294967296*(n||e.random()));n=987654071*r(),o.push(4294967296*r()|0)}return new s.init(o,t)}}),r=o.enc={},c=r.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],a=0;a<n;a++){var i=t[a>>>2]>>>24-a%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o+=2)n[o>>>3]|=h()(e.substr(o,2),16)<<24-o%8*4;return new s.init(n,t/2)}},d=r.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],a=0;a<n;a++){var i=t[a>>>2]>>>24-a%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new s.init(n,t)}},u=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){var t;"string"==typeof e&&(e=u.parse(e)),w()(t=this._data).call(t,e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,o=n.words,a=n.sigBytes,i=this.blockSize,r=4*i,l=a/r,c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*i,d=e.min(4*c,a);if(c){for(var u=0;u<c;u+=i)this._doProcessBlock(o,u);var p=C()(o).call(o,0,c);n.sigBytes-=d}return new s.init(p,d)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(a.Hasher=p.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),o.algo={});return o}(Math),n)})),at=(nt((function(e,t){var n,o,a,i,s,r;e.exports=(a=(o=n=ot).lib,i=a.Base,s=a.WordArray,(r=o.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),r.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],o=0;o<t;o++){var a=e[o];n.push(a.high),n.push(a.low)}return s.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=l()(a=this.words).call(a,0),n=t.length,o=0;o<n;o++){var a;t[o]=t[o].clone()}return e}}),n)})),nt((function(e,t){var n;e.exports=(n=ot,function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,o=[],a=0;a<n;a++)o[a>>>2]|=e[a]<<24-a%4*8;t.call(this,o,n)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.WordArray,o=e.enc;function a(e){return e<<8&4278255360|e>>>8&16711935}o.Utf16=o.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],a=0;a<n;a+=2){var i=t[a>>>2]>>>16-a%4*8&65535;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,o=[],a=0;a<n;a++)o[a>>>1]|=e.charCodeAt(a)<<16-a%2*16;return t.create(o,2*n)}},o.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i<n;i+=2){var s=a(t[i>>>2]>>>16-i%4*8&65535);o.push(String.fromCharCode(s))}return o.join("")},parse:function(e){for(var n=e.length,o=[],i=0;i<n;i++)o[i>>>1]|=a(e.charCodeAt(i)<<16-i%2*16);return t.create(o,2*n)}}}(),n.enc.Utf16)})),nt((function(e,t){var n,o,a;e.exports=(a=(o=n=ot).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,o=this._map;e.clamp();for(var a=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,r=0;r<4&&i+.75*r<n;r++)a.push(o.charAt(s>>>6*(3-r)&63));var l=o.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var r=d()(e).call(e,s);-1!==r&&(t=r)}return function(e,t,n){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var r=n[e.charCodeAt(s-1)]<<s%4*2,l=n[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=(r|l)<<24-i%4*8,i++}return a.create(o,i)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),nt((function(e,t){var n;e.exports=(n=ot,function(e){var t=n,o=t.lib,a=o.WordArray,i=o.Hasher,s=t.algo,r=[];!function(){for(var t=0;t<64;t++)r[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var o=t+n,a=e[o];e[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i=this._hash.words,s=e[t+0],l=e[t+1],m=e[t+2],h=e[t+3],v=e[t+4],f=e[t+5],g=e[t+6],b=e[t+7],O=e[t+8],y=e[t+9],j=e[t+10],k=e[t+11],I=e[t+12],w=e[t+13],E=e[t+14],C=e[t+15],T=i[0],S=i[1],_=i[2],D=i[3];T=c(T,S,_,D,s,7,r[0]),D=c(D,T,S,_,l,12,r[1]),_=c(_,D,T,S,m,17,r[2]),S=c(S,_,D,T,h,22,r[3]),T=c(T,S,_,D,v,7,r[4]),D=c(D,T,S,_,f,12,r[5]),_=c(_,D,T,S,g,17,r[6]),S=c(S,_,D,T,b,22,r[7]),T=c(T,S,_,D,O,7,r[8]),D=c(D,T,S,_,y,12,r[9]),_=c(_,D,T,S,j,17,r[10]),S=c(S,_,D,T,k,22,r[11]),T=c(T,S,_,D,I,7,r[12]),D=c(D,T,S,_,w,12,r[13]),_=c(_,D,T,S,E,17,r[14]),T=d(T,S=c(S,_,D,T,C,22,r[15]),_,D,l,5,r[16]),D=d(D,T,S,_,g,9,r[17]),_=d(_,D,T,S,k,14,r[18]),S=d(S,_,D,T,s,20,r[19]),T=d(T,S,_,D,f,5,r[20]),D=d(D,T,S,_,j,9,r[21]),_=d(_,D,T,S,C,14,r[22]),S=d(S,_,D,T,v,20,r[23]),T=d(T,S,_,D,y,5,r[24]),D=d(D,T,S,_,E,9,r[25]),_=d(_,D,T,S,h,14,r[26]),S=d(S,_,D,T,O,20,r[27]),T=d(T,S,_,D,w,5,r[28]),D=d(D,T,S,_,m,9,r[29]),_=d(_,D,T,S,b,14,r[30]),T=u(T,S=d(S,_,D,T,I,20,r[31]),_,D,f,4,r[32]),D=u(D,T,S,_,O,11,r[33]),_=u(_,D,T,S,k,16,r[34]),S=u(S,_,D,T,E,23,r[35]),T=u(T,S,_,D,l,4,r[36]),D=u(D,T,S,_,v,11,r[37]),_=u(_,D,T,S,b,16,r[38]),S=u(S,_,D,T,j,23,r[39]),T=u(T,S,_,D,w,4,r[40]),D=u(D,T,S,_,s,11,r[41]),_=u(_,D,T,S,h,16,r[42]),S=u(S,_,D,T,g,23,r[43]),T=u(T,S,_,D,y,4,r[44]),D=u(D,T,S,_,I,11,r[45]),_=u(_,D,T,S,C,16,r[46]),T=p(T,S=u(S,_,D,T,m,23,r[47]),_,D,s,6,r[48]),D=p(D,T,S,_,b,10,r[49]),_=p(_,D,T,S,E,15,r[50]),S=p(S,_,D,T,f,21,r[51]),T=p(T,S,_,D,I,6,r[52]),D=p(D,T,S,_,h,10,r[53]),_=p(_,D,T,S,j,15,r[54]),S=p(S,_,D,T,l,21,r[55]),T=p(T,S,_,D,O,6,r[56]),D=p(D,T,S,_,C,10,r[57]),_=p(_,D,T,S,g,15,r[58]),S=p(S,_,D,T,w,21,r[59]),T=p(T,S,_,D,v,6,r[60]),D=p(D,T,S,_,k,10,r[61]),_=p(_,D,T,S,m,15,r[62]),S=p(S,_,D,T,y,21,r[63]),i[0]=i[0]+T|0,i[1]=i[1]+S|0,i[2]=i[2]+_|0,i[3]=i[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var i=e.floor(o/4294967296),s=o;n[15+(a+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var r=this._hash,l=r.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return r},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,o,a,i,s){var r=e+(t&n|~t&o)+a+s;return(r<<i|r>>>32-i)+t}function d(e,t,n,o,a,i,s){var r=e+(t&o|n&~o)+a+s;return(r<<i|r>>>32-i)+t}function u(e,t,n,o,a,i,s){var r=e+(t^n^o)+a+s;return(r<<i|r>>>32-i)+t}function p(e,t,n,o,a,i,s){var r=e+(n^(t|~o))+a+s;return(r<<i|r>>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),n.MD5)})),nt((function(e,t){var n,o,a,i,s,r,l,c;e.exports=(a=(o=n=ot).lib,i=a.WordArray,s=a.Hasher,r=o.algo,l=[],c=r.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],a=n[1],i=n[2],s=n[3],r=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(o<<5|o>>>27)+r+l[c];u+=c<20?1518500249+(a&i|~a&s):c<40?1859775393+(a^i^s):c<60?(a&i|a&s|i&s)-1894007588:(a^i^s)-899497514,r=s,s=i,i=a<<30|a>>>2,a=o,o=u}n[0]=n[0]+o|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+r|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(o+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),o.SHA1=s._createHelper(c),o.HmacSHA1=s._createHmacHelper(c),n.SHA1)})),nt((function(e,t){var n;e.exports=(n=ot,function(e){var t=n,o=t.lib,a=o.WordArray,i=o.Hasher,s=t.algo,r=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),o=2;o<=n;o++)if(!(t%o))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var o=2,a=0;a<64;)t(o)&&(a<8&&(r[a]=n(e.pow(o,.5))),c[a]=n(e.pow(o,1/3)),a++),o++}();var d=[],u=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(l()(r).call(r,0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],a=n[1],i=n[2],s=n[3],r=n[4],l=n[5],u=n[6],p=n[7],m=0;m<64;m++){if(m<16)d[m]=0|e[t+m];else{var h=d[m-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=d[m-2],g=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;d[m]=v+d[m-7]+g+d[m-16]}var b=o&a^o&i^a&i,O=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),y=p+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&l^~r&u)+c[m]+d[m];p=u,u=l,l=r,r=s+y|0,s=i,i=a,a=o,o=y+(O+b)|0}n[0]=n[0]+o|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+r|0,n[5]=n[5]+l|0,n[6]=n[6]+u|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(o/4294967296),n[15+(a+64>>>9<<4)]=o,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(u),t.HmacSHA256=i._createHmacHelper(u)}(Math),n.SHA256)})),nt((function(e,t){var n,o,a,i,s,r;e.exports=(a=(o=n=ot).lib.WordArray,i=o.algo,s=i.SHA256,r=i.SHA224=s.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),o.SHA224=s._createHelper(r),o.HmacSHA224=s._createHmacHelper(r),n.SHA224)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.Hasher,o=e.x64,a=o.Word,i=o.WordArray,s=e.algo;function r(){return a.create.apply(a,arguments)}var l=[r(1116352408,3609767458),r(1899447441,602891725),r(3049323471,3964484399),r(3921009573,2173295548),r(961987163,4081628472),r(1508970993,3053834265),r(2453635748,2937671579),r(2870763221,3664609560),r(3624381080,2734883394),r(310598401,1164996542),r(607225278,1323610764),r(1426881987,3590304994),r(1925078388,4068182383),r(2162078206,991336113),r(2614888103,633803317),r(3248222580,3479774868),r(3835390401,2666613458),r(4022224774,944711139),r(264347078,2341262773),r(604807628,2007800933),r(770255983,1495990901),r(1249150122,1856431235),r(1555081692,3175218132),r(1996064986,2198950837),r(2554220882,3999719339),r(2821834349,766784016),r(2952996808,2566594879),r(3210313671,3203337956),r(3336571891,1034457026),r(3584528711,2466948901),r(113926993,3758326383),r(338241895,168717936),r(666307205,1188179964),r(773529912,1546045734),r(1294757372,1522805485),r(1396182291,2643833823),r(1695183700,2343527390),r(1986661051,1014477480),r(2177026350,1206759142),r(2456956037,344077627),r(2730485921,1290863460),r(2820302411,3158454273),r(3259730800,3505952657),r(3345764771,106217008),r(3516065817,3606008344),r(3600352804,1432725776),r(4094571909,1467031594),r(275423344,851169720),r(430227734,3100823752),r(506948616,1363258195),r(659060556,3750685593),r(883997877,3785050280),r(958139571,3318307427),r(1322822218,3812723403),r(1537002063,2003034995),r(1747873779,3602036899),r(1955562222,1575990012),r(2024104815,1125592928),r(2227730452,2716904306),r(2361852424,442776044),r(2428436474,593698344),r(2756734187,3733110249),r(3204031479,2999351573),r(3329325298,3815920427),r(3391569614,3928383900),r(3515267271,566280711),r(3940187606,3454069534),r(4118630271,4000239992),r(116418474,1914138554),r(174292421,2731055270),r(289380356,3203993006),r(460393269,320620315),r(685471733,587496836),r(852142971,1086792851),r(1017036298,365543100),r(1126000580,2618297676),r(1288033470,3409855158),r(1501505948,4234509866),r(1607167915,987167468),r(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=r()}();var d=s.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],a=n[1],i=n[2],s=n[3],r=n[4],d=n[5],u=n[6],p=n[7],m=o.high,h=o.low,v=a.high,f=a.low,g=i.high,b=i.low,O=s.high,y=s.low,j=r.high,k=r.low,I=d.high,w=d.low,E=u.high,C=u.low,T=p.high,S=p.low,_=m,D=h,N=v,U=f,B=g,M=b,x=O,V=y,L=j,R=k,P=I,A=w,G=E,H=C,z=T,F=S,$=0;$<80;$++){var Y=c[$];if($<16)var K=Y.high=0|e[t+2*$],W=Y.low=0|e[t+2*$+1];else{var q=c[$-15],Z=q.high,J=q.low,Q=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,X=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=c[$-2],te=ee.high,ne=ee.low,oe=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[$-7],se=ie.high,re=ie.low,le=c[$-16],ce=le.high,de=le.low;K=(K=(K=Q+se+((W=X+re)>>>0<X>>>0?1:0))+oe+((W+=ae)>>>0<ae>>>0?1:0))+ce+((W+=de)>>>0<de>>>0?1:0),Y.high=K,Y.low=W}var ue,pe=L&P^~L&G,me=R&A^~R&H,he=_&N^_&B^N&B,ve=D&U^D&M^U&M,fe=(_>>>28|D<<4)^(_<<30|D>>>2)^(_<<25|D>>>7),ge=(D>>>28|_<<4)^(D<<30|_>>>2)^(D<<25|_>>>7),be=(L>>>14|R<<18)^(L>>>18|R<<14)^(L<<23|R>>>9),Oe=(R>>>14|L<<18)^(R>>>18|L<<14)^(R<<23|L>>>9),ye=l[$],je=ye.high,ke=ye.low,Ie=z+be+((ue=F+Oe)>>>0<F>>>0?1:0),we=ge+ve;z=G,F=H,G=P,H=A,P=L,A=R,L=x+(Ie=(Ie=(Ie=Ie+pe+((ue+=me)>>>0<me>>>0?1:0))+je+((ue+=ke)>>>0<ke>>>0?1:0))+K+((ue+=W)>>>0<W>>>0?1:0))+((R=V+ue|0)>>>0<V>>>0?1:0)|0,x=B,V=M,B=N,M=U,N=_,U=D,_=Ie+(fe+he+(we>>>0<ge>>>0?1:0))+((D=ue+we|0)>>>0<ue>>>0?1:0)|0}h=o.low=h+D,o.high=m+_+(h>>>0<D>>>0?1:0),f=a.low=f+U,a.high=v+N+(f>>>0<U>>>0?1:0),b=i.low=b+M,i.high=g+B+(b>>>0<M>>>0?1:0),y=s.low=y+V,s.high=O+x+(y>>>0<V>>>0?1:0),k=r.low=k+R,r.high=j+L+(k>>>0<R>>>0?1:0),w=d.low=w+A,d.high=I+P+(w>>>0<A>>>0?1:0),C=u.low=C+H,u.high=E+G+(C>>>0<H>>>0?1:0),S=p.low=S+F,p.high=T+z+(S>>>0<F>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[30+(o+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(o+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(d),e.HmacSHA512=t._createHmacHelper(d)}(),n.SHA512)})),nt((function(e,t){var n,o,a,i,s,r,l,c;e.exports=(a=(o=n=ot).x64,i=a.Word,s=a.WordArray,r=o.algo,l=r.SHA512,c=r.SHA384=l.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),o.SHA384=l._createHelper(c),o.HmacSHA384=l._createHmacHelper(c),n.SHA384)})),nt((function(e,t){var n;e.exports=(n=ot,function(e){var t=n,o=t.lib,a=o.WordArray,i=o.Hasher,s=t.x64.Word,r=t.algo,c=[],d=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var o=(2*e+3*t)%5;e=t%5,t=o}for(e=0;e<5;e++)for(t=0;t<5;t++)d[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,i=0;i<24;i++){for(var r=0,l=0,p=0;p<7;p++){if(1&a){var m=(1<<p)-1;m<32?l^=1<<m:r^=1<<m-32}128&a?a=a<<1^113:a<<=1}u[i]=s.create(r,l)}}();var p=[];!function(){for(var e=0;e<25;e++)p[e]=s.create()}();var m=r.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,o=this.blockSize/2,a=0;a<o;a++){var i=e[t+2*a],s=e[t+2*a+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(S=n[a]).high^=s,S.low^=i}for(var r=0;r<24;r++){for(var l=0;l<5;l++){for(var m=0,h=0,v=0;v<5;v++)m^=(S=n[l+5*v]).high,h^=S.low;var f=p[l];f.high=m,f.low=h}for(l=0;l<5;l++){var g=p[(l+4)%5],b=p[(l+1)%5],O=b.high,y=b.low;for(m=g.high^(O<<1|y>>>31),h=g.low^(y<<1|O>>>31),v=0;v<5;v++)(S=n[l+5*v]).high^=m,S.low^=h}for(var j=1;j<25;j++){var k=(S=n[j]).high,I=S.low,w=c[j];w<32?(m=k<<w|I>>>32-w,h=I<<w|k>>>32-w):(m=I<<w-32|k>>>64-w,h=k<<w-32|I>>>64-w);var E=p[d[j]];E.high=m,E.low=h}var C=p[0],T=n[0];for(C.high=T.high,C.low=T.low,l=0;l<5;l++)for(v=0;v<5;v++){var S=n[j=l+5*v],_=p[j],D=p[(l+1)%5+5*v],N=p[(l+2)%5+5*v];S.high=_.high^~D.high&N.high,S.low=_.low^~D.low&N.low}S=n[0];var U=u[r];S.high^=U.high,S.low^=U.low}},_doFinalize:function(){var t=this._data,n=t.words,o=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[o>>>5]|=1<<24-o%32,n[(e.ceil((o+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,r=this.cfg.outputLength/8,l=r/8,c=[],d=0;d<l;d++){var u=s[d],p=u.high,m=u.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),c.push(m),c.push(p)}return new a.init(c,r)},clone:function(){for(var e=i.clone.call(this),t=e._state=l()(o=this._state).call(o,0),n=0;n<25;n++){var o;t[n]=t[n].clone()}return e}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),n.SHA3)})),nt((function(e,t){var n;e.exports=(n=ot,function(e){var t=n,o=t.lib,a=o.WordArray,i=o.Hasher,s=t.algo,r=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=a.create([0,1518500249,1859775393,2400959708,2840853838]),p=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var o=t+n,a=e[o];e[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i,s,m,y,j,k,I,w,E,C,T,S=this._hash.words,_=u.words,D=p.words,N=r.words,U=l.words,B=c.words,M=d.words;for(k=i=S[0],I=s=S[1],w=m=S[2],E=y=S[3],C=j=S[4],n=0;n<80;n+=1)T=i+e[t+N[n]]|0,T+=n<16?h(s,m,y)+_[0]:n<32?v(s,m,y)+_[1]:n<48?f(s,m,y)+_[2]:n<64?g(s,m,y)+_[3]:b(s,m,y)+_[4],T=(T=O(T|=0,B[n]))+j|0,i=j,j=y,y=O(m,10),m=s,s=T,T=k+e[t+U[n]]|0,T+=n<16?b(I,w,E)+D[0]:n<32?g(I,w,E)+D[1]:n<48?f(I,w,E)+D[2]:n<64?v(I,w,E)+D[3]:h(I,w,E)+D[4],T=(T=O(T|=0,M[n]))+C|0,k=C,C=E,E=O(w,10),w=I,I=T;T=S[1]+m+E|0,S[1]=S[2]+y+C|0,S[2]=S[3]+j+k|0,S[3]=S[4]+i+I|0,S[4]=S[0]+s+w|0,S[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,i=a.words,s=0;s<5;s++){var r=i[s];i[s]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function v(e,t,n){return e&t|~e&n}function f(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function O(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(),n.RIPEMD160)})),nt((function(e,t){var n,o,a,i,s,r;e.exports=(o=(n=ot).lib,a=o.Base,i=n.enc,s=i.Utf8,r=n.algo,void(r.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),i=this._iKey=t.clone(),r=a.words,l=i.words,c=0;c<n;c++)r[c]^=1549556828,l[c]^=909522486;a.sigBytes=i.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t,n=this._hasher,o=n.finalize(e);n.reset();var a=n.finalize(w()(t=this._oKey.clone()).call(t,o));return a}})))})),nt((function(e,t){var n,o,a,i,s,r,l,c,d;e.exports=(a=(o=n=ot).lib,i=a.Base,s=a.WordArray,r=o.algo,l=r.SHA1,c=r.HMAC,d=r.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=c.create(n.hasher,e),a=s.create(),i=s.create([1]),r=a.words,l=i.words,d=n.keySize,u=n.iterations;r.length<d;){var p=o.update(t).finalize(i);o.reset();for(var m=p.words,h=m.length,v=p,f=1;f<u;f++){v=o.finalize(v),o.reset();for(var g=v.words,b=0;b<h;b++)m[b]^=g[b]}w()(a).call(a,p),l[0]++}return a.sigBytes=4*d,a}}),o.PBKDF2=function(e,t,n){return d.create(n).compute(e,t)},n.PBKDF2)})),nt((function(e,t){var n,o,a,i,s,r,l,c;e.exports=(a=(o=n=ot).lib,i=a.Base,s=a.WordArray,r=o.algo,l=r.MD5,c=r.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=n.hasher.create(),a=s.create(),i=a.words,r=n.keySize,l=n.iterations;i.length<r;){c&&o.update(c);var c=o.update(e).finalize(t);o.reset();for(var d=1;d<l;d++)c=o.finalize(c),o.reset();w()(a).call(a,c)}return a.sigBytes=4*r,a}}),o.EvpKDF=function(e,t,n){return c.create(n).compute(e,t)},n.EvpKDF)})),nt((function(e,t){var n,o,a,i,s,r,c,d,u,p,m,h,v,f,g,b,O,y,j,k,I,E,T,S;e.exports=void((n=ot).lib.Cipher||(a=n,i=a.lib,s=i.Base,r=i.WordArray,c=i.BufferedBlockAlgorithm,d=a.enc,d.Utf8,u=d.Base64,p=a.algo,m=p.EvpKDF,h=i.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?S:I}return function(t){return{encrypt:function(n,o,a){return e(o).encrypt(t,n,o,a)},decrypt:function(n,o,a){return e(o).decrypt(t,n,o,a)}}}}()}),i.StreamCipher=h.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),v=a.mode={},f=i.BlockCipherMode=s.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=v.CBC=function(){var e=f.extend();function t(e,t,n){var a=this._iv;if(a){var i=a;this._iv=o}else i=this._prevBlock;for(var s=0;s<n;s++)e[t+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(e,n){var o=this._cipher,a=o.blockSize;t.call(this,e,n,a),o.encryptBlock(e,n),this._prevBlock=l()(e).call(e,n,n+a)}}),e.Decryptor=e.extend({processBlock:function(e,n){var o=this._cipher,a=o.blockSize,i=l()(e).call(e,n,n+a);o.decryptBlock(e,n),t.call(this,e,n,a),this._prevBlock=i}}),e}(),b=a.pad={},O=b.Pkcs7={pad:function(e,t){for(var n=4*t,o=n-e.sigBytes%n,a=o<<24|o<<16|o<<8|o,i=[],s=0;s<o;s+=4)i.push(a);var l=r.create(i,o);w()(e).call(e,l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:O}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var o=n.createEncryptor;else{o=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==o?this._mode.init(this,t&&t.words):(this._mode=o.call(n,this,t&&t.words),this._mode.__creator=o)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),y=i.CipherParams=s.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),j=a.format={},k=j.OpenSSL={stringify:function(e){var t,n,o=e.ciphertext,a=e.salt;if(a)var i=w()(t=w()(n=r.create([1398893684,1701076831])).call(n,a)).call(t,o);else i=o;return i.toString(u)},parse:function(e){var t=u.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var o=r.create(l()(n).call(n,2,4));C()(n).call(n,0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:o})}},I=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(e,t,n,o){o=this.cfg.extend(o);var a=e.createEncryptor(n,o),i=a.finalize(t),s=a.cfg;return y.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:o.format})},decrypt:function(e,t,n,o){o=this.cfg.extend(o),t=this._parse(t,o.format);var a=e.createDecryptor(n,o).finalize(t.ciphertext);return a},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),E=a.kdf={},T=E.OpenSSL={execute:function(e,t,n,o){var a;o||(o=r.random(8));var i=m.create({keySize:t+n}).compute(e,o),s=r.create(l()(a=i.words).call(a,t),4*n);return i.sigBytes=4*t,y.create({key:i,iv:s,salt:o})}},S=i.PasswordBasedCipher=I.extend({cfg:I.cfg.extend({kdf:T}),encrypt:function(e,t,n,o){var a=(o=this.cfg.extend(o)).kdf.execute(n,e.keySize,e.ivSize);o.iv=a.iv;var i=I.encrypt.call(this,e,t,a.key,o);return i.mixIn(a),i},decrypt:function(e,t,n,o){o=this.cfg.extend(o),t=this._parse(t,o.format);var a=o.kdf.execute(n,e.keySize,e.ivSize,t.salt);o.iv=a.iv;var i=I.decrypt.call(this,e,t,a.key,o);return i}})))})),nt((function(e,t){var n;e.exports=((n=ot).mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,n,o){var a=this._iv;if(a){var i=l()(a).call(a,0);this._iv=void 0}else i=this._prevBlock;o.encryptBlock(i,0);for(var s=0;s<n;s++)e[t+s]^=i[s]}return e.Encryptor=e.extend({processBlock:function(e,n){var o=this._cipher,a=o.blockSize;t.call(this,e,n,a,o),this._prevBlock=l()(e).call(e,n,n+a)}}),e.Decryptor=e.extend({processBlock:function(e,n){var o=this._cipher,a=o.blockSize,i=l()(e).call(e,n,n+a);t.call(this,e,n,a,o),this._prevBlock=i}}),e}(),n.mode.CFB)})),nt((function(e,t){var n,o,a;e.exports=((n=ot).mode.CTR=(o=n.lib.BlockCipherMode.extend(),a=o.Encryptor=o.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=l()(a).call(a,0),this._iv=void 0);var s=l()(i).call(i,0);n.encryptBlock(s,0),i[o-1]=i[o-1]+1|0;for(var r=0;r<o;r++)e[t+r]^=s[r]}}),o.Decryptor=a,o),n.mode.CTR)})),nt((function(e,t){var n;e.exports=((n=ot).mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,o=255&e;255===t?(t=0,255===n?(n=0,255===o?o=0:++o):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=o}else e+=1<<24;return e}var o=e.Encryptor=e.extend({processBlock:function(e,n){var o=this._cipher,a=o.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=l()(i).call(i,0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(s);var r=l()(s).call(s,0);o.encryptBlock(r,0);for(var c=0;c<a;c++)e[n+c]^=r[c]}});return e.Decryptor=o,e}(),n.mode.CTRGladman)})),nt((function(e,t){var n,o,a;e.exports=((n=ot).mode.OFB=(o=n.lib.BlockCipherMode.extend(),a=o.Encryptor=o.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=l()(a).call(a,0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<o;s++)e[t+s]^=i[s]}}),o.Decryptor=a,o),n.mode.OFB)})),nt((function(e,t){var n,o;e.exports=((n=ot).mode.ECB=((o=n.lib.BlockCipherMode.extend()).Encryptor=o.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),o.Decryptor=o.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),o),n.mode.ECB)})),nt((function(e,t){var n;e.exports=((n=ot).pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,o=4*t,a=o-n%o,i=n+a-1;e.clamp(),e.words[i>>>2]|=a<<24-i%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)})),nt((function(e,t){var n;e.exports=((n=ot).pad.Iso10126={pad:function(e,t){var o,a=4*t,i=a-e.sigBytes%a;w()(o=w()(e).call(e,n.lib.WordArray.random(i-1))).call(o,n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)})),nt((function(e,t){var n;e.exports=((n=ot).pad.Iso97971={pad:function(e,t){w()(e).call(e,n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)})),nt((function(e,t){var n;e.exports=((n=ot).pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},n.pad.ZeroPadding)})),nt((function(e,t){var n;e.exports=((n=ot).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),nt((function(e,t){var n,o,a,i;e.exports=(a=(o=n=ot).lib.CipherParams,i=o.enc.Hex,o.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return a.create({ciphertext:t})}},n.format.Hex)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.BlockCipher,o=e.algo,a=[],i=[],s=[],r=[],l=[],c=[],d=[],u=[],p=[],m=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,o=0;for(t=0;t<256;t++){var h=o^o<<1^o<<2^o<<3^o<<4;h=h>>>8^255&h^99,a[n]=h,i[h]=n;var v=e[n],f=e[v],g=e[f],b=257*e[h]^16843008*h;s[n]=b<<24|b>>>8,r[n]=b<<16|b>>>16,l[n]=b<<8|b>>>24,c[n]=b,b=16843009*g^65537*f^257*v^16843008*n,d[h]=b<<24|b>>>8,u[h]=b<<16|b>>>16,p[h]=b<<8|b>>>24,m[h]=b,n?(n=v^e[e[e[g^v]]],o^=e[e[o]]):n=o=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],v=o.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<o;s++)if(s<n)i[s]=t[s];else{var r=i[s-1];s%n?n>6&&s%n==4&&(r=a[r>>>24]<<24|a[r>>>16&255]<<16|a[r>>>8&255]<<8|a[255&r]):(r=a[(r=r<<8|r>>>24)>>>24]<<24|a[r>>>16&255]<<16|a[r>>>8&255]<<8|a[255&r],r^=h[s/n|0]<<24),i[s]=i[s-n]^r}for(var l=this._invKeySchedule=[],c=0;c<o;c++)s=o-c,r=c%4?i[s]:i[s-4],l[c]=c<4||s<=4?r:d[a[r>>>24]]^u[a[r>>>16&255]]^p[a[r>>>8&255]]^m[a[255&r]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,r,l,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,u,p,m,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,o,a,i,s,r){for(var l=this._nRounds,c=e[t]^n[0],d=e[t+1]^n[1],u=e[t+2]^n[2],p=e[t+3]^n[3],m=4,h=1;h<l;h++){var v=o[c>>>24]^a[d>>>16&255]^i[u>>>8&255]^s[255&p]^n[m++],f=o[d>>>24]^a[u>>>16&255]^i[p>>>8&255]^s[255&c]^n[m++],g=o[u>>>24]^a[p>>>16&255]^i[c>>>8&255]^s[255&d]^n[m++],b=o[p>>>24]^a[c>>>16&255]^i[d>>>8&255]^s[255&u]^n[m++];c=v,d=f,u=g,p=b}v=(r[c>>>24]<<24|r[d>>>16&255]<<16|r[u>>>8&255]<<8|r[255&p])^n[m++],f=(r[d>>>24]<<24|r[u>>>16&255]<<16|r[p>>>8&255]<<8|r[255&c])^n[m++],g=(r[u>>>24]<<24|r[p>>>16&255]<<16|r[c>>>8&255]<<8|r[255&d])^n[m++],b=(r[p>>>24]<<24|r[c>>>16&255]<<16|r[d>>>8&255]<<8|r[255&u])^n[m++],e[t]=v,e[t+1]=f,e[t+2]=g,e[t+3]=b},keySize:8});e.AES=t._createHelper(v)}(),n.AES)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib,o=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],r=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=i.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var o=s[n]-1;t[n]=e[o>>>5]>>>31-o%32&1}for(var a=this._subKeys=[],i=0;i<16;i++){var l=a[i]=[],d=c[i];for(n=0;n<24;n++)l[n/6|0]|=t[(r[n]-1+d)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(r[n+24]-1+d)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=a[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],m.call(this,4,252645135),m.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),m.call(this,1,1431655765);for(var o=0;o<16;o++){for(var a=n[o],i=this._lBlock,s=this._rBlock,r=0,l=0;l<8;l++)r|=d[l][((s^a[l])&u[l])>>>0];this._lBlock=s,this._rBlock=i^r}var c=this._lBlock;this._lBlock=this._rBlock,this._rBlock=c,m.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function m(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=a._createHelper(p);var v=i.TripleDES=a.extend({_doReset:function(){var e=this._key.words;this._des1=p.createEncryptor(o.create(l()(e).call(e,0,2))),this._des2=p.createEncryptor(o.create(l()(e).call(e,2,4))),this._des3=p.createEncryptor(o.create(l()(e).call(e,4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(v)}(),n.TripleDES)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.StreamCipher,o=e.algo,a=o.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,o=this._S=[],a=0;a<256;a++)o[a]=a;a=0;for(var i=0;a<256;a++){var s=a%n,r=t[s>>>2]>>>24-s%4*8&255;i=(i+o[a]+r)%256;var l=o[a];o[a]=o[i],o[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,o=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,o|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,o}e.RC4=t._createHelper(a);var s=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(s)}(),n.RC4)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.StreamCipher,o=e.algo,a=[],i=[],s=[],r=o.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)a[n]^=o[n+4&7];if(t){var i=t.words,s=i[0],r=i[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;for(a[0]^=c,a[1]^=u,a[2]^=d,a[3]^=p,a[4]^=c,a[5]^=u,a[6]^=d,a[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[t+o]^=a[o]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var o=e[n]+t[n],a=65535&o,r=o>>>16,l=((a*a>>>17)+a*r>>>15)+r*r,c=((4294901760&o)*o|0)+((65535&o)*o|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=t._createHelper(r)}(),n.Rabbit)})),nt((function(e,t){var n;e.exports=(n=ot,function(){var e=n,t=e.lib.StreamCipher,o=e.algo,a=[],i=[],s=[],r=o.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)o[a]^=n[a+4&7];if(t){var i=t.words,s=i[0],r=i[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;for(o[0]^=c,o[1]^=u,o[2]^=d,o[3]^=p,o[4]^=c,o[5]^=u,o[6]^=d,o[7]^=p,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[t+o]^=a[o]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var o=e[n]+t[n],a=65535&o,r=o>>>16,l=((a*a>>>17)+a*r>>>15)+r*r,c=((4294901760&o)*o|0)+((65535&o)*o|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=t._createHelper(r)}(),n.RabbitLegacy)})),nt((function(e,t){e.exports=ot})));function it(){throw new Error("setTimeout has not been defined")}function st(){throw new Error("clearTimeout has not been defined")}var rt=it,lt=st;function ct(e){if(rt===S.a)return S()(e,0);if((rt===it||!rt)&&S.a)return rt=S.a,S()(e,0);try{return rt(e,0)}catch(ae){try{return rt.call(null,e,0)}catch(ae){return rt.call(this,e,0)}}}"function"==typeof oe.setTimeout&&(rt=S.a),"function"==typeof oe.clearTimeout&&(lt=clearTimeout);var dt,ut=[],pt=!1,mt=-1;function ht(){pt&&dt&&(pt=!1,dt.length?ut=w()(dt).call(dt,ut):mt=-1,ut.length&&vt())}function vt(){if(!pt){var e=ct(ht);pt=!0;for(var t=ut.length;t;){for(dt=ut,ut=[];++mt<t;)dt&&dt[mt].run();mt=-1,t=ut.length}dt=null,pt=!1,function(e){if(lt===clearTimeout)return clearTimeout(e);if((lt===st||!lt)&&clearTimeout)return lt=clearTimeout,clearTimeout(e);try{lt(e)}catch(t){try{return lt.call(null,e)}catch(t){return lt.call(this,e)}}}(e)}}function ft(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];ut.push(new gt(e,t)),1!==ut.length||pt||ct(vt)}function gt(e,t){this.fun=e,this.array=t}gt.prototype.run=function(){this.fun.apply(null,this.array)};var bt=oe.performance||{};function Ot(){}function yt(){yt.init.call(this)}function jt(e){return void 0===e._maxListeners?yt.defaultMaxListeners:e._maxListeners}function kt(e,t,n){if(t)e.call(n);else for(var o=e.length,a=Dt(e,o),i=0;i<o;++i)a[i].call(n)}function It(e,t,n,o){if(t)e.call(n,o);else for(var a=e.length,i=Dt(e,a),s=0;s<a;++s)i[s].call(n,o)}function wt(e,t,n,o,a){if(t)e.call(n,o,a);else for(var i=e.length,s=Dt(e,i),r=0;r<i;++r)s[r].call(n,o,a)}function Et(e,t,n,o,a,i){if(t)e.call(n,o,a,i);else for(var s=e.length,r=Dt(e,s),l=0;l<s;++l)r[l].call(n,o,a,i)}function Ct(e,t,n,o){if(t)e.apply(n,o);else for(var a=e.length,i=Dt(e,a),s=0;s<a;++s)i[s].apply(n,o)}function Tt(e,t,n,o){var a,i,s,r;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]):(i=e._events=new Ot,e._eventsCount=0),s){if("function"==typeof s?s=i[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),!s.warned&&(a=jt(e))&&a>0&&s.length>a){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,r=l,"function"==typeof console.warn?console.warn(r):console.log(r)}}else s=i[t]=n,++e._eventsCount;return e}function St(e,t,n){var o=!1;function a(){e.removeListener(t,a),o||(o=!0,n.apply(e,arguments))}return a.listener=n,a}function _t(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Dt(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}bt.now||bt.mozNow||bt.msNow||bt.oNow||bt.webkitNow,Ot.prototype=k()(null),yt.EventEmitter=yt,yt.usingDomains=!1,yt.prototype.domain=void 0,yt.prototype._events=void 0,yt.prototype._maxListeners=void 0,yt.defaultMaxListeners=10,yt.init=function(){this.domain=null,yt.usingDomains&&(void 0).active&&(void 0).Domain,this._events&&this._events!==D()(this)._events||(this._events=new Ot,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},yt.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},yt.prototype.getMaxListeners=function(){return jt(this)},yt.prototype.emit=function(e){var t,n,o,a,i,s,r,l="error"===e;if(s=this._events)l=l&&null==s.error;else if(!l)return!1;if(r=this.domain,l){if(t=arguments[1],!r){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=r,t.domainThrown=!1,r.emit("error",t),!1}if(!(n=s[e]))return!1;var d="function"==typeof n;switch(o=arguments.length){case 1:kt(n,d,this);break;case 2:It(n,d,this,arguments[1]);break;case 3:wt(n,d,this,arguments[1],arguments[2]);break;case 4:Et(n,d,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(o-1),i=1;i<o;i++)a[i-1]=arguments[i];Ct(n,d,this,a)}return!0},yt.prototype.addListener=function(e,t){return Tt(this,e,t,!1)},yt.prototype.on=yt.prototype.addListener,yt.prototype.prependListener=function(e,t){return Tt(this,e,t,!0)},yt.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,St(this,e,t)),this},yt.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,St(this,e,t)),this},yt.prototype.removeListener=function(e,t){var n,o,a,i,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(o=this._events))return this;if(!(n=o[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new Ot:(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){s=n[i].listener,a=i;break}if(a<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new Ot,this;delete o[e]}else!function(e,t){for(var n=t,o=n+1,a=e.length;o<a;n+=1,o+=1)e[n]=e[o];e.pop()}(n,a);o.removeListener&&this.emit("removeListener",e,s||t)}return this},yt.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new Ot,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new Ot:delete n[e]),this;if(0===arguments.length){for(var o,a=U()(n),i=0;i<a.length;++i)"removeListener"!==(o=a[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new Ot,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},yt.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},yt.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):_t.call(e,t)},yt.prototype.listenerCount=_t,yt.prototype.eventNames=function(){return this._eventsCount>0?M()(this._events):[]};var Nt="function"==typeof k.a?function(e,t){e.super_=t,e.prototype=k()(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},Ut=/%[sdj%]/g;function Bt(e){if(!$t(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Lt(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,a=o.length,i=String(e).replace(Ut,(function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return V()(o[n++])}catch(e){return"[Circular]"}default:return e}})),s=o[n];n<a;s=o[++n])Ft(s)||!Wt(s)?i+=" "+s:i+=" "+Lt(s);return i}function Mt(e,t){if(Yt(oe.process))return function(){return Mt(e,t).apply(this,arguments)};var n=!1;return function(){return n||(console.error(t),n=!0),e.apply(this,arguments)}}var xt,Vt={};function Lt(e,t){var n={seen:[],stylize:Pt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),zt(t)?n.showHidden=t:t&&function(e,t){if(!t||!Wt(t))return e;for(var n=U()(t),o=n.length;o--;)e[n[o]]=t[n[o]]}(n,t),Yt(n.showHidden)&&(n.showHidden=!1),Yt(n.depth)&&(n.depth=2),Yt(n.colors)&&(n.colors=!1),Yt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Rt),At(n,e,n.depth)}function Rt(e,t){var n=Lt.styles[t];return n?"["+Lt.colors[n][0]+"m"+e+"["+Lt.colors[n][1]+"m":e}function Pt(e,t){return e}function At(e,t,n){if(e.customInspect&&t&&Jt(t.inspect)&&t.inspect!==Lt&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(n,e);return $t(o)||(o=At(e,o,n)),o}var a=function(e,t){if(Yt(t))return e.stylize("undefined","undefined");if($t(t)){var n="'"+V()(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return o=t,"number"==typeof o?e.stylize(""+t,"number"):zt(t)?e.stylize(""+t,"boolean"):Ft(t)?e.stylize("null","null"):void 0;var o}(e,t);if(a)return a;var i=U()(t),r=function(e){var t={};return R()(e).call(e,(function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=A()(t)),Zt(t)&&(d()(i).call(i,"message")>=0||d()(i).call(i,"description")>=0))return Gt(t);if(0===i.length){if(Jt(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(Kt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(qt(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Zt(t))return Gt(t)}var c,u,p="",m=!1,h=["{","}"];return c=t,s()(c)&&(m=!0,h=["[","]"]),Jt(t)&&(p=" [Function"+(t.name?": "+t.name:"")+"]"),Kt(t)&&(p=" "+RegExp.prototype.toString.call(t)),qt(t)&&(p=" "+Date.prototype.toUTCString.call(t)),Zt(t)&&(p=" "+Gt(t)),0!==i.length||m&&0!=t.length?n<0?Kt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=m?function(e,t,n,o,a){for(var i=[],s=0,r=t.length;s<r;++s)Xt(t,String(s))?i.push(Ht(e,t,n,o,String(s),!0)):i.push("");return R()(a).call(a,(function(a){a.match(/^\d+$/)||i.push(Ht(e,t,n,o,a,!0))})),i}(e,t,n,r,i):H()(i).call(i,(function(o){return Ht(e,t,n,r,o,m)})),e.seen.pop(),function(e,t,n){return F()(e).call(e,(function(e,t){return d()(t).call(t,"\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,p,h)):h[0]+p+h[1]}function Gt(e){return"["+Error.prototype.toString.call(e)+"]"}function Ht(e,t,n,o,a,i){var s,r,l,c,u,p,m;if((m=Y()(t,a)||{value:t[a]}).get?p=m.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):m.set&&(p=e.stylize("[Setter]","special")),Xt(o,a)||(u="["+a+"]"),p||(d()(s=e.seen).call(s,m.value)<0?d()(r=p=Ft(n)?At(e,m.value,null):At(e,m.value,n-1)).call(r,"\n")>-1&&(p=i?H()(l=p.split("\n")).call(l,(function(e){return" "+e})).join("\n").substr(2):"\n"+H()(c=p.split("\n")).call(c,(function(e){return" "+e})).join("\n")):p=e.stylize("[Circular]","special")),Yt(u)){if(i&&a.match(/^\d+$/))return p;(u=V()(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+p}function zt(e){return"boolean"==typeof e}function Ft(e){return null===e}function $t(e){return"string"==typeof e}function Yt(e){return void 0===e}function Kt(e){return Wt(e)&&"[object RegExp]"===Qt(e)}function Wt(e){return"object"==typeof e&&null!==e}function qt(e){return Wt(e)&&"[object Date]"===Qt(e)}function Zt(e){return Wt(e)&&("[object Error]"===Qt(e)||e instanceof Error)}function Jt(e){return"function"==typeof e}function Qt(e){return Object.prototype.toString.call(e)}function Xt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function en(){this.head=null,this.tail=null,this.length=0}Lt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Lt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},en.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},en.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},en.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},en.prototype.clear=function(){this.head=this.tail=null,this.length=0},en.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},en.prototype.concat=function(e){if(0===this.length)return ge.alloc(0);if(1===this.length)return this.head.data;for(var t=ge.allocUnsafe(e>>>0),n=this.head,o=0;n;)n.data.copy(t,o),o+=n.data.length,n=n.next;return t};var tn=ge.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function nn(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!tn(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=an;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=sn;break;default:return void(this.write=on)}this.charBuffer=new ge(6),this.charReceived=0,this.charLength=0}function on(e){return e.toString(this.encoding)}function an(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function sn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}nn.prototype.write=function(e){for(var t="";this.charLength;){var n,o=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,o),this.charReceived+=o,this.charReceived<this.charLength)return"";if(e=l()(e).call(e,o,e.length),!((a=(t=l()(n=this.charBuffer).call(n,0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&a<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var a,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(a=t.charCodeAt(i))>=55296&&a<=56319){var s=this.surrogateSize;return this.charLength+=s,this.charReceived+=s,this.charBuffer.copy(this.charBuffer,s,0,s),e.copy(this.charBuffer,0,0,s),t.substring(0,i)}return t},nn.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},nn.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,o=this.charBuffer,a=this.encoding;t+=l()(o).call(o,0,n).toString(a)}return t},cn.ReadableState=ln;var rn=function(e){return Yt(xt)&&(xt=""),e=e.toUpperCase(),Vt[e]||(new RegExp("\\b"+e+"\\b","i").test(xt)?Vt[e]=function(){var t=Bt.apply(null,arguments);console.error("%s %d: %s",e,0,t)}:Vt[e]=function(){}),Vt[e]}("stream");function ln(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Ln&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:o,this.highWaterMark=~~this.highWaterMark,this.buffer=new en,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new nn(e.encoding),this.encoding=e.encoding)}function cn(e){if(!(this instanceof cn))return new cn(e);this._readableState=new ln(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),yt.call(this)}function dn(e,t,n,o,a){var i=function(e,t){var n=null;return et(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(i)e.emit("error",i);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,mn(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!a){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&a){var r=new Error("stream.unshift() after end event");e.emit("error",r)}else{var l;!t.decoder||a||o||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),a||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,a?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&mn(e))),function(e,t){t.readingMore||(t.readingMore=!0,ft(vn,e,t))}(e,t)}else a||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}Nt(cn,yt),cn.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=ge.from(e,t),t=""),dn(this,n,e,t,!1)},cn.prototype.unshift=function(e){return dn(this,this._readableState,e,"",!0)},cn.prototype.isPaused=function(){return!1===this._readableState.flowing},cn.prototype.setEncoding=function(e){return this._readableState.decoder=new nn(e),this._readableState.encoding=e,this};var un=8388608;function pn(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=un?e=un:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function mn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(rn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ft(hn,e):hn(e))}function hn(e){rn("emit readable"),e.emit("readable"),bn(e)}function vn(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(rn("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function fn(e){rn("readable nexttick read 0"),e.read(0)}function gn(e,t){t.reading||(rn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),bn(e),t.flowing&&!t.reading&&e.read(0)}function bn(e){var t=e._readableState;for(rn("flow",t.flowing);t.flowing&&null!==e.read(););}function On(e,t){var n,o;return 0===t.length?null:(t.objectMode?o=t.buffer.shift():!e||e>=t.length?(o=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:w()(n=t.buffer).call(n,t.length),t.buffer.clear()):o=function(e,t,n,o,a){var i;return e<t.head.data.length?(i=l()(o=t.head.data).call(o,0,e),t.head.data=l()(a=t.head.data).call(a,e)):i=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,o=1,a=n.data;for(e-=a.length;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(s===i.length?a+=i:a+=l()(i).call(i,0,e),0===(e-=s)){s===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=l()(i).call(i,s));break}++o}return t.length-=o,a}(e,t):function(e,t){var n=ge.allocUnsafe(e),o=t.head,a=1;for(o.data.copy(n),e-=o.data.length;o=o.next;){var i=o.data,s=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,s),0===(e-=s)){s===i.length?(++a,o.next?t.head=o.next:t.head=t.tail=null):(t.head=o,o.data=l()(i).call(i,s));break}++a}return t.length-=a,n}(e,t),i}(e,t.buffer,t.decoder),o)}function yn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ft(jn,t,e))}function jn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function kn(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function In(){}function wn(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function En(e,t){W()(this,"buffer",{get:Mt((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Ln&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:o,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,o=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,o,a){--t.pendingcb,n?ft(a,o):a(o),e._writableState.errorEmitted=!0,e.emit("error",o)}(e,n,o,t,a);else{var i=Dn(n);i||n.corked||n.bufferProcessing||!n.bufferedRequest||_n(e,n),o?ft(Sn,e,n,i,a):Sn(e,n,i,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Bn(this)}function Cn(e){if(!(this instanceof Cn||this instanceof Ln))return new Cn(e);this._writableState=new En(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),yt.call(this)}function Tn(e,t,n,o,a,i,s){t.writelen=o,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function Sn(e,t,n,o){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,o(),Un(e,t)}function _n(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var o=t.bufferedRequestCount,a=new Array(o),i=t.corkedRequestsFree;i.entry=n;for(var s=0;n;)a[s]=n,n=n.next,s+=1;Tn(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new Bn(t)}else{for(;n;){var r=n.chunk,l=n.encoding,c=n.callback;if(Tn(e,t,!1,t.objectMode?1:r.length,r,l,c),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function Dn(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Nn(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Un(e,t){var n=Dn(t);return n&&(0===t.pendingcb?(Nn(e,t),t.finished=!0,e.emit("finish")):Nn(e,t)),n}function Bn(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var o=t.entry;for(t.entry=null;o;){var a=o.callback;e.pendingcb--,a(n),o=o.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}cn.prototype.read=function(e){rn("read",e),e=h()(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return rn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?yn(this):mn(this),null;if(0===(e=pn(e,t))&&t.ended)return 0===t.length&&yn(this),null;var o,a=t.needReadable;return rn("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&rn("length less than watermark",a=!0),t.ended||t.reading?rn("reading or ended",a=!1):a&&(rn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=pn(n,t))),null===(o=e>0?On(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&yn(this)),null!==o&&this.emit("data",o),o},cn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},cn.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,rn("pipe count=%d opts=%j",o.pipesCount,t);var a=t&&!1===t.end?d:r;function i(e){rn("onunpipe"),e===n&&d()}function r(){rn("onend"),e.end()}o.endEmitted?ft(a):n.once("end",a),e.on("unpipe",i);var l=function(e){return function(){var t=e._readableState;rn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,bn(e))}}(n);e.on("drain",l);var c=!1;function d(){rn("cleanup"),e.removeListener("close",h),e.removeListener("finish",v),e.removeListener("drain",l),e.removeListener("error",m),e.removeListener("unpipe",i),n.removeListener("end",r),n.removeListener("end",d),n.removeListener("data",p),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}var u=!1;function p(t){rn("ondata"),u=!1,!1!==e.write(t)||u||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==kn(o.pipes,e))&&!c&&(rn("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function m(t){var n;rn("onerror",t),f(),e.removeListener("error",m),0===(n="error",e.listeners(n).length)&&e.emit("error",t)}function h(){e.removeListener("finish",v),f()}function v(){rn("onfinish"),e.removeListener("close",h),f()}function f(){rn("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s()(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",h),e.once("finish",v),e.emit("pipe",n),o.flowing||(rn("pipe resume"),n.resume()),e},cn.prototype.unpipe=function(e){var t,n=this._readableState;if(0===n.pipesCount)return this;if(1===n.pipesCount)return e&&e!==n.pipes||(e||(e=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var o=n.pipes,a=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var i=0;i<a;i++)o[i].emit("unpipe",this);return this}var s=kn(n.pipes,e);return-1===s||(C()(t=n.pipes).call(t,s,1),n.pipesCount-=1,1===n.pipesCount&&(n.pipes=n.pipes[0]),e.emit("unpipe",this)),this},cn.prototype.on=function(e,t){var n=yt.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var o=this._readableState;o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.emittedReadable=!1,o.reading?o.length&&mn(this):ft(fn,this))}return n},cn.prototype.addListener=cn.prototype.on,cn.prototype.resume=function(){var e=this._readableState;return e.flowing||(rn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ft(gn,e,t))}(this,e)),this},cn.prototype.pause=function(){return rn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(rn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},cn.prototype.wrap=function(e){var t=this._readableState,n=!1,o=this;for(var a in e.on("end",(function(){if(rn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&o.push(e)}o.push(null)})),e.on("data",(function(a){rn("wrapped data"),t.decoder&&(a=t.decoder.write(a)),t.objectMode&&null==a||(t.objectMode||a&&a.length)&&(o.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));return function(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],(function(t){var n;e.on(t,Z()(n=o.emit).call(n,o,t))})),o._read=function(t){rn("wrapped _read",t),n&&(n=!1,e.resume())},o},cn._fromList=On,Cn.WritableState=En,Nt(Cn,yt),En.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},Cn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Cn.prototype.write=function(e,t,n){var o=this._writableState,a=!1;return"function"==typeof t&&(n=t,t=null),ge.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=In),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),ft(t,n)}(this,n):function(e,t,n,o){var a=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):ge.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),ft(o,i),a=!1),a}(this,o,e,n)&&(o.pendingcb++,a=function(e,t,n,o,a){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=ge.from(t,n)),t}(t,n,o),ge.isBuffer(n)&&(o="buffer");var i=t.objectMode?1:n.length;t.length+=i;var s=t.length<t.highWaterMark;if(s||(t.needDrain=!0),t.writing||t.corked){var r=t.lastBufferedRequest;t.lastBufferedRequest=new wn(n,o,a),r?r.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Tn(e,t,!1,i,n,o,a);return s}(this,o,e,t,n)),a},Cn.prototype.cork=function(){this._writableState.corked++},Cn.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_n(this,e))},Cn.prototype.setDefaultEncoding=function(e){var t;if("string"==typeof e&&(e=e.toLowerCase()),!(d()(t=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"]).call(t,(e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Cn.prototype._write=function(e,t,n){n(new Error("not implemented"))},Cn.prototype._writev=null,Cn.prototype.end=function(e,t,n){var o=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(e,t,n){t.ending=!0,Un(e,t),n&&(t.finished?ft(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,o,n)},Nt(Ln,cn);for(var Mn=U()(Cn.prototype),xn=0;xn<Mn.length;xn++){var Vn=Mn[xn];Ln.prototype[Vn]||(Ln.prototype[Vn]=Cn.prototype[Vn])}function Ln(e){if(!(this instanceof Ln))return new Ln(e);cn.call(this,e),Cn.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Rn)}function Rn(){this.allowHalfOpen||this._writableState.ended||ft(Pn,this)}function Pn(e){e.end()}function An(e){this.afterTransform=function(t,n){return function(e,t,n){var o=e._transformState;o.transforming=!1;var a=o.writecb;if(!a)return e.emit("error",new Error("no writecb in Transform class"));o.writechunk=null,o.writecb=null,null!=n&&e.push(n),a(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&e._read(i.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Gn(e){if(!(this instanceof Gn))return new Gn(e);Ln.call(this,e),this._transformState=new An(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Hn(t,e)})):Hn(t)}))}function Hn(e,t){if(t)return e.emit("error",t);var n=e._writableState,o=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(o.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function zn(e){if(!(this instanceof zn))return new zn(e);Gn.call(this,e)}function Fn(){yt.call(this)}Nt(Gn,Ln),Gn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ln.prototype.push.call(this,e,t)},Gn.prototype._transform=function(e,t,n){throw new Error("Not implemented")},Gn.prototype._write=function(e,t,n){var o=this._transformState;if(o.writecb=n,o.writechunk=e,o.writeencoding=t,!o.transforming){var a=this._readableState;(o.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},Gn.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Nt(zn,Gn),zn.prototype._transform=function(e,t,n){n(null,e)},Nt(Fn,yt),Fn.Readable=cn,Fn.Writable=Cn,Fn.Duplex=Ln,Fn.Transform=Gn,Fn.PassThrough=zn,Fn.Stream=Fn,Fn.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",r));var i=!1;function s(){i||(i=!0,e.end())}function r(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===yt.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",o),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",r),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e};var $n={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"};function Yn(){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}function Kn(e,t,n,o,a){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+o),a);else for(var i=0;i<o;i++)e[a+i]=t[n+i]}var Wn=Uint8Array,qn=Uint16Array,Zn=Int32Array,Jn=4,Qn=0,Xn=1,eo=2;function to(e){for(var t=e.length;--t>=0;)e[t]=0}var no=0,oo=1,ao=2,io=29,so=256,ro=so+1+io,lo=30,co=19,uo=2*ro+1,po=15,mo=16,ho=7,vo=256,fo=16,go=17,bo=18,Oo=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],yo=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],jo=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ko=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Io=new Array(2*(ro+2));to(Io);var wo=new Array(2*lo);to(wo);var Eo=new Array(512);to(Eo);var Co=new Array(256);to(Co);var To=new Array(io);to(To);var So,_o,Do,No=new Array(lo);function Uo(e,t,n,o,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=o,this.max_length=a,this.has_stree=e&&e.length}function Bo(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Mo(e){return e<256?Eo[e]:Eo[256+(e>>>7)]}function xo(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Vo(e,t,n){e.bi_valid>mo-n?(e.bi_buf|=t<<e.bi_valid&65535,xo(e,e.bi_buf),e.bi_buf=t>>mo-e.bi_valid,e.bi_valid+=n-mo):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Lo(e,t,n){Vo(e,n[2*t],n[2*t+1])}function Ro(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function Po(e,t,n){var o,a,i=new Array(po+1),s=0;for(o=1;o<=po;o++)i[o]=s=s+n[o-1]<<1;for(a=0;a<=t;a++){var r=e[2*a+1];0!==r&&(e[2*a]=Ro(i[r]++,r))}}function Ao(e){var t;for(t=0;t<ro;t++)e.dyn_ltree[2*t]=0;for(t=0;t<lo;t++)e.dyn_dtree[2*t]=0;for(t=0;t<co;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*vo]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Go(e){e.bi_valid>8?xo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Ho(e,t,n,o){var a=2*t,i=2*n;return e[a]<e[i]||e[a]===e[i]&&o[t]<=o[n]}function zo(e,t,n){for(var o=e.heap[n],a=n<<1;a<=e.heap_len&&(a<e.heap_len&&Ho(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Ho(t,o,e.heap[a],e.depth));)e.heap[n]=e.heap[a],n=a,a<<=1;e.heap[n]=o}function Fo(e,t,n){var o,a,i,s,r=0;if(0!==e.last_lit)do{o=e.pending_buf[e.d_buf+2*r]<<8|e.pending_buf[e.d_buf+2*r+1],a=e.pending_buf[e.l_buf+r],r++,0===o?Lo(e,a,t):(Lo(e,(i=Co[a])+so+1,t),0!==(s=Oo[i])&&Vo(e,a-=To[i],s),Lo(e,i=Mo(--o),n),0!==(s=yo[i])&&Vo(e,o-=No[i],s))}while(r<e.last_lit);Lo(e,vo,t)}function $o(e,t){var n,o,a,i=t.dyn_tree,s=t.stat_desc.static_tree,r=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=uo,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[a]=0,e.opt_len--,r&&(e.static_len-=s[2*a+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)zo(e,i,n);a=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],zo(e,i,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,i[2*a]=i[2*n]+i[2*o],e.depth[a]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,i[2*n+1]=i[2*o+1]=a,e.heap[1]=a++,zo(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,o,a,i,s,r,l=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,u=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,h=t.stat_desc.max_length,v=0;for(i=0;i<=po;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<uo;n++)(i=l[2*l[2*(o=e.heap[n])+1]+1]+1)>h&&(i=h,v++),l[2*o+1]=i,o>c||(e.bl_count[i]++,s=0,o>=m&&(s=p[o-m]),r=l[2*o],e.opt_len+=r*(i+s),u&&(e.static_len+=r*(d[2*o+1]+s)));if(0!==v){do{for(i=h-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[h]--,v-=2}while(v>0);for(i=h;0!==i;i--)for(o=e.bl_count[i];0!==o;)(a=e.heap[--n])>c||(l[2*a+1]!==i&&(e.opt_len+=(i-l[2*a+1])*l[2*a],l[2*a+1]=i),o--)}}(e,t),Po(i,c,e.bl_count)}function Yo(e,t,n){var o,a,i=-1,s=t[1],r=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(n+1)+1]=65535,o=0;o<=n;o++)a=s,s=t[2*(o+1)+1],++r<l&&a===s||(r<c?e.bl_tree[2*a]+=r:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[2*fo]++):r<=10?e.bl_tree[2*go]++:e.bl_tree[2*bo]++,r=0,i=a,0===s?(l=138,c=3):a===s?(l=6,c=3):(l=7,c=4))}function Ko(e,t,n){var o,a,i=-1,s=t[1],r=0,l=7,c=4;for(0===s&&(l=138,c=3),o=0;o<=n;o++)if(a=s,s=t[2*(o+1)+1],!(++r<l&&a===s)){if(r<c)do{Lo(e,a,e.bl_tree)}while(0!=--r);else 0!==a?(a!==i&&(Lo(e,a,e.bl_tree),r--),Lo(e,fo,e.bl_tree),Vo(e,r-3,2)):r<=10?(Lo(e,go,e.bl_tree),Vo(e,r-3,3)):(Lo(e,bo,e.bl_tree),Vo(e,r-11,7));r=0,i=a,0===s?(l=138,c=3):a===s?(l=6,c=3):(l=7,c=4)}}to(No);var Wo=!1;function qo(e){Wo||(function(){var e,t,n,o,a,i=new Array(po+1);for(n=0,o=0;o<io-1;o++)for(To[o]=n,e=0;e<1<<Oo[o];e++)Co[n++]=o;for(Co[n-1]=o,a=0,o=0;o<16;o++)for(No[o]=a,e=0;e<1<<yo[o];e++)Eo[a++]=o;for(a>>=7;o<lo;o++)for(No[o]=a<<7,e=0;e<1<<yo[o]-7;e++)Eo[256+a++]=o;for(t=0;t<=po;t++)i[t]=0;for(e=0;e<=143;)Io[2*e+1]=8,e++,i[8]++;for(;e<=255;)Io[2*e+1]=9,e++,i[9]++;for(;e<=279;)Io[2*e+1]=7,e++,i[7]++;for(;e<=287;)Io[2*e+1]=8,e++,i[8]++;for(Po(Io,ro+1,i),e=0;e<lo;e++)wo[2*e+1]=5,wo[2*e]=Ro(e,5);So=new Uo(Io,Oo,so+1,ro,po),_o=new Uo(wo,yo,0,lo,po),Do=new Uo(new Array(0),jo,0,co,ho)}(),Wo=!0),e.l_desc=new Bo(e.dyn_ltree,So),e.d_desc=new Bo(e.dyn_dtree,_o),e.bl_desc=new Bo(e.bl_tree,Do),e.bi_buf=0,e.bi_valid=0,Ao(e)}function Zo(e,t,n,o){Vo(e,(no<<1)+(o?1:0),3),function(e,t,n,o){Go(e),o&&(xo(e,n),xo(e,~n)),Kn(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}function Jo(e){Vo(e,oo<<1,3),Lo(e,vo,Io),function(e){16===e.bi_valid?(xo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}function Qo(e,t,n,o){var a,i,s=0;e.level>0?(e.strm.data_type===eo&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return Qn;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Xn;for(t=32;t<so;t++)if(0!==e.dyn_ltree[2*t])return Xn;return Qn}(e)),$o(e,e.l_desc),$o(e,e.d_desc),s=function(e){var t;for(Yo(e,e.dyn_ltree,e.l_desc.max_code),Yo(e,e.dyn_dtree,e.d_desc.max_code),$o(e,e.bl_desc),t=co-1;t>=3&&0===e.bl_tree[2*ko[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=n+5,n+4<=a&&-1!==t?Zo(e,t,n,o):e.strategy===Jn||i===a?(Vo(e,(oo<<1)+(o?1:0),3),Fo(e,Io,wo)):(Vo(e,(ao<<1)+(o?1:0),3),function(e,t,n,o){var a;for(Vo(e,t-257,5),Vo(e,n-1,5),Vo(e,o-4,4),a=0;a<o;a++)Vo(e,e.bl_tree[2*ko[a]+1],3);Ko(e,e.dyn_ltree,t-1),Ko(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),Fo(e,e.dyn_ltree,e.dyn_dtree)),Ao(e),o&&Go(e)}function Xo(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Co[n]+so+1)]++,e.dyn_dtree[2*Mo(t)]++),e.last_lit===e.lit_bufsize-1}function ea(e,t,n,o){for(var a=65535&e|0,i=e>>>16&65535|0,s=0;0!==n;){n-=s=n>2e3?2e3:n;do{i=i+(a=a+t[o++]|0)|0}while(--s);a%=65521,i%=65521}return a|i<<16|0}var ta=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();function na(e,t,n,o){var a=ta,i=o+n;e^=-1;for(var s=o;s<i;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}var oa,aa=0,ia=1,sa=3,ra=4,la=5,ca=0,da=1,ua=-2,pa=-3,ma=-5,ha=-1,va=1,fa=2,ga=3,ba=4,Oa=2,ya=8,ja=9,ka=286,Ia=30,wa=19,Ea=2*ka+1,Ca=15,Ta=3,Sa=258,_a=Sa+Ta+1,Da=32,Na=42,Ua=69,Ba=73,Ma=91,xa=103,Va=113,La=666,Ra=1,Pa=2,Aa=3,Ga=4,Ha=3;function za(e,t){return e.msg=$n[t],t}function Fa(e){return(e<<1)-(e>4?9:0)}function $a(e){for(var t=e.length;--t>=0;)e[t]=0}function Ya(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Kn(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Ka(e,t){Qo(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ya(e.strm)}function Wa(e,t){e.pending_buf[e.pending++]=t}function qa(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Za(e,t){var n,o,a=e.max_chain_length,i=e.strstart,s=e.prev_length,r=e.nice_match,l=e.strstart>e.w_size-_a?e.strstart-(e.w_size-_a):0,c=e.window,d=e.w_mask,u=e.prev,p=e.strstart+Sa,m=c[i+s-1],h=c[i+s];e.prev_length>=e.good_match&&(a>>=2),r>e.lookahead&&(r=e.lookahead);do{if(c[(n=t)+s]===h&&c[n+s-1]===m&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<p);if(o=Sa-(p-i),i=p-Sa,o>s){if(e.match_start=t,s=o,o>=r)break;m=c[i+s-1],h=c[i+s]}}}while((t=u[t&d])>l&&0!=--a);return s<=e.lookahead?s:e.lookahead}function Ja(e){var t,n,o,a,i,s,r,l,c,d,u=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=u+(u-_a)){Kn(e.window,e.window,u,u,0),e.match_start-=u,e.strstart-=u,e.block_start-=u,t=n=e.hash_size;do{o=e.head[--t],e.head[t]=o>=u?o-u:0}while(--n);t=n=u;do{o=e.prev[--t],e.prev[t]=o>=u?o-u:0}while(--n);a+=u}if(0===e.strm.avail_in)break;if(s=e.strm,r=e.window,l=e.strstart+e.lookahead,c=a,d=void 0,(d=s.avail_in)>c&&(d=c),n=0===d?0:(s.avail_in-=d,Kn(r,s.input,s.next_in,d,l),1===s.state.wrap?s.adler=ea(s.adler,r,d,l):2===s.state.wrap&&(s.adler=na(s.adler,r,d,l)),s.next_in+=d,s.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=Ta)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+Ta-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<Ta)););}while(e.lookahead<_a&&0!==e.strm.avail_in)}function Qa(e,t){for(var n,o;;){if(e.lookahead<_a){if(Ja(e),e.lookahead<_a&&t===aa)return Ra;if(0===e.lookahead)break}if(n=0,e.lookahead>=Ta&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ta-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-_a&&(e.match_length=Za(e,n)),e.match_length>=Ta)if(o=Xo(e,e.strstart-e.match_start,e.match_length-Ta),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ta){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ta-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else o=Xo(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(o&&(Ka(e,!1),0===e.strm.avail_out))return Ra}return e.insert=e.strstart<Ta-1?e.strstart:Ta-1,t===ra?(Ka(e,!0),0===e.strm.avail_out?Aa:Ga):e.last_lit&&(Ka(e,!1),0===e.strm.avail_out)?Ra:Pa}function Xa(e,t){for(var n,o,a;;){if(e.lookahead<_a){if(Ja(e),e.lookahead<_a&&t===aa)return Ra;if(0===e.lookahead)break}if(n=0,e.lookahead>=Ta&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ta-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ta-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-_a&&(e.match_length=Za(e,n),e.match_length<=5&&(e.strategy===va||e.match_length===Ta&&e.strstart-e.match_start>4096)&&(e.match_length=Ta-1)),e.prev_length>=Ta&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-Ta,o=Xo(e,e.strstart-1-e.prev_match,e.prev_length-Ta),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ta-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=Ta-1,e.strstart++,o&&(Ka(e,!1),0===e.strm.avail_out))return Ra}else if(e.match_available){if((o=Xo(e,0,e.window[e.strstart-1]))&&Ka(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Ra}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(o=Xo(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Ta-1?e.strstart:Ta-1,t===ra?(Ka(e,!0),0===e.strm.avail_out?Aa:Ga):e.last_lit&&(Ka(e,!1),0===e.strm.avail_out)?Ra:Pa}function ei(e,t,n,o,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=o,this.func=a}function ti(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ya,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new qn(2*Ea),this.dyn_dtree=new qn(2*(2*Ia+1)),this.bl_tree=new qn(2*(2*wa+1)),$a(this.dyn_ltree),$a(this.dyn_dtree),$a(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new qn(Ca+1),this.heap=new qn(2*ka+1),$a(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new qn(2*ka+1),$a(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ni(e){var t,n=function(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=Oa,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Na:Va,e.adler=2===t.wrap?0:1,t.last_flush=aa,qo(t),ca):za(e,ua)}(e);return n===ca&&((t=e.state).window_size=2*t.w_size,$a(t.head),t.max_lazy_match=oa[t.level].max_lazy,t.good_match=oa[t.level].good_length,t.nice_match=oa[t.level].nice_length,t.max_chain_length=oa[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=Ta-1,t.match_available=0,t.ins_h=0),n}function oi(e,t){var n,o,a,i;if(!e||!e.state||t>la||t<0)return e?za(e,ua):ua;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||o.status===La&&t!==ra)return za(e,0===e.avail_out?ma:ua);if(o.strm=e,n=o.last_flush,o.last_flush=t,o.status===Na)if(2===o.wrap)e.adler=0,Wa(o,31),Wa(o,139),Wa(o,8),o.gzhead?(Wa(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),Wa(o,255&o.gzhead.time),Wa(o,o.gzhead.time>>8&255),Wa(o,o.gzhead.time>>16&255),Wa(o,o.gzhead.time>>24&255),Wa(o,9===o.level?2:o.strategy>=fa||o.level<2?4:0),Wa(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(Wa(o,255&o.gzhead.extra.length),Wa(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=na(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=Ua):(Wa(o,0),Wa(o,0),Wa(o,0),Wa(o,0),Wa(o,0),Wa(o,9===o.level?2:o.strategy>=fa||o.level<2?4:0),Wa(o,Ha),o.status=Va);else{var s=ya+(o.w_bits-8<<4)<<8;s|=(o.strategy>=fa||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(s|=Da),s+=31-s%31,o.status=Va,qa(o,s),0!==o.strstart&&(qa(o,e.adler>>>16),qa(o,65535&e.adler)),e.adler=1}if(o.status===Ua)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),Ya(e),a=o.pending,o.pending!==o.pending_buf_size));)Wa(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=Ba)}else o.status=Ba;if(o.status===Ba)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),Ya(e),a=o.pending,o.pending===o.pending_buf_size)){i=1;break}i=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,Wa(o,i)}while(0!==i);o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),0===i&&(o.gzindex=0,o.status=Ma)}else o.status=Ma;if(o.status===Ma)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),Ya(e),a=o.pending,o.pending===o.pending_buf_size)){i=1;break}i=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,Wa(o,i)}while(0!==i);o.gzhead.hcrc&&o.pending>a&&(e.adler=na(e.adler,o.pending_buf,o.pending-a,a)),0===i&&(o.status=xa)}else o.status=xa;if(o.status===xa&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&Ya(e),o.pending+2<=o.pending_buf_size&&(Wa(o,255&e.adler),Wa(o,e.adler>>8&255),e.adler=0,o.status=Va)):o.status=Va),0!==o.pending){if(Ya(e),0===e.avail_out)return o.last_flush=-1,ca}else if(0===e.avail_in&&Fa(t)<=Fa(n)&&t!==ra)return za(e,ma);if(o.status===La&&0!==e.avail_in)return za(e,ma);if(0!==e.avail_in||0!==o.lookahead||t!==aa&&o.status!==La){var r=o.strategy===fa?function(e,t){for(var n;;){if(0===e.lookahead&&(Ja(e),0===e.lookahead)){if(t===aa)return Ra;break}if(e.match_length=0,n=Xo(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ka(e,!1),0===e.strm.avail_out))return Ra}return e.insert=0,t===ra?(Ka(e,!0),0===e.strm.avail_out?Aa:Ga):e.last_lit&&(Ka(e,!1),0===e.strm.avail_out)?Ra:Pa}(o,t):o.strategy===ga?function(e,t){for(var n,o,a,i,s=e.window;;){if(e.lookahead<=Sa){if(Ja(e),e.lookahead<=Sa&&t===aa)return Ra;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=Ta&&e.strstart>0&&(o=s[a=e.strstart-1])===s[++a]&&o===s[++a]&&o===s[++a]){i=e.strstart+Sa;do{}while(o===s[++a]&&o===s[++a]&&o===s[++a]&&o===s[++a]&&o===s[++a]&&o===s[++a]&&o===s[++a]&&o===s[++a]&&a<i);e.match_length=Sa-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ta?(n=Xo(e,1,e.match_length-Ta),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Xo(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Ka(e,!1),0===e.strm.avail_out))return Ra}return e.insert=0,t===ra?(Ka(e,!0),0===e.strm.avail_out?Aa:Ga):e.last_lit&&(Ka(e,!1),0===e.strm.avail_out)?Ra:Pa}(o,t):oa[o.level].func(o,t);if(r!==Aa&&r!==Ga||(o.status=La),r===Ra||r===Aa)return 0===e.avail_out&&(o.last_flush=-1),ca;if(r===Pa&&(t===ia?Jo(o):t!==la&&(Zo(o,0,0,!1),t===sa&&($a(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),Ya(e),0===e.avail_out))return o.last_flush=-1,ca}return t!==ra?ca:o.wrap<=0?da:(2===o.wrap?(Wa(o,255&e.adler),Wa(o,e.adler>>8&255),Wa(o,e.adler>>16&255),Wa(o,e.adler>>24&255),Wa(o,255&e.total_in),Wa(o,e.total_in>>8&255),Wa(o,e.total_in>>16&255),Wa(o,e.total_in>>24&255)):(qa(o,e.adler>>>16),qa(o,65535&e.adler)),Ya(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?ca:da)}oa=[new ei(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ja(e),0===e.lookahead&&t===aa)return Ra;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var o=e.block_start+n;if((0===e.strstart||e.strstart>=o)&&(e.lookahead=e.strstart-o,e.strstart=o,Ka(e,!1),0===e.strm.avail_out))return Ra;if(e.strstart-e.block_start>=e.w_size-_a&&(Ka(e,!1),0===e.strm.avail_out))return Ra}return e.insert=0,t===ra?(Ka(e,!0),0===e.strm.avail_out?Aa:Ga):(e.strstart>e.block_start&&(Ka(e,!1),e.strm.avail_out),Ra)})),new ei(4,4,8,4,Qa),new ei(4,5,16,8,Qa),new ei(4,6,32,32,Qa),new ei(4,4,16,16,Xa),new ei(8,16,32,32,Xa),new ei(8,16,128,128,Xa),new ei(8,32,128,256,Xa),new ei(32,128,258,1024,Xa),new ei(32,258,258,4096,Xa)];var ai=30,ii=12;function si(e,t){var n,o,a,i,s,r,l,c,d,u,p,m,h,v,f,g,b,O,y,j,k,I,w,E,C;n=e.state,o=e.next_in,E=e.input,a=o+(e.avail_in-5),i=e.next_out,C=e.output,s=i-(t-e.avail_out),r=i+(e.avail_out-257),l=n.dmax,c=n.wsize,d=n.whave,u=n.wnext,p=n.window,m=n.hold,h=n.bits,v=n.lencode,f=n.distcode,g=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{h<15&&(m+=E[o++]<<h,h+=8,m+=E[o++]<<h,h+=8),O=v[m&g];t:for(;;){if(m>>>=y=O>>>24,h-=y,0===(y=O>>>16&255))C[i++]=65535&O;else{if(!(16&y)){if(0==(64&y)){O=v[(65535&O)+(m&(1<<y)-1)];continue t}if(32&y){n.mode=ii;break e}e.msg="invalid literal/length code",n.mode=ai;break e}j=65535&O,(y&=15)&&(h<y&&(m+=E[o++]<<h,h+=8),j+=m&(1<<y)-1,m>>>=y,h-=y),h<15&&(m+=E[o++]<<h,h+=8,m+=E[o++]<<h,h+=8),O=f[m&b];n:for(;;){if(m>>>=y=O>>>24,h-=y,!(16&(y=O>>>16&255))){if(0==(64&y)){O=f[(65535&O)+(m&(1<<y)-1)];continue n}e.msg="invalid distance code",n.mode=ai;break e}if(k=65535&O,h<(y&=15)&&(m+=E[o++]<<h,(h+=8)<y&&(m+=E[o++]<<h,h+=8)),(k+=m&(1<<y)-1)>l){e.msg="invalid distance too far back",n.mode=ai;break e}if(m>>>=y,h-=y,k>(y=i-s)){if((y=k-y)>d&&n.sane){e.msg="invalid distance too far back",n.mode=ai;break e}if(I=0,w=p,0===u){if(I+=c-y,y<j){j-=y;do{C[i++]=p[I++]}while(--y);I=i-k,w=C}}else if(u<y){if(I+=c+u-y,(y-=u)<j){j-=y;do{C[i++]=p[I++]}while(--y);if(I=0,u<j){j-=y=u;do{C[i++]=p[I++]}while(--y);I=i-k,w=C}}}else if(I+=u-y,y<j){j-=y;do{C[i++]=p[I++]}while(--y);I=i-k,w=C}for(;j>2;)C[i++]=w[I++],C[i++]=w[I++],C[i++]=w[I++],j-=3;j&&(C[i++]=w[I++],j>1&&(C[i++]=w[I++]))}else{I=i-k;do{C[i++]=C[I++],C[i++]=C[I++],C[i++]=C[I++],j-=3}while(j>2);j&&(C[i++]=C[I++],j>1&&(C[i++]=C[I++]))}break}}break}}while(o<a&&i<r);o-=j=h>>3,m&=(1<<(h-=j<<3))-1,e.next_in=o,e.next_out=i,e.avail_in=o<a?a-o+5:5-(o-a),e.avail_out=i<r?r-i+257:257-(i-r),n.hold=m,n.bits=h}var ri=15,li=852,ci=592,di=0,ui=1,pi=2,mi=[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],hi=[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],vi=[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],fi=[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];function gi(e,t,n,o,a,i,s,r){var l,c,d,u,p,m,h,v,f,g=r.bits,b=0,O=0,y=0,j=0,k=0,I=0,w=0,E=0,C=0,T=0,S=null,_=0,D=new qn(ri+1),N=new qn(ri+1),U=null,B=0;for(b=0;b<=ri;b++)D[b]=0;for(O=0;O<o;O++)D[t[n+O]]++;for(k=g,j=ri;j>=1&&0===D[j];j--);if(k>j&&(k=j),0===j)return a[i++]=20971520,a[i++]=20971520,r.bits=1,0;for(y=1;y<j&&0===D[y];y++);for(k<y&&(k=y),E=1,b=1;b<=ri;b++)if(E<<=1,(E-=D[b])<0)return-1;if(E>0&&(e===di||1!==j))return-1;for(N[1]=0,b=1;b<ri;b++)N[b+1]=N[b]+D[b];for(O=0;O<o;O++)0!==t[n+O]&&(s[N[t[n+O]]++]=O);if(e===di?(S=U=s,m=19):e===ui?(S=mi,_-=257,U=hi,B-=257,m=256):(S=vi,U=fi,m=-1),T=0,O=0,b=y,p=i,I=k,w=0,d=-1,u=(C=1<<k)-1,e===ui&&C>li||e===pi&&C>ci)return 1;for(;;){h=b-w,s[O]<m?(v=0,f=s[O]):s[O]>m?(v=U[B+s[O]],f=S[_+s[O]]):(v=96,f=0),l=1<<b-w,y=c=1<<I;do{a[p+(T>>w)+(c-=l)]=h<<24|v<<16|f|0}while(0!==c);for(l=1<<b-1;T&l;)l>>=1;if(0!==l?(T&=l-1,T+=l):T=0,O++,0==--D[b]){if(b===j)break;b=t[n+s[O]]}if(b>k&&(T&u)!==d){for(0===w&&(w=k),p+=y,E=1<<(I=b-w);I+w<j&&!((E-=D[I+w])<=0);)I++,E<<=1;if(C+=1<<I,e===ui&&C>li||e===pi&&C>ci)return 1;a[d=T&u]=k<<24|I<<16|p-i|0}}return 0!==T&&(a[p+T]=b-w<<24|64<<16|0),r.bits=k,0}var bi=0,Oi=1,yi=2,ji=4,ki=5,Ii=6,wi=0,Ei=1,Ci=2,Ti=-2,Si=-3,_i=-4,Di=-5,Ni=8,Ui=1,Bi=2,Mi=3,xi=4,Vi=5,Li=6,Ri=7,Pi=8,Ai=9,Gi=10,Hi=11,zi=12,Fi=13,$i=14,Yi=15,Ki=16,Wi=17,qi=18,Zi=19,Ji=20,Qi=21,Xi=22,es=23,ts=24,ns=25,os=26,as=27,is=28,ss=29,rs=30,ls=31,cs=32,ds=852,us=592;function ps(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ms(){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 qn(320),this.work=new qn(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function hs(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Ui,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Zn(ds),t.distcode=t.distdyn=new Zn(us),t.sane=1,t.back=-1,wi):Ti}(e)):Ti}function vs(e,t){var n,o;return e?(o=new ms,e.state=o,o.window=null,(n=function(e,t){var n,o;return e&&e.state?(o=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Ti:(null!==o.window&&o.wbits!==t&&(o.window=null),o.wrap=n,o.wbits=t,hs(e))):Ti}(e,t))!==wi&&(e.state=null),n):Ti}var fs,gs,bs=!0;function Os(e){if(bs){var t;for(fs=new Zn(512),gs=new Zn(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(gi(Oi,e.lens,0,288,fs,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;gi(yi,e.lens,0,32,gs,0,e.work,{bits:5}),bs=!1}e.lencode=fs,e.lenbits=9,e.distcode=gs,e.distbits=5}function ys(e,t){var n,o,a,i,s,r,l,c,d,u,p,m,h,v,f,g,b,O,y,j,k,I,w,E,C=0,T=new Wn(4),S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Ti;(n=e.state).mode===zi&&(n.mode=Fi),s=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,o=e.input,r=e.avail_in,c=n.hold,d=n.bits,u=r,p=l,I=wi;e:for(;;)switch(n.mode){case Ui:if(0===n.wrap){n.mode=Fi;break}for(;d<16;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(2&n.wrap&&35615===c){n.check=0,T[0]=255&c,T[1]=c>>>8&255,n.check=na(n.check,T,2,0),c=0,d=0,n.mode=Bi;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=rs;break}if((15&c)!==Ni){e.msg="unknown compression method",n.mode=rs;break}if(d-=4,k=8+(15&(c>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=rs;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&c?Gi:zi,c=0,d=0;break;case Bi:for(;d<16;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(n.flags=c,(255&Q()(n))!==Ni){e.msg="unknown compression method",n.mode=rs;break}if(57344&Q()(n)){e.msg="unknown header flags set",n.mode=rs;break}n.head&&(n.head.text=c>>8&1),512&Q()(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=na(n.check,T,2,0)),c=0,d=0,n.mode=Mi;case Mi:for(;d<32;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}n.head&&(n.head.time=c),512&Q()(n)&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,n.check=na(n.check,T,4,0)),c=0,d=0,n.mode=xi;case xi:for(;d<16;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&Q()(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=na(n.check,T,2,0)),c=0,d=0,n.mode=Vi;case Vi:if(1024&Q()(n)){for(;d<16;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}n.length=c,n.head&&(n.head.extra_len=c),512&Q()(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=na(n.check,T,2,0)),c=0,d=0}else n.head&&(n.head.extra=null);n.mode=Li;case Li:if(1024&Q()(n)&&((m=n.length)>r&&(m=r),m&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Kn(n.head.extra,o,i,m,k)),512&Q()(n)&&(n.check=na(n.check,o,m,i)),r-=m,i+=m,n.length-=m),n.length))break e;n.length=0,n.mode=Ri;case Ri:if(2048&Q()(n)){if(0===r)break e;m=0;do{k=o[i+m++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&m<r);if(512&Q()(n)&&(n.check=na(n.check,o,m,i)),r-=m,i+=m,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Pi;case Pi:if(4096&Q()(n)){if(0===r)break e;m=0;do{k=o[i+m++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&m<r);if(512&Q()(n)&&(n.check=na(n.check,o,m,i)),r-=m,i+=m,k)break e}else n.head&&(n.head.comment=null);n.mode=Ai;case Ai:if(512&Q()(n)){for(;d<16;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=rs;break}c=0,d=0}n.head&&(n.head.hcrc=Q()(n)>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=zi;break;case Gi:for(;d<32;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}e.adler=n.check=ps(c),c=0,d=0,n.mode=Hi;case Hi:if(0===n.havedict)return e.next_out=s,e.avail_out=l,e.next_in=i,e.avail_in=r,n.hold=c,n.bits=d,Ci;e.adler=n.check=1,n.mode=zi;case zi:if(t===ki||t===Ii)break e;case Fi:if(n.last){c>>>=7&d,d-=7&d,n.mode=as;break}for(;d<3;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}switch(n.last=1&c,d-=1,3&(c>>>=1)){case 0:n.mode=$i;break;case 1:if(Os(n),n.mode=Ji,t===Ii){c>>>=2,d-=2;break e}break;case 2:n.mode=Wi;break;case 3:e.msg="invalid block type",n.mode=rs}c>>>=2,d-=2;break;case $i:for(c>>>=7&d,d-=7&d;d<32;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=rs;break}if(n.length=65535&c,c=0,d=0,n.mode=Yi,t===Ii)break e;case Yi:n.mode=Ki;case Ki:if(m=n.length){if(m>r&&(m=r),m>l&&(m=l),0===m)break e;Kn(a,o,i,m,s),r-=m,i+=m,l-=m,s+=m,n.length-=m;break}n.mode=zi;break;case Wi:for(;d<14;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(n.nlen=257+(31&c),c>>>=5,d-=5,n.ndist=1+(31&c),c>>>=5,d-=5,n.ncode=4+(15&c),c>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=rs;break}n.have=0,n.mode=qi;case qi:for(;n.have<n.ncode;){for(;d<3;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}n.lens[S[n.have++]]=7&c,c>>>=3,d-=3}for(;n.have<19;)n.lens[S[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,w={bits:n.lenbits},I=gi(bi,n.lens,0,19,n.lencode,0,n.work,w),n.lenbits=w.bits,I){e.msg="invalid code lengths set",n.mode=rs;break}n.have=0,n.mode=Zi;case Zi:for(;n.have<n.nlen+n.ndist;){for(;g=(C=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,b=65535&C,!((f=C>>>24)<=d);){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(b<16)c>>>=f,d-=f,n.lens[n.have++]=b;else{if(16===b){for(E=f+2;d<E;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(c>>>=f,d-=f,0===n.have){e.msg="invalid bit length repeat",n.mode=rs;break}k=n.lens[n.have-1],m=3+(3&c),c>>>=2,d-=2}else if(17===b){for(E=f+3;d<E;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}d-=f,k=0,m=3+(7&(c>>>=f)),c>>>=3,d-=3}else{for(E=f+7;d<E;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}d-=f,k=0,m=11+(127&(c>>>=f)),c>>>=7,d-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=rs;break}for(;m--;)n.lens[n.have++]=k}}if(n.mode===rs)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=rs;break}if(n.lenbits=9,w={bits:n.lenbits},I=gi(Oi,n.lens,0,n.nlen,n.lencode,0,n.work,w),n.lenbits=w.bits,I){e.msg="invalid literal/lengths set",n.mode=rs;break}if(n.distbits=6,n.distcode=n.distdyn,w={bits:n.distbits},I=gi(yi,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,w),n.distbits=w.bits,I){e.msg="invalid distances set",n.mode=rs;break}if(n.mode=Ji,t===Ii)break e;case Ji:n.mode=Qi;case Qi:if(r>=6&&l>=258){e.next_out=s,e.avail_out=l,e.next_in=i,e.avail_in=r,n.hold=c,n.bits=d,si(e,p),s=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,o=e.input,r=e.avail_in,c=n.hold,d=n.bits,n.mode===zi&&(n.back=-1);break}for(n.back=0;g=(C=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,b=65535&C,!((f=C>>>24)<=d);){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(g&&0==(240&g)){for(O=f,y=g,j=b;g=(C=n.lencode[j+((c&(1<<O+y)-1)>>O)])>>>16&255,b=65535&C,!(O+(f=C>>>24)<=d);){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}c>>>=O,d-=O,n.back+=O}if(c>>>=f,d-=f,n.back+=f,n.length=b,0===g){n.mode=os;break}if(32&g){n.back=-1,n.mode=zi;break}if(64&g){e.msg="invalid literal/length code",n.mode=rs;break}n.extra=15&g,n.mode=Xi;case Xi:if(n.extra){for(E=n.extra;d<E;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=es;case es:for(;g=(C=n.distcode[c&(1<<n.distbits)-1])>>>16&255,b=65535&C,!((f=C>>>24)<=d);){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(0==(240&g)){for(O=f,y=g,j=b;g=(C=n.distcode[j+((c&(1<<O+y)-1)>>O)])>>>16&255,b=65535&C,!(O+(f=C>>>24)<=d);){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}c>>>=O,d-=O,n.back+=O}if(c>>>=f,d-=f,n.back+=f,64&g){e.msg="invalid distance code",n.mode=rs;break}n.offset=b,n.extra=15&g,n.mode=ts;case ts:if(n.extra){for(E=n.extra;d<E;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=rs;break}n.mode=ns;case ns:if(0===l)break e;if(m=p-l,n.offset>m){if((m=n.offset-m)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=rs;break}m>n.wnext?(m-=n.wnext,h=n.wsize-m):h=n.wnext-m,m>n.length&&(m=n.length),v=n.window}else v=a,h=s-n.offset,m=n.length;m>l&&(m=l),l-=m,n.length-=m;do{a[s++]=v[h++]}while(--m);0===n.length&&(n.mode=Qi);break;case os:if(0===l)break e;a[s++]=n.length,l--,n.mode=Qi;break;case as:if(n.wrap){for(;d<32;){if(0===r)break e;r--,c|=o[i++]<<d,d+=8}if(p-=l,e.total_out+=p,n.total+=p,p&&(e.adler=n.check=Q()(n)?na(n.check,a,p,s-p):ea(n.check,a,p,s-p)),p=l,(Q()(n)?c:ps(c))!==n.check){e.msg="incorrect data check",n.mode=rs;break}c=0,d=0}n.mode=is;case is:if(n.wrap&&Q()(n)){for(;d<32;){if(0===r)break e;r--,c+=o[i++]<<d,d+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=rs;break}c=0,d=0}n.mode=ss;case ss:I=Ei;break e;case rs:I=Si;break e;case ls:return _i;case cs:default:return Ti}return e.next_out=s,e.avail_out=l,e.next_in=i,e.avail_in=r,n.hold=c,n.bits=d,(n.wsize||p!==e.avail_out&&n.mode<rs&&(n.mode<as||t!==ji))&&function(e,t,n,o){var a,i=e.state;null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Wn(i.wsize)),o>=i.wsize?(Kn(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>o&&(a=o),Kn(i.window,t,n-o,a,i.wnext),(o-=a)?(Kn(i.window,t,n-o,o,0),i.wnext=o,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a)))}(e,e.output,e.next_out,p-e.avail_out),u-=e.avail_in,p-=e.avail_out,e.total_in+=u,e.total_out+=p,n.total+=p,n.wrap&&p&&(e.adler=n.check=Q()(n)?na(n.check,a,p,e.next_out-p):ea(n.check,a,p,e.next_out-p)),e.data_type=n.bits+(n.last?64:0)+(n.mode===zi?128:0)+(n.mode===Ji||n.mode===Yi?256:0),(0===u&&0===p||t===ji)&&I===wi&&(I=Di),I}var js,ks=1,Is=7;function ws(e){if(e<ks||e>Is)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function Es(e,t){for(var n=0;n<e.length;n++)this[t+n]=e[n]}ws.prototype.init=function(e,t,n,o,a){var i;switch(this.windowBits=e,this.level=t,this.memLevel=n,this.strategy=o,3!==this.mode&&4!==this.mode||(this.windowBits+=16),this.mode===Is&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Yn,this.mode){case ks:case 3:case 5:i=function(e,t,n,o,a,i){if(!e)return ua;var s=1;if(t===ha&&(t=6),o<0?(s=0,o=-o):o>15&&(s=2,o-=16),a<1||a>ja||n!==ya||o<8||o>15||t<0||t>9||i<0||i>ba)return za(e,ua);8===o&&(o=9);var r=new ti;return e.state=r,r.strm=e,r.wrap=s,r.gzhead=null,r.w_bits=o,r.w_size=1<<r.w_bits,r.w_mask=r.w_size-1,r.hash_bits=a+7,r.hash_size=1<<r.hash_bits,r.hash_mask=r.hash_size-1,r.hash_shift=~~((r.hash_bits+Ta-1)/Ta),r.window=new Wn(2*r.w_size),r.head=new qn(r.hash_size),r.prev=new qn(r.w_size),r.lit_bufsize=1<<a+6,r.pending_buf_size=4*r.lit_bufsize,r.pending_buf=new Wn(r.pending_buf_size),r.d_buf=1*r.lit_bufsize,r.l_buf=3*r.lit_bufsize,r.level=t,r.strategy=i,r.method=n,ni(e)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case Is:i=vs(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===i?(this.write_in_progress=!1,this.init_done=!0):this._error(i)},ws.prototype.params=function(){throw new Error("deflateParams Not supported")},ws.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(0===this.mode)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},ws.prototype.write=function(e,t,n,o,a,i,s){this._writeCheck(),this.write_in_progress=!0;var r=this;return ft((function(){r.write_in_progress=!1;var l=r._write(e,t,n,o,a,i,s);r.callback(l[0],l[1]),r.pending_close&&r.close()})),this},ws.prototype.writeSync=function(e,t,n,o,a,i,s){return this._writeCheck(),this._write(e,t,n,o,a,i,s)},ws.prototype._write=function(e,t,n,o,a,i,s){if(this.write_in_progress=!0,0!==e&&1!==e&&2!==e&&3!==e&&4!==e&&5!==e)throw new Error("Invalid flush value");null==t&&(t=new ge(0),o=0,n=0),a._set?a.set=a._set:a.set=Es;var r,l=this.strm;switch(l.avail_in=o,l.input=t,l.next_in=n,l.avail_out=s,l.output=a,l.next_out=i,this.mode){case ks:case 3:case 5:r=oi(l,e);break;case Is:case 2:case 4:case 6:r=ys(l,e);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==r&&0!==r&&this._error(r),this.write_in_progress=!1,[l.avail_in,l.avail_out]},ws.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===ks||3===this.mode||5===this.mode?function(e){var t;e&&e.state&&((t=e.state.status)!==Na&&t!==Ua&&t!==Ba&&t!==Ma&&t!==xa&&t!==Va&&t!==La?za(e,ua):(e.state=null,t===Va&&za(e,pa)))}(this.strm):function(e){if(!e||!e.state)return Ti;var t=e.state;t.window&&(t.window=null),e.state=null}(this.strm),this.mode=0)},ws.prototype.reset=function(){switch(this.mode){case ks:case 5:js=ni(this.strm);break;case 2:case 6:js=hs(this.strm)}0!==js&&this._error(js)},ws.prototype._error=function(e){this.onerror($n[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var Cs=ee()({NONE:0,DEFLATE:ks,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:Is,Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8,Zlib:ws}),Ts={};R()(o=U()(Cs)).call(o,(function(e){Ts[e]=Cs[e]})),Ts.Z_MIN_WINDOWBITS=8,Ts.Z_MAX_WINDOWBITS=15,Ts.Z_DEFAULT_WINDOWBITS=15,Ts.Z_MIN_CHUNK=64,Ts.Z_MAX_CHUNK=1/0,Ts.Z_DEFAULT_CHUNK=16384,Ts.Z_MIN_MEMLEVEL=1,Ts.Z_MAX_MEMLEVEL=9,Ts.Z_DEFAULT_MEMLEVEL=8,Ts.Z_MIN_LEVEL=-1,Ts.Z_MAX_LEVEL=9,Ts.Z_DEFAULT_LEVEL=Ts.Z_DEFAULT_COMPRESSION;var Ss={Z_OK:Ts.Z_OK,Z_STREAM_END:Ts.Z_STREAM_END,Z_NEED_DICT:Ts.Z_NEED_DICT,Z_ERRNO:Ts.Z_ERRNO,Z_STREAM_ERROR:Ts.Z_STREAM_ERROR,Z_DATA_ERROR:Ts.Z_DATA_ERROR,Z_MEM_ERROR:Ts.Z_MEM_ERROR,Z_BUF_ERROR:Ts.Z_BUF_ERROR,Z_VERSION_ERROR:Ts.Z_VERSION_ERROR};function _s(e,t,n){var o=[],a=0;function i(){for(var t;null!==(t=e.read());)o.push(t),a+=t.length;e.once("readable",i)}function s(){var t=w()(ge).call(ge,o,a);o=[],n(null,t),e.close()}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",i),n(t)})),e.on("end",s),e.end(t),i()}function Ds(e,t){if("string"==typeof t&&(t=new ge(t)),!et(t))throw new TypeError("Not a string or buffer");var n=Ts.Z_FINISH;return e._processChunk(t,n)}function Ns(e){if(!(this instanceof Ns))return new Ns(e);Rs.call(this,e,Ts.DEFLATE)}function Us(e){if(!(this instanceof Us))return new Us(e);Rs.call(this,e,Ts.INFLATE)}function Bs(e){if(!(this instanceof Bs))return new Bs(e);Rs.call(this,e,Ts.GZIP)}function Ms(e){if(!(this instanceof Ms))return new Ms(e);Rs.call(this,e,Ts.GUNZIP)}function xs(e){if(!(this instanceof xs))return new xs(e);Rs.call(this,e,Ts.DEFLATERAW)}function Vs(e){if(!(this instanceof Vs))return new Vs(e);Rs.call(this,e,Ts.INFLATERAW)}function Ls(e){if(!(this instanceof Ls))return new Ls(e);Rs.call(this,e,Ts.UNZIP)}function Rs(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||Ts.Z_DEFAULT_CHUNK,Gn.call(this,e),e.flush&&e.flush!==Ts.Z_NO_FLUSH&&e.flush!==Ts.Z_PARTIAL_FLUSH&&e.flush!==Ts.Z_SYNC_FLUSH&&e.flush!==Ts.Z_FULL_FLUSH&&e.flush!==Ts.Z_FINISH&&e.flush!==Ts.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||Ts.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<Ts.Z_MIN_CHUNK||e.chunkSize>Ts.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<Ts.Z_MIN_WINDOWBITS||e.windowBits>Ts.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<Ts.Z_MIN_LEVEL||e.level>Ts.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<Ts.Z_MIN_MEMLEVEL||e.memLevel>Ts.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=Ts.Z_FILTERED&&e.strategy!=Ts.Z_HUFFMAN_ONLY&&e.strategy!=Ts.Z_RLE&&e.strategy!=Ts.Z_FIXED&&e.strategy!=Ts.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!et(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new Ts.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var o=new Error(e);o.errno=t,o.code=Ts.codes[t],n.emit("error",o)};var o=Ts.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(o=e.level);var a=Ts.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(a=e.strategy),this._binding.init(e.windowBits||Ts.Z_DEFAULT_WINDOWBITS,o,e.memLevel||Ts.Z_DEFAULT_MEMLEVEL,a,e.dictionary),this._buffer=new ge(this._chunkSize),this._offset=0,this._closed=!1,this._level=o,this._strategy=a,this.once("end",this.close)}R()(a=U()(Ss)).call(a,(function(e){Ss[Ss[e]]=e})),Nt(Rs,Gn),Rs.prototype.params=function(e,t,n){if(e<Ts.Z_MIN_LEVEL||e>Ts.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=Ts.Z_FILTERED&&t!=Ts.Z_HUFFMAN_ONLY&&t!=Ts.Z_RLE&&t!=Ts.Z_FIXED&&t!=Ts.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var o=this;this.flush(Ts.Z_SYNC_FLUSH,(function(){o._binding.params(e,t),o._hadError||(o._level=e,o._strategy=t,n&&n())}))}else ft(n)},Rs.prototype.reset=function(){return this._binding.reset()},Rs.prototype._flush=function(e){this._transform(new ge(0),"",e)},Rs.prototype.flush=function(e,t){var n=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=Ts.Z_FULL_FLUSH),n.ended)t&&ft(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var o=this;this.once("drain",(function(){o.flush(t)}))}else this._flushFlag=e,this.write(new ge(0),"",t)},Rs.prototype.close=function(e){if(e&&ft(e),!this._closed){this._closed=!0,this._binding.close();var t=this;ft((function(){t.emit("close")}))}},Rs.prototype._transform=function(e,t,n){var o,a=this._writableState,i=(a.ending||a.ended)&&(!e||a.length===e.length);if(null===!e&&!et(e))return n(new Error("invalid input"));i?o=Ts.Z_FINISH:(o=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||Ts.Z_NO_FLUSH)),this._processChunk(e,o,n)},Rs.prototype._processChunk=function(e,t,n){var o=e&&e.length,a=this._chunkSize-this._offset,i=0,s=this,r="function"==typeof n;if(!r){var c,d=[],u=0;this.on("error",(function(e){c=e}));do{var p=this._binding.writeSync(t,e,i,o,this._buffer,this._offset,a)}while(!this._hadError&&v(p[0],p[1]));if(this._hadError)throw c;var m=w()(ge).call(ge,d,u);return this.close(),m}var h=this._binding.write(t,e,i,o,this._buffer,this._offset,a);function v(c,p){if(!s._hadError){var m=a-p;if(function(e,t){if(!e)throw new Error(t)}(m>=0,"have should not go down"),m>0){var h,f=l()(h=s._buffer).call(h,s._offset,s._offset+m);s._offset+=m,r?s.push(f):(d.push(f),u+=f.length)}if((0===p||s._offset>=s._chunkSize)&&(a=s._chunkSize,s._offset=0,s._buffer=new ge(s._chunkSize)),0===p){if(i+=o-c,o=c,!r)return!0;var g=s._binding.write(t,e,i,o,s._buffer,s._offset,s._chunkSize);return g.callback=v,void(g.buffer=e)}if(!r)return!1;n()}}h.buffer=e,h.callback=v},Nt(Ns,Rs),Nt(Us,Rs),Nt(Bs,Rs),Nt(Ms,Rs),Nt(xs,Rs),Nt(Vs,Rs),Nt(Ls,Rs);var Ps={codes:Ss,createDeflate:function(e){return new Ns(e)},createInflate:function(e){return new Us(e)},createDeflateRaw:function(e){return new xs(e)},createInflateRaw:function(e){return new Vs(e)},createGzip:function(e){return new Bs(e)},createGunzip:function(e){return new Ms(e)},createUnzip:function(e){return new Ls(e)},deflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),_s(new Ns(t),e,n)},deflateSync:function(e,t){return Ds(new Ns(t),e)},gzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),_s(new Bs(t),e,n)},gzipSync:function(e,t){return Ds(new Bs(t),e)},deflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),_s(new xs(t),e,n)},deflateRawSync:function(e,t){return Ds(new xs(t),e)},unzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),_s(new Ls(t),e,n)},unzipSync:function(e,t){return Ds(new Ls(t),e)},inflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),_s(new Us(t),e,n)},inflateSync:function(e,t){return Ds(new Us(t),e)},gunzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),_s(new Ms(t),e,n)},gunzipSync:function(e,t){return Ds(new Ms(t),e)},inflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),_s(new Vs(t),e,n)},inflateRawSync:function(e,t){return Ds(new Vs(t),e)},Deflate:Ns,Inflate:Us,Gzip:Bs,Gunzip:Ms,DeflateRaw:xs,InflateRaw:Vs,Unzip:Ls,Zlib:Rs};t["a"]=class{constructor(e,t,n){this.SDKAPPID=e,this.EXPIRETIME=n,this.PRIVATEKEY=t}genTestUserSig(e){return this._isNumber(this.SDKAPPID)?this._isString(this.PRIVATEKEY)?this._isString(e)?this._isNumber(this.EXPIRETIME)?(console.log("sdkAppID="+this.SDKAPPID+" key="+this.PRIVATEKEY+" userID="+e+" expire="+this.EXPIRETIME),this.genSigWithUserbuf(e,this.EXPIRETIME,null)):(console.error("expireTime must be a number"),""):(console.error("userID must be a string"),""):(console.error("privateKey must be a string"),""):(console.error("sdkAppID must be a number"),"")}newBuffer(e,t){return ge.from?ge.from(e,t):new ge(e,t)}unescape(e){return e.replace(/_/g,"=").replace(/\-/g,"/").replace(/\*/g,"+")}escape(e){return e.replace(/\+/g,"*").replace(/\//g,"-").replace(/=/g,"_")}encode(e){return this.escape(this.newBuffer(e).toString("base64"))}decode(e){return this.newBuffer(this.unescape(e),"base64")}base64encode(e){return this.newBuffer(e).toString("base64")}base64decode(e){return this.newBuffer(e,"base64").toString()}_hmacsha256(e,t,n,o){let a="TLS.identifier:"+e+"\n";a+="TLS.sdkappid:"+this.SDKAPPID+"\n",a+="TLS.time:"+t+"\n",a+="TLS.expire:"+n+"\n",null!=o&&(a+="TLS.userbuf:"+o+"\n");let i=at.HmacSHA256(a,this.PRIVATEKEY);return at.enc.Base64.stringify(i)}_utc(){return Math.round(ne()()/1e3)}_isNumber(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"==typeof e&&e.constructor===Number)}_isString(e){return"string"==typeof e}genSigWithUserbuf(e,t,n){let o=this._utc(),a={"TLS.ver":"2.0","TLS.identifier":e,"TLS.sdkappid":this.SDKAPPID,"TLS.time":o,"TLS.expire":t},i="";if(null!=n){let s=this.base64encode(n);a["TLS.userbuf"]=s,i=this._hmacsha256(e,o,t,s)}else i=this._hmacsha256(e,o,t,null);a["TLS.sig"]=i;let s=V()(a),r=Ps.deflateSync(this.newBuffer(s)).toString("base64"),l=this.escape(r);return console.log("ret="+l),l}validate(e){let t=this.decode(e),n=Ps.inflateSync(t);console.log("validate ret="+n)}}}).call(this,n("c8ba"))},e32f:function(e){e.exports=JSON.parse('{"发起会话":"Start chat","发起单聊":"New one-to-one chat","发起群聊":"New group chat","该用户不存在":"The user does not exist","创建群聊,请注册 TUIGroup 模块":"To create a group chat, please register the TUIGroup module","创建成功":"Creation successful","发起多人会话(群聊)":"New group chat","群头像":"Group profile photo","群名称":"Group name","群ID":"Group ID","群类型":"Group type","选填":"Optional","取消":"Cancel","创建":"Create","类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主神奇。详见":"Similar to a WeChat group. Users can join the group only via invitation by existing members. The invitation does not need to be agreed by the invitee or approved by the group owner. See the documentation for details.","类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见":"Similar to a QQ group. After a public group is created, the group owner can designate group admins. To join the group, a user needs to search the group ID and send a request, which needs to be approved by the group owner or an admin before the user can join the group. See the documentation for details. ","创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见":"After the group is created, a user can join and quit the group freely and can view the messages sent before joining the group. It is suitable for scenarios that integrate Tencent Real-Time Communication (TRTC), such as audio and video conferences and online education. See the documentation for details.","创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见":"After a group is created, a user can join and quit the group freely. The group can have an unlimited number of members, but it does not store message history. It can be combined with Live Video Broadcasting (LVB) to support on-screen comment scenarios. See the documentation for details. ","产品文档":"product documentation","设置群名称":"Group name","请输入群名称":"Enter the group name","设置群ID":"Group ID","请输入群ID":"Enter the group ID","选择群类型":"Group type"}')},e435:function(e,t,n){e.exports=n.p+"img/downaload-image.ac16e1ec.png"},e537:function(e,t,n){},e5cf:function(e,t,n){"use strict";n("5cd6")},e5da:function(e,t,n){},e68c:function(e){e.exports=JSON.parse('{"登录":"登录","登录当前账号":"登录当前账号","切换其他账号":"切换其他账号","我已阅读并同意":"我已阅读并同意","和":"和","隐私条例":"隐私条例","用户协议":"用户协议","免费体验":"免费体验","体验更多Demo":"体验更多Demo","访问官网":"访问官网","超10亿用户的信赖":"超10亿用户的信赖","一分钟":"一分钟","改2行代码,1分钟跑通demo":"改2行代码,1分钟跑通demo","每月服务客户数超过10000家":"每月服务客户数超过10000家","消息收发成功率":"消息收发成功率,服务可靠性高于99.99%","10亿":"10亿","每月活跃用户数超过10亿":"每月活跃用户数超过10亿","请输入手机号":"请输入手机号","请输入userID":"请输入userID","请输入正确的手机号":"请输入正确的手机号","请先勾选用户协议":"请先勾选用户协议","请输入验证码":"请输入验证码","获取验证码":"获取验证码","登录失败":"登录失败","验证码发送成功":"验证码发送成功","发送验证码失败":"验证码发送失败","Android":"Android","iOS":"iOS","小程序":"小程序","Windows":"Windows","Mac OS":"Mac OS","扫描二维码下载":"扫描二维码下载","微信扫码进入":"微信扫码进入","点击直接下载":"点击直接下载","更多客户端体验":"更多客户端体验","微信扫一扫,免费体验腾讯云 IM 小程序":"微信扫一扫,免费体验腾讯云 IM 小程序","或者截图至相册,切换微信扫一扫识别体验":"或者截图至相册,切换微信扫一扫识别体验"}')},e6ce:function(e,t,n){},ec3a:function(e,t,n){"use strict";n("7507")},ed40:function(e,t,n){"use strict";n("463a")},ee8f:function(e,t,n){"use strict";n("eedf")},eedf:function(e,t,n){},f017:function(e){e.exports=JSON.parse('{"取消":"Cancel","完成":"Done","已选中":"Selected","人":"","保存":"Save","请输入userID":"Enter a user ID","确定":"submit","全选":"All","已在群聊中":"exists"}')},f1ac:function(e,t,n){},f271:function(e,t,n){},f419:function(e,t,n){},f712:function(e){e.exports=JSON.parse('{"欢迎使用":"Welcome","建议体验功能":"Recommended Demo Features","用UI组件快速集成":"Quick Integration with UI Components","创建项目":"Create a project","下载TUIKit组件":"Download the TUIKit component","引入TUIKit组件":"Import the TUIKit component","获取SDKAppID":"Obtain the SDKAppID, key, and userID","调用TUIKit组件":"Call the TUIKit component","启动项目":"Launch the project","发送您的第一条消息":"Send your first mess","首购低至1折":"Up to 90% off for first purchase","IM首购9percent折":"Up to 91% off for first purchase","续费9折起":"Up to 10% off for re-purchase","复购75%起":"Up to 25% off for re-purchase","立即选购":"Purchase now","体验更多Demo":"More demos","立即前往":"Try now","已完成":"Completed","待体验":"To try out","发送一条消息":"Send a message","撤回一条消息":"Recall a message","切换一次使用语言":"Change the language","发起一个多人会话":"Create a group chat","发起一个群聊":"New a group chat","开启一次群禁言":"Mute group members","解散一个群聊":"Disband a group","解散一个多人会话":"Disband a group","发起一次通话":"Make a call","修改一次我的昵称":"Edit a nick","我们为您默认提供了一位“示例好友”和一个“示例客服群”您不用额外添加好友和群聊就可完整体验腾讯云 IM 单聊、群聊的所有功能。":"We provide a Sample Friend and a Sample Customer Service Group by default, so that you can fully try out all the features of one-to-one chat and group chat of Tencent Cloud IM without adding additional friends or groups.","随时随地":"You can log in and try out anytime and anywhere.","男":"Male","女":"Female","用户ID":"user ID","个性签名":"Status","暂未设置":"Not set","出生年月":"Birthday","编辑资料":"Edit profile","关于腾讯云IM":"About Tencent Cloud IM","退出登录":"Log out","隐私条例":"Privacy Policy","用户协议":"User Agreement","免责声明":"Disclaimers","联系我们":"Contact us","注销账户":"Cancel account","SDK版本":"SDK version","注销后,您将无法使用当前账号,相关数据也将删除无法找回。 当前账号":"Instant Messaging (IM) is a test product provided by Tencent Cloud, and Tencent Cloud enjoys its copyright and ownership. It is for trying out features, but not for commercial use. To follow regulatory requirements of the authority, audio and video-based interactions performed via IM will be recorded and archived throughout the whole process. It is strictly prohibited to disseminate via IM any pornographic, abusive, violent, political and other noncompliant content.","IM-免责声明":"Im - Disclaimer","IM(“本产品”)是由腾讯云提供的一款测试产品,腾讯云享有本产品的著作权和所有权。本产品仅用于功能体验,不得用于任何商业用途。依据相关部门监管要求,严禁在使用中有任何色情、辱骂、暴恐、涉政等违法内容传播。":"Instant Messaging (IM) is a demo product provided by Tencent Cloud, and Tencent Cloud retains its copyright and ownership. This product is for trying out features, but not for commercial use. To follow regulatory requirements of the authority, audio and video-based interactions performed via IM will be recorded and archived throughout the whole process. It is strictly prohibited to disseminate any pornographic, abusive, violent, sensitive and other noncompliant content.","同意":"Agree","取消":"Cancel","注销":"Cancel","关闭":"close","开启":"open","关于腾讯云·通信":"About Tencent Cloud IM","消息":"message","通讯录":"contact","个人中心":"Profile","已读回执":"Read receipt","消息阅读状态":"Message read status","关闭阅读状态":"If disabled, the message read status is hidden for all your messages and for all the messages sent by memebers in a chat.","开启阅读状态":"If enabled, the message read status is displayed for all your messages and for all the messages sent by memebers in a chat.","显示在线状态":"Display online status","开启在线状态":"If enabled, the users\' online status will displayed in your session and contact list.","关闭在线状态":"If disabled, the users\' online status will not displayed in your session and contact list.","消息通知":"Message Notification"}')},f7e2:function(e,t,n){},fcd0:function(e,t,n){"use strict";n.d(t,"b",(function(){return rf})),n.d(t,"a",(function(){return Wv}));var o=n("4573"),a=n.n(o),i=n("fa81"),s=n.n(i),r=n("14b1"),l=n.n(r),c=n("2fa7"),d=(n("14d9"),n("78b2")),u=n.n(d),p=n("e76e"),m=n.n(p),h=n("5b1a"),v=n.n(h),f=n("3818"),g=n.n(f),b=n("2b0b"),O=n.n(b),y=n("e4f0"),j=n.n(y),k=n("fc56"),I=n.n(k),w=n("4c43"),E=n.n(w),C=n("3393"),T=n.n(C),S=n("65b8"),_=n.n(S),D=n("c193");class N{destroyed(){}updateStore(e,t){}}var U=n("259d");class B extends N{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIChat",{},u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){m()(this.currentStore,e),e.conversation.conversationID?e.conversation.conversationID&&e.conversation.conversationID!==t.conversation.conversationID&&this.render(e.conversation):this.currentStore.messageList=[]}render(e){const t=15;if(this.currentStore.isFirstRender=!0,this.currentStore.messageList=[],this.currentStore.readSet.clear(),this.getMessageList({conversationID:e.conversationID,count:t}),e.type===this.TUICore.TIM.TYPES.CONV_GROUP){var n;this.currentStore.userInfo.isGroup=!0;const t={groupID:e.groupProfile.groupID,userIDList:[e.groupProfile.selfInfo.userID]};this.getGroupProfile({groupID:e.groupProfile.groupID}),this.getGroupMemberProfile(t).then(e=>{const{memberList:t}=e.data,[n]=t;this.currentStore.selfInfo=n}),null===this||void 0===this||null===(n=this.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||null===(n=n.TUIGroup)||void 0===n||n.getGroupMemberList({groupID:e.groupProfile.groupID,count:100,offset:0}).then(e=>{var t;this.currentStore.allMemberList=null===(t=e.data)||void 0===t?void 0:t.memberList})}else this.currentStore.userInfo.isGroup=!1,this.currentStore.userInfo.list=[null===e||void 0===e?void 0:e.userProfile]}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_RECEIVED,this.handleMessageReceived,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_MODIFIED,this.handleMessageModified,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_REVOKED,this.handleMessageRevoked,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_READ_BY_PEER,this.handleMessageReadByPeer,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.MESSAGE_READ_RECEIPT_RECEIVED,this.handleMessageReadReceiptReceived,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_RECEIVED,this.handleMessageReceived),this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_MODIFIED,this.handleMessageModified),this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_REVOKED,this.handleMessageRevoked),this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_READ_BY_PEER,this.handleMessageReadByPeer),this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.MESSAGE_READ_RECEIPT_RECEIVED,this.handleMessageReadReceiptReceived)}handleMessageReceived(e){var t;null===e||void 0===e||null===(t=e.data)||void 0===t||a()(t).call(t,e=>{var t;(null===e||void 0===e?void 0:e.conversationID)===(null===this||void 0===this||null===(t=this.store)||void 0===t||null===(t=t.conversation)||void 0===t?void 0:t.conversationID)&&(this.currentStore.messageList=[...this.currentStore.messageList,e]),D["c"].getInstance().notify(e)})}handleMessageModified(e){const t=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=t}handleMessageRevoked(e){const t=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=t}handleMessageReadByPeer(e){const t=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=t}handleGroupListUpdated(e){var t;null===e||void 0===e||l()(t=e.data).call(t,e=>{var t;return(null===e||void 0===e?void 0:e.groupID)===(null===this||void 0===this||null===(t=this.store)||void 0===t||null===(t=t.conversation)||void 0===t||null===(t=t.groupProfile)||void 0===t?void 0:t.groupID)&&(this.store.conversation.groupProfile=e,this.currentStore.conversation={},this.currentStore.conversation=this.store.conversation),e})}handleMessageReadReceiptReceived(e){const t=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=t}handleMessageOptions(e,t,n,o){var a,i,s,r;const l={to:"",conversationType:(null===o||void 0===o?void 0:o.type)||this.store.conversation.type,payload:e,needReadReceipt:this.currentStore.needReadReceipt};switch(this.currentStore.needTyping&&(l.cloudCustomData={messageFeature:{needTyping:1,version:1}},l.cloudCustomData=v()(l.cloudCustomData)),"file"===t&&n&&(l.onProgress=n),l.conversationType){case this.TUICore.TIM.TYPES.CONV_C2C:l.to=(null===o||void 0===o||null===(a=o.userProfile)||void 0===a?void 0:a.userID)||(null===(i=this.store.conversation)||void 0===i||null===(i=i.userProfile)||void 0===i?void 0:i.userID)||"";break;case this.TUICore.TIM.TYPES.CONV_GROUP:l.to=(null===o||void 0===o||null===(s=o.groupProfile)||void 0===s?void 0:s.groupID)||(null===(r=this.store.conversation)||void 0===r||null===(r=r.groupProfile)||void 0===r?void 0:r.groupID)||"";break;default:break}return l}handlePromiseCallback(e){return new g.a((t,n)=>{const o={TUIName:"TUIChat",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}handlePromiseCallbackRetry(e,t=[],n=function(){return!1}){return new g.a((o,a)=>{let i=0;function s(){i++,e().then(o).catch(e=>{i>t.length||n&&n(e)?a(e):O()(s,t[i-1])})}s()})}handleUploadProgress(e,t){var n;l()(n=this.currentStore.messageList).call(n,n=>(n.ID===t.ID&&(n.progress=e),n))}sendFaceMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions(e,"face"),a=this.TUICore.tim.createFaceMessage(n);this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendImageMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions({file:e},"file",e=>{this.handleUploadProgress(e,a)}),a=this.TUICore.tim.createImageMessage(n);a.progress=.01,this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendVideoMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions({file:e},"file",e=>{this.handleUploadProgress(e,a)}),a=this.TUICore.tim.createVideoMessage(n);a.progress=.01,this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendFileMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions({file:e},"file",e=>{this.handleUploadProgress(e,a)}),a=this.TUICore.tim.createFileMessage(n);a.progress=.01,this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendCustomMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;e.data=v()(e.data);const n=this.handleMessageOptions(e,"custom"),a=this.TUICore.tim.createCustomMessage(n);this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendLocationMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=this.handleMessageOptions(e,"location"),o=this.TUICore.tim.createLocationMessage(n);this.currentStore.messageList.push(o);const a=await this.TUICore.tim.sendMessage(o);t(a)}catch(o){n(o);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}forwardMessage(e,t){return this.handlePromiseCallback(async(n,o)=>{try{const o=this.handleMessageOptions(e,"forward",{},t),a=this.TUICore.tim.createForwardMessage(o),i=await this.TUICore.tim.sendMessage(a);this.store.conversation.conversationID===i.data.message.conversationID&&this.currentStore.messageList.push(i.data.message),n(i)}catch(a){o(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}async sendMessageReadReceipt(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.sendMessageReadReceipt(e);t(n)}catch(o){n(o)}})}async getMessageReadReceiptList(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getMessageReadReceiptList(e);t(n)}catch(o){n(o)}})}async getMessageList(e,t){return this.handlePromiseCallback(async(n,o)=>{try{const o=await this.TUICore.tim.getMessageList(e);o.data.messageList.length&&await this.getMessageReadReceiptList(o.data.messageList),this.currentStore.messageList=t?[...o.data.messageList,...this.currentStore.messageList]:o.data.messageList,this.currentStore.nextReqMessageID=o.data.nextReqMessageID,this.currentStore.isCompleted=o.data.isCompleted,n(o)}catch(a){o(a)}})}async getHistoryMessageList(){const e={conversationID:this.currentStore.conversation.conversationID,nextReqMessageID:this.currentStore.nextReqMessageID,count:15};this.currentStore.isCompleted||this.getMessageList(e,!0)}sendTextMessage(e,t){return this.handlePromiseCallback(async(n,o)=>{try{var a;const o=this.handleMessageOptions({text:e},"text");let i={};if(o.cloudCustomData)try{i=Object(U["a"])(o.cloudCustomData)}catch{i={}}const s=v()(t),r=m()(o,{cloudCustomData:s,...i}),c=this.TUICore.tim.createTextMessage(r);this.currentStore.messageList.push(c);const d=await this.TUICore.tim.sendMessage(c);this.currentStore.messageList=l()(a=this.currentStore.messageList).call(a,e=>e.ID===d.data.message.ID?d.data.message:e),n(d)}catch(i){o(i);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendTypingMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{e.data=v()(e.data);const n=this.handleMessageOptions(e,"custom"),o=this.TUICore.tim.createCustomMessage(n),a=await this.TUICore.tim.sendMessage(o,{onlineUserOnly:!0});t(a)}catch(o){n(o);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendTextAtMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions(e,"text"),a=this.TUICore.tim.createTextAtMessage(n);this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}sendMergerMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=this.handleMessageOptions(e,"merger"),a=this.TUICore.tim.createMergerMessage(n);this.currentStore.messageList.push(a);const i=await this.TUICore.tim.sendMessage(a);this.currentStore.messageList=l()(o=this.currentStore.messageList).call(o,e=>e.ID===i.data.message.ID?i.data.message:e),t(i)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}revokeMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=await this.TUICore.tim.revokeMessage(e),a=Object(U["a"])(null===e||void 0===e?void 0:e.cloudCustomData);null!==a&&void 0!==a&&null!==(o=a.messageReply)&&void 0!==o&&o.messageRootID&&await this.revokeReplyMessage(e),t(n)}catch(a){n(a);const e=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=e}})}resendMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;const n=await this.TUICore.tim.resendMessage(e);this.currentStore.messageList=j()(o=this.currentStore.messageList).call(o,t=>t.ID!==e.ID),this.currentStore.messageList.push(n.data.message),t(n)}catch(a){n(a)}})}deleteMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.deleteMessage(e);t(n);const o=this.currentStore.messageList;this.currentStore.messageList=[],this.currentStore.messageList=o}catch(o){n(o)}})}modifyMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.modifyMessage(e);t(n)}catch(o){const e=null===o||void 0===o?void 0:o.code,t=null===o||void 0===o?void 0:o.data;2480===e?console.warn("MODIFY_MESSAGE_ERROR","修改消息发生冲突,data.message 是最新的消息","data.message:",null===t||void 0===t?void 0:t.message):2481===e?console.warn("MODIFY_MESSAGE_ERROR","不支持修改直播群消息"):20026===e&&console.warn("MODIFY_MESSAGE_ERROR","消息不存在"),n(o)}})}replyMessage(e,t){const n=()=>this.handlePromiseCallback(async(n,o)=>{try{var a,i,s,r;const o={messageAbstract:null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.text,messageSender:null===e||void 0===e?void 0:e.from,messageID:null===e||void 0===e?void 0:e.ID,messageType:null===e||void 0===e?void 0:e.type,messageTime:null===e||void 0===e?void 0:e.time,messageSequence:null===e||void 0===e?void 0:e.sequence,version:1};if(!t){var l,c;const n=Object(U["a"])(null===e||void 0===e?void 0:e.cloudCustomData),o=null===n||void 0===n||null===(l=n.messageReply)||void 0===l?void 0:l.messageRootID;t=await(null===this||void 0===this||null===(c=this.currentStore)||void 0===c||null===(c=c.messageList)||void 0===c?void 0:I()(c).call(c,e=>(null===e||void 0===e?void 0:e.ID)===o))||this.findMessage(o)}const u=null!==(i=t)&&void 0!==i&&i.cloudCustomData?Object(U["a"])(null===(s=t)||void 0===s?void 0:s.cloudCustomData):{messageReplies:{}};var d;if(null!==u&&void 0!==u&&null!==(r=u.messageReplies)&&void 0!==r&&r.replies)u.messageReplies.replies=[...null===u||void 0===u||null===(d=u.messageReplies)||void 0===d?void 0:d.replies,o];else u.messageReplies={replies:[o],version:1};t.cloudCustomData=v()(u);const p=this.modifyMessage(t);n(p)}catch(u){o(u)}}),o=function(e){return!e||2480!==(null===e||void 0===e?void 0:e.code)};return this.handlePromiseCallbackRetry(n,[500,1e3,3e3],o)}revokeReplyMessage(e,t){const n=()=>this.handlePromiseCallback(async(n,o)=>{try{var a,i,s;if(!t){var r,l;const n=Object(U["a"])(null===e||void 0===e?void 0:e.cloudCustomData),o=null===n||void 0===n||null===(r=n.messageReply)||void 0===r?void 0:r.messageRootID;t=await(null===this||void 0===this||null===(l=this.currentStore)||void 0===l||null===(l=l.messageList)||void 0===l?void 0:I()(l).call(l,e=>(null===e||void 0===e?void 0:e.ID)===o))||this.findMessage(o)}const o=null!==(a=t)&&void 0!==a&&a.cloudCustomData?Object(U["a"])(null===(i=t)||void 0===i?void 0:i.cloudCustomData):{messageReplies:{}};if(null!==o&&void 0!==o&&null!==(s=o.messageReplies)&&void 0!==s&&s.replies){var c,d;const t=E()(c=o.messageReplies.replies).call(c,t=>(null===t||void 0===t?void 0:t.messageID)===(null===e||void 0===e?void 0:e.ID));null===o||void 0===o||null===(d=o.messageReplies)||void 0===d||null===(d=d.replies)||void 0===d||T()(d).call(d,t,1)}t.cloudCustomData=v()(o);const u=this.modifyMessage(t);n(u)}catch(u){o(u)}}),o=function(e){return!e||2480!==(null===e||void 0===e?void 0:e.code)};return this.handlePromiseCallbackRetry(n,[500,1e3,3e3],o)}emojiReact(e,t){const n=()=>this.handlePromiseCallback(async(n,o)=>{try{var a,i,s,r,l,c,d;e&&null!==(a=e)&&void 0!==a&&a.ID&&t||o();const b=null===(i=this.TUICore)||void 0===i||null===(i=i.TUIServer)||void 0===i||null===(i=i.TUIProfile)||void 0===i||null===(i=i.store)||void 0===i||null===(i=i.profile)||void 0===i?void 0:i.userID;e=await(null===this||void 0===this||null===(s=this.currentStore)||void 0===s||null===(s=s.messageList)||void 0===s?void 0:I()(s).call(s,t=>{var n;return(null===t||void 0===t?void 0:t.ID)===(null===(n=e)||void 0===n?void 0:n.ID)}))||this.findMessage(null===(r=e)||void 0===r?void 0:r.ID);const O=null!==(l=e)&&void 0!==l&&l.cloudCustomData?Object(U["a"])(null===(c=e)||void 0===c?void 0:c.cloudCustomData):{messageReact:{}};var u;if(null!==O&&void 0!==O&&null!==(d=O.messageReact)&&void 0!==d&&d.reacts)if(null!==O&&void 0!==O&&null!==(u=O.messageReact)&&void 0!==u&&u.reacts[t]){var p;const e=null===O||void 0===O||null===(p=O.messageReact)||void 0===p||null===(p=p.reacts[t])||void 0===p?void 0:_()(p).call(p,b);var m,h,f,g;if(-1===e)null===O||void 0===O||null===(m=O.messageReact)||void 0===m||null===(m=m.reacts[t])||void 0===m||m.push(b);else if(null===O||void 0===O||null===(h=O.messageReact)||void 0===h||null===(h=h.reacts[t])||void 0===h||T()(h).call(h,e,1),0===(null===O||void 0===O||null===(f=O.messageReact)||void 0===f||null===(f=f.reacts[t])||void 0===f?void 0:f.length))null===O||void 0===O||null===(g=O.messageReact)||void 0===g||delete g.reacts[t]}else O.messageReact.reacts[t]=[b];else O.messageReact={reacts:{},version:1},O.messageReact.reacts[t]=[b];e.cloudCustomData=v()(O);const y=this.modifyMessage(e);n(y)}catch(b){o(b)}}),o=function(e){return!e||2480!==(null===e||void 0===e?void 0:e.code)};return this.handlePromiseCallbackRetry(n,[500,1e3,3e3],o)}findMessage(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.findMessage(e);t(n)}catch(o){n(o)}})}getGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupProfile(e);this.currentStore.conversation.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}getGroupMemberProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupMemberProfile(e);t(n)}catch(o){n(o)}})}handleGroupApplication(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.handleGroupApplication(e);t(n)}catch(o){n(o)}})}async getUserProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getUserProfile({userIDList:e});t(n)}catch(o){n(o)}})}async getFriendList(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.getFriendList();e(t)}catch(n){t(n)}})}async checkFriend(e,t){return this.handlePromiseCallback(async(n,o)=>{try{var a;const o=await this.TUICore.tim.checkFriend({userIDList:[e],type:t}),i=null===o||void 0===o||null===(a=o.data)||void 0===a||null===(a=a.successUserIDList[0])||void 0===a?void 0:a.relation;n(i)}catch(i){o(i)}})}async getGroupReadMemberList(e,t="",n=15){return this.handlePromiseCallback(async(o,a)=>{try{const a=await this.TUICore.tim.getGroupMessageReadMemberList({message:e,filter:0,cursor:t,count:n});o(a)}catch(i){a(i)}})}async getGroupUnreadMemberList(e,t="",n=15){return this.handlePromiseCallback(async(o,a)=>{try{const a=await this.TUICore.tim.getGroupMessageReadMemberList({message:e,filter:1,cursor:t,count:n});o(a)}catch(i){a(i)}})}async handleMessageSentByMeToView(e){var t;(null===e||void 0===e?void 0:e.conversationID)===(null===this||void 0===this||null===(t=this.store)||void 0===t||null===(t=t.conversation)||void 0===t?void 0:t.conversationID)&&this.currentStore.messageList.push(e)}bind(e){return this.currentStore=e}}var M=n("7a23");const x={class:"TUIChat-main",style:{"border-top":"1px solid #f2f2f2"}},V={key:0,style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center"}},L={style:{padding:"0 0 5px 5px","font-size":"14px","text-align":"left"}},R={style:{color:"#333333","font-weight":"bold"}},P={style:{"margin-left":"10px",color:"#333333"}},A={style:{display:"flex"}},G={style:{padding:"8px","background-color":"#f2f2f2","border-radius":"10px"}},H=["id"],z={class:"to-bottom-tip-cont"},F={key:1,class:"dialog dialog-conversation"},$=["src"],Y={class:"name"},K=["src"],W={key:0,class:"name"},q={class:"dialog dialog-conversation"},Z={class:"func",id:"func"},J={class:"func-main",style:{display:"flex",position:"relative"}},Q={key:0,style:{"z-index":"100",position:"absolute",width:"100%",height:"100%",left:"0",top:"0",opacity:"0"}},X={style:{display:"flex","align-items":"center"}},ee={class:"mask-main"},te={key:1,class:"TUIChat"},ne={class:"TUIChat-header"};function oe(e,t,n,o,a,i){var s,r,l;const c=Object(M["resolveComponent"])("TypingHeader"),d=Object(M["resolveComponent"])("MessageText"),u=Object(M["resolveComponent"])("MessageImage"),p=Object(M["resolveComponent"])("MessageVideo"),m=Object(M["resolveComponent"])("MessageAudio"),h=Object(M["resolveComponent"])("MessageFile"),v=Object(M["resolveComponent"])("MessageFace"),f=Object(M["resolveComponent"])("MessageLocation"),g=Object(M["resolveComponent"])("MessageCustom"),b=Object(M["resolveComponent"])("MessageMerger"),O=Object(M["resolveComponent"])("MessageTimestamp"),y=Object(M["resolveComponent"])("MessageItem"),j=Object(M["resolveComponent"])("ReadReceiptDialog"),k=Object(M["resolveComponent"])("imagePreviewer"),I=Object(M["resolveComponent"])("MessageInput"),w=Object(M["resolveComponent"])("MessageSystem");return"chat"===e.conversationType||"0"==e.hrefParams.getMessageList?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["TUIChat",[e.env.isH5?"TUIChat-H5":""]])},["0"!=e.hrefParams.getMessageList?(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",{key:0,class:Object(M["normalizeClass"])(["TUIChat-header",[e.env.isH5?"h5-header":""]])},[Object(M["createElementVNode"])("div",null,[e.env.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.back&&e.back(...t))})):Object(M["createCommentVNode"])("",!0)]),Object(M["createVNode"])(c,{upTabIndex:e.upTabIndex,needTyping:e.needTyping,conversation:e.conversation,messageList:e.messageList,isDisabled:e.getDisabled(e.conversation),ref:"typingRef"},null,8,["upTabIndex","needTyping","conversation","messageList","isDisabled"]),Object(M["createElementVNode"])("aside",{class:Object(M["normalizeClass"])(["setting",[e.env.isH5?"h5-setting":""]])},["expert"!==e.hrefParams.isSpecialized||!e.getDisabled(e.conversation)||null!==(s=e.conversation)&&void 0!==s&&s.isEnd?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:0,style:{color:"#147aff",cursor:"pointer","font-size":"15px","margin-right":"5px"},class:Object(M["normalizeClass"])([e.env.isH5?"h5-span":""]),onClick:t[1]||(t[1]=t=>e.endConsult(e.conversation))}," 结束咨询 ",2))],2)],2)):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("div",x,[Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("ul",{class:"TUI-message-list",onClick:t[5]||(t[5]=t=>e.dialogID=""),ref:"messageEle",id:"messageEle"},[e.isCompleted||"0"==e.hrefParams.getMessageList?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",{key:0,class:"message-more",onClick:t[3]||(t[3]=(...t)=>e.getHistoryMessageList&&e.getHistoryMessageList(...t))},Object(M["toDisplayString"])(e.$t("TUIChat.查看更多")),1)),"0"==e.hrefParams.getMessageList?(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:1},[0===e.messagesNew.length?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",V,Object(M["toDisplayString"])(e.messagesIsNull),1)):Object(M["createCommentVNode"])("",!0),(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.messagesNew,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:n},[Object(M["createElementVNode"])("div",L,[Object(M["createElementVNode"])("span",R,Object(M["toDisplayString"])(t.fromAccountName),1),Object(M["createElementVNode"])("span",P,Object(M["toDisplayString"])(t.sendtime),1)]),Object(M["createElementVNode"])("div",A,[Object(M["createElementVNode"])("div",G,[t.contenttype===e.types.MSG_TEXT?(Object(M["openBlock"])(),Object(M["createBlock"])(d,{key:0,data:e.handleTextMessageShowContext(t)},null,8,["data"])):Object(M["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_IMAGE?(Object(M["openBlock"])(),Object(M["createBlock"])(u,{key:1,isH5:e.env.isH5,data:e.handleImageMessageShowContext(t),onUploading:e.handleUploadingImageOrVideo,onPreviewImage:e.previewImage},null,8,["isH5","data","onUploading","onPreviewImage"])):Object(M["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_VIDEO?(Object(M["openBlock"])(),Object(M["createBlock"])(p,{key:2,isH5:e.env.isH5,data:e.handleVideoMessageShowContext(t),onUploading:e.uploading},null,8,["isH5","data","onUploading"])):Object(M["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_AUDIO?(Object(M["openBlock"])(),Object(M["createBlock"])(m,{key:3,data:e.handleAudioMessageShowContext(t)},null,8,["data"])):Object(M["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_FILE?(Object(M["openBlock"])(),Object(M["createBlock"])(h,{key:4,data:e.handleFileMessageShowContext(t)},null,8,["data"])):Object(M["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_FACE?(Object(M["openBlock"])(),Object(M["createBlock"])(v,{key:5,data:e.handleFaceMessageShowContext(t),isH5:e.env.isH5},null,8,["data","isH5"])):Object(M["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_LOCATION?(Object(M["openBlock"])(),Object(M["createBlock"])(f,{key:6,data:e.handleLocationMessageShowContext(t)},null,8,["data"])):Object(M["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_CUSTOM?(Object(M["openBlock"])(),Object(M["createBlock"])(g,{key:7,data:e.handleCustomMessageShowContext(t)},null,8,["data"])):Object(M["createCommentVNode"])("",!0),t.contenttype===e.types.MSG_MERGER?(Object(M["openBlock"])(),Object(M["createBlock"])(b,{key:8,data:e.handleMergerMessageShowContext(t)},null,8,["data"])):Object(M["createCommentVNode"])("",!0)])])]))),128))],64)):(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],{key:2},Object(M["renderList"])(e.messages,(t,n)=>{var o;return Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:n,id:null===t||void 0===t?void 0:t.ID,ref_for:!0,ref:"messageAimID"},[Object(M["createVNode"])(O,{currTime:null===t||void 0===t?void 0:t.time,prevTime:n>0?null===(o=e.messages[n-1])||void 0===o?void 0:o.time:0},null,8,["currTime","prevTime"]),Object(M["createVNode"])(y,{message:e.getSrc(t),env:e.env,types:e.types,displayGroupMessageReadReceipt:e.needGroupReceipt,displayEmojiReactions:e.isNeedEmojiReact,messageList:e.messages,onHandleEditor:e.handleEditor,onShowDialog:e.showDialog,onUploading:e.handleUploadingImageOrVideo,onJumpID:e.jumpID,onResendMessage:e.resendMessage},null,8,["message","env","types","displayGroupMessageReadReceipt","displayEmojiReactions","messageList","onHandleEditor","onShowDialog","onUploading","onJumpID","onResendMessage"])],8,H)}),128)),e.needToBottom?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:3,class:"to-bottom-tip",onClick:t[4]||(t[4]=t=>e.scrollToTarget("bottom"))},[t[12]||(t[12]=Object(M["createElementVNode"])("i",{class:"icon icon-bottom-double"},null,-1)),Object(M["createElementVNode"])("div",z,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.toBottomTipCont),1)])])):Object(M["createCommentVNode"])("",!0)],512),e.forwardStatus&&e.messageComponents.Forward?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",F,[(Object(M["openBlock"])(),Object(M["createBlock"])(Object(M["resolveDynamicComponent"])("Forward"),{list:e.conversationData.list,message:e.currentMessage,show:e.forwardStatus,isH5:e.env.isH5,"onUpdate:show":t[6]||(t[6]=t=>e.forwardStatus=t)},{left:Object(M["withCtx"])(({data:t})=>[Object(M["createElementVNode"])("img",{class:"avatar",src:e.conversationData.handleAvatar(t),alt:""},null,8,$),Object(M["createElementVNode"])("label",Y,Object(M["toDisplayString"])(e.conversationData.handleName(t)),1)]),right:Object(M["withCtx"])(({data:t})=>[Object(M["createElementVNode"])("img",{class:"avatar",src:e.conversationData.handleAvatar(t),alt:""},null,8,K),e.env.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("label",W,Object(M["toDisplayString"])(e.conversationData.handleName(t)),1))]),_:1},40,["list","message","show","isH5"]))])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("div",q,[Object(M["createVNode"])(j,{message:e.currentMessage,conversation:e.conversation,show:e.receiptDialogStatus,isH5:e.env.isH5,onCloseDialog:e.closeDialog,ref:"readReceiptDialog"},null,8,["message","conversation","show","isH5","onCloseDialog"])]),e.showImagePreview?(Object(M["openBlock"])(),Object(M["createBlock"])(k,{key:2,currentImage:e.currentImagePreview,imageList:"0"==e.hrefParams.getMessageList?e.imageListNew:e.imageList,onClose:t[7]||(t[7]=t=>e.showImagePreview=!1)},null,8,["currentImage","imageList"])):Object(M["createCommentVNode"])("",!0)]),("expert"!==e.hrefParams.isSpecialized&&e.getDisabled(e.conversation)||"expert"===e.hrefParams.isSpecialized&&e.getDisabled(e.conversation)&&(null===(r=e.conversation)||void 0===r||!r.isEnd))&&"0"!=e.hrefParams.getMessageList?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:1,class:Object(M["normalizeClass"])(["TUIChat-footer",[e.isMute&&"disabled",e.env.isH5&&"TUIChat-H5-footer"]])},[Object(M["createElementVNode"])("div",Z,[Object(M["createElementVNode"])("main",J,[e.getDisabled(e.conversation)?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Q)),(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.pluginComponentList,(t,n)=>(Object(M["openBlock"])(),Object(M["createBlock"])(Object(M["resolveDynamicComponent"])(t),{key:n,isMute:e.isMute,isH5:e.env.isH5,conversation:e.conversation,parentID:"func",onSend:e.handleSend},null,40,["isMute","isH5","conversation","onSend"]))),128)),Object(M["createElementVNode"])("div",X,["false"===e.hrefParams.isSpecialized?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:0,onClick:t[8]||(t[8]=t=>e.forHelpDetail(e.conversation)),style:{margin:"4px 0 0 10px",cursor:"pointer",color:"#0093fe","z-index":"100"}}," 应急详情 ")):Object(M["createCommentVNode"])("",!0)])])]),Object(M["createVNode"])(I,{ref:"messageInput",isDisabled:e.getDisabled(e.conversation),conversation:e.conversation,memberList:e.allMemberList,env:e.env,isGroup:null===(l=e.userInfo)||void 0===l?void 0:l.isGroup,replyOrReference:e.reference,isMute:!1,muteText:e.muteText,placeholder:e.$t("TUIChat.请输入消息"),onSendMessage:e.reportMessageSend,onResetReplyOrReference:e.resetReplyOrReference,onOnTyping:e.handleTyping},null,8,["isDisabled","conversation","memberList","env","isGroup","replyOrReference","muteText","placeholder","onSendMessage","onResetReplyOrReference","onOnTyping"])],2)):Object(M["createCommentVNode"])("",!0),Object(M["withDirectives"])(Object(M["createElementVNode"])("div",{class:"mask",onClick:t[11]||(t[11]=t=>e.showResend=!1)},[Object(M["createElementVNode"])("div",ee,[Object(M["createElementVNode"])("header",null,Object(M["toDisplayString"])(e.$t("TUIChat.确认重发该消息?")),1),Object(M["createElementVNode"])("footer",null,[Object(M["createElementVNode"])("p",{onClick:t[9]||(t[9]=t=>e.showResend=!1)},Object(M["toDisplayString"])(e.$t("TUIChat.取消")),1),t[13]||(t[13]=Object(M["createElementVNode"])("i",null,null,-1)),Object(M["createElementVNode"])("p",{onClick:t[10]||(t[10]=(...t)=>e.submit&&e.submit(...t))},Object(M["toDisplayString"])(e.$t("TUIChat.确定")),1)])])],512),[[M["vShow"],e.showResend]])],2)):"system"===e.conversationType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",te,[Object(M["createElementVNode"])("header",ne,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.conversationName),1)]),Object(M["createVNode"])(w,{data:e.messages,types:e.types,onApplication:e.handleApplication},null,8,["data","types","onApplication"])])):e.slotDefault?Object(M["renderSlot"])(e.$slots,"default",{key:2},void 0,!0):Object(M["createCommentVNode"])("",!0)}var ae=n("045d"),ie=n.n(ae),se=n("9a73"),re=n.n(se);const le={key:0,class:"text-box"},ce=["src"];function de(e,t,n,o,a,i){return Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.data.text,(e,t)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:t},["text"===e.name?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",le,Object(M["toDisplayString"])(e.text),1)):"img"===e.name?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:1,class:"text-img",src:e.src},null,8,ce)):Object(M["createCommentVNode"])("",!0)],64))),128)}var ue=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({data:{}});return Object(M["watchEffect"])(()=>{n.data=e.data}),{...Object(M["toRefs"])(n)}}}),pe=(n("05da"),n("6b0d")),me=n.n(pe);const he=me()(ue,[["render",de],["__scopeId","data-v-06e49808"]]);var ve=he,fe=n("622e"),ge=n.n(fe),be=n("e435"),Oe=n.n(be);const ye=["src","width","height"],je={key:0,class:"progress"},ke=["value"],Ie={key:0},we=["src"],Ee={key:0,class:"dialog-box-h5-footer"};function Ce(e,t,n,o,a,i){var s;return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:"message-image",onClick:t[6]||(t[6]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"])),ref:"skeleton"},[Object(M["createElementVNode"])("img",{class:"message-img",src:-1===_()(s=e.data.url).call(s,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url,width:e.data.width,height:e.data.height,style:Object(M["normalizeStyle"])(e.isH5?{maxWidth:e.data.width?e.data.width+"px":"calc(100vw - 180px)",maxHeight:e.data.height?e.data.height+"px":"calc(100vw - 180px)"}:{}),alt:""},null,12,ye),e.data.progress?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",je,[Object(M["createElementVNode"])("progress",{value:e.data.progress,max:"1"},null,8,ke)])):Object(M["createCommentVNode"])("",!0),e.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:1,class:"dialog",onClick:t[5]||(t[5]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},[e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",Ie,[Object(M["createElementVNode"])("i",{class:"icon icon-close",onClick:t[0]||(t[0]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["stop"]))})])),Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["dialog-box",[e.isH5?"dialog-box-h5":""]]),onClick:t[4]||(t[4]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},[Object(M["createElementVNode"])("img",{class:Object(M["normalizeClass"])([e.isWidth?"isWidth":"isHeight"]),src:e.data.message.payload.imageInfoArray[0].url,onClick:t[1]||(t[1]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},null,10,we),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Ee,[Object(M["createElementVNode"])("p",{onClick:t[2]||(t[2]=(...t)=>e.toggleShow&&e.toggleShow(...t))},t[7]||(t[7]=[Object(M["createElementVNode"])("img",{src:ge.a},null,-1)])),Object(M["createElementVNode"])("p",{onClick:t[3]||(t[3]=Object(M["withModifiers"])(t=>e.downloadImage(e.data.message),["stop"]))},t[8]||(t[8]=[Object(M["createElementVNode"])("img",{src:Oe.a},null,-1)]))])):Object(M["createCommentVNode"])("",!0)],2)])):Object(M["createCommentVNode"])("",!0)],512)}var Te=n("05f2"),Se=n.n(Te),_e=n("48d5"),De=Object(M["defineComponent"])({methods:{},props:{data:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},emits:["uploading","previewImage"],setup(e,t){const n=Object(M["reactive"])({data:{progress:0},show:!1}),o=Object(M["ref"])(),a=Object(M["computed"])(()=>{var e;const{width:t=0,height:o=0}=null===(e=n.data)||void 0===e||null===(e=e.message)||void 0===e||null===(e=e.payload)||void 0===e?void 0:e.imageInfoArray[0];return t>=o});Object(M["watchEffect"])(()=>{n.data=e.data,n.data&&Object(M["nextTick"])(()=>{if(n.data.progress)t.emit("uploading");else{var a,i,s;const{width:t=0,height:r=0}=n.data;if(0===t||0===r)return;const l=(null===(a=document.getElementById("app"))||void 0===a?void 0:a.clientWidth)||0,c=e.isH5?Math.min(l-180,300):300,d=Object(U["q"])(t,r,c,c);(null===o||void 0===o||null===(i=o.value)||void 0===i?void 0:i.style)&&(o.value.style.width=d.width+"px"),(null===o||void 0===o||null===(s=o.value)||void 0===s?void 0:s.style)&&(o.value.style.height=d.height+"px")}})});const i=()=>{n.data.progress||t.emit("previewImage",n.data.message)},s=e=>{const t=document.createElement("a"),n=e.payload.imageInfoArray[0].instanceID;t.setAttribute("download",n);const o=new Image;o.src=e.payload.imageInfoArray[0].url,o.setAttribute("crossOrigin","Anonymous"),o.onload=()=>{t.href=r(o),t.click()}},r=e=>{var t;const n=document.createElement("canvas");n.width=e.width,n.height=e.height;const o=n.getContext("2d");null===o||void 0===o||o.drawImage(e,0,0,e.width,e.height);const a=e.src.substring(Se()(t=e.src).call(t,".")+1).toLowerCase();return n.toDataURL("image/"+a,1)};return{...Object(M["toRefs"])(n),toggleShow:i,skeleton:o,isWidth:a,downloadImage:s,hrefParams:_e["a"]}}});n("aa66");const Ne=me()(De,[["render",Ce],["__scopeId","data-v-24e80348"]]);var Ue=Ne;const Be={class:"message-video"},Me=["src"],xe=["src","poster"],Ve=["src","poster"],Le={key:3,class:"progress"},Re=["value"],Pe=["src"];function Ae(e,t,n,o,a,i){var s,r,l;return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Be,[Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["message-video-box",[!e.data.progress&&"success"===e.data.message.status&&e.isH5&&"message-video-cover"]]),onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t)),ref:"skeleton"},[e.data.progress&&e.poster||e.isH5&&e.poster?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:0,class:Object(M["normalizeClass"])(["message-img",[e.isWidth?"isWidth":"isHeight"]]),src:e.poster},null,10,Me)):e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("video",{key:1,class:"message-img video-h5-uploading",src:-1===_()(s=e.data.url).call(s,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url+"#t=0.1",poster:-1===_()(r=e.data.url).call(r,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url,preload:"auto",muted:"",ref:"video"},null,8,xe)):e.data.progress||e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("video",{key:2,class:"message-img video-web",src:-1===_()(l=e.data.url).call(l,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url,controls:"",preload:"metadata",poster:e.poster,ref:"video"},null,8,Ve)),e.data.progress?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Le,[Object(M["createElementVNode"])("progress",{value:e.data.progress,max:"1"},null,8,Re)])):Object(M["createCommentVNode"])("",!0)],2),e.show&&e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:"dialog-video",onClick:t[3]||(t[3]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},[Object(M["createElementVNode"])("header",null,[Object(M["createElementVNode"])("i",{class:"icon icon-close",onClick:t[1]||(t[1]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["stop"]))})]),Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["dialog-video-box",[e.isH5?"dialog-video-h5":""]]),onClick:t[2]||(t[2]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["self"]))},[Object(M["createElementVNode"])("video",{class:Object(M["normalizeClass"])([e.isWidth?"isWidth":"isHeight"]),src:e.data.url,controls:"",autoplay:""},null,10,Pe)],2)])):Object(M["createCommentVNode"])("",!0)])}var Ge=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},setup(e,t){const n=Object(M["reactive"])({data:{},show:!1,poster:"",posterWidth:0,posterHeight:0}),o=Object(M["ref"])(),a=Object(M["ref"])(),i=Object(M["computed"])(()=>{var e;const{snapshotWidth:t=0,snapshotHeight:o=0}=null===(e=n.data)||void 0===e||null===(e=e.message)||void 0===e?void 0:e.payload;return t>=o}),s="https://web.sdk.qcloud.com/im/assets/images/transparent.png",r=()=>{n.data.progress||(n.show=!n.show)},l=e=>new g.a((function(t,o){let a="",i=document.createElement("video");i.setAttribute("crossOrigin","anonymous"),i.setAttribute("src",e),i.setAttribute("preload","auto"),i.addEventListener("loadeddata",(function(){let e=document.createElement("canvas"),o=i.videoWidth,s=i.videoHeight;e.width=o,e.height=s,e.getContext("2d").drawImage(i,0,0,o,s),a=e.toDataURL("image/jpeg"),n.posterWidth=o,n.posterHeight=s,t(a)}),{once:!0})})),c=async e=>{return e?e.progress?await l(e.url):e.snapshotUrl!==s&&e.snapshotUrl||(null===e||void 0===e||null===(t=e.message)||void 0===t||null===(t=t.payload)||void 0===t?void 0:t.snapshotUrl)!==s&&(null===e||void 0===e||null===(n=e.message)||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.snapshotUrl)||(null===e||void 0===e||null===(o=e.message)||void 0===o||null===(o=o.payload)||void 0===o?void 0:o.thumbUrl)!==s&&(null===e||void 0===e||null===(a=e.message)||void 0===a||null===(a=a.payload)||void 0===a?void 0:a.thumbUrl)||await l(e.url):"";var t,n,o,a};return Object(M["watchEffect"])(async()=>{n.data=e.data,n.data&&(n.poster=await c(n.data),Object(M["nextTick"])(async()=>{var i;const r=(null===(i=document.getElementById("messageEle"))||void 0===i?void 0:i.clientWidth)||0,l=e.isH5?Math.min(r-172,300):300;let c;if(n.data.progress)t.emit("uploading");else{var d,u;let{snapshotWidth:t=0,snapshotHeight:i=0,snapshotUrl:r}=n.data;if(0===t||0===i)return;var p,m;if(r===s&&(t=n.posterWidth,i=n.posterHeight),c=Object(U["q"])(t,i,l,l),(null===o||void 0===o||null===(d=o.value)||void 0===d?void 0:d.style)&&(o.value.style.width=c.width+"px"),(null===o||void 0===o||null===(u=o.value)||void 0===u?void 0:u.style)&&(o.value.style.height=c.height+"px"),!e.isH5)(null===a||void 0===a||null===(p=a.value)||void 0===p?void 0:p.style)&&(a.value.style.width=c.width+"px"),(null===a||void 0===a||null===(m=a.value)||void 0===m?void 0:m.style)&&(a.value.style.height=c.height+"px")}}))}),Object(M["watch"])(()=>{var e;return null===(e=n.data)||void 0===e?void 0:e.progress},(e,n)=>{!e&&n&&t.emit("uploading")}),{...Object(M["toRefs"])(n),toggleShow:r,isWidth:i,getVideoBase64:l,handlePosterUrl:c,skeleton:o,video:a,hrefParams:_e["a"]}}});n("2929");const He=me()(Ge,[["render",Ae],["__scopeId","data-v-71441a3b"]]);var ze=He;const Fe=["src"];function $e(e,t,n,o,a,i){var s,r;return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["message-audio",["out"===e.data.message.flow&&"reserve"]]),onClick:t[0]||(t[0]=Object(M["withModifiers"])((...t)=>e.play&&e.play(...t),["stop"])),style:Object(M["normalizeStyle"])(`width: ${10*(null===(s=e.data)||void 0===s?void 0:s.second)+40}px`)},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon icon-voice",["out"===e.data.message.flow&&"icon-reserve"]])},null,2),Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.data.second)+"s",1),Object(M["createElementVNode"])("audio",{ref:"audio",src:-1===_()(r=e.data.url).call(r,"http")?`${e.hrefParams.urlF.replace("lol","://")}/file/show/${e.data.url}`:e.data.url},null,8,Fe)],6)}var Ye=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({data:{},show:!1}),o=Object(M["ref"])(null);Object(M["watch"])(()=>e.data,()=>{n.data=e.data},{deep:!0,immediate:!0});const a=()=>{const e=document.getElementsByTagName("audio");for(const n of e)n.paused||(n.pause(),n.load());const t=o.value;t.paused?(t.play(),n.show=!0):(t.pause(),t.load(),n.show=!1)};return{...Object(M["toRefs"])(n),audio:o,play:a,hrefParams:_e["a"]}}});n("736b");const Ke=me()(Ye,[["render",$e],["__scopeId","data-v-3b58416c"]]);var We=Ke;const qe={class:"message-file"},Ze=["title"],Je={class:"message-file-content"},Qe=["value"];function Xe(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",qe,[Object(M["createElementVNode"])("div",{class:"box",onClick:t[0]||(t[0]=(...t)=>e.download&&e.download(...t)),title:e.$t("TUIChat.单击下载")},[t[1]||(t[1]=Object(M["createElementVNode"])("i",{class:"icon icon-files"},null,-1)),Object(M["createElementVNode"])("div",Je,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.data.name),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.data.size),1)])],8,Ze),e.data.progress?(Object(M["openBlock"])(),Object(M["createElementBlock"])("progress",{key:0,value:e.data.progress,max:"1"},null,8,Qe)):Object(M["createCommentVNode"])("",!0)])}var et=n("47c7"),tt=n.n(et),nt=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({data:{}});Object(M["watchEffect"])(()=>{n.data=e.data});const o=()=>{const e=n.data,t={mode:"cors",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"})};if(window.fetch)fetch(e.url,t).then(e=>e.blob()).then(t=>{const n=document.createElement("a"),o=tt.a.createObjectURL(t);n.href=o,n.download=e.name,n.click()});else{const t=document.createElement("a");t.href=e.url,t.target="_blank",t.download=e.name,t.click()}};return{...Object(M["toRefs"])(n),download:o}}});n("7c02");const ot=me()(nt,[["render",Xe],["__scopeId","data-v-3f9a76df"]]);var at=ot;const it={class:"message-image",ref:"skeleton"},st=["src"];function rt(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",it,[Object(M["createElementVNode"])("img",{class:"message-img",src:e.data.url,style:Object(M["normalizeStyle"])(e.isH5?{maxWidth:e.data.width?e.data.width+"px":"calc(100vw - 180px)",maxHeight:e.data.height?e.data.height+"px":"calc(100vw - 180px)"}:{})},null,12,st)],512)}var lt=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},setup(e,t){const n=Object(M["reactive"])({data:{}}),o=Object(M["ref"])();return Object(M["watchEffect"])(()=>{n.data=e.data,n.data&&Object(M["nextTick"])(()=>{var t,n,a;const i=(null===(t=document.getElementById("messageEle"))||void 0===t?void 0:t.clientWidth)||0,s=e.isH5?Math.min(i-172,300):300,r=Object(U["q"])(240,240,s,s);(null===o||void 0===o||null===(n=o.value)||void 0===n?void 0:n.style)&&(o.value.style.width=r.width+"px"),(null===o||void 0===o||null===(a=o.value)||void 0===a?void 0:a.style)&&(o.value.style.height=r.height+"px")})}),{...Object(M["toRefs"])(n),skeleton:o}}});n("e5cf");const ct=me()(lt,[["render",rt],["__scopeId","data-v-ec7124a2"]]);var dt=ct;const ut=["href"],pt={class:"el-icon-location-outline"},mt=["src"];function ht(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("a",{class:"message-location",href:e.data.href,target:"_blank",title:"点击查看详情"},[Object(M["createElementVNode"])("span",pt,Object(M["toDisplayString"])(e.data.description),1),Object(M["createElementVNode"])("img",{src:e.data.url},null,8,mt)],8,ut)}var vt=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({data:{}});return Object(M["watchEffect"])(()=>{n.data=e.data}),{...Object(M["toRefs"])(n)}}});n("e157");const ft=me()(vt,[["render",ht],["__scopeId","data-v-2ee98c02"]]);var gt=ft;const bt={class:"message-merger"},Ot=["data-value"],yt={class:"merger-title"};function jt(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",bt,[Object(M["createElementVNode"])("div",{class:"merger-box","data-value":e.data.message},[Object(M["createElementVNode"])("p",yt,Object(M["toDisplayString"])(e.data.title),1),(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.data.abstractList,(e,t)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",{class:"merger-text",key:t},Object(M["toDisplayString"])(e),1))),128))],8,Ot),t[0]||(t[0]=Object(M["createElementVNode"])("span",{class:"merger-label"}," 聊天记录",-1))])}var kt=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({data:{}});return Object(M["watchEffect"])(()=>{n.data=e.data}),{...Object(M["toRefs"])(n)}}});n("1182");const It=me()(kt,[["render",jt],["__scopeId","data-v-a9c3fbce"]]);var wt=It,Et=n("34bb"),Ct=n.n(Et);const Tt={class:"custom"},St={key:0},_t=["href"],Dt={key:0},Nt=["href"],Ut={key:1},Bt={key:1,class:"evaluate"},Mt=["src"],xt={key:3,class:"textLink"},Vt=["href"],Lt={key:5,style:{display:"flex"}},Rt={style:{height:"25px","line-height":"25px"}},Pt={style:{color:"#7d7d7dff","font-size":"12px","margin-bottom":"5px"}},At={style:{display:"flex","flex-wrap":"wrap"}},Gt=["src"],Ht={key:6,class:"business-type",style:{cursor:"pointer"}},zt={style:{"padding-left":"10px",height:"25px","line-height":"25px"}},Ft={style:{"padding-left":"10px",height:"25px",color:"#7d7d7dff","font-size":"12px"}},$t={key:7,class:"business-type",style:{cursor:"pointer"}},Yt={style:{"padding-left":"10px",height:"25px","line-height":"25px"}},Kt=["src"],Wt={style:{"padding-left":"10px",height:"25px",color:"#7d7d7dff","font-size":"12px"}},qt={key:8,style:{cursor:"pointer","min-width":"180px"}},Zt={class:"business-type"},Jt={style:{"padding-left":"10px",height:"30px","line-height":"35px"}},Qt={style:{color:"#7d7d7dff","font-size":"14px"}},Xt={style:{"padding-left":"10px",height:"30px",color:"#7d7d7dff","font-size":"12px"}},en=["innerHTML"];function tn(e,t,n,o,a,i){var r,c,d,u,p,m,h,v,f,g,b,O,y,j,k,I,w,E,C,T,S,D,N,U,B,x;const V=Object(M["resolveComponent"])("el-image"),L=Object(M["resolveComponent"])("el-input"),R=Object(M["resolveComponent"])("el-form-item"),P=Object(M["resolveComponent"])("el-form"),A=Object(M["resolveComponent"])("el-dialog");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Tt,[e.isCustom===e.constant.typeService?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",St,[Object(M["createElementVNode"])("h1",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.extension.title),1),e.extension.hyperlinks_text?(Object(M["openBlock"])(),Object(M["createElementBlock"])("a",{key:0,href:e.extension.hyperlinks_text.value,target:"view_window"},Object(M["toDisplayString"])(e.extension.hyperlinks_text.key),9,_t)):Object(M["createCommentVNode"])("",!0)]),e.extension.item&&e.extension.item.length>0?(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",Dt,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.extension.item,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:n},[e.isUrl(t.value)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("a",{key:0,href:t.value,target:"view_window"},Object(M["toDisplayString"])(t.key),9,Nt)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",Ut,Object(M["toDisplayString"])(t.key),1))]))),128))])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("article",null,Object(M["toDisplayString"])(e.extension.description),1)])):e.isCustom.businessID===e.constant.typeEvaluate?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Bt,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.$t("message.custom.对本次服务评价")),1),Object(M["createElementVNode"])("ul",null,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(~~e.isCustom.score,(e,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"evaluate-list-item",key:n},t[10]||(t[10]=[Object(M["createElementVNode"])("i",{class:"icon icon-star-light"},null,-1)])))),128))]),Object(M["createElementVNode"])("article",null,Object(M["toDisplayString"])(e.isCustom.comment),1)])):e.isCustom.businessID===e.constant.typeOrder?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:2,class:"order",onClick:t[0]||(t[0]=t=>e.openLink(e.isCustom.link))},[Object(M["createElementVNode"])("img",{src:e.isCustom.imageUrl,alt:""},null,8,Mt),Object(M["createElementVNode"])("main",null,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.isCustom.title),1),Object(M["createElementVNode"])("p",null,Object(M["toDisplayString"])(e.isCustom.description),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.isCustom.price),1)])])):e.isCustom.businessID===e.constant.typeTextLink?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",xt,[Object(M["createElementVNode"])("p",null,Object(M["toDisplayString"])(e.isCustom.text),1),Object(M["createElementVNode"])("a",{href:e.isCustom.link,target:"view_window"},Object(M["toDisplayString"])(e.$t("message.custom.查看详情>>")),9,Vt)])):e.isCustom.businessID===e.constant.TYPE_CALL_MESSAGE?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:4,class:Object(M["normalizeClass"])(["call","call-"+(null===(r=e.data)||void 0===r||null===(r=r.message)||void 0===r?void 0:r.conversationType)]),onClick:t[1]||(t[1]=(...t)=>e.handleCallAgain&&e.handleCallAgain(...t))},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon",e.handleCallMessageIcon()])},null,2),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.data.custom.substring(0,_()(c=e.data.custom).call(c,'"'))+e.data.custom.substring(Se()(d=e.data.custom).call(d,'"')+1,e.data.custom.length)),1)],2)):e.isCustom.businessID===e.constant.typeArchives?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Lt,[Object(M["createElementVNode"])("div",{class:"img-list",style:{cursor:"pointer"},onClick:t[2]||(t[2]=(...t)=>e.showDialog&&e.showDialog(...t))},[Object(M["createElementVNode"])("div",Rt,Object(M["toDisplayString"])((null===(u=e.isCustom)||void 0===u?void 0:u.name)+" "+(null===(p=e.isCustom)||void 0===p?void 0:p.gender)+" 丨 "+(null===(m=e.isCustom)||void 0===m?void 0:m.age)),1),Object(M["createElementVNode"])("div",Pt,Object(M["toDisplayString"])("病症描述:"+(null===(h=e.isCustom)||void 0===h?void 0:h.symptomDescription)),1),Object(M["createElementVNode"])("div",At,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(null===(v=e.isCustom)||void 0===v?void 0:v.imageList,(e,t)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{style:{padding:"0 5px 5px"},key:"imageList"+t},[Object(M["createElementVNode"])("img",{src:e.bigImageUrl,alt:""},null,8,Gt)]))),128))])])])):e.isCustom.businessID===e.constant.typeMedicalExaminationReport?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Ht,[Object(M["createElementVNode"])("div",null,[Object(M["createElementVNode"])("div",zt,Object(M["toDisplayString"])((null===(f=e.isCustom)||void 0===f?void 0:f.name)+"-"+((null===(g=e.isCustom)||void 0===g?void 0:g.gender)||(null===(b=e.isCustom)||void 0===b?void 0:b.sex))+"-"+(null===(O=e.isCustom)||void 0===O?void 0:O.age)),1),Object(M["createElementVNode"])("div",Ft,Object(M["toDisplayString"])((null===(y=e.isCustom)||void 0===y?void 0:y.hospital)+"-"+(null===(j=e.isCustom)||void 0===j?void 0:j.createTime)),1)])])):e.isCustom.businessID===e.constant.typeSystem?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",$t,[Object(M["createElementVNode"])("div",null,[Object(M["createElementVNode"])("div",Yt,Object(M["toDisplayString"])(null===(k=e.isCustom)||void 0===k?void 0:k.title),1),null!==(I=e.isCustom)&&void 0!==I&&I.messageImageUrl?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:0,src:null===(w=e.isCustom)||void 0===w?void 0:w.messageImageUrl,alt:"",style:{margin:"5px 10px"}},null,8,Kt)):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("div",Wt,Object(M["toDisplayString"])(null===(E=e.isCustom)||void 0===E?void 0:E.content),1)])])):e.isCustom.businessID===e.constant.typeBusinessCard?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",qt,[Object(M["createElementVNode"])("div",Zt,[Object(M["createElementVNode"])("div",null,[Object(M["createVNode"])(V,{style:{width:"60px",height:"60px","border-radius":"10px"},src:null===(C=e.isCustom)||void 0===C?void 0:C.doctorHeadImg},{error:Object(M["withCtx"])(()=>t[11]||(t[11]=[Object(M["createElementVNode"])("div",null,[Object(M["createElementVNode"])("img",{style:{width:"60px",height:"60px","border-radius":"10px"},src:Ct.a,alt:""})],-1)])),_:1},8,["src"])]),Object(M["createElementVNode"])("div",null,[Object(M["createElementVNode"])("div",Jt,[Object(M["createTextVNode"])(Object(M["toDisplayString"])(""+(null===(T=e.isCustom)||void 0===T?void 0:T.doctorName))+" ( ",1),Object(M["createElementVNode"])("span",Qt,Object(M["toDisplayString"])(""+(null===(S=e.isCustom)||void 0===S?void 0:S.doctorTitle)),1),t[12]||(t[12]=Object(M["createTextVNode"])(" ) "))]),Object(M["createElementVNode"])("div",Xt,Object(M["toDisplayString"])(`${null!==(D=e.isCustom)&&void 0!==D&&D.organization?null===(N=e.isCustom)||void 0===N?void 0:N.organization:""}-${null!==(U=e.isCustom)&&void 0!==U&&U.departmentName?null===(B=e.isCustom)||void 0===B?void 0:B.departmentName:""}`),1)])]),t[13]||(t[13]=Object(M["createElementVNode"])("div",{style:{color:"#7d7d7dff","font-size":"12px","margin-top":"5px","border-top":"1px solid #7d7d7dff","padding-top":"1px"}}," 个人名片 ",-1))])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:9,innerHTML:e.data.custom},null,8,en)),Object(M["createVNode"])(A,{modelValue:e.visible,"onUpdate:modelValue":t[9]||(t[9]=t=>e.visible=t),title:(null===(x=e.isCustom)||void 0===x?void 0:x.name)+"档案",width:"60%",onOpen:e.openDialog},{default:Object(M["withCtx"])(()=>[t[14]||(t[14]=Object(M["createElementVNode"])("span",{style:{"font-size":"18px","font-weight":"bold",color:"#000000","margin-bottom":"10px"}},"咨询档案",-1)),Object(M["createVNode"])(P,{modelValue:e.archives,"onUpdate:modelValue":t[8]||(t[8]=t=>e.archives=t),"label-width":"100px"},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(R,{label:"档案名称:"},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(L,{disabled:"",modelValue:e.archives.recordsName,"onUpdate:modelValue":t[3]||(t[3]=t=>e.archives.recordsName=t)},null,8,["modelValue"])]),_:1}),Object(M["createVNode"])(R,{label:"患病时长:"},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(L,{disabled:"",modelValue:e.archives.haveTime_dictText,"onUpdate:modelValue":t[4]||(t[4]=t=>e.archives.haveTime_dictText=t)},null,8,["modelValue"])]),_:1}),Object(M["createVNode"])(R,{label:"问题描述:"},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(L,{disabled:"",modelValue:e.archives.medicalDescribe,"onUpdate:modelValue":t[5]||(t[5]=t=>e.archives.medicalDescribe=t),rows:3,type:"textarea"},null,8,["modelValue"])]),_:1}),Object(M["createVNode"])(R,{label:"就诊医院:"},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(L,{disabled:"",modelValue:e.archives.lookOffice,"onUpdate:modelValue":t[6]||(t[6]=t=>e.archives.lookOffice=t)},null,8,["modelValue"])]),_:1}),Object(M["createVNode"])(R,{label:"病情资料:"},{default:Object(M["withCtx"])(()=>{var t;return[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(null===(t=e.archives)||void 0===t?void 0:t.imageList,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{style:{padding:"0 5px 5px",width:"100px",height:"100px"},key:"imageList"+n},[Object(M["createVNode"])(V,{style:{width:"100px",height:"100px"},src:`${e.hrefParams.urlF.replace("lol","://")}/file/show/${t}`,"zoom-rate":1.2,"preview-src-list":[`${e.hrefParams.urlF.replace("lol","://")}file/show/${t}`],"initial-index":0,"hide-on-click-modal":!0,fit:"cover"},null,8,["src","preview-src-list"])]))),128))]}),_:1}),Object(M["createVNode"])(R,{label:"期望帮助:"},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(L,{disabled:"",modelValue:e.archives.desire,"onUpdate:modelValue":t[7]||(t[7]=t=>e.archives.desire=t),rows:3,type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["modelValue"]),t[15]||(t[15]=Object(M["createElementVNode"])("span",{style:{"font-size":"18px","font-weight":"bold",color:"#000000",margin:"10px 0"}},"健康信息",-1)),Object(M["createVNode"])(P,{"label-width":"100px",inline:!0},{default:Object(M["withCtx"])(()=>[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(s()(l()(e.archives)),(t,n)=>(Object(M["openBlock"])(),Object(M["createBlock"])(R,{key:"item"+n,label:t+""},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(L,{modelValue:l()(e.archives)[t],"onUpdate:modelValue":n=>l()(e.archives)[t]=n,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1,__:[14,15]},8,["modelValue","title","onOpen"])])}var nn=n("2e20");class on{constructor(e){Object(c["a"])(this,"aegis",void 0),Object(c["a"])(this,"options",{}),Object(c["a"])(this,"aegisOptions",[]),e?this.aegis=e:this.init(()=>{var e;(this.aegis=new window.Aegis({id:"iHWefAYqTgxNuvtAjr",uin:"",reportApiSpeed:!0,reportAssetSpeed:!0,spa:!0}),this.aegisOptions.length>0)&&(l()(e=this.aegisOptions).call(e,e=>(this.reportEvent(e),e)),this.aegisOptions=[])})}install(e){e.config.globalProperties.$TUIAegis=on.getInstance()}static getInstance(){return on.instance||(on.instance=new on(window.$Aegis)),on.instance}setAegisOptions(e){this.options=e}reportEvent(e){if(this.aegis){var t;if((null===e||void 0===e||!e.ext3)&&(null===(t=this.options)||void 0===t||!t.ext3))return;this.aegis.reportEvent({...e,...this.options})}else this.aegisOptions=[...this.aegisOptions,e]}init(e){if(!on.instance){const t=document.createElement("script");t.type="text/javascript",t.src="https://tam.cdn-go.cn/aegis-sdk/latest/aegis.min.js",document.getElementsByTagName("head")[0].appendChild(t),t.onload=e}}}Object(c["a"])(on,"instance",void 0);var an=on,sn=n("5502"),rn=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){var n;const o=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&sn["c"]&&Object(sn["c"])()||{},a=Object(M["reactive"])({data:{},extension:{},isCustom:"",constant:nn["a"],visible:!1,archives:{recordsName:"",medicalDescribe:"",image:"",imageList:[],haveTime_dictText:"",desire:"",lookOffice:"",map:{}}});Object(M["watchEffect"])(()=>{a.data=e.data;const{message:{payload:t}}=e.data;a.isCustom=t.data||" ",a.isCustom=Object(U["a"])(t.data),t.data===nn["a"].typeService&&(a.extension=Object(U["a"])(t.extension))});const i=e=>{window.open(e)},s=()=>{var e,t,n;const o=null===(e=JSON.parse(null===(t=JSON.parse(null===a||void 0===a||null===(n=a.data)||void 0===n||null===(n=n.message)||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.data))||void 0===t?void 0:t.data))||void 0===e?void 0:e.call_type;let i="";switch(o){case 1:i="icon-call-voice";break;case 2:i="icon-call-video";break;default:break}return i},r=async()=>{var t,n,i,s,r,l;const c=null===(t=JSON.parse(null===(n=JSON.parse(null===e||void 0===e||null===(i=e.data)||void 0===i||null===(i=i.message)||void 0===i||null===(i=i.payload)||void 0===i?void 0:i.data))||void 0===n?void 0:n.data))||void 0===t?void 0:t.call_type;switch(an.getInstance().reportEvent({name:"callOptions",ext1:"clickCall"}),null===a||void 0===a||null===(s=a.data)||void 0===s||null===(s=s.message)||void 0===s?void 0:s.conversationType){case window.TUIKitTUICore.TIM.TYPES.CONV_C2C:const{flow:e,to:t,from:n}=null===a||void 0===a||null===(r=a.data)||void 0===r?void 0:r.message;if(t===n)break;try{var d,u;await(null===(d=window)||void 0===d||null===(d=d.TUIKitTUICore)||void 0===d||null===(d=d.TUIServer)||void 0===d||null===(d=d.TUICallKit)||void 0===d?void 0:d.call({userID:"out"===e?t:n,type:c})),(null===(u=window)||void 0===u||null===(u=u.TUIKitTUICore)||void 0===u?void 0:u.isOfficial)&&(null===o||void 0===o?void 0:o.commit)&&(null===o||void 0===o||o.commit("handleTask",6))}catch(p){console.warn(p)}null!==(l=window)&&void 0!==l&&null!==(l=l.TUIKitTUICore)&&void 0!==l&&null!==(l=l.TUIServer)&&void 0!==l&&l.TUICallKit&&(an.getInstance().reportEvent({name:"callOptions",ext1:"clickCall-success"}),an.getInstance().reportEvent({name:"callOptions",ext1:"call-c2c"}));break;case window.TUIKitTUICore.TIM.TYPES.CONV_GROUP:break;default:break}},l=()=>{var e,t;window.parent.postMessage(v()({code:"showConsultation",archivesId:null===(e=a.isCustom)||void 0===e?void 0:e.archivesId,archivesName:null===(t=a.isCustom)||void 0===t?void 0:t.name}),"*")},c=async()=>{var e,t;window.parent.postMessage(v()({code:"showConsultation",archivesId:null===(e=a.isCustom)||void 0===e?void 0:e.archivesId,archivesName:null===(t=a.isCustom)||void 0===t?void 0:t.name}),"*")};return{showDialog:l,openDialog:c,...Object(M["toRefs"])(a),isUrl:U["w"],openLink:i,handleCallMessageIcon:s,handleCallAgain:r,hrefParams:_e["a"]}}});n("2259");const ln=me()(rn,[["render",tn],["__scopeId","data-v-776d0787"]]);var cn=ln;const dn={class:"message-tip"};function un(e,t,n,o,a,i){var s;return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",dn,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(s=e.message)||void 0===s?void 0:s.text),1)])}var pn=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({message:{}});return Object(M["watchEffect"])(()=>{n.message=e.data}),{...Object(M["toRefs"])(n)}}});n("a6a0");const mn=me()(pn,[["render",un],["__scopeId","data-v-54b2b3c4"]]);var hn=mn,vn=n("dd44"),fn=n.n(vn);const gn=["src"],bn={key:1,class:"avatar",src:fn.a,alt:""},On={class:"message-area"},yn={key:0,class:"name"},jn={key:1,ref:"dropdownRef",class:"dropdown-inner"};function kn(e,t,n,o,a,i){var s,r,l,c,d,u,p;const m=Object(M["resolveComponent"])("MessageReference"),h=Object(M["resolveComponent"])("MessageEmojiReact");return Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],null,[Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["message-bubble",["in"===e.message.flow?"":"reverse"]]),ref:"htmlRefHook"},[e.getSrc(e.message)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:0,class:"avatar",src:e.getSrc(e.message),alt:""},null,8,gn)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",bn)),Object(M["createElementVNode"])("main",On,["in"===e.message.flow&&"GROUP"===e.message.conversationType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("label",yn,Object(M["toDisplayString"])(e.message.nameCard||e.message.nick||e.message.from),1)):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(e.handleImageOrVideoBubbleStyle(e.message)),onContextmenu:t[2]||(t[2]=Object(M["withModifiers"])((...t)=>e.toggleDialog&&e.toggleDialog(...t),["prevent","right"]))},[null!==(s=e.message)&&void 0!==s&&s.cloudCustomData&&e.referenceMessage&&null!==(r=e.referenceMessage)&&void 0!==r&&r.messageRootID?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["message-replie-area",["in"===(null===(l=e.message)||void 0===l?void 0:l.flow)?"":"message-replies-area-reverse"]]),onClick:t[0]||(t[0]=t=>e.showRepliesDialog(e.message,!1))},[Object(M["createVNode"])(m,{message:e.message,referenceMessage:e.referenceMessage,referenceForShow:e.referenceForShow,url:e.url,face:e.face,allMessageID:e.allMessageID,type:"reply"},null,8,["message","referenceMessage","referenceForShow","url","face","allMessageID"])],2)):Object(M["createCommentVNode"])("",!0),Object(M["renderSlot"])(e.$slots,"default",{},void 0,!0),e.dropdown?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",jn,[Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["dialog",["in"===e.message.flow?"":"dialog-right"]]),onClick:t[1]||(t[1]=t=>e.dropdown=!1)},[Object(M["renderSlot"])(e.$slots,"dialog",{},void 0,!0)],2)],512)):Object(M["createCommentVNode"])("",!0),e.needEmojiReact&&e.isEmojiReactionInMessage(e.message)?(Object(M["openBlock"])(),Object(M["createBlock"])(h,{key:2,message:e.message,type:"content"},null,8,["message"])):Object(M["createCommentVNode"])("",!0)],34)]),"fail"===e.message.status?(Object(M["openBlock"])(),Object(M["createElementBlock"])("label",{key:2,class:"message-label fail",onClick:t[3]||(t[3]=t=>e.resendMessage(e.message))},"!")):Object(M["createCommentVNode"])("",!0)],2),null===(c=e.message)||void 0===c||!c.cloudCustomData||!e.referenceMessage||null!==(d=e.referenceMessage)&&void 0!==d&&d.messageRootID?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["message-reference-area",["in"===e.message.flow?"":"message-reference-area-reverse"]]),onClick:t[4]||(t[4]=t=>e.jumpToAim(e.referenceMessage))},[Object(M["createVNode"])(m,{message:e.message,referenceMessage:e.referenceMessage,referenceForShow:e.referenceForShow,url:e.url,face:e.face,allMessageID:e.allMessageID,type:"reference"},null,8,["message","referenceMessage","referenceForShow","url","face","allMessageID"])],2)),null!==(u=e.replies)&&void 0!==u&&u.length?(Object(M["openBlock"])(),Object(M["createElementBlock"])("label",{key:1,class:Object(M["normalizeClass"])(["message-replies",["in"===e.message.flow?"":"message-replies-reverse"]]),onClick:t[5]||(t[5]=t=>e.showRepliesDialog(e.message,!0))},[t[6]||(t[6]=Object(M["createElementVNode"])("i",{class:"icon icon-msg-replies"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])((null===(p=e.replies)||void 0===p?void 0:p.length)+e.$t("TUIChat.条回复")),1)],2)):Object(M["createCommentVNode"])("",!0)],64)}var In=n("b05a"),wn=n("2c28"),En=n("4176");const Cn={class:"message-reference-user"},Tn={class:"nick"},Sn={class:"colon"},_n={key:0,class:"face-box"},Dn={key:0,class:"text-box"},Nn=["src"],Un={key:1},Bn=["src"],Mn={key:3,class:"message-video-cover"},xn=["src"],Vn=["src"],Ln={key:5};function Rn(e,t,n,o,a,i){var s,r,l,c,d,u,p;return null!==(s=e.referenceMessage)&&void 0!==s&&s.messageID&&-1!==_()(r=e.allMessageID).call(r,e.referenceMessage.messageID)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(`${e.type} ${"in"===e.message.flow&&e.type+"-reverse"}`)},[Object(M["createElementVNode"])("p",Cn,[Object(M["createElementVNode"])("span",Tn,Object(M["toDisplayString"])(e.referenceForShow.nick||e.referenceForShow.from),1),Object(M["createElementVNode"])("span",Sn,Object(M["toDisplayString"])("reference"===e.type?":":""),1)]),e.referenceMessage.messageType===e.constant.typeText?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",_n,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.face,(e,t)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:t},["text"===e.name?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Dn,Object(M["toDisplayString"])(e.text),1)):"img"===e.name?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:1,class:"text-img",src:e.src},null,8,Nn)):Object(M["createCommentVNode"])("",!0)]))),128))])):Object(M["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeCustom?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Un,Object(M["toDisplayString"])(e.referenceMessage.messageAbstract),1)):Object(M["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeImage?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:2,class:"message-img",src:e.referenceForShow.payload.imageInfoArray[1].url},null,8,Bn)):Object(M["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeVideo?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Mn,[Object(M["createElementVNode"])("img",{class:"message-videoimg",src:(null===(l=e.referenceForShow)||void 0===l||null===(l=l.payload)||void 0===l?void 0:l.snapshotUrl)||(null===(c=e.referenceForShow)||void 0===c||null===(c=c.payload)||void 0===c?void 0:c.thumbUrl)},null,8,xn)])):Object(M["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeFace?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:4,class:"message-img",src:e.url},null,8,Vn)):Object(M["createCommentVNode"])("",!0),e.referenceMessage.messageType===e.constant.typeFile||e.referenceMessage.messageType===e.constant.typeAudio?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Ln,Object(M["toDisplayString"])(null===(d=e.referenceMessage)||void 0===d?void 0:d.messageAbstract),1)):Object(M["createCommentVNode"])("",!0)],2)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:1,class:Object(M["normalizeClass"])(`${e.type} ${"in"===e.message.flow&&e.type+"-reverse"}`)},[Object(M["createElementVNode"])("p",null,Object(M["toDisplayString"])(null===(u=e.referenceMessage)||void 0===u?void 0:u.messageSender),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(p=e.referenceMessage)||void 0===p?void 0:p.messageAbstract),1)],2))}const Pn=Object(M["defineComponent"])({props:{message:{type:Object,default:{}},referenceMessage:{type:Object,default:()=>({})},referenceForShow:{type:Object,default:()=>({})},face:{type:Array,default:()=>[]},url:{type:String,default:""},allMessageID:{type:String,default:""},type:{type:String,deafault:""}},setup(e,t){const n=Object(M["reactive"])({message:{},referenceMessage:{},referenceForShow:{},allMessageID:"",face:[],url:"",type:""});return Object(M["watchEffect"])(()=>{n.message=e.message,n.referenceMessage=e.referenceMessage,n.referenceForShow=e.referenceForShow,n.face=e.face,n.url=e.url,n.allMessageID=e.allMessageID,n.type=e.type}),Object(M["watch"])(()=>e.referenceForShow,()=>{n.referenceForShow=e.referenceForShow},{deep:!0}),{...Object(M["toRefs"])(n),constant:nn["a"]}}});var An=Pn;n("3b1e");const Gn=me()(An,[["render",Rn],["__scopeId","data-v-06f7d624"]]);var Hn=Gn;const zn={class:"face-list collapse"},Fn={class:"face-list-collapse"},$n=["onClick"],Yn=["src"],Kn={class:"face-list face-list-expand"},Wn=["onClick"],qn=["src"],Zn={key:1,class:"emoji-content"},Jn={class:"emoji-react",ref:"container"},Qn=["onClick"],Xn=["src"],eo={class:"emoji-react-item-content"};function to(e,t,n,o,a,i){var s;return Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],null,["dropdown"===e.type?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["dialog-emoji",null!==(s=e.env)&&void 0!==s&&s.isH5?"dialog-emoji-h5":""])},[Object(M["createElementVNode"])("div",zn,[Object(M["createElementVNode"])("ul",Fn,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.emojiCollapseList,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"face-list-item",key:n,onClick:Object(M["withModifiers"])(n=>e.select(t),["stop"])},[Object(M["createElementVNode"])("img",{src:e.emojiUrl+e.emojiMap[t]},null,8,Yn)],8,$n))),128))]),Object(M["createElementVNode"])("div",{class:"face-list-button",onClick:t[0]||(t[0]=Object(M["withModifiers"])(t=>e.isCollapse=!e.isCollapse,["stop"]))},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon",[e.isCollapse?"icon-expand":"icon-collapse"]])},null,2)])]),Object(M["withDirectives"])(Object(M["createElementVNode"])("ul",Kn,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.emojiExpandList,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"face-list-item",key:n,onClick:Object(M["withModifiers"])(n=>e.select(t),["stop"])},[Object(M["createElementVNode"])("img",{src:e.emojiUrl+e.emojiMap[t]},null,8,qn)],8,Wn))),128))],512),[[M["vShow"],!e.isCollapse]])],2)):Object(M["createCommentVNode"])("",!0),"content"===e.type?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Zn,[Object(M["createElementVNode"])("ul",Jn,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.handleEmojiReact(e.message),(t,n)=>Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"emoji-react-item",key:n,onClick:Object(M["withModifiers"])(t=>e.select(n),["stop"])},[Object(M["createElementVNode"])("img",{src:e.emojiUrl+e.emojiMap[n]},null,8,Xn),Object(M["createElementVNode"])("div",eo,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.handleEmojiReactItem(t)),1)])],8,Qn)),[[M["vShow"],t&&(null===t||void 0===t?void 0:t.length)]])),128))],512)])):Object(M["createCommentVNode"])("",!0)],64)}var no=n("52da"),oo=n.n(no),ao=n("c959"),io=n("17da"),so=Object(M["defineComponent"])({props:{message:{type:Object,default:()=>({})},emojiList:{type:Array,default:()=>[]},type:{type:String,default:""}},emits:["handleCollapse"],setup(e,t){const{TUIServer:n}=br,o=Object(M["reactive"])({message:{},emojiUrl:io["d"],emojiMap:io["b"],emojiName:io["c"],isCollapse:!0,types:ao["a"].TYPES,env:n.TUICore.TUIEnv,type:e.type,emojiReacts:{},allMemberList:[]}),i=Object(M["ref"])({}),s=Object(M["computed"])(()=>{var e;return oo()(e=o.emojiName).call(e,0,6)}),r=Object(M["computed"])(()=>{var e;return oo()(e=o.emojiName).call(e,6)}),l=e=>{n.emojiReact(o.message,e)},c=e=>{try{var t;if(null===e||void 0===e||!e.cloudCustomData)return;const n=null===(t=Object(U["a"])(null===e||void 0===e?void 0:e.cloudCustomData))||void 0===t||null===(t=t.messageReact)||void 0===t?void 0:t.reacts;if(!n)return;return o.emojiReacts=n,n}catch(n){console.warn(n)}},d=e=>{let t="";return null===e||void 0===e||a()(e).call(e,(e,n)=>{var a;const i=null===(a=o.allMemberList)||void 0===a?void 0:I()(a).call(a,t=>t.userID===e);t=t+(i?null===i||void 0===i?void 0:i.nick:e)+", "}),t.length&&(t=t.substring(0,Se()(t).call(t,","))),t},u=e=>{var t,a,i,s,r;const l=null===n||void 0===n?void 0:n.currentStore;switch(null===e||void 0===e?void 0:e.conversationType){case ao["a"].TYPES.CONV_C2C:o.allMemberList=[{userID:null===l||void 0===l||null===(t=l.conversation)||void 0===t||null===(t=t.userProfile)||void 0===t?void 0:t.userID,nick:null===l||void 0===l||null===(a=l.conversation)||void 0===a||null===(a=a.userProfile)||void 0===a?void 0:a.nick},{userID:null===l||void 0===l||null===(i=l.selfInfo)||void 0===i?void 0:i.userID,nick:null===l||void 0===l||null===(s=l.selfInfo)||void 0===s?void 0:s.nick}];break;case ao["a"].TYPES.CONV_GROUP:o.allMemberList=null===l||void 0===l||null===(r=l.allMemberList)||void 0===r?void 0:r.memberList;break;default:break}};return Object(M["watch"])(()=>e.message,(t,n)=>{o.message=e.message,(null===t||void 0===t?void 0:t.conversationID)!==(null===n||void 0===n?void 0:n.conversationID)&&u(t)},{deep:!0,immediate:!0}),Object(M["watch"])(()=>o.isCollapse,(e,n)=>{var a;e!==n&&null!==o&&void 0!==o&&null!==(a=o.env)&&void 0!==a&&a.isH5&&t.emit("handleCollapse",e)}),{...Object(M["toRefs"])(o),emojiCollapseList:s,emojiExpandList:r,select:l,handleEmojiReact:c,handleEmojiReactItem:d,container:i}}});n("7af0");const ro=me()(so,[["render",to],["__scopeId","data-v-3266b21c"]]);var lo=ro;const co=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})},messagesList:{type:Array,default:()=>[]},isH5:{type:Boolean,default:!1},needGroupReceipt:{type:Boolean,default:!1},needReplies:{type:Boolean,default:!0},flow:{type:String,default:""},needEmojiReact:{type:Boolean,default:!1}},emits:["jumpID","resendMessage","showReadReceiptDialog","showRepliesDialog","dropDownOpen"],components:{MessageReference:Hn,MessageEmojiReact:lo},setup(e,t){const{t:n}=window.TUIKitTUICore.config.i18n.useI18n(),{TUIServer:o}=br,a=Object(M["reactive"])({env:Object(D["b"])(),message:{},messagesList:[],show:!1,type:{},referenceMessage:{},referenceForShow:{},allMessageID:"",needGroupReceipt:!1,needReplies:!0,replies:[],face:[],url:"",needEmojiReact:!1});Object(M["watchEffect"])(()=>{var t;if(a.type=nn["a"],a.messagesList=e.messagesList,a.needEmojiReact=e.needEmojiReact,a.message=Object(U["b"])((null===(t=a.messagesList)||void 0===t?void 0:I()(t).call(t,t=>{var n;return(null===t||void 0===t?void 0:t.ID)===(null===(n=e.message)||void 0===n?void 0:n.ID)}))||e.data),a.needGroupReceipt=e.needGroupReceipt,a.needReplies=e.needReplies,a.message.cloudCustomData){var n;const e=[],t=Object(U["a"])(a.message.cloudCustomData);a.replies=(null===t||void 0===t||null===(n=t.messageReplies)||void 0===n?void 0:n.replies)||[],a.referenceMessage=t.messageReply?t.messageReply:"";for(let n=0;n<a.messagesList.length;n++){var o;e.push(a.messagesList[n].ID),a.allMessageID=v()(e),a.messagesList[n].ID===(null===(o=a.referenceMessage)||void 0===o?void 0:o.messageID)&&(a.referenceForShow=a.messagesList[n],a.referenceMessage.messageType===nn["a"].typeText&&(a.face=Object(In["a"])(a.referenceForShow.payload)),a.referenceMessage.messageType===nn["a"].typeFace&&(a.url=`https://web.sdk.qcloud.com/im/assets/face-elem/${a.referenceForShow.payload.data}@2x.png`))}}else a.replies=[]});const i=Object(M["ref"])(null),r=Object(M["ref"])(!1),l=Object(M["ref"])(null),c=e=>{r.value=!r.value,r.value&&(t.emit("dropDownOpen",l),Object(M["nextTick"])(()=>{var t,n,o,i,s,r,c,d,u,p,m;const h=null===l||void 0===l||null===(t=l.value)||void 0===t?void 0:t.children[0],v=document.getElementsByClassName("dialog-item")[0],f=null===l||void 0===l||null===(n=l.value)||void 0===n?void 0:n.offsetParent,g=Object(wn["useElementBounding"])(f),b=document.getElementById("messageEle"),O=Object(wn["useElementBounding"])(b),y=null===O||void 0===O||null===(o=O.left)||void 0===o?void 0:o.value,j=(null===O||void 0===O||null===(i=O.left)||void 0===i?void 0:i.value)+b.clientWidth-h.clientWidth+76,k=null===O||void 0===O||null===(s=O.top)||void 0===s?void 0:s.value,I=(null===O||void 0===O||null===(r=O.top)||void 0===r?void 0:r.value)+b.clientHeight-h.clientHeight,{clientX:w,clientY:E}=e;if(null!==a&&void 0!==a&&null!==(c=a.env)&&void 0!==c&&c.isH5){var C,T,S,_;(null===g||void 0===g||null===(C=g.top)||void 0===C?void 0:C.value)<=(null===v||void 0===v?void 0:v.clientHeight)?h.style.bottom=`-${null===v||void 0===v?void 0:v.clientHeight}px`:"in"===(null===a||void 0===a||null===(_=a.message)||void 0===_?void 0:_.flow)?h.style.top=`-${(null===v||void 0===v?void 0:v.clientHeight)-20}px`:h.style.top=`-${null===v||void 0===v?void 0:v.clientHeight}px`;const e=(null===g||void 0===g||null===(T=g.left)||void 0===T?void 0:T.value)+(null===g||void 0===g||null===(S=g.width)||void 0===S?void 0:S.value)/2;e>v.clientWidth/2&&e<(null===b||void 0===b?void 0:b.clientWidth)-v.clientWidth/2?h.style.left="calc(50% - 135px)":e<=v.clientWidth/2?h.style.left="-20px":h.style.left=`-${v.clientWidth/2+10}px`}else{switch(!0){case w>y&&w<j:h.style.left=Math.max(e.clientX-(null===g||void 0===g||null===(d=g.left)||void 0===d?void 0:d.value)-76,-40)+"px";break;case w<=y:h.style.left="20px";break;case w>=j:h.style.right=Math.max((null===g||void 0===g||null===(u=g.left)||void 0===u?void 0:u.value)+(null===f||void 0===f?void 0:f.clientWidth)-e.clientX-256,-10)+"px";break}switch(!0){case E>k&&E<I:h.style.top=e.clientY-(null===g||void 0===g||null===(p=g.top)||void 0===p?void 0:p.value)+"px",h.style.cssText=h.style.cssText.replace("align-items:end;","");break;case E<=k:h.style.top="0px",h.style.cssText=h.style.cssText.replace("align-items:end;","");break;case E>=I:h.style.bottom=(null===g||void 0===g||null===(m=g.top)||void 0===m?void 0:m.value)+(null===f||void 0===f?void 0:f.clientHeight)-e.clientY+"px",h.style.cssText+="align-items:end;";break}}}))},d=o=>{var i,s,r;if(null!==(i=a.referenceMessage)&&void 0!==i&&i.messageID&&re()(s=a.allMessageID).call(s,null===(r=a.referenceMessage)||void 0===r?void 0:r.messageID))t.emit("jumpID",a.referenceMessage.messageID);else{const t=n("TUIChat.无法定位到原消息");Object(En["b"])(t,e)}};Object(wn["onClickOutside"])(l,()=>{r.value=!1});const u=e=>{var t;null!==a&&void 0!==a&&null!==(t=a.env)&&void 0!==t&&t.isH5&&c(e)};Object(wn["onLongPress"])(i,u);const p=e=>{t.emit("resendMessage",e)},m=e=>!("out"!==e.flow||"success"!==e.status||!e.needReadReceipt||"GROUP"===e.conversationType),h=e=>{var t,n,o;return null!==e&&void 0!==e&&null!==(t=e.readReceiptInfo)&&void 0!==t&&t.isPeerRead||void 0===(null===e||void 0===e||null===(n=e.readReceiptInfo)||void 0===n?void 0:n.isPeerRead)&&null!==e&&void 0!==e&&e.isPeerRead||0===(null===e||void 0===e||null===(o=e.readReceiptInfo)||void 0===o?void 0:o.unreadCount)?"":"unRead"},f=e=>{var t,a;switch(console.log(e.conversationType),e.conversationType){case o.TUICore.TIM.TYPES.CONV_C2C:return null!==e&&void 0!==e&&null!==(t=e.readReceiptInfo)&&void 0!==t&&t.isPeerRead||void 0===(null===e||void 0===e||null===(a=e.readReceiptInfo)||void 0===a?void 0:a.isPeerRead)&&null!==e&&void 0!==e&&e.isPeerRead?n("TUIChat.已读"):n("TUIChat.未读");case o.TUICore.TIM.TYPES.CONV_GROUP:return 0===e.readReceiptInfo.unreadCount?n("TUIChat.全部已读"):0===e.readReceiptInfo.readCount||void 0===e.readReceiptInfo.unreadCount&&void 0===e.readReceiptInfo.readCount?n("TUIChat.未读"):""+(e.readReceiptInfo.readCount+n("TUIChat.人已读"));default:return""}},g=e=>{t.emit("showReadReceiptDialog",e,"receipt")},b=(o,i)=>{var s;if(i)t.emit("showRepliesDialog",o,"replies");else if(null!==(s=a.referenceMessage)&&void 0!==s&&s.messageRootID){var r;const o=null===(r=a.messagesList)||void 0===r?void 0:I()(r).call(r,e=>{var t;return e.ID===(null===(t=a.referenceMessage)||void 0===t?void 0:t.messageRootID)});if(o)return void t.emit("showRepliesDialog",o,"replies");{const t=n("TUIChat.无法定位到原消息");Object(En["b"])(t,e)}}},O=e=>{const t=["content"];return e?(t.push("content-"+a.message.flow),a.message.type!==ao["a"].TYPES.MSG_IMAGE||y(e)||t.push("content-image"),a.message.type!==ao["a"].TYPES.MSG_VIDEO||y(e)||t.push("content-video"),t):t},y=e=>{try{var t;if(null===e||void 0===e||!e.cloudCustomData)return;const n=null===(t=Object(U["a"])(null===e||void 0===e?void 0:e.cloudCustomData))||void 0===t||null===(t=t.messageReact)||void 0===t?void 0:t.reacts;return!(!n||0===s()(n).length)}catch(n){return console.warn(n),!1}},j=e=>{let t=null===e||void 0===e?void 0:e.avatar.split("/");return null!==e&&void 0!==e&&e.avatar&&t[t.length-1]?null===e||void 0===e?void 0:e.avatar:""};return{getSrc:j,...Object(M["toRefs"])(a),toggleDialog:c,htmlRefHook:i,jumpToAim:d,dropdown:r,dropdownRef:l,resendMessage:p,showReadReceiptTag:m,readReceiptStyle:h,readReceiptCont:f,showReadReceiptDialog:g,showRepliesDialog:b,handleImageOrVideoBubbleStyle:O,isEmojiReactionInMessage:y,TIM:ao["a"]}}});var uo=co;n("668f");const po=me()(uo,[["render",kn],["__scopeId","data-v-721af588"]]);var mo=po;const ho={class:"revoke"},vo={key:0},fo={key:1};function go(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",ho,["in"===e.message.flow?(Object(M["openBlock"])(),Object(M["createElementBlock"])("label",vo,Object(M["toDisplayString"])(e.message.nick||e.message.from),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("label",fo,Object(M["toDisplayString"])(e.$t("TUIChat.您")),1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.撤回了一条消息")),1),"out"===e.message.flow&&e.isEdit?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:2,class:"edit",onClick:t[0]||(t[0]=(...t)=>e.edit&&e.edit(...t))},Object(M["toDisplayString"])(e.$t("TUIChat.重新编辑")),1)):Object(M["createCommentVNode"])("",!0)])}var bo=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})},isEdit:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({message:{},isEdit:!1});Object(M["watchEffect"])(()=>{n.message=e.data,n.isEdit=e.isEdit});const o=()=>{t.emit("edit",n.message)};return{...Object(M["toRefs"])(n),edit:o}}});n("29ef");const Oo=me()(bo,[["render",go],["__scopeId","data-v-dedd5890"]]);var yo=Oo;const jo={class:"message-system"},ko={class:"list"},Io={key:0,class:"btn-box"},wo=["onClick"],Eo=["onClick"];function Co(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",jo,[Object(M["createElementVNode"])("ul",ko,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.messageList,(n,o)=>{var a;return Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:o},[n.type===e.types.MSG_GRP_TIP||n.type===e.types.MSG_GRP_SYS_NOTICE?(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:0},[t[0]||(t[0]=Object(M["createElementVNode"])("i",{class:"icon icon-system"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.translateGroupSystemNotice(n)),1),1===(null===n||void 0===n||null===(a=n.payload)||void 0===a?void 0:a.operationType)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Io,[Object(M["createElementVNode"])("button",{class:"btn btn-default",onClick:t=>e.handleApplication("Agree",n)},"接受",8,wo),Object(M["createElementVNode"])("button",{class:"btn btn-cancel",onClick:t=>e.handleApplication("Reject",n)},"拒绝",8,Eo)])):Object(M["createCommentVNode"])("",!0)],64)):Object(M["createCommentVNode"])("",!0)])}),128))])])}var To=Object(M["defineComponent"])({props:{data:{type:Array,default:()=>[]},types:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({messageList:[],types:{}});Object(M["watchEffect"])(()=>{n.messageList=e.data,n.types=e.types});const o=(e,n)=>{const o={handleAction:e,message:n};t.emit("application",o)};return{...Object(M["toRefs"])(n),translateGroupSystemNotice:U["x"],handleApplication:o}}});n("181e");const So=me()(To,[["render",Co],["__scopeId","data-v-55c508aa"]]);var _o=So;function Do(e,t,n,o,a,i){var s,r,l;const c=Object(M["resolveComponent"])("MessageEmojiReact");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["dialog-item",null!==(s=e.env)&&void 0!==s&&s.isH5?"dialog-item-h5":"dialog-item-web"])},[null!==(r=e.env)&&void 0!==r&&r.isH5&&e.needEmojiReact?(Object(M["openBlock"])(),Object(M["createBlock"])(c,{key:0,message:e.message,type:"dropdown",onHandleCollapse:e.handleCollapse},null,8,["message","onHandleCollapse"])):Object(M["createCommentVNode"])("",!0),Object(M["withDirectives"])(Object(M["createElementVNode"])("ul",{class:Object(M["normalizeClass"])(["dialog-item-list",null!==(l=e.env)&&void 0!==l&&l.isH5?"dialog-item-list-h5":"dialog-item-list-web"])},[e.message.type!==e.types.MSG_FILE&&e.message.type!==e.types.MSG_VIDEO&&e.message.type!==e.types.MSG_IMAGE||e.env.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:0,onClick:t[0]||(t[0]=t=>e.openMessage(e.message))},[t[7]||(t[7]=Object(M["createElementVNode"])("i",{class:"icon icon-msg-copy"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.打开")),1)])),e.message.type===e.types.MSG_TEXT?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:1,onClick:t[1]||(t[1]=t=>e.handleMessage(e.message,e.constant.handleMessage.copy))},[t[8]||(t[8]=Object(M["createElementVNode"])("i",{class:"icon icon-msg-copy"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.复制")),1)])):Object(M["createCommentVNode"])("",!0),"success"===e.message.status?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:2,onClick:t[2]||(t[2]=t=>e.handleMessage(e.message,e.constant.handleMessage.forward))},[t[9]||(t[9]=Object(M["createElementVNode"])("i",{class:"icon icon-msg-forward"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.转发")),1)])):Object(M["createCommentVNode"])("",!0),"success"===e.message.status?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:3,onClick:t[3]||(t[3]=t=>e.handleMessage(e.message,e.constant.handleMessage.reference))},[t[10]||(t[10]=Object(M["createElementVNode"])("i",{class:"icon icon-msg-quote"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.引用")),1)])):Object(M["createCommentVNode"])("",!0),"success"===e.message.status?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:4,onClick:t[4]||(t[4]=t=>e.handleMessage(e.message,e.constant.handleMessage.reply))},[t[11]||(t[11]=Object(M["createElementVNode"])("i",{class:"icon icon-msg-reply"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.回复")),1)])):Object(M["createCommentVNode"])("",!0),"out"===e.message.flow&&"success"===e.message.status&&e.message.type!==e.types.MSG_CUSTOM?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:5,onClick:t[5]||(t[5]=t=>e.handleMessage(e.message,e.constant.handleMessage.revoke))},[t[12]||(t[12]=Object(M["createElementVNode"])("i",{class:"icon icon-msg-revoke"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.撤回")),1)])):Object(M["createCommentVNode"])("",!0),"success"===e.message.status?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:6,onClick:t[6]||(t[6]=t=>e.handleMessage(e.message,e.constant.handleMessage.delete))},[t[13]||(t[13]=Object(M["createElementVNode"])("i",{class:"icon icon-msg-del"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.删除")),1)])):Object(M["createCommentVNode"])("",!0)],2),[[M["vShow"],e.showToolList]])],2)}var No=n("a019"),Uo=Object(M["defineComponent"])({props:{message:{type:Object,default:()=>({})},needEmojiReact:{type:Boolean,default:!1}},components:{MessageEmojiReact:lo},setup(e,t){var n,o;const a=null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n?void 0:n.TUIChat,i=(null===(o=window)||void 0===o||null===(o=o.TUIKitTUICore)||void 0===o?void 0:o.isOfficial)&&sn["c"]&&Object(sn["c"])()||{},s=Object(M["reactive"])({message:{},show:!1,types:ao["a"].TYPES,env:a.TUICore.TUIEnv,showToolList:!0,needEmojiReact:!1});Object(M["watchEffect"])(()=>{s.needEmojiReact=e.needEmojiReact}),Object(M["watch"])(()=>e.message,()=>{s.message=e.message},{deep:!0,immediate:!0});const r=e=>{let t="";switch(e.type){case s.types.MSG_FILE:t=e.payload.fileUrl;break;case s.types.MSG_VIDEO:t=e.payload.remoteVideoUrl;break;case s.types.MSG_IMAGE:t=e.payload.imageInfoArray[0].url;break}window.open(t,"_blank")},l=async(e,n)=>{switch(n){case nn["a"].handleMessage.revoke:try{var o;await a.revokeMessage(e),an.getInstance().reportEvent({name:"messageOptions",ext1:"messageRevoke"}),(null===(o=window)||void 0===o||null===(o=o.TUIKitTUICore)||void 0===o?void 0:o.isOfficial)&&(null===i||void 0===i?void 0:i.commit)&&(null===i||void 0===i||i.commit("handleTask",1))}catch(c){Object(En["b"])(c,s.env)}break;case nn["a"].handleMessage.copy:try{var r;if((null===e||void 0===e?void 0:e.type)===s.types.MSG_TEXT&&null!==e&&void 0!==e&&null!==(r=e.payload)&&void 0!==r&&r.text){var l;const{toClipboard:t}=Object(No["a"])();await t(null===e||void 0===e||null===(l=e.payload)||void 0===l?void 0:l.text)}}catch(c){Object(En["b"])(c,s.env)}break;case nn["a"].handleMessage.delete:await a.deleteMessage([e]),an.getInstance().reportEvent({name:"messageOptions",ext1:"messageDelete"});break;case nn["a"].handleMessage.forward:an.getInstance().reportEvent({name:"messageOptions",ext1:"messageForward"}),t.emit("handleMessage",e,nn["a"].handleMessage.forward);break;case nn["a"].handleMessage.reference:t.emit("handleMessage",e,nn["a"].handleMessage.reference);break;case nn["a"].handleMessage.reply:t.emit("handleMessage",e,nn["a"].handleMessage.reply);break}},c=e=>{var t;null!==s&&void 0!==s&&null!==(t=s.env)&&void 0!==t&&t.isH5&&(s.showToolList=e)};return{...Object(M["toRefs"])(s),openMessage:r,handleMessage:l,constant:nn["a"],handleCollapse:c}}});n("be7e");const Bo=me()(Uo,[["render",Do],["__scopeId","data-v-60d6f26f"]]);var Mo=Bo;const xo={class:"message-item"};var Vo=Object(M["defineComponent"])({__name:"index",props:{message:{type:Object,default:()=>({})},beforeMessage:{type:Object,default:()=>({})},types:{type:Object,default:()=>({})},env:{type:Object,default:()=>({})},messageList:{type:Array,default:()=>[]},displayGroupMessageReadReceipt:{type:Boolean,default:!0},displayEmojiReactions:{type:Boolean,default:!0}},emits:["handleEditor","showDialog","uploading","jumpID","resendMessage"],setup(e,{emit:t}){const n=e,o=t,{message:a,types:i,env:s,messageList:r,displayGroupMessageReadReceipt:l,displayEmojiReactions:c}=Object(M["toRefs"])(n),d=e=>{o("handleEditor",e,"reedit")},u=(e,t)=>{if(e&&t)switch(t){case nn["a"].handleMessage.forward:o("showDialog",e,nn["a"].handleMessage.forward);break;case nn["a"].handleMessage.reference:o("handleEditor",e,nn["a"].handleMessage.reference);break;case nn["a"].handleMessage.reply:o("handleEditor",e,nn["a"].handleMessage.reply);break;default:break}},p=e=>{e&&o("showDialog",e,"previewImage")},m=e=>{e&&o("showDialog",e,"receipt")},h=e=>{e&&o("showDialog",e,"replies")},v=()=>{o("uploading")},f=e=>{e&&o("resendMessage",e)};return(e,t)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",xo,[Object(M["unref"])(U["u"])(Object(M["unref"])(a))&&Object(M["unref"])(a).type!==Object(M["unref"])(i).MSG_CUSTOM?(Object(M["openBlock"])(),Object(M["createBlock"])(hn,{key:0,data:Object(M["unref"])(U["s"])(Object(M["unref"])(a))},null,8,["data"])):Object(M["unref"])(a).isRevoked?(Object(M["openBlock"])(),Object(M["createBlock"])(yo,{key:2,isEdit:Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_TEXT,data:Object(M["unref"])(a),onEdit:t[0]||(t[0]=e=>d(Object(M["unref"])(a)))},null,8,["isEdit","data"])):(Object(M["openBlock"])(),Object(M["createBlock"])(mo,{key:1,style:{background:"#f5f5f5 !important"},data:Object(M["unref"])(a),isH5:Object(M["unref"])(s).isH5,types:Object(M["unref"])(i),messagesList:Object(M["unref"])(r),needGroupReceipt:Object(M["unref"])(l),needReplies:!0,needEmojiReact:Object(M["unref"])(c),onResendMessage:f,onShowReadReceiptDialog:m,onShowRepliesDialog:h},{dialog:Object(M["withCtx"])(()=>{var e;return[Object(M["createVNode"])(Mo,{message:Object(M["unref"])(a),needEmojiReact:Object(M["unref"])(c),onHandleMessage:u},null,8,["message","needEmojiReact"]),null!==(e=Object(M["unref"])(s))&&void 0!==e&&e.isH5||!Object(M["unref"])(c)?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createBlock"])(lo,{key:0,message:Object(M["unref"])(a),type:"dropdown"},null,8,["message"]))]}),default:Object(M["withCtx"])(()=>[Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_TEXT?(Object(M["openBlock"])(),Object(M["createBlock"])(ve,{key:0,data:Object(M["unref"])(U["r"])(Object(M["unref"])(a))},null,8,["data"])):Object(M["createCommentVNode"])("",!0),Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_IMAGE?(Object(M["openBlock"])(),Object(M["createBlock"])(Ue,{key:1,isH5:Object(M["unref"])(s).isH5,data:Object(M["unref"])(U["j"])(Object(M["unref"])(a)),onUploading:v,onPreviewImage:p},null,8,["isH5","data"])):Object(M["createCommentVNode"])("",!0),Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_VIDEO?(Object(M["openBlock"])(),Object(M["createBlock"])(ze,{key:2,isH5:Object(M["unref"])(s).isH5,data:Object(M["unref"])(U["t"])(Object(M["unref"])(a)),onUploading:v},null,8,["isH5","data"])):Object(M["createCommentVNode"])("",!0),Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_AUDIO?(Object(M["openBlock"])(),Object(M["createBlock"])(We,{key:3,data:Object(M["unref"])(U["e"])(Object(M["unref"])(a))},null,8,["data"])):Object(M["createCommentVNode"])("",!0),Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_FILE?(Object(M["openBlock"])(),Object(M["createBlock"])(at,{key:4,data:Object(M["unref"])(U["i"])(Object(M["unref"])(a))},null,8,["data"])):Object(M["createCommentVNode"])("",!0),Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_FACE?(Object(M["openBlock"])(),Object(M["createBlock"])(dt,{key:5,data:Object(M["unref"])(U["h"])(Object(M["unref"])(a)),isH5:Object(M["unref"])(s).isH5},null,8,["data","isH5"])):Object(M["createCommentVNode"])("",!0),Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_LOCATION?(Object(M["openBlock"])(),Object(M["createBlock"])(gt,{key:6,data:Object(M["unref"])(U["k"])(Object(M["unref"])(a))},null,8,["data"])):Object(M["createCommentVNode"])("",!0),Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_CUSTOM?(Object(M["openBlock"])(),Object(M["createBlock"])(cn,{key:7,data:Object(M["unref"])(U["g"])(Object(M["unref"])(a))},null,8,["data"])):Object(M["createCommentVNode"])("",!0),Object(M["unref"])(a).type===Object(M["unref"])(i).MSG_MERGER?(Object(M["openBlock"])(),Object(M["createBlock"])(wt,{key:8,data:Object(M["unref"])(U["l"])(Object(M["unref"])(a))},null,8,["data"])):Object(M["createCommentVNode"])("",!0)]),_:1},8,["data","isH5","types","messagesList","needGroupReceipt","needEmojiReact"]))]))}});n("5e50");const Lo=me()(Vo,[["__scopeId","data-v-1f1c862e"]]);var Ro=Lo,Po=Object(M["defineComponent"])({__name:"message-timestamp",props:{currTime:{type:Number,default:0},prevTime:{type:Number,default:0}},setup(e){var t;const n=e,{t:o}=null===(t=window)||void 0===t||null===(t=t.TUIKitTUICore)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.i18n)||void 0===t?void 0:t.useI18n(),{currTime:a,prevTime:i}=Object(M["toRefs"])(n),s=Object(M["ref"])(!1),r=Object(M["ref"])(""),l=(e,t)=>{if(s.value=!1,e<=0)return"";if(!t||t<=0)return s.value=!0,c(1e3*e);{const n=600,o=e-t;if(o>=n)return s.value=!0,c(1e3*e)}return""};function c(e){const t=(new Date).setHours(0,0,0,0),n=new Date((new Date).getFullYear(),0,1,0,0,0,0).getTime(),a=new Date(e),i=864e5,s=7*i,r=t-a.getTime();function l(e){return e<10?"0"+e:e.toString()}if(r<=0)return`${l(a.getHours())}:${l(a.getMinutes())}`;if(r<=i)return`${o("time.昨天")} ${l(a.getHours())}:${l(a.getMinutes())}`;if(r<=s-i){const e=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],t=e[a.getDay()];return`${o("time."+t)} ${l(a.getHours())}:${l(a.getMinutes())}`}return a.getTime()>=n?`${a.getMonth()+1}/${a.getDate()} ${l(a.getHours())}:${l(a.getMinutes())}`:`${a.getFullYear()}/${a.getMonth()+1}/${a.getDate()} ${l(a.getHours())}:${l(a.getMinutes())}`}return Object(M["watch"])(()=>[a.value,i.value],(e,t)=>{(null===e||void 0===e?void 0:e.toString())!==(null===t||void 0===t?void 0:t.toString())&&(r.value=l(a.value,i.value))},{immediate:!0}),(e,t)=>Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:"message-timestamp"},Object(M["toDisplayString"])(r.value),513)),[[M["vShow"],s.value]])}});n("944d");const Ao=me()(Po,[["__scopeId","data-v-673faa2b"]]);var Go=Ao;const Ho={class:"manage-header"},zo={class:"manage-header-left"},Fo={key:0,class:"main"},$o={class:"userInfo space-top"},Yo=["onClick"],Ko=["src"],Wo={key:0},qo={key:1},Zo={class:"groupID"},Jo=["title"],Qo=["src"],Xo={class:"footer space-top"},ea={key:4,class:"admin"},ta={key:0,class:"admin-list"},na=["src"],oa={key:1,class:"admin-content space-top"},aa={key:2,class:"admin-list last"},ia=["src"],sa={key:0,class:"delDialog-title"},ra={key:1,class:"delDialog-title"};function la(e,t,n,o,a,i){var s,r,l;const c=Object(M["resolveComponent"])("ManageName"),d=Object(M["resolveComponent"])("ManageMember"),u=Object(M["resolveComponent"])("MemeberProfile"),p=Object(M["resolveComponent"])("ManageNotification"),m=Object(M["resolveComponent"])("Slider"),h=Object(M["resolveComponent"])("Transfer"),v=Object(M["resolveComponent"])("Mask"),f=Object(M["resolveComponent"])("Dialog");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",null,[Object(M["createElementVNode"])("i",{class:"icon icon-chat-setting",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))}),e.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["manage",[e.isH5?"manage-h5":""]]),ref:"dialog"},[Object(M["createElementVNode"])("header",Ho,[e.isH5&&!e.currentTab?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[1]||(t[1]=(...t)=>e.toggleShow&&e.toggleShow(...t))})):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("aside",zo,[e.currentTab?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[2]||(t[2]=t=>e.setTab(""))})):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("main",null,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage."+e.TabName)),1)])]),Object(M["createElementVNode"])("span",null,[e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-close",onClick:t[3]||(t[3]=(...t)=>e.toggleShow&&e.toggleShow(...t))}))])]),e.currentTab?"member"===e.currentTab?(Object(M["openBlock"])(),Object(M["createBlock"])(d,{key:1,self:e.conversation.groupProfile.selfInfo,list:e.userInfo.list,total:~~e.conversation.groupProfile.memberCount,isShowDel:"Owner"===e.conversation.groupProfile.selfInfo.role,onMore:t[14]||(t[14]=t=>e.getMember("more")),onDel:e.submit,onHandleMemberProfileShow:e.handleMemberProfileShow},null,8,["self","list","total","isShowDel","onDel","onHandleMemberProfileShow"])):"profile"===e.currentTab?(Object(M["openBlock"])(),Object(M["createBlock"])(u,{key:2,userInfo:e.currentMember},null,8,["userInfo"])):"notification"===e.currentTab?(Object(M["openBlock"])(),Object(M["createBlock"])(p,{key:3,isAuth:e.isAuth,data:e.conversation.groupProfile,onUpdate:e.updateProfile},null,8,["isAuth","data","onUpdate"])):"admin"===e.currentTab?(Object(M["openBlock"])(),Object(M["createElementBlock"])("main",ea,[e.isAdmin?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",ta,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.群管理员")),1),Object(M["createElementVNode"])("ol",null,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.member.admin,(e,t)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("dl",{key:t},[Object(M["createElementVNode"])("dt",null,[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===e||void 0===e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,na)]),Object(M["createElementVNode"])("dd",null,Object(M["toDisplayString"])((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.userID)),1)]))),128)),Object(M["createElementVNode"])("dl",null,[Object(M["createElementVNode"])("dt",{class:"avatar",onClick:t[15]||(t[15]=t=>e.toggleMask("addAdmin"))},"+")]),Object(M["createElementVNode"])("dl",null,[e.member.admin.length>0?(Object(M["openBlock"])(),Object(M["createElementBlock"])("dt",{key:0,class:"avatar",onClick:t[16]||(t[16]=t=>e.toggleMask("removeAdmin"))},"-")):Object(M["createCommentVNode"])("",!0)])])])):Object(M["createCommentVNode"])("",!0),e.isSetMuteTime?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",oa,[Object(M["createElementVNode"])("aside",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.全员禁言")),1),Object(M["createElementVNode"])("p",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.全员禁言开启后,只允许群主和管理员发言。")),1)]),Object(M["createVNode"])(m,{open:e.conversation.groupProfile.muteAllMembers,onChange:e.setAllMuteTime},null,8,["open","onChange"])])):Object(M["createCommentVNode"])("",!0),e.isSetMuteTime?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",aa,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.单独禁言人员")),1),Object(M["createElementVNode"])("ol",null,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.member.muteMember,(e,t)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("dl",{key:t},[Object(M["createElementVNode"])("dt",null,[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===e||void 0===e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,ia)]),Object(M["createElementVNode"])("dd",null,Object(M["toDisplayString"])((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.userID)),1)]))),128)),Object(M["createElementVNode"])("dl",null,[Object(M["createElementVNode"])("dt",{class:"avatar",onClick:t[17]||(t[17]=t=>e.toggleMask("addMute"))},"+")]),Object(M["createElementVNode"])("dl",null,[e.member.muteMember.length>0?(Object(M["openBlock"])(),Object(M["createElementBlock"])("dt",{key:0,class:"avatar",onClick:t[18]||(t[18]=t=>e.toggleMask("removeMute"))},"-")):Object(M["createCommentVNode"])("",!0)])])])):Object(M["createCommentVNode"])("",!0)])):Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("main",Fo,[Object(M["createVNode"])(c,{class:"space-top",isAuth:e.isAuth,isH5:e.isH5,data:e.conversation.groupProfile,onUpdate:e.updateProfile},null,8,["isAuth","isH5","data","onUpdate"]),Object(M["createElementVNode"])("div",$o,[Object(M["createElementVNode"])("header",{class:"userInfo-header",onClick:t[4]||(t[4]=t=>e.setTab("member"))},[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.群成员")),1),Object(M["createElementVNode"])("p",null,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.conversation.groupProfile.memberCount)+Object(M["toDisplayString"])(e.$t("TUIChat.manage.人")),1),t[22]||(t[22]=Object(M["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])]),Object(M["createElementVNode"])("ol",null,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(null===(s=e.userInfo)||void 0===s||null===(s=s.list)||void 0===s?void 0:oo()(s).call(s,0,e.showUserNum),(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("dl",{key:n},[Object(M["createElementVNode"])("dt",{onClick:n=>e.handleMemberProfileShow(t)},[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Ko)],8,Yo),Object(M["createElementVNode"])("dd",null,Object(M["toDisplayString"])((null===t||void 0===t?void 0:t.nick)||(null===t||void 0===t?void 0:t.userID)),1)]))),128)),e.isShowAddMember?(Object(M["openBlock"])(),Object(M["createElementBlock"])("dl",Wo,[Object(M["createElementVNode"])("dt",{class:"avatar",onClick:t[5]||(t[5]=t=>e.toggleMask("add"))},"+")])):Object(M["createCommentVNode"])("",!0),"Owner"===e.conversation.groupProfile.selfInfo.role?(Object(M["openBlock"])(),Object(M["createElementBlock"])("dl",qo,[Object(M["createElementVNode"])("dt",{class:"avatar",onClick:t[6]||(t[6]=t=>e.toggleMask("remove"))},"-")])):Object(M["createCommentVNode"])("",!0)])]),Object(M["createElementVNode"])("ul",{class:"content space-top",onClick:t[10]||(t[10]=t=>e.editLableName="")},[Object(M["createElementVNode"])("li",{onClick:t[7]||(t[7]=Object(M["withModifiers"])(t=>e.setTab("notification"),["stop"]))},[Object(M["createElementVNode"])("aside",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.群公告")),1),Object(M["createElementVNode"])("article",null,Object(M["toDisplayString"])(e.conversation.groupProfile.notification),1)]),t[23]||(t[23]=Object(M["createElementVNode"])("i",{class:"icon icon-right end"},null,-1))]),e.isAdmin&&e.isSetMuteTime?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:0,onClick:t[8]||(t[8]=Object(M["withModifiers"])(t=>e.setTab("admin"),["stop"]))},[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.群管理")),1),t[24]||(t[24]=Object(M["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("li",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.群ID")),1),Object(M["createElementVNode"])("div",Zo,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.conversation.groupProfile.groupID),1),Object(M["createElementVNode"])("i",{class:"icon icon-msg-copy",onClick:t[9]||(t[9]=(...t)=>e.handleGroupIDCopy&&e.handleGroupIDCopy(...t)),title:e.$t("TUIChat.复制")},null,8,Jo)])]),Object(M["createElementVNode"])("li",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.群头像")),1),Object(M["createElementVNode"])("img",{class:"avatar",src:(null===(r=e.conversation)||void 0===r||null===(r=r.groupProfile)||void 0===r?void 0:r.avatar)||"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg",onerror:"this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,Qo)]),Object(M["createElementVNode"])("li",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.群类型")),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage."+e.typeName[e.conversation.groupProfile.type])),1)]),Object(M["createElementVNode"])("li",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.加群方式")),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage."+e.typeName[e.conversation.groupProfile.joinOption])),1)])]),Object(M["createElementVNode"])("ul",Xo,["Owner"===e.conversation.groupProfile.selfInfo.role&&(null===(l=e.userInfo)||void 0===l?void 0:l.list.length)>1?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:0,onClick:t[11]||(t[11]=Object(M["withModifiers"])(t=>e.toggleMask("changeOwner"),["stop"]))},Object(M["toDisplayString"])(e.$t("TUIChat.manage.转让群组")),1)):Object(M["createCommentVNode"])("",!0),e.isDismissGroupAuth?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:1,onClick:t[12]||(t[12]=Object(M["withModifiers"])(t=>e.dismiss(e.conversation.groupProfile),["stop"]))},Object(M["toDisplayString"])(e.$t("TUIChat.manage.解散群聊")),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:2,onClick:t[13]||(t[13]=Object(M["withModifiers"])(t=>e.quit(e.conversation.groupProfile),["stop"]))},Object(M["toDisplayString"])(e.$t("TUIChat.manage.退出群组")),1))])])),Object(M["createVNode"])(v,{show:e.mask,"onUpdate:show":t[19]||(t[19]=t=>e.mask=t)},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(h,{title:e.$t("TUIChat.manage."+e.transferTitle),list:e.transferList,isSearch:e.isSearch,isRadio:e.isRadio,selectedList:e.selectedList,onSubmit:e.submit,onCancel:e.cancel,onSearch:e.handleSearchMember,isH5:e.isH5},null,8,["title","list","isSearch","isRadio","selectedList","onSubmit","onCancel","onSearch","isH5"])]),_:1},8,["show"]),Object(M["createVNode"])(f,{title:e.$t("TUIChat.manage.删除成员"),show:e.delDialogShow,isH5:e.isH5,center:!0,isHeaderShow:!e.isH5,onSubmit:t[20]||(t[20]=t=>e.handleManage(e.userList,"remove")),"onUpdate:show":t[21]||(t[21]=t=>e.delDialogShow=t)},{default:Object(M["withCtx"])(()=>[1===e.userList.length?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",sa,Object(M["toDisplayString"])(e.$t("TUIChat.manage.确定从群聊中删除该成员?")),1)):Object(M["createCommentVNode"])("",!0),e.userList.length>1?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",ra,Object(M["toDisplayString"])(e.$t("TUIChat.manage.确定从群聊中删除所选成员?")),1)):Object(M["createCommentVNode"])("",!0)]),_:1},8,["title","show","isH5","isHeaderShow"])],2)):Object(M["createCommentVNode"])("",!0)])}var ca=n("c52e"),da=n.n(ca);function ua(e,t,n,o,a,i){return e.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:"mask",onClick:t[0]||(t[0]=Object(M["withModifiers"])((...t)=>e.toggleView&&e.toggleView(...t),["self"]))},[Object(M["renderSlot"])(e.$slots,"default",{},void 0,!0)])):Object(M["createCommentVNode"])("",!0)}var pa=Object(M["defineComponent"])({props:{show:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({show:!1});Object(M["watchEffect"])(()=>{n.show=e.show});const o=()=>{n.show=!n.show,t.emit("update:show",n.show)};return{...Object(M["toRefs"])(n),toggleView:o}}});n("1848");const ma=me()(pa,[["render",ua],["__scopeId","data-v-5acb611d"]]);var ha=ma;const va={key:0,class:"transfer-h5-header"},fa={class:"title"},ga={class:"main"},ba={class:"left"},Oa={key:0},ya=["placeholder"],ja={class:"list"},ka={class:"all"},Ia=["onClick"],wa=["src"],Ea={class:"name"},Ca={key:0},Ta={class:"right"},Sa={key:0},_a={class:"list"},Da={key:0},Na=["src"],Ua={key:0},Ba=["onClick"];function Ma(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["transfer",[e.isH5?"transfer-h5":""]])},[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",va,[Object(M["createElementVNode"])("i",{class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.cancel&&e.cancel(...t))}),Object(M["createElementVNode"])("span",fa,Object(M["toDisplayString"])(e.title),1)])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("main",ga,[Object(M["createElementVNode"])("div",ba,[e.isSearch?(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",Oa,[Object(M["createElementVNode"])("input",{type:"text",onKeyup:t[1]||(t[1]=Object(M["withKeys"])((...t)=>e.handleInput&&e.handleInput(...t),["enter"])),placeholder:e.$t("component.请输入userID"),enterkeyhint:"search"},null,40,ya)])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("main",null,[Object(M["createElementVNode"])("ul",ja,[e.optional.length>1&&!e.isRadio?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:0,class:"list-item",onClick:t[2]||(t[2]=(...t)=>e.selectedAll&&e.selectedAll(...t))},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon",[e.selectedList.length===e.optional.length?"icon-selected":"icon-unselected"]])},null,2),Object(M["createElementVNode"])("span",ka,Object(M["toDisplayString"])(e.$t("component.全选")),1)])):Object(M["createCommentVNode"])("",!0),(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.list,(t,n)=>{var o;return Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"list-item",key:n,onClick:n=>e.selected(t)},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon",[(null===t||void 0===t?void 0:t.isDisabled)&&"disabled",_()(o=e.selectedList).call(o,t)>-1?"icon-selected":"icon-unselected"]])},null,2),e.isCustomItem?Object(M["renderSlot"])(e.$slots,"left",{key:1,data:t},void 0,!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:0},[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,wa),Object(M["createElementVNode"])("span",Ea,Object(M["toDisplayString"])((null===t||void 0===t?void 0:t.nick)||(null===t||void 0===t?void 0:t.userID)),1),null!==t&&void 0!==t&&t.isDisabled?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Ca,""+Object(M["toDisplayString"])(e.$t("component.已在群聊中"))+"",1)):Object(M["createCommentVNode"])("",!0)],64))],8,Ia)}),128))])])]),Object(M["createElementVNode"])("div",Ta,[e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",Sa,Object(M["toDisplayString"])(e.title),1)),Object(M["withDirectives"])(Object(M["createElementVNode"])("ul",_a,[e.selectedList.length>0&&!e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",Da,Object(M["toDisplayString"])(e.$t("component.已选中"))+Object(M["toDisplayString"])(e.selectedList.length)+Object(M["toDisplayString"])(e.$t("component.人")),1)):Object(M["createCommentVNode"])("",!0),(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.selectedList,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"list-item space-between",key:n},[Object(M["createElementVNode"])("aside",null,[e.isCustomItem?Object(M["renderSlot"])(e.$slots,"right",{key:1,data:t},void 0,!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:0},[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Na),e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Ua,Object(M["toDisplayString"])(t.nick||t.userID),1))],64))]),e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-cancel",onClick:n=>e.selected(t)},null,8,Ba))]))),128))],512),[[M["vShow"],e.resultShow]]),Object(M["createElementVNode"])("footer",null,[Object(M["createElementVNode"])("button",{class:"btn btn-cancel",onClick:t[3]||(t[3]=(...t)=>e.cancel&&e.cancel(...t))},Object(M["toDisplayString"])(e.$t("component.取消")),1),e.selectedList.length>0?(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:0,class:"btn",onClick:t[4]||(t[4]=(...t)=>e.submit&&e.submit(...t))},Object(M["toDisplayString"])(e.$t("component.完成")),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:1,class:"btn btn-no",onClick:t[5]||(t[5]=(...t)=>e.submit&&e.submit(...t))},Object(M["toDisplayString"])(e.$t("component.完成")),1))])])])],2)}var xa=Object(M["defineComponent"])({props:{list:{type:Array,default:()=>[]},selectedList:{type:Array,default:()=>[]},isSearch:{type:Boolean,default:()=>!0},isRadio:{type:Boolean,default:()=>!1},isCustomItem:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},type:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},resultShow:{type:Boolean,default:()=>!0}},setup(e,t){const n=Object(M["reactive"])({type:"",list:[],selectedList:[],isSearch:!0,isCustomItem:!1,title:""});Object(M["watchEffect"])(()=>{if(e.isCustomItem)for(let a=0;a<e.list.length;a++){var t,o;if(_()(t=e.list[a].conversationID).call(t,"@TIM#SYSTEM")>-1)T()(o=e.list).call(o,a,1);n.list=e.list}else n.list=e.list;n.selectedList=e.selectedList,n.isSearch=e.isSearch,n.isCustomItem=e.isCustomItem,n.title=e.title,n.type=e.type});const o=Object(M["computed"])(()=>{var e;return j()(e=n.list).call(e,e=>!e.isDisabled)}),a=e=>{t.emit("search",e.target.value)},i=t=>{if(t.isDisabled)return;let o=n.selectedList;const a=_()(o).call(o,t);var i;if(a>-1)return T()(i=n.selectedList).call(i,a,1);e.isRadio&&(o=[]),o.push(t),n.selectedList=o},s=()=>{n.selectedList.length===o.value.length?n.selectedList=[]:n.selectedList=[...o.value]},r=()=>{t.emit("submit",n.selectedList)},l=()=>{t.emit("cancel")};return{...Object(M["toRefs"])(n),optional:o,handleInput:a,selected:i,selectedAll:s,submit:r,cancel:l}}});n("dc3f");const Va=me()(xa,[["render",Ma],["__scopeId","data-v-88c982be"]]);var La=Va;function Ra(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["slider-box",[e.open&&"slider-open"]]),onClick:t[0]||(t[0]=(...t)=>e.toggle&&e.toggle(...t))},t[1]||(t[1]=[Object(M["createElementVNode"])("span",{class:"slider-block"},null,-1)]),2)}var Pa=Object(M["defineComponent"])({props:{open:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({open:!1});Object(M["watchEffect"])(()=>{n.open=e.open});const o=()=>{n.open=!n.open,t.emit("change",n.open)};return{...Object(M["toRefs"])(n),toggle:o}}});n("2b91");const Aa=me()(Pa,[["render",Ra],["__scopeId","data-v-759db46f"]]);var Ga=Aa;const Ha={class:"name"},za={key:0,class:"edit-h5-header"},Fa={class:"left"},$a={class:"input-box"},Ya={key:1},Ka={key:1,class:"edit-h5-footer"},Wa=["disabled"],qa={key:0,class:"icon icon-edit"};function Za(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Ha,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.群名称")),1),e.isEdit?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])([e.isH5?"edit-h5":""]),ref:"dialog"},[Object(M["createElementVNode"])("main",null,[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",za,[Object(M["createElementVNode"])("aside",Fa,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.修改群聊名称")),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.manage.修改群聊名称后,将在群内通知其他成员")),1)]),Object(M["createElementVNode"])("span",{class:"close",onClick:t[0]||(t[0]=(...t)=>e.toggleEdit&&e.toggleEdit(...t))},Object(M["toDisplayString"])(e.$t("关闭")),1)])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("div",$a,[e.isEdit?Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:0,class:"input","onUpdate:modelValue":t[1]||(t[1]=t=>e.input=t),type:"text",onKeyup:t[2]||(t[2]=Object(M["withKeys"])((...t)=>e.updateProfile&&e.updateProfile(...t),["enter"]))},null,544)),[[M["vModelText"],e.input]]):Object(M["createCommentVNode"])("",!0),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Ya,Object(M["toDisplayString"])(e.$t("TUIChat.manage.仅限中文、字母、数字和下划线,2-20个字")),1)):Object(M["createCommentVNode"])("",!0)]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("footer",Ka,[Object(M["createElementVNode"])("button",{class:"btn",disabled:!e.input,onClick:t[3]||(t[3]=(...t)=>e.updateProfile&&e.updateProfile(...t))},Object(M["toDisplayString"])(e.$t("确认")),9,Wa)])):Object(M["createCommentVNode"])("",!0)])],2)):Object(M["createCommentVNode"])("",!0),!e.isEdit||e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",{key:1,onClick:t[4]||(t[4]=(...t)=>e.toggleEdit&&e.toggleEdit(...t))},[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.groupProfile.name),1),e.isAuth?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",qa)):Object(M["createCommentVNode"])("",!0)])):Object(M["createCommentVNode"])("",!0)])}const Ja=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})},isAuth:{type:Boolean,default:!1},isH5:{type:Boolean,default:!1}},setup(e,t){const n=Object(M["reactive"])({groupProfile:{},input:"",isEdit:!1});Object(M["watchEffect"])(()=>{n.groupProfile=e.data});const o=Object(M["ref"])();Object(wn["onClickOutside"])(o,()=>{n.isEdit=!1});const a=async()=>{n.input&&n.input!==n.groupProfile.name&&(t.emit("update",{key:"name",value:n.input}),n.groupProfile.name=n.input,n.input=""),i()},i=async()=>{e.isAuth&&(n.isEdit=!n.isEdit),n.isEdit&&(n.input=n.groupProfile.name)};return{...Object(M["toRefs"])(n),updateProfile:a,toggleEdit:i,dialog:o}}});var Qa=Ja;n("ae10");const Xa=me()(Qa,[["render",Za],["__scopeId","data-v-33cc130c"]]);var ei=Xa;const ti={class:"notification"},ni={key:1},oi={key:0},ai={key:1},ii={key:2};function si(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("main",ti,[e.isEdit?Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("textarea",{key:0,"onUpdate:modelValue":t[0]||(t[0]=t=>e.input=t),onKeyup:t[1]||(t[1]=Object(M["withKeys"])((...t)=>e.updateProfile&&e.updateProfile(...t),["enter"]))},null,544)),[[M["vModelText"],e.input]]):(Object(M["openBlock"])(),Object(M["createElementBlock"])("section",ni,[e.groupProfile.notification?(Object(M["openBlock"])(),Object(M["createElementBlock"])("article",ai,Object(M["toDisplayString"])(e.groupProfile.notification),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",oi,Object(M["toDisplayString"])(e.$t("TUIChat.manage.暂无公告")),1))])),e.isAuth?(Object(M["openBlock"])(),Object(M["createElementBlock"])("footer",ii,[e.isEdit?(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:0,class:"btn",onClick:t[2]||(t[2]=(...t)=>e.updateProfile&&e.updateProfile(...t))},Object(M["toDisplayString"])(e.$t("TUIChat.manage.发布")),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:1,class:"btn",onClick:t[3]||(t[3]=t=>e.isEdit=!e.isEdit)},Object(M["toDisplayString"])(e.$t("TUIChat.manage.编辑")),1))])):Object(M["createCommentVNode"])("",!0)])}const ri=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})},isAuth:{type:Boolean,default:!1}},setup(e,t){const n=Object(M["reactive"])({groupProfile:{},input:"",isEdit:!1});Object(M["watchEffect"])(()=>{n.groupProfile=e.data,n.input=n.groupProfile.notification});const o=async()=>{n.input&&n.input!==n.groupProfile.notification&&(t.emit("update",{key:"notification",value:n.input}),n.groupProfile.notification=n.input,n.input=""),n.isEdit=!n.isEdit};return{...Object(M["toRefs"])(n),updateProfile:o}}});var li=ri;n("c548");const ci=me()(li,[["render",si],["__scopeId","data-v-30b370b1"]]);var di=ci;const ui={class:"member"},pi={class:"list"},mi=["onClick"],hi=["src"],vi={class:"name"},fi=["onClick"];function gi(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("main",ui,[Object(M["createElementVNode"])("ul",pi,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.list,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"list-item",key:n},[Object(M["createElementVNode"])("aside",{onClick:n=>e.handleMemberProfileShow(t)},[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,hi),Object(M["createElementVNode"])("span",vi,Object(M["toDisplayString"])((null===t||void 0===t?void 0:t.nick)||(null===t||void 0===t?void 0:t.userID)),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.handleRoleName(t)),1)],8,mi),"Owner"!==t.role&&e.isShowDel?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-del",onClick:n=>e.submit(t)},null,8,fi)):Object(M["createCommentVNode"])("",!0)]))),128)),e.list.length<e.total?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:0,class:"list-item",onClick:t[0]||(t[0]=(...t)=>e.getMore&&e.getMore(...t))},Object(M["toDisplayString"])(e.$t("TUIChat.manage.查看更多")),1)):Object(M["createCommentVNode"])("",!0)])])}var bi=n("e23e"),Oi=n.n(bi);const yi=Object(M["defineComponent"])({components:{},props:{list:{type:Array,default:()=>[]},total:{type:Number,default:()=>0},isShowDel:{type:Boolean,default:()=>!1},self:{type:Object,default:()=>({})}},setup(e,t){const n=Oi.a.TYPES,o=Object(M["reactive"])({total:0,list:[],isShowDel:!1,self:{}});Object(M["watchEffect"])(()=>{o.total=e.total,o.isShowDel=e.isShowDel,o.list=e.list,o.self=e.self});const a=e=>{const{t:t}=window.TUIKitTUICore.config.i18n.useI18n();let a="";switch(null===e||void 0===e?void 0:e.role){case n.GRP_MBR_ROLE_ADMIN:a=t("TUIChat.manage.管理员");break;case n.GRP_MBR_ROLE_OWNER:a=t("TUIChat.manage.群主");break}return a&&(a=`(${a})`),e.userID===o.self.userID&&(a+=` (${t("TUIChat.manage.我")})`),a},i=()=>{t.emit("more")},s=e=>{t.emit("del",[e])},r=e=>{t.emit("handleMemberProfileShow",e)};return{...Object(M["toRefs"])(o),getMore:i,submit:s,handleRoleName:a,handleMemberProfileShow:r}}});var ji=yi;n("cb8a");const ki=me()(ji,[["render",gi],["__scopeId","data-v-806f1058"]]);var Ii=ki;const wi={class:"memeber-profile"},Ei={class:"memeber-profile-main"},Ci=["src"],Ti={class:"list"},Si={class:"memeber-profile-footer"};function _i(e,t,n,o,a,i){var s,r,l,c,d;return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",wi,[Object(M["createElementVNode"])("div",Ei,[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===(s=e.userInfo)||void 0===s?void 0:s.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Ci),Object(M["createElementVNode"])("ul",Ti,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])((null===(r=e.userInfo)||void 0===r?void 0:r.nick)||(null===(l=e.userInfo)||void 0===l?void 0:l.userID)),1),Object(M["createElementVNode"])("li",null,[t[1]||(t[1]=Object(M["createElementVNode"])("label",null,"ID",-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(c=e.userInfo)||void 0===c?void 0:c.userID),1)]),Object(M["createElementVNode"])("li",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.个性签名"))+"",1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(d=e.userInfo)||void 0===d?void 0:d.selfSignature),1)])])]),Object(M["createElementVNode"])("div",Si,[e.showEnter()?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:"button",onClick:t[0]||(t[0]=t=>{var n;return e.enter(null===(n=e.userInfo)||void 0===n?void 0:n.userID,"C2C")})},Object(M["toDisplayString"])(e.$t("TUIContact.发送消息")),1)):Object(M["createCommentVNode"])("",!0)])])}const Di=Object(M["defineComponent"])({props:{userInfo:{type:Object,default:()=>({})}},setup(e,t){const n=null===Fi||void 0===Fi?void 0:Fi.TUIServer,o=Object(M["reactive"])({isFriendShip:!1,userInfo:{},self:{}});Object(M["watchEffect"])(()=>{o.self=e.self}),Object(M["watch"])(()=>e.userInfo,async(t,a)=>{var s;if(t===a)return;const r=await n.getUserProfile([null===e||void 0===e||null===(s=e.userInfo)||void 0===s?void 0:s.userID]);o.userInfo=null===r||void 0===r?void 0:r.data[0],i()},{deep:!0,immediate:!0});const a=async(e,t)=>{const o=`${t}${e}`;n.TUICore.TUIServer.TUIConversation.getConversationProfile(o).then(e=>{n.TUICore.TUIServer.TUIConversation.handleCurrentConversation(e.data.conversation)})},i=async()=>{if(!o.userInfo.userID)return;const e=await n.checkFriend(o.userInfo.userID,ao["a"].TYPES.SNS_CHECK_TYPE_BOTH);o.isFriendShip=e===ao["a"].TYPES.SNS_TYPE_BOTH_WAY},s=()=>{var e;return o.isFriendShip||!(null!==n&&void 0!==n&&null!==(e=n.TUICore)&&void 0!==e&&e.isOfficial)};return{...Object(M["toRefs"])(o),enter:a,showEnter:s}}});var Ni=Di;n("fe1e");const Ui=me()(Ni,[["render",_i],["__scopeId","data-v-29f6ea36"]]);var Bi=Ui;const Mi={key:0},xi={class:"dialog-main-content"},Vi={key:1};function Li(e,t,n,o,a,i){return e.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["dialog",[e.isH5?"dialog-h5":"",e.center?"center":""]]),onClick:t[3]||(t[3]=Object(M["withModifiers"])((...t)=>e.toggleView&&e.toggleView(...t),["self"]))},[Object(M["createElementVNode"])("main",{class:"dialog-main",style:Object(M["normalizeStyle"])(!e.background&&{background:"none"})},[e.isHeaderShow?(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",Mi,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.title),1),Object(M["createElementVNode"])("i",{class:"icon icon-close",onClick:t[0]||(t[0]=(...t)=>e.toggleView&&e.toggleView(...t))})])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("div",xi,[Object(M["renderSlot"])(e.$slots,"default",{},void 0,!0)]),e.isFooterShow?(Object(M["openBlock"])(),Object(M["createElementBlock"])("footer",Vi,[Object(M["createElementVNode"])("button",{class:"btn btn-cancel",onClick:t[1]||(t[1]=(...t)=>e.toggleView&&e.toggleView(...t))},Object(M["toDisplayString"])(e.$t("component.取消")),1),Object(M["createElementVNode"])("button",{class:"btn btn-default",onClick:t[2]||(t[2]=(...t)=>e.submit&&e.submit(...t))},Object(M["toDisplayString"])(e.$t("component.确定")),1)])):Object(M["createCommentVNode"])("",!0)],4)],2)):Object(M["createCommentVNode"])("",!0)}var Ri=Object(M["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isHeaderShow:{type:Boolean,default:()=>!0},isFooterShow:{type:Boolean,default:()=>!0},background:{type:Boolean,default:()=>!0},title:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},center:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({show:!1,isHeaderShow:!0,isFooterShow:!0,background:!0,title:""});Object(M["watchEffect"])(()=>{n.show=e.show,n.title=e.title,n.isHeaderShow=e.isHeaderShow,n.isFooterShow=e.isFooterShow,n.background=e.background});const o=()=>{n.show=!n.show,t.emit("update:show",n.show)},a=()=>{t.emit("submit"),o()};return{...Object(M["toRefs"])(n),toggleView:o,submit:a}}});n("606b");const Pi=me()(Ri,[["render",Li],["__scopeId","data-v-087d9968"]]);var Ai=Pi;const Gi=Object(M["defineComponent"])({components:{Mask:ha,Transfer:La,Slider:Ga,ManageName:ei,ManageNotification:di,ManageMember:Ii,MemeberProfile:Bi,Dialog:Ai},props:{userInfo:{type:Object,default:()=>({isGroup:!1,list:[]})},conversation:{type:Object,default:()=>({})},show:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){var n;const o=Gi.TUIServer.TUICore.TIM.TYPES,{GroupServer:a}=Gi,{t:i}=Gi.TUIServer.TUICore.config.i18n.useI18n(),s=Object(M["reactive"])({conversation:{},userInfo:{isGroup:!1,list:[]},isShowMuteTimeInput:!1,editLableName:"",mask:!1,currentTab:"",transferType:"",isSearch:!1,isRadio:!1,transferList:[],selectedList:[],isMuteTime:!1,show:!1,typeName:{[o.GRP_WORK]:"好友工作群",[o.GRP_PUBLIC]:"陌生人社交群",[o.GRP_MEETING]:"临时会议群",[o.GRP_AVCHATROOM]:"直播群",[o.JOIN_OPTIONS_FREE_ACCESS]:"自由加入",[o.JOIN_OPTIONS_NEED_PERMISSION]:"需要验证",[o.JOIN_OPTIONS_DISABLE_APPLY]:"禁止加群"},delDialogShow:!1,userList:[],transferTitle:"",member:{admin:[],member:[],muteMember:[]},currentMember:{}}),r=Object(M["ref"])();Object(M["watchEffect"])(()=>{s.conversation=e.conversation,s.userInfo=e.userInfo,s.show=e.show});const c=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&(null===sn["b"]||void 0===sn["b"]?void 0:sn["b"].useStore())||{},d=Object(M["computed"])(()=>{let e="";switch(s.currentTab){case"notification":e="群公告";break;case"member":e="群成员";break;case"profile":e="群成员";break;default:e="群管理";break}return e});Object(M["watch"])(()=>s.userInfo.list,(e,t)=>{s.member={admin:[],member:[],muteMember:[]},l()(e).call(e,e=>{switch(null===e||void 0===e?void 0:e.role){case o.GRP_MBR_ROLE_ADMIN:s.member.admin.push(e);break;case o.GRP_MBR_ROLE_MEMBER:s.member.member.push(e);break;default:break}return e});const n=(new Date).getTime();s.member.muteMember=j()(e).call(e,e=>1e3*(null===e||void 0===e?void 0:e.muteUntil)-n>0)},{deep:!0});const u=Object(M["computed"])(()=>{var e,t;const{conversation:n}=s,a=null===n||void 0===n||null===(e=n.groupProfile)||void 0===e?void 0:e.selfInfo.role,i=null===n||void 0===n||null===(t=n.groupProfile)||void 0===t?void 0:t.type,r=a===o.GRP_MBR_ROLE_OWNER,l=i===o.GRP_WORK;return r&&!l}),p=Object(M["computed"])(()=>{var e;const{conversation:t}=s,n=null===t||void 0===t||null===(e=t.groupProfile)||void 0===e?void 0:e.type,a=n===o.GRP_WORK;return!!a}),m=Object(M["computed"])(()=>{let e=3;return p.value||(e+=1),"Owner"!==s.conversation.groupProfile.selfInfo.role&&(e+=1),e}),h=Object(M["computed"])(()=>{var e;const{conversation:t}=s,n=null===t||void 0===t||null===(e=t.groupProfile)||void 0===e?void 0:e.selfInfo.role,a=n===o.GRP_MBR_ROLE_OWNER,i=n===o.GRP_MBR_ROLE_ADMIN;return a||i}),v=Object(M["computed"])(()=>{var e,t;const{conversation:n}=s,a=null===n||void 0===n||null===(e=n.groupProfile)||void 0===e?void 0:e.type,i=null===n||void 0===n||null===(t=n.groupProfile)||void 0===t?void 0:t.selfInfo.role,r=i===o.GRP_MBR_ROLE_OWNER,l=a===o.GRP_WORK,c=a===o.GRP_AVCHATROOM;return!(l||c||!r)}),f=Object(M["computed"])(()=>{var e;const{conversation:t}=s,n=null===t||void 0===t||null===(e=t.groupProfile)||void 0===e?void 0:e.type,a=n===o.GRP_WORK;return!(a||!h.value)}),g=e=>{var t;const{conversation:n}=s,o={groupID:null===n||void 0===n||null===(t=n.groupProfile)||void 0===t?void 0:t.groupID,count:100,offset:e&&"more"===e?s.userInfo.list.length:0};a.getGroupMemberList(o).then(t=>{s.userInfo.list=e&&"more"===e?[...s.userInfo.list,...t.data.memberList]:t.data.memberList})},b=async e=>{const{conversation:t}=s,n={groupID:t.groupProfile.groupID,userIDList:e};await a.addGroupMember(n),g("More")},O=e=>{const{conversation:t}=s,n={groupID:t.groupProfile.groupID,userIDList:[e.userID]};a.deleteGroupMember(n)},y=async e=>{const t={groupID:s.conversation.groupProfile.groupID,newOwnerID:e},n=await a.changeGroupOwner(t);s.conversation.groupProfile={},s.conversation.groupProfile=n.data.group},k=async e=>{await a.quitGroup(e.groupID),Gi.TUIServer.store.conversation={}},I=async e=>{var t;await a.dismissGroup(e.groupID),Gi.TUIServer.store.conversation={},(null===(t=window)||void 0===t||null===(t=t.TUIKitTUICore)||void 0===t?void 0:t.isOfficial)&&(null===c||void 0===c?void 0:c.commit)&&(null===c||void 0===c||c.commit("handleTask",5))},w=async e=>{const{conversation:t}=s;let n="";switch(e.role){case o.GRP_MBR_ROLE_ADMIN:n=o.GRP_MBR_ROLE_MEMBER;break;case o.GRP_MBR_ROLE_MEMBER:n=o.GRP_MBR_ROLE_ADMIN;break}const i={groupID:t.groupProfile.groupID,userID:e.userID,role:n};await a.setGroupMemberRole(i),g()},E=async(e,t)=>{const{conversation:n}=s,o={groupID:n.groupProfile.groupID,userID:e,muteTime:"add"===t?2592e3:0};var i;(await a.setGroupMemberMuteTime(o),"add"===t)&&((null===(i=window)||void 0===i||null===(i=i.TUIKitTUICore)||void 0===i?void 0:i.isOfficial)&&(null===c||void 0===c?void 0:c.commit)&&(null===c||void 0===c||c.commit("handleTask",4)));g()},C=async e=>{const{conversation:t}=s,n={groupID:t.groupProfile.groupID,userIDList:e,reason:""};await a.deleteGroupMember(n),g()},T=e=>{s.editLableName=e},S=async e=>{const{key:t,value:n}=e,o={groupID:s.conversation.groupProfile.groupID,[t]:n},i=await a.updateGroupProfile(o),{conversation:r}=Gi.TUIServer.store;r.groupProfile=i.data.group,Gi.TUIServer.store.conversation={},Gi.TUIServer.store.conversation=r,s.editLableName=""},_=e=>{s.currentTab=e,s.editLableName="","member"===s.currentTab&&(s.transferType="remove"),s.currentTab||(s.transferType="")},D=async t=>{let n={},o={};const r={groupID:s.conversation.groupProfile.groupID,userIDList:[t]};switch(s.transferType){case"add":try{var c,d,u;if(o=await a.getGroupMemberProfile(r),s.transferList=j()(c=s.transferList).call(c,e=>{var t;return e.userID!==(null===(t=n.data[0])||void 0===t?void 0:t.userID)}),s.transferList=[...s.transferList,...n.data],(null===(d=o)||void 0===d||null===(d=d.data)||void 0===d?void 0:d.memberList.length)>0)s.transferList=l()(u=s.transferList).call(u,e=>{var t;return e.userID===(null===(t=o)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.memberList[0].userID)&&(e.isDisabled=!0),e})}catch(h){const t=i("TUIChat.manage.该用户不存在");Object(En["b"])(t,e)}break;case"remove":try{var p,m;if(n=await a.getGroupMemberProfile(r),0===n.data.memberList.length){const t=i("TUIChat.manage.该用户不在群组内");return Object(En["b"])(t,e)}s.transferList=j()(p=s.transferList).call(p,e=>{var t;return e.userID!==(null===(t=n)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.memberList[0])||void 0===t?void 0:t.userID)}),s.transferList=[...s.transferList,...null===(m=n)||void 0===m||null===(m=m.data)||void 0===m?void 0:m.memberList]}catch(h){const t=i("TUIChat.manage.该用户不存在");Object(En["b"])(t,e)}break;default:break}},N=e=>{"remove"===s.transferType?(s.userList=e,s.delDialogShow=!s.delDialogShow):R(e,s.transferType),s.mask=!1},U=async()=>{var e;const t=await Gi.TUIServer.getFriendList(),n=l()(e=t.data).call(e,e=>null===e||void 0===e?void 0:e.profile);return j()(n).call(n,e=>{var t;return!da()(t=s.userInfo.list).call(t,t=>t.userID===e.userID)})},B=()=>{x()},x=async e=>{var t;switch(s.selectedList=[],e){case"add":s.isRadio=!1,s.transferList=await U(),s.transferTitle="添加成员";break;case"remove":s.isRadio=!1,s.transferList=j()(t=s.userInfo.list).call(t,e=>{var t;return e.userID!==(null===(t=s.conversation)||void 0===t||null===(t=t.groupProfile)||void 0===t?void 0:t.selfInfo.userID)}),s.transferTitle="删除成员";break;case"addAdmin":s.isRadio=!0,s.transferList=s.member.member,s.transferTitle="新增管理员";break;case"removeAdmin":s.isRadio=!0,s.transferList=s.member.admin,s.transferTitle="移除管理员";break;case"changeOwner":s.isRadio=!0,s.transferList=[...s.member.admin,...s.member.member],s.transferTitle="转让群组";break;case"addMute":s.isRadio=!0,s.transferList=s.member.member,"Owner"===s.conversation.groupProfile.selfInfo.role&&(s.transferList=[...s.member.admin,...s.member.member]),s.transferTitle="新增禁言用户";break;case"removeMute":s.isRadio=!0,s.transferList=s.member.muteMember,s.transferTitle="移除禁言用户";break;default:break}s.transferType=e,s.mask=!s.mask};Object(wn["onClickOutside"])(r,()=>{s.show=!1});const V=()=>{if(!a){const t=i("TUIChat.manage.请先注册 TUIGroup 模块");return Object(En["b"])(t,e)}s.show=!s.show,s.show||(s.currentTab=""),s.show&&(g(),an.getInstance().reportEvent({name:"showGroupManage",ext1:"showGroupManage"}))},L=e=>{var t;S({key:"muteAllMembers",value:e}),(null===(t=window)||void 0===t||null===(t=t.TUIKitTUICore)||void 0===t?void 0:t.isOfficial)&&(null===c||void 0===c?void 0:c.commit)&&(null===c||void 0===c||c.commit("handleTask",4))},R=(e,t)=>{const n=[];switch(l()(e).call(e,e=>(n.push(e.userID),e)),an.getInstance().reportEvent({name:"groupOptions",ext1:"groupOptions"}),t){case"add":b(n),an.getInstance().reportEvent({name:"groupOptions",ext1:"groupAddMember"});break;case"remove":C(n),an.getInstance().reportEvent({name:"groupOptions",ext1:"groupRemoveMember"});break;case"addAdmin":w(e[0]),an.getInstance().reportEvent({name:"groupOptions",ext1:"groupAddAdmin"});break;case"removeAdmin":w(e[0]),an.getInstance().reportEvent({name:"groupOptions",ext1:"groupRemoveAdmin"});break;case"changeOwner":y(n[0]),an.getInstance().reportEvent({name:"groupOptions",ext1:"groupChangeOwner"});break;case"addMute":E(n[0],"add"),an.getInstance().reportEvent({name:"groupOptions",ext1:"groupAddMute"});break;case"removeMute":E(n[0],"remove"),an.getInstance().reportEvent({name:"groupOptions",ext1:"groupRemoveMute"});break;default:break}},P=async()=>{try{var e;const{toClipboard:t}=Object(No["a"])();await t(null===s||void 0===s||null===(e=s.conversation)||void 0===e||null===(e=e.groupProfile)||void 0===e?void 0:e.groupID)}catch(t){Object(En["b"])(t,s.env)}},A=e=>{s.currentMember=e,_("profile")};return{...Object(M["toRefs"])(s),isDismissGroupAuth:u,isShowAddMember:p,isSetMuteTime:f,isAdmin:v,isAuth:h,addMember:b,deleteMember:O,changeOwner:y,quit:k,dismiss:I,handleAdmin:w,setMemberMuteTime:E,kickedOut:C,edit:T,updateProfile:S,setTab:_,TabName:d,getMember:g,handleSearchMember:D,submit:N,cancel:B,toggleMask:x,toggleShow:V,setAllMuteTime:L,handleManage:R,showUserNum:m,dialog:r,handleGroupIDCopy:P,handleMemberProfileShow:A}}});var Hi=Gi;n("5392");const zi=me()(Hi,[["render",la],["__scopeId","data-v-f731557c"]]);var Fi=zi,$i=n("0613");const Yi={product:{label:"产品文档",url:"https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD"},customMessage:{label:"自定义消息",url:"https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#createCustomMessage"},complaint:{label:"点此投诉",url:"https://cloud.tencent.com/apply/p/xc3oaubi98g"},implement:{label:"集成TUICallKit",url:"https://cloud.tencent.com/document/product/269/79861"},purchase:{label:"开通腾讯实时音视频服务",url:"https://cloud.tencent.com/document/product/1640/79968"}};var Ki=Yi,Wi=n("505e"),qi=n.n(Wi),Zi=n("a4fc"),Ji=n.n(Zi),Qi=n("5202"),Xi=n("41b5"),es=n("ec4e"),ts=n("600a"),ns=n("2c34"),os=n("cfd7"),as=n("36f7"),is=n("1ad4"),ss=as["a"].extend({name:"custom-image",addAttributes(){return{...as["a"].config.addAttributes(),class:{default:"image",rendered:!1}}},addCommands(){return{setImage:e=>({tr:t,commands:n})=>{var o;return"custom-image"==(null===(o=t.selection)||void 0===o||null===(o=o.node)||void 0===o||null===(o=o.type)||void 0===o?void 0:o.name)?n.updateAttributes("custom-image",e):n.insertContent({type:this.name,attrs:e})}}},renderHTML({node:e,HTMLAttributes:t}){return t.class="custom-image-"+e.attrs.class,["img",Object(is["k"])(this.options.HTMLAttributes,t)]}});const rs={class:"memberList",ref:"dialog"},ls={key:0,class:"memberList-title"},cs={class:"title"},ds={class:"memberList-box"},us=["onClick"],ps=["src"];function ms(e,t,n,o,a,i){return e.showAtList?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["message-input-at",[e.isH5&&"message-input-at-h5"]]),ref:"MessageInputAt"},[Object(M["createElementVNode"])("div",rs,[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",ls,[Object(M["createElementVNode"])("span",cs,Object(M["toDisplayString"])(e.$t("TUIChat.选择提醒的人")),1),Object(M["createElementVNode"])("i",{class:"icon icon-close close",onClick:t[0]||(t[0]=(...t)=>e.closeAt&&e.closeAt(...t))})])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("ul",ds,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.showMemberList,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:Object(M["normalizeClass"])(["memberList-box-body",[n===e.selectedIndex&&"selected"]]),key:n,onClick:t=>e.selectItem(n),ref_for:!0,ref:"memberListItems"},[Object(M["createElementVNode"])("img",{src:(null===t||void 0===t?void 0:t.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png"},null,8,ps),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null!==t&&void 0!==t&&t.nick?null===t||void 0===t?void 0:t.nick:null===t||void 0===t?void 0:t.userID),1)],10,us))),128))])],512)],2)):Object(M["createCommentVNode"])("",!0)}var hs=n("703d"),vs=n.n(hs);const fs=Object(M["ref"])(),gs=Object(M["ref"])(!1),bs=Object(M["ref"])(),Os=Object(M["ref"])(),ys=Object(M["ref"])({left:0,top:0}),js=Object(M["ref"])(),ks=Object(M["ref"])(0),Is=Object(M["ref"])(),ws=Object(M["ref"])(!1),Es=()=>({allowedPrefixes:null,items:e=>{var t;const n=null===bs||void 0===bs||null===(t=bs.value)||void 0===t?void 0:j()(t).call(t,t=>{var n,o,a,i;return(null===t||void 0===t||null===(n=t.nick)||void 0===n||null===(n=n.toLowerCase())||void 0===n?void 0:Ji()(n).call(n,null===e||void 0===e||null===(o=e.query)||void 0===o?void 0:o.toLowerCase()))||(null===t||void 0===t||null===(a=t.userID)||void 0===a||null===(a=a.toLowerCase())||void 0===a?void 0:Ji()(a).call(a,null===e||void 0===e||null===(i=e.query)||void 0===i?void 0:i.toLowerCase()))});return Os.value=null!==n&&void 0!==n&&n.length?n:bs.value,Os.value},render:()=>({onStart:e=>{if(gs.value=!0,null===e||void 0===e||!e.clientRect)return;const t=null===e||void 0===e?void 0:e.clientRect();null!==t&&void 0!==t&&t.left&&null!==t&&void 0!==t&&t.top&&!ws.value&&(ys.value={left:null===t||void 0===t?void 0:t.left,top:null===t||void 0===t?void 0:t.top}),js.value=e.command},onUpdate(e){if(null===e||void 0===e||!e.clientRect)return;const t=null===e||void 0===e?void 0:e.clientRect();null!==t&&void 0!==t&&t.left&&null!==t&&void 0!==t&&t.top&&!ws.value&&(ys.value={left:null===t||void 0===t?void 0:t.left,top:null===t||void 0===t?void 0:t.top})},onKeyDown(e){var t,n;"Enter"===e.event.key&&(null===(t=e.event)||void 0===t||t.stopPropagation(),null===(n=e.event)||void 0===n||n.preventDefault());return"Escape"===e.event.key?(gs.value=!1,Os.value=bs.value,!0):"ArrowUp"===(null===e||void 0===e?void 0:e.event.key)?(Cs(),!0):"ArrowDown"===(null===e||void 0===e?void 0:e.event.key)?(Ts(),!0):"Enter"===(null===e||void 0===e?void 0:e.event.key)&&(Ss(),!0)},onExit(e){gs.value=!1,Os.value=bs.value,ys.value={left:0,top:0}}})}),Cs=()=>{var e,t,n,o;null!==Os&&void 0!==Os&&null!==(e=Os.value)&&void 0!==e&&e.length&&(ks.value=(ks.value+(null===Os||void 0===Os||null===(t=Os.value)||void 0===t?void 0:t.length)-1)%(null===Os||void 0===Os||null===(n=Os.value)||void 0===n?void 0:n.length),null===Is||void 0===Is||null===(o=Is.value[ks.value])||void 0===o||o.scrollIntoView(!1))},Ts=()=>{var e,t,n;null!==Os&&void 0!==Os&&null!==(e=Os.value)&&void 0!==e&&e.length&&(ks.value=(ks.value+1)%(null===Os||void 0===Os||null===(t=Os.value)||void 0===t?void 0:t.length),null===Is||void 0===Is||null===(n=Is.value[ks.value])||void 0===n||n.scrollIntoView(!1))},Ss=()=>{_s(ks.value)},_s=e=>{var t;if(null===bs||void 0===bs||null===(t=bs.value)||void 0===t||!t.length)return;const n=null===bs||void 0===bs?void 0:bs.value[e];n&&js.value&&js.value({id:null===n||void 0===n?void 0:n.userID,label:(null===n||void 0===n?void 0:n.nick)||(null===n||void 0===n?void 0:n.userID)})},Ds=Object(M["defineComponent"])({props:{memberList:{type:Array,default:()=>[]},isGroup:{type:Boolean,default:!1},selfInfo:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},setup(e){const{memberList:t,isGroup:n,selfInfo:o}=Object(M["toRefs"])(e),a={userID:ao["a"].TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:vs.a},i=Object(M["ref"])();Object(M["watchEffect"])(()=>{gs.value=gs.value&&n.value,ws.value=e.isH5}),Object(M["watch"])(()=>t.value,()=>{var e,n,i;null!==t&&void 0!==t&&null!==(e=t.value[0])&&void 0!==e&&e.isAll||(null===t||void 0===t||null===(i=t.value)||void 0===i||i.unshift(a));const s=null===t||void 0===t||null===(n=t.value)||void 0===n?void 0:j()(n).call(n,e=>{var t;return(null===e||void 0===e?void 0:e.userID)!==(null===o||void 0===o||null===(t=o.value)||void 0===t?void 0:t.userID)});bs.value=s,Os.value=s},{deep:!0,immediate:!0}),Object(M["watch"])(()=>[ys.value,null===fs||void 0===fs?void 0:fs.value],()=>{var e;!ws.value&&null!==fs&&void 0!==fs&&fs.value&&null!==fs&&void 0!==fs&&null!==(e=fs.value)&&void 0!==e&&e.style&&(fs.value.style.left=ys.value.left+"px",fs.value.style.top=ys.value.top-fs.value.clientHeight+"px")},{deep:!0,immediate:!0});const s=()=>{gs.value=!1,Os.value=bs.value,ys.value={left:0,top:0}};return Object(wn["onClickOutside"])(i,()=>{s()}),{selectedIndex:ks,selectItem:_s,showAtList:gs,closeAt:s,showMemberList:Os,allMemberList:bs,MessageInputAt:fs,memberListItems:Is,dialog:i}}});var Ns=Ds;n("4712");const Us=me()(Ns,[["render",ms],["__scopeId","data-v-29169fdf"]]);var Bs=Us,Ms=Object(M["defineComponent"])({__name:"message-input-editor",props:{placeholder:{type:String,default:"this is placeholder"},replayOrReferenceMessage:{type:Object,default:()=>({})},isMute:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableDragUpload:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isH5:{type:Boolean,default:!0},isGroup:{type:Boolean,default:!1}},emits:["sendMessage","onTyping"],setup(e,{expose:t,emit:n}){const o=e,i=n,{placeholder:s,isH5:r,enableAt:l,enableDragUpload:c,isGroup:d,enableTyping:u}=Object(M["toRefs"])(o),p=Object(M["ref"])(!0),m=Object(M["ref"])(!0),h=Object(Qi["b"])({extensions:[Xi["a"],es["a"],ns["a"],ts["a"].configure({emptyEditorClass:"is-editor-empty",placeholder:s.value}),os["a"].configure({HTMLAttributes:{class:"mention"},suggestion:l.value&&Es()}),ss.configure({inline:!0,allowBase64:!0,HTMLAttributes:{class:"custom-image"}})],autofocus:!0,editable:!0,injectCSS:!1,onUpdate({editor:e,transaction:t}){var n;u.value&&!d.value&&(m.value=!e.isFocused,(null===t||void 0===t||null===(n=t.doc)||void 0===n||null===(n=n.content)||void 0===n?void 0:n.size)>2?p.value=!1:p.value=!0,i("onTyping",p.value,m.value))},onFocus(){var e;if(r.value&&null!==(e=document)&&void 0!==e&&null!==(e=e.getElementById("app"))&&void 0!==e&&e.style){const e=document.body.scrollHeight-window.innerHeight;document.getElementById("app").style.marginBottom=e+"px",document.getElementById("app").style.height=`calc(100% - ${e}px)`}u.value&&!d.value&&(m.value=!0,i("onTyping",p.value,m.value))},onBlur(){var e;r.value&&null!==(e=document)&&void 0!==e&&null!==(e=e.getElementById("app"))&&void 0!==e&&e.style&&(document.getElementById("app").style.marginBottom="",document.getElementById("app").style.height="100%"),u.value&&!d.value&&(m.value=!0,i("onTyping",p.value,m.value))}}),v=Object(M["ref"])(),f=e=>{var t;null!==r&&void 0!==r&&r.value||(null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),13===e.keyCode&&e.ctrlKey?null===h||void 0===h||null===(t=h.value)||void 0===t||null===(t=t.commands)||void 0===t||t.insertContent("<p></p>"):13===e.keyCode&&i("sendMessage"))},b=new qi.a,y=async(e,t)=>{if(e.preventDefault(),e.stopPropagation(),!r.value&&(null!==c&&void 0!==c&&c.value||"drop"!==t)&&("drop"===t&&e.dataTransfer||"paste"===t&&e.clipboardData)){var n,o;const s="drop"===t?null===e||void 0===e||null===(n=e.dataTransfer)||void 0===n?void 0:n.files:null===e||void 0===e||null===(o=e.clipboardData)||void 0===o?void 0:o.files;for(let e=0;e<s.length;e++){var a,i;const t=s[e],n=Ji()(a=t.type).call(a,"image/"),o=n?tt.a.createObjectURL(t):await I(t);null===h||void 0===h||null===(i=h.value)||void 0===i||null===(i=i.commands)||void 0===i||i.insertContent({type:"custom-image",attrs:{src:o,alt:null===t||void 0===t?void 0:t.name,title:null===t||void 0===t?void 0:t.name,class:n?"normal":"file"}}),b.set(o,t),e===s.length-1&&O()(()=>{var e,t;null===h||void 0===h||null===(e=h.value)||void 0===e||null===(e=e.commands)||void 0===e||e.focus("end"),null===h||void 0===h||null===(t=h.value)||void 0===t||null===(t=t.commands)||void 0===t||t.scrollIntoView()},10)}}},j=new qi.a,k=(e,t)=>new g.a((n,o)=>{if(j.has(t))n(j.get(t));else{let a=new Image;a.crossOrigin="anonymous",a.onload=()=>{j.set(t,a),n(a)},a.onerror=o,a.src=e}}),I=async e=>{const{name:t,type:n}=e,o=document.createElement("canvas");let a=160,i=50;o.style.width=a+"px",o.style.height=i+"px";var s=window.devicePixelRatio;o.width=Math.floor(a*s),o.height=Math.floor(i*s);const r=o.getContext("2d");if(!r)return"";r.scale(s,s);const{iconSrc:l,iconType:c}=w(n),d=await k(l,c);null===r||void 0===r||r.drawImage(d,10,10,30,30);const u=E(t);r.fillText(u,45,22);const p=o.toDataURL();return p},w=e=>{const t="https://web.sdk.qcloud.com/component/TUIKit/assets/file-",n=["image","pdf","text","ppt","presentation","sheet","zip","word","video","unknown"];let o="",i="";return a()(n).call(n,n=>{re()(e).call(e,n)&&(o=t+n+".svg",i=n)}),{iconSrc:o||t+"unknown.svg",iconType:i||"unknown"}},E=e=>{if(!e)return e;let t="",n=0;for(let o=0;o<(null===e||void 0===e?void 0:e.length);o++){if(n>16){t+="...";break}t+=e[o],/[a-z]|[0-9]|[,;.!@#-+/\\$%^*()<>?:"'{}~]/i.test(e[o])?n+=1:n+=2}return t},C=()=>T(),T=()=>{var e;const t=null===h||void 0===h||null===(e=h.value)||void 0===e?void 0:e.getJSON(),n=[],o=e=>{var t;e&&e.type&&("text"===e.type||"custom-image"===e.type||"mention"===e.type?i(e):("paragraph"===e.type&&i(e),e.content&&e.content.length&&a()(t=e.content).call(t,e=>{o(e)})))},i=e=>{var t,o,a,i;if("paragraph"===e.type)n.length>0&&n[n.length-1]&&"text"===(null===(i=n[n.length-1])||void 0===i?void 0:i.type)&&(n[n.length-1].payload.text+="\n");else if("text"===e.type||"custom-image"===e.type&&"emoji"===(null===e||void 0===e||null===(t=e.attrs)||void 0===t?void 0:t.class)){var s,r;const t="text"===e.type?null===e||void 0===e?void 0:e.text:null===e||void 0===e||null===(s=e.attrs)||void 0===s?void 0:s.alt;n.length>0&&n[n.length-1]&&"text"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?n[n.length-1].payload.text+=t:n.push({type:"text",payload:{text:t}})}else if("custom-image"===e.type&&"normal"===(null===e||void 0===e||null===(o=e.attrs)||void 0===o?void 0:o.class)){var l;n.push({type:"image",payload:{file:null===b||void 0===b?void 0:b.get(null===e||void 0===e||null===(l=e.attrs)||void 0===l?void 0:l.src)}})}else if("custom-image"===e.type&&"file"===(null===e||void 0===e||null===(a=e.attrs)||void 0===a?void 0:a.class)){var c,d;const t=null===b||void 0===b?void 0:b.get(null===e||void 0===e||null===(c=e.attrs)||void 0===c?void 0:c.src);n.push({type:null!==t&&void 0!==t&&null!==(d=t.type)&&void 0!==d&&re()(d).call(d,"video")?"video":"file",payload:{file:t}})}else if("mention"===e.type){var u,p,m;const t="@"+(null===e||void 0===e||null===(u=e.attrs)||void 0===u?void 0:u.label)+" ";var h,v,f;if(n.length>0&&n[n.length-1]&&"text"===(null===(p=n[n.length-1])||void 0===p?void 0:p.type)?n[n.length-1].payload.text+=t:n.push({type:"text",payload:{text:t}}),null!==(m=n[n.length-1])&&void 0!==m&&null!==(m=m.payload)&&void 0!==m&&m.atUserList)null===(h=n[n.length-1])||void 0===h||null===(h=h.payload)||void 0===h||null===(h=h.atUserList)||void 0===h||h.push(null===e||void 0===e||null===(v=e.attrs)||void 0===v?void 0:v.id);else n[n.length-1].payload.atUserList=[null===e||void 0===e||null===(f=e.attrs)||void 0===f?void 0:f.id]}};return o(t),n},S=e=>{var t,n,o;null===h||void 0===h||null===(t=h.value)||void 0===t||null===(t=t.commands)||void 0===t||t.insertContent({type:"custom-image",attrs:{src:null===e||void 0===e?void 0:e.url,alt:null===e||void 0===e?void 0:e.name,title:null===e||void 0===e?void 0:e.name,class:"emoji"}}),null===h||void 0===h||null===(n=h.value)||void 0===n||n.commands.focus("end"),null===h||void 0===h||null===(o=h.value)||void 0===o||null===(o=o.commands)||void 0===o||o.scrollIntoView()},_=()=>{var e,t;null===h||void 0===h||null===(e=h.value)||void 0===e||null===(e=e.commands)||void 0===e||e.clearContent(!0),null===b||void 0===b||b.clear(),null===h||void 0===h||null===(t=h.value)||void 0===t||null===(t=t.commands)||void 0===t||t.focus("end"),m.value=!0,p.value=!0},D=e=>{var t;null===h||void 0===h||null===(t=h.value)||void 0===t||null===(t=t.commands)||void 0===t||t.insertContent(e)};return t({getEditorContent:C,addEmoji:S,resetEditor:_,setEditorContent:D}),(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["message-input-container",Object(M["unref"])(r)&&"message-input-container-h5"])},[Object(M["withDirectives"])(Object(M["createElementVNode"])("div",{class:"message-input-mute"},Object(M["toDisplayString"])(t.$t("TUIChat."+e.muteText)),513),[[M["vShow"],e.isMute]]),Object(M["withDirectives"])(Object(M["createVNode"])(Object(M["unref"])(Qi["a"]),{editor:Object(M["unref"])(h),class:"message-input-area",ref_key:"editorContainer",ref:v,onDrop:n[0]||(n[0]=e=>y(e,"drop")),onPaste:n[1]||(n[1]=e=>y(e,"paste")),onKeydown:Object(M["withKeys"])(f,["enter"])},null,8,["editor"]),[[M["vShow"],!e.isMute&&e.enableInput]])],2))}});n("3a39c"),n("7d94");const xs=me()(Ms,[["__scopeId","data-v-712924cc"]]);var Vs=xs;const Ls={class:"message-input-button-hover"};var Rs=Object(M["defineComponent"])({__name:"message-input-button",props:{enableSend:{type:Boolean,default:!0},messages:{type:Array,default:()=>[]},isH5:{type:Boolean,default:!0}},emits:["sendMessage"],setup(e,{emit:t}){const n=e,{enableSend:o}=Object(M["toRefs"])(n),a=t,i=()=>{a("sendMessage")};return(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["message-input-button",e.isH5&&"message-input-button-h5"])},[Object(M["unref"])(o)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:0,class:"message-input-button-cont","data-type":"text",onClick:i,disabled:!1},[Object(M["createElementVNode"])("p",Ls,Object(M["toDisplayString"])(t.$t("TUIChat.按Enter发送,Ctrl+Enter换行")),1),Object(M["createTextVNode"])(" "+Object(M["toDisplayString"])(t.$t("发送")),1)])):Object(M["createCommentVNode"])("",!0)],2))}});n("3e72");const Ps=me()(Rs,[["__scopeId","data-v-58e1a202"]]);var As=Ps;const Gs={key:0,class:"reference"},Hs={class:"reference-box"},zs={class:"reference-box-show"},Fs={class:"reference-box-show-name"},$s={key:1,class:"reply"},Ys={class:"reply-box"},Ks={class:"reply-box-show"};var Ws=Object(M["defineComponent"])({__name:"message-input-reference-or-reply",props:{replyOrReference:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},emits:["resetReplyOrReference"],setup(e,{emit:t}){const n=e,o=t,{replyOrReference:a,isH5:i}=Object(M["toRefs"])(n),s=()=>{o("resetReplyOrReference")};return(e,t)=>{var n,o,r,l,c,d,u,p,m,h,v,f,g,b,O;return null!==(n=Object(M["unref"])(a))&&void 0!==n&&n.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["reference"===(null===(o=Object(M["unref"])(a))||void 0===o?void 0:o.show)&&"message-input-reference","reply"===(null===(r=Object(M["unref"])(a))||void 0===r?void 0:r.show)&&"message-input-reply",Object(M["unref"])(i)&&"reference"===(null===(l=Object(M["unref"])(a))||void 0===l?void 0:l.show)&&"message-input-reference-h5",Object(M["unref"])(i)&&"reply"===(null===(c=Object(M["unref"])(a))||void 0===c?void 0:c.show)&&"message-input-reply-h5"])},["reference"===(null===(d=Object(M["unref"])(a))||void 0===d?void 0:d.show)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Gs,[Object(M["createElementVNode"])("div",Hs,[Object(M["createElementVNode"])("div",zs,[Object(M["createElementVNode"])("span",Fs,Object(M["toDisplayString"])(null!==(u=Object(M["unref"])(a))&&void 0!==u&&null!==(u=u.message)&&void 0!==u&&u.nick?null===(p=Object(M["unref"])(a))||void 0===p||null===(p=p.message)||void 0===p?void 0:p.nick:null===(m=Object(M["unref"])(a))||void 0===m||null===(m=m.message)||void 0===m?void 0:m.from)+": ",1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(h=Object(M["unref"])(a))||void 0===h?void 0:h.content),1)]),Object(M["createElementVNode"])("label",{class:"icon icon-cancel",onClick:s})])])):"reply"===(null===(v=Object(M["unref"])(a))||void 0===v?void 0:v.show)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",$s,[Object(M["createElementVNode"])("div",Ys,[t[0]||(t[0]=Object(M["createElementVNode"])("i",null,null,-1)),Object(M["createElementVNode"])("div",Ks,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null!==(f=Object(M["unref"])(a))&&void 0!==f&&null!==(f=f.message)&&void 0!==f&&f.nick?null===(g=Object(M["unref"])(a))||void 0===g||null===(g=g.message)||void 0===g?void 0:g.nick:null===(b=Object(M["unref"])(a))||void 0===b||null===(b=b.message)||void 0===b?void 0:b.from)+Object(M["toDisplayString"])(Object(M["unref"])(i)?":":""),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(O=Object(M["unref"])(a))||void 0===O?void 0:O.content),1)]),Object(M["createElementVNode"])("label",{class:"icon icon-cancel",onClick:s})])])):Object(M["createCommentVNode"])("",!0)],2)):Object(M["createCommentVNode"])("",!0)}}});n("aeac");const qs=me()(Ws,[["__scopeId","data-v-1333615b"]]);var Zs=qs,Js=Object(M["defineComponent"])({__name:"index",props:{placeholder:{type:String,default:"this is placeholder"},conversation:{type:Object,default:()=>({})},isDisabled:{type:Boolean,default:()=>!0},replyOrReference:{type:Object,default:()=>({})},isGroup:{type:Boolean,default:!1},memberList:{type:Array,default:()=>[]},isMute:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableDragUpload:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},env:{type:Object,default:()=>({})}},emits:["sendMessage","resetReplyOrReference","onTyping"],setup(e,{expose:t,emit:n}){var o;const i=e,s=n,{placeholder:r,isGroup:l,memberList:c,conversation:d,replyOrReference:u,env:p,enableTyping:m}=Object(M["toRefs"])(i),h=Object(M["ref"])(),f=Object(M["ref"])(null===i||void 0===i||null===(o=i.env)||void 0===o?void 0:o.isH5);Object(M["watch"])(()=>d.value,(e,t)=>{var n;(null===e||void 0===e?void 0:e.conversationID)!==(null===t||void 0===t?void 0:t.conversationID)&&(null===h||void 0===h||null===(n=h.value)||void 0===n||n.resetEditor())},{immediate:!0});const g=async()=>{var e,t,n;const o=null===(e=window)||void 0===e||null===(e=e.TUIKitTUICore)||void 0===e||null===(e=e.TUIServer)||void 0===e?void 0:e.TUIChat,i=null===h||void 0===h||null===(t=h.value)||void 0===t?void 0:t.getEditorContent(),r=u.value;await(null===i||void 0===i?void 0:a()(i).call(i,async e=>{var t,n,a,i;try{let p,m;switch(p=O(p),null===e||void 0===e?void 0:e.type){case"text":var l,c,d,u;if(p=y(p),null!==e&&void 0!==e&&null!==(t=e.payload)&&void 0!==t&&t.atUserList)m=await(null===o||void 0===o?void 0:o.sendTextAtMessage({text:JSON.parse(v()(null===e||void 0===e||null===(l=e.payload)||void 0===l?void 0:l.text)),atUserList:null===e||void 0===e||null===(c=e.payload)||void 0===c?void 0:c.atUserList},p));else m=await(null===o||void 0===o?void 0:o.sendTextMessage(JSON.parse(v()(null===e||void 0===e||null===(d=e.payload)||void 0===d?void 0:d.text)),p));if("reply"===(null===r||void 0===r?void 0:r.show))await o.replyMessage(null===(u=m)||void 0===u||null===(u=u.data)||void 0===u?void 0:u.message);break;case"image":await(null===o||void 0===o?void 0:o.sendImageMessage(null===e||void 0===e||null===(n=e.payload)||void 0===n?void 0:n.file));break;case"video":await(null===o||void 0===o?void 0:o.sendVideoMessage(null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.file));break;case"file":await(null===o||void 0===o?void 0:o.sendFileMessage(null===e||void 0===e||null===(i=e.payload)||void 0===i?void 0:i.file));break;default:break}s("sendMessage")}catch(m){Object(En["b"])(m,p.value)}})),null===h||void 0===h||null===(n=h.value)||void 0===n||n.resetEditor(),I()},b=(e,t)=>{s("onTyping",e,t)},O=e=>(m.value&&(e||(e={}),e.messageFeature={needTyping:1,version:1}),e),y=e=>{var t,n,o,a,i,s,r,l;if("reply"!==(null===u||void 0===u||null===(t=u.value)||void 0===t?void 0:t.show)&&"reference"!==(null===u||void 0===u||null===(n=u.value)||void 0===n?void 0:n.show))return e;if(e||(e={}),e.messageReply={messageAbstract:null===u||void 0===u||null===(o=u.value)||void 0===o?void 0:o.content,messageSender:(null===u||void 0===u||null===(a=u.value)||void 0===a||null===(a=a.message)||void 0===a?void 0:a.nick)||(null===u||void 0===u||null===(i=u.value)||void 0===i||null===(i=i.message)||void 0===i?void 0:i.from),messageID:null===u||void 0===u||null===(s=u.value)||void 0===s||null===(s=s.message)||void 0===s?void 0:s.ID,messageType:null===u||void 0===u||null===(r=u.value)||void 0===r?void 0:r.type,version:1},"reply"===(null===u||void 0===u||null===(l=u.value)||void 0===l?void 0:l.show))try{var c,d;if(e.messageReply.messageRootID=null===u||void 0===u||null===(c=u.value)||void 0===c||null===(c=c.message)||void 0===c?void 0:c.ID,null!==u&&void 0!==u&&null!==(d=u.value)&&void 0!==d&&null!==(d=d.message)&&void 0!==d&&d.cloudCustomData){var p,m,h;const t=Object(U["a"])(null===u||void 0===u||null===(p=u.value)||void 0===p||null===(p=p.message)||void 0===p?void 0:p.cloudCustomData);e.messageReply.messageRootID=(null===t||void 0===t||null===(m=t.messageReply)||void 0===m?void 0:m.messageRootID)||(null===u||void 0===u||null===(h=u.value)||void 0===h||null===(h=h.message)||void 0===h?void 0:h.ID)}}catch(v){console.warn(v)}return e},k=e=>{var t;null===h||void 0===h||null===(t=h.value)||void 0===t||t.addEmoji(e)},I=()=>{s("resetReplyOrReference")},w=e=>{var t,n;null===h||void 0===h||null===(t=h.value)||void 0===t||t.resetEditor(),I(),null===h||void 0===h||null===(n=h.value)||void 0===n||n.setEditorContent(e)};return t({addEmoji:k,reEdit:w}),(t,n)=>{var o,a;return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["message-input",f.value&&"message-input-h5"])},[e.isDisabled?(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:0},[Object(M["createVNode"])(Vs,{ref_key:"editor",ref:h,isH5:f.value,placeholder:Object(M["unref"])(r),isGroup:Object(M["unref"])(l),isMute:e.isMute,muteText:e.muteText,enableInput:e.enableInput,enableAt:e.enableAt,enableTyping:Object(M["unref"])(m),enableDragUpload:e.enableDragUpload,onSendMessage:g,onOnTyping:b},null,8,["isH5","placeholder","isGroup","isMute","muteText","enableInput","enableAt","enableTyping","enableDragUpload"]),e.isMute?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createBlock"])(As,{key:0,isH5:f.value,onSendMessage:g},null,8,["isH5"])),e.enableAt?(Object(M["openBlock"])(),Object(M["createBlock"])(Bs,{key:1,memberList:j()(o=Object(M["unref"])(c)).call(o,e=>{var t;return-1===(null===e||void 0===e?void 0:_()(t=e.userID).call(t,"admin"))}),isGroup:Object(M["unref"])(l),selfInfo:null===(a=Object(M["unref"])(d))||void 0===a||null===(a=a.groupProfile)||void 0===a?void 0:a.selfInfo,isH5:f.value},null,8,["memberList","isGroup","selfInfo","isH5"])):Object(M["createCommentVNode"])("",!0),Object(M["createVNode"])(Zs,{replyOrReference:Object(M["unref"])(u),isH5:f.value,onResetReplyOrReference:I},null,8,["replyOrReference","isH5"])],64)):Object(M["createCommentVNode"])("",!0)],2)}}});n("7a54");const Qs=me()(Js,[["__scopeId","data-v-030d6bb0"]]);var Xs=Qs,er=Xs,tr=n("fdc9"),nr=n("bc3a"),or=n.n(nr),ar=n("4328"),ir=n.n(ar);sessionStorage.getItem("tokenF");const{urlF:sr,tokenF:rr}=_e["a"],lr=or.a.create({timeout:4e4,baseURL:"",headers:{"Content-Type":"application/json","X-Access-Token":rr+"",...cr()}});function cr(){let e={};return"QH"==(null===_e["a"]||void 0===_e["a"]?void 0:_e["a"].vitePlatform)&&(e={"X-ClientSign":"Quarry"}),e}let dr=(sr+"").replace("lol","://");const ur=(e,t)=>new g.a((n,o)=>{lr.get(`${dr}${e}${ir.a.stringify(t)?"?"+ir.a.stringify(t):""}`,t).then(e=>{n(e.data)}).catch(e=>{o(e)})}),pr=(e,t)=>new g.a((n,o)=>{lr.post(`${dr}${e}`,t).then(e=>{n(e.data)}).catch(e=>{o(e)})});var mr=n("c9a1"),hr=n("3ef4");const vr=Object(M["defineComponent"])({name:"TUIChat",methods:{handleMergerMessageShowContext:U["l"],handleCustomMessageShowContext:U["g"],handleLocationMessageShowContext:U["k"],handleFaceMessageShowContext:U["h"],handleFileMessageShowContext:U["i"],handleAudioMessageShowContext:U["e"],handleVideoMessageShowContext:U["t"]},components:{MessageMerger:wt,MessageVideo:ze,MessageFile:at,MessageLocation:gt,MessageCustom:cn,MessageFace:dt,MessageAudio:We,MessageImage:Ue,MessageText:ve,MessageSystem:_o,MessageTimestamp:Go,Manage:Fi,MessageInput:er,MessageItem:Ro},props:{isMsgNeedReadReceipt:{type:Boolean,default:!1},isNeedTyping:{type:Boolean,default:!0},isNeedEmojiReact:{type:Boolean,default:!0}},setup(e,t){var n,o,i,r;const{TUIServer:c}=vr,d=(null===c||void 0===c||null===(n=c.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||n.TUIGroup,null===c||void 0===c||null===(o=c.TUICore)||void 0===o||null===(o=o.TUIServer)||void 0===o||o.TUIProfile,c.TUICore.isOfficial&&sn["c"]&&Object(sn["c"])()||{}),{t:p}=window.TUIKitTUICore.config.i18n.useI18n(),m=Object(M["reactive"])({messageList:[],conversation:{},text:"",atText:"",types:c.TUICore.TIM.TYPES,currentMessage:{},dialogID:"",forwardStatus:!1,receiptDialogStatus:!1,repliesDialogStatus:!1,showImagePreview:!1,currentImagePreview:{},isCompleted:!1,userInfoView:!1,userInfo:{isGroup:!1,list:[]},selfInfo:{},messageComponents:hd("message"),isShow:!1,muteText:"您已被管理员禁言",isFirstSend:!0,isFirstRender:!0,showGroupMemberList:!1,reference:{message:{},content:"",type:0,show:""},historyReference:!1,referenceID:"",allMemberList:[],env:c.TUICore.TUIEnv,showResend:!1,resendMessage:{},inputBlur:!1,inputComposition:!1,inputCompositionCont:"",needTyping:e.isNeedTyping,needReadReceipt:!1,peerNeedReceipt:!1,needToBottom:!1,toBottomTipCont:"",messageInView:[],readSet:new ie.a,isUserAction:!1,scroll:{scrollTop:0,scrollHeight:0,scrollTopMin:1/0,scrollTopMax:0},isMsgNeedReadReceipt:!1,isNeedEmojiReact:!1,dropDownRef:null,typingRef:null,upTabIndex:"0",hrefParams:{}}),h=!!Object(M["useSlots"])().default,f=async e=>{var t;e&&await(null===c||void 0===c||null===(t=c.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t||null===(t=t.TUIConversation)||void 0===t?void 0:t.setMessageRead(e))},g=async e=>{var t;const n=j()(e).call(e,e=>"in"===(null===e||void 0===e?void 0:e.flow)&&(null===e||void 0===e?void 0:e.needReadReceipt)&&!m.readSet.has(null===e||void 0===e?void 0:e.ID));n.length&&await(null===c||void 0===c?void 0:c.sendMessageReadReceipt(n).then(()=>{a()(n).call(n,e=>m.readSet.add(null===e||void 0===e?void 0:e.ID))})),await f(null===m||void 0===m||null===(t=m.conversation)||void 0===t?void 0:t.conversationID)},b=[];a()(i=s()(hd("send"))).call(i,e=>{"Call"===e&&"expert"===_e["a"].isSpecialized||"Evaluate"===e||"Words"===e||b.push(e)}),Fi.TUIServer=c,Fi.GroupServer=null===c||void 0===c||null===(r=c.TUICore)||void 0===r||null===(r=r.TUIServer)||void 0===r?void 0:r.TUIGroup;const y=Object(M["ref"])(),k=Object(M["ref"])(),w=Object(M["ref"])(),E=Object(M["ref"])(),C=Object(M["ref"])();u()(c).call(c,m);const T={list:[],handleAvatar:U["f"],handleName:U["m"]},S=Object(M["ref"])();Object(wn["onClickOutside"])(S,()=>{m.showGroupMemberList=!1});const D=Object(M["computed"])(()=>{const{conversation:e}=m;return null!==e&&void 0!==e&&e.conversationID?(null===e||void 0===e?void 0:e.type)===c.TUICore.TIM.TYPES.CONV_SYSTEM?"system":"chat":""}),N=Object(M["computed"])(()=>{const{conversation:e}=m;if((null===e||void 0===e?void 0:e.type)===c.TUICore.TIM.TYPES.CONV_GROUP){var t,n,o;const a=null===e||void 0===e||null===(t=e.groupProfile)||void 0===t?void 0:t.selfInfo.role,i=a===c.TUICore.TIM.TYPES.GRP_MBR_ROLE_MEMBER;if(i&&null!==e&&void 0!==e&&null!==(n=e.groupProfile)&&void 0!==n&&n.muteAllMembers)return!0;const s=(new Date).getTime();if(1e3*(null===(o=m.selfInfo)||void 0===o?void 0:o.muteUntil)-s>0)return!0}return!1});Object(M["watchEffect"])(()=>{m.isMsgNeedReadReceipt=e.isMsgNeedReadReceipt,m.needReadReceipt=m.isMsgNeedReadReceipt,m.needTyping=e.isNeedTyping,m.isNeedEmojiReact=e.isNeedEmojiReact}),Object(M["watch"])(()=>{var e;return null===m||void 0===m||null===(e=m.conversation)||void 0===e?void 0:e.conversationID},(e,t)=>{e!==t&&(m.scroll.scrollTop=0,m.scroll.scrollHeight=0,m.scroll.scrollTopMin=1/0,m.scroll.scrollTopMax=0,m.text="",m.atText="",m.reference={message:{},content:"",type:0,show:""})},{deep:!0}),Object(M["watch"])(N,(e,t)=>{const{conversation:n}=m;if(e&&(null===n||void 0===n?void 0:n.type)===c.TUICore.TIM.TYPES.CONV_GROUP){var o,a,i;const e=null===n||void 0===n||null===(o=n.groupProfile)||void 0===o?void 0:o.selfInfo.role,t=e===c.TUICore.TIM.TYPES.GRP_MBR_ROLE_MEMBER;t&&null!==n&&void 0!==n&&null!==(a=n.groupProfile)&&void 0!==a&&a.muteAllMembers&&(m.muteText="管理员开启全员禁言");const s=(new Date).getTime();1e3*(null===(i=m.selfInfo)||void 0===i?void 0:i.muteUntil)-s>0&&(m.muteText="您已被管理员禁言")}});const B=Object(M["computed"])(()=>{const{conversation:e}=m;return Object(U["m"])(e)}),x=Object(M["computed"])(()=>{var e;return j()(e=m.messageList).call(e,e=>!e.isDeleted&&!Object(U["v"])(e))}),V=Object(M["computed"])(()=>{var e;return null===x||void 0===x||null===(e=x.value)||void 0===e?void 0:j()(e).call(e,e=>!e.isRevoked&&e.type===m.types.MSG_IMAGE)}),L=Object(M["ref"])([]),R=Object(M["ref"])([]),P=Object(M["ref"])("");function A(e){let t={};for(let n in e){let o=n.substring(0,1).toLowerCase()+n.substring(1);if(t[o]=e[n],"imageInfoArray"===o){for(let e=0;e<t[o].length;e++)for(let n in t[o][e])console.log(n,"k---------------------"),t[o][e][n.toLowerCase()]=t[o][e][n],delete t[o][e][n];console.log(t)}}return t}null!==_e["a"]&&void 0!==_e["a"]&&_e["a"].getMessageList&&ur("/health-consultation/ConConsultation/selectImMessageList",{groupId:_e["a"].sessionId}).then(e=>{var t;200==e.code?(L.value=l()(t=e.result).call(t,e=>{var t,n;e["ID"]=e.id;let o=e.msgcontent;return"1"==_e["a"].isOvertime&&(o=v()(JSON.parse(e.msgcontent).MsgBody)),e["payload"]=o&&JSON.parse(o).length>0?A(null===(t=JSON.parse(o)[0])||void 0===t?void 0:t.MsgContent):"",e.contenttype===m.types.MSG_IMAGE&&(null===(n=R.value)||void 0===n||n.push(e)),e}),P.value=L.value.length>0?"":"暂无数据"):(L.value=[],R.value=[],P.value="暂无数据")}).catch(e=>{console.log(e),P.value="暂无数据"});const G=Object(M["computed"])(()=>{const{conversation:e,needReadReceipt:t}=m;return!((null===e||void 0===e?void 0:e.type)!==c.TUICore.TIM.TYPES.CONV_C2C&&!t)});Object(M["watch"])(x,(e,t)=>{if(Object(M["nextTick"])(()=>{var n,o;const a=(null===(n=e[e.length-1])||void 0===n?void 0:n.ID)===(null===(o=t[t.length-1])||void 0===o?void 0:o.ID);0===e.length||a||ce()}),m.currentMessage){var n;const t=null===(n=m.currentMessage)||void 0===n?void 0:n.ID,o=I()(e).call(e,e=>e.ID===t);o&&(m.currentMessage=Object(U["b"])(o))}if(m.historyReference&&x.value){for(let e=0;e<x.value.length;e++){var o;(null===x||void 0===x||null===(o=x.value[e])||void 0===o?void 0:o.ID)===(null===m||void 0===m?void 0:m.referenceID)&&(de("target",w.value[e]),w.value[e].getElementsByClassName("content")[0].classList.add("reference-content"))}m.historyReference=!1}},{deep:!0}),Object(M["watch"])(()=>m.scroll.scrollTop,e=>{O()(()=>{var t;e===(null===y||void 0===y||null===(t=y.value)||void 0===t?void 0:t.scrollTop)&&(m.scroll.scrollTopMin!==1/0&&0!==m.scroll.scrollTopMax&&he("scroll"),m.scroll.scrollTopMin=1/0,m.scroll.scrollTopMax=0)},20)},{deep:!0}),Object(M["onMounted"])(()=>{Object(M["watch"])(()=>null===y||void 0===y?void 0:y.value,()=>{null!==y&&void 0!==y&&y.value&&y.value.addEventListener("scroll",pe)},{deep:!0}),m.hrefParams=Ie()});const H=e=>{var t;null===C||void 0===C||null===(t=C.value)||void 0===t||t.addEmoji(e)},z=async e=>{m.isFirstSend&&(an.getInstance().reportEvent({name:"sendMessage",ext1:"sendMessage-success"}),m.isFirstSend=!1),m.reference.show="",c.TUICore.isOfficial&&(null===d||void 0===d?void 0:d.commit)&&(null===d||void 0===d||d.commit("handleTask",0))};function F(e,t){var n,o,a;let i=null!==t&&void 0!==t&&null!==(n=t.lastMessage)&&void 0!==n&&n.payload.hasOwnProperty("data")?JSON.parse(null===t||void 0===t||null===(o=t.lastMessage)||void 0===o||null===(o=o.payload)||void 0===o?void 0:o.data):{};"system"===(null===i||void 0===i?void 0:i.businessID)&&re()(a=[1,2]).call(a,null===i||void 0===i?void 0:i.type)||c.sendCustomMessage({data:e}).then(e=>{console.log(e)})}window.onmessage=e=>{const t=null!==e&&void 0!==e&&e.data?JSON.parse(null===e||void 0===e?void 0:e.data):{},{consultType:n,consultStatus:o}=$i["a"].getters.getConsultInfo;let a=!1;"C2C"===n&&(a=1*o>=5),"GROUP"===n&&(a=1*o>=4),a||"custom"===t.code&&F(t.data,m.conversation)};const $=e=>{m.currentMessage=e,m.dialogID=e.ID},Y=e=>{m.env.isH5?(m.showResend=!0,m.resendMessage=e):(c.resendMessage(e).catch(e=>{Object(En["b"])(e,m.env)}),an.getInstance().reportEvent({name:"messageOptions",ext1:"messageResend"}))},K=e=>{m.currentMessage=e,T.list=c.TUICore.getStore().TUIConversation.conversationList,m.forwardStatus=!0},W=(e,t)=>{let n=Object(U["o"])(e);m.reference={message:e,content:null===n||void 0===n?void 0:n.referenceMessageForShow,type:null===n||void 0===n?void 0:n.referenceMessageType,show:t}},q=()=>{c.resendMessage(m.resendMessage).then(()=>{m.showResend=!1}).catch(e=>{Object(En["b"])(e,m.env),m.showResend=!1}),an.getInstance().reportEvent({name:"messageOptions",ext1:"messageResend"})},Z=e=>{var t,n,o;null!==e&&void 0!==e&&null!==(t=e.payload)&&void 0!==t&&t.text&&(null===C||void 0===C||null===(n=C.value)||void 0===n||n.reEdit(null===e||void 0===e||null===(o=e.payload)||void 0===o?void 0:o.text))},J=e=>{c.handleGroupApplication(e)},Q=e=>{e.clipboardData.files[0]&&c.sendImageMessage(e.clipboardData.files[0])},X=async()=>{await c.getHistoryMessageList().then(()=>{var e;de("target",null===y||void 0===y||null===(e=y.value)||void 0===e?void 0:e.firstElementChild)})},ee=e=>{m.referenceID=e;const t=[];if(x.value)for(let a=0;a<x.value.length;a++){var n,o;t.push(null===x||void 0===x||null===(n=x.value[a])||void 0===n?void 0:n.ID),-1!==_()(t).call(t,e)&&(null===(o=x.value[a])||void 0===o?void 0:o.ID)===e&&(de("target",w.value[a]),w.value[a].getElementsByClassName("content")[0].classList.remove("reference-content"),Object(M["nextTick"])(()=>{w.value[a].getElementsByClassName("content")[0].classList.add("reference-content")}))}-1===_()(t).call(t,e)&&c.getHistoryMessageList().then(()=>{m.historyReference=!0})},te=()=>{m.showGroupMemberList=!m.showGroupMemberList},ne=()=>{c.TUICore.TUIServer.TUIConversation.handleCurrentConversation()},oe=e=>{window.open(e.url),an.getInstance().reportEvent({name:"openLink",ext1:e.label})},ae=(e,t)=>{var n;if(e&&t)switch(t){case"reference":W(e,t);break;case"reply":W(e,t);break;case"reedit":var o,a;if(null!==e&&void 0!==e&&null!==(n=e.payload)&&void 0!==n&&n.text)null===C||void 0===C||null===(o=C.value)||void 0===o||o.reEdit(null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.text);break;default:break}},se=async(e,t)=>{var n;if(null!==e&&void 0!==e&&e.ID&&t)switch(t){case"receipt":if(e.conversationType!==c.TUICore.TIM.TYPES.CONV_GROUP||0===(null===(n=e.readReceiptInfo)||void 0===n?void 0:n.unreadCount))return;m.currentMessage=e,m.receiptDialogStatus=!0;break;case"replies":m.currentMessage=e,m.repliesDialogStatus=!0;break;case"forward":m.currentMessage=e,T.list=c.TUICore.getStore().TUIConversation.conversationList,m.forwardStatus=!0;break;case"previewImage":m.showImagePreview=!m.showImagePreview,m.currentImagePreview=e;break;default:break}},le=async e=>{if(e)switch(e){case"receipt":m.currentMessage={},m.receiptDialogStatus=!1;break;case"replies":m.currentMessage={},m.repliesDialogStatus=!1;break;default:break}},ce=()=>{if(m.isFirstRender)return m.needToBottom=!1,de("bottom"),void(m.isFirstRender=!1);if(y.value&&x.value){var e;const{scrollHeight:t,scrollTop:n,clientHeight:o}=y.value;t-(n+o)<=o||"out"===(null===(e=x.value[x.value.length-1])||void 0===e?void 0:e.flow)?de("bottom"):me(!0)}},de=(e,t)=>{var n;switch(null===y||void 0===y||null===(n=y.value)||void 0===n||n.removeEventListener("scroll",pe),m.isUserAction=!0,e){case nn["a"].scrollType.toBottom:m.needToBottom=!1,Object(M["nextTick"])(()=>{var e,t;null!==m&&void 0!==m&&null!==(e=m.env)&&void 0!==e&&e.isH5?ue():null===y||void 0===y||null===(t=y.value)||void 0===t||null===(t=t.lastElementChild)||void 0===t||t.scrollIntoView(!1);Object(U["c"])(null===y||void 0===y?void 0:y.value,"message-img",async()=>{var e,t;null!==m&&void 0!==m&&null!==(e=m.env)&&void 0!==e&&e.isH5?ue():null===y||void 0===y||null===(t=y.value)||void 0===t||null===(t=t.lastElementChild)||void 0===t||t.scrollIntoView(!1);y.value.addEventListener("scroll",pe),await he("page")})});break;case nn["a"].scrollType.toTarget:Object(M["nextTick"])(()=>{null===t||void 0===t||t.scrollIntoView(!1),Object(U["c"])(null===y||void 0===y?void 0:y.value,"message-img",async()=>{null===t||void 0===t||t.scrollIntoView(!1),y.value.addEventListener("scroll",pe),await he("page")})});break;default:break}},ue=()=>{var e;null!==(e=document)&&void 0!==e&&null!==(e=e.getElementById("app"))&&void 0!==e&&e.style&&(document.getElementById("app").style.marginBottom="",document.getElementById("app").style.height="100%"),y.value.scrollTop=y.value.scrollHeight},pe=()=>{const{scrollHeight:e,scrollTop:t,clientHeight:n}=y.value;G.value&&(m.scroll.scrollHeight=e,m.scroll.scrollTop=t,m.scroll.scrollTopMin=m.isUserAction?m.scroll.scrollTopMin:Math.min(m.scroll.scrollTopMin,m.scroll.scrollTop),m.scroll.scrollTopMax=m.isUserAction?m.scroll.scrollTopMax:Math.max(m.scroll.scrollTopMax,m.scroll.scrollTop)),me(e-(t+n)>n),m.isUserAction=!1},me=e=>{var t,n;switch(e){case!0:var o;if(m.needToBottom=!0,null!==m&&void 0!==m&&null!==(t=m.conversation)&&void 0!==t&&t.unreadCount&&(null===m||void 0===m||null===(n=m.conversation)||void 0===n?void 0:n.unreadCount)>0)m.toBottomTipCont=`${null===m||void 0===m||null===(o=m.conversation)||void 0===o?void 0:o.unreadCount} ${p("TUIChat.条新消息")}`;else m.toBottomTipCont=p("TUIChat.回到最新位置");break;case!1:m.needToBottom=!1;break;default:m.needToBottom=!1;break}},he=async e=>{var t,n,o;if(!G.value)return void f(null===m||void 0===m||null===(o=m.conversation)||void 0===o?void 0:o.conversationID);m.messageInView.length&&(m.messageInView=[]);let a=0,i=0;switch(e){case nn["a"].inViewType.page:a=m.scroll.scrollTop,i=m.scroll.scrollTop+(null===y||void 0===y||null===(t=y.value)||void 0===t?void 0:t.clientHeight);break;case nn["a"].inViewType.scroll:a=m.scroll.scrollTopMin,i=m.scroll.scrollTopMax+(null===y||void 0===y||null===(n=y.value)||void 0===n?void 0:n.clientHeight);break;default:break}if(null!==w&&void 0!==w&&w.value&&x.value)for(let r=0;r<(null===w||void 0===w||null===(s=w.value)||void 0===s?void 0:s.length);r++){var s;if(ve(e,null===w||void 0===w?void 0:w.value[r],a,i)){const e=x.value[r];m.messageInView.push(e)}}await g(m.messageInView)},ve=(e,t,n,o)=>{const a=y.value.getBoundingClientRect().top,i=y.value.getBoundingClientRect().bottom,{top:s,bottom:r}=t.getBoundingClientRect(),{offsetTop:l,clientHeight:c}=t;switch(e){case nn["a"].inViewType.page:return Math.round(s)>=Math.round(a)&&Math.round(r)<=Math.round(i);case nn["a"].inViewType.scroll:return Math.round(l)>=Math.round(n)&&Math.round(l+c)<=Math.round(o);default:return!1}},fe=e=>{m.dropDownRef&&m.dropDownRef.removeChild(m.dropDownRef.children[0]),m.dropDownRef=e},ge=()=>{de("bottom")},be=e=>{m.showImagePreview=!m.showImagePreview,m.currentImagePreview=e},Oe=()=>{m.reference={message:{},content:"",type:0,show:""}},ye=(e,t)=>{var n;null===m||void 0===m||null===(n=m.typingRef)||void 0===n||n.onTyping(e,t)},je=e=>{tr["a"].emit("forHelp",e)},ke=e=>{var t;tr["a"].emit("forHelpDetail",null===e||void 0===e||null===(t=e.children)||void 0===t?void 0:t.orderId)},Ie=()=>{var e,t,n;const o=window.location.href.substring(_()(e=window.location.href).call(e,"?")+1,_()(t=window.location.href).call(t,"#/")),i={};return a()(n=o.split("&")).call(n,e=>{const t=e.substring(0,_()(e).call(e,"=")),n=e.substring(_()(e).call(e,"=")+1);i[t]=n}),i},we=e=>{mr["a"].confirm("是否结束当前咨询","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}).then(()=>{var t;ur("/health-consultation/api/consult/conSession/finishSession",{id:null===e||void 0===e||null===(t=e.children)||void 0===t?void 0:t.id}).then(t=>{200===t.code?Object(hr["a"])({message:"当前咨询已结束",type:"success"}):Object(hr["a"])({message:t.message,type:"warning"}),tr["a"].emit("endConsult",e.conversationID)}).catch(e=>{console.log(e)})}).catch(()=>{})};function Ee(e){var t,n,o;if(console.log(e),null===e||void 0===e||null===(t=e.lastMessage)||void 0===t||!t.payload)return!0;let a=null!==e&&void 0!==e&&null!==(n=e.lastMessage)&&void 0!==n&&n.payload.hasOwnProperty("data")?JSON.parse(null===e||void 0===e||null===(o=e.lastMessage)||void 0===o||null===(o=o.payload)||void 0===o?void 0:o.data):{};var i;if("expert"!==_e["a"].isSpecialized)return"system"!==(null===a||void 0===a?void 0:a.businessID)||!re()(i=[1,2]).call(i,null===a||void 0===a?void 0:a.type);{var s;if("system"===(null===a||void 0===a?void 0:a.businessID)&&re()(s=[1,2]).call(s,null===a||void 0===a?void 0:a.type))return!1;const{consultType:e,consultStatus:t}=$i["a"].getters.getConsultInfo;return"C2C"===e?!(1*t>=5):!(1*t>=4)}}function Ce(e){var t;return e.avatar&&_()(t=e.avatar).call(t,",")===e.avatar.length-1&&(e.avatar=e.avatar.substring(0,e.avatar.length-1)),e}const Te=e=>{e&&se(e,"previewImage")};return{previewImage:Te,getDisabled:Ee,forHelp:je,forHelpDetail:ke,...Object(M["toRefs"])(m),conversationType:D,messages:x,messageEle:y,inputEle:k,messageInput:C,messageAimID:w,conversationData:T,conversationName:B,constant:nn["a"],reportMessageSend:z,handleTyping:ye,handleItem:$,handleEdit:Z,handleEditor:ae,getHistoryMessageList:X,handleApplication:J,pluginComponentList:b,handleSend:H,closeDialog:le,isMute:N,pasting:Q,setMessageRead:f,sendMessageReadReceipt:g,dialog:S,jumpID:ee,back:ne,slotDefault:h,toggleshowGroupMemberList:te,resendMessage:Y,submit:q,Link:Ki,openLink:oe,readReceiptDialog:E,scrollToTarget:de,needGroupReceipt:G,handleDropDownOpen:fe,isMessageTip:U["u"],showDialog:se,forwardMessage:K,referOrReplyMessage:W,handleUploadingImageOrVideo:ge,handleImagePreview:be,imageList:V,resetReplyOrReference:Oe,endConsult:we,getSrc:Ce,messagesNew:L,imageListNew:R,messagesIsNull:P,handleAvatar:U["f"],handleName:U["m"],getImgLoad:U["c"],isTypingMessage:U["v"],deepCopy:U["b"],handleReferenceForShow:U["o"],handleTextMessageShowContext:U["r"],handleImageMessageShowContext:U["j"]}}});var fr=vr;n("9785"),n("ee8f");const gr=me()(fr,[["render",oe],["__scopeId","data-v-e5d9bc3a"]]);var br=gr;const Or={class:"face",id:"face"},yr=["onClick"],jr=["src"],kr=["src"],Ir={class:"face-tab"},wr=["onClick"],Er=["src"];function Cr(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Or,[Object(M["createElementVNode"])("i",{class:"icon icon-face",title:"表情",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))}),Object(M["withDirectives"])(Object(M["createElementVNode"])("main",{class:Object(M["normalizeClass"])(["face-main",[e.isH5&&"face-H5-main"]]),ref:"dialog"},[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.list,(t,n)=>Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",{class:"face-list",key:n},[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(t,(t,o)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"face-list-item",key:o,onClick:n=>e.select(t,o)},[0===n?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:0,src:e.emojiUrl+e.emojiMap[t]},null,8,jr)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:1,class:"face-img",src:e.faceUrl+t+"@2x.png"},null,8,kr))],8,yr))),128))])),[[M["vShow"],e.currentIndex===n]])),128)),Object(M["createElementVNode"])("ul",Ir,[Object(M["createElementVNode"])("li",{class:"face-tab-item",onClick:t[1]||(t[1]=t=>e.selectFace(0))},t[2]||(t[2]=[Object(M["createElementVNode"])("i",{class:"icon icon-face"},null,-1)])),(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.bigEmojiList,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"face-tab-item",key:n,onClick:t=>e.selectFace(n+1)},[Object(M["createElementVNode"])("img",{src:e.faceUrl+t.list[0]+"@2x.png"},null,8,Er)],8,wr))),128))])],2),[[M["vShow"],e.show]])])}const Tr=Object(M["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1},parentID:{type:String,default:()=>""}},setup(e,t){var n;const o=Object(M["reactive"])({emojiUrl:io["d"],emojiMap:io["b"],emojiName:io["c"],faceUrl:io["e"],bigEmojiList:(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&io["a"]||[],show:!1,currentIndex:0,isMute:!1,transDom:!1}),a=Object(M["ref"])();Object(M["watchEffect"])(()=>{o.show=e.show,o.isMute=e.isMute});const i=()=>{const e=document.getElementsByClassName("face-main")[0];o.isMute||(e.style.display="none"===e.style.display?"flex":"none"),"none"===e.style.display&&c(0),s()},s=()=>{const t=document.getElementById(e.parentID),n=document.getElementsByClassName("face-H5-main")[0];e.isH5&&(null===t||void 0===t||t.appendChild(n))};Object(wn["onClickOutside"])(a,()=>{const e=document.getElementsByClassName("face-main")[0];e&&(e.style.display="none")});const r=async(n,a)=>{const s={name:n};if(0===o.currentIndex)return s.type="emo",s.url=io["d"]+io["b"][n],s.template=`<img src="${io["d"]+io["b"][n]}">`,e.isH5||i(),t.emit("send",s);try{await Tr.TUIServer.sendFaceMessage({index:o.bigEmojiList[o.currentIndex-1].icon,data:o.bigEmojiList[o.currentIndex-1].list[a]}),an.getInstance().reportEvent({name:"messageType",ext1:"typeFace"})}catch(r){Object(En["b"])(r,e)}e.isH5||i()},l=Object(M["computed"])(()=>{const e=[o.emojiName];for(let t=0;t<o.bigEmojiList.length;t++)e.push(o.bigEmojiList[t].list);return e}),c=e=>{o.currentIndex=e};return{...Object(M["toRefs"])(o),toggleShow:i,select:r,selectFace:c,list:l,dialog:a}}});var Sr=Tr;n("77ea");const _r=me()(Sr,[["render",Cr],["__scopeId","data-v-6807ca3c"]]);var Dr=_r,Nr=Dr;const Ur={class:"upload-btn icon icon-image"};function Br(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Ur,[e.isMute?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:0,title:"图片",type:"file","data-type":"image",accept:"image/*",onChange:t[0]||(t[0]=(...t)=>e.sendUploadMessage&&e.sendUploadMessage(...t))},null,32)),Object(M["renderSlot"])(e.$slots,"default",{},void 0,!0)])}const Mr=Object(M["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({isMute:!1});Object(M["watchEffect"])(()=>{n.isMute=e.isMute});const o=async t=>{if(t.target.files.length>0)try{await Mr.TUIServer.sendImageMessage(t.target),an.getInstance().reportEvent({name:"messageType",ext1:"typeImage"})}catch(n){Object(En["b"])(n,e)}t.target.value=""};return{...Object(M["toRefs"])(n),sendUploadMessage:o}}});var xr=Mr;n("b77c");const Vr=me()(xr,[["render",Br],["__scopeId","data-v-04b8e378"]]);var Lr=Vr,Rr=Lr;const Pr={class:"upload-btn icon icon-video"};function Ar(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Pr,[e.isMute?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:0,title:"视频",type:"file","data-type":"video",accept:"video/*",onChange:t[0]||(t[0]=(...t)=>e.sendUploadMessage&&e.sendUploadMessage(...t))},null,32)),Object(M["renderSlot"])(e.$slots,"default",{},void 0,!0)])}const Gr=Object(M["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({isMute:!1});Object(M["watchEffect"])(()=>{n.isMute=e.isMute});const o=async t=>{if(t.target.files.length>0)try{await Gr.TUIServer.sendVideoMessage(t.target),an.getInstance().reportEvent({name:"messageType",ext1:"typeVideo"})}catch(n){Object(En["b"])(n,e)}t.target.value=""};return{...Object(M["toRefs"])(n),sendUploadMessage:o}}});var Hr=Gr;n("6e04");const zr=me()(Hr,[["render",Ar],["__scopeId","data-v-0b03faf8"]]);var Fr=zr,$r=Fr;const Yr={class:"upload-btn icon icon-files"};function Kr(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Yr,[e.isMute?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:0,title:"文件",type:"file","data-type":"file",accept:"*",onChange:t[0]||(t[0]=(...t)=>e.sendUploadMessage&&e.sendUploadMessage(...t))},null,32)),Object(M["renderSlot"])(e.$slots,"default",{},void 0,!0)])}const Wr=Object(M["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({isMute:!1});Object(M["watchEffect"])(()=>{n.isMute=e.isMute});const o=async t=>{if(t.target.files.length>0)try{await Wr.TUIServer.sendFileMessage(t.target),an.getInstance().reportEvent({name:"messageType",ext1:"typeFile"})}catch(n){Object(En["b"])(n,e)}t.target.value=""};return{...Object(M["toRefs"])(n),sendUploadMessage:o}}});var qr=Wr;n("6a25");const Zr=me()(qr,[["render",Kr],["__scopeId","data-v-3082f8e4"]]);var Jr=Zr,Qr=Jr;function Xr(e,t,n,o,a,i){const s=Object(M["resolveComponent"])("Transfer");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",null,[e.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["forward",[e.isH5?"forward-h5":""]]),ref:"dialog"},[Object(M["createVNode"])(s,{title:"转发",list:e.list,isSearch:!1,isH5:e.isH5,isCustomItem:!0,resultShow:!0,onSubmit:e.handleForWordMessage,onCancel:e.toggleShow},{left:Object(M["withCtx"])(({data:t})=>[Object(M["renderSlot"])(e.$slots,"left",{data:t},void 0,!0)]),right:Object(M["withCtx"])(({data:t})=>[Object(M["renderSlot"])(e.$slots,"right",{data:t},void 0,!0)]),_:3},8,["list","isH5","onSubmit","onCancel"])],2)):Object(M["createCommentVNode"])("",!0)])}const el=Object(M["defineComponent"])({components:{Transfer:La},name:"转发",props:{list:{type:Array,default:()=>[]},message:{type:Object,default:()=>({})},show:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({list:[],show:!1,to:-1}),o=Object(M["ref"])();Object(M["watchEffect"])(()=>{n.list=e.list,n.show=e.show});const a=()=>{n.show=!n.show,n.show||(t.emit("update:show",n.show),n.to=-1)};Object(wn["onClickOutside"])(o,()=>{n.show=!1,t.emit("update:show",n.show),n.to=-1});const i=async t=>{l()(t).call(t,async t=>{try{await el.TUIServer.forwardMessage(e.message,t)}catch(n){Object(En["b"])(n,e)}}),a()};return{...Object(M["toRefs"])(n),toggleShow:a,handleForWordMessage:i,dialog:o}}});var tl=el;n("8617");const nl=me()(tl,[["render",Xr],["__scopeId","data-v-f4db8228"]]);var ol=nl,al=ol;const il={class:"words-main-content",ref:"dialog"},sl={class:"words-list"},rl=["onClick"];function ll(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["words",[e.isH5?"words-H5":""]])},[Object(M["createElementVNode"])("i",{class:"icon icon-words",title:"快速回复",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))}),Object(M["withDirectives"])(Object(M["createElementVNode"])("main",{class:Object(M["normalizeClass"])(["words-main",[e.isH5?"words-H5-main":""]])},[Object(M["createElementVNode"])("div",il,[Object(M["createElementVNode"])("header",null,[Object(M["createElementVNode"])("aside",null,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.$t("Words.常用语-快捷回复工具")),1)]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:0,class:"close",onClick:t[1]||(t[1]=(...t)=>e.toggleShow&&e.toggleShow(...t))},"关闭")):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("ul",sl,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.list,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"words-list-item",key:n,onClick:n=>e.select(t)},[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(t.value),1)],8,rl))),128))])],512)],2),[[M["vShow"],e.show&&!e.isMute]])],2)}var cl=n("c7e2");const dl=Object(M["defineComponent"])({type:"custom",props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const{t:n}=window.TUIKitTUICore.config.i18n.useI18n(),o=[{value:"在吗?在吗?在吗?重要的话说三遍。"},{value:"好久没聊天了,快来和我说说话~"},{value:"好的,就这么说定了。"},{value:"感恩的心,感谢有你。"},{value:"糟糕!是心动的感觉!"},{value:"心疼地抱抱自己,我太难了!"},{value:"没关系,别在意,事情过去就过去了。"},{value:"早上好,今天也是让人期待的一天呢!"},{value:"熬夜有什么用,又没人陪你聊天,早点休息吧。"}],a=Object(M["reactive"])({list:[],show:!1,isMute:!1,locale:Object(cl["b"])()}),i=Object(M["ref"])();Object(M["watch"])(()=>a.locale,(e,t)=>{a.list=l()(o).call(o,e=>({value:n("Words."+e.value)}))}),Object(M["watchEffect"])(()=>{a.show=e.show,a.isMute=e.isMute});const s=()=>{a.show=!a.show,a.show&&(a.list=l()(o).call(o,e=>({value:n("Words."+e.value)})))};Object(wn["onClickOutside"])(i,()=>{a.show=!1});const r=(e,t)=>{const n=e.value;s(),dl.TUIServer.sendTextMessage(n)};return{...Object(M["toRefs"])(a),toggleShow:s,select:r,dialog:i}}});var ul=dl;n("ae69");const pl=me()(ul,[["render",ll],["__scopeId","data-v-dfa99d56"]]);var ml=pl,hl=ml;const vl={key:0,class:"evaluate-main"},fl={class:"evaluate-main-content",ref:"dialog"},gl={key:0},bl={class:"evaluate-content"},Ol={class:"evaluate-list"},yl=["onClick"],jl={key:0,class:"icon icon-star-light"},kl={key:1,class:"icon icon-star"},Il={class:"evaluate-main-footer"},wl={key:0};function El(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["evaluate",[e.isH5&&"evaluate-H5"]])},[Object(M["createElementVNode"])("i",{class:"icon icon-evaluate",title:"服务评价",onClick:t[0]||(t[0]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["stop"]))}),e.show&&!e.isMute?(Object(M["openBlock"])(),Object(M["createElementBlock"])("main",vl,[Object(M["createElementVNode"])("div",fl,[Object(M["createElementVNode"])("header",null,[Object(M["createElementVNode"])("aside",null,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.$t("Evaluate.请对本次服务进行评价")),1),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",gl,[Object(M["createTextVNode"])(Object(M["toDisplayString"])(e.$t("Evaluate.服务评价工具"))+""+Object(M["toDisplayString"])(e.$t("Evaluate.使用")),1),Object(M["createElementVNode"])("a",{onClick:t[1]||(t[1]=t=>e.openLink(e.Link.customMessage))},Object(M["toDisplayString"])(e.$t("Evaluate."+e.Link.customMessage.label)),1),Object(M["createTextVNode"])(Object(M["toDisplayString"])(e.$t("Evaluate.搭建"))+" ",1)])):Object(M["createCommentVNode"])("",!0)]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:0,class:"close",onClick:t[2]||(t[2]=Object(M["withModifiers"])((...t)=>e.toggleShow&&e.toggleShow(...t),["stop"]))},"关闭")):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("div",bl,[Object(M["createElementVNode"])("ul",Ol,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.list,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:Object(M["normalizeClass"])(["evaluate-list-item",[n<e.num&&"small-padding",e.isH5&&"evaluate-item"]]),key:n,onClick:Object(M["withModifiers"])(o=>e.select(t,n),["stop"])},[n<e.num?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",jl)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",kl))],10,yl))),128))]),Object(M["withDirectives"])(Object(M["createElementVNode"])("textarea",{"onUpdate:modelValue":t[3]||(t[3]=t=>e.options.data.comment=t)},null,512),[[M["vModelText"],e.options.data.comment]]),Object(M["createElementVNode"])("div",Il,[Object(M["createElementVNode"])("button",{class:"btn",onClick:t[4]||(t[4]=(...t)=>e.submit&&e.submit(...t))},Object(M["toDisplayString"])(e.$t("Evaluate.提交评价")),1)])]),e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("footer",wl,[Object(M["createTextVNode"])(Object(M["toDisplayString"])(e.$t("Evaluate.服务评价工具"))+""+Object(M["toDisplayString"])(e.$t("Evaluate.使用")),1),Object(M["createElementVNode"])("a",{onClick:t[5]||(t[5]=t=>e.openLink(e.Link.customMessage))},Object(M["toDisplayString"])(e.$t("Evaluate."+e.Link.customMessage.label)),1),Object(M["createTextVNode"])(Object(M["toDisplayString"])(e.$t("Evaluate.搭建"))+" ",1)]))],512)])):Object(M["createCommentVNode"])("",!0)],2)}const Cl=Object(M["defineComponent"])({type:"custom",props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({link:"https://web.sdk.qcloud.com/im/doc/zh-cn//SDK.html#createCustomMessage",list:5,show:!1,isMute:!1,options:{data:{businessID:nn["a"].typeEvaluate,version:1,score:"",comment:""},description:"对本次的服务评价",extension:"对本次的服务评价"},num:0}),o=Object(M["ref"])();Object(wn["onClickOutside"])(o,()=>{n.show=!1}),Object(M["watchEffect"])(()=>{n.show=e.show,n.isMute=e.isMute});const a=()=>{n.show=!n.show,n.show&&(n.options={data:{...Object(U["n"])(nn["a"].typeEvaluate,1,{score:"",comment:""})},description:"对本次的服务评价",extension:"对本次的服务评价"},n.num=0)},i=(e,t)=>{n.num=t+1,n.options.data.score=""+n.num},s=()=>{Cl.TUIServer.sendCustomMessage(n.options),an.getInstance().reportEvent({name:"messageType",ext1:"typeCustom"}),a()},r=e=>{window.open(e.url),an.getInstance().reportEvent({name:"openLink",ext1:e.label})};return{...Object(M["toRefs"])(n),toggleShow:a,select:i,submit:s,dialog:o,Link:Ki,openLink:r}}});var Tl=Cl;n("a94d");const Sl=me()(Tl,[["render",El],["__scopeId","data-v-5e2a1c9e"]]);var _l=Sl,Dl=_l;const Nl={style:{display:"flex"}},Ul={key:0,style:{display:"flex","justify-content":"center","padding-top":"5px"}};function Bl(e,t,n,o,a,i){var s;return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Nl,[Object(M["createElementVNode"])("div",null,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])("对方正在输入"===e.title?e.$t("TUIChat.对方正在输入"):e.title),1),e.doctorName&&"1"==(null===(s=e.conversation)||void 0===s||null===(s=s.children)||void 0===s?void 0:s.sessionType)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Ul," 专家:"+Object(M["toDisplayString"])(e.doctorName),1)):Object(M["createCommentVNode"])("",!0)]),"expert"!==e.hrefParams.isSpecialized&&e.hrefParams.isSpecialized&&"0"===e.upTabIndex?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:"adv",onClick:t[0]||(t[0]=(...t)=>e.forHelp&&e.forHelp(...t))}," 救助意见 ")):Object(M["createCommentVNode"])("",!0),"expert"!==e.hrefParams.isSpecialized&&e.hrefParams.isSpecialized&&"0"===e.upTabIndex?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:1,class:"adv",onClick:t[1]||(t[1]=(...t)=>e.endStatus&&e.endStatus(...t))}," 结束应急 ")):Object(M["createCommentVNode"])("",!0),e.hrefParams.isSpecialized&&"1"===e.upTabIndex?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:2,class:"adv",onClick:t[2]||(t[2]=(...t)=>e.bigInformation&&e.bigInformation(...t))}," 大病就医 ")):Object(M["createCommentVNode"])("",!0)])}const Ml=Object(M["defineComponent"])({props:{needTyping:{type:Boolean,default:!1},conversation:{type:Object,default:()=>({})},messageList:{type:Array,default:()=>[]},upTabIndex:{type:String,default:()=>"0"},isDisabled:{type:Boolean,default:!0}},setup(e,t){const n=Object(M["reactive"])({hrefParams:{},messageList:[],conversation:{},title:"",timeValid:0,myTypingStatus:0,otherTypingStatus:0,needTyping:!1,lastOtherMessageTime:0,lastMyTypingTime:0,lastOtherTypingTime:0,options:{data:{businessID:nn["a"].typeUserTyping,typingStatus:0,version:1,userAction:0,actionParam:nn["a"].typeInputStatusEnd},description:"",extension:""},chooseTab:"0"}),o=()=>{var e,t,n;const o=window.location.href.substring(_()(e=window.location.href).call(e,"?")+1,_()(t=window.location.href).call(t,"#/")),i={};return a()(n=o.split("&")).call(n,e=>{const t=e.substring(0,_()(e).call(e,"=")),n=e.substring(_()(e).call(e,"=")+1);i[t]=n}),i};n.hrefParams=o();const i=()=>{tr["a"].emit("forHelpDetail")},s=()=>{tr["a"].emit("forHelp",e.isDisabled)},r=()=>{window.parent.postMessage(v()({code:"endStatus",orderInfo:n.conversation["children"]}),"*")},l=()=>{tr["a"].emit("bigInformation")};Object(M["watchEffect"])(()=>{n.messageList=e.messageList,n.conversation=e.conversation,n.needTyping=e.needTyping});const c=Object(M["computed"])(()=>{const{conversation:e}=n;return null!==e&&void 0!==e&&e.conversationID?e.conversationID:""}),d=Object(M["computed"])(()=>{const{conversation:e}=n;return Object(U["m"])(e)}),u=Object(M["computed"])(()=>{const{conversation:e}=n;return null!==e&&void 0!==e&&e.type?null===e||void 0===e?void 0:e.type:""}),p=Object(M["computed"])(()=>n.needTyping&&n.otherTypingStatus?"对方正在输入":$i["a"].getters.getTitleName),m=Object(M["computed"])(()=>n.needTyping&&n.otherTypingStatus?"":$i["a"].getters.getDoctorName),h=(e,t)=>{if(n.needTyping&&"C2C"===u.value&&((new Date).getTime()/1e3-n.lastOtherMessageTime<30&&(n.timeValid=1),n.timeValid))if(e||t)n.myTypingStatus=0,n.lastMyTypingTime=0,g(n.myTypingStatus);else{n.myTypingStatus=1;const e=(new Date).getTime();e-n.lastMyTypingTime>4e3&&(n.lastMyTypingTime=e,g(n.myTypingStatus))}};Object(M["watch"])(c,(e,t)=>{e!==t&&(n.needTyping=!1,n.timeValid=0)}),Object(M["watch"])(()=>n.needTyping,(e,t)=>{e||(n.myTypingStatus=0,n.otherTypingStatus=0,n.lastOtherMessageTime=0)}),Object(M["watch"])(()=>n.messageList,(e,t)=>{Object(M["nextTick"])(()=>{var t,o;0!==e.length&&"C2C"===u.value&&(n.lastOtherMessageTime=b(e),"in"===(null===(t=e[e.length-1])||void 0===t?void 0:t.flow)&&(Object(U["v"])(e[e.length-1])?(n.otherTypingStatus=f(e[e.length-1]),j()):(n.lastOtherMessageTime=null===(o=e[e.length-1])||void 0===o?void 0:o.time,n.otherTypingStatus=0)))})},{deep:!0});const f=e=>{try{var t;const{typingStatus:n,actionParam:o}=Object(U["a"])(null===e||void 0===e||null===(t=e.payload)||void 0===t?void 0:t.data);return 1===n&&o===nn["a"].typeInputStatusIng?1:0}catch{return 0}},g=e=>{n.options={data:{businessID:nn["a"].typeUserTyping,typingStatus:e?1:0,version:1,userAction:e?14:0,actionParam:e?nn["a"].typeInputStatusIng:nn["a"].typeInputStatusEnd},description:"",extension:""},Ml.TUIServer.sendTypingMessage(n.options),an.getInstance().reportEvent({name:"messageType",ext1:"typeCustom"})},b=e=>{if(!e)return 0;for(let t=e.length-1;t>=0;t--)if(!Object(U["v"])(e[t])&&"in"===e[t].flow)return e[t].time;return 0},y=(e,t=2e3)=>{let n;return function(){n&&clearTimeout(n),n=O()(e,t)}},j=y(()=>{n.otherTypingStatus=0},5e3);return{...Object(M["toRefs"])(n),conversationID:c,conversationName:d,conversationType:u,title:p,doctorName:m,isTypingMessage:U["v"],sendTypingMessage:g,handleTypingMessageStatus:f,getLastOtherMessageTime:b,debounce:y,waitTypingEnd:j,onTyping:h,forHelpDetail:i,forHelp:s,endStatus:r,bigInformation:l}}});var xl=Ml;n("b617");const Vl=me()(xl,[["render",Bl],["__scopeId","data-v-31ac0c3c"]]);var Ll=Vl,Rl=Ll;const Pl={class:"header"},Al={class:"header-back"},Gl={class:"header-title"},Hl={class:"header-close"},zl={class:"body"},Fl={key:0,class:"body-message"},$l={class:"message"},Yl={class:"message-info"},Kl={class:"message-cont"},Wl=["src"],ql={key:1},Zl={class:"body-tab"},Jl=["onClick"],Ql={class:"tab-item-title"},Xl={class:"tab-item-count"},ec={class:"body-list"},tc=["src"],nc={class:"name"};function oc(e,t,n,o,a,i){return e.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["read-receipt",[e.isH5?"read-receipt-H5":"",e.isMenuOpen?"read-receipt-menu-open":""]]),ref:"dialog"},[Object(M["createElementVNode"])("div",Pl,[Object(M["createElementVNode"])("div",Al,[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))})):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("div",Gl,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.消息详情")),1)]),Object(M["createElementVNode"])("div",Hl,[e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-close",onClick:t[1]||(t[1]=(...t)=>e.toggleShow&&e.toggleShow(...t))}))])]),Object(M["createElementVNode"])("div",zl,[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Fl,[Object(M["createElementVNode"])("div",$l,[Object(M["createElementVNode"])("div",Yl,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.message.from),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.caculateTimeago(1e3*e.message.time)),1)]),Object(M["createElementVNode"])("div",Kl,[e.messageInfo.isImg?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:0,class:"message-cont-img",src:e.messageInfo.content},null,8,Wl)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",ql,Object(M["toDisplayString"])(e.messageInfo.content),1))])])])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("div",Zl,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.readReceiptList,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],null,[t.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["tab-item",n===e.showListNow&&"tab-item-now"]),key:n,onClick:t=>e.showListNow=n},[Object(M["createElementVNode"])("div",Ql,Object(M["toDisplayString"])(null===t||void 0===t?void 0:t.label),1),Object(M["createElementVNode"])("div",Xl,Object(M["toDisplayString"])(null===t||void 0===t?void 0:t.count),1)],10,Jl)):Object(M["createCommentVNode"])("",!0)],64))),256))]),Object(M["createElementVNode"])("div",ec,[Object(M["createElementVNode"])("ul",null,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.readReceiptList[e.showListNow].userList,(e,t)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:t,class:"body-list-item"},[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===e||void 0===e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,tc),Object(M["createElementVNode"])("div",nc,Object(M["toDisplayString"])((null===e||void 0===e?void 0:e.nick)||(null===e||void 0===e?void 0:e.userID)),1)]))),128))]),e.readReceiptList[e.showListNow].isCompleted?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:"more",onClick:t[2]||(t[2]=(...t)=>e.getMoreList&&e.getMoreList(...t))},"查看更多"))])])],2)):Object(M["createCommentVNode"])("",!0)}const ac=Object(M["defineComponent"])({type:"custom",props:{message:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1},show:{type:Boolean,default:()=>!1}},setup(e,t){const{t:n}=window.TUIKitTUICore.config.i18n.useI18n(),o=Object(M["reactive"])({message:{},isGroup:!1,show:!1,isH5:!1,messageInfo:{isImg:!1,content:""},readReceiptList:[{label:e.isH5?n("TUIChat.人已读"):n("TUIChat.已读"),count:0,userList:[],isCompleted:!0,cursor:"",show:!0},{label:e.isH5?n("TUIChat.人未读"):n("TUIChat.未读"),count:0,userList:[],isCompleted:!0,cursor:"",show:!0},{label:e.isH5?n("TUIChat.人关闭阅读状态"):n("TUIChat.关闭阅读状态"),count:0,userList:[],isCompleted:!0,cursor:"",show:!1}],showListNow:0,isMenuOpen:!0,env:Object(D["b"])()}),i=Object(M["ref"])();Object(M["watchEffect"])(()=>{o.show=e.show,o.isH5=e.isH5}),Object(M["watch"])(()=>{e.message,o.show},async()=>{var t,n;o.show&&(v(),o.message=e.message,u(),h(),o.readReceiptList[0].count=(null===(t=o.message)||void 0===t||null===(t=t.readReceiptInfo)||void 0===t?void 0:t.readCount)||o.readReceiptList[0].count,o.readReceiptList[1].count=(null===(n=o.message)||void 0===n||null===(n=n.readReceiptInfo)||void 0===n?void 0:n.unreadCount)||o.readReceiptList[1].count,l(),c())},{deep:!0});const r=()=>{o.show=!o.show,o.show||(t.emit("closeDialog","receipt"),m())};Object(wn["onClickOutside"])(i,()=>{o.show=!1,t.emit("closeDialog","receipt"),m()});const l=async(e=!1)=>{if(o.isGroup&&o.message&&0!==s()(o.message).length)try{var t,a;const n=await ac.TUIServer.getGroupReadMemberList(o.message,e?o.readReceiptList[0].cursor:"");o.readReceiptList[0].isCompleted=null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.isCompleted,o.readReceiptList[0].cursor=(null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.cursor)||"";const i=n.data.readUserIDList,s=await d(i);o.readReceiptList[0].userList=e?[...o.readReceiptList[0].userList,...s]:s}catch(i){if(i&&10062===(null===i||void 0===i?void 0:i.code)){const e=n("TUIChat.您当前购买使用的套餐包暂未开通群消息已读回执功能");Object(En["b"])(e,o.env),console.warn(e)}}},c=async(e=!1)=>{var t;if(!o.isGroup||!o.message||0===s()(o.message).length)return;const n=await ac.TUIServer.getGroupUnreadMemberList(o.message,e?o.readReceiptList[1].cursor:"");o.readReceiptList[1].isCompleted=null===n||void 0===n?void 0:n.data.isCompleted,o.readReceiptList[1].cursor=(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.cursor)||"";const a=n.data.unreadUserIDList,i=await d(a);o.readReceiptList[1].userList=e?[...o.readReceiptList[1].userList,...i]:i},d=async e=>{const t=[];if(e.length&&o.isGroup){const n=await ac.TUIServer.getUserProfile(e),o=n.data;a()(o).call(o,e=>{t.push({nick:null===e||void 0===e?void 0:e.nick,avatar:null===e||void 0===e?void 0:e.avatar,userID:null===e||void 0===e?void 0:e.userID})})}return t},u=()=>{var e;(null===(e=o.message)||void 0===e?void 0:e.conversationType)===ac.TUIServer.TUICore.TIM.TYPES.CONV_GROUP?o.isGroup=!0:o.isGroup=!1},p=()=>{switch(o.showListNow){case 0:l(!0);break;case 1:c(!0);break;default:break}},m=()=>{o.message={},o.readReceiptList=[{label:e.isH5?n("TUIChat.人已读"):n("TUIChat.已读"),count:0,userList:[],isCompleted:!0,cursor:"",show:!0},{label:e.isH5?n("TUIChat.人未读"):n("TUIChat.未读"),count:0,userList:[],isCompleted:!0,cursor:"",show:!0},{label:e.isH5?n("TUIChat.人关闭阅读状态"):n("TUIChat.关闭阅读状态"),count:0,userList:[],isCompleted:!0,cursor:"",show:!1}],o.showListNow=0,o.messageInfo={isImg:!1,content:""}},h=()=>{var e,t,a,i,s;if(o.message&&o.isH5)switch(o.message.type){case ac.TUIServer.TUICore.TIM.TYPES.MSG_TEXT:o.messageInfo.content=null===(e=o.message)||void 0===e||null===(e=e.payload)||void 0===e?void 0:e.text,o.messageInfo.isImg=!1;break;case ac.TUIServer.TUICore.TIM.TYPES.MSG_CUSTOM:o.messageInfo.content=n("TUIChat.自定义"),o.messageInfo.isImg=!1;break;case ac.TUIServer.TUICore.TIM.TYPES.MSG_IMAGE:o.messageInfo.content=null===(t=Object(U["j"])(o.message))||void 0===t?void 0:t.url,o.messageInfo.isImg=!0;break;case ac.TUIServer.TUICore.TIM.TYPES.MSG_AUDIO:o.messageInfo.content=n("TUIChat.语音"),o.messageInfo.isImg=!1;break;case ac.TUIServer.TUICore.TIM.TYPES.MSG_VIDEO:o.messageInfo.content=null===(a=Object(U["t"])(o.message))||void 0===a?void 0:a.snapshotUrl,o.messageInfo.isImg=!0;break;case ac.TUIServer.TUICore.TIM.TYPES.MSG_FILE:o.messageInfo.content=n("TUIChat.文件")+(null===(i=o.message)||void 0===i||null===(i=i.payload)||void 0===i?void 0:i.fileName),o.messageInfo.isImg=!1;break;case ac.TUIServer.TUICore.TIM.TYPES.MSG_FACE:o.messageInfo.content=null===(s=Object(U["h"])(o.message))||void 0===s?void 0:s.url,o.messageInfo.isImg=!0;break}},v=()=>{var e;o.isMenuOpen=!(null===(e=document)||void 0===e||null===(e=e.getElementsByClassName("home-menu"))||void 0===e||!e.length)};return{...Object(M["toRefs"])(o),dialog:i,toggleShow:r,getReadList:l,getUnreadList:c,isGroup:u,handleAvatarAndName:d,close:m,getMoreList:p,showMessage:h,caculateTimeago:En["a"],handleDialogPosition:v}}});var ic=ac;n("01ce");const sc=me()(ic,[["render",oc],["__scopeId","data-v-103b5294"]]);var rc=sc,lc=rc;const cc={class:"header"},dc={class:"header-back"},uc={class:"header-title"},pc={class:"header-close"},mc={class:"body"},hc={class:"body-message"},vc={class:"body-list"};function fc(e,t,n,o,a,i){const s=Object(M["resolveComponent"])("RepliesItem");return e.show?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["replies",[e.isH5?"replies-H5":"",e.isMenuOpen?"replies-menu-open":""]]),ref:"dialog"},[Object(M["createElementVNode"])("div",cc,[Object(M["createElementVNode"])("div",dc,[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.toggleShow&&e.toggleShow(...t))})):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("div",uc,[Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.$t("TUIChat.回复详情")),1)]),Object(M["createElementVNode"])("div",pc,[e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-close",onClick:t[1]||(t[1]=(...t)=>e.toggleShow&&e.toggleShow(...t))}))])]),Object(M["createElementVNode"])("div",mc,[Object(M["createElementVNode"])("div",hc,[Object(M["createVNode"])(s,{message:e.message,isH5:e.isH5,isRoot:!0},null,8,["message","isH5"])]),Object(M["createElementVNode"])("div",vc,[Object(M["createElementVNode"])("ul",null,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.replies,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:n,class:"body-list-item"},[Object(M["createVNode"])(s,{message:t,isH5:e.isH5,isRoot:!1},null,8,["message","isH5"])]))),128))])])])],2)):Object(M["createCommentVNode"])("",!0)}const gc={class:"message-bubble",ref:"htmlRefHook"},bc=["src"],Oc={class:"message-area"},yc={class:"message-area-title"},jc={class:"name"},kc={class:"time"},Ic={class:"content content-in"},wc={key:1},Ec=["src"],Cc={key:4,class:"message-video-cover"},Tc=["src"],Sc=["src"],_c={key:6,class:"message-file"},Dc={class:"message-file-content"};function Nc(e,t,n,o,a,i){var s,r,l,c,d,u,p,m,h,v,f,g,b;const O=Object(M["resolveComponent"])("MessageText"),y=Object(M["resolveComponent"])("MessageEmojiReact");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["replies-item",e.isRoot?"":"replies-item-normal"])},[Object(M["createElementVNode"])("div",gc,[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===(s=e.message)||void 0===s?void 0:s.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,bc),Object(M["createElementVNode"])("main",Oc,[Object(M["createElementVNode"])("div",yc,[Object(M["createElementVNode"])("label",jc,Object(M["toDisplayString"])(e.isRoot?e.message.nameCard||e.message.nick||e.message.from:e.message.messageSender),1),Object(M["createElementVNode"])("label",kc,Object(M["toDisplayString"])(e.caculateTimeago(1e3*(e.isRoot?null===(r=e.message)||void 0===r?void 0:r.time:null===(l=e.message)||void 0===l?void 0:l.messageTime))),1)]),Object(M["createElementVNode"])("div",Ic,[e.message.messageType!==e.constant.typeText&&e.message.type!==e.TIM.TYPES.MSG_TEXT&&e.isRoot?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createBlock"])(O,{key:0,data:e.handleTextMessageShowContext(e.isRoot?e.message:{payload:{text:null===(c=e.message)||void 0===c?void 0:c.messageAbstract}})},null,8,["data"])),e.message.messageType===e.constant.typeCustom||e.message.type===e.TIM.TYPES.MSG_CUSTOM?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",wc,Object(M["toDisplayString"])(null===(d=e.handleCustomMessageShowContext(e.message))||void 0===d?void 0:d.custom),1)):Object(M["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeImage||e.message.type===e.TIM.TYPES.MSG_IMAGE?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:2,class:"message-img",src:null===(u=e.message)||void 0===u||null===(u=u.payload)||void 0===u?void 0:u.imageInfoArray[1].url},null,8,Ec)):Object(M["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeAudio||e.message.type===e.TIM.TYPES.MSG_AUDIO?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:3,class:"message-audio",style:Object(M["normalizeStyle"])(`width: ${10*(null===(p=e.message)||void 0===p||null===(p=p.payload)||void 0===p?void 0:p.second)+40}px`)},[t[0]||(t[0]=Object(M["createElementVNode"])("i",{class:"icon icon-voice"},null,-1)),Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(null===(m=e.message)||void 0===m||null===(m=m.payload)||void 0===m?void 0:m.second)+"s",1)],4)):Object(M["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeVideo||e.message.type===e.TIM.TYPES.MSG_VIDEO?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Cc,[Object(M["createElementVNode"])("img",{class:"message-videoimg",src:(null===(h=e.message)||void 0===h||null===(h=h.payload)||void 0===h?void 0:h.snapshotUrl)||(null===(v=e.message)||void 0===v||null===(v=v.payload)||void 0===v?void 0:v.thumbUrl)},null,8,Tc)])):Object(M["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeFace||e.message.type===e.TIM.TYPES.MSG_FACE?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:5,class:"message-img",src:e.url},null,8,Sc)):Object(M["createCommentVNode"])("",!0),e.message.messageType===e.constant.typeFile||e.message.type===e.TIM.TYPES.MSG_FILE?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",_c,[t[1]||(t[1]=Object(M["createElementVNode"])("i",{class:"icon icon-files"},null,-1)),Object(M["createElementVNode"])("div",Dc,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(null===(f=e.message)||void 0===f||null===(f=f.payload)||void 0===f?void 0:f.fileName),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])((null===(g=e.handleFileMessageShowContext(e.message))||void 0===g?void 0:g.size)||(null===(b=e.message)||void 0===b||null===(b=b.payload)||void 0===b?void 0:b.fileSize)),1)])])):Object(M["createCommentVNode"])("",!0),Object(M["createVNode"])(y,{message:e.message,type:"content"},null,8,["message"])])])],512)],2)}const Uc=Object(M["defineComponent"])({props:{message:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1},isRoot:{type:Boolean,default:!1}},components:{MessageText:ve,MessageEmojiReact:lo},setup(e,t){const n=Object(M["reactive"])({message:{},isH5:!1,url:"",isRoot:!1,constant:nn["a"],TIM:ao["a"]});return Object(M["watchEffect"])(()=>{var t;(n.message=e.message,n.isH5=e.isH5,n.isRoot=e.isRoot,n.message.type===ao["a"].TYPES.MSG_FACE)&&(n.url=`https://web.sdk.qcloud.com/im/assets/face-elem/${null===(t=n.message)||void 0===t||null===(t=t.payload)||void 0===t?void 0:t.data}@2x.png`)}),{...Object(M["toRefs"])(n),handleTextMessageShowContext:U["r"],handleCustomMessageShowContext:U["g"],handleFileMessageShowContext:U["i"],caculateTimeago:En["a"]}}});var Bc=Uc;n("3910");const Mc=me()(Bc,[["render",Nc],["__scopeId","data-v-c1a2ea1e"]]);var xc=Mc;const Vc=Object(M["defineComponent"])({type:"custom",components:{RepliesItem:xc},props:{message:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1},show:{type:Boolean,default:()=>!1},url:{type:String,default:""},messageList:{type:Array,default:()=>[]}},setup(e,t){const n=Object(M["reactive"])({message:{},isGroup:!1,show:!1,isH5:!1,url:"",showListNow:0,isMenuOpen:!0,replies:[],messageList:[],TIM:ao["a"]}),o=Object(M["ref"])();Object(M["watchEffect"])(()=>{n.message=e.message,n.show=e.show,n.isH5=e.isH5,n.url=e.url,n.messageList=e.messageList}),Object(M["watch"])(()=>{n.message,n.messageList},()=>{n.message=e.message,n.messageList=e.messageList,s(n.message)},{deep:!0});const i=()=>{n.show=!n.show,n.show||(t.emit("closeDialog","replies"),r())};Object(wn["onClickOutside"])(o,()=>{n.show=!1,t.emit("closeDialog","replies"),r()});const s=e=>{try{var t,o;const{cloudCustomData:i}=e;if(!i)return;const s=Object(U["a"])(i);n.replies=null===s||void 0===s||null===(t=s.messageReplies)||void 0===t?void 0:t.replies,null===n||void 0===n||null===(o=n.replies)||void 0===o||a()(o).call(o,e=>{var t;const{messageID:o,messageSender:a}=e,i=I()(t=n.messageList).call(t,e=>e.ID===o||e.from===a);e.avatar=i?null===i||void 0===i?void 0:i.avatar:""})}catch(i){console.log(i)}},r=()=>{n.message={}},l=()=>{var e;n.isMenuOpen=!(null===(e=document)||void 0===e||null===(e=e.getElementsByClassName("home-menu"))||void 0===e||!e.length)};return{...Object(M["toRefs"])(n),dialog:o,toggleShow:i,close:r,caculateTimeago:En["a"],handleDialogPosition:l}}});var Lc=Vc;n("d45a");const Rc=me()(Lc,[["render",fc],["__scopeId","data-v-43000c27"]]);var Pc=Rc,Ac=Pc;const Gc={key:0,class:"call",id:"call"},Hc={class:"call-main-content",ref:"dialog"},zc={key:0,class:"icon icon-call-voice"},Fc={key:0,class:"icon icon-call-video"},$c={class:"uncall-dialog-body"};function Yc(e,t,n,o,a,i){const r=Object(M["resolveComponent"])("Transfer"),l=Object(M["resolveComponent"])("Dialog");return e.handleShowCallIcon(e.conversation,e.isH5)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Gc,[Object(M["createElementVNode"])("div",{class:"call-icon",onClick:t[0]||(t[0]=(...t)=>e.toggleShowSelectDialog&&e.toggleShowSelectDialog(...t))},t[7]||(t[7]=[Object(M["createElementVNode"])("i",{class:"icon icon-call",title:"通话"},null,-1),Object(M["createElementVNode"])("i",{class:"icon icon-down-arrow",title:"通话"},null,-1)])),Object(M["withDirectives"])(Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["call-main",[e.isH5&&"call-main-h5"]])},[Object(M["createElementVNode"])("div",Hc,[Object(M["createElementVNode"])("div",{class:"call-main-voice",onClick:t[1]||(t[1]=t=>e.onClickCall(1))},[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",zc)):Object(M["createCommentVNode"])("",!0),Object(M["createTextVNode"])(" "+Object(M["toDisplayString"])(e.$t("TUIChat.语音通话")),1)]),Object(M["createElementVNode"])("div",{class:"call-main-video",onClick:t[2]||(t[2]=t=>e.onClickCall(2))},[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",Fc)):Object(M["createCommentVNode"])("",!0),Object(M["createTextVNode"])(" "+Object(M["toDisplayString"])(e.$t("TUIChat.视频通话")),1)]),Object(M["createElementVNode"])("footer",null,[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:0,class:"close",onClick:t[3]||(t[3]=Object(M["withModifiers"])(t=>e.showSelectDialog=!1,["stop"]))},Object(M["toDisplayString"])(e.$t("TUIChat.取消")),1)):Object(M["createCommentVNode"])("",!0)])],512)],2),[[M["vShow"],e.showSelectDialog]]),Object(M["createVNode"])(l,{show:e.showGroupUserDialog,isH5:e.isH5,isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":t[4]||(t[4]=t=>e.showGroupUserDialog=t)},{default:Object(M["withCtx"])(()=>{var t;return[Object(M["createVNode"])(r,{isSearch:!0,title:e.showTitle,list:e.searchUserList,isH5:e.isH5,isRadio:"isC2C"===(null===(t=e.conversation)||void 0===t?void 0:t.type),onSearch:e.handleSearch,onSubmit:e.submit,onCancel:e.cancle},null,8,["title","list","isH5","isRadio","onSearch","onSubmit","onCancel"])]}),_:1},8,["show","isH5"]),Object(M["createVNode"])(l,{show:e.showUnsupportDialog,isH5:e.isH5,isHeaderShow:!0,isFooterShow:!0,background:!0,title:e.$t("TUIChat.欢迎使用TUICallKit"),"onUpdate:show":t[6]||(t[6]=t=>e.showUnsupportDialog=t)},{default:Object(M["withCtx"])(()=>{var n;return[Object(M["createElementVNode"])("div",null,[Object(M["createElementVNode"])("div",$c,[Object(M["createElementVNode"])("p",null,Object(M["toDisplayString"])(e.errorContent),1),Object(M["withDirectives"])(Object(M["createElementVNode"])("p",null,[Object(M["createTextVNode"])(Object(M["toDisplayString"])(e.$t("TUIChat.请点击"))+" ",1),Object(M["createElementVNode"])("a",{onClick:t[5]||(t[5]=t=>{var n;return e.openLink(null===(n=e.errorLink)||void 0===n?void 0:n.url)})},Object(M["toDisplayString"])(e.$t("TUIChat."+(null===(n=e.errorLink)||void 0===n?void 0:n.label))),1),Object(M["createTextVNode"])(" "+Object(M["toDisplayString"])(e.$t("TUIChat.进行体验")),1)],512),[[M["vShow"],s()(e.errorLink).length>0]])])])]}),_:1},8,["show","isH5","title"])])):Object(M["createCommentVNode"])("",!0)}var Kc=Ai,Wc=La;const qc=Object(M["defineComponent"])({props:{show:{type:Boolean,default:()=>!1},isMute:{type:Boolean,default:()=>!1},isH5:{type:Boolean,default:()=>!1},conversation:{type:Object,default:()=>({})}},components:{Dialog:Kc,Transfer:Wc},setup(e,t){var n;const{t:o}=qc.TUIServer.TUICore.config.i18n.useI18n(),a=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&sn["c"]&&Object(sn["c"])()||{},i=Object(M["reactive"])({showSelectDialog:!1,showCall:!1,showGroupUserDialog:!1,isH5:!1,isMute:!1,isHomeMenuOpen:!1,conversation:{},showTitle:"",searchUserList:[],memberList:[],mediaType:0,showUnsupportDialog:!1,errorContent:"",errorLink:{}}),s=Object(M["ref"])();Object(M["watchEffect"])(()=>{i.showSelectDialog=e.show,i.isMute=e.isMute,i.isH5=e.isH5,i.conversation=e.conversation}),Object(M["watch"])(()=>i.showCall,(e,t)=>{e!==t&&i.showCall&&c()});const r=()=>{i.isMute||(i.showSelectDialog=!0)};Object(wn["onClickOutside"])(s,()=>{i.showSelectDialog=!1});const c=()=>{var e;i.isHomeMenuOpen=!(null===(e=document)||void 0===e||null===(e=e.getElementsByClassName("home-menu"))||void 0===e||!e.length)},d=e=>{var t,n,o;if(i.showSelectDialog=!1,i.mediaType=e,null===qc||void 0===qc||null===(t=qc.TUIServer)||void 0===t||null===(t=t.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t||!t.TUICallKit)return b(),void an.getInstance().reportEvent({name:"callOptions",ext1:"call-uninstall"});switch(an.getInstance().reportEvent({name:"callOptions",ext1:"clickCall-success"}),(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&(null===a||void 0===a?void 0:a.commit)&&(null===a||void 0===a||a.commit("handleTask",6)),null===(o=i.conversation)||void 0===o?void 0:o.type){case qc.TUIServer.TUICore.TIM.TYPES.CONV_C2C:u(i.conversation,e),an.getInstance().reportEvent({name:"callOptions",ext1:"call-c2c"});break;case qc.TUIServer.TUICore.TIM.TYPES.CONV_GROUP:m(e),an.getInstance().reportEvent({name:"callOptions",ext1:"call-group"});break;default:break}},u=async(e,t,n=[])=>{const o=e.type;switch(o){case qc.TUIServer.TUICore.TIM.TYPES.CONV_C2C:try{var a;await qc.TUIServer.TUICore.TUIServer.TUICallKit.call({userID:null===e||void 0===e||null===(a=e.userProfile)||void 0===a?void 0:a.userID,type:t})}catch(s){b(s)}break;case qc.TUIServer.TUICore.TIM.TYPES.CONV_GROUP:try{var i;await qc.TUIServer.TUICore.TUIServer.TUICallKit.groupCall({userIDList:n,groupID:null===e||void 0===e||null===(i=e.groupProfile)||void 0===i?void 0:i.groupID,type:t})}catch(s){b(s)}break;default:break}},p=(e,t)=>{var n,o;return(e.type!==qc.TUIServer.TUICore.TIM.TYPES.CONV_C2C||(null===e||void 0===e||null===(n=e.userProfile)||void 0===n?void 0:n.userID)!==(null===qc||void 0===qc||null===(o=qc.TUIServer)||void 0===o||null===(o=o.TUICore)||void 0===o||null===(o=o.TUIServer)||void 0===o||null===(o=o.TUIProfile)||void 0===o||null===(o=o.currentStore)||void 0===o||null===(o=o.profile)||void 0===o?void 0:o.userID))&&(an.getInstance().reportEvent({name:"callOptions",ext1:"clickCall"}),!0)},m=e=>{var t,n;i.showGroupUserDialog=!0,i.showTitle=o(1===e?"TUIChat.发起群语音":"TUIChat.发起群视频");const a={groupID:null===i||void 0===i||null===(t=i.conversation)||void 0===t||null===(t=t.groupProfile)||void 0===t?void 0:t.groupID,count:100,offset:0};null===qc||void 0===qc||null===(n=qc.TUIServer)||void 0===n||null===(n=n.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||null===(n=n.TUIGroup)||void 0===n||null===(n=n.getGroupMemberList(a))||void 0===n||n.then(e=>{var t,n,o;const a=null===(t=i.conversation)||void 0===t||null===(t=t.groupProfile)||void 0===t||null===(t=t.selfInfo)||void 0===t?void 0:t.userID;let s=[];if(null!==i&&void 0!==i&&null!==(n=i.conversation)&&void 0!==n&&null!==(n=n.groupProfile)&&void 0!==n&&n.muteAllMembers)s=[];else{var r;const t=(new Date).getTime();s=j()(r=e.data.memberList).call(r,e=>(null===e||void 0===e?void 0:e.userID)!==a&&(!(1e3*(null===e||void 0===e?void 0:e.muteUntil)-t>0)&&e))}null!==i&&void 0!==i&&null!==(o=i.conversation)&&void 0!==o&&null!==(o=o.groupProfile)&&void 0!==o&&o.muteAllMembers&&(s=[]),i.memberList=s,i.searchUserList=s})},h=async e=>{var t;const n=null===(t=i.memberList)||void 0===t?void 0:j()(t).call(t,t=>(null===t||void 0===t?void 0:t.userID)===e);i.searchUserList=null!==n&&void 0!==n&&n.length?n:i.memberList},v=e=>{i.searchUserList=i.memberList,i.showGroupUserDialog=!1;const t=null===e||void 0===e?void 0:l()(e).call(e,e=>null===e||void 0===e?void 0:e.userID);u(i.conversation,i.mediaType,t)},f=()=>{i.showGroupUserDialog=!1,i.mediaType=0},g=e=>{e&&(window.open(e),an.getInstance().reportEvent({name:"openLink",ext1:"callkit-doc"}))},b=e=>{var t;e?(null===e||void 0===e||null===(t=e.message)||void 0===t?void 0:_()(t).call(t,"The package you purchased does not support this ability."))>=0?(i.showUnsupportDialog=!0,i.errorContent=o("TUIChat.您当前购买使用的套餐包暂未开通此功能"),i.errorLink=Ki.purchase):(i.errorContent=(null===e||void 0===e?void 0:e.message)||e,i.showUnsupportDialog=!1,i.errorLink={}):(i.showUnsupportDialog=!0,i.errorContent=o("TUIChat.检测到您暂未集成TUICallKit,无法体验音视频通话功能"),i.errorLink=Ki.implement)};return{...Object(M["toRefs"])(i),toggleShowSelectDialog:r,dialog:s,onClickCall:d,handleCallDialogPosition:c,handleCall:u,handleGroupDialog:m,handleSearch:h,submit:v,cancle:f,handleShowCallIcon:p,openLink:g,handleUnsupportDialog:b}}});var Zc=qc;n("ec3a");const Jc=me()(Zc,[["render",Yc],["__scopeId","data-v-0003a24f"]]);var Qc=Jc,Xc=Qc,ed=n("1eaf"),td=n.n(ed),nd=n("6ba3"),od=n("34ae");const ad=["src"],id={class:"actions-bar"},sd={class:"image-counter"};var rd=Object(M["defineComponent"])({__name:"imagePreviewer",props:{imageList:{type:Array,default:()=>[]},currentImage:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const n=e,o=t,a=Object(M["ref"])(1),i=Object(M["ref"])(0),s=Object(M["ref"])(.1),r=Object(M["ref"])(0),l=Object(M["ref"])(),c=Object(M["ref"])(),{isH5:d}=Object(nd["a"])();let u=0,p={},m=!1,h=!1,v=null;Object(M["watchEffect"])(()=>{var e;r.value=E()(e=n.imageList).call(e,e=>e.ID===n.currentImage.ID)});const f=e=>{e.preventDefault(),k(e),I(e)},g=e=>{e.preventDefault(),m=!0,e.touches&&2===e.touches.length&&(h=!0,w(e))},b=e=>{var t;e.preventDefault();let n=0,o=0;if(h)v||(h=!1,delete p.pageX2,delete p.pageY2,v=O()(()=>{v=null},200));else if(null===v){switch(m){case!0:n=null===e||void 0===e||null===(t=e.changedTouches[0])||void 0===t?void 0:t.pageX,o=n-u,o>100?x():o<-100&&B();break;case!1:D();break}v=O()(()=>{v=null},200)}},y=e=>{h=!1,delete p.pageX1,delete p.pageY1},j=e=>{if(e.preventDefault(),0!==Math.abs(e.deltaX)&&0!==Math.abs(e.deltaY))return;let t=a.value;t+=e.deltaY*(e.ctrlKey?-.01:.002),t=Math.min(Math.max(.125,t),4),a.value=t},k=e=>{var t;u=null===e||void 0===e||null===(t=e.changedTouches[0])||void 0===t?void 0:t.pageX,m=!1},I=e=>{let t=null===e||void 0===e?void 0:e.touches[0],n=null===e||void 0===e?void 0:e.touches[1];p.pageX1=null===t||void 0===t?void 0:t.pageX,p.pageY1=null===t||void 0===t?void 0:t.pageY,n&&(p.pageX2=null===n||void 0===n?void 0:n.pageX,p.pageY2=null===n||void 0===n?void 0:n.pageY)},w=e=>{let t=null===e||void 0===e?void 0:e.touches[0],n=null===e||void 0===e?void 0:e.touches[1];n&&(Object(od["isNumber"])(p.pageX2)||(p.pageX2=n.pageX),Object(od["isNumber"])(p.pageY2)||(p.pageY2=n.pageY));const o=(e,t,n,o)=>td()(n-e,o-t);if(!Object(od["isNumber"])(p.pageX1)||!Object(od["isNumber"])(p.pageY1)||!Object(od["isNumber"])(p.pageX2)||!Object(od["isNumber"])(p.pageY2))return;let i=o(t.pageX,t.pageY,n.pageX,n.pageY)/o(p.pageX1,p.pageY1,p.pageX2,p.pageY2);a.value=Math.min(Math.max(.5,a.value*i),4)};Object(M["onMounted"])(()=>{var e,t,n,o,a,i;null===l||void 0===l||null===(e=l.value)||void 0===e||e.addEventListener("touchstart",f),null===l||void 0===l||null===(t=l.value)||void 0===t||t.addEventListener("touchmove",g),null===l||void 0===l||null===(n=l.value)||void 0===n||n.addEventListener("touchend",b),null===l||void 0===l||null===(o=l.value)||void 0===o||o.addEventListener("touchcancel;",y),null===l||void 0===l||null===(a=l.value)||void 0===a||a.addEventListener("wheel",j),null===(i=document)||void 0===i||i.addEventListener("keydown",C)});const C=e=>{e.preventDefault(),27===(null===e||void 0===e?void 0:e.keyCode)&&D()},T=()=>{a.value+=.1},S=()=>{a.value=a.value-.1>s.value?a.value-.1:s.value},D=()=>{o("close")},N=()=>{i.value-=90},U=()=>{i.value+=90},B=()=>{c.value.style.transition="0.5s",r.value<n.imageList.length-1&&r.value++,V()},x=()=>{c.value.style.transition="0.5s",r.value>0&&r.value--,V()},V=()=>{a.value=1,i.value=0};return Object(M["onUnmounted"])(()=>{var e,t,n,o,a,i;null===l||void 0===l||null===(e=l.value)||void 0===e||e.removeEventListener("touchstart",f),null===l||void 0===l||null===(t=l.value)||void 0===t||t.removeEventListener("touchmove",g),null===l||void 0===l||null===(n=l.value)||void 0===n||n.removeEventListener("touchend",b),null===l||void 0===l||null===(o=l.value)||void 0===o||o.removeEventListener("touchcancel;",y),null===l||void 0===l||null===(a=l.value)||void 0===a||a.removeEventListener("wheel",j),null===(i=document)||void 0===i||i.removeEventListener("keydown",C)}),(t,n)=>{var o;return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["image-previewer",[Object(M["unref"])(d)&&"image-previewer-h5"]])},[Object(M["createElementVNode"])("div",{class:"image-wrapper",ref_key:"image",ref:l},[Object(M["createElementVNode"])("ul",{class:"image-list",style:Object(M["normalizeStyle"])({width:100*e.imageList.length+"%",transform:`translateX(-${100*r.value/e.imageList.length}%)`}),ref_key:"ul",ref:c},[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.imageList,(e,t)=>{var n,o,s,r;return Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"image-item",key:t},[Object(M["createElementVNode"])("img",{class:"image-preview",style:Object(M["normalizeStyle"])({transform:`scale(${a.value}) rotate(${i.value}deg)`}),src:-1===(null===e||void 0===e||null===(n=e.payload)||void 0===n||null===(n=n.imageInfoArray[0])||void 0===n?void 0:_()(o=n.url).call(o,"http"))?`${Object(M["unref"])(_e["a"]).urlF.replace("lol","://")}/file/show/${null===e||void 0===e||null===(s=e.payload)||void 0===s||null===(s=s.imageInfoArray[0])||void 0===s?void 0:s.url}`:null===e||void 0===e||null===(r=e.payload)||void 0===r||null===(r=r.imageInfoArray[0])||void 0===r?void 0:r.url,alt:""},null,12,ad)])}),128))],4)],512),Object(M["withDirectives"])(Object(M["createElementVNode"])("i",{class:"icon icon-close",onClick:D},null,512),[[M["vShow"],!Object(M["unref"])(d)]]),Object(M["withDirectives"])(Object(M["createElementVNode"])("div",{class:"image-button image-button-left",onClick:x},n[0]||(n[0]=[Object(M["createElementVNode"])("i",{class:"icon icon-left-arrow"},null,-1)]),512),[[M["vShow"],!Object(M["unref"])(d)&&r.value>0]]),Object(M["withDirectives"])(Object(M["createElementVNode"])("div",{class:"image-button image-button-right",onClick:B},n[1]||(n[1]=[Object(M["createElementVNode"])("i",{class:"icon icon-right-arrow"},null,-1)]),512),[[M["vShow"],!Object(M["unref"])(d)&&r.value<(null===(o=e.imageList)||void 0===o?void 0:o.length)-1]]),Object(M["createElementVNode"])("div",id,[Object(M["createElementVNode"])("i",{class:"icon icon-zoom-in",onClick:T}),Object(M["createElementVNode"])("i",{class:"icon icon-zoom-out",onClick:S}),Object(M["createElementVNode"])("i",{class:"icon icon-refresh-left",onClick:N}),Object(M["createElementVNode"])("i",{class:"icon icon-refresh-right",onClick:U}),Object(M["createElementVNode"])("span",sd,Object(M["toDisplayString"])(r.value+1)+" / "+Object(M["toDisplayString"])(e.imageList.length),1)])],2)}}});n("8f32");const ld=me()(rd,[["__scopeId","data-v-1e64c546"]]);var cd=ld,dd=cd;let ud={Face:Nr,Image:Rr,Video:$r,File:Qr,Evaluate:Dl,Words:hl,Call:Xc};const pd={Forward:al},md={TypingHeader:Rl,ReadReceiptDialog:lc,Replies:Ac,ImagePreviewer:dd,MessageInput:er};function hd(e){let t={};switch(e){case"send":t=ud;break;case"message":t=pd;break;case"other":t=md;break;default:break}return t}const vd=e=>{var t;const n={...ud,...pd,...md};a()(t=s()(n)).call(t,e=>{n[e].TUIServer=Od.server}),br.TUIServer=Od.server,br.components={...br.components,...n},e.component(Od.name,br)},fd=e=>(Od.server=new B(e),e.component(Od.name,Od),Od),gd=e=>{ud={...ud,...e}},bd=e=>{l()(e).call(e,e=>(delete ud[e],e))},Od={name:"TUIChat",component:br,server:B,sendComponents:ud,messageComponents:pd,otherComponents:md,install:vd,plugin:fd,setPluginComponents:gd,removePluginComponents:bd};var yd=Od;class jd extends N{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),Object(c["a"])(this,"storeCallback",void 0),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIConversation",{},u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){var n,o,a;null!==this&&void 0!==this&&null!==(n=this.currentStore)&&void 0!==n&&n.conversationData&&(this.currentStore.conversationData.list=e.conversationList,this.currentStore.userIDList=null===(o=this.currentStore.conversationData.list)||void 0===o?void 0:l()(a=j()(o).call(o,e=>{var t;return null===e||void 0===e||null===(t=e.userProfile)||void 0===t?void 0:t.userID})).call(a,e=>{var t;return null===e||void 0===e||null===(t=e.userProfile)||void 0===t?void 0:t.userID}))}handlePromiseCallback(e){return new g.a((t,n)=>{const o={TUIName:"TUIConversation",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.handleConversationListUpdate,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.NET_STATE_CHANGE,this.handleNetStateChange,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.handleConversationListUpdate),this.TUICore.tim.off(this.TUICore.TIM.EVENT.NET_STATE_CHANGE,this.handleNetStateChange)}handleConversationListUpdate(e){this.listUpdate(e.data.length),this.handleFilterSystem(e.data)}listUpdate(e){this.currentStore.listLength=e}handleNetStateChange(e){var t;this.currentStore.netWork=(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.state)||""}handleFilterSystem(e){console.log(e);const t={allConversationList:e,conversationList:[]},n=j()(e).call(e,e=>{var t;return(null===e||void 0===e?void 0:e.conversationID)===(null===this||void 0===this||null===(t=this.currentStore)||void 0===t?void 0:t.currentConversationID)});return 0===n.length&&this.handleCurrentConversation({}),t.conversationList=j()(e).call(e,e=>e.type!==this.TUICore.TIM.TYPES.CONV_SYSTEM),this.store.allConversationList=t.allConversationList,this.store.conversationList=t.conversationList,t}async setMessageRead(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setMessageRead({conversationID:e});t(n)}catch(o){n(o)}})}async deleteConversation(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.deleteConversation(e);t(n)}catch(o){n(o)}})}async pinConversation(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.pinConversation(e);t(n)}catch(o){n(o)}})}async muteConversation(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setMessageRemindType(e);t(n)}catch(o){n(o)}})}async getConversationProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getConversationProfile(e);t(n)}catch(o){n(o)}})}async getConversationList(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.getConversationList();console.log("imResponse============================"),console.log(t),this.handleFilterSystem(t.data.conversationList),e(await this.getGroupList())}catch(n){t(n)}})}async getGroupList(){return this.handlePromiseCallback(async(e,t)=>{try{var n;const t=await this.TUICore.tim.getGroupList();a()(n=t.data.groupList).call(n,e=>{e["conversationID"]="GROUP"+e["groupID"]}),console.log("imResponseGroup============================"),console.log(t),e(t)}catch(o){t(o)}})}async getUserProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getUserProfile({userIDList:e});t(n)}catch(o){n(o)}})}async bind(e){return this.currentStore=e,await this.getConversationList(),this.currentStore}handleCurrentConversation(e){this.TUICore.getStore().TUIChat.conversation=e||{},null!==e&&void 0!==e&&e.conversationID?(this.currentStore.currentConversationID===(null===e||void 0===e?void 0:e.conversationID)&&(this.currentStore.currentConversationID=""),this.currentStore.currentConversationID&&this.setMessageRead(this.currentStore.currentConversationID),this.currentStore.currentConversationID=null===e||void 0===e?void 0:e.conversationID,this.setMessageRead(e.conversationID)):this.currentStore.currentConversationID=""}}const kd={class:"TUI-conversation",style:{background:"#f2f2f2"}},Id={key:0,class:"network"},wd={class:"TUI-conversation-list",style:{height:"100%",width:"100%",overflow:"hidden"}},Ed={style:{background:"#ffffff",height:"80px","margin-bottom":"8px"}},Cd={style:{height:"35px","line-height":"35px","padding-left":"20px","font-size":"20px","font-weight":"bold",display:"flex","justify-content":"space-between"}},Td={style:{display:"flex"}},Sd=["src"],_d=["src"],Dd={key:0,style:{display:"flex"}},Nd={key:1};function Ud(e,t,n,o,a,i){var s,r,l;const c=Object(M["resolveComponent"])("el-input"),d=Object(M["resolveComponent"])("el-checkbox"),u=Object(M["resolveComponent"])("TUIConversationList");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",kd,[e.isNetwork?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Id,[t[6]||(t[6]=Object(M["createElementVNode"])("i",{class:"icon icon-error"},"!",-1)),Object(M["createElementVNode"])("p",null,""+Object(M["toDisplayString"])(e.$t("TUIConversation.网络异常,请您检查网络设置")),1)])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("main",wd,[Object(M["createElementVNode"])("div",Ed,[Object(M["createElementVNode"])("div",Cd,[Object(M["createTextVNode"])(Object(M["toDisplayString"])(e.title)+" ",1),Object(M["createElementVNode"])("div",Td,[e.playStatus?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:1,onClick:t[1]||(t[1]=(...t)=>e.changePlayStatus&&e.changePlayStatus(...t))},[Object(M["createElementVNode"])("img",{class:"play-or-mute-img",src:e.muteImage,alt:""},null,8,_d)])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,onClick:t[0]||(t[0]=(...t)=>e.changePlayStatus&&e.changePlayStatus(...t))},[Object(M["createElementVNode"])("img",{class:"play-or-mute-img",src:e.playImage,alt:""},null,8,Sd)]))])]),Object(M["createVNode"])(c,{modelValue:e.searchInfo,"onUpdate:modelValue":t[2]||(t[2]=t=>e.searchInfo=t),style:{width:"calc(100% - 40px)","margin-left":"20px"},placeholder:"输入姓名搜索当前咨询用户"},null,8,["modelValue"])]),"expert"===e.hrefParams.isSpecialized?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,style:Object(M["normalizeStyle"])([{height:""+(e.checkedExpert?"50px":"QH"!==(null===(s=e.hrefParams)||void 0===s?void 0:s.vitePlatform)?"73px":"33px")},{padding:"0 10px"}])},["QH"!==(null===(r=e.hrefParams)||void 0===r?void 0:r.vitePlatform)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Dd,[Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["checkedPro",[e.checkedExpert?"":"expert"]]),onClick:t[3]||(t[3]=t=>e.clickExpert(!1))}," 员工咨询 ",2),Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["checkedPro",[e.checkedExpert?"expert":""]]),onClick:t[4]||(t[4]=t=>e.clickExpert(!0)),style:{"margin-left":"10px"}}," 专家咨询 ",2)])):Object(M["createCommentVNode"])("",!0),e.checkedExpert?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Nd,[Object(M["createVNode"])(d,{modelValue:e.tfReply,"onUpdate:modelValue":t[5]||(t[5]=t=>e.tfReply=t)},{default:Object(M["withCtx"])(()=>t[7]||(t[7]=[Object(M["createTextVNode"])("专家待回复")])),_:1,__:[7]},8,["modelValue"])]))],4)):Object(M["createCommentVNode"])("",!0),Object(M["createVNode"])(u,{style:Object(M["normalizeStyle"])({height:"expert"===e.hrefParams.isSpecialized&&"QH"!==(null===(l=e.hrefParams)||void 0===l?void 0:l.vitePlatform)?`calc(100% - ${e.checkedExpert?"148px":"171px"})`:`calc(100% - ${e.checkedExpert?"98px":"131px"})`}),currentID:e.currentConversationID,data:e.conversationData,onHandleItem:e.handleCurrentConversation,isH5:e.env.isH5,displayOnlineStatus:e.displayOnlineStatus,userStatusList:e.userStatusList,checkedExpert:e.checkedExpert,tfReply:e.tfReply,searchInfo:e.searchInfo},null,8,["style","currentID","data","onHandleItem","isH5","displayOnlineStatus","userStatusList","checkedExpert","tfReply","searchInfo"])])])}var Bd=n("82ec"),Md=n.n(Bd);function xd(e,t,n,o,a,i){const s=Object(M["resolveComponent"])("LiteItem");return Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",{class:Object(M["normalizeClass"])(["TUI-conversation-list",[e.isH5?"list-h5":""]]),ref:"list",onMousewheel:t[0]||(t[0]=(...t)=>e.scrollChange&&e.scrollChange(...t)),onScroll:t[1]||(t[1]=(...t)=>e.scrollChange&&e.scrollChange(...t)),style:{padding:"10px 10px 0",width:"calc(100% - 20px)",height:"calc(100% - 100px)",overflow:"auto"}},[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.listData,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:"liteItem"+n},[null!==t&&void 0!==t&&t.children?(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:0},[t.flag===e.checkedExpert&&(e.tfReply&&0==t.children.tfReply&&"1"==t.children.sessionType||!e.tfReply)&&"expert"===e.hrefParams.isSpecialized&&!1===(null===t||void 0===t?void 0:t.isEnd)||"expert"!==e.hrefParams.isSpecialized?(Object(M["openBlock"])(),Object(M["createBlock"])(s,{key:0,isH5:e.isH5,currentID:e.currentID,conversation:t,toggleID:e.toggleID,handleConversation:{avator:e.data.handleItemAvator,name:e.data.handleItemName,showAt:e.data.handleShowAt,showMessage:e.data.handleShowMessage,time:e.data.handleItemTime,userID:e.data.handleItemUserID},displayOnlineStatus:e.displayOnlineStatus,userStatusList:e.userStatusList,onToggle:e.handleToggleListItem,onOpen:e.handleListItem,onHandle:e.handleItem,types:e.types},null,8,["isH5","currentID","conversation","toggleID","handleConversation","displayOnlineStatus","userStatusList","onToggle","onOpen","onHandle","types"])):Object(M["createCommentVNode"])("",!0)],64)):Object(M["createCommentVNode"])("",!0)],64))),128))],34)}var Vd=n("5066"),Ld=n.n(Vd);const Rd={key:0,src:Ld.a,alt:"",style:{position:"absolute",top:"0",left:"0"}},Pd={style:{width:"60px",display:"flex","align-items":"center","justify-content":"center"}},Ad={style:{"font-size":"16px","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},Gd={style:{width:"100px"}},Hd={style:{"text-align":"center",transform:"scale(0.8)","margin-top":"10px"}},zd={key:0,class:"num_n"},Fd={style:{width:"60px",display:"flex","align-items":"center","justify-content":"center"}},$d={style:{"font-size":"16px","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},Yd={style:{width:"100px"}},Kd={style:{"text-align":"center",transform:"scale(0.8)","margin-top":"10px"}},Wd={key:0,class:"num_n"};function qd(e,t,n,o,a,i){var s,r,l,c,d,u,p,m,h,v,f,g,b,O,y,j;const k=Object(M["resolveComponent"])("el-image");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{style:{display:"flex",width:"100%","margin-bottom":"10px",padding:"10px 0","border-radius":"10px",cursor:"pointer",position:"relative"},class:Object(M["normalizeClass"])([e.currentID===e.conversation.conversationID?"bg_o":"bg_t"]),onClick:t[0]||(t[0]=Object(M["withModifiers"])(t=>e.handleListItem(e.conversation),["prevent","stop"]))},["1"===(null===(s=e.conversation)||void 0===s?void 0:s.children.sessionType)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",Rd)):Object(M["createCommentVNode"])("",!0),"expert"===e.hrefParams.isSpecialized?(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:1},[Object(M["createElementVNode"])("div",Pd,[Object(M["createVNode"])(k,{style:{width:"36px",height:"36px"},src:e.getSrc(null===(r=e.conversation)||void 0===r?void 0:r.children.toAccountHead)},{error:Object(M["withCtx"])(()=>t[1]||(t[1]=[Object(M["createElementVNode"])("div",null,[Object(M["createElementVNode"])("img",{src:fn.a,alt:"",style:{width:"36px",height:"36px"}})],-1)])),_:1},8,["src"])]),Object(M["createElementVNode"])("div",{style:Object(M["normalizeStyle"])([{width:"calc(100% - 160px)"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#000000"}])},[Object(M["createElementVNode"])("div",Ad,Object(M["toDisplayString"])(e.preG(`${e.conversation.children.toAccountName||""}-${e.conversation.children.memberSex||""}-${e.conversation.children.memberAge||""}`)),1),Object(M["createElementVNode"])("div",{style:Object(M["normalizeStyle"])([{color:"#666666","font-size":"16px","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#666666"}])},Object(M["toDisplayString"])(null===(l=e.handleConversation)||void 0===l?void 0:l.showMessage(e.conversation).substring((null===(c=e.handleConversation)||void 0===c?void 0:_()(d=c.showMessage(e.conversation)).call(d,":"))+1)),5)],4),Object(M["createElementVNode"])("div",Gd,[Object(M["createElementVNode"])("div",{style:Object(M["normalizeStyle"])([{"text-align":"center",color:"#999999"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#999999"}])},Object(M["toDisplayString"])(null===(u=e.handleConversation)||void 0===u?void 0:u.time(null===(p=e.conversation)||void 0===p||null===(p=p.lastMessage)||void 0===p?void 0:p.lastTime)),5),Object(M["createElementVNode"])("div",Hd,[e.conversation.unreadCount>0&&"AcceptNotNotify"!==e.conversation.messageRemindType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",zd,Object(M["toDisplayString"])(e.conversation.unreadCount>99?"99+":e.conversation.unreadCount),1)):Object(M["createCommentVNode"])("",!0)])])],64)):(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:2},[Object(M["createElementVNode"])("div",Fd,[Object(M["createVNode"])(k,{style:{width:"36px",height:"36px"},src:e.getSrc(null===(m=e.conversation)||void 0===m||null===(m=m.children)||void 0===m?void 0:m.avatar)},{error:Object(M["withCtx"])(()=>t[2]||(t[2]=[Object(M["createElementVNode"])("div",null,[Object(M["createElementVNode"])("img",{src:fn.a,alt:"",style:{width:"36px",height:"36px"}})],-1)])),_:1},8,["src"])]),Object(M["createElementVNode"])("div",{style:Object(M["normalizeStyle"])([{width:"calc(100% - 160px)"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#000000"}])},[Object(M["createElementVNode"])("div",$d,Object(M["toDisplayString"])(`${(null===(h=e.conversation)||void 0===h||null===(h=h.children)||void 0===h?void 0:h.userName)||""}-${(null===(v=e.conversation)||void 0===v||null===(v=v.children)||void 0===v?void 0:v.sex_dictText)||""}-${(null===(f=e.conversation)||void 0===f||null===(f=f.children)||void 0===f?void 0:f.age)||""}`),1),Object(M["createElementVNode"])("div",{style:Object(M["normalizeStyle"])([{color:"#666666","font-size":"16px","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#666666"}])},Object(M["toDisplayString"])(null===(g=e.handleConversation)||void 0===g?void 0:g.showMessage(e.conversation).substring((null===(b=e.handleConversation)||void 0===b?void 0:_()(O=b.showMessage(e.conversation)).call(O,":"))+1)),5)],4),Object(M["createElementVNode"])("div",Yd,[Object(M["createElementVNode"])("div",{style:Object(M["normalizeStyle"])([{"text-align":"center",color:"#999999"},{color:e.currentID===e.conversation.conversationID?"#ffffff":"#999999"}])},Object(M["toDisplayString"])(null===(y=e.handleConversation)||void 0===y?void 0:y.time(null===(j=e.conversation)||void 0===j||null===(j=j.lastMessage)||void 0===j?void 0:j.lastTime)),5),Object(M["createElementVNode"])("div",Kd,[e.conversation.unreadCount>0&&"AcceptNotNotify"!==e.conversation.messageRemindType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Wd,Object(M["toDisplayString"])(e.conversation.unreadCount>99?"99+":e.conversation.unreadCount),1)):Object(M["createCommentVNode"])("",!0)])])],64))],2)}var Zd=n("c1df"),Jd=n.n(Zd);const Qd=Object(M["defineComponent"])({props:{conversation:{type:Object,default:()=>({})},handleConversation:{type:Object,default:()=>({})},currentID:{type:String,default:()=>""},toggleID:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},displayOnlineStatus:{type:Boolean,default:()=>!1},userStatusList:{type:qi.a,default:()=>new qi.a},types:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({conversation:{},currentID:"",currentConversation:{},toggle:!1,currentuserID:"",conversationType:"",loop:0,displayOnlineStatus:!1,userStatusList:new qi.a});function o(e){e&&_()(e).call(e,",")===e.length-1&&(e=e.substring(0,e.length-1));const t=_e["a"].urlF;return e?`${t.replace("lol","://")}/file/show/${e}`:""}_e["a"].hasOwnProperty("sessionId")&&Object(M["nextTick"])(()=>{n.currentID="GROUP"+_e["a"].sessionId});const a=Object(M["ref"])(),i=Object(M["ref"])();Object(wn["onClickOutside"])(i,()=>{!0===n.toggle&&t.emit("toggle","")}),Object(M["watchEffect"])(()=>{n.conversation=e.conversation,n.currentID=e.currentID,console.log(n.currentID),n.toggle=!1,n.displayOnlineStatus=e.displayOnlineStatus,n.userStatusList=e.userStatusList,e.toggleID===e.conversation.conversationID&&(n.toggle=!0)}),Object(M["watch"])(()=>n.toggle,e=>{e&&Object(M["nextTick"])(()=>{var e;const t=Object(wn["useElementBounding"])(a),n=null===i||void 0===i||null===(e=i.value)||void 0===e?void 0:e.offsetParent,o=Object(wn["useElementBounding"])(n);t.top.value-o.top.value-t.height.value-30>0&&(a.value.style.top="auto",a.value.style.bottom="30px")})});const s=e=>Jd()(e).format("HH:mm"),r=e=>{t.emit("open",e),t.emit("toggle","")},l=e=>{var o;null!==e&&void 0!==e&&null!==(o=e.target)&&void 0!==o&&o.oncontextmenu&&(e.target.oncontextmenu=function(){return!1}),t.emit("toggle",n.conversation.conversationID)},c=e=>{t.emit("handle",{name:e,conversation:n.conversation}),t.emit("toggle","")},d=()=>{var t;return!(!n.displayOnlineStatus||(null===(t=n.conversation)||void 0===t?void 0:t.type)!==e.types.CONV_C2C)};function u(e){return e=e.replace(/--/g,"-"),0===_()(e).call(e,"-")&&(e=e.substring(1)),-1!==Se()(e).call(e,"-")&&(e=e.substring(0,Se()(e).call(e,"-"))),e}return{preG:u,...Object(M["toRefs"])(n),handleListItem:r,handleItem:c,dialog:a,content:i,toggleDialog:l,showUserOnlineStatus:d,getTime:s,hrefParams:_e["a"],getSrc:o}}});var Xd=Qd;n("ed40");const eu=me()(Xd,[["render",qd],["__scopeId","data-v-79ffaaa2"]]);var tu=eu;const nu=Object(M["defineComponent"])({props:{data:{type:Object,default:()=>({})},currentID:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},displayOnlineStatus:{type:Boolean,default:()=>!1},userStatusList:{type:qi.a,default:()=>new qi.a},checkedExpert:{type:Boolean,default:()=>!1},tfReply:{type:Boolean,default:()=>!1},searchInfo:{type:String,default:()=>""}},components:{LiteItem:tu},setup(e,t){const n=null===nu||void 0===nu?void 0:nu.TUIServer,o=Object(M["reactive"])({data:{},currentID:"",toggleID:"",displayOnlineStatus:!1,userStatusList:new qi.a,types:n.TUICore.TIM.TYPES,listData:[]});Object(M["watchEffect"])(()=>{var t,n,a;(o.data=e.data,console.log(e.data),o.listData=j()(t=e.data.list).call(t,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.toAccountName)&&-1!==_()(o=t.children.toAccountName).call(o,e.searchInfo)||!e.searchInfo}),"expert"===_e["a"].isSpecialized)?o.listData=j()(n=e.data.list).call(n,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.toAccountName)&&-1!==_()(o=t.children.toAccountName).call(o,e.searchInfo)||!e.searchInfo}):o.listData=j()(a=e.data.list).call(a,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.userName)&&-1!==_()(o=t.children.userName).call(o,e.searchInfo)||!e.searchInfo});o.currentID=e.currentID,o.displayOnlineStatus=e.displayOnlineStatus,o.userStatusList=e.userStatusList}),Object(M["watch"])(()=>e.userStatusList,()=>{o.userStatusList=e.userStatusList},{deep:!0}),Object(M["watch"])(()=>e.searchInfo,e=>{if("expert"===_e["a"].isSpecialized){let t=JSON.parse(v()(o.data.list));o.listData=j()(t).call(t,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.toAccountName)&&-1!==_()(o=t.children.toAccountName).call(o,e)||!e})}else{let t=JSON.parse(v()(o.data.list));o.listData=j()(t).call(t,t=>{var n,o;return(null===(n=t.children)||void 0===n?void 0:n.userName)&&-1!==_()(o=t.children.userName).call(o,e)||!e})}});const a=e=>{var n;$i["a"].commit("setConsultInfo",{consultType:e.type,consultStatus:null===e||void 0===e||null===(n=e.children)||void 0===n?void 0:n.contentStatus});const o=e.children;"expert"===_e["a"].isSpecialized?$i["a"].commit("setTitleName",i(`${(null===o||void 0===o?void 0:o.toAccountName)||""}-${(null===o||void 0===o?void 0:o.memberSex)||""}-${(null===o||void 0===o?void 0:o.memberAge)||""}-${(null===o||void 0===o?void 0:o.orgCode)||""}`)):$i["a"].commit("setTitleName",i(`${(null===o||void 0===o?void 0:o.userName)||""}-${(null===o||void 0===o?void 0:o.sex_dictText)||""}-${(null===o||void 0===o?void 0:o.age)||""}-${(null===o||void 0===o?void 0:o.depart)||""}`));const a=(null===o||void 0===o?void 0:o.doctorInfo)||{};$i["a"].commit("setDoctorName",null!==o&&void 0!==o&&o.doctorInfo?i(`${(null===a||void 0===a?void 0:a.doctorName)||""}-${(null===a||void 0===a?void 0:a.doctorTitle_dictText)||""}-${(null===a||void 0===a?void 0:a.departmentName)||""}-${(null===a||void 0===a?void 0:a.resourceName)||""}`):""),t.emit("handleItem",e)};function i(e){return e=e.replace(/--/g,"-"),0===_()(e).call(e,"-")&&(e=e.substring(1)),"-"===e.substring(e.length-1)&&(e=e.substring(0,e.length-1)),e}const s=e=>{const{name:t,conversation:n}=e;switch(an.getInstance().reportEvent({name:"conversationOptions",ext1:"conversationOptions"}),t){case"delete":r(n);break;case"ispinned":l(t,n);break;case"dispinned":l(t,n);break;case"mute":c(t,n);break;case"notMute":c(t,n);break}},r=e=>{n.deleteConversation(e.conversationID).then(e=>{an.getInstance().reportEvent({name:"conversationOptions",ext1:"conversationDelete"});const{conversationID:t}=e.data,{conversation:o}=n.TUICore.getStore().TUIChat;o.conversationID===t&&(n.TUICore.getStore().TUIChat.conversation={conversationID:""})})},l=(e,t)=>{const o={conversationID:t.conversationID,isPinned:!0};"dispinned"===e&&(o.isPinned=!1),console.log("dispinned",o),n.pinConversation(o)},c=(e,t)=>{const o={messageRemindType:n.TUICore.TIM.TYPES.MSG_REMIND_ACPT_NOT_NOTE};t.type===n.TUICore.TIM.TYPES.CONV_C2C?o.userIDList=[t.userProfile.userID]:t.type===n.TUICore.TIM.TYPES.CONV_GROUP&&(o.groupID=t.groupProfile.groupID),"notMute"===e&&(o.messageRemindType=n.TUICore.TIM.TYPES.MSG_REMIND_ACPT_AND_NOTE),n.muteConversation(o)},d=e=>{o.toggleID=e},u=()=>{o.toggleID&&(o.toggleID="")};return{...Object(M["toRefs"])(o),handleListItem:a,handleItem:s,handleToggleListItem:d,scrollChange:u,hrefParams:_e["a"]}}});var ou=nu;n("4853");const au=me()(ou,[["render",xd],["__scopeId","data-v-06ab06e3"]]);var iu=au,su=iu,ru=n("d35b"),lu=n.n(ru);const cu=["id"],du={class:"left"},uu=["src"],pu={key:1,class:"num"},mu={key:2,class:"num-notify"},hu={class:"content"},vu={class:"content-header"},fu={class:"name"},gu={class:"middle-box"},bu={key:0,class:"middle-box-at"},Ou={class:"content-footer"},yu={class:"time"},ju={key:0,class:"mute-icon",src:lu.a},ku={key:0,class:"dialog dialog-item",ref:"dialog"};function Iu(e,t,n,o,a,i){var s,r,l,c,d,u,p;const m=Object(M["resolveDirective"])("TUILongPress");return Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{ref:"content",class:Object(M["normalizeClass"])(["TUI-conversation-content",[e.currentID===e.conversation.conversationID&&"selected",e.conversation.isPinned&&"pinned",e.isH5?"list-item-h5":""]]),id:e.conversation.conversationID},[Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:"TUI-conversation-item",onClick:t[0]||(t[0]=Object(M["withModifiers"])(t=>e.handleListItem(e.conversation),["prevent","stop"])),onContextmenu:t[1]||(t[1]=Object(M["withModifiers"])((...t)=>e.toggleDialog&&e.toggleDialog(...t),["prevent","right"]))},[Object(M["createElementVNode"])("aside",du,[Object(M["createElementVNode"])("img",{class:"avatar",src:null===(s=e.handleConversation)||void 0===s?void 0:s.avator(e.conversation)},null,8,uu),e.showUserOnlineStatus()?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["online-status",1===(null===(r=e.userStatusList)||void 0===r||null===(r=r.get(null===(l=e.conversation)||void 0===l||null===(l=l.userProfile)||void 0===l?void 0:l.userID))||void 0===r?void 0:r.statusType)?"online-status-online":"online-status-offline"])},null,2)):Object(M["createCommentVNode"])("",!0),e.conversation.unreadCount>0&&"AcceptNotNotify"!==e.conversation.messageRemindType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",pu,Object(M["toDisplayString"])(e.conversation.unreadCount>99?"99+":e.conversation.unreadCount),1)):Object(M["createCommentVNode"])("",!0),e.conversation.unreadCount>0&&"AcceptNotNotify"===e.conversation.messageRemindType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",mu)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("div",hu,[Object(M["createElementVNode"])("div",vu,[Object(M["createElementVNode"])("label",null,[Object(M["createElementVNode"])("p",fu,Object(M["toDisplayString"])(null===(c=e.handleConversation)||void 0===c?void 0:c.name(e.conversation)),1)]),Object(M["createElementVNode"])("div",gu,["GROUP"===e.conversation.type&&e.conversation.groupAtInfoList.length>0?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",bu,Object(M["toDisplayString"])(null===(d=e.handleConversation)||void 0===d?void 0:d.showAt(e.conversation)),1)):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("p",null,Object(M["toDisplayString"])(null===(u=e.handleConversation)||void 0===u?void 0:u.showMessage(e.conversation)),1)])]),Object(M["createElementVNode"])("div",Ou,[Object(M["createElementVNode"])("span",yu,Object(M["toDisplayString"])(null===(p=e.handleConversation)||void 0===p?void 0:p.time(e.conversation.lastMessage.lastTime)),1),"AcceptNotNotify"===e.conversation.messageRemindType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",ju)):Object(M["createCommentVNode"])("",!0),t[7]||(t[7]=Object(M["createElementVNode"])("i",null,null,-1))])])],32)),[[m,e.toggleDialog,void 0,{self:!0}]]),e.toggle?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",ku,[Object(M["createElementVNode"])("p",{class:"conversation-options",onClick:t[2]||(t[2]=Object(M["withModifiers"])(t=>e.handleItem("delete"),["stop"]))},Object(M["toDisplayString"])(e.$t("TUIConversation.删除会话")),1),e.conversation.isPinned?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",{key:0,class:"conversation-options",onClick:t[3]||(t[3]=Object(M["withModifiers"])(t=>e.handleItem("ispinned"),["stop"]))},Object(M["toDisplayString"])(e.$t("TUIConversation.置顶会话")),1)),e.conversation.isPinned?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",{key:1,class:"conversation-options",onClick:t[4]||(t[4]=Object(M["withModifiers"])(t=>e.handleItem("dispinned"),["stop"]))},Object(M["toDisplayString"])(e.$t("TUIConversation.取消置顶")),1)):Object(M["createCommentVNode"])("",!0),""===e.conversation.messageRemindType||"AcceptAndNotify"===e.conversation.messageRemindType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",{key:2,class:"conversation-options",onClick:t[5]||(t[5]=Object(M["withModifiers"])(t=>e.handleItem("mute"),["stop"]))},Object(M["toDisplayString"])(e.$t("TUIConversation.消息免打扰")),1)):Object(M["createCommentVNode"])("",!0),"AcceptNotNotify"===e.conversation.messageRemindType?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",{key:3,class:"conversation-options",onClick:t[6]||(t[6]=Object(M["withModifiers"])(t=>e.handleItem("notMute"),["stop"]))},Object(M["toDisplayString"])(e.$t("TUIConversation.取消免打扰")),1)):Object(M["createCommentVNode"])("",!0)],512)):Object(M["createCommentVNode"])("",!0)],10,cu)}const wu=Object(M["defineComponent"])({props:{conversation:{type:Object,default:()=>({})},handleConversation:{type:Object,default:()=>({})},currentID:{type:String,default:()=>""},toggleID:{type:String,default:()=>""},isH5:{type:Boolean,default:()=>!1},displayOnlineStatus:{type:Boolean,default:()=>!1},userStatusList:{type:qi.a,default:()=>new qi.a},types:{type:Object,default:()=>({})}},setup(e,t){const n=Object(M["reactive"])({conversation:{},currentID:"",currentConversation:{},toggle:!1,currentuserID:"",conversationType:"",loop:0,displayOnlineStatus:!1,userStatusList:new qi.a});_e["a"].hasOwnProperty("sessionId")&&Object(M["nextTick"])(()=>{n.currentID="GROUP"+_e["a"].sessionId});const o=Object(M["ref"])(),a=Object(M["ref"])();Object(wn["onClickOutside"])(a,()=>{!0===n.toggle&&t.emit("toggle","")}),Object(M["watchEffect"])(()=>{n.conversation=e.conversation,n.currentID=e.currentID,n.toggle=!1,n.displayOnlineStatus=e.displayOnlineStatus,n.userStatusList=e.userStatusList,e.toggleID===e.conversation.conversationID&&(n.toggle=!0)}),Object(M["watch"])(()=>n.toggle,e=>{e&&Object(M["nextTick"])(()=>{var e;const t=Object(wn["useElementBounding"])(o),n=null===a||void 0===a||null===(e=a.value)||void 0===e?void 0:e.offsetParent,i=Object(wn["useElementBounding"])(n);t.top.value-i.top.value-t.height.value-30>0&&(o.value.style.top="auto",o.value.style.bottom="30px")})});const i=e=>{t.emit("open",e),t.emit("toggle","")},s=e=>{var o;null!==e&&void 0!==e&&null!==(o=e.target)&&void 0!==o&&o.oncontextmenu&&(e.target.oncontextmenu=function(){return!1}),t.emit("toggle",n.conversation.conversationID)},r=e=>{t.emit("handle",{name:e,conversation:n.conversation}),t.emit("toggle","")},l=()=>{var t;return!(!n.displayOnlineStatus||(null===(t=n.conversation)||void 0===t?void 0:t.type)!==e.types.CONV_C2C)};return{...Object(M["toRefs"])(n),handleListItem:i,handleItem:r,dialog:o,content:a,toggleDialog:s,showUserOnlineStatus:l}}});var Eu=wu;n("77d5");const Cu=me()(Eu,[["render",Iu],["__scopeId","data-v-102ec99c"]]);var Tu=Cu,Su=Tu,_u=n("409e"),Du=n.n(_u),Nu=n("14ed"),Uu=n.n(Nu);const Bu=Object(M["defineComponent"])({name:"TUIConversation",components:{LiteItem:Su,TUIConversationList:su},props:{displayOnlineStatus:{type:Boolean,default:!1}},setup(e,t){const n=null===Bu||void 0===Bu?void 0:Bu.TUIServer,o=Object(M["reactive"])({currentConversationID:"",conversationData:{list:[],expertListDataO:[],expertListDataT:[],listData:[],handleItemAvator:e=>Object(U["f"])(e),handleItemName:e=>Object(U["m"])(e),handleShowAt:e=>Object(U["d"])(e),handleShowMessage:e=>Object(U["p"])(e),handleItemTime:e=>e&&e>0?Object(En["a"])(1e3*e):""},listLength:0,initLength:0,userIDList:[],netWork:"",env:n.TUICore.TUIEnv,displayOnlineStatus:!1,userStatusList:new qi.a,title:"expert"!==_e["a"].isSpecialized?"正在应急":"正在咨询",searchInfo:"",initListData:[],checkedExpert:!1,tfReply:!1,playStatus:!0});function i(){console.log("body"),s(!0),o.playStatus=!1,document.body.removeEventListener("click",i)}function s(e){const t=new Audio("13203.wav");t.muted=e,t.play()}async function r(){"expert"===_e["a"].isSpecialized?await m():await d()}u()(n).call(n,o),Object(M["watch"])(()=>o.listLength,async e=>{e!==o.initLength&&("expert"===_e["a"].isSpecialized?await m():await d()),o.initLength=e},{immediate:!0}),su.TUIServer=n,n.TUICore.tim.on(n.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,r),document.body.addEventListener("click",i),n.TUICore.tim.on(n.TUICore.TIM.EVENT.MESSAGE_RECEIVED,()=>{window.parent.postMessage(v()({code:"newMessage"}),"*"),s(o.playStatus)}),Object(M["watch"])(()=>o.currentConversationID,e=>{t.emit("current",e),_e["a"].hasOwnProperty("sessionId")&&null!==_e["a"]&&void 0!==_e["a"]&&_e["a"].sessionId&&Object(M["nextTick"])(()=>{for(const e of o.conversationData.list)if(e["conversationID"]===e["type"]+_e["a"].sessionId)return c(e)})},{deep:!0}),Object(M["watch"])(()=>e.displayOnlineStatus,async(e,t)=>{e!==t&&(o.displayOnlineStatus=e,n.TUICore.TUIServer.TUIContact.handleUserStatus(o.displayOnlineStatus,[...o.userIDList]))},{immediate:!0}),Object(M["watch"])(()=>[...o.userIDList],async(e,t)=>{Object(En["d"])(e,t)||n.TUICore.TUIServer.TUIContact.handleUserStatus(o.displayOnlineStatus,[...o.userIDList])},{deep:!0});const l=Object(M["computed"])(()=>{const e=o.netWork===n.TUICore.TIM.TYPES.NET_STATE_DISCONNECTED,t=o.netWork===n.TUICore.TIM.TYPES.NET_STATE_CONNECTING;return e||t}),c=e=>{n.handleCurrentConversation(e)};async function d(){var e;let t=[];a()(e=o.conversationData.list).call(e,e=>{t.push(null===e||void 0===e?void 0:e.conversationID.replace("GROUP","").toString())}),await pr("/health-emergency/api/emergency/order/listSession",{sessions:t,type:"false"===_e["a"].isSpecialized?"0":"1"}).then(e=>{200===e.code?o.conversationData.listData=e.result:t.length>0&&Object(hr["a"])({message:e.message,type:"warning"})}).catch(e=>{console.log(e)}),p()}function p(){var e,t;o.conversationData.list=Md()(e=o.conversationData.list).call(e,(e,t)=>{var n,o;return new Date(1e3*(null===(n=t.lastMessage)||void 0===n?void 0:n.lastTime)).getTime()-new Date(1e3*(null===(o=e.lastMessage)||void 0===o?void 0:o.lastTime)).getTime()}),o.conversationData.list.length>0&&a()(t=o.conversationData.list).call(t,e=>{var t;o.conversationData.listData.length>0&&a()(t=o.conversationData.listData).call(t,t=>{e.conversationID.replace("C2C","").replace("GROUP","")===t.sessionId&&(e["children"]=t)})})}async function m(){var e;let t=[];a()(e=o.conversationData.list).call(e,e=>{var n;-1!==(null===e||void 0===e?void 0:_()(n=e.conversationID).call(n,"GROUP"))&&t.push(null===e||void 0===e?void 0:e.conversationID.replace("GROUP",""))}),await pr("/health-consultation/consultation/conSession/companySessionList",{imIds:t}).then(e=>{200===e.code&&(o.conversationData.expertListDataO=e.result)}).catch(e=>{console.log(e)}),await pr("/health-consultation/consultation/conSession/professorSessionList",{imIds:t}).then(e=>{200===e.code&&(o.conversationData.expertListDataT=e.result)}).catch(e=>{console.log(e)}),h()}function h(){var e;o.conversationData.list.length>0&&a()(e=o.conversationData.list).call(e,e=>{var t,n;o.conversationData.expertListDataO.length>0&&a()(t=o.conversationData.expertListDataO).call(t,t=>{t.imId?e.conversationID.replace("C2C","").replace("GROUP","")===t.imId&&(e["isEnd"]=!1,e["children"]=t,e["flag"]=!1):e.conversationID.replace("C2C","").replace("GROUP","")===t.fromAccount&&(e["isEnd"]=!1,e["children"]=t,e["flag"]=!1)}),o.conversationData.expertListDataT.length>0&&a()(n=o.conversationData.expertListDataT).call(n,t=>{t.imId?e.conversationID.replace("C2C","").replace("GROUP","")===t.imId&&(e["isEnd"]=!1,e["children"]=t,e["flag"]=!0):e.conversationID.replace("C2C","").replace("GROUP","")===t.fromAccount&&(e["isEnd"]=!1,e["children"]=t,e["flag"]=!0)})})}_e["a"].hasOwnProperty("sessionId")&&null!==_e["a"]&&void 0!==_e["a"]&&_e["a"].sessionId&&Object(M["nextTick"])(()=>{for(const e of o.conversationData.list)if(e["conversationID"]===e["type"]+_e["a"].sessionId)return c(e)}),_e["a"].hasOwnProperty("checkedExpert")&&null!==_e["a"]&&void 0!==_e["a"]&&_e["a"].checkedExpert&&Object(M["nextTick"])(()=>{o.checkedExpert="0"===(null===_e["a"]||void 0===_e["a"]?void 0:_e["a"].checkedExpert)}),tr["a"].on("endConsult",e=>{var t;o.conversationData.list.length>0&&a()(t=o.conversationData.list).call(t,t=>{if(e===t["conversationID"])return t["isEnd"]=!0,void(t["conversationID"]="")})});const f=e=>{e!==o.checkedExpert&&(o.checkedExpert=e,t.emit("checkedExpert",o.checkedExpert))},g=()=>{t.emit("changeReply",o.tfReply)};function b(){console.log("change"),s(!0),o.playStatus=!o.playStatus}return{...Object(M["toRefs"])(o),handleCurrentConversation:c,isNetwork:l,clickExpert:f,changeReply:g,hrefParams:_e["a"],playImage:Du.a,muteImage:Uu.a,changePlayStatus:b}}});var Mu=Bu;n("2857"),n("dce0");const xu=me()(Mu,[["render",Ud],["__scopeId","data-v-c6fe208e"]]);var Vu=xu;const Lu=e=>{Vu.TUIServer=Pu.server,e.component(Pu.name,Vu)},Ru=e=>(Pu.server=new jd(e),e.component(Pu.name,Pu),Pu),Pu={name:"TUIConversation",component:Vu,server:jd,install:Lu,plugin:Ru};var Au=Pu;const Gu={profile:{}};class Hu extends N{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIProfile",Gu,u()(t=this.updateStore).call(t,this)),this.getMyProfile()}destroyed(){this.unbindTIMEvent()}updateStore(e,t){this.currentStore.profile=JSON.parse(v()(e.profile))}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.PROFILE_UPDATED,this.handleProfileUpdated,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.PROFILE_UPDATED,this.handleProfileUpdated)}handleProfileUpdated(e){var t;l()(t=e.data).call(t,e=>(e.userID===this.store.profile.userID&&(this.store.profile={},this.store.profile=e),e))}handlePromiseCallback(e){return new g.a((t,n)=>{const o={TUIName:"TUIProfile",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}async getMyProfile(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.getMyProfile();this.store.profile=t.data,this.currentStore.profile=JSON.parse(v()(this.store.profile)),e(t)}catch(n){t(n)}})}async getUserProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getUserProfile({userIDList:e});t(n)}catch(o){n(o)}})}async updateMyProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.updateMyProfile(e);this.store.profile=n.data,t(n)}catch(o){n(o)}})}async bind(e){return this.currentStore=e,this.getMyProfile(),this.currentStore}setEdit(e){return this.currentStore.isEdit=e,this.currentStore.isEdit}}const zu={class:"profile-header"},Fu={class:"profile-avatar"},$u=["src"],Yu={class:"profile-main"},Ku={class:"profile-main-item"},Wu={class:"profile-main-name"},qu={key:0,class:"gender"},Zu={class:"profile-main-item"},Ju={class:"profile-main-label"},Qu={key:0,class:"profile-main-item"},Xu={class:"profile-main-label"},ep={key:0,class:"profile-main"},tp={class:"profile-main-item"},np={class:"profile-main-label"},op={class:"profile-main-item"},ap={class:"profile-main-label"},ip={key:1,class:"icon icon-right"};function sp(e,t,n,o,a,i){const s=Object(M["resolveComponent"])("TUIProfileEdit");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["TUI-profile",[e.env.isH5?"TUI-profile-h5":""]])},[e.isEdit?(Object(M["openBlock"])(),Object(M["createBlock"])(s,{key:1,userInfo:e.profile,isH5:e.env.isH5,onSubmit:e.submit,onCancel:e.cancel},null,8,["userInfo","isH5","onSubmit","onCancel"])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:"profile",onClick:t[0]||(t[0]=(...t)=>e.toggleEdit&&e.toggleEdit(...t))},[Object(M["createElementVNode"])("header",zu,[Object(M["createElementVNode"])("aside",Fu,[Object(M["createElementVNode"])("img",{class:"avatar",src:e.profile.avatar?e.profile.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,$u)]),Object(M["createElementVNode"])("ul",Yu,[Object(M["createElementVNode"])("li",Ku,[Object(M["createElementVNode"])("h1",Wu,Object(M["toDisplayString"])(e.profile.nick||"-"),1),e.env.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",qu,Object(M["toDisplayString"])(e.profile.gender?e.$t("TUIProfile."+e.genderLabel[e.profile.gender]):""),1))]),Object(M["createElementVNode"])("li",Zu,[Object(M["createElementVNode"])("label",Ju,Object(M["toDisplayString"])(e.$t("TUIProfile.用户ID"))+":",1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.profile.userID),1)]),e.env.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",Qu,[Object(M["createElementVNode"])("label",Xu,Object(M["toDisplayString"])(e.$t("TUIProfile.个性签名"))+":",1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.profile.selfSignature||e.$t("TUIProfile.暂未设置")),1)])):Object(M["createCommentVNode"])("",!0)])]),e.env.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",ep,[Object(M["createElementVNode"])("li",tp,[Object(M["createElementVNode"])("label",np,Object(M["toDisplayString"])(e.$t("TUIProfile.个性签名")),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.profile.selfSignature||e.$t("TUIProfile.暂未设置")),1)]),Object(M["createElementVNode"])("li",op,[Object(M["createElementVNode"])("label",ap,Object(M["toDisplayString"])(e.$t("TUIProfile.出生年月")),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.profile.birthday?e.profile.birthday:e.$t("TUIProfile.暂未设置")),1)])])),e.env.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",ip)):Object(M["createCommentVNode"])("",!0)]))],2)}const rp={class:"edit-header"},lp={class:"edit-header-title"},cp={class:"edit-list"},dp={class:"edit-list-item space-top"},up={key:0},pp=["src"],mp={key:1,class:"avatar-list"},hp=["onClick"],vp=["src"],fp={key:0,class:"icon icon-right"},gp={class:"edit-list-item space-top"},bp={key:0},Op={key:0,class:"icon icon-right"},yp={class:"edit-list-item"},jp={class:"edit-list-item-content"},kp={class:"edit-list-item space-top"},Ip={key:0},wp={key:0,class:"icon icon-right"},Ep={class:"edit-list-item"},Cp={key:0},Tp={key:1,class:"gender-list"},Sp=["onClick"],_p={class:"name"},Dp={key:0,class:"icon icon-right"},Np={class:"edit-list-item"},Up={key:0},Bp={key:0,class:"icon icon-right"},Mp={key:0,class:"edit-footer"},xp={class:"mask-main"},Vp={class:"edit-h5-header"},Lp={class:"edit-h5-main"},Rp={key:0,class:"list"},Pp=["onClick"],Ap=["src"],Gp={key:1,class:"input"},Hp=["placeholder"],zp=["type","placeholder"],Fp={key:2},$p={class:"edit-h5-footer"},Yp=["disabled"];function Kp(e,t,n,o,a,i){const s=Object(M["resolveComponent"])("Datepicker");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["edit",[e.isH5?"edit-h5":""]])},[Object(M["createElementVNode"])("header",rp,[e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-back",onClick:t[0]||(t[0]=(...t)=>e.cancel&&e.cancel(...t))})):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("h1",lp,Object(M["toDisplayString"])(e.$t("TUIProfile.资料设置")),1)]),Object(M["createElementVNode"])("ul",cp,[Object(M["createElementVNode"])("li",dp,[Object(M["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[1]||(t[1]=t=>e.setProfile("avatar"))},[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIProfile.头像")),1),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",up,[Object(M["createElementVNode"])("img",{src:e.profile.avatar?e.profile.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,pp)])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",mp,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.avatarList,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"avatar-list-item",key:n,onClick:n=>e.chooseAvatar(t)},[Object(M["createElementVNode"])("img",{class:Object(M["normalizeClass"])([e.profile.avatar===t.avatar&&"selected"]),src:t.avatar},null,10,vp)],8,hp))),128))]))]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",fp)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("li",gp,[Object(M["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[3]||(t[3]=t=>e.setProfile("nick"))},[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIProfile.昵称")),1),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",bp,Object(M["toDisplayString"])(e.profile.nick),1)):Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:1,type:"text","onUpdate:modelValue":t[2]||(t[2]=t=>e.profile.nick=t)},null,512)),[[M["vModelText"],e.profile.nick]])]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",Op)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("li",yp,[Object(M["createElementVNode"])("main",jp,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIProfile.账号")),1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.profile.userID),1)])]),Object(M["createElementVNode"])("li",kp,[Object(M["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[5]||(t[5]=t=>e.setProfile("selfSignature"))},[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIProfile.个性签名")),1),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Ip,Object(M["toDisplayString"])(e.profile.selfSignature),1)):Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:1,type:"text","onUpdate:modelValue":t[4]||(t[4]=t=>e.profile.selfSignature=t)},null,512)),[[M["vModelText"],e.profile.selfSignature]])]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",wp)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("li",Ep,[Object(M["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[6]||(t[6]=t=>e.setProfile("gender"))},[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIProfile.性别")),1),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Cp,Object(M["toDisplayString"])(e.profile.gender?e.$t("TUIProfile."+e.genderLabel[e.profile.gender]):""),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",Tp,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.type,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"gender-list-item",key:n,onClick:n=>e.showChooseGender(t)},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["gender",[e.profile.gender===t.type&&"gender-selected"]])},null,2),Object(M["createElementVNode"])("p",_p,Object(M["toDisplayString"])(e.$t("TUIProfile."+t.label)),1)],8,Sp))),128))]))]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",Dp)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("li",Np,[Object(M["createElementVNode"])("main",{class:"edit-list-item-content",onClick:t[7]||(t[7]=t=>e.setProfile("birthday"))},[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIProfile.出生年月")),1),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Up,Object(M["toDisplayString"])(e.profile.birthday),1)):(Object(M["openBlock"])(),Object(M["createBlock"])(s,{key:1,placeholder:e.$t("TUIProfile.请选择出生日期"),enableTimePicker:!1,format:e.format,previewFormat:e.format,modelValue:e.birthday,"onUpdate:modelValue":e.showBirthday},null,8,["placeholder","format","previewFormat","modelValue","onUpdate:modelValue"]))]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",Bp)):Object(M["createCommentVNode"])("",!0)])]),e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("footer",Mp,[Object(M["createElementVNode"])("button",{class:"btn-default",onClick:t[8]||(t[8]=(...t)=>e.cancel&&e.cancel(...t))},Object(M["toDisplayString"])(e.$t("TUIProfile.取消")),1),Object(M["createElementVNode"])("button",{class:"btn-submit",onClick:t[9]||(t[9]=(...t)=>e.submit&&e.submit(...t))},Object(M["toDisplayString"])(e.$t("TUIProfile.保存")),1)])),e.setName&&e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:1,class:"mask",onClick:t[14]||(t[14]=Object(M["withModifiers"])((...t)=>e.closeMask&&e.closeMask(...t),["self"]))},[Object(M["createElementVNode"])("div",xp,[Object(M["createElementVNode"])("header",Vp,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.$t("TUIProfile."+e.editConfig.title)),1),Object(M["createElementVNode"])("span",{class:"close",onClick:t[10]||(t[10]=(...t)=>e.closeMask&&e.closeMask(...t))},Object(M["toDisplayString"])(e.$t("关闭")),1)]),Object(M["createElementVNode"])("main",Lp,["select"===e.editConfig.type?(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",Rp,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.editConfig.list,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:"list-item",key:n,onClick:n=>e.choose(t)},[null!==t&&void 0!==t&&t.avatar?(Object(M["openBlock"])(),Object(M["createElementBlock"])("img",{key:0,class:Object(M["normalizeClass"])([e.editConfig.value===t.avatar&&"selected"]),src:t.avatar},null,10,Ap)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:1,class:Object(M["normalizeClass"])([e.editConfig.value===t.type&&"selected"])},Object(M["toDisplayString"])(e.$t("TUIProfile."+t.label)),3))],8,Pp))),128))])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Gp,["textarea"===e.editConfig.type?Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("textarea",{key:0,placeholder:e.editConfig.placeholder,"onUpdate:modelValue":t[11]||(t[11]=t=>e.editConfig.value=t)},null,8,Hp)),[[M["vModelText"],e.editConfig.value]]):"date"===e.editConfig.type?(Object(M["openBlock"])(),Object(M["createBlock"])(s,{key:1,class:"datePicker",placeholder:e.$t("TUIProfile.请选择出生日期"),enableTimePicker:!1,format:e.format,previewFormat:e.format,modelValue:e.birthday,"onUpdate:modelValue":e.showBirthday},null,8,["placeholder","format","previewFormat","modelValue","onUpdate:modelValue"])):Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:2,type:e.editConfig.type,placeholder:e.$t("TUIProfile."+e.editConfig.placeholder),"onUpdate:modelValue":t[12]||(t[12]=t=>e.editConfig.value=t)},null,8,zp)),[[M["vModelDynamic"],e.editConfig.value]])])),e.editConfig.subText?(Object(M["openBlock"])(),Object(M["createElementBlock"])("sub",Fp,Object(M["toDisplayString"])(e.$t("TUIProfile."+e.editConfig.subText)),1)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("footer",$p,[Object(M["createElementVNode"])("button",{class:"btn btn-submit",disabled:!e.editConfig.value,onClick:t[13]||(t[13]=(...t)=>e.submit&&e.submit(...t))},Object(M["toDisplayString"])(e.$t("确定")),9,Yp)])])])):Object(M["createCommentVNode"])("",!0)],2)}var Wp=n("5141");n("1465");const qp=Object(M["defineComponent"])({props:{userInfo:{type:Object,default:()=>({})},isH5:{type:Boolean,default:()=>!1}},components:{Datepicker:Wp["a"]},setup(e,t){const n=null===qp||void 0===qp?void 0:qp.TUIServer,o=Object(M["reactive"])({profile:{},isEdit:!1,avatarList:[{name:"avatar_01",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_1.png"},{name:"avatar_02",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_2.png"},{name:"avatar_03",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_3.png"},{name:"avatar_04",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_4.png"},{name:"avatar_05",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_5.png"},{name:"avatar_06",avatar:" https://im.sdk.qcloud.com/download/tuikit-resource/avatar/avatar_6.png"}],type:[{label:"男",type:n.TUICore.TIM.TYPES.GENDER_MALE},{label:"女",type:n.TUICore.TIM.TYPES.GENDER_FEMALE}],genderLabel:{[n.TUICore.TIM.TYPES.GENDER_MALE]:"男",[n.TUICore.TIM.TYPES.GENDER_FEMALE]:"女",[n.TUICore.TIM.TYPES.GENDER_UNKNOWN]:"不显示"},setName:"",editConfig:{title:"",list:[],type:"",subText:"",placeholder:"",value:""}}),a=e=>{const t=e.getDate()>9?e.getDate():"0"+e.getDate(),n=e.getMonth()>8?e.getMonth()+1:"0"+(e.getMonth()+1),o=e.getFullYear();return`${o}${n}${t}`};Object(M["watchEffect"])(()=>{o.profile=JSON.parse(v()(e.userInfo))});const i=Object(M["computed"])(()=>{let t=o.profile.birthday;return"birthday"===o.setName&&e.isH5&&(t=o.editConfig.value),s(t)}),s=e=>{const t=""+e;if(8===t.length){const e=oo()(t).call(t,0,4),n=oo()(t).call(t,4,6),o=oo()(t).call(t,-2);return`${e}-${n}-${o}`}return""},r=e=>{o.profile.gender=e.type},l=e=>{o.profile.avatar=e.avatar},c=t=>{e.isH5?o.editConfig.value=t?Number(a(t)):0:o.profile.birthday=t?Number(a(t)):0},d=()=>{e.isH5&&(o.profile[o.setName]=o.editConfig.value,h()),t.emit("submit",o.profile)},u=()=>{t.emit("cancel",o.profile)},p=e=>{switch(o.editConfig.value=""+o.profile[e],o.setName=e,e){case"avatar":o.editConfig.title="选择头像",o.editConfig.list=o.avatarList,o.editConfig.type="select";break;case"nick":o.editConfig.title="设置昵称",o.editConfig.subText="仅限中文、字母、数字和下划线,2-20个字",o.editConfig.placeholder="请输入昵称",o.editConfig.type="text";break;case"gender":o.editConfig.title="性别选择",o.editConfig.list=o.type,o.editConfig.type="select";break;case"selfSignature":o.editConfig.title="个性签名",o.editConfig.type="textarea",o.editConfig.placeholder="请输入内容";break;case"birthday":o.editConfig.title="出生年月",o.editConfig.type="date",o.editConfig.placeholder="请选择出生日期";break;default:break}},m=e=>{o.editConfig.value=(null===e||void 0===e?void 0:e.avatar)||(null===e||void 0===e?void 0:e.type)},h=()=>{o.setName="",o.editConfig={title:"",list:[],type:"",subText:"",placeholder:"",value:""}};return{...Object(M["toRefs"])(o),showChooseGender:r,chooseAvatar:l,showBirthday:c,birthday:i,submit:d,cancel:u,setProfile:p,choose:m,closeMask:h,format:a}}});var Zp=qp;n("d4db");const Jp=me()(Zp,[["render",Kp],["__scopeId","data-v-25fbecd0"]]);var Qp=Jp,Xp=Qp;const em=Object(M["defineComponent"])({name:"TUIProfile",components:{TUIProfileEdit:Xp},setup(e,t){var n;const o=null===em||void 0===em?void 0:em.TUIServer,a=Object(M["reactive"])({profile:{},isEdit:!1,genderLabel:{[o.TUICore.TIM.TYPES.GENDER_MALE]:"男",[o.TUICore.TIM.TYPES.GENDER_FEMALE]:"女",[o.TUICore.TIM.TYPES.GENDER_UNKNOWN]:"不显示"},env:o.TUICore.TUIEnv});Xp.TUIServer=o,u()(o).call(o,a);const i=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&sn["c"]&&Object(sn["c"])()||{},s=async e=>{const t={nick:e.nick,avatar:e.avatar,gender:e.gender||o.TUICore.TIM.TYPES.GENDER_UNKNOWN,selfSignature:e.selfSignature,birthday:e.birthday};var n;o.TUICore.getStore().TUIProfile.profile.nick!==e.nick&&((null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&(null===i||void 0===i?void 0:i.commit)&&(null===i||void 0===i||i.commit("handleTask",2)));try{await o.updateMyProfile(t),an.getInstance().reportEvent({name:"changeProfile",ext1:"changeProfile"})}catch(s){console.log(s)}a.env.isH5||r()},r=()=>{a.env.isH5?a.isEdit=!1:l()},l=()=>{t.emit("changeStatus")},c=()=>{a.env.isH5&&(a.isEdit=!0)};return{...Object(M["toRefs"])(a),submit:s,cancel:r,changeStatus:l,toggleEdit:c}}});var tm=em;n("9a2f");const nm=me()(tm,[["render",sp],["__scopeId","data-v-bc4a483e"]]);var om=nm;const am=e=>{om.TUIServer=sm.server,e.component(sm.name,om)},im=e=>(sm.server=new Hu(e),e.component(sm.name,sm),sm),sm={name:"TUIProfile",component:om,server:Hu,install:am,plugin:im};var rm=sm;const lm={};class cm extends N{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),Object(c["a"])(this,"storeCallback",void 0),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIGroup",lm,u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){this.currentStore.groupList=e.groupList,this.currentStore.searchGroup=e.searchGroup}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_ATTRIBUTES_UPDATED,this.handleGroupAttributesUpdated,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_ATTRIBUTES_UPDATED,this.handleGroupAttributesUpdated)}handleGroupListUpdated(e){this.store.groupList=e.data}handleGroupAttributesUpdated(e){const{groupID:t,groupAttributes:n}=e.data;console.log(t,n)}handlePromiseCallback(e){return new g.a((t,n)=>{const o={TUIName:"TUIGroup",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}async getGroupList(e){return this.handlePromiseCallback(async(t,n)=>{try{let n={};n=e?await this.TUICore.tim.getGroupList(e):await this.TUICore.tim.getGroupList(),this.store.groupList=n.data.groupList,t(n)}catch(o){n(o)}})}getGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupProfile(e);this.store.groupList=n.data.groupList,t(n)}catch(o){n(o)}})}createGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.createGroup(e);t(n)}catch(o){n(o)}})}dismissGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.dismissGroup(e);this.store.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}updateGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.updateGroupProfile(e);this.store.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}joinGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.joinGroup(e);t(n)}catch(o){n(o)}})}quitGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.quitGroup(e);t(n)}catch(o){n(o)}})}searchGroupByID(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.searchGroupByID(e);this.store.searchGroup=n.data.group,t(n)}catch(o){n(o)}})}getGroupOnlineMemberCount(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupOnlineMemberCount(e);t(n)}catch(o){n(o)}})}changeGroupOwner(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.changeGroupOwner(e);t(n)}catch(o){n(o)}})}handleGroupApplication(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.handleGroupApplication(e);t(n)}catch(o){n(o)}})}initGroupAttributes(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.initGroupAttributes(e);t(n)}catch(o){n(o)}})}setGroupAttributes(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setGroupAttributes(e);t(n)}catch(o){n(o)}})}deleteGroupAttributes(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.deleteGroupAttributes(e);t(n)}catch(o){n(o)}})}getGroupAttributes(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupAttributes(e);t(n)}catch(o){n(o)}})}getGroupMemberList(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupMemberList(e);t(n)}catch(o){n(o)}})}addGroupMember(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.addGroupMember(e);t(n)}catch(o){n(o)}})}deleteGroupMember(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.deleteGroupMember(e);t(n)}catch(o){n(o)}})}setGroupMemberMuteTime(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setGroupMemberMuteTime(e);t(n)}catch(o){n(o)}})}setGroupMemberRole(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setGroupMemberRole(e);t(n)}catch(o){n(o)}})}setGroupMemberNameCard(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.setGroupMemberNameCard(e);t(n)}catch(o){n(o)}})}getGroupMemberProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupMemberProfile(e);t(n)}catch(o){n(o)}})}async bind(e){return this.currentStore=e,await this.getGroupList(),this.currentStore}}const dm={class:"TUI-group"};function um(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",dm,"TUIGroup")}const pm=Object(M["defineComponent"])({name:"TUIGroup",components:{},setup(e){const t=pm.TUIServer,n=Object(M["reactive"])({groupList:[],searchGroup:[],searchID:"",currentGroup:null});return u()(t).call(t,n),{...Object(M["toRefs"])(n)}}});var mm=pm;n("b23d");const hm=me()(mm,[["render",um],["__scopeId","data-v-f2d329c8"]]);var vm=hm;const fm=e=>{vm.TUIServer=bm.server,e.component(bm.name,vm)},gm=e=>(bm.server=new cm(e),e.component(bm.name,bm),bm),bm={name:"TUIGroup",component:vm,server:cm,install:fm,plugin:gm};var Om=bm;const ym={};class jm extends N{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),Object(c["a"])(this,"storeCallback",void 0),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUIContact",ym,u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){this.currentStore.groupList=e.groupList,this.currentStore.searchGroup=e.searchGroup,this.currentStore.systemConversation=e.systemConversation,this.currentStore.systemMessageList=e.systemMessageList}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.GROUP_ATTRIBUTES_UPDATED,this.handleGroupAttributesUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.handleConversationListUpdate,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.FRIEND_LIST_UPDATED,this.handleFriendListUpdated,this),this.TUICore.tim.on(this.TUICore.TIM.EVENT.USER_STATUS_UPDATED,this.handleUserStatusUpdated,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_LIST_UPDATED,this.handleGroupListUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.GROUP_ATTRIBUTES_UPDATED,this.handleGroupAttributesUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.CONVERSATION_LIST_UPDATED,this.handleConversationListUpdate),this.TUICore.tim.off(this.TUICore.TIM.EVENT.FRIEND_LIST_UPDATED,this.handleFriendListUpdated),this.TUICore.tim.off(this.TUICore.TIM.EVENT.USER_STATUS_UPDATED,this.handleUserStatusUpdated)}handleGroupListUpdated(e){this.store.groupList=e.data}handleGroupAttributesUpdated(e){const{groupID:t,groupAttributes:n}=e.data}handleConversationListUpdate(e){this.handleFilterSystem(e.data)}handleFriendListUpdated(e){var t;this.currentStore.friendList=e.data,this.currentStore.userIDList=l()(t=this.currentStore.friendList).call(t,e=>e.userID)}handleUserStatusUpdated(e){const t=e.data;a()(t).call(t,e=>{var t,n;const{userID:o,statusType:a,customStatus:i}=e;null===(t=this.currentStore)||void 0===t||null===(t=t.userStatusList)||void 0===t||t.set(o,{statusType:a,customStatus:i}),null===(n=this.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||null===(n=n.TUIConversation)||void 0===n||null===(n=n.currentStore)||void 0===n||null===(n=n.userStatusList)||void 0===n||n.set(o,{statusType:a,customStatus:i})})}handlePromiseCallback(e){return new g.a((t,n)=>{const o={TUIName:"TUIContact",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}handleFilterSystem(e){const t={allConversationList:e,systemConversationList:[]};t.systemConversationList=j()(e).call(e,e=>e.type===this.TUICore.TIM.TYPES.CONV_SYSTEM),this.store.allConversationList=t.allConversationList,this.store.systemConversationList=t.systemConversationList;const[n]=t.systemConversationList;return this.store.systemConversation=n,t}async getConversationList(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.getConversationList();this.handleFilterSystem(t.data.conversationList),e(t)}catch(n){t(n)}})}async getSystemMessageList(){const e={conversationID:this.store.systemConversation.conversationID,count:15};return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getMessageList(e);this.store.systemMessageList=n.data.messageList,t(n)}catch(o){n(o)}})}async setMessageRead(){return this.handlePromiseCallback(async(e,t)=>{try{const t=await this.TUICore.tim.setMessageRead({conversationID:this.store.systemConversation.conversationID});e(t)}catch(n){t(n)}})}async getGroupList(e){return this.handlePromiseCallback(async(t,n)=>{try{let n={};n=e?await this.TUICore.tim.getGroupList(e):await this.TUICore.tim.getGroupList(),this.store.groupList=n.data.groupList,t(n)}catch(o){n(o)}})}getGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getGroupProfile(e);this.store.groupList=n.data.groupList,t(n)}catch(o){n(o)}})}dismissGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.dismissGroup(e);this.store.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}updateGroupProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.updateGroupProfile(e);this.store.groupProfile=n.data.group,t(n)}catch(o){n(o)}})}joinGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.joinGroup(e);t(n)}catch(o){n(o)}})}quitGroup(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.quitGroup(e);t(n)}catch(o){n(o)}})}searchGroupByID(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.searchGroupByID(e);this.store.searchGroup=n.data.group,t(n)}catch(o){this.store.searchGroup={},n(o)}})}handleGroupApplication(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.handleGroupApplication(e);t(n)}catch(o){n(o)}})}async getFriendList(){return this.handlePromiseCallback(async(e,t)=>{try{var n;const t=await this.TUICore.tim.getFriendList();this.currentStore.friendList=t.data,this.currentStore.userIDList=l()(n=this.currentStore.friendList).call(n,e=>e.userID)||[],e(t)}catch(o){t(o)}})}async getUserStatus(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;if(!e.length)return;const n=await this.TUICore.tim.getUserStatus({userIDList:e});null===n||void 0===n||null===(o=n.data)||void 0===o||null===(o=o.successUserList)||void 0===o||a()(o).call(o,e=>{var t,n;e&&null!==e&&void 0!==e&&e.userID&&(null===(t=this.currentStore)||void 0===t||null===(t=t.userStatusList)||void 0===t||t.set(null===e||void 0===e?void 0:e.userID,{statusType:null===e||void 0===e?void 0:e.statusType,customStatus:null===e||void 0===e?void 0:e.customStatus}),null===(n=this.TUICore)||void 0===n||null===(n=n.TUIServer)||void 0===n||null===(n=n.TUIConversation)||void 0===n||null===(n=n.currentStore)||void 0===n||null===(n=n.userStatusList)||void 0===n||n.set(null===e||void 0===e?void 0:e.userID,{statusType:null===e||void 0===e?void 0:e.statusType,customStatus:null===e||void 0===e?void 0:e.customStatus}))}),t(n)}catch(i){n(i)}})}async subscribeUserStatus(e){return this.handlePromiseCallback(async(t,n)=>{try{if(!e.length)return;const n=await this.TUICore.tim.subscribeUserStatus({userIDList:e});t(n)}catch(o){n(o)}})}async unsubscribeUserStatus(e){return this.handlePromiseCallback(async(t,n)=>{try{var o;if(e&&!e.length)return;const n=await this.TUICore.tim.unsubscribeUserStatus({userIDList:e});null===(o=this.currentStore)||void 0===o||null===(o=o.userStatusList)||void 0===o||o.clear(),t(n)}catch(a){n(a)}})}async handleUserStatus(e,t){return this.handlePromiseCallback(async(n,o)=>{try{O()(async()=>{e?(await this.subscribeUserStatus(t),await this.getUserStatus(t)):await this.unsubscribeUserStatus(t)},1e3)}catch(a){o(a)}})}async bind(e){return this.currentStore=e,await this.getGroupList(),await this.getConversationList(),await this.getFriendList(),this.currentStore}}const km={class:"TUI-contact-left"},Im={class:"TUI-contact-left-header"},wm={class:"search"},Em={key:1,class:"search-box"},Cm={class:"input-box"},Tm=["placeholder"],Sm={key:0,class:"TUI-contact-column"},_m={class:"TUI-contact-column-item"},Dm={key:0,class:"num"},Nm={key:0,class:"TUI-contact-list"},Um={class:"TUI-contact-list-item selected not-aside"},Bm={key:0,class:"num"},Mm={class:"TUI-contact-column-item"},xm={class:"TUI-contact-list"},Vm=["onClick"],Lm={class:"left"},Rm=["src"],Pm={class:"content"},Am={class:"name"},Gm={class:"ID"},Hm={class:"type"},zm={class:"TUI-contact-column-item"},Fm={class:"TUI-contact-list"},$m=["onClick"],Ym={class:"left"},Km=["src"],Wm={class:"content"},qm={class:"name"},Zm={key:1,class:"TUI-contact-list"},Jm={class:"left"},Qm=["src"],Xm={class:"content"},eh={class:"name"},th={class:"ID"},nh={class:"type"},oh={class:"TUI-contact-main"},ah={key:0,class:"TUI-contact-main-h5-title"},ih={key:1,class:"TUI-contact-main-info"},sh={class:"TUI-contact-main-info-header"},rh={class:"list"},lh=["src"],ch={key:0,class:"TUI-contact-main-info-main"},dh=["disabled"],uh={class:"TUI-contact-main-info-footer"},ph={key:0},mh={key:1},hh={key:2,class:"TUI-contact-main-info"},vh={class:"TUI-contact-main-info-header"},fh={class:"list"},gh=["src"],bh={class:"TUI-contact-main-info-footer"},Oh={key:3,class:"TUI-contact-system"},yh={key:0,class:"TUI-contact-system-header"};function jh(e,t,n,o,a,i){const s=Object(M["resolveComponent"])("MessageSystem");return Object(M["openBlock"])(),Object(M["createBlock"])(M["Transition"],{onBeforeLeave:e.init},{default:Object(M["withCtx"])(()=>{var n,o,a,i,r,l,c,d,u,p,m,h,v,f,g,b,O,y,j,k,I;return[Object(M["createElementVNode"])("div",{class:Object(M["normalizeClass"])(["TUI-contact",[e.env.isH5?"TUI-contact-H5":""]])},[Object(M["createElementVNode"])("aside",km,[Object(M["createElementVNode"])("header",Im,[Object(M["createElementVNode"])("div",wm,[e.isSearch?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Em,[Object(M["createElementVNode"])("div",Cm,[Object(M["withDirectives"])(Object(M["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=t=>e.searchID=t),placeholder:e.$t("TUIContact.输入群ID,按回车搜索"),onKeyup:t[2]||(t[2]=Object(M["withKeys"])((...t)=>e.handleSearchGroup&&e.handleSearchGroup(...t),["enter"])),enterkeyhint:"search"},null,40,Tm),[[M["vModelText"],e.searchID]]),e.searchID?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",{key:0,class:"icon icon-cancel",onClick:t[3]||(t[3]=t=>e.searchID="")})):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("span",{class:"search-cancel",onClick:t[4]||(t[4]=(...t)=>e.toggleSearch&&e.toggleSearch(...t))},Object(M["toDisplayString"])(e.$t("取消")),1)])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:"search-box",onClick:t[0]||(t[0]=(...t)=>e.toggleSearch&&e.toggleSearch(...t))},[t[17]||(t[17]=Object(M["createElementVNode"])("i",{class:"plus"},null,-1)),Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.$t("TUIContact.添加群聊")),1)]))])]),e.isSearch?(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",Zm,[null!==(n=e.searchGroup)&&void 0!==n&&n.groupID?(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:0,class:Object(M["normalizeClass"])(["TUI-contact-list-item",[(null===(o=e.currentGroup)||void 0===o?void 0:o.groupID)===(null===(a=e.searchGroup)||void 0===a?void 0:a.groupID)&&"selected"]]),onClick:t[8]||(t[8]=t=>e.handleListItem(e.searchGroup))},[Object(M["createElementVNode"])("aside",Jm,[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===(i=e.searchGroup)||void 0===i?void 0:i.avatar)||"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg",onerror:"this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,Qm)]),Object(M["createElementVNode"])("main",Xm,[Object(M["createElementVNode"])("ul",null,[Object(M["createElementVNode"])("li",eh,Object(M["toDisplayString"])(null===(r=e.searchGroup)||void 0===r?void 0:r.name),1),Object(M["createElementVNode"])("li",th,[t[19]||(t[19]=Object(M["createElementVNode"])("label",null,"ID",-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(l=e.searchGroup)||void 0===l?void 0:l.groupID),1)])]),Object(M["createElementVNode"])("span",nh,Object(M["toDisplayString"])(null===(c=e.searchGroup)||void 0===c?void 0:c.type),1)])],2)):Object(M["createCommentVNode"])("",!0)])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",Sm,[Object(M["createElementVNode"])("li",_m,[Object(M["createElementVNode"])("header",{onClick:t[5]||(t[5]=t=>e.select("system"))},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon icon-right",["system"===e.columnName&&"icon-down"]])},null,2),Object(M["createElementVNode"])("main",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.群聊通知")),1),e.systemConversation&&e.systemConversation.unreadCount>0?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Dm,Object(M["toDisplayString"])(e.systemConversation.unreadCount),1)):Object(M["createCommentVNode"])("",!0)])]),"system"===e.columnName?(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",Nm,[Object(M["createElementVNode"])("li",Um,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.系统通知")),1),e.systemConversation&&e.systemConversation.unreadCount>0?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Bm,Object(M["toDisplayString"])(e.systemConversation.unreadCount),1)):Object(M["createCommentVNode"])("",!0)])])):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("li",Mm,[Object(M["createElementVNode"])("header",{onClick:t[6]||(t[6]=t=>e.select("group"))},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon icon-right",["group"===e.columnName&&"icon-down"]])},null,2),Object(M["createElementVNode"])("main",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.我的群聊")),1)])]),Object(M["withDirectives"])(Object(M["createElementVNode"])("ul",xm,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.groupList,(n,o)=>{var a;return Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:Object(M["normalizeClass"])(["TUI-contact-list-item",[(null===(a=e.currentGroup)||void 0===a?void 0:a.groupID)===(null===n||void 0===n?void 0:n.groupID)&&"selected"]]),key:o,onClick:t=>e.handleListItem(n)},[Object(M["createElementVNode"])("aside",Lm,[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===n||void 0===n?void 0:n.avatar)||"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg",onerror:"this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,Rm)]),Object(M["createElementVNode"])("main",Pm,[Object(M["createElementVNode"])("ul",null,[Object(M["createElementVNode"])("li",Am,Object(M["toDisplayString"])(null===n||void 0===n?void 0:n.name),1),Object(M["createElementVNode"])("li",Gm,[t[18]||(t[18]=Object(M["createElementVNode"])("label",null,"ID",-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===n||void 0===n?void 0:n.groupID),1)])]),Object(M["createElementVNode"])("span",Hm,Object(M["toDisplayString"])(null===n||void 0===n?void 0:n.type),1)])],10,Vm)}),128))],512),[[M["vShow"],"group"===e.columnName]])]),Object(M["createElementVNode"])("li",zm,[Object(M["createElementVNode"])("header",{onClick:t[7]||(t[7]=t=>e.select("friend"))},[Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon icon-right",["friend"===e.columnName&&"icon-down"]])},null,2),Object(M["createElementVNode"])("main",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.我的好友")),1)])]),Object(M["withDirectives"])(Object(M["createElementVNode"])("ul",Fm,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.friendList,(t,n)=>{var o,a,i,s;return Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:Object(M["normalizeClass"])(["TUI-contact-list-item",[(null===(o=e.currentFriend)||void 0===o?void 0:o.userID)===(null===t||void 0===t?void 0:t.userID)&&"selected"]]),key:n,onClick:n=>e.handleListItem(t)},[Object(M["createElementVNode"])("aside",Ym,[Object(M["createElementVNode"])("img",{class:"avatar",src:(null===t||void 0===t||null===(a=t.profile)||void 0===a?void 0:a.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,Km),e.displayOnlineStatus?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{key:0,class:Object(M["normalizeClass"])(["online-status",1===(null===(i=e.userStatusList.get(null===t||void 0===t?void 0:t.userID))||void 0===i?void 0:i.statusType)?"online-status-online":"online-status-offline"])},null,2)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("main",Wm,[Object(M["createElementVNode"])("ul",null,[Object(M["createElementVNode"])("li",qm,Object(M["toDisplayString"])((null===t||void 0===t||null===(s=t.profile)||void 0===s?void 0:s.nick)||(null===t||void 0===t?void 0:t.userID)),1)])])],10,$m)}),128))],512),[[M["vShow"],"friend"===e.columnName]])])]))]),Object(M["withDirectives"])(Object(M["createElementVNode"])("main",oh,[e.env.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",ah,[Object(M["createElementVNode"])("i",{class:"icon icon-back",onClick:t[9]||(t[9]=(...t)=>e.back&&e.back(...t))}),Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])((null===(d=e.currentGroup)||void 0===d?void 0:d.name)||e.$t("TUIContact.系统通知")),1)])):Object(M["createCommentVNode"])("",!0),null!==(u=e.currentGroup)&&void 0!==u&&u.groupID?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",ih,[Object(M["createElementVNode"])("header",sh,[Object(M["createElementVNode"])("ul",rh,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(null===(p=e.currentGroup)||void 0===p?void 0:p.name),1),Object(M["createElementVNode"])("li",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.群ID"))+"",1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(m=e.currentGroup)||void 0===m?void 0:m.groupID),1)]),Object(M["createElementVNode"])("li",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.群类型"))+"",1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(h=e.currentGroup)||void 0===h?void 0:h.type),1)])]),Object(M["createElementVNode"])("img",{class:"avatar",src:(null===(v=e.currentGroup)||void 0===v?void 0:v.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/group_avatar.png",onerror:"this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,lh)]),e.isNeedPermission?(Object(M["openBlock"])(),Object(M["createElementBlock"])("main",ch,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.请填写验证信息")),1),Object(M["withDirectives"])(Object(M["createElementVNode"])("textarea",{"onUpdate:modelValue":t[10]||(t[10]=t=>e.currentGroup.applyMessage=t),disabled:e.currentGroup.apply},null,8,dh),[[M["vModelText"],e.currentGroup.applyMessage]])])):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("footer",uh,[e.currentGroup.apply&&"AVChatRoom"===e.currentGroup.type?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",ph,Object(M["toDisplayString"])(e.$t("TUIContact.已加入")),1)):e.currentGroup.apply?(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",mh,Object(M["toDisplayString"])(e.$t("TUIContact.已申请")),1)):e.isNeedPermission?(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:2,class:"btn btn-default",onClick:t[11]||(t[11]=t=>e.join(e.currentGroup))},Object(M["toDisplayString"])(e.$t("TUIContact.申请加入")),1)):e.currentGroup.selfInfo.userID?e.currentGroup.selfInfo.userID&&"Owner"===e.currentGroup.selfInfo.role&&"Private"!==e.currentGroup.type?(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:4,class:"btn btn-cancel",onClick:t[13]||(t[13]=t=>e.dismiss(e.currentGroup))},Object(M["toDisplayString"])(e.$t("TUIContact.解散群聊")),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:5,class:"btn btn-cancel",onClick:t[14]||(t[14]=t=>e.quit(e.currentGroup))},Object(M["toDisplayString"])(e.$t("TUIContact.退出群聊")),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:3,class:"btn btn-default",onClick:t[12]||(t[12]=t=>e.join(e.currentGroup))},Object(M["toDisplayString"])(e.$t("TUIContact.加入群聊")),1)),e.currentGroup.selfInfo.userID?(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:6,class:"btn btn-default",onClick:t[15]||(t[15]=t=>e.enter(e.currentGroup.groupID,"GROUP"))},Object(M["toDisplayString"])(e.$t("TUIContact.进入群聊")),1)):Object(M["createCommentVNode"])("",!0)])])):null!==(f=e.currentFriend)&&void 0!==f&&f.userID&&"friend"===e.columnName?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",hh,[Object(M["createElementVNode"])("header",vh,[Object(M["createElementVNode"])("ul",fh,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])((null===(g=e.currentFriend)||void 0===g||null===(g=g.profile)||void 0===g?void 0:g.nick)||(null===(b=e.currentFriend)||void 0===b?void 0:b.userID)),1),Object(M["createElementVNode"])("li",null,[t[20]||(t[20]=Object(M["createElementVNode"])("label",null,"ID",-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(O=e.currentFriend)||void 0===O||null===(O=O.profile)||void 0===O?void 0:O.userID),1)]),Object(M["createElementVNode"])("li",null,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUIContact.个性签名"))+"",1),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(null===(y=e.currentFriend)||void 0===y||null===(y=y.profile)||void 0===y?void 0:y.selfSignature),1)])]),Object(M["createElementVNode"])("img",{class:"avatar",src:(null===(j=e.currentFriend)||void 0===j||null===(j=j.profile)||void 0===j?void 0:j.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,gh)]),Object(M["createElementVNode"])("footer",bh,[Object(M["createElementVNode"])("button",{class:"btn btn-default",onClick:t[16]||(t[16]=t=>e.enter(e.currentFriend.userID,"C2C"))},Object(M["toDisplayString"])(e.$t("TUIContact.发送消息")),1)])])):"system"===e.columnName?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Oh,[e.env.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("header",yh,[Object(M["createElementVNode"])("h1",null,Object(M["toDisplayString"])(e.$t("TUIContact.系统通知")),1)])),Object(M["createVNode"])(s,{isH5:e.env.isH5,data:e.systemMessageList,types:e.types,onApplication:e.handleGroupApplication},null,8,["isH5","data","types","onApplication"])])):Object(M["renderSlot"])(e.$slots,"default",{key:4},void 0,!0)],512),[[M["vShow"],!(null===(k=e.currentGroup)||void 0===k||!k.groupID)||!(null===(I=e.currentFriend)||void 0===I||!I.userID)||"system"===e.columnName]])],2)]}),_:3},8,["onBeforeLeave"])}var kh=n("44a4"),Ih=n.n(kh);const wh={class:"list"},Eh={key:0,class:"btn-box"},Ch=["onClick"],Th=["onClick"],Sh={key:2};function _h(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["message-system",[e.isH5?"message-system-h5":""]])},[Object(M["createElementVNode"])("ul",wh,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.messageList,(n,o)=>{var a;return Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{key:o},[n.type===e.types.MSG_GRP_TIP||n.type===e.types.MSG_GRP_SYS_NOTICE?(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:0},[t[0]||(t[0]=Object(M["createElementVNode"])("i",{class:"icon icon-system"},null,-1)),Object(M["createElementVNode"])("span",null,Object(M["toDisplayString"])(e.translateGroupSystemNotice(n)),1),1===(null===n||void 0===n||null===(a=n.payload)||void 0===a?void 0:a.operationType)?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",Eh,[n.isHandle?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:0,class:"btn btn-default",onClick:t=>e.handleApplication("Agree",n)},Object(M["toDisplayString"])(e.$t("TUIContact.接受")),9,Ch)),n.isHandle?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",Sh,Object(M["toDisplayString"])(e.$t("TUIContact.已处理")),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:1,class:"btn btn-cancel",onClick:t=>e.handleApplication("Reject",n)},Object(M["toDisplayString"])(e.$t("TUIContact.拒绝")),9,Th))])):Object(M["createCommentVNode"])("",!0)],64)):Object(M["createCommentVNode"])("",!0)])}),128))])],2)}var Dh=Object(M["defineComponent"])({props:{data:{type:Array,default:()=>[]},types:{type:Object,default:()=>({})},isH5:{type:Boolean,default:!1}},setup(e,t){const n=Object(M["reactive"])({messageList:[],types:{},isHandle:!1});Object(M["watchEffect"])(()=>{n.messageList=e.data,n.types=e.types});const o=(e,n)=>{const o={handleAction:e,message:n};t.emit("application",o),n.isHandle=!0};return{...Object(M["toRefs"])(n),translateGroupSystemNotice:En["e"],handleApplication:o}}});n("10d3");const Nh=me()(Dh,[["render",_h],["__scopeId","data-v-4cbbc4fe"]]);var Uh=Nh;const Bh=Object(M["defineComponent"])({name:"TUIContact",components:{MessageSystem:Uh},props:{displayOnlineStatus:{type:Boolean,default:!1}},setup(e,t){const n=Bh.TUIServer,{t:o}=n.TUICore.config.i18n.useI18n(),a=Object(M["reactive"])({groupList:[],searchGroup:{},searchID:"",currentGroup:null,systemConversation:{unreadCount:0},systemMessageList:[],columnName:"",types:n.TUICore.TIM.TYPES,isSearch:!1,env:n.TUICore.TUIEnv,friendList:[],userIDList:[],currentFriend:{},displayOnlineStatus:!1,onlineStatus:!1,userStatusList:new qi.a});u()(n).call(n,a),Object(M["watch"])(()=>e.displayOnlineStatus,async(e,t)=>{e!==t&&(a.displayOnlineStatus=e,n.handleUserStatus(a.displayOnlineStatus,a.userIDList))},{immediate:!0}),Object(M["watch"])(()=>a.userIDList,(e,t)=>{Object(En["d"])(e,t)||n.handleUserStatus(a.displayOnlineStatus,a.userIDList)});const i=Object(M["computed"])(()=>{const e=a.currentGroup.selfInfo.userID,t=a.currentGroup.joinOption===n.TUICore.TIM.TYPES.JOIN_OPTIONS_NEED_PERMISSION;return!e&&t}),s=async e=>{switch(a.columnName){case"group":a.currentGroup=e;break;case"friend":a.currentFriend=e;break}a.isSearch&&(a.currentGroup=e)},r=async e=>{var t;if(a.currentGroup=null,Ih()(t=a.searchID).call(t))try{var i;await n.searchGroupByID(Ih()(i=a.searchID).call(i))}catch(s){const e=o("TUIContact.该群组不存在");Object(En["b"])(e,a.env)}},l=async e=>{const t={groupID:e.groupID,applyMessage:e.applyMessage||o("TUIContact.加群"),type:null===e||void 0===e?void 0:e.type};await n.joinGroup(t),a.currentGroup.apply=!0},c=async e=>{await n.quitGroup(e.groupID),a.currentGroup=null},d=async(e,t)=>{const o=`${t}${e}`;n.TUICore.TUIServer.TUIConversation.getConversationProfile(o).then(e=>{n.TUICore.TUIServer.TUIConversation.handleCurrentConversation(e.data.conversation),g()})},p=e=>{n.dismissGroup(e.groupID),a.currentGroup=null},m=async e=>{var t;"system"!==a.columnName&&"system"===e&&null!==(t=a.systemConversation)&&void 0!==t&&t.conversationID&&(await n.getSystemMessageList(),await n.setMessageRead()),a.currentGroup={},"group"===a.columnName||"group"!==e||a.env.isH5?a.currentGroup={}:a.currentGroup=a.groupList[0],a.searchID="",a.columnName=a.columnName===e?"":e},h=()=>{a.isSearch=!a.isSearch,a.columnName="",a.searchID="",a.searchGroup={},a.currentGroup={}},v=()=>{a.isSearch=!1,a.columnName="",a.searchID="",a.searchGroup={},a.currentGroup={}},f=e=>{n.handleGroupApplication(e)},g=()=>{a.currentGroup={},a.currentFriend={},a.columnName=""},b=e=>{n.TUICore.getUserStatusList(e)};return{...Object(M["toRefs"])(a),handleListItem:s,handleSearchGroup:r,join:l,quit:c,dismiss:p,isNeedPermission:i,select:m,handleGroupApplication:f,toggleSearch:h,init:v,back:g,enter:d,getUserStatusList:b}}});var Mh=Bh;n("7b94");const xh=me()(Mh,[["render",jh],["__scopeId","data-v-5f069d6a"]]);var Vh=xh;const Lh=e=>{Vh.TUIServer=Ph.server,e.component(Ph.name,Vh)},Rh=e=>(Ph.server=new jm(e),e.component(Ph.name,Ph),Ph),Ph={name:"TUIContact",component:Vh,server:jm,install:Lh,plugin:Rh};var Ah=Ph;class Gh extends N{constructor(e){var t;super(),Object(c["a"])(this,"TUICore",void 0),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"currentStore",{}),Object(c["a"])(this,"storeCallback",void 0),this.TUICore=e,this.bindTIMEvent(),this.store=e.setComponentStore("TUISearch",{},u()(t=this.updateStore).call(t,this))}destroyed(){this.unbindTIMEvent()}updateStore(e,t){var n;null!==this&&void 0!==this&&null!==(n=this.currentStore)&&void 0!==n&&null!==(n=n.conversationData)&&void 0!==n&&n.list&&(this.currentStore.conversationData.list=e.conversationList)}handlePromiseCallback(e){return new g.a((t,n)=>{const o={TUIName:"TUISearch",callback:()=>{e&&e(t,n)}};this.TUICore.setAwaitFunc(o.TUIName,o.callback)})}bindTIMEvent(){this.TUICore.tim.on(this.TUICore.TIM.EVENT.FRIEND_LIST_UPDATED,this.handleFriendListUpdated,this)}unbindTIMEvent(){this.TUICore.tim.off(this.TUICore.TIM.EVENT.FRIEND_LIST_UPDATED,this.handleFriendListUpdated)}handleFriendListUpdated(e){var t,n;this.currentStore.searchUserList=l()(t=e.data).call(t,e=>null===e||void 0===e?void 0:e.profile),this.currentStore.allUserList=l()(n=e.data).call(n,e=>null===e||void 0===e?void 0:e.profile)}async getConversationProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getConversationProfile(e);t(n)}catch(o){n(o)}})}async getUserProfile(e){return this.handlePromiseCallback(async(t,n)=>{try{const n=await this.TUICore.tim.getUserProfile({userIDList:e});t(n)}catch(o){n(o)}})}async getFriendList(){return this.handlePromiseCallback(async(e,t)=>{try{var n,o;const t=await this.TUICore.tim.getFriendList();this.currentStore.searchUserList=l()(n=t.data).call(n,e=>null===e||void 0===e?void 0:e.profile),this.currentStore.allUserList=l()(o=t.data).call(o,e=>null===e||void 0===e?void 0:e.profile),e(t)}catch(a){t(a)}})}async bind(e){return this.currentStore=e,await this.getFriendList(),this.currentStore}}const Hh={key:0},zh={key:0,class:"icon icon-c2c"};function Fh(e,t,n,o,a,i){const s=Object(M["resolveComponent"])("Transfer"),r=Object(M["resolveComponent"])("CreateGroup"),l=Object(M["resolveComponent"])("Dialog");return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["TUI-search",[e.env.isH5?"TUI-search-H5":""]]),ref:"dialog"},[Object(M["createElementVNode"])("header",{onClick:t[2]||(t[2]=(...t)=>e.toggleOptionalShow&&e.toggleOptionalShow(...t))},[t[5]||(t[5]=Object(M["createElementVNode"])("i",{class:"plus"},null,-1)),e.env.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("h1",Hh,Object(M["toDisplayString"])(e.$t("TUISearch.发起会话")),1)):Object(M["createCommentVNode"])("",!0),Object(M["withDirectives"])(Object(M["createElementVNode"])("ul",null,[Object(M["createElementVNode"])("li",null,[e.env.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",zh)):Object(M["createCommentVNode"])("",!0),Object(M["createElementVNode"])("h1",{onClick:t[0]||(t[0]=t=>e.showOpen("isC2C"))},Object(M["toDisplayString"])(e.$t("TUISearch.发起单聊")),1)]),Object(M["createElementVNode"])("li",null,[t[4]||(t[4]=Object(M["createElementVNode"])("i",{class:"icon icon-group"},null,-1)),Object(M["createElementVNode"])("h1",{onClick:t[1]||(t[1]=t=>e.showOpen("isGroup"))},Object(M["toDisplayString"])(e.$t("TUISearch.发起群聊")),1)])],512),[[M["vShow"],e.optionalShow]])]),Object(M["createVNode"])(l,{show:e.open,isH5:e.env.isH5,isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":t[3]||(t[3]=t=>e.open=t)},{default:Object(M["withCtx"])(()=>[1===e.step?(Object(M["openBlock"])(),Object(M["createBlock"])(s,{key:0,isSearch:e.needSearch,title:e.showTitle,list:e.searchUserList,isH5:e.env.isH5,isRadio:"isC2C"===e.createConversationType,onSearch:e.handleSearch,onSubmit:e.submit,onCancel:e.toggleOpen},null,8,["isSearch","title","list","isH5","isRadio","onSearch","onSubmit","onCancel"])):(Object(M["openBlock"])(),Object(M["createBlock"])(r,{key:1,onSubmit:e.create,onCancel:e.toggleOpen,isH5:e.env.isH5},null,8,["onSubmit","onCancel","isH5"]))]),_:1},8,["show","isH5"])],2)}const $h={class:"group-box"},Yh={key:0},Kh={key:1},Wh={key:0,class:"group-list"},qh={class:"group-list-item"},Zh=["src"],Jh={class:"group-list-item"},Qh={class:"content"},Xh={class:"group-list-item"},ev={class:"content"},tv={class:"group-list-introduction"},nv={class:"group-list-item"},ov={key:0,class:"select"},av=["onClick"],iv={class:"select-item-header"},sv={class:"left"},rv=["src"],lv={class:"select-item-label"},cv={key:0,class:"icon icon-selected"},dv={class:"select-item-detail"},uv=["href"],pv={class:"content"},mv={key:0,class:"group-h5-list-item-introduction"},hv={class:"introduction-name"},vv={class:"introduction-detail"},fv=["href"],gv={key:1,class:"group-list group-list-edit"},bv=["placeholder"],Ov={key:1,class:"select"},yv=["onClick"],jv={class:"select-item-header"},kv={class:"left"},Iv=["src"],wv={class:"select-item-label"},Ev={key:0,class:"icon icon-selected"},Cv={class:"select-item-detail"},Tv=["href"],Sv={class:"group-profile-footer"},_v=["disabled"];function Dv(e,t,n,o,a,i){return Object(M["openBlock"])(),Object(M["createElementBlock"])("div",{class:Object(M["normalizeClass"])(["group",[e.isH5?"group-h5":""]])},[Object(M["createElementVNode"])("div",$h,[Object(M["createElementVNode"])("header",null,[e.isEdit?(Object(M["openBlock"])(),Object(M["createElementBlock"])("h1",Kh,Object(M["toDisplayString"])(e.$t("TUISearch."+e.editConfig.title)),1)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("h1",Yh,Object(M["toDisplayString"])(e.$t("TUISearch.发起群聊")),1)),Object(M["createElementVNode"])("i",{class:Object(M["normalizeClass"])(["icon",[e.isH5?"icon-back":"icon-close"]]),onClick:t[0]||(t[0]=(...t)=>e.cancel&&e.cancel(...t))},null,2)]),e.isEdit?(Object(M["openBlock"])(),Object(M["createElementBlock"])("div",gv,["input"===e.editConfig.type?Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:0,type:"text","onUpdate:modelValue":t[6]||(t[6]=t=>e.editConfig.value=t),placeholder:e.$t("TUISearch."+e.editConfig.placeholder)},null,8,bv)),[[M["vModelText"],e.editConfig.value]]):(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",Ov,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.type,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:Object(M["normalizeClass"])(["select-item",[e.editConfig.value===t.type&&"selected"]]),key:n,onClick:n=>e.selectedEdit(t)},[Object(M["createElementVNode"])("main",null,[Object(M["createElementVNode"])("div",jv,[Object(M["createElementVNode"])("aside",kv,[Object(M["createElementVNode"])("img",{class:"icon",src:t.icon},null,8,Iv),Object(M["createElementVNode"])("span",wv,Object(M["toDisplayString"])(t.label),1)]),e.editConfig.value===t.type?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",Ev)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("span",Cv,Object(M["toDisplayString"])(e.$t("TUISearch."+t.detail)),1),Object(M["createElementVNode"])("a",{href:e.Link.product.url,target:"view_window"},Object(M["toDisplayString"])(e.$t("TUISearch."+t.src)),9,Tv)])],10,yv))),128))]))])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",Wh,[Object(M["createElementVNode"])("li",qh,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUISearch.群头像")),1),Object(M["createElementVNode"])("img",{class:"icon",src:e.profile.avatar},null,8,Zh)]),Object(M["createElementVNode"])("ul",null,[Object(M["createElementVNode"])("li",Jh,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUISearch.群名称")),1),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:1,class:"group-h5-list-item-content",onClick:t[2]||(t[2]=t=>e.edit("name"))},[Object(M["createElementVNode"])("p",Qh,Object(M["toDisplayString"])(e.profile.name),1),t[9]||(t[9]=Object(M["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])):Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:0,type:"text","onUpdate:modelValue":t[1]||(t[1]=t=>e.profile.name=t),placeholder:"请输入群名称"},null,512)),[[M["vModelText"],e.profile.name]])]),Object(M["createElementVNode"])("li",Xh,[Object(M["createElementVNode"])("label",null,[Object(M["createTextVNode"])(Object(M["toDisplayString"])(e.$t("TUISearch.群ID")),1),Object(M["createElementVNode"])("text",null,"("+Object(M["toDisplayString"])(e.$t("TUISearch.选填"))+")",1)]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:1,class:"group-h5-list-item-content",onClick:t[4]||(t[4]=t=>e.edit("groupID"))},[Object(M["createElementVNode"])("p",ev,Object(M["toDisplayString"])(e.profile.groupID),1),t[10]||(t[10]=Object(M["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])):Object(M["withDirectives"])((Object(M["openBlock"])(),Object(M["createElementBlock"])("input",{key:0,type:"text","onUpdate:modelValue":t[3]||(t[3]=t=>e.profile.groupID=t)},null,512)),[[M["vModelText"],e.profile.groupID]])]),Object(M["createElementVNode"])("li",tv,[Object(M["createElementVNode"])("div",nv,[Object(M["createElementVNode"])("label",null,Object(M["toDisplayString"])(e.$t("TUISearch.群类型")),1),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("span",{key:1,class:"group-h5-list-item-content",onClick:t[5]||(t[5]=t=>e.edit("type"))},[Object(M["createElementVNode"])("p",pv,Object(M["toDisplayString"])(e.groupTypeDetail.label),1),t[11]||(t[11]=Object(M["createElementVNode"])("i",{class:"icon icon-right"},null,-1))])):(Object(M["openBlock"])(),Object(M["createElementBlock"])("ul",ov,[(Object(M["openBlock"])(!0),Object(M["createElementBlock"])(M["Fragment"],null,Object(M["renderList"])(e.type,(t,n)=>(Object(M["openBlock"])(),Object(M["createElementBlock"])("li",{class:Object(M["normalizeClass"])(["select-item",[e.profile.type===t.type&&"selected"]]),key:n,onClick:n=>e.selected(t)},[Object(M["createElementVNode"])("main",null,[Object(M["createElementVNode"])("div",iv,[Object(M["createElementVNode"])("aside",sv,[Object(M["createElementVNode"])("img",{class:"icon",src:t.icon},null,8,rv),Object(M["createElementVNode"])("span",lv,Object(M["toDisplayString"])(t.label),1)]),e.profile.type===t.type?(Object(M["openBlock"])(),Object(M["createElementBlock"])("i",cv)):Object(M["createCommentVNode"])("",!0)]),Object(M["createElementVNode"])("span",dv,Object(M["toDisplayString"])(e.$t("TUISearch."+t.detail)),1),Object(M["createElementVNode"])("a",{href:e.Link.product.url,target:"view_window"},Object(M["toDisplayString"])(e.$t("TUISearch."+t.src)),9,uv)])],10,av))),128))]))]),e.isH5?(Object(M["openBlock"])(),Object(M["createElementBlock"])("article",mv,[Object(M["createElementVNode"])("label",hv,Object(M["toDisplayString"])(e.groupTypeDetail.label)+"",1),Object(M["createElementVNode"])("span",vv,Object(M["toDisplayString"])(e.$t("TUISearch."+e.groupTypeDetail.detail)),1),Object(M["createElementVNode"])("a",{href:e.Link.product.url,target:"view_window"},Object(M["toDisplayString"])(e.$t("TUISearch."+e.groupTypeDetail.src)),9,fv)])):Object(M["createCommentVNode"])("",!0)])])])),Object(M["createElementVNode"])("footer",Sv,[e.isEdit||e.isH5?Object(M["createCommentVNode"])("",!0):(Object(M["openBlock"])(),Object(M["createElementBlock"])("button",{key:0,class:"btn-default",onClick:t[7]||(t[7]=(...t)=>e.cancel&&e.cancel(...t))},Object(M["toDisplayString"])(e.$t("TUISearch.取消")),1)),Object(M["createElementVNode"])("button",{class:"btn-submit",onClick:t[8]||(t[8]=t=>e.submit(e.profile)),disabled:""===e.profile.name&&!e.isEdit},Object(M["toDisplayString"])(e.$t("TUISearch.创建")),9,_v)])])],2)}const Nv=Object(M["defineComponent"])({name:"group",props:{isH5:{type:Boolean,default:()=>!1}},setup(e,t){const n=Object(M["reactive"])({profile:{groupID:"",name:"",type:"",avatar:"",introduction:"",notification:"",joinOption:""},editConfig:{title:"",value:"",key:"",type:"",placeholder:""},isEdit:!1,type:[{icon:"https://web.sdk.qcloud.com/im/assets/images/Public.svg",label:"陌生人社交群(Public",type:Nv.TUIServer.TUICore.TIM.TYPES.GRP_PUBLIC,detail:"类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Meeting.svg",label:"临时会议群(Meeting",type:Nv.TUIServer.TUICore.TIM.TYPES.GRP_MEETING,detail:"创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Work.svg",label:"好友工作群(Work",type:Nv.TUIServer.TUICore.TIM.TYPES.GRP_WORK,detail:"类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主神奇。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/AVChatroom.svg",label:"直播群(AVChatroom",type:Nv.TUIServer.TUICore.TIM.TYPES.GRP_AVCHATROOM,detail:"创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见",src:"产品文档"}]});n.profile.type=n.type[0].type,n.profile.avatar=n.type[0].icon;const o=Object(M["computed"])(()=>{var e;return j()(e=n.type).call(e,e=>e.type===n.profile.type)[0]}),a=e=>{n.profile.type!==e.type&&(n.profile.type=e.type,n.profile.avatar=e.icon)},i=e=>{if(n.isEdit)return n.profile[n.editConfig.key]=n.editConfig.value,n.isEdit=!n.isEdit;const o={name:e.name,type:e.type,groupID:e.groupID,avatar:e.avatar};t.emit("submit",o)},s=()=>{if(n.isEdit)return n.isEdit=!n.isEdit;t.emit("cancel")},r=e=>{switch(n.isEdit=!n.isEdit,n.editConfig.key=e,n.editConfig.value=n.profile[e],e){case"name":n.editConfig.title="设置群名称",n.editConfig.placeholder="请输入群名称",n.editConfig.type="input";break;case"groupID":n.editConfig.title="设置群ID",n.editConfig.placeholder="请输入群ID",n.editConfig.type="input";break;case"type":n.editConfig.title="选择群类型",n.editConfig.type="select";break}},l=e=>{n.editConfig.value!==e.type&&(n.editConfig.value=e.type)};return{...Object(M["toRefs"])(n),selected:a,submit:i,cancel:s,Link:Ki,edit:r,selectedEdit:l,groupTypeDetail:o}}});var Uv=Nv;n("18c1");const Bv=me()(Uv,[["render",Dv],["__scopeId","data-v-279f8f91"]]);var Mv=Bv,xv=Mv;const Vv=Object(M["defineComponent"])({name:"TUISearch",components:{Transfer:La,Dialog:Ai,CreateGroup:xv},setup(e){var t,n;const o=null===Vv||void 0===Vv?void 0:Vv.TUIServer,{t:a}=o.TUICore.config.i18n.useI18n(),i=Object(M["reactive"])({open:!1,searchUserID:"",selectedList:[],allUserList:[],searchUserList:[],step:1,group:{groupID:"",name:"",type:"",avatar:"",introduction:"",notification:"",joinOption:"",memberList:[{userID:""}]},showTitle:"",createConversationType:"",env:o.TUICore.TUIEnv,optionalShow:!o.TUICore.TUIEnv.isH5,needSearch:!o.TUICore.isOfficial});u()(o).call(o,i);const s=null===o||void 0===o||null===(t=o.TUICore)||void 0===t||null===(t=t.TUIServer)||void 0===t?void 0:t.TUIGroup;xv.TUIServer=o;const r=(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&sn["c"]&&Object(sn["c"])()||{},c=Object(M["ref"])();Object(wn["onClickOutside"])(c,()=>{i.env.isH5&&(i.optionalShow=!1,i.searchUserList=[...i.allUserList])});const d=()=>{i.group={groupID:"",name:"",type:"",avatar:"",introduction:"",notification:"",joinOption:"",memberList:[{userID:""}]}},p=()=>{i.open=!i.open,i.open||(i.searchUserID="",i.step=1,d())},m=e=>{if(i.createConversationType===nn["a"].typeC2C){const{userID:t}=e[0];v(t,"C2C"),p()}else{if(!xv.TUIServer){const e=a("TUISearch.创建群聊,请注册 TUIGroup 模块");Object(En["b"])(e,i.env)}d(),i.group.memberList=l()(e).call(e,e=>({userID:e.userID})),i.step=2}i.searchUserList=[...i.allUserList]},h=async e=>{e.type===o.TUICore.TIM.TYPES.GRP_PUBLIC&&(i.group.joinOption=o.TUICore.TIM.TYPES.JOIN_OPTIONS_NEED_PERMISSION);const t={...i.group,...e};e.type===o.TUICore.TIM.TYPES.GRP_AVCHATROOM&&(delete t.memberList,delete t.joinOption);try{var n;const l=await s.createGroup(t),c=a("TUISearch.创建成功");Object(En["c"])(c,i.env),(null===(n=window)||void 0===n||null===(n=n.TUIKitTUICore)||void 0===n?void 0:n.isOfficial)&&(null===r||void 0===r?void 0:r.commit)&&(null===r||void 0===r||r.commit("handleTask",3)),p(),e.type===o.TUICore.TIM.TYPES.GRP_AVCHATROOM&&s.joinGroup({groupID:l.data.group.groupID,applyMessage:"",type:l.data.group.type}),v(l.data.group.groupID,"GROUP")}catch(l){Object(En["b"])(l,i.env)}},v=(e,t)=>{const n=`${t}${e}`;o.getConversationProfile(n).then(e=>{o.TUICore.TUIServer.TUIConversation.handleCurrentConversation(e.data.conversation),an.getInstance().reportEvent({name:"conversationType",ext1:"C2C"===t?"TypeC2C-success":"TypeGroup-success"})})},f=e=>{switch(i.open=!0,an.getInstance().reportEvent({name:"conversationType",ext1:"createConversation"}),i.searchUserList=[...i.allUserList],e){case"isC2C":return i.createConversationType=nn["a"].typeC2C,i.showTitle=a("TUISearch.发起单聊"),an.getInstance().reportEvent({name:"conversationType",ext1:"createConversation-c2c"}),i.showTitle;case"isGroup":return i.createConversationType=nn["a"].typeGroup,i.showTitle=a("TUISearch.发起群聊"),an.getInstance().reportEvent({name:"conversationType",ext1:"createConversation-group"}),i.showTitle}},g=()=>{i.env.isH5&&(i.optionalShow=!i.optionalShow)},b=async e=>{try{var t;const n=await o.getUserProfile([e]);if(!n.data.length)return Object(En["b"])(a("TUISearch.该用户不存在"),i.env),void(i.searchUserList=[...i.allUserList]);i.searchUserList=n.data;const s=j()(t=i.allUserList).call(t,e=>e.userID===n.data[0].userID);i.allUserList=s.length?i.allUserList:[...i.allUserList,...i.searchUserList]}catch(n){return Object(En["b"])(a("TUISearch.该用户不存在"),i.env),void(i.searchUserList=[...i.allUserList])}};return{...Object(M["toRefs"])(i),toggleOpen:p,handleSearch:b,submit:m,create:h,showOpen:f,toggleOptionalShow:g,dialog:c}}});var Lv=Vv;n("2068");const Rv=me()(Lv,[["render",Fh],["__scopeId","data-v-3733d0d4"]]);var Pv=Rv;const Av=e=>{Pv.TUIServer=Hv.server,e.component(Hv.name,Pv)},Gv=e=>(Hv.server=new Gh(e),e.component(Hv.name,Hv),Hv),Hv={name:"TUISearch",component:Pv,server:Gh,install:Av,plugin:Gv};var zv=Hv;const Fv=[yd,Au,rm,Om,Ah,zv],$v=e=>{a()(Fv).call(Fv,t=>{t.install(e)})},Yv=e=>{a()(Fv).call(Fv,t=>{t.plugin(e)})},Kv={name:"TUIComponents",version:"1.0.0",TUIChat:yd,TUIConversation:Au,TUIProfile:rm,TUIGroup:Om,TUIContact:Ah,TUISearch:zv,install:$v,plugin:Yv};var Wv=Kv,qv=n("3581"),Zv=n.n(qv),Jv=n("de21"),Qv=n.n(Jv);class Xv{static init(e){}install(e){}getInstance(){}login(e){return new g.a((e,t)=>{})}destroyed(){}component(e,t){}use(e,t){}setAwaitFunc(e,t){}setCommonStore(e){}setComponentStore(e,t,n){}getStore(){}storeCommonListener(e,t){}}n("d9e2");var ef=n("c651"),tf=n.n(ef);class nf{setCommonStore(e){}setComponentStore(e,t,n){}storeCommonListener(e,t){}}class of extends nf{constructor(){super(),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"storeListener",void 0),this.storeListener={keys:[],callback:()=>{}},this.store={};const e={};this.store.common=new Proxy(e,{get:(e,t)=>e[t],set:(e,t,n)=>{var o;const a={};return m()(a,e),e[t]=n,e[t]!==a[t]&&_()(o=tf()(this.storeListener)).call(o,t)>=0&&this.storeListener.callback(e[t],a[t]),e[t]}})}setCommonStore(e){var t;return a()(t=s()(e)).call(t,t=>{if(t in this.store.common)return new Error(t+" 在公共数据已存在,请重新设置");this.store.common[t]=e[t]}),this.store}setComponentStore(e,t,n){return e in this.store?new Error(e+" 该数据模块已存在,请重新设置"):this.store[e]=new Proxy(t,{get:(e,t)=>e[t],set:(e,t,o)=>{const a={};return m()(a,e),e[t]=o,e[t]!==a[t]&&n&&n(e,a),e}})}storeCommonListener(e,t){this.storeListener={keys:e,callback:t}}}Object.prototype.toString;const{isArray:af}=Array,sf=e=>"function"===typeof e;class rf extends Xv{constructor(e){super(),Object(c["a"])(this,"isOfficial",!1),Object(c["a"])(this,"isIntl",!1),Object(c["a"])(this,"tim",void 0),Object(c["a"])(this,"TIM",void 0),Object(c["a"])(this,"isSDKReady",!1),Object(c["a"])(this,"store",void 0),Object(c["a"])(this,"TUIEnv",void 0),Object(c["a"])(this,"SDKAppID",void 0),Object(c["a"])(this,"installedPlugins",new ie.a),Object(c["a"])(this,"config",{}),Object(c["a"])(this,"TUIServer",void 0),Object(c["a"])(this,"TUIComponents",new ie.a),Object(c["a"])(this,"loginResolveRejectCache",void 0),this.loginResolveRejectCache=[],this.SDKAppID=e.SDKAppID,this.TUIServer={},this.store=new of,this.TIM=ao["a"],window.TIM=ao["a"],e.tim?window.TUIKit=e.tim:window.TUIKit=ao["a"].create({SDKAppID:this.SDKAppID}),this.tim=window.TUIKit,this.tim.registerPlugin({"tim-upload-plugin":Zv.a}),this.tim.registerPlugin({"tim-profanity-filter-plugin":Qv.a}),this.bindTIMEvent(),this.TUIEnv=Object(D["b"])(),this.isOfficial=1400187352===this.SDKAppID||1400188366===this.SDKAppID}static init(e){const t=an.getInstance();rf.instance||(rf.instance=new rf(e));const{isH5:n}=Object(D["b"])();return t.reportEvent({name:"SDKAppID",ext1:n?"IMTUIKitH5External":"IMTUIKitWebExternal",ext2:n?"IMTUIKitH5External":"IMTUIKitWebExternal",ext3:e.SDKAppID}),t.reportEvent({name:"time",ext1:"firstRunTime"}),window.TUIKitTUICore=rf.instance,rf.instance.use(D["d"]),rf.instance.use(D["e"]),rf.instance}install(e){var t,n;e.config.globalProperties.$TUIKit=this.getInstance();let o=!0;a()(t=this.installedPlugins).call(t,t=>{e.use(t),"TUIComponents"===t.name&&(o=!1)}),o&&a()(n=this.TUIComponents).call(n,t=>{e.component(t.name,t.component)}),Object(D["a"])(e)}getInstance(){return rf.instance}login(e){return new g.a((t,n)=>{this.tim.login(e).then(()=>{var o,a;return this.loginResolveRejectCache.push({resolve:t,reject:n}),rf.isLogin=!0,window._isTIMCallKit=!0,null===rf||void 0===rf||null===(o=rf.instance)||void 0===o||null===(o=o.TUIServer)||void 0===o||null===(o=o.TUICallKit)||void 0===o||o.init({SDKAppID:this.SDKAppID,userID:e.userID,userSig:e.userSig,tim:this.tim}),null!==rf&&void 0!==rf&&null!==(a=rf.instance)&&void 0!==a&&null!==(a=a.TUIServer)&&void 0!==a&&a.TUICallKit&&an.getInstance().reportEvent({name:"SDKAppID",ext1:"IMTUIKitWebExternal-call",ext2:"IMTUIKitWebExternal-call",ext3:this.SDKAppID}),null}).catch(e=>{n(e)})})}logout(){return new g.a((e,t)=>{this.tim.logout().then(t=>{this.isSDKReady=!1,rf.isLogin=!1,e(t)}).catch(e=>{t(e)})})}bindTIMEvent(){this.tim.on(ao["a"].EVENT.SDK_READY,this.handleSDKReady,this)}unbindTIMEvent(){this.tim.off(ao["a"].EVENT.SDK_READY,this.handleSDKReady)}handleSDKReady(){var e;this.isSDKReady=!0,this.handelAwaitFunc(rf.TUIServerFunMap),a()(e=this.loginResolveRejectCache).call(e,({resolve:e})=>{e({msg:"登录成功,且SDK Ready"})})}handelAwaitFunc(e){const t=s()(this.TUIServer);for(let n=0;n<t.length;n++){const o=(null===e||void 0===e?void 0:e.get(t[n]))||[];o.length>0&&l()(o).call(o,e=>e()),null===e||void 0===e||e.delete(t[n])}return e}destroyed(){this.unbindTIMEvent(),this.isSDKReady=!1}component(e,t){const n=this.getInstance();return this.TUIServer||(this.TUIServer={}),this.TUIServer[e]=t.server,this.TUIComponents.has(t)?console.warn(e+" component has already been applied to target TUICore."):this.TUIComponents.add(t),n}use(e,t){const n=this.getInstance();return this.installedPlugins.has(e)?console.warn("Plugin has already been applied to target TUICore."):e&&sf(null===e||void 0===e?void 0:e.plugin)?(this.installedPlugins.add(e),null===e||void 0===e||e.plugin(n,t)):sf(e)?(this.installedPlugins.add(e),e(n,t)):console.warn('A plugin must either be a function or an object with an "plugin" function.'),n}usePlugin(e){var t;let n={};return a()(t=this.installedPlugins).call(t,t=>{t.name===e&&(n=t)}),n}setAwaitFunc(e,t){if(this.isSDKReady)t();else{rf.TUIServerFunMap||(rf.TUIServerFunMap=new qi.a);const n=rf.TUIServerFunMap.get(e)||[];n.push(t),rf.TUIServerFunMap.set(e,n)}}setCommonStore(e){return this.store.setCommonStore(e)}setComponentStore(e,t,n){return this.store.setComponentStore(e,t,n)}getStore(){return this.store.store}storeCommonListener(e,t){return this.store.storeCommonListener(e,t)}}Object(c["a"])(rf,"instance",void 0),Object(c["a"])(rf,"isLogin",!1),Object(c["a"])(rf,"TUIServerFunMap",void 0);var lf=n("bbb6");lf["b"]},fdc9:function(e,t,n){"use strict";var o=n("1344");const a=Object(o["a"])();t["a"]=a},fe1e:function(e,t,n){"use strict";n("0504")}});