| 12 |
- (function(){var e={1342:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{class:["audio-icon-container",`${"small"==e.size&&"small"}`]},[t("div",{staticClass:"audio-level"},e._l(new Array(5).fill(""),(function(e,n){return t("div",{key:n,staticClass:"audio-level-item",class:["audio-level-item",`${r.showAudioLevel>n&&"active"}`]})})),0),t(r.SvgIcon,{staticClass:"audio-icon",attrs:{"icon-name":r.iconName}})],1)},i=[],o=r(6369),a=r(6316),s=r(6671),l=(0,o.defineComponent)({__name:"AudioIcon",props:{audioVolume:null,isMuted:{type:Boolean},size:null,isDisabled:{type:Boolean}},setup(e){const t=e,r=(0,o.computed)((()=>t.isDisabled?s.Z.MicOffDisabled:t.isMuted?s.Z.MicOff:s.Z.MicOn)),n=(0,o.computed)((()=>t.isMuted||!t.audioVolume?0:4*t.audioVolume/100*5));return{__sfc:!0,props:t,iconName:r,showAudioLevel:n,SvgIcon:a.Z}}}),c=l,u=r(3736),h=(0,u.Z)(c,n,i,!1,null,"5bc7b022",null),d=h.exports},3929:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"audio-setting-tab"},[t("div",{class:["item-setting-container",r.isSampleMode&&"hasDividingLine"]},[t("div",{staticClass:"item-setting"},[t("span",{staticClass:"title"},[e._v(e._s(r.t("Mic")))]),t("div",{staticClass:"flex"},[t(r.DeviceSelect,{class:r.isDetailMode?"detail-select":"",attrs:{"device-type":"microphone"}}),r.isDetailMode?t("div",{staticClass:"button",on:{click:r.handleMicrophoneTest}},[e._v(" "+e._s(r.isTestingMicrophone?r.t("Stop"):r.t("Test"))+" ")]):e._e()],1)]),t("div",{staticClass:"item-setting"},[t("span",{staticClass:"title"},[e._v(e._s(r.t("Output")))]),t("div",{staticClass:"mic-bar-container"},e._l(new Array(r.volumeTotalNum).fill(""),(function(e,n){return t("div",{key:n,class:["mic-bar",""+(r.showVolume&&r.volumeNum>n?"active":"")]})})),0)])]),r.speakerList.length>0?t("div",{class:["item-setting-container",r.isSampleMode&&"hasDividingLine"]},[t("div",{staticClass:"item-setting"},[t("span",{staticClass:"title"},[e._v(e._s(r.t("Speaker")))]),t("div",{staticClass:"flex"},[t(r.DeviceSelect,{class:r.isDetailMode?"detail-select":"",attrs:{"device-type":"speaker",disabled:e.mode===r.SettingMode.DETAIL}}),r.isDetailMode?t("div",{staticClass:"button",on:{click:r.handleSpeakerTest}},[e._v(" "+e._s(r.isTestingSpeaker?r.t("Stop"):r.t("Test"))+" ")]):e._e()],1)])]):e._e()])},i=[],o=r(6369),a=r(8754),s=r(4990),l=r(3927),c=r(7357),u=r(1020),h=(0,o.defineComponent)({__name:"AudioSettingTab",props:{mode:null},setup(e){const t=e,r=t.mode||l.n.SIMPLE,n=(0,o.computed)((()=>r===l.n.SIMPLE)),i=(0,o.computed)((()=>r===l.n.DETAIL)),h=(0,s.A)(),{speakerList:d}=(0,u.Jk)(h),f=(0,o.computed)((()=>i.value?36:28)),p=(0,o.computed)((()=>(h.localStream.audioVolume||0)*f.value/100)),m=(0,o.computed)((()=>n.value||i.value&&v.value)),v=(0,o.ref)(!1);function g(){v.value=!v.value}const _=(0,o.ref)(!1),w=document?.createElement("audio"),{t:b}=(0,c.Q)();function y(){_.value?(w&&(w.pause(),w.currentTime=0),_.value=!1):(_.value=!0,w&&(w.src="https://web.sdk.qcloud.com/trtc/electron/download/resources/media/TestSpeaker.mp3",w.play()))}return(0,o.onBeforeUnmount)((()=>{w&&w.pause()})),{__sfc:!0,props:t,settingMode:r,isSampleMode:n,isDetailMode:i,roomStore:h,speakerList:d,volumeTotalNum:f,volumeNum:p,showVolume:m,isTestingMicrophone:v,handleMicrophoneTest:g,isTestingSpeaker:_,audioPlayer:w,t:b,handleSpeakerTest:y,DeviceSelect:a.Z,SettingMode:l.n}}}),d=h,f=r(3736),p=(0,f.Z)(d,n,i,!1,null,"ce40fa86",null),m=p.exports},9225:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("img",{staticClass:"default-avatar",attrs:{src:e.imgSrc||r.defaultAvatar,onerror:r.showDefaultAvatar}})},i=[],o=r(6369),a=r(7717),s=(0,o.defineComponent)({__name:"Avatar",props:{imgSrc:null},setup(e){function t(e){e.target.src=a}return{__sfc:!0,showDefaultAvatar:t,defaultAvatar:a}}}),l=s,c=r(3736),u=(0,c.Z)(l,n,i,!1,null,null,null),h=u.exports},8754:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("el-select",{staticClass:"select custom-element-class",attrs:{placeholder:"placeholder",disabled:e.disabled,teleported:!1,"popper-append-to-body":!1},on:{change:r.handleChange},model:{value:r.currentDeviceId,callback:function(e){r.currentDeviceId=e},expression:"currentDeviceId"}},e._l(r.deviceList,(function(e){return t("el-option",{key:e.deviceId,attrs:{label:e.deviceName,value:e.deviceId}})})),1)},i=[],o=r(6369),a=r(4990),s=r(1020),l=r(3681),c=(0,o.defineComponent)({__name:"DeviceSelect",props:{deviceType:null,onChange:null,disabled:null},setup(e){const{deviceType:t,onChange:r,disabled:n=!1}=e,i=(0,l.Z)(),c=(0,a.A)(),{cameraList:u,microphoneList:h,speakerList:d,currentCameraId:f,currentMicrophoneId:p,currentSpeakerId:m}=(0,s.Jk)(c),v=(0,o.ref)(w()),g=(0,o.ref)(_());function _(){return"camera"===t?f:"microphone"===t?p:"speaker"===t?m:""}function w(){return"camera"===t?u:"microphone"===t?h:"speaker"===t?d:[]}async function b(e){switch(r&&r(e),t){case"camera":await(i.instance?.setCurrentCameraDevice({deviceId:e})),c.setCurrentCameraId(e);break;case"microphone":await(i.instance?.setCurrentMicDevice({deviceId:e})),c.setCurrentMicrophoneId(e);break;case"speaker":await(i.instance?.setCurrentSpeakerDevice({deviceId:e})),c.setCurrentSpeakerId(e);break;default:break}}return{__sfc:!0,roomEngine:i,roomStore:c,cameraList:u,microphoneList:h,speakerList:d,currentCameraId:f,currentMicrophoneId:p,currentSpeakerId:m,deviceList:v,currentDeviceId:g,getInitDeviceId:_,getDeviceList:w,handleChange:b}}}),u=c,h=r(3736),d=(0,h.Z)(u,n,i,!1,null,"160545a2",null),f=d.exports},9139:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.SvgIcon,{staticClass:"language-icon",attrs:{"icon-name":"lang",size:"large"},on:{click:r.handleChange}})},i=[],o=r(6369),a=r(6316),s=r(251),l=r(7357),c=(0,o.defineComponent)({__name:"Language",setup(e){const t=(0,s.o)(),r=()=>{switch(l.Z.global.locale.value){case"en-US":l.Z.global.locale.value="zh-CN",t.setLang("zh-CN"),localStorage.setItem("tuiRoom-language","zh-CN");break;case"zh-CN":l.Z.global.locale.value="en-US",t.setLang("en-US"),localStorage.setItem("tuiRoom-language","en-US");break}};return{__sfc:!0,basicStore:t,handleChange:r,SvgIcon:a.Z}}}),u=c,h=r(3736),d=(0,h.Z)(u,n,i,!1,null,null,null),f=d.exports},7698:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t(r.SvgIcon,{staticClass:"switch-theme",attrs:{"icon-name":"switch-theme",size:"medium"},on:{click:r.handleSwitchTheme}})},i=[],o=r(6369),a=r(6316),s=r(251),l=r(1020),c=(0,o.defineComponent)({__name:"SwitchTheme",setup(e){const t=(0,s.o)(),{defaultTheme:r}=(0,l.Jk)(t);function n(){const e=document.body.getAttribute("data-theme")||r;"white"===e?t.setDefaultTheme("black"):"black"===e&&t.setDefaultTheme("white")}function i(e){switch(e){case"black":document.body.setAttribute("data-theme","black"),localStorage.setItem("tuiRoom-currentTheme","black");break;case"white":document.body.setAttribute("data-theme","white"),localStorage.setItem("tuiRoom-currentTheme","white");break}}return(0,o.watch)(r,(e=>{i(e)})),(0,o.onMounted)((()=>{const e=t.defaultTheme,r=localStorage.getItem("tuiRoom-currentTheme")||e;t.setDefaultTheme(r),document.body.setAttribute("data-theme",r)})),{__sfc:!0,basicStore:t,defaultTheme:r,handleSwitchTheme:n,doSwitchTheme:i,SvgIcon:a.Z}}}),u=c,h=r(3736),d=(0,h.Z)(u,n,i,!1,null,null,null),f=d.exports},8283:function(e,t,r){"use strict";r.d(t,{Z:function(){return T}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"video-tab"},[t("div",{class:["item-setting-container",r.isSampleMode&&"hasDividingLine"]},[t("div",{staticClass:"item-setting"},[t("span",{staticClass:"title"},[e._v(e._s(r.t("Camera")))]),t(r.DeviceSelect,{class:r.isDetailMode?"detail-select":"",attrs:{"device-type":"camera"}})],1),r.isDetailMode&&e.withPreview?t("div",{staticClass:"item-setting"},[t("span",{staticClass:"title"},[e._v(e._s(r.t("Preview")))]),t("div",{staticClass:"video-preview",attrs:{id:"test-camera-preview"}})]):e._e(),r.isDetailMode?t("el-checkbox",{staticClass:"mirror-checkbox custom-element-class",attrs:{label:r.t("Mirror")},model:{value:r.isLocalStreamMirror,callback:function(e){r.isLocalStreamMirror=e},expression:"isLocalStreamMirror"}}):e._e()],1),r.isSampleMode?t("div",{class:["item-setting-container",r.isSampleMode&&"hasDividingLine"]},[t("span",{staticClass:"title"},[e._v(e._s(r.t("Resolution")))]),t(r.VideoProfile)],1):e._e(),r.isSampleMode?t("div",{class:["item-setting-container",r.isSampleMode&&"hasDividingLine"]},[t("div",{staticClass:"item",on:{click:r.handleMoreCameraSetting}},[e._v(e._s(r.t("More Camera Settings")))])]):e._e()])},i=[],o=r(6369),a=r(8754),s=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("el-select",{staticClass:"select custom-element-class",attrs:{placeholder:"placeholder",teleported:!1,"popper-append-to-body":!1},model:{value:r.localVideoQuality,callback:function(e){r.localVideoQuality=e},expression:"localVideoQuality"}},e._l(r.videoProfileList,(function(e,r){return t("el-option",{key:r,attrs:{label:e.label,value:e.value}})})),1)},l=[],c=r(7357),u=r(452),h=r.n(u),d=r(4990),f=r(3681),p=r(1020),m=(0,o.defineComponent)({__name:"VideoProfile",setup(e){const t=(0,f.Z)(),r=(0,d.A)(),{localVideoQuality:n}=(0,p.Jk)(r),{t:i}=(0,c.Q)(),a=(0,o.computed)((()=>[{label:i("Low Definition"),value:u.TUIVideoQuality.kVideoQuality_360p},{label:i("Standard Definition"),value:u.TUIVideoQuality.kVideoQuality_540p},{label:i("High Definition"),value:u.TUIVideoQuality.kVideoQuality_720p},{label:i("Super Definition"),value:u.TUIVideoQuality.kVideoQuality_1080p}]));return(0,o.watch)(n,(e=>{t.instance?.updateVideoQuality({quality:e})})),h().once("ready",(()=>{t.instance?.updateVideoQuality({quality:n.value})})),{__sfc:!0,roomEngine:t,roomStore:r,localVideoQuality:n,t:i,videoProfileList:a}}}),v=m,g=r(3736),_=(0,g.Z)(v,s,l,!1,null,"00a64cb2",null),w=_.exports,b=r(251),y=r(3927),S=r(4237),k=r(2843),C=(0,o.defineComponent)({__name:"VideoSettingTab",props:{mode:null,withPreview:{type:Boolean}},setup(e){const t=e,r=(0,f.Z)(),n=(0,S.Al)(),i=t.mode||y.n.SIMPLE,s=(0,o.computed)((()=>i===y.n.SIMPLE)),l=(0,o.computed)((()=>i===y.n.DETAIL)),h=(0,b.o)(),d=(0,o.ref)(h.isLocalStreamMirror);(0,o.watch)(d,(async e=>{const t=r.instance?.getTRTCCloud();k.t?await(t?.setLocalRenderParams({mirrorType:u.TRTCVideoMirrorType.TRTCVideoMirrorType_Auto,rotation:u.TRTCVideoRotation.TRTCVideoRotation0,fillMode:u.TRTCVideoFillMode.TRTCVideoFillMode_Fill})):await(t?.setLocalRenderParams({mirrorType:e?u.TRTCVideoMirrorType.TRTCVideoMirrorType_Enable:u.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable,rotation:u.TRTCVideoRotation.TRTCVideoRotation0,fillMode:u.TRTCVideoFillMode.TRTCVideoFillMode_Fill})),h.setIsLocalStreamMirror(e)}));const{t:p}=(0,c.Q)();function m(){h.setShowSettingDialog(!0),h.setActiveSettingTab("video")}return l.value&&t.withPreview&&((0,o.onMounted)((async()=>{if(r.instance?.startCameraDeviceTest({view:"test-camera-preview"}),n){const e=r.instance?.getTRTCCloud();await(e?.setLocalRenderParams({mirrorType:d.value?u.TRTCVideoMirrorType.TRTCVideoMirrorType_Enable:u.TRTCVideoMirrorType.TRTCVideoMirrorType_Disable,rotation:u.TRTCVideoRotation.TRTCVideoRotation0,fillMode:u.TRTCVideoFillMode.TRTCVideoFillMode_Fill}))}})),(0,o.onUnmounted)((()=>{r.instance?.stopCameraDeviceTest()}))),{__sfc:!0,roomEngine:r,isElectron:n,props:t,settingMode:i,isSampleMode:s,isDetailMode:l,basicStore:h,isLocalStreamMirror:d,t:p,handleMoreCameraSetting:m,DeviceSelect:a.Z,VideoProfile:w}}}),A=C,I=(0,g.Z)(A,n,i,!1,null,"7cf837b8",null),T=I.exports},2097:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{class:["icon-box",`${!e.hideHoverEffect&&"hover-effect"}`,`${e.disabled&&"disabled"}`]},[t("span",{staticClass:"icon-content",on:{click:function(t){return e.$emit("click-icon")}}},[e.iconName?t(r.SvgIcon,{attrs:{"icon-name":e.iconName}}):e._e(),e._t("default"),t("span",{staticClass:"title",class:e.isActive?"title-active":"title"},[e._v(e._s(e.title))])],2),e.hasMore?t("span",{ref:"moreSpanRef",staticClass:"icon-arrow",on:{click:function(t){return e.$emit("click-more")}}},[t(r.SvgIcon,{staticClass:"arrow",attrs:{"icon-name":"arrow-up",size:"small"}})],1):e._e()])},i=[],o=r(6369),a=r(6316),s=(0,o.defineComponent)({__name:"IconButton",props:{title:null,iconName:null,hasMore:{type:Boolean},hideHoverEffect:{type:Boolean},disabled:{type:Boolean},isActive:{type:Boolean}},emits:["click-icon","click-more"],setup(e){return{__sfc:!0,SvgIcon:a.Z}}}),l=s,c=r(3736),u=(0,c.Z)(l,n,i,!1,null,"3303a58b",null),h=u.exports},6316:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("span",{class:[r.svgClass,e.customClass],style:e.customStyle,on:{click:r.handleClick}})},i=[],o=r(6369),a=(0,o.defineComponent)({__name:"SvgIcon",props:{iconName:null,size:null,customClass:null,customStyle:null},emits:["click"],setup(e,{emit:t}){const r=e,n=(0,o.computed)((()=>`${r.iconName}`)),i=(0,o.computed)((()=>{const e=r.size&&["large","medium","small","custom"].includes(r.size),t=e?r.size:"large";return`svg-icon ${t}-icon ${n.value}`}));function a(e){t("click",e)}return{__sfc:!0,props:r,emit:t,svgName:n,svgClass:i,handleClick:a}}}),s=a,l=r(3736),c=(0,l.Z)(s,n,i,!1,null,"52c6be46",null),u=c.exports},4679:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("el-drawer",{attrs:{visible:r.visible,title:r.props.title,"before-close":r.props.beforeClose,modal:r.props.modal,direction:r.props.direction,size:r.props.size},on:{"update:visible":function(e){r.visible=e}}},[e._t("default")],2)},i=[],o=r(6369),a=(0,o.defineComponent)({__name:"Drawer",props:{modelValue:{type:Boolean},title:null,beforeClose:null,modal:{type:Boolean},appendToBody:{type:Boolean},width:null,direction:null,size:null,customClass:null},setup(e){const t=e,r=(0,o.ref)(t.modelValue);return(0,o.watch)((()=>t.modelValue),(e=>{r.value=e})),{__sfc:!0,props:t,visible:r}}}),s=a,l=r(3736),c=(0,l.Z)(s,n,i,!1,null,null,null),u=c.exports},9643:function(e,t,r){"use strict";r.d(t,{Z:function(){return D}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"userInfoRef",staticClass:"user-info-container"},[t("div",{directives:[{name:"tap",rawName:"v-tap",value:r.handleUserControl,expression:"handleUserControl"}],staticClass:"user-info-content"},[t("img",{staticClass:"avatar",attrs:{src:e.avatarUrl||r.defaultAvatar}}),t("div",{staticClass:"name"},[e._v(e._s(e.userName||e.userId))])]),r.showUserControl?t("div",{staticClass:"user-control-container"},[t("div",{staticClass:"logout-mobile"},[t("div",{staticClass:"logout-mobile-main"},[t("div",{directives:[{name:"tap",rawName:"v-tap",value:()=>e.$emit("log-out"),expression:"() => $emit('log-out')"}],staticClass:"logout"},[t("i",[e._v(" "+e._s(r.t("Log out")))])]),t("div",{staticClass:"close",on:{click:function(e){e.stopPropagation(),r.showUserControl=!1}}},[t("i",[e._v(e._s(r.t("Cancel")))])])])])]):e._e()])},i=[],o=r(6369),a=r(7717),s=r(6671),l=r(7357),c=r(251),u=r(1020),h=r(3235),d=r(6897),f=r(452),p=r.n(f),m=r(4990),v=r(7175);function g(){const{t:e}=(0,l.Q)(),t=(0,c.o)(),{userName:r}=(0,u.Jk)(t),n=(0,o.ref)(),i=(0,o.ref)(!1),a=(0,o.ref)(!1),f=(0,o.ref)(v.Uh),g=(0,o.ref)(""),_=(0,m.A)(),w=(0,o.computed)((()=>i.value?s.Z.LineArrowUp:s.Z.LineArrowDown));function b(){i.value=!i.value}function y(e){n.value.contains(e.target)||(i.value=!1)}function S(){a.value=!0,g.value=r.value}function k(){a.value=!1}async function C(r){0!==r.length?(t.setUserName(r),p().setSelfInfo({userName:r,avatarUrl:_.localUser.avatarUrl||""}),_.setLocalUser({userName:r}),k()):(0,h.z)({type:"warning",message:e("Username length should be greater than 0"),duration:d.U.NORMAL})}return(0,o.onMounted)((()=>{window.addEventListener("click",y)})),(0,o.onUnmounted)((()=>{window.removeEventListener("click",y)})),{t:e,showEditNameItem:f,showUserControl:i,iconName:w,showUserNameEdit:a,userInfoRef:n,tempUserName:g,handleUserControl:b,showEditUserNameDialog:S,closeEditUserNameDialog:k,handleSaveUserName:C}}r(5175);var _=(0,o.defineComponent)({__name:"UserInfoH5",props:{userId:null,userName:null,avatarUrl:null},emits:["log-out"],setup(e){const{userInfoRef:t,showUserControl:r,t:n,handleUserControl:i}=g();return{__sfc:!0,userInfoRef:t,showUserControl:r,t:n,handleUserControl:i,defaultAvatar:a}}}),w=_,b=r(3736),y=(0,b.Z)(w,n,i,!1,null,null,null),S=y.exports,k=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{ref:"userInfoRef",staticClass:"user-info-container"},[t("div",{staticClass:"user-info-content",on:{click:r.handleUserControl}},[t(r.Avatar,{staticClass:"avatar",attrs:{"img-src":e.avatarUrl}}),t("div",{staticClass:"name"},[e._v(e._s(e.userName||e.userId))]),t(r.SvgIcon,{staticClass:"down-icon",attrs:{"icon-name":r.iconName,size:"medium"}})],1),r.showUserControl?t("div",{staticClass:"user-control-container"},[t("div",{directives:[{name:"show",rawName:"v-show",value:r.showEditNameItem,expression:"showEditNameItem"}]},[t("div",{staticClass:"user-control-item-head",on:{click:r.showEditUserNameDialog}},[e._v(e._s(r.t("Edit profile")))])]),t("div",{staticClass:"user-control-item-foot",on:{click:function(t){return e.$emit("log-out")}}},[e._v(e._s(r.t("Log out")))])]):e._e(),t(r.Dialog,{staticClass:"custom-element-class",attrs:{title:r.t("Edit profile"),width:"420px","model-value":r.showUserNameEdit,modal:!0,"append-to-body":!1,"close-on-click-modal":!0},on:{close:r.closeEditUserNameDialog}},[t("div",{staticClass:"dialog-content"},[t("span",{staticClass:"title"},[e._v(e._s(r.t("User Name")))]),t("div",{staticClass:"input-container"},[t("el-input",{attrs:{type:"text",maxlength:"80",placeholder:r.t("Please input user name")},model:{value:r.tempUserName,callback:function(e){r.tempUserName=e},expression:"tempUserName"}})],1)]),t("div",{staticClass:"dialog-footer"},[t("el-button",{on:{click:r.closeEditUserNameDialog}},[e._v(e._s(r.t("Cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:function(e){return r.handleSaveUserName(r.tempUserName)}}},[e._v(e._s(r.t("Save")))])],1)])],1)},C=[],A=r(5266),I=r(6316),T=r(9225),E=(0,o.defineComponent)({__name:"UserInfoPC",props:{userId:null,userName:null,avatarUrl:null},emits:["log-out"],setup(e){const{t:t,showEditNameItem:r,iconName:n,showUserControl:i,showUserNameEdit:o,userInfoRef:a,tempUserName:s,handleUserControl:l,showEditUserNameDialog:c,closeEditUserNameDialog:u,handleSaveUserName:h}=g();return{__sfc:!0,t:t,showEditNameItem:r,iconName:n,showUserControl:i,showUserNameEdit:o,userInfoRef:a,tempUserName:s,handleUserControl:l,showEditUserNameDialog:c,closeEditUserNameDialog:u,handleSaveUserName:h,Dialog:A.Z,SvgIcon:I.Z,Avatar:T.Z}}}),R=E,L=(0,b.Z)(R,k,C,!1,null,null,null),M=L.exports,U=r(2843);const x=U.t?S:M;var D=x},6671:function(e,t,r){"use strict";var n;r.d(t,{Z:function(){return n}}),function(e){e["MicOn"]="mic-on",e["MicOff"]="mic-off",e["MicOffDisabled"]="mic-off-gray",e["CameraOn"]="camera-on",e["CameraOff"]="camera-off",e["CameraOffDisabled"]="camera-off-gray",e["ArrowBorderDown"]="arrow-border-down",e["ScreenSharing"]="screen-sharing",e["ScreenShare"]="screen-share",e["ScreenShareStopped"]="screen-share-stopped",e["ScreenShareDisabled"]="screen-share-disabled",e["ChatActive"]="chat-active",e["Chat"]="chat",e["ExitFullScreen"]="exit-fullscreen",e["FullScreen"]="full-screen",e["InviteActive"]="invite-active",e["Invite"]="invite",e["ManageMemberActive"]="manage-member-active",e["ManageMember"]="manage-member",e["More"]="more",e["MoreActive"]="more-active",e["SettingActive"]="setting-active",e["Setting"]="setting",e["LineArrowUp"]="line-arrow-up",e["LineArrowDown"]="line-arrow-down",e["ApplyOnSeat"]="apply",e["ApplyActive"]="apply-active",e["GoOffSeat"]="go-off-seat"}(n||(n={}))},6897:function(e,t,r){"use strict";var n,i;r.d(t,{B:function(){return n},U:function(){return i}}),function(e){e["UNMUTE_LOCAL_MIC_FAIL_MUTE_ALL"]="Has been fully muted and cannot open the microphone",e["UNMUTE_LOCAL_MIC_FAIL_MUTE_BY_MASTER"]="Has been muted by the host and cannot open the microphone",e["UNMUTE_LOCAL_MIC_FAIL_AUDIENCE"]="To apply to speak in the room, please raise your hand first to apply for the microphone",e["UNMUTE_LOCAL_CAMERA_FAIL_MUTE_ALL"]="Has been full static painting, can not open the video",e["UNMUTE_LOCAL_CAMERA_FAIL_MUTE_BY_MASTER"]="It has been stilled by the host and cannot open the video",e["UNMUTE_LOCAL_CAMERA_FAIL_AUDIENCE"]="To apply to speak in the room, please raise your hand first to apply for the microphone"}(n||(n={})),function(e){e[e["NORMAL"]=3e3]="NORMAL",e[e["LONG"]=5e3]="LONG"}(i||(i={}))},3927:function(e,t,r){"use strict";var n,i;r.d(t,{_:function(){return n},n:function(){return i}}),function(e){e["SIX_EQUAL_POINTS"]="six_equal_points",e["NINE_EQUAL_POINTS"]="nine_equal_points",e["TWENTY_FIVE_EQUAL_POINTS"]="twenty_five_equal_points",e["RIGHT_SIDE_LIST"]="right_side_list",e["TOP_SIDE_LIST"]="top_side_list",e["LARGE_SMALL_WINDOW"]="large_small_window",e["GRID_VIEW"]="grid_view"}(n||(n={})),function(e){e["SIMPLE"]="simple",e["DETAIL"]="detail"}(i||(i={}))},5175:function(e,t,r){"use strict";var n=r(7327),i=r(3303);class o{constructor(e,t){(0,n.Z)(this,"dom",void 0),(0,n.Z)(this,"callback",void 0),(0,n.Z)(this,"isMove",void 0),this.dom=e,this.callback=t.value,this.isMove=!1,e?.addEventListener("touchstart",(()=>{this.touchstart()}),{passive:!0}),e?.addEventListener("touchmove",(()=>{this.touchmove()}),{passive:!0}),e?.addEventListener("touchend",(()=>{this.touchend()}),{passive:!0})}touchstart(){this.isMove=!1}touchmove(){this.isMove=!0}touchend(){this.isMove||this.callback()}}i.Z.directive("tap",{bind:function(e,t){return new o(e,t)}})},5266:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return r.props.modelValue?t("div",{staticClass:"dialog-container"},[t("span",{staticClass:"dialog-title"},[e._v(e._s(r.props.title))]),t("div",{staticClass:"dialog-content"},[e._t("default")],2),t("div",{staticClass:"dialog-footer"},[e._t("footer")],2)]):e._e()},i=[],o=r(6369),a=(0,o.defineComponent)({__name:"DialogH5",props:{modelValue:{type:Boolean},title:null},setup(e){const t=e;return{__sfc:!0,props:t}}}),s=a,l=r(3736),c=(0,l.Z)(s,n,i,!1,null,null,null),u=c.exports,h=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("el-dialog",{attrs:{visible:r.props.modelValue,title:r.props.title,"before-close":r.props.beforeClose,modal:r.props.modal,"append-to-body":r.props.appendToBody,width:r.props.width,"show-close":r.props.showClose,"close-on-click-modal":r.props.closeOnClickModal,"close-on-press-escape":r.props.closeOnPressEscape,"modal-append-to-body":!1},on:{"update:visible":function(t){return e.$set(r.props,"modelValue",t)}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer")]},proxy:!0}],null,!0)},[e._t("default")],2)},d=[],f=(0,o.defineComponent)({__name:"DialogPC",props:{modelValue:{type:Boolean},title:null,beforeClose:null,modal:{type:Boolean},appendToBody:{type:Boolean},width:null,showClose:{type:Boolean},closeOnClickModal:{type:Boolean},closeOnPressEscape:{type:Boolean}},setup(e){const t=e;return{__sfc:!0,props:t}}}),p=f,m=(0,l.Z)(p,h,d,!1,null,null,null),v=m.exports,g=r(2843);const _=g.t?u:v;var w=_},3235:function(e,t,r){"use strict";r.d(t,{T:function(){return o},z:function(){return i}});var n=r(8499);const i=n.Message,o=n.MessageBox},3681:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(452),i=r.n(n),o=r(7175);const a={instance:null},s=o.$B?"vue3":"vue2";function l(){return a}i().once("ready",(()=>{a.instance=new(i()),a.instance?.callExperimentalAPI(JSON.stringify({api:"setFramework",params:{component:"TUIRoomKit",language:s}}))}))},7357:function(e,t,r){"use strict";r.d(t,{Z:function(){return c},Q:function(){return o.QT}});var n=r(6369),i=r(6018),o=r(9165),a=r(5581),s={"":"","Sign in":"请登录","Phone Login":"手机登录","Email Login":"邮箱登录","I have read and agree to the":"我已阅读并同意","Privacy Policy":"隐私协议",and:"和","Terms of Use":"用户协议",Login:"登录","Mobile number":"请输入您的手机号","Verification code":"请输入验证码","Email address":"请输入邮箱","Please enter a valid phone number!":"请输入正确的手机号!","Please enter a valid email address!":"请输入正确的邮箱地址!","Please enter your phone number!":"请输入手机号!","Please enter your email address!":"请输入邮箱地址!","Please enter the verification code!":"请输入验证码!","Please accept the privacy policy and user agreement!":"请同意隐私协议及用户协议!","Incorrect verification code, please check the code!":"验证码错误,请检查验证码!","The verification code has expired, please retrieve a new one!":"验证码已过期,请重新获取验证码!","The verification code has been used, please retrieve a new one!":"验证码已使用,请重新获取验证码!","Login failed, please try again.":"登录失败,请重试",SEND:"获取验证码"," ":"倒计时","The room does not exist, please confirm the room number or create a room!":"房间不存在,请确认房间号或创建房间!","Log out":"退出登录","Edit profile":"编辑资料","User Name":"用户名","Please input user name":"请输入用户名","Username length should be greater than 0":"昵称长度应该大于0",Save:"保存",Camera:"摄像头",Mic:"麦克风","Off Camera":"摄像头已关闭","Mic settings":"麦克风设置",Output:"输出",Speaker:"扬声器",Test:"测试",Stop:"停止测试",Preview:"视频画面",Mirror:"翻转镜像",Resolution:"分辨率","More Camera Settings":"更多摄像头设置","Join the room ?":"是否进入房间?","You are invited to room ":"您被邀请进入 ",Room:"房间",Join:"确定进入","New Room":"新建房间","Room Type":"房间类型","Your Name":"您的名字","Turn on the microphone":"开启麦克风","Turn on the speaker":"开启扬声器","Turn on the video":"开启视频","Free Speech Room":"自由发言房间","Raise Hand Room":"举手发言房间","Join Room":"进入房间","Enter room ID":"输入房间号","video conferencing":" 的视频会议","Room ID":"房间号","Low Definition":"流畅","Standard Definition":"标清","High Definition":"高清","Super Definition":"超清","End sharing":"结束共享","Stop sharing?":"是否停止屏幕共享?","Stop sharing":"停止共享",Sure:"确定",Sharing:"屏幕共享中","Share screen":"共享屏幕","Others will no longer see your screen after you stop sharing. Are you sure you want to stop?":"是否结束当前的共享屏幕,停止后所有人将无法继续观看屏幕内容","Others will no longer see your screen after you stop sharing.":"停止后所有人将无法继续观看屏幕内容","You currently do not have sharing permission, please raise your hand to apply for sharing permission first":"您当前没有共享权限,请先举手申请上台获取共享权限",Host:"主持人",Me:"我",me:"我",More:"更多","Raise hand":"举手",Agree:"同意",Chat:"聊天",Cancel:"取消",Exit:"退出全屏","Full screen":"全屏",Members:"管理成员",Invite:"邀请成员",Settings:"设置",EndPC:"结束会议",EndH5:"结束",Tips:"提示",'You are currently the room host, please select the appropriate action.If you select "Leave Room", the room will not be dissolved and you will need to appoint a new host.':"您当前是房间主持人,请选择相应操作。若选择“离开房间”,则房间不会解散,您需要指定新主持人。","If you do not want to end the meeting, please designate a new host before leaving the meeting.":"如果您不想结束会议,请在离开会议前指定新的主持人。","Are you sure you want to leave this room?":"确定离开房间吗?","New host":"选择主持人","Transfer and leave":"移交并离开","Leave room?":"是否要离开房间","Select a new host":"请选择新的房间主持人","Appoint a new host":"指定一位新的主持人","The host closed the room.":"主持人结束会议,已解散房间",Note:"通知",Confirm:"确认",Leave:"离开房间",Dismiss:"解散房间","Moderator changed to ":"主持人已变更为","Muted by the moderator":"已被主持人禁言","Type a message":"说点什么...",Send:"发送","Failed to send the message":"发送消息失败","Applying for the stage":"正在申请上台",Check:"查看","Disable all audios":"禁言所有人","Disable all videos":"禁画所有人","All mute":"全体静音","All current and new members will be muted.":"所有及新加入的成员将被静音","All current and new members will turn off their videos.":"所有及新加入的成员将关闭视频","All stop video":"全体禁画","Lift all mute":"取消全体静音","Should we turn on the video for everyone":"是否打开全员视频","Can you lift all mute":"是否取消全体静音","Lift stop all video":"取消全体禁画","No relevant user found.":"未找到相关用户","Member List":"成员列表",Unmute:"解除禁言","Cancel Unmute":"取消解除禁言",Mute:"禁言",members:"人","Failed to get chat message":"获取聊天消息失败","Agree to the stage":"同意上台","Cancel stage":"取消邀请上台","Invite stage":"邀请上台","Refuse stage":"拒绝上台","Enable video":"解除禁画","Cancel Enable video":"取消解除禁画","Disable video":"禁画","Enable chat":"允许文字聊天","Disable chat":"禁止文字聊天","Kick out":"踢出房间","is sharing their screen":"的屏幕分享","Apply to stage application":"请求上台申请",Reject:"拒绝","Reject All":"全部拒绝","Please raise your hand to apply":"如果您想发言请先举手申请上麦","The host invites you to speak on stage":"主持人邀请您上台发言","After agreeing to go on stage, you can turn on the camera and microphone. Do you agree to go on stage?":"同意上台后可打开摄像头和麦克风,是否同意上台?","Hand down":"手放下","Step down(Master)":"邀请下台","Step down":"下台","The host has approved your application":"主持人同意了你的上台申请","The host has rejected your application for the stage":"主持人拒绝了你的上台申请","You have been invited by the host to step down, please raise your hand if you need to speak":"您已被主持人邀请下台,需要发言请先举手","Select a screen/window":"选择屏幕/窗口",Screen:"屏幕",Window:"窗口",Share:"开始分享","Select a screen or window first":"请选择要分享的屏幕或者窗口",Grid:"一屏九等分","Gallery on right":"右侧成员列表","Gallery at top":"顶部成员列表","Network ":"网络","Latency: ":"网络延迟:","Frame rate: ":"帧率:","Bitrate: ":"码率:",Unknown:"状态未知",Excellent:"状态极佳",Good:"状态较好",Fair:"状态一般",Poor:"状态差","Very poor":"状态极差",Disconnected:"断开连接","Share the room ID or invite link":"您可以通过复制房间号或者邀请链接的方式邀请更多人加入房间","Invite by room number":"通过房间号邀请","Invite via room link":"通过房间链接邀请","Room Link":"房间链接","You can share the room number or link to invite more people to join the room.":"您可以分享房间号或链接邀请更多人加入房间。","If you have any questions, please feel free to join our QQ group or send an email":"如果有任何问题欢迎加入我们的QQ群或者发送邮件。","Room QR code":"房间二维码","Search for conference attendees":"搜索参会成员","Invite via client scheme":"通过客户端 scheme 邀请","Contact us":"联系我们","Member management":"成员管理","Grid view":"宫格视图","Join our QQ group chat or email us.":"如果有任何问题欢迎加入我们的QQ群或者发送邮件","group chat":"QQ 群",Email:"邮箱地址","Audio settings":"声音设置","Camera settings":"摄像头设置","Copied successfully":"复制成功","accepted the invitation to the stage":"接受了上台邀请","declined the invitation to the stage":"拒绝了上台邀请","The host has muted all":"主持人已开启全体静音","The host has unmuted all":"主持人已解除全体静音","The host has turned off your microphone":"主持人已关闭您的麦克风","The host invites you to turn on the microphone":"主持人邀请你打开麦克风","The host has turned on the ban on all paintings":"主持人已开启全体禁画","The host has lifted the ban on all paintings":"主持人已解除全体禁画","The host has turned on the ban on all chat":"主持人已开启全体禁止文字聊天","The host has lifted the ban on all chat":"主持人已解除全体禁止文字聊天","The host has turned off your camera":"主持人已关闭您的摄像头","The host invites you to turn on the camera":"主持人邀请你打开摄像头","The host has turned off your screen sharing":"主持人已关闭您的屏幕分享","Turn on the camera":"打开摄像头","Keep it closed":"保持关闭","You have been banned from text chat by the host":"您被主持人禁止文字聊天","You are allowed to text chat by the host":"您被主持人允许文字聊天","kicked out of the room by the host":"被主持人踢出房间","kicked out of the room by other device":"相同账号在其他客户端进入房间","kicked out of the room by serve":"被服务端踢出房间","Reject on Stage failed, please retry":"拒绝 {userName} 上台失败, 请重试","Has been fully muted and cannot open the microphone":"已被全员静音,无法打开麦克风","Has been muted by the host and cannot open the microphone":"已被主持人静音,无法打开麦克风","To apply to speak in the room, please raise your hand first to apply for the microphone":"申请发言房间,请先举手申请上麦","Has been full static painting, can not open the video":"已被全员静画,无法打开视频","It has been stilled by the host and cannot open the video":"已被主持人静画,无法打开视频","Failed to enter the room.":"进入房间失败!","Has been full static painting, can not share your screen":"已被全员静画,无法打开屏幕分享","Microphone not detected on current device":"当前设备未检测到麦克风","Camera not detected on current device":"当前设备未检测到摄像头","Camera And Microphone not detected on current device":"当前设备未检测到摄像头和麦克风","Another user is currently sharing the screen, screen sharing is not possible.":"当前有其他用户正在屏幕共享,无法进行屏幕共享","This action causes the room to be exited, does it continue?":"该操作会导致退出房间,是否继续?","This action causes the room to be disbanded, does it continue?":"该操作会导致解散房间,是否继续?"},l={"":"","Sign in":"Sign in","Phone Login":"Phone Login","Email Login":"Email Login","I have read and agree to the":"I have read and agree to the","Privacy Policy":"Privacy Policy",and:"and","Terms of Use":"Terms of Use",Login:"Login","Mobile number":"Mobile number","Verification code":"Verification code","Email address":"Email address","Please enter a valid phone number!":"Please enter a valid phone number!","Please enter a valid email address!":"Please enter a valid email address!","Please enter your phone number!":"Please enter your phone number!","Please enter your email address!":"Please enter your email address!","Please enter the verification code!":"Please enter the verification code!","Please accept the privacy policy and user agreement!":"Please accept the privacy policy and user agreement!","Incorrect verification code, please check the code!":"Incorrect verification code, please check the code!","The verification code has expired, please retrieve a new one!":"The verification code has expired, please retrieve a new one!","The verification code has been used, please retrieve a new one!":"The verification code has been used, please retrieve a new one!","Login failed, please try again.":"Login failed, please try again.",SEND:"SEND"," ":" ","The room does not exist, please confirm the room number or create a room!":"The room does not exist, please confirm the room number or create a room!","Log out":"Log out","Edit profile":"Edit profile","User Name":"User Name","Please input user name":"Please input user name","Username length should be greater than 0":"Username length should be greater than 0",Save:"Save",Camera:"Camera",Mic:"Mic","Off Camera":"Off Camera","Mic settings":"Mic settings",Output:"Output",Speaker:"Speaker",Test:"Test",Stop:"Stop",Preview:"Preview",Mirror:"Mirror",Resolution:"Resolution","More Camera Settings":"More Camera Settings","Join the room ?":"Join the room ?","You are invited to room ":"You are invited to room ",Room:"Room",Join:"Join",Sure:"Sure","New Room":"New Room","Room Type":"Room Type","Your Name":"Your Name","Grid view":"Grid view","Speaker view":"Speaker view","Turn on the microphone":"Turn on the microphone","Turn on the speaker":"Turn on the speaker","Turn on the video":"Turn on the video","Free Speech Room":"Free Speech Room","Raise Hand Room":"Raise Hand Room","Join Room":"Join Room","Enter room ID":"Enter room ID","video conferencing":" 's video conferencing","Room ID":"Room ID","Low Definition":"Low Definition","Standard Definition":"Standard Definition","High Definition":"High Definition","Super Definition":"Super Definition","End sharing":"End sharing","Stop sharing?":"Stop sharing?","Stop sharing":"Stop sharing",Sharing:"Sharing","Share screen":"Share screen","Others will no longer see your screen after you stop sharing. Are you sure you want to stop?":"Others will no longer see your screen after you stop sharing. Are you sure you want to stop?","Others will no longer see your screen after you stop sharing.":"Others will no longer see your screen after you stop sharing.","You currently do not have sharing permission, please raise your hand to apply for sharing permission first":"You currently do not have sharing permission, please raise your hand to apply for sharing permission first",Host:"Host",Me:"Me",me:"me",More:"More","Raise hand":"Raise hand",Agree:"Agree",Chat:"Chat",Cancel:"Cancel",Exit:"Exit","Full screen":"Full screen",Members:"Members",Invite:"Invite",Settings:"Settings",EndPC:"End",EndH5:"End",'You are currently the room host, please select the appropriate action.If you select "Leave Room", the room will not be dissolved and you will need to appoint a new host.':'You are currently the room host, please select the appropriate action.If you select "Leave Room", the room will not be dissolved and you will need to appoint a new host.',"If you do not want to end the meeting, please designate a new host before leaving the meeting.":"If you do not want to end the meeting, please designate a new host before leaving the meeting.","Are you sure you want to leave this room?":"Are you sure you want to leave this room?","New host":"New host","Transfer and leave":"Transfer and leave","Leave room?":"Leave room?","Select a new host":"Select a new host","Appoint a new host":"Appoint a new host","The host closed the room.":"The host closed the room.",Note:"Note",Confirm:"Confirm",Leave:"Leave",Dismiss:"Dismiss","Moderator changed to ":"Moderator changed to ","Muted by the moderator":"Muted by the moderator","Type a message":"Type a message",Send:"Send","Failed to send the message":"Failed to send the message","Applying for the stage":"Applying for the stage",Check:"Check","Disable all audios":"Disable all audios","Disable all videos":"Disable all videos","Member List":"Member List","All mute":"All mute","All stop video":"All stop video","Lift all mute":"Lift all mute","Should we turn on the video for everyone":"Should we turn on the video for everyone","Can you lift all mute":"Can you lift all mute","Lift stop all video":"Lift stop all video",Unmute:"Unmute","Cancel Unmute":"Cancel Unmute",Mute:"Mute",members:"members","Failed to get chat message":"Failed to get chat message","Agree to the stage":"Agree to the stage","Cancel stage":"Cancel stage","Invite stage":"Invite stage","Refuse stage":"Refuse stage","Step down":"Step down","Step down(Master)":"Step down","Enable video":"Enable video","Disable video":"Disable video","Enable chat":"Enable chat","Disable chat":"Disable chat","Kick out":"Kick out","is sharing their screen":"is sharing their screen","Apply to stage application":"Apply to stage application",Reject:"Reject","Reject All":"Reject All","Please raise your hand to apply":"Please raise your hand to apply","The host invites you to speak on stage":"The host invites you to speak on stage","After agreeing to go on stage, you can turn on the camera and microphone. Do you agree to go on stage?":"After agreeing to go on stage, you can turn on the camera and microphone. Do you agree to go on stage?","Hand down":"Hand down","The host has approved your application":"The host has approved your application","The host has rejected your application for the stage":"The host has rejected your application for the stage","You have been invited by the host to step down, please raise your hand if you need to speak":"You have been invited by the host to step down, please raise your hand if you need to speak","Select a screen/window":"Select a screen/window",Screen:"Screen",Window:"Window",Share:"Share","Select a screen or window first":"Select a screen or window first",Grid:"Grid",Tips:"Tips","Gallery on right":"Gallery on right","Gallery at top":"Gallery at top","Network ":"Network ","Latency: ":"Latency: ","Frame rate: ":"Frame rate: ","Bitrate: ":"Bitrate: ",Unknown:"Unknown",Excellent:"Excellent",Good:"Good",Fair:"Fair",Poor:"Poor","Very poor":"Very poor",Disconnected:"Disconnected","Share the room ID or invite link":"Share the room ID or invite link","Invite by room number":"Invite by room number","Invite via room link":"Invite via room link","Room Link":"Room Link","You can share the room number or link to invite more people to join the room.":"You can share the room number or link to invite more people to join the room.","If you have any questions, please feel free to join our QQ group or send an email":"If you have any questions, please feel free to join our QQ group or send an email","Room QR code":"Room QR code","Search for conference attendees":"Search for conference attendees","Invite via client scheme":"Invite via client scheme","All current and new members will be muted.":"All current and new members will be muted","All current and new members will turn off their videos.":"All current and new members will turn off their videos","No relevant user found.":"No relevant user found.","Contact us":"Contact us","Member management":"Member management","Join our QQ group chat or email us.":"Join our QQ group chat or email us.","group chat":"group chat",Email:"Email","Audio settings":"Audio settings","Camera settings":"Camera settings","Copied successfully":"Copied successfully","accepted the invitation to the stage":"accepted the invitation to the stage","declined the invitation to the stage":"declined the invitation to the stage","The host has muted all":"The host has muted all","The host has unmuted all":"The host has unmuted all","The host has turned off your microphone":"The host has turned off your microphone","The host invites you to turn on the microphone":"The host invites you to turn on the microphone","The host has turned on the ban on all paintings":"The host has turned on the ban on all paintings","The host has lifted the ban on all paintings":"The host has lifted the ban on all paintings","The host has turned on the ban on all chat":"The host has turned on the ban on all chat","The host has lifted the ban on all chat":"The host has lifted the ban on all chat","The host has turned off your camera":"The host has turned off your camera","The host invites you to turn on the camera":"The host invites you to turn on the camera","The host has turned off your screen sharing":"The host has turned off your screen sharing","Turn on the camera":"Turn on the camera","Keep it closed":"Keep it closed","You have been banned from text chat by the host":"You have been banned from text chat by the host","You are allowed to text chat by the host":"You are allowed to text chat by the host","kicked out of the room by the host":"kicked out of the room by the host","kicked out of the room by other device":"kicked out of the room by other device","kicked out of the room by serve":"kicked out of the room by serve","Reject on Stage failed, please retry":"Reject {userName} on Stage failed, please retry","Has been fully muted and cannot open the microphone":"Has been fully muted and cannot open the microphone","Has been muted by the host and cannot open the microphone":"Has been muted by the host and cannot open the microphone","To apply to speak in the room, please raise your hand first to apply for the microphone":"To apply to speak in the room, please raise your hand first to apply for the microphone","Has been full static painting, can not open the video":"Has been full static painting, can not open the video","It has been stilled by the host and cannot open the video":"It has been stilled by the host and cannot open the video","Failed to enter the room.":"Failed to enter the room.","Has been full static painting, can not share your screen":"Has been full static painting, can not share your screen.","Microphone not detected on current device":"Microphone not detected on current device","Camera not detected on current device":"Camera not detected on current device","Camera And Microphone not detected on current device":"Camera And Microphone not detected on current device","Another user is currently sharing the screen, screen sharing is not possible.":"Another user is currently sharing the screen, screen sharing is not possible.","This action causes the room to be disbanded, does it continue?":"This action causes the room to be disbanded, does it continue?","This action causes the room to be exited, does it continue?":"This action causes the room to be exited, does it continue?"};n["default"].use(i.Z,{bridge:!0});var c=(0,o.o)({legacy:!1,locale:(0,a.G)()||"zh-CN",messages:{"zh-CN":s,"en-US":l}},i.Z)},251:function(e,t,r){"use strict";r.d(t,{o:function(){return l}});var n=r(1020),i=r(5581),o=r(3927),a=r(4237),s=r(2843);const l=(0,n.Q_)("basic",{state:()=>({sdkAppId:0,userId:"",userSig:"",userName:"",avatarUrl:"",useStringRoomId:!1,roomId:"",roomMode:"FreeSpeech",isSidebarOpen:!1,layout:o._.NINE_EQUAL_POINTS,showSettingDialog:!1,showApplyUserList:!1,activeSettingTab:"audio",isLocalStreamMirror:!0,isFrontCamera:!0,sidebarName:"",masterUserId:"",localQuality:0,lang:(0,i.G)(),defaultTheme:"black",isSupportSwitchTheme:!0,showHeaderTool:!0,shareLink:"",isRoomLinkVisible:!(0,a.Al)()&&!s.e}),getters:{},actions:{setSdkAppId(e){this.sdkAppId=e},setUserId(e){this.userId=e},setUserSig(e){this.userSig=e},setUserName(e){this.userName=e},setAvatarUrl(e){this.avatarUrl=e},setRoomId(e){this.roomId=e,this.useStringRoomId="string"===typeof e},setRoomMode(e){this.roomMode=e},setSidebarOpenStatus(e){this.isSidebarOpen=e},setSidebarName(e){this.sidebarName=e},setLayout(e){this.layout=e},setShowSettingDialog(e){this.showSettingDialog=e},setShowApplyUserList(e){this.showApplyUserList=e},setActiveSettingTab(e){this.activeSettingTab=e},setIsLocalStreamMirror(e){this.isLocalStreamMirror=e},setIsFrontCamera(e){this.isFrontCamera=e},setDefaultTheme(e){this.defaultTheme=e},setIsSupportSwitchTheme(e){this.isSupportSwitchTheme=e},setShowHeaderTool(e){this.showHeaderTool=e},setShareLink(e){this.shareLink=e},setIsRoomLinkVisible(e){this.isRoomLinkVisible=e},setBasicInfo(e){if(!e)return;const{sdkAppId:t,userId:r,userSig:n,userName:i,avatarUrl:o,roomId:s,theme:l,showHeaderTool:c}=e;t&&this.setSdkAppId(t),r&&this.setUserId(r),n&&this.setUserSig(n),i&&this.setUserName(i),o&&this.setAvatarUrl(o),s&&this.setRoomId(s),l&&!(0,a.o8)(l.defaultTheme)&&this.setDefaultTheme(l.defaultTheme),l&&!(0,a.o8)(l.isSupportSwitchTheme)&&this.setIsSupportSwitchTheme(l.isSupportSwitchTheme),!(0,a.o8)(c)&&this.setShowHeaderTool(c)},setMasterUserId(e){this.masterUserId=e},setLocalQuality(e){const t=e.find((e=>e.userId===this.userId));this.localQuality=t.quality},setLang(e){this.lang=e},reset(){this.isSidebarOpen=!1,this.layout=o._.NINE_EQUAL_POINTS,this.showSettingDialog=!1,this.activeSettingTab="audio",this.isLocalStreamMirror=!0,this.sidebarName="",this.masterUserId="",this.localQuality=0,this.roomId="",this.sdkAppId=0,this.userId="",this.userSig="",this.userName="",this.avatarUrl="",this.useStringRoomId=!1,this.roomMode="FreeSpeech",this.showApplyUserList=!1,this.isFrontCamera=!0,this.defaultTheme="black",this.isSupportSwitchTheme=!0,this.showHeaderTool=!0,this.shareLink=""}}})},4990:function(e,t,r){"use strict";r.d(t,{A:function(){return u}});var n=r(1020),i=r(452),o=r(251),a=r(7175),s=r(3303),l=r(3681);const c=(0,l.Z)(),u=(0,n.Q_)("room",{state:()=>({localUser:{userId:"",userName:"",avatarUrl:"",hasAudioStream:!1,hasVideoStream:!1,hasScreenStream:!1,userRole:i.TUIRole.kGeneralUser,audioVolume:0,onSeat:!1,cameraStreamInfo:{userId:"",userName:"",avatarUrl:"",audioVolume:0,hasAudioStream:!1,hasVideoStream:!1,streamType:i.TUIVideoStreamType.kCameraStream,isVisible:!0},screenStreamInfo:{userId:"",userName:"",avatarUrl:"",hasScreenStream:!1,streamType:i.TUIVideoStreamType.kScreenStream,isVisible:!0}},remoteUserObj:{},isDefaultOpenCamera:!1,isDefaultOpenMicrophone:!1,canControlSelfAudio:!0,canControlSelfVideo:!0,localVideoQuality:i.TUIVideoQuality.kVideoQuality_720p,currentCameraId:"",currentMicrophoneId:"",currentSpeakerId:"",cameraList:[],microphoneList:[],speakerList:[],masterUserId:"",isMicrophoneDisableForAllUser:!1,isCameraDisableForAllUser:!1,isMessageDisableForAllUser:!1,speechMode:i.TUISpeechMode.kFreeToSpeak,maxMembersCount:5,hasVideoStreamObject:{},currentStreamIdListInVisibleView:[],hasOtherScreenShare:!1}),getters:{isMaster(e){return e.localUser.userId===e.masterUserId},isAnchor(e){return!!this.isFreeSpeakMode||(this.isSpeakAfterTakingSeatMode?e.localUser.onSeat:void 0)},isAudience(e){return!this.isFreeSpeakMode&&(this.isSpeakAfterTakingSeatMode?!e.localUser.onSeat:void 0)},isSpeakAfterTakingSeatMode(){return this.speechMode===i.TUISpeechMode.kSpeakAfterTakingSeat},isFreeSpeakMode(){return this.speechMode===i.TUISpeechMode.kFreeToSpeak},isLocalAudioIconDisable(){const e=!this.isMaster&&!this.canControlSelfAudio;return e||this.isAudience},isLocalVideoIconDisable(){const e=!this.isMaster&&!this.canControlSelfVideo;return e||this.isAudience},localStream:e=>{const{userId:t,userName:r,avatarUrl:n,hasAudioStream:i,hasVideoStream:o,audioVolume:a}=e.localUser;return Object.assign(e.localUser.cameraStreamInfo,{userId:t,userName:r,avatarUrl:n,hasAudioStream:i,hasVideoStream:o,audioVolume:a}),e.localUser.cameraStreamInfo},remoteStreamObj:e=>{const t={};return[...Object.values(e.remoteUserObj)].forEach((e=>{const{userId:r,avatarUrl:n,userName:o,onSeat:a,hasAudioStream:s,hasVideoStream:l,hasScreenStream:c,audioVolume:u,isVideoVisible:h,isScreenVisible:d}=e;a&&(t[`${r}_${i.TUIVideoStreamType.kCameraStream}`]=Object.assign(e.cameraStreamInfo,{userId:r,avatarUrl:n,userName:o,hasAudioStream:s,hasVideoStream:l,audioVolume:u,streamType:i.TUIVideoStreamType.kCameraStream,isVisible:h})),c&&(t[`${r}_${i.TUIVideoStreamType.kScreenStream}`]=Object.assign(e.screenStreamInfo,{userId:r,avatarUrl:n,userName:o,hasScreenStream:c,streamType:i.TUIVideoStreamType.kScreenStream,isVisible:d}))})),t},remoteStreamList(){return[...Object.values(this.remoteStreamObj)]},streamList(){return[this.localStream,...Object.values(this.remoteStreamObj)]},streamNumber(){return this.streamList.length},remoteAnchorList:e=>[...Object.values(e.remoteUserObj)].filter((e=>e.onSeat)),userList:e=>[e.localUser,...Object.values(e.remoteUserObj)],userNumber(){return this.userList.length},applyToAnchorList:e=>[...Object.values(e.remoteUserObj)].filter((e=>e.isUserApplyingToAnchor))||[],defaultStreamType(){return Object.keys(this.hasVideoStreamObject).length>this.maxMembersCount?i.TUIVideoStreamType.kCameraStreamLow:i.TUIVideoStreamType.kCameraStream}},actions:{setLocalUser(e){Object.assign(this.localUser,e)},updateLocalStream(e){Object.assign(this.localStream,e)},getUserName(e){return e===this.localUser.userId?this.localUser.userName||e:this.remoteUserObj[e]?.userName||e},getNewUserInfo(e){const t={userId:e,userName:"",avatarUrl:"",hasAudioStream:!1,hasVideoStream:!1,hasScreenStream:!1,isVideoVisible:!1,isScreenVisible:!1,userRole:i.TUIRole.kGeneralUser,audioVolume:0,onSeat:!this.isSpeakAfterTakingSeatMode,cameraStreamInfo:{userId:e,userName:"",avatarUrl:"",audioVolume:0,hasAudioStream:!1,hasVideoStream:!1,streamType:i.TUIVideoStreamType.kCameraStream,isVisible:!1},screenStreamInfo:{userId:e,userName:"",avatarUrl:"",hasScreenStream:!1,streamType:i.TUIVideoStreamType.kScreenStream,isVisible:!1}};return this.isMaster&&Object.assign(t,{isChatMutedByMaster:!1,isUserApplyingToAnchor:!1,isInvitingUserToAnchor:!1}),t},setUserList(e){e.forEach((e=>{if(e.userId!==this.localUser.userId)if(this.remoteUserObj[e.userId])Object.assign(this.remoteUserObj[e.userId],e);else{const t=Object.assign(this.getNewUserInfo(e.userId),e);a.$B?this.remoteUserObj[e.userId]=t:s.Z.set(this.remoteUserObj,e.userId,t)}else Object.assign(this.localUser,e)}))},addRemoteUser(e){const{userId:t}=e,r=(0,o.o)();if(t&&t!==r.userId)if(this.remoteUserObj[t])Object.assign(this.remoteUserObj[t],e);else{const r=Object.assign(this.getNewUserInfo(t),e);a.$B?this.remoteUserObj[t]=r:s.Z.set(this.remoteUserObj,t,r)}},updateRemoteUser(e,t){const r=this.remoteUserObj[e];if(!r)return;const{nick:n,avatar:i}=t;Object.assign(r,{userName:n,avatarUrl:i})},updateOnSeatList(e,t,r){"{}"===JSON.stringify(this.remoteUserObj)?e.forEach((e=>{const{userId:t}=e;if(t===this.localUser.userId)Object.assign(this.localUser,{onSeat:!0});else{const e=Object.assign(this.getNewUserInfo(t),{onSeat:!0});a.$B?this.remoteUserObj[t]=e:s.Z.set(this.remoteUserObj,t,e)}})):(t.forEach((e=>{const{userId:t}=e;if(t===this.localUser.userId)Object.assign(this.localUser,{onSeat:!0});else{const e=this.remoteUserObj[t];if(e)Object.assign(e,{onSeat:!0});else{const e=Object.assign(this.getNewUserInfo(t),{onSeat:!0});a.$B?this.remoteUserObj[t]=e:s.Z.set(this.remoteUserObj,t,e)}}})),r.forEach((e=>{if(e.userId===this.localUser.userId)Object.assign(this.localUser,{onSeat:!1});else{const t=this.remoteUserObj[e.userId];t&&Object.assign(t,{onSeat:!1})}})))},updateUserVideoState(e,t,r){const n=(0,o.o)();let l=e===n.userId?this.localUser:this.remoteUserObj[e];!l&&r&&(l=this.getNewUserInfo(e),a.$B?this.remoteUserObj[e]=l:s.Z.set(this.remoteUserObj,e,l)),l&&(this.updatehasVideoStreamObject(l,r,e===n.userId),t===i.TUIVideoStreamType.kCameraStream||t===i.TUIVideoStreamType.kCameraStreamLow?l.hasVideoStream=r:t===i.TUIVideoStreamType.kScreenStream&&(l.hasScreenStream=r))},updatehasVideoStreamObject(e,t,r){if(r)return;const{userId:n,cameraStreamInfo:i,screenStreamInfo:o,hasVideoStream:l}=e,c=`${n}_${l?i.streamType:o.streamType}`;t?a.$B?this.hasVideoStreamObject[c]=e:s.Z.set(this.hasVideoStreamObject,c,e):a.$B?delete this.hasVideoStreamObject[c]:s.Z["delete"](this.hasVideoStreamObject,c)},updateUserAudioState(e,t){const r=(0,o.o)();let n=e===r.userId?this.localUser:this.remoteUserObj[e];!n&&t&&(n=this.getNewUserInfo(e),a.$B?this.remoteUserObj[e]=n:s.Z.set(this.remoteUserObj,e,n)),n&&(n.hasAudioStream=t)},removeRemoteUser(e){const t=(0,o.o)();e&&e!==t.userId&&(a.$B?delete this.remoteUserObj[e]:s.Z["delete"](this.remoteUserObj,e))},updateUserStreamVisible(e){e.forEach((e=>{const t=e.slice(0,e.length-2),r=Number(e.slice(-1));if(t===this.localUser.userId)return;const n=this.remoteUserObj[t];n&&(r===i.TUIVideoStreamType.kCameraStream||r===i.TUIVideoStreamType.kCameraStreamLow?n.isVideoVisible=!0:r===i.TUIVideoStreamType.kScreenStream&&(n.isScreenVisible=!0))})),this.currentStreamIdListInVisibleView.forEach((t=>{const r=t.slice(0,t.length-2),n=Number(t.slice(-1));if(e.indexOf(t)<0){const e=this.remoteUserObj[r];if(!e)return;n===i.TUIVideoStreamType.kCameraStream||n===i.TUIVideoStreamType.kCameraStreamLow?e.isVideoVisible=!1:n===i.TUIVideoStreamType.kScreenStream&&(e.isScreenVisible=!1)}})),this.currentStreamIdListInVisibleView=e},setAudioVolume(e){const t=(0,o.o)();e.forEach((e=>{const{userId:r,volume:n}=e;if(r===t.userId||""===r)this.localUser.audioVolume=n;else{const e=this.remoteUserObj[r];e&&(e.audioVolume=n)}}))},setCurrentCameraId(e){this.currentCameraId=e},setCurrentMicrophoneId(e){this.currentMicrophoneId=e},setCurrentSpeakerId(e){this.currentSpeakerId=e},setRoomInfo(e){const{roomOwner:t,isMicrophoneDisableForAllUser:r,isCameraDisableForAllUser:n,isMessageDisableForAllUser:o,speechMode:a}=e;this.localUser.userId===t&&(this.localUser.userRole=i.TUIRole.kRoomOwner),this.masterUserId=t,this.isMicrophoneDisableForAllUser=r,this.isCameraDisableForAllUser=n,this.isMessageDisableForAllUser=o,this.speechMode=a,this.canControlSelfAudio=!this.isMicrophoneDisableForAllUser,this.canControlSelfVideo=!this.isCameraDisableForAllUser},setDisableMicrophoneForAllUserByAdmin(e){this.isMicrophoneDisableForAllUser=e},setDisableCameraForAllUserByAdmin(e){this.isCameraDisableForAllUser=e},setDisableMessageAllUserByAdmin(e){this.isMessageDisableForAllUser=e},setMasterUserId(e){this.masterUserId=e},setRoomParam(e){if(!e)return;const{isOpenCamera:t,isOpenMicrophone:r,defaultCameraId:n,defaultMicrophoneId:i,defaultSpeakerId:o}=e;n&&(this.setCurrentCameraId(n),c.instance?.setCurrentCameraDevice({deviceId:n})),i&&(this.setCurrentMicrophoneId(i),c.instance?.setCurrentMicDevice({deviceId:i})),o&&(this.setCurrentSpeakerId(o),c.instance?.setCurrentSpeakerDevice({deviceId:o})),(this.isMaster||!this.isMicrophoneDisableForAllUser&&this.isFreeSpeakMode)&&"boolean"===typeof r&&(this.isDefaultOpenMicrophone=r),(this.isMaster||!this.isCameraDisableForAllUser&&this.isFreeSpeakMode)&&"boolean"===typeof t&&(this.isDefaultOpenCamera=t)},setCanControlSelfAudio(e){this.canControlSelfAudio=e},setCanControlSelfVideo(e){this.canControlSelfVideo=e},updateVideoQuality(e){this.localVideoQuality=e},setCameraList(e){this.cameraList=e,!this.currentCameraId&&e.length>0&&this.setCurrentCameraId(e[0].deviceId)},setMicrophoneList(e){this.microphoneList=e,!this.currentMicrophoneId&&e.length>0&&this.setCurrentMicrophoneId(e[0].deviceId)},setSpeakerList(e){this.speakerList=e,!this.currentSpeakerId&&e.length>0&&this.setCurrentSpeakerId(e[0].deviceId)},setMicrophoneDisableState(e){this.isMicrophoneDisableForAllUser=e},setCameraDisableState(e){this.isCameraDisableForAllUser=e},setMuteUserChat(e,t){const r=this.remoteUserObj[e];r&&(r.isChatMutedByMaster=t)},setRemoteUserRole(e,t){const r=this.remoteUserObj[e];r&&(r.userRole=t)},setRequestUserOpenMic(e){const{userId:t,isRequesting:r,requestId:n}=e,i=this.remoteUserObj[t];i&&(i.isRequestingUserOpenMic=r,i.requestUserOpenMicRequestId=r?n:"")},setRequestUserOpenCamera(e){const{userId:t,isRequesting:r,requestId:n}=e,i=this.remoteUserObj[t];i&&(i.isRequestingUserOpenCamera=r,i.requestUserOpenCameraRequestId=r?n:"")},addApplyToAnchorUser(e){const{userId:t,requestId:r}=e,n=this.remoteUserObj[t];n&&(n.isUserApplyingToAnchor=!0,n.applyToAnchorRequestId=r)},removeApplyToAnchorUser(e){const t=this.remoteUserObj[e];t&&(t.isUserApplyingToAnchor=!1,t.applyToAnchorRequestId="")},addInviteToAnchorUser(e){const{userId:t,requestId:r}=e,n=this.remoteUserObj[t];n&&(n.isInvitingUserToAnchor=!0,n.inviteToAnchorRequestId=r)},removeInviteToAnchorUser(e){const t=this.remoteUserObj[e];t&&(t.isInvitingUserToAnchor=!1,t.inviteToAnchorRequestId="")},setHasOtherScreenShare(e){this.hasOtherScreenShare=e},reset(){this.localUser={userId:"",userName:"",avatarUrl:"",hasAudioStream:!1,hasVideoStream:!1,hasScreenStream:!1,userRole:i.TUIRole.kGeneralUser,audioVolume:0,onSeat:!1,cameraStreamInfo:{userId:"",userName:"",avatarUrl:"",audioVolume:0,hasAudioStream:!1,hasVideoStream:!1,streamType:i.TUIVideoStreamType.kCameraStream,isVisible:!0},screenStreamInfo:{userId:"",userName:"",avatarUrl:"",hasScreenStream:!1,streamType:i.TUIVideoStreamType.kScreenStream,isVisible:!0}},this.remoteUserObj={},this.isDefaultOpenCamera=!1,this.isDefaultOpenMicrophone=!1,this.canControlSelfAudio=!0,this.canControlSelfVideo=!0,this.localVideoQuality=i.TUIVideoQuality.kVideoQuality_720p,this.currentCameraId="",this.currentMicrophoneId="",this.currentSpeakerId="",this.cameraList=[],this.microphoneList=[],this.speakerList=[],this.masterUserId="",this.isMicrophoneDisableForAllUser=!1,this.isCameraDisableForAllUser=!1,this.isMessageDisableForAllUser=!1,this.speechMode=i.TUISpeechMode.kFreeToSpeak,this.hasVideoStreamObject={},this.hasOtherScreenShare=!1}}})},5581:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(4237);function i(){let e=(0,n.eY)("lang")||localStorage.getItem("tuiRoom-language")||navigator.language||"zh";return e=e.replace(/_/,"-").toLowerCase(),"zh-cn"===e||"zh"===e?e="zh-CN":"en"!==e&&"en-us"!==e&&"en-GB"!==e||(e="en-US"),e}},6419:function(e,t,r){"use strict";var n;r.d(t,{Z:function(){return u}}),function(e){e["ON_CHANGE_LOG_LEVEL"]="onChangeLogLevel"}(n||(n={}));const i={LOG_LEVEL_DEBUG:-1,LOG_LEVEL_LOG:0,LOG_LEVEL_INFO:1,LOG_LEVEL_WARN:2,LOG_LEVEL_ERROR:3,LOG_LEVEL_NON_LOGGING:4};var o;function a(e){const t=e.toString().length;let r;switch(t){case 1:r=`00${e}`;break;case 2:r=`0${e}`;break;default:r=e;break}return r}function s(e){const t=new Date;return`${t.toLocaleTimeString("en-US",{hour12:!1})}.${a(t.getMilliseconds())} [${e}]:`}(function(e){e["MAIN"]="main-process",e["RENDER"]="render-process"})(o||(o={}));let l=i.LOG_LEVEL_DEBUG;const c={debug(...e){l<=i.LOG_LEVEL_DEBUG&&console.debug(`${s(o.RENDER)}`,...e)},log(...e){l<=i.LOG_LEVEL_LOG&&console.log(`${s(o.RENDER)}`,...e)},info(...e){l<=i.LOG_LEVEL_INFO&&console.info(`${s(o.RENDER)}`,...e)},warn(...e){l<=i.LOG_LEVEL_WARN&&console.warn(`${s(o.RENDER)}`,...e)},error(...e){l<=i.LOG_LEVEL_ERROR&&console.error(`${s(o.RENDER)}`,...e)},setLevel(e){e>=i.LOG_LEVEL_DEBUG&&e<=i.LOG_LEVEL_NON_LOGGING?(console.log(`${s(o.RENDER)} set log level from ${l} to ${e}`),l=e,window.electron?.ipcRenderer&&window.electron.ipcRenderer.send(n.ON_CHANGE_LOG_LEVEL,e)):console.error(`${s(o.RENDER)} logger.setLevel() invalid params:${e}`)},getLevel(){return l}};var u=c},7175:function(e,t,r){"use strict";r.d(t,{$B:function(){return o},P_:function(){return i},Uh:function(){return a}});var n=r(6369);const i=/^2\.7\.*/.test(n.version),o=/^3\.*/.test(n.version),a=void 0},2843:function(e,t,r){"use strict";r.d(t,{e:function(){return n},t:function(){return i}});const n="undefined"!==typeof wx&&"function"===typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),i=window?.matchMedia("(max-width: 600px)").matches||n},4237:function(e,t,r){"use strict";r.d(t,{jO:function(){return i},Ds:function(){return o},Pr:function(){return l},eY:function(){return c},Al:function(){return u},o8:function(){return h},EV:function(){return s},P2:function(){return a}});var n=r(2843);const i=e=>new Promise(((t,r)=>{if(n.e)uni.setClipboardData({data:e,success(){uni.getClipboardData({success(e){t({code:0,data:e})},fail(e){r({code:-1,err:e})}})},fail(e){r({code:-1,err:e})}});else try{navigator.clipboard.writeText(`${e}`),t({code:0,data:e})}catch(i){r({code:-1,err:i})}}));function o(e,t){let r;return function(...n){r>0&&clearTimeout(r),r=window?.setTimeout((()=>{e.apply(this,n),r=-1}),t)}}function a(e,t){let r=0;return function(...n){const i=Date.now();i-r>t&&(e.apply(this,n),r=i)}}function s(e){const t=e;t?.requestFullscreen?t?.requestFullscreen():t?.mozRequestFullScreen?t?.mozRequestFullScreen():t?.webkitRequestFullScreen?t?.webkitRequestFullScreen():t?.msRequestFullscreen&&t?.msRequestFullscreen()}function l(){if(!document?.fullscreenElement&&!document?.webkitFullscreenElement&&!document?.mozFullScreenElement)return;const e=document;e?.exitFullscreen?e?.exitFullscreen():e?.msExitFullscreen?e?.msExitFullscreen():e?.mozCancelFullScreen?e?.mozCancelFullScreen():e?.webkitExitFullscreen&&e?.webkitExitFullscreen()}function c(e){const t=window?.location.href.replace(/^[^?]*\?/,""),r=new RegExp(`(^|&)${e}=([^&#]*)(&|$|)`,"i"),n=t?.match(r);return n?n[2]:null}function u(){const e=navigator?.userAgent.toLowerCase();return e?.indexOf(" electron/")>-1}function h(e){return"undefined"===typeof e}},3303:function(e,t,r){"use strict";var n=r(6369);t["Z"]=n["default"]},3470:function(e,t,r){"use strict";var n=r(6369),i=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},o=[],a=r(3736),s={},l=(0,a.Z)(s,i,o,!1,null,null,null),c=l.exports,u=r(9255),h=r(1020),d=r(8499),f=r.n(d),p=r(7357);n["default"].use(h.og);const m=(0,h.WB)();n["default"].use(f()),n["default"].use(p.Z),n["default"].config.productionTip=!1,new n["default"]({pinia:m,router:u.Z,render:e=>e(c)}).$mount("#app")},9255:function(e,t,r){"use strict";r.d(t,{Z:function(){return Wa}});var n=r(6369),i=r(2631),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"home-container"},[t("div",{staticClass:"header"},[t("user-info",{staticClass:"header-item user-info",attrs:{"user-id":e.userId,"user-name":e.userName,"user-avatar":e.userAvatar},on:{"log-out":e.handleLogOut}}),t("language-icon",{staticClass:"header-item language"}),t("switch-theme",{staticClass:"header-item theme"})],1),e.isMobile?e._e():t("stream-preview",{ref:"streamPreviewRef"}),t("room-control",{ref:"roomControlRef",attrs:{"given-room-id":e.givenRoomId,"user-name":e.userName||e.userId},on:{"create-room":e.handleCreateRoom,"enter-room":e.handleEnterRoom}})],1)},a=[],s=(r(7658),r(9643)),l=r(9139),c=r(7698),u=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",[t("div",{directives:[{name:"loading",rawName:"v-loading",value:r.loading,expression:"loading"}],staticClass:"stream-container",attrs:{"element-loading-background":"#000000"}},[t("div",{ref:"streamPreviewRef",staticClass:"stream-preview",attrs:{id:"stream-preview"}}),r.isCameraMuted?t("div",{staticClass:"stream-info"},[t("span",{staticClass:"attention-info"},[e._v(e._s(r.t("Off Camera")))])]):e._e(),t("div",{staticClass:"control-region"},[t(r.IconButton,{ref:"audioIconButtonRef",attrs:{title:r.t("Mic"),"is-active":r.isMicMuted,"hide-hover-effect":!0,"has-more":!0},on:{"click-icon":r.toggleMuteAudio,"click-more":r.handleMicSetting}},[t(r.AudioIcon,{attrs:{"audio-volume":r.audioVolume,"is-muted":r.isMicMuted}})],1),t(r.IconButton,{ref:"videoIconButtonRef",staticClass:"icon",attrs:{title:r.t("Camera"),"is-active":r.isCameraMuted,"icon-name":r.cameraIconName,"hide-hover-effect":!0,"has-more":!0},on:{"click-icon":r.toggleMuteVideo,"click-more":r.handleCameraSetting}})],1)]),t("div",{staticClass:"drawer-container"},[t(r.Drawer,{attrs:{"model-value":r.isSettingOpen,modal:!1,title:r.t(r.settingTitle),direction:"rtl","before-close":r.handleDrawerClose,size:480}},["audio"===r.settingTab?t(r.AudioSettingTab,{attrs:{mode:r.SettingMode.DETAIL}}):"video"===r.settingTab?t(r.VideoSettingTab,{attrs:{mode:r.SettingMode.DETAIL,"with-preview":!1}}):e._e()],1)],1)])},h=[],d=r(452),f=r.n(d),p=r(2097),m=r(3927),v=r(3929),g=r(8283),_=r(1342),w=r(4990),b=r(6671),y=r(7357),S=r(3681),k=r(4237),C=r(4679),A=r(3235),I=r(6419),T=(0,n.defineComponent)({__name:"StreamPreview",setup(e,{expose:t}){const r=(0,w.A)(),{t:i}=(0,y.Q)(),o=(0,n.ref)(0),a=(0,k.Al)(),s=(0,S.Z)();t({getRoomParam:M,startStreamPreview:x});const l={isOpenCamera:!0,isOpenMicrophone:!0,defaultCameraId:"",defaultMicrophoneId:"",defaultSpeakerId:""},c=(0,n.ref)(),u=(0,n.ref)(!0),h=(0,n.ref)(!1),T=(0,n.ref)(!1),E=(0,n.computed)((()=>T.value?b.Z.CameraOff:b.Z.CameraOn));async function R(){h.value=!h.value,l.isOpenMicrophone=!h.value,h.value?(await(s.instance?.stopMicDeviceTest()),o.value=0):await(s.instance?.startMicDeviceTest({interval:200}))}async function L(){T.value=!T.value,l.isOpenCamera=!T.value,T.value?await(s.instance?.stopCameraDeviceTest()):await(s.instance?.startCameraDeviceTest({view:"stream-preview"}))}function M(){return l.defaultCameraId=r.currentCameraId,l.defaultMicrophoneId=r.currentMicrophoneId,l.defaultSpeakerId=r.currentSpeakerId,l}const U=e=>{o.value=e};async function x(){const e=await(s.instance?.getCameraDevicesList()),t=await(s.instance?.getMicDevicesList()),n=await(s.instance?.getSpeakerDevicesList()),o=e&&e.length>0,a=t&&t.length>0;let l="";o&&!a?l="Microphone not detected on current device":!o&&a?l="Camera not detected on current device":o||a||(l="Camera And Microphone not detected on current device"),l&&A.T.alert(i(l),i("Note"),{customClass:"custom-element-class",confirmButtonText:i("Confirm")}),e&&r.setCameraList(e),t&&r.setMicrophoneList(t),n&&r.setSpeakerList(n);const c=s.instance?.getCurrentCameraDevice(),h=s.instance?.getCurrentMicDevice(),d=s.instance?.getCurrentSpeakerDevice();c&&c.deviceId&&r.setCurrentCameraId(c.deviceId),h&&h.deviceId&&r.setCurrentMicrophoneId(h.deviceId),d&&d.deviceId&&r.setCurrentSpeakerId(d.deviceId),o&&await(s.instance?.startCameraDeviceTest({view:"stream-preview"})),a&&await(s.instance?.startMicDeviceTest({interval:200})),u.value=!1}async function D(e){const t=["add","remove","active"],{deviceId:n,type:i,state:o}=e;if(i===d.TRTCDeviceType.TRTCDeviceTypeMic){I.Z.log(`onDeviceChange: deviceId: ${n}, type: microphone, state: ${t[o]}`);const e=await(s.instance?.getMicDevicesList());return r.setMicrophoneList(e),void(o===d.TRTCDeviceState.TRTCDeviceStateActive&&r.setCurrentMicrophoneId(n))}if(i===d.TRTCDeviceType.TRTCDeviceTypeSpeaker){I.Z.log(`onDeviceChange: deviceId: ${n}, type: speaker, state: ${t[o]}`);const e=await(s.instance?.getSpeakerDevicesList());return r.setSpeakerList(e),void(o===d.TRTCDeviceState.TRTCDeviceStateActive&&r.setCurrentSpeakerId(n))}if(i===d.TRTCDeviceType.TRTCDeviceTypeCamera){I.Z.log(`onDeviceChange: deviceId: ${n}, type: camera, state: ${t[o]}`);const e=await(s.instance?.getCameraDevicesList());r.setCameraList(e),o===d.TRTCDeviceState.TRTCDeviceStateActive&&r.setCurrentCameraId(n)}}f().once("ready",(async()=>{const e=s.instance?.getTRTCCloud();e?.on("onTestMicVolume",U),s.instance?.on(d.TUIRoomEvents.onDeviceChange,D)})),(0,n.onBeforeUnmount)((async()=>{await(s.instance?.stopCameraDeviceTest()),await(s.instance?.stopMicDeviceTest());const e=s.instance?.getTRTCCloud();e?.off("onTestMicVolume",U),s.instance?.off(d.TUIRoomEvents.onDeviceChange,D)}));const O=(0,n.ref)(!1),N=(0,n.ref)(""),B=(0,n.ref)("");function P(){O.value=!0,N.value="Mic settings",B.value="audio"}function z(){O.value=!0,N.value="Camera settings",B.value="video"}function F(e){B.value="",O.value=!1,e()}return{__sfc:!0,roomStore:r,t:i,audioVolume:o,isElectron:a,roomEngine:s,tuiRoomParam:l,streamPreviewRef:c,loading:u,isMicMuted:h,isCameraMuted:T,cameraIconName:E,toggleMuteAudio:R,toggleMuteVideo:L,getRoomParam:M,onUserVoiceVolume:U,startStreamPreview:x,onDeviceChange:D,isSettingOpen:O,settingTitle:N,settingTab:B,handleMicSetting:P,handleCameraSetting:z,handleDrawerClose:F,IconButton:p.Z,SettingMode:m.n,AudioSettingTab:v.Z,VideoSettingTab:g.Z,AudioIcon:_.Z,Drawer:C.Z}}}),E=T,R=r(3736),L=(0,R.Z)(E,u,h,!1,null,null,null),M=L.exports,U=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"control-container"},[r.showRoomDetail?e._e():t("div",{staticClass:"container-header"},[t("div",[r.isEN?t("div",{staticClass:"login-logo"},[t("img",{staticClass:"login-top",attrs:{src:r.logoEn}})]):t("div",{staticClass:"container-icon"},[t(r.SvgIcon,{staticClass:"tencent-cloud",attrs:{"icon-name":"tencent-cloud",size:"custom"}}),t(r.SvgIcon,{staticClass:"tencent-cloud-text",attrs:{"icon-name":"tencent-cloud-text",size:"custom"}})],1)]),t("div",{staticClass:"container-bottom"},[t("div",{directives:[{name:"tap",rawName:"v-tap",value:r.enterRoom,expression:"enterRoom"}],staticClass:"join-room"},[t(r.SvgIcon,{staticClass:"enter-icon",attrs:{"icon-name":"enter-room",size:"custom"}}),t("span",{staticClass:"title"},[e._v(e._s(r.t("Join Room")))])],1),t("div",{directives:[{name:"tap",rawName:"v-tap",value:r.createRoom,expression:"createRoom"}],staticClass:"create-room"},[t(r.SvgIcon,{staticClass:"add-icon",attrs:{"icon-name":"add-icon",size:"custom"}}),t("span",{staticClass:"title"},[e._v(e._s(r.t("New Room")))])],1)])]),r.showRoomDetail||r.hasGivenRoomId?t("div",{staticClass:"room-detail"},[t("div",{staticClass:"room-detail-header"},[t(r.SvgIcon,{directives:[{name:"tap",rawName:"v-tap",value:r.handleClose,expression:"handleClose"}],staticClass:"close-icon",attrs:{"icon-name":"close-back",size:"custom"}}),r.isJoinRoom||r.hasGivenRoomId?t("span",{staticClass:"room-detail-header-title"},[e._v(e._s(r.t("Join Room")))]):t("span",{staticClass:"room-detail-header-title"},[e._v(e._s(r.t("New Room")))])],1),t("div",{staticClass:"room-detail-middle"},[t("div",{staticClass:"room-detail-info"},[r.isJoinRoom||r.hasGivenRoomId?t("div",{staticClass:"room-detail-info-box"},[t("span",{staticClass:"room-detail-title"},[e._v(" "+e._s(r.t("Room ID")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:r.roomId,expression:"roomId"}],staticClass:"roomid-input",attrs:{type:"number",placeholder:r.t("Enter room ID"),maxlength:"10",enterkeyhint:"complete"},domProps:{value:r.roomId},on:{keyup:r.handleInput,input:function(e){e.target.composing||(r.roomId=e.target.value)}}})]):t("div",{staticClass:"room-detail-info-box",on:{click:r.chooseRoomType}},[t("span",{staticClass:"room-detail-title"},[e._v(" "+e._s(r.t("Room Type")))]),t("div",{staticClass:"room-show-title"},[t("span",{staticClass:"room-show-title"},[e._v(e._s(r.roomType))])]),t(r.SvgIcon,{staticClass:"chevron-down-icon",attrs:{"icon-name":"chevron-down",size:"custom"}})],1),t("div",{staticClass:"room-detail-info-box"},[t("span",{staticClass:"room-detail-title"},[e._v(e._s(r.t("Your Name")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:r.currentUserName,expression:"currentUserName"}],staticClass:"roomid-input",attrs:{enterkeyhint:"complete",maxlength:"16",minlength:"1"},domProps:{value:r.currentUserName},on:{keyup:r.handleInputName,input:function(e){e.target.composing||(r.currentUserName=e.target.value)}}})])]),t("div",{staticClass:"room-detail-setting"},[t("div",{staticClass:"room-detail-setting-list"},[e._v(" "+e._s(r.t("Turn on the microphone"))+" "),t("div",{directives:[{name:"tap",rawName:"v-tap",value:()=>r.toggle("isMicOn"),expression:"() => toggle('isMicOn')"}],staticClass:"slider-box",class:[r.isMicOn&&"slider-open"]},[t("span",{staticClass:"slider-block"})])]),t("div",{staticClass:"room-detail-setting-list"},[e._v(" "+e._s(r.t("Turn on the video"))+" "),t("div",{directives:[{name:"tap",rawName:"v-tap",value:()=>r.toggle("isCamerOn"),expression:"() => toggle('isCamerOn')"}],staticClass:"slider-box",class:[r.isCamerOn&&"slider-open"]},[t("span",{staticClass:"slider-block"})])])])]),t("div",{staticClass:"room-detail-bottom"},[r.isJoinRoom||r.hasGivenRoomId?t("span",{directives:[{name:"tap",rawName:"v-tap",value:()=>r.handleRoomOption("Join"),expression:"() => handleRoomOption('Join')"}],staticClass:"button"},[e._v(e._s(r.t("Join Room")))]):t("span",{directives:[{name:"tap",rawName:"v-tap",value:()=>r.handleRoomOption("New"),expression:"() => handleRoomOption('New')"}],staticClass:"button"},[e._v(e._s(r.t("New Room")))])])]):e._e(),r.showMoreType?t("div",{staticClass:"room-choose-mobile"},[t("div",{ref:"moreTypeRef",class:[r.showMoreType?"room-type-container":"close-room-type-container"]},[t("div",{staticClass:"room-choose-button"},[t("span",{staticClass:"choose-cancel",on:{click:function(e){r.showMoreType=!1}}},[e._v(e._s(r.t("Cancel")))]),t("span",{directives:[{name:"tap",rawName:"v-tap",value:r.handleConfirm,expression:"handleConfirm"}],staticClass:"choose-confirm"},[e._v(e._s(r.t("Sure")))])]),t("div",{staticClass:"room-type-hidden"},[t("span",{directives:[{name:"tap",rawName:"v-tap",value:()=>r.chooseCurrentType("FreeToSpeak"),expression:"() => chooseCurrentType('FreeToSpeak')"}],staticClass:"room-choose-title",class:["FreeToSpeak"===r.mode&&"room-current-title"]},[e._v(e._s(r.t("Free Speech Room")))]),t("span",{directives:[{name:"tap",rawName:"v-tap",value:()=>r.chooseCurrentType("SpeakAfterTakingSeat"),expression:"() => chooseCurrentType('SpeakAfterTakingSeat')"}],staticClass:"room-choose-title",class:["SpeakAfterTakingSeat"===r.mode&&"room-current-title"]},[e._v(e._s(r.t("Raise Hand Room")))])])])]):e._e()])},x=[],D=r(6316),O=r.p+"img/logo.2972e3c8.png",N=r.p+"img/logo-en.a0a06d09.png";function B(){const e=(0,n.computed)((()=>"zh-CN"===y.Z.global.locale.value?O:N)),t=(0,n.computed)((()=>"en-US"===y.Z.global.locale.value)),r=(0,n.ref)(!1),{t:i}=(0,y.Q)();return{logo:e,isEN:t,logoEn:N,t:i,showCreateRoomOption:r}}r(5175);var P=(0,n.defineComponent)({__name:"RoomControlH5",props:{userName:null,givenRoomId:null},emits:["create-room","enter-room","update-user-name"],setup(e,{expose:t,emit:r}){const i=e,{logoEn:o,t:a,isEN:s}=B(),l=(0,n.ref)(),c=(0,w.A)(),u=(0,n.ref)(!1),h=(0,n.ref)(!1),d=(0,n.ref)(!1),f=(0,n.computed)((()=>"FreeToSpeak"===v.value?a("Free Speech Room"):a("Raise Hand Room"))),p=(0,n.ref)(!0),m=(0,n.ref)(!0),v=(0,n.ref)("FreeToSpeak"),g=(0,n.ref)(""),_={isOpenCamera:!0,isOpenMicrophone:!0,defaultCameraId:"",defaultMicrophoneId:"",defaultSpeakerId:""};t({getRoomParam:R});const b=(0,n.ref)(i.userName||`user_${Math.ceil(10*Math.random())}`),y=(0,n.computed)((()=>"string"===typeof i.givenRoomId&&""!==i.givenRoomId));function S(){u.value=!u.value,d.value=!1}function k(){u.value=!u.value,d.value=!0}function C(){h.value=!h.value}function A(e){v.value=e}function I(){h.value=!h.value}function T(){u.value=!1,h.value=!1}function E(e){switch(e){case"isMicOn":p.value=!p.value,_.isOpenMicrophone=p.value;break;case"isCamerOn":m.value=!m.value,_.isOpenCamera=m.value;break;default:break}}function R(){return _.defaultCameraId=c.currentCameraId,_.defaultMicrophoneId=c.currentMicrophoneId,_.defaultSpeakerId=c.currentSpeakerId,_}function L(e){g.value=e.target.value}function M(e){b.value=e.target.value}function U(e){h.value&&!l.value.contains(e.target)&&(h.value=!1)}function x(e){switch(r("update-user-name",b.value),e){case"Join":r("enter-room",String(g.value));break;case"New":r("create-room",v.value);break;default:break}}return(0,n.watch)((()=>i.givenRoomId),(e=>{e&&(g.value=e)}),{immediate:!0}),(0,n.onMounted)((()=>{document?.addEventListener("click",U,!0)})),(0,n.onUnmounted)((()=>{document?.removeEventListener("click",U,!0)})),{__sfc:!0,logoEn:o,t:a,isEN:s,moreTypeRef:l,roomStore:c,showRoomDetail:u,showMoreType:h,isJoinRoom:d,roomType:f,isMicOn:p,isCamerOn:m,mode:v,roomId:g,tuiRoomParam:_,emit:r,props:i,currentUserName:b,hasGivenRoomId:y,createRoom:S,enterRoom:k,chooseRoomType:C,chooseCurrentType:A,handleConfirm:I,handleClose:T,toggle:E,getRoomParam:R,handleInput:L,handleInputName:M,handleDocumentClick:U,handleRoomOption:x,SvgIcon:D.Z}}}),z=P,F=(0,R.Z)(z,U,x,!1,null,"6b65407c",null),Z=F.exports,V=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"control-container"},[t("div",{staticClass:"control-content"},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.showLogo,expression:"showLogo"}],staticClass:"logo",attrs:{src:r.logo}}),r.hasGivenRoomId?t("div",{staticClass:"control-region"},[t("span",{staticClass:"invite-title"},[e._v(e._s(r.t("Join the room ?")))]),t("span",{staticClass:"invite-info"},[e._v(e._s(r.t("You are invited to room "))+e._s(`${e.givenRoomId} `)+e._s(r.t("Room")))]),t("div",{staticClass:"button enter-given-room-button",on:{click:r.enterGivenRoom}},[t("span",{staticClass:"title"},[e._v(e._s(r.t("Join")))])])]):t("div",{staticClass:"control-region"},[t("div",{staticClass:"button create-room-button",attrs:{type:"primary"},on:{mouseenter:r.handleMouseEnter,mouseleave:r.handleMouseLeave}},[t("div",{staticClass:"create-room"},[t(r.SvgIcon,{attrs:{"icon-name":"add-icon"}}),t("span",{staticClass:"title"},[e._v(e._s(r.t("New Room")))])],1),t("div",{staticClass:"connect-region"}),t("div",{directives:[{name:"show",rawName:"v-show",value:r.showCreateRoomOption,expression:"showCreateRoomOption"}],staticClass:"create-room-mode"},[t("div",{staticClass:"create-room-option",on:{click:function(e){return r.createRoom("FreeToSpeak")}}},[t(r.SvgIcon,{staticClass:"icon",attrs:{"icon-name":"free-speech-icon"}}),t("span",{staticClass:"title"},[e._v(e._s(r.t("Free Speech Room")))])],1),t("div",{staticClass:"create-room-option",on:{click:function(e){return r.createRoom("SpeakAfterTakingSeat")}}},[t(r.SvgIcon,{staticClass:"icon",attrs:{"icon-name":"apply-speech-icon"}}),t("span",{staticClass:"title"},[e._v(e._s(r.t("Raise Hand Room")))])],1)])]),t("div",{staticClass:"button join-room-button",attrs:{type:"primary"},on:{click:r.enterRoom}},[t("input",{directives:[{name:"model",rawName:"v-model",value:r.roomId,expression:"roomId"}],staticClass:"input",attrs:{placeholder:r.t("Enter room ID"),maxlength:"10"},domProps:{value:r.roomId},on:{click:function(e){e.stopPropagation()},input:function(e){e.target.composing||(r.roomId=e.target.value)}}}),t("span",{staticClass:"title"},[e._v(e._s(r.t("Join Room")))])])])])])},j=[],H=(0,n.defineComponent)({__name:"RoomControlPC",props:{showLogo:{type:Boolean,default:!0},givenRoomId:null},emits:["create-room","enter-room"],setup(e,{emit:t}){const r=e,{logo:i,showCreateRoomOption:o,t:a}=B(),s=(0,n.computed)((()=>"string"===typeof r.givenRoomId&&""!==r.givenRoomId)),l=(0,n.ref)("");function c(){t("enter-room",r.givenRoomId)}function u(){o.value=!0}function h(){o.value=!1}function d(e){t("create-room",e)}function f(){l.value&&t("enter-room",String(l.value))}return(0,n.watch)(l,(e=>{l.value=e.replace(/[^\d]/g,"")})),{__sfc:!0,logo:i,showCreateRoomOption:o,t:a,props:r,hasGivenRoomId:s,roomId:l,emit:t,enterGivenRoom:c,handleMouseEnter:u,handleMouseLeave:h,createRoom:d,enterRoom:f,SvgIcon:D.Z}}}),G=H,Y=(0,R.Z)(G,V,j,!1,null,"e855f218",null),W=Y.exports,Q=r(2843);const K=Q.t?Z:W;var q=K,X=(r(541),r(2087),"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),J=[],$=[],ee="undefined"!=typeof Uint8Array?Uint8Array:Array,te=!1;function re(){te=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)J[t]=e[t],$[e.charCodeAt(t)]=t;$["-".charCodeAt(0)]=62,$["_".charCodeAt(0)]=63}function ne(e,t,r){for(var n,i,o=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(J[(i=n)>>18&63]+J[i>>12&63]+J[i>>6&63]+J[63&i]);return o.join("")}function ie(e){var t;te||re();for(var r=e.length,n=r%3,i="",o=[],a=0,s=r-n;a<s;a+=16383)o.push(ne(e,a,a+16383>s?s:a+16383));return 1===n?(t=e[r-1],i+=J[t>>2],i+=J[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=J[t>>10],i+=J[t>>4&63],i+=J[t<<2&63],i+="="),o.push(i),o.join("")}function oe(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,h=r?i-1:0,d=r?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=c}return(f?-1:1)*a*Math.pow(2,o-n)}function ae(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+f]=255&a,f+=p,a/=256,c-=8);e[r+f-p]|=128*m}var se={}.toString,le=Array.isArray||function(e){return"[object Array]"==se.call(e)};function ce(){return he.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ue(e,t){if(ce()<t)throw new RangeError("Invalid typed array length");return he.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=he.prototype:(null===e&&(e=new he(t)),e.length=t),e}function he(e,t,r){if(!(he.TYPED_ARRAY_SUPPORT||this instanceof he))return new he(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return pe(this,e)}return de(this,e,t,r)}function de(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),he.TYPED_ARRAY_SUPPORT?(e=t).__proto__=he.prototype:e=me(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!he.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|_e(t,r),i=(e=ue(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(ge(t)){var r=0|ve(t.length);return 0===(e=ue(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?ue(e,0):me(e,t);if("Buffer"===t.type&&le(t.data))return me(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function fe(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 pe(e,t){if(fe(t),e=ue(e,t<0?0:0|ve(t)),!he.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function me(e,t){var r=t.length<0?0:0|ve(t.length);e=ue(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function ve(e){if(e>=ce())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce().toString(16)+" bytes");return 0|e}function ge(e){return!(null==e||!e._isBuffer)}function _e(e,t){if(ge(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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ge(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Ye(e).length;default:if(n)return Ge(e).length;t=(""+t).toLowerCase(),n=!0}}function we(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return De(this,t,r);case"utf8":case"utf-8":return Le(this,t,r);case"ascii":return Ue(this,t,r);case"latin1":case"binary":return xe(this,t,r);case"base64":return Re(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function be(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function ye(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=he.from(t,n)),ge(t))return 0===t.length?-1:Se(e,t,r,n,i);if("number"==typeof t)return t&=255,he.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Se(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Se(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){h=!1;break}if(h)return o}return-1}function ke(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function Ce(e,t,r,n){return We(Ge(t,e.length-r),e,r,n)}function Ae(e,t,r,n){return We(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function Ie(e,t,r,n){return Ae(e,t,r,n)}function Te(e,t,r,n){return We(Ye(t),e,r,n)}function Ee(e,t,r,n){return We(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function Re(e,t,r){return 0===t&&r===e.length?ie(e):ie(e.slice(t,r))}function Le(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=h}return function(e){var t=e.length;if(t<=Me)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Me));return r}(n)}he.TYPED_ARRAY_SUPPORT=void 0===X.TYPED_ARRAY_SUPPORT||X.TYPED_ARRAY_SUPPORT,he.poolSize=8192,he._augment=function(e){return e.__proto__=he.prototype,e},he.from=function(e,t,r){return de(null,e,t,r)},he.TYPED_ARRAY_SUPPORT&&(he.prototype.__proto__=Uint8Array.prototype,he.__proto__=Uint8Array),he.alloc=function(e,t,r){return function(e,t,r,n){return fe(t),t<=0?ue(e,t):void 0!==r?"string"==typeof n?ue(e,t).fill(r,n):ue(e,t).fill(r):ue(e,t)}(null,e,t,r)},he.allocUnsafe=function(e){return pe(null,e)},he.allocUnsafeSlow=function(e){return pe(null,e)},he.isBuffer=Qe,he.compare=function(e,t){if(!ge(e)||!ge(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},he.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}},he.concat=function(e,t){if(!le(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return he.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=he.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!ge(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},he.byteLength=_e,he.prototype._isBuffer=!0,he.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)be(this,t,t+1);return this},he.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)be(this,t,t+3),be(this,t+1,t+2);return this},he.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)be(this,t,t+7),be(this,t+1,t+6),be(this,t+2,t+5),be(this,t+3,t+4);return this},he.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Le(this,0,e):we.apply(this,arguments)},he.prototype.equals=function(e){if(!ge(e))throw new TypeError("Argument must be a Buffer");return this===e||0===he.compare(this,e)},he.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+">"},he.prototype.compare=function(e,t,r,n,i){if(!ge(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},he.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},he.prototype.indexOf=function(e,t,r){return ye(this,e,t,r,!0)},he.prototype.lastIndexOf=function(e,t,r){return ye(this,e,t,r,!1)},he.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return ke(this,e,t,r);case"utf8":case"utf-8":return Ce(this,e,t,r);case"ascii":return Ae(this,e,t,r);case"latin1":case"binary":return Ie(this,e,t,r);case"base64":return Te(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},he.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Me=4096;function Ue(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function xe(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function De(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=He(e[o]);return i}function Oe(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function Ne(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Be(e,t,r,n,i,o){if(!ge(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Pe(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function ze(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function Fe(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ze(e,t,r,n,i){return i||Fe(e,0,r,4),ae(e,t,r,n,23,4),r+4}function Ve(e,t,r,n,i){return i||Fe(e,0,r,8),ae(e,t,r,n,52,8),r+8}he.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),he.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=he.prototype;else{var i=t-e;r=new he(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},he.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Ne(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},he.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Ne(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},he.prototype.readUInt8=function(e,t){return t||Ne(e,1,this.length),this[e]},he.prototype.readUInt16LE=function(e,t){return t||Ne(e,2,this.length),this[e]|this[e+1]<<8},he.prototype.readUInt16BE=function(e,t){return t||Ne(e,2,this.length),this[e]<<8|this[e+1]},he.prototype.readUInt32LE=function(e,t){return t||Ne(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},he.prototype.readUInt32BE=function(e,t){return t||Ne(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},he.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Ne(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},he.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Ne(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},he.prototype.readInt8=function(e,t){return t||Ne(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},he.prototype.readInt16LE=function(e,t){t||Ne(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},he.prototype.readInt16BE=function(e,t){t||Ne(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},he.prototype.readInt32LE=function(e,t){return t||Ne(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},he.prototype.readInt32BE=function(e,t){return t||Ne(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},he.prototype.readFloatLE=function(e,t){return t||Ne(e,4,this.length),oe(this,e,!0,23,4)},he.prototype.readFloatBE=function(e,t){return t||Ne(e,4,this.length),oe(this,e,!1,23,4)},he.prototype.readDoubleLE=function(e,t){return t||Ne(e,8,this.length),oe(this,e,!0,52,8)},he.prototype.readDoubleBE=function(e,t){return t||Ne(e,8,this.length),oe(this,e,!1,52,8)},he.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Be(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},he.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Be(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},he.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,1,255,0),he.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},he.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,2,65535,0),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Pe(this,e,t,!0),t+2},he.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,2,65535,0),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Pe(this,e,t,!1),t+2},he.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,4,4294967295,0),he.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ze(this,e,t,!0),t+4},he.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,4,4294967295,0),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ze(this,e,t,!1),t+4},he.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Be(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},he.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Be(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},he.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,1,127,-128),he.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},he.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,2,32767,-32768),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Pe(this,e,t,!0),t+2},he.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,2,32767,-32768),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Pe(this,e,t,!1),t+2},he.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,4,2147483647,-2147483648),he.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ze(this,e,t,!0),t+4},he.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Be(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),he.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ze(this,e,t,!1),t+4},he.prototype.writeFloatLE=function(e,t,r){return Ze(this,e,t,!0,r)},he.prototype.writeFloatBE=function(e,t,r){return Ze(this,e,t,!1,r)},he.prototype.writeDoubleLE=function(e,t,r){return Ve(this,e,t,!0,r)},he.prototype.writeDoubleBE=function(e,t,r){return Ve(this,e,t,!1,r)},he.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!he.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},he.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!he.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=ge(e)?e:Ge(new he(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var je=/[^+\/0-9A-Za-z-_]/g;function He(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ge(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Ye(e){return function(e){var t,r,n,i,o,a;te||re();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new ee(3*s/4-o),n=o>0?s-4:s;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)i=$[e.charCodeAt(t)]<<18|$[e.charCodeAt(t+1)]<<12|$[e.charCodeAt(t+2)]<<6|$[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=$[e.charCodeAt(t)]<<2|$[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=$[e.charCodeAt(t)]<<10|$[e.charCodeAt(t+1)]<<4|$[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(je,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function We(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Qe(e){return null!=e&&(!!e._isBuffer||Ke(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Ke(e.slice(0,0))}(e))}function Ke(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function qe(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof r.g?r.g:"undefined"!=typeof self&&self;var Xe=qe((function(e,t){var r;e.exports=(r=r||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=r(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)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)t[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(r||e.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new a.init(n,t)}}),s=n.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=4*o,l=i/s,c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*o,u=e.min(4*c,i);if(c){for(var h=0;h<c;h+=o)this._doProcessBlock(n,h);var d=n.splice(0,c);r.sigBytes-=u}return new a.init(d,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(i.Hasher=h.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.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,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}}),n.algo={});return n}(Math),r)})),Je=(qe((function(e,t){var r,n,i,o,a,s;e.exports=(i=(n=r=Xe).lib,o=i.Base,a=i.WordArray,(s=n.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=o.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,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return a.create(r,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),r)})),qe((function(e,t){var r;e.exports=(r=Xe,function(){if("function"==typeof ArrayBuffer){var e=r.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 r=e.byteLength,n=[],i=0;i<r;i++)n[i>>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),r.lib.WordArray)})),qe((function(e,t){var r;e.exports=(r=Xe,function(){var e=r,t=e.lib.WordArray,n=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i<r;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o<r;o++)n[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),r.enc.Utf16)})),qe((function(e,t){var r,n,i;e.exports=(i=(n=r=Xe).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,r){for(var n=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,l=r[e.charCodeAt(a)]>>>6-a%4*2;n[o>>>2]|=(s|l)<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)})),qe((function(e,t){var r;e.exports=(r=Xe,function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],_=e[t+7],w=e[t+8],b=e[t+9],y=e[t+10],S=e[t+11],k=e[t+12],C=e[t+13],A=e[t+14],I=e[t+15],T=o[0],E=o[1],R=o[2],L=o[3];T=c(T,E,R,L,a,7,s[0]),L=c(L,T,E,R,l,12,s[1]),R=c(R,L,T,E,f,17,s[2]),E=c(E,R,L,T,p,22,s[3]),T=c(T,E,R,L,m,7,s[4]),L=c(L,T,E,R,v,12,s[5]),R=c(R,L,T,E,g,17,s[6]),E=c(E,R,L,T,_,22,s[7]),T=c(T,E,R,L,w,7,s[8]),L=c(L,T,E,R,b,12,s[9]),R=c(R,L,T,E,y,17,s[10]),E=c(E,R,L,T,S,22,s[11]),T=c(T,E,R,L,k,7,s[12]),L=c(L,T,E,R,C,12,s[13]),R=c(R,L,T,E,A,17,s[14]),T=u(T,E=c(E,R,L,T,I,22,s[15]),R,L,l,5,s[16]),L=u(L,T,E,R,g,9,s[17]),R=u(R,L,T,E,S,14,s[18]),E=u(E,R,L,T,a,20,s[19]),T=u(T,E,R,L,v,5,s[20]),L=u(L,T,E,R,y,9,s[21]),R=u(R,L,T,E,I,14,s[22]),E=u(E,R,L,T,m,20,s[23]),T=u(T,E,R,L,b,5,s[24]),L=u(L,T,E,R,A,9,s[25]),R=u(R,L,T,E,p,14,s[26]),E=u(E,R,L,T,w,20,s[27]),T=u(T,E,R,L,C,5,s[28]),L=u(L,T,E,R,f,9,s[29]),R=u(R,L,T,E,_,14,s[30]),T=h(T,E=u(E,R,L,T,k,20,s[31]),R,L,v,4,s[32]),L=h(L,T,E,R,w,11,s[33]),R=h(R,L,T,E,S,16,s[34]),E=h(E,R,L,T,A,23,s[35]),T=h(T,E,R,L,l,4,s[36]),L=h(L,T,E,R,m,11,s[37]),R=h(R,L,T,E,_,16,s[38]),E=h(E,R,L,T,y,23,s[39]),T=h(T,E,R,L,C,4,s[40]),L=h(L,T,E,R,a,11,s[41]),R=h(R,L,T,E,p,16,s[42]),E=h(E,R,L,T,g,23,s[43]),T=h(T,E,R,L,b,4,s[44]),L=h(L,T,E,R,k,11,s[45]),R=h(R,L,T,E,I,16,s[46]),T=d(T,E=h(E,R,L,T,f,23,s[47]),R,L,a,6,s[48]),L=d(L,T,E,R,_,10,s[49]),R=d(R,L,T,E,A,15,s[50]),E=d(E,R,L,T,v,21,s[51]),T=d(T,E,R,L,k,6,s[52]),L=d(L,T,E,R,p,10,s[53]),R=d(R,L,T,E,y,15,s[54]),E=d(E,R,L,T,l,21,s[55]),T=d(T,E,R,L,w,6,s[56]),L=d(L,T,E,R,I,10,s[57]),R=d(R,L,T,E,g,15,s[58]),E=d(E,R,L,T,C,21,s[59]),T=d(T,E,R,L,m,6,s[60]),L=d(L,T,E,R,S,10,s[61]),R=d(R,L,T,E,f,15,s[62]),E=d(E,R,L,T,b,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+E|0,o[2]=o[2]+R|0,o[3]=o[3]+L|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),r.MD5)})),qe((function(e,t){var r,n,i,o,a,s,l,c;e.exports=(i=(n=r=Xe).lib,o=i.WordArray,a=i.Hasher,s=n.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var u=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=u<<1|u>>>31}var h=(n<<5|n>>>27)+s+l[c];h+=c<20?1518500249+(i&o|~i&a):c<40?1859775393+(i^o^a):c<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c),r.SHA1)})),qe((function(e,t){var r;e.exports=(r=Xe,function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),l[i]=r(e.pow(n,1/3)),i++),n++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],h=r[6],d=r[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=c[f-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[f]=m+c[f-7]+g+c[f-16]}var _=n&i^n&o^i&o,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),b=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&h)+l[f]+c[f];d=h,h=u,u=s,s=a+b|0,a=o,o=i,i=n,n=b+(w+_)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),r.SHA256)})),qe((function(e,t){var r,n,i,o,a,s;e.exports=(i=(n=r=Xe).lib.WordArray,o=n.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),r.SHA224)})),qe((function(e,t){var r;e.exports=(r=Xe,function(){var e=r,t=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],h=r[6],d=r[7],f=n.high,p=n.low,m=i.high,v=i.low,g=o.high,_=o.low,w=a.high,b=a.low,y=s.high,S=s.low,k=u.high,C=u.low,A=h.high,I=h.low,T=d.high,E=d.low,R=f,L=p,M=m,U=v,x=g,D=_,O=w,N=b,B=y,P=S,z=k,F=C,Z=A,V=I,j=T,H=E,G=0;G<80;G++){var Y=c[G];if(G<16)var W=Y.high=0|e[t+2*G],Q=Y.low=0|e[t+2*G+1];else{var K=c[G-15],q=K.high,X=K.low,J=(q>>>1|X<<31)^(q>>>8|X<<24)^q>>>7,$=(X>>>1|q<<31)^(X>>>8|q<<24)^(X>>>7|q<<25),ee=c[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=c[G-7],ae=oe.high,se=oe.low,le=c[G-16],ce=le.high,ue=le.low;W=(W=(W=J+ae+((Q=$+se)>>>0<$>>>0?1:0))+ne+((Q+=ie)>>>0<ie>>>0?1:0))+ce+((Q+=ue)>>>0<ue>>>0?1:0),Y.high=W,Y.low=Q}var he,de=B&z^~B&Z,fe=P&F^~P&V,pe=R&M^R&x^M&x,me=L&U^L&D^U&D,ve=(R>>>28|L<<4)^(R<<30|L>>>2)^(R<<25|L>>>7),ge=(L>>>28|R<<4)^(L<<30|R>>>2)^(L<<25|R>>>7),_e=(B>>>14|P<<18)^(B>>>18|P<<14)^(B<<23|P>>>9),we=(P>>>14|B<<18)^(P>>>18|B<<14)^(P<<23|B>>>9),be=l[G],ye=be.high,Se=be.low,ke=j+_e+((he=H+we)>>>0<H>>>0?1:0),Ce=ge+me;j=Z,H=V,Z=z,V=F,z=B,F=P,B=O+(ke=(ke=(ke=ke+de+((he+=fe)>>>0<fe>>>0?1:0))+ye+((he+=Se)>>>0<Se>>>0?1:0))+W+((he+=Q)>>>0<Q>>>0?1:0))+((P=N+he|0)>>>0<N>>>0?1:0)|0,O=x,N=D,x=M,D=U,M=R,U=L,R=ke+(ve+pe+(Ce>>>0<ge>>>0?1:0))+((L=he+Ce|0)>>>0<he>>>0?1:0)|0}p=n.low=p+L,n.high=f+R+(p>>>0<L>>>0?1:0),v=i.low=v+U,i.high=m+M+(v>>>0<U>>>0?1:0),_=o.low=_+D,o.high=g+x+(_>>>0<D>>>0?1:0),b=a.low=b+N,a.high=w+O+(b>>>0<N>>>0?1:0),S=s.low=S+P,s.high=y+B+(S>>>0<P>>>0?1:0),C=u.low=C+F,u.high=k+z+(C>>>0<F>>>0?1:0),I=h.low=I+V,h.high=A+Z+(I>>>0<V>>>0?1:0),E=d.low=E+H,d.high=T+j+(E>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,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(u),e.HmacSHA512=t._createHmacHelper(u)}(),r.SHA512)})),qe((function(e,t){var r,n,i,o,a,s,l,c;e.exports=(i=(n=r=Xe).x64,o=i.Word,a=i.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c),r.SHA384)})),qe((function(e,t){var r;e.exports=(r=Xe,function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.x64.Word,s=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var f=(1<<d)-1;f<32?h^=1<<f:s^=1<<f-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,h)}}();var h=[];!function(){for(var e=0;e<25;e++)h[e]=a.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(E=r[i]).high^=a,E.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,p=0,m=0;m<5;m++)f^=(E=r[d+5*m]).high,p^=E.low;var v=h[d];v.high=f,v.low=p}for(d=0;d<5;d++){var g=h[(d+4)%5],_=h[(d+1)%5],w=_.high,b=_.low;for(f=g.high^(w<<1|b>>>31),p=g.low^(b<<1|w>>>31),m=0;m<5;m++)(E=r[d+5*m]).high^=f,E.low^=p}for(var y=1;y<25;y++){var S=(E=r[y]).high,k=E.low,C=l[y];C<32?(f=S<<C|k>>>32-C,p=k<<C|S>>>32-C):(f=k<<C-32|S>>>64-C,p=S<<C-32|k>>>64-C);var A=h[c[y]];A.high=f,A.low=p}var I=h[0],T=r[0];for(I.high=T.high,I.low=T.low,d=0;d<5;d++)for(m=0;m<5;m++){var E=r[y=d+5*m],R=h[y],L=h[(d+1)%5+5*m],M=h[(d+2)%5+5*m];E.high=R.high^~L.high&M.high,E.low=R.low^~L.low&M.low}E=r[0];var U=u[s];E.high^=U.high,E.low^=U.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var h=a[u],d=h.high,f=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(d)}return new i.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),r.SHA3)})),qe((function(e,t){var r;e.exports=(r=Xe,function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=i.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=i.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=i.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]),u=i.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]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,f,b,y,S,k,C,A,I,T,E=this._hash.words,R=h.words,L=d.words,M=s.words,U=l.words,x=c.words,D=u.words;for(S=o=E[0],k=a=E[1],C=f=E[2],A=b=E[3],I=y=E[4],r=0;r<80;r+=1)T=o+e[t+M[r]]|0,T+=r<16?p(a,f,b)+R[0]:r<32?m(a,f,b)+R[1]:r<48?v(a,f,b)+R[2]:r<64?g(a,f,b)+R[3]:_(a,f,b)+R[4],T=(T=w(T|=0,x[r]))+y|0,o=y,y=b,b=w(f,10),f=a,a=T,T=S+e[t+U[r]]|0,T+=r<16?_(k,C,A)+L[0]:r<32?g(k,C,A)+L[1]:r<48?v(k,C,A)+L[2]:r<64?m(k,C,A)+L[3]:p(k,C,A)+L[4],T=(T=w(T|=0,D[r]))+I|0,S=I,I=A,A=w(C,10),C=k,k=T;T=E[1]+f+A|0,E[1]=E[2]+b+I|0,E[2]=E[3]+y+S|0,E[3]=E[4]+o+k|0,E[4]=E[0]+a+C|0,E[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function m(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function _(e,t,r){return e^(t|~r)}function w(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),r.RIPEMD160)})),qe((function(e,t){var r,n,i,o,a,s;e.exports=(n=(r=Xe).lib,i=n.Base,o=r.enc,a=o.Utf8,s=r.algo,void(s.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,l=o.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=o.sigBytes=n,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=this._hasher,r=t.finalize(e);t.reset();var n=t.finalize(this._oKey.clone().concat(r));return n}})))})),qe((function(e,t){var r,n,i,o,a,s,l,c,u;e.exports=(i=(n=r=Xe).lib,o=i.Base,a=i.WordArray,s=n.algo,l=s.SHA1,c=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,l=o.words,u=r.keySize,h=r.iterations;s.length<u;){var d=n.update(t).finalize(o);n.reset();for(var f=d.words,p=f.length,m=d,v=1;v<h;v++){m=n.finalize(m),n.reset();for(var g=m.words,_=0;_<p;_++)f[_]^=g[_]}i.concat(d),l[0]++}return i.sigBytes=4*u,i}}),n.PBKDF2=function(e,t,r){return u.create(r).compute(e,t)},r.PBKDF2)})),qe((function(e,t){var r,n,i,o,a,s,l,c;e.exports=(i=(n=r=Xe).lib,o=i.Base,a=i.WordArray,s=n.algo,l=s.MD5,c=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=a.create(),o=i.words,s=r.keySize,l=r.iterations;o.length<s;){c&&n.update(c);var c=n.update(e).finalize(t);n.reset();for(var u=1;u<l;u++)c=n.finalize(c),n.reset();i.concat(c)}return i.sigBytes=4*s,i}}),n.EvpKDF=function(e,t,r){return c.create(r).compute(e,t)},r.EvpKDF)})),qe((function(e,t){var r,n,i,o,a,s,l,c,u,h,d,f,p,m,v,g,_,w,b,y,S,k,C,A;e.exports=void((r=Xe).lib.Cipher||(i=r,o=i.lib,a=o.Base,s=o.WordArray,l=o.BufferedBlockAlgorithm,c=i.enc,c.Utf8,u=c.Base64,h=i.algo,d=h.EvpKDF,f=o.Cipher=l.extend({cfg:a.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,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.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?A:S}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),o.StreamCipher=f.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),p=i.mode={},m=o.BlockCipherMode=a.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}}),v=p.CBC=function(){var e=m.extend();function t(e,t,r){var i=this._iv;if(i){var o=i;this._iv=n}else o=this._prevBlock;for(var a=0;a<r;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),g=i.pad={},_=g.Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],a=0;a<n;a+=4)o.push(i);var l=s.create(o,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:v,padding:_}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_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}),w=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),b=i.format={},y=b.OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=s.create([1398893684,1701076831]).concat(r).concat(t);else n=t;return n.toString(u)},parse:function(e){var t=u.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=s.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return w.create({ciphertext:t,salt:n})}},S=o.SerializableCipher=a.extend({cfg:a.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return w.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),k=i.kdf={},C=k.OpenSSL={execute:function(e,t,r,n){n||(n=s.random(8));var i=d.create({keySize:t+r}).compute(e,n),o=s.create(i.words.slice(t),4*r);return i.sigBytes=4*t,w.create({key:i,iv:o,salt:n})}},A=o.PasswordBasedCipher=S.extend({cfg:S.cfg.extend({kdf:C}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=S.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=S.decrypt.call(this,e,t,i.key,n);return o}})))})),qe((function(e,t){var r;e.exports=((r=Xe).mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,r,n){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i,n),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);t.call(this,e,r,i,n),this._prevBlock=o}}),e}(),r.mode.CFB)})),qe((function(e,t){var r,n,i;e.exports=((r=Xe).mode.CTR=(n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}}),n.Decryptor=i,n),r.mode.CTR)})),qe((function(e,t){var r;e.exports=((r=Xe).mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<i;l++)e[r+l]^=s[l]}});return e.Decryptor=n,e}(),r.mode.CTRGladman)})),qe((function(e,t){var r,n,i;e.exports=((r=Xe).mode.OFB=(n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}}),n.Decryptor=i,n),r.mode.OFB)})),qe((function(e,t){var r,n;e.exports=((r=Xe).mode.ECB=((n=r.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),n.Decryptor=n.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),n),r.mode.ECB)})),qe((function(e,t){var r;e.exports=((r=Xe).pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)})),qe((function(e,t){var r;e.exports=((r=Xe).pad.Iso10126={pad:function(e,t){var n=4*t,i=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)})),qe((function(e,t){var r;e.exports=((r=Xe).pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)})),qe((function(e,t){var r;e.exports=((r=Xe).pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},r.pad.ZeroPadding)})),qe((function(e,t){var r;e.exports=((r=Xe).pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)})),qe((function(e,t){var r,n,i,o;e.exports=(i=(n=r=Xe).lib.CipherParams,o=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}},r.format.Hex)})),qe((function(e,t){var r;e.exports=(r=Xe,function(){var e=r,t=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],h=[],d=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var m=e[r],v=e[m],g=e[v],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,l[r]=_<<8|_>>>24,c[r]=_,_=16843009*g^65537*v^257*m^16843008*r,u[p]=_<<24|_>>>8,h[p]=_<<16|_>>>16,d[p]=_<<8|_>>>24,f[p]=_,r?(r=m^e[e[e[g^m]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)if(a<r)o[a]=t[a];else{var s=o[a-1];a%r?r>6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var l=this._invKeySchedule=[],c=0;c<n;c++)a=n-c,s=c%4?o[a]:o[a-4],l[c]=c<4||a<=4?s:u[i[s>>>24]]^h[i[s>>>16&255]]^d[i[s>>>8&255]]^f[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,h,d,f,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var l=this._nRounds,c=e[t]^r[0],u=e[t+1]^r[1],h=e[t+2]^r[2],d=e[t+3]^r[3],f=4,p=1;p<l;p++){var m=n[c>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&d]^r[f++],v=n[u>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&c]^r[f++],g=n[h>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&u]^r[f++],_=n[d>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&h]^r[f++];c=m,u=v,h=g,d=_}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^r[f++],v=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^r[f++],g=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^r[f++],_=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^r[f++],e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=_},keySize:8});e.AES=t._createHelper(m)}(),r.AES)})),qe((function(e,t){var r;e.exports=(r=Xe,function(){var e=r,t=e.lib,n=t.WordArray,i=t.BlockCipher,o=e.algo,a=[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],s=[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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{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],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],u=l[o];for(r=0;r<24;r++)c[r/6|0]|=t[(s[r]-1+u)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(s[r+24]-1+u)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var h=this._invSubKeys=[];for(r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function f(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=i._createHelper(h);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=h.createEncryptor(n.create(e.slice(0,2))),this._des2=h.createEncryptor(n.create(e.slice(2,4))),this._des3=h.createEncryptor(n.create(e.slice(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=i._createHelper(p)}(),r.TripleDES)})),qe((function(e,t){var r;e.exports=(r=Xe,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var l=n[i];n[i]=n[o],n[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),r.RC4)})),qe((function(e,t){var r;e.exports=(r=Xe,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var 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],i=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,r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=c>>>16|4294901760&u,d=u<<16|65535&c;for(i[0]^=c,i[1]^=h,i[2]^=u,i[3]^=d,i[4]^=c,i[5]^=h,i[6]^=u,i[7]^=d,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),r.Rabbit)})),qe((function(e,t){var r;e.exports=(r=Xe,function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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],n=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 i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=c>>>16|4294901760&u,d=u<<16|65535&c;for(n[0]^=c,n[1]^=h,n[2]^=u,n[3]^=d,n[4]^=c,n[5]^=h,n[6]^=u,n[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),r.RabbitLegacy)})),qe((function(e,t){e.exports=Xe})));function $e(){throw new Error("setTimeout has not been defined")}function et(){throw new Error("clearTimeout has not been defined")}var tt=$e,rt=et;function nt(e){if(tt===setTimeout)return setTimeout(e,0);if((tt===$e||!tt)&&setTimeout)return tt=setTimeout,setTimeout(e,0);try{return tt(e,0)}catch(J){try{return tt.call(null,e,0)}catch(J){return tt.call(this,e,0)}}}"function"==typeof X.setTimeout&&(tt=setTimeout),"function"==typeof X.clearTimeout&&(rt=clearTimeout);var it,ot=[],at=!1,st=-1;function lt(){at&&it&&(at=!1,it.length?ot=it.concat(ot):st=-1,ot.length&&ct())}function ct(){if(!at){var e=nt(lt);at=!0;for(var t=ot.length;t;){for(it=ot,ot=[];++st<t;)it&&it[st].run();st=-1,t=ot.length}it=null,at=!1,function(e){if(rt===clearTimeout)return clearTimeout(e);if((rt===et||!rt)&&clearTimeout)return rt=clearTimeout,clearTimeout(e);try{rt(e)}catch(t){try{return rt.call(null,e)}catch(t){return rt.call(this,e)}}}(e)}}function ut(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ot.push(new ht(e,t)),1!==ot.length||at||nt(ct)}function ht(e,t){this.fun=e,this.array=t}ht.prototype.run=function(){this.fun.apply(null,this.array)};var dt=X.performance||{};function ft(){}function pt(){pt.init.call(this)}function mt(e){return void 0===e._maxListeners?pt.defaultMaxListeners:e._maxListeners}function vt(e,t,r){if(t)e.call(r);else for(var n=e.length,i=Ct(e,n),o=0;o<n;++o)i[o].call(r)}function gt(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=Ct(e,i),a=0;a<i;++a)o[a].call(r,n)}function _t(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,a=Ct(e,o),s=0;s<o;++s)a[s].call(r,n,i)}function wt(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var a=e.length,s=Ct(e,a),l=0;l<a;++l)s[l].call(r,n,i,o)}function bt(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=Ct(e,i),a=0;a<i;++a)o[a].apply(r,n)}function yt(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]):(o=e._events=new ft,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=mt(e))&&i>0&&a.length>i){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=r,++e._eventsCount;return e}function St(e,t,r){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,r.apply(e,arguments))}return i.listener=r,i}function kt(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function Ct(e,t){for(var r=new Array(t);t--;)r[t]=e[t];return r}dt.now||dt.mozNow||dt.msNow||dt.oNow||dt.webkitNow,ft.prototype=Object.create(null),pt.EventEmitter=pt,pt.usingDomains=!1,pt.prototype.domain=void 0,pt.prototype._events=void 0,pt.prototype._maxListeners=void 0,pt.defaultMaxListeners=10,pt.init=function(){this.domain=null,pt.usingDomains&&(void 0).active&&(void 0).Domain,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ft,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},pt.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},pt.prototype.getMaxListeners=function(){return mt(this)},pt.prototype.emit=function(e){var t,r,n,i,o,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){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=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(r=a[e]))return!1;var u="function"==typeof r;switch(n=arguments.length){case 1:vt(r,u,this);break;case 2:gt(r,u,this,arguments[1]);break;case 3:_t(r,u,this,arguments[1],arguments[2]);break;case 4:wt(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];bt(r,u,this,i)}return!0},pt.prototype.addListener=function(e,t){return yt(this,e,t,!1)},pt.prototype.on=pt.prototype.addListener,pt.prototype.prependListener=function(e,t){return yt(this,e,t,!0)},pt.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},pt.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},pt.prototype.removeListener=function(e,t){var r,n,i,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener&&r.listener===t)0==--this._eventsCount?this._events=new ft:(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new ft,this;delete n[e]}else!function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i);n.removeListener&&this.emit("removeListener",e,a||t)}return this},pt.prototype.removeAllListeners=function(e){var t,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new ft,this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=new ft:delete r[e]),this;if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new ft,this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},pt.prototype.listeners=function(e){var t,r=this._events;return r&&(t=r[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):[]},pt.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):kt.call(e,t)},pt.prototype.listenerCount=kt,pt.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var At="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},It=/%[sdj%]/g;function Tt(e){if(!zt(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Mt(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(e).replace(It,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<i;a=n[++r])Pt(a)||!Vt(a)?o+=" "+a:o+=" "+Mt(a);return o}function Et(e,t){if(Ft(X.process))return function(){return Et(e,t).apply(this,arguments)};var r=!1;return function(){return r||(console.error(t),r=!0),e.apply(this,arguments)}}var Rt,Lt={};function Mt(e,t){var r={seen:[],stylize:xt};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Bt(t)?r.showHidden=t:t&&function(e,t){if(!t||!Vt(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]]}(r,t),Ft(r.showHidden)&&(r.showHidden=!1),Ft(r.depth)&&(r.depth=2),Ft(r.colors)&&(r.colors=!1),Ft(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Ut),Dt(r,e,r.depth)}function Ut(e,t){var r=Mt.styles[t];return r?"["+Mt.colors[r][0]+"m"+e+"["+Mt.colors[r][1]+"m":e}function xt(e,t){return e}function Dt(e,t,r){if(e.customInspect&&t&&Gt(t.inspect)&&t.inspect!==Mt&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return zt(n)||(n=Dt(e,n,r)),n}var i=function(e,t){if(Ft(t))return e.stylize("undefined","undefined");if(zt(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return n=t,"number"==typeof n?e.stylize(""+t,"number"):Bt(t)?e.stylize(""+t,"boolean"):Pt(t)?e.stylize("null","null"):void 0;var n}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ht(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Ot(t);if(0===o.length){if(Gt(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Zt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(jt(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ht(t))return Ot(t)}var l,c,u="",h=!1,d=["{","}"];return l=t,Array.isArray(l)&&(h=!0,d=["[","]"]),Gt(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),Zt(t)&&(u=" "+RegExp.prototype.toString.call(t)),jt(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Ht(t)&&(u=" "+Ot(t)),0!==o.length||h&&0!=t.length?r<0?Zt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=h?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)Wt(t,String(a))?o.push(Nt(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(Nt(e,t,r,n,i,!0))})),o}(e,t,r,a,o):o.map((function(n){return Nt(e,t,r,a,n,h)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,d)):d[0]+u+d[1]}function Ot(e){return"["+Error.prototype.toString.call(e)+"]"}function Nt(e,t,r,n,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),Wt(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=Pt(r)?Dt(e,l.value,null):Dt(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Ft(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Bt(e){return"boolean"==typeof e}function Pt(e){return null===e}function zt(e){return"string"==typeof e}function Ft(e){return void 0===e}function Zt(e){return Vt(e)&&"[object RegExp]"===Yt(e)}function Vt(e){return"object"==typeof e&&null!==e}function jt(e){return Vt(e)&&"[object Date]"===Yt(e)}function Ht(e){return Vt(e)&&("[object Error]"===Yt(e)||e instanceof Error)}function Gt(e){return"function"==typeof e}function Yt(e){return Object.prototype.toString.call(e)}function Wt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qt(){this.head=null,this.tail=null,this.length=0}Mt.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]},Mt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Qt.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},Qt.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Qt.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}},Qt.prototype.clear=function(){this.head=this.tail=null,this.length=0},Qt.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},Qt.prototype.concat=function(e){if(0===this.length)return he.alloc(0);if(1===this.length)return this.head.data;for(var t=he.allocUnsafe(e>>>0),r=this.head,n=0;r;)r.data.copy(t,n),n+=r.data.length,r=r.next;return t};var Kt=he.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 qt(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Kt(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=Jt;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=$t;break;default:return void(this.write=Xt)}this.charBuffer=new he(6),this.charReceived=0,this.charLength=0}function Xt(e){return e.toString(this.encoding)}function Jt(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function $t(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}qt.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,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,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},qt.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},qt.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t},rr.ReadableState=tr;var er=function(e){return Ft(Rt)&&(Rt=""),e=e.toUpperCase(),Lt[e]||(new RegExp("\\b"+e+"\\b","i").test(Rt)?Lt[e]=function(){var t=Tt.apply(null,arguments);console.error("%s %d: %s",e,0,t)}:Lt[e]=function(){}),Lt[e]}("stream");function tr(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Lr&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Qt,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 qt(e.encoding),this.encoding=e.encoding)}function rr(e){if(!(this instanceof rr))return new rr(e);this._readableState=new tr(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),pt.call(this)}function nr(e,t,r,n,i){var o=function(e,t){var r=null;return Qe(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(o)e.emit("error",o);else if(null===r)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,ar(e)}}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||i||n||(r=t.decoder.write(r),l=!t.objectMode&&0===r.length),i||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&ar(e))),function(e,t){t.readingMore||(t.readingMore=!0,ut(lr,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}At(rr,pt),rr.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding)!==r.encoding&&(e=he.from(e,t),t=""),nr(this,r,e,t,!1)},rr.prototype.unshift=function(e){return nr(this,this._readableState,e,"",!0)},rr.prototype.isPaused=function(){return!1===this._readableState.flowing},rr.prototype.setEncoding=function(e){return this._readableState.decoder=new qt(e),this._readableState.encoding=e,this};var ir=8388608;function or(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>=ir?e=ir:(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 ar(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(er("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ut(sr,e):sr(e))}function sr(e){er("emit readable"),e.emit("readable"),hr(e)}function lr(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(er("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function cr(e){er("readable nexttick read 0"),e.read(0)}function ur(e,t){t.reading||(er("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),hr(e),t.flowing&&!t.reading&&e.read(0)}function hr(e){var t=e._readableState;for(er("flow",t.flowing);t.flowing&&null!==e.read(););}function dr(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=he.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function fr(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ut(pr,t,e))}function pr(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function mr(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function vr(){}function gr(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function _r(e,t){Object.defineProperty(this,"buffer",{get:Et((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Lr&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,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 r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?ut(i,n):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,r,n,t,i);else{var o=kr(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||Sr(e,r),n?ut(yr,e,r,o,i):yr(e,r,o,i)}}(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 Ir(this)}function wr(e){if(!(this instanceof wr||this instanceof Lr))return new wr(e);this._writableState=new _r(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),pt.call(this)}function br(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function yr(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),Ar(e,t)}function Sr(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0;r;)i[a]=r,r=r.next,a+=1;br(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Ir(t)}else{for(;r;){var s=r.chunk,l=r.encoding,c=r.callback;if(br(e,t,!1,t.objectMode?1:s.length,s,l,c),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function kr(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Cr(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Ar(e,t){var r=kr(t);return r&&(0===t.pendingcb?(Cr(e,t),t.finished=!0,e.emit("finish")):Cr(e,t)),r}function Ir(e){var t=this;this.next=null,this.entry=null,this.finish=function(r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}rr.prototype.read=function(e){er("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return er("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?fr(this):ar(this),null;if(0===(e=or(e,t))&&t.ended)return 0===t.length&&fr(this),null;var n,i=t.needReadable;return er("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&er("length less than watermark",i=!0),t.ended||t.reading?er("reading or ended",i=!1):i&&(er("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=or(r,t))),null===(n=e>0?dr(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&fr(this)),null!==n&&this.emit("data",n),n},rr.prototype._read=function(e){this.emit("error",new Error("not implemented"))},rr.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,er("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end?c:a;function o(e){er("onunpipe"),e===r&&c()}function a(){er("onend"),e.end()}n.endEmitted?ut(i):r.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;er("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,hr(e))}}(r);e.on("drain",s);var l=!1;function c(){er("cleanup"),e.removeListener("close",f),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",d),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",c),r.removeListener("data",h),l=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var u=!1;function h(t){er("ondata"),u=!1,!1!==e.write(t)||u||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==mr(n.pipes,e))&&!l&&(er("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,u=!0),r.pause())}function d(t){var r;er("onerror",t),m(),e.removeListener("error",d),0===(r="error",e.listeners(r).length)&&e.emit("error",t)}function f(){e.removeListener("finish",p),m()}function p(){er("onfinish"),e.removeListener("close",f),m()}function m(){er("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",f),e.once("finish",p),e.emit("pipe",r),n.flowing||(er("pipe resume"),r.resume()),e},rr.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var o=mr(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},rr.prototype.on=function(e,t){var r=pt.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&ar(this):ut(cr,this))}return r},rr.prototype.addListener=rr.prototype.on,rr.prototype.resume=function(){var e=this._readableState;return e.flowing||(er("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ut(ur,e,t))}(this,e)),this},rr.prototype.pause=function(){return er("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(er("pause"),this._readableState.flowing=!1,this.emit("pause")),this},rr.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(er("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){er("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){er("wrapped _read",t),r&&(r=!1,e.resume())},n},rr._fromList=dr,wr.WritableState=_r,At(wr,pt),_r.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},wr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},wr.prototype.write=function(e,t,r){var n=this._writableState,i=!1;return"function"==typeof t&&(r=t,t=null),he.isBuffer(e)?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=vr),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),ut(t,r)}(this,r):function(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):he.isBuffer(r)||"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),ut(n,o),i=!1),i}(this,n,e,r)&&(n.pendingcb++,i=function(e,t,r,n,i){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=he.from(t,r)),t}(t,r,n),he.isBuffer(r)&&(n="buffer");var o=t.objectMode?1:r.length;t.length+=o;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new gr(r,n,i),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else br(e,t,!1,o,r,n,i);return a}(this,n,e,t,r)),i},wr.prototype.cork=function(){this._writableState.corked++},wr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||Sr(this,e))},wr.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},wr.prototype._write=function(e,t,r){r(new Error("not implemented"))},wr.prototype._writev=null,wr.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,Ar(e,t),r&&(t.finished?ut(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},At(Lr,rr);for(var Tr=Object.keys(wr.prototype),Er=0;Er<Tr.length;Er++){var Rr=Tr[Er];Lr.prototype[Rr]||(Lr.prototype[Rr]=wr.prototype[Rr])}function Lr(e){if(!(this instanceof Lr))return new Lr(e);rr.call(this,e),wr.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",Mr)}function Mr(){this.allowHalfOpen||this._writableState.ended||ut(Ur,this)}function Ur(e){e.end()}function xr(e){this.afterTransform=function(t,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Dr(e){if(!(this instanceof Dr))return new Dr(e);Lr.call(this,e),this._transformState=new xr(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){Or(t,e)})):Or(t)}))}function Or(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function Nr(e){if(!(this instanceof Nr))return new Nr(e);Dr.call(this,e)}function Br(){pt.call(this)}At(Dr,Lr),Dr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Lr.prototype.push.call(this,e,t)},Dr.prototype._transform=function(e,t,r){throw new Error("Not implemented")},Dr.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Dr.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},At(Nr,Dr),Nr.prototype._transform=function(e,t,r){r(null,e)},At(Br,pt),Br.Readable=rr,Br.Writable=wr,Br.Duplex=Lr,Br.Transform=Dr,Br.PassThrough=Nr,Br.Stream=Br,Br.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===pt.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e};var Pr={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 zr(){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 Fr(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]}var Zr=Uint8Array,Vr=Uint16Array,jr=Int32Array,Hr=4,Gr=0,Yr=1,Wr=2;function Qr(e){for(var t=e.length;--t>=0;)e[t]=0}var Kr=0,qr=1,Xr=2,Jr=29,$r=256,en=$r+1+Jr,tn=30,rn=19,nn=2*en+1,on=15,an=16,sn=7,ln=256,cn=16,un=17,hn=18,dn=[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],fn=[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],pn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],mn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],vn=new Array(2*(en+2));Qr(vn);var gn=new Array(2*tn);Qr(gn);var _n=new Array(512);Qr(_n);var wn=new Array(256);Qr(wn);var bn=new Array(Jr);Qr(bn);var yn,Sn,kn,Cn=new Array(tn);function An(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function In(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Tn(e){return e<256?_n[e]:_n[256+(e>>>7)]}function En(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Rn(e,t,r){e.bi_valid>an-r?(e.bi_buf|=t<<e.bi_valid&65535,En(e,e.bi_buf),e.bi_buf=t>>an-e.bi_valid,e.bi_valid+=r-an):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Ln(e,t,r){Rn(e,r[2*t],r[2*t+1])}function Mn(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function Un(e,t,r){var n,i,o=new Array(on+1),a=0;for(n=1;n<=on;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Mn(o[s]++,s))}}function xn(e){var t;for(t=0;t<en;t++)e.dyn_ltree[2*t]=0;for(t=0;t<tn;t++)e.dyn_dtree[2*t]=0;for(t=0;t<rn;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*ln]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Dn(e){e.bi_valid>8?En(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 On(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function Nn(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&On(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!On(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function Bn(e,t,r){var n,i,o,a,s=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?Ln(e,i,t):(Ln(e,(o=wn[i])+$r+1,t),0!==(a=dn[o])&&Rn(e,i-=bn[o],a),Ln(e,o=Tn(--n),r),0!==(a=fn[o])&&Rn(e,n-=Cn[o],a))}while(s<e.last_lit);Ln(e,ln,t)}function Pn(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=nn,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;r>=1;r--)Nn(e,o,r);i=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Nn(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,Nn(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(o=0;o<=on;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<nn;r++)(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)>p&&(o=p,m++),l[2*n+1]=o,n>c||(e.bl_count[o]++,a=0,n>=f&&(a=d[n-f]),s=l[2*n],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(u[2*n+1]+a)));if(0!==m){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>c||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),Un(o,c,e.bl_count)}function zn(e,t,r){var n,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*cn]++):s<=10?e.bl_tree[2*un]++:e.bl_tree[2*hn]++,s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))}function Fn(e,t,r){var n,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<l&&i===a)){if(s<c)do{Ln(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Ln(e,i,e.bl_tree),s--),Ln(e,cn,e.bl_tree),Rn(e,s-3,2)):s<=10?(Ln(e,un,e.bl_tree),Rn(e,s-3,3)):(Ln(e,hn,e.bl_tree),Rn(e,s-11,7));s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}Qr(Cn);var Zn=!1;function Vn(e){Zn||(function(){var e,t,r,n,i,o=new Array(on+1);for(r=0,n=0;n<Jr-1;n++)for(bn[n]=r,e=0;e<1<<dn[n];e++)wn[r++]=n;for(wn[r-1]=n,i=0,n=0;n<16;n++)for(Cn[n]=i,e=0;e<1<<fn[n];e++)_n[i++]=n;for(i>>=7;n<tn;n++)for(Cn[n]=i<<7,e=0;e<1<<fn[n]-7;e++)_n[256+i++]=n;for(t=0;t<=on;t++)o[t]=0;for(e=0;e<=143;)vn[2*e+1]=8,e++,o[8]++;for(;e<=255;)vn[2*e+1]=9,e++,o[9]++;for(;e<=279;)vn[2*e+1]=7,e++,o[7]++;for(;e<=287;)vn[2*e+1]=8,e++,o[8]++;for(Un(vn,en+1,o),e=0;e<tn;e++)gn[2*e+1]=5,gn[2*e]=Mn(e,5);yn=new An(vn,dn,$r+1,en,on),Sn=new An(gn,fn,0,tn,on),kn=new An(new Array(0),pn,0,rn,sn)}(),Zn=!0),e.l_desc=new In(e.dyn_ltree,yn),e.d_desc=new In(e.dyn_dtree,Sn),e.bl_desc=new In(e.bl_tree,kn),e.bi_buf=0,e.bi_valid=0,xn(e)}function jn(e,t,r,n){Rn(e,(Kr<<1)+(n?1:0),3),function(e,t,r,n){Dn(e),n&&(En(e,r),En(e,~r)),Fr(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}function Hn(e){Rn(e,qr<<1,3),Ln(e,ln,vn),function(e){16===e.bi_valid?(En(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 Gn(e,t,r,n){var i,o,a=0;e.level>0?(e.strm.data_type===Wr&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return Gr;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Yr;for(t=32;t<$r;t++)if(0!==e.dyn_ltree[2*t])return Yr;return Gr}(e)),Pn(e,e.l_desc),Pn(e,e.d_desc),a=function(e){var t;for(zn(e,e.dyn_ltree,e.l_desc.max_code),zn(e,e.dyn_dtree,e.d_desc.max_code),Pn(e,e.bl_desc),t=rn-1;t>=3&&0===e.bl_tree[2*mn[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?jn(e,t,r,n):e.strategy===Hr||o===i?(Rn(e,(qr<<1)+(n?1:0),3),Bn(e,vn,gn)):(Rn(e,(Xr<<1)+(n?1:0),3),function(e,t,r,n){var i;for(Rn(e,t-257,5),Rn(e,r-1,5),Rn(e,n-4,4),i=0;i<n;i++)Rn(e,e.bl_tree[2*mn[i]+1],3);Fn(e,e.dyn_ltree,t-1),Fn(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Bn(e,e.dyn_ltree,e.dyn_dtree)),xn(e),n&&Dn(e)}function Yn(e,t,r){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&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(wn[r]+$r+1)]++,e.dyn_dtree[2*Tn(t)]++),e.last_lit===e.lit_bufsize-1}function Wn(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}var Qn=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();function Kn(e,t,r,n){var i=Qn,o=n+r;e^=-1;for(var a=n;a<o;a++)e=e>>>8^i[255&(e^t[a])];return-1^e}var qn,Xn=0,Jn=1,$n=3,ei=4,ti=5,ri=0,ni=1,ii=-2,oi=-3,ai=-5,si=-1,li=1,ci=2,ui=3,hi=4,di=2,fi=8,pi=9,mi=286,vi=30,gi=19,_i=2*mi+1,wi=15,bi=3,yi=258,Si=yi+bi+1,ki=32,Ci=42,Ai=69,Ii=73,Ti=91,Ei=103,Ri=113,Li=666,Mi=1,Ui=2,xi=3,Di=4,Oi=3;function Ni(e,t){return e.msg=Pr[t],t}function Bi(e){return(e<<1)-(e>4?9:0)}function Pi(e){for(var t=e.length;--t>=0;)e[t]=0}function zi(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(Fr(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function Fi(e,t){Gn(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,zi(e.strm)}function Zi(e,t){e.pending_buf[e.pending++]=t}function Vi(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ji(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Si?e.strstart-(e.w_size-Si):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+yi,f=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===p&&c[r+a-1]===f&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<d);if(n=yi-(d-o),o=d-yi,n>a){if(e.match_start=t,a=n,n>=s)break;f=c[o+a-1],p=c[o+a]}}}while((t=h[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function Hi(e){var t,r,n,i,o,a,s,l,c,u,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-Si)){Fr(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=h?n-h:0}while(--r);t=r=h;do{n=e.prev[--t],e.prev[t]=n>=h?n-h:0}while(--r);i+=h}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,l=e.strstart+e.lookahead,c=i,u=void 0,(u=a.avail_in)>c&&(u=c),r=0===u?0:(a.avail_in-=u,Fr(s,a.input,a.next_in,u,l),1===a.state.wrap?a.adler=Wn(a.adler,s,u,l):2===a.state.wrap&&(a.adler=Kn(a.adler,s,u,l)),a.next_in+=u,a.total_in+=u,u),e.lookahead+=r,e.lookahead+e.insert>=bi)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+bi-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<bi)););}while(e.lookahead<Si&&0!==e.strm.avail_in)}function Gi(e,t){for(var r,n;;){if(e.lookahead<Si){if(Hi(e),e.lookahead<Si&&t===Xn)return Mi;if(0===e.lookahead)break}if(r=0,e.lookahead>=bi&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+bi-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-Si&&(e.match_length=ji(e,r)),e.match_length>=bi)if(n=Yn(e,e.strstart-e.match_start,e.match_length-bi),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=bi){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+bi-1])&e.hash_mask,r=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 n=Yn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(Fi(e,!1),0===e.strm.avail_out))return Mi}return e.insert=e.strstart<bi-1?e.strstart:bi-1,t===ei?(Fi(e,!0),0===e.strm.avail_out?xi:Di):e.last_lit&&(Fi(e,!1),0===e.strm.avail_out)?Mi:Ui}function Yi(e,t){for(var r,n,i;;){if(e.lookahead<Si){if(Hi(e),e.lookahead<Si&&t===Xn)return Mi;if(0===e.lookahead)break}if(r=0,e.lookahead>=bi&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+bi-1])&e.hash_mask,r=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=bi-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Si&&(e.match_length=ji(e,r),e.match_length<=5&&(e.strategy===li||e.match_length===bi&&e.strstart-e.match_start>4096)&&(e.match_length=bi-1)),e.prev_length>=bi&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-bi,n=Yn(e,e.strstart-1-e.prev_match,e.prev_length-bi),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+bi-1])&e.hash_mask,r=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=bi-1,e.strstart++,n&&(Fi(e,!1),0===e.strm.avail_out))return Mi}else if(e.match_available){if((n=Yn(e,0,e.window[e.strstart-1]))&&Fi(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Mi}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Yn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<bi-1?e.strstart:bi-1,t===ei?(Fi(e,!0),0===e.strm.avail_out?xi:Di):e.last_lit&&(Fi(e,!1),0===e.strm.avail_out)?Mi:Ui}function Wi(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function Qi(){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=fi,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 Vr(2*_i),this.dyn_dtree=new Vr(2*(2*vi+1)),this.bl_tree=new Vr(2*(2*gi+1)),Pi(this.dyn_ltree),Pi(this.dyn_dtree),Pi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Vr(wi+1),this.heap=new Vr(2*mi+1),Pi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Vr(2*mi+1),Pi(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 Ki(e){var t,r=function(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=di,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Ci:Ri,e.adler=2===t.wrap?0:1,t.last_flush=Xn,Vn(t),ri):Ni(e,ii)}(e);return r===ri&&((t=e.state).window_size=2*t.w_size,Pi(t.head),t.max_lazy_match=qn[t.level].max_lazy,t.good_match=qn[t.level].good_length,t.nice_match=qn[t.level].nice_length,t.max_chain_length=qn[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=bi-1,t.match_available=0,t.ins_h=0),r}function qi(e,t){var r,n,i,o;if(!e||!e.state||t>ti||t<0)return e?Ni(e,ii):ii;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===Li&&t!==ei)return Ni(e,0===e.avail_out?ai:ii);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===Ci)if(2===n.wrap)e.adler=0,Zi(n,31),Zi(n,139),Zi(n,8),n.gzhead?(Zi(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Zi(n,255&n.gzhead.time),Zi(n,n.gzhead.time>>8&255),Zi(n,n.gzhead.time>>16&255),Zi(n,n.gzhead.time>>24&255),Zi(n,9===n.level?2:n.strategy>=ci||n.level<2?4:0),Zi(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Zi(n,255&n.gzhead.extra.length),Zi(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Kn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Ai):(Zi(n,0),Zi(n,0),Zi(n,0),Zi(n,0),Zi(n,0),Zi(n,9===n.level?2:n.strategy>=ci||n.level<2?4:0),Zi(n,Oi),n.status=Ri);else{var a=fi+(n.w_bits-8<<4)<<8;a|=(n.strategy>=ci||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=ki),a+=31-a%31,n.status=Ri,Vi(n,a),0!==n.strstart&&(Vi(n,e.adler>>>16),Vi(n,65535&e.adler)),e.adler=1}if(n.status===Ai)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=Kn(e.adler,n.pending_buf,n.pending-i,i)),zi(e),i=n.pending,n.pending!==n.pending_buf_size));)Zi(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=Kn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=Ii)}else n.status=Ii;if(n.status===Ii)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=Kn(e.adler,n.pending_buf,n.pending-i,i)),zi(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Zi(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(e.adler=Kn(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=Ti)}else n.status=Ti;if(n.status===Ti)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=Kn(e.adler,n.pending_buf,n.pending-i,i)),zi(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Zi(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(e.adler=Kn(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=Ei)}else n.status=Ei;if(n.status===Ei&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&zi(e),n.pending+2<=n.pending_buf_size&&(Zi(n,255&e.adler),Zi(n,e.adler>>8&255),e.adler=0,n.status=Ri)):n.status=Ri),0!==n.pending){if(zi(e),0===e.avail_out)return n.last_flush=-1,ri}else if(0===e.avail_in&&Bi(t)<=Bi(r)&&t!==ei)return Ni(e,ai);if(n.status===Li&&0!==e.avail_in)return Ni(e,ai);if(0!==e.avail_in||0!==n.lookahead||t!==Xn&&n.status!==Li){var s=n.strategy===ci?function(e,t){for(var r;;){if(0===e.lookahead&&(Hi(e),0===e.lookahead)){if(t===Xn)return Mi;break}if(e.match_length=0,r=Yn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Fi(e,!1),0===e.strm.avail_out))return Mi}return e.insert=0,t===ei?(Fi(e,!0),0===e.strm.avail_out?xi:Di):e.last_lit&&(Fi(e,!1),0===e.strm.avail_out)?Mi:Ui}(n,t):n.strategy===ui?function(e,t){for(var r,n,i,o,a=e.window;;){if(e.lookahead<=yi){if(Hi(e),e.lookahead<=yi&&t===Xn)return Mi;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=bi&&e.strstart>0&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=e.strstart+yi;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);e.match_length=yi-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=bi?(r=Yn(e,1,e.match_length-bi),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Yn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Fi(e,!1),0===e.strm.avail_out))return Mi}return e.insert=0,t===ei?(Fi(e,!0),0===e.strm.avail_out?xi:Di):e.last_lit&&(Fi(e,!1),0===e.strm.avail_out)?Mi:Ui}(n,t):qn[n.level].func(n,t);if(s!==xi&&s!==Di||(n.status=Li),s===Mi||s===xi)return 0===e.avail_out&&(n.last_flush=-1),ri;if(s===Ui&&(t===Jn?Hn(n):t!==ti&&(jn(n,0,0,!1),t===$n&&(Pi(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),zi(e),0===e.avail_out))return n.last_flush=-1,ri}return t!==ei?ri:n.wrap<=0?ni:(2===n.wrap?(Zi(n,255&e.adler),Zi(n,e.adler>>8&255),Zi(n,e.adler>>16&255),Zi(n,e.adler>>24&255),Zi(n,255&e.total_in),Zi(n,e.total_in>>8&255),Zi(n,e.total_in>>16&255),Zi(n,e.total_in>>24&255)):(Vi(n,e.adler>>>16),Vi(n,65535&e.adler)),zi(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?ri:ni)}qn=[new Wi(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Hi(e),0===e.lookahead&&t===Xn)return Mi;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,Fi(e,!1),0===e.strm.avail_out))return Mi;if(e.strstart-e.block_start>=e.w_size-Si&&(Fi(e,!1),0===e.strm.avail_out))return Mi}return e.insert=0,t===ei?(Fi(e,!0),0===e.strm.avail_out?xi:Di):(e.strstart>e.block_start&&(Fi(e,!1),e.strm.avail_out),Mi)})),new Wi(4,4,8,4,Gi),new Wi(4,5,16,8,Gi),new Wi(4,6,32,32,Gi),new Wi(4,4,16,16,Yi),new Wi(8,16,32,32,Yi),new Wi(8,16,128,128,Yi),new Wi(8,32,128,256,Yi),new Wi(32,128,258,1024,Yi),new Wi(32,258,258,4096,Yi)];var Xi=30,Ji=12;function $i(e,t){var r,n,i,o,a,s,l,c,u,h,d,f,p,m,v,g,_,w,b,y,S,k,C,A,I;r=e.state,n=e.next_in,A=e.input,i=n+(e.avail_in-5),o=e.next_out,I=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,h=r.wnext,d=r.window,f=r.hold,p=r.bits,m=r.lencode,v=r.distcode,g=(1<<r.lenbits)-1,_=(1<<r.distbits)-1;e:do{p<15&&(f+=A[n++]<<p,p+=8,f+=A[n++]<<p,p+=8),w=m[f&g];t:for(;;){if(f>>>=b=w>>>24,p-=b,0===(b=w>>>16&255))I[o++]=65535&w;else{if(!(16&b)){if(0==(64&b)){w=m[(65535&w)+(f&(1<<b)-1)];continue t}if(32&b){r.mode=Ji;break e}e.msg="invalid literal/length code",r.mode=Xi;break e}y=65535&w,(b&=15)&&(p<b&&(f+=A[n++]<<p,p+=8),y+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=A[n++]<<p,p+=8,f+=A[n++]<<p,p+=8),w=v[f&_];r:for(;;){if(f>>>=b=w>>>24,p-=b,!(16&(b=w>>>16&255))){if(0==(64&b)){w=v[(65535&w)+(f&(1<<b)-1)];continue r}e.msg="invalid distance code",r.mode=Xi;break e}if(S=65535&w,p<(b&=15)&&(f+=A[n++]<<p,(p+=8)<b&&(f+=A[n++]<<p,p+=8)),(S+=f&(1<<b)-1)>l){e.msg="invalid distance too far back",r.mode=Xi;break e}if(f>>>=b,p-=b,S>(b=o-a)){if((b=S-b)>u&&r.sane){e.msg="invalid distance too far back",r.mode=Xi;break e}if(k=0,C=d,0===h){if(k+=c-b,b<y){y-=b;do{I[o++]=d[k++]}while(--b);k=o-S,C=I}}else if(h<b){if(k+=c+h-b,(b-=h)<y){y-=b;do{I[o++]=d[k++]}while(--b);if(k=0,h<y){y-=b=h;do{I[o++]=d[k++]}while(--b);k=o-S,C=I}}}else if(k+=h-b,b<y){y-=b;do{I[o++]=d[k++]}while(--b);k=o-S,C=I}for(;y>2;)I[o++]=C[k++],I[o++]=C[k++],I[o++]=C[k++],y-=3;y&&(I[o++]=C[k++],y>1&&(I[o++]=C[k++]))}else{k=o-S;do{I[o++]=I[k++],I[o++]=I[k++],I[o++]=I[k++],y-=3}while(y>2);y&&(I[o++]=I[k++],y>1&&(I[o++]=I[k++]))}break}}break}}while(n<i&&o<s);n-=y=p>>3,f&=(1<<(p-=y<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=f,r.bits=p}var eo=15,to=852,ro=592,no=0,io=1,oo=2,ao=[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],so=[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],lo=[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],co=[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 uo(e,t,r,n,i,o,a,s){var l,c,u,h,d,f,p,m,v,g=s.bits,_=0,w=0,b=0,y=0,S=0,k=0,C=0,A=0,I=0,T=0,E=null,R=0,L=new Vr(eo+1),M=new Vr(eo+1),U=null,x=0;for(_=0;_<=eo;_++)L[_]=0;for(w=0;w<n;w++)L[t[r+w]]++;for(S=g,y=eo;y>=1&&0===L[y];y--);if(S>y&&(S=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<y&&0===L[b];b++);for(S<b&&(S=b),A=1,_=1;_<=eo;_++)if(A<<=1,(A-=L[_])<0)return-1;if(A>0&&(e===no||1!==y))return-1;for(M[1]=0,_=1;_<eo;_++)M[_+1]=M[_]+L[_];for(w=0;w<n;w++)0!==t[r+w]&&(a[M[t[r+w]]++]=w);if(e===no?(E=U=a,f=19):e===io?(E=ao,R-=257,U=so,x-=257,f=256):(E=lo,U=co,f=-1),T=0,w=0,_=b,d=o,k=S,C=0,u=-1,h=(I=1<<S)-1,e===io&&I>to||e===oo&&I>ro)return 1;for(;;){p=_-C,a[w]<f?(m=0,v=a[w]):a[w]>f?(m=U[x+a[w]],v=E[R+a[w]]):(m=96,v=0),l=1<<_-C,b=c=1<<k;do{i[d+(T>>C)+(c-=l)]=p<<24|m<<16|v|0}while(0!==c);for(l=1<<_-1;T&l;)l>>=1;if(0!==l?(T&=l-1,T+=l):T=0,w++,0==--L[_]){if(_===y)break;_=t[r+a[w]]}if(_>S&&(T&h)!==u){for(0===C&&(C=S),d+=b,A=1<<(k=_-C);k+C<y&&!((A-=L[k+C])<=0);)k++,A<<=1;if(I+=1<<k,e===io&&I>to||e===oo&&I>ro)return 1;i[u=T&h]=S<<24|k<<16|d-o|0}}return 0!==T&&(i[d+T]=_-C<<24|64<<16|0),s.bits=S,0}var ho=0,fo=1,po=2,mo=4,vo=5,go=6,_o=0,wo=1,bo=2,yo=-2,So=-3,ko=-4,Co=-5,Ao=8,Io=1,To=2,Eo=3,Ro=4,Lo=5,Mo=6,Uo=7,xo=8,Do=9,Oo=10,No=11,Bo=12,Po=13,zo=14,Fo=15,Zo=16,Vo=17,jo=18,Ho=19,Go=20,Yo=21,Wo=22,Qo=23,Ko=24,qo=25,Xo=26,Jo=27,$o=28,ea=29,ta=30,ra=31,na=32,ia=852,oa=592;function aa(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function sa(){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 Vr(320),this.work=new Vr(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function la(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=Io,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new jr(ia),t.distcode=t.distdyn=new jr(oa),t.sane=1,t.back=-1,_o):yo}(e)):yo}function ca(e,t){var r,n;return e?(n=new sa,e.state=n,n.window=null,(r=function(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?yo:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,la(e))):yo}(e,t))!==_o&&(e.state=null),r):yo}var ua,ha,da=!0;function fa(e){if(da){var t;for(ua=new jr(512),ha=new jr(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(uo(fo,e.lens,0,288,ua,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;uo(po,e.lens,0,32,ha,0,e.work,{bits:5}),da=!1}e.lencode=ua,e.lenbits=9,e.distcode=ha,e.distbits=5}function pa(e,t){var r,n,i,o,a,s,l,c,u,h,d,f,p,m,v,g,_,w,b,y,S,k,C,A,I=0,T=new Zr(4),E=[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 yo;(r=e.state).mode===Bo&&(r.mode=Po),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,h=s,d=l,k=_o;e:for(;;)switch(r.mode){case Io:if(0===r.wrap){r.mode=Po;break}for(;u<16;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(2&r.wrap&&35615===c){r.check=0,T[0]=255&c,T[1]=c>>>8&255,r.check=Kn(r.check,T,2,0),c=0,u=0,r.mode=To;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=ta;break}if((15&c)!==Ao){e.msg="unknown compression method",r.mode=ta;break}if(u-=4,S=8+(15&(c>>>=4)),0===r.wbits)r.wbits=S;else if(S>r.wbits){e.msg="invalid window size",r.mode=ta;break}r.dmax=1<<S,e.adler=r.check=1,r.mode=512&c?Oo:Bo,c=0,u=0;break;case To:for(;u<16;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(r.flags=c,(255&r.flags)!==Ao){e.msg="unknown compression method",r.mode=ta;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=ta;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&(T[0]=255&c,T[1]=c>>>8&255,r.check=Kn(r.check,T,2,0)),c=0,u=0,r.mode=Eo;case Eo:for(;u<32;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}r.head&&(r.head.time=c),512&r.flags&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,r.check=Kn(r.check,T,4,0)),c=0,u=0,r.mode=Ro;case Ro:for(;u<16;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&(T[0]=255&c,T[1]=c>>>8&255,r.check=Kn(r.check,T,2,0)),c=0,u=0,r.mode=Lo;case Lo:if(1024&r.flags){for(;u<16;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&(T[0]=255&c,T[1]=c>>>8&255,r.check=Kn(r.check,T,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=Mo;case Mo:if(1024&r.flags&&((f=r.length)>s&&(f=s),f&&(r.head&&(S=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Fr(r.head.extra,n,o,f,S)),512&r.flags&&(r.check=Kn(r.check,n,f,o)),s-=f,o+=f,r.length-=f),r.length))break e;r.length=0,r.mode=Uo;case Uo:if(2048&r.flags){if(0===s)break e;f=0;do{S=n[o+f++],r.head&&S&&r.length<65536&&(r.head.name+=String.fromCharCode(S))}while(S&&f<s);if(512&r.flags&&(r.check=Kn(r.check,n,f,o)),s-=f,o+=f,S)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=xo;case xo:if(4096&r.flags){if(0===s)break e;f=0;do{S=n[o+f++],r.head&&S&&r.length<65536&&(r.head.comment+=String.fromCharCode(S))}while(S&&f<s);if(512&r.flags&&(r.check=Kn(r.check,n,f,o)),s-=f,o+=f,S)break e}else r.head&&(r.head.comment=null);r.mode=Do;case Do:if(512&r.flags){for(;u<16;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(c!==(65535&r.check)){e.msg="header crc mismatch",r.mode=ta;break}c=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Bo;break;case Oo:for(;u<32;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}e.adler=r.check=aa(c),c=0,u=0,r.mode=No;case No:if(0===r.havedict)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=c,r.bits=u,bo;e.adler=r.check=1,r.mode=Bo;case Bo:if(t===vo||t===go)break e;case Po:if(r.last){c>>>=7&u,u-=7&u,r.mode=Jo;break}for(;u<3;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}switch(r.last=1&c,u-=1,3&(c>>>=1)){case 0:r.mode=zo;break;case 1:if(fa(r),r.mode=Go,t===go){c>>>=2,u-=2;break e}break;case 2:r.mode=Vo;break;case 3:e.msg="invalid block type",r.mode=ta}c>>>=2,u-=2;break;case zo:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=ta;break}if(r.length=65535&c,c=0,u=0,r.mode=Fo,t===go)break e;case Fo:r.mode=Zo;case Zo:if(f=r.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;Fr(i,n,o,f,a),s-=f,o+=f,l-=f,a+=f,r.length-=f;break}r.mode=Bo;break;case Vo:for(;u<14;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(r.nlen=257+(31&c),c>>>=5,u-=5,r.ndist=1+(31&c),c>>>=5,u-=5,r.ncode=4+(15&c),c>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=ta;break}r.have=0,r.mode=jo;case jo:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}r.lens[E[r.have++]]=7&c,c>>>=3,u-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},k=uo(ho,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,k){e.msg="invalid code lengths set",r.mode=ta;break}r.have=0,r.mode=Ho;case Ho:for(;r.have<r.nlen+r.ndist;){for(;g=(I=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,_=65535&I,!((v=I>>>24)<=u);){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(_<16)c>>>=v,u-=v,r.lens[r.have++]=_;else{if(16===_){for(A=v+2;u<A;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(c>>>=v,u-=v,0===r.have){e.msg="invalid bit length repeat",r.mode=ta;break}S=r.lens[r.have-1],f=3+(3&c),c>>>=2,u-=2}else if(17===_){for(A=v+3;u<A;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}u-=v,S=0,f=3+(7&(c>>>=v)),c>>>=3,u-=3}else{for(A=v+7;u<A;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}u-=v,S=0,f=11+(127&(c>>>=v)),c>>>=7,u-=7}if(r.have+f>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=ta;break}for(;f--;)r.lens[r.have++]=S}}if(r.mode===ta)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=ta;break}if(r.lenbits=9,C={bits:r.lenbits},k=uo(fo,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,k){e.msg="invalid literal/lengths set",r.mode=ta;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},k=uo(po,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,k){e.msg="invalid distances set",r.mode=ta;break}if(r.mode=Go,t===go)break e;case Go:r.mode=Yo;case Yo:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=c,r.bits=u,$i(e,d),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,r.mode===Bo&&(r.back=-1);break}for(r.back=0;g=(I=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,_=65535&I,!((v=I>>>24)<=u);){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(g&&0==(240&g)){for(w=v,b=g,y=_;g=(I=r.lencode[y+((c&(1<<w+b)-1)>>w)])>>>16&255,_=65535&I,!(w+(v=I>>>24)<=u);){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}c>>>=w,u-=w,r.back+=w}if(c>>>=v,u-=v,r.back+=v,r.length=_,0===g){r.mode=Xo;break}if(32&g){r.back=-1,r.mode=Bo;break}if(64&g){e.msg="invalid literal/length code",r.mode=ta;break}r.extra=15&g,r.mode=Wo;case Wo:if(r.extra){for(A=r.extra;u<A;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Qo;case Qo:for(;g=(I=r.distcode[c&(1<<r.distbits)-1])>>>16&255,_=65535&I,!((v=I>>>24)<=u);){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(0==(240&g)){for(w=v,b=g,y=_;g=(I=r.distcode[y+((c&(1<<w+b)-1)>>w)])>>>16&255,_=65535&I,!(w+(v=I>>>24)<=u);){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}c>>>=w,u-=w,r.back+=w}if(c>>>=v,u-=v,r.back+=v,64&g){e.msg="invalid distance code",r.mode=ta;break}r.offset=_,r.extra=15&g,r.mode=Ko;case Ko:if(r.extra){for(A=r.extra;u<A;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=ta;break}r.mode=qo;case qo:if(0===l)break e;if(f=d-l,r.offset>f){if((f=r.offset-f)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=ta;break}f>r.wnext?(f-=r.wnext,p=r.wsize-f):p=r.wnext-f,f>r.length&&(f=r.length),m=r.window}else m=i,p=a-r.offset,f=r.length;f>l&&(f=l),l-=f,r.length-=f;do{i[a++]=m[p++]}while(--f);0===r.length&&(r.mode=Yo);break;case Xo:if(0===l)break e;i[a++]=r.length,l--,r.mode=Yo;break;case Jo:if(r.wrap){for(;u<32;){if(0===s)break e;s--,c|=n[o++]<<u,u+=8}if(d-=l,e.total_out+=d,r.total+=d,d&&(e.adler=r.check=r.flags?Kn(r.check,i,d,a-d):Wn(r.check,i,d,a-d)),d=l,(r.flags?c:aa(c))!==r.check){e.msg="incorrect data check",r.mode=ta;break}c=0,u=0}r.mode=$o;case $o:if(r.wrap&&r.flags){for(;u<32;){if(0===s)break e;s--,c+=n[o++]<<u,u+=8}if(c!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=ta;break}c=0,u=0}r.mode=ea;case ea:k=wo;break e;case ta:k=So;break e;case ra:return ko;case na:default:return yo}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,r.hold=c,r.bits=u,(r.wsize||d!==e.avail_out&&r.mode<ta&&(r.mode<Jo||t!==mo))&&function(e,t,r,n){var i,o=e.state;null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Zr(o.wsize)),n>=o.wsize?(Fr(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),Fr(o.window,t,r-n,i,o.wnext),(n-=i)?(Fr(o.window,t,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i)))}(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,r.total+=d,r.wrap&&d&&(e.adler=r.check=r.flags?Kn(r.check,i,d,e.next_out-d):Wn(r.check,i,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Bo?128:0)+(r.mode===Go||r.mode===Fo?256:0),(0===h&&0===d||t===mo)&&k===_o&&(k=Co),k}var ma,va=1,ga=7;function _a(e){if(e<va||e>ga)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 wa(e,t){for(var r=0;r<e.length;r++)this[t+r]=e[r]}_a.prototype.init=function(e,t,r,n,i){var o;switch(this.windowBits=e,this.level=t,this.memLevel=r,this.strategy=n,3!==this.mode&&4!==this.mode||(this.windowBits+=16),this.mode===ga&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new zr,this.mode){case va:case 3:case 5:o=function(e,t,r,n,i,o){if(!e)return ii;var a=1;if(t===si&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>pi||r!==fi||n<8||n>15||t<0||t>9||o<0||o>hi)return Ni(e,ii);8===n&&(n=9);var s=new Qi;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+bi-1)/bi),s.window=new Zr(2*s.w_size),s.head=new Vr(s.hash_size),s.prev=new Vr(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Zr(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=o,s.method=r,Ki(e)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case ga:o=ca(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}0===o?(this.write_in_progress=!1,this.init_done=!0):this._error(o)},_a.prototype.params=function(){throw new Error("deflateParams Not supported")},_a.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")},_a.prototype.write=function(e,t,r,n,i,o,a){this._writeCheck(),this.write_in_progress=!0;var s=this;return ut((function(){s.write_in_progress=!1;var l=s._write(e,t,r,n,i,o,a);s.callback(l[0],l[1]),s.pending_close&&s.close()})),this},_a.prototype.writeSync=function(e,t,r,n,i,o,a){return this._writeCheck(),this._write(e,t,r,n,i,o,a)},_a.prototype._write=function(e,t,r,n,i,o,a){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 he(0),n=0,r=0),i._set?i.set=i._set:i.set=wa;var s,l=this.strm;switch(l.avail_in=n,l.input=t,l.next_in=r,l.avail_out=a,l.output=i,l.next_out=o,this.mode){case va:case 3:case 5:s=qi(l,e);break;case ga:case 2:case 4:case 6:s=pa(l,e);break;default:throw new Error("Unknown mode "+this.mode)}return 1!==s&&0!==s&&this._error(s),this.write_in_progress=!1,[l.avail_in,l.avail_out]},_a.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===va||3===this.mode||5===this.mode?function(e){var t;e&&e.state&&((t=e.state.status)!==Ci&&t!==Ai&&t!==Ii&&t!==Ti&&t!==Ei&&t!==Ri&&t!==Li?Ni(e,ii):(e.state=null,t===Ri&&Ni(e,oi)))}(this.strm):function(e){if(!e||!e.state)return yo;var t=e.state;t.window&&(t.window=null),e.state=null}(this.strm),this.mode=0)},_a.prototype.reset=function(){switch(this.mode){case va:case 5:ma=Ki(this.strm);break;case 2:case 6:ma=la(this.strm)}0!==ma&&this._error(ma)},_a.prototype._error=function(e){this.onerror(Pr[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var ba=Object.freeze({NONE:0,DEFLATE:va,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:ga,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:_a}),ya={};Object.keys(ba).forEach((function(e){ya[e]=ba[e]})),ya.Z_MIN_WINDOWBITS=8,ya.Z_MAX_WINDOWBITS=15,ya.Z_DEFAULT_WINDOWBITS=15,ya.Z_MIN_CHUNK=64,ya.Z_MAX_CHUNK=1/0,ya.Z_DEFAULT_CHUNK=16384,ya.Z_MIN_MEMLEVEL=1,ya.Z_MAX_MEMLEVEL=9,ya.Z_DEFAULT_MEMLEVEL=8,ya.Z_MIN_LEVEL=-1,ya.Z_MAX_LEVEL=9,ya.Z_DEFAULT_LEVEL=ya.Z_DEFAULT_COMPRESSION;var Sa={Z_OK:ya.Z_OK,Z_STREAM_END:ya.Z_STREAM_END,Z_NEED_DICT:ya.Z_NEED_DICT,Z_ERRNO:ya.Z_ERRNO,Z_STREAM_ERROR:ya.Z_STREAM_ERROR,Z_DATA_ERROR:ya.Z_DATA_ERROR,Z_MEM_ERROR:ya.Z_MEM_ERROR,Z_BUF_ERROR:ya.Z_BUF_ERROR,Z_VERSION_ERROR:ya.Z_VERSION_ERROR};function ka(e,t,r){var n=[],i=0;function o(){for(var t;null!==(t=e.read());)n.push(t),i+=t.length;e.once("readable",o)}function a(){var t=he.concat(n,i);n=[],r(null,t),e.close()}e.on("error",(function(t){e.removeListener("end",a),e.removeListener("readable",o),r(t)})),e.on("end",a),e.end(t),o()}function Ca(e,t){if("string"==typeof t&&(t=new he(t)),!Qe(t))throw new TypeError("Not a string or buffer");var r=ya.Z_FINISH;return e._processChunk(t,r)}function Aa(e){if(!(this instanceof Aa))return new Aa(e);Ua.call(this,e,ya.DEFLATE)}function Ia(e){if(!(this instanceof Ia))return new Ia(e);Ua.call(this,e,ya.INFLATE)}function Ta(e){if(!(this instanceof Ta))return new Ta(e);Ua.call(this,e,ya.GZIP)}function Ea(e){if(!(this instanceof Ea))return new Ea(e);Ua.call(this,e,ya.GUNZIP)}function Ra(e){if(!(this instanceof Ra))return new Ra(e);Ua.call(this,e,ya.DEFLATERAW)}function La(e){if(!(this instanceof La))return new La(e);Ua.call(this,e,ya.INFLATERAW)}function Ma(e){if(!(this instanceof Ma))return new Ma(e);Ua.call(this,e,ya.UNZIP)}function Ua(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||ya.Z_DEFAULT_CHUNK,Dr.call(this,e),e.flush&&e.flush!==ya.Z_NO_FLUSH&&e.flush!==ya.Z_PARTIAL_FLUSH&&e.flush!==ya.Z_SYNC_FLUSH&&e.flush!==ya.Z_FULL_FLUSH&&e.flush!==ya.Z_FINISH&&e.flush!==ya.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||ya.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<ya.Z_MIN_CHUNK||e.chunkSize>ya.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<ya.Z_MIN_WINDOWBITS||e.windowBits>ya.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<ya.Z_MIN_LEVEL||e.level>ya.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<ya.Z_MIN_MEMLEVEL||e.memLevel>ya.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=ya.Z_FILTERED&&e.strategy!=ya.Z_HUFFMAN_ONLY&&e.strategy!=ya.Z_RLE&&e.strategy!=ya.Z_FIXED&&e.strategy!=ya.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Qe(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new ya.Zlib(t);var r=this;this._hadError=!1,this._binding.onerror=function(e,t){r._binding=null,r._hadError=!0;var n=new Error(e);n.errno=t,n.code=ya.codes[t],r.emit("error",n)};var n=ya.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(n=e.level);var i=ya.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(i=e.strategy),this._binding.init(e.windowBits||ya.Z_DEFAULT_WINDOWBITS,n,e.memLevel||ya.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new he(this._chunkSize),this._offset=0,this._closed=!1,this._level=n,this._strategy=i,this.once("end",this.close)}Object.keys(Sa).forEach((function(e){Sa[Sa[e]]=e})),At(Ua,Dr),Ua.prototype.params=function(e,t,r){if(e<ya.Z_MIN_LEVEL||e>ya.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=ya.Z_FILTERED&&t!=ya.Z_HUFFMAN_ONLY&&t!=ya.Z_RLE&&t!=ya.Z_FIXED&&t!=ya.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var n=this;this.flush(ya.Z_SYNC_FLUSH,(function(){n._binding.params(e,t),n._hadError||(n._level=e,n._strategy=t,r&&r())}))}else ut(r)},Ua.prototype.reset=function(){return this._binding.reset()},Ua.prototype._flush=function(e){this._transform(new he(0),"",e)},Ua.prototype.flush=function(e,t){var r=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=ya.Z_FULL_FLUSH),r.ended)t&&ut(t);else if(r.ending)t&&this.once("end",t);else if(r.needDrain){var n=this;this.once("drain",(function(){n.flush(t)}))}else this._flushFlag=e,this.write(new he(0),"",t)},Ua.prototype.close=function(e){if(e&&ut(e),!this._closed){this._closed=!0,this._binding.close();var t=this;ut((function(){t.emit("close")}))}},Ua.prototype._transform=function(e,t,r){var n,i=this._writableState,o=(i.ending||i.ended)&&(!e||i.length===e.length);if(null===!e&&!Qe(e))return r(new Error("invalid input"));o?n=ya.Z_FINISH:(n=this._flushFlag,e.length>=i.length&&(this._flushFlag=this._opts.flush||ya.Z_NO_FLUSH)),this._processChunk(e,n,r)},Ua.prototype._processChunk=function(e,t,r){var n=e&&e.length,i=this._chunkSize-this._offset,o=0,a=this,s="function"==typeof r;if(!s){var l,c=[],u=0;this.on("error",(function(e){l=e}));do{var h=this._binding.writeSync(t,e,o,n,this._buffer,this._offset,i)}while(!this._hadError&&p(h[0],h[1]));if(this._hadError)throw l;var d=he.concat(c,u);return this.close(),d}var f=this._binding.write(t,e,o,n,this._buffer,this._offset,i);function p(l,h){if(!a._hadError){var d=i-h;if(function(e,t){if(!e)throw new Error(t)}(d>=0,"have should not go down"),d>0){var f=a._buffer.slice(a._offset,a._offset+d);a._offset+=d,s?a.push(f):(c.push(f),u+=f.length)}if((0===h||a._offset>=a._chunkSize)&&(i=a._chunkSize,a._offset=0,a._buffer=new he(a._chunkSize)),0===h){if(o+=n-l,n=l,!s)return!0;var m=a._binding.write(t,e,o,n,a._buffer,a._offset,a._chunkSize);return m.callback=p,void(m.buffer=e)}if(!s)return!1;r()}}f.buffer=e,f.callback=p},At(Aa,Ua),At(Ia,Ua),At(Ta,Ua),At(Ea,Ua),At(Ra,Ua),At(La,Ua),At(Ma,Ua);var xa={codes:Sa,createDeflate:function(e){return new Aa(e)},createInflate:function(e){return new Ia(e)},createDeflateRaw:function(e){return new Ra(e)},createInflateRaw:function(e){return new La(e)},createGzip:function(e){return new Ta(e)},createGunzip:function(e){return new Ea(e)},createUnzip:function(e){return new Ma(e)},deflate:function(e,t,r){return"function"==typeof t&&(r=t,t={}),ka(new Aa(t),e,r)},deflateSync:function(e,t){return Ca(new Aa(t),e)},gzip:function(e,t,r){return"function"==typeof t&&(r=t,t={}),ka(new Ta(t),e,r)},gzipSync:function(e,t){return Ca(new Ta(t),e)},deflateRaw:function(e,t,r){return"function"==typeof t&&(r=t,t={}),ka(new Ra(t),e,r)},deflateRawSync:function(e,t){return Ca(new Ra(t),e)},unzip:function(e,t,r){return"function"==typeof t&&(r=t,t={}),ka(new Ma(t),e,r)},unzipSync:function(e,t){return Ca(new Ma(t),e)},inflate:function(e,t,r){return"function"==typeof t&&(r=t,t={}),ka(new Ia(t),e,r)},inflateSync:function(e,t){return Ca(new Ia(t),e)},gunzip:function(e,t,r){return"function"==typeof t&&(r=t,t={}),ka(new Ea(t),e,r)},gunzipSync:function(e,t){return Ca(new Ea(t),e)},inflateRaw:function(e,t,r){return"function"==typeof t&&(r=t,t={}),ka(new La(t),e,r)},inflateRawSync:function(e,t){return Ca(new La(t),e)},Deflate:Aa,Inflate:Ia,Gzip:Ta,Gunzip:Ea,DeflateRaw:Ra,InflateRaw:La,Unzip:Ma,Zlib:Ua},Da=class{constructor(e,t,r){this.SDKAPPID=e,this.EXPIRETIME=r,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 he.from?he.from(e,t):new he(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,r,n){let i="TLS.identifier:"+e+"\n";i+="TLS.sdkappid:"+this.SDKAPPID+"\n",i+="TLS.time:"+t+"\n",i+="TLS.expire:"+r+"\n",null!=n&&(i+="TLS.userbuf:"+n+"\n");let o=Je.HmacSHA256(i,this.PRIVATEKEY);return Je.enc.Base64.stringify(o)}_utc(){return Math.round(Date.now()/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,r){let n=this._utc(),i={"TLS.ver":"2.0","TLS.identifier":e,"TLS.sdkappid":this.SDKAPPID,"TLS.time":n,"TLS.expire":t},o="";if(null!=r){let a=this.base64encode(r);i["TLS.userbuf"]=a,o=this._hmacsha256(e,n,t,a)}else o=this._hmacsha256(e,n,t,null);i["TLS.sig"]=o;let a=JSON.stringify(i),s=xa.deflateSync(this.newBuffer(a)).toString("base64"),l=this.escape(s);return console.log("ret="+l),l}validate(e){let t=this.decode(e),r=xa.inflateSync(t);console.log("validate ret="+r)}};const Oa=1600003603,Na="545433057ab3402f73534e2c8f21125a4b6358cb723da9c0ddb194a4318fe5ce",Ba=604800,Pa={userId:`user_${Math.ceil(1e5*Math.random())}`,userName:"myName",avatarUrl:""};function za(){if(Oa===Number(0)||Na===String(""))return void alert("Please configure your SDKAPPID in config/basic-info-config.js");const e=new Da(Oa,Na,Ba),t=e.genTestUserSig(Pa.userId),{userId:r,userName:n,avatarUrl:i}=Pa;return{sdkAppId:Oa,userId:r,userSig:t,userName:n,avatarUrl:i}}const Fa=(0,S.Z)();var Za={name:"Home",components:{UserInfo:s.Z,LanguageIcon:l.Z,StreamPreview:M,RoomControl:q,SwitchTheme:c.Z},data(){return{givenRoomId:"",basicInfo:null,userName:"",userAvatar:"",userId:"",isMobile:Q.t}},async mounted(){sessionStorage.removeItem("tuiRoom-roomInfo"),sessionStorage.removeItem("tuiRoom-userInfo"),this.givenRoomId=this.$route.query.roomId||"",sessionStorage.getItem("tuiRoom-userInfo")?this.basicInfo=JSON.parse(sessionStorage.getItem("tuiRoom-userInfo")):(this.basicInfo=await za(),this.basicInfo&&sessionStorage.setItem("tuiRoom-userInfo",JSON.stringify(this.basicInfo))),this.userName=this.basicInfo.userName,this.userAvatar=this.basicInfo.userAvatar,this.userId=this.basicInfo.userId;const{sdkAppId:e,userId:t,userSig:r}=this.basicInfo;await f().login({sdkAppId:e,userId:t,userSig:r}),this.isMobile||this.$refs.streamPreviewRef.startStreamPreview()},methods:{setTUIRoomData(e,t){const r=this.isMobile?this.$refs.roomControlRef.getRoomParam():this.$refs.streamPreviewRef.getRoomParam(),n={action:e,roomMode:t||"FreeToSpeak",roomParam:r};sessionStorage.setItem("tuiRoom-roomInfo",JSON.stringify(n))},async checkRoomExistWhenCreateRoom(e){let t=!1;const r=Fa.instance?.getTIM();try{await r.searchGroupByID(e),t=!0}catch(n){}return t},async generateRoomId(){const e=Math.ceil(1e6*Math.random()),t=await this.checkRoomExistWhenCreateRoom(String(e));return t?await this.generateRoomId():e},async handleCreateRoom(e){this.setTUIRoomData("createRoom",e);const t=await this.generateRoomId();this.$router.push({path:"room",query:{roomId:t}})},async handleEnterRoom(e){this.setTUIRoomData("enterRoom"),this.$router.push({path:"room",query:{roomId:e}})},handleLogOut(){}}},Va=Za,ja=(0,R.Z)(Va,o,a,!1,null,"79fbed35",null),Ha=ja.exports;n["default"].use(i.ZP);const Ga=[{path:"/",name:"home",component:Ha},{path:"/home",name:"home",component:Ha},{path:"/room",name:"room",component:()=>r.e(443).then(r.bind(r,4435))}],Ya=new i.ZP({routes:Ga});var Wa=Ya},7717:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABdCAYAAAAlrXG6AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAWqADAAQAAAABAAAAXQAAAAD7XFenAAAYkUlEQVR4Ae1dCXhVRZY+Ny/7vkFCSEhCAhEBlR0DIuIyuLbg1mq32zhttxv2TLc0oq3tArZ+37RL+zk9jjoyHyruuIxLO0gPdrM4Lu1GAiESkRAIYUsCIdud/6/3bvKW+967976bgF/34avcd2s5VfXXqVOnTtV7iPydBgUBbVBqcVCJrutxKFaKMBIhCyHDL+CjtPqF/fhcj9CgaVovnkcdHRVAA1QPkJmMMAdhEkIVQiVCMoId6kDmOoRahI8RViH8H8DvwfOI0hEDGuAOQc8vQZiLcBJCJsJA0AEwXYPwDsIKgN48EJUcVTwBbjLCRQhvIHQhDDaxTtbNNtidLUcVlqaNQaeyEe5A2I1wtBDbwjZlmzb6+xSJTgxBWIKwH2HAaHNNjb5h7Vqn/Nk2tpGq7PtFaLQH4WaEAQUY/BWtfPklfWJVpf74Iw/rHR0dRrTdJ9vKNnNhdp1cXwzR0Olo5eMIJ8TS2s7OTjnc0SHt7e3SvHOntLTsloP4fKjjkKAOSUxIlIyMTCktL5fXX31ZHvvdv6rqplXPkF/9+k4Zd9zxTqv/DAV/hkVznVMGZuVcAxqdT0AFDyAsQLDFt7e3V7Z/951srq2Ruk21Ul9XJ1vr62Xbtm+ldf9+6erqlp6ebmE+f4qLi5PExETpBfCdhw+rJA015+blyy23LpSLLr1M4uPZLNuko8RDCAsBeJft0iYFbAFiUl5FAeQyfHgBYYqKsPhnc22trFn9gbzz1htSv7lO9u3bK3FAir0U/AV+jgkAySmnnS6L7rxLyitokjuij1DqYvDa6qi0X6GYgQbI54Pf0wjZfnwjfqz5+mtZ/p9PybtvvyV7W/YAU4AasYSzRIKdP2SI/OK2O+SCS2iyO6J9KHU1eL3mqLSvUExAA+SbwOdhBEt82lpb5d8f+72sWL5M9gBglI+l7ZbKsmFanEeuvu46uemf/0XS07mTt01s6AKA/ajtkr4ClgAyYw6Q7kX8YrM0s7iNX30lS+68XTasXyc93YO/I/bEe2TGzFny6/uWSNnICrMmWom7D2DfbiVjcB7bQANglvkDwj8FMwv3/vFH6+XWBQtkW8M3WNAGXorDtSPO45HKylFy19L7ZeqJ1eGyRYt/AhmuA+C2OuIE6IdQES0LS1S/ZbNcf83VWOw2K+vAUqEBzMTFNr+gQO5acr+cceZZTmt6GEDfYqcwXZGWCdK8CJktg9wKnXzP7bfLN/VbjgqQ2VGags1NTbLwlpsFGx3LfQ/KuMCHRVB0+FfLQIPxNWCzJDyr0JRlTz4hG9b+5Yjo5NDW9MdwzrcdOCC/WbxIXnlhRX+CvU/cthMTS2RJdYDhVHD7EMGy9d/wTb1cfuF82bljx6BYF5Z6G5SJnU/PzJS77/+tnDvvgqBUS6/czMyEGtkQLXdUiQbI2WDCYbcMMit9acXzsJFbjlqQ2UZKdisk+747fy0frl7NKLtETFb4MIpYNirQKP00QllELkGJ9Eus/uN70tXNAT/6qWX3brkXpucWLNgOqAxliFFEigg0Ruo6lD4/IgeTxK8+/1waGhqktyfQN2GS9aiIQj+xYNfLPXcslva2NidtOt+HVdiyYYFGwaEotTRsyQgJaz9cI91d3w9pNrrR090tH61bK8889R9GlN3nUmAW1qcdFmjUQk9cjt3aenp6hBLdE+Rps8vnSOSna/a5Zc/Ag7jJSfXE6sFwBU2BxsjwsPSKcIUixe9ubpbm5l1QG4O/zY7ULitp6Le0oP0vPrvcSnazPFf4sAtJMwUauTgylky/YI7Nu3bJ3j2D4zAKrtuNd6q8Ve+/JxQYB0TMTKU6BGiMyGnIPM1BJcpZfy8WlD0A2ilRqroxGw53dkknAzreBf3ZDUeUf2Ac05iPgWksGytx57gLJzpfffG5U1bTfBgGlI8PePO+LDaJixp16OBBIciffvKxbbVBgKjbu2GlJCUmSElRoZQML5CKEcVSMCRPhuTnSm5OpmBjIDqcUjxp2bPvgDTt2i1NzS2ybXuTbG/aJY1NzTjq6hAP3KIeT5zwBMYJ9WIQ6TY4ec6pToqzDDF8379wANDo8AwkzvbPYPXzG6++IuvUdrvbahGVj1KZEB8voytK5ZQZU2XOzCkK6KJCLOBJiepQAKLq3V0YnA2lBuCBvkCkZQdAJ9CffLFR/ud/10tN3VbZvWcfeBN0e+etXMgbt283anPynE0sIRh/NgoHAI3IG40EO8+DkOZXXni+79zOStkeSK+ODk05Yaxce/l8OWnaBEnP9l1Wov2NNL3Dew4YjR8lfVjhUBk2vFAmTRov1142T2q2NMiqNetlxcp3Zeu2Rkh5nGXAe/Ueafx2m5qZdK06JGIZCjRGgL38gROmG7/8Ur6GYz/48DQcr24ctuYPyZXrr7pYLp03V1Iy0gWKWHToWidE1QPd4w0+BmOOqZAxYyrlh+fPlTfe+5P827IXpLFxtyQmJUStorcHHr5dO9XakOQc6B8QUwgBr6SJvxK7EO8pUVthkkHpZeg1K0RVMaKkSB65+5dy5Y8vkJTkJNEx9SndbpLuG7i83Gy56ooL5cmH7pYzTqlWa0G0wwcuiAfgA4nRRCWWxFSRP9CO7GZyacD21coGpQsgj62qkMd/u1imnzhR4vDOxW0giQNIFTT2mFHy6NKFcsM1P1RqPdLs4xLQ1t4Gq6cz1qb1YaqAhojng+Msp1x56BrtHJsDkZeXLfcsvEHGHDtKNE71gcU4oDs67oWkJCfLgp/8SBbeeLXS1+HApirqxgx16Pfwr3eWD9s+1XEKUjmQjoiNikY8kL3y4vPkOCx+Gjo9mCCrttFw0XslAWbflT+ajwV4nlIjYdutwHa2ZvjxJKbENgBov3R7HxMSEpSNG64UHTblpcVywVmnwqk9iGIc3CCCjX9JWpz8I8CeePxYOL/MhYSWDIMLFAD0nFgYZmZlRSzOxWfG1OMlHyZYiE0cseQAJCqweyU7J1suv+BM3PkwB1OJgztAK2zjoEPoDuVXGRxT4fAiXOXyX1cDWcWhMzOnTpB4TNujhXDdVaZPGCdl2H1yV2pG3GG6QFXEmD0fEyuz0tIySIY5iFxw8vNypQKqw5Vmx9pYllfiqkvu0HwZNbJY+Un82VJlxGO3mpYO+94dGsOdYUzSzHaMrjpG3ersOHQopFl09pSVFklBQb5oUCHq+g1yQQMKtmtYJRg4fREgWbqFhTWkEr8IpVcNfoyH5DLQkggmD9aW0uLhaEKQ+gDQWZlZqk/BZRy+V7kC9NBhhTK8uFho5pmZTKPKSyQFd950fDNN0yDXiR453NYuu3bslU1btsI51KJ2YaNHlsqJU473guOoR5p04Pruvv2t0traLnEYyOzMDElJSZLUDNy5o87F7tMwRaE3pbxkGPIFzjUCn52TIx5ItUvkDtBpaemwjcdJ3eZN0tvZG9C2eDh1xh8zWkmNhrvKjdt3yB8/WCdvvr9GautwRQx+jbS0FLXhmTNjikydOF7pcjMJDGBs8qIleOTpZ16Xh55YrpxJzEKHFR1U1RjAk6unyLRJ4yQBl9j13h5lchVCfXh1cb/Eczx4xzo+aABMqrQapYAutJo7XD66IydPmyb//ebrAu9xXzY2PQkXxcdVVUpXZ4csf/Zt+cPyV3CxvEtOmj5JrrrkPKRVSGZmmlIlSfDW0b3pBGRVKVTPOafPlKrKMslIT1V8djXvkS9r6+QvG/4qz77yDnaII+UX118lUycfJxrUWl5OlhIC/225Jy4eFyHLQyS9r2P2PxRybji6xxpc1/SZJwGwTPHX0/QVDMPUHFaYBzWxW15+e5Wce/os+fFFZ0sxVnulT7niG/ozjC4NrivcO7fzJcVFUlJa4uVJ1QvxPOe806UDau2TTzfKi2++J9t37FTxXCdSUpKx8EGVHaZa83Km4MRwed2seRmuAV1cUixjx41X3zUxruV2d/fKyBHDJTUlRXKys+S/Hr1XsnKzhPcwddz5MPA1a5nTOOWcCnFQdUky1EV19USphr8bZobomFXcr/HSIzdch+HYUgsy/sZjFnLNcZEyaJO5ItFxsDlnnXoadKK/G5KLTZF4UlPU9MzOgieWloWSYhe7YYEV1ZHy6GGxVPX7ymiw//0PBjjLsrOzZURZmQWulrMooOnOc4WqqT7QSBI7Rp07CpaEx7fO0NfgtWH7q2PHNLhKtQTXVnjFXMNCpviGse+NFqj6DZ2BSFoax4w5VgqHFRlZ3HimUKIPusGJPEZWVsoJEyYqncf35KQkbFRgpwajy0RFmjrje/Glt+Szz74Ku+kxclt9EuT6b76VZ59bKTtxxKVF2ZFSqg2ipVE962Tj1a3nQdbg6A6UWQsoHefgVmZCIpz5kOiMjFQZDhub9qoZadCNz7/2rty4aKlc/6ul0rSzOWaw6bvAlzrlzgcfB88l8sBjzwgOTEC+lS6oIZpH6/OsMSkVu8GJkyYH5Yr5tZVA83cvXKMZ4yqkrGgI1pteHLIOVSco4TrJHeEnX9So7S5PtBtwtqd2i9Faw6nuN90DskM69+GEfNOWbyUNa0NNXb0cwuaFQhBKOoSArcPhAISBamN0VZWMHhOzVyK4qjZ3gd7fJFkH6uXMqeNws75XhhcWqOsDyswIrprvsA6mwbGjzLKiAuVKxc7FLGdgXBt+B2UPTDQuqsGSCp65sHDGVo1Uamn8mFGSmpkOIMPwVWPmHQT+PXsaNjR6/14gsGLHb61cgZocF/cvCGe+vv1rYNolZ1ZPkCdXfiAF+XlY5HweaBPtQSvgIti4ObBGyqHLhw7Ng0UQBhBVF6DgVeDWvV6Q0+Ce5TbZjzclMxGL629uvV7OPeNkmXXiJKW6/LL0t1pJMxZjzCyeAJXD3j9r0iiRxhqRson9+WL/1ESgaxHOjplXewucRrBFcT5XXlIop0weIzTnNAWEuRuSCHHnePbZp1pzKFHkDkHT0fGUhJ/boClpov9pvpUUD5MS+FiUbyPErg7sLQ0TD1TOebOnSlYOpH/PdtGKoD4SXTPIag2gA2t28taBU3XssNhv4nHZP8yUHd0JXsecqTh5K6EEYrdgrUb4J+RQu7eCVLgw6YswAZrMlK2sVEtk1lTduMYhx1aUyKWnV2NgMIjcUR3cd5QC3YspbUgOfAjjRo6QitQs8VAVEPkQMiIjjIJ/GSLCex9UHfBFSHIaEPLPEO1zmPoQnQW/yA0XnSHZ2LXybokGb590dURjaCddSfRGOyUi5vV1nI9EeNIS09OARTAa7DDA5wEtiacYnLthJNObyfcXjimsnF614eFkDOYdkNv7wgFSO1Gf7lfl2AZvWXr3rp13msydfkLgBR5TK8WEv7WojfEwe3Zh+lJPx3QAoEPKNKgOgxRuZuAdhI49CDWjHPzoLDuejkUtJcppBnHphIrhE3a6GiC10/QCZtQb8GT9B3CztQN7MqodWswsm4H6EviTSroMhfdu/pzpOJn3+l5oBnKR1lR6ADenL7XEmOYdaZX34fyvloytNxw1lJWwxI4TaHacEk1JO4xTmXZ1aypsMZVARcoySkLBpw06lHzCElpCNdMG3hwg1gUw1WJ6iOW8LfXa1wDXEArOLoKc6nUlhGVvPUFhy/lH+gDhZ+qT0z8ZeVgMU9FIdCLcDR+ClJWLPJAqgkDx9MBySPOdfhidDdsG5FeDBfDaoArgkZMh8EmYHqIiL9NzhwJcbH4JtAEi66P6MiP4Z7TcEpSlxLtCIUCjZZEFMmK1PKIaDpNo01rREsEK049EpgHEDmR7p60CjX4GZooGMkFKhfePV8gojCyXDPOL9UaiFCyaDFyoYS97Dy0DW6WkmvxhMuoJMEkLR0fiaCeNFa1mAe/8wQdMHUacjBAb7dsh8t3XkKJ9ohMYJa1gGdg3h3Wgub2+RZRAE5xoAxStJvDT9jR7eWXisKlkPADHzHSH/oRBnE1Whurg52UIsQOdPQyLDS6R067evwMjiZuiXdCRrhBGy19NxAIyxownLHo8ZkUlvkmSBHWSQpXiKhFTRf4SDfFT23HU7A7pLfWidR3AtVyaZe7wdI2L6jm331gjisZhrYA+d5d496IQEg2Jg3wYvH0RK413V56xSJwrDbDAhAu0Mv0s5LWXZaUBMov1Ae3j8Xt7vCLn7psukbP1p3JglG2MhSump93pY7ul/W0O/ykAS38dTZ/tn32L4uzw5a2n6FisbHWBThxO5Vj1DAesk7ZyZMDRX+TQYz5sMEFkNbH0jw8A2pdwH56z/TM5/4wJQ5NKwR250wqUzCLRMmD3xkh6J9Rj4+cWuKBttF7siYMFvkIMAyhYdVCq30eO9QG5HL7wZpLgpCWaZCn2SgrhmXODKM1UPdGI+pkuADqp3KP1PgwDOIYA7Uv9JZ7RRDCAkekLNyfwaWi82UjBjkjI0IGTE8NOjpg3SuLBFmSw0HzONg92qQTcHWKlxC6ETIHGiKxBzmUhue1GJNJ7xyosdJqdhSTqrbvs1hKQX+dgYbPkVQkBSaEvmHFaEnaN7tEyH3YhHE2B9uW6FU+cGcVAtE3pN8ZxliUi2Pu341tUAMsJdWNj1LI1urmGarhZUW6CxCheQ+vtIFam0kwWYYHGyFC0FjGTc0J3UuAF43GWJULn6aFrrhOdJxx2qAs/d9y8GbMCet6KKsDpDF274p5ELwJm2MubE3oWmWDuvYoc50fOFSGVADRtxHmi716yBS2i/BfcamfA95BZAD839Gg4gk7X23ZjJjRiPcAOVFkR4TL74inRPHNMhscxG5662Ok1gDwvEhsrQEMk5VOEskiMIqa1fINput/+VpyWA0FOhncgCYGLKweAnrgeqInD9G1jh0tzTvUkandUPvU1kDjwLRgN/jF7HLai7xMAdMQpaKFlWMoc/O5dAPBc5JprcB8Z0kc/sBWp7mOAzGorj6bSW6cQ9cUpEw7xVlSFwY/ZKc2JkJ/cMiPW6ZNOdXd+944twGhtwOOn/OyIElPhS8Y0xX0L+0RkADDB7Nui+0bKiLfKVLGCbsYZgGS5conxpz5sorYg7GIYXBIMn0LcbcHxVt+1zGHACeeKPFFBhwedCLKqGH+zit3w1t3mw8RSVywDTW5gvBSPhy1xDs4EU0/LGQGtgY7yVORIgM0TlLQhOIzID26d3Xf+2i6xsEy2gPZx/TmeT1iuwT8jnOsa9KKOa7TWdov+hWP7rMXDpo9Px2DDyohtkNl3YmCLbAONkdQRfoJaltiqycicmitaagGsCHR8kIj3pYWnPHBaWTL/wrdrCftODMJnMU+xDbTBBpUtxuebEWxXqu60dXdCsFg0NvEy2mP+JG/UATNQp7qiVDsjNvRmX58dcXAMNGtDxY/iMR8hog3JvCHEK2S8m8GrV8o8cxNw8KJFwg1MKzYzdAXEw6RzVgX7Nt/X15BuWI2ICWhWgga8hscEhI/4bonUHECveaFl73cYpkbvZ25G7NjEIZWBp9rQYBt/oMl7UTEtBzYzNiXKFg8pEC2CfeJmhH2MiWIGmrWjIVvxmIHwEIKCEU9rBKNWI9jffixaU61oh+mrQLPoh7AEug9cAtwDddTSILJzM6QYZiS27+rExj7I7AP7wp9U22qtI5FzoTfuEBoE8ZSfYxe5As/HEU4IyxnYGOOhbFsAq3VAj+JOiPbdX0XZ3DlYuNKxyYGrtW/D4j/3FXj4EiY9dm34QfA2fP+lo130bPhHCiq96kLtHO2NOxr2GYLr/1eWa0ATOhIAXwewJ+PjDQj3IPAaQyAZqgOx/KhwhyNRfTsKgMsOfEOrqQa+DewkEzDtU7IAOHaXlFI66+nh483SQ/uh43GaQg9hHmz0clTL/DzVtnLCEtgqXgu4A+Ex9IF7R1fJdaDZOl9DHwHgz+GVNidB7wfcT6IR7wXbsJgMtcEEmmRcLNv3eHMZW3CmwSbXKfXlU8AZ54w8KSHA9q8OEODHEH6HdjeT9UDQgABtNNTX8NsA+AOIuwlhAQL0Ackrx96/3ph+6ea735QnwNTByfjaA29BQXqV/qVXj3qc3jz7R2A873oY4VG0cx9rHEgaUKCNhvs6cg8AfxBx5yJcga3hXDxRPwFFAJiaupoLVU+pxDGTTinl9VkuahnYNqdhjJJwIkJwDen2Gw8wikyaBp2j/pPfZXi+gXZhugwO+QvU4NToq0Xf8ckQad52CTYTc+Vw+0l6d2emwpwn59THyRle3UydS3WiwKWL1Q6yKCa4kpUQvwZXXN+RovErfLNsUPvKyo4Y0P49haTHy9Z1k9CcOVARk9CqKgBaie8GwgtkHViMBSW0DnxqMWgfS7y+Soqn/23/v+D+QJt9Bvhx0rChFJI8Eg5k/PZEHFY//BKDrkPUQZrWigGBTdiLpwfHN3q9lE5tgMRC7P9Of7MI/D8YROAQeA2lMAAAAABJRU5ErkJggg=="},5314:function(){},8326:function(){},370:function(){},1184:function(){}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,function(){r.amdO={}}(),function(){var e=[];r.O=function(t,n,i,o){if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],i=e[u][1],o=e[u][2];for(var s=!0,l=0;l<n.length;l++)(!1&o||a>=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[l])}))?n.splice(l--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]}}(),function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))}}(),function(){r.u=function(e){return"js/about.345afdd2.js"}}(),function(){r.miniCssF=function(e){return"css/about.753051b5.css"}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="room-uikit-web-vue2:";r.l=function(n,i,o,a){if(e[n])e[n].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var h=c[u];if(h.getAttribute("src")==n||h.getAttribute("data-webpack")==t+o){s=h;break}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+o),s.src=n),e[n]=[i];var d=function(t,r){s.onerror=s.onload=null,clearTimeout(f);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(r)})),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){r.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,t,r,n,i){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";var a=function(r){if(o.onerror=o.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,o.parentNode.removeChild(o),i(l)}};return o.onerror=o.onload=a,o.href=t,r?r.parentNode.insertBefore(o,r.nextSibling):document.head.appendChild(o),o},t=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var i=r[n],o=i.getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===e||o===t))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){i=a[n],o=i.getAttribute("data-href");if(o===e||o===t)return i}},n=function(n){return new Promise((function(i,o){var a=r.miniCssF(n),s=r.p+a;if(t(a,s))return i();e(n,s,null,i,o)}))},i={143:0};r.f.miniCss=function(e,t){var r={443:1};i[e]?t.push(i[e]):0!==i[e]&&r[e]&&t.push(i[e]=n(e).then((function(){i[e]=0}),(function(t){throw delete i[e],t})))}}}(),function(){var e={143:0};r.f.j=function(t,n){var i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise((function(r,n){i=e[t]=[r,n]}));n.push(i[2]=o);var a=r.p+r.u(t),s=new Error,l=function(n){if(r.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}};r.l(a,l,"chunk-"+t,t)}},r.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,o,a=n[0],s=n[1],l=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var u=l(r)}for(t&&t(n);c<a.length;c++)o=a[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=self["webpackChunkroom_uikit_web_vue2"]=self["webpackChunkroom_uikit_web_vue2"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var n=r.O(void 0,[998],(function(){return r(3470)}));n=r.O(n)})();
- //# sourceMappingURL=app.b70fbb81.js.map
|