@rongcloud/electron-renderer 5.32.0 → 5.34.0-alpha.1
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/index.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +9 -11
- package/index.esm.js +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
- package/renderer.cjs.js +1 -1
- package/renderer.esm.js +2 -2
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("electron"),t=require("@rongcloud/engine"),r=function(e,t){return r=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])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(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,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(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 s,c,b,p=function(e){function r(r,n,a,l){var u=this,s=t.createLogDBProxy();return s.setLogReader((function(e,t,r,n){return o(u,void 0,void 0,(function(){return i(this,(function(e){return[2,{logs:[]}]}))}))})),s.setLogWriter((function(e){l(e)})),u=e.call(this,r,n,a,s)||this}return n(r,e),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.BasicLogger),f=0,g=Date.now(),d=function(e){var t=Date.now();return g!==t&&(g=t,f=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,f++].join("__")};t.VersionManage.add("electron-renderer","5.32.0");var h=function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){return[2,t.fail(t.ErrorCode.NOT_SUPPORT,"Not support")]}))}))},y=function(e){function r(r,n){var o,i=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},b=new p(n.appkey,"IMLib","IM",u);return i=e.call(this,r,n,b)||this,s.add(i),Object.defineProperty(i,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),c.set(i,void 0),Object.defineProperty(i,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(i,"loadConversationList",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(i,c,u,"f"),b.setOutputLevel(n.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,n){for(var o=[],u=2;u<arguments.length;u++)o[u-2]=arguments[u];var s=r[n];if(s){switch(n){case"onNaviDataChange":i._cache.naviInfo=o[0];break;case"onRTCDataChange":return void i._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":i._cache=o[0];break;case"onSuspend":i._setConnectionStatus(t.RCConnectionStatus.SUSPENDED);break;case"onDisconnected":i._setConnectionStatus(t.RCConnectionStatus.DISCONNECTED);break;case"onConnecting":i._setConnectionStatus(t.RCConnectionStatus.CONNECTING)}s.apply(void 0,l([],a(o),!1))}else i.logger.error(t.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 o=i._resolveMaps[t];o&&(delete i._resolveMaps[t],o.apply(void 0,l([],a(r),!1)))})),i._options.httpInMainProcess&&(t.runtime.httpReq=i.sendHTTPRequest.bind(i)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:n.navigators,areaCode:n.areaCode,logServerUrl:n.logServerUrl,environment:n.environment,enableReadReceiptStorage:n.enableReadReceiptStorage,useNaviV2:null!==(o=n.useNaviV2)&&void 0!==o&&o}),i._cache=i._callMainSync("getMainProcessCache"),i}return n(r,e),Object.defineProperty(r.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(r.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(r.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(r.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 o,i=d(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,l(["__RC_CHANNEL_CALL_MAIN__",i,e],a(r),!1))}))}}),Object.defineProperty(r.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,l(["__RC_CHANNEL_SEND_2_MAIN__",e],a(r),!1))}}),Object.defineProperty(r.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(t.LogTagId.L_CALL_MAIN_SYNC_O,e),(r=window.__ContextBridge__).sendSync.apply(r,l(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],a(n),!1))}}),Object.defineProperty(r.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(r.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new p(this._appkey,e,t,u(this,c,"f"))}}),Object.defineProperty(r.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,u(this,s,"m",b).call(this,"connect",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(r.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(r.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(r.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"recallMsg",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(r.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(r.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversation",e)}}),Object.defineProperty(r.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(r.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(r.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(r.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(r.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(r.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(r.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,o){var i=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[a]=function(e){try{o(e)}catch(e){i.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),u(this,s,"m",b).call(this,"sendMessage",e,r,n,a)}}),Object.defineProperty(r.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(r.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(r.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,u(this,s,"m",b).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(r.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(r.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(r.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"quitChatroom",e,t)}}),Object.defineProperty(r.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(r.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(r.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(r.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(r.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return u(this,s,"m",b).call(this,"getFileToken",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(r.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(r.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(r.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUserStatus",e)}}),Object.defineProperty(r.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"clearConversations",e,t)}}),Object.defineProperty(r.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"addToBlacklist",e)}}),Object.defineProperty(r.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(r.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getBlacklist")}}),Object.defineProperty(r.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(r.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"insertMessage",e,t)}}),Object.defineProperty(r.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(r.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(r.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(r.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(r.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(r.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(r.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"clearLocalMessages",e)}}),Object.defineProperty(r.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getMessage",e)}}),Object.defineProperty(r.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(r.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(r.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(r.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(r.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(r.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(r.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,s,"m",b).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(r.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(r.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(r.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,u(this,s,"m",b).call(this,"rtcSignaling",e,t,r,o)];case 1:return[2,i.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(r.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(r.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"createTag",e)}}),Object.defineProperty(r.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"removeTag",e)}}),Object.defineProperty(r.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"updateTag",e)}}),Object.defineProperty(r.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getTagList")}}),Object.defineProperty(r.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(r.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(r.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getTagsForConversation",e)}}),Object.defineProperty(r.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"clearLocalData")}}),Object.defineProperty(r.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(r.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUltraGroupList",e)}}),Object.defineProperty(r.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getBlockedUGList")}}),Object.defineProperty(r.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(r.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(r.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(r.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(r.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(r.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(r.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(r.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(r.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,{code:t.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(r.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(r.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setProxy",e)}}),Object.defineProperty(r.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getProxy")}}),Object.defineProperty(r.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"testProxy",e,t)}}),Object.defineProperty(r.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(r.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(r.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(r.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(r.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(r.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversations",e)}}),Object.defineProperty(r.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(r.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUserProfiles",e)}}),Object.defineProperty(r.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getMyUserProfile")}}),Object.defineProperty(r.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(r.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(r.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(r.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,u(this,s,"m",b).call(this,"createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getGroupsInfo",e)}}),Object.defineProperty(r.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"quitGroup",e,t)}}),Object.defineProperty(r.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"dismissGroup",e)}}),Object.defineProperty(r.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(r.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(r.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"joinGroup",e)}}),Object.defineProperty(r.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(r.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"memberInviteResponse",e)}}),Object.defineProperty(r.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(r.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(r.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getJoinedGroups",e)}}),Object.defineProperty(r.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(r.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getGroupFollows",e)}}),Object.defineProperty(r.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"addFriend",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"deleteFriends",e,t)}}),Object.defineProperty(r.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(r.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(r.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(r.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"checkFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getFriendsInfo",e)}}),Object.defineProperty(r.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(r.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(r.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getFriendAddPermission")}}),Object.defineProperty(r.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,u(this,s,"m",b).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(r.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,s,"m",b).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,s,"m",b).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getStatsUrlList")}}),Object.defineProperty(r.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(r.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(r.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(r.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(r.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(r.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getTranslationLanguage")}}),Object.defineProperty(r.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(r.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(r.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(r.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,a){return o(this,void 0,void 0,(function(){var o,l,c,p=this;return i(this,(function(i){return l=(o=function(e,r){var n=[e,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return p._resolveMaps[n]=function(n){try{r(n)}catch(r){p.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==r?void 0:r.stack,pos:e}))}},n})("localMessageBlock",a),c=o("remoteMessageBlock",n),[2,u(this,s,"m",b).call(this,"refreshReferenceMessageWithParams",e,r,c,l)]}))}))}}),Object.defineProperty(r.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"syncRemoteConversations")}}),Object.defineProperty(r.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(r.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(r.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(r.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(r.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(r.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(r.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(r.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(r.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getUnreadMentionMeConversationList",e,t)}}),Object.defineProperty(r.prototype,"getAllRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getAllRobots")}}),Object.defineProperty(r.prototype,"getConversationsIncludingRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversationsIncludingRobots",e)}}),r}(t.BasicEngine);c=new WeakMap,s=new WeakSet,b=function(e){for(var r=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var i,u=d(e);r._resolveMaps[u]=function(e){var r=e.code,n=e.msg,i=e.data;r!==t.ErrorCode.SUCCESS?o(t.fail(r,n,i)):o(t.ok(i))},(i=window.__ContextBridge__).send.apply(i,l(["__RC_CHANNEL_CALL_MAIN__",u,e],a(n),!1))}))};var m={on:function(t,r){e.ipcRenderer.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,l([e],a(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.ipcRenderer.send.apply(e.ipcRenderer,l([t],a(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.ipcRenderer.sendSync.apply(e.ipcRenderer,l([t],a(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,l([],a(r),!1))}};window&&(window.RCCppEngine=y,window.__ContextBridge__=m);exports.RCCppEngine=y,exports.initContextBridge=function(){e.contextBridge&&e.contextBridge.exposeInMainWorld("__ContextBridge__",m)};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("electron"),t=require("@rongcloud/engine"),r=function(e,t){return r=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])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(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,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(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)}function s(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}var c,b,p,f,g,d=function(e){function r(r,n,a,l){var u=this,s=t.createLogDBProxy();return s.setLogReader((function(e,t,r,n){return o(u,void 0,void 0,(function(){return i(this,(function(e){return[2,{logs:[]}]}))}))})),s.setLogWriter((function(e){l(e)})),u=e.call(this,r,n,a,s)||this}return n(r,e),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.BasicLogger),h=0,y=Date.now(),m=function(e){var t=Date.now();return y!==t&&(y=t,h=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,h++].join("__")};t.VersionManage.add("electron-renderer","5.34.0-alpha.1");var v=function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){return[2,t.fail(t.ErrorCode.NOT_SUPPORT,"Not support")]}))}))},w=function(e){function r(r,n){var o,i=e.call(this,r,n)||this;c.add(i),Object.defineProperty(i,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),b.set(i,void 0),p.set(i,void 0),f.set(i,!1),Object.defineProperty(i,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(i,"loadConversationList",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:v});var u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},g=s(i,p,new d(n.appkey,"IMLib","IM",u),"f");return s(i,b,u,"f"),g.setOutputLevel(n.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,n){for(var o=[],u=2;u<arguments.length;u++)o[u-2]=arguments[u];var c=r[n];if(c){switch(n){case"ultraGroupEnable":s(i,f,!0,"f");break;case"onNaviDataChange":i._cache.naviInfo=o[0];break;case"onRTCDataChange":return void i._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":s(i,f,!1,"f"),i._cache=o[1];break;case"onSuspend":s(i,f,!1,"f"),i._setConnectionStatus(t.RCConnectionStatus.SUSPENDED);break;case"onDisconnected":s(i,f,!1,"f"),i._setConnectionStatus(t.RCConnectionStatus.DISCONNECTED);break;case"onConnecting":i._setConnectionStatus(t.RCConnectionStatus.CONNECTING)}c.apply(void 0,l([],a(o),!1))}else i.logger.error(t.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 o=i._resolveMaps[t];o&&(delete i._resolveMaps[t],o.apply(void 0,l([],a(r),!1)))})),i._options.httpInMainProcess&&(t.runtime.httpReq=i.sendHTTPRequest.bind(i)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:n.navigators,areaCode:n.areaCode,logServerUrl:n.logServerUrl,environment:n.environment,enableReadReceiptStorage:n.enableReadReceiptStorage,useNaviV2:null!==(o=n.useNaviV2)&&void 0!==o&&o}),i._cache=i._callMainSync("getMainProcessCache"),i}return n(r,e),Object.defineProperty(r.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"logger",{get:function(){return u(this,p,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ugSynced",{get:function(){return u(this,f,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e,e===t.RCConnectionStatus.DISCONNECTED&&(this._cache.crtUserId="")}}),Object.defineProperty(r.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(r.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 o,i=m(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,l(["__RC_CHANNEL_CALL_MAIN__",i,e],a(r),!1))}))}}),Object.defineProperty(r.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,l(["__RC_CHANNEL_SEND_2_MAIN__",e],a(r),!1))}}),Object.defineProperty(r.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=window.__ContextBridge__).sendSync.apply(t,l(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],a(r),!1))}}),Object.defineProperty(r.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"refetchNaviInfo")}}),Object.defineProperty(r.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new d(this._appkey,e,t,u(this,b,"f"))}}),Object.defineProperty(r.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,u(this,c,"m",g).call(this,"connect",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(r.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(r.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(r.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"recallMsg",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(r.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(r.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversation",e)}}),Object.defineProperty(r.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(r.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(r.prototype,"markRemoteConversationAsRead",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"markRemoteConversationAsRead",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(r.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(r.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(r.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(r.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(r.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,o){var i=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[a]=function(e){try{o(e)}catch(e){i.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),u(this,c,"m",g).call(this,"sendMessage",e,r,n,a)}}),Object.defineProperty(r.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(r.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(r.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,u(this,c,"m",g).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(r.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(r.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(r.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"quitChatroom",e,t)}}),Object.defineProperty(r.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(r.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(r.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(r.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(r.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return u(this,c,"m",g).call(this,"getFileToken",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(r.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(r.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(r.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUserStatus",e)}}),Object.defineProperty(r.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"clearConversations",e,t)}}),Object.defineProperty(r.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"addToBlacklist",e)}}),Object.defineProperty(r.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(r.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getBlacklist")}}),Object.defineProperty(r.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(r.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"insertMessage",e,t)}}),Object.defineProperty(r.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(r.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(r.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(r.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(r.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(r.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(r.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"clearLocalMessages",e)}}),Object.defineProperty(r.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getMessage",e)}}),Object.defineProperty(r.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(r.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(r.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(r.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(r.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(r.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(r.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(r.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(r.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(r.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,u(this,c,"m",g).call(this,"rtcSignaling",e,t,r,o)];case 1:return[2,i.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(r.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(r.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"createTag",e)}}),Object.defineProperty(r.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"removeTag",e)}}),Object.defineProperty(r.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"updateTag",e)}}),Object.defineProperty(r.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getTagList")}}),Object.defineProperty(r.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(r.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(r.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getTagsForConversation",e)}}),Object.defineProperty(r.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"clearLocalData")}}),Object.defineProperty(r.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(r.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUltraGroupList",e)}}),Object.defineProperty(r.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getBlockedUGList")}}),Object.defineProperty(r.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(r.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(r.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(r.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(r.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(r.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(r.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(r.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"getOSInfo")]}))}))}}),Object.defineProperty(r.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,t.ok({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(r.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"getMainProcessInfo")]}))}))}}),Object.defineProperty(r.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setProxy",e)}}),Object.defineProperty(r.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getProxy")}}),Object.defineProperty(r.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"testProxy",e,t)}}),Object.defineProperty(r.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(r.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(r.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(r.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(r.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(r.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversations",e)}}),Object.defineProperty(r.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(r.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUserProfiles",e)}}),Object.defineProperty(r.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getMyUserProfile")}}),Object.defineProperty(r.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(r.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(r.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(r.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,u(this,c,"m",g).call(this,"createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getGroupsInfo",e)}}),Object.defineProperty(r.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"quitGroup",e,t)}}),Object.defineProperty(r.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"dismissGroup",e)}}),Object.defineProperty(r.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(r.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(r.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"joinGroup",e)}}),Object.defineProperty(r.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(r.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"memberInviteResponse",e)}}),Object.defineProperty(r.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(r.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(r.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getJoinedGroups",e)}}),Object.defineProperty(r.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(r.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getGroupFollows",e)}}),Object.defineProperty(r.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"addFriend",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"deleteFriends",e,t)}}),Object.defineProperty(r.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(r.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(r.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(r.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"checkFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getFriendsInfo",e)}}),Object.defineProperty(r.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(r.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(r.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getFriendAddPermission")}}),Object.defineProperty(r.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,u(this,c,"m",g).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(r.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getStatsUrlList")}}),Object.defineProperty(r.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(r.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(r.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(r.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(r.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(r.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getTranslationLanguage")}}),Object.defineProperty(r.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(r.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(r.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(r.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,a){return o(this,void 0,void 0,(function(){var o,l,s,b=this;return i(this,(function(i){return l=(o=function(e,r){var n=[e,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return b._resolveMaps[n]=function(n){try{r(n)}catch(r){b.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==r?void 0:r.stack,pos:e}))}},n})("localMessageBlock",a),s=o("remoteMessageBlock",n),[2,u(this,c,"m",g).call(this,"refreshReferenceMessageWithParams",e,r,s,l)]}))}))}}),Object.defineProperty(r.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"syncRemoteConversations")}}),Object.defineProperty(r.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(r.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(r.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(r.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(r.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(r.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(r.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(r.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(r.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getUnreadMentionMeConversationList",e,t)}}),Object.defineProperty(r.prototype,"getAllRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getAllRobots")}}),Object.defineProperty(r.prototype,"getConversationsIncludingRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversationsIncludingRobots",e)}}),r}(t.BasicEngine);b=new WeakMap,p=new WeakMap,f=new WeakMap,c=new WeakSet,g=function(e){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=t.promiseWithResolvers(),u=i.promise,s=i.resolve,c=m(e);return this._resolveMaps[c]=function(e){var r=e.code,n=e.msg,o=e.data;s(t.RCResult.from(r,n,o))},(r=window.__ContextBridge__).send.apply(r,l(["__RC_CHANNEL_CALL_MAIN__",c,e],a(n),!1)),u};var P={on:function(t,r){e.ipcRenderer.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,l([e],a(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.ipcRenderer.send.apply(e.ipcRenderer,l([t],a(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.ipcRenderer.sendSync.apply(e.ipcRenderer,l([t],a(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,l([],a(r),!1))}};window&&(window.RCCppEngine=w,window.__ContextBridge__=P);exports.RCCppEngine=w,exports.initContextBridge=function(){e.contextBridge&&e.contextBridge.exposeInMainWorld("__ContextBridge__",P)};
|
package/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("electron"),t=require("@rongcloud/engine"),r=function(e,t){return r=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])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(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,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(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 s,c,b,p=function(e){function r(r,n,a,l){var u=this,s=t.createLogDBProxy();return s.setLogReader((function(e,t,r,n){return o(u,void 0,void 0,(function(){return i(this,(function(e){return[2,{logs:[]}]}))}))})),s.setLogWriter((function(e){l(e)})),u=e.call(this,r,n,a,s)||this}return n(r,e),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.BasicLogger),f=0,g=Date.now(),d=function(e){var t=Date.now();return g!==t&&(g=t,f=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,f++].join("__")};t.VersionManage.add("electron-renderer","5.32.0");var h=function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){return[2,t.fail(t.ErrorCode.NOT_SUPPORT,"Not support")]}))}))},y=function(e){function r(r,n){var o,i=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},b=new p(n.appkey,"IMLib","IM",u);return i=e.call(this,r,n,b)||this,s.add(i),Object.defineProperty(i,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),c.set(i,void 0),Object.defineProperty(i,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(i,"loadConversationList",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(i,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:h}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(i,c,u,"f"),b.setOutputLevel(n.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,n){for(var o=[],u=2;u<arguments.length;u++)o[u-2]=arguments[u];var s=r[n];if(s){switch(n){case"onNaviDataChange":i._cache.naviInfo=o[0];break;case"onRTCDataChange":return void i._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":i._cache=o[0];break;case"onSuspend":i._setConnectionStatus(t.RCConnectionStatus.SUSPENDED);break;case"onDisconnected":i._setConnectionStatus(t.RCConnectionStatus.DISCONNECTED);break;case"onConnecting":i._setConnectionStatus(t.RCConnectionStatus.CONNECTING)}s.apply(void 0,l([],a(o),!1))}else i.logger.error(t.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 o=i._resolveMaps[t];o&&(delete i._resolveMaps[t],o.apply(void 0,l([],a(r),!1)))})),i._options.httpInMainProcess&&(t.runtime.httpReq=i.sendHTTPRequest.bind(i)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:n.navigators,areaCode:n.areaCode,logServerUrl:n.logServerUrl,environment:n.environment,enableReadReceiptStorage:n.enableReadReceiptStorage,useNaviV2:null!==(o=n.useNaviV2)&&void 0!==o&&o}),i._cache=i._callMainSync("getMainProcessCache"),i}return n(r,e),Object.defineProperty(r.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(r.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(r.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(r.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 o,i=d(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,l(["__RC_CHANNEL_CALL_MAIN__",i,e],a(r),!1))}))}}),Object.defineProperty(r.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,l(["__RC_CHANNEL_SEND_2_MAIN__",e],a(r),!1))}}),Object.defineProperty(r.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(t.LogTagId.L_CALL_MAIN_SYNC_O,e),(r=window.__ContextBridge__).sendSync.apply(r,l(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],a(n),!1))}}),Object.defineProperty(r.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(r.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new p(this._appkey,e,t,u(this,c,"f"))}}),Object.defineProperty(r.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,u(this,s,"m",b).call(this,"connect",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(r.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(r.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(r.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"recallMsg",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(r.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(r.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversation",e)}}),Object.defineProperty(r.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(r.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(r.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(r.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(r.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(r.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(r.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,o){var i=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[a]=function(e){try{o(e)}catch(e){i.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),u(this,s,"m",b).call(this,"sendMessage",e,r,n,a)}}),Object.defineProperty(r.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(r.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(r.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,u(this,s,"m",b).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(r.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(r.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(r.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"quitChatroom",e,t)}}),Object.defineProperty(r.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(r.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(r.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(r.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(r.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return u(this,s,"m",b).call(this,"getFileToken",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(r.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(r.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(r.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUserStatus",e)}}),Object.defineProperty(r.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"clearConversations",e,t)}}),Object.defineProperty(r.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"addToBlacklist",e)}}),Object.defineProperty(r.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(r.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getBlacklist")}}),Object.defineProperty(r.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(r.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"insertMessage",e,t)}}),Object.defineProperty(r.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(r.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(r.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(r.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(r.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(r.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(r.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"clearLocalMessages",e)}}),Object.defineProperty(r.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getMessage",e)}}),Object.defineProperty(r.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(r.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(r.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(r.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(r.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(r.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(r.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,s,"m",b).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(r.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(r.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(r.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,u(this,s,"m",b).call(this,"rtcSignaling",e,t,r,o)];case 1:return[2,i.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(r.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(r.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"createTag",e)}}),Object.defineProperty(r.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"removeTag",e)}}),Object.defineProperty(r.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"updateTag",e)}}),Object.defineProperty(r.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getTagList")}}),Object.defineProperty(r.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(r.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(r.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getTagsForConversation",e)}}),Object.defineProperty(r.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"clearLocalData")}}),Object.defineProperty(r.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(r.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUltraGroupList",e)}}),Object.defineProperty(r.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getBlockedUGList")}}),Object.defineProperty(r.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(r.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(r.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(r.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(r.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(r.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(r.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(r.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(r.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,{code:t.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(r.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(r.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setProxy",e)}}),Object.defineProperty(r.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getProxy")}}),Object.defineProperty(r.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"testProxy",e,t)}}),Object.defineProperty(r.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(r.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(r.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(r.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(r.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(r.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversations",e)}}),Object.defineProperty(r.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(r.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUserProfiles",e)}}),Object.defineProperty(r.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getMyUserProfile")}}),Object.defineProperty(r.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(r.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(r.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(r.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,u(this,s,"m",b).call(this,"createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getGroupsInfo",e)}}),Object.defineProperty(r.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"quitGroup",e,t)}}),Object.defineProperty(r.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"dismissGroup",e)}}),Object.defineProperty(r.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(r.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(r.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"joinGroup",e)}}),Object.defineProperty(r.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(r.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"memberInviteResponse",e)}}),Object.defineProperty(r.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(r.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(r.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getJoinedGroups",e)}}),Object.defineProperty(r.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(r.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getGroupFollows",e)}}),Object.defineProperty(r.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"addFriend",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"deleteFriends",e,t)}}),Object.defineProperty(r.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(r.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(r.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(r.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"checkFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getFriendsInfo",e)}}),Object.defineProperty(r.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(r.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(r.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getFriendAddPermission")}}),Object.defineProperty(r.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,u(this,s,"m",b).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(r.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,s,"m",b).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,s,"m",b).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getStatsUrlList")}}),Object.defineProperty(r.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(r.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(r.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(r.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,s,"m",b).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(r.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(r.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getTranslationLanguage")}}),Object.defineProperty(r.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(r.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(r.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(r.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,a){return o(this,void 0,void 0,(function(){var o,l,c,p=this;return i(this,(function(i){return l=(o=function(e,r){var n=[e,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return p._resolveMaps[n]=function(n){try{r(n)}catch(r){p.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==r?void 0:r.stack,pos:e}))}},n})("localMessageBlock",a),c=o("remoteMessageBlock",n),[2,u(this,s,"m",b).call(this,"refreshReferenceMessageWithParams",e,r,c,l)]}))}))}}),Object.defineProperty(r.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"syncRemoteConversations")}}),Object.defineProperty(r.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(r.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(r.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(r.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(r.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,s,"m",b).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(r.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(r.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(r.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(r.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,s,"m",b).call(this,"getUnreadMentionMeConversationList",e,t)}}),Object.defineProperty(r.prototype,"getAllRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,s,"m",b).call(this,"getAllRobots")}}),Object.defineProperty(r.prototype,"getConversationsIncludingRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,s,"m",b).call(this,"getConversationsIncludingRobots",e)}}),r}(t.BasicEngine);c=new WeakMap,s=new WeakSet,b=function(e){for(var r=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var i,u=d(e);r._resolveMaps[u]=function(e){var r=e.code,n=e.msg,i=e.data;r!==t.ErrorCode.SUCCESS?o(t.fail(r,n,i)):o(t.ok(i))},(i=window.__ContextBridge__).send.apply(i,l(["__RC_CHANNEL_CALL_MAIN__",u,e],a(n),!1))}))};var m={on:function(t,r){e.ipcRenderer.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,l([e],a(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.ipcRenderer.send.apply(e.ipcRenderer,l([t],a(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.ipcRenderer.sendSync.apply(e.ipcRenderer,l([t],a(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,l([],a(r),!1))}};window&&(window.RCCppEngine=y,window.__ContextBridge__=m);exports.RCCppEngine=y,exports.initContextBridge=function(){e.contextBridge&&e.contextBridge.exposeInMainWorld("__ContextBridge__",m)};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("electron"),t=require("@rongcloud/engine"),r=function(e,t){return r=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])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(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,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(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)}function s(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}var c,b,p,f,g,d=function(e){function r(r,n,a,l){var u=this,s=t.createLogDBProxy();return s.setLogReader((function(e,t,r,n){return o(u,void 0,void 0,(function(){return i(this,(function(e){return[2,{logs:[]}]}))}))})),s.setLogWriter((function(e){l(e)})),u=e.call(this,r,n,a,s)||this}return n(r,e),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.BasicLogger),h=0,y=Date.now(),m=function(e){var t=Date.now();return y!==t&&(y=t,h=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,h++].join("__")};t.VersionManage.add("electron-renderer","5.34.0-alpha.1");var v=function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){return[2,t.fail(t.ErrorCode.NOT_SUPPORT,"Not support")]}))}))},w=function(e){function r(r,n){var o,i=e.call(this,r,n)||this;c.add(i),Object.defineProperty(i,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),b.set(i,void 0),p.set(i,void 0),f.set(i,!1),Object.defineProperty(i,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(i,"loadConversationList",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"batchGetMessageReadReceiptInfoV4",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"getRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"getRealtimeConTotalUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"clearRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"removeRealtimeConversations",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(i,"batchGetRealtimeConUnreadCount",{enumerable:!0,configurable:!0,writable:!0,value:v});var u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},g=s(i,p,new d(n.appkey,"IMLib","IM",u),"f");return s(i,b,u,"f"),g.setOutputLevel(n.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,n){for(var o=[],u=2;u<arguments.length;u++)o[u-2]=arguments[u];var c=r[n];if(c){switch(n){case"ultraGroupEnable":s(i,f,!0,"f");break;case"onNaviDataChange":i._cache.naviInfo=o[0];break;case"onRTCDataChange":return void i._receiveRtcKv(new Uint8Array(o[0]));case"onConnected":s(i,f,!1,"f"),i._cache=o[1];break;case"onSuspend":s(i,f,!1,"f"),i._setConnectionStatus(t.RCConnectionStatus.SUSPENDED);break;case"onDisconnected":s(i,f,!1,"f"),i._setConnectionStatus(t.RCConnectionStatus.DISCONNECTED);break;case"onConnecting":i._setConnectionStatus(t.RCConnectionStatus.CONNECTING)}c.apply(void 0,l([],a(o),!1))}else i.logger.error(t.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 o=i._resolveMaps[t];o&&(delete i._resolveMaps[t],o.apply(void 0,l([],a(r),!1)))})),i._options.httpInMainProcess&&(t.runtime.httpReq=i.sendHTTPRequest.bind(i)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:n.navigators,areaCode:n.areaCode,logServerUrl:n.logServerUrl,environment:n.environment,enableReadReceiptStorage:n.enableReadReceiptStorage,useNaviV2:null!==(o=n.useNaviV2)&&void 0!==o&&o}),i._cache=i._callMainSync("getMainProcessCache"),i}return n(r,e),Object.defineProperty(r.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"userSettings",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataHosting",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"logger",{get:function(){return u(this,p,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ugSynced",{get:function(){return u(this,f,"f")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e,e===t.RCConnectionStatus.DISCONNECTED&&(this._cache.crtUserId="")}}),Object.defineProperty(r.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(r.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 o,i=m(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,l(["__RC_CHANNEL_CALL_MAIN__",i,e],a(r),!1))}))}}),Object.defineProperty(r.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,l(["__RC_CHANNEL_SEND_2_MAIN__",e],a(r),!1))}}),Object.defineProperty(r.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=window.__ContextBridge__).sendSync.apply(t,l(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],a(r),!1))}}),Object.defineProperty(r.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"refetchNaviInfo")}}),Object.defineProperty(r.prototype,"naviInfo",{get:function(){return this._cache.naviInfo},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new d(this._appkey,e,t,u(this,b,"f"))}}),Object.defineProperty(r.prototype,"connectionStatus",{get:function(){return this._cache.connectionStatus},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"usingCppEngine",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,u(this,c,"m",g).call(this,"connect",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(r.prototype,"connectedTime",{get:function(){return this._cache.connectedTime},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getHistoryMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getContinuousMessages",e,t)}}),Object.defineProperty(r.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getHistoryMessagesByObjectNames",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(r.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"recallMsg",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getTopConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getTopConversationList",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getUnreadConversationList",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByPageIndex",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getConversationListByPageIndex",e,t)}}),Object.defineProperty(r.prototype,"getAllConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getAllConversationList",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getConversationListByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getUntaggedConversationListByPage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getUntaggedConversationListByPage",e,t,r)}}),Object.defineProperty(r.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversation",e)}}),Object.defineProperty(r.prototype,"batchDeleteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"batchDeleteConversations",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversationUnreadCount",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(r.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"clearConversationUnreadCount",e)}}),Object.defineProperty(r.prototype,"markRemoteConversationAsRead",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"markRemoteConversationAsRead",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getFirstUnreadMessage",e)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getFirstUnreadMessageDigest",e)}}),Object.defineProperty(r.prototype,"saveTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"saveTextMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"getTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getTextMessageDraft",e)}}),Object.defineProperty(r.prototype,"clearTextMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"clearTextMessageDraft",e)}}),Object.defineProperty(r.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(r.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"batchSetConversationTranslateStrategy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"batchSetConversationTranslateStrategy",e,t)}}),Object.defineProperty(r.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,o){var i=this,a=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[a]=function(e){try{o(e)}catch(e){i.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),u(this,c,"m",g).call(this,"sendMessage",e,r,n,a)}}),Object.defineProperty(r.prototype,"sendReadReceiptV2",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"sendReadReceiptV2",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getMessageReader",e,t,r)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getMessageReadReceiptV4",e,t)}}),Object.defineProperty(r.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"updateConversationReadTime",e,t)}}),Object.defineProperty(r.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,u(this,c,"m",g).call(this,"disconnect",e,t)]}))}))}}),Object.defineProperty(r.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(r.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"joinChatroom",e,t,r,n)}}),Object.defineProperty(r.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"quitChatroom",e,t)}}),Object.defineProperty(r.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getChatroomInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(r.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setChatroomEntry",e,t,r)}}),Object.defineProperty(r.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"removeChatroomEntry",e,t,r)}}),Object.defineProperty(r.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"removeChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"getAllChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getAllChatroomEntries",e)}}),Object.defineProperty(r.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return u(this,c,"m",g).call(this,"getFileToken",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"getFileUrl",e,t,r,n)}}),Object.defineProperty(r.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(r.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(r.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUserStatus",e)}}),Object.defineProperty(r.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"clearConversations",e,t)}}),Object.defineProperty(r.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"addToBlacklist",e)}}),Object.defineProperty(r.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"removeFromBlacklist",e)}}),Object.defineProperty(r.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getBlacklist")}}),Object.defineProperty(r.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getBlacklistStatus",e)}}),Object.defineProperty(r.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"insertMessage",e,t)}}),Object.defineProperty(r.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"batchInsertMessage",e,t)}}),Object.defineProperty(r.prototype,"getLocalMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getLocalMessageCount",e)}}),Object.defineProperty(r.prototype,"deleteLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"deleteLocalMessages",e)}}),Object.defineProperty(r.prototype,"deleteLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"deleteLocalMessagesByTimestamp",e,t,r)}}),Object.defineProperty(r.prototype,"batchClearLocalMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"batchClearLocalMessagesByTimestamp",e)}}),Object.defineProperty(r.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(r.prototype,"clearLocalMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"clearLocalMessages",e)}}),Object.defineProperty(r.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getMessage",e)}}),Object.defineProperty(r.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setMessageContent",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(r.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(r.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUnreadMentionedMessages",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUnreadMentionedCount",e)}}),Object.defineProperty(r.prototype,"getMessagesAroundTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"getMessagesAroundTimestamp",e,t,r,n)}}),Object.defineProperty(r.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setMessageSentStatus",e,t)}}),Object.defineProperty(r.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setMessageReceivedStatus",e,t)}}),Object.defineProperty(r.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"clearUnreadCountByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"clearAllSGUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"clearAllSGUnreadCount")]}))}))}}),Object.defineProperty(r.prototype,"serverTime",{get:function(){return Date.now()-this._cache.deltaTime},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceId",{get:function(){return this._cache.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(r.prototype,"userId",{get:function(){return this._cache.crtUserId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(r.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,u(this,c,"m",g).call(this,"rtcSignaling",e,t,r,o)];case 1:return[2,i.sent().trans((function(e){return new Uint8Array(e)}))]}}))}))}}),Object.defineProperty(r.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"rtcPing",e,t,r)}}),Object.defineProperty(r.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"createTag",e)}}),Object.defineProperty(r.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"removeTag",e)}}),Object.defineProperty(r.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"updateTag",e)}}),Object.defineProperty(r.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getTagList")}}),Object.defineProperty(r.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"addTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"removeTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"removeTagsForConversation",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getConversationListByTag",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getUnreadCountByTag",e,t)}}),Object.defineProperty(r.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setConversationStatusInTag",e,t,r)}}),Object.defineProperty(r.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getTagsForConversation",e)}}),Object.defineProperty(r.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"clearLocalData")}}),Object.defineProperty(r.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setCallInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getAllUnreadMentionedCount")}}),Object.defineProperty(r.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUltraGroupList",e)}}),Object.defineProperty(r.prototype,"getBlockedUGList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getBlockedUGList")}}),Object.defineProperty(r.prototype,"getBlockedConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getBlockedConversationList",e)}}),Object.defineProperty(r.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this.sendMessage(e,t,r,n)}}),Object.defineProperty(r.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(r.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(r.prototype,"getUGUnreadCountForAllChannels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getUGUnreadCountForAllChannels",e,t,r)}}),Object.defineProperty(r.prototype,"setUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setUGDefaultNotificationLevel",e,t,r)}}),Object.defineProperty(r.prototype,"getUGDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getUGDefaultNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getUGUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUGUnreadInfoList",e)}}),Object.defineProperty(r.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"getOSInfo")]}))}))}}),Object.defineProperty(r.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,t.ok({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(r.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"getMainProcessInfo")]}))}))}}),Object.defineProperty(r.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setProxy",e)}}),Object.defineProperty(r.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getProxy")}}),Object.defineProperty(r.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"testProxy",e,t)}}),Object.defineProperty(r.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setCheckDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setCheckChatRoomDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(r.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"subscribeUser",e,t,r)}}),Object.defineProperty(r.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"unSubscribeUser",e,t)}}),Object.defineProperty(r.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getSubscribeUserList",e,t,r)}}),Object.defineProperty(r.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getSubscribeUserStatus",e,t)}}),Object.defineProperty(r.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversations",e)}}),Object.defineProperty(r.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"updateMyUserProfile",e)}}),Object.defineProperty(r.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUserProfiles",e)}}),Object.defineProperty(r.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getMyUserProfile")}}),Object.defineProperty(r.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"updateMyUserProfileVisibility",e)}}),Object.defineProperty(r.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getMyUserProfileVisibility")}}),Object.defineProperty(r.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"searchUserProfileByUniqueId",e)}}),Object.defineProperty(r.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,u(this,c,"m",g).call(this,"createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"updateGroupInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getGroupsInfo",e)}}),Object.defineProperty(r.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"kickGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"quitGroup",e,t)}}),Object.defineProperty(r.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"dismissGroup",e)}}),Object.defineProperty(r.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"transferGroupOwner",e,t,r,n)}}),Object.defineProperty(r.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setGroupManagers",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getGroupMembersByRole",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getGroupMembers",e,t)}}),Object.defineProperty(r.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"searchGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"joinGroup",e)}}),Object.defineProperty(r.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"inviteUsersToGroup",e,t)}}),Object.defineProperty(r.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"memberInviteResponse",e)}}),Object.defineProperty(r.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getGroupApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getJoinedGroupsByRole",e,t)}}),Object.defineProperty(r.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"searchJoinedGroups",e,t)}}),Object.defineProperty(r.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getJoinedGroups",e)}}),Object.defineProperty(r.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setGroupRemark",e,t)}}),Object.defineProperty(r.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setGroupFollows",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getGroupFollows",e)}}),Object.defineProperty(r.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"addFriend",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"deleteFriends",e,t)}}),Object.defineProperty(r.prototype,"acceptFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"acceptFriendRequest",e)}}),Object.defineProperty(r.prototype,"refuseFriendRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"refuseFriendRequest",e,t)}}),Object.defineProperty(r.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"setFriendInfo",e,t,r)}}),Object.defineProperty(r.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"checkFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getFriendApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getFriendsInfo",e)}}),Object.defineProperty(r.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"searchFriendsInfo",e)}}),Object.defineProperty(r.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setFriendAddPermission",e)}}),Object.defineProperty(r.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getFriendAddPermission")}}),Object.defineProperty(r.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,u(this,c,"m",g).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(r.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",g).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getStatsUrlList")}}),Object.defineProperty(r.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(r.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(r.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"setMessageSpeechToTextVisible",e,t)}}),Object.defineProperty(r.prototype,"translateWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",g).call(this,"translateWithParams",e,t,r,n)}}),Object.defineProperty(r.prototype,"setTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setTranslationLanguage",e)}}),Object.defineProperty(r.prototype,"getTranslationLanguage",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getTranslationLanguage")}}),Object.defineProperty(r.prototype,"setAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"setAutoTranslateEnabled",e)}}),Object.defineProperty(r.prototype,"getAutoTranslateEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getAutoTranslateEnabled")}}),Object.defineProperty(r.prototype,"modifyMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"modifyMessageWithParams",e)}}),Object.defineProperty(r.prototype,"refreshReferenceMessageWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,a){return o(this,void 0,void 0,(function(){var o,l,s,b=this;return i(this,(function(i){return l=(o=function(e,r){var n=[e,Date.now(),Math.floor(Math.random()*Date.now())].join("_");return b._resolveMaps[n]=function(n){try{r(n)}catch(r){b.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==r?void 0:r.stack,pos:e}))}},n})("localMessageBlock",a),s=o("remoteMessageBlock",n),[2,u(this,c,"m",g).call(this,"refreshReferenceMessageWithParams",e,r,s,l)]}))}))}}),Object.defineProperty(r.prototype,"syncRemoteConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"syncRemoteConversations")}}),Object.defineProperty(r.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"sendUltraGroupTypingStatus",e)}}),Object.defineProperty(r.prototype,"getRemoteMessagesByUIds",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getRemoteMessagesByUIds",e,t)}}),Object.defineProperty(r.prototype,"getUGUnreadMentionedDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUGUnreadMentionedDigest",e)}}),Object.defineProperty(r.prototype,"deleteLocalUGMessagesForAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"deleteLocalUGMessagesForAllChannel",e,t)}}),Object.defineProperty(r.prototype,"updateUGMessageExpansion",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",g).call(this,"updateUGMessageExpansion",e,t,r)}}),Object.defineProperty(r.prototype,"getUGFirstUnreadMessageDigest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getUGFirstUnreadMessageDigest",e)}}),Object.defineProperty(r.prototype,"getSubscribeUsersOnlineStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getSubscribeUsersOnlineStatus",e)}}),Object.defineProperty(r.prototype,"saveEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"saveEditedMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"getEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getEditedMessageDraft",e)}}),Object.defineProperty(r.prototype,"clearEditedMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"clearEditedMessageDraft",e)}}),Object.defineProperty(r.prototype,"getUnreadMentionMeConversationList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",g).call(this,"getUnreadMentionMeConversationList",e,t)}}),Object.defineProperty(r.prototype,"getAllRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",g).call(this,"getAllRobots")}}),Object.defineProperty(r.prototype,"getConversationsIncludingRobots",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",g).call(this,"getConversationsIncludingRobots",e)}}),r}(t.BasicEngine);b=new WeakMap,p=new WeakMap,f=new WeakMap,c=new WeakSet,g=function(e){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=t.promiseWithResolvers(),u=i.promise,s=i.resolve,c=m(e);return this._resolveMaps[c]=function(e){var r=e.code,n=e.msg,o=e.data;s(t.RCResult.from(r,n,o))},(r=window.__ContextBridge__).send.apply(r,l(["__RC_CHANNEL_CALL_MAIN__",c,e],a(n),!1)),u};var P={on:function(t,r){e.ipcRenderer.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,l([e],a(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.ipcRenderer.send.apply(e.ipcRenderer,l([t],a(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.ipcRenderer.sendSync.apply(e.ipcRenderer,l([t],a(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,l([],a(r),!1))}};window&&(window.RCCppEngine=w,window.__ContextBridge__=P);exports.RCCppEngine=w,exports.initContextBridge=function(){e.contextBridge&&e.contextBridge.exposeInMainWorld("__ContextBridge__",P)};
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicEngine, IChatroomService, IChatService, IDataHostingService, IUserSettingsModule, IEngineWatcher, IAPIContextOption,
|
|
1
|
+
import { BasicEngine, IChatroomService, IChatService, IDataHostingService, IUserSettingsModule, BasicLogger, IEngineWatcher, IAPIContextOption, RCResult, INaviInfo, LogType, RCConnectionStatus, IConversationIdentifier, IGetHistoryMessageOption, IReceivedMessage, IGetHistoryMessagesByTypesOption, MessageDirection, IRecallMsgOptions, ConversationType, IReceivedConversation, IGetConversationListByTimestampParams, ConversationBatchDeletionParams, NotificationLevel, IMessageSendOptions, IFirstUnreadMessageInfo, TranslateStrategy, IMessageReaderResponse, IMessageReadReceiptV4Response, MessageRegisterParams, IChatroomJoinResponse, IChatroomInfo, IGetHistoryMessageResult, IChatroomEntry, IChatroomEntries, IRemoveChatroomEntry, IRemoveChatroomEntries, FileType, IUploadAuth, UploadMethod, ErrorCode, InnerInsertMessageParams, IInsertMessage, IClearMessageOption, ISearchMessageParams, ISearchMessagesResult, IAppPushConfig, IRTCRoomBindOption, ITagParam, ITagInfo, IReceivedConversationByTag, ILocalTagStatus, IConversationTag, IGetUltraGroupListOption, IUltraGroupUnreadInfo, IOSInfo, IProcessInfo, IProxy, INetwork, SubscribeType, ISubscribeUserStatusInfo, IUserProfileInfo, IUpdateMyProfileFail, UserProfileVisibility, IServerGroupBaseInfo, ICreateGroupFail, IErrorKeys, IGroupInfo, IQuitGroupConfig, GroupOperationType, GroupMemberRole, IGetGroupMembersOption, IPagingQueryResult, IGroupMemberInfo, IPagingQueryOption, IProcessCode, IMemberInviteResponse, GroupApplicationDirection, GroupApplicationStatus, IGroupApplicationInfo, IFollowsInfo, DirectionType, IFriendRelationInfo, QueryFriendsDirectionType, IFriendInfo, FriendApplicationType, FriendApplicationStatus, IFriendApplicationInfo, FriendAddPermission, INotificationQuietHoursSetting, IMessageIdentifier, ReadReceiptInfoV5, ReadReceiptUsersOption, ReadReceiptUsersResult, IConvertSpeechToTextOption, InnerTransParam, TranslateMode, IModifyMessageParams, IEnginRefreshReferenceMessageResult, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IExpansionMsgContent, ISubscribeUserOnlineStatus, IEditedMessageDraft, IGetUnreadMentionMeConversationListParams, IRobotInfo, IGetConversationsIncludingRobotsOption } from '@rongcloud/engine';
|
|
2
2
|
|
|
3
3
|
declare class RCCppEngine extends BasicEngine implements IChatroomService, IChatService, IDataHostingService, IUserSettingsModule {
|
|
4
4
|
#private;
|
|
@@ -7,12 +7,11 @@ declare class RCCppEngine extends BasicEngine implements IChatroomService, IChat
|
|
|
7
7
|
get chatroom(): IChatroomService;
|
|
8
8
|
get userSettings(): IUserSettingsModule;
|
|
9
9
|
get dataHosting(): IDataHostingService;
|
|
10
|
+
get logger(): BasicLogger;
|
|
11
|
+
get ugSynced(): boolean;
|
|
10
12
|
constructor(watcher: IEngineWatcher, options: IAPIContextOption);
|
|
11
13
|
private _setConnectionStatus;
|
|
12
14
|
private sendHTTPRequest;
|
|
13
|
-
setUserStatusListener(config: {
|
|
14
|
-
userIds: string[];
|
|
15
|
-
}, listener: Function): void;
|
|
16
15
|
private _resolveMaps;
|
|
17
16
|
/**
|
|
18
17
|
* 建议使用 `_callMain2` 代替
|
|
@@ -21,15 +20,13 @@ declare class RCCppEngine extends BasicEngine implements IChatroomService, IChat
|
|
|
21
20
|
private _callMain;
|
|
22
21
|
private _send2Main;
|
|
23
22
|
private _callMainSync;
|
|
24
|
-
refetchNaviInfo():
|
|
23
|
+
refetchNaviInfo(): Promise<RCResult<INaviInfo | null>>;
|
|
25
24
|
get naviInfo(): INaviInfo | null;
|
|
26
25
|
createLogger(id: string, type: LogType): BasicLogger;
|
|
27
26
|
get connectionStatus(): RCConnectionStatus;
|
|
28
27
|
get usingCppEngine(): boolean;
|
|
29
28
|
connect(token: string, reconnectKickEnable: boolean, openCallPlus: boolean, traceId: string): Promise<RCResult<string>>;
|
|
30
|
-
reportSDKInfo(versionInfo:
|
|
31
|
-
[name: string]: string;
|
|
32
|
-
}): void;
|
|
29
|
+
reportSDKInfo(versionInfo: Record<string, string>): void;
|
|
33
30
|
get connectedTime(): number;
|
|
34
31
|
getHistoryMessage(conversation: IConversationIdentifier, options: Required<IGetHistoryMessageOption>, fromLocal: boolean): Promise<RCResult<{
|
|
35
32
|
list: IReceivedMessage[];
|
|
@@ -64,6 +61,7 @@ declare class RCCppEngine extends BasicEngine implements IChatroomService, IChat
|
|
|
64
61
|
getConversationUnreadCount(conversation: IConversationIdentifier): Promise<RCResult<number>>;
|
|
65
62
|
getTotalUnreadCountByLevels(conversationTypes: ConversationType[], levels: NotificationLevel[], isMentioned?: boolean): Promise<RCResult<number>>;
|
|
66
63
|
clearConversationUnreadCount(conversation: IConversationIdentifier): Promise<RCResult>;
|
|
64
|
+
markRemoteConversationAsRead(identifier: IConversationIdentifier, sendOpts: IMessageSendOptions, traceId: string): Promise<RCResult>;
|
|
67
65
|
getFirstUnreadMessage(conversation: IConversationIdentifier): Promise<RCResult<IReceivedMessage | null>>;
|
|
68
66
|
getFirstUnreadMessageDigest(identifier: IConversationIdentifier): Promise<RCResult<IFirstUnreadMessageInfo | null>>;
|
|
69
67
|
saveTextMessageDraft(conversation: IConversationIdentifier, draft: string): Promise<RCResult>;
|
|
@@ -177,15 +175,15 @@ declare class RCCppEngine extends BasicEngine implements IChatroomService, IChat
|
|
|
177
175
|
/**
|
|
178
176
|
* 获取运行时的系统信息,仅限 Electron 平台可用
|
|
179
177
|
*/
|
|
180
|
-
getOSInfo():
|
|
178
|
+
getOSInfo(): Promise<RCResult<IOSInfo>>;
|
|
181
179
|
/**
|
|
182
180
|
* 获取当前渲染进程信息,仅限 Electron 平台可用
|
|
183
181
|
*/
|
|
184
|
-
getProcessInfo():
|
|
182
|
+
getProcessInfo(): Promise<RCResult<IProcessInfo>>;
|
|
185
183
|
/**
|
|
186
184
|
* 获取应用主进程信息,仅限 Electron 平台可用
|
|
187
185
|
*/
|
|
188
|
-
getMainProcessInfo():
|
|
186
|
+
getMainProcessInfo(): Promise<RCResult<IProcessInfo>>;
|
|
189
187
|
/**
|
|
190
188
|
* 设置代理
|
|
191
189
|
*/
|