@rongcloud/electron-renderer 5.32.0-c-rtc-alpha.1 → 5.32.0-c-rtc-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/renderer.cjs.js CHANGED
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function r(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function n(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function l(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function o(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function a(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function l(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var u,s,c,b=function(t){function o(r,o,a,l){var u=this,s=e.createLogDBProxy();return s.setLogReader((function(e,t,r,o){return n(u,void 0,void 0,(function(){return i(this,(function(e){return[2,{logs:[]}]}))}))})),s.setLogWriter((function(e){l(e)})),u=t.call(this,r,o,a,s)||this}return r(o,t),Object.defineProperty(o.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(o.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),o}(e.BasicLogger),f=0,p=Date.now(),g=function(e){var t=Date.now();return p!==t&&(p=t,f=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,f++].join("__")};e.VersionManage.add("electron-renderer","5.32.0-c-rtc-alpha.1");var h=function(){return n(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,e.fail(e.ErrorCode.NOT_SUPPORT,"Not support")]}))}))},d=function(t){function f(r,n,i){var l,c=this,f=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},p=new b(i.appkey,"IMLib","IM",f);return c=t.call(this,r,n,i,p)||this,u.add(c),Object.defineProperty(c,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),s.set(c,void 0),Object.defineProperty(c,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(c,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(c,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(c,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(c,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(c,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(c,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?i.call(e,r):i?i.value=r:t.set(e,r)}(c,s,f,"f"),p.setOutputLevel(i.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=n[r];if(u){switch(r){case"onNaviDataChange":c._cache.naviInfo=i[0];break;case"onRTCDataChange":return void c._receiveRtcKv(new Uint8Array(i[0]));case"onConnected":c._cache=i[0];break;case"onSuspend":c._setConnectionStatus(e.RCConnectionStatus.SUSPENDED);break;case"onDisconnected":c._setConnectionStatus(e.RCConnectionStatus.DISCONNECTED);break;case"onConnecting":c._setConnectionStatus(e.RCConnectionStatus.CONNECTING)}u.apply(void 0,a([],o(i),!1))}else c.logger.error(e.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,r)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=c._resolveMaps[t];i&&(delete c._resolveMaps[t],i.apply(void 0,a([],o(r),!1)))})),c._options.httpInMainProcess&&(e.runtime.httpReq=c.sendHTTPRequest.bind(c)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:i.navigators,areaCode:i.areaCode,logServerUrl:i.logServerUrl,environment:i.environment,enableReadReceiptStorage:i.enableReadReceiptStorage,useNaviV2:null!==(l=i.useNaviV2)&&void 0!==l&&l}),c._cache=c._callMainSync("getMainProcessCache"),c}return r(f,t),Object.defineProperty(f.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(f.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(f.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(f.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var i,l=g(e);t._resolveMaps[l]=n,(i=window.__ContextBridge__).send.apply(i,a(["__RC_CHANNEL_CALL_MAIN__",l,e],o(r),!1))}))}}),Object.defineProperty(f.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,a(["__RC_CHANNEL_SEND_2_MAIN__",e],o(r),!1))}}),Object.defineProperty(f.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return this.logger.info(e.LogTagId.L_CALL_MAIN_SYNC_O,t),(r=window.__ContextBridge__).sendSync.apply(r,a(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],o(n),!1))}}),Object.defineProperty(f.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(f.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new b(this._appkey,e,t,l(this,s,"f"))}}),Object.defineProperty(f.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,o){return n(this,void 0,void 0,(function(){return i(this,(function(n){return[2,l(this,u,"m",c).call(this,"connect",e,t,r,o)]}))}))}}),Object.defineProperty(f.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(f.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(f.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(f.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(f.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(f.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"recallMsg",e,t)}}),Object.defineProperty(f.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(f.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(f.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(f.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(f.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(f.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(f.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(f.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversation",e)}}),Object.defineProperty(f.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(f.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(f.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(f.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(f.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(f.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(f.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(f.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(f.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(f.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(f.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(f.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(f.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(f.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n,i){var o=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return i&&(this._resolveMaps[a]=function(t){try{i(t)}catch(t){o.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:"sendMsgBefore"}))}}),l(this,u,"m",c).call(this,"sendMessage",t,r,n,a)}}),Object.defineProperty(f.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(f.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(f.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(f.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(f.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(f.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return n(this,void 0,void 0,(function(){return i(this,(function(r){return[2,l(this,u,"m",c).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(f.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(f.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(f.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"quitChatroom",e)}}),Object.defineProperty(f.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(f.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(f.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(f.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(f.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(f.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(f.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(f.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(f.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,i,o){return l(this,u,"m",c).call(this,"getFileToken",e,t,r,n,i,o)}}),Object.defineProperty(f.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(f.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(f.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(f.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUserStatus",e)}}),Object.defineProperty(f.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"clearConversations",e,t)}}),Object.defineProperty(f.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"addToBlacklist",e)}}),Object.defineProperty(f.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(f.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getBlacklist")}}),Object.defineProperty(f.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(f.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"insertMessage",e,t)}}),Object.defineProperty(f.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(f.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(f.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(f.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(f.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(f.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(f.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"clearLocalMessages",e)}}),Object.defineProperty(f.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getMessage",e)}}),Object.defineProperty(f.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(f.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(f.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(f.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(f.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(f.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(f.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(f.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(f.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(f.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(f.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(f.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(f.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,l(this,u,"m",c).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(f.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(f.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(f.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,o){return n(this,void 0,void 0,(function(){var n;return i(this,(function(i){switch(i.label){case 0:return n=Array.prototype.slice.call(new Uint8Array(o)),[4,l(this,u,"m",c).call(this,"rtcSignaling",e,t,r,n)];case 1:return[2,i.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(f.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(f.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"createTag",e)}}),Object.defineProperty(f.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"removeTag",e)}}),Object.defineProperty(f.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"updateTag",e)}}),Object.defineProperty(f.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getTagList")}}),Object.defineProperty(f.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(f.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(f.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(f.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(f.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(f.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(f.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getTagsForConversation",e)}}),Object.defineProperty(f.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"clearLocalData")}}),Object.defineProperty(f.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(f.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(f.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUltraGroupList",e)}}),Object.defineProperty(f.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getBlockedUGList")}}),Object.defineProperty(f.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(f.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(f.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(f.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(f.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(f.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(f.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(f.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(f.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(f.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(f.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,{code:e.ErrorCode.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(f.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(f.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setProxy",e)}}),Object.defineProperty(f.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getProxy")}}),Object.defineProperty(f.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"testProxy",e,t)}}),Object.defineProperty(f.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(f.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(f.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(f.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(f.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(f.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(f.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(f.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversations",e)}}),Object.defineProperty(f.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(f.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUserProfiles",e)}}),Object.defineProperty(f.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getMyUserProfile")}}),Object.defineProperty(f.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(f.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(f.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(f.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,o){return n(this,void 0,void 0,(function(){return i(this,(function(n){return[2,l(this,u,"m",c).call(this,"createGroup",e,t,r,o)]}))}))}}),Object.defineProperty(f.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(f.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getGroupsInfo",e)}}),Object.defineProperty(f.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(f.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"quitGroup",e,t)}}),Object.defineProperty(f.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"dismissGroup",e)}}),Object.defineProperty(f.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(f.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(f.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(f.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(f.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(f.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(f.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"joinGroup",e)}}),Object.defineProperty(f.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(f.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"memberInviteResponse",e)}}),Object.defineProperty(f.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(f.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(f.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(f.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getJoinedGroups",e)}}),Object.defineProperty(f.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(f.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(f.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getGroupFollows",e)}}),Object.defineProperty(f.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"addFriend",e,t,r)}}),Object.defineProperty(f.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"deleteFriends",e,t)}}),Object.defineProperty(f.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(f.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(f.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(f.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"checkFriends",e,t)}}),Object.defineProperty(f.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getFriends",e,t)}}),Object.defineProperty(f.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(f.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getFriendsInfo",e)}}),Object.defineProperty(f.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(f.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(f.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getFriendAddPermission")}}),Object.defineProperty(f.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,l(this,u,"m",c).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(f.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,l(this,u,"m",c).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(f.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,l(this,u,"m",c).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(f.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getStatsUrlList")}}),Object.defineProperty(f.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(f.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(f.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(f.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(f.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(f.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(f.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(f.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(f.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getTranslationLanguage")}}),Object.defineProperty(f.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(f.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(f.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(f.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,o,a){return n(this,void 0,void 0,(function(){var n,s,b,f=this;return i(this,(function(i){return s=(n=function(t,r){var n=[t,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return f._resolveMaps[n]=function(n){try{r(n)}catch(r){f.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==r?void 0:r.stack,pos:t}))}},n})("localMessageBlock",a),b=n("remoteMessageBlock",o),[2,l(this,u,"m",c).call(this,"refreshReferenceMessageWithParams",t,r,b,s)]}))}))}}),Object.defineProperty(f.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"syncRemoteConversations")}}),Object.defineProperty(f.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(f.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(f.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(f.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(f.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(f.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(f.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(f.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(f.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(f.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(f.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getUnreadMentionMeConversationList",e,t)}}),f}(e.BasicEngine);s=new WeakMap,u=new WeakSet,c=function(t){for(var r=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return new Promise((function(i){var l,u=g(t);r._resolveMaps[u]=function(t){var r=t.code,n=t.msg,o=t.data;r!==e.ErrorCode.SUCCESS?i(e.fail(r,n,o)):i(e.ok(o))},(l=window.__ContextBridge__).send.apply(l,a(["__RC_CHANNEL_CALL_MAIN__",u,t],o(n),!1))}))};exports.initRenderer=function(){window.RCCppEngine=d};
15
+ ***************************************************************************** */function r(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function n(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function l(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function o(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function a(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function l(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var u,s,c,b=function(t){function o(r,o,a,l){var u=this,s=e.createLogDBProxy();return s.setLogReader((function(e,t,r,o){return n(u,void 0,void 0,(function(){return i(this,(function(e){return[2,{logs:[]}]}))}))})),s.setLogWriter((function(e){l(e)})),u=t.call(this,r,o,a,s)||this}return r(o,t),Object.defineProperty(o.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(o.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),o}(e.BasicLogger),f=0,p=Date.now(),g=function(e){var t=Date.now();return p!==t&&(p=t,f=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,f++].join("__")};e.VersionManage.add("electron-renderer","5.32.0-c-rtc-alpha.2");var h=function(){return n(void 0,void 0,void 0,(function(){return i(this,(function(t){return[2,e.fail(e.ErrorCode.NOT_SUPPORT,"Not support")]}))}))},d=function(t){function f(r,n){var i,l=this,c=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},f=new b(n.appkey,"IMLib","IM",c);return l=t.call(this,r,n,f)||this,u.add(l),Object.defineProperty(l,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),s.set(l,void 0),Object.defineProperty(l,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(l,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(l,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(l,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(l,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(l,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(l,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?i.call(e,r):i?i.value=r:t.set(e,r)}(l,s,c,"f"),f.setOutputLevel(n.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,n){for(var i=[],u=2;u<arguments.length;u++)i[u-2]=arguments[u];var s=r[n];if(s){switch(n){case"onNaviDataChange":l._cache.naviInfo=i[0];break;case"onRTCDataChange":return void l._receiveRtcKv(new Uint8Array(i[0]));case"onConnected":l._cache=i[0];break;case"onSuspend":l._setConnectionStatus(e.RCConnectionStatus.SUSPENDED);break;case"onDisconnected":l._setConnectionStatus(e.RCConnectionStatus.DISCONNECTED);break;case"onConnecting":l._setConnectionStatus(e.RCConnectionStatus.CONNECTING)}s.apply(void 0,a([],o(i),!1))}else l.logger.error(e.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,n)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=l._resolveMaps[t];i&&(delete l._resolveMaps[t],i.apply(void 0,a([],o(r),!1)))})),l._options.httpInMainProcess&&(e.runtime.httpReq=l.sendHTTPRequest.bind(l)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:n.navigators,areaCode:n.areaCode,logServerUrl:n.logServerUrl,environment:n.environment,enableReadReceiptStorage:n.enableReadReceiptStorage,useNaviV2:null!==(i=n.useNaviV2)&&void 0!==i&&i}),l._cache=l._callMainSync("getMainProcessCache"),l}return r(f,t),Object.defineProperty(f.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(f.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(f.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(f.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var i,l=g(e);t._resolveMaps[l]=n,(i=window.__ContextBridge__).send.apply(i,a(["__RC_CHANNEL_CALL_MAIN__",l,e],o(r),!1))}))}}),Object.defineProperty(f.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,a(["__RC_CHANNEL_SEND_2_MAIN__",e],o(r),!1))}}),Object.defineProperty(f.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return this.logger.info(e.LogTagId.L_CALL_MAIN_SYNC_O,t),(r=window.__ContextBridge__).sendSync.apply(r,a(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],o(n),!1))}}),Object.defineProperty(f.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(f.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new b(this._appkey,e,t,l(this,s,"f"))}}),Object.defineProperty(f.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,o){return n(this,void 0,void 0,(function(){return i(this,(function(n){return[2,l(this,u,"m",c).call(this,"connect",e,t,r,o)]}))}))}}),Object.defineProperty(f.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(f.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(f.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(f.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(f.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(f.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"recallMsg",e,t)}}),Object.defineProperty(f.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(f.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(f.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(f.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(f.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(f.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(f.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(f.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversation",e)}}),Object.defineProperty(f.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(f.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(f.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(f.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(f.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(f.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(f.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(f.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(f.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(f.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(f.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(f.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(f.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(f.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n,i){var o=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return i&&(this._resolveMaps[a]=function(t){try{i(t)}catch(t){o.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:"sendMsgBefore"}))}}),l(this,u,"m",c).call(this,"sendMessage",t,r,n,a)}}),Object.defineProperty(f.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(f.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(f.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(f.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(f.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(f.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return n(this,void 0,void 0,(function(){return i(this,(function(r){return[2,l(this,u,"m",c).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(f.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(f.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(f.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"quitChatroom",e)}}),Object.defineProperty(f.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(f.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(f.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(f.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(f.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(f.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(f.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(f.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(f.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,i,o){return l(this,u,"m",c).call(this,"getFileToken",e,t,r,n,i,o)}}),Object.defineProperty(f.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(f.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(f.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(f.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUserStatus",e)}}),Object.defineProperty(f.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"clearConversations",e,t)}}),Object.defineProperty(f.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"addToBlacklist",e)}}),Object.defineProperty(f.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(f.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getBlacklist")}}),Object.defineProperty(f.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(f.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"insertMessage",e,t)}}),Object.defineProperty(f.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(f.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(f.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(f.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(f.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(f.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(f.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"clearLocalMessages",e)}}),Object.defineProperty(f.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getMessage",e)}}),Object.defineProperty(f.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(f.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(f.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(f.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(f.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(f.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(f.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(f.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(f.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(f.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(f.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(f.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(f.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,l(this,u,"m",c).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(f.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(f.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(f.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,o){return n(this,void 0,void 0,(function(){var n;return i(this,(function(i){switch(i.label){case 0:return n=Array.prototype.slice.call(new Uint8Array(o)),[4,l(this,u,"m",c).call(this,"rtcSignaling",e,t,r,n)];case 1:return[2,i.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(f.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(f.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"createTag",e)}}),Object.defineProperty(f.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"removeTag",e)}}),Object.defineProperty(f.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"updateTag",e)}}),Object.defineProperty(f.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getTagList")}}),Object.defineProperty(f.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(f.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(f.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(f.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(f.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(f.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(f.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getTagsForConversation",e)}}),Object.defineProperty(f.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"clearLocalData")}}),Object.defineProperty(f.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(f.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(f.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUltraGroupList",e)}}),Object.defineProperty(f.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getBlockedUGList")}}),Object.defineProperty(f.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(f.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(f.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(f.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(f.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(f.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(f.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(f.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(f.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(f.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(f.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,{code:e.ErrorCode.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(f.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(f.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setProxy",e)}}),Object.defineProperty(f.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getProxy")}}),Object.defineProperty(f.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"testProxy",e,t)}}),Object.defineProperty(f.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(f.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(f.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(f.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(f.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(f.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(f.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(f.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getConversations",e)}}),Object.defineProperty(f.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(f.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUserProfiles",e)}}),Object.defineProperty(f.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getMyUserProfile")}}),Object.defineProperty(f.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(f.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(f.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(f.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,o){return n(this,void 0,void 0,(function(){return i(this,(function(n){return[2,l(this,u,"m",c).call(this,"createGroup",e,t,r,o)]}))}))}}),Object.defineProperty(f.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(f.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getGroupsInfo",e)}}),Object.defineProperty(f.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(f.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"quitGroup",e,t)}}),Object.defineProperty(f.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"dismissGroup",e)}}),Object.defineProperty(f.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(f.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(f.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(f.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(f.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(f.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(f.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"joinGroup",e)}}),Object.defineProperty(f.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(f.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"memberInviteResponse",e)}}),Object.defineProperty(f.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(f.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(f.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(f.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getJoinedGroups",e)}}),Object.defineProperty(f.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(f.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(f.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getGroupFollows",e)}}),Object.defineProperty(f.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"addFriend",e,t,r)}}),Object.defineProperty(f.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"deleteFriends",e,t)}}),Object.defineProperty(f.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(f.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(f.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(f.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"checkFriends",e,t)}}),Object.defineProperty(f.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getFriends",e,t)}}),Object.defineProperty(f.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(f.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getFriendsInfo",e)}}),Object.defineProperty(f.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(f.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(f.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getFriendAddPermission")}}),Object.defineProperty(f.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,l(this,u,"m",c).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(f.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,l(this,u,"m",c).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(f.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,l(this,u,"m",c).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(f.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getStatsUrlList")}}),Object.defineProperty(f.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(f.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(f.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(f.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(f.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(f.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(f.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return l(this,u,"m",c).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(f.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(f.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getTranslationLanguage")}}),Object.defineProperty(f.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(f.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(f.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(f.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,o,a){return n(this,void 0,void 0,(function(){var n,s,b,f=this;return i(this,(function(i){return s=(n=function(t,r){var n=[t,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return f._resolveMaps[n]=function(n){try{r(n)}catch(r){f.logger.error(e.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==r?void 0:r.stack,pos:t}))}},n})("localMessageBlock",a),b=n("remoteMessageBlock",o),[2,l(this,u,"m",c).call(this,"refreshReferenceMessageWithParams",t,r,b,s)]}))}))}}),Object.defineProperty(f.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return l(this,u,"m",c).call(this,"syncRemoteConversations")}}),Object.defineProperty(f.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(f.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(f.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(f.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(f.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return l(this,u,"m",c).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(f.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(f.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(f.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(f.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(f.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return l(this,u,"m",c).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(f.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return l(this,u,"m",c).call(this,"getUnreadMentionMeConversationList",e,t)}}),f}(e.BasicEngine);s=new WeakMap,u=new WeakSet,c=function(t){for(var r=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return new Promise((function(i){var l,u=g(t);r._resolveMaps[u]=function(t){var r=t.code,n=t.msg,o=t.data;r!==e.ErrorCode.SUCCESS?i(e.fail(r,n,o)):i(e.ok(o))},(l=window.__ContextBridge__).send.apply(l,a(["__RC_CHANNEL_CALL_MAIN__",u,t],o(n),!1))}))};exports.initRenderer=function(){window.RCCppEngine=d};
package/renderer.esm.js CHANGED
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function f(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function l(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function h(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function y(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var d,m,v,w=function(t){function r(r,n,i,o){var a=this,l=e();return l.setLogReader((function(e,t,r,n){return f(a,void 0,void 0,(function(){return p(this,(function(e){return[2,{logs:[]}]}))}))})),l.setLogWriter((function(e){o(e)})),a=t.call(this,r,n,i,l)||this}return b(r,t),Object.defineProperty(r.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(r.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),r}(t),P=0,O=Date.now(),j=function(e){var t=Date.now();return O!==t&&(O=t,P=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,P++].join("__")};r.add("electron-renderer","5.32.0-c-rtc-alpha.1");var C=function(){return f(void 0,void 0,void 0,(function(){return p(this,(function(e){return[2,s(l.NOT_SUPPORT,"Not support")]}))}))},_=function(e){function t(t,r,a){var l,u=this,s=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},c=new w(a.appkey,"IMLib","IM",s);return u=e.call(this,t,r,a,c)||this,d.add(u),Object.defineProperty(u,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),m.set(u,void 0),Object.defineProperty(u,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(u,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(u,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(u,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(u,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(u,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(u,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:C}),function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?i.call(e,r):i?i.value=r:t.set(e,r)}(u,m,s,"f"),c.setOutputLevel(a.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,t){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var l=r[t];if(l){switch(t){case"onNaviDataChange":u._cache.naviInfo=o[0];break;case"onRTCDataChange":return void u._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":u._cache=o[0];break;case"onSuspend":u._setConnectionStatus(i.SUSPENDED);break;case"onDisconnected":u._setConnectionStatus(i.DISCONNECTED);break;case"onConnecting":u._setConnectionStatus(i.CONNECTING)}l.apply(void 0,h([],g(o),!1))}else u.logger.error(n.L_UNSUPPORT_NTF_FROM_MAIN_E,t)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=u._resolveMaps[t];i&&(delete u._resolveMaps[t],i.apply(void 0,h([],g(r),!1)))})),u._options.httpInMainProcess&&(o.httpReq=u.sendHTTPRequest.bind(u)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:a.navigators,areaCode:a.areaCode,logServerUrl:a.logServerUrl,environment:a.environment,enableReadReceiptStorage:a.enableReadReceiptStorage,useNaviV2:null!==(l=a.useNaviV2)&&void 0!==l&&l}),u._cache=u._callMainSync("getMainProcessCache"),u}return b(t,e),Object.defineProperty(t.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(t.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(t.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var i,o=j(e);t._resolveMaps[o]=n,(i=window.__ContextBridge__).send.apply(i,h(["__RC_CHANNEL_CALL_MAIN__",o,e],g(r),!1))}))}}),Object.defineProperty(t.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,h(["__RC_CHANNEL_SEND_2_MAIN__",e],g(r),!1))}}),Object.defineProperty(t.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return this.logger.info(n.L_CALL_MAIN_SYNC_O,e),(t=window.__ContextBridge__).sendSync.apply(t,h(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],g(r),!1))}}),Object.defineProperty(t.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(t.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new w(this._appkey,e,t,y(this,m,"f"))}}),Object.defineProperty(t.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return f(this,void 0,void 0,(function(){return p(this,(function(i){return[2,y(this,d,"m",v).call(this,"connect",e,t,r,n)]}))}))}}),Object.defineProperty(t.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(t.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(t.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversation",e)}}),Object.defineProperty(t.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(t.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(t.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,i){var o=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return i&&(this._resolveMaps[a]=function(e){try{i(e)}catch(e){o.logger.error(n.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),y(this,d,"m",v).call(this,"sendMessage",e,t,r,a)}}),Object.defineProperty(t.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(t.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(t.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return f(this,void 0,void 0,(function(){return p(this,(function(r){return[2,y(this,d,"m",v).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(t.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(t.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"quitChatroom",e)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(t.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,i,o){return y(this,d,"m",v).call(this,"getFileToken",e,t,r,n,i,o)}}),Object.defineProperty(t.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(t.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(t.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(t.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"insertMessage",e,t)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(t.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"clearLocalMessages",e)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(t.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(t.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(t.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(t.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(t.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(t.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",v).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(t.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(t.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return f(this,void 0,void 0,(function(){var i;return p(this,(function(o){switch(o.label){case 0:return i=Array.prototype.slice.call(new Uint8Array(n)),[4,y(this,d,"m",v).call(this,"rtcSignaling",e,t,r,i)];case 1:return[2,o.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(t.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"clearLocalData")}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUltraGroupList",e)}}),Object.defineProperty(t.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getBlockedUGList")}}),Object.defineProperty(t.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(t.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(t.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(t.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(t.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(t.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(t.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,{code:l.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(t.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(t.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(t.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return f(this,void 0,void 0,(function(){return p(this,(function(i){return[2,y(this,d,"m",v).call(this,"createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(t.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(t.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(t.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(t.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getFriendAddPermission")}}),Object.defineProperty(t.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return f(this,void 0,void 0,(function(){return p(this,(function(t){return[2,y(this,d,"m",v).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(t.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",v).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",v).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(t.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(t.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(t.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getTranslationLanguage")}}),Object.defineProperty(t.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(t.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(t.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(t.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,i){return f(this,void 0,void 0,(function(){var o,a,l,u=this;return p(this,(function(s){return a=(o=function(e,t){var r=[e,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return u._resolveMaps[r]=function(r){try{t(r)}catch(t){u.logger.error(n.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:e}))}},r})("localMessageBlock",i),l=o("remoteMessageBlock",r),[2,y(this,d,"m",v).call(this,"refreshReferenceMessageWithParams",e,t,l,a)]}))}))}}),Object.defineProperty(t.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"syncRemoteConversations")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(t.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(t.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(t.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(t.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(t.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getUnreadMentionMeConversationList",e,t)}}),t}(a);m=new WeakMap,d=new WeakSet,v=function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var i,o=j(e);t._resolveMaps[o]=function(e){var t=e.code,r=e.msg,i=e.data;t!==l.SUCCESS?n(s(t,r,i)):n(u(i))},(i=window.__ContextBridge__).send.apply(i,h(["__RC_CHANNEL_CALL_MAIN__",o,e],g(r),!1))}))};var M=function(){window.RCCppEngine=_};export{M as initRenderer};
15
+ ***************************************************************************** */var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function f(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function l(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function h(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function y(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var d,m,v,w=function(t){function r(r,n,i,o){var a=this,l=e();return l.setLogReader((function(e,t,r,n){return f(a,void 0,void 0,(function(){return p(this,(function(e){return[2,{logs:[]}]}))}))})),l.setLogWriter((function(e){o(e)})),a=t.call(this,r,n,i,l)||this}return b(r,t),Object.defineProperty(r.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(r.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),r}(t),P=0,O=Date.now(),j=function(e){var t=Date.now();return O!==t&&(O=t,P=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,P++].join("__")};r.add("electron-renderer","5.32.0-c-rtc-alpha.2");var C=function(){return f(void 0,void 0,void 0,(function(){return p(this,(function(e){return[2,s(l.NOT_SUPPORT,"Not support")]}))}))},_=function(e){function t(t,r){var a,l=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},s=new w(r.appkey,"IMLib","IM",u);return l=e.call(this,t,r,s)||this,d.add(l),Object.defineProperty(l,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),m.set(l,void 0),Object.defineProperty(l,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(l,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(l,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(l,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(l,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(l,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(l,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:C}),function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?i.call(e,r):i?i.value=r:t.set(e,r)}(l,m,u,"f"),s.setOutputLevel(r.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var u=t[r];if(u){switch(r){case"onNaviDataChange":l._cache.naviInfo=o[0];break;case"onRTCDataChange":return void l._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":l._cache=o[0];break;case"onSuspend":l._setConnectionStatus(i.SUSPENDED);break;case"onDisconnected":l._setConnectionStatus(i.DISCONNECTED);break;case"onConnecting":l._setConnectionStatus(i.CONNECTING)}u.apply(void 0,h([],g(o),!1))}else l.logger.error(n.L_UNSUPPORT_NTF_FROM_MAIN_E,r)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=l._resolveMaps[t];i&&(delete l._resolveMaps[t],i.apply(void 0,h([],g(r),!1)))})),l._options.httpInMainProcess&&(o.httpReq=l.sendHTTPRequest.bind(l)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:r.navigators,areaCode:r.areaCode,logServerUrl:r.logServerUrl,environment:r.environment,enableReadReceiptStorage:r.enableReadReceiptStorage,useNaviV2:null!==(a=r.useNaviV2)&&void 0!==a&&a}),l._cache=l._callMainSync("getMainProcessCache"),l}return b(t,e),Object.defineProperty(t.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(t.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(t.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(t.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var i,o=j(e);t._resolveMaps[o]=n,(i=window.__ContextBridge__).send.apply(i,h(["__RC_CHANNEL_CALL_MAIN__",o,e],g(r),!1))}))}}),Object.defineProperty(t.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,h(["__RC_CHANNEL_SEND_2_MAIN__",e],g(r),!1))}}),Object.defineProperty(t.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return this.logger.info(n.L_CALL_MAIN_SYNC_O,e),(t=window.__ContextBridge__).sendSync.apply(t,h(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],g(r),!1))}}),Object.defineProperty(t.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(t.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new w(this._appkey,e,t,y(this,m,"f"))}}),Object.defineProperty(t.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return f(this,void 0,void 0,(function(){return p(this,(function(i){return[2,y(this,d,"m",v).call(this,"connect",e,t,r,n)]}))}))}}),Object.defineProperty(t.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(t.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(t.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(t.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(t.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"recallMsg",e,t)}}),Object.defineProperty(t.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(t.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(t.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversation",e)}}),Object.defineProperty(t.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(t.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(t.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(t.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(t.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(t.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(t.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,i){var o=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return i&&(this._resolveMaps[a]=function(e){try{i(e)}catch(e){o.logger.error(n.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),y(this,d,"m",v).call(this,"sendMessage",e,t,r,a)}}),Object.defineProperty(t.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(t.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(t.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(t.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return f(this,void 0,void 0,(function(){return p(this,(function(r){return[2,y(this,d,"m",v).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(t.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(t.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(t.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"quitChatroom",e)}}),Object.defineProperty(t.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(t.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(t.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(t.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(t.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(t.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,i,o){return y(this,d,"m",v).call(this,"getFileToken",e,t,r,n,i,o)}}),Object.defineProperty(t.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(t.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(t.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(t.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUserStatus",e)}}),Object.defineProperty(t.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"clearConversations",e,t)}}),Object.defineProperty(t.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"addToBlacklist",e)}}),Object.defineProperty(t.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(t.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getBlacklist")}}),Object.defineProperty(t.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(t.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"insertMessage",e,t)}}),Object.defineProperty(t.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(t.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(t.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(t.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(t.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(t.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"clearLocalMessages",e)}}),Object.defineProperty(t.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getMessage",e)}}),Object.defineProperty(t.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(t.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(t.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(t.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(t.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(t.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(t.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(t.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(t.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(t.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",v).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(t.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(t.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return f(this,void 0,void 0,(function(){var i;return p(this,(function(o){switch(o.label){case 0:return i=Array.prototype.slice.call(new Uint8Array(n)),[4,y(this,d,"m",v).call(this,"rtcSignaling",e,t,r,i)];case 1:return[2,o.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(t.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(t.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"createTag",e)}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"removeTag",e)}}),Object.defineProperty(t.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"updateTag",e)}}),Object.defineProperty(t.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getTagList")}}),Object.defineProperty(t.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(t.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(t.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(t.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(t.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(t.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getTagsForConversation",e)}}),Object.defineProperty(t.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"clearLocalData")}}),Object.defineProperty(t.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(t.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUltraGroupList",e)}}),Object.defineProperty(t.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getBlockedUGList")}}),Object.defineProperty(t.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(t.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(t.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(t.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(t.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(t.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(t.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(t.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(t.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,{code:l.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(t.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(t.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setProxy",e)}}),Object.defineProperty(t.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getProxy")}}),Object.defineProperty(t.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"testProxy",e,t)}}),Object.defineProperty(t.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(t.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(t.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(t.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(t.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(t.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(t.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getConversations",e)}}),Object.defineProperty(t.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(t.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUserProfiles",e)}}),Object.defineProperty(t.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getMyUserProfile")}}),Object.defineProperty(t.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(t.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(t.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(t.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return f(this,void 0,void 0,(function(){return p(this,(function(i){return[2,y(this,d,"m",v).call(this,"createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(t.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getGroupsInfo",e)}}),Object.defineProperty(t.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"quitGroup",e,t)}}),Object.defineProperty(t.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"dismissGroup",e)}}),Object.defineProperty(t.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(t.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(t.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(t.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(t.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"joinGroup",e)}}),Object.defineProperty(t.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(t.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"memberInviteResponse",e)}}),Object.defineProperty(t.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(t.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(t.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getJoinedGroups",e)}}),Object.defineProperty(t.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(t.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(t.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getGroupFollows",e)}}),Object.defineProperty(t.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"addFriend",e,t,r)}}),Object.defineProperty(t.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"deleteFriends",e,t)}}),Object.defineProperty(t.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(t.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(t.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(t.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"checkFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getFriends",e,t)}}),Object.defineProperty(t.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(t.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getFriendsInfo",e)}}),Object.defineProperty(t.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(t.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(t.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getFriendAddPermission")}}),Object.defineProperty(t.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return f(this,void 0,void 0,(function(){return p(this,(function(t){return[2,y(this,d,"m",v).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(t.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",v).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return f(this,void 0,void 0,(function(){return p(this,(function(e){return[2,y(this,d,"m",v).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(t.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getStatsUrlList")}}),Object.defineProperty(t.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(t.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(t.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(t.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(t.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(t.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return y(this,d,"m",v).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(t.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(t.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getTranslationLanguage")}}),Object.defineProperty(t.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(t.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(t.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(t.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,i){return f(this,void 0,void 0,(function(){var o,a,l,u=this;return p(this,(function(s){return a=(o=function(e,t){var r=[e,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return u._resolveMaps[r]=function(r){try{t(r)}catch(t){u.logger.error(n.L_CALLBACK_E,JSON.stringify({error:null==t?void 0:t.stack,pos:e}))}},r})("localMessageBlock",i),l=o("remoteMessageBlock",r),[2,y(this,d,"m",v).call(this,"refreshReferenceMessageWithParams",e,t,l,a)]}))}))}}),Object.defineProperty(t.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return y(this,d,"m",v).call(this,"syncRemoteConversations")}}),Object.defineProperty(t.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(t.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(t.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(t.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(t.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return y(this,d,"m",v).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(t.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(t.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(t.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(t.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return y(this,d,"m",v).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(t.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return y(this,d,"m",v).call(this,"getUnreadMentionMeConversationList",e,t)}}),t}(a);m=new WeakMap,d=new WeakSet,v=function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var i,o=j(e);t._resolveMaps[o]=function(e){var t=e.code,r=e.msg,i=e.data;t!==l.SUCCESS?n(s(t,r,i)):n(u(i))},(i=window.__ContextBridge__).send.apply(i,h(["__RC_CHANNEL_CALL_MAIN__",o,e],g(r),!1))}))};var M=function(){window.RCCppEngine=_};export{M as initRenderer};