@oxidezap/whatsapp-rust-bridge 0.6.3 → 0.6.4

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/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var oR=Object.defineProperty;var bR=($)=>$;function iR($,K){this[$]=bR.bind(null,K)}var mR=($,K)=>{for(var Q in K)oR($,Q,{get:K[Q],enumerable:!0,configurable:!0,set:iR.bind(K,Q)})};import{readFileSync as eB}from"node:fs";class J6{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,QB.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return z.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();z.intounderlyingbytesource_cancel($)}pull($){let K=z.intounderlyingbytesource_pull(this.__wbg_ptr,B($));return D(K)}start($){z.intounderlyingbytesource_start(this.__wbg_ptr,B($))}get type(){let $=z.intounderlyingbytesource_type(this.__wbg_ptr);return KB[$]}}if(Symbol.dispose)J6.prototype[Symbol.dispose]=J6.prototype.free;class X6{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,ZB.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsink_free($,0)}abort($){let K=this.__destroy_into_raw(),Q=z.intounderlyingsink_abort(K,B($));return D(Q)}close(){let $=this.__destroy_into_raw(),K=z.intounderlyingsink_close($);return D(K)}write($){let K=z.intounderlyingsink_write(this.__wbg_ptr,B($));return D(K)}}if(Symbol.dispose)X6.prototype[Symbol.dispose]=X6.prototype.free;class n${static __wrap($){let K=Object.create(n$.prototype);return K.__wbg_ptr=$,A6.register(K,K.__wbg_ptr,K),K}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,A6.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();z.intounderlyingsource_cancel($)}pull($){let K=z.intounderlyingsource_pull(this.__wbg_ptr,B($));return D(K)}}if(Symbol.dispose)n$.prototype[Symbol.dispose]=n$.prototype.free;class d${static __wrap($){let K=Object.create(d$.prototype);return K.__wbg_ptr=$,E6.register(K,K.__wbg_ptr,K),K}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,E6.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let K=z.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,B($));return D(K)}addLidPnMappings($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,K,Q);return D(X)}archiveChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_archiveChat(this.__wbg_ptr,Q,X,K);return D(J)}assertSessions($,K){let Q=g($,z.__wbindgen_export),X=U,J=z.wasmwhatsappclient_assertSessions(this.__wbg_ptr,Q,X,K);return D(J)}clearChat($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_clearChat(this.__wbg_ptr,X,J,K,Q);return D(Z)}communityFetchAllParticipating(){let $=z.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return D($)}communityParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}connect(){let $=z.wasmwhatsappclient_connect(this.__wbg_ptr);return D($)}createCommunity($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_createCommunity(this.__wbg_ptr,Z,Y,G,L,Q,X,J);return D(C)}createCommunitySubgroup($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}createGroup($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_createGroup(this.__wbg_ptr,Q,X,J,Z);return D(Y)}createParticipantNodesBytes($,K,Q){let X=g($,z.__wbindgen_export),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}createPoll($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=g(Q,z.__wbindgen_export),C=U,N=z.wasmwhatsappclient_createPoll(this.__wbg_ptr,J,Z,Y,G,L,C,X);return D(N)}deactivateCommunity($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,K,Q);return D(X)}deleteChat($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_deleteChat(this.__wbg_ptr,K,Q);return D(X)}deleteMessageForMe($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=z.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}disconnect(){let $=z.wasmwhatsappclient_disconnect(this.__wbg_ptr);return D($)}downloadMedia($,K,Q,X,J,Z){let Y=k($,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=u(K,z.__wbindgen_export),C=U,N=u(Q,z.__wbindgen_export),y=U,I=u(X,z.__wbindgen_export),O=U,M=z.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,Y,G,L,C,N,y,I,O,J,B(Z));return D(M)}downloadMediaStream($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=k($,z.__wbindgen_export,z.__wbindgen_export2),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=u(X,z.__wbindgen_export),d=U;z.wasmwhatsappclient_downloadMediaStream(C,this.__wbg_ptr,N,y,I,O,M,n,S,d,J,B(Z));var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}encryptMediaStream($,K,Q){let X=z.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,B($),B(K),B(Q));return D(X)}ensurePreKeys(){let $=z.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return D($)}fetchBlocklist(){let $=z.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return D($)}fetchMessageHistory($,K,Q,X,J){let Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,Z,Y,G,L,X,J);return D(C)}fetchPrivacySettings(){let $=z.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return D($)}fetchReachoutTimelock(){let $=z.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return D($)}fetchStatus($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,K,Q);return D(X)}fetchUserInfo($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,K,Q);return D(X)}getAccount(){let $=z.wasmwhatsappclient_getAccount(this.__wbg_ptr);return D($)}getBusinessProfile($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,K,Q);return D(X)}getCommunitySubgroups($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,K,Q);return D(X)}getCoreAllocationSnapshot(){let $=z.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return D($)}getGroupMetadata($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,K,Q);return D(X)}getJid(){let $=z.wasmwhatsappclient_getJid(this.__wbg_ptr);return D($)}getLid(){let $=z.wasmwhatsappclient_getLid(this.__wbg_ptr);return D($)}getMediaConn($){let K=z.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return D(K)}getMemoryDiagnostics(){let $=z.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return D($)}getPushName(){let $=z.wasmwhatsappclient_getPushName(this.__wbg_ptr);return D($)}getUSyncDevices($,K,Q){let X=g($,z.__wbindgen_export),J=U,Z=z.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,X,J,K,Q);return D(Z)}groupAcceptInvite($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,K,Q);return D(X)}groupAcceptInviteV4($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=k(X,z.__wbindgen_export,z.__wbindgen_export2),C=U,N=z.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,J,Z,Y,G,Q,L,C);return D(N)}groupFetchAllParticipating(){let $=z.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return D($)}groupGetInviteInfo($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,K,Q);return D(X)}groupInviteCode($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,K,Q);return D(X)}groupLeave($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupLeave(this.__wbg_ptr,K,Q);return D(X)}groupMemberAddMode($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,Q,X,B(K));return D(J)}groupParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}groupRequestParticipantsList($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,K,Q);return D(X)}groupRequestParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}groupRevokeInvite($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,K,Q);return D(X)}groupRevokeInviteV4($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,Q,X,J,Z);return D(Y)}groupSettingUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,X,J,B(K),Q);return D(Z)}groupToggleEphemeral($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,Q,X,K);return D(J)}groupUpdateDescription($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,Q,X,J,Z);return D(Y)}groupUpdateSubject($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,Q,X,J,Z);return D(Y)}isConnected(){return z.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return z.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,K,Q);return D(X)}jidToSignalProtocolAddress($){let K,Q;try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=k($,z.__wbindgen_export,z.__wbindgen_export2),y=U;z.wasmwhatsappclient_jidToSignalProtocolAddress(C,this.__wbg_ptr,N,y);var X=T().getInt32(C+0,!0),J=T().getInt32(C+4,!0),Z=T().getInt32(C+8,!0),Y=T().getInt32(C+12,!0),G=X,L=J;if(Y)throw G=0,L=0,D(Z);return K=G,Q=L,X0(G,L)}finally{z.__wbindgen_add_to_stack_pointer(16),z.__wbindgen_export4(K,Q,1)}}lidForPn($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_lidForPn(this.__wbg_ptr,K,Q);return D(X)}linkCommunitySubgroups($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,Q,X,J,Z);return D(Y)}logout(){let $=z.wasmwhatsappclient_logout(this.__wbg_ptr);return D($)}markChatAsRead($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,Q,X,K);return D(J)}markPlayed($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_markPlayed(this.__wbg_ptr,K,Q);return D(X)}muteChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_muteChat(this.__wbg_ptr,Q,X,!j(K),j(K)?0:K);return D(J)}newsletterCreate($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,Q,X,J,Z);return D(Y)}newsletterMetadata($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,K,Q);return D(X)}newsletterMute($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,Q,X,K);return D(J)}newsletterReactMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}newsletterSubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,K,Q);return D(X)}newsletterUnsubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,K,Q);return D(X)}pinChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_pinChat(this.__wbg_ptr,Q,X,K);return D(J)}pnForLid($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_pnForLid(this.__wbg_ptr,K,Q);return D(X)}presenceSubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,K,Q);return D(X)}profilePictureUrl($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,X,J,B(K),!j(Q),j(Q)?0:Q);return D(Z)}queryNode($,K){let Q=z.wasmwhatsappclient_queryNode(this.__wbg_ptr,B($),!j(K),j(K)?0:K);return D(Q)}queryUsync($){let K=z.wasmwhatsappclient_queryUsync(this.__wbg_ptr,B($));return D(K)}readMessages($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_readMessages(this.__wbg_ptr,K,Q);return D(X)}reconnect(){let $=z.wasmwhatsappclient_reconnect(this.__wbg_ptr);return D($)}refreshPreKeys($){let K=z.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,j($)?Number.MAX_SAFE_INTEGER:$>>>0);return D(K)}rejectCall($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_rejectCall(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}rejectStanza($,K,Q){let X=z.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,B($),K,j(Q)?Number.MAX_SAFE_INTEGER:Q>>0);return D(X)}relayMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}relayMessageBytesWithOptions($,K,Q,X,J,Z){let Y=k($,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=u(K,z.__wbindgen_export),C=U;var N=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),y=U;let I=z.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,Y,G,L,C,N,y,B(X),J,Z);return D(I)}removeGroupProfilePicture($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,K,Q);return D(X)}removeProfilePicture(){let $=z.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return D($)}requestMediaReupload($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=u(Q,z.__wbindgen_export),N=U;var y=j(J)?0:k(J,z.__wbindgen_export,z.__wbindgen_export2),I=U;let O=z.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,Z,Y,G,L,C,N,X,y,I);return D(O)}requestMessageRetry($,K){let Q=z.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,B($),j(K)?16777215:K?1:0);return D(Q)}requestPairingCode($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,Q,X,J,Z);return D(Y)}retransmitMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}revokeMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}rotateSignedKey(){let $=z.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return D($)}run(){try{let Q=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_run(Q,this.__wbg_ptr);var $=T().getInt32(Q+0,!0),K=T().getInt32(Q+4,!0);if(K)throw D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}saveContact($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var Y=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U;let N=z.wasmwhatsappclient_saveContact(this.__wbg_ptr,J,Z,Y,G,L,C,X);return D(N)}sendChatState($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_sendChatState(this.__wbg_ptr,Q,X,B(K));return D(J)}sendCommentBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(Q,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,X,J,B(K),Z,Y);return D(G)}sendMessageBytes($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,Q,X,J,Z);return D(Y)}sendNode($){let K=z.wasmwhatsappclient_sendNode(this.__wbg_ptr,B($));return D(K)}sendPresence($){let K=z.wasmwhatsappclient_sendPresence(this.__wbg_ptr,B($));return D(K)}sendRawMessage($){let K=u($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,K,Q);return D(X)}sendReaction($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var Z=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),Y=U;let G=z.wasmwhatsappclient_sendReaction(this.__wbg_ptr,X,J,B(K),Z,Y);return D(G)}sendStatusMessageBytes($,K){let Q=u($,z.__wbindgen_export),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,Q,X,J,Z);return D(Y)}sendStatusMessageBytesWithOptions($,K,Q,X,J){let Z=u($,z.__wbindgen_export),Y=U,G=g(K,z.__wbindgen_export),L=U;var C=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),N=U;let y=z.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,Z,Y,G,L,C,N,B(X),J);return D(y)}setAutoReconnect($){z.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setClientProfile($){let K=z.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,B($));return D(K)}setDeviceProps($){let K=z.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,B($));return D(K)}setGroupProfilePicture($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,Q,X,J,Z);return D(Y)}setInitialPushName($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,K,Q);return D(X)}setPushName($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_setPushName(this.__wbg_ptr,K,Q);return D(X)}setRawNodeForwarding($){z.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}signalDecryptGroupMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalDecryptMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalDeleteSenderKey($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalDeleteSessions($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,K,Q);return D(X)}signalEncryptGroupMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalEncryptMessage($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalGetSenderKeyDistribution($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalGetSessionInfo($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,K,Q);return D(X)}signalHasSenderKey($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalInstallPreKeyBundle($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,Q,X,B(K));return D(J)}signalMigrateSessions($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalProcessSenderKeyDistribution($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalValidateSession($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,K,Q);return D(X)}starMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=z.wasmwhatsappclient_starMessage(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}unlinkCommunitySubgroups($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}updateBlockStatus($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,Q,X,B(K));return D(J)}updateDefaultDisappearingMode($){let K=z.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return D(K)}updateMemberLabel($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,Q,X,J,Z);return D(Y)}updatePrivacySetting($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,Q,X,J,Z);return D(Y)}updateProfilePicture($){let K=u($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,K,Q);return D(X)}updateProfileStatus($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,K,Q);return D(X)}uploadEncryptedMediaStream($,K,Q,X,J,Z){let Y=u(K,z.__wbindgen_export),G=U,L=u(Q,z.__wbindgen_export),C=U,N=u(X,z.__wbindgen_export),y=U,I=z.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,B($),Y,G,L,C,N,y,J,B(Z));return D(I)}uploadMedia($,K){let Q=u($,z.__wbindgen_export),X=U,J=z.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,Q,X,B(K));return D(J)}validateKeyBundle(){let $=z.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return D($)}votePoll($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=k(Q,z.__wbindgen_export,z.__wbindgen_export2),N=U,y=u(X,z.__wbindgen_export),I=U,O=g(J,z.__wbindgen_export),M=U,n=z.wasmwhatsappclient_votePoll(this.__wbg_ptr,Z,Y,G,L,C,N,y,I,O,M);return D(n)}}if(Symbol.dispose)d$.prototype[Symbol.dispose]=d$.prototype.free;function ZO(){z.beginWasmAllocationProfile()}function JO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U,L=u(K,z.__wbindgen_export),C=U;z.calculateAgreement(Z,Y,G,L,C);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function XO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U,L=u(K,z.__wbindgen_export),C=U;z.calculateSignature(Z,Y,G,L,C);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function W6($,K,Q,X,J,Z,Y){let G=z.createWhatsAppClient(B($),B(K),j(Q)?0:B(Q),j(X)?0:B(X),j(J)?0:B(J),j(Z)?0:B(Z),j(Y)?0:B(Y));return D(G)}function qO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.decodeSenderKeyRecordComponents(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function YO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.decodeSessionRecordComponents(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function HO($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=u($,z.__wbindgen_export),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=k(X,z.__wbindgen_export,z.__wbindgen_export2),d=U,B0=k(J,z.__wbindgen_export,z.__wbindgen_export2),O0=U,f0=k(Z,z.__wbindgen_export,z.__wbindgen_export2),A0=U;z.decryptEventResponsePayload(C,N,y,I,O,M,n,S,d,B0,O0,f0,A0);var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function zO($,K,Q,X,J,Z,Y){try{let I=z.__wbindgen_add_to_stack_pointer(-16),O=u($,z.__wbindgen_export),M=U,n=u(K,z.__wbindgen_export),S=U,d=u(Q,z.__wbindgen_export),B0=U,O0=k(X,z.__wbindgen_export,z.__wbindgen_export2),f0=U,A0=k(J,z.__wbindgen_export,z.__wbindgen_export2),l=U,v$=k(Z,z.__wbindgen_export,z.__wbindgen_export2),jR=U,cR=g(Y,z.__wbindgen_export),p=U;z.decryptPollVote(I,O,M,n,S,d,B0,O0,f0,A0,l,v$,jR,cR,p);var G=T().getInt32(I+0,!0),L=T().getInt32(I+4,!0),C=T().getInt32(I+8,!0),N=T().getInt32(I+12,!0);if(N)throw D(C);var y=A$(G,L).slice();return z.__wbindgen_export4(G,L*4,4),y}finally{z.__wbindgen_add_to_stack_pointer(16)}}function VO($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=u($,z.__wbindgen_export),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=k(X,z.__wbindgen_export,z.__wbindgen_export2),d=U,B0=k(J,z.__wbindgen_export,z.__wbindgen_export2),O0=U,f0=k(Z,z.__wbindgen_export,z.__wbindgen_export2),A0=U;z.decryptPollVotePayload(C,N,y,I,O,M,n,S,d,B0,O0,f0,A0);var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function GO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSenderKeyRecordComponents(J,B($));var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function UO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSessionRecordComponents(J,B($));var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function CO(){let $=z.generateKeyPair();return D($)}function DO(){let $=z.getEnabledFeatures();return D($)}function LO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.getPublicFromPrivateKey(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function PO(){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.getWasmAllocationSnapshot(X);var $=T().getInt32(X+0,!0),K=T().getInt32(X+4,!0),Q=T().getInt32(X+8,!0);if(Q)throw D(K);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function FO(){return z.getWasmMemoryBytes()}function xO(){return z.hasLogger()!==0}function kO($,K,Q){try{let Y=z.__wbindgen_add_to_stack_pointer(-16),G=u($,z.__wbindgen_export),L=U;z.hkdf(Y,G,L,K,B(Q));var X=T().getInt32(Y+0,!0),J=T().getInt32(Y+4,!0),Z=T().getInt32(Y+8,!0);if(Z)throw D(J);return D(X)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function NO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.importLegacySessionRecordV1(Z,B($),B(K));var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function RO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U;z.inflateZlib(Z,Y,G,!j(K),j(K)?0:K);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function I6($,K){z.initWasmEngine(B($),B(K))}function BO($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;z.logMessage(Q,X,J,Z)}function OO($){let K=u($,z.__wbindgen_export),Q=U,X=z.md5(K,Q);return D(X)}function AO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.projectLegacySessionRecordV1(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function EO($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.setLogger(X,B($));var K=T().getInt32(X+0,!0),Q=T().getInt32(X+4,!0);if(Q)throw D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function MO($){z.updateLogger(B($))}function WO($,K,Q){try{let Y=z.__wbindgen_add_to_stack_pointer(-16),G=u($,z.__wbindgen_export),L=U,C=u(K,z.__wbindgen_export),N=U,y=u(Q,z.__wbindgen_export),I=U;z.verifySignature(Y,G,L,C,N,y,I);var X=T().getInt32(Y+0,!0),J=T().getInt32(Y+4,!0),Z=T().getInt32(Y+8,!0);if(Z)throw D(J);return X!==0}finally{z.__wbindgen_add_to_stack_pointer(16)}}function gR(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(K,Q){let X=Error(X0(K,Q));return B(X)},__wbg_Number_9a4e0ecb0fa16705:function(K){return Number(F(K))},__wbg_String_8564e559799eccda:function(K,Q){let X=String(F(Q)),J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(K,Q){let X=F(Q),J=typeof X==="bigint"?X:void 0;T().setBigInt64(K+8,j(J)?BigInt(0):J,!0),T().setInt32(K+0,!j(J),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(K){let Q=F(K),X=typeof Q==="boolean"?Q:void 0;return j(X)?16777215:X?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(K,Q){let X=q6(F(Q)),J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(K,Q){return F(K)in F(Q)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(K){return typeof F(K)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(K){return typeof F(K)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(K){return F(K)===null},__wbg___wbindgen_is_object_a27215656b807791:function(K){let Q=F(K);return typeof Q==="object"&&Q!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(K){return typeof F(K)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(K){return F(K)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(K,Q){return F(K)===F(Q)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(K,Q){return F(K)==F(Q)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(K,Q){let X=F(Q),J=typeof X==="number"?X:void 0;T().setFloat64(K+8,j(J)?0:J,!0),T().setInt32(K+0,!j(J),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(K,Q){let X=F(Q),J=typeof X==="string"?X:void 0;var Z=j(J)?0:k(J,z.__wbindgen_export,z.__wbindgen_export2),Y=U;T().setInt32(K+4,Y,!0),T().setInt32(K+0,Z,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(K,Q){throw Error(X0(K,Q))},__wbg__wbg_cb_unref_fffb441def202758:function(K){F(K)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return s(function(K,Q,X){let J=F(K).apply(F(Q),F(X));return B(J)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(K,Q,X,J){let Z=F(K).bind(F(Q),F(X),F(J));return B(Z)},__wbg_buffer_54b87055582c8a81:function(K){let Q=F(K).buffer;return B(Q)},__wbg_byobRequest_06b654bb15590436:function(K){let Q=F(K).byobRequest;return j(Q)?0:B(Q)},__wbg_byteLength_41862ca4020b9c43:function(K){return F(K).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(K){return F(K).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return s(function(K,Q,X,J,Z){let Y=F(K).call(F(Q),F(X),F(J),F(Z));return B(Y)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return s(function(K,Q){let X=F(K).call(F(Q));return B(X)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return s(function(K,Q,X){let J=F(K).call(F(Q),F(X));return B(J)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return s(function(K,Q,X,J,Z,Y){let G=F(K).call(F(Q),F(X),F(J),F(Z),F(Y));return B(G)},arguments)},__wbg_call_e3b662382210db98:function(){return s(function(K,Q,X,J){let Z=F(K).call(F(Q),F(X),F(J));return B(Z)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(K){let Q=F(K).cancel();return B(Q)},__wbg_catch_c1a60df4c30d76d3:function(K,Q){let X=F(K).catch(F(Q));return B(X)},__wbg_close_1e6096d41f7ce5d0:function(K){let Q=F(K).close();return B(Q)},__wbg_close_249a23304523681b:function(){return s(function(K){F(K).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return s(function(K){F(K).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(K,Q,X,J){F(K).debug(F(Q),X===0?void 0:X0(X,J))},__wbg_debug_cf53e2612c84e4ee:function(K,Q,X,J){console.debug(F(K),F(Q),F(X),F(J))},__wbg_done_89b2b13e91a60321:function(K){return F(K).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return s(function(K,Q){F(K).enqueue(F(Q))},arguments)},__wbg_entries_015dc610cd81ede0:function(K){let Q=Object.entries(F(K));return B(Q)},__wbg_error_657700d53a73881f:function(K,Q,X,J){console.error(F(K),F(Q),F(X),F(J))},__wbg_error_9cce413345f88385:function(K,Q,X,J){F(K).error(F(Q),X===0?void 0:X0(X,J))},__wbg_error_a6fa202b58aa1cd3:function(K,Q){let X,J;try{X=K,J=Q,console.error(X0(K,Q))}finally{z.__wbindgen_export4(X,J,1)}},__wbg_from_13e323c65fc8f464:function(K){let Q=Array.from(F(K));return B(Q)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return s(function(K,Q){globalThis.crypto.getRandomValues(T$(K,Q))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return s(function(K){let Q=F(K).getReader();return B(Q)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return s(function(K){let Q=F(K).getWriter();return B(Q)},arguments)},__wbg_get_507a50627bffa49b:function(K,Q){let X=F(K)[Q>>>0];return B(X)},__wbg_get_78f252d074a84d0b:function(){return s(function(K,Q){let X=Reflect.get(F(K),F(Q));return B(X)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return s(function(K,Q){let X=Reflect.get(F(K),F(Q));return B(X)},arguments)},__wbg_get_done_670108eb06ecbe46:function(K){let Q=F(K).done;return j(Q)?16777215:Q?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(K,Q){let X=F(K)[Q>>>0];return B(X)},__wbg_get_value_f465f5be30aa0963:function(K){let Q=F(K).value;return B(Q)},__wbg_get_with_ref_key_6412cf3094599694:function(K,Q){let X=F(K)[F(Q)];return B(X)},__wbg_info_79f5309d69d9c70e:function(K,Q,X,J){console.info(F(K),F(Q),F(X),F(J))},__wbg_info_b728e87a346ff6a2:function(K,Q,X,J){F(K).info(F(Q),X===0?void 0:X0(X,J))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(K){let Q;try{Q=F(K)instanceof ArrayBuffer}catch(J){Q=!1}return Q},__wbg_instanceof_Array_de0fa65266a8c7c0:function(K){let Q;try{Q=F(K)instanceof Array}catch(J){Q=!1}return Q},__wbg_instanceof_Map_e5b5e3db98422fcc:function(K){let Q;try{Q=F(K)instanceof Map}catch(J){Q=!1}return Q},__wbg_instanceof_Object_33f20e6f12439f3e:function(K){let Q;try{Q=F(K)instanceof Object}catch(J){Q=!1}return Q},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(K){let Q;try{Q=F(K)instanceof Promise}catch(J){Q=!1}return Q},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(K){let Q;try{Q=F(K)instanceof Uint8Array}catch(J){Q=!1}return Q},__wbg_isArray_0677c962b281d01a:function(K){return Array.isArray(F(K))},__wbg_isSafeInteger_04f36e4056f1b851:function(K){return Number.isSafeInteger(F(K))},__wbg_iterator_6f722e4a93058b71:function(){return B(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(K){let Q=Object.keys(F(K));return B(Q)},__wbg_length_1f0964f4a5e2c6d8:function(K){return F(K).length},__wbg_length_370319915dc99107:function(K){return F(K).length},__wbg_level_4b50b181832c5acf:function(K,Q){let X=F(Q).level,J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg_log_a45418e25b210a4c:function(K,Q,X,J){console.log(F(K),F(Q),F(X),F(J))},__wbg_new_227d7c05414eb861:function(){let K=Error();return B(K)},__wbg_new_32b398fb48b6d94a:function(){return B([])},__wbg_new_7796ffc7ed656783:function(){return B(new Map)},__wbg_new_b667d279fd5aa943:function(K,Q){let X=Error(X0(K,Q));return B(X)},__wbg_new_cd45aabdf6073e84:function(K){let Q=new Uint8Array(F(K));return B(Q)},__wbg_new_da52cf8fe3429cb2:function(){return B({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(K,Q){let X=new Uint32Array(XB(K,Q));return B(X)},__wbg_new_from_slice_77cdfb7977362f3c:function(K,Q){let X=new Uint8Array(T$(K,Q));return B(X)},__wbg_new_typed_1824d93f294193e5:function(K,Q){try{var X={a:K,b:Q},J=(Y,G)=>{let L=X.a;X.a=0;try{return eR(L,X.b,Y,G)}finally{X.a=L}};let Z=new Promise(J);return B(Z)}finally{X.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(K,Q,X){let J=new Uint8Array(F(K),Q>>>0,X>>>0);return B(J)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(K,Q){let X=new ReadableStream(n$.__wrap(K),D(Q));return B(X)},__wbg_new_with_length_e6785c33c8e4cce8:function(K){let Q=new Uint8Array(K>>>0);return B(Q)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(K){let Q=Array(K>>>0);return B(Q)},__wbg_next_6dbf2c0ac8cde20f:function(K){let Q=F(K).next;return B(Q)},__wbg_next_71f2aa1cb3d1e37e:function(){return s(function(K){let Q=F(K).next();return B(Q)},arguments)},__wbg_now_44881ed1d5dba857:function(){return s(function(){return performance.now()},arguments)},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_now_fefb743ab429013f:function(){return performance.now()},__wbg_of_2bf3ed8a776ff19a:function(K,Q,X,J){let Z=Array.of(F(K),F(Q),F(X),F(J));return B(Z)},__wbg_prototypesetcall_2592ffff58ff115d:function(K,Q,X){Uint8Array.prototype.set.call(T$(K,Q),F(X))},__wbg_prototypesetcall_4770620bbe4688a0:function(K,Q,X){Uint8Array.prototype.set.call(T$(K,Q),F(X))},__wbg_push_d2ae3af0c1217ae6:function(K,Q){return F(K).push(F(Q))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(K){let Q=F(K).queueMicrotask;return B(Q)},__wbg_queueMicrotask_6a09b7bc46549209:function(K){queueMicrotask(F(K))},__wbg_read_8afa15f12a160ef8:function(K){let Q=F(K).read();return B(Q)},__wbg_ready_68b537848a5c627a:function(K){let Q=F(K).ready;return B(Q)},__wbg_releaseLock_33c25ace78b2d4c6:function(K){F(K).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(K){F(K).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(K){let Q=Promise.resolve(F(K));return B(Q)},__wbg_respond_510e32df8aeb6817:function(){return s(function(K,Q){F(K).respond(Q>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(K,Q,X){F(K).set(T$(Q,X))},__wbg_set_575dd786d51585f8:function(K,Q,X){let J=F(K).set(F(Q),F(X));return B(J)},__wbg_set_6be42768c690e380:function(K,Q,X){F(K)[D(Q)]=D(X)},__wbg_set_8535240470bf2500:function(){return s(function(K,Q,X){return Reflect.set(F(K),F(Q),F(X))},arguments)},__wbg_set_8a16b38e4805b298:function(K,Q,X){F(K)[Q>>>0]=D(X)},__wbg_set_high_water_mark_44d043cd607dd13a:function(K,Q){F(K).highWaterMark=Q},__wbg_set_name_3bbc583faefa4193:function(K,Q,X){F(K).name=X0(Q,X)},__wbg_stack_3b0d974bbf31e44f:function(K,Q){let X=F(Q).stack,J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let K=typeof global>"u"?null:global;return j(K)?0:B(K)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let K=typeof globalThis>"u"?null:globalThis;return j(K)?0:B(K)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let K=typeof self>"u"?null:self;return j(K)?0:B(K)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let K=typeof window>"u"?null:window;return j(K)?0:B(K)},__wbg_then_16d107c451e9905d:function(K,Q,X){let J=F(K).then(F(Q),F(X));return B(J)},__wbg_then_6ec10ae38b3e92f7:function(K,Q){let X=F(K).then(F(Q));return B(X)},__wbg_trace_58264fbce2ceb5e6:function(K,Q,X,J){F(K).trace(F(Q),X===0?void 0:X0(X,J))},__wbg_value_a5d5488a9589444a:function(K){let Q=F(K).value;return B(Q)},__wbg_view_21f1d4a4f175dfa9:function(K){let Q=F(K).view;return j(Q)?0:B(Q)},__wbg_warn_77c4eb4a21e10a21:function(K,Q,X,J){console.warn(F(K),F(Q),F(X),F(J))},__wbg_warn_db531770752932a9:function(K,Q,X,J){F(K).warn(F(Q),X===0?void 0:X0(X,J))},__wbg_wasmwhatsappclient_new:function(K){let Q=d$.__wrap(K);return B(Q)},__wbg_write_f6dc0059c3feedce:function(K,Q){let X=F(K).write(F(Q));return B(X)},__wbindgen_cast_0000000000000001:function(K,Q){let X=h$(K,Q,rR);return B(X)},__wbindgen_cast_0000000000000002:function(K,Q){let X=h$(K,Q,sR);return B(X)},__wbindgen_cast_0000000000000003:function(K,Q){let X=h$(K,Q,$B);return B(X)},__wbindgen_cast_0000000000000004:function(K,Q){let X=h$(K,Q,aR);return B(X)},__wbindgen_cast_0000000000000005:function(K,Q){let X=h$(K,Q,tR);return B(X)},__wbindgen_cast_0000000000000006:function(K){return B(K)},__wbindgen_cast_0000000000000007:function(K){return B(K)},__wbindgen_cast_0000000000000008:function(K,Q){let X=T$(K,Q);return B(X)},__wbindgen_cast_0000000000000009:function(K,Q){let X=X0(K,Q);return B(X)},__wbindgen_cast_000000000000000a:function(K){let Q=BigInt.asUintN(64,K);return B(Q)},__wbindgen_cast_000000000000000b:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000c:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000d:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000e:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000f:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_0000000000000010:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_object_clone_ref:function(K){let Q=F(K);return B(Q)},__wbindgen_object_drop_ref:function(K){D(K)}}}}function tR($,K){z.__wasm_bindgen_func_elem_3791($,K)}function rR($,K,Q){z.__wasm_bindgen_func_elem_8209($,K,B(Q))}function aR($,K,Q){z.__wasm_bindgen_func_elem_3792($,K,B(Q))}function sR($,K,Q){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.__wasm_bindgen_func_elem_24617(Z,$,K,B(Q));var X=T().getInt32(Z+0,!0),J=T().getInt32(Z+4,!0);if(J)throw D(X)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function eR($,K,Q,X){z.__wasm_bindgen_func_elem_24619($,K,B(Q),B(X))}function $B($,K,Q){z.__wasm_bindgen_func_elem_3793($,K,Q)}var KB=["bytes"],QB=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingbytesource_free($,1)),ZB=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsink_free($,1)),A6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsource_free($,1)),E6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_wasmwhatsappclient_free($,1));function B($){if(u$===y0.length)y0.push(y0.length+1);let K=u$;return u$=y0[K],y0[K]=$,K}var M6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbindgen_export5($.a,$.b));function q6($){let K=typeof $;if(K=="number"||K=="boolean"||$==null)return`${$}`;if(K=="string")return`"${$}"`;if(K=="symbol"){let J=$.description;if(J==null)return"Symbol";else return`Symbol(${J})`}if(K=="function"){let J=$.name;if(typeof J=="string"&&J.length>0)return`Function(${J})`;else return"Function"}if(Array.isArray($)){let J=$.length,Z="[";if(J>0)Z+=q6($[0]);for(let Y=1;Y<J;Y++)Z+=", "+q6($[Y]);return Z+="]",Z}let Q=/\[object ([^\]]+)\]/.exec(toString.call($)),X;if(Q&&Q.length>1)X=Q[1];else return toString.call($);if(X=="Object")try{return"Object("+JSON.stringify($)+")"}catch(J){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
1
+ var oR=Object.defineProperty;var bR=($)=>$;function iR($,K){this[$]=bR.bind(null,K)}var mR=($,K)=>{for(var Q in K)oR($,Q,{get:K[Q],enumerable:!0,configurable:!0,set:iR.bind(K,Q)})};import{readFileSync as eB}from"node:fs";class J6{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,QB.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return z.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();z.intounderlyingbytesource_cancel($)}pull($){let K=z.intounderlyingbytesource_pull(this.__wbg_ptr,B($));return D(K)}start($){z.intounderlyingbytesource_start(this.__wbg_ptr,B($))}get type(){let $=z.intounderlyingbytesource_type(this.__wbg_ptr);return KB[$]}}if(Symbol.dispose)J6.prototype[Symbol.dispose]=J6.prototype.free;class X6{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,ZB.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsink_free($,0)}abort($){let K=this.__destroy_into_raw(),Q=z.intounderlyingsink_abort(K,B($));return D(Q)}close(){let $=this.__destroy_into_raw(),K=z.intounderlyingsink_close($);return D(K)}write($){let K=z.intounderlyingsink_write(this.__wbg_ptr,B($));return D(K)}}if(Symbol.dispose)X6.prototype[Symbol.dispose]=X6.prototype.free;class n${static __wrap($){let K=Object.create(n$.prototype);return K.__wbg_ptr=$,A6.register(K,K.__wbg_ptr,K),K}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,A6.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();z.intounderlyingsource_cancel($)}pull($){let K=z.intounderlyingsource_pull(this.__wbg_ptr,B($));return D(K)}}if(Symbol.dispose)n$.prototype[Symbol.dispose]=n$.prototype.free;class d${static __wrap($){let K=Object.create(d$.prototype);return K.__wbg_ptr=$,E6.register(K,K.__wbg_ptr,K),K}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,E6.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let K=z.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,B($));return D(K)}addLidPnMappings($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,K,Q);return D(X)}archiveChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_archiveChat(this.__wbg_ptr,Q,X,K);return D(J)}assertSessions($,K){let Q=g($,z.__wbindgen_export),X=U,J=z.wasmwhatsappclient_assertSessions(this.__wbg_ptr,Q,X,K);return D(J)}clearChat($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_clearChat(this.__wbg_ptr,X,J,K,Q);return D(Z)}communityFetchAllParticipating(){let $=z.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return D($)}communityParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}connect(){let $=z.wasmwhatsappclient_connect(this.__wbg_ptr);return D($)}createCommunity($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_createCommunity(this.__wbg_ptr,Z,Y,G,L,Q,X,J);return D(C)}createCommunitySubgroup($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}createGroup($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_createGroup(this.__wbg_ptr,Q,X,J,Z);return D(Y)}createParticipantNodesBytes($,K,Q){let X=g($,z.__wbindgen_export),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}createPoll($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=g(Q,z.__wbindgen_export),C=U,N=z.wasmwhatsappclient_createPoll(this.__wbg_ptr,J,Z,Y,G,L,C,X);return D(N)}deactivateCommunity($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,K,Q);return D(X)}deleteChat($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_deleteChat(this.__wbg_ptr,K,Q);return D(X)}deleteMessageForMe($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=z.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}disconnect(){let $=z.wasmwhatsappclient_disconnect(this.__wbg_ptr);return D($)}downloadMedia($,K,Q,X,J,Z){let Y=k($,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=u(K,z.__wbindgen_export),C=U,N=u(Q,z.__wbindgen_export),y=U,I=u(X,z.__wbindgen_export),O=U,M=z.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,Y,G,L,C,N,y,I,O,J,B(Z));return D(M)}downloadMediaStream($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=k($,z.__wbindgen_export,z.__wbindgen_export2),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=u(X,z.__wbindgen_export),d=U;z.wasmwhatsappclient_downloadMediaStream(C,this.__wbg_ptr,N,y,I,O,M,n,S,d,J,B(Z));var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}encryptMediaStream($,K,Q){let X=z.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,B($),B(K),B(Q));return D(X)}ensurePreKeys(){let $=z.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return D($)}fetchBlocklist(){let $=z.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return D($)}fetchMessageHistory($,K,Q,X,J){let Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,Z,Y,G,L,X,J);return D(C)}fetchPrivacySettings(){let $=z.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return D($)}fetchReachoutTimelock(){let $=z.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return D($)}fetchStatus($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,K,Q);return D(X)}fetchUserInfo($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,K,Q);return D(X)}getAccount(){let $=z.wasmwhatsappclient_getAccount(this.__wbg_ptr);return D($)}getBusinessProfile($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,K,Q);return D(X)}getCommunitySubgroups($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,K,Q);return D(X)}getCoreAllocationSnapshot(){let $=z.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return D($)}getGroupMetadata($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,K,Q);return D(X)}getJid(){let $=z.wasmwhatsappclient_getJid(this.__wbg_ptr);return D($)}getLid(){let $=z.wasmwhatsappclient_getLid(this.__wbg_ptr);return D($)}getMediaConn($){let K=z.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return D(K)}getMemoryDiagnostics(){let $=z.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return D($)}getPushName(){let $=z.wasmwhatsappclient_getPushName(this.__wbg_ptr);return D($)}getUSyncDevices($,K,Q){let X=g($,z.__wbindgen_export),J=U,Z=z.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,X,J,K,Q);return D(Z)}groupAcceptInvite($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,K,Q);return D(X)}groupAcceptInviteV4($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=k(X,z.__wbindgen_export,z.__wbindgen_export2),C=U,N=z.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,J,Z,Y,G,Q,L,C);return D(N)}groupFetchAllParticipating(){let $=z.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return D($)}groupGetInviteInfo($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,K,Q);return D(X)}groupInviteCode($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,K,Q);return D(X)}groupLeave($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupLeave(this.__wbg_ptr,K,Q);return D(X)}groupMemberAddMode($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,Q,X,B(K));return D(J)}groupParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}groupRequestParticipantsList($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,K,Q);return D(X)}groupRequestParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}groupRevokeInvite($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,K,Q);return D(X)}groupRevokeInviteV4($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,Q,X,J,Z);return D(Y)}groupSettingUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,X,J,B(K),Q);return D(Z)}groupToggleEphemeral($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,Q,X,K);return D(J)}groupUpdateDescription($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,Q,X,J,Z);return D(Y)}groupUpdateSubject($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,Q,X,J,Z);return D(Y)}isConnected(){return z.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return z.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,K,Q);return D(X)}jidToSignalProtocolAddress($){let K,Q;try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=k($,z.__wbindgen_export,z.__wbindgen_export2),y=U;z.wasmwhatsappclient_jidToSignalProtocolAddress(C,this.__wbg_ptr,N,y);var X=T().getInt32(C+0,!0),J=T().getInt32(C+4,!0),Z=T().getInt32(C+8,!0),Y=T().getInt32(C+12,!0),G=X,L=J;if(Y)throw G=0,L=0,D(Z);return K=G,Q=L,X0(G,L)}finally{z.__wbindgen_add_to_stack_pointer(16),z.__wbindgen_export4(K,Q,1)}}lidForPn($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_lidForPn(this.__wbg_ptr,K,Q);return D(X)}linkCommunitySubgroups($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,Q,X,J,Z);return D(Y)}logout(){let $=z.wasmwhatsappclient_logout(this.__wbg_ptr);return D($)}markChatAsRead($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,Q,X,K);return D(J)}markPlayed($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_markPlayed(this.__wbg_ptr,K,Q);return D(X)}muteChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_muteChat(this.__wbg_ptr,Q,X,!j(K),j(K)?0:K);return D(J)}newsletterCreate($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,Q,X,J,Z);return D(Y)}newsletterMetadata($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,K,Q);return D(X)}newsletterMute($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,Q,X,K);return D(J)}newsletterReactMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}newsletterSubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,K,Q);return D(X)}newsletterUnsubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,K,Q);return D(X)}pinChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_pinChat(this.__wbg_ptr,Q,X,K);return D(J)}pnForLid($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_pnForLid(this.__wbg_ptr,K,Q);return D(X)}presenceSubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,K,Q);return D(X)}profilePictureUrl($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,X,J,B(K),!j(Q),j(Q)?0:Q);return D(Z)}queryNode($,K){let Q=z.wasmwhatsappclient_queryNode(this.__wbg_ptr,B($),!j(K),j(K)?0:K);return D(Q)}queryUsync($){let K=z.wasmwhatsappclient_queryUsync(this.__wbg_ptr,B($));return D(K)}readMessages($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_readMessages(this.__wbg_ptr,K,Q);return D(X)}reconnect(){let $=z.wasmwhatsappclient_reconnect(this.__wbg_ptr);return D($)}refreshPreKeys($){let K=z.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,j($)?Number.MAX_SAFE_INTEGER:$>>>0);return D(K)}rejectCall($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_rejectCall(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}rejectStanza($,K,Q){let X=z.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,B($),K,j(Q)?Number.MAX_SAFE_INTEGER:Q>>0);return D(X)}relayMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}relayMessageBytesWithOptions($,K,Q,X,J,Z){let Y=k($,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=u(K,z.__wbindgen_export),C=U;var N=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),y=U;let I=z.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,Y,G,L,C,N,y,B(X),J,Z);return D(I)}removeGroupProfilePicture($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,K,Q);return D(X)}removeProfilePicture(){let $=z.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return D($)}requestMediaReupload($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=u(Q,z.__wbindgen_export),N=U;var y=j(J)?0:k(J,z.__wbindgen_export,z.__wbindgen_export2),I=U;let O=z.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,Z,Y,G,L,C,N,X,y,I);return D(O)}requestMessageRetry($,K){let Q=z.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,B($),j(K)?16777215:K?1:0);return D(Q)}requestPairingCode($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,Q,X,J,Z);return D(Y)}retransmitMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}revokeMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}rotateSignedKey(){let $=z.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return D($)}run(){try{let Q=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_run(Q,this.__wbg_ptr);var $=T().getInt32(Q+0,!0),K=T().getInt32(Q+4,!0);if(K)throw D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}saveContact($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var Y=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U;let N=z.wasmwhatsappclient_saveContact(this.__wbg_ptr,J,Z,Y,G,L,C,X);return D(N)}sendChatState($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_sendChatState(this.__wbg_ptr,Q,X,B(K));return D(J)}sendCommentBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(Q,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,X,J,B(K),Z,Y);return D(G)}sendMessageBytes($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,Q,X,J,Z);return D(Y)}sendNode($){let K=z.wasmwhatsappclient_sendNode(this.__wbg_ptr,B($));return D(K)}sendPresence($){let K=z.wasmwhatsappclient_sendPresence(this.__wbg_ptr,B($));return D(K)}sendRawMessage($){let K=u($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,K,Q);return D(X)}sendReaction($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var Z=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),Y=U;let G=z.wasmwhatsappclient_sendReaction(this.__wbg_ptr,X,J,B(K),Z,Y);return D(G)}sendStatusMessageBytes($,K){let Q=u($,z.__wbindgen_export),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,Q,X,J,Z);return D(Y)}sendStatusMessageBytesWithOptions($,K,Q,X,J){let Z=u($,z.__wbindgen_export),Y=U,G=g(K,z.__wbindgen_export),L=U;var C=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),N=U;let y=z.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,Z,Y,G,L,C,N,B(X),J);return D(y)}setAutoReconnect($){z.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setClientProfile($){let K=z.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,B($));return D(K)}setDeviceProps($){let K=z.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,B($));return D(K)}setGroupProfilePicture($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,Q,X,J,Z);return D(Y)}setInitialPushName($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,K,Q);return D(X)}setPushName($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_setPushName(this.__wbg_ptr,K,Q);return D(X)}setRawNodeForwarding($){z.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}signalDecryptGroupMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalDecryptMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalDeleteSenderKey($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalDeleteSessions($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,K,Q);return D(X)}signalEncryptGroupMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalEncryptMessage($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalGetSenderKeyDistribution($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalGetSessionInfo($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,K,Q);return D(X)}signalHasSenderKey($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalInstallPreKeyBundle($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,Q,X,B(K));return D(J)}signalMigrateSessions($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalProcessSenderKeyDistribution($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalValidateSession($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,K,Q);return D(X)}starMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=z.wasmwhatsappclient_starMessage(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}unlinkCommunitySubgroups($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}updateBlockStatus($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,Q,X,B(K));return D(J)}updateDefaultDisappearingMode($){let K=z.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return D(K)}updateMemberLabel($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,Q,X,J,Z);return D(Y)}updatePrivacySetting($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,Q,X,J,Z);return D(Y)}updateProfilePicture($){let K=u($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,K,Q);return D(X)}updateProfileStatus($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,K,Q);return D(X)}uploadEncryptedMediaStream($,K,Q,X,J,Z){let Y=u(K,z.__wbindgen_export),G=U,L=u(Q,z.__wbindgen_export),C=U,N=u(X,z.__wbindgen_export),y=U,I=z.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,B($),Y,G,L,C,N,y,J,B(Z));return D(I)}uploadMedia($,K){let Q=u($,z.__wbindgen_export),X=U,J=z.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,Q,X,B(K));return D(J)}validateKeyBundle(){let $=z.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return D($)}votePoll($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=k(Q,z.__wbindgen_export,z.__wbindgen_export2),N=U,y=u(X,z.__wbindgen_export),I=U,O=g(J,z.__wbindgen_export),M=U,n=z.wasmwhatsappclient_votePoll(this.__wbg_ptr,Z,Y,G,L,C,N,y,I,O,M);return D(n)}}if(Symbol.dispose)d$.prototype[Symbol.dispose]=d$.prototype.free;function ZO(){z.beginWasmAllocationProfile()}function JO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U,L=u(K,z.__wbindgen_export),C=U;z.calculateAgreement(Z,Y,G,L,C);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function XO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U,L=u(K,z.__wbindgen_export),C=U;z.calculateSignature(Z,Y,G,L,C);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function W6($,K,Q,X,J,Z,Y){let G=z.createWhatsAppClient(B($),B(K),j(Q)?0:B(Q),j(X)?0:B(X),j(J)?0:B(J),j(Z)?0:B(Z),j(Y)?0:B(Y));return D(G)}function qO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.decodeSenderKeyRecordComponents(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function YO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.decodeSessionRecordComponents(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function HO($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=u($,z.__wbindgen_export),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=k(X,z.__wbindgen_export,z.__wbindgen_export2),d=U,B0=k(J,z.__wbindgen_export,z.__wbindgen_export2),O0=U,f0=k(Z,z.__wbindgen_export,z.__wbindgen_export2),A0=U;z.decryptEventResponsePayload(C,N,y,I,O,M,n,S,d,B0,O0,f0,A0);var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function zO($,K,Q,X,J,Z,Y){try{let I=z.__wbindgen_add_to_stack_pointer(-16),O=u($,z.__wbindgen_export),M=U,n=u(K,z.__wbindgen_export),S=U,d=u(Q,z.__wbindgen_export),B0=U,O0=k(X,z.__wbindgen_export,z.__wbindgen_export2),f0=U,A0=k(J,z.__wbindgen_export,z.__wbindgen_export2),l=U,v$=k(Z,z.__wbindgen_export,z.__wbindgen_export2),jR=U,cR=g(Y,z.__wbindgen_export),p=U;z.decryptPollVote(I,O,M,n,S,d,B0,O0,f0,A0,l,v$,jR,cR,p);var G=T().getInt32(I+0,!0),L=T().getInt32(I+4,!0),C=T().getInt32(I+8,!0),N=T().getInt32(I+12,!0);if(N)throw D(C);var y=A$(G,L).slice();return z.__wbindgen_export4(G,L*4,4),y}finally{z.__wbindgen_add_to_stack_pointer(16)}}function VO($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=u($,z.__wbindgen_export),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=k(X,z.__wbindgen_export,z.__wbindgen_export2),d=U,B0=k(J,z.__wbindgen_export,z.__wbindgen_export2),O0=U,f0=k(Z,z.__wbindgen_export,z.__wbindgen_export2),A0=U;z.decryptPollVotePayload(C,N,y,I,O,M,n,S,d,B0,O0,f0,A0);var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function GO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSenderKeyRecordComponents(J,B($));var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function UO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSessionRecordComponents(J,B($));var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function CO(){let $=z.generateKeyPair();return D($)}function DO(){let $=z.getEnabledFeatures();return D($)}function LO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.getPublicFromPrivateKey(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function PO(){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.getWasmAllocationSnapshot(X);var $=T().getInt32(X+0,!0),K=T().getInt32(X+4,!0),Q=T().getInt32(X+8,!0);if(Q)throw D(K);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function FO(){return z.getWasmMemoryBytes()}function xO(){return z.hasLogger()!==0}function kO($,K,Q){try{let Y=z.__wbindgen_add_to_stack_pointer(-16),G=u($,z.__wbindgen_export),L=U;z.hkdf(Y,G,L,K,B(Q));var X=T().getInt32(Y+0,!0),J=T().getInt32(Y+4,!0),Z=T().getInt32(Y+8,!0);if(Z)throw D(J);return D(X)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function NO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.importLegacySessionRecordV1(Z,B($),B(K));var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function RO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U;z.inflateZlib(Z,Y,G,!j(K),j(K)?0:K);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function I6($,K){z.initWasmEngine(B($),B(K))}function BO($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;z.logMessage(Q,X,J,Z)}function OO($){let K=u($,z.__wbindgen_export),Q=U,X=z.md5(K,Q);return D(X)}function AO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.projectLegacySessionRecordV1(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function EO($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.setLogger(X,B($));var K=T().getInt32(X+0,!0),Q=T().getInt32(X+4,!0);if(Q)throw D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function MO($){z.updateLogger(B($))}function WO($,K,Q){try{let Y=z.__wbindgen_add_to_stack_pointer(-16),G=u($,z.__wbindgen_export),L=U,C=u(K,z.__wbindgen_export),N=U,y=u(Q,z.__wbindgen_export),I=U;z.verifySignature(Y,G,L,C,N,y,I);var X=T().getInt32(Y+0,!0),J=T().getInt32(Y+4,!0),Z=T().getInt32(Y+8,!0);if(Z)throw D(J);return X!==0}finally{z.__wbindgen_add_to_stack_pointer(16)}}function gR(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(K,Q){let X=Error(X0(K,Q));return B(X)},__wbg_Number_9a4e0ecb0fa16705:function(K){return Number(F(K))},__wbg_String_8564e559799eccda:function(K,Q){let X=String(F(Q)),J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(K,Q){let X=F(Q),J=typeof X==="bigint"?X:void 0;T().setBigInt64(K+8,j(J)?BigInt(0):J,!0),T().setInt32(K+0,!j(J),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(K){let Q=F(K),X=typeof Q==="boolean"?Q:void 0;return j(X)?16777215:X?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(K,Q){let X=q6(F(Q)),J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(K,Q){return F(K)in F(Q)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(K){return typeof F(K)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(K){return typeof F(K)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(K){return F(K)===null},__wbg___wbindgen_is_object_a27215656b807791:function(K){let Q=F(K);return typeof Q==="object"&&Q!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(K){return typeof F(K)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(K){return F(K)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(K,Q){return F(K)===F(Q)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(K,Q){return F(K)==F(Q)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(K,Q){let X=F(Q),J=typeof X==="number"?X:void 0;T().setFloat64(K+8,j(J)?0:J,!0),T().setInt32(K+0,!j(J),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(K,Q){let X=F(Q),J=typeof X==="string"?X:void 0;var Z=j(J)?0:k(J,z.__wbindgen_export,z.__wbindgen_export2),Y=U;T().setInt32(K+4,Y,!0),T().setInt32(K+0,Z,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(K,Q){throw Error(X0(K,Q))},__wbg__wbg_cb_unref_fffb441def202758:function(K){F(K)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return s(function(K,Q,X){let J=F(K).apply(F(Q),F(X));return B(J)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(K,Q,X,J){let Z=F(K).bind(F(Q),F(X),F(J));return B(Z)},__wbg_buffer_54b87055582c8a81:function(K){let Q=F(K).buffer;return B(Q)},__wbg_byobRequest_06b654bb15590436:function(K){let Q=F(K).byobRequest;return j(Q)?0:B(Q)},__wbg_byteLength_41862ca4020b9c43:function(K){return F(K).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(K){return F(K).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return s(function(K,Q,X,J,Z){let Y=F(K).call(F(Q),F(X),F(J),F(Z));return B(Y)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return s(function(K,Q){let X=F(K).call(F(Q));return B(X)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return s(function(K,Q,X){let J=F(K).call(F(Q),F(X));return B(J)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return s(function(K,Q,X,J,Z,Y){let G=F(K).call(F(Q),F(X),F(J),F(Z),F(Y));return B(G)},arguments)},__wbg_call_e3b662382210db98:function(){return s(function(K,Q,X,J){let Z=F(K).call(F(Q),F(X),F(J));return B(Z)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(K){let Q=F(K).cancel();return B(Q)},__wbg_catch_c1a60df4c30d76d3:function(K,Q){let X=F(K).catch(F(Q));return B(X)},__wbg_close_1e6096d41f7ce5d0:function(K){let Q=F(K).close();return B(Q)},__wbg_close_249a23304523681b:function(){return s(function(K){F(K).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return s(function(K){F(K).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(K,Q,X,J){F(K).debug(F(Q),X===0?void 0:X0(X,J))},__wbg_debug_cf53e2612c84e4ee:function(K,Q,X,J){console.debug(F(K),F(Q),F(X),F(J))},__wbg_done_89b2b13e91a60321:function(K){return F(K).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return s(function(K,Q){F(K).enqueue(F(Q))},arguments)},__wbg_entries_015dc610cd81ede0:function(K){let Q=Object.entries(F(K));return B(Q)},__wbg_error_657700d53a73881f:function(K,Q,X,J){console.error(F(K),F(Q),F(X),F(J))},__wbg_error_9cce413345f88385:function(K,Q,X,J){F(K).error(F(Q),X===0?void 0:X0(X,J))},__wbg_error_a6fa202b58aa1cd3:function(K,Q){let X,J;try{X=K,J=Q,console.error(X0(K,Q))}finally{z.__wbindgen_export4(X,J,1)}},__wbg_from_13e323c65fc8f464:function(K){let Q=Array.from(F(K));return B(Q)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return s(function(K,Q){globalThis.crypto.getRandomValues(T$(K,Q))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return s(function(K){let Q=F(K).getReader();return B(Q)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return s(function(K){let Q=F(K).getWriter();return B(Q)},arguments)},__wbg_get_507a50627bffa49b:function(K,Q){let X=F(K)[Q>>>0];return B(X)},__wbg_get_78f252d074a84d0b:function(){return s(function(K,Q){let X=Reflect.get(F(K),F(Q));return B(X)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return s(function(K,Q){let X=Reflect.get(F(K),F(Q));return B(X)},arguments)},__wbg_get_done_670108eb06ecbe46:function(K){let Q=F(K).done;return j(Q)?16777215:Q?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(K,Q){let X=F(K)[Q>>>0];return B(X)},__wbg_get_value_f465f5be30aa0963:function(K){let Q=F(K).value;return B(Q)},__wbg_get_with_ref_key_6412cf3094599694:function(K,Q){let X=F(K)[F(Q)];return B(X)},__wbg_info_79f5309d69d9c70e:function(K,Q,X,J){console.info(F(K),F(Q),F(X),F(J))},__wbg_info_b728e87a346ff6a2:function(K,Q,X,J){F(K).info(F(Q),X===0?void 0:X0(X,J))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(K){let Q;try{Q=F(K)instanceof ArrayBuffer}catch(J){Q=!1}return Q},__wbg_instanceof_Array_de0fa65266a8c7c0:function(K){let Q;try{Q=F(K)instanceof Array}catch(J){Q=!1}return Q},__wbg_instanceof_Map_e5b5e3db98422fcc:function(K){let Q;try{Q=F(K)instanceof Map}catch(J){Q=!1}return Q},__wbg_instanceof_Object_33f20e6f12439f3e:function(K){let Q;try{Q=F(K)instanceof Object}catch(J){Q=!1}return Q},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(K){let Q;try{Q=F(K)instanceof Promise}catch(J){Q=!1}return Q},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(K){let Q;try{Q=F(K)instanceof Uint8Array}catch(J){Q=!1}return Q},__wbg_isArray_0677c962b281d01a:function(K){return Array.isArray(F(K))},__wbg_isSafeInteger_04f36e4056f1b851:function(K){return Number.isSafeInteger(F(K))},__wbg_iterator_6f722e4a93058b71:function(){return B(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(K){let Q=Object.keys(F(K));return B(Q)},__wbg_length_1f0964f4a5e2c6d8:function(K){return F(K).length},__wbg_length_370319915dc99107:function(K){return F(K).length},__wbg_level_4b50b181832c5acf:function(K,Q){let X=F(Q).level,J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg_log_a45418e25b210a4c:function(K,Q,X,J){console.log(F(K),F(Q),F(X),F(J))},__wbg_new_227d7c05414eb861:function(){let K=Error();return B(K)},__wbg_new_32b398fb48b6d94a:function(){return B([])},__wbg_new_7796ffc7ed656783:function(){return B(new Map)},__wbg_new_b667d279fd5aa943:function(K,Q){let X=Error(X0(K,Q));return B(X)},__wbg_new_cd45aabdf6073e84:function(K){let Q=new Uint8Array(F(K));return B(Q)},__wbg_new_da52cf8fe3429cb2:function(){return B({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(K,Q){let X=new Uint32Array(XB(K,Q));return B(X)},__wbg_new_from_slice_77cdfb7977362f3c:function(K,Q){let X=new Uint8Array(T$(K,Q));return B(X)},__wbg_new_typed_1824d93f294193e5:function(K,Q){try{var X={a:K,b:Q},J=(Y,G)=>{let L=X.a;X.a=0;try{return eR(L,X.b,Y,G)}finally{X.a=L}};let Z=new Promise(J);return B(Z)}finally{X.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(K,Q,X){let J=new Uint8Array(F(K),Q>>>0,X>>>0);return B(J)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(K,Q){let X=new ReadableStream(n$.__wrap(K),D(Q));return B(X)},__wbg_new_with_length_e6785c33c8e4cce8:function(K){let Q=new Uint8Array(K>>>0);return B(Q)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(K){let Q=Array(K>>>0);return B(Q)},__wbg_next_6dbf2c0ac8cde20f:function(K){let Q=F(K).next;return B(Q)},__wbg_next_71f2aa1cb3d1e37e:function(){return s(function(K){let Q=F(K).next();return B(Q)},arguments)},__wbg_now_44881ed1d5dba857:function(){return s(function(){return performance.now()},arguments)},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_now_fefb743ab429013f:function(){return performance.now()},__wbg_of_2bf3ed8a776ff19a:function(K,Q,X,J){let Z=Array.of(F(K),F(Q),F(X),F(J));return B(Z)},__wbg_prototypesetcall_2592ffff58ff115d:function(K,Q,X){Uint8Array.prototype.set.call(T$(K,Q),F(X))},__wbg_prototypesetcall_4770620bbe4688a0:function(K,Q,X){Uint8Array.prototype.set.call(T$(K,Q),F(X))},__wbg_push_d2ae3af0c1217ae6:function(K,Q){return F(K).push(F(Q))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(K){let Q=F(K).queueMicrotask;return B(Q)},__wbg_queueMicrotask_6a09b7bc46549209:function(K){queueMicrotask(F(K))},__wbg_read_8afa15f12a160ef8:function(K){let Q=F(K).read();return B(Q)},__wbg_ready_68b537848a5c627a:function(K){let Q=F(K).ready;return B(Q)},__wbg_releaseLock_33c25ace78b2d4c6:function(K){F(K).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(K){F(K).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(K){let Q=Promise.resolve(F(K));return B(Q)},__wbg_respond_510e32df8aeb6817:function(){return s(function(K,Q){F(K).respond(Q>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(K,Q,X){F(K).set(T$(Q,X))},__wbg_set_575dd786d51585f8:function(K,Q,X){let J=F(K).set(F(Q),F(X));return B(J)},__wbg_set_6be42768c690e380:function(K,Q,X){F(K)[D(Q)]=D(X)},__wbg_set_8535240470bf2500:function(){return s(function(K,Q,X){return Reflect.set(F(K),F(Q),F(X))},arguments)},__wbg_set_8a16b38e4805b298:function(K,Q,X){F(K)[Q>>>0]=D(X)},__wbg_set_high_water_mark_44d043cd607dd13a:function(K,Q){F(K).highWaterMark=Q},__wbg_set_name_3bbc583faefa4193:function(K,Q,X){F(K).name=X0(Q,X)},__wbg_stack_3b0d974bbf31e44f:function(K,Q){let X=F(Q).stack,J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let K=typeof global>"u"?null:global;return j(K)?0:B(K)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let K=typeof globalThis>"u"?null:globalThis;return j(K)?0:B(K)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let K=typeof self>"u"?null:self;return j(K)?0:B(K)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let K=typeof window>"u"?null:window;return j(K)?0:B(K)},__wbg_then_16d107c451e9905d:function(K,Q,X){let J=F(K).then(F(Q),F(X));return B(J)},__wbg_then_6ec10ae38b3e92f7:function(K,Q){let X=F(K).then(F(Q));return B(X)},__wbg_trace_58264fbce2ceb5e6:function(K,Q,X,J){F(K).trace(F(Q),X===0?void 0:X0(X,J))},__wbg_value_a5d5488a9589444a:function(K){let Q=F(K).value;return B(Q)},__wbg_view_21f1d4a4f175dfa9:function(K){let Q=F(K).view;return j(Q)?0:B(Q)},__wbg_warn_77c4eb4a21e10a21:function(K,Q,X,J){console.warn(F(K),F(Q),F(X),F(J))},__wbg_warn_db531770752932a9:function(K,Q,X,J){F(K).warn(F(Q),X===0?void 0:X0(X,J))},__wbg_wasmwhatsappclient_new:function(K){let Q=d$.__wrap(K);return B(Q)},__wbg_write_f6dc0059c3feedce:function(K,Q){let X=F(K).write(F(Q));return B(X)},__wbindgen_cast_0000000000000001:function(K,Q){let X=h$(K,Q,rR);return B(X)},__wbindgen_cast_0000000000000002:function(K,Q){let X=h$(K,Q,sR);return B(X)},__wbindgen_cast_0000000000000003:function(K,Q){let X=h$(K,Q,$B);return B(X)},__wbindgen_cast_0000000000000004:function(K,Q){let X=h$(K,Q,aR);return B(X)},__wbindgen_cast_0000000000000005:function(K,Q){let X=h$(K,Q,tR);return B(X)},__wbindgen_cast_0000000000000006:function(K){return B(K)},__wbindgen_cast_0000000000000007:function(K){return B(K)},__wbindgen_cast_0000000000000008:function(K,Q){let X=T$(K,Q);return B(X)},__wbindgen_cast_0000000000000009:function(K,Q){let X=X0(K,Q);return B(X)},__wbindgen_cast_000000000000000a:function(K){let Q=BigInt.asUintN(64,K);return B(Q)},__wbindgen_cast_000000000000000b:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000c:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000d:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000e:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000f:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_0000000000000010:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_object_clone_ref:function(K){let Q=F(K);return B(Q)},__wbindgen_object_drop_ref:function(K){D(K)}}}}function tR($,K){z.__wasm_bindgen_func_elem_3791($,K)}function rR($,K,Q){z.__wasm_bindgen_func_elem_8210($,K,B(Q))}function aR($,K,Q){z.__wasm_bindgen_func_elem_3792($,K,B(Q))}function sR($,K,Q){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.__wasm_bindgen_func_elem_24626(Z,$,K,B(Q));var X=T().getInt32(Z+0,!0),J=T().getInt32(Z+4,!0);if(J)throw D(X)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function eR($,K,Q,X){z.__wasm_bindgen_func_elem_24628($,K,B(Q),B(X))}function $B($,K,Q){z.__wasm_bindgen_func_elem_3793($,K,Q)}var KB=["bytes"],QB=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingbytesource_free($,1)),ZB=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsink_free($,1)),A6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsource_free($,1)),E6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_wasmwhatsappclient_free($,1));function B($){if(u$===y0.length)y0.push(y0.length+1);let K=u$;return u$=y0[K],y0[K]=$,K}var M6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbindgen_export5($.a,$.b));function q6($){let K=typeof $;if(K=="number"||K=="boolean"||$==null)return`${$}`;if(K=="string")return`"${$}"`;if(K=="symbol"){let J=$.description;if(J==null)return"Symbol";else return`Symbol(${J})`}if(K=="function"){let J=$.name;if(typeof J=="string"&&J.length>0)return`Function(${J})`;else return"Function"}if(Array.isArray($)){let J=$.length,Z="[";if(J>0)Z+=q6($[0]);for(let Y=1;Y<J;Y++)Z+=", "+q6($[Y]);return Z+="]",Z}let Q=/\[object ([^\]]+)\]/.exec(toString.call($)),X;if(Q&&Q.length>1)X=Q[1];else return toString.call($);if(X=="Object")try{return"Object("+JSON.stringify($)+")"}catch(J){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
2
2
  ${$.stack}`;return X}function JB($){if($<1028)return;y0[$]=u$,u$=$}function A$($,K){$=$>>>0;let Q=T(),X=[];for(let J=$;J<$+4*K;J+=4)X.push(D(Q.getUint32(J,!0)));return X}function XB($,K){return $=$>>>0,qB().subarray($/4,$/4+K)}function T$($,K){return $=$>>>0,y$().subarray($/1,$/1+K)}var E$=null;function T(){if(E$===null||E$.buffer.detached===!0||E$.buffer.detached===void 0&&E$.buffer!==z.memory.buffer)E$=new DataView(z.memory.buffer);return E$}function X0($,K){return HB($>>>0,K)}var l$=null;function qB(){if(l$===null||l$.byteLength===0)l$=new Uint32Array(z.memory.buffer);return l$}var p$=null;function y$(){if(p$===null||p$.byteLength===0)p$=new Uint8Array(z.memory.buffer);return p$}function F($){return y0[$]}function s($,K){try{return $.apply(this,K)}catch(Q){z.__wbindgen_export3(B(Q))}}var y0=Array(1024).fill(void 0);y0.push(void 0,null,!0,!1);var u$=y0.length;function j($){return $===void 0||$===null}function h$($,K,Q){let X={a:$,b:K,cnt:1},J=(...Z)=>{X.cnt++;let Y=X.a;X.a=0;try{return Q(Y,X.b,...Z)}finally{X.a=Y,J._wbg_cb_unref()}};return J._wbg_cb_unref=()=>{if(--X.cnt===0)z.__wbindgen_export5(X.a,X.b),X.a=0,M6.unregister(X)},M6.register(J,X,X),J}function u($,K){let Q=K($.length*1,1)>>>0;return y$().set($,Q/1),U=$.length,Q}function g($,K){let Q=K($.length*4,4)>>>0,X=T();for(let J=0;J<$.length;J++)X.setUint32(Q+4*J,B($[J]),!0);return U=$.length,Q}function k($,K,Q){if(Q===void 0){let G=w$.encode($),L=K(G.length,1)>>>0;return y$().subarray(L,L+G.length).set(G),U=G.length,L}let X=$.length,J=K(X,1)>>>0,Z=y$(),Y=0;for(;Y<X;Y++){let G=$.charCodeAt(Y);if(G>127)break;Z[J+Y]=G}if(Y!==X){if(Y!==0)$=$.slice(Y);J=Q(J,X,X=Y+$.length*3,1)>>>0;let G=y$().subarray(J+Y,J+X),L=w$.encodeInto($,G);Y+=L.written,J=Q(J,X,Y,1)>>>0}return U=Y,J}function D($){let K=F($);return JB($),K}var IY=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});IY.decode();var YB=2146435072,Z6=0;function HB($,K){if(Z6+=K,Z6>=YB)IY=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),IY.decode(),Z6=K;return IY.decode(y$().subarray($,$+K))}var w$=new TextEncoder;if(!("encodeInto"in w$))w$.encodeInto=function($,K){let Q=w$.encode($);return K.set(Q),{read:$.length,written:Q.length}};var U=0,zB,VB,z;function GB($,K){return VB=$,z=$.exports,zB=K,E$=null,l$=null,p$=null,z}function S6($){if(z!==void 0)return z;if($!==void 0)if(Object.getPrototypeOf($)===Object.prototype)({module:$}=$);else console.warn("using deprecated parameters for `initSync()`; pass a single object instead");let K=gR();if(!($ instanceof WebAssembly.Module))$=new WebAssembly.Module($);let Q=new WebAssembly.Instance($,K);return GB(Q,$)}var WY={};mR(WY,{protobufPackage:()=>AB,mentionMentionType:()=>lP,futureProofBehavior:()=>_P,consumerApplicationStatusTextMesageFontType:()=>yP,consumerApplicationMetadataSpecialTextSize:()=>TP,commandCommandType:()=>vP,WebNotificationsInfo:()=>UR,WebMessageInfo_StubType:()=>DN,WebMessageInfo_Status:()=>CN,WebMessageInfo_BizPrivacyStatus:()=>UN,WebMessageInfoWithMessageBytes:()=>K0,WebMessageInfo:()=>b,WebLinkRenderConfig:()=>jP,WebFeatures_Flag:()=>GN,WebFeatures:()=>GR,WallpaperSettings:()=>U0,VirtualDeviceOutput:()=>MY,VerifiedNameCertificate_Details:()=>$6,VerifiedNameCertificate:()=>T0,UserReceipt:()=>EY,UserPassword_TransformerArg_Value:()=>AY,UserPassword_TransformerArg:()=>OY,UserPassword_Transformer:()=>VN,UserPassword_Encoding:()=>zN,UserPassword:()=>BY,UrlTrackingMap_UrlTrackingMapElement:()=>RY,UrlTrackingMap:()=>B$,UnCountedAssociatedMessageListWithMessageBytes:()=>NY,UnCountedAssociatedMessageList:()=>kY,ThreadID_ThreadType:()=>HN,ThreadID:()=>xY,TemplateButton_URLButton:()=>FY,TemplateButton_QuickReplyButton:()=>PY,TemplateButton_CallButton:()=>LY,TemplateButton:()=>DY,TapLinkAction:()=>CY,SyncdVersion:()=>R0,SyncdValue:()=>UY,SyncdSnapshotRecovery:()=>VR,SyncdSnapshot:()=>eY,SyncdRecord:()=>v0,SyncdPlainTextRecord:()=>GY,SyncdPatch:()=>sY,SyncdMutations:()=>aY,SyncdMutation_SyncdOperation:()=>YN,SyncdMutation:()=>S0,SyncdIndex:()=>VY,SyncActionValue_WamoUserIdentifierAction:()=>zY,SyncActionValue_WaffleAccountLinkStateAction_AccountLinkState:()=>qN,SyncActionValue_WaffleAccountLinkStateAction:()=>HY,SyncActionValue_WASARootSecretAction_RootSecretEntry:()=>YY,SyncActionValue_WASARootSecretAction:()=>qY,SyncActionValue_UsernameChatStartModeAction_ChatStartMode:()=>XN,SyncActionValue_UsernameChatStartModeAction:()=>XY,SyncActionValue_UserStatusMuteAction:()=>JY,SyncActionValue_UnarchiveChatsSetting:()=>ZY,SyncActionValue_UGCBot:()=>QY,SyncActionValue_TimeFormatAction:()=>KY,SyncActionValue_ThreadPinAction:()=>$Y,SyncActionValue_SyncActionMessageRange:()=>Z0,SyncActionValue_SyncActionMessage:()=>e9,SyncActionValue_SubscriptionsSyncV2Action_SubscriptionInfo:()=>s9,SyncActionValue_SubscriptionsSyncV2Action_PaidFeature:()=>a9,SyncActionValue_SubscriptionsSyncV2Action:()=>r9,SyncActionValue_SubscriptionAction:()=>t9,SyncActionValue_StickerAction:()=>R$,SyncActionValue_StatusPrivacyAction_StatusDistributionMode:()=>JN,SyncActionValue_StatusPrivacyAction_CustomList:()=>g9,SyncActionValue_StatusPrivacyAction:()=>m9,SyncActionValue_StatusPostOptInNotificationPreferencesAction:()=>i9,SyncActionValue_StarAction:()=>b9,SyncActionValue_SettingsSyncAction_SettingPlatform:()=>ZN,SyncActionValue_SettingsSyncAction_SettingKey:()=>QN,SyncActionValue_SettingsSyncAction_MediaQualitySetting:()=>KN,SyncActionValue_SettingsSyncAction_DisplayMode:()=>$N,SyncActionValue_SettingsSyncAction:()=>o9,SyncActionValue_RemoveRecentStickerAction:()=>c9,SyncActionValue_RecentEmojiWeightsAction:()=>j9,SyncActionValue_QuickReplyAction:()=>d9,SyncActionValue_PushNameSetting:()=>n9,SyncActionValue_PrivateProcessingSettingAction_PrivateProcessingStatus:()=>ek,SyncActionValue_PrivateProcessingSettingAction:()=>w9,SyncActionValue_PrivacySettingRelayAllCalls:()=>u9,SyncActionValue_PrivacySettingDisableLinkPreviewsAction:()=>p9,SyncActionValue_PrivacySettingChannelsPersonalisedRecommendationAction:()=>l9,SyncActionValue_PrimaryVersionAction:()=>h9,SyncActionValue_PrimaryFeature:()=>_9,SyncActionValue_PnForLidChatAction:()=>f9,SyncActionValue_PinAction:()=>y9,SyncActionValue_PaymentTosAction_PaymentNotice:()=>sk,SyncActionValue_PaymentTosAction:()=>T9,SyncActionValue_PaymentInfoAction:()=>v9,SyncActionValue_OutContactAction:()=>S9,SyncActionValue_NuxAction:()=>I9,SyncActionValue_NotificationActivitySettingAction_NotificationActivitySetting:()=>ak,SyncActionValue_NotificationActivitySettingAction:()=>W9,SyncActionValue_NoteEditAction_NoteType:()=>rk,SyncActionValue_NoteEditAction:()=>M9,SyncActionValue_NewsletterSavedInterestsAction:()=>E9,SyncActionValue_NctSaltSyncAction:()=>A9,SyncActionValue_MuteAction:()=>O9,SyncActionValue_MusicUserIdAction_MusicUserIdMapEntry:()=>hY,SyncActionValue_MusicUserIdAction:()=>B9,SyncActionValue_MerchantPaymentPartnerAction_Status:()=>tk,SyncActionValue_MerchantPaymentPartnerAction:()=>R9,SyncActionValue_MarketingMessageBroadcastAction:()=>N9,SyncActionValue_MarketingMessageAction_MarketingMessagePrototypeType:()=>gk,SyncActionValue_MarketingMessageAction:()=>k9,SyncActionValue_MarkChatAsReadAction:()=>x9,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIReplyMode:()=>mk,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIFeatureStatus:()=>ik,SyncActionValue_MaibaAIFeaturesControlAction:()=>F9,SyncActionValue_LockChatAction:()=>P9,SyncActionValue_LocaleSetting:()=>L9,SyncActionValue_LidContactAction:()=>D9,SyncActionValue_LabelReorderingAction:()=>C9,SyncActionValue_LabelEditAction_ListType:()=>bk,SyncActionValue_LabelEditAction:()=>U9,SyncActionValue_LabelAssociationAction:()=>G9,SyncActionValue_KeyExpiration:()=>V9,SyncActionValue_InteractiveMessageAction_InteractiveMessageActionMode:()=>ok,SyncActionValue_InteractiveMessageAction:()=>z9,SyncActionValue_FavoritesAction_Favorite:()=>H9,SyncActionValue_FavoritesAction:()=>Y9,SyncActionValue_ExternalWebBetaAction:()=>q9,SyncActionValue_DetectedOutcomesStatusAction:()=>X9,SyncActionValue_DeleteMessageForMeAction:()=>J9,SyncActionValue_DeleteIndividualCallLogAction:()=>Z9,SyncActionValue_DeleteChatAction:()=>Q9,SyncActionValue_CustomerDataAction:()=>K9,SyncActionValue_CustomPaymentMethodsAction:()=>$9,SyncActionValue_CustomPaymentMethodMetadata:()=>eq,SyncActionValue_CustomPaymentMethod:()=>sq,SyncActionValue_CtwaPerCustomerDataSharingAction:()=>aq,SyncActionValue_ContactAction:()=>rq,SyncActionValue_CoexV2VersionAction:()=>tq,SyncActionValue_ClearChatAction:()=>gq,SyncActionValue_ChatAssignmentOpenedStatusAction:()=>mq,SyncActionValue_ChatAssignmentAction:()=>iq,SyncActionValue_CallLogAction:()=>bq,SyncActionValue_BusinessBroadcastListAction:()=>oq,SyncActionValue_BusinessBroadcastInsightsAction:()=>cq,SyncActionValue_BusinessBroadcastCampaignStatus:()=>dk,SyncActionValue_BusinessBroadcastCampaignAction:()=>jq,SyncActionValue_BusinessBroadcastAssociationAction:()=>zR,SyncActionValue_BroadcastListParticipant:()=>dq,SyncActionValue_BotWelcomeRequestAction:()=>nq,SyncActionValue_BizAISettingsNudgeAction_BizAISettingsCategory:()=>ck,SyncActionValue_BizAISettingsNudgeAction:()=>wq,SyncActionValue_AvatarUpdatedAction_AvatarEventType:()=>jk,SyncActionValue_AvatarUpdatedAction:()=>uq,SyncActionValue_AutoOrganizeBusinessChatSetting:()=>pq,SyncActionValue_ArchiveChatAction:()=>lq,SyncActionValue_AndroidUnsupportedActions:()=>hq,SyncActionValue_AiThreadRenameAction:()=>_q,SyncActionValue_AgentAction:()=>fq,SyncActionValue:()=>S$,SyncActionData:()=>I$,SubProtocol:()=>o,StickerMetadata:()=>yq,StatusPSA:()=>Tq,StatusMentionMessage:()=>vq,StatusAttribution_Type:()=>lk,StatusAttribution_StatusReshare_Source:()=>nk,StatusAttribution_StatusReshare_Metadata:()=>Sq,StatusAttribution_StatusReshare:()=>Iq,StatusAttribution_RLAttribution_Source:()=>wk,StatusAttribution_RLAttribution:()=>Wq,StatusAttribution_Music:()=>Mq,StatusAttribution_GroupStatus:()=>Eq,StatusAttribution_ExternalShare_Source:()=>uk,StatusAttribution_ExternalShare:()=>Aq,StatusAttribution_AiCreatedAttribution_Source:()=>pk,StatusAttribution_AiCreatedAttribution:()=>Oq,StatusAttribution:()=>Bq,SignedPreKeyRecordStructure:()=>HR,SignalMessage:()=>YR,SessionTransparencyType:()=>dP,SessionTransparencyMetadata:()=>Rq,SessionStructure_PendingPreKey:()=>Nq,SessionStructure_PendingKeyExchange:()=>kq,SessionStructure_Chain_MessageKey:()=>xq,SessionStructure_Chain_ChainKey:()=>Fq,SessionStructure_Chain:()=>m0,SessionStructure:()=>i0,ServerErrorReceipt:()=>rY,SenderKeyStateStructure_SenderSigningKey:()=>Pq,SenderKeyStateStructure_SenderMessageKey:()=>Lq,SenderKeyStateStructure_SenderChainKey:()=>Dq,SenderKeyStateStructure:()=>Cq,SenderKeyRecordStructure:()=>qR,SenderKeyMessage:()=>tY,SenderKeyDistributionMessage:()=>gY,ScheduledMessageMetadata:()=>Uq,RoutingInfo:()=>XR,ReportingTokenInfo:()=>Gq,Reportable:()=>JR,RecordStructure:()=>ZR,RecentEmojiWeight:()=>Vq,Reaction:()=>zq,QuarantinedMessage:()=>Hq,QP_FilterResult:()=>hk,QP_FilterParameters:()=>Yq,QP_FilterClientNotSupportedConfig:()=>_k,QP_FilterClause:()=>j$,QP_Filter:()=>qq,QP_ClauseType:()=>fk,QP:()=>QR,Pushname:()=>Xq,ProloguePayload:()=>KR,ProcessedVideo_VideoQuality:()=>yk,ProcessedVideo:()=>Jq,PrivacySystemMessage:()=>nP,PrimaryEphemeralIdentity:()=>$R,PremiumMessageInfo:()=>Zq,PreKeySignalMessage:()=>eN,PreKeyRecordStructure:()=>sN,PollUpdate:()=>Qq,PollEncValue:()=>Kq,PollAdditionalMetadata_PollNameHashHistoryEntry:()=>$q,PollAdditionalMetadata:()=>e8,Point:()=>s8,PinInChat_Type:()=>Tk,PinInChat:()=>a8,PhotoChange:()=>r8,PhoneNumberToLIDMapping:()=>t8,PaymentInfo_TxnStatus:()=>vk,PaymentInfo_Status:()=>Sk,PaymentInfo_Currency:()=>Ik,PaymentInfo:()=>b0,PaymentBackground_Type:()=>Wk,PaymentBackground_MediaData:()=>g8,PaymentBackground:()=>N$,PatchDebugData_Platform:()=>Mk,PatchDebugData:()=>aN,PastParticipants:()=>m8,PastParticipant_LeaveReason:()=>Ek,PastParticipant:()=>i8,PairingRequest:()=>rN,OrfThreadIdOutput:()=>tN,OrfThreadIdInput:()=>b8,NotificationSettings:()=>o0,NotificationMessageInfo:()=>gN,NoiseCertificate_Details:()=>mN,NoiseCertificate:()=>iN,MutationProps:()=>wP,MsgRowOpaqueData:()=>bN,MsgOpaqueData_PollVotesSnapshot:()=>o8,MsgOpaqueData_PollVoteSnapshot:()=>c8,MsgOpaqueData_PollType:()=>Ak,MsgOpaqueData_PollOption:()=>k$,MsgOpaqueData_PollContentType:()=>Ok,MsgOpaqueData_EventLocation:()=>j8,MsgOpaqueData:()=>c0,Money:()=>r,Message_VideoMessage_VideoSourceType:()=>kk,Message_VideoMessage_Attribution:()=>xk,Message_VideoMessage:()=>t,Message_VideoEndCard:()=>w8,Message_URLMetadata:()=>u8,Message_TemplateMessage_HydratedFourRowTemplate:()=>j0,Message_TemplateMessage_FourRowTemplate:()=>p8,Message_TemplateMessage:()=>P$,Message_TemplateButtonReplyMessage:()=>l8,Message_StickerSyncRMRMessage:()=>h8,Message_StickerPackMessage_StickerPackOrigin:()=>Fk,Message_StickerPackMessage_Sticker:()=>_8,Message_StickerPackMessage:()=>f8,Message_StickerMessage:()=>L$,Message_StatusStickerInteractionMessage_StatusStickerType:()=>Pk,Message_StatusStickerInteractionMessage:()=>y8,Message_StatusQuotedMessage_StatusQuotedMessageType:()=>Lk,Message_StatusQuotedMessage:()=>T8,Message_StatusQuestionAnswerMessage:()=>v8,Message_StatusNotificationMessage_StatusNotificationType:()=>Dk,Message_StatusNotificationMessage:()=>S8,Message_SplitPaymentParticipant_SplitPaymentStatus:()=>Ck,Message_SplitPaymentParticipant:()=>I8,Message_SplitPaymentMessage:()=>W8,Message_SenderKeyDistributionMessage:()=>d0,Message_SendPaymentMessage:()=>M8,Message_SecretEncryptedMessage_SecretEncType:()=>Uk,Message_SecretEncryptedMessage:()=>E8,Message_ScheduledCallEditMessage_EditType:()=>Gk,Message_ScheduledCallEditMessage:()=>A8,Message_ScheduledCallCreationMessage_CallType:()=>Vk,Message_ScheduledCallCreationMessage:()=>O8,Message_RootSecretDistributeMessage:()=>B8,Message_RequestWelcomeMessageMetadata_WelcomeTrigger:()=>zk,Message_RequestWelcomeMessageMetadata_LocalChatState:()=>Hk,Message_RequestWelcomeMessageMetadata:()=>R8,Message_RequestPhoneNumberMessage:()=>N8,Message_RequestPaymentMessage:()=>k8,Message_ReactionMessage:()=>x8,Message_QuestionResponseMessage:()=>F8,Message_ProtocolMessage_Type:()=>Yk,Message_ProtocolMessage:()=>P8,Message_ProductMessage_ProductSnapshot:()=>L8,Message_ProductMessage_CatalogSnapshot:()=>D8,Message_ProductMessage:()=>D$,Message_PollVoteMessage:()=>I0,Message_PollUpdateMessageMetadata:()=>N0,Message_PollUpdateMessage:()=>C8,Message_PollType:()=>Ex,Message_PollResultSnapshotMessage_PollVote:()=>U8,Message_PollResultSnapshotMessage:()=>n0,Message_PollEncValue:()=>G8,Message_PollCreationMessage_Option:()=>G0,Message_PollCreationMessage:()=>e,Message_PollContentType:()=>Ax,Message_PollAddOptionMessage:()=>V8,Message_PlaceholderMessage_PlaceholderType:()=>qk,Message_PlaceholderMessage:()=>z8,Message_PinInChatMessage_Type:()=>Xk,Message_PinInChatMessage:()=>H8,Message_PeerDataOperationRequestType:()=>Ox,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_WaffleNonceFetchResponse:()=>Y8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_SyncDSnapshotFatalRecoveryResponse:()=>q8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_PlaceholderMessageResendResponse:()=>X8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_PaymentLinkPreviewMetadata:()=>J8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_LinkPreviewHighQualityThumbnail:()=>Z8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse:()=>Q8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponseCode:()=>Jk,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponse:()=>K8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandResponseCode:()=>Zk,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandRequestResponse:()=>$8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FlowResponsesCsvBundle:()=>eX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionMetaNonceFetchResponse:()=>sX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionCanonicalUserNonceFetchResponse:()=>aX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactState:()=>rX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactListResponse:()=>tX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult:()=>gX,Message_PeerDataOperationRequestResponseMessage:()=>mX,Message_PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest:()=>iX,Message_PeerDataOperationRequestMessage_RequestUrlPreview:()=>bX,Message_PeerDataOperationRequestMessage_RequestStickerReupload:()=>oX,Message_PeerDataOperationRequestMessage_PlaceholderMessageResendRequest:()=>cX,Message_PeerDataOperationRequestMessage_HistorySyncOnDemandRequest:()=>jX,Message_PeerDataOperationRequestMessage_HistorySyncChunkRetryRequest:()=>dX,Message_PeerDataOperationRequestMessage_GalaxyFlowAction_GalaxyFlowActionType:()=>Qk,Message_PeerDataOperationRequestMessage_GalaxyFlowAction:()=>nX,Message_PeerDataOperationRequestMessage_FullHistorySyncOnDemandRequest:()=>wX,Message_PeerDataOperationRequestMessage_CompanionCanonicalUserNonceFetchRequest:()=>uX,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsRefreshRequest:()=>pX,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsContactListRequest:()=>lX,Message_PeerDataOperationRequestMessage:()=>hX,Message_PaymentReminderMessage_ReminderStatus:()=>Kk,Message_PaymentReminderMessage_ReminderFrequency:()=>$k,Message_PaymentReminderMessage:()=>_X,Message_PaymentLinkMetadata_PaymentLinkProvider:()=>fX,Message_PaymentLinkMetadata_PaymentLinkHeader_PaymentLinkHeaderType:()=>ex,Message_PaymentLinkMetadata_PaymentLinkHeader:()=>yX,Message_PaymentLinkMetadata_PaymentLinkButton:()=>TX,Message_PaymentLinkMetadata:()=>C$,Message_PaymentInviteMessage_ServiceType:()=>sx,Message_PaymentInviteMessage_InviteType:()=>ax,Message_PaymentInviteMessage:()=>vX,Message_PaymentExtendedMetadata:()=>SX,Message_OrderMessage_OrderSurface:()=>rx,Message_OrderMessage_OrderStatus:()=>tx,Message_OrderMessage:()=>IX,Message_NewsletterFollowerInviteMessage:()=>WX,Message_NewsletterAdminInviteMessage:()=>MX,Message_MessageHistoryNotice:()=>EX,Message_MessageHistoryMetadata:()=>U$,Message_MessageHistoryBundle:()=>G$,Message_MMSThumbnailMetadata:()=>AX,Message_LocationMessage:()=>a,Message_LiveLocationMessage:()=>V$,Message_ListResponseMessage_SingleSelectReply:()=>OX,Message_ListResponseMessage_ListType:()=>gx,Message_ListResponseMessage:()=>BX,Message_ListMessage_Section:()=>RX,Message_ListMessage_Row:()=>NX,Message_ListMessage_ProductSection:()=>kX,Message_ListMessage_ProductListInfo:()=>xX,Message_ListMessage_ProductListHeaderImage:()=>FX,Message_ListMessage_Product:()=>PX,Message_ListMessage_ListType:()=>mx,Message_ListMessage:()=>LX,Message_LinkPreviewMetadata_SocialMediaPostType:()=>ix,Message_LinkPreviewMetadata:()=>DX,Message_KeepInChatMessage:()=>CX,Message_InvoiceMessage_AttachmentType:()=>bx,Message_InvoiceMessage:()=>UX,Message_InteractiveResponseMessage_NativeFlowResponseMessage:()=>GX,Message_InteractiveResponseMessage_Body_Format:()=>ox,Message_InteractiveResponseMessage_Body:()=>VX,Message_InteractiveResponseMessage:()=>zX,Message_InteractiveMessage_ShopMessage_Surface:()=>cx,Message_InteractiveMessage_ShopMessage:()=>HX,Message_InteractiveMessage_NativeFlowMessage_NativeFlowButton:()=>YX,Message_InteractiveMessage_NativeFlowMessage:()=>qX,Message_InteractiveMessage_Header:()=>XX,Message_InteractiveMessage_Footer:()=>JX,Message_InteractiveMessage_CollectionMessage:()=>ZX,Message_InteractiveMessage_CarouselMessage_CarouselCardType:()=>jx,Message_InteractiveMessage_CarouselMessage:()=>QX,Message_InteractiveMessage_Body:()=>KX,Message_InteractiveMessage_BloksWidget:()=>z$,Message_InteractiveMessage:()=>k0,Message_InsightDeliveryState:()=>Bx,Message_InitialSecurityNotificationSettingSync:()=>$X,Message_ImageMessage_ImageSourceType:()=>dx,Message_ImageMessage:()=>i,Message_HistorySyncType:()=>Rx,Message_HistorySyncNotification:()=>eJ,Message_HistorySyncMessageAccessStatus:()=>sJ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeUnixEpoch:()=>aJ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_DayOfWeekType:()=>nx,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_CalendarType:()=>wx,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent:()=>rJ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime:()=>tJ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMCurrency:()=>gJ,Message_HighlyStructuredMessage_HSMLocalizableParameter:()=>mJ,Message_HighlyStructuredMessage:()=>c,Message_GroupInviteMessage_GroupType:()=>ux,Message_GroupInviteMessage:()=>iJ,Message_FutureProofMessage:()=>W,Message_FullHistorySyncOnDemandRequestMetadata:()=>x0,Message_FullHistorySyncOnDemandConfig:()=>bJ,Message_ExtendedTextMessage_PreviewType:()=>px,Message_ExtendedTextMessage_InviteLinkGroupType:()=>lx,Message_ExtendedTextMessage_FontType:()=>hx,Message_ExtendedTextMessage:()=>oJ,Message_EventResponseMessage_EventResponseType:()=>_x,Message_EventResponseMessage:()=>W0,Message_EventMessage:()=>cJ,Message_EventInviteMessage:()=>jJ,Message_EncReactionMessage:()=>dJ,Message_EncEventResponseMessage:()=>nJ,Message_EncCommentMessage:()=>wJ,Message_DocumentMessage:()=>$0,Message_DeviceSentMessage:()=>uJ,Message_DeclinePaymentRequestMessage:()=>pJ,Message_ContactsArrayMessage:()=>lJ,Message_ContactMessage:()=>H$,Message_ConditionalRevealMessage_ConditionalRevealMessageType:()=>fx,Message_ConditionalRevealMessage:()=>hJ,Message_CommentMessage:()=>_J,Message_CloudAPIThreadControlNotification_CloudAPIThreadControlNotificationContent:()=>fJ,Message_CloudAPIThreadControlNotification_CloudAPIThreadControl:()=>yx,Message_CloudAPIThreadControlNotification:()=>yJ,Message_ChatThemeSetting:()=>TJ,Message_ChatStockImageWallpaper:()=>vJ,Message_ChatSolidColorWallpaper:()=>SJ,Message_ChatDefaultWallpaper:()=>IJ,Message_ChatCustomImageWallpaper:()=>WJ,Message_Chat:()=>MJ,Message_CancelPaymentRequestMessage:()=>EJ,Message_CallLogMessage_CallType:()=>Tx,Message_CallLogMessage_CallParticipant:()=>AJ,Message_CallLogMessage_CallOutcome:()=>vx,Message_CallLogMessage:()=>OJ,Message_Call:()=>BJ,Message_ButtonsResponseMessage_Type:()=>Sx,Message_ButtonsResponseMessage:()=>RJ,Message_ButtonsMessage_HeaderType:()=>Wx,Message_ButtonsMessage_Button_Type:()=>Ix,Message_ButtonsMessage_Button_NativeFlowInfo:()=>NJ,Message_ButtonsMessage_Button_ButtonText:()=>kJ,Message_ButtonsMessage_Button:()=>xJ,Message_ButtonsMessage:()=>FJ,Message_BCallMessage_MediaType:()=>Mx,Message_BCallMessage:()=>PJ,Message_AudioMessage:()=>Y$,Message_AppStateSyncKeyShare:()=>LJ,Message_AppStateSyncKeyRequest:()=>DJ,Message_AppStateSyncKeyId:()=>q$,Message_AppStateSyncKeyFingerprint:()=>CJ,Message_AppStateSyncKeyData:()=>UJ,Message_AppStateSyncKey:()=>GJ,Message_AppStateFatalExceptionNotification:()=>VJ,Message_AlbumMessage:()=>zJ,MessageText:()=>m,MessageSecretMessage:()=>oN,MessageKey:()=>x,MessageContextInfo_MessageAddonExpiryType:()=>Bk,MessageContextInfo:()=>x$,MessageAssociation_AssociationType:()=>Rk,MessageAssociation:()=>d8,MessageAddOn_MessageAddOnType:()=>Nk,MessageAddOnContextInfo:()=>F$,MessageAddOn:()=>n8,Message:()=>w,Mention:()=>HJ,MemberLabel:()=>F0,MediaVisibility:()=>uP,MediaRetryNotification_ResultType:()=>Nx,MediaRetryNotification:()=>mY,MediaNotifyMessage:()=>YJ,MediaKeyDomain:()=>pP,MediaEntry_ProgressiveJpegDetails:()=>qJ,MediaEntry_DownloadableThumbnail:()=>XJ,MediaEntry:()=>cN,MediaDomainInfo:()=>JJ,MediaData:()=>w0,Location:()=>ZJ,LocalizedName:()=>QJ,LimitSharing_TriggerType:()=>kx,LimitSharing:()=>V0,LegacyMessage:()=>KJ,LabyrinthWaCommand:()=>jN,LIDMigrationMappingSyncPayload:()=>iY,LIDMigrationMappingSyncMessage:()=>eZ,LIDMigrationMapping:()=>$J,KeyId:()=>P0,KeyExchangeMessage:()=>dN,KeepType:()=>hP,KeepInChat:()=>sZ,InteractiveMessageAdditionalMetadata:()=>aZ,InteractiveAnnotation_StatusLinkType:()=>xx,InteractiveAnnotation:()=>Q0,InlineContact:()=>rZ,InThreadSurveyMetadata_InThreadSurveyQuestion:()=>tZ,InThreadSurveyMetadata_InThreadSurveyPrivacyStatementPart:()=>gZ,InThreadSurveyMetadata_InThreadSurveyOption:()=>mZ,InThreadSurveyMetadata:()=>iZ,IdentityKeyPairStructure:()=>nN,HydratedTemplateButton_HydratedURLButton_WebviewPresentationType:()=>Fx,HydratedTemplateButton_HydratedURLButton:()=>bZ,HydratedTemplateButton_HydratedQuickReplyButton:()=>oZ,HydratedTemplateButton_HydratedCallButton:()=>cZ,HydratedTemplateButton:()=>jZ,HistorySync_HistorySyncType:()=>Px,HistorySync_BotAIWaitListState:()=>Lx,HistorySyncMsg:()=>dZ,HistorySync:()=>bY,HatchMetadataSync:()=>nZ,HandshakeMessage_ServerHello:()=>wZ,HandshakeMessage_HandshakePqMode:()=>Dx,HandshakeMessage_ClientHello:()=>uZ,HandshakeMessage_ClientFinish:()=>pZ,HandshakeMessage:()=>oY,GroupRootKeyShareEntry:()=>lZ,GroupRootKeyShare:()=>hZ,GroupParticipant_Rank:()=>Cx,GroupParticipant:()=>_Z,GroupMention:()=>fZ,GroupHistoryWithMessageBytes:()=>wN,GroupHistoryIndividualMessageInfo:()=>yZ,GroupHistoryBundleInfo_ProcessState:()=>Ux,GroupHistoryBundleInfo:()=>TZ,GroupHistory:()=>uN,GlobalSettings:()=>vZ,ForwardedAIBotMessageInfo:()=>SZ,FingerprintData_HostedState:()=>Gx,FingerprintData:()=>u0,Field_SubfieldEntry:()=>_Y,Field:()=>M0,ExternalBlobReference:()=>W$,ExitCode:()=>M$,EventResponse:()=>IZ,EventAdditionalMetadata:()=>WZ,Epoch0Output:()=>MZ,EphemeralSetting:()=>pN,EncryptedSecretValuesOutput:()=>EZ,EncryptedPairingRequest:()=>lN,EncryptMessageOutput:()=>hN,EncryptMessageInput:()=>AZ,EmbeddedMusic:()=>L0,EmbeddedMessage:()=>OZ,EmbeddedContent:()=>BZ,DisappearingMode_Trigger:()=>Vx,DisappearingMode_Initiator:()=>zx,DisappearingMode:()=>D0,DeviceProps_PlatformType:()=>Hx,DeviceProps_HistorySyncConfig:()=>X$,DeviceProps_AppVersion:()=>RZ,DeviceProps:()=>cY,DeviceOutput:()=>NZ,DeviceListMetadata:()=>kZ,DeviceConsistencyCodeMessage:()=>_N,DeviceCapabilities_UserHasAvatar:()=>xZ,DeviceCapabilities_MemberNameTagPrimarySupport:()=>qx,DeviceCapabilities_LIDMigration:()=>FZ,DeviceCapabilities_ChatLockSupportLevel:()=>Xx,DeviceCapabilities_BusinessBroadcast:()=>PZ,DeviceCapabilities_AiThread_SupportLevel:()=>Yx,DeviceCapabilities_AiThread:()=>LZ,DeviceCapabilities:()=>DZ,DecryptMessageOutput:()=>fN,DecryptMessageInput:()=>CZ,CreateBackupOutput:()=>yN,CreateBackupInput:()=>UZ,Conversation_GroupAppealStatus:()=>Jx,Conversation_EndOfHistoryTransferType:()=>Zx,Conversation:()=>GZ,ContextInfo_UTMInfo:()=>VZ,ContextInfo_StatusSourceType:()=>gF,ContextInfo_StatusAudienceMetadata_AudienceType:()=>Qx,ContextInfo_StatusAudienceMetadata:()=>zZ,ContextInfo_StatusAttributionType:()=>mF,ContextInfo_QuotedType:()=>iF,ContextInfo_QuestionReplyQuotedMessage:()=>HZ,ContextInfo_PartiallySelectedContent:()=>YZ,ContextInfo_PairedMediaType:()=>bF,ContextInfo_ForwardedNewsletterMessageInfo_ContentType:()=>Kx,ContextInfo_ForwardedNewsletterMessageInfo:()=>J$,ContextInfo_ForwardOrigin:()=>oF,ContextInfo_FeatureEligibilities:()=>qZ,ContextInfo_ExternalAdReplyInfo_MediaType:()=>$x,ContextInfo_ExternalAdReplyInfo_AdType:()=>eF,ContextInfo_ExternalAdReplyInfo:()=>XZ,ContextInfo_DataSharingContext_Parameters:()=>g0,ContextInfo_DataSharingContext_DataSharingFlags:()=>sF,ContextInfo_DataSharingContext:()=>JZ,ContextInfo_CrossAppSource:()=>cF,ContextInfo_BusinessMessageForwardInfo:()=>ZZ,ContextInfo_BusinessInteractionPills_SignedPayload:()=>TN,ContextInfo_BusinessInteractionPills_PillType:()=>aF,ContextInfo_BusinessInteractionPills_Pill:()=>Z$,ContextInfo_BusinessInteractionPills_EntryPoint:()=>rF,ContextInfo_BusinessInteractionPills:()=>QZ,ContextInfo_AdReplyInfo_MediaType:()=>tF,ContextInfo_AdReplyInfo:()=>KZ,ContextInfo:()=>A,ConsumerApplication_consumerApplicationExtendedTextMessagePreviewType:()=>jF,ConsumerApplication_ViewOnceMessage:()=>$Z,ConsumerApplication_VideoMessage:()=>Q$,ConsumerApplication_SubProtocolPayload:()=>eQ,ConsumerApplication_StickerMessage:()=>sQ,ConsumerApplication_StatusTextMesage:()=>aQ,ConsumerApplication_Signal:()=>rQ,ConsumerApplication_RevokeMessage:()=>tQ,ConsumerApplication_ReactionMessage:()=>gQ,ConsumerApplication_PollVoteMessage:()=>vN,ConsumerApplication_PollUpdateMessage:()=>mQ,ConsumerApplication_PollEncValue:()=>p0,ConsumerApplication_PollCreationMessage:()=>iQ,ConsumerApplication_PollAddOptionMessage:()=>SN,ConsumerApplication_Point:()=>bQ,ConsumerApplication_Payload:()=>oQ,ConsumerApplication_Option:()=>K$,ConsumerApplication_Metadata:()=>cQ,ConsumerApplication_MediaPayload:()=>IN,ConsumerApplication_LocationMessage:()=>jQ,ConsumerApplication_Location:()=>C0,ConsumerApplication_LiveLocationMessage:()=>dQ,ConsumerApplication_InteractiveAnnotation:()=>WN,ConsumerApplication_ImageMessage:()=>$$,ConsumerApplication_GroupInviteMessage:()=>nQ,ConsumerApplication_ExtendedTextMessage:()=>e0,ConsumerApplication_EditMessage:()=>wQ,ConsumerApplication_DocumentMessage:()=>uQ,ConsumerApplication_Content:()=>pQ,ConsumerApplication_ContactsArrayMessage:()=>lQ,ConsumerApplication_ContactMessage:()=>s0,ConsumerApplication_AudioMessage:()=>hQ,ConsumerApplication_ApplicationData:()=>_Q,ConsumerApplication:()=>MN,Config_FieldEntry:()=>fY,Config:()=>EN,CompanionEphemeralIdentity:()=>AN,CompanionCommitment:()=>fQ,CommentMetadata:()=>yQ,Command:()=>TQ,CombinedFingerprint:()=>ON,CollectionName:()=>fP,ClientPayload_WebInfo_WebdPayload:()=>vQ,ClientPayload_WebInfo_WebSubPlatform:()=>dF,ClientPayload_WebInfo:()=>SQ,ClientPayload_UserAgent_ReleaseChannel:()=>nF,ClientPayload_UserAgent_Platform:()=>wF,ClientPayload_UserAgent_DistributionChannel:()=>uF,ClientPayload_UserAgent_DeviceType:()=>pF,ClientPayload_UserAgent_AppVersion:()=>IQ,ClientPayload_UserAgent:()=>WQ,ClientPayload_TrafficAnonymization:()=>hF,ClientPayload_Product:()=>_F,ClientPayload_InteropData:()=>MQ,ClientPayload_IOSAppExtension:()=>fF,ClientPayload_DevicePairingRegistrationData:()=>EQ,ClientPayload_DNSSource_DNSResolutionMethod:()=>lF,ClientPayload_DNSSource:()=>AQ,ClientPayload_ConnectType:()=>yF,ClientPayload_ConnectReason:()=>TF,ClientPayload_AccountType:()=>vF,ClientPayload:()=>jY,ClientPairingProps:()=>BN,Citation:()=>OQ,ChatRowOpaqueData_DraftMessage_CtwaContextLinkData:()=>BQ,ChatRowOpaqueData_DraftMessage_CtwaContextData_ContextInfoExternalAdReplyInfoMediaType:()=>SF,ChatRowOpaqueData_DraftMessage_CtwaContextData:()=>RQ,ChatRowOpaqueData_DraftMessage:()=>NQ,ChatRowOpaqueData:()=>RN,ChatLockSettings:()=>a0,CertChain_NoiseCertificate_Details:()=>dY,CertChain_NoiseCertificate:()=>E0,CertChain:()=>nY,CallLogRecord_SilenceReason:()=>IF,CallLogRecord_ParticipantInfo:()=>kQ,CallLogRecord_CallType:()=>WF,CallLogRecord_CallResult:()=>MF,CallLogRecord:()=>r0,BotUnifiedResponseMutation_SideBySideMetadata:()=>xQ,BotUnifiedResponseMutation_MediaDetailsMetadata:()=>FQ,BotUnifiedResponseMutation:()=>PQ,BotSuggestedPromptMetadata:()=>LQ,BotSourcesMetadata_BotSourceItem_SourceProvider:()=>EF,BotSourcesMetadata_BotSourceItem:()=>DQ,BotSourcesMetadata:()=>CQ,BotSignatureVerificationUseCaseProof_BotSignatureUseCase:()=>AF,BotSignatureVerificationUseCaseProof:()=>UQ,BotSignatureVerificationMetadata:()=>t0,BotSessionSource:()=>SP,BotSessionMetadata:()=>GQ,BotResolvedToolCallMetadata:()=>VQ,BotRenderingMetadata_Keyword:()=>zQ,BotRenderingMetadata:()=>HQ,BotRenderingConfigMetadata:()=>YQ,BotReminderMetadata_ReminderFrequency:()=>OF,BotReminderMetadata_ReminderAction:()=>BF,BotReminderMetadata:()=>qQ,BotQuotaMetadata_BotFeatureQuotaMetadata_BotFeatureType:()=>RF,BotQuotaMetadata_BotFeatureQuotaMetadata:()=>XQ,BotQuotaMetadata:()=>JQ,BotPttPromptMetadata:()=>ZQ,BotPromptSuggestions:()=>QQ,BotPromptSuggestion:()=>KQ,BotPromotionMessageMetadata_BotPromotionType:()=>NF,BotPromotionMessageMetadata:()=>$Q,BotProgressIndicatorMetadata_BotPlanningStepMetadata_PlanningStepStatus:()=>xF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotSearchSourceProvider:()=>FF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningStepSectionMetadata:()=>eK,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata_BotPlanningSearchSourceProvider:()=>kF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata:()=>sK,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourceMetadata:()=>aK,BotProgressIndicatorMetadata_BotPlanningStepMetadata:()=>rK,BotProgressIndicatorMetadata:()=>tK,BotPluginMetadata_SearchProvider:()=>PF,BotPluginMetadata_PluginType:()=>LF,BotPluginMetadata:()=>gK,BotModelMetadata_PremiumModelStatus:()=>DF,BotModelMetadata_ModelType:()=>CF,BotModelMetadata:()=>mK,BotModeSelectionMetadata_BotUserSelectionMode:()=>UF,BotModeSelectionMetadata:()=>iK,BotMetricsThreadEntryPoint:()=>IP,BotMetricsMetadata:()=>bK,BotMetricsEntryPoint:()=>WP,BotMetadata:()=>oK,BotMessageSharingInfo:()=>cK,BotMessageOrigin_BotMessageOriginType:()=>GF,BotMessageOriginMetadata:()=>jK,BotMessageOrigin:()=>dK,BotMemuMetadata:()=>nK,BotMemoryMetadata:()=>wK,BotMemoryFact:()=>l0,BotMediaMetadata_OrientationType:()=>VF,BotMediaMetadata:()=>z0,BotLinkedAccountsMetadata:()=>uK,BotLinkedAccount_BotLinkedAccountType:()=>zF,BotLinkedAccount:()=>pK,BotInfrastructureDiagnostics_BotBackend:()=>HF,BotInfrastructureDiagnostics:()=>lK,BotImagineMetadata_ImagineType:()=>YF,BotImagineMetadata:()=>hK,BotGroupParticipantMetadata:()=>_K,BotGroupMetadata:()=>fK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyResponseEventData:()=>yK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCardImpressionEventData:()=>TK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAImpressionEventData:()=>vK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAClickEventData:()=>SK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyAbandonEventData:()=>IK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData:()=>WK,BotFeedbackMessage_SideBySideSurveyMetadata_SideBySideSurveyAnalyticsData:()=>MK,BotFeedbackMessage_SideBySideSurveyMetadata:()=>EK,BotFeedbackMessage_ReportKind:()=>qF,BotFeedbackMessage_BotFeedbackKindMultiplePositive:()=>XF,BotFeedbackMessage_BotFeedbackKindMultipleNegative:()=>JF,BotFeedbackMessage_BotFeedbackKind:()=>ZF,BotFeedbackMessage:()=>AK,BotDocumentMessageMetadata_DocumentPluginType:()=>QF,BotDocumentMessageMetadata:()=>OK,BotCommandMetadata:()=>BK,BotCapabilityMetadata_BotCapabilityType:()=>KF,BotCapabilityMetadata:()=>RK,BotAgentMetadata:()=>NK,BotAgentDeepLinkMetadata:()=>kK,BotAgeCollectionMetadata_AgeCollectionType:()=>$F,BotAgeCollectionMetadata:()=>xK,BizIdentityInfo_VerifiedLevelValue:()=>eP,BizIdentityInfo_HostStorageType:()=>sP,BizIdentityInfo_ActualActorsType:()=>aP,BizIdentityInfo:()=>NN,BizAccountPayload:()=>kN,BizAccountLinkInfo_HostStorageType:()=>rP,BizAccountLinkInfo_AccountType:()=>tP,BizAccountLinkInfo:()=>xN,AvatarUserSettings:()=>FK,AutoDownloadSettings:()=>Y0,ActionLink:()=>PK,AccountLinkingOpaqueData:()=>FN,Account:()=>LK,AIThreadInfo_AIThreadServerInfo:()=>DK,AIThreadInfo_AIThreadClientInfo_AIThreadType:()=>gP,AIThreadInfo_AIThreadClientInfo:()=>CK,AIThreadInfo:()=>UK,AISubscriptionUpsellMetadata:()=>GK,AISubscriptionRequestType:()=>MP,AIRichResponseUnifiedResponse:()=>VK,AIRichResponseTableMetadata_AIRichResponseTableRow:()=>zK,AIRichResponseTableMetadata:()=>HK,AIRichResponseSubMessageType:()=>EP,AIRichResponseSubMessage:()=>YK,AIRichResponseMessageType:()=>AP,AIRichResponseMessage:()=>qK,AIRichResponseMapMetadata_AIRichResponseMapAnnotation:()=>XK,AIRichResponseMapMetadata:()=>JK,AIRichResponseLatexMetadata_AIRichResponseLatexExpression:()=>ZK,AIRichResponseLatexMetadata:()=>QK,AIRichResponseInlineImageMetadata_AIRichResponseImageAlignment:()=>mP,AIRichResponseInlineImageMetadata:()=>KK,AIRichResponseImageURL:()=>H0,AIRichResponseGridImageMetadata:()=>$K,AIRichResponseDynamicMetadata_AIRichResponseDynamicMetadataType:()=>iP,AIRichResponseDynamicMetadata:()=>e$,AIRichResponseContentItemsMetadata_ContentType:()=>bP,AIRichResponseContentItemsMetadata_AIRichResponseReelItem:()=>s$,AIRichResponseContentItemsMetadata_AIRichResponseContentItemMetadata:()=>a$,AIRichResponseContentItemsMetadata:()=>r$,AIRichResponseCodeMetadata_AIRichResponseCodeHighlightType:()=>oP,AIRichResponseCodeMetadata_AIRichResponseCodeBlock:()=>t$,AIRichResponseCodeMetadata:()=>g$,AIRegenerateMetadata:()=>m$,AIQueryFanout:()=>i$,AIMetadataOperation:()=>b$,AIMediaCollectionMetadata:()=>o$,AIMediaCollectionMessage:()=>c$,AIHomeState_AIHomeOption_AIHomeActionType:()=>cP,AIHomeState_AIHomeOption:()=>h0,AIHomeState:()=>PN,ADVSignedKeyIndexList:()=>wY,ADVSignedDeviceIdentityHMAC:()=>uY,ADVSignedDeviceIdentity:()=>pY,ADVKeyIndexList:()=>LN,ADVEncryptionType:()=>OP,ADVDeviceIdentity:()=>lY});function T6(){let $=0,K=0;for(let X=0;X<28;X+=7){let J=this.buf[this.pos++];if($|=(J&127)<<X,(J&128)==0)return this.assertBounds(),[$,K]}let Q=this.buf[this.pos++];if($|=(Q&15)<<28,K=(Q&112)>>4,(Q&128)==0)return this.assertBounds(),[$,K];for(let X=3;X<=31;X+=7){let J=this.buf[this.pos++];if(K|=(J&127)<<X,(J&128)==0)return this.assertBounds(),[$,K]}throw Error("invalid varint")}function vY($,K,Q){for(let Z=0;Z<28;Z=Z+7){let Y=$>>>Z,G=!(Y>>>7==0&&K==0),L=(G?Y|128:Y)&255;if(Q.push(L),!G)return}let X=$>>>28&15|(K&7)<<4,J=K>>3!=0;if(Q.push((J?X|128:X)&255),!J)return;for(let Z=3;Z<31;Z=Z+7){let Y=K>>>Z,G=Y>>>7!=0,L=(G?Y|128:Y)&255;if(Q.push(L),!G)return}Q.push(K>>>31&1)}var SY=4294967296;function Y6($){let K=$[0]==="-";if(K)$=$.slice(1);let Q=1e6,X=0,J=0;function Z(Y,G){let L=Number($.slice(Y,G));if(J*=Q,X=X*Q+L,X>=SY)J=J+(X/SY|0),X=X%SY}return Z(-24,-18),Z(-18,-12),Z(-12,-6),Z(-6),K?f6(X,J):z6(X,J)}function y6($,K){let Q=z6($,K),X=Q.hi&2147483648;if(X)Q=f6(Q.lo,Q.hi);let J=H6(Q.lo,Q.hi);return X?"-"+J:J}function H6($,K){if({lo:$,hi:K}=UB($,K),K<=2097151)return String(SY*K+$);let Q=$&16777215,X=($>>>24|K<<8)&16777215,J=K>>16&65535,Z=Q+X*6777216+J*6710656,Y=X+J*8147497,G=J*2,L=1e7;if(Z>=L)Y+=Math.floor(Z/L),Z%=L;if(Y>=L)G+=Math.floor(Y/L),Y%=L;return G.toString()+v6(Y)+v6(Z)}function UB($,K){return{lo:$>>>0,hi:K>>>0}}function z6($,K){return{lo:$|0,hi:K|0}}function f6($,K){if(K=~K,$)$=~$+1;else K+=1;return z6($,K)}var v6=($)=>{let K=String($);return"0000000".slice(K.length)+K};function V6($,K){if($>=0){while($>127)K.push($&127|128),$=$>>>7;K.push($)}else{for(let Q=0;Q<9;Q++)K.push($&127|128),$=$>>7;K.push(1)}}function _6(){let $=this.buf[this.pos++],K=$&127;if(($&128)==0)return this.assertBounds(),K;if($=this.buf[this.pos++],K|=($&127)<<7,($&128)==0)return this.assertBounds(),K;if($=this.buf[this.pos++],K|=($&127)<<14,($&128)==0)return this.assertBounds(),K;if($=this.buf[this.pos++],K|=($&127)<<21,($&128)==0)return this.assertBounds(),K;$=this.buf[this.pos++],K|=($&15)<<28;for(let Q=5;($&128)!==0&&Q<10;Q++)$=this.buf[this.pos++];if(($&128)!=0)throw Error("invalid varint");return this.assertBounds(),K>>>0}var q0=CB();function CB(){let $=new DataView(new ArrayBuffer(8));if(typeof BigInt==="function"&&typeof $.getBigInt64==="function"&&typeof $.getBigUint64==="function"&&typeof $.setBigInt64==="function"&&typeof $.setBigUint64==="function"&&(!!globalThis.Deno||typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){let Q=BigInt("-9223372036854775808"),X=BigInt("9223372036854775807"),J=BigInt("0"),Z=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(Y){let G=typeof Y=="bigint"?Y:BigInt(Y);if(G>X||G<Q)throw Error(`invalid int64: ${Y}`);return G},uParse(Y){let G=typeof Y=="bigint"?Y:BigInt(Y);if(G>Z||G<J)throw Error(`invalid uint64: ${Y}`);return G},enc(Y){return $.setBigInt64(0,this.parse(Y),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},uEnc(Y){return $.setBigInt64(0,this.uParse(Y),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},dec(Y,G){return $.setInt32(0,Y,!0),$.setInt32(4,G,!0),$.getBigInt64(0,!0)},uDec(Y,G){return $.setInt32(0,Y,!0),$.setInt32(4,G,!0),$.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(Q){if(typeof Q!="string")Q=Q.toString();return h6(Q),Q},uParse(Q){if(typeof Q!="string")Q=Q.toString();return l6(Q),Q},enc(Q){if(typeof Q!="string")Q=Q.toString();return h6(Q),Y6(Q)},uEnc(Q){if(typeof Q!="string")Q=Q.toString();return l6(Q),Y6(Q)},dec(Q,X){return y6(Q,X)},uDec(Q,X){return H6(Q,X)}}}function h6($){if(!/^-?[0-9]+$/.test($))throw Error("invalid int64: "+$)}function l6($){if(!/^[0-9]+$/.test($))throw Error("invalid uint64: "+$)}var G6=Symbol.for("@bufbuild/protobuf/text-encoding");function U6(){if(globalThis[G6]==null){let $=new globalThis.TextEncoder,K=new globalThis.TextDecoder,Q;globalThis[G6]={encodeUtf8(X){return $.encode(X)},decodeUtf8(X,J){if(J){if(Q===void 0)Q=new globalThis.TextDecoder("utf-8",{fatal:!0});return Q.decode(X)}return K.decode(X)},checkUtf8(X){try{return encodeURIComponent(X),!0}catch(J){return!1}}}}return globalThis[G6]}var _0;(function($){$[$.Varint=0]="Varint",$[$.Bit64=1]="Bit64",$[$.LengthDelimited=2]="LengthDelimited",$[$.StartGroup=3]="StartGroup",$[$.EndGroup=4]="EndGroup",$[$.Bit32=5]="Bit32"})(_0||(_0={}));var DB=340282346638528860000000000000000000000,LB=-340282346638528860000000000000000000000,PB=4294967295,FB=2147483647,xB=-2147483648;class H{constructor($=U6().encodeUtf8){this.encodeUtf8=$,this.stack=[],this.chunks=[],this.buf=[]}finish(){if(this.buf.length)this.chunks.push(new Uint8Array(this.buf)),this.buf=[];let $=0;for(let X=0;X<this.chunks.length;X++)$+=this.chunks[X].length;let K=new Uint8Array($),Q=0;for(let X=0;X<this.chunks.length;X++)K.set(this.chunks[X],Q),Q+=this.chunks[X].length;return this.chunks=[],K}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let $=this.finish(),K=this.stack.pop();if(!K)throw Error("invalid state, fork stack empty");return this.chunks=K.chunks,this.buf=K.buf,this.uint32($.byteLength),this.raw($)}tag($,K){return this.uint32(($<<3|K)>>>0)}raw($){if(this.buf.length)this.chunks.push(new Uint8Array(this.buf)),this.buf=[];return this.chunks.push($),this}uint32($){p6($);while($>127)this.buf.push($&127|128),$=$>>>7;return this.buf.push($),this}int32($){return C6($),V6($,this.buf),this}bool($){return this.buf.push($?1:0),this}bytes($){return this.uint32($.byteLength),this.raw($)}string($){let K=this.encodeUtf8($);return this.uint32(K.byteLength),this.raw(K)}float($){kB($);let K=new Uint8Array(4);return new DataView(K.buffer).setFloat32(0,$,!0),this.raw(K)}double($){let K=new Uint8Array(8);return new DataView(K.buffer).setFloat64(0,$,!0),this.raw(K)}fixed32($){p6($);let K=new Uint8Array(4);return new DataView(K.buffer).setUint32(0,$,!0),this.raw(K)}sfixed32($){C6($);let K=new Uint8Array(4);return new DataView(K.buffer).setInt32(0,$,!0),this.raw(K)}sint32($){return C6($),$=($<<1^$>>31)>>>0,V6($,this.buf),this}sfixed64($){let K=new Uint8Array(8),Q=new DataView(K.buffer),X=q0.enc($);return Q.setInt32(0,X.lo,!0),Q.setInt32(4,X.hi,!0),this.raw(K)}fixed64($){let K=new Uint8Array(8),Q=new DataView(K.buffer),X=q0.uEnc($);return Q.setInt32(0,X.lo,!0),Q.setInt32(4,X.hi,!0),this.raw(K)}int64($){let K=q0.enc($);return vY(K.lo,K.hi,this.buf),this}sint64($){let K=q0.enc($),Q=K.hi>>31,X=K.lo<<1^Q,J=(K.hi<<1|K.lo>>>31)^Q;return vY(X,J,this.buf),this}uint64($){let K=q0.uEnc($);return vY(K.lo,K.hi,this.buf),this}}class D6{constructor($,K=U6().decodeUtf8){this.decodeUtf8=K,this.varint64=T6,this.uint32=_6,this.buf=$,this.len=$.length,this.pos=0,this.view=new DataView($.buffer,$.byteOffset,$.byteLength)}tag(){let $=this.pos,K=this.uint32(),Q=this.pos-$;if(Q>5||Q==5&&this.buf[this.pos-1]>15)throw Error("illegal tag: varint overflows uint32");let X=K>>>3,J=K&7;if(X<=0||J>5)throw Error("illegal tag: field no "+X+" wire type "+J);return[X,J]}skip($,K){let Q=this.pos;switch($){case _0.Varint:while(this.buf[this.pos++]&128);break;case _0.Bit64:this.pos+=4;case _0.Bit32:this.pos+=4;break;case _0.LengthDelimited:let X=this.uint32();this.pos+=X;break;case _0.StartGroup:for(;;){let[J,Z]=this.tag();if(Z===_0.EndGroup){if(K!==void 0&&J!==K)throw Error("invalid end group tag");break}this.skip(Z,J)}break;default:throw Error("cant skip wire type "+$)}return this.assertBounds(),this.buf.subarray(Q,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let $=this.uint32();return $>>>1^-($&1)}int64(){return q0.dec(...this.varint64())}uint64(){return q0.uDec(...this.varint64())}sint64(){let[$,K]=this.varint64(),Q=-($&1);return $=($>>>1|(K&1)<<31)^Q,K=K>>>1^Q,q0.dec($,K)}bool(){let[$,K]=this.varint64();return $!==0||K!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return q0.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return q0.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let $=this.uint32(),K=this.pos;return this.pos+=$,this.assertBounds(),this.buf.subarray(K,K+$)}string($){return this.decodeUtf8(this.bytes(),$)}}function C6($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid int32: "+typeof $);if(!Number.isInteger($)||$>FB||$<xB)throw Error("invalid int32: "+$)}function p6($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid uint32: "+typeof $);if(!Number.isInteger($)||$>PB||$<0)throw Error("invalid uint32: "+$)}function kB($){if(typeof $=="string"){let K=$;if($=Number($),Number.isNaN($)&&K!=="NaN")throw Error("invalid float32: "+K)}else if(typeof $!="number")throw Error("invalid float32: "+typeof $);if(Number.isFinite($)&&($>DB||$<LB))throw Error("invalid float32: "+$)}import{Buffer as NB}from"node:buffer";var w6=32,n6=2**w6,yY=7,TY=1<<yY,RB=TY-1,BB="utf8",OB=Math.floor(Math.log2(Number.MAX_SAFE_INTEGER)/yY)*yY,P6=($)=>{if($>Number.MAX_SAFE_INTEGER)throw Error("Value is larger than Number.MAX_SAFE_INTEGER");if($<Number.MIN_SAFE_INTEGER)throw Error("Value is smaller than Number.MIN_SAFE_INTEGER");return $},u6=($,K)=>P6((K>>>0)*n6+($>>>0)),L6=($,K)=>P6((K|0)*n6+($>>>0));class q extends D6{utf8Buffer;constructor($){super($);this.utf8Buffer=NB.from($.buffer,$.byteOffset,$.byteLength)}string($){if($)return super.string(!0);let K=this.uint32(),Q=this.pos;return this.pos+=K,this.assertBounds(),this.utf8Buffer.toString(BB,Q,this.pos)}bool(){let $=this.buf[this.pos++];if(($&TY)===0)return this.assertBounds(),$!==0;this.pos--;let[K,Q]=this.varint64();return K!==0||Q!==0}positiveSafeVarint(){let $=this.pos,K=0,Q=1;for(let X=0;X<=OB;X+=yY){let J=this.buf[this.pos++];if(K+=(J&RB)*Q,(J&TY)===0)return this.assertBounds(),P6(K);Q*=TY}this.pos=$;return}uint64Number(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[K,Q]=this.varint64();return u6(K,Q)}int64Number(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[K,Q]=this.varint64();return L6(K,Q)}sint64Number(){let[$,K]=this.varint64(),Q=-($&1);return $=($>>>1|(K&1)<<w6-1)^Q,K=K>>>1^Q,L6($,K)}fixed64Number(){return u6(this.sfixed32(),this.sfixed32())}sfixed64Number(){return L6(this.sfixed32(),this.sfixed32())}}var AB="whatsapp",OP;((J)=>{J[J.E2EE=0]="E2EE";J[J.HOSTED=1]="HOSTED";J[J.NON_E2EE=2]="NON_E2EE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OP||={});var AP;((X)=>{X[X.AI_RICH_RESPONSE_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_TYPE_UNKNOWN";X[X.AI_RICH_RESPONSE_TYPE_STANDARD=1]="AI_RICH_RESPONSE_TYPE_STANDARD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AP||={});var EP;((y)=>{y[y.AI_RICH_RESPONSE_UNKNOWN=0]="AI_RICH_RESPONSE_UNKNOWN";y[y.AI_RICH_RESPONSE_GRID_IMAGE=1]="AI_RICH_RESPONSE_GRID_IMAGE";y[y.AI_RICH_RESPONSE_TEXT=2]="AI_RICH_RESPONSE_TEXT";y[y.AI_RICH_RESPONSE_INLINE_IMAGE=3]="AI_RICH_RESPONSE_INLINE_IMAGE";y[y.AI_RICH_RESPONSE_TABLE=4]="AI_RICH_RESPONSE_TABLE";y[y.AI_RICH_RESPONSE_CODE=5]="AI_RICH_RESPONSE_CODE";y[y.AI_RICH_RESPONSE_DYNAMIC=6]="AI_RICH_RESPONSE_DYNAMIC";y[y.AI_RICH_RESPONSE_MAP=7]="AI_RICH_RESPONSE_MAP";y[y.AI_RICH_RESPONSE_LATEX=8]="AI_RICH_RESPONSE_LATEX";y[y.AI_RICH_RESPONSE_CONTENT_ITEMS=9]="AI_RICH_RESPONSE_CONTENT_ITEMS";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EP||={});var MP;((Z)=>{Z[Z.UNSPECIFIED=0]="UNSPECIFIED";Z[Z.THINK_HARD=1]="THINK_HARD";Z[Z.IMAGE_GEN=2]="IMAGE_GEN";Z[Z.VIDEO_GEN=3]="VIDEO_GEN";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MP||={});var WP;((E)=>{E[E.UNDEFINED_ENTRY_POINT=0]="UNDEFINED_ENTRY_POINT";E[E.FAVICON=1]="FAVICON";E[E.CHATLIST=2]="CHATLIST";E[E.AISEARCH_NULL_STATE_PAPER_PLANE=3]="AISEARCH_NULL_STATE_PAPER_PLANE";E[E.AISEARCH_NULL_STATE_SUGGESTION=4]="AISEARCH_NULL_STATE_SUGGESTION";E[E.AISEARCH_TYPE_AHEAD_SUGGESTION=5]="AISEARCH_TYPE_AHEAD_SUGGESTION";E[E.AISEARCH_TYPE_AHEAD_PAPER_PLANE=6]="AISEARCH_TYPE_AHEAD_PAPER_PLANE";E[E.AISEARCH_TYPE_AHEAD_RESULT_CHATLIST=7]="AISEARCH_TYPE_AHEAD_RESULT_CHATLIST";E[E.AISEARCH_TYPE_AHEAD_RESULT_MESSAGES=8]="AISEARCH_TYPE_AHEAD_RESULT_MESSAGES";E[E.AIVOICE_SEARCH_BAR=9]="AIVOICE_SEARCH_BAR";E[E.AIVOICE_FAVICON=10]="AIVOICE_FAVICON";E[E.AISTUDIO=11]="AISTUDIO";E[E.DEEPLINK=12]="DEEPLINK";E[E.NOTIFICATION=13]="NOTIFICATION";E[E.PROFILE_MESSAGE_BUTTON=14]="PROFILE_MESSAGE_BUTTON";E[E.FORWARD=15]="FORWARD";E[E.APP_SHORTCUT=16]="APP_SHORTCUT";E[E.FF_FAMILY=17]="FF_FAMILY";E[E.AI_TAB=18]="AI_TAB";E[E.AI_HOME=19]="AI_HOME";E[E.AI_DEEPLINK_IMMERSIVE=20]="AI_DEEPLINK_IMMERSIVE";E[E.AI_DEEPLINK=21]="AI_DEEPLINK";E[E.META_AI_CHAT_SHORTCUT_AI_STUDIO=22]="META_AI_CHAT_SHORTCUT_AI_STUDIO";E[E.UGC_CHAT_SHORTCUT_AI_STUDIO=23]="UGC_CHAT_SHORTCUT_AI_STUDIO";E[E.NEW_CHAT_AI_STUDIO=24]="NEW_CHAT_AI_STUDIO";E[E.AIVOICE_FAVICON_CALL_HISTORY=25]="AIVOICE_FAVICON_CALL_HISTORY";E[E.ASK_META_AI_CONTEXT_MENU=26]="ASK_META_AI_CONTEXT_MENU";E[E.ASK_META_AI_CONTEXT_MENU_1ON1=27]="ASK_META_AI_CONTEXT_MENU_1ON1";E[E.ASK_META_AI_CONTEXT_MENU_GROUP=28]="ASK_META_AI_CONTEXT_MENU_GROUP";E[E.INVOKE_META_AI_1ON1=29]="INVOKE_META_AI_1ON1";E[E.INVOKE_META_AI_GROUP=30]="INVOKE_META_AI_GROUP";E[E.META_AI_FORWARD=31]="META_AI_FORWARD";E[E.NEW_CHAT_AI_CONTACT=32]="NEW_CHAT_AI_CONTACT";E[E.MESSAGE_QUICK_ACTION_1_ON_1_CHAT=33]="MESSAGE_QUICK_ACTION_1_ON_1_CHAT";E[E.MESSAGE_QUICK_ACTION_GROUP_CHAT=34]="MESSAGE_QUICK_ACTION_GROUP_CHAT";E[E.ATTACHMENT_TRAY_1_ON_1_CHAT=35]="ATTACHMENT_TRAY_1_ON_1_CHAT";E[E.ATTACHMENT_TRAY_GROUP_CHAT=36]="ATTACHMENT_TRAY_GROUP_CHAT";E[E.ASK_META_AI_MEDIA_VIEWER_1ON1=37]="ASK_META_AI_MEDIA_VIEWER_1ON1";E[E.ASK_META_AI_MEDIA_VIEWER_GROUP=38]="ASK_META_AI_MEDIA_VIEWER_GROUP";E[E.MEDIA_PICKER_1_ON_1_CHAT=39]="MEDIA_PICKER_1_ON_1_CHAT";E[E.MEDIA_PICKER_GROUP_CHAT=40]="MEDIA_PICKER_GROUP_CHAT";E[E.ASK_META_AI_NO_SEARCH_RESULTS=41]="ASK_META_AI_NO_SEARCH_RESULTS";E[E.META_AI_SETTINGS=45]="META_AI_SETTINGS";E[E.WEB_INTRO_PANEL=46]="WEB_INTRO_PANEL";E[E.WEB_NAVIGATION_BAR=47]="WEB_NAVIGATION_BAR";E[E.GROUP_MEMBER=54]="GROUP_MEMBER";E[E.CHATLIST_SEARCH=55]="CHATLIST_SEARCH";E[E.NEW_CHAT_LIST=56]="NEW_CHAT_LIST";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WP||={});var IP;((Y)=>{Y[Y.AI_TAB_THREAD=1]="AI_TAB_THREAD";Y[Y.AI_HOME_THREAD=2]="AI_HOME_THREAD";Y[Y.AI_DEEPLINK_IMMERSIVE_THREAD=3]="AI_DEEPLINK_IMMERSIVE_THREAD";Y[Y.AI_DEEPLINK_THREAD=4]="AI_DEEPLINK_THREAD";Y[Y.ASK_META_AI_CONTEXT_MENU_THREAD=5]="ASK_META_AI_CONTEXT_MENU_THREAD";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IP||={});var SP;((C)=>{C[C.NONE=0]="NONE";C[C.NULL_STATE=1]="NULL_STATE";C[C.TYPEAHEAD=2]="TYPEAHEAD";C[C.USER_INPUT=3]="USER_INPUT";C[C.EMU_FLASH=4]="EMU_FLASH";C[C.EMU_FLASH_FOLLOWUP=5]="EMU_FLASH_FOLLOWUP";C[C.VOICE=6]="VOICE";C[C.AI_HOME_SESSION=7]="AI_HOME_SESSION";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SP||={});var vP;((Z)=>{Z[Z.EVERYONE=1]="EVERYONE";Z[Z.SILENT=2]="SILENT";Z[Z.AI=3]="AI";Z[Z.AI_IMAGINE=4]="AI_IMAGINE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vP||={});var TP;((J)=>{J[J.SMALL=1]="SMALL";J[J.MEDIUM=2]="MEDIUM";J[J.LARGE=3]="LARGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TP||={});var yP;((G)=>{G[G.SANS_SERIF=0]="SANS_SERIF";G[G.SERIF=1]="SERIF";G[G.NORICAN_REGULAR=2]="NORICAN_REGULAR";G[G.BRYNDAN_WRITE=3]="BRYNDAN_WRITE";G[G.BEBASNEUE_REGULAR=4]="BEBASNEUE_REGULAR";G[G.OSWALD_HEAVY=5]="OSWALD_HEAVY";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yP||={});var fP;((G)=>{G[G.COLLECTION_NAME_UNKNOWN=0]="COLLECTION_NAME_UNKNOWN";G[G.REGULAR=1]="REGULAR";G[G.REGULAR_LOW=2]="REGULAR_LOW";G[G.REGULAR_HIGH=3]="REGULAR_HIGH";G[G.CRITICAL_BLOCK=4]="CRITICAL_BLOCK";G[G.CRITICAL_UNBLOCK_LOW=5]="CRITICAL_UNBLOCK_LOW";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fP||={});var _P;((J)=>{J[J.PLACEHOLDER=0]="PLACEHOLDER";J[J.NO_PLACEHOLDER=1]="NO_PLACEHOLDER";J[J.IGNORE=2]="IGNORE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_P||={});var hP;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.KEEP_FOR_ALL=1]="KEEP_FOR_ALL";J[J.UNDO_KEEP_FOR_ALL=2]="UNDO_KEEP_FOR_ALL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hP||={});var lP;((Q)=>{Q[Q.PROFILE=0]="PROFILE";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lP||={});var pP;((J)=>{J[J.MEDIA_KEY_DOMAIN_UNKNOWN=0]="MEDIA_KEY_DOMAIN_UNKNOWN";J[J.MEDIA_KEY_DOMAIN_E2EE=1]="MEDIA_KEY_DOMAIN_E2EE";J[J.MEDIA_KEY_DOMAIN_NON_E2EE=2]="MEDIA_KEY_DOMAIN_NON_E2EE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pP||={});var uP;((J)=>{J[J.DEFAULT=0]="DEFAULT";J[J.OFF=1]="OFF";J[J.ON=2]="ON";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uP||={});var wP;((P)=>{P[P.STAR_ACTION=2]="STAR_ACTION";P[P.CONTACT_ACTION=3]="CONTACT_ACTION";P[P.MUTE_ACTION=4]="MUTE_ACTION";P[P.PIN_ACTION=5]="PIN_ACTION";P[P.SECURITY_NOTIFICATION_SETTING=6]="SECURITY_NOTIFICATION_SETTING";P[P.PUSH_NAME_SETTING=7]="PUSH_NAME_SETTING";P[P.QUICK_REPLY_ACTION=8]="QUICK_REPLY_ACTION";P[P.RECENT_EMOJI_WEIGHTS_ACTION=11]="RECENT_EMOJI_WEIGHTS_ACTION";P[P.LABEL_MESSAGE_ACTION=13]="LABEL_MESSAGE_ACTION";P[P.LABEL_EDIT_ACTION=14]="LABEL_EDIT_ACTION";P[P.LABEL_ASSOCIATION_ACTION=15]="LABEL_ASSOCIATION_ACTION";P[P.LOCALE_SETTING=16]="LOCALE_SETTING";P[P.ARCHIVE_CHAT_ACTION=17]="ARCHIVE_CHAT_ACTION";P[P.DELETE_MESSAGE_FOR_ME_ACTION=18]="DELETE_MESSAGE_FOR_ME_ACTION";P[P.KEY_EXPIRATION=19]="KEY_EXPIRATION";P[P.MARK_CHAT_AS_READ_ACTION=20]="MARK_CHAT_AS_READ_ACTION";P[P.CLEAR_CHAT_ACTION=21]="CLEAR_CHAT_ACTION";P[P.DELETE_CHAT_ACTION=22]="DELETE_CHAT_ACTION";P[P.UNARCHIVE_CHATS_SETTING=23]="UNARCHIVE_CHATS_SETTING";P[P.PRIMARY_FEATURE=24]="PRIMARY_FEATURE";P[P.ANDROID_UNSUPPORTED_ACTIONS=26]="ANDROID_UNSUPPORTED_ACTIONS";P[P.AGENT_ACTION=27]="AGENT_ACTION";P[P.SUBSCRIPTION_ACTION=28]="SUBSCRIPTION_ACTION";P[P.USER_STATUS_MUTE_ACTION=29]="USER_STATUS_MUTE_ACTION";P[P.TIME_FORMAT_ACTION=30]="TIME_FORMAT_ACTION";P[P.NUX_ACTION=31]="NUX_ACTION";P[P.PRIMARY_VERSION_ACTION=32]="PRIMARY_VERSION_ACTION";P[P.STICKER_ACTION=33]="STICKER_ACTION";P[P.REMOVE_RECENT_STICKER_ACTION=34]="REMOVE_RECENT_STICKER_ACTION";P[P.CHAT_ASSIGNMENT=35]="CHAT_ASSIGNMENT";P[P.CHAT_ASSIGNMENT_OPENED_STATUS=36]="CHAT_ASSIGNMENT_OPENED_STATUS";P[P.PN_FOR_LID_CHAT_ACTION=37]="PN_FOR_LID_CHAT_ACTION";P[P.MARKETING_MESSAGE_ACTION=38]="MARKETING_MESSAGE_ACTION";P[P.MARKETING_MESSAGE_BROADCAST_ACTION=39]="MARKETING_MESSAGE_BROADCAST_ACTION";P[P.EXTERNAL_WEB_BETA_ACTION=40]="EXTERNAL_WEB_BETA_ACTION";P[P.PRIVACY_SETTING_RELAY_ALL_CALLS=41]="PRIVACY_SETTING_RELAY_ALL_CALLS";P[P.CALL_LOG_ACTION=42]="CALL_LOG_ACTION";P[P.UGC_BOT=43]="UGC_BOT";P[P.STATUS_PRIVACY=44]="STATUS_PRIVACY";P[P.BOT_WELCOME_REQUEST_ACTION=45]="BOT_WELCOME_REQUEST_ACTION";P[P.DELETE_INDIVIDUAL_CALL_LOG=46]="DELETE_INDIVIDUAL_CALL_LOG";P[P.LABEL_REORDERING_ACTION=47]="LABEL_REORDERING_ACTION";P[P.PAYMENT_INFO_ACTION=48]="PAYMENT_INFO_ACTION";P[P.CUSTOM_PAYMENT_METHODS_ACTION=49]="CUSTOM_PAYMENT_METHODS_ACTION";P[P.LOCK_CHAT_ACTION=50]="LOCK_CHAT_ACTION";P[P.CHAT_LOCK_SETTINGS=51]="CHAT_LOCK_SETTINGS";P[P.WAMO_USER_IDENTIFIER_ACTION=52]="WAMO_USER_IDENTIFIER_ACTION";P[P.PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION=53]="PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION";P[P.DEVICE_CAPABILITIES=54]="DEVICE_CAPABILITIES";P[P.NOTE_EDIT_ACTION=55]="NOTE_EDIT_ACTION";P[P.FAVORITES_ACTION=56]="FAVORITES_ACTION";P[P.MERCHANT_PAYMENT_PARTNER_ACTION=57]="MERCHANT_PAYMENT_PARTNER_ACTION";P[P.WAFFLE_ACCOUNT_LINK_STATE_ACTION=58]="WAFFLE_ACCOUNT_LINK_STATE_ACTION";P[P.USERNAME_CHAT_START_MODE=59]="USERNAME_CHAT_START_MODE";P[P.NOTIFICATION_ACTIVITY_SETTING_ACTION=60]="NOTIFICATION_ACTIVITY_SETTING_ACTION";P[P.LID_CONTACT_ACTION=61]="LID_CONTACT_ACTION";P[P.CTWA_PER_CUSTOMER_DATA_SHARING_ACTION=62]="CTWA_PER_CUSTOMER_DATA_SHARING_ACTION";P[P.PAYMENT_TOS_ACTION=63]="PAYMENT_TOS_ACTION";P[P.PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION=64]="PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION";P[P.BUSINESS_BROADCAST_ASSOCIATION_ACTION=65]="BUSINESS_BROADCAST_ASSOCIATION_ACTION";P[P.DETECTED_OUTCOMES_STATUS_ACTION=66]="DETECTED_OUTCOMES_STATUS_ACTION";P[P.MAIBA_AI_FEATURES_CONTROL_ACTION=68]="MAIBA_AI_FEATURES_CONTROL_ACTION";P[P.BUSINESS_BROADCAST_LIST_ACTION=69]="BUSINESS_BROADCAST_LIST_ACTION";P[P.MUSIC_USER_ID_ACTION=70]="MUSIC_USER_ID_ACTION";P[P.STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION=71]="STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION";P[P.AVATAR_UPDATED_ACTION=72]="AVATAR_UPDATED_ACTION";P[P.GALAXY_FLOW_ACTION=73]="GALAXY_FLOW_ACTION";P[P.PRIVATE_PROCESSING_SETTING_ACTION=74]="PRIVATE_PROCESSING_SETTING_ACTION";P[P.NEWSLETTER_SAVED_INTERESTS_ACTION=75]="NEWSLETTER_SAVED_INTERESTS_ACTION";P[P.AI_THREAD_RENAME_ACTION=76]="AI_THREAD_RENAME_ACTION";P[P.INTERACTIVE_MESSAGE_ACTION=77]="INTERACTIVE_MESSAGE_ACTION";P[P.SETTINGS_SYNC_ACTION=78]="SETTINGS_SYNC_ACTION";P[P.OUT_CONTACT_ACTION=79]="OUT_CONTACT_ACTION";P[P.NCT_SALT_SYNC_ACTION=80]="NCT_SALT_SYNC_ACTION";P[P.BUSINESS_BROADCAST_CAMPAIGN_ACTION=81]="BUSINESS_BROADCAST_CAMPAIGN_ACTION";P[P.BUSINESS_BROADCAST_INSIGHTS_ACTION=82]="BUSINESS_BROADCAST_INSIGHTS_ACTION";P[P.CUSTOMER_DATA_ACTION=83]="CUSTOMER_DATA_ACTION";P[P.SUBSCRIPTIONS_SYNC_V2_ACTION=84]="SUBSCRIPTIONS_SYNC_V2_ACTION";P[P.THREAD_PIN_ACTION=85]="THREAD_PIN_ACTION";P[P.AUTO_ORGANIZE_BUSINESS_CHAT_SETTING=86]="AUTO_ORGANIZE_BUSINESS_CHAT_SETTING";P[P.BIZ_AI_SETTINGS_NUDGE_ACTION=87]="BIZ_AI_SETTINGS_NUDGE_ACTION";P[P.COEX_V2_VERSION_ACTION=88]="COEX_V2_VERSION_ACTION";P[P.WASA_ROOT_SECRET_ACTION=89]="WASA_ROOT_SECRET_ACTION";P[P.SHARE_OWN_PN=10001]="SHARE_OWN_PN";P[P.BUSINESS_BROADCAST_ACTION=10002]="BUSINESS_BROADCAST_ACTION";P[P.AI_THREAD_DELETE_ACTION=10003]="AI_THREAD_DELETE_ACTION";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wP||={});var nP;((J)=>{J[J.E2EE_MSG=1]="E2EE_MSG";J[J.NE2EE_SELF=2]="NE2EE_SELF";J[J.NE2EE_OTHER=3]="NE2EE_OTHER";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nP||={});var dP;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.NY_AI_SAFETY_DISCLAIMER=1]="NY_AI_SAFETY_DISCLAIMER";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dP||={});var jP;((X)=>{X[X.WEBVIEW=0]="WEBVIEW";X[X.SYSTEM=1]="SYSTEM";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jP||={});var cP;((G)=>{G[G.PROMPT=0]="PROMPT";G[G.CREATE_IMAGE=1]="CREATE_IMAGE";G[G.ANIMATE_PHOTO=2]="ANIMATE_PHOTO";G[G.ANALYZE_FILE=3]="ANALYZE_FILE";G[G.COLLABORATE=4]="COLLABORATE";G[G.OPEN_GREETING_CARD=5]="OPEN_GREETING_CARD";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cP||={});var oP;((G)=>{G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT=0]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD=1]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD=2]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING=3]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER=4]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT=5]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oP||={});var bP;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.CAROUSEL=1]="CAROUSEL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bP||={});var iP;((J)=>{J[J.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN";J[J.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE=1]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE";J[J.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF=2]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iP||={});var mP;((J)=>{J[J.AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED=0]="AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED";J[J.AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED=1]="AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED";J[J.AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED=2]="AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mP||={});var gP;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.DEFAULT=1]="DEFAULT";Z[Z.INCOGNITO=2]="INCOGNITO";Z[Z.SIDE_CHAT=3]="SIDE_CHAT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gP||={});var tP;((Q)=>{Q[Q.ENTERPRISE=0]="ENTERPRISE";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tP||={});var rP;((X)=>{X[X.ON_PREMISE=0]="ON_PREMISE";X[X.FACEBOOK=1]="FACEBOOK";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rP||={});var aP;((X)=>{X[X.SELF=0]="SELF";X[X.BSP=1]="BSP";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aP||={});var sP;((X)=>{X[X.ON_PREMISE=0]="ON_PREMISE";X[X.FACEBOOK=1]="FACEBOOK";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sP||={});var eP;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.LOW=1]="LOW";J[J.HIGH=2]="HIGH";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eP||={});var $F;((X)=>{X[X.O18_BINARY=0]="O18_BINARY";X[X.WAFFLE=1]="WAFFLE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})($F||={});var KF;((R)=>{R[R.UNKNOWN=0]="UNKNOWN";R[R.PROGRESS_INDICATOR=1]="PROGRESS_INDICATOR";R[R.RICH_RESPONSE_HEADING=2]="RICH_RESPONSE_HEADING";R[R.RICH_RESPONSE_NESTED_LIST=3]="RICH_RESPONSE_NESTED_LIST";R[R.AI_MEMORY=4]="AI_MEMORY";R[R.RICH_RESPONSE_THREAD_SURFING=5]="RICH_RESPONSE_THREAD_SURFING";R[R.RICH_RESPONSE_TABLE=6]="RICH_RESPONSE_TABLE";R[R.RICH_RESPONSE_CODE=7]="RICH_RESPONSE_CODE";R[R.RICH_RESPONSE_STRUCTURED_RESPONSE=8]="RICH_RESPONSE_STRUCTURED_RESPONSE";R[R.RICH_RESPONSE_INLINE_IMAGE=9]="RICH_RESPONSE_INLINE_IMAGE";R[R.WA_IG_1P_PLUGIN_RANKING_CONTROL=10]="WA_IG_1P_PLUGIN_RANKING_CONTROL";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11]="WA_IG_1P_PLUGIN_RANKING_UPDATE_1";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12]="WA_IG_1P_PLUGIN_RANKING_UPDATE_2";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_3=13]="WA_IG_1P_PLUGIN_RANKING_UPDATE_3";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_4=14]="WA_IG_1P_PLUGIN_RANKING_UPDATE_4";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_5=15]="WA_IG_1P_PLUGIN_RANKING_UPDATE_5";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_6=16]="WA_IG_1P_PLUGIN_RANKING_UPDATE_6";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_7=17]="WA_IG_1P_PLUGIN_RANKING_UPDATE_7";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18]="WA_IG_1P_PLUGIN_RANKING_UPDATE_8";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19]="WA_IG_1P_PLUGIN_RANKING_UPDATE_9";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20]="WA_IG_1P_PLUGIN_RANKING_UPDATE_10";R[R.RICH_RESPONSE_SUB_HEADING=21]="RICH_RESPONSE_SUB_HEADING";R[R.RICH_RESPONSE_GRID_IMAGE=22]="RICH_RESPONSE_GRID_IMAGE";R[R.AI_STUDIO_UGC_MEMORY=23]="AI_STUDIO_UGC_MEMORY";R[R.RICH_RESPONSE_LATEX=24]="RICH_RESPONSE_LATEX";R[R.RICH_RESPONSE_MAPS=25]="RICH_RESPONSE_MAPS";R[R.RICH_RESPONSE_INLINE_REELS=26]="RICH_RESPONSE_INLINE_REELS";R[R.AGENTIC_PLANNING=27]="AGENTIC_PLANNING";R[R.ACCOUNT_LINKING=28]="ACCOUNT_LINKING";R[R.STREAMING_DISAGGREGATION=29]="STREAMING_DISAGGREGATION";R[R.RICH_RESPONSE_GRID_IMAGE_3P=30]="RICH_RESPONSE_GRID_IMAGE_3P";R[R.RICH_RESPONSE_LATEX_INLINE=31]="RICH_RESPONSE_LATEX_INLINE";R[R.QUERY_PLAN=32]="QUERY_PLAN";R[R.PROACTIVE_MESSAGE=33]="PROACTIVE_MESSAGE";R[R.RICH_RESPONSE_UNIFIED_RESPONSE=34]="RICH_RESPONSE_UNIFIED_RESPONSE";R[R.PROMOTION_MESSAGE=35]="PROMOTION_MESSAGE";R[R.SIMPLIFIED_PROFILE_PAGE=36]="SIMPLIFIED_PROFILE_PAGE";R[R.RICH_RESPONSE_SOURCES_IN_MESSAGE=37]="RICH_RESPONSE_SOURCES_IN_MESSAGE";R[R.RICH_RESPONSE_SIDE_BY_SIDE_SURVEY=38]="RICH_RESPONSE_SIDE_BY_SIDE_SURVEY";R[R.RICH_RESPONSE_UNIFIED_TEXT_COMPONENT=39]="RICH_RESPONSE_UNIFIED_TEXT_COMPONENT";R[R.AI_SHARED_MEMORY=40]="AI_SHARED_MEMORY";R[R.RICH_RESPONSE_UNIFIED_SOURCES=41]="RICH_RESPONSE_UNIFIED_SOURCES";R[R.RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS=42]="RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS";R[R.RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43]="RICH_RESPONSE_UR_INLINE_REELS_ENABLED";R[R.RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44]="RICH_RESPONSE_UR_MEDIA_GRID_ENABLED";R[R.RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45]="RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER";R[R.RICH_RESPONSE_IN_APP_SURVEY=46]="RICH_RESPONSE_IN_APP_SURVEY";R[R.AI_RESPONSE_MODEL_BRANDING=47]="AI_RESPONSE_MODEL_BRANDING";R[R.SESSION_TRANSPARENCY_SYSTEM_MESSAGE=48]="SESSION_TRANSPARENCY_SYSTEM_MESSAGE";R[R.RICH_RESPONSE_UR_REASONING=49]="RICH_RESPONSE_UR_REASONING";R[R.RICH_RESPONSE_UR_ZEITGEIST_CITATIONS=50]="RICH_RESPONSE_UR_ZEITGEIST_CITATIONS";R[R.RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL=51]="RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL";R[R.AI_IMAGINE_LOADING_INDICATOR=52]="AI_IMAGINE_LOADING_INDICATOR";R[R.RICH_RESPONSE_UR_IMAGINE=53]="RICH_RESPONSE_UR_IMAGINE";R[R.AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR=54]="AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR";R[R.RICH_RESPONSE_UR_BLOKS_ENABLED=55]="RICH_RESPONSE_UR_BLOKS_ENABLED";R[R.RICH_RESPONSE_INLINE_LINKS_ENABLED=56]="RICH_RESPONSE_INLINE_LINKS_ENABLED";R[R.RICH_RESPONSE_UR_IMAGINE_VIDEO=57]="RICH_RESPONSE_UR_IMAGINE_VIDEO";R[R.JSON_PATCH_STREAMING=58]="JSON_PATCH_STREAMING";R[R.AI_TAB_FORCE_CLIPPY=59]="AI_TAB_FORCE_CLIPPY";R[R.UNIFIED_RESPONSE_EMBEDDED_SCREENS=60]="UNIFIED_RESPONSE_EMBEDDED_SCREENS";R[R.AI_SUBSCRIPTION_ENABLED=61]="AI_SUBSCRIPTION_ENABLED";R[R.UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED=62]="UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED";R[R.UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED=63]="UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED";R[R.AI_RICH_RESPONSE_MAPS_V2_ENABLED=64]="AI_RICH_RESPONSE_MAPS_V2_ENABLED";R[R.AI_SUBSCRIPTION_METERING_ENABLED=65]="AI_SUBSCRIPTION_METERING_ENABLED";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KF||={});var QF;((X)=>{X[X.TEXT_EXTRACTION=0]="TEXT_EXTRACTION";X[X.OCR_AND_IMAGES=1]="OCR_AND_IMAGES";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QF||={});var ZF;((S)=>{S[S.BOT_FEEDBACK_POSITIVE=0]="BOT_FEEDBACK_POSITIVE";S[S.BOT_FEEDBACK_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_NEGATIVE_GENERIC";S[S.BOT_FEEDBACK_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_NEGATIVE_HELPFUL";S[S.BOT_FEEDBACK_NEGATIVE_INTERESTING=3]="BOT_FEEDBACK_NEGATIVE_INTERESTING";S[S.BOT_FEEDBACK_NEGATIVE_ACCURATE=4]="BOT_FEEDBACK_NEGATIVE_ACCURATE";S[S.BOT_FEEDBACK_NEGATIVE_SAFE=5]="BOT_FEEDBACK_NEGATIVE_SAFE";S[S.BOT_FEEDBACK_NEGATIVE_OTHER=6]="BOT_FEEDBACK_NEGATIVE_OTHER";S[S.BOT_FEEDBACK_NEGATIVE_REFUSED=7]="BOT_FEEDBACK_NEGATIVE_REFUSED";S[S.BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8]="BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING";S[S.BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9]="BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT";S[S.BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10]="BOT_FEEDBACK_NEGATIVE_PERSONALIZED";S[S.BOT_FEEDBACK_NEGATIVE_CLARITY=11]="BOT_FEEDBACK_NEGATIVE_CLARITY";S[S.BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12]="BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON";S[S.BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY=13]="BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY";S[S.BOT_FEEDBACK_NEGATIVE=14]="BOT_FEEDBACK_NEGATIVE";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZF||={});var JF;((N)=>{N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING=4]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE=8]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE=16]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER=32]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED=64]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING=128]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT=256]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JF||={});var XF;((Q)=>{Q[Q.BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XF||={});var qF;((X)=>{X[X.NONE=0]="NONE";X[X.GENERIC=1]="GENERIC";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qF||={});var YF;((Y)=>{Y[Y.UNKNOWN=0]="UNKNOWN";Y[Y.IMAGINE=1]="IMAGINE";Y[Y.MEMU=2]="MEMU";Y[Y.FLASH=3]="FLASH";Y[Y.EDIT=4]="EDIT";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YF||={});var HF;((X)=>{X[X.AAPI=0]="AAPI";X[X.CLIPPY=1]="CLIPPY";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HF||={});var zF;((Q)=>{Q[Q.BOT_LINKED_ACCOUNT_TYPE_1P=0]="BOT_LINKED_ACCOUNT_TYPE_1P";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zF||={});var VF;((J)=>{J[J.CENTER=1]="CENTER";J[J.LEFT=2]="LEFT";J[J.RIGHT=3]="RIGHT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VF||={});var GF;((Q)=>{Q[Q.BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED=0]="BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GF||={});var UF;((X)=>{X[X.DEFAULT_MODE=0]="DEFAULT_MODE";X[X.THINK_HARD_MODE=1]="THINK_HARD_MODE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UF||={});var CF;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.LLAMA_PROD=1]="LLAMA_PROD";J[J.LLAMA_PROD_PREMIUM=2]="LLAMA_PROD_PREMIUM";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CF||={});var DF;((J)=>{J[J.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";J[J.AVAILABLE=1]="AVAILABLE";J[J.QUOTA_EXCEED_LIMIT=2]="QUOTA_EXCEED_LIMIT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DF||={});var LF;((J)=>{J[J.UNKNOWN_PLUGIN=0]="UNKNOWN_PLUGIN";J[J.REELS=1]="REELS";J[J.SEARCH=2]="SEARCH";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LF||={});var PF;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.BING=1]="BING";Z[Z.GOOGLE=2]="GOOGLE";Z[Z.SUPPORT=3]="SUPPORT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PF||={});var FF;((Z)=>{Z[Z.UNKNOWN_PROVIDER=0]="UNKNOWN_PROVIDER";Z[Z.OTHER=1]="OTHER";Z[Z.GOOGLE=2]="GOOGLE";Z[Z.BING=3]="BING";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FF||={});var xF;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.PLANNED=1]="PLANNED";Z[Z.EXECUTING=2]="EXECUTING";Z[Z.FINISHED=3]="FINISHED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xF||={});var kF;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.OTHER=1]="OTHER";Z[Z.GOOGLE=2]="GOOGLE";Z[Z.BING=3]="BING";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kF||={});var NF;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.C50=1]="C50";J[J.SURVEY_PLATFORM=2]="SURVEY_PLATFORM";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NF||={});var RF;((X)=>{X[X.UNKNOWN_FEATURE=0]="UNKNOWN_FEATURE";X[X.REASONING_FEATURE=1]="REASONING_FEATURE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RF||={});var BF;((Z)=>{Z[Z.NOTIFY=1]="NOTIFY";Z[Z.CREATE=2]="CREATE";Z[Z.DELETE=3]="DELETE";Z[Z.UPDATE=4]="UPDATE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BF||={});var OF;((Y)=>{Y[Y.ONCE=1]="ONCE";Y[Y.DAILY=2]="DAILY";Y[Y.WEEKLY=3]="WEEKLY";Y[Y.BIWEEKLY=4]="BIWEEKLY";Y[Y.MONTHLY=5]="MONTHLY";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OF||={});var AF;((Z)=>{Z[Z.UNSPECIFIED=0]="UNSPECIFIED";Z[Z.WA_BOT_MSG=1]="WA_BOT_MSG";Z[Z.WA_TEE_BOT_MSG=2]="WA_TEE_BOT_MSG";Z[Z.P2P_PILLS=3]="P2P_PILLS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AF||={});var EF;((Y)=>{Y[Y.UNKNOWN=0]="UNKNOWN";Y[Y.BING=1]="BING";Y[Y.GOOGLE=2]="GOOGLE";Y[Y.SUPPORT=3]="SUPPORT";Y[Y.OTHER=4]="OTHER";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EF||={});var MF;((I)=>{I[I.CONNECTED=0]="CONNECTED";I[I.REJECTED=1]="REJECTED";I[I.CANCELLED=2]="CANCELLED";I[I.ACCEPTEDELSEWHERE=3]="ACCEPTEDELSEWHERE";I[I.MISSED=4]="MISSED";I[I.INVALID=5]="INVALID";I[I.UNAVAILABLE=6]="UNAVAILABLE";I[I.UPCOMING=7]="UPCOMING";I[I.FAILED=8]="FAILED";I[I.ABANDONED=9]="ABANDONED";I[I.ONGOING=10]="ONGOING";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MF||={});var WF;((J)=>{J[J.REGULAR=0]="REGULAR";J[J.SCHEDULED_CALL=1]="SCHEDULED_CALL";J[J.VOICE_CHAT=2]="VOICE_CHAT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WF||={});var IF;((Z)=>{Z[Z.NONE=0]="NONE";Z[Z.SCHEDULED=1]="SCHEDULED";Z[Z.PRIVACY=2]="PRIVACY";Z[Z.LIGHTWEIGHT=3]="LIGHTWEIGHT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IF||={});var SF;((J)=>{J[J.NONE=0]="NONE";J[J.IMAGE=1]="IMAGE";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SF||={});var vF;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.GUEST=1]="GUEST";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vF||={});var TF;((L)=>{L[L.PUSH=0]="PUSH";L[L.USER_ACTIVATED=1]="USER_ACTIVATED";L[L.SCHEDULED=2]="SCHEDULED";L[L.ERROR_RECONNECT=3]="ERROR_RECONNECT";L[L.NETWORK_SWITCH=4]="NETWORK_SWITCH";L[L.PING_RECONNECT=5]="PING_RECONNECT";L[L.UNKNOWN=6]="UNKNOWN";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TF||={});var yF;((S)=>{S[S.CELLULAR_UNKNOWN=0]="CELLULAR_UNKNOWN";S[S.WIFI_UNKNOWN=1]="WIFI_UNKNOWN";S[S.CELLULAR_EDGE=100]="CELLULAR_EDGE";S[S.CELLULAR_IDEN=101]="CELLULAR_IDEN";S[S.CELLULAR_UMTS=102]="CELLULAR_UMTS";S[S.CELLULAR_EVDO=103]="CELLULAR_EVDO";S[S.CELLULAR_GPRS=104]="CELLULAR_GPRS";S[S.CELLULAR_HSDPA=105]="CELLULAR_HSDPA";S[S.CELLULAR_HSUPA=106]="CELLULAR_HSUPA";S[S.CELLULAR_HSPA=107]="CELLULAR_HSPA";S[S.CELLULAR_CDMA=108]="CELLULAR_CDMA";S[S.CELLULAR_1XRTT=109]="CELLULAR_1XRTT";S[S.CELLULAR_EHRPD=110]="CELLULAR_EHRPD";S[S.CELLULAR_LTE=111]="CELLULAR_LTE";S[S.CELLULAR_HSPAP=112]="CELLULAR_HSPAP";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yF||={});var fF;((J)=>{J[J.SHARE_EXTENSION=0]="SHARE_EXTENSION";J[J.SERVICE_EXTENSION=1]="SERVICE_EXTENSION";J[J.INTENTS_EXTENSION=2]="INTENTS_EXTENSION";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fF||={});var _F;((Y)=>{Y[Y.WHATSAPP=0]="WHATSAPP";Y[Y.MESSENGER=1]="MESSENGER";Y[Y.INTEROP=2]="INTEROP";Y[Y.INTEROP_MSGR=3]="INTEROP_MSGR";Y[Y.WHATSAPP_LID=4]="WHATSAPP_LID";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_F||={});var hF;((X)=>{X[X.OFF=0]="OFF";X[X.STANDARD=1]="STANDARD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hF||={});var lF;((C)=>{C[C.SYSTEM=0]="SYSTEM";C[C.GOOGLE=1]="GOOGLE";C[C.HARDCODED=2]="HARDCODED";C[C.OVERRIDE=3]="OVERRIDE";C[C.FALLBACK=4]="FALLBACK";C[C.MNS=5]="MNS";C[C.MNS_SECONDARY=6]="MNS_SECONDARY";C[C.SOCKS_PROXY=7]="SOCKS_PROXY";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lF||={});var pF;((Y)=>{Y[Y.PHONE=0]="PHONE";Y[Y.TABLET=1]="TABLET";Y[Y.DESKTOP=2]="DESKTOP";Y[Y.WEARABLE=3]="WEARABLE";Y[Y.VR=4]="VR";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pF||={});var uF;((Z)=>{Z[Z.APPSTORE=0]="APPSTORE";Z[Z.WEBSITE=1]="WEBSITE";Z[Z.TESTFLIGHT=2]="TESTFLIGHT";Z[Z.INTERNAL=3]="INTERNAL";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uF||={});var wF;((v)=>{v[v.ANDROID=0]="ANDROID";v[v.IOS=1]="IOS";v[v.WINDOWS_PHONE=2]="WINDOWS_PHONE";v[v.BLACKBERRY=3]="BLACKBERRY";v[v.BLACKBERRYX=4]="BLACKBERRYX";v[v.S40=5]="S40";v[v.S60=6]="S60";v[v.PYTHON_CLIENT=7]="PYTHON_CLIENT";v[v.TIZEN=8]="TIZEN";v[v.ENTERPRISE=9]="ENTERPRISE";v[v.SMB_ANDROID=10]="SMB_ANDROID";v[v.KAIOS=11]="KAIOS";v[v.SMB_IOS=12]="SMB_IOS";v[v.WINDOWS=13]="WINDOWS";v[v.WEB=14]="WEB";v[v.PORTAL=15]="PORTAL";v[v.GREEN_ANDROID=16]="GREEN_ANDROID";v[v.GREEN_IPHONE=17]="GREEN_IPHONE";v[v.BLUE_ANDROID=18]="BLUE_ANDROID";v[v.BLUE_IPHONE=19]="BLUE_IPHONE";v[v.FBLITE_ANDROID=20]="FBLITE_ANDROID";v[v.MLITE_ANDROID=21]="MLITE_ANDROID";v[v.IGLITE_ANDROID=22]="IGLITE_ANDROID";v[v.PAGE=23]="PAGE";v[v.MACOS=24]="MACOS";v[v.OCULUS_MSG=25]="OCULUS_MSG";v[v.OCULUS_CALL=26]="OCULUS_CALL";v[v.MILAN=27]="MILAN";v[v.CAPI=28]="CAPI";v[v.WEAROS=29]="WEAROS";v[v.ARDEVICE=30]="ARDEVICE";v[v.VRDEVICE=31]="VRDEVICE";v[v.BLUE_WEB=32]="BLUE_WEB";v[v.IPAD=33]="IPAD";v[v.TEST=34]="TEST";v[v.SMART_GLASSES=35]="SMART_GLASSES";v[v.BLUE_VR=36]="BLUE_VR";v[v.AR_WRIST=37]="AR_WRIST";v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wF||={});var nF;((Z)=>{Z[Z.RELEASE=0]="RELEASE";Z[Z.BETA=1]="BETA";Z[Z.ALPHA=2]="ALPHA";Z[Z.DEBUG=3]="DEBUG";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nF||={});var dF;((G)=>{G[G.WEB_BROWSER=0]="WEB_BROWSER";G[G.APP_STORE=1]="APP_STORE";G[G.WIN_STORE=2]="WIN_STORE";G[G.DARWIN=3]="DARWIN";G[G.WIN32=4]="WIN32";G[G.WIN_HYBRID=5]="WIN_HYBRID";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dF||={});var jF;((X)=>{X[X.NONE=0]="NONE";X[X.VIDEO=1]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jF||={});var cF;((J)=>{J[J.CROSS_APP_SOURCE_UNKNOWN=0]="CROSS_APP_SOURCE_UNKNOWN";J[J.CROSS_APP_SOURCE_INSTAGRAM=1]="CROSS_APP_SOURCE_INSTAGRAM";J[J.CROSS_APP_SOURCE_FACEBOOK=2]="CROSS_APP_SOURCE_FACEBOOK";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cF||={});var oF;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.CHAT=1]="CHAT";G[G.STATUS=2]="STATUS";G[G.CHANNELS=3]="CHANNELS";G[G.META_AI=4]="META_AI";G[G.UGC=5]="UGC";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oF||={});var bF;((N)=>{N[N.NOT_PAIRED_MEDIA=0]="NOT_PAIRED_MEDIA";N[N.SD_VIDEO_PARENT=1]="SD_VIDEO_PARENT";N[N.HD_VIDEO_CHILD=2]="HD_VIDEO_CHILD";N[N.SD_IMAGE_PARENT=3]="SD_IMAGE_PARENT";N[N.HD_IMAGE_CHILD=4]="HD_IMAGE_CHILD";N[N.MOTION_PHOTO_PARENT=5]="MOTION_PHOTO_PARENT";N[N.MOTION_PHOTO_CHILD=6]="MOTION_PHOTO_CHILD";N[N.HEVC_VIDEO_PARENT=7]="HEVC_VIDEO_PARENT";N[N.HEVC_VIDEO_CHILD=8]="HEVC_VIDEO_CHILD";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bF||={});var iF;((X)=>{X[X.EXPLICIT=0]="EXPLICIT";X[X.AUTO=1]="AUTO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iF||={});var mF;((Y)=>{Y[Y.NONE=0]="NONE";Y[Y.RESHARED_FROM_MENTION=1]="RESHARED_FROM_MENTION";Y[Y.RESHARED_FROM_POST=2]="RESHARED_FROM_POST";Y[Y.RESHARED_FROM_POST_MANY_TIMES=3]="RESHARED_FROM_POST_MANY_TIMES";Y[Y.FORWARDED_FROM_STATUS=4]="FORWARDED_FROM_STATUS";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mF||={});var gF;((G)=>{G[G.IMAGE=0]="IMAGE";G[G.VIDEO=1]="VIDEO";G[G.GIF=2]="GIF";G[G.AUDIO=3]="AUDIO";G[G.TEXT=4]="TEXT";G[G.MUSIC_STANDALONE=5]="MUSIC_STANDALONE";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gF||={});var tF;((J)=>{J[J.NONE=0]="NONE";J[J.IMAGE=1]="IMAGE";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tF||={});var rF;((G)=>{G[G.ENTRY_POINT_UNKNOWN=0]="ENTRY_POINT_UNKNOWN";G[G.P2P_LINK_SHARE=1]="P2P_LINK_SHARE";G[G.CONTACT_CARD_SHARING=2]="CONTACT_CARD_SHARING";G[G.PHONE_NUMBER=3]="PHONE_NUMBER";G[G.STATUS=4]="STATUS";G[G.IN_THREAD_CONTEXT_CARD=5]="IN_THREAD_CONTEXT_CARD";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rF||={});var aF;((M)=>{M[M.UNKNOWN=0]="UNKNOWN";M[M.VIEW_BUSINESS=1]="VIEW_BUSINESS";M[M.CHAT=2]="CHAT";M[M.CALL=3]="CALL";M[M.CATALOG=4]="CATALOG";M[M.CHANNEL=5]="CHANNEL";M[M.BOOK_APPOINTMENT=6]="BOOK_APPOINTMENT";M[M.OFFERS=7]="OFFERS";M[M.BESTSELLERS=8]="BESTSELLERS";M[M.MENU=9]="MENU";M[M.ABOUT=10]="ABOUT";M[M.SHOP=11]="SHOP";M[M.ORDER=12]="ORDER";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aF||={});var sF;((X)=>{X[X.SHOW_MM_DISCLOSURE_ON_CLICK=1]="SHOW_MM_DISCLOSURE_ON_CLICK";X[X.SHOW_MM_DISCLOSURE_ON_READ=2]="SHOW_MM_DISCLOSURE_ON_READ";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sF||={});var eF;((X)=>{X[X.CTWA=0]="CTWA";X[X.CAWC=1]="CAWC";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eF||={});var $x;((J)=>{J[J.NONE=0]="NONE";J[J.IMAGE=1]="IMAGE";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})($x||={});var Kx;((J)=>{J[J.UPDATE=1]="UPDATE";J[J.UPDATE_CARD=2]="UPDATE_CARD";J[J.LINK_CARD=3]="LINK_CARD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Kx||={});var Qx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.CLOSE_FRIENDS=1]="CLOSE_FRIENDS";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Qx||={});var Zx;((Z)=>{Z[Z.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY=0]="COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY";Z[Z.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY=1]="COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY";Z[Z.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY=2]="COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY";Z[Z.COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS=3]="COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zx||={});var Jx;((Z)=>{Z[Z.NO_APPEAL=0]="NO_APPEAL";Z[Z.APPEAL_IN_REVIEW=1]="APPEAL_IN_REVIEW";Z[Z.APPEAL_APPROVED=2]="APPEAL_APPROVED";Z[Z.APPEAL_REJECTED=3]="APPEAL_REJECTED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jx||={});var Xx;((J)=>{J[J.NONE=0]="NONE";J[J.MINIMAL=1]="MINIMAL";J[J.FULL=2]="FULL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Xx||={});var qx;((J)=>{J[J.DISABLED=0]="DISABLED";J[J.RECEIVER_ENABLED=1]="RECEIVER_ENABLED";J[J.SENDER_ENABLED=2]="SENDER_ENABLED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qx||={});var Yx;((J)=>{J[J.NONE=0]="NONE";J[J.INFRA=1]="INFRA";J[J.FULL=2]="FULL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Yx||={});var Hx;((p)=>{p[p.UNKNOWN=0]="UNKNOWN";p[p.CHROME=1]="CHROME";p[p.FIREFOX=2]="FIREFOX";p[p.IE=3]="IE";p[p.OPERA=4]="OPERA";p[p.SAFARI=5]="SAFARI";p[p.EDGE=6]="EDGE";p[p.DESKTOP=7]="DESKTOP";p[p.IPAD=8]="IPAD";p[p.ANDROID_TABLET=9]="ANDROID_TABLET";p[p.OHANA=10]="OHANA";p[p.ALOHA=11]="ALOHA";p[p.CATALINA=12]="CATALINA";p[p.TCL_TV=13]="TCL_TV";p[p.IOS_PHONE=14]="IOS_PHONE";p[p.IOS_CATALYST=15]="IOS_CATALYST";p[p.ANDROID_PHONE=16]="ANDROID_PHONE";p[p.ANDROID_AMBIGUOUS=17]="ANDROID_AMBIGUOUS";p[p.WEAR_OS=18]="WEAR_OS";p[p.AR_WRIST=19]="AR_WRIST";p[p.AR_DEVICE=20]="AR_DEVICE";p[p.UWP=21]="UWP";p[p.VR=22]="VR";p[p.CLOUD_API=23]="CLOUD_API";p[p.SMARTGLASSES=24]="SMARTGLASSES";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Hx||={});var zx;((Z)=>{Z[Z.CHANGED_IN_CHAT=0]="CHANGED_IN_CHAT";Z[Z.INITIATED_BY_ME=1]="INITIATED_BY_ME";Z[Z.INITIATED_BY_OTHER=2]="INITIATED_BY_OTHER";Z[Z.BIZ_UPGRADE_FB_HOSTING=3]="BIZ_UPGRADE_FB_HOSTING";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zx||={});var Vx;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.CHAT_SETTING=1]="CHAT_SETTING";G[G.ACCOUNT_SETTING=2]="ACCOUNT_SETTING";G[G.BULK_CHANGE=3]="BULK_CHANGE";G[G.BIZ_SUPPORTS_FB_HOSTING=4]="BIZ_SUPPORTS_FB_HOSTING";G[G.UNKNOWN_GROUPS=5]="UNKNOWN_GROUPS";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Vx||={});var Gx;((X)=>{X[X.E2EE=0]="E2EE";X[X.HOSTED=1]="HOSTED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Gx||={});var Ux;((G)=>{G[G.NOT_INJECTED=0]="NOT_INJECTED";G[G.INJECTED=1]="INJECTED";G[G.INJECTED_PARTIAL=2]="INJECTED_PARTIAL";G[G.INJECTION_FAILED=3]="INJECTION_FAILED";G[G.INJECTION_FAILED_NO_RETRY=4]="INJECTION_FAILED_NO_RETRY";G[G.DEDUPED=5]="DEDUPED";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ux||={});var Cx;((J)=>{J[J.REGULAR=0]="REGULAR";J[J.ADMIN=1]="ADMIN";J[J.SUPERADMIN=2]="SUPERADMIN";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Cx||={});var Dx;((N)=>{N[N.HANDSHAKE_PQ_MODE_UNKNOWN=0]="HANDSHAKE_PQ_MODE_UNKNOWN";N[N.XXKEM=1]="XXKEM";N[N.XXKEM_FS=2]="XXKEM_FS";N[N.WA_CLASSICAL=3]="WA_CLASSICAL";N[N.WA_PQ=4]="WA_PQ";N[N.IKKEM=5]="IKKEM";N[N.IKKEM_FS=6]="IKKEM_FS";N[N.XXKEM_2=7]="XXKEM_2";N[N.IKKEM_2=8]="IKKEM_2";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Dx||={});var Lx;((X)=>{X[X.IN_WAITLIST=0]="IN_WAITLIST";X[X.AI_AVAILABLE=1]="AI_AVAILABLE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Lx||={});var Px;((L)=>{L[L.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";L[L.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";L[L.FULL=2]="FULL";L[L.RECENT=3]="RECENT";L[L.PUSH_NAME=4]="PUSH_NAME";L[L.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";L[L.ON_DEMAND=6]="ON_DEMAND";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Px||={});var Fx;((J)=>{J[J.FULL=1]="FULL";J[J.TALL=2]="TALL";J[J.COMPACT=3]="COMPACT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Fx||={});var xx;((J)=>{J[J.RASTERIZED_LINK_PREVIEW=1]="RASTERIZED_LINK_PREVIEW";J[J.RASTERIZED_LINK_TRUNCATED=2]="RASTERIZED_LINK_TRUNCATED";J[J.RASTERIZED_LINK_FULL_URL=3]="RASTERIZED_LINK_FULL_URL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xx||={});var kx;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.CHAT_SETTING=1]="CHAT_SETTING";Z[Z.BIZ_SUPPORTS_FB_HOSTING=2]="BIZ_SUPPORTS_FB_HOSTING";Z[Z.UNKNOWN_GROUP=3]="UNKNOWN_GROUP";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kx||={});var Nx;((Z)=>{Z[Z.GENERAL_ERROR=0]="GENERAL_ERROR";Z[Z.SUCCESS=1]="SUCCESS";Z[Z.NOT_FOUND=2]="NOT_FOUND";Z[Z.DECRYPTION_ERROR=3]="DECRYPTION_ERROR";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nx||={});var Rx;((N)=>{N[N.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";N[N.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";N[N.FULL=2]="FULL";N[N.RECENT=3]="RECENT";N[N.PUSH_NAME=4]="PUSH_NAME";N[N.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";N[N.ON_DEMAND=6]="ON_DEMAND";N[N.NO_HISTORY=7]="NO_HISTORY";N[N.MESSAGE_ACCESS_STATUS=8]="MESSAGE_ACCESS_STATUS";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rx||={});var Bx;((Y)=>{Y[Y.SENT=0]="SENT";Y[Y.DELIVERED=1]="DELIVERED";Y[Y.READ=2]="READ";Y[Y.REPLIED=3]="REPLIED";Y[Y.QUICK_REPLIED=4]="QUICK_REPLIED";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bx||={});var Ox;((n)=>{n[n.UPLOAD_STICKER=0]="UPLOAD_STICKER";n[n.SEND_RECENT_STICKER_BOOTSTRAP=1]="SEND_RECENT_STICKER_BOOTSTRAP";n[n.GENERATE_LINK_PREVIEW=2]="GENERATE_LINK_PREVIEW";n[n.HISTORY_SYNC_ON_DEMAND=3]="HISTORY_SYNC_ON_DEMAND";n[n.PLACEHOLDER_MESSAGE_RESEND=4]="PLACEHOLDER_MESSAGE_RESEND";n[n.WAFFLE_LINKING_NONCE_FETCH=5]="WAFFLE_LINKING_NONCE_FETCH";n[n.FULL_HISTORY_SYNC_ON_DEMAND=6]="FULL_HISTORY_SYNC_ON_DEMAND";n[n.COMPANION_META_NONCE_FETCH=7]="COMPANION_META_NONCE_FETCH";n[n.COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8]="COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY";n[n.COMPANION_CANONICAL_USER_NONCE_FETCH=9]="COMPANION_CANONICAL_USER_NONCE_FETCH";n[n.HISTORY_SYNC_CHUNK_RETRY=10]="HISTORY_SYNC_CHUNK_RETRY";n[n.GALAXY_FLOW_ACTION=11]="GALAXY_FLOW_ACTION";n[n.BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO=12]="BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO";n[n.BUSINESS_BROADCAST_INSIGHTS_REFRESH=13]="BUSINESS_BROADCAST_INSIGHTS_REFRESH";n[n.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ox||={});var Ax;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.TEXT=1]="TEXT";J[J.IMAGE=2]="IMAGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ax||={});var Ex;((X)=>{X[X.POLL=0]="POLL";X[X.QUIZ=1]="QUIZ";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ex||={});var Mx;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.AUDIO=1]="AUDIO";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Mx||={});var Wx;((L)=>{L[L.UNKNOWN=0]="UNKNOWN";L[L.EMPTY=1]="EMPTY";L[L.TEXT=2]="TEXT";L[L.DOCUMENT=3]="DOCUMENT";L[L.IMAGE=4]="IMAGE";L[L.VIDEO=5]="VIDEO";L[L.LOCATION=6]="LOCATION";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wx||={});var Ix;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.RESPONSE=1]="RESPONSE";J[J.NATIVE_FLOW=2]="NATIVE_FLOW";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ix||={});var Sx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.DISPLAY_TEXT=1]="DISPLAY_TEXT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Sx||={});var vx;((C)=>{C[C.CONNECTED=0]="CONNECTED";C[C.MISSED=1]="MISSED";C[C.FAILED=2]="FAILED";C[C.REJECTED=3]="REJECTED";C[C.ACCEPTED_ELSEWHERE=4]="ACCEPTED_ELSEWHERE";C[C.ONGOING=5]="ONGOING";C[C.SILENCED_BY_DND=6]="SILENCED_BY_DND";C[C.SILENCED_UNKNOWN_CALLER=7]="SILENCED_UNKNOWN_CALLER";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vx||={});var Tx;((J)=>{J[J.REGULAR=0]="REGULAR";J[J.SCHEDULED_CALL=1]="SCHEDULED_CALL";J[J.VOICE_CHAT=2]="VOICE_CHAT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tx||={});var yx;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.CONTROL_PASSED=1]="CONTROL_PASSED";Z[Z.CONTROL_TAKEN=2]="CONTROL_TAKEN";Z[Z.INFO=3]="INFO";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yx||={});var fx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.SCHEDULED_MESSAGE=1]="SCHEDULED_MESSAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fx||={});var _x;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.GOING=1]="GOING";Z[Z.NOT_GOING=2]="NOT_GOING";Z[Z.MAYBE=3]="MAYBE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_x||={});var hx;((C)=>{C[C.SYSTEM=0]="SYSTEM";C[C.SYSTEM_TEXT=1]="SYSTEM_TEXT";C[C.FB_SCRIPT=2]="FB_SCRIPT";C[C.SYSTEM_BOLD=6]="SYSTEM_BOLD";C[C.MORNINGBREEZE_REGULAR=7]="MORNINGBREEZE_REGULAR";C[C.CALISTOGA_REGULAR=8]="CALISTOGA_REGULAR";C[C.EXO2_EXTRABOLD=9]="EXO2_EXTRABOLD";C[C.COURIERPRIME_BOLD=10]="COURIERPRIME_BOLD";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hx||={});var lx;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.PARENT=1]="PARENT";Z[Z.SUB=2]="SUB";Z[Z.DEFAULT_SUB=3]="DEFAULT_SUB";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lx||={});var px;((G)=>{G[G.NONE=0]="NONE";G[G.VIDEO=1]="VIDEO";G[G.PLACEHOLDER=4]="PLACEHOLDER";G[G.IMAGE=5]="IMAGE";G[G.PAYMENT_LINKS=6]="PAYMENT_LINKS";G[G.PROFILE=7]="PROFILE";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(px||={});var ux;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.PARENT=1]="PARENT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ux||={});var wx;((X)=>{X[X.GREGORIAN=1]="GREGORIAN";X[X.SOLAR_HIJRI=2]="SOLAR_HIJRI";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wx||={});var nx;((L)=>{L[L.MONDAY=1]="MONDAY";L[L.TUESDAY=2]="TUESDAY";L[L.WEDNESDAY=3]="WEDNESDAY";L[L.THURSDAY=4]="THURSDAY";L[L.FRIDAY=5]="FRIDAY";L[L.SATURDAY=6]="SATURDAY";L[L.SUNDAY=7]="SUNDAY";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nx||={});var dx;((Z)=>{Z[Z.USER_IMAGE=0]="USER_IMAGE";Z[Z.AI_GENERATED=1]="AI_GENERATED";Z[Z.AI_MODIFIED=2]="AI_MODIFIED";Z[Z.RASTERIZED_TEXT_STATUS=3]="RASTERIZED_TEXT_STATUS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dx||={});var jx;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.HSCROLL_CARDS=1]="HSCROLL_CARDS";J[J.ALBUM_IMAGE=2]="ALBUM_IMAGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jx||={});var cx;((Z)=>{Z[Z.UNKNOWN_SURFACE=0]="UNKNOWN_SURFACE";Z[Z.FB=1]="FB";Z[Z.IG=2]="IG";Z[Z.WA=3]="WA";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cx||={});var ox;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.EXTENSIONS_1=1]="EXTENSIONS_1";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ox||={});var bx;((X)=>{X[X.IMAGE=0]="IMAGE";X[X.PDF=1]="PDF";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bx||={});var ix;((G)=>{G[G.NONE=0]="NONE";G[G.REEL=1]="REEL";G[G.LIVE_VIDEO=2]="LIVE_VIDEO";G[G.LONG_VIDEO=3]="LONG_VIDEO";G[G.SINGLE_IMAGE=4]="SINGLE_IMAGE";G[G.CAROUSEL=5]="CAROUSEL";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ix||={});var mx;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.SINGLE_SELECT=1]="SINGLE_SELECT";J[J.PRODUCT_LIST=2]="PRODUCT_LIST";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mx||={});var gx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.SINGLE_SELECT=1]="SINGLE_SELECT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gx||={});var tx;((J)=>{J[J.INQUIRY=1]="INQUIRY";J[J.ACCEPTED=2]="ACCEPTED";J[J.DECLINED=3]="DECLINED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tx||={});var rx;((Q)=>{Q[Q.CATALOG=1]="CATALOG";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rx||={});var ax;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.MAPPER=1]="MAPPER";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ax||={});var sx;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.FBPAY=1]="FBPAY";Z[Z.NOVI=2]="NOVI";Z[Z.UPI=3]="UPI";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sx||={});var ex;((X)=>{X[X.LINK_PREVIEW=0]="LINK_PREVIEW";X[X.ORDER=1]="ORDER";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ex||={});var $k;((Y)=>{Y[Y.REMINDER_FREQUENCY_UNKNOWN=0]="REMINDER_FREQUENCY_UNKNOWN";Y[Y.WEEKLY=1]="WEEKLY";Y[Y.BI_WEEKLY=2]="BI_WEEKLY";Y[Y.MONTHLY=3]="MONTHLY";Y[Y.QUARTERLY=4]="QUARTERLY";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})($k||={});var Kk;((G)=>{G[G.REMINDER_STATUS_UNKNOWN=0]="REMINDER_STATUS_UNKNOWN";G[G.ACTIVE=1]="ACTIVE";G[G.CANCELLED_BY_CREATOR=2]="CANCELLED_BY_CREATOR";G[G.STOPPED_BY_RECEIVER=3]="STOPPED_BY_RECEIVER";G[G.EXPIRED=4]="EXPIRED";G[G.PAID=5]="PAID";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Kk||={});var Qk;((X)=>{X[X.NOTIFY_LAUNCH=1]="NOTIFY_LAUNCH";X[X.DOWNLOAD_RESPONSES=2]="DOWNLOAD_RESPONSES";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Qk||={});var Zk;((C)=>{C[C.REQUEST_SUCCESS=0]="REQUEST_SUCCESS";C[C.REQUEST_TIME_EXPIRED=1]="REQUEST_TIME_EXPIRED";C[C.DECLINED_SHARING_HISTORY=2]="DECLINED_SHARING_HISTORY";C[C.GENERIC_ERROR=3]="GENERIC_ERROR";C[C.ERROR_REQUEST_ON_NON_SMB_PRIMARY=4]="ERROR_REQUEST_ON_NON_SMB_PRIMARY";C[C.ERROR_HOSTED_DEVICE_NOT_CONNECTED=5]="ERROR_HOSTED_DEVICE_NOT_CONNECTED";C[C.ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET=6]="ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET";C[C.ERROR_MULTI_PROVIDER_NOT_CONFIGURED=7]="ERROR_MULTI_PROVIDER_NOT_CONFIGURED";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zk||={});var Jk;((G)=>{G[G.GENERATION_ERROR=1]="GENERATION_ERROR";G[G.CHUNK_CONSUMED=2]="CHUNK_CONSUMED";G[G.TIMEOUT=3]="TIMEOUT";G[G.SESSION_EXHAUSTED=4]="SESSION_EXHAUSTED";G[G.CHUNK_EXHAUSTED=5]="CHUNK_EXHAUSTED";G[G.DUPLICATED_REQUEST=6]="DUPLICATED_REQUEST";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jk||={});var Xk;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.PIN_FOR_ALL=1]="PIN_FOR_ALL";J[J.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Xk||={});var qk;((Q)=>{Q[Q.MASK_LINKED_DEVICES=0]="MASK_LINKED_DEVICES";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qk||={});var Yk;((h)=>{h[h.REVOKE=0]="REVOKE";h[h.EPHEMERAL_SETTING=3]="EPHEMERAL_SETTING";h[h.EPHEMERAL_SYNC_RESPONSE=4]="EPHEMERAL_SYNC_RESPONSE";h[h.HISTORY_SYNC_NOTIFICATION=5]="HISTORY_SYNC_NOTIFICATION";h[h.APP_STATE_SYNC_KEY_SHARE=6]="APP_STATE_SYNC_KEY_SHARE";h[h.APP_STATE_SYNC_KEY_REQUEST=7]="APP_STATE_SYNC_KEY_REQUEST";h[h.MSG_FANOUT_BACKFILL_REQUEST=8]="MSG_FANOUT_BACKFILL_REQUEST";h[h.INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC=9]="INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC";h[h.APP_STATE_FATAL_EXCEPTION_NOTIFICATION=10]="APP_STATE_FATAL_EXCEPTION_NOTIFICATION";h[h.SHARE_PHONE_NUMBER=11]="SHARE_PHONE_NUMBER";h[h.MESSAGE_EDIT=14]="MESSAGE_EDIT";h[h.PEER_DATA_OPERATION_REQUEST_MESSAGE=16]="PEER_DATA_OPERATION_REQUEST_MESSAGE";h[h.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE=17]="PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE";h[h.REQUEST_WELCOME_MESSAGE=18]="REQUEST_WELCOME_MESSAGE";h[h.BOT_FEEDBACK_MESSAGE=19]="BOT_FEEDBACK_MESSAGE";h[h.MEDIA_NOTIFY_MESSAGE=20]="MEDIA_NOTIFY_MESSAGE";h[h.CLOUD_API_THREAD_CONTROL_NOTIFICATION=21]="CLOUD_API_THREAD_CONTROL_NOTIFICATION";h[h.LID_MIGRATION_MAPPING_SYNC=22]="LID_MIGRATION_MAPPING_SYNC";h[h.REMINDER_MESSAGE=23]="REMINDER_MESSAGE";h[h.BOT_MEMU_ONBOARDING_MESSAGE=24]="BOT_MEMU_ONBOARDING_MESSAGE";h[h.STATUS_MENTION_MESSAGE=25]="STATUS_MENTION_MESSAGE";h[h.STOP_GENERATION_MESSAGE=26]="STOP_GENERATION_MESSAGE";h[h.LIMIT_SHARING=27]="LIMIT_SHARING";h[h.AI_PSI_METADATA=28]="AI_PSI_METADATA";h[h.AI_QUERY_FANOUT=29]="AI_QUERY_FANOUT";h[h.GROUP_MEMBER_LABEL_CHANGE=30]="GROUP_MEMBER_LABEL_CHANGE";h[h.AI_MEDIA_COLLECTION_MESSAGE=31]="AI_MEDIA_COLLECTION_MESSAGE";h[h.MESSAGE_UNSCHEDULE=32]="MESSAGE_UNSCHEDULE";h[h.CHAT_THEME_SETTING=34]="CHAT_THEME_SETTING";h[h.AI_METADATA_OPERATION=35]="AI_METADATA_OPERATION";h[h.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Yk||={});var Hk;((X)=>{X[X.EMPTY=0]="EMPTY";X[X.NON_EMPTY=1]="NON_EMPTY";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Hk||={});var zk;((X)=>{X[X.CHAT_OPEN=0]="CHAT_OPEN";X[X.COMPANION_PAIRING=1]="COMPANION_PAIRING";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zk||={});var Vk;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.VOICE=1]="VOICE";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Vk||={});var Gk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.CANCEL=1]="CANCEL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Gk||={});var Uk;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.EVENT_EDIT=1]="EVENT_EDIT";G[G.MESSAGE_EDIT=2]="MESSAGE_EDIT";G[G.MESSAGE_SCHEDULE=3]="MESSAGE_SCHEDULE";G[G.POLL_EDIT=4]="POLL_EDIT";G[G.POLL_ADD_OPTION=5]="POLL_ADD_OPTION";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Uk||={});var Ck;((X)=>{X[X.PENDING=0]="PENDING";X[X.PAID=1]="PAID";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ck||={});var Dk;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.STATUS_ADD_YOURS=1]="STATUS_ADD_YOURS";Z[Z.STATUS_RESHARE=2]="STATUS_RESHARE";Z[Z.STATUS_QUESTION_ANSWER_RESHARE=3]="STATUS_QUESTION_ANSWER_RESHARE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Dk||={});var Lk;((Q)=>{Q[Q.QUESTION_ANSWER=1]="QUESTION_ANSWER";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Lk||={});var Pk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.REACTION=1]="REACTION";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Pk||={});var Fk;((J)=>{J[J.FIRST_PARTY=0]="FIRST_PARTY";J[J.THIRD_PARTY=1]="THIRD_PARTY";J[J.USER_CREATED=2]="USER_CREATED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Fk||={});var xk;((Z)=>{Z[Z.NONE=0]="NONE";Z[Z.GIPHY=1]="GIPHY";Z[Z.TENOR=2]="TENOR";Z[Z.KLIPY=3]="KLIPY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xk||={});var kk;((X)=>{X[X.USER_VIDEO=0]="USER_VIDEO";X[X.AI_GENERATED=1]="AI_GENERATED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kk||={});var Nk;((Y)=>{Y[Y.UNDEFINED=0]="UNDEFINED";Y[Y.REACTION=1]="REACTION";Y[Y.EVENT_RESPONSE=2]="EVENT_RESPONSE";Y[Y.POLL_UPDATE=3]="POLL_UPDATE";Y[Y.PIN_IN_CHAT=4]="PIN_IN_CHAT";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nk||={});var Rk;((l)=>{l[l.UNKNOWN=0]="UNKNOWN";l[l.MEDIA_ALBUM=1]="MEDIA_ALBUM";l[l.BOT_PLUGIN=2]="BOT_PLUGIN";l[l.EVENT_COVER_IMAGE=3]="EVENT_COVER_IMAGE";l[l.STATUS_POLL=4]="STATUS_POLL";l[l.HD_VIDEO_DUAL_UPLOAD=5]="HD_VIDEO_DUAL_UPLOAD";l[l.STATUS_EXTERNAL_RESHARE=6]="STATUS_EXTERNAL_RESHARE";l[l.MEDIA_POLL=7]="MEDIA_POLL";l[l.STATUS_ADD_YOURS=8]="STATUS_ADD_YOURS";l[l.STATUS_NOTIFICATION=9]="STATUS_NOTIFICATION";l[l.HD_IMAGE_DUAL_UPLOAD=10]="HD_IMAGE_DUAL_UPLOAD";l[l.STICKER_ANNOTATION=11]="STICKER_ANNOTATION";l[l.MOTION_PHOTO=12]="MOTION_PHOTO";l[l.STATUS_LINK_ACTION=13]="STATUS_LINK_ACTION";l[l.VIEW_ALL_REPLIES=14]="VIEW_ALL_REPLIES";l[l.STATUS_ADD_YOURS_AI_IMAGINE=15]="STATUS_ADD_YOURS_AI_IMAGINE";l[l.STATUS_QUESTION=16]="STATUS_QUESTION";l[l.STATUS_ADD_YOURS_DIWALI=17]="STATUS_ADD_YOURS_DIWALI";l[l.STATUS_REACTION=18]="STATUS_REACTION";l[l.HEVC_VIDEO_DUAL_UPLOAD=19]="HEVC_VIDEO_DUAL_UPLOAD";l[l.POLL_ADD_OPTION=20]="POLL_ADD_OPTION";l[l.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rk||={});var Bk;((X)=>{X[X.STATIC=1]="STATIC";X[X.DEPENDENT_ON_PARENT=2]="DEPENDENT_ON_PARENT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bk||={});var Ok;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.TEXT=1]="TEXT";J[J.IMAGE=2]="IMAGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ok||={});var Ak;((X)=>{X[X.POLL=0]="POLL";X[X.QUIZ=1]="QUIZ";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ak||={});var Ek;((X)=>{X[X.LEFT=0]="LEFT";X[X.REMOVED=1]="REMOVED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ek||={});var Mk;((O)=>{O[O.ANDROID=0]="ANDROID";O[O.SMBA=1]="SMBA";O[O.IPHONE=2]="IPHONE";O[O.SMBI=3]="SMBI";O[O.WEB=4]="WEB";O[O.UWP=5]="UWP";O[O.DARWIN=6]="DARWIN";O[O.IPAD=7]="IPAD";O[O.WEAROS=8]="WEAROS";O[O.WASG=9]="WASG";O[O.WEARM=10]="WEARM";O[O.CAPI=11]="CAPI";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Mk||={});var Wk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.DEFAULT=1]="DEFAULT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wk||={});var Ik;((X)=>{X[X.UNKNOWN_CURRENCY=0]="UNKNOWN_CURRENCY";X[X.INR=1]="INR";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ik||={});var Sk;((O)=>{O[O.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";O[O.PROCESSING=1]="PROCESSING";O[O.SENT=2]="SENT";O[O.NEED_TO_ACCEPT=3]="NEED_TO_ACCEPT";O[O.COMPLETE=4]="COMPLETE";O[O.COULD_NOT_COMPLETE=5]="COULD_NOT_COMPLETE";O[O.REFUNDED=6]="REFUNDED";O[O.EXPIRED=7]="EXPIRED";O[O.REJECTED=8]="REJECTED";O[O.CANCELLED=9]="CANCELLED";O[O.WAITING_FOR_PAYER=10]="WAITING_FOR_PAYER";O[O.WAITING=11]="WAITING";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Sk||={});var vk;((_)=>{_[_.UNKNOWN=0]="UNKNOWN";_[_.PENDING_SETUP=1]="PENDING_SETUP";_[_.PENDING_RECEIVER_SETUP=2]="PENDING_RECEIVER_SETUP";_[_.INIT=3]="INIT";_[_.SUCCESS=4]="SUCCESS";_[_.COMPLETED=5]="COMPLETED";_[_.FAILED=6]="FAILED";_[_.FAILED_RISK=7]="FAILED_RISK";_[_.FAILED_PROCESSING=8]="FAILED_PROCESSING";_[_.FAILED_RECEIVER_PROCESSING=9]="FAILED_RECEIVER_PROCESSING";_[_.FAILED_DA=10]="FAILED_DA";_[_.FAILED_DA_FINAL=11]="FAILED_DA_FINAL";_[_.REFUNDED_TXN=12]="REFUNDED_TXN";_[_.REFUND_FAILED=13]="REFUND_FAILED";_[_.REFUND_FAILED_PROCESSING=14]="REFUND_FAILED_PROCESSING";_[_.REFUND_FAILED_DA=15]="REFUND_FAILED_DA";_[_.EXPIRED_TXN=16]="EXPIRED_TXN";_[_.AUTH_CANCELED=17]="AUTH_CANCELED";_[_.AUTH_CANCEL_FAILED_PROCESSING=18]="AUTH_CANCEL_FAILED_PROCESSING";_[_.AUTH_CANCEL_FAILED=19]="AUTH_CANCEL_FAILED";_[_.COLLECT_INIT=20]="COLLECT_INIT";_[_.COLLECT_SUCCESS=21]="COLLECT_SUCCESS";_[_.COLLECT_FAILED=22]="COLLECT_FAILED";_[_.COLLECT_FAILED_RISK=23]="COLLECT_FAILED_RISK";_[_.COLLECT_REJECTED=24]="COLLECT_REJECTED";_[_.COLLECT_EXPIRED=25]="COLLECT_EXPIRED";_[_.COLLECT_CANCELED=26]="COLLECT_CANCELED";_[_.COLLECT_CANCELLING=27]="COLLECT_CANCELLING";_[_.IN_REVIEW=28]="IN_REVIEW";_[_.REVERSAL_SUCCESS=29]="REVERSAL_SUCCESS";_[_.REVERSAL_PENDING=30]="REVERSAL_PENDING";_[_.REFUND_PENDING=31]="REFUND_PENDING";_[_.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vk||={});var Tk;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.PIN_FOR_ALL=1]="PIN_FOR_ALL";J[J.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tk||={});var yk;((Z)=>{Z[Z.UNDEFINED=0]="UNDEFINED";Z[Z.LOW=1]="LOW";Z[Z.MID=2]="MID";Z[Z.HIGH=3]="HIGH";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yk||={});var fk;((J)=>{J[J.AND=1]="AND";J[J.OR=2]="OR";J[J.NOR=3]="NOR";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fk||={});var _k;((X)=>{X[X.PASS_BY_DEFAULT=1]="PASS_BY_DEFAULT";X[X.FAIL_BY_DEFAULT=2]="FAIL_BY_DEFAULT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_k||={});var hk;((J)=>{J[J.TRUE=1]="TRUE";J[J.FALSE=2]="FALSE";J[J.UNKNOWN=3]="UNKNOWN";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hk||={});var lk;((O)=>{O[O.UNKNOWN=0]="UNKNOWN";O[O.RESHARE=1]="RESHARE";O[O.EXTERNAL_SHARE=2]="EXTERNAL_SHARE";O[O.MUSIC=3]="MUSIC";O[O.STATUS_MENTION=4]="STATUS_MENTION";O[O.GROUP_STATUS=5]="GROUP_STATUS";O[O.RL_ATTRIBUTION=6]="RL_ATTRIBUTION";O[O.AI_CREATED=7]="AI_CREATED";O[O.LAYOUTS=8]="LAYOUTS";O[O.NEWSLETTER_STATUS=9]="NEWSLETTER_STATUS";O[O.STATUS_CLOSE_SHARING=10]="STATUS_CLOSE_SHARING";O[O.PAID_PARTNERSHIP=11]="PAID_PARTNERSHIP";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lk||={});var pk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.STATUS_MIMICRY=1]="STATUS_MIMICRY";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pk||={});var uk;((M)=>{M[M.UNKNOWN=0]="UNKNOWN";M[M.INSTAGRAM=1]="INSTAGRAM";M[M.FACEBOOK=2]="FACEBOOK";M[M.MESSENGER=3]="MESSENGER";M[M.SPOTIFY=4]="SPOTIFY";M[M.YOUTUBE=5]="YOUTUBE";M[M.PINTEREST=6]="PINTEREST";M[M.THREADS=7]="THREADS";M[M.APPLE_MUSIC=8]="APPLE_MUSIC";M[M.SHARECHAT=9]="SHARECHAT";M[M.GOOGLE_PHOTOS=10]="GOOGLE_PHOTOS";M[M.SOUNDCLOUD=11]="SOUNDCLOUD";M[M.SHAZAM=12]="SHAZAM";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uk||={});var wk;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.RAY_BAN_META_GLASSES=1]="RAY_BAN_META_GLASSES";Z[Z.OAKLEY_META_GLASSES=2]="OAKLEY_META_GLASSES";Z[Z.HYPERNOVA_GLASSES=3]="HYPERNOVA_GLASSES";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wk||={});var nk;((Y)=>{Y[Y.UNKNOWN=0]="UNKNOWN";Y[Y.INTERNAL_RESHARE=1]="INTERNAL_RESHARE";Y[Y.MENTION_RESHARE=2]="MENTION_RESHARE";Y[Y.CHANNEL_RESHARE=3]="CHANNEL_RESHARE";Y[Y.FORWARD=4]="FORWARD";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nk||={});var dk;((Y)=>{Y[Y.DRAFT=1]="DRAFT";Y[Y.SCHEDULED=2]="SCHEDULED";Y[Y.PROCESSING=3]="PROCESSING";Y[Y.FAILED=4]="FAILED";Y[Y.SENT=5]="SENT";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dk||={});var jk;((J)=>{J[J.UPDATED=0]="UPDATED";J[J.CREATED=1]="CREATED";J[J.DELETED=2]="DELETED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jk||={});var ck;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.INSTRUCTIONS=1]="INSTRUCTIONS";G[G.RESPONSE_SETTINGS=2]="RESPONSE_SETTINGS";G[G.EXAMPLE_RESPONSES=3]="EXAMPLE_RESPONSES";G[G.KNOWLEDGE=4]="KNOWLEDGE";G[G.LEAD_GEN=5]="LEAD_GEN";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ck||={});var ok;((Q)=>{Q[Q.DISABLE_CTA=1]="DISABLE_CTA";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ok||={});var bk;((d)=>{d[d.NONE=0]="NONE";d[d.UNREAD=1]="UNREAD";d[d.GROUPS=2]="GROUPS";d[d.FAVORITES=3]="FAVORITES";d[d.PREDEFINED=4]="PREDEFINED";d[d.CUSTOM=5]="CUSTOM";d[d.COMMUNITY=6]="COMMUNITY";d[d.SERVER_ASSIGNED=7]="SERVER_ASSIGNED";d[d.DRAFTED=8]="DRAFTED";d[d.AI_HANDOFF=9]="AI_HANDOFF";d[d.CHANNELS=10]="CHANNELS";d[d.AI_RESPONDING=11]="AI_RESPONDING";d[d.ARCHIVED=12]="ARCHIVED";d[d.LOCKED=13]="LOCKED";d[d.INVITES=14]="INVITES";d[d.THIRD_PARTY=15]="THIRD_PARTY";d[d.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bk||={});var ik;((J)=>{J[J.ENABLED=0]="ENABLED";J[J.ENABLED_HAS_LEARNING=1]="ENABLED_HAS_LEARNING";J[J.DISABLED=2]="DISABLED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ik||={});var mk;((J)=>{J[J.MUTED=0]="MUTED";J[J.AI_AGENT=1]="AI_AGENT";J[J.SUGGESTIONS=2]="SUGGESTIONS";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mk||={});var gk;((Q)=>{Q[Q.PERSONALIZED=0]="PERSONALIZED";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gk||={});var tk;((X)=>{X[X.ACTIVE=0]="ACTIVE";X[X.INACTIVE=1]="INACTIVE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tk||={});var rk;((X)=>{X[X.UNSTRUCTURED=1]="UNSTRUCTURED";X[X.STRUCTURED=2]="STRUCTURED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rk||={});var ak;((Z)=>{Z[Z.DEFAULT_ALL_MESSAGES=0]="DEFAULT_ALL_MESSAGES";Z[Z.ALL_MESSAGES=1]="ALL_MESSAGES";Z[Z.HIGHLIGHTS=2]="HIGHLIGHTS";Z[Z.DEFAULT_HIGHLIGHTS=3]="DEFAULT_HIGHLIGHTS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ak||={});var sk;((Q)=>{Q[Q.BR_PAY_PRIVACY_POLICY=0]="BR_PAY_PRIVACY_POLICY";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sk||={});var ek;((J)=>{J[J.UNDEFINED=0]="UNDEFINED";J[J.ENABLED=1]="ENABLED";J[J.DISABLED=2]="DISABLED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ek||={});var $N;((Z)=>{Z[Z.DISPLAY_MODE_UNKNOWN=0]="DISPLAY_MODE_UNKNOWN";Z[Z.ALWAYS=1]="ALWAYS";Z[Z.NEVER=2]="NEVER";Z[Z.ONLY_WHEN_APP_IS_OPEN=3]="ONLY_WHEN_APP_IS_OPEN";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})($N||={});var KN;((J)=>{J[J.MEDIA_QUALITY_UNKNOWN=0]="MEDIA_QUALITY_UNKNOWN";J[J.STANDARD=1]="STANDARD";J[J.HD=2]="HD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KN||={});var QN;((f)=>{f[f.SETTING_KEY_UNKNOWN=0]="SETTING_KEY_UNKNOWN";f[f.START_AT_LOGIN=1]="START_AT_LOGIN";f[f.MINIMIZE_TO_TRAY=2]="MINIMIZE_TO_TRAY";f[f.LANGUAGE=3]="LANGUAGE";f[f.REPLACE_TEXT_WITH_EMOJI=4]="REPLACE_TEXT_WITH_EMOJI";f[f.BANNER_NOTIFICATION_DISPLAY_MODE=5]="BANNER_NOTIFICATION_DISPLAY_MODE";f[f.UNREAD_COUNTER_BADGE_DISPLAY_MODE=6]="UNREAD_COUNTER_BADGE_DISPLAY_MODE";f[f.IS_MESSAGES_NOTIFICATION_ENABLED=7]="IS_MESSAGES_NOTIFICATION_ENABLED";f[f.IS_CALLS_NOTIFICATION_ENABLED=8]="IS_CALLS_NOTIFICATION_ENABLED";f[f.IS_REACTIONS_NOTIFICATION_ENABLED=9]="IS_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_STATUS_REACTIONS_NOTIFICATION_ENABLED=10]="IS_STATUS_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED=11]="IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED";f[f.DEFAULT_NOTIFICATION_TONE_ID=12]="DEFAULT_NOTIFICATION_TONE_ID";f[f.GROUP_DEFAULT_NOTIFICATION_TONE_ID=13]="GROUP_DEFAULT_NOTIFICATION_TONE_ID";f[f.APP_THEME=14]="APP_THEME";f[f.WALLPAPER_ID=15]="WALLPAPER_ID";f[f.IS_DOODLE_WALLPAPER_ENABLED=16]="IS_DOODLE_WALLPAPER_ENABLED";f[f.FONT_SIZE=17]="FONT_SIZE";f[f.IS_PHOTOS_AUTODOWNLOAD_ENABLED=18]="IS_PHOTOS_AUTODOWNLOAD_ENABLED";f[f.IS_AUDIOS_AUTODOWNLOAD_ENABLED=19]="IS_AUDIOS_AUTODOWNLOAD_ENABLED";f[f.IS_VIDEOS_AUTODOWNLOAD_ENABLED=20]="IS_VIDEOS_AUTODOWNLOAD_ENABLED";f[f.IS_DOCUMENTS_AUTODOWNLOAD_ENABLED=21]="IS_DOCUMENTS_AUTODOWNLOAD_ENABLED";f[f.DISABLE_LINK_PREVIEWS=22]="DISABLE_LINK_PREVIEWS";f[f.NOTIFICATION_TONE_ID=23]="NOTIFICATION_TONE_ID";f[f.MEDIA_UPLOAD_QUALITY=24]="MEDIA_UPLOAD_QUALITY";f[f.IS_SPELL_CHECK_ENABLED=25]="IS_SPELL_CHECK_ENABLED";f[f.IS_ENTER_TO_SEND_ENABLED=26]="IS_ENTER_TO_SEND_ENABLED";f[f.IS_GROUP_MESSAGE_NOTIFICATION_ENABLED=27]="IS_GROUP_MESSAGE_NOTIFICATION_ENABLED";f[f.IS_GROUP_REACTIONS_NOTIFICATION_ENABLED=28]="IS_GROUP_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_STATUS_NOTIFICATION_ENABLED=29]="IS_STATUS_NOTIFICATION_ENABLED";f[f.STATUS_NOTIFICATION_TONE_ID=30]="STATUS_NOTIFICATION_TONE_ID";f[f.SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION=31]="SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION";f[f.CHAT_THEME_ID=32]="CHAT_THEME_ID";f[f.COLOR_SCHEME_ID=33]="COLOR_SCHEME_ID";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QN||={});var ZN;((Y)=>{Y[Y.PLATFORM_UNKNOWN=0]="PLATFORM_UNKNOWN";Y[Y.WEB=1]="WEB";Y[Y.HYBRID=2]="HYBRID";Y[Y.WINDOWS=3]="WINDOWS";Y[Y.MAC=4]="MAC";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZN||={});var JN;((Y)=>{Y[Y.ALLOW_LIST=0]="ALLOW_LIST";Y[Y.DENY_LIST=1]="DENY_LIST";Y[Y.CONTACTS=2]="CONTACTS";Y[Y.CLOSE_FRIENDS=3]="CLOSE_FRIENDS";Y[Y.CUSTOM_LIST=4]="CUSTOM_LIST";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JN||={});var XN;((X)=>{X[X.LID=1]="LID";X[X.PN=2]="PN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XN||={});var qN;((J)=>{J[J.ACTIVE=0]="ACTIVE";J[J.PAUSED=1]="PAUSED";J[J.UNLINKED=2]="UNLINKED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qN||={});var YN;((X)=>{X[X.SET=0]="SET";X[X.REMOVE=1]="REMOVE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YN||={});var HN;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.VIEW_REPLIES=1]="VIEW_REPLIES";J[J.AI_THREAD=2]="AI_THREAD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HN||={});var zN;((X)=>{X[X.UTF8=0]="UTF8";X[X.UTF8_BROKEN=1]="UTF8_BROKEN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zN||={});var VN;((J)=>{J[J.NONE=0]="NONE";J[J.PBKDF2_HMAC_SHA512=1]="PBKDF2_HMAC_SHA512";J[J.PBKDF2_HMAC_SHA384=2]="PBKDF2_HMAC_SHA384";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VN||={});var GN;((Z)=>{Z[Z.NOT_STARTED=0]="NOT_STARTED";Z[Z.FORCE_UPGRADE=1]="FORCE_UPGRADE";Z[Z.DEVELOPMENT=2]="DEVELOPMENT";Z[Z.PRODUCTION=3]="PRODUCTION";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GN||={});var UN;((Z)=>{Z[Z.E2EE=0]="E2EE";Z[Z.FB=2]="FB";Z[Z.BSP=1]="BSP";Z[Z.BSP_AND_FB=3]="BSP_AND_FB";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UN||={});var CN;((G)=>{G[G.ERROR=0]="ERROR";G[G.PENDING=1]="PENDING";G[G.SERVER_ACK=2]="SERVER_ACK";G[G.DELIVERY_ACK=3]="DELIVERY_ACK";G[G.READ=4]="READ";G[G.PLAYED=5]="PLAYED";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CN||={});var DN;((V)=>{V[V.UNKNOWN=0]="UNKNOWN";V[V.REVOKE=1]="REVOKE";V[V.CIPHERTEXT=2]="CIPHERTEXT";V[V.FUTUREPROOF=3]="FUTUREPROOF";V[V.NON_VERIFIED_TRANSITION=4]="NON_VERIFIED_TRANSITION";V[V.UNVERIFIED_TRANSITION=5]="UNVERIFIED_TRANSITION";V[V.VERIFIED_TRANSITION=6]="VERIFIED_TRANSITION";V[V.VERIFIED_LOW_UNKNOWN=7]="VERIFIED_LOW_UNKNOWN";V[V.VERIFIED_HIGH=8]="VERIFIED_HIGH";V[V.VERIFIED_INITIAL_UNKNOWN=9]="VERIFIED_INITIAL_UNKNOWN";V[V.VERIFIED_INITIAL_LOW=10]="VERIFIED_INITIAL_LOW";V[V.VERIFIED_INITIAL_HIGH=11]="VERIFIED_INITIAL_HIGH";V[V.VERIFIED_TRANSITION_ANY_TO_NONE=12]="VERIFIED_TRANSITION_ANY_TO_NONE";V[V.VERIFIED_TRANSITION_ANY_TO_HIGH=13]="VERIFIED_TRANSITION_ANY_TO_HIGH";V[V.VERIFIED_TRANSITION_HIGH_TO_LOW=14]="VERIFIED_TRANSITION_HIGH_TO_LOW";V[V.VERIFIED_TRANSITION_HIGH_TO_UNKNOWN=15]="VERIFIED_TRANSITION_HIGH_TO_UNKNOWN";V[V.VERIFIED_TRANSITION_UNKNOWN_TO_LOW=16]="VERIFIED_TRANSITION_UNKNOWN_TO_LOW";V[V.VERIFIED_TRANSITION_LOW_TO_UNKNOWN=17]="VERIFIED_TRANSITION_LOW_TO_UNKNOWN";V[V.VERIFIED_TRANSITION_NONE_TO_LOW=18]="VERIFIED_TRANSITION_NONE_TO_LOW";V[V.VERIFIED_TRANSITION_NONE_TO_UNKNOWN=19]="VERIFIED_TRANSITION_NONE_TO_UNKNOWN";V[V.GROUP_CREATE=20]="GROUP_CREATE";V[V.GROUP_CHANGE_SUBJECT=21]="GROUP_CHANGE_SUBJECT";V[V.GROUP_CHANGE_ICON=22]="GROUP_CHANGE_ICON";V[V.GROUP_CHANGE_INVITE_LINK=23]="GROUP_CHANGE_INVITE_LINK";V[V.GROUP_CHANGE_DESCRIPTION=24]="GROUP_CHANGE_DESCRIPTION";V[V.GROUP_CHANGE_RESTRICT=25]="GROUP_CHANGE_RESTRICT";V[V.GROUP_CHANGE_ANNOUNCE=26]="GROUP_CHANGE_ANNOUNCE";V[V.GROUP_PARTICIPANT_ADD=27]="GROUP_PARTICIPANT_ADD";V[V.GROUP_PARTICIPANT_REMOVE=28]="GROUP_PARTICIPANT_REMOVE";V[V.GROUP_PARTICIPANT_PROMOTE=29]="GROUP_PARTICIPANT_PROMOTE";V[V.GROUP_PARTICIPANT_DEMOTE=30]="GROUP_PARTICIPANT_DEMOTE";V[V.GROUP_PARTICIPANT_INVITE=31]="GROUP_PARTICIPANT_INVITE";V[V.GROUP_PARTICIPANT_LEAVE=32]="GROUP_PARTICIPANT_LEAVE";V[V.GROUP_PARTICIPANT_CHANGE_NUMBER=33]="GROUP_PARTICIPANT_CHANGE_NUMBER";V[V.BROADCAST_CREATE=34]="BROADCAST_CREATE";V[V.BROADCAST_ADD=35]="BROADCAST_ADD";V[V.BROADCAST_REMOVE=36]="BROADCAST_REMOVE";V[V.GENERIC_NOTIFICATION=37]="GENERIC_NOTIFICATION";V[V.E2E_IDENTITY_CHANGED=38]="E2E_IDENTITY_CHANGED";V[V.E2E_ENCRYPTED=39]="E2E_ENCRYPTED";V[V.CALL_MISSED_VOICE=40]="CALL_MISSED_VOICE";V[V.CALL_MISSED_VIDEO=41]="CALL_MISSED_VIDEO";V[V.INDIVIDUAL_CHANGE_NUMBER=42]="INDIVIDUAL_CHANGE_NUMBER";V[V.GROUP_DELETE=43]="GROUP_DELETE";V[V.GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE=44]="GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE";V[V.CALL_MISSED_GROUP_VOICE=45]="CALL_MISSED_GROUP_VOICE";V[V.CALL_MISSED_GROUP_VIDEO=46]="CALL_MISSED_GROUP_VIDEO";V[V.PAYMENT_CIPHERTEXT=47]="PAYMENT_CIPHERTEXT";V[V.PAYMENT_FUTUREPROOF=48]="PAYMENT_FUTUREPROOF";V[V.PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED=49]="PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED";V[V.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED=50]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED";V[V.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED=51]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED";V[V.PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP=52]="PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP";V[V.PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP=53]="PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP";V[V.PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER=54]="PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER";V[V.PAYMENT_ACTION_SEND_PAYMENT_REMINDER=55]="PAYMENT_ACTION_SEND_PAYMENT_REMINDER";V[V.PAYMENT_ACTION_SEND_PAYMENT_INVITATION=56]="PAYMENT_ACTION_SEND_PAYMENT_INVITATION";V[V.PAYMENT_ACTION_REQUEST_DECLINED=57]="PAYMENT_ACTION_REQUEST_DECLINED";V[V.PAYMENT_ACTION_REQUEST_EXPIRED=58]="PAYMENT_ACTION_REQUEST_EXPIRED";V[V.PAYMENT_ACTION_REQUEST_CANCELLED=59]="PAYMENT_ACTION_REQUEST_CANCELLED";V[V.BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM=60]="BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM";V[V.BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP=61]="BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP";V[V.BIZ_INTRO_TOP=62]="BIZ_INTRO_TOP";V[V.BIZ_INTRO_BOTTOM=63]="BIZ_INTRO_BOTTOM";V[V.BIZ_NAME_CHANGE=64]="BIZ_NAME_CHANGE";V[V.BIZ_MOVE_TO_CONSUMER_APP=65]="BIZ_MOVE_TO_CONSUMER_APP";V[V.BIZ_TWO_TIER_MIGRATION_TOP=66]="BIZ_TWO_TIER_MIGRATION_TOP";V[V.BIZ_TWO_TIER_MIGRATION_BOTTOM=67]="BIZ_TWO_TIER_MIGRATION_BOTTOM";V[V.OVERSIZED=68]="OVERSIZED";V[V.GROUP_CHANGE_NO_FREQUENTLY_FORWARDED=69]="GROUP_CHANGE_NO_FREQUENTLY_FORWARDED";V[V.GROUP_V4_ADD_INVITE_SENT=70]="GROUP_V4_ADD_INVITE_SENT";V[V.GROUP_PARTICIPANT_ADD_REQUEST_JOIN=71]="GROUP_PARTICIPANT_ADD_REQUEST_JOIN";V[V.CHANGE_EPHEMERAL_SETTING=72]="CHANGE_EPHEMERAL_SETTING";V[V.E2E_DEVICE_CHANGED=73]="E2E_DEVICE_CHANGED";V[V.VIEWED_ONCE=74]="VIEWED_ONCE";V[V.E2E_ENCRYPTED_NOW=75]="E2E_ENCRYPTED_NOW";V[V.BLUE_MSG_BSP_FB_TO_BSP_PREMISE=76]="BLUE_MSG_BSP_FB_TO_BSP_PREMISE";V[V.BLUE_MSG_BSP_FB_TO_SELF_FB=77]="BLUE_MSG_BSP_FB_TO_SELF_FB";V[V.BLUE_MSG_BSP_FB_TO_SELF_PREMISE=78]="BLUE_MSG_BSP_FB_TO_SELF_PREMISE";V[V.BLUE_MSG_BSP_FB_UNVERIFIED=79]="BLUE_MSG_BSP_FB_UNVERIFIED";V[V.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=80]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";V[V.BLUE_MSG_BSP_FB_VERIFIED=81]="BLUE_MSG_BSP_FB_VERIFIED";V[V.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=82]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE=83]="BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE";V[V.BLUE_MSG_BSP_PREMISE_UNVERIFIED=84]="BLUE_MSG_BSP_PREMISE_UNVERIFIED";V[V.BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=85]="BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";V[V.BLUE_MSG_BSP_PREMISE_VERIFIED=86]="BLUE_MSG_BSP_PREMISE_VERIFIED";V[V.BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=87]="BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED=88]="BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED";V[V.BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED=89]="BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED";V[V.BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED=90]="BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED";V[V.BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED=91]="BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_SELF_FB_TO_BSP_PREMISE=92]="BLUE_MSG_SELF_FB_TO_BSP_PREMISE";V[V.BLUE_MSG_SELF_FB_TO_SELF_PREMISE=93]="BLUE_MSG_SELF_FB_TO_SELF_PREMISE";V[V.BLUE_MSG_SELF_FB_UNVERIFIED=94]="BLUE_MSG_SELF_FB_UNVERIFIED";V[V.BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=95]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";V[V.BLUE_MSG_SELF_FB_VERIFIED=96]="BLUE_MSG_SELF_FB_VERIFIED";V[V.BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=97]="BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE=98]="BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE";V[V.BLUE_MSG_SELF_PREMISE_UNVERIFIED=99]="BLUE_MSG_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_SELF_PREMISE_VERIFIED=100]="BLUE_MSG_SELF_PREMISE_VERIFIED";V[V.BLUE_MSG_TO_BSP_FB=101]="BLUE_MSG_TO_BSP_FB";V[V.BLUE_MSG_TO_CONSUMER=102]="BLUE_MSG_TO_CONSUMER";V[V.BLUE_MSG_TO_SELF_FB=103]="BLUE_MSG_TO_SELF_FB";V[V.BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED=104]="BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED";V[V.BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=105]="BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";V[V.BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED=106]="BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED";V[V.BLUE_MSG_UNVERIFIED_TO_VERIFIED=107]="BLUE_MSG_UNVERIFIED_TO_VERIFIED";V[V.BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED=108]="BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED";V[V.BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=109]="BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";V[V.BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED=110]="BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED";V[V.BLUE_MSG_VERIFIED_TO_UNVERIFIED=111]="BLUE_MSG_VERIFIED_TO_UNVERIFIED";V[V.BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=112]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";V[V.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED=113]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED";V[V.BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=114]="BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";V[V.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED=115]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED";V[V.BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=116]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";V[V.BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=117]="BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";V[V.E2E_IDENTITY_UNAVAILABLE=118]="E2E_IDENTITY_UNAVAILABLE";V[V.GROUP_CREATING=119]="GROUP_CREATING";V[V.GROUP_CREATE_FAILED=120]="GROUP_CREATE_FAILED";V[V.GROUP_BOUNCED=121]="GROUP_BOUNCED";V[V.BLOCK_CONTACT=122]="BLOCK_CONTACT";V[V.EPHEMERAL_SETTING_NOT_APPLIED=123]="EPHEMERAL_SETTING_NOT_APPLIED";V[V.SYNC_FAILED=124]="SYNC_FAILED";V[V.SYNCING=125]="SYNCING";V[V.BIZ_PRIVACY_MODE_INIT_FB=126]="BIZ_PRIVACY_MODE_INIT_FB";V[V.BIZ_PRIVACY_MODE_INIT_BSP=127]="BIZ_PRIVACY_MODE_INIT_BSP";V[V.BIZ_PRIVACY_MODE_TO_FB=128]="BIZ_PRIVACY_MODE_TO_FB";V[V.BIZ_PRIVACY_MODE_TO_BSP=129]="BIZ_PRIVACY_MODE_TO_BSP";V[V.DISAPPEARING_MODE=130]="DISAPPEARING_MODE";V[V.E2E_DEVICE_FETCH_FAILED=131]="E2E_DEVICE_FETCH_FAILED";V[V.ADMIN_REVOKE=132]="ADMIN_REVOKE";V[V.GROUP_INVITE_LINK_GROWTH_LOCKED=133]="GROUP_INVITE_LINK_GROWTH_LOCKED";V[V.COMMUNITY_LINK_PARENT_GROUP=134]="COMMUNITY_LINK_PARENT_GROUP";V[V.COMMUNITY_LINK_SIBLING_GROUP=135]="COMMUNITY_LINK_SIBLING_GROUP";V[V.COMMUNITY_LINK_SUB_GROUP=136]="COMMUNITY_LINK_SUB_GROUP";V[V.COMMUNITY_UNLINK_PARENT_GROUP=137]="COMMUNITY_UNLINK_PARENT_GROUP";V[V.COMMUNITY_UNLINK_SIBLING_GROUP=138]="COMMUNITY_UNLINK_SIBLING_GROUP";V[V.COMMUNITY_UNLINK_SUB_GROUP=139]="COMMUNITY_UNLINK_SUB_GROUP";V[V.GROUP_PARTICIPANT_ACCEPT=140]="GROUP_PARTICIPANT_ACCEPT";V[V.GROUP_PARTICIPANT_LINKED_GROUP_JOIN=141]="GROUP_PARTICIPANT_LINKED_GROUP_JOIN";V[V.COMMUNITY_CREATE=142]="COMMUNITY_CREATE";V[V.EPHEMERAL_KEEP_IN_CHAT=143]="EPHEMERAL_KEEP_IN_CHAT";V[V.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST=144]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST";V[V.GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE=145]="GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE";V[V.INTEGRITY_UNLINK_PARENT_GROUP=146]="INTEGRITY_UNLINK_PARENT_GROUP";V[V.COMMUNITY_PARTICIPANT_PROMOTE=147]="COMMUNITY_PARTICIPANT_PROMOTE";V[V.COMMUNITY_PARTICIPANT_DEMOTE=148]="COMMUNITY_PARTICIPANT_DEMOTE";V[V.COMMUNITY_PARENT_GROUP_DELETED=149]="COMMUNITY_PARENT_GROUP_DELETED";V[V.COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL=150]="COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL";V[V.GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP=151]="GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP";V[V.MASKED_THREAD_CREATED=152]="MASKED_THREAD_CREATED";V[V.MASKED_THREAD_UNMASKED=153]="MASKED_THREAD_UNMASKED";V[V.BIZ_CHAT_ASSIGNMENT=154]="BIZ_CHAT_ASSIGNMENT";V[V.CHAT_PSA=155]="CHAT_PSA";V[V.CHAT_POLL_CREATION_MESSAGE=156]="CHAT_POLL_CREATION_MESSAGE";V[V.CAG_MASKED_THREAD_CREATED=157]="CAG_MASKED_THREAD_CREATED";V[V.COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED=158]="COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED";V[V.CAG_INVITE_AUTO_ADD=159]="CAG_INVITE_AUTO_ADD";V[V.BIZ_CHAT_ASSIGNMENT_UNASSIGN=160]="BIZ_CHAT_ASSIGNMENT_UNASSIGN";V[V.CAG_INVITE_AUTO_JOINED=161]="CAG_INVITE_AUTO_JOINED";V[V.SCHEDULED_CALL_START_MESSAGE=162]="SCHEDULED_CALL_START_MESSAGE";V[V.COMMUNITY_INVITE_RICH=163]="COMMUNITY_INVITE_RICH";V[V.COMMUNITY_INVITE_AUTO_ADD_RICH=164]="COMMUNITY_INVITE_AUTO_ADD_RICH";V[V.SUB_GROUP_INVITE_RICH=165]="SUB_GROUP_INVITE_RICH";V[V.SUB_GROUP_PARTICIPANT_ADD_RICH=166]="SUB_GROUP_PARTICIPANT_ADD_RICH";V[V.COMMUNITY_LINK_PARENT_GROUP_RICH=167]="COMMUNITY_LINK_PARENT_GROUP_RICH";V[V.COMMUNITY_PARTICIPANT_ADD_RICH=168]="COMMUNITY_PARTICIPANT_ADD_RICH";V[V.SILENCED_UNKNOWN_CALLER_AUDIO=169]="SILENCED_UNKNOWN_CALLER_AUDIO";V[V.SILENCED_UNKNOWN_CALLER_VIDEO=170]="SILENCED_UNKNOWN_CALLER_VIDEO";V[V.GROUP_MEMBER_ADD_MODE=171]="GROUP_MEMBER_ADD_MODE";V[V.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD=172]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD";V[V.COMMUNITY_CHANGE_DESCRIPTION=173]="COMMUNITY_CHANGE_DESCRIPTION";V[V.SENDER_INVITE=174]="SENDER_INVITE";V[V.RECEIVER_INVITE=175]="RECEIVER_INVITE";V[V.COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS=176]="COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS";V[V.PINNED_MESSAGE_IN_CHAT=177]="PINNED_MESSAGE_IN_CHAT";V[V.PAYMENT_INVITE_SETUP_INVITER=178]="PAYMENT_INVITE_SETUP_INVITER";V[V.PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY=179]="PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY";V[V.PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE=180]="PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE";V[V.LINKED_GROUP_CALL_START=181]="LINKED_GROUP_CALL_START";V[V.REPORT_TO_ADMIN_ENABLED_STATUS=182]="REPORT_TO_ADMIN_ENABLED_STATUS";V[V.EMPTY_SUBGROUP_CREATE=183]="EMPTY_SUBGROUP_CREATE";V[V.SCHEDULED_CALL_CANCEL=184]="SCHEDULED_CALL_CANCEL";V[V.SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH=185]="SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH";V[V.GROUP_CHANGE_RECENT_HISTORY_SHARING=186]="GROUP_CHANGE_RECENT_HISTORY_SHARING";V[V.PAID_MESSAGE_SERVER_CAMPAIGN_ID=187]="PAID_MESSAGE_SERVER_CAMPAIGN_ID";V[V.GENERAL_CHAT_CREATE=188]="GENERAL_CHAT_CREATE";V[V.GENERAL_CHAT_ADD=189]="GENERAL_CHAT_ADD";V[V.GENERAL_CHAT_AUTO_ADD_DISABLED=190]="GENERAL_CHAT_AUTO_ADD_DISABLED";V[V.SUGGESTED_SUBGROUP_ANNOUNCE=191]="SUGGESTED_SUBGROUP_ANNOUNCE";V[V.BIZ_BOT_1P_MESSAGING_ENABLED=192]="BIZ_BOT_1P_MESSAGING_ENABLED";V[V.CHANGE_USERNAME=193]="CHANGE_USERNAME";V[V.BIZ_COEX_PRIVACY_INIT_SELF=194]="BIZ_COEX_PRIVACY_INIT_SELF";V[V.BIZ_COEX_PRIVACY_TRANSITION_SELF=195]="BIZ_COEX_PRIVACY_TRANSITION_SELF";V[V.SUPPORT_AI_EDUCATION=196]="SUPPORT_AI_EDUCATION";V[V.BIZ_BOT_3P_MESSAGING_ENABLED=197]="BIZ_BOT_3P_MESSAGING_ENABLED";V[V.REMINDER_SETUP_MESSAGE=198]="REMINDER_SETUP_MESSAGE";V[V.REMINDER_SENT_MESSAGE=199]="REMINDER_SENT_MESSAGE";V[V.REMINDER_CANCEL_MESSAGE=200]="REMINDER_CANCEL_MESSAGE";V[V.BIZ_COEX_PRIVACY_INIT=201]="BIZ_COEX_PRIVACY_INIT";V[V.BIZ_COEX_PRIVACY_TRANSITION=202]="BIZ_COEX_PRIVACY_TRANSITION";V[V.GROUP_DEACTIVATED=203]="GROUP_DEACTIVATED";V[V.COMMUNITY_DEACTIVATE_SIBLING_GROUP=204]="COMMUNITY_DEACTIVATE_SIBLING_GROUP";V[V.EVENT_UPDATED=205]="EVENT_UPDATED";V[V.EVENT_CANCELED=206]="EVENT_CANCELED";V[V.COMMUNITY_OWNER_UPDATED=207]="COMMUNITY_OWNER_UPDATED";V[V.COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208]="COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN";V[V.CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209]="CAPI_GROUP_NE2EE_SYSTEM_MESSAGE";V[V.STATUS_MENTION=210]="STATUS_MENTION";V[V.USER_CONTROLS_SYSTEM_MESSAGE=211]="USER_CONTROLS_SYSTEM_MESSAGE";V[V.SUPPORT_SYSTEM_MESSAGE=212]="SUPPORT_SYSTEM_MESSAGE";V[V.CHANGE_LID=213]="CHANGE_LID";V[V.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE=214]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE";V[V.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE=215]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE";V[V.CHANGE_LIMIT_SHARING=216]="CHANGE_LIMIT_SHARING";V[V.GROUP_MEMBER_LINK_MODE=217]="GROUP_MEMBER_LINK_MODE";V[V.BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE=218]="BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE";V[V.PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE=219]="PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE";V[V.QUARANTINED_MESSAGE=220]="QUARANTINED_MESSAGE";V[V.GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE=221]="GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE";V[V.GROUP_OPEN_BOT_ADDED=222]="GROUP_OPEN_BOT_ADDED";V[V.GROUP_TEE_BOT_ADDED=223]="GROUP_TEE_BOT_ADDED";V[V.CONTACT_INFO=224]="CONTACT_INFO";V[V.SCHEDULED_MESSAGE_CREATED=225]="SCHEDULED_MESSAGE_CREATED";V[V.IDENTITY_TRUST_MARKED=226]="IDENTITY_TRUST_MARKED";V[V.IDENTITY_TRUST_UNMARKED=227]="IDENTITY_TRUST_UNMARKED";V[V.IDENTITY_TRUST_REVOKED=228]="IDENTITY_TRUST_REVOKED";V[V.CTWA_CONSUMER_DISCLOSURE=230]="CTWA_CONSUMER_DISCLOSURE";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DN||={});function d6(){return{}}var lY={encode($,K=new H){if($.rawId!==void 0)K.uint32(8).uint32($.rawId);if($.timestamp!==void 0)K.uint32(16).uint64($.timestamp);if($.keyIndex!==void 0)K.uint32(24).uint32($.keyIndex);if($.accountType!==void 0)K.uint32(32).int32($.accountType);if($.deviceType!==void 0)K.uint32(40).int32($.deviceType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=d6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.rawId=Q.uint32();continue}case 2:{if(Z!==16)break;J.timestamp=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.keyIndex=Q.uint32();continue}case 4:{if(Z!==32)break;J.accountType=Q.int32();continue}case 5:{if(Z!==40)break;J.deviceType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lY.fromPartial($??{})},fromPartial($){let K=d6();return K.rawId=$.rawId??void 0,K.timestamp=$.timestamp??void 0,K.keyIndex=$.keyIndex??void 0,K.accountType=$.accountType??void 0,K.deviceType=$.deviceType??void 0,K}};function j6(){return{}}var LN={encode($,K=new H){if($.rawId!==void 0)K.uint32(8).uint32($.rawId);if($.timestamp!==void 0)K.uint32(16).uint64($.timestamp);if($.currentIndex!==void 0)K.uint32(24).uint32($.currentIndex);if($.validIndexes!==void 0&&$.validIndexes.length!==0){K.uint32(34).fork();for(let Q of $.validIndexes)K.uint32(Q);K.join()}if($.accountType!==void 0)K.uint32(40).int32($.accountType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=j6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.rawId=Q.uint32();continue}case 2:{if(Z!==16)break;J.timestamp=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.currentIndex=Q.uint32();continue}case 4:{if(Z===32){if(J.validIndexes===void 0)J.validIndexes=[];J.validIndexes.push(Q.uint32());continue}if(Z===34){if(J.validIndexes===void 0)J.validIndexes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.validIndexes.push(Q.uint32());continue}break}case 5:{if(Z!==40)break;J.accountType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LN.fromPartial($??{})},fromPartial($){let K=j6();return K.rawId=$.rawId??void 0,K.timestamp=$.timestamp??void 0,K.currentIndex=$.currentIndex??void 0,K.validIndexes=$.validIndexes?.map((Q)=>Q)||void 0,K.accountType=$.accountType??void 0,K}};function c6(){return{}}var pY={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.accountSignatureKey!==void 0)K.uint32(18).bytes($.accountSignatureKey);if($.accountSignature!==void 0)K.uint32(26).bytes($.accountSignature);if($.deviceSignature!==void 0)K.uint32(34).bytes($.deviceSignature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=c6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.accountSignatureKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.accountSignature=Q.bytes();continue}case 4:{if(Z!==34)break;J.deviceSignature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pY.fromPartial($??{})},fromPartial($){let K=c6();return K.details=$.details??void 0,K.accountSignatureKey=$.accountSignatureKey??void 0,K.accountSignature=$.accountSignature??void 0,K.deviceSignature=$.deviceSignature??void 0,K}};function o6(){return{}}var uY={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.hmac!==void 0)K.uint32(18).bytes($.hmac);if($.accountType!==void 0)K.uint32(24).int32($.accountType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=o6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.hmac=Q.bytes();continue}case 3:{if(Z!==24)break;J.accountType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uY.fromPartial($??{})},fromPartial($){let K=o6();return K.details=$.details??void 0,K.hmac=$.hmac??void 0,K.accountType=$.accountType??void 0,K}};function b6(){return{}}var wY={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.accountSignature!==void 0)K.uint32(18).bytes($.accountSignature);if($.accountSignatureKey!==void 0)K.uint32(26).bytes($.accountSignatureKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=b6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.accountSignature=Q.bytes();continue}case 3:{if(Z!==26)break;J.accountSignatureKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wY.fromPartial($??{})},fromPartial($){let K=b6();return K.details=$.details??void 0,K.accountSignature=$.accountSignature??void 0,K.accountSignatureKey=$.accountSignatureKey??void 0,K}};function i6(){return{}}var PN={encode($,K=new H){if($.lastFetchTime!==void 0)K.uint32(8).int64($.lastFetchTime);if($.capabilityOptions!==void 0&&$.capabilityOptions.length!==0)for(let Q of $.capabilityOptions)h0.encode(Q,K.uint32(18).fork()).join();if($.conversationOptions!==void 0&&$.conversationOptions.length!==0)for(let Q of $.conversationOptions)h0.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=i6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.lastFetchTime=Q.int64Number();continue}case 2:{if(Z!==18)break;if(J.capabilityOptions===void 0)J.capabilityOptions=[];let Y=h0.decode(Q,Q.uint32());if(Y!==void 0)J.capabilityOptions.push(Y);continue}case 3:{if(Z!==26)break;if(J.conversationOptions===void 0)J.conversationOptions=[];let Y=h0.decode(Q,Q.uint32());if(Y!==void 0)J.conversationOptions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PN.fromPartial($??{})},fromPartial($){let K=i6();return K.lastFetchTime=$.lastFetchTime??void 0,K.capabilityOptions=$.capabilityOptions?.map((Q)=>h0.fromPartial(Q))||void 0,K.conversationOptions=$.conversationOptions?.map((Q)=>h0.fromPartial(Q))||void 0,K}};function m6(){return{}}var h0={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.title!==void 0)K.uint32(18).string($.title);if($.promptText!==void 0)K.uint32(26).string($.promptText);if($.sessionId!==void 0)K.uint32(34).string($.sessionId);if($.imageWdsIdentifier!==void 0)K.uint32(42).string($.imageWdsIdentifier);if($.imageTintColor!==void 0)K.uint32(50).string($.imageTintColor);if($.imageBackgroundColor!==void 0)K.uint32(58).string($.imageBackgroundColor);if($.cardTypeId!==void 0)K.uint32(66).string($.cardTypeId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=m6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.title=Q.string();continue}case 3:{if(Z!==26)break;J.promptText=Q.string();continue}case 4:{if(Z!==34)break;J.sessionId=Q.string();continue}case 5:{if(Z!==42)break;J.imageWdsIdentifier=Q.string();continue}case 6:{if(Z!==50)break;J.imageTintColor=Q.string();continue}case 7:{if(Z!==58)break;J.imageBackgroundColor=Q.string();continue}case 8:{if(Z!==66)break;J.cardTypeId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return h0.fromPartial($??{})},fromPartial($){let K=m6();return K.type=$.type??void 0,K.title=$.title??void 0,K.promptText=$.promptText??void 0,K.sessionId=$.sessionId??void 0,K.imageWdsIdentifier=$.imageWdsIdentifier??void 0,K.imageTintColor=$.imageTintColor??void 0,K.imageBackgroundColor=$.imageBackgroundColor??void 0,K.cardTypeId=$.cardTypeId??void 0,K}};function g6(){return{}}var c$={encode($,K=new H){if($.collectionId!==void 0)K.uint32(10).string($.collectionId);if($.expectedMediaCount!==void 0)K.uint32(16).uint32($.expectedMediaCount);if($.hasGlobalCaption!==void 0)K.uint32(24).bool($.hasGlobalCaption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=g6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.collectionId=Q.string();continue}case 2:{if(Z!==16)break;J.expectedMediaCount=Q.uint32();continue}case 3:{if(Z!==24)break;J.hasGlobalCaption=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c$.fromPartial($??{})},fromPartial($){let K=g6();return K.collectionId=$.collectionId??void 0,K.expectedMediaCount=$.expectedMediaCount??void 0,K.hasGlobalCaption=$.hasGlobalCaption??void 0,K}};function t6(){return{}}var o$={encode($,K=new H){if($.collectionId!==void 0)K.uint32(10).string($.collectionId);if($.uploadOrderIndex!==void 0)K.uint32(16).uint32($.uploadOrderIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=t6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.collectionId=Q.string();continue}case 2:{if(Z!==16)break;J.uploadOrderIndex=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o$.fromPartial($??{})},fromPartial($){let K=t6();return K.collectionId=$.collectionId??void 0,K.uploadOrderIndex=$.uploadOrderIndex??void 0,K}};function r6(){return{}}var b$={encode($,K=new H){if($.hatchMetadataSync!==void 0)nZ.encode($.hatchMetadataSync,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=r6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.hatchMetadataSync=nZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b$.fromPartial($??{})},fromPartial($){let K=r6();return K.hatchMetadataSync=$.hatchMetadataSync!==void 0&&$.hatchMetadataSync!==null?nZ.fromPartial($.hatchMetadataSync):void 0,K}};function a6(){return{}}var i$={encode($,K=new H){if($.messageKey!==void 0)x.encode($.messageKey,K.uint32(10).fork()).join();if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();if($.timestamp!==void 0)K.uint32(24).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=a6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i$.fromPartial($??{})},fromPartial($){let K=a6();return K.messageKey=$.messageKey!==void 0&&$.messageKey!==null?x.fromPartial($.messageKey):void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.timestamp=$.timestamp??void 0,K}};function s6(){return{}}var m$={encode($,K=new H){if($.messageKey!==void 0)x.encode($.messageKey,K.uint32(10).fork()).join();if($.responseTimestampMs!==void 0)K.uint32(16).int64($.responseTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=s6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.responseTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m$.fromPartial($??{})},fromPartial($){let K=s6();return K.messageKey=$.messageKey!==void 0&&$.messageKey!==null?x.fromPartial($.messageKey):void 0,K.responseTimestampMs=$.responseTimestampMs??void 0,K}};function e6(){return{}}var g$={encode($,K=new H){if($.codeLanguage!==void 0)K.uint32(10).string($.codeLanguage);if($.codeBlocks!==void 0&&$.codeBlocks.length!==0)for(let Q of $.codeBlocks)t$.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=e6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.codeLanguage=Q.string();continue}case 2:{if(Z!==18)break;if(J.codeBlocks===void 0)J.codeBlocks=[];let Y=t$.decode(Q,Q.uint32());if(Y!==void 0)J.codeBlocks.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return g$.fromPartial($??{})},fromPartial($){let K=e6();return K.codeLanguage=$.codeLanguage??void 0,K.codeBlocks=$.codeBlocks?.map((Q)=>t$.fromPartial(Q))||void 0,K}};function $H(){return{}}var t$={encode($,K=new H){if($.highlightType!==void 0)K.uint32(8).int32($.highlightType);if($.codeContent!==void 0)K.uint32(18).string($.codeContent);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$H();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.highlightType=Q.int32();continue}case 2:{if(Z!==18)break;J.codeContent=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t$.fromPartial($??{})},fromPartial($){let K=$H();return K.highlightType=$.highlightType??void 0,K.codeContent=$.codeContent??void 0,K}};function KH(){return{}}var r$={encode($,K=new H){if($.itemsMetadata!==void 0&&$.itemsMetadata.length!==0)for(let Q of $.itemsMetadata)a$.encode(Q,K.uint32(10).fork()).join();if($.contentType!==void 0)K.uint32(16).int32($.contentType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.itemsMetadata===void 0)J.itemsMetadata=[];let Y=a$.decode(Q,Q.uint32());if(Y!==void 0)J.itemsMetadata.push(Y);continue}case 2:{if(Z!==16)break;J.contentType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r$.fromPartial($??{})},fromPartial($){let K=KH();return K.itemsMetadata=$.itemsMetadata?.map((Q)=>a$.fromPartial(Q))||void 0,K.contentType=$.contentType??void 0,K}};function QH(){return{}}var a$={encode($,K=new H){if($.reelItem!==void 0)s$.encode($.reelItem,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.reelItem=s$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a$.fromPartial($??{})},fromPartial($){let K=QH();return K.reelItem=$.reelItem!==void 0&&$.reelItem!==null?s$.fromPartial($.reelItem):void 0,K}};function ZH(){return{}}var s$={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.profileIconUrl!==void 0)K.uint32(18).string($.profileIconUrl);if($.thumbnailUrl!==void 0)K.uint32(26).string($.thumbnailUrl);if($.videoUrl!==void 0)K.uint32(34).string($.videoUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.profileIconUrl=Q.string();continue}case 3:{if(Z!==26)break;J.thumbnailUrl=Q.string();continue}case 4:{if(Z!==34)break;J.videoUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return s$.fromPartial($??{})},fromPartial($){let K=ZH();return K.title=$.title??void 0,K.profileIconUrl=$.profileIconUrl??void 0,K.thumbnailUrl=$.thumbnailUrl??void 0,K.videoUrl=$.videoUrl??void 0,K}};function JH(){return{}}var e$={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.version!==void 0)K.uint32(16).uint64($.version);if($.url!==void 0)K.uint32(26).string($.url);if($.loopCount!==void 0)K.uint32(32).uint32($.loopCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==16)break;J.version=Q.uint64Number();continue}case 3:{if(Z!==26)break;J.url=Q.string();continue}case 4:{if(Z!==32)break;J.loopCount=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e$.fromPartial($??{})},fromPartial($){let K=JH();return K.type=$.type??void 0,K.version=$.version??void 0,K.url=$.url??void 0,K.loopCount=$.loopCount??void 0,K}};function XH(){return{}}var $K={encode($,K=new H){if($.gridImageUrl!==void 0)H0.encode($.gridImageUrl,K.uint32(10).fork()).join();if($.imageUrls!==void 0&&$.imageUrls.length!==0)for(let Q of $.imageUrls)H0.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.gridImageUrl=H0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.imageUrls===void 0)J.imageUrls=[];let Y=H0.decode(Q,Q.uint32());if(Y!==void 0)J.imageUrls.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $K.fromPartial($??{})},fromPartial($){let K=XH();return K.gridImageUrl=$.gridImageUrl!==void 0&&$.gridImageUrl!==null?H0.fromPartial($.gridImageUrl):void 0,K.imageUrls=$.imageUrls?.map((Q)=>H0.fromPartial(Q))||void 0,K}};function qH(){return{}}var H0={encode($,K=new H){if($.imagePreviewUrl!==void 0)K.uint32(10).string($.imagePreviewUrl);if($.imageHighResUrl!==void 0)K.uint32(18).string($.imageHighResUrl);if($.sourceUrl!==void 0)K.uint32(26).string($.sourceUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.imagePreviewUrl=Q.string();continue}case 2:{if(Z!==18)break;J.imageHighResUrl=Q.string();continue}case 3:{if(Z!==26)break;J.sourceUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return H0.fromPartial($??{})},fromPartial($){let K=qH();return K.imagePreviewUrl=$.imagePreviewUrl??void 0,K.imageHighResUrl=$.imageHighResUrl??void 0,K.sourceUrl=$.sourceUrl??void 0,K}};function YH(){return{}}var KK={encode($,K=new H){if($.imageUrl!==void 0)H0.encode($.imageUrl,K.uint32(10).fork()).join();if($.imageText!==void 0)K.uint32(18).string($.imageText);if($.alignment!==void 0)K.uint32(24).int32($.alignment);if($.tapLinkUrl!==void 0)K.uint32(34).string($.tapLinkUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.imageUrl=H0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.imageText=Q.string();continue}case 3:{if(Z!==24)break;J.alignment=Q.int32();continue}case 4:{if(Z!==34)break;J.tapLinkUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KK.fromPartial($??{})},fromPartial($){let K=YH();return K.imageUrl=$.imageUrl!==void 0&&$.imageUrl!==null?H0.fromPartial($.imageUrl):void 0,K.imageText=$.imageText??void 0,K.alignment=$.alignment??void 0,K.tapLinkUrl=$.tapLinkUrl??void 0,K}};function HH(){return{}}var QK={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.expressions!==void 0&&$.expressions.length!==0)for(let Q of $.expressions)ZK.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;if(J.expressions===void 0)J.expressions=[];let Y=ZK.decode(Q,Q.uint32());if(Y!==void 0)J.expressions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QK.fromPartial($??{})},fromPartial($){let K=HH();return K.text=$.text??void 0,K.expressions=$.expressions?.map((Q)=>ZK.fromPartial(Q))||void 0,K}};function zH(){return{}}var ZK={encode($,K=new H){if($.latexExpression!==void 0)K.uint32(10).string($.latexExpression);if($.url!==void 0)K.uint32(18).string($.url);if($.width!==void 0)K.uint32(25).double($.width);if($.height!==void 0)K.uint32(33).double($.height);if($.fontHeight!==void 0)K.uint32(41).double($.fontHeight);if($.imageTopPadding!==void 0)K.uint32(49).double($.imageTopPadding);if($.imageLeadingPadding!==void 0)K.uint32(57).double($.imageLeadingPadding);if($.imageBottomPadding!==void 0)K.uint32(65).double($.imageBottomPadding);if($.imageTrailingPadding!==void 0)K.uint32(73).double($.imageTrailingPadding);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.latexExpression=Q.string();continue}case 2:{if(Z!==18)break;J.url=Q.string();continue}case 3:{if(Z!==25)break;J.width=Q.double();continue}case 4:{if(Z!==33)break;J.height=Q.double();continue}case 5:{if(Z!==41)break;J.fontHeight=Q.double();continue}case 6:{if(Z!==49)break;J.imageTopPadding=Q.double();continue}case 7:{if(Z!==57)break;J.imageLeadingPadding=Q.double();continue}case 8:{if(Z!==65)break;J.imageBottomPadding=Q.double();continue}case 9:{if(Z!==73)break;J.imageTrailingPadding=Q.double();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZK.fromPartial($??{})},fromPartial($){let K=zH();return K.latexExpression=$.latexExpression??void 0,K.url=$.url??void 0,K.width=$.width??void 0,K.height=$.height??void 0,K.fontHeight=$.fontHeight??void 0,K.imageTopPadding=$.imageTopPadding??void 0,K.imageLeadingPadding=$.imageLeadingPadding??void 0,K.imageBottomPadding=$.imageBottomPadding??void 0,K.imageTrailingPadding=$.imageTrailingPadding??void 0,K}};function VH(){return{}}var JK={encode($,K=new H){if($.centerLatitude!==void 0)K.uint32(9).double($.centerLatitude);if($.centerLongitude!==void 0)K.uint32(17).double($.centerLongitude);if($.latitudeDelta!==void 0)K.uint32(25).double($.latitudeDelta);if($.longitudeDelta!==void 0)K.uint32(33).double($.longitudeDelta);if($.annotations!==void 0&&$.annotations.length!==0)for(let Q of $.annotations)XK.encode(Q,K.uint32(42).fork()).join();if($.showInfoList!==void 0)K.uint32(48).bool($.showInfoList);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.centerLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.centerLongitude=Q.double();continue}case 3:{if(Z!==25)break;J.latitudeDelta=Q.double();continue}case 4:{if(Z!==33)break;J.longitudeDelta=Q.double();continue}case 5:{if(Z!==42)break;if(J.annotations===void 0)J.annotations=[];let Y=XK.decode(Q,Q.uint32());if(Y!==void 0)J.annotations.push(Y);continue}case 6:{if(Z!==48)break;J.showInfoList=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JK.fromPartial($??{})},fromPartial($){let K=VH();return K.centerLatitude=$.centerLatitude??void 0,K.centerLongitude=$.centerLongitude??void 0,K.latitudeDelta=$.latitudeDelta??void 0,K.longitudeDelta=$.longitudeDelta??void 0,K.annotations=$.annotations?.map((Q)=>XK.fromPartial(Q))||void 0,K.showInfoList=$.showInfoList??void 0,K}};function GH(){return{}}var XK={encode($,K=new H){if($.annotationNumber!==void 0)K.uint32(8).uint32($.annotationNumber);if($.latitude!==void 0)K.uint32(17).double($.latitude);if($.longitude!==void 0)K.uint32(25).double($.longitude);if($.title!==void 0)K.uint32(34).string($.title);if($.body!==void 0)K.uint32(42).string($.body);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.annotationNumber=Q.uint32();continue}case 2:{if(Z!==17)break;J.latitude=Q.double();continue}case 3:{if(Z!==25)break;J.longitude=Q.double();continue}case 4:{if(Z!==34)break;J.title=Q.string();continue}case 5:{if(Z!==42)break;J.body=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XK.fromPartial($??{})},fromPartial($){let K=GH();return K.annotationNumber=$.annotationNumber??void 0,K.latitude=$.latitude??void 0,K.longitude=$.longitude??void 0,K.title=$.title??void 0,K.body=$.body??void 0,K}};function UH(){return{}}var qK={encode($,K=new H){if($.messageType!==void 0)K.uint32(8).int32($.messageType);if($.submessages!==void 0&&$.submessages.length!==0)for(let Q of $.submessages)YK.encode(Q,K.uint32(18).fork()).join();if($.unifiedResponse!==void 0)VK.encode($.unifiedResponse,K.uint32(26).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.messageType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.submessages===void 0)J.submessages=[];let Y=YK.decode(Q,Q.uint32());if(Y!==void 0)J.submessages.push(Y);continue}case 3:{if(Z!==26)break;J.unifiedResponse=VK.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qK.fromPartial($??{})},fromPartial($){let K=UH();return K.messageType=$.messageType??void 0,K.submessages=$.submessages?.map((Q)=>YK.fromPartial(Q))||void 0,K.unifiedResponse=$.unifiedResponse!==void 0&&$.unifiedResponse!==null?VK.fromPartial($.unifiedResponse):void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function CH(){return{}}var YK={encode($,K=new H){if($.messageType!==void 0)K.uint32(8).int32($.messageType);if($.gridImageMetadata!==void 0)$K.encode($.gridImageMetadata,K.uint32(18).fork()).join();if($.messageText!==void 0)K.uint32(26).string($.messageText);if($.imageMetadata!==void 0)KK.encode($.imageMetadata,K.uint32(34).fork()).join();if($.codeMetadata!==void 0)g$.encode($.codeMetadata,K.uint32(42).fork()).join();if($.tableMetadata!==void 0)HK.encode($.tableMetadata,K.uint32(50).fork()).join();if($.dynamicMetadata!==void 0)e$.encode($.dynamicMetadata,K.uint32(58).fork()).join();if($.latexMetadata!==void 0)QK.encode($.latexMetadata,K.uint32(66).fork()).join();if($.mapMetadata!==void 0)JK.encode($.mapMetadata,K.uint32(74).fork()).join();if($.contentItemsMetadata!==void 0)r$.encode($.contentItemsMetadata,K.uint32(82).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.messageType=Q.int32();continue}case 2:{if(Z!==18)break;J.gridImageMetadata=$K.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.messageText=Q.string();continue}case 4:{if(Z!==34)break;J.imageMetadata=KK.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.codeMetadata=g$.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.tableMetadata=HK.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.dynamicMetadata=e$.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.latexMetadata=QK.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.mapMetadata=JK.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.contentItemsMetadata=r$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YK.fromPartial($??{})},fromPartial($){let K=CH();return K.messageType=$.messageType??void 0,K.gridImageMetadata=$.gridImageMetadata!==void 0&&$.gridImageMetadata!==null?$K.fromPartial($.gridImageMetadata):void 0,K.messageText=$.messageText??void 0,K.imageMetadata=$.imageMetadata!==void 0&&$.imageMetadata!==null?KK.fromPartial($.imageMetadata):void 0,K.codeMetadata=$.codeMetadata!==void 0&&$.codeMetadata!==null?g$.fromPartial($.codeMetadata):void 0,K.tableMetadata=$.tableMetadata!==void 0&&$.tableMetadata!==null?HK.fromPartial($.tableMetadata):void 0,K.dynamicMetadata=$.dynamicMetadata!==void 0&&$.dynamicMetadata!==null?e$.fromPartial($.dynamicMetadata):void 0,K.latexMetadata=$.latexMetadata!==void 0&&$.latexMetadata!==null?QK.fromPartial($.latexMetadata):void 0,K.mapMetadata=$.mapMetadata!==void 0&&$.mapMetadata!==null?JK.fromPartial($.mapMetadata):void 0,K.contentItemsMetadata=$.contentItemsMetadata!==void 0&&$.contentItemsMetadata!==null?r$.fromPartial($.contentItemsMetadata):void 0,K}};function DH(){return{}}var HK={encode($,K=new H){if($.rows!==void 0&&$.rows.length!==0)for(let Q of $.rows)zK.encode(Q,K.uint32(10).fork()).join();if($.title!==void 0)K.uint32(18).string($.title);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.rows===void 0)J.rows=[];let Y=zK.decode(Q,Q.uint32());if(Y!==void 0)J.rows.push(Y);continue}case 2:{if(Z!==18)break;J.title=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HK.fromPartial($??{})},fromPartial($){let K=DH();return K.rows=$.rows?.map((Q)=>zK.fromPartial(Q))||void 0,K.title=$.title??void 0,K}};function LH(){return{}}var zK={encode($,K=new H){if($.items!==void 0&&$.items.length!==0)for(let Q of $.items)K.uint32(10).string(Q);if($.isHeading!==void 0)K.uint32(16).bool($.isHeading);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.items===void 0)J.items=[];let Y=Q.string();if(Y!==void 0)J.items.push(Y);continue}case 2:{if(Z!==16)break;J.isHeading=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zK.fromPartial($??{})},fromPartial($){let K=LH();return K.items=$.items?.map((Q)=>Q)||void 0,K.isHeading=$.isHeading??void 0,K}};function PH(){return{}}var VK={encode($,K=new H){if($.data!==void 0)K.uint32(10).bytes($.data);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.data=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VK.fromPartial($??{})},fromPartial($){let K=PH();return K.data=$.data??void 0,K}};function FH(){return{}}var GK={encode($,K=new H){if($.requestType!==void 0)K.uint32(8).int32($.requestType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.requestType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GK.fromPartial($??{})},fromPartial($){let K=FH();return K.requestType=$.requestType??void 0,K}};function xH(){return{}}var UK={encode($,K=new H){if($.serverInfo!==void 0)DK.encode($.serverInfo,K.uint32(10).fork()).join();if($.clientInfo!==void 0)CK.encode($.clientInfo,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.serverInfo=DK.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.clientInfo=CK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UK.fromPartial($??{})},fromPartial($){let K=xH();return K.serverInfo=$.serverInfo!==void 0&&$.serverInfo!==null?DK.fromPartial($.serverInfo):void 0,K.clientInfo=$.clientInfo!==void 0&&$.clientInfo!==null?CK.fromPartial($.clientInfo):void 0,K}};function kH(){return{}}var CK={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.sourceChatJid!==void 0)K.uint32(18).string($.sourceChatJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.sourceChatJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CK.fromPartial($??{})},fromPartial($){let K=kH();return K.type=$.type??void 0,K.sourceChatJid=$.sourceChatJid??void 0,K}};function NH(){return{}}var DK={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DK.fromPartial($??{})},fromPartial($){let K=NH();return K.title=$.title??void 0,K}};function RH(){return{}}var LK={encode($,K=new H){if($.lid!==void 0)K.uint32(10).string($.lid);if($.username!==void 0)K.uint32(18).string($.username);if($.countryCode!==void 0)K.uint32(26).string($.countryCode);if($.isUsernameDeleted!==void 0)K.uint32(32).bool($.isUsernameDeleted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.lid=Q.string();continue}case 2:{if(Z!==18)break;J.username=Q.string();continue}case 3:{if(Z!==26)break;J.countryCode=Q.string();continue}case 4:{if(Z!==32)break;J.isUsernameDeleted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LK.fromPartial($??{})},fromPartial($){let K=RH();return K.lid=$.lid??void 0,K.username=$.username??void 0,K.countryCode=$.countryCode??void 0,K.isUsernameDeleted=$.isUsernameDeleted??void 0,K}};function BH(){return{}}var FN={encode($,K=new H){if($.accesstoken!==void 0)K.uint32(10).string($.accesstoken);if($.fbid!==void 0)K.uint32(18).string($.fbid);if($.nonce!==void 0)K.uint32(26).string($.nonce);if($.encryptedPassword!==void 0)K.uint32(34).string($.encryptedPassword);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.accesstoken=Q.string();continue}case 2:{if(Z!==18)break;J.fbid=Q.string();continue}case 3:{if(Z!==26)break;J.nonce=Q.string();continue}case 4:{if(Z!==34)break;J.encryptedPassword=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FN.fromPartial($??{})},fromPartial($){let K=BH();return K.accesstoken=$.accesstoken??void 0,K.fbid=$.fbid??void 0,K.nonce=$.nonce??void 0,K.encryptedPassword=$.encryptedPassword??void 0,K}};function OH(){return{}}var PK={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.buttonTitle!==void 0)K.uint32(18).string($.buttonTitle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.buttonTitle=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PK.fromPartial($??{})},fromPartial($){let K=OH();return K.url=$.url??void 0,K.buttonTitle=$.buttonTitle??void 0,K}};function AH(){return{}}var Y0={encode($,K=new H){if($.downloadImages!==void 0)K.uint32(8).bool($.downloadImages);if($.downloadAudio!==void 0)K.uint32(16).bool($.downloadAudio);if($.downloadVideo!==void 0)K.uint32(24).bool($.downloadVideo);if($.downloadDocuments!==void 0)K.uint32(32).bool($.downloadDocuments);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.downloadImages=Q.bool();continue}case 2:{if(Z!==16)break;J.downloadAudio=Q.bool();continue}case 3:{if(Z!==24)break;J.downloadVideo=Q.bool();continue}case 4:{if(Z!==32)break;J.downloadDocuments=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Y0.fromPartial($??{})},fromPartial($){let K=AH();return K.downloadImages=$.downloadImages??void 0,K.downloadAudio=$.downloadAudio??void 0,K.downloadVideo=$.downloadVideo??void 0,K.downloadDocuments=$.downloadDocuments??void 0,K}};function EH(){return{}}var FK={encode($,K=new H){if($.fbid!==void 0)K.uint32(10).string($.fbid);if($.password!==void 0)K.uint32(18).string($.password);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fbid=Q.string();continue}case 2:{if(Z!==18)break;J.password=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FK.fromPartial($??{})},fromPartial($){let K=EH();return K.fbid=$.fbid??void 0,K.password=$.password??void 0,K}};function MH(){return{}}var xN={encode($,K=new H){if($.whatsappBizAcctFbid!==void 0)K.uint32(8).uint64($.whatsappBizAcctFbid);if($.whatsappAcctNumber!==void 0)K.uint32(18).string($.whatsappAcctNumber);if($.issueTime!==void 0)K.uint32(24).uint64($.issueTime);if($.hostStorage!==void 0)K.uint32(32).int32($.hostStorage);if($.accountType!==void 0)K.uint32(40).int32($.accountType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.whatsappBizAcctFbid=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.whatsappAcctNumber=Q.string();continue}case 3:{if(Z!==24)break;J.issueTime=Q.uint64Number();continue}case 4:{if(Z!==32)break;J.hostStorage=Q.int32();continue}case 5:{if(Z!==40)break;J.accountType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xN.fromPartial($??{})},fromPartial($){let K=MH();return K.whatsappBizAcctFbid=$.whatsappBizAcctFbid??void 0,K.whatsappAcctNumber=$.whatsappAcctNumber??void 0,K.issueTime=$.issueTime??void 0,K.hostStorage=$.hostStorage??void 0,K.accountType=$.accountType??void 0,K}};function WH(){return{}}var kN={encode($,K=new H){if($.vnameCert!==void 0)T0.encode($.vnameCert,K.uint32(10).fork()).join();if($.bizAcctLinkInfo!==void 0)K.uint32(18).bytes($.bizAcctLinkInfo);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.vnameCert=T0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.bizAcctLinkInfo=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kN.fromPartial($??{})},fromPartial($){let K=WH();return K.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?T0.fromPartial($.vnameCert):void 0,K.bizAcctLinkInfo=$.bizAcctLinkInfo??void 0,K}};function IH(){return{}}var NN={encode($,K=new H){if($.vlevel!==void 0)K.uint32(8).int32($.vlevel);if($.vnameCert!==void 0)T0.encode($.vnameCert,K.uint32(18).fork()).join();if($.signed!==void 0)K.uint32(24).bool($.signed);if($.revoked!==void 0)K.uint32(32).bool($.revoked);if($.hostStorage!==void 0)K.uint32(40).int32($.hostStorage);if($.actualActors!==void 0)K.uint32(48).int32($.actualActors);if($.privacyModeTs!==void 0)K.uint32(56).uint64($.privacyModeTs);if($.featureControls!==void 0)K.uint32(64).uint64($.featureControls);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.vlevel=Q.int32();continue}case 2:{if(Z!==18)break;J.vnameCert=T0.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.signed=Q.bool();continue}case 4:{if(Z!==32)break;J.revoked=Q.bool();continue}case 5:{if(Z!==40)break;J.hostStorage=Q.int32();continue}case 6:{if(Z!==48)break;J.actualActors=Q.int32();continue}case 7:{if(Z!==56)break;J.privacyModeTs=Q.uint64Number();continue}case 8:{if(Z!==64)break;J.featureControls=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NN.fromPartial($??{})},fromPartial($){let K=IH();return K.vlevel=$.vlevel??void 0,K.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?T0.fromPartial($.vnameCert):void 0,K.signed=$.signed??void 0,K.revoked=$.revoked??void 0,K.hostStorage=$.hostStorage??void 0,K.actualActors=$.actualActors??void 0,K.privacyModeTs=$.privacyModeTs??void 0,K.featureControls=$.featureControls??void 0,K}};function SH(){return{}}var xK={encode($,K=new H){if($.ageCollectionEligible!==void 0)K.uint32(8).bool($.ageCollectionEligible);if($.shouldTriggerAgeCollectionOnClient!==void 0)K.uint32(16).bool($.shouldTriggerAgeCollectionOnClient);if($.ageCollectionType!==void 0)K.uint32(24).int32($.ageCollectionType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.ageCollectionEligible=Q.bool();continue}case 2:{if(Z!==16)break;J.shouldTriggerAgeCollectionOnClient=Q.bool();continue}case 3:{if(Z!==24)break;J.ageCollectionType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xK.fromPartial($??{})},fromPartial($){let K=SH();return K.ageCollectionEligible=$.ageCollectionEligible??void 0,K.shouldTriggerAgeCollectionOnClient=$.shouldTriggerAgeCollectionOnClient??void 0,K.ageCollectionType=$.ageCollectionType??void 0,K}};function vH(){return{}}var kK={encode($,K=new H){if($.token!==void 0)K.uint32(10).string($.token);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.token=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kK.fromPartial($??{})},fromPartial($){let K=vH();return K.token=$.token??void 0,K}};function TH(){return{}}var NK={encode($,K=new H){if($.deepLinkMetadata!==void 0)kK.encode($.deepLinkMetadata,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.deepLinkMetadata=kK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NK.fromPartial($??{})},fromPartial($){let K=TH();return K.deepLinkMetadata=$.deepLinkMetadata!==void 0&&$.deepLinkMetadata!==null?kK.fromPartial($.deepLinkMetadata):void 0,K}};function yH(){return{}}var RK={encode($,K=new H){if($.capabilities!==void 0&&$.capabilities.length!==0)for(let Q of $.capabilities)K.uint32(8).int32(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.capabilities===void 0)J.capabilities=[];J.capabilities.push(Q.int32());continue}if(Z===10){if(J.capabilities===void 0)J.capabilities=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.capabilities.push(Q.int32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RK.fromPartial($??{})},fromPartial($){let K=yH();return K.capabilities=$.capabilities?.map((Q)=>Q)||void 0,K}};function fH(){return{}}var BK={encode($,K=new H){if($.commandName!==void 0)K.uint32(10).string($.commandName);if($.commandDescription!==void 0)K.uint32(18).string($.commandDescription);if($.commandPrompt!==void 0)K.uint32(26).string($.commandPrompt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.commandName=Q.string();continue}case 2:{if(Z!==18)break;J.commandDescription=Q.string();continue}case 3:{if(Z!==26)break;J.commandPrompt=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BK.fromPartial($??{})},fromPartial($){let K=fH();return K.commandName=$.commandName??void 0,K.commandDescription=$.commandDescription??void 0,K.commandPrompt=$.commandPrompt??void 0,K}};function _H(){return{}}var OK={encode($,K=new H){if($.pluginType!==void 0)K.uint32(8).int32($.pluginType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_H();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pluginType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OK.fromPartial($??{})},fromPartial($){let K=_H();return K.pluginType=$.pluginType??void 0,K}};function hH(){return{}}var AK={encode($,K=new H){if($.messageKey!==void 0)x.encode($.messageKey,K.uint32(10).fork()).join();if($.kind!==void 0)K.uint32(16).int32($.kind);if($.text!==void 0)K.uint32(26).string($.text);if($.kindNegative!==void 0)K.uint32(32).uint64($.kindNegative);if($.kindPositive!==void 0)K.uint32(40).uint64($.kindPositive);if($.kindReport!==void 0)K.uint32(48).int32($.kindReport);if($.sideBySideSurveyMetadata!==void 0)EK.encode($.sideBySideSurveyMetadata,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.kind=Q.int32();continue}case 3:{if(Z!==26)break;J.text=Q.string();continue}case 4:{if(Z!==32)break;J.kindNegative=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.kindPositive=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.kindReport=Q.int32();continue}case 7:{if(Z!==58)break;J.sideBySideSurveyMetadata=EK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AK.fromPartial($??{})},fromPartial($){let K=hH();return K.messageKey=$.messageKey!==void 0&&$.messageKey!==null?x.fromPartial($.messageKey):void 0,K.kind=$.kind??void 0,K.text=$.text??void 0,K.kindNegative=$.kindNegative??void 0,K.kindPositive=$.kindPositive??void 0,K.kindReport=$.kindReport??void 0,K.sideBySideSurveyMetadata=$.sideBySideSurveyMetadata!==void 0&&$.sideBySideSurveyMetadata!==null?EK.fromPartial($.sideBySideSurveyMetadata):void 0,K}};function lH(){return{}}var EK={encode($,K=new H){if($.selectedRequestId!==void 0)K.uint32(10).string($.selectedRequestId);if($.surveyId!==void 0)K.uint32(16).uint32($.surveyId);if($.simonSessionFbid!==void 0)K.uint32(26).string($.simonSessionFbid);if($.responseOtid!==void 0)K.uint32(34).string($.responseOtid);if($.responseTimestampMsString!==void 0)K.uint32(42).string($.responseTimestampMsString);if($.isSelectedResponsePrimary!==void 0)K.uint32(48).bool($.isSelectedResponsePrimary);if($.messageIdToEdit!==void 0)K.uint32(58).string($.messageIdToEdit);if($.analyticsData!==void 0)MK.encode($.analyticsData,K.uint32(66).fork()).join();if($.metaAiAnalyticsData!==void 0)WK.encode($.metaAiAnalyticsData,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.selectedRequestId=Q.string();continue}case 2:{if(Z!==16)break;J.surveyId=Q.uint32();continue}case 3:{if(Z!==26)break;J.simonSessionFbid=Q.string();continue}case 4:{if(Z!==34)break;J.responseOtid=Q.string();continue}case 5:{if(Z!==42)break;J.responseTimestampMsString=Q.string();continue}case 6:{if(Z!==48)break;J.isSelectedResponsePrimary=Q.bool();continue}case 7:{if(Z!==58)break;J.messageIdToEdit=Q.string();continue}case 8:{if(Z!==66)break;J.analyticsData=MK.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.metaAiAnalyticsData=WK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EK.fromPartial($??{})},fromPartial($){let K=lH();return K.selectedRequestId=$.selectedRequestId??void 0,K.surveyId=$.surveyId??void 0,K.simonSessionFbid=$.simonSessionFbid??void 0,K.responseOtid=$.responseOtid??void 0,K.responseTimestampMsString=$.responseTimestampMsString??void 0,K.isSelectedResponsePrimary=$.isSelectedResponsePrimary??void 0,K.messageIdToEdit=$.messageIdToEdit??void 0,K.analyticsData=$.analyticsData!==void 0&&$.analyticsData!==null?MK.fromPartial($.analyticsData):void 0,K.metaAiAnalyticsData=$.metaAiAnalyticsData!==void 0&&$.metaAiAnalyticsData!==null?WK.fromPartial($.metaAiAnalyticsData):void 0,K}};function pH(){return{}}var MK={encode($,K=new H){if($.tessaEvent!==void 0)K.uint32(10).string($.tessaEvent);if($.tessaSessionFbid!==void 0)K.uint32(18).string($.tessaSessionFbid);if($.simonSessionFbid!==void 0)K.uint32(26).string($.simonSessionFbid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.tessaEvent=Q.string();continue}case 2:{if(Z!==18)break;J.tessaSessionFbid=Q.string();continue}case 3:{if(Z!==26)break;J.simonSessionFbid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MK.fromPartial($??{})},fromPartial($){let K=pH();return K.tessaEvent=$.tessaEvent??void 0,K.tessaSessionFbid=$.tessaSessionFbid??void 0,K.simonSessionFbid=$.simonSessionFbid??void 0,K}};function uH(){return{}}var WK={encode($,K=new H){if($.surveyId!==void 0)K.uint32(8).uint32($.surveyId);if($.primaryResponseId!==void 0)K.uint32(18).string($.primaryResponseId);if($.testArmName!==void 0)K.uint32(26).string($.testArmName);if($.timestampMsString!==void 0)K.uint32(34).string($.timestampMsString);if($.ctaImpressionEvent!==void 0)vK.encode($.ctaImpressionEvent,K.uint32(42).fork()).join();if($.ctaClickEvent!==void 0)SK.encode($.ctaClickEvent,K.uint32(50).fork()).join();if($.cardImpressionEvent!==void 0)TK.encode($.cardImpressionEvent,K.uint32(58).fork()).join();if($.responseEvent!==void 0)yK.encode($.responseEvent,K.uint32(66).fork()).join();if($.abandonEvent!==void 0)IK.encode($.abandonEvent,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.surveyId=Q.uint32();continue}case 2:{if(Z!==18)break;J.primaryResponseId=Q.string();continue}case 3:{if(Z!==26)break;J.testArmName=Q.string();continue}case 4:{if(Z!==34)break;J.timestampMsString=Q.string();continue}case 5:{if(Z!==42)break;J.ctaImpressionEvent=vK.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.ctaClickEvent=SK.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.cardImpressionEvent=TK.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.responseEvent=yK.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.abandonEvent=IK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WK.fromPartial($??{})},fromPartial($){let K=uH();return K.surveyId=$.surveyId??void 0,K.primaryResponseId=$.primaryResponseId??void 0,K.testArmName=$.testArmName??void 0,K.timestampMsString=$.timestampMsString??void 0,K.ctaImpressionEvent=$.ctaImpressionEvent!==void 0&&$.ctaImpressionEvent!==null?vK.fromPartial($.ctaImpressionEvent):void 0,K.ctaClickEvent=$.ctaClickEvent!==void 0&&$.ctaClickEvent!==null?SK.fromPartial($.ctaClickEvent):void 0,K.cardImpressionEvent=$.cardImpressionEvent!==void 0&&$.cardImpressionEvent!==null?TK.fromPartial($.cardImpressionEvent):void 0,K.responseEvent=$.responseEvent!==void 0&&$.responseEvent!==null?yK.fromPartial($.responseEvent):void 0,K.abandonEvent=$.abandonEvent!==void 0&&$.abandonEvent!==null?IK.fromPartial($.abandonEvent):void 0,K}};function wH(){return{}}var IK={encode($,K=new H){if($.abandonDwellTimeMsString!==void 0)K.uint32(10).string($.abandonDwellTimeMsString);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.abandonDwellTimeMsString=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IK.fromPartial($??{})},fromPartial($){let K=wH();return K.abandonDwellTimeMsString=$.abandonDwellTimeMsString??void 0,K}};function nH(){return{}}var SK={encode($,K=new H){if($.isSurveyExpired!==void 0)K.uint32(8).bool($.isSurveyExpired);if($.clickDwellTimeMsString!==void 0)K.uint32(18).string($.clickDwellTimeMsString);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isSurveyExpired=Q.bool();continue}case 2:{if(Z!==18)break;J.clickDwellTimeMsString=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SK.fromPartial($??{})},fromPartial($){let K=nH();return K.isSurveyExpired=$.isSurveyExpired??void 0,K.clickDwellTimeMsString=$.clickDwellTimeMsString??void 0,K}};function dH(){return{}}var vK={encode($,K=new H){if($.isSurveyExpired!==void 0)K.uint32(8).bool($.isSurveyExpired);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isSurveyExpired=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vK.fromPartial($??{})},fromPartial($){let K=dH();return K.isSurveyExpired=$.isSurveyExpired??void 0,K}};function jH(){return{}}var TK={encode($,K=new H){return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TK.fromPartial($??{})},fromPartial($){return jH()}};function cH(){return{}}var yK={encode($,K=new H){if($.responseDwellTimeMsString!==void 0)K.uint32(10).string($.responseDwellTimeMsString);if($.selectedResponseId!==void 0)K.uint32(18).string($.selectedResponseId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.responseDwellTimeMsString=Q.string();continue}case 2:{if(Z!==18)break;J.selectedResponseId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yK.fromPartial($??{})},fromPartial($){let K=cH();return K.responseDwellTimeMsString=$.responseDwellTimeMsString??void 0,K.selectedResponseId=$.selectedResponseId??void 0,K}};function oH(){return{}}var fK={encode($,K=new H){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let Q of $.participantsMetadata)_K.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.participantsMetadata===void 0)J.participantsMetadata=[];let Y=_K.decode(Q,Q.uint32());if(Y!==void 0)J.participantsMetadata.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fK.fromPartial($??{})},fromPartial($){let K=oH();return K.participantsMetadata=$.participantsMetadata?.map((Q)=>_K.fromPartial(Q))||void 0,K}};function bH(){return{}}var _K={encode($,K=new H){if($.botFbid!==void 0)K.uint32(10).string($.botFbid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.botFbid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _K.fromPartial($??{})},fromPartial($){let K=bH();return K.botFbid=$.botFbid??void 0,K}};function iH(){return{}}var hK={encode($,K=new H){if($.imagineType!==void 0)K.uint32(8).int32($.imagineType);if($.shortPrompt!==void 0)K.uint32(18).string($.shortPrompt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.imagineType=Q.int32();continue}case 2:{if(Z!==18)break;J.shortPrompt=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hK.fromPartial($??{})},fromPartial($){let K=iH();return K.imagineType=$.imagineType??void 0,K.shortPrompt=$.shortPrompt??void 0,K}};function mH(){return{}}var lK={encode($,K=new H){if($.botBackend!==void 0)K.uint32(8).int32($.botBackend);if($.toolsUsed!==void 0&&$.toolsUsed.length!==0)for(let Q of $.toolsUsed)K.uint32(18).string(Q);if($.isThinking!==void 0)K.uint32(24).bool($.isThinking);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.botBackend=Q.int32();continue}case 2:{if(Z!==18)break;if(J.toolsUsed===void 0)J.toolsUsed=[];let Y=Q.string();if(Y!==void 0)J.toolsUsed.push(Y);continue}case 3:{if(Z!==24)break;J.isThinking=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lK.fromPartial($??{})},fromPartial($){let K=mH();return K.botBackend=$.botBackend??void 0,K.toolsUsed=$.toolsUsed?.map((Q)=>Q)||void 0,K.isThinking=$.isThinking??void 0,K}};function gH(){return{}}var pK={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pK.fromPartial($??{})},fromPartial($){let K=gH();return K.type=$.type??void 0,K}};function tH(){return{}}var uK={encode($,K=new H){if($.accounts!==void 0&&$.accounts.length!==0)for(let Q of $.accounts)pK.encode(Q,K.uint32(10).fork()).join();if($.acAuthTokens!==void 0)K.uint32(18).bytes($.acAuthTokens);if($.acErrorCode!==void 0)K.uint32(24).int32($.acErrorCode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.accounts===void 0)J.accounts=[];let Y=pK.decode(Q,Q.uint32());if(Y!==void 0)J.accounts.push(Y);continue}case 2:{if(Z!==18)break;J.acAuthTokens=Q.bytes();continue}case 3:{if(Z!==24)break;J.acErrorCode=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uK.fromPartial($??{})},fromPartial($){let K=tH();return K.accounts=$.accounts?.map((Q)=>pK.fromPartial(Q))||void 0,K.acAuthTokens=$.acAuthTokens??void 0,K.acErrorCode=$.acErrorCode??void 0,K}};function rH(){return{}}var z0={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).string($.fileSha256);if($.mediaKey!==void 0)K.uint32(18).string($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(26).string($.fileEncSha256);if($.directPath!==void 0)K.uint32(34).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(40).int64($.mediaKeyTimestamp);if($.mimetype!==void 0)K.uint32(50).string($.mimetype);if($.orientationType!==void 0)K.uint32(56).int32($.orientationType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.string();continue}case 2:{if(Z!==18)break;J.mediaKey=Q.string();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.string();continue}case 4:{if(Z!==34)break;J.directPath=Q.string();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.mimetype=Q.string();continue}case 7:{if(Z!==56)break;J.orientationType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return z0.fromPartial($??{})},fromPartial($){let K=rH();return K.fileSha256=$.fileSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.mimetype=$.mimetype??void 0,K.orientationType=$.orientationType??void 0,K}};function aH(){return{}}var l0={encode($,K=new H){if($.fact!==void 0)K.uint32(10).string($.fact);if($.factId!==void 0)K.uint32(18).string($.factId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fact=Q.string();continue}case 2:{if(Z!==18)break;J.factId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return l0.fromPartial($??{})},fromPartial($){let K=aH();return K.fact=$.fact??void 0,K.factId=$.factId??void 0,K}};function sH(){return{}}var wK={encode($,K=new H){if($.addedFacts!==void 0&&$.addedFacts.length!==0)for(let Q of $.addedFacts)l0.encode(Q,K.uint32(10).fork()).join();if($.removedFacts!==void 0&&$.removedFacts.length!==0)for(let Q of $.removedFacts)l0.encode(Q,K.uint32(18).fork()).join();if($.disclaimer!==void 0)K.uint32(26).string($.disclaimer);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.addedFacts===void 0)J.addedFacts=[];let Y=l0.decode(Q,Q.uint32());if(Y!==void 0)J.addedFacts.push(Y);continue}case 2:{if(Z!==18)break;if(J.removedFacts===void 0)J.removedFacts=[];let Y=l0.decode(Q,Q.uint32());if(Y!==void 0)J.removedFacts.push(Y);continue}case 3:{if(Z!==26)break;J.disclaimer=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wK.fromPartial($??{})},fromPartial($){let K=sH();return K.addedFacts=$.addedFacts?.map((Q)=>l0.fromPartial(Q))||void 0,K.removedFacts=$.removedFacts?.map((Q)=>l0.fromPartial(Q))||void 0,K.disclaimer=$.disclaimer??void 0,K}};function eH(){return{}}var nK={encode($,K=new H){if($.faceImages!==void 0&&$.faceImages.length!==0)for(let Q of $.faceImages)z0.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.faceImages===void 0)J.faceImages=[];let Y=z0.decode(Q,Q.uint32());if(Y!==void 0)J.faceImages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nK.fromPartial($??{})},fromPartial($){let K=eH();return K.faceImages=$.faceImages?.map((Q)=>z0.fromPartial(Q))||void 0,K}};function $z(){return{}}var dK={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$z();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dK.fromPartial($??{})},fromPartial($){let K=$z();return K.type=$.type??void 0,K}};function Kz(){return{}}var jK={encode($,K=new H){if($.origins!==void 0&&$.origins.length!==0)for(let Q of $.origins)dK.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Kz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.origins===void 0)J.origins=[];let Y=dK.decode(Q,Q.uint32());if(Y!==void 0)J.origins.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jK.fromPartial($??{})},fromPartial($){let K=Kz();return K.origins=$.origins?.map((Q)=>dK.fromPartial(Q))||void 0,K}};function Qz(){return{}}var cK={encode($,K=new H){if($.botEntryPointOrigin!==void 0)K.uint32(8).int32($.botEntryPointOrigin);if($.forwardScore!==void 0)K.uint32(16).uint32($.forwardScore);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Qz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.botEntryPointOrigin=Q.int32();continue}case 2:{if(Z!==16)break;J.forwardScore=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cK.fromPartial($??{})},fromPartial($){let K=Qz();return K.botEntryPointOrigin=$.botEntryPointOrigin??void 0,K.forwardScore=$.forwardScore??void 0,K}};function Zz(){return{}}var oK={encode($,K=new H){if($.personaId!==void 0)K.uint32(18).string($.personaId);if($.pluginMetadata!==void 0)gK.encode($.pluginMetadata,K.uint32(26).fork()).join();if($.suggestedPromptMetadata!==void 0)LQ.encode($.suggestedPromptMetadata,K.uint32(34).fork()).join();if($.invokerJid!==void 0)K.uint32(42).string($.invokerJid);if($.sessionMetadata!==void 0)GQ.encode($.sessionMetadata,K.uint32(50).fork()).join();if($.memuMetadata!==void 0)nK.encode($.memuMetadata,K.uint32(58).fork()).join();if($.timezone!==void 0)K.uint32(66).string($.timezone);if($.reminderMetadata!==void 0)qQ.encode($.reminderMetadata,K.uint32(74).fork()).join();if($.modelMetadata!==void 0)mK.encode($.modelMetadata,K.uint32(82).fork()).join();if($.messageDisclaimerText!==void 0)K.uint32(90).string($.messageDisclaimerText);if($.progressIndicatorMetadata!==void 0)tK.encode($.progressIndicatorMetadata,K.uint32(98).fork()).join();if($.capabilityMetadata!==void 0)RK.encode($.capabilityMetadata,K.uint32(106).fork()).join();if($.imagineMetadata!==void 0)hK.encode($.imagineMetadata,K.uint32(114).fork()).join();if($.memoryMetadata!==void 0)wK.encode($.memoryMetadata,K.uint32(122).fork()).join();if($.renderingMetadata!==void 0)HQ.encode($.renderingMetadata,K.uint32(130).fork()).join();if($.botMetricsMetadata!==void 0)bK.encode($.botMetricsMetadata,K.uint32(138).fork()).join();if($.botLinkedAccountsMetadata!==void 0)uK.encode($.botLinkedAccountsMetadata,K.uint32(146).fork()).join();if($.richResponseSourcesMetadata!==void 0)CQ.encode($.richResponseSourcesMetadata,K.uint32(154).fork()).join();if($.aiConversationContext!==void 0)K.uint32(162).bytes($.aiConversationContext);if($.botPromotionMessageMetadata!==void 0)$Q.encode($.botPromotionMessageMetadata,K.uint32(170).fork()).join();if($.botModeSelectionMetadata!==void 0)iK.encode($.botModeSelectionMetadata,K.uint32(178).fork()).join();if($.botQuotaMetadata!==void 0)JQ.encode($.botQuotaMetadata,K.uint32(186).fork()).join();if($.botAgeCollectionMetadata!==void 0)xK.encode($.botAgeCollectionMetadata,K.uint32(194).fork()).join();if($.conversationStarterPromptId!==void 0)K.uint32(202).string($.conversationStarterPromptId);if($.botResponseId!==void 0)K.uint32(210).string($.botResponseId);if($.verificationMetadata!==void 0)t0.encode($.verificationMetadata,K.uint32(218).fork()).join();if($.unifiedResponseMutation!==void 0)PQ.encode($.unifiedResponseMutation,K.uint32(226).fork()).join();if($.botMessageOriginMetadata!==void 0)jK.encode($.botMessageOriginMetadata,K.uint32(234).fork()).join();if($.inThreadSurveyMetadata!==void 0)iZ.encode($.inThreadSurveyMetadata,K.uint32(242).fork()).join();if($.botThreadInfo!==void 0)UK.encode($.botThreadInfo,K.uint32(250).fork()).join();if($.regenerateMetadata!==void 0)m$.encode($.regenerateMetadata,K.uint32(258).fork()).join();if($.sessionTransparencyMetadata!==void 0)Rq.encode($.sessionTransparencyMetadata,K.uint32(266).fork()).join();if($.botDocumentMessageMetadata!==void 0)OK.encode($.botDocumentMessageMetadata,K.uint32(274).fork()).join();if($.botGroupMetadata!==void 0)fK.encode($.botGroupMetadata,K.uint32(282).fork()).join();if($.botRenderingConfigMetadata!==void 0)YQ.encode($.botRenderingConfigMetadata,K.uint32(290).fork()).join();if($.botInfrastructureDiagnostics!==void 0)lK.encode($.botInfrastructureDiagnostics,K.uint32(298).fork()).join();if($.aiMediaCollectionMetadata!==void 0)o$.encode($.aiMediaCollectionMetadata,K.uint32(306).fork()).join();if($.commandMetadata!==void 0)BK.encode($.commandMetadata,K.uint32(314).fork()).join();if($.resolvedToolCallMetadata!==void 0)VQ.encode($.resolvedToolCallMetadata,K.uint32(322).fork()).join();if($.subscriptionUpsellMetadata!==void 0)GK.encode($.subscriptionUpsellMetadata,K.uint32(330).fork()).join();if($.pttPromptMetadata!==void 0)ZQ.encode($.pttPromptMetadata,K.uint32(338).fork()).join();if($.internalMetadata!==void 0)K.uint32(7994).bytes($.internalMetadata);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Zz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==18)break;J.personaId=Q.string();continue}case 3:{if(Z!==26)break;J.pluginMetadata=gK.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.suggestedPromptMetadata=LQ.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.invokerJid=Q.string();continue}case 6:{if(Z!==50)break;J.sessionMetadata=GQ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.memuMetadata=nK.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.timezone=Q.string();continue}case 9:{if(Z!==74)break;J.reminderMetadata=qQ.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.modelMetadata=mK.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.messageDisclaimerText=Q.string();continue}case 12:{if(Z!==98)break;J.progressIndicatorMetadata=tK.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.capabilityMetadata=RK.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.imagineMetadata=hK.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.memoryMetadata=wK.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.renderingMetadata=HQ.decode(Q,Q.uint32());continue}case 17:{if(Z!==138)break;J.botMetricsMetadata=bK.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.botLinkedAccountsMetadata=uK.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.richResponseSourcesMetadata=CQ.decode(Q,Q.uint32());continue}case 20:{if(Z!==162)break;J.aiConversationContext=Q.bytes();continue}case 21:{if(Z!==170)break;J.botPromotionMessageMetadata=$Q.decode(Q,Q.uint32());continue}case 22:{if(Z!==178)break;J.botModeSelectionMetadata=iK.decode(Q,Q.uint32());continue}case 23:{if(Z!==186)break;J.botQuotaMetadata=JQ.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.botAgeCollectionMetadata=xK.decode(Q,Q.uint32());continue}case 25:{if(Z!==202)break;J.conversationStarterPromptId=Q.string();continue}case 26:{if(Z!==210)break;J.botResponseId=Q.string();continue}case 27:{if(Z!==218)break;J.verificationMetadata=t0.decode(Q,Q.uint32());continue}case 28:{if(Z!==226)break;J.unifiedResponseMutation=PQ.decode(Q,Q.uint32());continue}case 29:{if(Z!==234)break;J.botMessageOriginMetadata=jK.decode(Q,Q.uint32());continue}case 30:{if(Z!==242)break;J.inThreadSurveyMetadata=iZ.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.botThreadInfo=UK.decode(Q,Q.uint32());continue}case 32:{if(Z!==258)break;J.regenerateMetadata=m$.decode(Q,Q.uint32());continue}case 33:{if(Z!==266)break;J.sessionTransparencyMetadata=Rq.decode(Q,Q.uint32());continue}case 34:{if(Z!==274)break;J.botDocumentMessageMetadata=OK.decode(Q,Q.uint32());continue}case 35:{if(Z!==282)break;J.botGroupMetadata=fK.decode(Q,Q.uint32());continue}case 36:{if(Z!==290)break;J.botRenderingConfigMetadata=YQ.decode(Q,Q.uint32());continue}case 37:{if(Z!==298)break;J.botInfrastructureDiagnostics=lK.decode(Q,Q.uint32());continue}case 38:{if(Z!==306)break;J.aiMediaCollectionMetadata=o$.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.commandMetadata=BK.decode(Q,Q.uint32());continue}case 40:{if(Z!==322)break;J.resolvedToolCallMetadata=VQ.decode(Q,Q.uint32());continue}case 41:{if(Z!==330)break;J.subscriptionUpsellMetadata=GK.decode(Q,Q.uint32());continue}case 42:{if(Z!==338)break;J.pttPromptMetadata=ZQ.decode(Q,Q.uint32());continue}case 999:{if(Z!==7994)break;J.internalMetadata=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oK.fromPartial($??{})},fromPartial($){let K=Zz();return K.personaId=$.personaId??void 0,K.pluginMetadata=$.pluginMetadata!==void 0&&$.pluginMetadata!==null?gK.fromPartial($.pluginMetadata):void 0,K.suggestedPromptMetadata=$.suggestedPromptMetadata!==void 0&&$.suggestedPromptMetadata!==null?LQ.fromPartial($.suggestedPromptMetadata):void 0,K.invokerJid=$.invokerJid??void 0,K.sessionMetadata=$.sessionMetadata!==void 0&&$.sessionMetadata!==null?GQ.fromPartial($.sessionMetadata):void 0,K.memuMetadata=$.memuMetadata!==void 0&&$.memuMetadata!==null?nK.fromPartial($.memuMetadata):void 0,K.timezone=$.timezone??void 0,K.reminderMetadata=$.reminderMetadata!==void 0&&$.reminderMetadata!==null?qQ.fromPartial($.reminderMetadata):void 0,K.modelMetadata=$.modelMetadata!==void 0&&$.modelMetadata!==null?mK.fromPartial($.modelMetadata):void 0,K.messageDisclaimerText=$.messageDisclaimerText??void 0,K.progressIndicatorMetadata=$.progressIndicatorMetadata!==void 0&&$.progressIndicatorMetadata!==null?tK.fromPartial($.progressIndicatorMetadata):void 0,K.capabilityMetadata=$.capabilityMetadata!==void 0&&$.capabilityMetadata!==null?RK.fromPartial($.capabilityMetadata):void 0,K.imagineMetadata=$.imagineMetadata!==void 0&&$.imagineMetadata!==null?hK.fromPartial($.imagineMetadata):void 0,K.memoryMetadata=$.memoryMetadata!==void 0&&$.memoryMetadata!==null?wK.fromPartial($.memoryMetadata):void 0,K.renderingMetadata=$.renderingMetadata!==void 0&&$.renderingMetadata!==null?HQ.fromPartial($.renderingMetadata):void 0,K.botMetricsMetadata=$.botMetricsMetadata!==void 0&&$.botMetricsMetadata!==null?bK.fromPartial($.botMetricsMetadata):void 0,K.botLinkedAccountsMetadata=$.botLinkedAccountsMetadata!==void 0&&$.botLinkedAccountsMetadata!==null?uK.fromPartial($.botLinkedAccountsMetadata):void 0,K.richResponseSourcesMetadata=$.richResponseSourcesMetadata!==void 0&&$.richResponseSourcesMetadata!==null?CQ.fromPartial($.richResponseSourcesMetadata):void 0,K.aiConversationContext=$.aiConversationContext??void 0,K.botPromotionMessageMetadata=$.botPromotionMessageMetadata!==void 0&&$.botPromotionMessageMetadata!==null?$Q.fromPartial($.botPromotionMessageMetadata):void 0,K.botModeSelectionMetadata=$.botModeSelectionMetadata!==void 0&&$.botModeSelectionMetadata!==null?iK.fromPartial($.botModeSelectionMetadata):void 0,K.botQuotaMetadata=$.botQuotaMetadata!==void 0&&$.botQuotaMetadata!==null?JQ.fromPartial($.botQuotaMetadata):void 0,K.botAgeCollectionMetadata=$.botAgeCollectionMetadata!==void 0&&$.botAgeCollectionMetadata!==null?xK.fromPartial($.botAgeCollectionMetadata):void 0,K.conversationStarterPromptId=$.conversationStarterPromptId??void 0,K.botResponseId=$.botResponseId??void 0,K.verificationMetadata=$.verificationMetadata!==void 0&&$.verificationMetadata!==null?t0.fromPartial($.verificationMetadata):void 0,K.unifiedResponseMutation=$.unifiedResponseMutation!==void 0&&$.unifiedResponseMutation!==null?PQ.fromPartial($.unifiedResponseMutation):void 0,K.botMessageOriginMetadata=$.botMessageOriginMetadata!==void 0&&$.botMessageOriginMetadata!==null?jK.fromPartial($.botMessageOriginMetadata):void 0,K.inThreadSurveyMetadata=$.inThreadSurveyMetadata!==void 0&&$.inThreadSurveyMetadata!==null?iZ.fromPartial($.inThreadSurveyMetadata):void 0,K.botThreadInfo=$.botThreadInfo!==void 0&&$.botThreadInfo!==null?UK.fromPartial($.botThreadInfo):void 0,K.regenerateMetadata=$.regenerateMetadata!==void 0&&$.regenerateMetadata!==null?m$.fromPartial($.regenerateMetadata):void 0,K.sessionTransparencyMetadata=$.sessionTransparencyMetadata!==void 0&&$.sessionTransparencyMetadata!==null?Rq.fromPartial($.sessionTransparencyMetadata):void 0,K.botDocumentMessageMetadata=$.botDocumentMessageMetadata!==void 0&&$.botDocumentMessageMetadata!==null?OK.fromPartial($.botDocumentMessageMetadata):void 0,K.botGroupMetadata=$.botGroupMetadata!==void 0&&$.botGroupMetadata!==null?fK.fromPartial($.botGroupMetadata):void 0,K.botRenderingConfigMetadata=$.botRenderingConfigMetadata!==void 0&&$.botRenderingConfigMetadata!==null?YQ.fromPartial($.botRenderingConfigMetadata):void 0,K.botInfrastructureDiagnostics=$.botInfrastructureDiagnostics!==void 0&&$.botInfrastructureDiagnostics!==null?lK.fromPartial($.botInfrastructureDiagnostics):void 0,K.aiMediaCollectionMetadata=$.aiMediaCollectionMetadata!==void 0&&$.aiMediaCollectionMetadata!==null?o$.fromPartial($.aiMediaCollectionMetadata):void 0,K.commandMetadata=$.commandMetadata!==void 0&&$.commandMetadata!==null?BK.fromPartial($.commandMetadata):void 0,K.resolvedToolCallMetadata=$.resolvedToolCallMetadata!==void 0&&$.resolvedToolCallMetadata!==null?VQ.fromPartial($.resolvedToolCallMetadata):void 0,K.subscriptionUpsellMetadata=$.subscriptionUpsellMetadata!==void 0&&$.subscriptionUpsellMetadata!==null?GK.fromPartial($.subscriptionUpsellMetadata):void 0,K.pttPromptMetadata=$.pttPromptMetadata!==void 0&&$.pttPromptMetadata!==null?ZQ.fromPartial($.pttPromptMetadata):void 0,K.internalMetadata=$.internalMetadata??void 0,K}};function Jz(){return{}}var bK={encode($,K=new H){if($.destinationId!==void 0)K.uint32(10).string($.destinationId);if($.destinationEntryPoint!==void 0)K.uint32(16).int32($.destinationEntryPoint);if($.threadOrigin!==void 0)K.uint32(24).int32($.threadOrigin);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Jz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.destinationId=Q.string();continue}case 2:{if(Z!==16)break;J.destinationEntryPoint=Q.int32();continue}case 3:{if(Z!==24)break;J.threadOrigin=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bK.fromPartial($??{})},fromPartial($){let K=Jz();return K.destinationId=$.destinationId??void 0,K.destinationEntryPoint=$.destinationEntryPoint??void 0,K.threadOrigin=$.threadOrigin??void 0,K}};function Xz(){return{}}var iK={encode($,K=new H){if($.mode!==void 0&&$.mode.length!==0)for(let Q of $.mode)K.uint32(8).int32(Q);if($.overrideMode!==void 0&&$.overrideMode.length!==0)for(let Q of $.overrideMode)K.uint32(16).uint32(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Xz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.mode===void 0)J.mode=[];J.mode.push(Q.int32());continue}if(Z===10){if(J.mode===void 0)J.mode=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.mode.push(Q.int32());continue}break}case 2:{if(Z===16){if(J.overrideMode===void 0)J.overrideMode=[];J.overrideMode.push(Q.uint32());continue}if(Z===18){if(J.overrideMode===void 0)J.overrideMode=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.overrideMode.push(Q.uint32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iK.fromPartial($??{})},fromPartial($){let K=Xz();return K.mode=$.mode?.map((Q)=>Q)||void 0,K.overrideMode=$.overrideMode?.map((Q)=>Q)||void 0,K}};function qz(){return{}}var mK={encode($,K=new H){if($.modelType!==void 0)K.uint32(8).int32($.modelType);if($.premiumModelStatus!==void 0)K.uint32(16).int32($.premiumModelStatus);if($.modelNameOverride!==void 0)K.uint32(26).string($.modelNameOverride);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.modelType=Q.int32();continue}case 2:{if(Z!==16)break;J.premiumModelStatus=Q.int32();continue}case 3:{if(Z!==26)break;J.modelNameOverride=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mK.fromPartial($??{})},fromPartial($){let K=qz();return K.modelType=$.modelType??void 0,K.premiumModelStatus=$.premiumModelStatus??void 0,K.modelNameOverride=$.modelNameOverride??void 0,K}};function Yz(){return{}}var gK={encode($,K=new H){if($.provider!==void 0)K.uint32(8).int32($.provider);if($.pluginType!==void 0)K.uint32(16).int32($.pluginType);if($.thumbnailCdnUrl!==void 0)K.uint32(26).string($.thumbnailCdnUrl);if($.profilePhotoCdnUrl!==void 0)K.uint32(34).string($.profilePhotoCdnUrl);if($.searchProviderUrl!==void 0)K.uint32(42).string($.searchProviderUrl);if($.referenceIndex!==void 0)K.uint32(48).uint32($.referenceIndex);if($.expectedLinksCount!==void 0)K.uint32(56).uint32($.expectedLinksCount);if($.searchQuery!==void 0)K.uint32(74).string($.searchQuery);if($.parentPluginMessageKey!==void 0)x.encode($.parentPluginMessageKey,K.uint32(82).fork()).join();if($.deprecatedField!==void 0)K.uint32(88).int32($.deprecatedField);if($.parentPluginType!==void 0)K.uint32(96).int32($.parentPluginType);if($.faviconCdnUrl!==void 0)K.uint32(106).string($.faviconCdnUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Yz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.provider=Q.int32();continue}case 2:{if(Z!==16)break;J.pluginType=Q.int32();continue}case 3:{if(Z!==26)break;J.thumbnailCdnUrl=Q.string();continue}case 4:{if(Z!==34)break;J.profilePhotoCdnUrl=Q.string();continue}case 5:{if(Z!==42)break;J.searchProviderUrl=Q.string();continue}case 6:{if(Z!==48)break;J.referenceIndex=Q.uint32();continue}case 7:{if(Z!==56)break;J.expectedLinksCount=Q.uint32();continue}case 9:{if(Z!==74)break;J.searchQuery=Q.string();continue}case 10:{if(Z!==82)break;J.parentPluginMessageKey=x.decode(Q,Q.uint32());continue}case 11:{if(Z!==88)break;J.deprecatedField=Q.int32();continue}case 12:{if(Z!==96)break;J.parentPluginType=Q.int32();continue}case 13:{if(Z!==106)break;J.faviconCdnUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gK.fromPartial($??{})},fromPartial($){let K=Yz();return K.provider=$.provider??void 0,K.pluginType=$.pluginType??void 0,K.thumbnailCdnUrl=$.thumbnailCdnUrl??void 0,K.profilePhotoCdnUrl=$.profilePhotoCdnUrl??void 0,K.searchProviderUrl=$.searchProviderUrl??void 0,K.referenceIndex=$.referenceIndex??void 0,K.expectedLinksCount=$.expectedLinksCount??void 0,K.searchQuery=$.searchQuery??void 0,K.parentPluginMessageKey=$.parentPluginMessageKey!==void 0&&$.parentPluginMessageKey!==null?x.fromPartial($.parentPluginMessageKey):void 0,K.deprecatedField=$.deprecatedField??void 0,K.parentPluginType=$.parentPluginType??void 0,K.faviconCdnUrl=$.faviconCdnUrl??void 0,K}};function Hz(){return{}}var tK={encode($,K=new H){if($.progressDescription!==void 0)K.uint32(10).string($.progressDescription);if($.stepsMetadata!==void 0&&$.stepsMetadata.length!==0)for(let Q of $.stepsMetadata)rK.encode(Q,K.uint32(18).fork()).join();if($.estimatedCompletionTime!==void 0)K.uint32(24).int64($.estimatedCompletionTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Hz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.progressDescription=Q.string();continue}case 2:{if(Z!==18)break;if(J.stepsMetadata===void 0)J.stepsMetadata=[];let Y=rK.decode(Q,Q.uint32());if(Y!==void 0)J.stepsMetadata.push(Y);continue}case 3:{if(Z!==24)break;J.estimatedCompletionTime=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tK.fromPartial($??{})},fromPartial($){let K=Hz();return K.progressDescription=$.progressDescription??void 0,K.stepsMetadata=$.stepsMetadata?.map((Q)=>rK.fromPartial(Q))||void 0,K.estimatedCompletionTime=$.estimatedCompletionTime??void 0,K}};function zz(){return{}}var rK={encode($,K=new H){if($.statusTitle!==void 0)K.uint32(10).string($.statusTitle);if($.statusBody!==void 0)K.uint32(18).string($.statusBody);if($.sourcesMetadata!==void 0&&$.sourcesMetadata.length!==0)for(let Q of $.sourcesMetadata)sK.encode(Q,K.uint32(26).fork()).join();if($.status!==void 0)K.uint32(32).int32($.status);if($.isReasoning!==void 0)K.uint32(40).bool($.isReasoning);if($.isEnhancedSearch!==void 0)K.uint32(48).bool($.isEnhancedSearch);if($.sections!==void 0&&$.sections.length!==0)for(let Q of $.sections)eK.encode(Q,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.statusTitle=Q.string();continue}case 2:{if(Z!==18)break;J.statusBody=Q.string();continue}case 3:{if(Z!==26)break;if(J.sourcesMetadata===void 0)J.sourcesMetadata=[];let Y=sK.decode(Q,Q.uint32());if(Y!==void 0)J.sourcesMetadata.push(Y);continue}case 4:{if(Z!==32)break;J.status=Q.int32();continue}case 5:{if(Z!==40)break;J.isReasoning=Q.bool();continue}case 6:{if(Z!==48)break;J.isEnhancedSearch=Q.bool();continue}case 7:{if(Z!==58)break;if(J.sections===void 0)J.sections=[];let Y=eK.decode(Q,Q.uint32());if(Y!==void 0)J.sections.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rK.fromPartial($??{})},fromPartial($){let K=zz();return K.statusTitle=$.statusTitle??void 0,K.statusBody=$.statusBody??void 0,K.sourcesMetadata=$.sourcesMetadata?.map((Q)=>sK.fromPartial(Q))||void 0,K.status=$.status??void 0,K.isReasoning=$.isReasoning??void 0,K.isEnhancedSearch=$.isEnhancedSearch??void 0,K.sections=$.sections?.map((Q)=>eK.fromPartial(Q))||void 0,K}};function Vz(){return{}}var aK={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.provider!==void 0)K.uint32(16).int32($.provider);if($.sourceUrl!==void 0)K.uint32(26).string($.sourceUrl);if($.favIconUrl!==void 0)K.uint32(34).string($.favIconUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Vz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==16)break;J.provider=Q.int32();continue}case 3:{if(Z!==26)break;J.sourceUrl=Q.string();continue}case 4:{if(Z!==34)break;J.favIconUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aK.fromPartial($??{})},fromPartial($){let K=Vz();return K.title=$.title??void 0,K.provider=$.provider??void 0,K.sourceUrl=$.sourceUrl??void 0,K.favIconUrl=$.favIconUrl??void 0,K}};function Gz(){return{}}var sK={encode($,K=new H){if($.sourceTitle!==void 0)K.uint32(10).string($.sourceTitle);if($.provider!==void 0)K.uint32(16).int32($.provider);if($.sourceUrl!==void 0)K.uint32(26).string($.sourceUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Gz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sourceTitle=Q.string();continue}case 2:{if(Z!==16)break;J.provider=Q.int32();continue}case 3:{if(Z!==26)break;J.sourceUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sK.fromPartial($??{})},fromPartial($){let K=Gz();return K.sourceTitle=$.sourceTitle??void 0,K.provider=$.provider??void 0,K.sourceUrl=$.sourceUrl??void 0,K}};function Uz(){return{}}var eK={encode($,K=new H){if($.sectionTitle!==void 0)K.uint32(10).string($.sectionTitle);if($.sectionBody!==void 0)K.uint32(18).string($.sectionBody);if($.sourcesMetadata!==void 0&&$.sourcesMetadata.length!==0)for(let Q of $.sourcesMetadata)aK.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Uz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sectionTitle=Q.string();continue}case 2:{if(Z!==18)break;J.sectionBody=Q.string();continue}case 3:{if(Z!==26)break;if(J.sourcesMetadata===void 0)J.sourcesMetadata=[];let Y=aK.decode(Q,Q.uint32());if(Y!==void 0)J.sourcesMetadata.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eK.fromPartial($??{})},fromPartial($){let K=Uz();return K.sectionTitle=$.sectionTitle??void 0,K.sectionBody=$.sectionBody??void 0,K.sourcesMetadata=$.sourcesMetadata?.map((Q)=>aK.fromPartial(Q))||void 0,K}};function Cz(){return{}}var $Q={encode($,K=new H){if($.promotionType!==void 0)K.uint32(8).int32($.promotionType);if($.buttonTitle!==void 0)K.uint32(18).string($.buttonTitle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Cz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.promotionType=Q.int32();continue}case 2:{if(Z!==18)break;J.buttonTitle=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $Q.fromPartial($??{})},fromPartial($){let K=Cz();return K.promotionType=$.promotionType??void 0,K.buttonTitle=$.buttonTitle??void 0,K}};function Dz(){return{}}var KQ={encode($,K=new H){if($.prompt!==void 0)K.uint32(10).string($.prompt);if($.promptId!==void 0)K.uint32(18).string($.promptId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Dz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.prompt=Q.string();continue}case 2:{if(Z!==18)break;J.promptId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KQ.fromPartial($??{})},fromPartial($){let K=Dz();return K.prompt=$.prompt??void 0,K.promptId=$.promptId??void 0,K}};function Lz(){return{}}var QQ={encode($,K=new H){if($.suggestions!==void 0&&$.suggestions.length!==0)for(let Q of $.suggestions)KQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Lz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.suggestions===void 0)J.suggestions=[];let Y=KQ.decode(Q,Q.uint32());if(Y!==void 0)J.suggestions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QQ.fromPartial($??{})},fromPartial($){let K=Lz();return K.suggestions=$.suggestions?.map((Q)=>KQ.fromPartial(Q))||void 0,K}};function Pz(){return{}}var ZQ={encode($,K=new H){if($.transcript!==void 0)K.uint32(10).string($.transcript);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Pz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.transcript=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZQ.fromPartial($??{})},fromPartial($){let K=Pz();return K.transcript=$.transcript??void 0,K}};function Fz(){return{}}var JQ={encode($,K=new H){if($.botFeatureQuotaMetadata!==void 0&&$.botFeatureQuotaMetadata.length!==0)for(let Q of $.botFeatureQuotaMetadata)XQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Fz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.botFeatureQuotaMetadata===void 0)J.botFeatureQuotaMetadata=[];let Y=XQ.decode(Q,Q.uint32());if(Y!==void 0)J.botFeatureQuotaMetadata.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JQ.fromPartial($??{})},fromPartial($){let K=Fz();return K.botFeatureQuotaMetadata=$.botFeatureQuotaMetadata?.map((Q)=>XQ.fromPartial(Q))||void 0,K}};function xz(){return{}}var XQ={encode($,K=new H){if($.featureType!==void 0)K.uint32(8).int32($.featureType);if($.remainingQuota!==void 0)K.uint32(16).uint32($.remainingQuota);if($.expirationTimestamp!==void 0)K.uint32(24).uint64($.expirationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.featureType=Q.int32();continue}case 2:{if(Z!==16)break;J.remainingQuota=Q.uint32();continue}case 3:{if(Z!==24)break;J.expirationTimestamp=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XQ.fromPartial($??{})},fromPartial($){let K=xz();return K.featureType=$.featureType??void 0,K.remainingQuota=$.remainingQuota??void 0,K.expirationTimestamp=$.expirationTimestamp??void 0,K}};function kz(){return{}}var qQ={encode($,K=new H){if($.requestMessageKey!==void 0)x.encode($.requestMessageKey,K.uint32(10).fork()).join();if($.action!==void 0)K.uint32(16).int32($.action);if($.name!==void 0)K.uint32(26).string($.name);if($.nextTriggerTimestamp!==void 0)K.uint32(32).uint64($.nextTriggerTimestamp);if($.frequency!==void 0)K.uint32(40).int32($.frequency);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.requestMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.action=Q.int32();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==32)break;J.nextTriggerTimestamp=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.frequency=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qQ.fromPartial($??{})},fromPartial($){let K=kz();return K.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?x.fromPartial($.requestMessageKey):void 0,K.action=$.action??void 0,K.name=$.name??void 0,K.nextTriggerTimestamp=$.nextTriggerTimestamp??void 0,K.frequency=$.frequency??void 0,K}};function Nz(){return{}}var YQ={encode($,K=new H){if($.bloksVersioningId!==void 0)K.uint32(10).string($.bloksVersioningId);if($.pixelDensity!==void 0)K.uint32(17).double($.pixelDensity);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Nz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.bloksVersioningId=Q.string();continue}case 2:{if(Z!==17)break;J.pixelDensity=Q.double();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YQ.fromPartial($??{})},fromPartial($){let K=Nz();return K.bloksVersioningId=$.bloksVersioningId??void 0,K.pixelDensity=$.pixelDensity??void 0,K}};function Rz(){return{}}var HQ={encode($,K=new H){if($.keywords!==void 0&&$.keywords.length!==0)for(let Q of $.keywords)zQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Rz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.keywords===void 0)J.keywords=[];let Y=zQ.decode(Q,Q.uint32());if(Y!==void 0)J.keywords.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HQ.fromPartial($??{})},fromPartial($){let K=Rz();return K.keywords=$.keywords?.map((Q)=>zQ.fromPartial(Q))||void 0,K}};function Bz(){return{}}var zQ={encode($,K=new H){if($.value!==void 0)K.uint32(10).string($.value);if($.associatedPrompts!==void 0&&$.associatedPrompts.length!==0)for(let Q of $.associatedPrompts)K.uint32(18).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Bz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.value=Q.string();continue}case 2:{if(Z!==18)break;if(J.associatedPrompts===void 0)J.associatedPrompts=[];let Y=Q.string();if(Y!==void 0)J.associatedPrompts.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zQ.fromPartial($??{})},fromPartial($){let K=Bz();return K.value=$.value??void 0,K.associatedPrompts=$.associatedPrompts?.map((Q)=>Q)||void 0,K}};function Oz(){return{}}var VQ={encode($,K=new H){if($.toolCallId!==void 0)K.uint32(10).string($.toolCallId);if($.resolutionDataSerialized!==void 0)K.uint32(18).string($.resolutionDataSerialized);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Oz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.toolCallId=Q.string();continue}case 2:{if(Z!==18)break;J.resolutionDataSerialized=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VQ.fromPartial($??{})},fromPartial($){let K=Oz();return K.toolCallId=$.toolCallId??void 0,K.resolutionDataSerialized=$.resolutionDataSerialized??void 0,K}};function Az(){return{}}var GQ={encode($,K=new H){if($.sessionId!==void 0)K.uint32(10).string($.sessionId);if($.sessionSource!==void 0)K.uint32(16).int32($.sessionSource);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Az();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sessionId=Q.string();continue}case 2:{if(Z!==16)break;J.sessionSource=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GQ.fromPartial($??{})},fromPartial($){let K=Az();return K.sessionId=$.sessionId??void 0,K.sessionSource=$.sessionSource??void 0,K}};function Ez(){return{}}var t0={encode($,K=new H){if($.proofs!==void 0&&$.proofs.length!==0)for(let Q of $.proofs)UQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Ez();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.proofs===void 0)J.proofs=[];let Y=UQ.decode(Q,Q.uint32());if(Y!==void 0)J.proofs.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t0.fromPartial($??{})},fromPartial($){let K=Ez();return K.proofs=$.proofs?.map((Q)=>UQ.fromPartial(Q))||void 0,K}};function Mz(){return{}}var UQ={encode($,K=new H){if($.version!==void 0)K.uint32(8).int32($.version);if($.useCase!==void 0)K.uint32(16).int32($.useCase);if($.signature!==void 0)K.uint32(26).bytes($.signature);if($.certificateChain!==void 0&&$.certificateChain.length!==0)for(let Q of $.certificateChain)K.uint32(34).bytes(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Mz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.version=Q.int32();continue}case 2:{if(Z!==16)break;J.useCase=Q.int32();continue}case 3:{if(Z!==26)break;J.signature=Q.bytes();continue}case 4:{if(Z!==34)break;if(J.certificateChain===void 0)J.certificateChain=[];let Y=Q.bytes();if(Y!==void 0)J.certificateChain.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UQ.fromPartial($??{})},fromPartial($){let K=Mz();return K.version=$.version??void 0,K.useCase=$.useCase??void 0,K.signature=$.signature??void 0,K.certificateChain=$.certificateChain?.map((Q)=>Q)||void 0,K}};function Wz(){return{}}var CQ={encode($,K=new H){if($.sources!==void 0&&$.sources.length!==0)for(let Q of $.sources)DQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Wz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.sources===void 0)J.sources=[];let Y=DQ.decode(Q,Q.uint32());if(Y!==void 0)J.sources.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CQ.fromPartial($??{})},fromPartial($){let K=Wz();return K.sources=$.sources?.map((Q)=>DQ.fromPartial(Q))||void 0,K}};function Iz(){return{}}var DQ={encode($,K=new H){if($.provider!==void 0)K.uint32(8).int32($.provider);if($.thumbnailCdnUrl!==void 0)K.uint32(18).string($.thumbnailCdnUrl);if($.sourceProviderUrl!==void 0)K.uint32(26).string($.sourceProviderUrl);if($.sourceQuery!==void 0)K.uint32(34).string($.sourceQuery);if($.faviconCdnUrl!==void 0)K.uint32(42).string($.faviconCdnUrl);if($.citationNumber!==void 0)K.uint32(48).uint32($.citationNumber);if($.sourceTitle!==void 0)K.uint32(58).string($.sourceTitle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Iz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.provider=Q.int32();continue}case 2:{if(Z!==18)break;J.thumbnailCdnUrl=Q.string();continue}case 3:{if(Z!==26)break;J.sourceProviderUrl=Q.string();continue}case 4:{if(Z!==34)break;J.sourceQuery=Q.string();continue}case 5:{if(Z!==42)break;J.faviconCdnUrl=Q.string();continue}case 6:{if(Z!==48)break;J.citationNumber=Q.uint32();continue}case 7:{if(Z!==58)break;J.sourceTitle=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DQ.fromPartial($??{})},fromPartial($){let K=Iz();return K.provider=$.provider??void 0,K.thumbnailCdnUrl=$.thumbnailCdnUrl??void 0,K.sourceProviderUrl=$.sourceProviderUrl??void 0,K.sourceQuery=$.sourceQuery??void 0,K.faviconCdnUrl=$.faviconCdnUrl??void 0,K.citationNumber=$.citationNumber??void 0,K.sourceTitle=$.sourceTitle??void 0,K}};function Sz(){return{}}var LQ={encode($,K=new H){if($.suggestedPrompts!==void 0&&$.suggestedPrompts.length!==0)for(let Q of $.suggestedPrompts)K.uint32(10).string(Q);if($.selectedPromptIndex!==void 0)K.uint32(16).uint32($.selectedPromptIndex);if($.promptSuggestions!==void 0)QQ.encode($.promptSuggestions,K.uint32(26).fork()).join();if($.selectedPromptId!==void 0)K.uint32(34).string($.selectedPromptId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Sz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.suggestedPrompts===void 0)J.suggestedPrompts=[];let Y=Q.string();if(Y!==void 0)J.suggestedPrompts.push(Y);continue}case 2:{if(Z!==16)break;J.selectedPromptIndex=Q.uint32();continue}case 3:{if(Z!==26)break;J.promptSuggestions=QQ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.selectedPromptId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LQ.fromPartial($??{})},fromPartial($){let K=Sz();return K.suggestedPrompts=$.suggestedPrompts?.map((Q)=>Q)||void 0,K.selectedPromptIndex=$.selectedPromptIndex??void 0,K.promptSuggestions=$.promptSuggestions!==void 0&&$.promptSuggestions!==null?QQ.fromPartial($.promptSuggestions):void 0,K.selectedPromptId=$.selectedPromptId??void 0,K}};function vz(){return{}}var PQ={encode($,K=new H){if($.sbsMetadata!==void 0)xQ.encode($.sbsMetadata,K.uint32(10).fork()).join();if($.mediaDetailsMetadataList!==void 0&&$.mediaDetailsMetadataList.length!==0)for(let Q of $.mediaDetailsMetadataList)FQ.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sbsMetadata=xQ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.mediaDetailsMetadataList===void 0)J.mediaDetailsMetadataList=[];let Y=FQ.decode(Q,Q.uint32());if(Y!==void 0)J.mediaDetailsMetadataList.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PQ.fromPartial($??{})},fromPartial($){let K=vz();return K.sbsMetadata=$.sbsMetadata!==void 0&&$.sbsMetadata!==null?xQ.fromPartial($.sbsMetadata):void 0,K.mediaDetailsMetadataList=$.mediaDetailsMetadataList?.map((Q)=>FQ.fromPartial(Q))||void 0,K}};function Tz(){return{}}var FQ={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.highResMedia!==void 0)z0.encode($.highResMedia,K.uint32(18).fork()).join();if($.previewMedia!==void 0)z0.encode($.previewMedia,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Tz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==18)break;J.highResMedia=z0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.previewMedia=z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FQ.fromPartial($??{})},fromPartial($){let K=Tz();return K.id=$.id??void 0,K.highResMedia=$.highResMedia!==void 0&&$.highResMedia!==null?z0.fromPartial($.highResMedia):void 0,K.previewMedia=$.previewMedia!==void 0&&$.previewMedia!==null?z0.fromPartial($.previewMedia):void 0,K}};function yz(){return{}}var xQ={encode($,K=new H){if($.primaryResponseId!==void 0)K.uint32(10).string($.primaryResponseId);if($.surveyCtaHasRendered!==void 0)K.uint32(16).bool($.surveyCtaHasRendered);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.primaryResponseId=Q.string();continue}case 2:{if(Z!==16)break;J.surveyCtaHasRendered=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xQ.fromPartial($??{})},fromPartial($){let K=yz();return K.primaryResponseId=$.primaryResponseId??void 0,K.surveyCtaHasRendered=$.surveyCtaHasRendered??void 0,K}};function fz(){return{}}var r0={encode($,K=new H){if($.callResult!==void 0)K.uint32(8).int32($.callResult);if($.isDndMode!==void 0)K.uint32(16).bool($.isDndMode);if($.silenceReason!==void 0)K.uint32(24).int32($.silenceReason);if($.duration!==void 0)K.uint32(32).int64($.duration);if($.startTime!==void 0)K.uint32(40).int64($.startTime);if($.isIncoming!==void 0)K.uint32(48).bool($.isIncoming);if($.isVideo!==void 0)K.uint32(56).bool($.isVideo);if($.isCallLink!==void 0)K.uint32(64).bool($.isCallLink);if($.callLinkToken!==void 0)K.uint32(74).string($.callLinkToken);if($.scheduledCallId!==void 0)K.uint32(82).string($.scheduledCallId);if($.callId!==void 0)K.uint32(90).string($.callId);if($.callCreatorJid!==void 0)K.uint32(98).string($.callCreatorJid);if($.groupJid!==void 0)K.uint32(106).string($.groupJid);if($.participants!==void 0&&$.participants.length!==0)for(let Q of $.participants)kQ.encode(Q,K.uint32(114).fork()).join();if($.callType!==void 0)K.uint32(120).int32($.callType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.callResult=Q.int32();continue}case 2:{if(Z!==16)break;J.isDndMode=Q.bool();continue}case 3:{if(Z!==24)break;J.silenceReason=Q.int32();continue}case 4:{if(Z!==32)break;J.duration=Q.int64Number();continue}case 5:{if(Z!==40)break;J.startTime=Q.int64Number();continue}case 6:{if(Z!==48)break;J.isIncoming=Q.bool();continue}case 7:{if(Z!==56)break;J.isVideo=Q.bool();continue}case 8:{if(Z!==64)break;J.isCallLink=Q.bool();continue}case 9:{if(Z!==74)break;J.callLinkToken=Q.string();continue}case 10:{if(Z!==82)break;J.scheduledCallId=Q.string();continue}case 11:{if(Z!==90)break;J.callId=Q.string();continue}case 12:{if(Z!==98)break;J.callCreatorJid=Q.string();continue}case 13:{if(Z!==106)break;J.groupJid=Q.string();continue}case 14:{if(Z!==114)break;if(J.participants===void 0)J.participants=[];let Y=kQ.decode(Q,Q.uint32());if(Y!==void 0)J.participants.push(Y);continue}case 15:{if(Z!==120)break;J.callType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r0.fromPartial($??{})},fromPartial($){let K=fz();return K.callResult=$.callResult??void 0,K.isDndMode=$.isDndMode??void 0,K.silenceReason=$.silenceReason??void 0,K.duration=$.duration??void 0,K.startTime=$.startTime??void 0,K.isIncoming=$.isIncoming??void 0,K.isVideo=$.isVideo??void 0,K.isCallLink=$.isCallLink??void 0,K.callLinkToken=$.callLinkToken??void 0,K.scheduledCallId=$.scheduledCallId??void 0,K.callId=$.callId??void 0,K.callCreatorJid=$.callCreatorJid??void 0,K.groupJid=$.groupJid??void 0,K.participants=$.participants?.map((Q)=>kQ.fromPartial(Q))||void 0,K.callType=$.callType??void 0,K}};function _z(){return{}}var kQ={encode($,K=new H){if($.userJid!==void 0)K.uint32(10).string($.userJid);if($.callResult!==void 0)K.uint32(16).int32($.callResult);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_z();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.userJid=Q.string();continue}case 2:{if(Z!==16)break;J.callResult=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kQ.fromPartial($??{})},fromPartial($){let K=_z();return K.userJid=$.userJid??void 0,K.callResult=$.callResult??void 0,K}};function hz(){return{}}var nY={encode($,K=new H){if($.leaf!==void 0)E0.encode($.leaf,K.uint32(10).fork()).join();if($.intermediate!==void 0)E0.encode($.intermediate,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.leaf=E0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.intermediate=E0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nY.fromPartial($??{})},fromPartial($){let K=hz();return K.leaf=$.leaf!==void 0&&$.leaf!==null?E0.fromPartial($.leaf):void 0,K.intermediate=$.intermediate!==void 0&&$.intermediate!==null?E0.fromPartial($.intermediate):void 0,K}};function lz(){return{}}var E0={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.signature!==void 0)K.uint32(18).bytes($.signature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.signature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return E0.fromPartial($??{})},fromPartial($){let K=lz();return K.details=$.details??void 0,K.signature=$.signature??void 0,K}};function pz(){return{}}var dY={encode($,K=new H){if($.serial!==void 0)K.uint32(8).uint32($.serial);if($.issuerSerial!==void 0)K.uint32(16).uint32($.issuerSerial);if($.key!==void 0)K.uint32(26).bytes($.key);if($.notBefore!==void 0)K.uint32(32).uint64($.notBefore);if($.notAfter!==void 0)K.uint32(40).uint64($.notAfter);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serial=Q.uint32();continue}case 2:{if(Z!==16)break;J.issuerSerial=Q.uint32();continue}case 3:{if(Z!==26)break;J.key=Q.bytes();continue}case 4:{if(Z!==32)break;J.notBefore=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.notAfter=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dY.fromPartial($??{})},fromPartial($){let K=pz();return K.serial=$.serial??void 0,K.issuerSerial=$.issuerSerial??void 0,K.key=$.key??void 0,K.notBefore=$.notBefore??void 0,K.notAfter=$.notAfter??void 0,K}};function uz(){return{}}var a0={encode($,K=new H){if($.hideLockedChats!==void 0)K.uint32(8).bool($.hideLockedChats);if($.secretCode!==void 0)BY.encode($.secretCode,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.hideLockedChats=Q.bool();continue}case 2:{if(Z!==18)break;J.secretCode=BY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a0.fromPartial($??{})},fromPartial($){let K=uz();return K.hideLockedChats=$.hideLockedChats??void 0,K.secretCode=$.secretCode!==void 0&&$.secretCode!==null?BY.fromPartial($.secretCode):void 0,K}};function wz(){return{}}var RN={encode($,K=new H){if($.draftMessage!==void 0)NQ.encode($.draftMessage,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.draftMessage=NQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RN.fromPartial($??{})},fromPartial($){let K=wz();return K.draftMessage=$.draftMessage!==void 0&&$.draftMessage!==null?NQ.fromPartial($.draftMessage):void 0,K}};function nz(){return{}}var NQ={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.omittedUrl!==void 0)K.uint32(18).string($.omittedUrl);if($.ctwaContextLinkData!==void 0)BQ.encode($.ctwaContextLinkData,K.uint32(26).fork()).join();if($.ctwaContext!==void 0)RQ.encode($.ctwaContext,K.uint32(34).fork()).join();if($.timestamp!==void 0)K.uint32(40).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;J.omittedUrl=Q.string();continue}case 3:{if(Z!==26)break;J.ctwaContextLinkData=BQ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.ctwaContext=RQ.decode(Q,Q.uint32());continue}case 5:{if(Z!==40)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NQ.fromPartial($??{})},fromPartial($){let K=nz();return K.text=$.text??void 0,K.omittedUrl=$.omittedUrl??void 0,K.ctwaContextLinkData=$.ctwaContextLinkData!==void 0&&$.ctwaContextLinkData!==null?BQ.fromPartial($.ctwaContextLinkData):void 0,K.ctwaContext=$.ctwaContext!==void 0&&$.ctwaContext!==null?RQ.fromPartial($.ctwaContext):void 0,K.timestamp=$.timestamp??void 0,K}};function dz(){return{}}var RQ={encode($,K=new H){if($.conversionSource!==void 0)K.uint32(10).string($.conversionSource);if($.conversionData!==void 0)K.uint32(18).bytes($.conversionData);if($.sourceUrl!==void 0)K.uint32(26).string($.sourceUrl);if($.sourceId!==void 0)K.uint32(34).string($.sourceId);if($.sourceType!==void 0)K.uint32(42).string($.sourceType);if($.title!==void 0)K.uint32(50).string($.title);if($.description!==void 0)K.uint32(58).string($.description);if($.thumbnail!==void 0)K.uint32(66).string($.thumbnail);if($.thumbnailUrl!==void 0)K.uint32(74).string($.thumbnailUrl);if($.mediaType!==void 0)K.uint32(80).int32($.mediaType);if($.mediaUrl!==void 0)K.uint32(90).string($.mediaUrl);if($.isSuspiciousLink!==void 0)K.uint32(96).bool($.isSuspiciousLink);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.conversionSource=Q.string();continue}case 2:{if(Z!==18)break;J.conversionData=Q.bytes();continue}case 3:{if(Z!==26)break;J.sourceUrl=Q.string();continue}case 4:{if(Z!==34)break;J.sourceId=Q.string();continue}case 5:{if(Z!==42)break;J.sourceType=Q.string();continue}case 6:{if(Z!==50)break;J.title=Q.string();continue}case 7:{if(Z!==58)break;J.description=Q.string();continue}case 8:{if(Z!==66)break;J.thumbnail=Q.string();continue}case 9:{if(Z!==74)break;J.thumbnailUrl=Q.string();continue}case 10:{if(Z!==80)break;J.mediaType=Q.int32();continue}case 11:{if(Z!==90)break;J.mediaUrl=Q.string();continue}case 12:{if(Z!==96)break;J.isSuspiciousLink=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RQ.fromPartial($??{})},fromPartial($){let K=dz();return K.conversionSource=$.conversionSource??void 0,K.conversionData=$.conversionData??void 0,K.sourceUrl=$.sourceUrl??void 0,K.sourceId=$.sourceId??void 0,K.sourceType=$.sourceType??void 0,K.title=$.title??void 0,K.description=$.description??void 0,K.thumbnail=$.thumbnail??void 0,K.thumbnailUrl=$.thumbnailUrl??void 0,K.mediaType=$.mediaType??void 0,K.mediaUrl=$.mediaUrl??void 0,K.isSuspiciousLink=$.isSuspiciousLink??void 0,K}};function jz(){return{}}var BQ={encode($,K=new H){if($.context!==void 0)K.uint32(10).string($.context);if($.sourceUrl!==void 0)K.uint32(18).string($.sourceUrl);if($.icebreaker!==void 0)K.uint32(26).string($.icebreaker);if($.phone!==void 0)K.uint32(34).string($.phone);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.context=Q.string();continue}case 2:{if(Z!==18)break;J.sourceUrl=Q.string();continue}case 3:{if(Z!==26)break;J.icebreaker=Q.string();continue}case 4:{if(Z!==34)break;J.phone=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BQ.fromPartial($??{})},fromPartial($){let K=jz();return K.context=$.context??void 0,K.sourceUrl=$.sourceUrl??void 0,K.icebreaker=$.icebreaker??void 0,K.phone=$.phone??void 0,K}};function cz(){return{}}var OQ={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.subtitle!==void 0)K.uint32(18).string($.subtitle);if($.cmsId!==void 0)K.uint32(26).string($.cmsId);if($.imageUrl!==void 0)K.uint32(34).string($.imageUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.subtitle=Q.string();continue}case 3:{if(Z!==26)break;J.cmsId=Q.string();continue}case 4:{if(Z!==34)break;J.imageUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OQ.fromPartial($??{})},fromPartial($){let K=cz();return K.title=$.title??void 0,K.subtitle=$.subtitle??void 0,K.cmsId=$.cmsId??void 0,K.imageUrl=$.imageUrl??void 0,K}};function oz(){return{}}var BN={encode($,K=new H){if($.isChatDbLidMigrated!==void 0)K.uint32(8).bool($.isChatDbLidMigrated);if($.isSyncdPureLidSession!==void 0)K.uint32(16).bool($.isSyncdPureLidSession);if($.isSyncdSnapshotRecoveryEnabled!==void 0)K.uint32(24).bool($.isSyncdSnapshotRecoveryEnabled);if($.isHsThumbnailSyncEnabled!==void 0)K.uint32(32).bool($.isHsThumbnailSyncEnabled);if($.subscriptionSyncPayload!==void 0)K.uint32(42).bytes($.subscriptionSyncPayload);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isChatDbLidMigrated=Q.bool();continue}case 2:{if(Z!==16)break;J.isSyncdPureLidSession=Q.bool();continue}case 3:{if(Z!==24)break;J.isSyncdSnapshotRecoveryEnabled=Q.bool();continue}case 4:{if(Z!==32)break;J.isHsThumbnailSyncEnabled=Q.bool();continue}case 5:{if(Z!==42)break;J.subscriptionSyncPayload=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BN.fromPartial($??{})},fromPartial($){let K=oz();return K.isChatDbLidMigrated=$.isChatDbLidMigrated??void 0,K.isSyncdPureLidSession=$.isSyncdPureLidSession??void 0,K.isSyncdSnapshotRecoveryEnabled=$.isSyncdSnapshotRecoveryEnabled??void 0,K.isHsThumbnailSyncEnabled=$.isHsThumbnailSyncEnabled??void 0,K.subscriptionSyncPayload=$.subscriptionSyncPayload??void 0,K}};function bz(){return{}}var jY={encode($,K=new H){if($.username!==void 0)K.uint32(8).uint64($.username);if($.passive!==void 0)K.uint32(24).bool($.passive);if($.userAgent!==void 0)WQ.encode($.userAgent,K.uint32(42).fork()).join();if($.webInfo!==void 0)SQ.encode($.webInfo,K.uint32(50).fork()).join();if($.pushName!==void 0)K.uint32(58).string($.pushName);if($.sessionId!==void 0)K.uint32(77).sfixed32($.sessionId);if($.shortConnect!==void 0)K.uint32(80).bool($.shortConnect);if($.connectType!==void 0)K.uint32(96).int32($.connectType);if($.connectReason!==void 0)K.uint32(104).int32($.connectReason);if($.shards!==void 0&&$.shards.length!==0)for(let Q of $.shards)K.uint32(112).int32(Q);if($.dnsSource!==void 0)AQ.encode($.dnsSource,K.uint32(122).fork()).join();if($.connectAttemptCount!==void 0)K.uint32(128).uint32($.connectAttemptCount);if($.device!==void 0)K.uint32(144).uint32($.device);if($.devicePairingData!==void 0)EQ.encode($.devicePairingData,K.uint32(154).fork()).join();if($.product!==void 0)K.uint32(160).int32($.product);if($.fbCat!==void 0)K.uint32(170).bytes($.fbCat);if($.fbUserAgent!==void 0)K.uint32(178).bytes($.fbUserAgent);if($.oc!==void 0)K.uint32(184).bool($.oc);if($.lc!==void 0)K.uint32(192).int32($.lc);if($.iosAppExtension!==void 0)K.uint32(240).int32($.iosAppExtension);if($.fbAppId!==void 0)K.uint32(248).uint64($.fbAppId);if($.fbDeviceId!==void 0)K.uint32(258).bytes($.fbDeviceId);if($.pull!==void 0)K.uint32(264).bool($.pull);if($.paddingBytes!==void 0)K.uint32(274).bytes($.paddingBytes);if($.yearClass!==void 0)K.uint32(288).int32($.yearClass);if($.memClass!==void 0)K.uint32(296).int32($.memClass);if($.interopData!==void 0)MQ.encode($.interopData,K.uint32(306).fork()).join();if($.trafficAnonymization!==void 0)K.uint32(320).int32($.trafficAnonymization);if($.lidDbMigrated!==void 0)K.uint32(328).bool($.lidDbMigrated);if($.accountType!==void 0)K.uint32(336).int32($.accountType);if($.connectionSequenceInfo!==void 0)K.uint32(349).sfixed32($.connectionSequenceInfo);if($.paaLink!==void 0)K.uint32(352).bool($.paaLink);if($.preacksCount!==void 0)K.uint32(360).int32($.preacksCount);if($.processingQueueSize!==void 0)K.uint32(368).int32($.processingQueueSize);if($.pairedPeripherals!==void 0&&$.pairedPeripherals.length!==0)for(let Q of $.pairedPeripherals)K.uint32(378).string(Q);if($.testIsolationId!==void 0)K.uint32(386).bytes($.testIsolationId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.username=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.passive=Q.bool();continue}case 5:{if(Z!==42)break;J.userAgent=WQ.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.webInfo=SQ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.pushName=Q.string();continue}case 9:{if(Z!==77)break;J.sessionId=Q.sfixed32();continue}case 10:{if(Z!==80)break;J.shortConnect=Q.bool();continue}case 12:{if(Z!==96)break;J.connectType=Q.int32();continue}case 13:{if(Z!==104)break;J.connectReason=Q.int32();continue}case 14:{if(Z===112){if(J.shards===void 0)J.shards=[];J.shards.push(Q.int32());continue}if(Z===114){if(J.shards===void 0)J.shards=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.shards.push(Q.int32());continue}break}case 15:{if(Z!==122)break;J.dnsSource=AQ.decode(Q,Q.uint32());continue}case 16:{if(Z!==128)break;J.connectAttemptCount=Q.uint32();continue}case 18:{if(Z!==144)break;J.device=Q.uint32();continue}case 19:{if(Z!==154)break;J.devicePairingData=EQ.decode(Q,Q.uint32());continue}case 20:{if(Z!==160)break;J.product=Q.int32();continue}case 21:{if(Z!==170)break;J.fbCat=Q.bytes();continue}case 22:{if(Z!==178)break;J.fbUserAgent=Q.bytes();continue}case 23:{if(Z!==184)break;J.oc=Q.bool();continue}case 24:{if(Z!==192)break;J.lc=Q.int32();continue}case 30:{if(Z!==240)break;J.iosAppExtension=Q.int32();continue}case 31:{if(Z!==248)break;J.fbAppId=Q.uint64Number();continue}case 32:{if(Z!==258)break;J.fbDeviceId=Q.bytes();continue}case 33:{if(Z!==264)break;J.pull=Q.bool();continue}case 34:{if(Z!==274)break;J.paddingBytes=Q.bytes();continue}case 36:{if(Z!==288)break;J.yearClass=Q.int32();continue}case 37:{if(Z!==296)break;J.memClass=Q.int32();continue}case 38:{if(Z!==306)break;J.interopData=MQ.decode(Q,Q.uint32());continue}case 40:{if(Z!==320)break;J.trafficAnonymization=Q.int32();continue}case 41:{if(Z!==328)break;J.lidDbMigrated=Q.bool();continue}case 42:{if(Z!==336)break;J.accountType=Q.int32();continue}case 43:{if(Z!==349)break;J.connectionSequenceInfo=Q.sfixed32();continue}case 44:{if(Z!==352)break;J.paaLink=Q.bool();continue}case 45:{if(Z!==360)break;J.preacksCount=Q.int32();continue}case 46:{if(Z!==368)break;J.processingQueueSize=Q.int32();continue}case 47:{if(Z!==378)break;if(J.pairedPeripherals===void 0)J.pairedPeripherals=[];let Y=Q.string();if(Y!==void 0)J.pairedPeripherals.push(Y);continue}case 48:{if(Z!==386)break;J.testIsolationId=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jY.fromPartial($??{})},fromPartial($){let K=bz();return K.username=$.username??void 0,K.passive=$.passive??void 0,K.userAgent=$.userAgent!==void 0&&$.userAgent!==null?WQ.fromPartial($.userAgent):void 0,K.webInfo=$.webInfo!==void 0&&$.webInfo!==null?SQ.fromPartial($.webInfo):void 0,K.pushName=$.pushName??void 0,K.sessionId=$.sessionId??void 0,K.shortConnect=$.shortConnect??void 0,K.connectType=$.connectType??void 0,K.connectReason=$.connectReason??void 0,K.shards=$.shards?.map((Q)=>Q)||void 0,K.dnsSource=$.dnsSource!==void 0&&$.dnsSource!==null?AQ.fromPartial($.dnsSource):void 0,K.connectAttemptCount=$.connectAttemptCount??void 0,K.device=$.device??void 0,K.devicePairingData=$.devicePairingData!==void 0&&$.devicePairingData!==null?EQ.fromPartial($.devicePairingData):void 0,K.product=$.product??void 0,K.fbCat=$.fbCat??void 0,K.fbUserAgent=$.fbUserAgent??void 0,K.oc=$.oc??void 0,K.lc=$.lc??void 0,K.iosAppExtension=$.iosAppExtension??void 0,K.fbAppId=$.fbAppId??void 0,K.fbDeviceId=$.fbDeviceId??void 0,K.pull=$.pull??void 0,K.paddingBytes=$.paddingBytes??void 0,K.yearClass=$.yearClass??void 0,K.memClass=$.memClass??void 0,K.interopData=$.interopData!==void 0&&$.interopData!==null?MQ.fromPartial($.interopData):void 0,K.trafficAnonymization=$.trafficAnonymization??void 0,K.lidDbMigrated=$.lidDbMigrated??void 0,K.accountType=$.accountType??void 0,K.connectionSequenceInfo=$.connectionSequenceInfo??void 0,K.paaLink=$.paaLink??void 0,K.preacksCount=$.preacksCount??void 0,K.processingQueueSize=$.processingQueueSize??void 0,K.pairedPeripherals=$.pairedPeripherals?.map((Q)=>Q)||void 0,K.testIsolationId=$.testIsolationId??void 0,K}};function iz(){return{}}var AQ={encode($,K=new H){if($.dnsMethod!==void 0)K.uint32(120).int32($.dnsMethod);if($.appCached!==void 0)K.uint32(128).bool($.appCached);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 15:{if(Z!==120)break;J.dnsMethod=Q.int32();continue}case 16:{if(Z!==128)break;J.appCached=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AQ.fromPartial($??{})},fromPartial($){let K=iz();return K.dnsMethod=$.dnsMethod??void 0,K.appCached=$.appCached??void 0,K}};function mz(){return{}}var EQ={encode($,K=new H){if($.eRegid!==void 0)K.uint32(10).bytes($.eRegid);if($.eKeytype!==void 0)K.uint32(18).bytes($.eKeytype);if($.eIdent!==void 0)K.uint32(26).bytes($.eIdent);if($.eSkeyId!==void 0)K.uint32(34).bytes($.eSkeyId);if($.eSkeyVal!==void 0)K.uint32(42).bytes($.eSkeyVal);if($.eSkeySig!==void 0)K.uint32(50).bytes($.eSkeySig);if($.buildHash!==void 0)K.uint32(58).bytes($.buildHash);if($.deviceProps!==void 0)K.uint32(66).bytes($.deviceProps);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.eRegid=Q.bytes();continue}case 2:{if(Z!==18)break;J.eKeytype=Q.bytes();continue}case 3:{if(Z!==26)break;J.eIdent=Q.bytes();continue}case 4:{if(Z!==34)break;J.eSkeyId=Q.bytes();continue}case 5:{if(Z!==42)break;J.eSkeyVal=Q.bytes();continue}case 6:{if(Z!==50)break;J.eSkeySig=Q.bytes();continue}case 7:{if(Z!==58)break;J.buildHash=Q.bytes();continue}case 8:{if(Z!==66)break;J.deviceProps=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EQ.fromPartial($??{})},fromPartial($){let K=mz();return K.eRegid=$.eRegid??void 0,K.eKeytype=$.eKeytype??void 0,K.eIdent=$.eIdent??void 0,K.eSkeyId=$.eSkeyId??void 0,K.eSkeyVal=$.eSkeyVal??void 0,K.eSkeySig=$.eSkeySig??void 0,K.buildHash=$.buildHash??void 0,K.deviceProps=$.deviceProps??void 0,K}};function gz(){return{}}var MQ={encode($,K=new H){if($.accountId!==void 0)K.uint32(8).uint64($.accountId);if($.token!==void 0)K.uint32(18).bytes($.token);if($.enableReadReceipts!==void 0)K.uint32(24).bool($.enableReadReceipts);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.accountId=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.token=Q.bytes();continue}case 3:{if(Z!==24)break;J.enableReadReceipts=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MQ.fromPartial($??{})},fromPartial($){let K=gz();return K.accountId=$.accountId??void 0,K.token=$.token??void 0,K.enableReadReceipts=$.enableReadReceipts??void 0,K}};function tz(){return{}}var WQ={encode($,K=new H){if($.platform!==void 0)K.uint32(8).int32($.platform);if($.appVersion!==void 0)IQ.encode($.appVersion,K.uint32(18).fork()).join();if($.mcc!==void 0)K.uint32(26).string($.mcc);if($.mnc!==void 0)K.uint32(34).string($.mnc);if($.osVersion!==void 0)K.uint32(42).string($.osVersion);if($.manufacturer!==void 0)K.uint32(50).string($.manufacturer);if($.device!==void 0)K.uint32(58).string($.device);if($.osBuildNumber!==void 0)K.uint32(66).string($.osBuildNumber);if($.phoneId!==void 0)K.uint32(74).string($.phoneId);if($.releaseChannel!==void 0)K.uint32(80).int32($.releaseChannel);if($.localeLanguageIso6391!==void 0)K.uint32(90).string($.localeLanguageIso6391);if($.localeCountryIso31661Alpha2!==void 0)K.uint32(98).string($.localeCountryIso31661Alpha2);if($.deviceBoard!==void 0)K.uint32(106).string($.deviceBoard);if($.deviceExpId!==void 0)K.uint32(114).string($.deviceExpId);if($.deviceType!==void 0)K.uint32(120).int32($.deviceType);if($.deviceModelType!==void 0)K.uint32(130).string($.deviceModelType);if($.distributionChannel!==void 0)K.uint32(136).int32($.distributionChannel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.platform=Q.int32();continue}case 2:{if(Z!==18)break;J.appVersion=IQ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.mcc=Q.string();continue}case 4:{if(Z!==34)break;J.mnc=Q.string();continue}case 5:{if(Z!==42)break;J.osVersion=Q.string();continue}case 6:{if(Z!==50)break;J.manufacturer=Q.string();continue}case 7:{if(Z!==58)break;J.device=Q.string();continue}case 8:{if(Z!==66)break;J.osBuildNumber=Q.string();continue}case 9:{if(Z!==74)break;J.phoneId=Q.string();continue}case 10:{if(Z!==80)break;J.releaseChannel=Q.int32();continue}case 11:{if(Z!==90)break;J.localeLanguageIso6391=Q.string();continue}case 12:{if(Z!==98)break;J.localeCountryIso31661Alpha2=Q.string();continue}case 13:{if(Z!==106)break;J.deviceBoard=Q.string();continue}case 14:{if(Z!==114)break;J.deviceExpId=Q.string();continue}case 15:{if(Z!==120)break;J.deviceType=Q.int32();continue}case 16:{if(Z!==130)break;J.deviceModelType=Q.string();continue}case 17:{if(Z!==136)break;J.distributionChannel=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WQ.fromPartial($??{})},fromPartial($){let K=tz();return K.platform=$.platform??void 0,K.appVersion=$.appVersion!==void 0&&$.appVersion!==null?IQ.fromPartial($.appVersion):void 0,K.mcc=$.mcc??void 0,K.mnc=$.mnc??void 0,K.osVersion=$.osVersion??void 0,K.manufacturer=$.manufacturer??void 0,K.device=$.device??void 0,K.osBuildNumber=$.osBuildNumber??void 0,K.phoneId=$.phoneId??void 0,K.releaseChannel=$.releaseChannel??void 0,K.localeLanguageIso6391=$.localeLanguageIso6391??void 0,K.localeCountryIso31661Alpha2=$.localeCountryIso31661Alpha2??void 0,K.deviceBoard=$.deviceBoard??void 0,K.deviceExpId=$.deviceExpId??void 0,K.deviceType=$.deviceType??void 0,K.deviceModelType=$.deviceModelType??void 0,K.distributionChannel=$.distributionChannel??void 0,K}};function rz(){return{}}var IQ={encode($,K=new H){if($.primary!==void 0)K.uint32(8).uint32($.primary);if($.secondary!==void 0)K.uint32(16).uint32($.secondary);if($.tertiary!==void 0)K.uint32(24).uint32($.tertiary);if($.quaternary!==void 0)K.uint32(32).uint32($.quaternary);if($.quinary!==void 0)K.uint32(40).uint32($.quinary);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.primary=Q.uint32();continue}case 2:{if(Z!==16)break;J.secondary=Q.uint32();continue}case 3:{if(Z!==24)break;J.tertiary=Q.uint32();continue}case 4:{if(Z!==32)break;J.quaternary=Q.uint32();continue}case 5:{if(Z!==40)break;J.quinary=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IQ.fromPartial($??{})},fromPartial($){let K=rz();return K.primary=$.primary??void 0,K.secondary=$.secondary??void 0,K.tertiary=$.tertiary??void 0,K.quaternary=$.quaternary??void 0,K.quinary=$.quinary??void 0,K}};function az(){return{}}var SQ={encode($,K=new H){if($.refToken!==void 0)K.uint32(10).string($.refToken);if($.version!==void 0)K.uint32(18).string($.version);if($.webdPayload!==void 0)vQ.encode($.webdPayload,K.uint32(26).fork()).join();if($.webSubPlatform!==void 0)K.uint32(32).int32($.webSubPlatform);if($.browser!==void 0)K.uint32(42).string($.browser);if($.browserVersion!==void 0)K.uint32(50).string($.browserVersion);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=az();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.refToken=Q.string();continue}case 2:{if(Z!==18)break;J.version=Q.string();continue}case 3:{if(Z!==26)break;J.webdPayload=vQ.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.webSubPlatform=Q.int32();continue}case 5:{if(Z!==42)break;J.browser=Q.string();continue}case 6:{if(Z!==50)break;J.browserVersion=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SQ.fromPartial($??{})},fromPartial($){let K=az();return K.refToken=$.refToken??void 0,K.version=$.version??void 0,K.webdPayload=$.webdPayload!==void 0&&$.webdPayload!==null?vQ.fromPartial($.webdPayload):void 0,K.webSubPlatform=$.webSubPlatform??void 0,K.browser=$.browser??void 0,K.browserVersion=$.browserVersion??void 0,K}};function sz(){return{}}var vQ={encode($,K=new H){if($.usesParticipantInKey!==void 0)K.uint32(8).bool($.usesParticipantInKey);if($.supportsStarredMessages!==void 0)K.uint32(16).bool($.supportsStarredMessages);if($.supportsDocumentMessages!==void 0)K.uint32(24).bool($.supportsDocumentMessages);if($.supportsUrlMessages!==void 0)K.uint32(32).bool($.supportsUrlMessages);if($.supportsMediaRetry!==void 0)K.uint32(40).bool($.supportsMediaRetry);if($.supportsE2EImage!==void 0)K.uint32(48).bool($.supportsE2EImage);if($.supportsE2EVideo!==void 0)K.uint32(56).bool($.supportsE2EVideo);if($.supportsE2EAudio!==void 0)K.uint32(64).bool($.supportsE2EAudio);if($.supportsE2EDocument!==void 0)K.uint32(72).bool($.supportsE2EDocument);if($.documentTypes!==void 0)K.uint32(82).string($.documentTypes);if($.features!==void 0)K.uint32(90).bytes($.features);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.usesParticipantInKey=Q.bool();continue}case 2:{if(Z!==16)break;J.supportsStarredMessages=Q.bool();continue}case 3:{if(Z!==24)break;J.supportsDocumentMessages=Q.bool();continue}case 4:{if(Z!==32)break;J.supportsUrlMessages=Q.bool();continue}case 5:{if(Z!==40)break;J.supportsMediaRetry=Q.bool();continue}case 6:{if(Z!==48)break;J.supportsE2EImage=Q.bool();continue}case 7:{if(Z!==56)break;J.supportsE2EVideo=Q.bool();continue}case 8:{if(Z!==64)break;J.supportsE2EAudio=Q.bool();continue}case 9:{if(Z!==72)break;J.supportsE2EDocument=Q.bool();continue}case 10:{if(Z!==82)break;J.documentTypes=Q.string();continue}case 11:{if(Z!==90)break;J.features=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vQ.fromPartial($??{})},fromPartial($){let K=sz();return K.usesParticipantInKey=$.usesParticipantInKey??void 0,K.supportsStarredMessages=$.supportsStarredMessages??void 0,K.supportsDocumentMessages=$.supportsDocumentMessages??void 0,K.supportsUrlMessages=$.supportsUrlMessages??void 0,K.supportsMediaRetry=$.supportsMediaRetry??void 0,K.supportsE2EImage=$.supportsE2EImage??void 0,K.supportsE2EVideo=$.supportsE2EVideo??void 0,K.supportsE2EAudio=$.supportsE2EAudio??void 0,K.supportsE2EDocument=$.supportsE2EDocument??void 0,K.documentTypes=$.documentTypes??void 0,K.features=$.features??void 0,K}};function ez(){return{}}var ON={encode($,K=new H){if($.version!==void 0)K.uint32(8).uint32($.version);if($.localFingerprint!==void 0)u0.encode($.localFingerprint,K.uint32(18).fork()).join();if($.remoteFingerprint!==void 0)u0.encode($.remoteFingerprint,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ez();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.version=Q.uint32();continue}case 2:{if(Z!==18)break;J.localFingerprint=u0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.remoteFingerprint=u0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ON.fromPartial($??{})},fromPartial($){let K=ez();return K.version=$.version??void 0,K.localFingerprint=$.localFingerprint!==void 0&&$.localFingerprint!==null?u0.fromPartial($.localFingerprint):void 0,K.remoteFingerprint=$.remoteFingerprint!==void 0&&$.remoteFingerprint!==null?u0.fromPartial($.remoteFingerprint):void 0,K}};function $V(){return{}}var TQ={encode($,K=new H){if($.commandType!==void 0)K.uint32(8).int32($.commandType);if($.offset!==void 0)K.uint32(16).uint32($.offset);if($.length!==void 0)K.uint32(24).uint32($.length);if($.validationToken!==void 0)K.uint32(34).string($.validationToken);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$V();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.commandType=Q.int32();continue}case 2:{if(Z!==16)break;J.offset=Q.uint32();continue}case 3:{if(Z!==24)break;J.length=Q.uint32();continue}case 4:{if(Z!==34)break;J.validationToken=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TQ.fromPartial($??{})},fromPartial($){let K=$V();return K.commandType=$.commandType??void 0,K.offset=$.offset??void 0,K.length=$.length??void 0,K.validationToken=$.validationToken??void 0,K}};function KV(){return{}}var yQ={encode($,K=new H){if($.commentParentKey!==void 0)x.encode($.commentParentKey,K.uint32(10).fork()).join();if($.replyCount!==void 0)K.uint32(16).uint32($.replyCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.commentParentKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.replyCount=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yQ.fromPartial($??{})},fromPartial($){let K=KV();return K.commentParentKey=$.commentParentKey!==void 0&&$.commentParentKey!==null?x.fromPartial($.commentParentKey):void 0,K.replyCount=$.replyCount??void 0,K}};function QV(){return{}}var fQ={encode($,K=new H){if($.hash!==void 0)K.uint32(10).bytes($.hash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.hash=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fQ.fromPartial($??{})},fromPartial($){let K=QV();return K.hash=$.hash??void 0,K}};function ZV(){return{}}var AN={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.deviceType!==void 0)K.uint32(16).int32($.deviceType);if($.ref!==void 0)K.uint32(26).string($.ref);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==16)break;J.deviceType=Q.int32();continue}case 3:{if(Z!==26)break;J.ref=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AN.fromPartial($??{})},fromPartial($){let K=ZV();return K.publicKey=$.publicKey??void 0,K.deviceType=$.deviceType??void 0,K.ref=$.ref??void 0,K}};function JV(){return{}}var EN={encode($,K=new H){if(globalThis.Object.entries($.field||{}).forEach(([Q,X])=>{fY.encode({key:Q,value:X},K.uint32(10).fork()).join()}),$.version!==void 0)K.uint32(16).uint32($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;let Y=fY.decode(Q,Q.uint32());if(Y.value!==void 0&&Y.key!==void 0){if(J.field===void 0)J.field={};J.field[Y.key]=Y.value}continue}case 2:{if(Z!==16)break;J.version=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EN.fromPartial($??{})},fromPartial($){let K=JV();return K.field=$.field===void 0||$.field===null?void 0:globalThis.Object.entries($.field??{}).reduce((Q,[X,J])=>{if(J!==void 0)Q[globalThis.Number(X)]=M0.fromPartial(J);return Q},{}),K.version=$.version??void 0,K}};function XV(){return{}}var fY={encode($,K=new H){if($.key!==void 0)K.uint32(8).uint32($.key);if($.value!==void 0)M0.encode($.value,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.key=Q.uint32();continue}case 2:{if(Z!==18)break;J.value=M0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fY.fromPartial($??{})},fromPartial($){let K=XV();return K.key=$.key??void 0,K.value=$.value!==void 0&&$.value!==null?M0.fromPartial($.value):void 0,K}};function qV(){return{}}var MN={encode($,K=new H){if($.payload!==void 0)oQ.encode($.payload,K.uint32(10).fork()).join();if($.metadata!==void 0)cQ.encode($.metadata,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.payload=oQ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.metadata=cQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MN.fromPartial($??{})},fromPartial($){let K=qV();return K.payload=$.payload!==void 0&&$.payload!==null?oQ.fromPartial($.payload):void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?cQ.fromPartial($.metadata):void 0,K}};function YV(){return{}}var _Q={encode($,K=new H){if($.revoke!==void 0)tQ.encode($.revoke,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.revoke=tQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _Q.fromPartial($??{})},fromPartial($){let K=YV();return K.revoke=$.revoke!==void 0&&$.revoke!==null?tQ.fromPartial($.revoke):void 0,K}};function HV(){return{}}var hQ={encode($,K=new H){if($.audio!==void 0)o.encode($.audio,K.uint32(10).fork()).join();if($.ptt!==void 0)K.uint32(16).bool($.ptt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.audio=o.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.ptt=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hQ.fromPartial($??{})},fromPartial($){let K=HV();return K.audio=$.audio!==void 0&&$.audio!==null?o.fromPartial($.audio):void 0,K.ptt=$.ptt??void 0,K}};function zV(){return{}}var s0={encode($,K=new H){if($.contact!==void 0)o.encode($.contact,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contact=o.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return s0.fromPartial($??{})},fromPartial($){let K=zV();return K.contact=$.contact!==void 0&&$.contact!==null?o.fromPartial($.contact):void 0,K}};function VV(){return{}}var lQ={encode($,K=new H){if($.displayName!==void 0)K.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let Q of $.contacts)s0.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayName=Q.string();continue}case 2:{if(Z!==18)break;if(J.contacts===void 0)J.contacts=[];let Y=s0.decode(Q,Q.uint32());if(Y!==void 0)J.contacts.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lQ.fromPartial($??{})},fromPartial($){let K=VV();return K.displayName=$.displayName??void 0,K.contacts=$.contacts?.map((Q)=>s0.fromPartial(Q))||void 0,K}};function GV(){return{}}var pQ={encode($,K=new H){if($.messageText!==void 0)m.encode($.messageText,K.uint32(10).fork()).join();if($.imageMessage!==void 0)$$.encode($.imageMessage,K.uint32(18).fork()).join();if($.contactMessage!==void 0)s0.encode($.contactMessage,K.uint32(26).fork()).join();if($.locationMessage!==void 0)jQ.encode($.locationMessage,K.uint32(34).fork()).join();if($.extendedTextMessage!==void 0)e0.encode($.extendedTextMessage,K.uint32(42).fork()).join();if($.statusTextMessage!==void 0)aQ.encode($.statusTextMessage,K.uint32(50).fork()).join();if($.documentMessage!==void 0)uQ.encode($.documentMessage,K.uint32(58).fork()).join();if($.audioMessage!==void 0)hQ.encode($.audioMessage,K.uint32(66).fork()).join();if($.videoMessage!==void 0)Q$.encode($.videoMessage,K.uint32(74).fork()).join();if($.contactsArrayMessage!==void 0)lQ.encode($.contactsArrayMessage,K.uint32(82).fork()).join();if($.liveLocationMessage!==void 0)dQ.encode($.liveLocationMessage,K.uint32(90).fork()).join();if($.stickerMessage!==void 0)sQ.encode($.stickerMessage,K.uint32(98).fork()).join();if($.groupInviteMessage!==void 0)nQ.encode($.groupInviteMessage,K.uint32(106).fork()).join();if($.viewOnceMessage!==void 0)$Z.encode($.viewOnceMessage,K.uint32(114).fork()).join();if($.reactionMessage!==void 0)gQ.encode($.reactionMessage,K.uint32(130).fork()).join();if($.pollCreationMessage!==void 0)iQ.encode($.pollCreationMessage,K.uint32(138).fork()).join();if($.pollUpdateMessage!==void 0)mQ.encode($.pollUpdateMessage,K.uint32(146).fork()).join();if($.editMessage!==void 0)wQ.encode($.editMessage,K.uint32(154).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageText=m.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.imageMessage=$$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.contactMessage=s0.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.locationMessage=jQ.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.extendedTextMessage=e0.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.statusTextMessage=aQ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.documentMessage=uQ.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.audioMessage=hQ.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.videoMessage=Q$.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.contactsArrayMessage=lQ.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.liveLocationMessage=dQ.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.stickerMessage=sQ.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.groupInviteMessage=nQ.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.viewOnceMessage=$Z.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.reactionMessage=gQ.decode(Q,Q.uint32());continue}case 17:{if(Z!==138)break;J.pollCreationMessage=iQ.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.pollUpdateMessage=mQ.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.editMessage=wQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pQ.fromPartial($??{})},fromPartial($){let K=GV();return K.messageText=$.messageText!==void 0&&$.messageText!==null?m.fromPartial($.messageText):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?$$.fromPartial($.imageMessage):void 0,K.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?s0.fromPartial($.contactMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?jQ.fromPartial($.locationMessage):void 0,K.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?e0.fromPartial($.extendedTextMessage):void 0,K.statusTextMessage=$.statusTextMessage!==void 0&&$.statusTextMessage!==null?aQ.fromPartial($.statusTextMessage):void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?uQ.fromPartial($.documentMessage):void 0,K.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?hQ.fromPartial($.audioMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?Q$.fromPartial($.videoMessage):void 0,K.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?lQ.fromPartial($.contactsArrayMessage):void 0,K.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?dQ.fromPartial($.liveLocationMessage):void 0,K.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?sQ.fromPartial($.stickerMessage):void 0,K.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?nQ.fromPartial($.groupInviteMessage):void 0,K.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?$Z.fromPartial($.viewOnceMessage):void 0,K.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?gQ.fromPartial($.reactionMessage):void 0,K.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?iQ.fromPartial($.pollCreationMessage):void 0,K.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?mQ.fromPartial($.pollUpdateMessage):void 0,K.editMessage=$.editMessage!==void 0&&$.editMessage!==null?wQ.fromPartial($.editMessage):void 0,K}};function UV(){return{}}var uQ={encode($,K=new H){if($.document!==void 0)o.encode($.document,K.uint32(10).fork()).join();if($.fileName!==void 0)K.uint32(18).string($.fileName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.document=o.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.fileName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uQ.fromPartial($??{})},fromPartial($){let K=UV();return K.document=$.document!==void 0&&$.document!==null?o.fromPartial($.document):void 0,K.fileName=$.fileName??void 0,K}};function CV(){return{}}var wQ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.message!==void 0)m.encode($.message,K.uint32(18).fork()).join();if($.timestampMs!==void 0)K.uint32(24).int64($.timestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.message=m.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.timestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wQ.fromPartial($??{})},fromPartial($){let K=CV();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.message=$.message!==void 0&&$.message!==null?m.fromPartial($.message):void 0,K.timestampMs=$.timestampMs??void 0,K}};function DV(){return{}}var e0={encode($,K=new H){if($.text!==void 0)m.encode($.text,K.uint32(10).fork()).join();if($.matchedText!==void 0)K.uint32(18).string($.matchedText);if($.canonicalUrl!==void 0)K.uint32(26).string($.canonicalUrl);if($.description!==void 0)K.uint32(34).string($.description);if($.title!==void 0)K.uint32(42).string($.title);if($.thumbnail!==void 0)o.encode($.thumbnail,K.uint32(50).fork()).join();if($.previewType!==void 0)K.uint32(56).int32($.previewType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=m.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.matchedText=Q.string();continue}case 3:{if(Z!==26)break;J.canonicalUrl=Q.string();continue}case 4:{if(Z!==34)break;J.description=Q.string();continue}case 5:{if(Z!==42)break;J.title=Q.string();continue}case 6:{if(Z!==50)break;J.thumbnail=o.decode(Q,Q.uint32());continue}case 7:{if(Z!==56)break;J.previewType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e0.fromPartial($??{})},fromPartial($){let K=DV();return K.text=$.text!==void 0&&$.text!==null?m.fromPartial($.text):void 0,K.matchedText=$.matchedText??void 0,K.canonicalUrl=$.canonicalUrl??void 0,K.description=$.description??void 0,K.title=$.title??void 0,K.thumbnail=$.thumbnail!==void 0&&$.thumbnail!==null?o.fromPartial($.thumbnail):void 0,K.previewType=$.previewType??void 0,K}};function LV(){return{}}var nQ={encode($,K=new H){if($.groupJid!==void 0)K.uint32(10).string($.groupJid);if($.inviteCode!==void 0)K.uint32(18).string($.inviteCode);if($.inviteExpiration!==void 0)K.uint32(24).int64($.inviteExpiration);if($.groupName!==void 0)K.uint32(34).string($.groupName);if($.jpegThumbnail!==void 0)K.uint32(42).bytes($.jpegThumbnail);if($.caption!==void 0)m.encode($.caption,K.uint32(50).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupJid=Q.string();continue}case 2:{if(Z!==18)break;J.inviteCode=Q.string();continue}case 3:{if(Z!==24)break;J.inviteExpiration=Q.int64Number();continue}case 4:{if(Z!==34)break;J.groupName=Q.string();continue}case 5:{if(Z!==42)break;J.jpegThumbnail=Q.bytes();continue}case 6:{if(Z!==50)break;J.caption=m.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nQ.fromPartial($??{})},fromPartial($){let K=LV();return K.groupJid=$.groupJid??void 0,K.inviteCode=$.inviteCode??void 0,K.inviteExpiration=$.inviteExpiration??void 0,K.groupName=$.groupName??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,K}};function PV(){return{}}var $$={encode($,K=new H){if($.image!==void 0)o.encode($.image,K.uint32(10).fork()).join();if($.caption!==void 0)m.encode($.caption,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.image=o.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.caption=m.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $$.fromPartial($??{})},fromPartial($){let K=PV();return K.image=$.image!==void 0&&$.image!==null?o.fromPartial($.image):void 0,K.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,K}};function FV(){return{}}var WN={encode($,K=new H){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let Q of $.polygonVertices)bQ.encode(Q,K.uint32(10).fork()).join();if($.location!==void 0)C0.encode($.location,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.polygonVertices===void 0)J.polygonVertices=[];let Y=bQ.decode(Q,Q.uint32());if(Y!==void 0)J.polygonVertices.push(Y);continue}case 2:{if(Z!==18)break;J.location=C0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WN.fromPartial($??{})},fromPartial($){let K=FV();return K.polygonVertices=$.polygonVertices?.map((Q)=>bQ.fromPartial(Q))||void 0,K.location=$.location!==void 0&&$.location!==null?C0.fromPartial($.location):void 0,K}};function xV(){return{}}var dQ={encode($,K=new H){if($.location!==void 0)C0.encode($.location,K.uint32(10).fork()).join();if($.accuracyInMeters!==void 0)K.uint32(16).uint32($.accuracyInMeters);if($.speedInMps!==void 0)K.uint32(29).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)K.uint32(32).uint32($.degreesClockwiseFromMagneticNorth);if($.caption!==void 0)m.encode($.caption,K.uint32(42).fork()).join();if($.sequenceNumber!==void 0)K.uint32(48).int64($.sequenceNumber);if($.timeOffset!==void 0)K.uint32(56).uint32($.timeOffset);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.location=C0.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.accuracyInMeters=Q.uint32();continue}case 3:{if(Z!==29)break;J.speedInMps=Q.float();continue}case 4:{if(Z!==32)break;J.degreesClockwiseFromMagneticNorth=Q.uint32();continue}case 5:{if(Z!==42)break;J.caption=m.decode(Q,Q.uint32());continue}case 6:{if(Z!==48)break;J.sequenceNumber=Q.int64Number();continue}case 7:{if(Z!==56)break;J.timeOffset=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dQ.fromPartial($??{})},fromPartial($){let K=xV();return K.location=$.location!==void 0&&$.location!==null?C0.fromPartial($.location):void 0,K.accuracyInMeters=$.accuracyInMeters??void 0,K.speedInMps=$.speedInMps??void 0,K.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,K.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,K.sequenceNumber=$.sequenceNumber??void 0,K.timeOffset=$.timeOffset??void 0,K}};function kV(){return{}}var C0={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.name!==void 0)K.uint32(26).string($.name);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return C0.fromPartial($??{})},fromPartial($){let K=kV();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.name=$.name??void 0,K}};function NV(){return{}}var jQ={encode($,K=new H){if($.location!==void 0)C0.encode($.location,K.uint32(10).fork()).join();if($.address!==void 0)K.uint32(18).string($.address);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.location=C0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.address=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jQ.fromPartial($??{})},fromPartial($){let K=NV();return K.location=$.location!==void 0&&$.location!==null?C0.fromPartial($.location):void 0,K.address=$.address??void 0,K}};function RV(){return{}}var IN={encode($,K=new H){if($.protocol!==void 0)o.encode($.protocol,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.protocol=o.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IN.fromPartial($??{})},fromPartial($){let K=RV();return K.protocol=$.protocol!==void 0&&$.protocol!==null?o.fromPartial($.protocol):void 0,K}};function BV(){return{}}var cQ={encode($,K=new H){if($.specialTextSize!==void 0)K.uint32(8).int32($.specialTextSize);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.specialTextSize=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cQ.fromPartial($??{})},fromPartial($){let K=BV();return K.specialTextSize=$.specialTextSize??void 0,K}};function OV(){return{}}var K$={encode($,K=new H){if($.optionName!==void 0)K.uint32(10).string($.optionName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.optionName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return K$.fromPartial($??{})},fromPartial($){let K=OV();return K.optionName=$.optionName??void 0,K}};function AV(){return{}}var oQ={encode($,K=new H){if($.content!==void 0)pQ.encode($.content,K.uint32(10).fork()).join();if($.applicationData!==void 0)_Q.encode($.applicationData,K.uint32(18).fork()).join();if($.signal!==void 0)rQ.encode($.signal,K.uint32(26).fork()).join();if($.subProtocol!==void 0)eQ.encode($.subProtocol,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.content=pQ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.applicationData=_Q.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.signal=rQ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.subProtocol=eQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oQ.fromPartial($??{})},fromPartial($){let K=AV();return K.content=$.content!==void 0&&$.content!==null?pQ.fromPartial($.content):void 0,K.applicationData=$.applicationData!==void 0&&$.applicationData!==null?_Q.fromPartial($.applicationData):void 0,K.signal=$.signal!==void 0&&$.signal!==null?rQ.fromPartial($.signal):void 0,K.subProtocol=$.subProtocol!==void 0&&$.subProtocol!==null?eQ.fromPartial($.subProtocol):void 0,K}};function EV(){return{}}var bQ={encode($,K=new H){if($.x!==void 0)K.uint32(9).double($.x);if($.y!==void 0)K.uint32(17).double($.y);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.x=Q.double();continue}case 2:{if(Z!==17)break;J.y=Q.double();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bQ.fromPartial($??{})},fromPartial($){let K=EV();return K.x=$.x??void 0,K.y=$.y??void 0,K}};function MV(){return{}}var SN={encode($,K=new H){if($.pollOption!==void 0&&$.pollOption.length!==0)for(let Q of $.pollOption)K$.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.pollOption===void 0)J.pollOption=[];let Y=K$.decode(Q,Q.uint32());if(Y!==void 0)J.pollOption.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SN.fromPartial($??{})},fromPartial($){let K=MV();return K.pollOption=$.pollOption?.map((Q)=>K$.fromPartial(Q))||void 0,K}};function WV(){return{}}var iQ={encode($,K=new H){if($.encKey!==void 0)K.uint32(10).bytes($.encKey);if($.name!==void 0)K.uint32(18).string($.name);if($.options!==void 0&&$.options.length!==0)for(let Q of $.options)K$.encode(Q,K.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)K.uint32(32).uint32($.selectableOptionsCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.name=Q.string();continue}case 3:{if(Z!==26)break;if(J.options===void 0)J.options=[];let Y=K$.decode(Q,Q.uint32());if(Y!==void 0)J.options.push(Y);continue}case 4:{if(Z!==32)break;J.selectableOptionsCount=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iQ.fromPartial($??{})},fromPartial($){let K=WV();return K.encKey=$.encKey??void 0,K.name=$.name??void 0,K.options=$.options?.map((Q)=>K$.fromPartial(Q))||void 0,K.selectableOptionsCount=$.selectableOptionsCount??void 0,K}};function IV(){return{}}var p0={encode($,K=new H){if($.encPayload!==void 0)K.uint32(10).bytes($.encPayload);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return p0.fromPartial($??{})},fromPartial($){let K=IV();return K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function SV(){return{}}var mQ={encode($,K=new H){if($.pollCreationMessageKey!==void 0)x.encode($.pollCreationMessageKey,K.uint32(10).fork()).join();if($.vote!==void 0)p0.encode($.vote,K.uint32(18).fork()).join();if($.addOption!==void 0)p0.encode($.addOption,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollCreationMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.vote=p0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.addOption=p0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mQ.fromPartial($??{})},fromPartial($){let K=SV();return K.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?x.fromPartial($.pollCreationMessageKey):void 0,K.vote=$.vote!==void 0&&$.vote!==null?p0.fromPartial($.vote):void 0,K.addOption=$.addOption!==void 0&&$.addOption!==null?p0.fromPartial($.addOption):void 0,K}};function vV(){return{}}var vN={encode($,K=new H){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let Q of $.selectedOptions)K.uint32(10).bytes(Q);if($.senderTimestampMs!==void 0)K.uint32(16).int64($.senderTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.selectedOptions===void 0)J.selectedOptions=[];let Y=Q.bytes();if(Y!==void 0)J.selectedOptions.push(Y);continue}case 2:{if(Z!==16)break;J.senderTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vN.fromPartial($??{})},fromPartial($){let K=vV();return K.selectedOptions=$.selectedOptions?.map((Q)=>Q)||void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K}};function TV(){return{}}var gQ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);if($.groupingKey!==void 0)K.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)K.uint32(32).int64($.senderTimestampMs);if($.reactionMetadataDataclassData!==void 0)K.uint32(42).string($.reactionMetadataDataclassData);if($.style!==void 0)K.uint32(48).int32($.style);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}case 3:{if(Z!==26)break;J.groupingKey=Q.string();continue}case 4:{if(Z!==32)break;J.senderTimestampMs=Q.int64Number();continue}case 5:{if(Z!==42)break;J.reactionMetadataDataclassData=Q.string();continue}case 6:{if(Z!==48)break;J.style=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gQ.fromPartial($??{})},fromPartial($){let K=TV();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K.groupingKey=$.groupingKey??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.reactionMetadataDataclassData=$.reactionMetadataDataclassData??void 0,K.style=$.style??void 0,K}};function yV(){return{}}var tQ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tQ.fromPartial($??{})},fromPartial($){let K=yV();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K}};function fV(){return{}}var rQ={encode($,K=new H){return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rQ.fromPartial($??{})},fromPartial($){return fV()}};function _V(){return{}}var aQ={encode($,K=new H){if($.text!==void 0)e0.encode($.text,K.uint32(10).fork()).join();if($.textArgb!==void 0)K.uint32(53).fixed32($.textArgb);if($.backgroundArgb!==void 0)K.uint32(61).fixed32($.backgroundArgb);if($.font!==void 0)K.uint32(64).int32($.font);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_V();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=e0.decode(Q,Q.uint32());continue}case 6:{if(Z!==53)break;J.textArgb=Q.fixed32();continue}case 7:{if(Z!==61)break;J.backgroundArgb=Q.fixed32();continue}case 8:{if(Z!==64)break;J.font=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aQ.fromPartial($??{})},fromPartial($){let K=_V();return K.text=$.text!==void 0&&$.text!==null?e0.fromPartial($.text):void 0,K.textArgb=$.textArgb??void 0,K.backgroundArgb=$.backgroundArgb??void 0,K.font=$.font??void 0,K}};function hV(){return{}}var sQ={encode($,K=new H){if($.sticker!==void 0)o.encode($.sticker,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sticker=o.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sQ.fromPartial($??{})},fromPartial($){let K=hV();return K.sticker=$.sticker!==void 0&&$.sticker!==null?o.fromPartial($.sticker):void 0,K}};function lV(){return{}}var eQ={encode($,K=new H){if($.futureProof!==void 0)K.uint32(8).int32($.futureProof);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.futureProof=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eQ.fromPartial($??{})},fromPartial($){let K=lV();return K.futureProof=$.futureProof??void 0,K}};function pV(){return{}}var Q$={encode($,K=new H){if($.video!==void 0)o.encode($.video,K.uint32(10).fork()).join();if($.caption!==void 0)m.encode($.caption,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.video=o.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.caption=m.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Q$.fromPartial($??{})},fromPartial($){let K=pV();return K.video=$.video!==void 0&&$.video!==null?o.fromPartial($.video):void 0,K.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,K}};function uV(){return{}}var $Z={encode($,K=new H){if($.imageMessage!==void 0)$$.encode($.imageMessage,K.uint32(10).fork()).join();if($.videoMessage!==void 0)Q$.encode($.videoMessage,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.imageMessage=$$.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.videoMessage=Q$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $Z.fromPartial($??{})},fromPartial($){let K=uV();return K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?$$.fromPartial($.imageMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?Q$.fromPartial($.videoMessage):void 0,K}};function wV(){return{}}var A={encode($,K=new H){if($.stanzaId!==void 0)K.uint32(10).string($.stanzaId);if($.participant!==void 0)K.uint32(18).string($.participant);if($.quotedMessage!==void 0)w.encode($.quotedMessage,K.uint32(26).fork()).join();if($.remoteJid!==void 0)K.uint32(34).string($.remoteJid);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let Q of $.mentionedJid)K.uint32(122).string(Q);if($.conversionSource!==void 0)K.uint32(146).string($.conversionSource);if($.conversionData!==void 0)K.uint32(154).bytes($.conversionData);if($.conversionDelaySeconds!==void 0)K.uint32(160).uint32($.conversionDelaySeconds);if($.forwardingScore!==void 0)K.uint32(168).uint32($.forwardingScore);if($.isForwarded!==void 0)K.uint32(176).bool($.isForwarded);if($.quotedAd!==void 0)KZ.encode($.quotedAd,K.uint32(186).fork()).join();if($.placeholderKey!==void 0)x.encode($.placeholderKey,K.uint32(194).fork()).join();if($.expiration!==void 0)K.uint32(200).uint32($.expiration);if($.ephemeralSettingTimestamp!==void 0)K.uint32(208).int64($.ephemeralSettingTimestamp);if($.ephemeralSharedSecret!==void 0)K.uint32(218).bytes($.ephemeralSharedSecret);if($.externalAdReply!==void 0)XZ.encode($.externalAdReply,K.uint32(226).fork()).join();if($.entryPointConversionSource!==void 0)K.uint32(234).string($.entryPointConversionSource);if($.entryPointConversionApp!==void 0)K.uint32(242).string($.entryPointConversionApp);if($.entryPointConversionDelaySeconds!==void 0)K.uint32(248).uint32($.entryPointConversionDelaySeconds);if($.disappearingMode!==void 0)D0.encode($.disappearingMode,K.uint32(258).fork()).join();if($.actionLink!==void 0)PK.encode($.actionLink,K.uint32(266).fork()).join();if($.groupSubject!==void 0)K.uint32(274).string($.groupSubject);if($.parentGroupJid!==void 0)K.uint32(282).string($.parentGroupJid);if($.trustBannerType!==void 0)K.uint32(298).string($.trustBannerType);if($.trustBannerAction!==void 0)K.uint32(304).uint32($.trustBannerAction);if($.isSampled!==void 0)K.uint32(312).bool($.isSampled);if($.groupMentions!==void 0&&$.groupMentions.length!==0)for(let Q of $.groupMentions)fZ.encode(Q,K.uint32(322).fork()).join();if($.utm!==void 0)VZ.encode($.utm,K.uint32(330).fork()).join();if($.forwardedNewsletterMessageInfo!==void 0)J$.encode($.forwardedNewsletterMessageInfo,K.uint32(346).fork()).join();if($.businessMessageForwardInfo!==void 0)ZZ.encode($.businessMessageForwardInfo,K.uint32(354).fork()).join();if($.smbClientCampaignId!==void 0)K.uint32(362).string($.smbClientCampaignId);if($.smbServerCampaignId!==void 0)K.uint32(370).string($.smbServerCampaignId);if($.dataSharingContext!==void 0)JZ.encode($.dataSharingContext,K.uint32(378).fork()).join();if($.alwaysShowAdAttribution!==void 0)K.uint32(384).bool($.alwaysShowAdAttribution);if($.featureEligibilities!==void 0)qZ.encode($.featureEligibilities,K.uint32(394).fork()).join();if($.entryPointConversionExternalSource!==void 0)K.uint32(402).string($.entryPointConversionExternalSource);if($.entryPointConversionExternalMedium!==void 0)K.uint32(410).string($.entryPointConversionExternalMedium);if($.ctwaSignals!==void 0)K.uint32(434).string($.ctwaSignals);if($.ctwaPayload!==void 0)K.uint32(442).bytes($.ctwaPayload);if($.forwardedAiBotMessageInfo!==void 0)SZ.encode($.forwardedAiBotMessageInfo,K.uint32(450).fork()).join();if($.statusAttributionType!==void 0)K.uint32(456).int32($.statusAttributionType);if($.urlTrackingMap!==void 0)B$.encode($.urlTrackingMap,K.uint32(466).fork()).join();if($.pairedMediaType!==void 0)K.uint32(472).int32($.pairedMediaType);if($.rankingVersion!==void 0)K.uint32(480).uint32($.rankingVersion);if($.memberLabel!==void 0)F0.encode($.memberLabel,K.uint32(498).fork()).join();if($.isQuestion!==void 0)K.uint32(504).bool($.isQuestion);if($.statusSourceType!==void 0)K.uint32(512).int32($.statusSourceType);if($.statusAttributions!==void 0&&$.statusAttributions.length!==0)for(let Q of $.statusAttributions)Bq.encode(Q,K.uint32(522).fork()).join();if($.isGroupStatus!==void 0)K.uint32(528).bool($.isGroupStatus);if($.forwardOrigin!==void 0)K.uint32(536).int32($.forwardOrigin);if($.questionReplyQuotedMessage!==void 0)HZ.encode($.questionReplyQuotedMessage,K.uint32(546).fork()).join();if($.statusAudienceMetadata!==void 0)zZ.encode($.statusAudienceMetadata,K.uint32(554).fork()).join();if($.nonJidMentions!==void 0)K.uint32(560).uint32($.nonJidMentions);if($.quotedType!==void 0)K.uint32(568).int32($.quotedType);if($.botMessageSharingInfo!==void 0)cK.encode($.botMessageSharingInfo,K.uint32(578).fork()).join();if($.isSpoiler!==void 0)K.uint32(584).bool($.isSpoiler);if($.mediaDomainInfo!==void 0)JJ.encode($.mediaDomainInfo,K.uint32(594).fork()).join();if($.partiallySelectedContent!==void 0)YZ.encode($.partiallySelectedContent,K.uint32(602).fork()).join();if($.afterReadDuration!==void 0)K.uint32(608).uint32($.afterReadDuration);if($.crossAppSource!==void 0)K.uint32(616).int32($.crossAppSource);if($.businessInteractionPills!==void 0)QZ.encode($.businessInteractionPills,K.uint32(626).fork()).join();if($.posterStatusId!==void 0)K.uint32(634).string($.posterStatusId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stanzaId=Q.string();continue}case 2:{if(Z!==18)break;J.participant=Q.string();continue}case 3:{if(Z!==26)break;J.quotedMessage=w.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.remoteJid=Q.string();continue}case 15:{if(Z!==122)break;if(J.mentionedJid===void 0)J.mentionedJid=[];let Y=Q.string();if(Y!==void 0)J.mentionedJid.push(Y);continue}case 18:{if(Z!==146)break;J.conversionSource=Q.string();continue}case 19:{if(Z!==154)break;J.conversionData=Q.bytes();continue}case 20:{if(Z!==160)break;J.conversionDelaySeconds=Q.uint32();continue}case 21:{if(Z!==168)break;J.forwardingScore=Q.uint32();continue}case 22:{if(Z!==176)break;J.isForwarded=Q.bool();continue}case 23:{if(Z!==186)break;J.quotedAd=KZ.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.placeholderKey=x.decode(Q,Q.uint32());continue}case 25:{if(Z!==200)break;J.expiration=Q.uint32();continue}case 26:{if(Z!==208)break;J.ephemeralSettingTimestamp=Q.int64Number();continue}case 27:{if(Z!==218)break;J.ephemeralSharedSecret=Q.bytes();continue}case 28:{if(Z!==226)break;J.externalAdReply=XZ.decode(Q,Q.uint32());continue}case 29:{if(Z!==234)break;J.entryPointConversionSource=Q.string();continue}case 30:{if(Z!==242)break;J.entryPointConversionApp=Q.string();continue}case 31:{if(Z!==248)break;J.entryPointConversionDelaySeconds=Q.uint32();continue}case 32:{if(Z!==258)break;J.disappearingMode=D0.decode(Q,Q.uint32());continue}case 33:{if(Z!==266)break;J.actionLink=PK.decode(Q,Q.uint32());continue}case 34:{if(Z!==274)break;J.groupSubject=Q.string();continue}case 35:{if(Z!==282)break;J.parentGroupJid=Q.string();continue}case 37:{if(Z!==298)break;J.trustBannerType=Q.string();continue}case 38:{if(Z!==304)break;J.trustBannerAction=Q.uint32();continue}case 39:{if(Z!==312)break;J.isSampled=Q.bool();continue}case 40:{if(Z!==322)break;if(J.groupMentions===void 0)J.groupMentions=[];let Y=fZ.decode(Q,Q.uint32());if(Y!==void 0)J.groupMentions.push(Y);continue}case 41:{if(Z!==330)break;J.utm=VZ.decode(Q,Q.uint32());continue}case 43:{if(Z!==346)break;J.forwardedNewsletterMessageInfo=J$.decode(Q,Q.uint32());continue}case 44:{if(Z!==354)break;J.businessMessageForwardInfo=ZZ.decode(Q,Q.uint32());continue}case 45:{if(Z!==362)break;J.smbClientCampaignId=Q.string();continue}case 46:{if(Z!==370)break;J.smbServerCampaignId=Q.string();continue}case 47:{if(Z!==378)break;J.dataSharingContext=JZ.decode(Q,Q.uint32());continue}case 48:{if(Z!==384)break;J.alwaysShowAdAttribution=Q.bool();continue}case 49:{if(Z!==394)break;J.featureEligibilities=qZ.decode(Q,Q.uint32());continue}case 50:{if(Z!==402)break;J.entryPointConversionExternalSource=Q.string();continue}case 51:{if(Z!==410)break;J.entryPointConversionExternalMedium=Q.string();continue}case 54:{if(Z!==434)break;J.ctwaSignals=Q.string();continue}case 55:{if(Z!==442)break;J.ctwaPayload=Q.bytes();continue}case 56:{if(Z!==450)break;J.forwardedAiBotMessageInfo=SZ.decode(Q,Q.uint32());continue}case 57:{if(Z!==456)break;J.statusAttributionType=Q.int32();continue}case 58:{if(Z!==466)break;J.urlTrackingMap=B$.decode(Q,Q.uint32());continue}case 59:{if(Z!==472)break;J.pairedMediaType=Q.int32();continue}case 60:{if(Z!==480)break;J.rankingVersion=Q.uint32();continue}case 62:{if(Z!==498)break;J.memberLabel=F0.decode(Q,Q.uint32());continue}case 63:{if(Z!==504)break;J.isQuestion=Q.bool();continue}case 64:{if(Z!==512)break;J.statusSourceType=Q.int32();continue}case 65:{if(Z!==522)break;if(J.statusAttributions===void 0)J.statusAttributions=[];let Y=Bq.decode(Q,Q.uint32());if(Y!==void 0)J.statusAttributions.push(Y);continue}case 66:{if(Z!==528)break;J.isGroupStatus=Q.bool();continue}case 67:{if(Z!==536)break;J.forwardOrigin=Q.int32();continue}case 68:{if(Z!==546)break;J.questionReplyQuotedMessage=HZ.decode(Q,Q.uint32());continue}case 69:{if(Z!==554)break;J.statusAudienceMetadata=zZ.decode(Q,Q.uint32());continue}case 70:{if(Z!==560)break;J.nonJidMentions=Q.uint32();continue}case 71:{if(Z!==568)break;J.quotedType=Q.int32();continue}case 72:{if(Z!==578)break;J.botMessageSharingInfo=cK.decode(Q,Q.uint32());continue}case 73:{if(Z!==584)break;J.isSpoiler=Q.bool();continue}case 74:{if(Z!==594)break;J.mediaDomainInfo=JJ.decode(Q,Q.uint32());continue}case 75:{if(Z!==602)break;J.partiallySelectedContent=YZ.decode(Q,Q.uint32());continue}case 76:{if(Z!==608)break;J.afterReadDuration=Q.uint32();continue}case 77:{if(Z!==616)break;J.crossAppSource=Q.int32();continue}case 78:{if(Z!==626)break;J.businessInteractionPills=QZ.decode(Q,Q.uint32());continue}case 79:{if(Z!==634)break;J.posterStatusId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return A.fromPartial($??{})},fromPartial($){let K=wV();return K.stanzaId=$.stanzaId??void 0,K.participant=$.participant??void 0,K.quotedMessage=$.quotedMessage!==void 0&&$.quotedMessage!==null?w.fromPartial($.quotedMessage):void 0,K.remoteJid=$.remoteJid??void 0,K.mentionedJid=$.mentionedJid?.map((Q)=>Q)||void 0,K.conversionSource=$.conversionSource??void 0,K.conversionData=$.conversionData??void 0,K.conversionDelaySeconds=$.conversionDelaySeconds??void 0,K.forwardingScore=$.forwardingScore??void 0,K.isForwarded=$.isForwarded??void 0,K.quotedAd=$.quotedAd!==void 0&&$.quotedAd!==null?KZ.fromPartial($.quotedAd):void 0,K.placeholderKey=$.placeholderKey!==void 0&&$.placeholderKey!==null?x.fromPartial($.placeholderKey):void 0,K.expiration=$.expiration??void 0,K.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,K.ephemeralSharedSecret=$.ephemeralSharedSecret??void 0,K.externalAdReply=$.externalAdReply!==void 0&&$.externalAdReply!==null?XZ.fromPartial($.externalAdReply):void 0,K.entryPointConversionSource=$.entryPointConversionSource??void 0,K.entryPointConversionApp=$.entryPointConversionApp??void 0,K.entryPointConversionDelaySeconds=$.entryPointConversionDelaySeconds??void 0,K.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?D0.fromPartial($.disappearingMode):void 0,K.actionLink=$.actionLink!==void 0&&$.actionLink!==null?PK.fromPartial($.actionLink):void 0,K.groupSubject=$.groupSubject??void 0,K.parentGroupJid=$.parentGroupJid??void 0,K.trustBannerType=$.trustBannerType??void 0,K.trustBannerAction=$.trustBannerAction??void 0,K.isSampled=$.isSampled??void 0,K.groupMentions=$.groupMentions?.map((Q)=>fZ.fromPartial(Q))||void 0,K.utm=$.utm!==void 0&&$.utm!==null?VZ.fromPartial($.utm):void 0,K.forwardedNewsletterMessageInfo=$.forwardedNewsletterMessageInfo!==void 0&&$.forwardedNewsletterMessageInfo!==null?J$.fromPartial($.forwardedNewsletterMessageInfo):void 0,K.businessMessageForwardInfo=$.businessMessageForwardInfo!==void 0&&$.businessMessageForwardInfo!==null?ZZ.fromPartial($.businessMessageForwardInfo):void 0,K.smbClientCampaignId=$.smbClientCampaignId??void 0,K.smbServerCampaignId=$.smbServerCampaignId??void 0,K.dataSharingContext=$.dataSharingContext!==void 0&&$.dataSharingContext!==null?JZ.fromPartial($.dataSharingContext):void 0,K.alwaysShowAdAttribution=$.alwaysShowAdAttribution??void 0,K.featureEligibilities=$.featureEligibilities!==void 0&&$.featureEligibilities!==null?qZ.fromPartial($.featureEligibilities):void 0,K.entryPointConversionExternalSource=$.entryPointConversionExternalSource??void 0,K.entryPointConversionExternalMedium=$.entryPointConversionExternalMedium??void 0,K.ctwaSignals=$.ctwaSignals??void 0,K.ctwaPayload=$.ctwaPayload??void 0,K.forwardedAiBotMessageInfo=$.forwardedAiBotMessageInfo!==void 0&&$.forwardedAiBotMessageInfo!==null?SZ.fromPartial($.forwardedAiBotMessageInfo):void 0,K.statusAttributionType=$.statusAttributionType??void 0,K.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?B$.fromPartial($.urlTrackingMap):void 0,K.pairedMediaType=$.pairedMediaType??void 0,K.rankingVersion=$.rankingVersion??void 0,K.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,K.isQuestion=$.isQuestion??void 0,K.statusSourceType=$.statusSourceType??void 0,K.statusAttributions=$.statusAttributions?.map((Q)=>Bq.fromPartial(Q))||void 0,K.isGroupStatus=$.isGroupStatus??void 0,K.forwardOrigin=$.forwardOrigin??void 0,K.questionReplyQuotedMessage=$.questionReplyQuotedMessage!==void 0&&$.questionReplyQuotedMessage!==null?HZ.fromPartial($.questionReplyQuotedMessage):void 0,K.statusAudienceMetadata=$.statusAudienceMetadata!==void 0&&$.statusAudienceMetadata!==null?zZ.fromPartial($.statusAudienceMetadata):void 0,K.nonJidMentions=$.nonJidMentions??void 0,K.quotedType=$.quotedType??void 0,K.botMessageSharingInfo=$.botMessageSharingInfo!==void 0&&$.botMessageSharingInfo!==null?cK.fromPartial($.botMessageSharingInfo):void 0,K.isSpoiler=$.isSpoiler??void 0,K.mediaDomainInfo=$.mediaDomainInfo!==void 0&&$.mediaDomainInfo!==null?JJ.fromPartial($.mediaDomainInfo):void 0,K.partiallySelectedContent=$.partiallySelectedContent!==void 0&&$.partiallySelectedContent!==null?YZ.fromPartial($.partiallySelectedContent):void 0,K.afterReadDuration=$.afterReadDuration??void 0,K.crossAppSource=$.crossAppSource??void 0,K.businessInteractionPills=$.businessInteractionPills!==void 0&&$.businessInteractionPills!==null?QZ.fromPartial($.businessInteractionPills):void 0,K.posterStatusId=$.posterStatusId??void 0,K}};function nV(){return{}}var KZ={encode($,K=new H){if($.advertiserName!==void 0)K.uint32(10).string($.advertiserName);if($.mediaType!==void 0)K.uint32(16).int32($.mediaType);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.caption!==void 0)K.uint32(138).string($.caption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.advertiserName=Q.string();continue}case 2:{if(Z!==16)break;J.mediaType=Q.int32();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.caption=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KZ.fromPartial($??{})},fromPartial($){let K=nV();return K.advertiserName=$.advertiserName??void 0,K.mediaType=$.mediaType??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption??void 0,K}};function dV(){return{}}var QZ={encode($,K=new H){if($.businessJid!==void 0)K.uint32(10).string($.businessJid);if($.pills!==void 0&&$.pills.length!==0)for(let Q of $.pills)Z$.encode(Q,K.uint32(18).fork()).join();if($.entryPoint!==void 0)K.uint32(24).int32($.entryPoint);if($.signedPayload!==void 0)K.uint32(34).bytes($.signedPayload);if($.signatureEnvelope!==void 0)t0.encode($.signatureEnvelope,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.businessJid=Q.string();continue}case 2:{if(Z!==18)break;if(J.pills===void 0)J.pills=[];let Y=Z$.decode(Q,Q.uint32());if(Y!==void 0)J.pills.push(Y);continue}case 3:{if(Z!==24)break;J.entryPoint=Q.int32();continue}case 4:{if(Z!==34)break;J.signedPayload=Q.bytes();continue}case 5:{if(Z!==42)break;J.signatureEnvelope=t0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QZ.fromPartial($??{})},fromPartial($){let K=dV();return K.businessJid=$.businessJid??void 0,K.pills=$.pills?.map((Q)=>Z$.fromPartial(Q))||void 0,K.entryPoint=$.entryPoint??void 0,K.signedPayload=$.signedPayload??void 0,K.signatureEnvelope=$.signatureEnvelope!==void 0&&$.signatureEnvelope!==null?t0.fromPartial($.signatureEnvelope):void 0,K}};function jV(){return{}}var Z$={encode($,K=new H){if($.pillType!==void 0)K.uint32(8).int32($.pillType);if($.actionUrl!==void 0)K.uint32(18).string($.actionUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pillType=Q.int32();continue}case 2:{if(Z!==18)break;J.actionUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Z$.fromPartial($??{})},fromPartial($){let K=jV();return K.pillType=$.pillType??void 0,K.actionUrl=$.actionUrl??void 0,K}};function cV(){return{}}var TN={encode($,K=new H){if($.verifiedName!==void 0)K.uint32(10).string($.verifiedName);if($.pills!==void 0&&$.pills.length!==0)for(let Q of $.pills)Z$.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.verifiedName=Q.string();continue}case 2:{if(Z!==18)break;if(J.pills===void 0)J.pills=[];let Y=Z$.decode(Q,Q.uint32());if(Y!==void 0)J.pills.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TN.fromPartial($??{})},fromPartial($){let K=cV();return K.verifiedName=$.verifiedName??void 0,K.pills=$.pills?.map((Q)=>Z$.fromPartial(Q))||void 0,K}};function oV(){return{}}var ZZ={encode($,K=new H){if($.businessOwnerJid!==void 0)K.uint32(10).string($.businessOwnerJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.businessOwnerJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZZ.fromPartial($??{})},fromPartial($){let K=oV();return K.businessOwnerJid=$.businessOwnerJid??void 0,K}};function bV(){return{}}var JZ={encode($,K=new H){if($.showMmDisclosure!==void 0)K.uint32(8).bool($.showMmDisclosure);if($.encryptedSignalTokenConsented!==void 0)K.uint32(18).string($.encryptedSignalTokenConsented);if($.parameters!==void 0&&$.parameters.length!==0)for(let Q of $.parameters)g0.encode(Q,K.uint32(26).fork()).join();if($.dataSharingFlags!==void 0)K.uint32(32).int32($.dataSharingFlags);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.showMmDisclosure=Q.bool();continue}case 2:{if(Z!==18)break;J.encryptedSignalTokenConsented=Q.string();continue}case 3:{if(Z!==26)break;if(J.parameters===void 0)J.parameters=[];let Y=g0.decode(Q,Q.uint32());if(Y!==void 0)J.parameters.push(Y);continue}case 4:{if(Z!==32)break;J.dataSharingFlags=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JZ.fromPartial($??{})},fromPartial($){let K=bV();return K.showMmDisclosure=$.showMmDisclosure??void 0,K.encryptedSignalTokenConsented=$.encryptedSignalTokenConsented??void 0,K.parameters=$.parameters?.map((Q)=>g0.fromPartial(Q))||void 0,K.dataSharingFlags=$.dataSharingFlags??void 0,K}};function iV(){return{}}var g0={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.stringData!==void 0)K.uint32(18).string($.stringData);if($.intData!==void 0)K.uint32(24).int64($.intData);if($.floatData!==void 0)K.uint32(37).float($.floatData);if($.contents!==void 0)g0.encode($.contents,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.stringData=Q.string();continue}case 3:{if(Z!==24)break;J.intData=Q.int64Number();continue}case 4:{if(Z!==37)break;J.floatData=Q.float();continue}case 5:{if(Z!==42)break;J.contents=g0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return g0.fromPartial($??{})},fromPartial($){let K=iV();return K.key=$.key??void 0,K.stringData=$.stringData??void 0,K.intData=$.intData??void 0,K.floatData=$.floatData??void 0,K.contents=$.contents!==void 0&&$.contents!==null?g0.fromPartial($.contents):void 0,K}};function mV(){return{}}var XZ={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.body!==void 0)K.uint32(18).string($.body);if($.mediaType!==void 0)K.uint32(24).int32($.mediaType);if($.thumbnailUrl!==void 0)K.uint32(34).string($.thumbnailUrl);if($.mediaUrl!==void 0)K.uint32(42).string($.mediaUrl);if($.thumbnail!==void 0)K.uint32(50).bytes($.thumbnail);if($.sourceType!==void 0)K.uint32(58).string($.sourceType);if($.sourceId!==void 0)K.uint32(66).string($.sourceId);if($.sourceUrl!==void 0)K.uint32(74).string($.sourceUrl);if($.containsAutoReply!==void 0)K.uint32(80).bool($.containsAutoReply);if($.renderLargerThumbnail!==void 0)K.uint32(88).bool($.renderLargerThumbnail);if($.showAdAttribution!==void 0)K.uint32(96).bool($.showAdAttribution);if($.ctwaClid!==void 0)K.uint32(106).string($.ctwaClid);if($.ref!==void 0)K.uint32(114).string($.ref);if($.clickToWhatsappCall!==void 0)K.uint32(120).bool($.clickToWhatsappCall);if($.adContextPreviewDismissed!==void 0)K.uint32(128).bool($.adContextPreviewDismissed);if($.sourceApp!==void 0)K.uint32(138).string($.sourceApp);if($.automatedGreetingMessageShown!==void 0)K.uint32(144).bool($.automatedGreetingMessageShown);if($.greetingMessageBody!==void 0)K.uint32(154).string($.greetingMessageBody);if($.ctaPayload!==void 0)K.uint32(162).string($.ctaPayload);if($.disableNudge!==void 0)K.uint32(168).bool($.disableNudge);if($.originalImageUrl!==void 0)K.uint32(178).string($.originalImageUrl);if($.automatedGreetingMessageCtaType!==void 0)K.uint32(186).string($.automatedGreetingMessageCtaType);if($.wtwaAdFormat!==void 0)K.uint32(192).bool($.wtwaAdFormat);if($.adType!==void 0)K.uint32(200).int32($.adType);if($.wtwaWebsiteUrl!==void 0)K.uint32(210).string($.wtwaWebsiteUrl);if($.adPreviewUrl!==void 0)K.uint32(218).string($.adPreviewUrl);if($.containsCtwaFlowsAutoReply!==void 0)K.uint32(224).bool($.containsCtwaFlowsAutoReply);if($.agmThumbnailStrategy!==void 0)K.uint32(232).int32($.agmThumbnailStrategy);if($.agmTitleStrategy!==void 0)K.uint32(240).int32($.agmTitleStrategy);if($.agmSubtitleStrategy!==void 0)K.uint32(248).int32($.agmSubtitleStrategy);if($.agmHeaderInteractionStrategy!==void 0)K.uint32(256).int32($.agmHeaderInteractionStrategy);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.body=Q.string();continue}case 3:{if(Z!==24)break;J.mediaType=Q.int32();continue}case 4:{if(Z!==34)break;J.thumbnailUrl=Q.string();continue}case 5:{if(Z!==42)break;J.mediaUrl=Q.string();continue}case 6:{if(Z!==50)break;J.thumbnail=Q.bytes();continue}case 7:{if(Z!==58)break;J.sourceType=Q.string();continue}case 8:{if(Z!==66)break;J.sourceId=Q.string();continue}case 9:{if(Z!==74)break;J.sourceUrl=Q.string();continue}case 10:{if(Z!==80)break;J.containsAutoReply=Q.bool();continue}case 11:{if(Z!==88)break;J.renderLargerThumbnail=Q.bool();continue}case 12:{if(Z!==96)break;J.showAdAttribution=Q.bool();continue}case 13:{if(Z!==106)break;J.ctwaClid=Q.string();continue}case 14:{if(Z!==114)break;J.ref=Q.string();continue}case 15:{if(Z!==120)break;J.clickToWhatsappCall=Q.bool();continue}case 16:{if(Z!==128)break;J.adContextPreviewDismissed=Q.bool();continue}case 17:{if(Z!==138)break;J.sourceApp=Q.string();continue}case 18:{if(Z!==144)break;J.automatedGreetingMessageShown=Q.bool();continue}case 19:{if(Z!==154)break;J.greetingMessageBody=Q.string();continue}case 20:{if(Z!==162)break;J.ctaPayload=Q.string();continue}case 21:{if(Z!==168)break;J.disableNudge=Q.bool();continue}case 22:{if(Z!==178)break;J.originalImageUrl=Q.string();continue}case 23:{if(Z!==186)break;J.automatedGreetingMessageCtaType=Q.string();continue}case 24:{if(Z!==192)break;J.wtwaAdFormat=Q.bool();continue}case 25:{if(Z!==200)break;J.adType=Q.int32();continue}case 26:{if(Z!==210)break;J.wtwaWebsiteUrl=Q.string();continue}case 27:{if(Z!==218)break;J.adPreviewUrl=Q.string();continue}case 28:{if(Z!==224)break;J.containsCtwaFlowsAutoReply=Q.bool();continue}case 29:{if(Z!==232)break;J.agmThumbnailStrategy=Q.int32();continue}case 30:{if(Z!==240)break;J.agmTitleStrategy=Q.int32();continue}case 31:{if(Z!==248)break;J.agmSubtitleStrategy=Q.int32();continue}case 32:{if(Z!==256)break;J.agmHeaderInteractionStrategy=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XZ.fromPartial($??{})},fromPartial($){let K=mV();return K.title=$.title??void 0,K.body=$.body??void 0,K.mediaType=$.mediaType??void 0,K.thumbnailUrl=$.thumbnailUrl??void 0,K.mediaUrl=$.mediaUrl??void 0,K.thumbnail=$.thumbnail??void 0,K.sourceType=$.sourceType??void 0,K.sourceId=$.sourceId??void 0,K.sourceUrl=$.sourceUrl??void 0,K.containsAutoReply=$.containsAutoReply??void 0,K.renderLargerThumbnail=$.renderLargerThumbnail??void 0,K.showAdAttribution=$.showAdAttribution??void 0,K.ctwaClid=$.ctwaClid??void 0,K.ref=$.ref??void 0,K.clickToWhatsappCall=$.clickToWhatsappCall??void 0,K.adContextPreviewDismissed=$.adContextPreviewDismissed??void 0,K.sourceApp=$.sourceApp??void 0,K.automatedGreetingMessageShown=$.automatedGreetingMessageShown??void 0,K.greetingMessageBody=$.greetingMessageBody??void 0,K.ctaPayload=$.ctaPayload??void 0,K.disableNudge=$.disableNudge??void 0,K.originalImageUrl=$.originalImageUrl??void 0,K.automatedGreetingMessageCtaType=$.automatedGreetingMessageCtaType??void 0,K.wtwaAdFormat=$.wtwaAdFormat??void 0,K.adType=$.adType??void 0,K.wtwaWebsiteUrl=$.wtwaWebsiteUrl??void 0,K.adPreviewUrl=$.adPreviewUrl??void 0,K.containsCtwaFlowsAutoReply=$.containsCtwaFlowsAutoReply??void 0,K.agmThumbnailStrategy=$.agmThumbnailStrategy??void 0,K.agmTitleStrategy=$.agmTitleStrategy??void 0,K.agmSubtitleStrategy=$.agmSubtitleStrategy??void 0,K.agmHeaderInteractionStrategy=$.agmHeaderInteractionStrategy??void 0,K}};function gV(){return{}}var qZ={encode($,K=new H){if($.cannotBeReactedTo!==void 0)K.uint32(8).bool($.cannotBeReactedTo);if($.cannotBeRanked!==void 0)K.uint32(16).bool($.cannotBeRanked);if($.canRequestFeedback!==void 0)K.uint32(24).bool($.canRequestFeedback);if($.canBeReshared!==void 0)K.uint32(32).bool($.canBeReshared);if($.canReceiveMultiReact!==void 0)K.uint32(40).bool($.canReceiveMultiReact);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.cannotBeReactedTo=Q.bool();continue}case 2:{if(Z!==16)break;J.cannotBeRanked=Q.bool();continue}case 3:{if(Z!==24)break;J.canRequestFeedback=Q.bool();continue}case 4:{if(Z!==32)break;J.canBeReshared=Q.bool();continue}case 5:{if(Z!==40)break;J.canReceiveMultiReact=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qZ.fromPartial($??{})},fromPartial($){let K=gV();return K.cannotBeReactedTo=$.cannotBeReactedTo??void 0,K.cannotBeRanked=$.cannotBeRanked??void 0,K.canRequestFeedback=$.canRequestFeedback??void 0,K.canBeReshared=$.canBeReshared??void 0,K.canReceiveMultiReact=$.canReceiveMultiReact??void 0,K}};function tV(){return{}}var J$={encode($,K=new H){if($.newsletterJid!==void 0)K.uint32(10).string($.newsletterJid);if($.serverMessageId!==void 0)K.uint32(16).int32($.serverMessageId);if($.newsletterName!==void 0)K.uint32(26).string($.newsletterName);if($.contentType!==void 0)K.uint32(32).int32($.contentType);if($.accessibilityText!==void 0)K.uint32(42).string($.accessibilityText);if($.profileName!==void 0)K.uint32(50).string($.profileName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newsletterJid=Q.string();continue}case 2:{if(Z!==16)break;J.serverMessageId=Q.int32();continue}case 3:{if(Z!==26)break;J.newsletterName=Q.string();continue}case 4:{if(Z!==32)break;J.contentType=Q.int32();continue}case 5:{if(Z!==42)break;J.accessibilityText=Q.string();continue}case 6:{if(Z!==50)break;J.profileName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return J$.fromPartial($??{})},fromPartial($){let K=tV();return K.newsletterJid=$.newsletterJid??void 0,K.serverMessageId=$.serverMessageId??void 0,K.newsletterName=$.newsletterName??void 0,K.contentType=$.contentType??void 0,K.accessibilityText=$.accessibilityText??void 0,K.profileName=$.profileName??void 0,K}};function rV(){return{}}var YZ={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YZ.fromPartial($??{})},fromPartial($){let K=rV();return K.text=$.text??void 0,K}};function aV(){return{}}var HZ={encode($,K=new H){if($.serverQuestionId!==void 0)K.uint32(8).int32($.serverQuestionId);if($.quotedQuestion!==void 0)w.encode($.quotedQuestion,K.uint32(18).fork()).join();if($.quotedResponse!==void 0)w.encode($.quotedResponse,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serverQuestionId=Q.int32();continue}case 2:{if(Z!==18)break;J.quotedQuestion=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.quotedResponse=w.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HZ.fromPartial($??{})},fromPartial($){let K=aV();return K.serverQuestionId=$.serverQuestionId??void 0,K.quotedQuestion=$.quotedQuestion!==void 0&&$.quotedQuestion!==null?w.fromPartial($.quotedQuestion):void 0,K.quotedResponse=$.quotedResponse!==void 0&&$.quotedResponse!==null?w.fromPartial($.quotedResponse):void 0,K}};function sV(){return{}}var zZ={encode($,K=new H){if($.audienceType!==void 0)K.uint32(8).int32($.audienceType);if($.listName!==void 0)K.uint32(18).string($.listName);if($.listEmoji!==void 0)K.uint32(26).string($.listEmoji);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.audienceType=Q.int32();continue}case 2:{if(Z!==18)break;J.listName=Q.string();continue}case 3:{if(Z!==26)break;J.listEmoji=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zZ.fromPartial($??{})},fromPartial($){let K=sV();return K.audienceType=$.audienceType??void 0,K.listName=$.listName??void 0,K.listEmoji=$.listEmoji??void 0,K}};function eV(){return{}}var VZ={encode($,K=new H){if($.utmSource!==void 0)K.uint32(10).string($.utmSource);if($.utmCampaign!==void 0)K.uint32(18).string($.utmCampaign);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.utmSource=Q.string();continue}case 2:{if(Z!==18)break;J.utmCampaign=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VZ.fromPartial($??{})},fromPartial($){let K=eV();return K.utmSource=$.utmSource??void 0,K.utmCampaign=$.utmCampaign??void 0,K}};function $G(){return{}}var GZ={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)dZ.encode(Q,K.uint32(18).fork()).join();if($.newJid!==void 0)K.uint32(26).string($.newJid);if($.oldJid!==void 0)K.uint32(34).string($.oldJid);if($.lastMsgTimestamp!==void 0)K.uint32(40).uint64($.lastMsgTimestamp);if($.unreadCount!==void 0)K.uint32(48).uint32($.unreadCount);if($.readOnly!==void 0)K.uint32(56).bool($.readOnly);if($.endOfHistoryTransfer!==void 0)K.uint32(64).bool($.endOfHistoryTransfer);if($.ephemeralExpiration!==void 0)K.uint32(72).uint32($.ephemeralExpiration);if($.ephemeralSettingTimestamp!==void 0)K.uint32(80).int64($.ephemeralSettingTimestamp);if($.endOfHistoryTransferType!==void 0)K.uint32(88).int32($.endOfHistoryTransferType);if($.conversationTimestamp!==void 0)K.uint32(96).uint64($.conversationTimestamp);if($.name!==void 0)K.uint32(106).string($.name);if($.pHash!==void 0)K.uint32(114).string($.pHash);if($.notSpam!==void 0)K.uint32(120).bool($.notSpam);if($.archived!==void 0)K.uint32(128).bool($.archived);if($.disappearingMode!==void 0)D0.encode($.disappearingMode,K.uint32(138).fork()).join();if($.unreadMentionCount!==void 0)K.uint32(144).uint32($.unreadMentionCount);if($.markedAsUnread!==void 0)K.uint32(152).bool($.markedAsUnread);if($.participant!==void 0&&$.participant.length!==0)for(let Q of $.participant)_Z.encode(Q,K.uint32(162).fork()).join();if($.tcToken!==void 0)K.uint32(170).bytes($.tcToken);if($.tcTokenTimestamp!==void 0)K.uint32(176).uint64($.tcTokenTimestamp);if($.contactPrimaryIdentityKey!==void 0)K.uint32(186).bytes($.contactPrimaryIdentityKey);if($.pinned!==void 0)K.uint32(192).uint32($.pinned);if($.muteEndTime!==void 0)K.uint32(200).uint64($.muteEndTime);if($.wallpaper!==void 0)U0.encode($.wallpaper,K.uint32(210).fork()).join();if($.mediaVisibility!==void 0)K.uint32(216).int32($.mediaVisibility);if($.tcTokenSenderTimestamp!==void 0)K.uint32(224).uint64($.tcTokenSenderTimestamp);if($.suspended!==void 0)K.uint32(232).bool($.suspended);if($.terminated!==void 0)K.uint32(240).bool($.terminated);if($.createdAt!==void 0)K.uint32(248).uint64($.createdAt);if($.createdBy!==void 0)K.uint32(258).string($.createdBy);if($.description!==void 0)K.uint32(266).string($.description);if($.support!==void 0)K.uint32(272).bool($.support);if($.isParentGroup!==void 0)K.uint32(280).bool($.isParentGroup);if($.parentGroupId!==void 0)K.uint32(298).string($.parentGroupId);if($.isDefaultSubgroup!==void 0)K.uint32(288).bool($.isDefaultSubgroup);if($.displayName!==void 0)K.uint32(306).string($.displayName);if($.pnJid!==void 0)K.uint32(314).string($.pnJid);if($.shareOwnPn!==void 0)K.uint32(320).bool($.shareOwnPn);if($.pnhDuplicateLidThread!==void 0)K.uint32(328).bool($.pnhDuplicateLidThread);if($.lidJid!==void 0)K.uint32(338).string($.lidJid);if($.username!==void 0)K.uint32(346).string($.username);if($.lidOriginType!==void 0)K.uint32(354).string($.lidOriginType);if($.commentsCount!==void 0)K.uint32(360).uint32($.commentsCount);if($.locked!==void 0)K.uint32(368).bool($.locked);if($.systemMessageToInsert!==void 0)K.uint32(376).int32($.systemMessageToInsert);if($.capiCreatedGroup!==void 0)K.uint32(384).bool($.capiCreatedGroup);if($.accountLid!==void 0)K.uint32(394).string($.accountLid);if($.limitSharing!==void 0)K.uint32(400).bool($.limitSharing);if($.limitSharingSettingTimestamp!==void 0)K.uint32(408).int64($.limitSharingSettingTimestamp);if($.limitSharingTrigger!==void 0)K.uint32(416).int32($.limitSharingTrigger);if($.limitSharingInitiatedByMe!==void 0)K.uint32(424).bool($.limitSharingInitiatedByMe);if($.maibaAiThreadEnabled!==void 0)K.uint32(432).bool($.maibaAiThreadEnabled);if($.isMarketingMessageThread!==void 0)K.uint32(440).bool($.isMarketingMessageThread);if($.isSenderNewAccount!==void 0)K.uint32(448).bool($.isSenderNewAccount);if($.afterReadDuration!==void 0)K.uint32(456).uint32($.afterReadDuration);if($.isSenderSuspicious!==void 0)K.uint32(464).bool($.isSenderSuspicious);if($.appealStatus!==void 0)K.uint32(472).int32($.appealStatus);if($.appealUpdateTime!==void 0)K.uint32(480).uint64($.appealUpdateTime);if($.authAgentParentCompanyName!==void 0)K.uint32(490).string($.authAgentParentCompanyName);if($.authAgentObaPhoneNumber!==void 0)K.uint32(498).string($.authAgentObaPhoneNumber);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$G();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==18)break;if(J.messages===void 0)J.messages=[];let Y=dZ.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 3:{if(Z!==26)break;J.newJid=Q.string();continue}case 4:{if(Z!==34)break;J.oldJid=Q.string();continue}case 5:{if(Z!==40)break;J.lastMsgTimestamp=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.unreadCount=Q.uint32();continue}case 7:{if(Z!==56)break;J.readOnly=Q.bool();continue}case 8:{if(Z!==64)break;J.endOfHistoryTransfer=Q.bool();continue}case 9:{if(Z!==72)break;J.ephemeralExpiration=Q.uint32();continue}case 10:{if(Z!==80)break;J.ephemeralSettingTimestamp=Q.int64Number();continue}case 11:{if(Z!==88)break;J.endOfHistoryTransferType=Q.int32();continue}case 12:{if(Z!==96)break;J.conversationTimestamp=Q.uint64Number();continue}case 13:{if(Z!==106)break;J.name=Q.string();continue}case 14:{if(Z!==114)break;J.pHash=Q.string();continue}case 15:{if(Z!==120)break;J.notSpam=Q.bool();continue}case 16:{if(Z!==128)break;J.archived=Q.bool();continue}case 17:{if(Z!==138)break;J.disappearingMode=D0.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.unreadMentionCount=Q.uint32();continue}case 19:{if(Z!==152)break;J.markedAsUnread=Q.bool();continue}case 20:{if(Z!==162)break;if(J.participant===void 0)J.participant=[];let Y=_Z.decode(Q,Q.uint32());if(Y!==void 0)J.participant.push(Y);continue}case 21:{if(Z!==170)break;J.tcToken=Q.bytes();continue}case 22:{if(Z!==176)break;J.tcTokenTimestamp=Q.uint64Number();continue}case 23:{if(Z!==186)break;J.contactPrimaryIdentityKey=Q.bytes();continue}case 24:{if(Z!==192)break;J.pinned=Q.uint32();continue}case 25:{if(Z!==200)break;J.muteEndTime=Q.uint64Number();continue}case 26:{if(Z!==210)break;J.wallpaper=U0.decode(Q,Q.uint32());continue}case 27:{if(Z!==216)break;J.mediaVisibility=Q.int32();continue}case 28:{if(Z!==224)break;J.tcTokenSenderTimestamp=Q.uint64Number();continue}case 29:{if(Z!==232)break;J.suspended=Q.bool();continue}case 30:{if(Z!==240)break;J.terminated=Q.bool();continue}case 31:{if(Z!==248)break;J.createdAt=Q.uint64Number();continue}case 32:{if(Z!==258)break;J.createdBy=Q.string();continue}case 33:{if(Z!==266)break;J.description=Q.string();continue}case 34:{if(Z!==272)break;J.support=Q.bool();continue}case 35:{if(Z!==280)break;J.isParentGroup=Q.bool();continue}case 37:{if(Z!==298)break;J.parentGroupId=Q.string();continue}case 36:{if(Z!==288)break;J.isDefaultSubgroup=Q.bool();continue}case 38:{if(Z!==306)break;J.displayName=Q.string();continue}case 39:{if(Z!==314)break;J.pnJid=Q.string();continue}case 40:{if(Z!==320)break;J.shareOwnPn=Q.bool();continue}case 41:{if(Z!==328)break;J.pnhDuplicateLidThread=Q.bool();continue}case 42:{if(Z!==338)break;J.lidJid=Q.string();continue}case 43:{if(Z!==346)break;J.username=Q.string();continue}case 44:{if(Z!==354)break;J.lidOriginType=Q.string();continue}case 45:{if(Z!==360)break;J.commentsCount=Q.uint32();continue}case 46:{if(Z!==368)break;J.locked=Q.bool();continue}case 47:{if(Z!==376)break;J.systemMessageToInsert=Q.int32();continue}case 48:{if(Z!==384)break;J.capiCreatedGroup=Q.bool();continue}case 49:{if(Z!==394)break;J.accountLid=Q.string();continue}case 50:{if(Z!==400)break;J.limitSharing=Q.bool();continue}case 51:{if(Z!==408)break;J.limitSharingSettingTimestamp=Q.int64Number();continue}case 52:{if(Z!==416)break;J.limitSharingTrigger=Q.int32();continue}case 53:{if(Z!==424)break;J.limitSharingInitiatedByMe=Q.bool();continue}case 54:{if(Z!==432)break;J.maibaAiThreadEnabled=Q.bool();continue}case 55:{if(Z!==440)break;J.isMarketingMessageThread=Q.bool();continue}case 56:{if(Z!==448)break;J.isSenderNewAccount=Q.bool();continue}case 57:{if(Z!==456)break;J.afterReadDuration=Q.uint32();continue}case 58:{if(Z!==464)break;J.isSenderSuspicious=Q.bool();continue}case 59:{if(Z!==472)break;J.appealStatus=Q.int32();continue}case 60:{if(Z!==480)break;J.appealUpdateTime=Q.uint64Number();continue}case 61:{if(Z!==490)break;J.authAgentParentCompanyName=Q.string();continue}case 62:{if(Z!==498)break;J.authAgentObaPhoneNumber=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GZ.fromPartial($??{})},fromPartial($){let K=$G();return K.id=$.id??void 0,K.messages=$.messages?.map((Q)=>dZ.fromPartial(Q))||void 0,K.newJid=$.newJid??void 0,K.oldJid=$.oldJid??void 0,K.lastMsgTimestamp=$.lastMsgTimestamp??void 0,K.unreadCount=$.unreadCount??void 0,K.readOnly=$.readOnly??void 0,K.endOfHistoryTransfer=$.endOfHistoryTransfer??void 0,K.ephemeralExpiration=$.ephemeralExpiration??void 0,K.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,K.endOfHistoryTransferType=$.endOfHistoryTransferType??void 0,K.conversationTimestamp=$.conversationTimestamp??void 0,K.name=$.name??void 0,K.pHash=$.pHash??void 0,K.notSpam=$.notSpam??void 0,K.archived=$.archived??void 0,K.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?D0.fromPartial($.disappearingMode):void 0,K.unreadMentionCount=$.unreadMentionCount??void 0,K.markedAsUnread=$.markedAsUnread??void 0,K.participant=$.participant?.map((Q)=>_Z.fromPartial(Q))||void 0,K.tcToken=$.tcToken??void 0,K.tcTokenTimestamp=$.tcTokenTimestamp??void 0,K.contactPrimaryIdentityKey=$.contactPrimaryIdentityKey??void 0,K.pinned=$.pinned??void 0,K.muteEndTime=$.muteEndTime??void 0,K.wallpaper=$.wallpaper!==void 0&&$.wallpaper!==null?U0.fromPartial($.wallpaper):void 0,K.mediaVisibility=$.mediaVisibility??void 0,K.tcTokenSenderTimestamp=$.tcTokenSenderTimestamp??void 0,K.suspended=$.suspended??void 0,K.terminated=$.terminated??void 0,K.createdAt=$.createdAt??void 0,K.createdBy=$.createdBy??void 0,K.description=$.description??void 0,K.support=$.support??void 0,K.isParentGroup=$.isParentGroup??void 0,K.parentGroupId=$.parentGroupId??void 0,K.isDefaultSubgroup=$.isDefaultSubgroup??void 0,K.displayName=$.displayName??void 0,K.pnJid=$.pnJid??void 0,K.shareOwnPn=$.shareOwnPn??void 0,K.pnhDuplicateLidThread=$.pnhDuplicateLidThread??void 0,K.lidJid=$.lidJid??void 0,K.username=$.username??void 0,K.lidOriginType=$.lidOriginType??void 0,K.commentsCount=$.commentsCount??void 0,K.locked=$.locked??void 0,K.systemMessageToInsert=$.systemMessageToInsert??void 0,K.capiCreatedGroup=$.capiCreatedGroup??void 0,K.accountLid=$.accountLid??void 0,K.limitSharing=$.limitSharing??void 0,K.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,K.limitSharingTrigger=$.limitSharingTrigger??void 0,K.limitSharingInitiatedByMe=$.limitSharingInitiatedByMe??void 0,K.maibaAiThreadEnabled=$.maibaAiThreadEnabled??void 0,K.isMarketingMessageThread=$.isMarketingMessageThread??void 0,K.isSenderNewAccount=$.isSenderNewAccount??void 0,K.afterReadDuration=$.afterReadDuration??void 0,K.isSenderSuspicious=$.isSenderSuspicious??void 0,K.appealStatus=$.appealStatus??void 0,K.appealUpdateTime=$.appealUpdateTime??void 0,K.authAgentParentCompanyName=$.authAgentParentCompanyName??void 0,K.authAgentObaPhoneNumber=$.authAgentObaPhoneNumber??void 0,K}};function KG(){return{}}var UZ={encode($,K=new H){if($.recoveryCode!==void 0)K.uint32(10).string($.recoveryCode);if($.userId!==void 0)K.uint32(16).uint64($.userId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.recoveryCode=Q.string();continue}case 2:{if(Z!==16)break;J.userId=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UZ.fromPartial($??{})},fromPartial($){let K=KG();return K.recoveryCode=$.recoveryCode??void 0,K.userId=$.userId??void 0,K}};function QG(){return{}}var yN={encode($,K=new H){if($.device!==void 0)NZ.encode($.device,K.uint32(10).fork()).join();if($.virtualDevice!==void 0)MY.encode($.virtualDevice,K.uint32(18).fork()).join();if($.epoch0!==void 0)MZ.encode($.epoch0,K.uint32(26).fork()).join();if($.mailboxRootKey!==void 0)K.uint32(34).bytes($.mailboxRootKey);if($.error!==void 0)K.uint32(42).string($.error);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.device=NZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.virtualDevice=MY.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.epoch0=MZ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.mailboxRootKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.error=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yN.fromPartial($??{})},fromPartial($){let K=QG();return K.device=$.device!==void 0&&$.device!==null?NZ.fromPartial($.device):void 0,K.virtualDevice=$.virtualDevice!==void 0&&$.virtualDevice!==null?MY.fromPartial($.virtualDevice):void 0,K.epoch0=$.epoch0!==void 0&&$.epoch0!==null?MZ.fromPartial($.epoch0):void 0,K.mailboxRootKey=$.mailboxRootKey??void 0,K.error=$.error??void 0,K}};function ZG(){return{}}var CZ={encode($,K=new H){if($.epochRootKey!==void 0)K.uint32(10).bytes($.epochRootKey);if($.epochAnonId!==void 0)K.uint32(18).bytes($.epochAnonId);if($.threadId!==void 0)K.uint32(26).string($.threadId);if($.encryptionVersion!==void 0)K.uint32(32).int32($.encryptionVersion);if($.ciphertext!==void 0)K.uint32(42).bytes($.ciphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.epochRootKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.epochAnonId=Q.bytes();continue}case 3:{if(Z!==26)break;J.threadId=Q.string();continue}case 4:{if(Z!==32)break;J.encryptionVersion=Q.int32();continue}case 5:{if(Z!==42)break;J.ciphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CZ.fromPartial($??{})},fromPartial($){let K=ZG();return K.epochRootKey=$.epochRootKey??void 0,K.epochAnonId=$.epochAnonId??void 0,K.threadId=$.threadId??void 0,K.encryptionVersion=$.encryptionVersion??void 0,K.ciphertext=$.ciphertext??void 0,K}};function JG(){return{}}var fN={encode($,K=new H){if($.plaintextPayload!==void 0)K.uint32(10).bytes($.plaintextPayload);if($.error!==void 0)K.uint32(18).string($.error);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.plaintextPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.error=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fN.fromPartial($??{})},fromPartial($){let K=JG();return K.plaintextPayload=$.plaintextPayload??void 0,K.error=$.error??void 0,K}};function XG(){return{}}var DZ={encode($,K=new H){if($.chatLockSupportLevel!==void 0)K.uint32(8).int32($.chatLockSupportLevel);if($.lidMigration!==void 0)FZ.encode($.lidMigration,K.uint32(18).fork()).join();if($.businessBroadcast!==void 0)PZ.encode($.businessBroadcast,K.uint32(26).fork()).join();if($.userHasAvatar!==void 0)xZ.encode($.userHasAvatar,K.uint32(34).fork()).join();if($.memberNameTagPrimarySupport!==void 0)K.uint32(40).int32($.memberNameTagPrimarySupport);if($.aiThread!==void 0)LZ.encode($.aiThread,K.uint32(50).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.chatLockSupportLevel=Q.int32();continue}case 2:{if(Z!==18)break;J.lidMigration=FZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.businessBroadcast=PZ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.userHasAvatar=xZ.decode(Q,Q.uint32());continue}case 5:{if(Z!==40)break;J.memberNameTagPrimarySupport=Q.int32();continue}case 6:{if(Z!==50)break;J.aiThread=LZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DZ.fromPartial($??{})},fromPartial($){let K=XG();return K.chatLockSupportLevel=$.chatLockSupportLevel??void 0,K.lidMigration=$.lidMigration!==void 0&&$.lidMigration!==null?FZ.fromPartial($.lidMigration):void 0,K.businessBroadcast=$.businessBroadcast!==void 0&&$.businessBroadcast!==null?PZ.fromPartial($.businessBroadcast):void 0,K.userHasAvatar=$.userHasAvatar!==void 0&&$.userHasAvatar!==null?xZ.fromPartial($.userHasAvatar):void 0,K.memberNameTagPrimarySupport=$.memberNameTagPrimarySupport??void 0,K.aiThread=$.aiThread!==void 0&&$.aiThread!==null?LZ.fromPartial($.aiThread):void 0,K}};function qG(){return{}}var LZ={encode($,K=new H){if($.supportLevel!==void 0)K.uint32(8).int32($.supportLevel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.supportLevel=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LZ.fromPartial($??{})},fromPartial($){let K=qG();return K.supportLevel=$.supportLevel??void 0,K}};function YG(){return{}}var PZ={encode($,K=new H){if($.importListEnabled!==void 0)K.uint32(8).bool($.importListEnabled);if($.companionSupportEnabled!==void 0)K.uint32(16).bool($.companionSupportEnabled);if($.campaignSyncEnabled!==void 0)K.uint32(24).bool($.campaignSyncEnabled);if($.insightsSyncEnabled!==void 0)K.uint32(32).bool($.insightsSyncEnabled);if($.recipientLimit!==void 0)K.uint32(40).int32($.recipientLimit);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.importListEnabled=Q.bool();continue}case 2:{if(Z!==16)break;J.companionSupportEnabled=Q.bool();continue}case 3:{if(Z!==24)break;J.campaignSyncEnabled=Q.bool();continue}case 4:{if(Z!==32)break;J.insightsSyncEnabled=Q.bool();continue}case 5:{if(Z!==40)break;J.recipientLimit=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PZ.fromPartial($??{})},fromPartial($){let K=YG();return K.importListEnabled=$.importListEnabled??void 0,K.companionSupportEnabled=$.companionSupportEnabled??void 0,K.campaignSyncEnabled=$.campaignSyncEnabled??void 0,K.insightsSyncEnabled=$.insightsSyncEnabled??void 0,K.recipientLimit=$.recipientLimit??void 0,K}};function HG(){return{}}var FZ={encode($,K=new H){if($.chatDbMigrationTimestamp!==void 0)K.uint32(8).uint64($.chatDbMigrationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.chatDbMigrationTimestamp=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FZ.fromPartial($??{})},fromPartial($){let K=HG();return K.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,K}};function zG(){return{}}var xZ={encode($,K=new H){if($.userHasAvatar!==void 0)K.uint32(8).bool($.userHasAvatar);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.userHasAvatar=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xZ.fromPartial($??{})},fromPartial($){let K=zG();return K.userHasAvatar=$.userHasAvatar??void 0,K}};function VG(){return{}}var _N={encode($,K=new H){if($.generation!==void 0)K.uint32(8).uint32($.generation);if($.signature!==void 0)K.uint32(18).bytes($.signature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.generation=Q.uint32();continue}case 2:{if(Z!==18)break;J.signature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _N.fromPartial($??{})},fromPartial($){let K=VG();return K.generation=$.generation??void 0,K.signature=$.signature??void 0,K}};function GG(){return{}}var kZ={encode($,K=new H){if($.senderKeyHash!==void 0)K.uint32(10).bytes($.senderKeyHash);if($.senderTimestamp!==void 0)K.uint32(16).uint64($.senderTimestamp);if($.senderKeyIndexes!==void 0&&$.senderKeyIndexes.length!==0){K.uint32(26).fork();for(let Q of $.senderKeyIndexes)K.uint32(Q);K.join()}if($.senderAccountType!==void 0)K.uint32(32).int32($.senderAccountType);if($.receiverAccountType!==void 0)K.uint32(40).int32($.receiverAccountType);if($.recipientKeyHash!==void 0)K.uint32(66).bytes($.recipientKeyHash);if($.recipientTimestamp!==void 0)K.uint32(72).uint64($.recipientTimestamp);if($.recipientKeyIndexes!==void 0&&$.recipientKeyIndexes.length!==0){K.uint32(82).fork();for(let Q of $.recipientKeyIndexes)K.uint32(Q);K.join()}return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.senderKeyHash=Q.bytes();continue}case 2:{if(Z!==16)break;J.senderTimestamp=Q.uint64Number();continue}case 3:{if(Z===24){if(J.senderKeyIndexes===void 0)J.senderKeyIndexes=[];J.senderKeyIndexes.push(Q.uint32());continue}if(Z===26){if(J.senderKeyIndexes===void 0)J.senderKeyIndexes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.senderKeyIndexes.push(Q.uint32());continue}break}case 4:{if(Z!==32)break;J.senderAccountType=Q.int32();continue}case 5:{if(Z!==40)break;J.receiverAccountType=Q.int32();continue}case 8:{if(Z!==66)break;J.recipientKeyHash=Q.bytes();continue}case 9:{if(Z!==72)break;J.recipientTimestamp=Q.uint64Number();continue}case 10:{if(Z===80){if(J.recipientKeyIndexes===void 0)J.recipientKeyIndexes=[];J.recipientKeyIndexes.push(Q.uint32());continue}if(Z===82){if(J.recipientKeyIndexes===void 0)J.recipientKeyIndexes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.recipientKeyIndexes.push(Q.uint32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kZ.fromPartial($??{})},fromPartial($){let K=GG();return K.senderKeyHash=$.senderKeyHash??void 0,K.senderTimestamp=$.senderTimestamp??void 0,K.senderKeyIndexes=$.senderKeyIndexes?.map((Q)=>Q)||void 0,K.senderAccountType=$.senderAccountType??void 0,K.receiverAccountType=$.receiverAccountType??void 0,K.recipientKeyHash=$.recipientKeyHash??void 0,K.recipientTimestamp=$.recipientTimestamp??void 0,K.recipientKeyIndexes=$.recipientKeyIndexes?.map((Q)=>Q)||void 0,K}};function UG(){return{}}var NZ={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.epochAuthPublicKey!==void 0)K.uint32(18).bytes($.epochAuthPublicKey);if($.epochAuthPublicKeySig!==void 0)K.uint32(26).bytes($.epochAuthPublicKeySig);if($.epochStoragePublicKey!==void 0)K.uint32(34).bytes($.epochStoragePublicKey);if($.epochStoragePublicKeySig!==void 0)K.uint32(42).bytes($.epochStoragePublicKeySig);if($.supportedEncryptionVersions!==void 0&&$.supportedEncryptionVersions.length!==0)for(let Q of $.supportedEncryptionVersions)K.uint32(48).int32(Q);if($.encryptionVersionSignature!==void 0)K.uint32(58).bytes($.encryptionVersionSignature);if($.clientVersion!==void 0)K.uint32(64).int32($.clientVersion);if($.ocmfClientState!==void 0)K.uint32(74).bytes($.ocmfClientState);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.epochAuthPublicKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.epochAuthPublicKeySig=Q.bytes();continue}case 4:{if(Z!==34)break;J.epochStoragePublicKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.epochStoragePublicKeySig=Q.bytes();continue}case 6:{if(Z===48){if(J.supportedEncryptionVersions===void 0)J.supportedEncryptionVersions=[];J.supportedEncryptionVersions.push(Q.int32());continue}if(Z===50){if(J.supportedEncryptionVersions===void 0)J.supportedEncryptionVersions=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.supportedEncryptionVersions.push(Q.int32());continue}break}case 7:{if(Z!==58)break;J.encryptionVersionSignature=Q.bytes();continue}case 8:{if(Z!==64)break;J.clientVersion=Q.int32();continue}case 9:{if(Z!==74)break;J.ocmfClientState=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NZ.fromPartial($??{})},fromPartial($){let K=UG();return K.publicKey=$.publicKey??void 0,K.epochAuthPublicKey=$.epochAuthPublicKey??void 0,K.epochAuthPublicKeySig=$.epochAuthPublicKeySig??void 0,K.epochStoragePublicKey=$.epochStoragePublicKey??void 0,K.epochStoragePublicKeySig=$.epochStoragePublicKeySig??void 0,K.supportedEncryptionVersions=$.supportedEncryptionVersions?.map((Q)=>Q)||void 0,K.encryptionVersionSignature=$.encryptionVersionSignature??void 0,K.clientVersion=$.clientVersion??void 0,K.ocmfClientState=$.ocmfClientState??void 0,K}};function CG(){return{}}var cY={encode($,K=new H){if($.os!==void 0)K.uint32(10).string($.os);if($.version!==void 0)RZ.encode($.version,K.uint32(18).fork()).join();if($.platformType!==void 0)K.uint32(24).int32($.platformType);if($.requireFullSync!==void 0)K.uint32(32).bool($.requireFullSync);if($.historySyncConfig!==void 0)X$.encode($.historySyncConfig,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.os=Q.string();continue}case 2:{if(Z!==18)break;J.version=RZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.platformType=Q.int32();continue}case 4:{if(Z!==32)break;J.requireFullSync=Q.bool();continue}case 5:{if(Z!==42)break;J.historySyncConfig=X$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cY.fromPartial($??{})},fromPartial($){let K=CG();return K.os=$.os??void 0,K.version=$.version!==void 0&&$.version!==null?RZ.fromPartial($.version):void 0,K.platformType=$.platformType??void 0,K.requireFullSync=$.requireFullSync??void 0,K.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?X$.fromPartial($.historySyncConfig):void 0,K}};function DG(){return{}}var RZ={encode($,K=new H){if($.primary!==void 0)K.uint32(8).uint32($.primary);if($.secondary!==void 0)K.uint32(16).uint32($.secondary);if($.tertiary!==void 0)K.uint32(24).uint32($.tertiary);if($.quaternary!==void 0)K.uint32(32).uint32($.quaternary);if($.quinary!==void 0)K.uint32(40).uint32($.quinary);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.primary=Q.uint32();continue}case 2:{if(Z!==16)break;J.secondary=Q.uint32();continue}case 3:{if(Z!==24)break;J.tertiary=Q.uint32();continue}case 4:{if(Z!==32)break;J.quaternary=Q.uint32();continue}case 5:{if(Z!==40)break;J.quinary=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RZ.fromPartial($??{})},fromPartial($){let K=DG();return K.primary=$.primary??void 0,K.secondary=$.secondary??void 0,K.tertiary=$.tertiary??void 0,K.quaternary=$.quaternary??void 0,K.quinary=$.quinary??void 0,K}};function LG(){return{}}var X$={encode($,K=new H){if($.fullSyncDaysLimit!==void 0)K.uint32(8).uint32($.fullSyncDaysLimit);if($.fullSyncSizeMbLimit!==void 0)K.uint32(16).uint32($.fullSyncSizeMbLimit);if($.storageQuotaMb!==void 0)K.uint32(24).uint32($.storageQuotaMb);if($.inlineInitialPayloadInE2EeMsg!==void 0)K.uint32(32).bool($.inlineInitialPayloadInE2EeMsg);if($.recentSyncDaysLimit!==void 0)K.uint32(40).uint32($.recentSyncDaysLimit);if($.supportCallLogHistory!==void 0)K.uint32(48).bool($.supportCallLogHistory);if($.supportBotUserAgentChatHistory!==void 0)K.uint32(56).bool($.supportBotUserAgentChatHistory);if($.supportCagReactionsAndPolls!==void 0)K.uint32(64).bool($.supportCagReactionsAndPolls);if($.supportBizHostedMsg!==void 0)K.uint32(72).bool($.supportBizHostedMsg);if($.supportRecentSyncChunkMessageCountTuning!==void 0)K.uint32(80).bool($.supportRecentSyncChunkMessageCountTuning);if($.supportHostedGroupMsg!==void 0)K.uint32(88).bool($.supportHostedGroupMsg);if($.supportFbidBotChatHistory!==void 0)K.uint32(96).bool($.supportFbidBotChatHistory);if($.supportAddOnHistorySyncMigration!==void 0)K.uint32(104).bool($.supportAddOnHistorySyncMigration);if($.supportMessageAssociation!==void 0)K.uint32(112).bool($.supportMessageAssociation);if($.supportGroupHistory!==void 0)K.uint32(120).bool($.supportGroupHistory);if($.onDemandReady!==void 0)K.uint32(128).bool($.onDemandReady);if($.supportGuestChat!==void 0)K.uint32(136).bool($.supportGuestChat);if($.completeOnDemandReady!==void 0)K.uint32(144).bool($.completeOnDemandReady);if($.thumbnailSyncDaysLimit!==void 0)K.uint32(152).uint32($.thumbnailSyncDaysLimit);if($.initialSyncMaxMessagesPerChat!==void 0)K.uint32(160).uint32($.initialSyncMaxMessagesPerChat);if($.supportManusHistory!==void 0)K.uint32(168).bool($.supportManusHistory);if($.supportHatchHistory!==void 0)K.uint32(176).bool($.supportHatchHistory);if($.supportedBotChannelFbids!==void 0&&$.supportedBotChannelFbids.length!==0)for(let Q of $.supportedBotChannelFbids)K.uint32(186).string(Q);if($.supportInlineContacts!==void 0)K.uint32(192).bool($.supportInlineContacts);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.fullSyncDaysLimit=Q.uint32();continue}case 2:{if(Z!==16)break;J.fullSyncSizeMbLimit=Q.uint32();continue}case 3:{if(Z!==24)break;J.storageQuotaMb=Q.uint32();continue}case 4:{if(Z!==32)break;J.inlineInitialPayloadInE2EeMsg=Q.bool();continue}case 5:{if(Z!==40)break;J.recentSyncDaysLimit=Q.uint32();continue}case 6:{if(Z!==48)break;J.supportCallLogHistory=Q.bool();continue}case 7:{if(Z!==56)break;J.supportBotUserAgentChatHistory=Q.bool();continue}case 8:{if(Z!==64)break;J.supportCagReactionsAndPolls=Q.bool();continue}case 9:{if(Z!==72)break;J.supportBizHostedMsg=Q.bool();continue}case 10:{if(Z!==80)break;J.supportRecentSyncChunkMessageCountTuning=Q.bool();continue}case 11:{if(Z!==88)break;J.supportHostedGroupMsg=Q.bool();continue}case 12:{if(Z!==96)break;J.supportFbidBotChatHistory=Q.bool();continue}case 13:{if(Z!==104)break;J.supportAddOnHistorySyncMigration=Q.bool();continue}case 14:{if(Z!==112)break;J.supportMessageAssociation=Q.bool();continue}case 15:{if(Z!==120)break;J.supportGroupHistory=Q.bool();continue}case 16:{if(Z!==128)break;J.onDemandReady=Q.bool();continue}case 17:{if(Z!==136)break;J.supportGuestChat=Q.bool();continue}case 18:{if(Z!==144)break;J.completeOnDemandReady=Q.bool();continue}case 19:{if(Z!==152)break;J.thumbnailSyncDaysLimit=Q.uint32();continue}case 20:{if(Z!==160)break;J.initialSyncMaxMessagesPerChat=Q.uint32();continue}case 21:{if(Z!==168)break;J.supportManusHistory=Q.bool();continue}case 22:{if(Z!==176)break;J.supportHatchHistory=Q.bool();continue}case 23:{if(Z!==186)break;if(J.supportedBotChannelFbids===void 0)J.supportedBotChannelFbids=[];let Y=Q.string();if(Y!==void 0)J.supportedBotChannelFbids.push(Y);continue}case 24:{if(Z!==192)break;J.supportInlineContacts=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return X$.fromPartial($??{})},fromPartial($){let K=LG();return K.fullSyncDaysLimit=$.fullSyncDaysLimit??void 0,K.fullSyncSizeMbLimit=$.fullSyncSizeMbLimit??void 0,K.storageQuotaMb=$.storageQuotaMb??void 0,K.inlineInitialPayloadInE2EeMsg=$.inlineInitialPayloadInE2EeMsg??void 0,K.recentSyncDaysLimit=$.recentSyncDaysLimit??void 0,K.supportCallLogHistory=$.supportCallLogHistory??void 0,K.supportBotUserAgentChatHistory=$.supportBotUserAgentChatHistory??void 0,K.supportCagReactionsAndPolls=$.supportCagReactionsAndPolls??void 0,K.supportBizHostedMsg=$.supportBizHostedMsg??void 0,K.supportRecentSyncChunkMessageCountTuning=$.supportRecentSyncChunkMessageCountTuning??void 0,K.supportHostedGroupMsg=$.supportHostedGroupMsg??void 0,K.supportFbidBotChatHistory=$.supportFbidBotChatHistory??void 0,K.supportAddOnHistorySyncMigration=$.supportAddOnHistorySyncMigration??void 0,K.supportMessageAssociation=$.supportMessageAssociation??void 0,K.supportGroupHistory=$.supportGroupHistory??void 0,K.onDemandReady=$.onDemandReady??void 0,K.supportGuestChat=$.supportGuestChat??void 0,K.completeOnDemandReady=$.completeOnDemandReady??void 0,K.thumbnailSyncDaysLimit=$.thumbnailSyncDaysLimit??void 0,K.initialSyncMaxMessagesPerChat=$.initialSyncMaxMessagesPerChat??void 0,K.supportManusHistory=$.supportManusHistory??void 0,K.supportHatchHistory=$.supportHatchHistory??void 0,K.supportedBotChannelFbids=$.supportedBotChannelFbids?.map((Q)=>Q)||void 0,K.supportInlineContacts=$.supportInlineContacts??void 0,K}};function PG(){return{}}var D0={encode($,K=new H){if($.initiator!==void 0)K.uint32(8).int32($.initiator);if($.trigger!==void 0)K.uint32(16).int32($.trigger);if($.initiatorDeviceJid!==void 0)K.uint32(26).string($.initiatorDeviceJid);if($.initiatedByMe!==void 0)K.uint32(32).bool($.initiatedByMe);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.initiator=Q.int32();continue}case 2:{if(Z!==16)break;J.trigger=Q.int32();continue}case 3:{if(Z!==26)break;J.initiatorDeviceJid=Q.string();continue}case 4:{if(Z!==32)break;J.initiatedByMe=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return D0.fromPartial($??{})},fromPartial($){let K=PG();return K.initiator=$.initiator??void 0,K.trigger=$.trigger??void 0,K.initiatorDeviceJid=$.initiatorDeviceJid??void 0,K.initiatedByMe=$.initiatedByMe??void 0,K}};function FG(){return{}}var BZ={encode($,K=new H){if($.embeddedMessage!==void 0)OZ.encode($.embeddedMessage,K.uint32(10).fork()).join();if($.embeddedMusic!==void 0)L0.encode($.embeddedMusic,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.embeddedMessage=OZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.embeddedMusic=L0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BZ.fromPartial($??{})},fromPartial($){let K=FG();return K.embeddedMessage=$.embeddedMessage!==void 0&&$.embeddedMessage!==null?OZ.fromPartial($.embeddedMessage):void 0,K.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?L0.fromPartial($.embeddedMusic):void 0,K}};function xG(){return{}}var OZ={encode($,K=new H){if($.stanzaId!==void 0)K.uint32(10).string($.stanzaId);if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stanzaId=Q.string();continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OZ.fromPartial($??{})},fromPartial($){let K=xG();return K.stanzaId=$.stanzaId??void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K}};function kG(){return{}}var L0={encode($,K=new H){if($.musicContentMediaId!==void 0)K.uint32(10).string($.musicContentMediaId);if($.songId!==void 0)K.uint32(18).string($.songId);if($.author!==void 0)K.uint32(26).string($.author);if($.title!==void 0)K.uint32(34).string($.title);if($.artworkDirectPath!==void 0)K.uint32(42).string($.artworkDirectPath);if($.artworkSha256!==void 0)K.uint32(50).bytes($.artworkSha256);if($.artworkEncSha256!==void 0)K.uint32(58).bytes($.artworkEncSha256);if($.artistAttribution!==void 0)K.uint32(66).string($.artistAttribution);if($.countryBlocklist!==void 0)K.uint32(74).bytes($.countryBlocklist);if($.isExplicit!==void 0)K.uint32(80).bool($.isExplicit);if($.artworkMediaKey!==void 0)K.uint32(90).bytes($.artworkMediaKey);if($.musicSongStartTimeInMs!==void 0)K.uint32(96).int64($.musicSongStartTimeInMs);if($.derivedContentStartTimeInMs!==void 0)K.uint32(104).int64($.derivedContentStartTimeInMs);if($.overlapDurationInMs!==void 0)K.uint32(112).int64($.overlapDurationInMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.musicContentMediaId=Q.string();continue}case 2:{if(Z!==18)break;J.songId=Q.string();continue}case 3:{if(Z!==26)break;J.author=Q.string();continue}case 4:{if(Z!==34)break;J.title=Q.string();continue}case 5:{if(Z!==42)break;J.artworkDirectPath=Q.string();continue}case 6:{if(Z!==50)break;J.artworkSha256=Q.bytes();continue}case 7:{if(Z!==58)break;J.artworkEncSha256=Q.bytes();continue}case 8:{if(Z!==66)break;J.artistAttribution=Q.string();continue}case 9:{if(Z!==74)break;J.countryBlocklist=Q.bytes();continue}case 10:{if(Z!==80)break;J.isExplicit=Q.bool();continue}case 11:{if(Z!==90)break;J.artworkMediaKey=Q.bytes();continue}case 12:{if(Z!==96)break;J.musicSongStartTimeInMs=Q.int64Number();continue}case 13:{if(Z!==104)break;J.derivedContentStartTimeInMs=Q.int64Number();continue}case 14:{if(Z!==112)break;J.overlapDurationInMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return L0.fromPartial($??{})},fromPartial($){let K=kG();return K.musicContentMediaId=$.musicContentMediaId??void 0,K.songId=$.songId??void 0,K.author=$.author??void 0,K.title=$.title??void 0,K.artworkDirectPath=$.artworkDirectPath??void 0,K.artworkSha256=$.artworkSha256??void 0,K.artworkEncSha256=$.artworkEncSha256??void 0,K.artistAttribution=$.artistAttribution??void 0,K.countryBlocklist=$.countryBlocklist??void 0,K.isExplicit=$.isExplicit??void 0,K.artworkMediaKey=$.artworkMediaKey??void 0,K.musicSongStartTimeInMs=$.musicSongStartTimeInMs??void 0,K.derivedContentStartTimeInMs=$.derivedContentStartTimeInMs??void 0,K.overlapDurationInMs=$.overlapDurationInMs??void 0,K}};function NG(){return{}}var AZ={encode($,K=new H){if($.epochRootKey!==void 0)K.uint32(10).bytes($.epochRootKey);if($.mailboxRootKey!==void 0)K.uint32(18).bytes($.mailboxRootKey);if($.orfClientState!==void 0)K.uint32(26).bytes($.orfClientState);if($.epochAnonId!==void 0)K.uint32(34).bytes($.epochAnonId);if($.epochId!==void 0)K.uint32(40).uint64($.epochId);if($.threadId!==void 0)K.uint32(50).string($.threadId);if($.waCanonicalUserFbid!==void 0)K.uint32(56).uint64($.waCanonicalUserFbid);if($.timestampMs!==void 0)K.uint32(64).uint64($.timestampMs);if($.backupId!==void 0)K.uint32(72).uint64($.backupId);if($.plaintextPayload!==void 0)K.uint32(82).bytes($.plaintextPayload);if($.stanzaId!==void 0)K.uint32(90).string($.stanzaId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.epochRootKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.mailboxRootKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.orfClientState=Q.bytes();continue}case 4:{if(Z!==34)break;J.epochAnonId=Q.bytes();continue}case 5:{if(Z!==40)break;J.epochId=Q.uint64Number();continue}case 6:{if(Z!==50)break;J.threadId=Q.string();continue}case 7:{if(Z!==56)break;J.waCanonicalUserFbid=Q.uint64Number();continue}case 8:{if(Z!==64)break;J.timestampMs=Q.uint64Number();continue}case 9:{if(Z!==72)break;J.backupId=Q.uint64Number();continue}case 10:{if(Z!==82)break;J.plaintextPayload=Q.bytes();continue}case 11:{if(Z!==90)break;J.stanzaId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AZ.fromPartial($??{})},fromPartial($){let K=NG();return K.epochRootKey=$.epochRootKey??void 0,K.mailboxRootKey=$.mailboxRootKey??void 0,K.orfClientState=$.orfClientState??void 0,K.epochAnonId=$.epochAnonId??void 0,K.epochId=$.epochId??void 0,K.threadId=$.threadId??void 0,K.waCanonicalUserFbid=$.waCanonicalUserFbid??void 0,K.timestampMs=$.timestampMs??void 0,K.backupId=$.backupId??void 0,K.plaintextPayload=$.plaintextPayload??void 0,K.stanzaId=$.stanzaId??void 0,K}};function RG(){return{}}var hN={encode($,K=new H){if($.encryptedProtobuf!==void 0)K.uint32(10).bytes($.encryptedProtobuf);if($.orfThreadId!==void 0)K.uint32(18).bytes($.orfThreadId);if($.valueSecretRef!==void 0)K.uint32(26).string($.valueSecretRef);if($.offlineThreadingId!==void 0)K.uint32(32).uint64($.offlineThreadingId);if($.timestampMs!==void 0)K.uint32(40).uint64($.timestampMs);if($.messageKey!==void 0)K.uint32(50).bytes($.messageKey);if($.error!==void 0)K.uint32(58).string($.error);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encryptedProtobuf=Q.bytes();continue}case 2:{if(Z!==18)break;J.orfThreadId=Q.bytes();continue}case 3:{if(Z!==26)break;J.valueSecretRef=Q.string();continue}case 4:{if(Z!==32)break;J.offlineThreadingId=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.timestampMs=Q.uint64Number();continue}case 6:{if(Z!==50)break;J.messageKey=Q.bytes();continue}case 7:{if(Z!==58)break;J.error=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hN.fromPartial($??{})},fromPartial($){let K=RG();return K.encryptedProtobuf=$.encryptedProtobuf??void 0,K.orfThreadId=$.orfThreadId??void 0,K.valueSecretRef=$.valueSecretRef??void 0,K.offlineThreadingId=$.offlineThreadingId??void 0,K.timestampMs=$.timestampMs??void 0,K.messageKey=$.messageKey??void 0,K.error=$.error??void 0,K}};function BG(){return{}}var lN={encode($,K=new H){if($.encryptedPayload!==void 0)K.uint32(10).bytes($.encryptedPayload);if($.iv!==void 0)K.uint32(18).bytes($.iv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encryptedPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.iv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lN.fromPartial($??{})},fromPartial($){let K=BG();return K.encryptedPayload=$.encryptedPayload??void 0,K.iv=$.iv??void 0,K}};function OG(){return{}}var EZ={encode($,K=new H){if($.encryptedDevicePrivateKey!==void 0)K.uint32(10).bytes($.encryptedDevicePrivateKey);if($.encryptedObliviousValidationTokenBlob!==void 0)K.uint32(18).bytes($.encryptedObliviousValidationTokenBlob);if($.encryptedEpochStoragePrivateKey!==void 0)K.uint32(26).bytes($.encryptedEpochStoragePrivateKey);if($.encryptedOcmfClientState!==void 0)K.uint32(34).bytes($.encryptedOcmfClientState);if($.encryptedOrfClientStateV2!==void 0)K.uint32(42).bytes($.encryptedOrfClientStateV2);if($.encryptedMailboxRootKeyBlob!==void 0)K.uint32(50).bytes($.encryptedMailboxRootKeyBlob);if($.encryptedEpochAnonId!==void 0)K.uint32(58).bytes($.encryptedEpochAnonId);if($.encryptedEpochRootKey!==void 0)K.uint32(66).bytes($.encryptedEpochRootKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encryptedDevicePrivateKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.encryptedObliviousValidationTokenBlob=Q.bytes();continue}case 3:{if(Z!==26)break;J.encryptedEpochStoragePrivateKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.encryptedOcmfClientState=Q.bytes();continue}case 5:{if(Z!==42)break;J.encryptedOrfClientStateV2=Q.bytes();continue}case 6:{if(Z!==50)break;J.encryptedMailboxRootKeyBlob=Q.bytes();continue}case 7:{if(Z!==58)break;J.encryptedEpochAnonId=Q.bytes();continue}case 8:{if(Z!==66)break;J.encryptedEpochRootKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EZ.fromPartial($??{})},fromPartial($){let K=OG();return K.encryptedDevicePrivateKey=$.encryptedDevicePrivateKey??void 0,K.encryptedObliviousValidationTokenBlob=$.encryptedObliviousValidationTokenBlob??void 0,K.encryptedEpochStoragePrivateKey=$.encryptedEpochStoragePrivateKey??void 0,K.encryptedOcmfClientState=$.encryptedOcmfClientState??void 0,K.encryptedOrfClientStateV2=$.encryptedOrfClientStateV2??void 0,K.encryptedMailboxRootKeyBlob=$.encryptedMailboxRootKeyBlob??void 0,K.encryptedEpochAnonId=$.encryptedEpochAnonId??void 0,K.encryptedEpochRootKey=$.encryptedEpochRootKey??void 0,K}};function AG(){return{}}var pN={encode($,K=new H){if($.duration!==void 0)K.uint32(13).sfixed32($.duration);if($.timestamp!==void 0)K.uint32(17).sfixed64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==13)break;J.duration=Q.sfixed32();continue}case 2:{if(Z!==17)break;J.timestamp=Q.sfixed64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pN.fromPartial($??{})},fromPartial($){let K=AG();return K.duration=$.duration??void 0,K.timestamp=$.timestamp??void 0,K}};function EG(){return{}}var MZ={encode($,K=new H){if($.epochFbid!==void 0)K.uint32(8).uint64($.epochFbid);if($.epochAnonId!==void 0)K.uint32(18).bytes($.epochAnonId);if($.epochData!==void 0)K.uint32(26).bytes($.epochData);if($.wrappedRootKeyForSelf!==void 0)K.uint32(34).bytes($.wrappedRootKeyForSelf);if($.epochSignature!==void 0)K.uint32(42).bytes($.epochSignature);if($.epochRootKeyFingerprint!==void 0)K.uint32(50).bytes($.epochRootKeyFingerprint);if($.epochRootKey!==void 0)K.uint32(58).bytes($.epochRootKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.epochFbid=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.epochAnonId=Q.bytes();continue}case 3:{if(Z!==26)break;J.epochData=Q.bytes();continue}case 4:{if(Z!==34)break;J.wrappedRootKeyForSelf=Q.bytes();continue}case 5:{if(Z!==42)break;J.epochSignature=Q.bytes();continue}case 6:{if(Z!==50)break;J.epochRootKeyFingerprint=Q.bytes();continue}case 7:{if(Z!==58)break;J.epochRootKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MZ.fromPartial($??{})},fromPartial($){let K=EG();return K.epochFbid=$.epochFbid??void 0,K.epochAnonId=$.epochAnonId??void 0,K.epochData=$.epochData??void 0,K.wrappedRootKeyForSelf=$.wrappedRootKeyForSelf??void 0,K.epochSignature=$.epochSignature??void 0,K.epochRootKeyFingerprint=$.epochRootKeyFingerprint??void 0,K.epochRootKey=$.epochRootKey??void 0,K}};function MG(){return{}}var WZ={encode($,K=new H){if($.isStale!==void 0)K.uint32(8).bool($.isStale);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isStale=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WZ.fromPartial($??{})},fromPartial($){let K=MG();return K.isStale=$.isStale??void 0,K}};function WG(){return{}}var IZ={encode($,K=new H){if($.eventResponseMessageKey!==void 0)x.encode($.eventResponseMessageKey,K.uint32(10).fork()).join();if($.timestampMs!==void 0)K.uint32(16).int64($.timestampMs);if($.eventResponseMessage!==void 0)W0.encode($.eventResponseMessage,K.uint32(26).fork()).join();if($.unread!==void 0)K.uint32(32).bool($.unread);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.eventResponseMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.timestampMs=Q.int64Number();continue}case 3:{if(Z!==26)break;J.eventResponseMessage=W0.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.unread=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IZ.fromPartial($??{})},fromPartial($){let K=WG();return K.eventResponseMessageKey=$.eventResponseMessageKey!==void 0&&$.eventResponseMessageKey!==null?x.fromPartial($.eventResponseMessageKey):void 0,K.timestampMs=$.timestampMs??void 0,K.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?W0.fromPartial($.eventResponseMessage):void 0,K.unread=$.unread??void 0,K}};function IG(){return{}}var M$={encode($,K=new H){if($.code!==void 0)K.uint32(8).uint64($.code);if($.text!==void 0)K.uint32(18).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.code=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return M$.fromPartial($??{})},fromPartial($){let K=IG();return K.code=$.code??void 0,K.text=$.text??void 0,K}};function SG(){return{}}var W$={encode($,K=new H){if($.mediaKey!==void 0)K.uint32(10).bytes($.mediaKey);if($.directPath!==void 0)K.uint32(18).string($.directPath);if($.handle!==void 0)K.uint32(26).string($.handle);if($.fileSizeBytes!==void 0)K.uint32(32).uint64($.fileSizeBytes);if($.fileSha256!==void 0)K.uint32(42).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(50).bytes($.fileEncSha256);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.mediaKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.directPath=Q.string();continue}case 3:{if(Z!==26)break;J.handle=Q.string();continue}case 4:{if(Z!==32)break;J.fileSizeBytes=Q.uint64Number();continue}case 5:{if(Z!==42)break;J.fileSha256=Q.bytes();continue}case 6:{if(Z!==50)break;J.fileEncSha256=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W$.fromPartial($??{})},fromPartial($){let K=SG();return K.mediaKey=$.mediaKey??void 0,K.directPath=$.directPath??void 0,K.handle=$.handle??void 0,K.fileSizeBytes=$.fileSizeBytes??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K}};function vG(){return{}}var M0={encode($,K=new H){if($.minVersion!==void 0)K.uint32(8).uint32($.minVersion);if($.maxVersion!==void 0)K.uint32(16).uint32($.maxVersion);if($.notReportableMinVersion!==void 0)K.uint32(24).uint32($.notReportableMinVersion);if($.isMessage!==void 0)K.uint32(32).bool($.isMessage);return globalThis.Object.entries($.subfield||{}).forEach(([Q,X])=>{_Y.encode({key:Q,value:X},K.uint32(42).fork()).join()}),K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.minVersion=Q.uint32();continue}case 2:{if(Z!==16)break;J.maxVersion=Q.uint32();continue}case 3:{if(Z!==24)break;J.notReportableMinVersion=Q.uint32();continue}case 4:{if(Z!==32)break;J.isMessage=Q.bool();continue}case 5:{if(Z!==42)break;let Y=_Y.decode(Q,Q.uint32());if(Y.value!==void 0&&Y.key!==void 0){if(J.subfield===void 0)J.subfield={};J.subfield[Y.key]=Y.value}continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return M0.fromPartial($??{})},fromPartial($){let K=vG();return K.minVersion=$.minVersion??void 0,K.maxVersion=$.maxVersion??void 0,K.notReportableMinVersion=$.notReportableMinVersion??void 0,K.isMessage=$.isMessage??void 0,K.subfield=$.subfield===void 0||$.subfield===null?void 0:globalThis.Object.entries($.subfield??{}).reduce((Q,[X,J])=>{if(J!==void 0)Q[globalThis.Number(X)]=M0.fromPartial(J);return Q},{}),K}};function TG(){return{}}var _Y={encode($,K=new H){if($.key!==void 0)K.uint32(8).uint32($.key);if($.value!==void 0)M0.encode($.value,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.key=Q.uint32();continue}case 2:{if(Z!==18)break;J.value=M0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _Y.fromPartial($??{})},fromPartial($){let K=TG();return K.key=$.key??void 0,K.value=$.value!==void 0&&$.value!==null?M0.fromPartial($.value):void 0,K}};function yG(){return{}}var u0={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.pnIdentifier!==void 0)K.uint32(18).bytes($.pnIdentifier);if($.lidIdentifier!==void 0)K.uint32(26).bytes($.lidIdentifier);if($.usernameIdentifier!==void 0)K.uint32(34).bytes($.usernameIdentifier);if($.hostedState!==void 0)K.uint32(40).int32($.hostedState);if($.hashedPublicKey!==void 0)K.uint32(50).bytes($.hashedPublicKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.pnIdentifier=Q.bytes();continue}case 3:{if(Z!==26)break;J.lidIdentifier=Q.bytes();continue}case 4:{if(Z!==34)break;J.usernameIdentifier=Q.bytes();continue}case 5:{if(Z!==40)break;J.hostedState=Q.int32();continue}case 6:{if(Z!==50)break;J.hashedPublicKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return u0.fromPartial($??{})},fromPartial($){let K=yG();return K.publicKey=$.publicKey??void 0,K.pnIdentifier=$.pnIdentifier??void 0,K.lidIdentifier=$.lidIdentifier??void 0,K.usernameIdentifier=$.usernameIdentifier??void 0,K.hostedState=$.hostedState??void 0,K.hashedPublicKey=$.hashedPublicKey??void 0,K}};function fG(){return{}}var SZ={encode($,K=new H){if($.botName!==void 0)K.uint32(10).string($.botName);if($.botJid!==void 0)K.uint32(18).string($.botJid);if($.creatorName!==void 0)K.uint32(26).string($.creatorName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.botName=Q.string();continue}case 2:{if(Z!==18)break;J.botJid=Q.string();continue}case 3:{if(Z!==26)break;J.creatorName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SZ.fromPartial($??{})},fromPartial($){let K=fG();return K.botName=$.botName??void 0,K.botJid=$.botJid??void 0,K.creatorName=$.creatorName??void 0,K}};function _G(){return{}}var vZ={encode($,K=new H){if($.lightThemeWallpaper!==void 0)U0.encode($.lightThemeWallpaper,K.uint32(10).fork()).join();if($.mediaVisibility!==void 0)K.uint32(16).int32($.mediaVisibility);if($.darkThemeWallpaper!==void 0)U0.encode($.darkThemeWallpaper,K.uint32(26).fork()).join();if($.autoDownloadWiFi!==void 0)Y0.encode($.autoDownloadWiFi,K.uint32(34).fork()).join();if($.autoDownloadCellular!==void 0)Y0.encode($.autoDownloadCellular,K.uint32(42).fork()).join();if($.autoDownloadRoaming!==void 0)Y0.encode($.autoDownloadRoaming,K.uint32(50).fork()).join();if($.showIndividualNotificationsPreview!==void 0)K.uint32(56).bool($.showIndividualNotificationsPreview);if($.showGroupNotificationsPreview!==void 0)K.uint32(64).bool($.showGroupNotificationsPreview);if($.disappearingModeDuration!==void 0)K.uint32(72).int32($.disappearingModeDuration);if($.disappearingModeTimestamp!==void 0)K.uint32(80).int64($.disappearingModeTimestamp);if($.avatarUserSettings!==void 0)FK.encode($.avatarUserSettings,K.uint32(90).fork()).join();if($.fontSize!==void 0)K.uint32(96).int32($.fontSize);if($.securityNotifications!==void 0)K.uint32(104).bool($.securityNotifications);if($.autoUnarchiveChats!==void 0)K.uint32(112).bool($.autoUnarchiveChats);if($.videoQualityMode!==void 0)K.uint32(120).int32($.videoQualityMode);if($.photoQualityMode!==void 0)K.uint32(128).int32($.photoQualityMode);if($.individualNotificationSettings!==void 0)o0.encode($.individualNotificationSettings,K.uint32(138).fork()).join();if($.groupNotificationSettings!==void 0)o0.encode($.groupNotificationSettings,K.uint32(146).fork()).join();if($.chatLockSettings!==void 0)a0.encode($.chatLockSettings,K.uint32(154).fork()).join();if($.chatDbLidMigrationTimestamp!==void 0)K.uint32(160).int64($.chatDbLidMigrationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_G();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.lightThemeWallpaper=U0.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.mediaVisibility=Q.int32();continue}case 3:{if(Z!==26)break;J.darkThemeWallpaper=U0.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.autoDownloadWiFi=Y0.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.autoDownloadCellular=Y0.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.autoDownloadRoaming=Y0.decode(Q,Q.uint32());continue}case 7:{if(Z!==56)break;J.showIndividualNotificationsPreview=Q.bool();continue}case 8:{if(Z!==64)break;J.showGroupNotificationsPreview=Q.bool();continue}case 9:{if(Z!==72)break;J.disappearingModeDuration=Q.int32();continue}case 10:{if(Z!==80)break;J.disappearingModeTimestamp=Q.int64Number();continue}case 11:{if(Z!==90)break;J.avatarUserSettings=FK.decode(Q,Q.uint32());continue}case 12:{if(Z!==96)break;J.fontSize=Q.int32();continue}case 13:{if(Z!==104)break;J.securityNotifications=Q.bool();continue}case 14:{if(Z!==112)break;J.autoUnarchiveChats=Q.bool();continue}case 15:{if(Z!==120)break;J.videoQualityMode=Q.int32();continue}case 16:{if(Z!==128)break;J.photoQualityMode=Q.int32();continue}case 17:{if(Z!==138)break;J.individualNotificationSettings=o0.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.groupNotificationSettings=o0.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.chatLockSettings=a0.decode(Q,Q.uint32());continue}case 20:{if(Z!==160)break;J.chatDbLidMigrationTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vZ.fromPartial($??{})},fromPartial($){let K=_G();return K.lightThemeWallpaper=$.lightThemeWallpaper!==void 0&&$.lightThemeWallpaper!==null?U0.fromPartial($.lightThemeWallpaper):void 0,K.mediaVisibility=$.mediaVisibility??void 0,K.darkThemeWallpaper=$.darkThemeWallpaper!==void 0&&$.darkThemeWallpaper!==null?U0.fromPartial($.darkThemeWallpaper):void 0,K.autoDownloadWiFi=$.autoDownloadWiFi!==void 0&&$.autoDownloadWiFi!==null?Y0.fromPartial($.autoDownloadWiFi):void 0,K.autoDownloadCellular=$.autoDownloadCellular!==void 0&&$.autoDownloadCellular!==null?Y0.fromPartial($.autoDownloadCellular):void 0,K.autoDownloadRoaming=$.autoDownloadRoaming!==void 0&&$.autoDownloadRoaming!==null?Y0.fromPartial($.autoDownloadRoaming):void 0,K.showIndividualNotificationsPreview=$.showIndividualNotificationsPreview??void 0,K.showGroupNotificationsPreview=$.showGroupNotificationsPreview??void 0,K.disappearingModeDuration=$.disappearingModeDuration??void 0,K.disappearingModeTimestamp=$.disappearingModeTimestamp??void 0,K.avatarUserSettings=$.avatarUserSettings!==void 0&&$.avatarUserSettings!==null?FK.fromPartial($.avatarUserSettings):void 0,K.fontSize=$.fontSize??void 0,K.securityNotifications=$.securityNotifications??void 0,K.autoUnarchiveChats=$.autoUnarchiveChats??void 0,K.videoQualityMode=$.videoQualityMode??void 0,K.photoQualityMode=$.photoQualityMode??void 0,K.individualNotificationSettings=$.individualNotificationSettings!==void 0&&$.individualNotificationSettings!==null?o0.fromPartial($.individualNotificationSettings):void 0,K.groupNotificationSettings=$.groupNotificationSettings!==void 0&&$.groupNotificationSettings!==null?o0.fromPartial($.groupNotificationSettings):void 0,K.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?a0.fromPartial($.chatLockSettings):void 0,K.chatDbLidMigrationTimestamp=$.chatDbLidMigrationTimestamp??void 0,K}};function hG(){return{}}var uN={encode($,K=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)b.encode(Q,K.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let Q of $.uncountedAssociatedMessageLists)kY.encode(Q,K.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let Q of $.commentMessages)b.encode(Q,K.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let Q of $.outOfWindowPinnedMessages)b.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.messages===void 0)J.messages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 2:{if(Z!==18)break;if(J.uncountedAssociatedMessageLists===void 0)J.uncountedAssociatedMessageLists=[];let Y=kY.decode(Q,Q.uint32());if(Y!==void 0)J.uncountedAssociatedMessageLists.push(Y);continue}case 3:{if(Z!==26)break;if(J.commentMessages===void 0)J.commentMessages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.commentMessages.push(Y);continue}case 4:{if(Z!==34)break;if(J.outOfWindowPinnedMessages===void 0)J.outOfWindowPinnedMessages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.outOfWindowPinnedMessages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uN.fromPartial($??{})},fromPartial($){let K=hG();return K.messages=$.messages?.map((Q)=>b.fromPartial(Q))||void 0,K.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((Q)=>kY.fromPartial(Q))||void 0,K.commentMessages=$.commentMessages?.map((Q)=>b.fromPartial(Q))||void 0,K.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((Q)=>b.fromPartial(Q))||void 0,K}};function lG(){return{}}var TZ={encode($,K=new H){if($.deprecatedMessageHistoryBundle!==void 0)G$.encode($.deprecatedMessageHistoryBundle,K.uint32(10).fork()).join();if($.processState!==void 0)K.uint32(16).int32($.processState);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.deprecatedMessageHistoryBundle=G$.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.processState=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TZ.fromPartial($??{})},fromPartial($){let K=lG();return K.deprecatedMessageHistoryBundle=$.deprecatedMessageHistoryBundle!==void 0&&$.deprecatedMessageHistoryBundle!==null?G$.fromPartial($.deprecatedMessageHistoryBundle):void 0,K.processState=$.processState??void 0,K}};function pG(){return{}}var yZ={encode($,K=new H){if($.bundleMessageKey!==void 0)x.encode($.bundleMessageKey,K.uint32(10).fork()).join();if($.editedAfterReceivedAsHistory!==void 0)K.uint32(16).bool($.editedAfterReceivedAsHistory);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.bundleMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.editedAfterReceivedAsHistory=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yZ.fromPartial($??{})},fromPartial($){let K=pG();return K.bundleMessageKey=$.bundleMessageKey!==void 0&&$.bundleMessageKey!==null?x.fromPartial($.bundleMessageKey):void 0,K.editedAfterReceivedAsHistory=$.editedAfterReceivedAsHistory??void 0,K}};function uG(){return{}}var wN={encode($,K=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)K0.encode(Q,K.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let Q of $.uncountedAssociatedMessageLists)NY.encode(Q,K.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let Q of $.commentMessages)K0.encode(Q,K.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let Q of $.outOfWindowPinnedMessages)K0.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.messages===void 0)J.messages=[];let Y=K0.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 2:{if(Z!==18)break;if(J.uncountedAssociatedMessageLists===void 0)J.uncountedAssociatedMessageLists=[];let Y=NY.decode(Q,Q.uint32());if(Y!==void 0)J.uncountedAssociatedMessageLists.push(Y);continue}case 3:{if(Z!==26)break;if(J.commentMessages===void 0)J.commentMessages=[];let Y=K0.decode(Q,Q.uint32());if(Y!==void 0)J.commentMessages.push(Y);continue}case 4:{if(Z!==34)break;if(J.outOfWindowPinnedMessages===void 0)J.outOfWindowPinnedMessages=[];let Y=K0.decode(Q,Q.uint32());if(Y!==void 0)J.outOfWindowPinnedMessages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wN.fromPartial($??{})},fromPartial($){let K=uG();return K.messages=$.messages?.map((Q)=>K0.fromPartial(Q))||void 0,K.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((Q)=>NY.fromPartial(Q))||void 0,K.commentMessages=$.commentMessages?.map((Q)=>K0.fromPartial(Q))||void 0,K.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((Q)=>K0.fromPartial(Q))||void 0,K}};function wG(){return{}}var fZ={encode($,K=new H){if($.groupJid!==void 0)K.uint32(10).string($.groupJid);if($.groupSubject!==void 0)K.uint32(18).string($.groupSubject);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupJid=Q.string();continue}case 2:{if(Z!==18)break;J.groupSubject=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fZ.fromPartial($??{})},fromPartial($){let K=wG();return K.groupJid=$.groupJid??void 0,K.groupSubject=$.groupSubject??void 0,K}};function nG(){return{}}var _Z={encode($,K=new H){if($.userJid!==void 0)K.uint32(10).string($.userJid);if($.rank!==void 0)K.uint32(16).int32($.rank);if($.memberLabel!==void 0)F0.encode($.memberLabel,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.userJid=Q.string();continue}case 2:{if(Z!==16)break;J.rank=Q.int32();continue}case 3:{if(Z!==26)break;J.memberLabel=F0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _Z.fromPartial($??{})},fromPartial($){let K=nG();return K.userJid=$.userJid??void 0,K.rank=$.rank??void 0,K.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,K}};function dG(){return{}}var hZ={encode($,K=new H){if($.keys!==void 0&&$.keys.length!==0)for(let Q of $.keys)lZ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.keys===void 0)J.keys=[];let Y=lZ.decode(Q,Q.uint32());if(Y!==void 0)J.keys.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hZ.fromPartial($??{})},fromPartial($){let K=dG();return K.keys=$.keys?.map((Q)=>lZ.fromPartial(Q))||void 0,K}};function jG(){return{}}var lZ={encode($,K=new H){if($.groupRootKey!==void 0)K.uint32(10).bytes($.groupRootKey);if($.keyId!==void 0)K.uint32(18).string($.keyId);if($.expiryTimestampMs!==void 0)K.uint32(24).int64($.expiryTimestampMs);if($.createdTimestampMs!==void 0)K.uint32(32).int64($.createdTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupRootKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.keyId=Q.string();continue}case 3:{if(Z!==24)break;J.expiryTimestampMs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.createdTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lZ.fromPartial($??{})},fromPartial($){let K=jG();return K.groupRootKey=$.groupRootKey??void 0,K.keyId=$.keyId??void 0,K.expiryTimestampMs=$.expiryTimestampMs??void 0,K.createdTimestampMs=$.createdTimestampMs??void 0,K}};function cG(){return{}}var oY={encode($,K=new H){if($.clientHello!==void 0)uZ.encode($.clientHello,K.uint32(18).fork()).join();if($.serverHello!==void 0)wZ.encode($.serverHello,K.uint32(26).fork()).join();if($.clientFinish!==void 0)pZ.encode($.clientFinish,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==18)break;J.clientHello=uZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.serverHello=wZ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.clientFinish=pZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oY.fromPartial($??{})},fromPartial($){let K=cG();return K.clientHello=$.clientHello!==void 0&&$.clientHello!==null?uZ.fromPartial($.clientHello):void 0,K.serverHello=$.serverHello!==void 0&&$.serverHello!==null?wZ.fromPartial($.serverHello):void 0,K.clientFinish=$.clientFinish!==void 0&&$.clientFinish!==null?pZ.fromPartial($.clientFinish):void 0,K}};function oG(){return{}}var pZ={encode($,K=new H){if($.static!==void 0)K.uint32(10).bytes($.static);if($.payload!==void 0)K.uint32(18).bytes($.payload);if($.extendedCiphertext!==void 0)K.uint32(26).bytes($.extendedCiphertext);if($.paddedBytes!==void 0)K.uint32(34).bytes($.paddedBytes);if($.simulateXxkemFs!==void 0)K.uint32(40).bool($.simulateXxkemFs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.static=Q.bytes();continue}case 2:{if(Z!==18)break;J.payload=Q.bytes();continue}case 3:{if(Z!==26)break;J.extendedCiphertext=Q.bytes();continue}case 4:{if(Z!==34)break;J.paddedBytes=Q.bytes();continue}case 5:{if(Z!==40)break;J.simulateXxkemFs=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pZ.fromPartial($??{})},fromPartial($){let K=oG();return K.static=$.static??void 0,K.payload=$.payload??void 0,K.extendedCiphertext=$.extendedCiphertext??void 0,K.paddedBytes=$.paddedBytes??void 0,K.simulateXxkemFs=$.simulateXxkemFs??void 0,K}};function bG(){return{}}var uZ={encode($,K=new H){if($.ephemeral!==void 0)K.uint32(10).bytes($.ephemeral);if($.static!==void 0)K.uint32(18).bytes($.static);if($.payload!==void 0)K.uint32(26).bytes($.payload);if($.useExtended!==void 0)K.uint32(32).bool($.useExtended);if($.extendedCiphertext!==void 0)K.uint32(42).bytes($.extendedCiphertext);if($.paddedBytes!==void 0)K.uint32(50).bytes($.paddedBytes);if($.sendServerHelloPaddedBytes!==void 0)K.uint32(56).bool($.sendServerHelloPaddedBytes);if($.simulateXxkemFs!==void 0)K.uint32(64).bool($.simulateXxkemFs);if($.pqMode!==void 0)K.uint32(72).int32($.pqMode);if($.extendedEphemeral!==void 0)K.uint32(82).bytes($.extendedEphemeral);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.ephemeral=Q.bytes();continue}case 2:{if(Z!==18)break;J.static=Q.bytes();continue}case 3:{if(Z!==26)break;J.payload=Q.bytes();continue}case 4:{if(Z!==32)break;J.useExtended=Q.bool();continue}case 5:{if(Z!==42)break;J.extendedCiphertext=Q.bytes();continue}case 6:{if(Z!==50)break;J.paddedBytes=Q.bytes();continue}case 7:{if(Z!==56)break;J.sendServerHelloPaddedBytes=Q.bool();continue}case 8:{if(Z!==64)break;J.simulateXxkemFs=Q.bool();continue}case 9:{if(Z!==72)break;J.pqMode=Q.int32();continue}case 10:{if(Z!==82)break;J.extendedEphemeral=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uZ.fromPartial($??{})},fromPartial($){let K=bG();return K.ephemeral=$.ephemeral??void 0,K.static=$.static??void 0,K.payload=$.payload??void 0,K.useExtended=$.useExtended??void 0,K.extendedCiphertext=$.extendedCiphertext??void 0,K.paddedBytes=$.paddedBytes??void 0,K.sendServerHelloPaddedBytes=$.sendServerHelloPaddedBytes??void 0,K.simulateXxkemFs=$.simulateXxkemFs??void 0,K.pqMode=$.pqMode??void 0,K.extendedEphemeral=$.extendedEphemeral??void 0,K}};function iG(){return{}}var wZ={encode($,K=new H){if($.ephemeral!==void 0)K.uint32(10).bytes($.ephemeral);if($.static!==void 0)K.uint32(18).bytes($.static);if($.payload!==void 0)K.uint32(26).bytes($.payload);if($.extendedStatic!==void 0)K.uint32(34).bytes($.extendedStatic);if($.paddingBytes!==void 0)K.uint32(42).bytes($.paddingBytes);if($.extendedCiphertext!==void 0)K.uint32(50).bytes($.extendedCiphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.ephemeral=Q.bytes();continue}case 2:{if(Z!==18)break;J.static=Q.bytes();continue}case 3:{if(Z!==26)break;J.payload=Q.bytes();continue}case 4:{if(Z!==34)break;J.extendedStatic=Q.bytes();continue}case 5:{if(Z!==42)break;J.paddingBytes=Q.bytes();continue}case 6:{if(Z!==50)break;J.extendedCiphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wZ.fromPartial($??{})},fromPartial($){let K=iG();return K.ephemeral=$.ephemeral??void 0,K.static=$.static??void 0,K.payload=$.payload??void 0,K.extendedStatic=$.extendedStatic??void 0,K.paddingBytes=$.paddingBytes??void 0,K.extendedCiphertext=$.extendedCiphertext??void 0,K}};function mG(){return{}}var nZ={encode($,K=new H){if($.data!==void 0)K.uint32(10).bytes($.data);if($.timestampMs!==void 0)K.uint32(16).int64($.timestampMs);if($.requestId!==void 0)K.uint32(26).string($.requestId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.data=Q.bytes();continue}case 2:{if(Z!==16)break;J.timestampMs=Q.int64Number();continue}case 3:{if(Z!==26)break;J.requestId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nZ.fromPartial($??{})},fromPartial($){let K=mG();return K.data=$.data??void 0,K.timestampMs=$.timestampMs??void 0,K.requestId=$.requestId??void 0,K}};function gG(){return{}}var bY={encode($,K=new H){if($.syncType!==void 0)K.uint32(8).int32($.syncType);if($.conversations!==void 0&&$.conversations.length!==0)for(let Q of $.conversations)GZ.encode(Q,K.uint32(18).fork()).join();if($.statusV3Messages!==void 0&&$.statusV3Messages.length!==0)for(let Q of $.statusV3Messages)b.encode(Q,K.uint32(26).fork()).join();if($.chunkOrder!==void 0)K.uint32(40).uint32($.chunkOrder);if($.progress!==void 0)K.uint32(48).uint32($.progress);if($.pushnames!==void 0&&$.pushnames.length!==0)for(let Q of $.pushnames)Xq.encode(Q,K.uint32(58).fork()).join();if($.globalSettings!==void 0)vZ.encode($.globalSettings,K.uint32(66).fork()).join();if($.threadIdUserSecret!==void 0)K.uint32(74).bytes($.threadIdUserSecret);if($.threadDsTimeframeOffset!==void 0)K.uint32(80).uint32($.threadDsTimeframeOffset);if($.recentStickers!==void 0&&$.recentStickers.length!==0)for(let Q of $.recentStickers)yq.encode(Q,K.uint32(90).fork()).join();if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let Q of $.pastParticipants)m8.encode(Q,K.uint32(98).fork()).join();if($.callLogRecords!==void 0&&$.callLogRecords.length!==0)for(let Q of $.callLogRecords)r0.encode(Q,K.uint32(106).fork()).join();if($.aiWaitListState!==void 0)K.uint32(112).int32($.aiWaitListState);if($.phoneNumberToLidMappings!==void 0&&$.phoneNumberToLidMappings.length!==0)for(let Q of $.phoneNumberToLidMappings)t8.encode(Q,K.uint32(122).fork()).join();if($.companionMetaNonce!==void 0)K.uint32(130).string($.companionMetaNonce);if($.shareableChatIdentifierEncryptionKey!==void 0)K.uint32(138).bytes($.shareableChatIdentifierEncryptionKey);if($.accounts!==void 0&&$.accounts.length!==0)for(let Q of $.accounts)LK.encode(Q,K.uint32(146).fork()).join();if($.nctSalt!==void 0)K.uint32(154).bytes($.nctSalt);if($.inlineContacts!==void 0&&$.inlineContacts.length!==0)for(let Q of $.inlineContacts)rZ.encode(Q,K.uint32(162).fork()).join();if($.inlineContactsProvided!==void 0)K.uint32(168).bool($.inlineContactsProvided);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.syncType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.conversations===void 0)J.conversations=[];let Y=GZ.decode(Q,Q.uint32());if(Y!==void 0)J.conversations.push(Y);continue}case 3:{if(Z!==26)break;if(J.statusV3Messages===void 0)J.statusV3Messages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.statusV3Messages.push(Y);continue}case 5:{if(Z!==40)break;J.chunkOrder=Q.uint32();continue}case 6:{if(Z!==48)break;J.progress=Q.uint32();continue}case 7:{if(Z!==58)break;if(J.pushnames===void 0)J.pushnames=[];let Y=Xq.decode(Q,Q.uint32());if(Y!==void 0)J.pushnames.push(Y);continue}case 8:{if(Z!==66)break;J.globalSettings=vZ.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.threadIdUserSecret=Q.bytes();continue}case 10:{if(Z!==80)break;J.threadDsTimeframeOffset=Q.uint32();continue}case 11:{if(Z!==90)break;if(J.recentStickers===void 0)J.recentStickers=[];let Y=yq.decode(Q,Q.uint32());if(Y!==void 0)J.recentStickers.push(Y);continue}case 12:{if(Z!==98)break;if(J.pastParticipants===void 0)J.pastParticipants=[];let Y=m8.decode(Q,Q.uint32());if(Y!==void 0)J.pastParticipants.push(Y);continue}case 13:{if(Z!==106)break;if(J.callLogRecords===void 0)J.callLogRecords=[];let Y=r0.decode(Q,Q.uint32());if(Y!==void 0)J.callLogRecords.push(Y);continue}case 14:{if(Z!==112)break;J.aiWaitListState=Q.int32();continue}case 15:{if(Z!==122)break;if(J.phoneNumberToLidMappings===void 0)J.phoneNumberToLidMappings=[];let Y=t8.decode(Q,Q.uint32());if(Y!==void 0)J.phoneNumberToLidMappings.push(Y);continue}case 16:{if(Z!==130)break;J.companionMetaNonce=Q.string();continue}case 17:{if(Z!==138)break;J.shareableChatIdentifierEncryptionKey=Q.bytes();continue}case 18:{if(Z!==146)break;if(J.accounts===void 0)J.accounts=[];let Y=LK.decode(Q,Q.uint32());if(Y!==void 0)J.accounts.push(Y);continue}case 19:{if(Z!==154)break;J.nctSalt=Q.bytes();continue}case 20:{if(Z!==162)break;if(J.inlineContacts===void 0)J.inlineContacts=[];let Y=rZ.decode(Q,Q.uint32());if(Y!==void 0)J.inlineContacts.push(Y);continue}case 21:{if(Z!==168)break;J.inlineContactsProvided=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bY.fromPartial($??{})},fromPartial($){let K=gG();return K.syncType=$.syncType??void 0,K.conversations=$.conversations?.map((Q)=>GZ.fromPartial(Q))||void 0,K.statusV3Messages=$.statusV3Messages?.map((Q)=>b.fromPartial(Q))||void 0,K.chunkOrder=$.chunkOrder??void 0,K.progress=$.progress??void 0,K.pushnames=$.pushnames?.map((Q)=>Xq.fromPartial(Q))||void 0,K.globalSettings=$.globalSettings!==void 0&&$.globalSettings!==null?vZ.fromPartial($.globalSettings):void 0,K.threadIdUserSecret=$.threadIdUserSecret??void 0,K.threadDsTimeframeOffset=$.threadDsTimeframeOffset??void 0,K.recentStickers=$.recentStickers?.map((Q)=>yq.fromPartial(Q))||void 0,K.pastParticipants=$.pastParticipants?.map((Q)=>m8.fromPartial(Q))||void 0,K.callLogRecords=$.callLogRecords?.map((Q)=>r0.fromPartial(Q))||void 0,K.aiWaitListState=$.aiWaitListState??void 0,K.phoneNumberToLidMappings=$.phoneNumberToLidMappings?.map((Q)=>t8.fromPartial(Q))||void 0,K.companionMetaNonce=$.companionMetaNonce??void 0,K.shareableChatIdentifierEncryptionKey=$.shareableChatIdentifierEncryptionKey??void 0,K.accounts=$.accounts?.map((Q)=>LK.fromPartial(Q))||void 0,K.nctSalt=$.nctSalt??void 0,K.inlineContacts=$.inlineContacts?.map((Q)=>rZ.fromPartial(Q))||void 0,K.inlineContactsProvided=$.inlineContactsProvided??void 0,K}};function tG(){return{}}var dZ={encode($,K=new H){if($.message!==void 0)b.encode($.message,K.uint32(10).fork()).join();if($.msgOrderId!==void 0)K.uint32(16).uint64($.msgOrderId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.message=b.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.msgOrderId=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dZ.fromPartial($??{})},fromPartial($){let K=tG();return K.message=$.message!==void 0&&$.message!==null?b.fromPartial($.message):void 0,K.msgOrderId=$.msgOrderId??void 0,K}};function rG(){return{}}var jZ={encode($,K=new H){if($.index!==void 0)K.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)oZ.encode($.quickReplyButton,K.uint32(10).fork()).join();if($.urlButton!==void 0)bZ.encode($.urlButton,K.uint32(18).fork()).join();if($.callButton!==void 0)cZ.encode($.callButton,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 4:{if(Z!==32)break;J.index=Q.uint32();continue}case 1:{if(Z!==10)break;J.quickReplyButton=oZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.urlButton=bZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.callButton=cZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jZ.fromPartial($??{})},fromPartial($){let K=rG();return K.index=$.index??void 0,K.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?oZ.fromPartial($.quickReplyButton):void 0,K.urlButton=$.urlButton!==void 0&&$.urlButton!==null?bZ.fromPartial($.urlButton):void 0,K.callButton=$.callButton!==void 0&&$.callButton!==null?cZ.fromPartial($.callButton):void 0,K}};function aG(){return{}}var cZ={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);if($.phoneNumber!==void 0)K.uint32(18).string($.phoneNumber);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}case 2:{if(Z!==18)break;J.phoneNumber=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cZ.fromPartial($??{})},fromPartial($){let K=aG();return K.displayText=$.displayText??void 0,K.phoneNumber=$.phoneNumber??void 0,K}};function sG(){return{}}var oZ={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);if($.id!==void 0)K.uint32(18).string($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}case 2:{if(Z!==18)break;J.id=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oZ.fromPartial($??{})},fromPartial($){let K=sG();return K.displayText=$.displayText??void 0,K.id=$.id??void 0,K}};function eG(){return{}}var bZ={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);if($.url!==void 0)K.uint32(18).string($.url);if($.consentedUsersUrl!==void 0)K.uint32(26).string($.consentedUsersUrl);if($.webviewPresentation!==void 0)K.uint32(32).int32($.webviewPresentation);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}case 2:{if(Z!==18)break;J.url=Q.string();continue}case 3:{if(Z!==26)break;J.consentedUsersUrl=Q.string();continue}case 4:{if(Z!==32)break;J.webviewPresentation=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bZ.fromPartial($??{})},fromPartial($){let K=eG();return K.displayText=$.displayText??void 0,K.url=$.url??void 0,K.consentedUsersUrl=$.consentedUsersUrl??void 0,K.webviewPresentation=$.webviewPresentation??void 0,K}};function $5(){return{}}var nN={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.privateKey!==void 0)K.uint32(18).bytes($.privateKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.privateKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nN.fromPartial($??{})},fromPartial($){let K=$5();return K.publicKey=$.publicKey??void 0,K.privateKey=$.privateKey??void 0,K}};function K5(){return{}}var iZ={encode($,K=new H){if($.tessaSessionId!==void 0)K.uint32(10).string($.tessaSessionId);if($.simonSessionId!==void 0)K.uint32(18).string($.simonSessionId);if($.simonSurveyId!==void 0)K.uint32(26).string($.simonSurveyId);if($.tessaRootId!==void 0)K.uint32(34).string($.tessaRootId);if($.requestId!==void 0)K.uint32(42).string($.requestId);if($.tessaEvent!==void 0)K.uint32(50).string($.tessaEvent);if($.invitationHeaderText!==void 0)K.uint32(58).string($.invitationHeaderText);if($.invitationBodyText!==void 0)K.uint32(66).string($.invitationBodyText);if($.invitationCtaText!==void 0)K.uint32(74).string($.invitationCtaText);if($.invitationCtaUrl!==void 0)K.uint32(82).string($.invitationCtaUrl);if($.surveyTitle!==void 0)K.uint32(90).string($.surveyTitle);if($.questions!==void 0&&$.questions.length!==0)for(let Q of $.questions)tZ.encode(Q,K.uint32(98).fork()).join();if($.surveyContinueButtonText!==void 0)K.uint32(106).string($.surveyContinueButtonText);if($.surveySubmitButtonText!==void 0)K.uint32(114).string($.surveySubmitButtonText);if($.privacyStatementFull!==void 0)K.uint32(122).string($.privacyStatementFull);if($.privacyStatementParts!==void 0&&$.privacyStatementParts.length!==0)for(let Q of $.privacyStatementParts)gZ.encode(Q,K.uint32(130).fork()).join();if($.feedbackToastText!==void 0)K.uint32(138).string($.feedbackToastText);if($.startQuestionIndex!==void 0)K.uint32(144).int32($.startQuestionIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=K5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.tessaSessionId=Q.string();continue}case 2:{if(Z!==18)break;J.simonSessionId=Q.string();continue}case 3:{if(Z!==26)break;J.simonSurveyId=Q.string();continue}case 4:{if(Z!==34)break;J.tessaRootId=Q.string();continue}case 5:{if(Z!==42)break;J.requestId=Q.string();continue}case 6:{if(Z!==50)break;J.tessaEvent=Q.string();continue}case 7:{if(Z!==58)break;J.invitationHeaderText=Q.string();continue}case 8:{if(Z!==66)break;J.invitationBodyText=Q.string();continue}case 9:{if(Z!==74)break;J.invitationCtaText=Q.string();continue}case 10:{if(Z!==82)break;J.invitationCtaUrl=Q.string();continue}case 11:{if(Z!==90)break;J.surveyTitle=Q.string();continue}case 12:{if(Z!==98)break;if(J.questions===void 0)J.questions=[];let Y=tZ.decode(Q,Q.uint32());if(Y!==void 0)J.questions.push(Y);continue}case 13:{if(Z!==106)break;J.surveyContinueButtonText=Q.string();continue}case 14:{if(Z!==114)break;J.surveySubmitButtonText=Q.string();continue}case 15:{if(Z!==122)break;J.privacyStatementFull=Q.string();continue}case 16:{if(Z!==130)break;if(J.privacyStatementParts===void 0)J.privacyStatementParts=[];let Y=gZ.decode(Q,Q.uint32());if(Y!==void 0)J.privacyStatementParts.push(Y);continue}case 17:{if(Z!==138)break;J.feedbackToastText=Q.string();continue}case 18:{if(Z!==144)break;J.startQuestionIndex=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iZ.fromPartial($??{})},fromPartial($){let K=K5();return K.tessaSessionId=$.tessaSessionId??void 0,K.simonSessionId=$.simonSessionId??void 0,K.simonSurveyId=$.simonSurveyId??void 0,K.tessaRootId=$.tessaRootId??void 0,K.requestId=$.requestId??void 0,K.tessaEvent=$.tessaEvent??void 0,K.invitationHeaderText=$.invitationHeaderText??void 0,K.invitationBodyText=$.invitationBodyText??void 0,K.invitationCtaText=$.invitationCtaText??void 0,K.invitationCtaUrl=$.invitationCtaUrl??void 0,K.surveyTitle=$.surveyTitle??void 0,K.questions=$.questions?.map((Q)=>tZ.fromPartial(Q))||void 0,K.surveyContinueButtonText=$.surveyContinueButtonText??void 0,K.surveySubmitButtonText=$.surveySubmitButtonText??void 0,K.privacyStatementFull=$.privacyStatementFull??void 0,K.privacyStatementParts=$.privacyStatementParts?.map((Q)=>gZ.fromPartial(Q))||void 0,K.feedbackToastText=$.feedbackToastText??void 0,K.startQuestionIndex=$.startQuestionIndex??void 0,K}};function Q5(){return{}}var mZ={encode($,K=new H){if($.stringValue!==void 0)K.uint32(10).string($.stringValue);if($.numericValue!==void 0)K.uint32(16).uint32($.numericValue);if($.textTranslated!==void 0)K.uint32(26).string($.textTranslated);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Q5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stringValue=Q.string();continue}case 2:{if(Z!==16)break;J.numericValue=Q.uint32();continue}case 3:{if(Z!==26)break;J.textTranslated=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mZ.fromPartial($??{})},fromPartial($){let K=Q5();return K.stringValue=$.stringValue??void 0,K.numericValue=$.numericValue??void 0,K.textTranslated=$.textTranslated??void 0,K}};function Z5(){return{}}var gZ={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.url!==void 0)K.uint32(18).string($.url);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Z5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;J.url=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gZ.fromPartial($??{})},fromPartial($){let K=Z5();return K.text=$.text??void 0,K.url=$.url??void 0,K}};function J5(){return{}}var tZ={encode($,K=new H){if($.questionText!==void 0)K.uint32(10).string($.questionText);if($.questionId!==void 0)K.uint32(18).string($.questionId);if($.questionOptions!==void 0&&$.questionOptions.length!==0)for(let Q of $.questionOptions)mZ.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=J5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.questionText=Q.string();continue}case 2:{if(Z!==18)break;J.questionId=Q.string();continue}case 3:{if(Z!==26)break;if(J.questionOptions===void 0)J.questionOptions=[];let Y=mZ.decode(Q,Q.uint32());if(Y!==void 0)J.questionOptions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tZ.fromPartial($??{})},fromPartial($){let K=J5();return K.questionText=$.questionText??void 0,K.questionId=$.questionId??void 0,K.questionOptions=$.questionOptions?.map((Q)=>mZ.fromPartial(Q))||void 0,K}};function X5(){return{}}var rZ={encode($,K=new H){if($.pnJid!==void 0)K.uint32(10).string($.pnJid);if($.lidJid!==void 0)K.uint32(18).string($.lidJid);if($.fullName!==void 0)K.uint32(26).string($.fullName);if($.firstName!==void 0)K.uint32(34).string($.firstName);if($.username!==void 0)K.uint32(42).string($.username);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=X5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pnJid=Q.string();continue}case 2:{if(Z!==18)break;J.lidJid=Q.string();continue}case 3:{if(Z!==26)break;J.fullName=Q.string();continue}case 4:{if(Z!==34)break;J.firstName=Q.string();continue}case 5:{if(Z!==42)break;J.username=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rZ.fromPartial($??{})},fromPartial($){let K=X5();return K.pnJid=$.pnJid??void 0,K.lidJid=$.lidJid??void 0,K.fullName=$.fullName??void 0,K.firstName=$.firstName??void 0,K.username=$.username??void 0,K}};function q5(){return{}}var Q0={encode($,K=new H){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let Q of $.polygonVertices)s8.encode(Q,K.uint32(10).fork()).join();if($.shouldSkipConfirmation!==void 0)K.uint32(32).bool($.shouldSkipConfirmation);if($.embeddedContent!==void 0)BZ.encode($.embeddedContent,K.uint32(42).fork()).join();if($.statusLinkType!==void 0)K.uint32(64).int32($.statusLinkType);if($.location!==void 0)ZJ.encode($.location,K.uint32(18).fork()).join();if($.newsletter!==void 0)J$.encode($.newsletter,K.uint32(26).fork()).join();if($.embeddedAction!==void 0)K.uint32(48).bool($.embeddedAction);if($.tapAction!==void 0)CY.encode($.tapAction,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=q5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.polygonVertices===void 0)J.polygonVertices=[];let Y=s8.decode(Q,Q.uint32());if(Y!==void 0)J.polygonVertices.push(Y);continue}case 4:{if(Z!==32)break;J.shouldSkipConfirmation=Q.bool();continue}case 5:{if(Z!==42)break;J.embeddedContent=BZ.decode(Q,Q.uint32());continue}case 8:{if(Z!==64)break;J.statusLinkType=Q.int32();continue}case 2:{if(Z!==18)break;J.location=ZJ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.newsletter=J$.decode(Q,Q.uint32());continue}case 6:{if(Z!==48)break;J.embeddedAction=Q.bool();continue}case 7:{if(Z!==58)break;J.tapAction=CY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Q0.fromPartial($??{})},fromPartial($){let K=q5();return K.polygonVertices=$.polygonVertices?.map((Q)=>s8.fromPartial(Q))||void 0,K.shouldSkipConfirmation=$.shouldSkipConfirmation??void 0,K.embeddedContent=$.embeddedContent!==void 0&&$.embeddedContent!==null?BZ.fromPartial($.embeddedContent):void 0,K.statusLinkType=$.statusLinkType??void 0,K.location=$.location!==void 0&&$.location!==null?ZJ.fromPartial($.location):void 0,K.newsletter=$.newsletter!==void 0&&$.newsletter!==null?J$.fromPartial($.newsletter):void 0,K.embeddedAction=$.embeddedAction??void 0,K.tapAction=$.tapAction!==void 0&&$.tapAction!==null?CY.fromPartial($.tapAction):void 0,K}};function Y5(){return{}}var aZ={encode($,K=new H){if($.isGalaxyFlowCompleted!==void 0)K.uint32(8).bool($.isGalaxyFlowCompleted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Y5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isGalaxyFlowCompleted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aZ.fromPartial($??{})},fromPartial($){let K=Y5();return K.isGalaxyFlowCompleted=$.isGalaxyFlowCompleted??void 0,K}};function H5(){return{}}var sZ={encode($,K=new H){if($.keepType!==void 0)K.uint32(8).int32($.keepType);if($.serverTimestamp!==void 0)K.uint32(16).int64($.serverTimestamp);if($.key!==void 0)x.encode($.key,K.uint32(26).fork()).join();if($.deviceJid!==void 0)K.uint32(34).string($.deviceJid);if($.clientTimestampMs!==void 0)K.uint32(40).int64($.clientTimestampMs);if($.serverTimestampMs!==void 0)K.uint32(48).int64($.serverTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=H5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.keepType=Q.int32();continue}case 2:{if(Z!==16)break;J.serverTimestamp=Q.int64Number();continue}case 3:{if(Z!==26)break;J.key=x.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.deviceJid=Q.string();continue}case 5:{if(Z!==40)break;J.clientTimestampMs=Q.int64Number();continue}case 6:{if(Z!==48)break;J.serverTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sZ.fromPartial($??{})},fromPartial($){let K=H5();return K.keepType=$.keepType??void 0,K.serverTimestamp=$.serverTimestamp??void 0,K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.deviceJid=$.deviceJid??void 0,K.clientTimestampMs=$.clientTimestampMs??void 0,K.serverTimestampMs=$.serverTimestampMs??void 0,K}};function z5(){return{}}var dN={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.baseKey!==void 0)K.uint32(18).bytes($.baseKey);if($.ratchetKey!==void 0)K.uint32(26).bytes($.ratchetKey);if($.identityKey!==void 0)K.uint32(34).bytes($.identityKey);if($.baseKeySignature!==void 0)K.uint32(42).bytes($.baseKeySignature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=z5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==18)break;J.baseKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.ratchetKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.identityKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.baseKeySignature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dN.fromPartial($??{})},fromPartial($){let K=z5();return K.id=$.id??void 0,K.baseKey=$.baseKey??void 0,K.ratchetKey=$.ratchetKey??void 0,K.identityKey=$.identityKey??void 0,K.baseKeySignature=$.baseKeySignature??void 0,K}};function V5(){return{}}var P0={encode($,K=new H){if($.id!==void 0)K.uint32(10).bytes($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=V5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return P0.fromPartial($??{})},fromPartial($){let K=V5();return K.id=$.id??void 0,K}};function G5(){return{}}var eZ={encode($,K=new H){if($.encodedMappingPayload!==void 0)K.uint32(10).bytes($.encodedMappingPayload);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=G5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encodedMappingPayload=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eZ.fromPartial($??{})},fromPartial($){let K=G5();return K.encodedMappingPayload=$.encodedMappingPayload??void 0,K}};function U5(){return{}}var $J={encode($,K=new H){if($.pn!==void 0)K.uint32(8).uint64($.pn);if($.assignedLid!==void 0)K.uint32(16).uint64($.assignedLid);if($.latestLid!==void 0)K.uint32(24).uint64($.latestLid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=U5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pn=Q.uint64Number();continue}case 2:{if(Z!==16)break;J.assignedLid=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.latestLid=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $J.fromPartial($??{})},fromPartial($){let K=U5();return K.pn=$.pn??void 0,K.assignedLid=$.assignedLid??void 0,K.latestLid=$.latestLid??void 0,K}};function C5(){return{}}var iY={encode($,K=new H){if($.pnToLidMappings!==void 0&&$.pnToLidMappings.length!==0)for(let Q of $.pnToLidMappings)$J.encode(Q,K.uint32(10).fork()).join();if($.chatDbMigrationTimestamp!==void 0)K.uint32(16).uint64($.chatDbMigrationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=C5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.pnToLidMappings===void 0)J.pnToLidMappings=[];let Y=$J.decode(Q,Q.uint32());if(Y!==void 0)J.pnToLidMappings.push(Y);continue}case 2:{if(Z!==16)break;J.chatDbMigrationTimestamp=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iY.fromPartial($??{})},fromPartial($){let K=C5();return K.pnToLidMappings=$.pnToLidMappings?.map((Q)=>$J.fromPartial(Q))||void 0,K.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,K}};function D5(){return{}}var jN={encode($,K=new H){if($.createBackupInput!==void 0)UZ.encode($.createBackupInput,K.uint32(10).fork()).join();if($.encryptMessageInput!==void 0)AZ.encode($.encryptMessageInput,K.uint32(18).fork()).join();if($.decryptMessageInput!==void 0)CZ.encode($.decryptMessageInput,K.uint32(26).fork()).join();if($.orfThreadIdInput!==void 0)b8.encode($.orfThreadIdInput,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=D5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.createBackupInput=UZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encryptMessageInput=AZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.decryptMessageInput=CZ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.orfThreadIdInput=b8.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jN.fromPartial($??{})},fromPartial($){let K=D5();return K.createBackupInput=$.createBackupInput!==void 0&&$.createBackupInput!==null?UZ.fromPartial($.createBackupInput):void 0,K.encryptMessageInput=$.encryptMessageInput!==void 0&&$.encryptMessageInput!==null?AZ.fromPartial($.encryptMessageInput):void 0,K.decryptMessageInput=$.decryptMessageInput!==void 0&&$.decryptMessageInput!==null?CZ.fromPartial($.decryptMessageInput):void 0,K.orfThreadIdInput=$.orfThreadIdInput!==void 0&&$.orfThreadIdInput!==null?b8.fromPartial($.orfThreadIdInput):void 0,K}};function L5(){return{}}var KJ={encode($,K=new H){if($.eventResponseMessage!==void 0)W0.encode($.eventResponseMessage,K.uint32(10).fork()).join();if($.pollVote!==void 0)I0.encode($.pollVote,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=L5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.eventResponseMessage=W0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.pollVote=I0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KJ.fromPartial($??{})},fromPartial($){let K=L5();return K.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?W0.fromPartial($.eventResponseMessage):void 0,K.pollVote=$.pollVote!==void 0&&$.pollVote!==null?I0.fromPartial($.pollVote):void 0,K}};function P5(){return{}}var V0={encode($,K=new H){if($.sharingLimited!==void 0)K.uint32(8).bool($.sharingLimited);if($.trigger!==void 0)K.uint32(16).int32($.trigger);if($.limitSharingSettingTimestamp!==void 0)K.uint32(24).int64($.limitSharingSettingTimestamp);if($.initiatedByMe!==void 0)K.uint32(32).bool($.initiatedByMe);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=P5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.sharingLimited=Q.bool();continue}case 2:{if(Z!==16)break;J.trigger=Q.int32();continue}case 3:{if(Z!==24)break;J.limitSharingSettingTimestamp=Q.int64Number();continue}case 4:{if(Z!==32)break;J.initiatedByMe=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return V0.fromPartial($??{})},fromPartial($){let K=P5();return K.sharingLimited=$.sharingLimited??void 0,K.trigger=$.trigger??void 0,K.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,K.initiatedByMe=$.initiatedByMe??void 0,K}};function F5(){return{}}var QJ={encode($,K=new H){if($.lg!==void 0)K.uint32(10).string($.lg);if($.lc!==void 0)K.uint32(18).string($.lc);if($.verifiedName!==void 0)K.uint32(26).string($.verifiedName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=F5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.lg=Q.string();continue}case 2:{if(Z!==18)break;J.lc=Q.string();continue}case 3:{if(Z!==26)break;J.verifiedName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QJ.fromPartial($??{})},fromPartial($){let K=F5();return K.lg=$.lg??void 0,K.lc=$.lc??void 0,K.verifiedName=$.verifiedName??void 0,K}};function x5(){return{}}var ZJ={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.name!==void 0)K.uint32(26).string($.name);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=x5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZJ.fromPartial($??{})},fromPartial($){let K=x5();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.name=$.name??void 0,K}};function k5(){return{}}var w0={encode($,K=new H){if($.localPath!==void 0)K.uint32(10).string($.localPath);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=k5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.localPath=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return w0.fromPartial($??{})},fromPartial($){let K=k5();return K.localPath=$.localPath??void 0,K}};function N5(){return{}}var JJ={encode($,K=new H){if($.mediaKeyDomain!==void 0)K.uint32(8).int32($.mediaKeyDomain);if($.e2EeMediaKey!==void 0)K.uint32(18).bytes($.e2EeMediaKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=N5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.mediaKeyDomain=Q.int32();continue}case 2:{if(Z!==18)break;J.e2EeMediaKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JJ.fromPartial($??{})},fromPartial($){let K=N5();return K.mediaKeyDomain=$.mediaKeyDomain??void 0,K.e2EeMediaKey=$.e2EeMediaKey??void 0,K}};function R5(){return{}}var cN={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).bytes($.fileSha256);if($.mediaKey!==void 0)K.uint32(18).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(26).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(34).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(40).int64($.mediaKeyTimestamp);if($.serverMediaType!==void 0)K.uint32(50).string($.serverMediaType);if($.uploadToken!==void 0)K.uint32(58).bytes($.uploadToken);if($.validatedTimestamp!==void 0)K.uint32(66).bytes($.validatedTimestamp);if($.sidecar!==void 0)K.uint32(74).bytes($.sidecar);if($.objectId!==void 0)K.uint32(82).string($.objectId);if($.fbid!==void 0)K.uint32(90).string($.fbid);if($.downloadableThumbnail!==void 0)XJ.encode($.downloadableThumbnail,K.uint32(98).fork()).join();if($.handle!==void 0)K.uint32(106).string($.handle);if($.filename!==void 0)K.uint32(114).string($.filename);if($.progressiveJpegDetails!==void 0)qJ.encode($.progressiveJpegDetails,K.uint32(122).fork()).join();if($.size!==void 0)K.uint32(128).int64($.size);if($.lastDownloadAttemptTimestamp!==void 0)K.uint32(136).int64($.lastDownloadAttemptTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=R5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.bytes();continue}case 2:{if(Z!==18)break;J.mediaKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.directPath=Q.string();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.serverMediaType=Q.string();continue}case 7:{if(Z!==58)break;J.uploadToken=Q.bytes();continue}case 8:{if(Z!==66)break;J.validatedTimestamp=Q.bytes();continue}case 9:{if(Z!==74)break;J.sidecar=Q.bytes();continue}case 10:{if(Z!==82)break;J.objectId=Q.string();continue}case 11:{if(Z!==90)break;J.fbid=Q.string();continue}case 12:{if(Z!==98)break;J.downloadableThumbnail=XJ.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.handle=Q.string();continue}case 14:{if(Z!==114)break;J.filename=Q.string();continue}case 15:{if(Z!==122)break;J.progressiveJpegDetails=qJ.decode(Q,Q.uint32());continue}case 16:{if(Z!==128)break;J.size=Q.int64Number();continue}case 17:{if(Z!==136)break;J.lastDownloadAttemptTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cN.fromPartial($??{})},fromPartial($){let K=R5();return K.fileSha256=$.fileSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.serverMediaType=$.serverMediaType??void 0,K.uploadToken=$.uploadToken??void 0,K.validatedTimestamp=$.validatedTimestamp??void 0,K.sidecar=$.sidecar??void 0,K.objectId=$.objectId??void 0,K.fbid=$.fbid??void 0,K.downloadableThumbnail=$.downloadableThumbnail!==void 0&&$.downloadableThumbnail!==null?XJ.fromPartial($.downloadableThumbnail):void 0,K.handle=$.handle??void 0,K.filename=$.filename??void 0,K.progressiveJpegDetails=$.progressiveJpegDetails!==void 0&&$.progressiveJpegDetails!==null?qJ.fromPartial($.progressiveJpegDetails):void 0,K.size=$.size??void 0,K.lastDownloadAttemptTimestamp=$.lastDownloadAttemptTimestamp??void 0,K}};function B5(){return{}}var XJ={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(18).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(26).string($.directPath);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)K.uint32(40).int64($.mediaKeyTimestamp);if($.objectId!==void 0)K.uint32(50).string($.objectId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=B5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.bytes();continue}case 2:{if(Z!==18)break;J.fileEncSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.directPath=Q.string();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.objectId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XJ.fromPartial($??{})},fromPartial($){let K=B5();return K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.objectId=$.objectId??void 0,K}};function O5(){return{}}var qJ={encode($,K=new H){if($.scanLengths!==void 0&&$.scanLengths.length!==0)for(let Q of $.scanLengths)K.uint32(8).uint32(Q);if($.sidecar!==void 0)K.uint32(18).bytes($.sidecar);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=O5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.scanLengths===void 0)J.scanLengths=[];J.scanLengths.push(Q.uint32());continue}if(Z===10){if(J.scanLengths===void 0)J.scanLengths=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.scanLengths.push(Q.uint32());continue}break}case 2:{if(Z!==18)break;J.sidecar=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qJ.fromPartial($??{})},fromPartial($){let K=O5();return K.scanLengths=$.scanLengths?.map((Q)=>Q)||void 0,K.sidecar=$.sidecar??void 0,K}};function A5(){return{}}var YJ={encode($,K=new H){if($.expressPathUrl!==void 0)K.uint32(10).string($.expressPathUrl);if($.fileEncSha256!==void 0)K.uint32(18).bytes($.fileEncSha256);if($.fileLength!==void 0)K.uint32(24).uint64($.fileLength);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=A5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.expressPathUrl=Q.string();continue}case 2:{if(Z!==18)break;J.fileEncSha256=Q.bytes();continue}case 3:{if(Z!==24)break;J.fileLength=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YJ.fromPartial($??{})},fromPartial($){let K=A5();return K.expressPathUrl=$.expressPathUrl??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.fileLength=$.fileLength??void 0,K}};function E5(){return{}}var mY={encode($,K=new H){if($.stanzaId!==void 0)K.uint32(10).string($.stanzaId);if($.directPath!==void 0)K.uint32(18).string($.directPath);if($.result!==void 0)K.uint32(24).int32($.result);if($.messageSecret!==void 0)K.uint32(34).bytes($.messageSecret);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=E5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stanzaId=Q.string();continue}case 2:{if(Z!==18)break;J.directPath=Q.string();continue}case 3:{if(Z!==24)break;J.result=Q.int32();continue}case 4:{if(Z!==34)break;J.messageSecret=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mY.fromPartial($??{})},fromPartial($){let K=E5();return K.stanzaId=$.stanzaId??void 0,K.directPath=$.directPath??void 0,K.result=$.result??void 0,K.messageSecret=$.messageSecret??void 0,K}};function M5(){return{}}var F0={encode($,K=new H){if($.label!==void 0)K.uint32(10).string($.label);if($.labelTimestamp!==void 0)K.uint32(16).int64($.labelTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=M5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.label=Q.string();continue}case 2:{if(Z!==16)break;J.labelTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return F0.fromPartial($??{})},fromPartial($){let K=M5();return K.label=$.label??void 0,K.labelTimestamp=$.labelTimestamp??void 0,K}};function W5(){return{}}var HJ={encode($,K=new H){if($.mentionType!==void 0)K.uint32(8).int32($.mentionType);if($.mentionedJid!==void 0)K.uint32(18).string($.mentionedJid);if($.offset!==void 0)K.uint32(24).uint32($.offset);if($.length!==void 0)K.uint32(32).uint32($.length);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=W5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.mentionType=Q.int32();continue}case 2:{if(Z!==18)break;J.mentionedJid=Q.string();continue}case 3:{if(Z!==24)break;J.offset=Q.uint32();continue}case 4:{if(Z!==32)break;J.length=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HJ.fromPartial($??{})},fromPartial($){let K=W5();return K.mentionType=$.mentionType??void 0,K.mentionedJid=$.mentionedJid??void 0,K.offset=$.offset??void 0,K.length=$.length??void 0,K}};function I5(){return{}}var w={encode($,K=new H){if($.conversation!==void 0)K.uint32(10).string($.conversation);if($.senderKeyDistributionMessage!==void 0)d0.encode($.senderKeyDistributionMessage,K.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(26).fork()).join();if($.contactMessage!==void 0)H$.encode($.contactMessage,K.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(42).fork()).join();if($.extendedTextMessage!==void 0)oJ.encode($.extendedTextMessage,K.uint32(50).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(58).fork()).join();if($.audioMessage!==void 0)Y$.encode($.audioMessage,K.uint32(66).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(74).fork()).join();if($.call!==void 0)BJ.encode($.call,K.uint32(82).fork()).join();if($.chat!==void 0)MJ.encode($.chat,K.uint32(90).fork()).join();if($.protocolMessage!==void 0)P8.encode($.protocolMessage,K.uint32(98).fork()).join();if($.contactsArrayMessage!==void 0)lJ.encode($.contactsArrayMessage,K.uint32(106).fork()).join();if($.highlyStructuredMessage!==void 0)c.encode($.highlyStructuredMessage,K.uint32(114).fork()).join();if($.fastRatchetKeySenderKeyDistributionMessage!==void 0)d0.encode($.fastRatchetKeySenderKeyDistributionMessage,K.uint32(122).fork()).join();if($.sendPaymentMessage!==void 0)M8.encode($.sendPaymentMessage,K.uint32(130).fork()).join();if($.liveLocationMessage!==void 0)V$.encode($.liveLocationMessage,K.uint32(146).fork()).join();if($.requestPaymentMessage!==void 0)k8.encode($.requestPaymentMessage,K.uint32(178).fork()).join();if($.declinePaymentRequestMessage!==void 0)pJ.encode($.declinePaymentRequestMessage,K.uint32(186).fork()).join();if($.cancelPaymentRequestMessage!==void 0)EJ.encode($.cancelPaymentRequestMessage,K.uint32(194).fork()).join();if($.templateMessage!==void 0)P$.encode($.templateMessage,K.uint32(202).fork()).join();if($.stickerMessage!==void 0)L$.encode($.stickerMessage,K.uint32(210).fork()).join();if($.groupInviteMessage!==void 0)iJ.encode($.groupInviteMessage,K.uint32(226).fork()).join();if($.templateButtonReplyMessage!==void 0)l8.encode($.templateButtonReplyMessage,K.uint32(234).fork()).join();if($.productMessage!==void 0)D$.encode($.productMessage,K.uint32(242).fork()).join();if($.deviceSentMessage!==void 0)uJ.encode($.deviceSentMessage,K.uint32(250).fork()).join();if($.messageContextInfo!==void 0)x$.encode($.messageContextInfo,K.uint32(282).fork()).join();if($.listMessage!==void 0)LX.encode($.listMessage,K.uint32(290).fork()).join();if($.viewOnceMessage!==void 0)W.encode($.viewOnceMessage,K.uint32(298).fork()).join();if($.orderMessage!==void 0)IX.encode($.orderMessage,K.uint32(306).fork()).join();if($.listResponseMessage!==void 0)BX.encode($.listResponseMessage,K.uint32(314).fork()).join();if($.ephemeralMessage!==void 0)W.encode($.ephemeralMessage,K.uint32(322).fork()).join();if($.invoiceMessage!==void 0)UX.encode($.invoiceMessage,K.uint32(330).fork()).join();if($.buttonsMessage!==void 0)FJ.encode($.buttonsMessage,K.uint32(338).fork()).join();if($.buttonsResponseMessage!==void 0)RJ.encode($.buttonsResponseMessage,K.uint32(346).fork()).join();if($.paymentInviteMessage!==void 0)vX.encode($.paymentInviteMessage,K.uint32(354).fork()).join();if($.interactiveMessage!==void 0)k0.encode($.interactiveMessage,K.uint32(362).fork()).join();if($.reactionMessage!==void 0)x8.encode($.reactionMessage,K.uint32(370).fork()).join();if($.stickerSyncRmrMessage!==void 0)h8.encode($.stickerSyncRmrMessage,K.uint32(378).fork()).join();if($.interactiveResponseMessage!==void 0)zX.encode($.interactiveResponseMessage,K.uint32(386).fork()).join();if($.pollCreationMessage!==void 0)e.encode($.pollCreationMessage,K.uint32(394).fork()).join();if($.pollUpdateMessage!==void 0)C8.encode($.pollUpdateMessage,K.uint32(402).fork()).join();if($.keepInChatMessage!==void 0)CX.encode($.keepInChatMessage,K.uint32(410).fork()).join();if($.documentWithCaptionMessage!==void 0)W.encode($.documentWithCaptionMessage,K.uint32(426).fork()).join();if($.requestPhoneNumberMessage!==void 0)N8.encode($.requestPhoneNumberMessage,K.uint32(434).fork()).join();if($.viewOnceMessageV2!==void 0)W.encode($.viewOnceMessageV2,K.uint32(442).fork()).join();if($.encReactionMessage!==void 0)dJ.encode($.encReactionMessage,K.uint32(450).fork()).join();if($.editedMessage!==void 0)W.encode($.editedMessage,K.uint32(466).fork()).join();if($.viewOnceMessageV2Extension!==void 0)W.encode($.viewOnceMessageV2Extension,K.uint32(474).fork()).join();if($.pollCreationMessageV2!==void 0)e.encode($.pollCreationMessageV2,K.uint32(482).fork()).join();if($.scheduledCallCreationMessage!==void 0)O8.encode($.scheduledCallCreationMessage,K.uint32(490).fork()).join();if($.groupMentionedMessage!==void 0)W.encode($.groupMentionedMessage,K.uint32(498).fork()).join();if($.pinInChatMessage!==void 0)H8.encode($.pinInChatMessage,K.uint32(506).fork()).join();if($.pollCreationMessageV3!==void 0)e.encode($.pollCreationMessageV3,K.uint32(514).fork()).join();if($.scheduledCallEditMessage!==void 0)A8.encode($.scheduledCallEditMessage,K.uint32(522).fork()).join();if($.ptvMessage!==void 0)t.encode($.ptvMessage,K.uint32(530).fork()).join();if($.botInvokeMessage!==void 0)W.encode($.botInvokeMessage,K.uint32(538).fork()).join();if($.callLogMesssage!==void 0)OJ.encode($.callLogMesssage,K.uint32(554).fork()).join();if($.messageHistoryBundle!==void 0)G$.encode($.messageHistoryBundle,K.uint32(562).fork()).join();if($.encCommentMessage!==void 0)wJ.encode($.encCommentMessage,K.uint32(570).fork()).join();if($.bcallMessage!==void 0)PJ.encode($.bcallMessage,K.uint32(578).fork()).join();if($.lottieStickerMessage!==void 0)W.encode($.lottieStickerMessage,K.uint32(594).fork()).join();if($.eventMessage!==void 0)cJ.encode($.eventMessage,K.uint32(602).fork()).join();if($.encEventResponseMessage!==void 0)nJ.encode($.encEventResponseMessage,K.uint32(610).fork()).join();if($.commentMessage!==void 0)_J.encode($.commentMessage,K.uint32(618).fork()).join();if($.newsletterAdminInviteMessage!==void 0)MX.encode($.newsletterAdminInviteMessage,K.uint32(626).fork()).join();if($.placeholderMessage!==void 0)z8.encode($.placeholderMessage,K.uint32(642).fork()).join();if($.secretEncryptedMessage!==void 0)E8.encode($.secretEncryptedMessage,K.uint32(658).fork()).join();if($.albumMessage!==void 0)zJ.encode($.albumMessage,K.uint32(666).fork()).join();if($.eventCoverImage!==void 0)W.encode($.eventCoverImage,K.uint32(682).fork()).join();if($.stickerPackMessage!==void 0)f8.encode($.stickerPackMessage,K.uint32(690).fork()).join();if($.statusMentionMessage!==void 0)W.encode($.statusMentionMessage,K.uint32(698).fork()).join();if($.pollResultSnapshotMessage!==void 0)n0.encode($.pollResultSnapshotMessage,K.uint32(706).fork()).join();if($.pollCreationOptionImageMessage!==void 0)W.encode($.pollCreationOptionImageMessage,K.uint32(722).fork()).join();if($.associatedChildMessage!==void 0)W.encode($.associatedChildMessage,K.uint32(730).fork()).join();if($.groupStatusMentionMessage!==void 0)W.encode($.groupStatusMentionMessage,K.uint32(738).fork()).join();if($.pollCreationMessageV4!==void 0)W.encode($.pollCreationMessageV4,K.uint32(746).fork()).join();if($.statusAddYours!==void 0)W.encode($.statusAddYours,K.uint32(762).fork()).join();if($.groupStatusMessage!==void 0)W.encode($.groupStatusMessage,K.uint32(770).fork()).join();if($.richResponseMessage!==void 0)qK.encode($.richResponseMessage,K.uint32(778).fork()).join();if($.statusNotificationMessage!==void 0)S8.encode($.statusNotificationMessage,K.uint32(786).fork()).join();if($.limitSharingMessage!==void 0)W.encode($.limitSharingMessage,K.uint32(794).fork()).join();if($.botTaskMessage!==void 0)W.encode($.botTaskMessage,K.uint32(802).fork()).join();if($.questionMessage!==void 0)W.encode($.questionMessage,K.uint32(810).fork()).join();if($.messageHistoryNotice!==void 0)EX.encode($.messageHistoryNotice,K.uint32(818).fork()).join();if($.groupStatusMessageV2!==void 0)W.encode($.groupStatusMessageV2,K.uint32(826).fork()).join();if($.botForwardedMessage!==void 0)W.encode($.botForwardedMessage,K.uint32(834).fork()).join();if($.statusQuestionAnswerMessage!==void 0)v8.encode($.statusQuestionAnswerMessage,K.uint32(842).fork()).join();if($.questionReplyMessage!==void 0)W.encode($.questionReplyMessage,K.uint32(850).fork()).join();if($.questionResponseMessage!==void 0)F8.encode($.questionResponseMessage,K.uint32(858).fork()).join();if($.statusQuotedMessage!==void 0)T8.encode($.statusQuotedMessage,K.uint32(874).fork()).join();if($.statusStickerInteractionMessage!==void 0)y8.encode($.statusStickerInteractionMessage,K.uint32(882).fork()).join();if($.pollCreationMessageV5!==void 0)e.encode($.pollCreationMessageV5,K.uint32(890).fork()).join();if($.newsletterFollowerInviteMessageV2!==void 0)WX.encode($.newsletterFollowerInviteMessageV2,K.uint32(906).fork()).join();if($.pollResultSnapshotMessageV3!==void 0)n0.encode($.pollResultSnapshotMessageV3,K.uint32(922).fork()).join();if($.newsletterAdminProfileMessage!==void 0)W.encode($.newsletterAdminProfileMessage,K.uint32(930).fork()).join();if($.newsletterAdminProfileMessageV2!==void 0)W.encode($.newsletterAdminProfileMessageV2,K.uint32(938).fork()).join();if($.spoilerMessage!==void 0)W.encode($.spoilerMessage,K.uint32(946).fork()).join();if($.pollCreationMessageV6!==void 0)e.encode($.pollCreationMessageV6,K.uint32(954).fork()).join();if($.conditionalRevealMessage!==void 0)hJ.encode($.conditionalRevealMessage,K.uint32(962).fork()).join();if($.pollAddOptionMessage!==void 0)V8.encode($.pollAddOptionMessage,K.uint32(970).fork()).join();if($.eventInviteMessage!==void 0)jJ.encode($.eventInviteMessage,K.uint32(978).fork()).join();if($.groupRootKeyShare!==void 0)hZ.encode($.groupRootKeyShare,K.uint32(986).fork()).join();if($.paymentReminderMessage!==void 0)_X.encode($.paymentReminderMessage,K.uint32(994).fork()).join();if($.splitPaymentMessage!==void 0)W8.encode($.splitPaymentMessage,K.uint32(1002).fork()).join();if($.newsletterAdminProfileStatusMessage!==void 0)W.encode($.newsletterAdminProfileStatusMessage,K.uint32(1010).fork()).join();if($.rootSecretDistributeMessage!==void 0)B8.encode($.rootSecretDistributeMessage,K.uint32(1018).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=I5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.conversation=Q.string();continue}case 2:{if(Z!==18)break;J.senderKeyDistributionMessage=d0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.contactMessage=H$.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.locationMessage=a.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.extendedTextMessage=oJ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.audioMessage=Y$.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.call=BJ.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.chat=MJ.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.protocolMessage=P8.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.contactsArrayMessage=lJ.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.highlyStructuredMessage=c.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.fastRatchetKeySenderKeyDistributionMessage=d0.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.sendPaymentMessage=M8.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.liveLocationMessage=V$.decode(Q,Q.uint32());continue}case 22:{if(Z!==178)break;J.requestPaymentMessage=k8.decode(Q,Q.uint32());continue}case 23:{if(Z!==186)break;J.declinePaymentRequestMessage=pJ.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.cancelPaymentRequestMessage=EJ.decode(Q,Q.uint32());continue}case 25:{if(Z!==202)break;J.templateMessage=P$.decode(Q,Q.uint32());continue}case 26:{if(Z!==210)break;J.stickerMessage=L$.decode(Q,Q.uint32());continue}case 28:{if(Z!==226)break;J.groupInviteMessage=iJ.decode(Q,Q.uint32());continue}case 29:{if(Z!==234)break;J.templateButtonReplyMessage=l8.decode(Q,Q.uint32());continue}case 30:{if(Z!==242)break;J.productMessage=D$.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.deviceSentMessage=uJ.decode(Q,Q.uint32());continue}case 35:{if(Z!==282)break;J.messageContextInfo=x$.decode(Q,Q.uint32());continue}case 36:{if(Z!==290)break;J.listMessage=LX.decode(Q,Q.uint32());continue}case 37:{if(Z!==298)break;J.viewOnceMessage=W.decode(Q,Q.uint32());continue}case 38:{if(Z!==306)break;J.orderMessage=IX.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.listResponseMessage=BX.decode(Q,Q.uint32());continue}case 40:{if(Z!==322)break;J.ephemeralMessage=W.decode(Q,Q.uint32());continue}case 41:{if(Z!==330)break;J.invoiceMessage=UX.decode(Q,Q.uint32());continue}case 42:{if(Z!==338)break;J.buttonsMessage=FJ.decode(Q,Q.uint32());continue}case 43:{if(Z!==346)break;J.buttonsResponseMessage=RJ.decode(Q,Q.uint32());continue}case 44:{if(Z!==354)break;J.paymentInviteMessage=vX.decode(Q,Q.uint32());continue}case 45:{if(Z!==362)break;J.interactiveMessage=k0.decode(Q,Q.uint32());continue}case 46:{if(Z!==370)break;J.reactionMessage=x8.decode(Q,Q.uint32());continue}case 47:{if(Z!==378)break;J.stickerSyncRmrMessage=h8.decode(Q,Q.uint32());continue}case 48:{if(Z!==386)break;J.interactiveResponseMessage=zX.decode(Q,Q.uint32());continue}case 49:{if(Z!==394)break;J.pollCreationMessage=e.decode(Q,Q.uint32());continue}case 50:{if(Z!==402)break;J.pollUpdateMessage=C8.decode(Q,Q.uint32());continue}case 51:{if(Z!==410)break;J.keepInChatMessage=CX.decode(Q,Q.uint32());continue}case 53:{if(Z!==426)break;J.documentWithCaptionMessage=W.decode(Q,Q.uint32());continue}case 54:{if(Z!==434)break;J.requestPhoneNumberMessage=N8.decode(Q,Q.uint32());continue}case 55:{if(Z!==442)break;J.viewOnceMessageV2=W.decode(Q,Q.uint32());continue}case 56:{if(Z!==450)break;J.encReactionMessage=dJ.decode(Q,Q.uint32());continue}case 58:{if(Z!==466)break;J.editedMessage=W.decode(Q,Q.uint32());continue}case 59:{if(Z!==474)break;J.viewOnceMessageV2Extension=W.decode(Q,Q.uint32());continue}case 60:{if(Z!==482)break;J.pollCreationMessageV2=e.decode(Q,Q.uint32());continue}case 61:{if(Z!==490)break;J.scheduledCallCreationMessage=O8.decode(Q,Q.uint32());continue}case 62:{if(Z!==498)break;J.groupMentionedMessage=W.decode(Q,Q.uint32());continue}case 63:{if(Z!==506)break;J.pinInChatMessage=H8.decode(Q,Q.uint32());continue}case 64:{if(Z!==514)break;J.pollCreationMessageV3=e.decode(Q,Q.uint32());continue}case 65:{if(Z!==522)break;J.scheduledCallEditMessage=A8.decode(Q,Q.uint32());continue}case 66:{if(Z!==530)break;J.ptvMessage=t.decode(Q,Q.uint32());continue}case 67:{if(Z!==538)break;J.botInvokeMessage=W.decode(Q,Q.uint32());continue}case 69:{if(Z!==554)break;J.callLogMesssage=OJ.decode(Q,Q.uint32());continue}case 70:{if(Z!==562)break;J.messageHistoryBundle=G$.decode(Q,Q.uint32());continue}case 71:{if(Z!==570)break;J.encCommentMessage=wJ.decode(Q,Q.uint32());continue}case 72:{if(Z!==578)break;J.bcallMessage=PJ.decode(Q,Q.uint32());continue}case 74:{if(Z!==594)break;J.lottieStickerMessage=W.decode(Q,Q.uint32());continue}case 75:{if(Z!==602)break;J.eventMessage=cJ.decode(Q,Q.uint32());continue}case 76:{if(Z!==610)break;J.encEventResponseMessage=nJ.decode(Q,Q.uint32());continue}case 77:{if(Z!==618)break;J.commentMessage=_J.decode(Q,Q.uint32());continue}case 78:{if(Z!==626)break;J.newsletterAdminInviteMessage=MX.decode(Q,Q.uint32());continue}case 80:{if(Z!==642)break;J.placeholderMessage=z8.decode(Q,Q.uint32());continue}case 82:{if(Z!==658)break;J.secretEncryptedMessage=E8.decode(Q,Q.uint32());continue}case 83:{if(Z!==666)break;J.albumMessage=zJ.decode(Q,Q.uint32());continue}case 85:{if(Z!==682)break;J.eventCoverImage=W.decode(Q,Q.uint32());continue}case 86:{if(Z!==690)break;J.stickerPackMessage=f8.decode(Q,Q.uint32());continue}case 87:{if(Z!==698)break;J.statusMentionMessage=W.decode(Q,Q.uint32());continue}case 88:{if(Z!==706)break;J.pollResultSnapshotMessage=n0.decode(Q,Q.uint32());continue}case 90:{if(Z!==722)break;J.pollCreationOptionImageMessage=W.decode(Q,Q.uint32());continue}case 91:{if(Z!==730)break;J.associatedChildMessage=W.decode(Q,Q.uint32());continue}case 92:{if(Z!==738)break;J.groupStatusMentionMessage=W.decode(Q,Q.uint32());continue}case 93:{if(Z!==746)break;J.pollCreationMessageV4=W.decode(Q,Q.uint32());continue}case 95:{if(Z!==762)break;J.statusAddYours=W.decode(Q,Q.uint32());continue}case 96:{if(Z!==770)break;J.groupStatusMessage=W.decode(Q,Q.uint32());continue}case 97:{if(Z!==778)break;J.richResponseMessage=qK.decode(Q,Q.uint32());continue}case 98:{if(Z!==786)break;J.statusNotificationMessage=S8.decode(Q,Q.uint32());continue}case 99:{if(Z!==794)break;J.limitSharingMessage=W.decode(Q,Q.uint32());continue}case 100:{if(Z!==802)break;J.botTaskMessage=W.decode(Q,Q.uint32());continue}case 101:{if(Z!==810)break;J.questionMessage=W.decode(Q,Q.uint32());continue}case 102:{if(Z!==818)break;J.messageHistoryNotice=EX.decode(Q,Q.uint32());continue}case 103:{if(Z!==826)break;J.groupStatusMessageV2=W.decode(Q,Q.uint32());continue}case 104:{if(Z!==834)break;J.botForwardedMessage=W.decode(Q,Q.uint32());continue}case 105:{if(Z!==842)break;J.statusQuestionAnswerMessage=v8.decode(Q,Q.uint32());continue}case 106:{if(Z!==850)break;J.questionReplyMessage=W.decode(Q,Q.uint32());continue}case 107:{if(Z!==858)break;J.questionResponseMessage=F8.decode(Q,Q.uint32());continue}case 109:{if(Z!==874)break;J.statusQuotedMessage=T8.decode(Q,Q.uint32());continue}case 110:{if(Z!==882)break;J.statusStickerInteractionMessage=y8.decode(Q,Q.uint32());continue}case 111:{if(Z!==890)break;J.pollCreationMessageV5=e.decode(Q,Q.uint32());continue}case 113:{if(Z!==906)break;J.newsletterFollowerInviteMessageV2=WX.decode(Q,Q.uint32());continue}case 115:{if(Z!==922)break;J.pollResultSnapshotMessageV3=n0.decode(Q,Q.uint32());continue}case 116:{if(Z!==930)break;J.newsletterAdminProfileMessage=W.decode(Q,Q.uint32());continue}case 117:{if(Z!==938)break;J.newsletterAdminProfileMessageV2=W.decode(Q,Q.uint32());continue}case 118:{if(Z!==946)break;J.spoilerMessage=W.decode(Q,Q.uint32());continue}case 119:{if(Z!==954)break;J.pollCreationMessageV6=e.decode(Q,Q.uint32());continue}case 120:{if(Z!==962)break;J.conditionalRevealMessage=hJ.decode(Q,Q.uint32());continue}case 121:{if(Z!==970)break;J.pollAddOptionMessage=V8.decode(Q,Q.uint32());continue}case 122:{if(Z!==978)break;J.eventInviteMessage=jJ.decode(Q,Q.uint32());continue}case 123:{if(Z!==986)break;J.groupRootKeyShare=hZ.decode(Q,Q.uint32());continue}case 124:{if(Z!==994)break;J.paymentReminderMessage=_X.decode(Q,Q.uint32());continue}case 125:{if(Z!==1002)break;J.splitPaymentMessage=W8.decode(Q,Q.uint32());continue}case 126:{if(Z!==1010)break;J.newsletterAdminProfileStatusMessage=W.decode(Q,Q.uint32());continue}case 127:{if(Z!==1018)break;J.rootSecretDistributeMessage=B8.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return w.fromPartial($??{})},fromPartial($){let K=I5();return K.conversation=$.conversation??void 0,K.senderKeyDistributionMessage=$.senderKeyDistributionMessage!==void 0&&$.senderKeyDistributionMessage!==null?d0.fromPartial($.senderKeyDistributionMessage):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?H$.fromPartial($.contactMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?oJ.fromPartial($.extendedTextMessage):void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?Y$.fromPartial($.audioMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.call=$.call!==void 0&&$.call!==null?BJ.fromPartial($.call):void 0,K.chat=$.chat!==void 0&&$.chat!==null?MJ.fromPartial($.chat):void 0,K.protocolMessage=$.protocolMessage!==void 0&&$.protocolMessage!==null?P8.fromPartial($.protocolMessage):void 0,K.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?lJ.fromPartial($.contactsArrayMessage):void 0,K.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?c.fromPartial($.highlyStructuredMessage):void 0,K.fastRatchetKeySenderKeyDistributionMessage=$.fastRatchetKeySenderKeyDistributionMessage!==void 0&&$.fastRatchetKeySenderKeyDistributionMessage!==null?d0.fromPartial($.fastRatchetKeySenderKeyDistributionMessage):void 0,K.sendPaymentMessage=$.sendPaymentMessage!==void 0&&$.sendPaymentMessage!==null?M8.fromPartial($.sendPaymentMessage):void 0,K.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?V$.fromPartial($.liveLocationMessage):void 0,K.requestPaymentMessage=$.requestPaymentMessage!==void 0&&$.requestPaymentMessage!==null?k8.fromPartial($.requestPaymentMessage):void 0,K.declinePaymentRequestMessage=$.declinePaymentRequestMessage!==void 0&&$.declinePaymentRequestMessage!==null?pJ.fromPartial($.declinePaymentRequestMessage):void 0,K.cancelPaymentRequestMessage=$.cancelPaymentRequestMessage!==void 0&&$.cancelPaymentRequestMessage!==null?EJ.fromPartial($.cancelPaymentRequestMessage):void 0,K.templateMessage=$.templateMessage!==void 0&&$.templateMessage!==null?P$.fromPartial($.templateMessage):void 0,K.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?L$.fromPartial($.stickerMessage):void 0,K.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?iJ.fromPartial($.groupInviteMessage):void 0,K.templateButtonReplyMessage=$.templateButtonReplyMessage!==void 0&&$.templateButtonReplyMessage!==null?l8.fromPartial($.templateButtonReplyMessage):void 0,K.productMessage=$.productMessage!==void 0&&$.productMessage!==null?D$.fromPartial($.productMessage):void 0,K.deviceSentMessage=$.deviceSentMessage!==void 0&&$.deviceSentMessage!==null?uJ.fromPartial($.deviceSentMessage):void 0,K.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?x$.fromPartial($.messageContextInfo):void 0,K.listMessage=$.listMessage!==void 0&&$.listMessage!==null?LX.fromPartial($.listMessage):void 0,K.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?W.fromPartial($.viewOnceMessage):void 0,K.orderMessage=$.orderMessage!==void 0&&$.orderMessage!==null?IX.fromPartial($.orderMessage):void 0,K.listResponseMessage=$.listResponseMessage!==void 0&&$.listResponseMessage!==null?BX.fromPartial($.listResponseMessage):void 0,K.ephemeralMessage=$.ephemeralMessage!==void 0&&$.ephemeralMessage!==null?W.fromPartial($.ephemeralMessage):void 0,K.invoiceMessage=$.invoiceMessage!==void 0&&$.invoiceMessage!==null?UX.fromPartial($.invoiceMessage):void 0,K.buttonsMessage=$.buttonsMessage!==void 0&&$.buttonsMessage!==null?FJ.fromPartial($.buttonsMessage):void 0,K.buttonsResponseMessage=$.buttonsResponseMessage!==void 0&&$.buttonsResponseMessage!==null?RJ.fromPartial($.buttonsResponseMessage):void 0,K.paymentInviteMessage=$.paymentInviteMessage!==void 0&&$.paymentInviteMessage!==null?vX.fromPartial($.paymentInviteMessage):void 0,K.interactiveMessage=$.interactiveMessage!==void 0&&$.interactiveMessage!==null?k0.fromPartial($.interactiveMessage):void 0,K.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?x8.fromPartial($.reactionMessage):void 0,K.stickerSyncRmrMessage=$.stickerSyncRmrMessage!==void 0&&$.stickerSyncRmrMessage!==null?h8.fromPartial($.stickerSyncRmrMessage):void 0,K.interactiveResponseMessage=$.interactiveResponseMessage!==void 0&&$.interactiveResponseMessage!==null?zX.fromPartial($.interactiveResponseMessage):void 0,K.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?e.fromPartial($.pollCreationMessage):void 0,K.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?C8.fromPartial($.pollUpdateMessage):void 0,K.keepInChatMessage=$.keepInChatMessage!==void 0&&$.keepInChatMessage!==null?CX.fromPartial($.keepInChatMessage):void 0,K.documentWithCaptionMessage=$.documentWithCaptionMessage!==void 0&&$.documentWithCaptionMessage!==null?W.fromPartial($.documentWithCaptionMessage):void 0,K.requestPhoneNumberMessage=$.requestPhoneNumberMessage!==void 0&&$.requestPhoneNumberMessage!==null?N8.fromPartial($.requestPhoneNumberMessage):void 0,K.viewOnceMessageV2=$.viewOnceMessageV2!==void 0&&$.viewOnceMessageV2!==null?W.fromPartial($.viewOnceMessageV2):void 0,K.encReactionMessage=$.encReactionMessage!==void 0&&$.encReactionMessage!==null?dJ.fromPartial($.encReactionMessage):void 0,K.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?W.fromPartial($.editedMessage):void 0,K.viewOnceMessageV2Extension=$.viewOnceMessageV2Extension!==void 0&&$.viewOnceMessageV2Extension!==null?W.fromPartial($.viewOnceMessageV2Extension):void 0,K.pollCreationMessageV2=$.pollCreationMessageV2!==void 0&&$.pollCreationMessageV2!==null?e.fromPartial($.pollCreationMessageV2):void 0,K.scheduledCallCreationMessage=$.scheduledCallCreationMessage!==void 0&&$.scheduledCallCreationMessage!==null?O8.fromPartial($.scheduledCallCreationMessage):void 0,K.groupMentionedMessage=$.groupMentionedMessage!==void 0&&$.groupMentionedMessage!==null?W.fromPartial($.groupMentionedMessage):void 0,K.pinInChatMessage=$.pinInChatMessage!==void 0&&$.pinInChatMessage!==null?H8.fromPartial($.pinInChatMessage):void 0,K.pollCreationMessageV3=$.pollCreationMessageV3!==void 0&&$.pollCreationMessageV3!==null?e.fromPartial($.pollCreationMessageV3):void 0,K.scheduledCallEditMessage=$.scheduledCallEditMessage!==void 0&&$.scheduledCallEditMessage!==null?A8.fromPartial($.scheduledCallEditMessage):void 0,K.ptvMessage=$.ptvMessage!==void 0&&$.ptvMessage!==null?t.fromPartial($.ptvMessage):void 0,K.botInvokeMessage=$.botInvokeMessage!==void 0&&$.botInvokeMessage!==null?W.fromPartial($.botInvokeMessage):void 0,K.callLogMesssage=$.callLogMesssage!==void 0&&$.callLogMesssage!==null?OJ.fromPartial($.callLogMesssage):void 0,K.messageHistoryBundle=$.messageHistoryBundle!==void 0&&$.messageHistoryBundle!==null?G$.fromPartial($.messageHistoryBundle):void 0,K.encCommentMessage=$.encCommentMessage!==void 0&&$.encCommentMessage!==null?wJ.fromPartial($.encCommentMessage):void 0,K.bcallMessage=$.bcallMessage!==void 0&&$.bcallMessage!==null?PJ.fromPartial($.bcallMessage):void 0,K.lottieStickerMessage=$.lottieStickerMessage!==void 0&&$.lottieStickerMessage!==null?W.fromPartial($.lottieStickerMessage):void 0,K.eventMessage=$.eventMessage!==void 0&&$.eventMessage!==null?cJ.fromPartial($.eventMessage):void 0,K.encEventResponseMessage=$.encEventResponseMessage!==void 0&&$.encEventResponseMessage!==null?nJ.fromPartial($.encEventResponseMessage):void 0,K.commentMessage=$.commentMessage!==void 0&&$.commentMessage!==null?_J.fromPartial($.commentMessage):void 0,K.newsletterAdminInviteMessage=$.newsletterAdminInviteMessage!==void 0&&$.newsletterAdminInviteMessage!==null?MX.fromPartial($.newsletterAdminInviteMessage):void 0,K.placeholderMessage=$.placeholderMessage!==void 0&&$.placeholderMessage!==null?z8.fromPartial($.placeholderMessage):void 0,K.secretEncryptedMessage=$.secretEncryptedMessage!==void 0&&$.secretEncryptedMessage!==null?E8.fromPartial($.secretEncryptedMessage):void 0,K.albumMessage=$.albumMessage!==void 0&&$.albumMessage!==null?zJ.fromPartial($.albumMessage):void 0,K.eventCoverImage=$.eventCoverImage!==void 0&&$.eventCoverImage!==null?W.fromPartial($.eventCoverImage):void 0,K.stickerPackMessage=$.stickerPackMessage!==void 0&&$.stickerPackMessage!==null?f8.fromPartial($.stickerPackMessage):void 0,K.statusMentionMessage=$.statusMentionMessage!==void 0&&$.statusMentionMessage!==null?W.fromPartial($.statusMentionMessage):void 0,K.pollResultSnapshotMessage=$.pollResultSnapshotMessage!==void 0&&$.pollResultSnapshotMessage!==null?n0.fromPartial($.pollResultSnapshotMessage):void 0,K.pollCreationOptionImageMessage=$.pollCreationOptionImageMessage!==void 0&&$.pollCreationOptionImageMessage!==null?W.fromPartial($.pollCreationOptionImageMessage):void 0,K.associatedChildMessage=$.associatedChildMessage!==void 0&&$.associatedChildMessage!==null?W.fromPartial($.associatedChildMessage):void 0,K.groupStatusMentionMessage=$.groupStatusMentionMessage!==void 0&&$.groupStatusMentionMessage!==null?W.fromPartial($.groupStatusMentionMessage):void 0,K.pollCreationMessageV4=$.pollCreationMessageV4!==void 0&&$.pollCreationMessageV4!==null?W.fromPartial($.pollCreationMessageV4):void 0,K.statusAddYours=$.statusAddYours!==void 0&&$.statusAddYours!==null?W.fromPartial($.statusAddYours):void 0,K.groupStatusMessage=$.groupStatusMessage!==void 0&&$.groupStatusMessage!==null?W.fromPartial($.groupStatusMessage):void 0,K.richResponseMessage=$.richResponseMessage!==void 0&&$.richResponseMessage!==null?qK.fromPartial($.richResponseMessage):void 0,K.statusNotificationMessage=$.statusNotificationMessage!==void 0&&$.statusNotificationMessage!==null?S8.fromPartial($.statusNotificationMessage):void 0,K.limitSharingMessage=$.limitSharingMessage!==void 0&&$.limitSharingMessage!==null?W.fromPartial($.limitSharingMessage):void 0,K.botTaskMessage=$.botTaskMessage!==void 0&&$.botTaskMessage!==null?W.fromPartial($.botTaskMessage):void 0,K.questionMessage=$.questionMessage!==void 0&&$.questionMessage!==null?W.fromPartial($.questionMessage):void 0,K.messageHistoryNotice=$.messageHistoryNotice!==void 0&&$.messageHistoryNotice!==null?EX.fromPartial($.messageHistoryNotice):void 0,K.groupStatusMessageV2=$.groupStatusMessageV2!==void 0&&$.groupStatusMessageV2!==null?W.fromPartial($.groupStatusMessageV2):void 0,K.botForwardedMessage=$.botForwardedMessage!==void 0&&$.botForwardedMessage!==null?W.fromPartial($.botForwardedMessage):void 0,K.statusQuestionAnswerMessage=$.statusQuestionAnswerMessage!==void 0&&$.statusQuestionAnswerMessage!==null?v8.fromPartial($.statusQuestionAnswerMessage):void 0,K.questionReplyMessage=$.questionReplyMessage!==void 0&&$.questionReplyMessage!==null?W.fromPartial($.questionReplyMessage):void 0,K.questionResponseMessage=$.questionResponseMessage!==void 0&&$.questionResponseMessage!==null?F8.fromPartial($.questionResponseMessage):void 0,K.statusQuotedMessage=$.statusQuotedMessage!==void 0&&$.statusQuotedMessage!==null?T8.fromPartial($.statusQuotedMessage):void 0,K.statusStickerInteractionMessage=$.statusStickerInteractionMessage!==void 0&&$.statusStickerInteractionMessage!==null?y8.fromPartial($.statusStickerInteractionMessage):void 0,K.pollCreationMessageV5=$.pollCreationMessageV5!==void 0&&$.pollCreationMessageV5!==null?e.fromPartial($.pollCreationMessageV5):void 0,K.newsletterFollowerInviteMessageV2=$.newsletterFollowerInviteMessageV2!==void 0&&$.newsletterFollowerInviteMessageV2!==null?WX.fromPartial($.newsletterFollowerInviteMessageV2):void 0,K.pollResultSnapshotMessageV3=$.pollResultSnapshotMessageV3!==void 0&&$.pollResultSnapshotMessageV3!==null?n0.fromPartial($.pollResultSnapshotMessageV3):void 0,K.newsletterAdminProfileMessage=$.newsletterAdminProfileMessage!==void 0&&$.newsletterAdminProfileMessage!==null?W.fromPartial($.newsletterAdminProfileMessage):void 0,K.newsletterAdminProfileMessageV2=$.newsletterAdminProfileMessageV2!==void 0&&$.newsletterAdminProfileMessageV2!==null?W.fromPartial($.newsletterAdminProfileMessageV2):void 0,K.spoilerMessage=$.spoilerMessage!==void 0&&$.spoilerMessage!==null?W.fromPartial($.spoilerMessage):void 0,K.pollCreationMessageV6=$.pollCreationMessageV6!==void 0&&$.pollCreationMessageV6!==null?e.fromPartial($.pollCreationMessageV6):void 0,K.conditionalRevealMessage=$.conditionalRevealMessage!==void 0&&$.conditionalRevealMessage!==null?hJ.fromPartial($.conditionalRevealMessage):void 0,K.pollAddOptionMessage=$.pollAddOptionMessage!==void 0&&$.pollAddOptionMessage!==null?V8.fromPartial($.pollAddOptionMessage):void 0,K.eventInviteMessage=$.eventInviteMessage!==void 0&&$.eventInviteMessage!==null?jJ.fromPartial($.eventInviteMessage):void 0,K.groupRootKeyShare=$.groupRootKeyShare!==void 0&&$.groupRootKeyShare!==null?hZ.fromPartial($.groupRootKeyShare):void 0,K.paymentReminderMessage=$.paymentReminderMessage!==void 0&&$.paymentReminderMessage!==null?_X.fromPartial($.paymentReminderMessage):void 0,K.splitPaymentMessage=$.splitPaymentMessage!==void 0&&$.splitPaymentMessage!==null?W8.fromPartial($.splitPaymentMessage):void 0,K.newsletterAdminProfileStatusMessage=$.newsletterAdminProfileStatusMessage!==void 0&&$.newsletterAdminProfileStatusMessage!==null?W.fromPartial($.newsletterAdminProfileStatusMessage):void 0,K.rootSecretDistributeMessage=$.rootSecretDistributeMessage!==void 0&&$.rootSecretDistributeMessage!==null?B8.fromPartial($.rootSecretDistributeMessage):void 0,K}};function S5(){return{}}var zJ={encode($,K=new H){if($.expectedImageCount!==void 0)K.uint32(16).uint32($.expectedImageCount);if($.expectedVideoCount!==void 0)K.uint32(24).uint32($.expectedVideoCount);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=S5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==16)break;J.expectedImageCount=Q.uint32();continue}case 3:{if(Z!==24)break;J.expectedVideoCount=Q.uint32();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zJ.fromPartial($??{})},fromPartial($){let K=S5();return K.expectedImageCount=$.expectedImageCount??void 0,K.expectedVideoCount=$.expectedVideoCount??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function v5(){return{}}var VJ={encode($,K=new H){if($.collectionNames!==void 0&&$.collectionNames.length!==0)for(let Q of $.collectionNames)K.uint32(10).string(Q);if($.timestamp!==void 0)K.uint32(16).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=v5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.collectionNames===void 0)J.collectionNames=[];let Y=Q.string();if(Y!==void 0)J.collectionNames.push(Y);continue}case 2:{if(Z!==16)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VJ.fromPartial($??{})},fromPartial($){let K=v5();return K.collectionNames=$.collectionNames?.map((Q)=>Q)||void 0,K.timestamp=$.timestamp??void 0,K}};function T5(){return{}}var GJ={encode($,K=new H){if($.keyId!==void 0)q$.encode($.keyId,K.uint32(10).fork()).join();if($.keyData!==void 0)UJ.encode($.keyData,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=T5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.keyId=q$.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.keyData=UJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GJ.fromPartial($??{})},fromPartial($){let K=T5();return K.keyId=$.keyId!==void 0&&$.keyId!==null?q$.fromPartial($.keyId):void 0,K.keyData=$.keyData!==void 0&&$.keyData!==null?UJ.fromPartial($.keyData):void 0,K}};function y5(){return{}}var UJ={encode($,K=new H){if($.keyData!==void 0)K.uint32(10).bytes($.keyData);if($.fingerprint!==void 0)CJ.encode($.fingerprint,K.uint32(18).fork()).join();if($.timestamp!==void 0)K.uint32(24).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=y5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.keyData=Q.bytes();continue}case 2:{if(Z!==18)break;J.fingerprint=CJ.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UJ.fromPartial($??{})},fromPartial($){let K=y5();return K.keyData=$.keyData??void 0,K.fingerprint=$.fingerprint!==void 0&&$.fingerprint!==null?CJ.fromPartial($.fingerprint):void 0,K.timestamp=$.timestamp??void 0,K}};function f5(){return{}}var CJ={encode($,K=new H){if($.rawId!==void 0)K.uint32(8).uint32($.rawId);if($.currentIndex!==void 0)K.uint32(16).uint32($.currentIndex);if($.deviceIndexes!==void 0&&$.deviceIndexes.length!==0){K.uint32(26).fork();for(let Q of $.deviceIndexes)K.uint32(Q);K.join()}return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=f5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.rawId=Q.uint32();continue}case 2:{if(Z!==16)break;J.currentIndex=Q.uint32();continue}case 3:{if(Z===24){if(J.deviceIndexes===void 0)J.deviceIndexes=[];J.deviceIndexes.push(Q.uint32());continue}if(Z===26){if(J.deviceIndexes===void 0)J.deviceIndexes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.deviceIndexes.push(Q.uint32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CJ.fromPartial($??{})},fromPartial($){let K=f5();return K.rawId=$.rawId??void 0,K.currentIndex=$.currentIndex??void 0,K.deviceIndexes=$.deviceIndexes?.map((Q)=>Q)||void 0,K}};function _5(){return{}}var q$={encode($,K=new H){if($.keyId!==void 0)K.uint32(10).bytes($.keyId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.keyId=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return q$.fromPartial($??{})},fromPartial($){let K=_5();return K.keyId=$.keyId??void 0,K}};function h5(){return{}}var DJ={encode($,K=new H){if($.keyIds!==void 0&&$.keyIds.length!==0)for(let Q of $.keyIds)q$.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=h5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.keyIds===void 0)J.keyIds=[];let Y=q$.decode(Q,Q.uint32());if(Y!==void 0)J.keyIds.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DJ.fromPartial($??{})},fromPartial($){let K=h5();return K.keyIds=$.keyIds?.map((Q)=>q$.fromPartial(Q))||void 0,K}};function l5(){return{}}var LJ={encode($,K=new H){if($.keys!==void 0&&$.keys.length!==0)for(let Q of $.keys)GJ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=l5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.keys===void 0)J.keys=[];let Y=GJ.decode(Q,Q.uint32());if(Y!==void 0)J.keys.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LJ.fromPartial($??{})},fromPartial($){let K=l5();return K.keys=$.keys?.map((Q)=>GJ.fromPartial(Q))||void 0,K}};function p5(){return{}}var Y$={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.mimetype!==void 0)K.uint32(18).string($.mimetype);if($.fileSha256!==void 0)K.uint32(26).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(32).uint64($.fileLength);if($.seconds!==void 0)K.uint32(40).uint32($.seconds);if($.ptt!==void 0)K.uint32(48).bool($.ptt);if($.mediaKey!==void 0)K.uint32(58).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(66).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(74).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(80).int64($.mediaKeyTimestamp);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.streamingSidecar!==void 0)K.uint32(146).bytes($.streamingSidecar);if($.waveform!==void 0)K.uint32(154).bytes($.waveform);if($.backgroundArgb!==void 0)K.uint32(165).fixed32($.backgroundArgb);if($.viewOnce!==void 0)K.uint32(168).bool($.viewOnce);if($.accessibilityLabel!==void 0)K.uint32(178).string($.accessibilityLabel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=p5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.mimetype=Q.string();continue}case 3:{if(Z!==26)break;J.fileSha256=Q.bytes();continue}case 4:{if(Z!==32)break;J.fileLength=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.seconds=Q.uint32();continue}case 6:{if(Z!==48)break;J.ptt=Q.bool();continue}case 7:{if(Z!==58)break;J.mediaKey=Q.bytes();continue}case 8:{if(Z!==66)break;J.fileEncSha256=Q.bytes();continue}case 9:{if(Z!==74)break;J.directPath=Q.string();continue}case 10:{if(Z!==80)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.streamingSidecar=Q.bytes();continue}case 19:{if(Z!==154)break;J.waveform=Q.bytes();continue}case 20:{if(Z!==165)break;J.backgroundArgb=Q.fixed32();continue}case 21:{if(Z!==168)break;J.viewOnce=Q.bool();continue}case 22:{if(Z!==178)break;J.accessibilityLabel=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Y$.fromPartial($??{})},fromPartial($){let K=p5();return K.url=$.url??void 0,K.mimetype=$.mimetype??void 0,K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.seconds=$.seconds??void 0,K.ptt=$.ptt??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.streamingSidecar=$.streamingSidecar??void 0,K.waveform=$.waveform??void 0,K.backgroundArgb=$.backgroundArgb??void 0,K.viewOnce=$.viewOnce??void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K}};function u5(){return{}}var PJ={encode($,K=new H){if($.sessionId!==void 0)K.uint32(10).string($.sessionId);if($.mediaType!==void 0)K.uint32(16).int32($.mediaType);if($.masterKey!==void 0)K.uint32(26).bytes($.masterKey);if($.caption!==void 0)K.uint32(34).string($.caption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=u5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sessionId=Q.string();continue}case 2:{if(Z!==16)break;J.mediaType=Q.int32();continue}case 3:{if(Z!==26)break;J.masterKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.caption=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PJ.fromPartial($??{})},fromPartial($){let K=u5();return K.sessionId=$.sessionId??void 0,K.mediaType=$.mediaType??void 0,K.masterKey=$.masterKey??void 0,K.caption=$.caption??void 0,K}};function w5(){return{}}var FJ={encode($,K=new H){if($.contentText!==void 0)K.uint32(50).string($.contentText);if($.footerText!==void 0)K.uint32(58).string($.footerText);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(66).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let Q of $.buttons)xJ.encode(Q,K.uint32(74).fork()).join();if($.headerType!==void 0)K.uint32(80).int32($.headerType);if($.text!==void 0)K.uint32(10).string($.text);if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=w5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 6:{if(Z!==50)break;J.contentText=Q.string();continue}case 7:{if(Z!==58)break;J.footerText=Q.string();continue}case 8:{if(Z!==66)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;if(J.buttons===void 0)J.buttons=[];let Y=xJ.decode(Q,Q.uint32());if(Y!==void 0)J.buttons.push(Y);continue}case 10:{if(Z!==80)break;J.headerType=Q.int32();continue}case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.locationMessage=a.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FJ.fromPartial($??{})},fromPartial($){let K=w5();return K.contentText=$.contentText??void 0,K.footerText=$.footerText??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.buttons=$.buttons?.map((Q)=>xJ.fromPartial(Q))||void 0,K.headerType=$.headerType??void 0,K.text=$.text??void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K}};function n5(){return{}}var xJ={encode($,K=new H){if($.buttonId!==void 0)K.uint32(10).string($.buttonId);if($.buttonText!==void 0)kJ.encode($.buttonText,K.uint32(18).fork()).join();if($.type!==void 0)K.uint32(24).int32($.type);if($.nativeFlowInfo!==void 0)NJ.encode($.nativeFlowInfo,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=n5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.buttonId=Q.string();continue}case 2:{if(Z!==18)break;J.buttonText=kJ.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.type=Q.int32();continue}case 4:{if(Z!==34)break;J.nativeFlowInfo=NJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xJ.fromPartial($??{})},fromPartial($){let K=n5();return K.buttonId=$.buttonId??void 0,K.buttonText=$.buttonText!==void 0&&$.buttonText!==null?kJ.fromPartial($.buttonText):void 0,K.type=$.type??void 0,K.nativeFlowInfo=$.nativeFlowInfo!==void 0&&$.nativeFlowInfo!==null?NJ.fromPartial($.nativeFlowInfo):void 0,K}};function d5(){return{}}var kJ={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=d5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kJ.fromPartial($??{})},fromPartial($){let K=d5();return K.displayText=$.displayText??void 0,K}};function j5(){return{}}var NJ={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.paramsJson!==void 0)K.uint32(18).string($.paramsJson);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=j5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.paramsJson=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NJ.fromPartial($??{})},fromPartial($){let K=j5();return K.name=$.name??void 0,K.paramsJson=$.paramsJson??void 0,K}};function c5(){return{}}var RJ={encode($,K=new H){if($.selectedButtonId!==void 0)K.uint32(10).string($.selectedButtonId);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(26).fork()).join();if($.type!==void 0)K.uint32(32).int32($.type);if($.selectedDisplayText!==void 0)K.uint32(18).string($.selectedDisplayText);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=c5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.selectedButtonId=Q.string();continue}case 3:{if(Z!==26)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.selectedDisplayText=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RJ.fromPartial($??{})},fromPartial($){let K=c5();return K.selectedButtonId=$.selectedButtonId??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.type=$.type??void 0,K.selectedDisplayText=$.selectedDisplayText??void 0,K}};function o5(){return{}}var BJ={encode($,K=new H){if($.callKey!==void 0)K.uint32(10).bytes($.callKey);if($.conversionSource!==void 0)K.uint32(18).string($.conversionSource);if($.conversionData!==void 0)K.uint32(26).bytes($.conversionData);if($.conversionDelaySeconds!==void 0)K.uint32(32).uint32($.conversionDelaySeconds);if($.ctwaSignals!==void 0)K.uint32(42).string($.ctwaSignals);if($.ctwaPayload!==void 0)K.uint32(50).bytes($.ctwaPayload);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(58).fork()).join();if($.nativeFlowCallButtonPayload!==void 0)K.uint32(66).string($.nativeFlowCallButtonPayload);if($.deeplinkPayload!==void 0)K.uint32(74).string($.deeplinkPayload);if($.messageContextInfo!==void 0)x$.encode($.messageContextInfo,K.uint32(82).fork()).join();if($.callEntryPoint!==void 0)K.uint32(88).uint32($.callEntryPoint);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=o5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.callKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.conversionSource=Q.string();continue}case 3:{if(Z!==26)break;J.conversionData=Q.bytes();continue}case 4:{if(Z!==32)break;J.conversionDelaySeconds=Q.uint32();continue}case 5:{if(Z!==42)break;J.ctwaSignals=Q.string();continue}case 6:{if(Z!==50)break;J.ctwaPayload=Q.bytes();continue}case 7:{if(Z!==58)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.nativeFlowCallButtonPayload=Q.string();continue}case 9:{if(Z!==74)break;J.deeplinkPayload=Q.string();continue}case 10:{if(Z!==82)break;J.messageContextInfo=x$.decode(Q,Q.uint32());continue}case 11:{if(Z!==88)break;J.callEntryPoint=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BJ.fromPartial($??{})},fromPartial($){let K=o5();return K.callKey=$.callKey??void 0,K.conversionSource=$.conversionSource??void 0,K.conversionData=$.conversionData??void 0,K.conversionDelaySeconds=$.conversionDelaySeconds??void 0,K.ctwaSignals=$.ctwaSignals??void 0,K.ctwaPayload=$.ctwaPayload??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.nativeFlowCallButtonPayload=$.nativeFlowCallButtonPayload??void 0,K.deeplinkPayload=$.deeplinkPayload??void 0,K.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?x$.fromPartial($.messageContextInfo):void 0,K.callEntryPoint=$.callEntryPoint??void 0,K}};function b5(){return{}}var OJ={encode($,K=new H){if($.isVideo!==void 0)K.uint32(8).bool($.isVideo);if($.callOutcome!==void 0)K.uint32(16).int32($.callOutcome);if($.durationSecs!==void 0)K.uint32(24).int64($.durationSecs);if($.callType!==void 0)K.uint32(32).int32($.callType);if($.participants!==void 0&&$.participants.length!==0)for(let Q of $.participants)AJ.encode(Q,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=b5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isVideo=Q.bool();continue}case 2:{if(Z!==16)break;J.callOutcome=Q.int32();continue}case 3:{if(Z!==24)break;J.durationSecs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.callType=Q.int32();continue}case 5:{if(Z!==42)break;if(J.participants===void 0)J.participants=[];let Y=AJ.decode(Q,Q.uint32());if(Y!==void 0)J.participants.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OJ.fromPartial($??{})},fromPartial($){let K=b5();return K.isVideo=$.isVideo??void 0,K.callOutcome=$.callOutcome??void 0,K.durationSecs=$.durationSecs??void 0,K.callType=$.callType??void 0,K.participants=$.participants?.map((Q)=>AJ.fromPartial(Q))||void 0,K}};function i5(){return{}}var AJ={encode($,K=new H){if($.jid!==void 0)K.uint32(10).string($.jid);if($.callOutcome!==void 0)K.uint32(16).int32($.callOutcome);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=i5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.jid=Q.string();continue}case 2:{if(Z!==16)break;J.callOutcome=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AJ.fromPartial($??{})},fromPartial($){let K=i5();return K.jid=$.jid??void 0,K.callOutcome=$.callOutcome??void 0,K}};function m5(){return{}}var EJ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=m5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EJ.fromPartial($??{})},fromPartial($){let K=m5();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K}};function g5(){return{}}var MJ={encode($,K=new H){if($.displayName!==void 0)K.uint32(10).string($.displayName);if($.id!==void 0)K.uint32(18).string($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=g5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayName=Q.string();continue}case 2:{if(Z!==18)break;J.id=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MJ.fromPartial($??{})},fromPartial($){let K=g5();return K.displayName=$.displayName??void 0,K.id=$.id??void 0,K}};function t5(){return{}}var WJ={encode($,K=new H){if($.directPath!==void 0)K.uint32(10).string($.directPath);if($.mediaKey!==void 0)K.uint32(18).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(26).bytes($.fileEncSha256);if($.fileSha256!==void 0)K.uint32(34).bytes($.fileSha256);if($.dimLevel!==void 0)K.uint32(45).float($.dimLevel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=t5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.directPath=Q.string();continue}case 2:{if(Z!==18)break;J.mediaKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.fileSha256=Q.bytes();continue}case 5:{if(Z!==45)break;J.dimLevel=Q.float();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WJ.fromPartial($??{})},fromPartial($){let K=t5();return K.directPath=$.directPath??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.fileSha256=$.fileSha256??void 0,K.dimLevel=$.dimLevel??void 0,K}};function r5(){return{}}var IJ={encode($,K=new H){if($.isDoodleEnabled!==void 0)K.uint32(8).bool($.isDoodleEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=r5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isDoodleEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IJ.fromPartial($??{})},fromPartial($){let K=r5();return K.isDoodleEnabled=$.isDoodleEnabled??void 0,K}};function a5(){return{}}var SJ={encode($,K=new H){if($.colorLight!==void 0)K.uint32(10).string($.colorLight);if($.colorDark!==void 0)K.uint32(18).string($.colorDark);if($.isDoodleEnabled!==void 0)K.uint32(24).bool($.isDoodleEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=a5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.colorLight=Q.string();continue}case 2:{if(Z!==18)break;J.colorDark=Q.string();continue}case 3:{if(Z!==24)break;J.isDoodleEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SJ.fromPartial($??{})},fromPartial($){let K=a5();return K.colorLight=$.colorLight??void 0,K.colorDark=$.colorDark??void 0,K.isDoodleEnabled=$.isDoodleEnabled??void 0,K}};function s5(){return{}}var vJ={encode($,K=new H){if($.stockImageId!==void 0)K.uint32(10).string($.stockImageId);if($.dimLevel!==void 0)K.uint32(21).float($.dimLevel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=s5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stockImageId=Q.string();continue}case 2:{if(Z!==21)break;J.dimLevel=Q.float();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vJ.fromPartial($??{})},fromPartial($){let K=s5();return K.stockImageId=$.stockImageId??void 0,K.dimLevel=$.dimLevel??void 0,K}};function e5(){return{}}var TJ={encode($,K=new H){if($.settingTimestampMs!==void 0)K.uint32(8).int64($.settingTimestampMs);if($.clearTheme!==void 0)K.uint32(16).bool($.clearTheme);if($.colorSchemeId!==void 0)K.uint32(26).string($.colorSchemeId);if($.defaultWallpaper!==void 0)IJ.encode($.defaultWallpaper,K.uint32(82).fork()).join();if($.solidColor!==void 0)SJ.encode($.solidColor,K.uint32(90).fork()).join();if($.stockImage!==void 0)vJ.encode($.stockImage,K.uint32(98).fork()).join();if($.customImage!==void 0)WJ.encode($.customImage,K.uint32(106).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=e5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.settingTimestampMs=Q.int64Number();continue}case 2:{if(Z!==16)break;J.clearTheme=Q.bool();continue}case 3:{if(Z!==26)break;J.colorSchemeId=Q.string();continue}case 10:{if(Z!==82)break;J.defaultWallpaper=IJ.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.solidColor=SJ.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.stockImage=vJ.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.customImage=WJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TJ.fromPartial($??{})},fromPartial($){let K=e5();return K.settingTimestampMs=$.settingTimestampMs??void 0,K.clearTheme=$.clearTheme??void 0,K.colorSchemeId=$.colorSchemeId??void 0,K.defaultWallpaper=$.defaultWallpaper!==void 0&&$.defaultWallpaper!==null?IJ.fromPartial($.defaultWallpaper):void 0,K.solidColor=$.solidColor!==void 0&&$.solidColor!==null?SJ.fromPartial($.solidColor):void 0,K.stockImage=$.stockImage!==void 0&&$.stockImage!==null?vJ.fromPartial($.stockImage):void 0,K.customImage=$.customImage!==void 0&&$.customImage!==null?WJ.fromPartial($.customImage):void 0,K}};function $U(){return{}}var yJ={encode($,K=new H){if($.status!==void 0)K.uint32(8).int32($.status);if($.senderNotificationTimestampMs!==void 0)K.uint32(16).int64($.senderNotificationTimestampMs);if($.consumerLid!==void 0)K.uint32(26).string($.consumerLid);if($.consumerPhoneNumber!==void 0)K.uint32(34).string($.consumerPhoneNumber);if($.notificationContent!==void 0)fJ.encode($.notificationContent,K.uint32(42).fork()).join();if($.shouldSuppressNotification!==void 0)K.uint32(48).bool($.shouldSuppressNotification);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$U();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.status=Q.int32();continue}case 2:{if(Z!==16)break;J.senderNotificationTimestampMs=Q.int64Number();continue}case 3:{if(Z!==26)break;J.consumerLid=Q.string();continue}case 4:{if(Z!==34)break;J.consumerPhoneNumber=Q.string();continue}case 5:{if(Z!==42)break;J.notificationContent=fJ.decode(Q,Q.uint32());continue}case 6:{if(Z!==48)break;J.shouldSuppressNotification=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yJ.fromPartial($??{})},fromPartial($){let K=$U();return K.status=$.status??void 0,K.senderNotificationTimestampMs=$.senderNotificationTimestampMs??void 0,K.consumerLid=$.consumerLid??void 0,K.consumerPhoneNumber=$.consumerPhoneNumber??void 0,K.notificationContent=$.notificationContent!==void 0&&$.notificationContent!==null?fJ.fromPartial($.notificationContent):void 0,K.shouldSuppressNotification=$.shouldSuppressNotification??void 0,K}};function KU(){return{}}var fJ={encode($,K=new H){if($.handoffNotificationText!==void 0)K.uint32(10).string($.handoffNotificationText);if($.extraJson!==void 0)K.uint32(18).string($.extraJson);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.handoffNotificationText=Q.string();continue}case 2:{if(Z!==18)break;J.extraJson=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fJ.fromPartial($??{})},fromPartial($){let K=KU();return K.handoffNotificationText=$.handoffNotificationText??void 0,K.extraJson=$.extraJson??void 0,K}};function QU(){return{}}var _J={encode($,K=new H){if($.message!==void 0)w.encode($.message,K.uint32(10).fork()).join();if($.targetMessageKey!==void 0)x.encode($.targetMessageKey,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.message=w.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.targetMessageKey=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _J.fromPartial($??{})},fromPartial($){let K=QU();return K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?x.fromPartial($.targetMessageKey):void 0,K}};function ZU(){return{}}var hJ={encode($,K=new H){if($.encPayload!==void 0)K.uint32(10).bytes($.encPayload);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);if($.conditionalRevealMessageType!==void 0)K.uint32(24).int32($.conditionalRevealMessageType);if($.revealKeyId!==void 0)K.uint32(34).string($.revealKeyId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}case 3:{if(Z!==24)break;J.conditionalRevealMessageType=Q.int32();continue}case 4:{if(Z!==34)break;J.revealKeyId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hJ.fromPartial($??{})},fromPartial($){let K=ZU();return K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K.conditionalRevealMessageType=$.conditionalRevealMessageType??void 0,K.revealKeyId=$.revealKeyId??void 0,K}};function JU(){return{}}var H$={encode($,K=new H){if($.displayName!==void 0)K.uint32(10).string($.displayName);if($.vcard!==void 0)K.uint32(130).string($.vcard);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.isSelfContact!==void 0)K.uint32(144).bool($.isSelfContact);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayName=Q.string();continue}case 16:{if(Z!==130)break;J.vcard=Q.string();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.isSelfContact=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return H$.fromPartial($??{})},fromPartial($){let K=JU();return K.displayName=$.displayName??void 0,K.vcard=$.vcard??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.isSelfContact=$.isSelfContact??void 0,K}};function XU(){return{}}var lJ={encode($,K=new H){if($.displayName!==void 0)K.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let Q of $.contacts)H$.encode(Q,K.uint32(18).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayName=Q.string();continue}case 2:{if(Z!==18)break;if(J.contacts===void 0)J.contacts=[];let Y=H$.decode(Q,Q.uint32());if(Y!==void 0)J.contacts.push(Y);continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lJ.fromPartial($??{})},fromPartial($){let K=XU();return K.displayName=$.displayName??void 0,K.contacts=$.contacts?.map((Q)=>H$.fromPartial(Q))||void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function qU(){return{}}var pJ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pJ.fromPartial($??{})},fromPartial($){let K=qU();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K}};function YU(){return{}}var uJ={encode($,K=new H){if($.destinationJid!==void 0)K.uint32(10).string($.destinationJid);if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();if($.phash!==void 0)K.uint32(26).string($.phash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.destinationJid=Q.string();continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.phash=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uJ.fromPartial($??{})},fromPartial($){let K=YU();return K.destinationJid=$.destinationJid??void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.phash=$.phash??void 0,K}};function HU(){return{}}var $0={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.mimetype!==void 0)K.uint32(18).string($.mimetype);if($.title!==void 0)K.uint32(26).string($.title);if($.fileSha256!==void 0)K.uint32(34).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(40).uint64($.fileLength);if($.pageCount!==void 0)K.uint32(48).uint32($.pageCount);if($.mediaKey!==void 0)K.uint32(58).bytes($.mediaKey);if($.fileName!==void 0)K.uint32(66).string($.fileName);if($.fileEncSha256!==void 0)K.uint32(74).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(82).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(88).int64($.mediaKeyTimestamp);if($.contactVcard!==void 0)K.uint32(96).bool($.contactVcard);if($.thumbnailDirectPath!==void 0)K.uint32(106).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(114).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(122).bytes($.thumbnailEncSha256);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.thumbnailHeight!==void 0)K.uint32(144).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)K.uint32(152).uint32($.thumbnailWidth);if($.caption!==void 0)K.uint32(162).string($.caption);if($.accessibilityLabel!==void 0)K.uint32(170).string($.accessibilityLabel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.mimetype=Q.string();continue}case 3:{if(Z!==26)break;J.title=Q.string();continue}case 4:{if(Z!==34)break;J.fileSha256=Q.bytes();continue}case 5:{if(Z!==40)break;J.fileLength=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.pageCount=Q.uint32();continue}case 7:{if(Z!==58)break;J.mediaKey=Q.bytes();continue}case 8:{if(Z!==66)break;J.fileName=Q.string();continue}case 9:{if(Z!==74)break;J.fileEncSha256=Q.bytes();continue}case 10:{if(Z!==82)break;J.directPath=Q.string();continue}case 11:{if(Z!==88)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 12:{if(Z!==96)break;J.contactVcard=Q.bool();continue}case 13:{if(Z!==106)break;J.thumbnailDirectPath=Q.string();continue}case 14:{if(Z!==114)break;J.thumbnailSha256=Q.bytes();continue}case 15:{if(Z!==122)break;J.thumbnailEncSha256=Q.bytes();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.thumbnailHeight=Q.uint32();continue}case 19:{if(Z!==152)break;J.thumbnailWidth=Q.uint32();continue}case 20:{if(Z!==162)break;J.caption=Q.string();continue}case 21:{if(Z!==170)break;J.accessibilityLabel=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $0.fromPartial($??{})},fromPartial($){let K=HU();return K.url=$.url??void 0,K.mimetype=$.mimetype??void 0,K.title=$.title??void 0,K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.pageCount=$.pageCount??void 0,K.mediaKey=$.mediaKey??void 0,K.fileName=$.fileName??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.contactVcard=$.contactVcard??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.thumbnailHeight=$.thumbnailHeight??void 0,K.thumbnailWidth=$.thumbnailWidth??void 0,K.caption=$.caption??void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K}};function zU(){return{}}var wJ={encode($,K=new H){if($.targetMessageKey!==void 0)x.encode($.targetMessageKey,K.uint32(10).fork()).join();if($.encPayload!==void 0)K.uint32(18).bytes($.encPayload);if($.encIv!==void 0)K.uint32(26).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.targetMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encPayload=Q.bytes();continue}case 3:{if(Z!==26)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wJ.fromPartial($??{})},fromPartial($){let K=zU();return K.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?x.fromPartial($.targetMessageKey):void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function VU(){return{}}var nJ={encode($,K=new H){if($.eventCreationMessageKey!==void 0)x.encode($.eventCreationMessageKey,K.uint32(10).fork()).join();if($.encPayload!==void 0)K.uint32(18).bytes($.encPayload);if($.encIv!==void 0)K.uint32(26).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.eventCreationMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encPayload=Q.bytes();continue}case 3:{if(Z!==26)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nJ.fromPartial($??{})},fromPartial($){let K=VU();return K.eventCreationMessageKey=$.eventCreationMessageKey!==void 0&&$.eventCreationMessageKey!==null?x.fromPartial($.eventCreationMessageKey):void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function GU(){return{}}var dJ={encode($,K=new H){if($.targetMessageKey!==void 0)x.encode($.targetMessageKey,K.uint32(10).fork()).join();if($.encPayload!==void 0)K.uint32(18).bytes($.encPayload);if($.encIv!==void 0)K.uint32(26).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.targetMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encPayload=Q.bytes();continue}case 3:{if(Z!==26)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dJ.fromPartial($??{})},fromPartial($){let K=GU();return K.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?x.fromPartial($.targetMessageKey):void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function UU(){return{}}var jJ={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(10).fork()).join();if($.eventId!==void 0)K.uint32(18).string($.eventId);if($.eventTitle!==void 0)K.uint32(26).string($.eventTitle);if($.jpegThumbnail!==void 0)K.uint32(34).bytes($.jpegThumbnail);if($.startTime!==void 0)K.uint32(40).int64($.startTime);if($.caption!==void 0)K.uint32(50).string($.caption);if($.isCanceled!==void 0)K.uint32(56).bool($.isCanceled);if($.endTime!==void 0)K.uint32(64).int64($.endTime);if($.callLink!==void 0)K.uint32(74).string($.callLink);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.eventId=Q.string();continue}case 3:{if(Z!==26)break;J.eventTitle=Q.string();continue}case 4:{if(Z!==34)break;J.jpegThumbnail=Q.bytes();continue}case 5:{if(Z!==40)break;J.startTime=Q.int64Number();continue}case 6:{if(Z!==50)break;J.caption=Q.string();continue}case 7:{if(Z!==56)break;J.isCanceled=Q.bool();continue}case 8:{if(Z!==64)break;J.endTime=Q.int64Number();continue}case 9:{if(Z!==74)break;J.callLink=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jJ.fromPartial($??{})},fromPartial($){let K=UU();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.eventId=$.eventId??void 0,K.eventTitle=$.eventTitle??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.startTime=$.startTime??void 0,K.caption=$.caption??void 0,K.isCanceled=$.isCanceled??void 0,K.endTime=$.endTime??void 0,K.callLink=$.callLink??void 0,K}};function CU(){return{}}var cJ={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(10).fork()).join();if($.isCanceled!==void 0)K.uint32(16).bool($.isCanceled);if($.name!==void 0)K.uint32(26).string($.name);if($.description!==void 0)K.uint32(34).string($.description);if($.location!==void 0)a.encode($.location,K.uint32(42).fork()).join();if($.joinLink!==void 0)K.uint32(50).string($.joinLink);if($.startTime!==void 0)K.uint32(56).int64($.startTime);if($.endTime!==void 0)K.uint32(64).int64($.endTime);if($.extraGuestsAllowed!==void 0)K.uint32(72).bool($.extraGuestsAllowed);if($.isScheduleCall!==void 0)K.uint32(80).bool($.isScheduleCall);if($.hasReminder!==void 0)K.uint32(88).bool($.hasReminder);if($.reminderOffsetSec!==void 0)K.uint32(96).int64($.reminderOffsetSec);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.isCanceled=Q.bool();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==34)break;J.description=Q.string();continue}case 5:{if(Z!==42)break;J.location=a.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.joinLink=Q.string();continue}case 7:{if(Z!==56)break;J.startTime=Q.int64Number();continue}case 8:{if(Z!==64)break;J.endTime=Q.int64Number();continue}case 9:{if(Z!==72)break;J.extraGuestsAllowed=Q.bool();continue}case 10:{if(Z!==80)break;J.isScheduleCall=Q.bool();continue}case 11:{if(Z!==88)break;J.hasReminder=Q.bool();continue}case 12:{if(Z!==96)break;J.reminderOffsetSec=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cJ.fromPartial($??{})},fromPartial($){let K=CU();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.isCanceled=$.isCanceled??void 0,K.name=$.name??void 0,K.description=$.description??void 0,K.location=$.location!==void 0&&$.location!==null?a.fromPartial($.location):void 0,K.joinLink=$.joinLink??void 0,K.startTime=$.startTime??void 0,K.endTime=$.endTime??void 0,K.extraGuestsAllowed=$.extraGuestsAllowed??void 0,K.isScheduleCall=$.isScheduleCall??void 0,K.hasReminder=$.hasReminder??void 0,K.reminderOffsetSec=$.reminderOffsetSec??void 0,K}};function DU(){return{}}var W0={encode($,K=new H){if($.response!==void 0)K.uint32(8).int32($.response);if($.timestampMs!==void 0)K.uint32(16).int64($.timestampMs);if($.extraGuestCount!==void 0)K.uint32(24).int32($.extraGuestCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.response=Q.int32();continue}case 2:{if(Z!==16)break;J.timestampMs=Q.int64Number();continue}case 3:{if(Z!==24)break;J.extraGuestCount=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W0.fromPartial($??{})},fromPartial($){let K=DU();return K.response=$.response??void 0,K.timestampMs=$.timestampMs??void 0,K.extraGuestCount=$.extraGuestCount??void 0,K}};function LU(){return{}}var oJ={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.matchedText!==void 0)K.uint32(18).string($.matchedText);if($.description!==void 0)K.uint32(42).string($.description);if($.title!==void 0)K.uint32(50).string($.title);if($.textArgb!==void 0)K.uint32(61).fixed32($.textArgb);if($.backgroundArgb!==void 0)K.uint32(69).fixed32($.backgroundArgb);if($.font!==void 0)K.uint32(72).int32($.font);if($.previewType!==void 0)K.uint32(80).int32($.previewType);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.doNotPlayInline!==void 0)K.uint32(144).bool($.doNotPlayInline);if($.thumbnailDirectPath!==void 0)K.uint32(154).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(162).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(170).bytes($.thumbnailEncSha256);if($.mediaKey!==void 0)K.uint32(178).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)K.uint32(184).int64($.mediaKeyTimestamp);if($.thumbnailHeight!==void 0)K.uint32(192).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)K.uint32(200).uint32($.thumbnailWidth);if($.inviteLinkGroupType!==void 0)K.uint32(208).int32($.inviteLinkGroupType);if($.inviteLinkParentGroupSubjectV2!==void 0)K.uint32(218).string($.inviteLinkParentGroupSubjectV2);if($.inviteLinkParentGroupThumbnailV2!==void 0)K.uint32(226).bytes($.inviteLinkParentGroupThumbnailV2);if($.inviteLinkGroupTypeV2!==void 0)K.uint32(232).int32($.inviteLinkGroupTypeV2);if($.viewOnce!==void 0)K.uint32(240).bool($.viewOnce);if($.videoHeight!==void 0)K.uint32(248).uint32($.videoHeight);if($.videoWidth!==void 0)K.uint32(256).uint32($.videoWidth);if($.faviconMMSMetadata!==void 0)AX.encode($.faviconMMSMetadata,K.uint32(266).fork()).join();if($.linkPreviewMetadata!==void 0)DX.encode($.linkPreviewMetadata,K.uint32(274).fork()).join();if($.paymentLinkMetadata!==void 0)C$.encode($.paymentLinkMetadata,K.uint32(282).fork()).join();if($.endCardTiles!==void 0&&$.endCardTiles.length!==0)for(let Q of $.endCardTiles)w8.encode(Q,K.uint32(290).fork()).join();if($.videoContentUrl!==void 0)K.uint32(298).string($.videoContentUrl);if($.musicMetadata!==void 0)L0.encode($.musicMetadata,K.uint32(306).fork()).join();if($.paymentExtendedMetadata!==void 0)SX.encode($.paymentExtendedMetadata,K.uint32(314).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;J.matchedText=Q.string();continue}case 5:{if(Z!==42)break;J.description=Q.string();continue}case 6:{if(Z!==50)break;J.title=Q.string();continue}case 7:{if(Z!==61)break;J.textArgb=Q.fixed32();continue}case 8:{if(Z!==69)break;J.backgroundArgb=Q.fixed32();continue}case 9:{if(Z!==72)break;J.font=Q.int32();continue}case 10:{if(Z!==80)break;J.previewType=Q.int32();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.doNotPlayInline=Q.bool();continue}case 19:{if(Z!==154)break;J.thumbnailDirectPath=Q.string();continue}case 20:{if(Z!==162)break;J.thumbnailSha256=Q.bytes();continue}case 21:{if(Z!==170)break;J.thumbnailEncSha256=Q.bytes();continue}case 22:{if(Z!==178)break;J.mediaKey=Q.bytes();continue}case 23:{if(Z!==184)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 24:{if(Z!==192)break;J.thumbnailHeight=Q.uint32();continue}case 25:{if(Z!==200)break;J.thumbnailWidth=Q.uint32();continue}case 26:{if(Z!==208)break;J.inviteLinkGroupType=Q.int32();continue}case 27:{if(Z!==218)break;J.inviteLinkParentGroupSubjectV2=Q.string();continue}case 28:{if(Z!==226)break;J.inviteLinkParentGroupThumbnailV2=Q.bytes();continue}case 29:{if(Z!==232)break;J.inviteLinkGroupTypeV2=Q.int32();continue}case 30:{if(Z!==240)break;J.viewOnce=Q.bool();continue}case 31:{if(Z!==248)break;J.videoHeight=Q.uint32();continue}case 32:{if(Z!==256)break;J.videoWidth=Q.uint32();continue}case 33:{if(Z!==266)break;J.faviconMMSMetadata=AX.decode(Q,Q.uint32());continue}case 34:{if(Z!==274)break;J.linkPreviewMetadata=DX.decode(Q,Q.uint32());continue}case 35:{if(Z!==282)break;J.paymentLinkMetadata=C$.decode(Q,Q.uint32());continue}case 36:{if(Z!==290)break;if(J.endCardTiles===void 0)J.endCardTiles=[];let Y=w8.decode(Q,Q.uint32());if(Y!==void 0)J.endCardTiles.push(Y);continue}case 37:{if(Z!==298)break;J.videoContentUrl=Q.string();continue}case 38:{if(Z!==306)break;J.musicMetadata=L0.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.paymentExtendedMetadata=SX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oJ.fromPartial($??{})},fromPartial($){let K=LU();return K.text=$.text??void 0,K.matchedText=$.matchedText??void 0,K.description=$.description??void 0,K.title=$.title??void 0,K.textArgb=$.textArgb??void 0,K.backgroundArgb=$.backgroundArgb??void 0,K.font=$.font??void 0,K.previewType=$.previewType??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.doNotPlayInline=$.doNotPlayInline??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.thumbnailHeight=$.thumbnailHeight??void 0,K.thumbnailWidth=$.thumbnailWidth??void 0,K.inviteLinkGroupType=$.inviteLinkGroupType??void 0,K.inviteLinkParentGroupSubjectV2=$.inviteLinkParentGroupSubjectV2??void 0,K.inviteLinkParentGroupThumbnailV2=$.inviteLinkParentGroupThumbnailV2??void 0,K.inviteLinkGroupTypeV2=$.inviteLinkGroupTypeV2??void 0,K.viewOnce=$.viewOnce??void 0,K.videoHeight=$.videoHeight??void 0,K.videoWidth=$.videoWidth??void 0,K.faviconMMSMetadata=$.faviconMMSMetadata!==void 0&&$.faviconMMSMetadata!==null?AX.fromPartial($.faviconMMSMetadata):void 0,K.linkPreviewMetadata=$.linkPreviewMetadata!==void 0&&$.linkPreviewMetadata!==null?DX.fromPartial($.linkPreviewMetadata):void 0,K.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?C$.fromPartial($.paymentLinkMetadata):void 0,K.endCardTiles=$.endCardTiles?.map((Q)=>w8.fromPartial(Q))||void 0,K.videoContentUrl=$.videoContentUrl??void 0,K.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?L0.fromPartial($.musicMetadata):void 0,K.paymentExtendedMetadata=$.paymentExtendedMetadata!==void 0&&$.paymentExtendedMetadata!==null?SX.fromPartial($.paymentExtendedMetadata):void 0,K}};function PU(){return{}}var bJ={encode($,K=new H){if($.historyFromTimestamp!==void 0)K.uint32(8).uint64($.historyFromTimestamp);if($.historyDurationDays!==void 0)K.uint32(16).uint32($.historyDurationDays);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.historyFromTimestamp=Q.uint64Number();continue}case 2:{if(Z!==16)break;J.historyDurationDays=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bJ.fromPartial($??{})},fromPartial($){let K=PU();return K.historyFromTimestamp=$.historyFromTimestamp??void 0,K.historyDurationDays=$.historyDurationDays??void 0,K}};function FU(){return{}}var x0={encode($,K=new H){if($.requestId!==void 0)K.uint32(10).string($.requestId);if($.businessProduct!==void 0)K.uint32(18).string($.businessProduct);if($.opaqueClientData!==void 0)K.uint32(26).bytes($.opaqueClientData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.requestId=Q.string();continue}case 2:{if(Z!==18)break;J.businessProduct=Q.string();continue}case 3:{if(Z!==26)break;J.opaqueClientData=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x0.fromPartial($??{})},fromPartial($){let K=FU();return K.requestId=$.requestId??void 0,K.businessProduct=$.businessProduct??void 0,K.opaqueClientData=$.opaqueClientData??void 0,K}};function xU(){return{}}var W={encode($,K=new H){if($.message!==void 0)w.encode($.message,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.message=w.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W.fromPartial($??{})},fromPartial($){let K=xU();return K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K}};function kU(){return{}}var iJ={encode($,K=new H){if($.groupJid!==void 0)K.uint32(10).string($.groupJid);if($.inviteCode!==void 0)K.uint32(18).string($.inviteCode);if($.inviteExpiration!==void 0)K.uint32(24).int64($.inviteExpiration);if($.groupName!==void 0)K.uint32(34).string($.groupName);if($.jpegThumbnail!==void 0)K.uint32(42).bytes($.jpegThumbnail);if($.caption!==void 0)K.uint32(50).string($.caption);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(58).fork()).join();if($.groupType!==void 0)K.uint32(64).int32($.groupType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupJid=Q.string();continue}case 2:{if(Z!==18)break;J.inviteCode=Q.string();continue}case 3:{if(Z!==24)break;J.inviteExpiration=Q.int64Number();continue}case 4:{if(Z!==34)break;J.groupName=Q.string();continue}case 5:{if(Z!==42)break;J.jpegThumbnail=Q.bytes();continue}case 6:{if(Z!==50)break;J.caption=Q.string();continue}case 7:{if(Z!==58)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 8:{if(Z!==64)break;J.groupType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iJ.fromPartial($??{})},fromPartial($){let K=kU();return K.groupJid=$.groupJid??void 0,K.inviteCode=$.inviteCode??void 0,K.inviteExpiration=$.inviteExpiration??void 0,K.groupName=$.groupName??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.groupType=$.groupType??void 0,K}};function NU(){return{}}var c={encode($,K=new H){if($.namespace!==void 0)K.uint32(10).string($.namespace);if($.elementName!==void 0)K.uint32(18).string($.elementName);if($.params!==void 0&&$.params.length!==0)for(let Q of $.params)K.uint32(26).string(Q);if($.fallbackLg!==void 0)K.uint32(34).string($.fallbackLg);if($.fallbackLc!==void 0)K.uint32(42).string($.fallbackLc);if($.localizableParams!==void 0&&$.localizableParams.length!==0)for(let Q of $.localizableParams)mJ.encode(Q,K.uint32(50).fork()).join();if($.deterministicLg!==void 0)K.uint32(58).string($.deterministicLg);if($.deterministicLc!==void 0)K.uint32(66).string($.deterministicLc);if($.hydratedHsm!==void 0)P$.encode($.hydratedHsm,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.namespace=Q.string();continue}case 2:{if(Z!==18)break;J.elementName=Q.string();continue}case 3:{if(Z!==26)break;if(J.params===void 0)J.params=[];let Y=Q.string();if(Y!==void 0)J.params.push(Y);continue}case 4:{if(Z!==34)break;J.fallbackLg=Q.string();continue}case 5:{if(Z!==42)break;J.fallbackLc=Q.string();continue}case 6:{if(Z!==50)break;if(J.localizableParams===void 0)J.localizableParams=[];let Y=mJ.decode(Q,Q.uint32());if(Y!==void 0)J.localizableParams.push(Y);continue}case 7:{if(Z!==58)break;J.deterministicLg=Q.string();continue}case 8:{if(Z!==66)break;J.deterministicLc=Q.string();continue}case 9:{if(Z!==74)break;J.hydratedHsm=P$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c.fromPartial($??{})},fromPartial($){let K=NU();return K.namespace=$.namespace??void 0,K.elementName=$.elementName??void 0,K.params=$.params?.map((Q)=>Q)||void 0,K.fallbackLg=$.fallbackLg??void 0,K.fallbackLc=$.fallbackLc??void 0,K.localizableParams=$.localizableParams?.map((Q)=>mJ.fromPartial(Q))||void 0,K.deterministicLg=$.deterministicLg??void 0,K.deterministicLc=$.deterministicLc??void 0,K.hydratedHsm=$.hydratedHsm!==void 0&&$.hydratedHsm!==null?P$.fromPartial($.hydratedHsm):void 0,K}};function RU(){return{}}var mJ={encode($,K=new H){if($.default!==void 0)K.uint32(10).string($.default);if($.currency!==void 0)gJ.encode($.currency,K.uint32(18).fork()).join();if($.dateTime!==void 0)tJ.encode($.dateTime,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.default=Q.string();continue}case 2:{if(Z!==18)break;J.currency=gJ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.dateTime=tJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mJ.fromPartial($??{})},fromPartial($){let K=RU();return K.default=$.default??void 0,K.currency=$.currency!==void 0&&$.currency!==null?gJ.fromPartial($.currency):void 0,K.dateTime=$.dateTime!==void 0&&$.dateTime!==null?tJ.fromPartial($.dateTime):void 0,K}};function BU(){return{}}var gJ={encode($,K=new H){if($.currencyCode!==void 0)K.uint32(10).string($.currencyCode);if($.amount1000!==void 0)K.uint32(16).int64($.amount1000);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.currencyCode=Q.string();continue}case 2:{if(Z!==16)break;J.amount1000=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gJ.fromPartial($??{})},fromPartial($){let K=BU();return K.currencyCode=$.currencyCode??void 0,K.amount1000=$.amount1000??void 0,K}};function OU(){return{}}var tJ={encode($,K=new H){if($.component!==void 0)rJ.encode($.component,K.uint32(10).fork()).join();if($.unixEpoch!==void 0)aJ.encode($.unixEpoch,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.component=rJ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.unixEpoch=aJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tJ.fromPartial($??{})},fromPartial($){let K=OU();return K.component=$.component!==void 0&&$.component!==null?rJ.fromPartial($.component):void 0,K.unixEpoch=$.unixEpoch!==void 0&&$.unixEpoch!==null?aJ.fromPartial($.unixEpoch):void 0,K}};function AU(){return{}}var rJ={encode($,K=new H){if($.dayOfWeek!==void 0)K.uint32(8).int32($.dayOfWeek);if($.year!==void 0)K.uint32(16).uint32($.year);if($.month!==void 0)K.uint32(24).uint32($.month);if($.dayOfMonth!==void 0)K.uint32(32).uint32($.dayOfMonth);if($.hour!==void 0)K.uint32(40).uint32($.hour);if($.minute!==void 0)K.uint32(48).uint32($.minute);if($.calendar!==void 0)K.uint32(56).int32($.calendar);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.dayOfWeek=Q.int32();continue}case 2:{if(Z!==16)break;J.year=Q.uint32();continue}case 3:{if(Z!==24)break;J.month=Q.uint32();continue}case 4:{if(Z!==32)break;J.dayOfMonth=Q.uint32();continue}case 5:{if(Z!==40)break;J.hour=Q.uint32();continue}case 6:{if(Z!==48)break;J.minute=Q.uint32();continue}case 7:{if(Z!==56)break;J.calendar=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rJ.fromPartial($??{})},fromPartial($){let K=AU();return K.dayOfWeek=$.dayOfWeek??void 0,K.year=$.year??void 0,K.month=$.month??void 0,K.dayOfMonth=$.dayOfMonth??void 0,K.hour=$.hour??void 0,K.minute=$.minute??void 0,K.calendar=$.calendar??void 0,K}};function EU(){return{}}var aJ={encode($,K=new H){if($.timestamp!==void 0)K.uint32(8).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aJ.fromPartial($??{})},fromPartial($){let K=EU();return K.timestamp=$.timestamp??void 0,K}};function MU(){return{}}var sJ={encode($,K=new H){if($.completeAccessGranted!==void 0)K.uint32(8).bool($.completeAccessGranted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.completeAccessGranted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sJ.fromPartial($??{})},fromPartial($){let K=MU();return K.completeAccessGranted=$.completeAccessGranted??void 0,K}};function WU(){return{}}var eJ={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(16).uint64($.fileLength);if($.mediaKey!==void 0)K.uint32(26).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(42).string($.directPath);if($.syncType!==void 0)K.uint32(48).int32($.syncType);if($.chunkOrder!==void 0)K.uint32(56).uint32($.chunkOrder);if($.originalMessageId!==void 0)K.uint32(66).string($.originalMessageId);if($.progress!==void 0)K.uint32(72).uint32($.progress);if($.oldestMsgInChunkTimestampSec!==void 0)K.uint32(80).int64($.oldestMsgInChunkTimestampSec);if($.initialHistBootstrapInlinePayload!==void 0)K.uint32(90).bytes($.initialHistBootstrapInlinePayload);if($.peerDataRequestSessionId!==void 0)K.uint32(98).string($.peerDataRequestSessionId);if($.fullHistorySyncOnDemandRequestMetadata!==void 0)x0.encode($.fullHistorySyncOnDemandRequestMetadata,K.uint32(106).fork()).join();if($.encHandle!==void 0)K.uint32(114).string($.encHandle);if($.messageAccessStatus!==void 0)sJ.encode($.messageAccessStatus,K.uint32(122).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.bytes();continue}case 2:{if(Z!==16)break;J.fileLength=Q.uint64Number();continue}case 3:{if(Z!==26)break;J.mediaKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.fileEncSha256=Q.bytes();continue}case 5:{if(Z!==42)break;J.directPath=Q.string();continue}case 6:{if(Z!==48)break;J.syncType=Q.int32();continue}case 7:{if(Z!==56)break;J.chunkOrder=Q.uint32();continue}case 8:{if(Z!==66)break;J.originalMessageId=Q.string();continue}case 9:{if(Z!==72)break;J.progress=Q.uint32();continue}case 10:{if(Z!==80)break;J.oldestMsgInChunkTimestampSec=Q.int64Number();continue}case 11:{if(Z!==90)break;J.initialHistBootstrapInlinePayload=Q.bytes();continue}case 12:{if(Z!==98)break;J.peerDataRequestSessionId=Q.string();continue}case 13:{if(Z!==106)break;J.fullHistorySyncOnDemandRequestMetadata=x0.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.encHandle=Q.string();continue}case 15:{if(Z!==122)break;J.messageAccessStatus=sJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eJ.fromPartial($??{})},fromPartial($){let K=WU();return K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.syncType=$.syncType??void 0,K.chunkOrder=$.chunkOrder??void 0,K.originalMessageId=$.originalMessageId??void 0,K.progress=$.progress??void 0,K.oldestMsgInChunkTimestampSec=$.oldestMsgInChunkTimestampSec??void 0,K.initialHistBootstrapInlinePayload=$.initialHistBootstrapInlinePayload??void 0,K.peerDataRequestSessionId=$.peerDataRequestSessionId??void 0,K.fullHistorySyncOnDemandRequestMetadata=$.fullHistorySyncOnDemandRequestMetadata!==void 0&&$.fullHistorySyncOnDemandRequestMetadata!==null?x0.fromPartial($.fullHistorySyncOnDemandRequestMetadata):void 0,K.encHandle=$.encHandle??void 0,K.messageAccessStatus=$.messageAccessStatus!==void 0&&$.messageAccessStatus!==null?sJ.fromPartial($.messageAccessStatus):void 0,K}};function IU(){return{}}var i={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.mimetype!==void 0)K.uint32(18).string($.mimetype);if($.caption!==void 0)K.uint32(26).string($.caption);if($.fileSha256!==void 0)K.uint32(34).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(40).uint64($.fileLength);if($.height!==void 0)K.uint32(48).uint32($.height);if($.width!==void 0)K.uint32(56).uint32($.width);if($.mediaKey!==void 0)K.uint32(66).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(74).bytes($.fileEncSha256);if($.interactiveAnnotations!==void 0&&$.interactiveAnnotations.length!==0)for(let Q of $.interactiveAnnotations)Q0.encode(Q,K.uint32(82).fork()).join();if($.directPath!==void 0)K.uint32(90).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(96).int64($.mediaKeyTimestamp);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.firstScanSidecar!==void 0)K.uint32(146).bytes($.firstScanSidecar);if($.firstScanLength!==void 0)K.uint32(152).uint32($.firstScanLength);if($.experimentGroupId!==void 0)K.uint32(160).uint32($.experimentGroupId);if($.scansSidecar!==void 0)K.uint32(170).bytes($.scansSidecar);if($.scanLengths!==void 0&&$.scanLengths.length!==0)for(let Q of $.scanLengths)K.uint32(176).uint32(Q);if($.midQualityFileSha256!==void 0)K.uint32(186).bytes($.midQualityFileSha256);if($.midQualityFileEncSha256!==void 0)K.uint32(194).bytes($.midQualityFileEncSha256);if($.viewOnce!==void 0)K.uint32(200).bool($.viewOnce);if($.thumbnailDirectPath!==void 0)K.uint32(210).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(218).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(226).bytes($.thumbnailEncSha256);if($.staticUrl!==void 0)K.uint32(234).string($.staticUrl);if($.annotations!==void 0&&$.annotations.length!==0)for(let Q of $.annotations)Q0.encode(Q,K.uint32(242).fork()).join();if($.imageSourceType!==void 0)K.uint32(248).int32($.imageSourceType);if($.accessibilityLabel!==void 0)K.uint32(258).string($.accessibilityLabel);if($.qrUrl!==void 0)K.uint32(274).string($.qrUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.mimetype=Q.string();continue}case 3:{if(Z!==26)break;J.caption=Q.string();continue}case 4:{if(Z!==34)break;J.fileSha256=Q.bytes();continue}case 5:{if(Z!==40)break;J.fileLength=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.height=Q.uint32();continue}case 7:{if(Z!==56)break;J.width=Q.uint32();continue}case 8:{if(Z!==66)break;J.mediaKey=Q.bytes();continue}case 9:{if(Z!==74)break;J.fileEncSha256=Q.bytes();continue}case 10:{if(Z!==82)break;if(J.interactiveAnnotations===void 0)J.interactiveAnnotations=[];let Y=Q0.decode(Q,Q.uint32());if(Y!==void 0)J.interactiveAnnotations.push(Y);continue}case 11:{if(Z!==90)break;J.directPath=Q.string();continue}case 12:{if(Z!==96)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.firstScanSidecar=Q.bytes();continue}case 19:{if(Z!==152)break;J.firstScanLength=Q.uint32();continue}case 20:{if(Z!==160)break;J.experimentGroupId=Q.uint32();continue}case 21:{if(Z!==170)break;J.scansSidecar=Q.bytes();continue}case 22:{if(Z===176){if(J.scanLengths===void 0)J.scanLengths=[];J.scanLengths.push(Q.uint32());continue}if(Z===178){if(J.scanLengths===void 0)J.scanLengths=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.scanLengths.push(Q.uint32());continue}break}case 23:{if(Z!==186)break;J.midQualityFileSha256=Q.bytes();continue}case 24:{if(Z!==194)break;J.midQualityFileEncSha256=Q.bytes();continue}case 25:{if(Z!==200)break;J.viewOnce=Q.bool();continue}case 26:{if(Z!==210)break;J.thumbnailDirectPath=Q.string();continue}case 27:{if(Z!==218)break;J.thumbnailSha256=Q.bytes();continue}case 28:{if(Z!==226)break;J.thumbnailEncSha256=Q.bytes();continue}case 29:{if(Z!==234)break;J.staticUrl=Q.string();continue}case 30:{if(Z!==242)break;if(J.annotations===void 0)J.annotations=[];let Y=Q0.decode(Q,Q.uint32());if(Y!==void 0)J.annotations.push(Y);continue}case 31:{if(Z!==248)break;J.imageSourceType=Q.int32();continue}case 32:{if(Z!==258)break;J.accessibilityLabel=Q.string();continue}case 34:{if(Z!==274)break;J.qrUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i.fromPartial($??{})},fromPartial($){let K=IU();return K.url=$.url??void 0,K.mimetype=$.mimetype??void 0,K.caption=$.caption??void 0,K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.interactiveAnnotations=$.interactiveAnnotations?.map((Q)=>Q0.fromPartial(Q))||void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.firstScanSidecar=$.firstScanSidecar??void 0,K.firstScanLength=$.firstScanLength??void 0,K.experimentGroupId=$.experimentGroupId??void 0,K.scansSidecar=$.scansSidecar??void 0,K.scanLengths=$.scanLengths?.map((Q)=>Q)||void 0,K.midQualityFileSha256=$.midQualityFileSha256??void 0,K.midQualityFileEncSha256=$.midQualityFileEncSha256??void 0,K.viewOnce=$.viewOnce??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.staticUrl=$.staticUrl??void 0,K.annotations=$.annotations?.map((Q)=>Q0.fromPartial(Q))||void 0,K.imageSourceType=$.imageSourceType??void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K.qrUrl=$.qrUrl??void 0,K}};function SU(){return{}}var $X={encode($,K=new H){if($.securityNotificationEnabled!==void 0)K.uint32(8).bool($.securityNotificationEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.securityNotificationEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $X.fromPartial($??{})},fromPartial($){let K=SU();return K.securityNotificationEnabled=$.securityNotificationEnabled??void 0,K}};function vU(){return{}}var k0={encode($,K=new H){if($.header!==void 0)XX.encode($.header,K.uint32(10).fork()).join();if($.body!==void 0)KX.encode($.body,K.uint32(18).fork()).join();if($.footer!==void 0)JX.encode($.footer,K.uint32(26).fork()).join();if($.bloksWidget!==void 0)z$.encode($.bloksWidget,K.uint32(66).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(122).fork()).join();if($.urlTrackingMap!==void 0)B$.encode($.urlTrackingMap,K.uint32(130).fork()).join();if($.shopStorefrontMessage!==void 0)HX.encode($.shopStorefrontMessage,K.uint32(34).fork()).join();if($.collectionMessage!==void 0)ZX.encode($.collectionMessage,K.uint32(42).fork()).join();if($.nativeFlowMessage!==void 0)qX.encode($.nativeFlowMessage,K.uint32(50).fork()).join();if($.carouselMessage!==void 0)QX.encode($.carouselMessage,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.header=XX.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.body=KX.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.footer=JX.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.bloksWidget=z$.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.urlTrackingMap=B$.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.shopStorefrontMessage=HX.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.collectionMessage=ZX.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.nativeFlowMessage=qX.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.carouselMessage=QX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return k0.fromPartial($??{})},fromPartial($){let K=vU();return K.header=$.header!==void 0&&$.header!==null?XX.fromPartial($.header):void 0,K.body=$.body!==void 0&&$.body!==null?KX.fromPartial($.body):void 0,K.footer=$.footer!==void 0&&$.footer!==null?JX.fromPartial($.footer):void 0,K.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?z$.fromPartial($.bloksWidget):void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?B$.fromPartial($.urlTrackingMap):void 0,K.shopStorefrontMessage=$.shopStorefrontMessage!==void 0&&$.shopStorefrontMessage!==null?HX.fromPartial($.shopStorefrontMessage):void 0,K.collectionMessage=$.collectionMessage!==void 0&&$.collectionMessage!==null?ZX.fromPartial($.collectionMessage):void 0,K.nativeFlowMessage=$.nativeFlowMessage!==void 0&&$.nativeFlowMessage!==null?qX.fromPartial($.nativeFlowMessage):void 0,K.carouselMessage=$.carouselMessage!==void 0&&$.carouselMessage!==null?QX.fromPartial($.carouselMessage):void 0,K}};function TU(){return{}}var z$={encode($,K=new H){if($.uuid!==void 0)K.uint32(10).string($.uuid);if($.data!==void 0)K.uint32(18).string($.data);if($.type!==void 0)K.uint32(26).string($.type);if($.fallback!==void 0)K.uint32(34).string($.fallback);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.uuid=Q.string();continue}case 2:{if(Z!==18)break;J.data=Q.string();continue}case 3:{if(Z!==26)break;J.type=Q.string();continue}case 4:{if(Z!==34)break;J.fallback=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return z$.fromPartial($??{})},fromPartial($){let K=TU();return K.uuid=$.uuid??void 0,K.data=$.data??void 0,K.type=$.type??void 0,K.fallback=$.fallback??void 0,K}};function yU(){return{}}var KX={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KX.fromPartial($??{})},fromPartial($){let K=yU();return K.text=$.text??void 0,K}};function fU(){return{}}var QX={encode($,K=new H){if($.cards!==void 0&&$.cards.length!==0)for(let Q of $.cards)k0.encode(Q,K.uint32(10).fork()).join();if($.messageVersion!==void 0)K.uint32(16).int32($.messageVersion);if($.carouselCardType!==void 0)K.uint32(24).int32($.carouselCardType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.cards===void 0)J.cards=[];let Y=k0.decode(Q,Q.uint32());if(Y!==void 0)J.cards.push(Y);continue}case 2:{if(Z!==16)break;J.messageVersion=Q.int32();continue}case 3:{if(Z!==24)break;J.carouselCardType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QX.fromPartial($??{})},fromPartial($){let K=fU();return K.cards=$.cards?.map((Q)=>k0.fromPartial(Q))||void 0,K.messageVersion=$.messageVersion??void 0,K.carouselCardType=$.carouselCardType??void 0,K}};function _U(){return{}}var ZX={encode($,K=new H){if($.bizJid!==void 0)K.uint32(10).string($.bizJid);if($.id!==void 0)K.uint32(18).string($.id);if($.messageVersion!==void 0)K.uint32(24).int32($.messageVersion);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_U();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.bizJid=Q.string();continue}case 2:{if(Z!==18)break;J.id=Q.string();continue}case 3:{if(Z!==24)break;J.messageVersion=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZX.fromPartial($??{})},fromPartial($){let K=_U();return K.bizJid=$.bizJid??void 0,K.id=$.id??void 0,K.messageVersion=$.messageVersion??void 0,K}};function hU(){return{}}var JX={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.hasMediaAttachment!==void 0)K.uint32(24).bool($.hasMediaAttachment);if($.audioMessage!==void 0)Y$.encode($.audioMessage,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 3:{if(Z!==24)break;J.hasMediaAttachment=Q.bool();continue}case 2:{if(Z!==18)break;J.audioMessage=Y$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JX.fromPartial($??{})},fromPartial($){let K=hU();return K.text=$.text??void 0,K.hasMediaAttachment=$.hasMediaAttachment??void 0,K.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?Y$.fromPartial($.audioMessage):void 0,K}};function lU(){return{}}var XX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.subtitle!==void 0)K.uint32(18).string($.subtitle);if($.hasMediaAttachment!==void 0)K.uint32(40).bool($.hasMediaAttachment);if($.bloksWidget!==void 0)z$.encode($.bloksWidget,K.uint32(82).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(26).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(34).fork()).join();if($.jpegThumbnail!==void 0)K.uint32(50).bytes($.jpegThumbnail);if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(58).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(66).fork()).join();if($.productMessage!==void 0)D$.encode($.productMessage,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.subtitle=Q.string();continue}case 5:{if(Z!==40)break;J.hasMediaAttachment=Q.bool();continue}case 10:{if(Z!==82)break;J.bloksWidget=z$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.jpegThumbnail=Q.bytes();continue}case 7:{if(Z!==58)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.locationMessage=a.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.productMessage=D$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XX.fromPartial($??{})},fromPartial($){let K=lU();return K.title=$.title??void 0,K.subtitle=$.subtitle??void 0,K.hasMediaAttachment=$.hasMediaAttachment??void 0,K.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?z$.fromPartial($.bloksWidget):void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K.productMessage=$.productMessage!==void 0&&$.productMessage!==null?D$.fromPartial($.productMessage):void 0,K}};function pU(){return{}}var qX={encode($,K=new H){if($.buttons!==void 0&&$.buttons.length!==0)for(let Q of $.buttons)YX.encode(Q,K.uint32(10).fork()).join();if($.messageParamsJson!==void 0)K.uint32(18).string($.messageParamsJson);if($.messageVersion!==void 0)K.uint32(24).int32($.messageVersion);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.buttons===void 0)J.buttons=[];let Y=YX.decode(Q,Q.uint32());if(Y!==void 0)J.buttons.push(Y);continue}case 2:{if(Z!==18)break;J.messageParamsJson=Q.string();continue}case 3:{if(Z!==24)break;J.messageVersion=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qX.fromPartial($??{})},fromPartial($){let K=pU();return K.buttons=$.buttons?.map((Q)=>YX.fromPartial(Q))||void 0,K.messageParamsJson=$.messageParamsJson??void 0,K.messageVersion=$.messageVersion??void 0,K}};function uU(){return{}}var YX={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.buttonParamsJson!==void 0)K.uint32(18).string($.buttonParamsJson);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.buttonParamsJson=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YX.fromPartial($??{})},fromPartial($){let K=uU();return K.name=$.name??void 0,K.buttonParamsJson=$.buttonParamsJson??void 0,K}};function wU(){return{}}var HX={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.surface!==void 0)K.uint32(16).int32($.surface);if($.messageVersion!==void 0)K.uint32(24).int32($.messageVersion);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==16)break;J.surface=Q.int32();continue}case 3:{if(Z!==24)break;J.messageVersion=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HX.fromPartial($??{})},fromPartial($){let K=wU();return K.id=$.id??void 0,K.surface=$.surface??void 0,K.messageVersion=$.messageVersion??void 0,K}};function nU(){return{}}var zX={encode($,K=new H){if($.body!==void 0)VX.encode($.body,K.uint32(10).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(122).fork()).join();if($.nativeFlowResponseMessage!==void 0)GX.encode($.nativeFlowResponseMessage,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.body=VX.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.nativeFlowResponseMessage=GX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zX.fromPartial($??{})},fromPartial($){let K=nU();return K.body=$.body!==void 0&&$.body!==null?VX.fromPartial($.body):void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.nativeFlowResponseMessage=$.nativeFlowResponseMessage!==void 0&&$.nativeFlowResponseMessage!==null?GX.fromPartial($.nativeFlowResponseMessage):void 0,K}};function dU(){return{}}var VX={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.format!==void 0)K.uint32(16).int32($.format);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==16)break;J.format=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VX.fromPartial($??{})},fromPartial($){let K=dU();return K.text=$.text??void 0,K.format=$.format??void 0,K}};function jU(){return{}}var GX={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.paramsJson!==void 0)K.uint32(18).string($.paramsJson);if($.version!==void 0)K.uint32(24).int32($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.paramsJson=Q.string();continue}case 3:{if(Z!==24)break;J.version=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GX.fromPartial($??{})},fromPartial($){let K=jU();return K.name=$.name??void 0,K.paramsJson=$.paramsJson??void 0,K.version=$.version??void 0,K}};function cU(){return{}}var UX={encode($,K=new H){if($.note!==void 0)K.uint32(10).string($.note);if($.token!==void 0)K.uint32(18).string($.token);if($.attachmentType!==void 0)K.uint32(24).int32($.attachmentType);if($.attachmentMimetype!==void 0)K.uint32(34).string($.attachmentMimetype);if($.attachmentMediaKey!==void 0)K.uint32(42).bytes($.attachmentMediaKey);if($.attachmentMediaKeyTimestamp!==void 0)K.uint32(48).int64($.attachmentMediaKeyTimestamp);if($.attachmentFileSha256!==void 0)K.uint32(58).bytes($.attachmentFileSha256);if($.attachmentFileEncSha256!==void 0)K.uint32(66).bytes($.attachmentFileEncSha256);if($.attachmentDirectPath!==void 0)K.uint32(74).string($.attachmentDirectPath);if($.attachmentJpegThumbnail!==void 0)K.uint32(82).bytes($.attachmentJpegThumbnail);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.note=Q.string();continue}case 2:{if(Z!==18)break;J.token=Q.string();continue}case 3:{if(Z!==24)break;J.attachmentType=Q.int32();continue}case 4:{if(Z!==34)break;J.attachmentMimetype=Q.string();continue}case 5:{if(Z!==42)break;J.attachmentMediaKey=Q.bytes();continue}case 6:{if(Z!==48)break;J.attachmentMediaKeyTimestamp=Q.int64Number();continue}case 7:{if(Z!==58)break;J.attachmentFileSha256=Q.bytes();continue}case 8:{if(Z!==66)break;J.attachmentFileEncSha256=Q.bytes();continue}case 9:{if(Z!==74)break;J.attachmentDirectPath=Q.string();continue}case 10:{if(Z!==82)break;J.attachmentJpegThumbnail=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UX.fromPartial($??{})},fromPartial($){let K=cU();return K.note=$.note??void 0,K.token=$.token??void 0,K.attachmentType=$.attachmentType??void 0,K.attachmentMimetype=$.attachmentMimetype??void 0,K.attachmentMediaKey=$.attachmentMediaKey??void 0,K.attachmentMediaKeyTimestamp=$.attachmentMediaKeyTimestamp??void 0,K.attachmentFileSha256=$.attachmentFileSha256??void 0,K.attachmentFileEncSha256=$.attachmentFileEncSha256??void 0,K.attachmentDirectPath=$.attachmentDirectPath??void 0,K.attachmentJpegThumbnail=$.attachmentJpegThumbnail??void 0,K}};function oU(){return{}}var CX={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.keepType!==void 0)K.uint32(16).int32($.keepType);if($.timestampMs!==void 0)K.uint32(24).int64($.timestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.keepType=Q.int32();continue}case 3:{if(Z!==24)break;J.timestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CX.fromPartial($??{})},fromPartial($){let K=oU();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.keepType=$.keepType??void 0,K.timestampMs=$.timestampMs??void 0,K}};function bU(){return{}}var DX={encode($,K=new H){if($.paymentLinkMetadata!==void 0)C$.encode($.paymentLinkMetadata,K.uint32(10).fork()).join();if($.urlMetadata!==void 0)u8.encode($.urlMetadata,K.uint32(18).fork()).join();if($.fbExperimentId!==void 0)K.uint32(24).uint32($.fbExperimentId);if($.linkMediaDuration!==void 0)K.uint32(32).uint32($.linkMediaDuration);if($.socialMediaPostType!==void 0)K.uint32(40).int32($.socialMediaPostType);if($.linkInlineVideoMuted!==void 0)K.uint32(48).bool($.linkInlineVideoMuted);if($.videoContentUrl!==void 0)K.uint32(58).string($.videoContentUrl);if($.musicMetadata!==void 0)L0.encode($.musicMetadata,K.uint32(66).fork()).join();if($.videoContentCaption!==void 0)K.uint32(74).string($.videoContentCaption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.paymentLinkMetadata=C$.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.urlMetadata=u8.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.fbExperimentId=Q.uint32();continue}case 4:{if(Z!==32)break;J.linkMediaDuration=Q.uint32();continue}case 5:{if(Z!==40)break;J.socialMediaPostType=Q.int32();continue}case 6:{if(Z!==48)break;J.linkInlineVideoMuted=Q.bool();continue}case 7:{if(Z!==58)break;J.videoContentUrl=Q.string();continue}case 8:{if(Z!==66)break;J.musicMetadata=L0.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.videoContentCaption=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DX.fromPartial($??{})},fromPartial($){let K=bU();return K.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?C$.fromPartial($.paymentLinkMetadata):void 0,K.urlMetadata=$.urlMetadata!==void 0&&$.urlMetadata!==null?u8.fromPartial($.urlMetadata):void 0,K.fbExperimentId=$.fbExperimentId??void 0,K.linkMediaDuration=$.linkMediaDuration??void 0,K.socialMediaPostType=$.socialMediaPostType??void 0,K.linkInlineVideoMuted=$.linkInlineVideoMuted??void 0,K.videoContentUrl=$.videoContentUrl??void 0,K.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?L0.fromPartial($.musicMetadata):void 0,K.videoContentCaption=$.videoContentCaption??void 0,K}};function iU(){return{}}var LX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.description!==void 0)K.uint32(18).string($.description);if($.buttonText!==void 0)K.uint32(26).string($.buttonText);if($.listType!==void 0)K.uint32(32).int32($.listType);if($.sections!==void 0&&$.sections.length!==0)for(let Q of $.sections)RX.encode(Q,K.uint32(42).fork()).join();if($.productListInfo!==void 0)xX.encode($.productListInfo,K.uint32(50).fork()).join();if($.footerText!==void 0)K.uint32(58).string($.footerText);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(66).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.description=Q.string();continue}case 3:{if(Z!==26)break;J.buttonText=Q.string();continue}case 4:{if(Z!==32)break;J.listType=Q.int32();continue}case 5:{if(Z!==42)break;if(J.sections===void 0)J.sections=[];let Y=RX.decode(Q,Q.uint32());if(Y!==void 0)J.sections.push(Y);continue}case 6:{if(Z!==50)break;J.productListInfo=xX.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.footerText=Q.string();continue}case 8:{if(Z!==66)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LX.fromPartial($??{})},fromPartial($){let K=iU();return K.title=$.title??void 0,K.description=$.description??void 0,K.buttonText=$.buttonText??void 0,K.listType=$.listType??void 0,K.sections=$.sections?.map((Q)=>RX.fromPartial(Q))||void 0,K.productListInfo=$.productListInfo!==void 0&&$.productListInfo!==null?xX.fromPartial($.productListInfo):void 0,K.footerText=$.footerText??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function mU(){return{}}var PX={encode($,K=new H){if($.productId!==void 0)K.uint32(10).string($.productId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.productId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PX.fromPartial($??{})},fromPartial($){let K=mU();return K.productId=$.productId??void 0,K}};function gU(){return{}}var FX={encode($,K=new H){if($.productId!==void 0)K.uint32(10).string($.productId);if($.jpegThumbnail!==void 0)K.uint32(18).bytes($.jpegThumbnail);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.productId=Q.string();continue}case 2:{if(Z!==18)break;J.jpegThumbnail=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FX.fromPartial($??{})},fromPartial($){let K=gU();return K.productId=$.productId??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K}};function tU(){return{}}var xX={encode($,K=new H){if($.productSections!==void 0&&$.productSections.length!==0)for(let Q of $.productSections)kX.encode(Q,K.uint32(10).fork()).join();if($.headerImage!==void 0)FX.encode($.headerImage,K.uint32(18).fork()).join();if($.businessOwnerJid!==void 0)K.uint32(26).string($.businessOwnerJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.productSections===void 0)J.productSections=[];let Y=kX.decode(Q,Q.uint32());if(Y!==void 0)J.productSections.push(Y);continue}case 2:{if(Z!==18)break;J.headerImage=FX.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.businessOwnerJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xX.fromPartial($??{})},fromPartial($){let K=tU();return K.productSections=$.productSections?.map((Q)=>kX.fromPartial(Q))||void 0,K.headerImage=$.headerImage!==void 0&&$.headerImage!==null?FX.fromPartial($.headerImage):void 0,K.businessOwnerJid=$.businessOwnerJid??void 0,K}};function rU(){return{}}var kX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.products!==void 0&&$.products.length!==0)for(let Q of $.products)PX.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;if(J.products===void 0)J.products=[];let Y=PX.decode(Q,Q.uint32());if(Y!==void 0)J.products.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kX.fromPartial($??{})},fromPartial($){let K=rU();return K.title=$.title??void 0,K.products=$.products?.map((Q)=>PX.fromPartial(Q))||void 0,K}};function aU(){return{}}var NX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.description!==void 0)K.uint32(18).string($.description);if($.rowId!==void 0)K.uint32(26).string($.rowId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.description=Q.string();continue}case 3:{if(Z!==26)break;J.rowId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NX.fromPartial($??{})},fromPartial($){let K=aU();return K.title=$.title??void 0,K.description=$.description??void 0,K.rowId=$.rowId??void 0,K}};function sU(){return{}}var RX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.rows!==void 0&&$.rows.length!==0)for(let Q of $.rows)NX.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;if(J.rows===void 0)J.rows=[];let Y=NX.decode(Q,Q.uint32());if(Y!==void 0)J.rows.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RX.fromPartial($??{})},fromPartial($){let K=sU();return K.title=$.title??void 0,K.rows=$.rows?.map((Q)=>NX.fromPartial(Q))||void 0,K}};function eU(){return{}}var BX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.listType!==void 0)K.uint32(16).int32($.listType);if($.singleSelectReply!==void 0)OX.encode($.singleSelectReply,K.uint32(26).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(34).fork()).join();if($.description!==void 0)K.uint32(42).string($.description);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==16)break;J.listType=Q.int32();continue}case 3:{if(Z!==26)break;J.singleSelectReply=OX.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.description=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BX.fromPartial($??{})},fromPartial($){let K=eU();return K.title=$.title??void 0,K.listType=$.listType??void 0,K.singleSelectReply=$.singleSelectReply!==void 0&&$.singleSelectReply!==null?OX.fromPartial($.singleSelectReply):void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.description=$.description??void 0,K}};function $7(){return{}}var OX={encode($,K=new H){if($.selectedRowId!==void 0)K.uint32(10).string($.selectedRowId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.selectedRowId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OX.fromPartial($??{})},fromPartial($){let K=$7();return K.selectedRowId=$.selectedRowId??void 0,K}};function K7(){return{}}var V$={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.accuracyInMeters!==void 0)K.uint32(24).uint32($.accuracyInMeters);if($.speedInMps!==void 0)K.uint32(37).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)K.uint32(40).uint32($.degreesClockwiseFromMagneticNorth);if($.caption!==void 0)K.uint32(50).string($.caption);if($.sequenceNumber!==void 0)K.uint32(56).int64($.sequenceNumber);if($.timeOffset!==void 0)K.uint32(64).uint32($.timeOffset);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=K7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==24)break;J.accuracyInMeters=Q.uint32();continue}case 4:{if(Z!==37)break;J.speedInMps=Q.float();continue}case 5:{if(Z!==40)break;J.degreesClockwiseFromMagneticNorth=Q.uint32();continue}case 6:{if(Z!==50)break;J.caption=Q.string();continue}case 7:{if(Z!==56)break;J.sequenceNumber=Q.int64Number();continue}case 8:{if(Z!==64)break;J.timeOffset=Q.uint32();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return V$.fromPartial($??{})},fromPartial($){let K=K7();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.accuracyInMeters=$.accuracyInMeters??void 0,K.speedInMps=$.speedInMps??void 0,K.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,K.caption=$.caption??void 0,K.sequenceNumber=$.sequenceNumber??void 0,K.timeOffset=$.timeOffset??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function Q7(){return{}}var a={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.name!==void 0)K.uint32(26).string($.name);if($.address!==void 0)K.uint32(34).string($.address);if($.url!==void 0)K.uint32(42).string($.url);if($.isLive!==void 0)K.uint32(48).bool($.isLive);if($.accuracyInMeters!==void 0)K.uint32(56).uint32($.accuracyInMeters);if($.speedInMps!==void 0)K.uint32(69).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)K.uint32(72).uint32($.degreesClockwiseFromMagneticNorth);if($.comment!==void 0)K.uint32(90).string($.comment);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Q7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==34)break;J.address=Q.string();continue}case 5:{if(Z!==42)break;J.url=Q.string();continue}case 6:{if(Z!==48)break;J.isLive=Q.bool();continue}case 7:{if(Z!==56)break;J.accuracyInMeters=Q.uint32();continue}case 8:{if(Z!==69)break;J.speedInMps=Q.float();continue}case 9:{if(Z!==72)break;J.degreesClockwiseFromMagneticNorth=Q.uint32();continue}case 11:{if(Z!==90)break;J.comment=Q.string();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a.fromPartial($??{})},fromPartial($){let K=Q7();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.name=$.name??void 0,K.address=$.address??void 0,K.url=$.url??void 0,K.isLive=$.isLive??void 0,K.accuracyInMeters=$.accuracyInMeters??void 0,K.speedInMps=$.speedInMps??void 0,K.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,K.comment=$.comment??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function Z7(){return{}}var AX={encode($,K=new H){if($.thumbnailDirectPath!==void 0)K.uint32(10).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(18).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(26).bytes($.thumbnailEncSha256);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)K.uint32(40).int64($.mediaKeyTimestamp);if($.thumbnailHeight!==void 0)K.uint32(48).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)K.uint32(56).uint32($.thumbnailWidth);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Z7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.thumbnailDirectPath=Q.string();continue}case 2:{if(Z!==18)break;J.thumbnailSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.thumbnailEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 6:{if(Z!==48)break;J.thumbnailHeight=Q.uint32();continue}case 7:{if(Z!==56)break;J.thumbnailWidth=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AX.fromPartial($??{})},fromPartial($){let K=Z7();return K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.thumbnailHeight=$.thumbnailHeight??void 0,K.thumbnailWidth=$.thumbnailWidth??void 0,K}};function J7(){return{}}var G$={encode($,K=new H){if($.mimetype!==void 0)K.uint32(10).string($.mimetype);if($.fileSha256!==void 0)K.uint32(18).bytes($.fileSha256);if($.mediaKey!==void 0)K.uint32(26).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(42).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(48).int64($.mediaKeyTimestamp);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(58).fork()).join();if($.messageHistoryMetadata!==void 0)U$.encode($.messageHistoryMetadata,K.uint32(66).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=J7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.mimetype=Q.string();continue}case 2:{if(Z!==18)break;J.fileSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.mediaKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.fileEncSha256=Q.bytes();continue}case 5:{if(Z!==42)break;J.directPath=Q.string();continue}case 6:{if(Z!==48)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 7:{if(Z!==58)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.messageHistoryMetadata=U$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return G$.fromPartial($??{})},fromPartial($){let K=J7();return K.mimetype=$.mimetype??void 0,K.fileSha256=$.fileSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?U$.fromPartial($.messageHistoryMetadata):void 0,K}};function X7(){return{}}var U$={encode($,K=new H){if($.historyReceivers!==void 0&&$.historyReceivers.length!==0)for(let Q of $.historyReceivers)K.uint32(10).string(Q);if($.oldestMessageTimestampInWindow!==void 0)K.uint32(16).int64($.oldestMessageTimestampInWindow);if($.messageCount!==void 0)K.uint32(24).int64($.messageCount);if($.nonHistoryReceivers!==void 0&&$.nonHistoryReceivers.length!==0)for(let Q of $.nonHistoryReceivers)K.uint32(34).string(Q);if($.oldestMessageTimestampInBundle!==void 0)K.uint32(40).int64($.oldestMessageTimestampInBundle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=X7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.historyReceivers===void 0)J.historyReceivers=[];let Y=Q.string();if(Y!==void 0)J.historyReceivers.push(Y);continue}case 2:{if(Z!==16)break;J.oldestMessageTimestampInWindow=Q.int64Number();continue}case 3:{if(Z!==24)break;J.messageCount=Q.int64Number();continue}case 4:{if(Z!==34)break;if(J.nonHistoryReceivers===void 0)J.nonHistoryReceivers=[];let Y=Q.string();if(Y!==void 0)J.nonHistoryReceivers.push(Y);continue}case 5:{if(Z!==40)break;J.oldestMessageTimestampInBundle=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return U$.fromPartial($??{})},fromPartial($){let K=X7();return K.historyReceivers=$.historyReceivers?.map((Q)=>Q)||void 0,K.oldestMessageTimestampInWindow=$.oldestMessageTimestampInWindow??void 0,K.messageCount=$.messageCount??void 0,K.nonHistoryReceivers=$.nonHistoryReceivers?.map((Q)=>Q)||void 0,K.oldestMessageTimestampInBundle=$.oldestMessageTimestampInBundle??void 0,K}};function q7(){return{}}var EX={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(10).fork()).join();if($.messageHistoryMetadata!==void 0)U$.encode($.messageHistoryMetadata,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=q7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.messageHistoryMetadata=U$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EX.fromPartial($??{})},fromPartial($){let K=q7();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?U$.fromPartial($.messageHistoryMetadata):void 0,K}};function Y7(){return{}}var MX={encode($,K=new H){if($.newsletterJid!==void 0)K.uint32(10).string($.newsletterJid);if($.newsletterName!==void 0)K.uint32(18).string($.newsletterName);if($.jpegThumbnail!==void 0)K.uint32(26).bytes($.jpegThumbnail);if($.caption!==void 0)K.uint32(34).string($.caption);if($.inviteExpiration!==void 0)K.uint32(40).int64($.inviteExpiration);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(50).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Y7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newsletterJid=Q.string();continue}case 2:{if(Z!==18)break;J.newsletterName=Q.string();continue}case 3:{if(Z!==26)break;J.jpegThumbnail=Q.bytes();continue}case 4:{if(Z!==34)break;J.caption=Q.string();continue}case 5:{if(Z!==40)break;J.inviteExpiration=Q.int64Number();continue}case 6:{if(Z!==50)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MX.fromPartial($??{})},fromPartial($){let K=Y7();return K.newsletterJid=$.newsletterJid??void 0,K.newsletterName=$.newsletterName??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption??void 0,K.inviteExpiration=$.inviteExpiration??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function H7(){return{}}var WX={encode($,K=new H){if($.newsletterJid!==void 0)K.uint32(10).string($.newsletterJid);if($.newsletterName!==void 0)K.uint32(18).string($.newsletterName);if($.jpegThumbnail!==void 0)K.uint32(26).bytes($.jpegThumbnail);if($.caption!==void 0)K.uint32(34).string($.caption);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=H7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newsletterJid=Q.string();continue}case 2:{if(Z!==18)break;J.newsletterName=Q.string();continue}case 3:{if(Z!==26)break;J.jpegThumbnail=Q.bytes();continue}case 4:{if(Z!==34)break;J.caption=Q.string();continue}case 5:{if(Z!==42)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WX.fromPartial($??{})},fromPartial($){let K=H7();return K.newsletterJid=$.newsletterJid??void 0,K.newsletterName=$.newsletterName??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function z7(){return{}}var IX={encode($,K=new H){if($.orderId!==void 0)K.uint32(10).string($.orderId);if($.thumbnail!==void 0)K.uint32(18).bytes($.thumbnail);if($.itemCount!==void 0)K.uint32(24).int32($.itemCount);if($.status!==void 0)K.uint32(32).int32($.status);if($.surface!==void 0)K.uint32(40).int32($.surface);if($.message!==void 0)K.uint32(50).string($.message);if($.orderTitle!==void 0)K.uint32(58).string($.orderTitle);if($.sellerJid!==void 0)K.uint32(66).string($.sellerJid);if($.token!==void 0)K.uint32(74).string($.token);if($.totalAmount1000!==void 0)K.uint32(80).int64($.totalAmount1000);if($.totalCurrencyCode!==void 0)K.uint32(90).string($.totalCurrencyCode);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.messageVersion!==void 0)K.uint32(96).int32($.messageVersion);if($.orderRequestMessageId!==void 0)x.encode($.orderRequestMessageId,K.uint32(106).fork()).join();if($.catalogType!==void 0)K.uint32(122).string($.catalogType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=z7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.orderId=Q.string();continue}case 2:{if(Z!==18)break;J.thumbnail=Q.bytes();continue}case 3:{if(Z!==24)break;J.itemCount=Q.int32();continue}case 4:{if(Z!==32)break;J.status=Q.int32();continue}case 5:{if(Z!==40)break;J.surface=Q.int32();continue}case 6:{if(Z!==50)break;J.message=Q.string();continue}case 7:{if(Z!==58)break;J.orderTitle=Q.string();continue}case 8:{if(Z!==66)break;J.sellerJid=Q.string();continue}case 9:{if(Z!==74)break;J.token=Q.string();continue}case 10:{if(Z!==80)break;J.totalAmount1000=Q.int64Number();continue}case 11:{if(Z!==90)break;J.totalCurrencyCode=Q.string();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 12:{if(Z!==96)break;J.messageVersion=Q.int32();continue}case 13:{if(Z!==106)break;J.orderRequestMessageId=x.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.catalogType=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IX.fromPartial($??{})},fromPartial($){let K=z7();return K.orderId=$.orderId??void 0,K.thumbnail=$.thumbnail??void 0,K.itemCount=$.itemCount??void 0,K.status=$.status??void 0,K.surface=$.surface??void 0,K.message=$.message??void 0,K.orderTitle=$.orderTitle??void 0,K.sellerJid=$.sellerJid??void 0,K.token=$.token??void 0,K.totalAmount1000=$.totalAmount1000??void 0,K.totalCurrencyCode=$.totalCurrencyCode??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.messageVersion=$.messageVersion??void 0,K.orderRequestMessageId=$.orderRequestMessageId!==void 0&&$.orderRequestMessageId!==null?x.fromPartial($.orderRequestMessageId):void 0,K.catalogType=$.catalogType??void 0,K}};function V7(){return{}}var SX={encode($,K=new H){if($.type!==void 0)K.uint32(8).uint32($.type);if($.platform!==void 0)K.uint32(18).string($.platform);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=V7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.uint32();continue}case 2:{if(Z!==18)break;J.platform=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SX.fromPartial($??{})},fromPartial($){let K=V7();return K.type=$.type??void 0,K.platform=$.platform??void 0,K}};function G7(){return{}}var vX={encode($,K=new H){if($.serviceType!==void 0)K.uint32(8).int32($.serviceType);if($.expiryTimestamp!==void 0)K.uint32(16).int64($.expiryTimestamp);if($.incentiveEligible!==void 0)K.uint32(24).bool($.incentiveEligible);if($.referralId!==void 0)K.uint32(34).string($.referralId);if($.inviteType!==void 0)K.uint32(40).int32($.inviteType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=G7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serviceType=Q.int32();continue}case 2:{if(Z!==16)break;J.expiryTimestamp=Q.int64Number();continue}case 3:{if(Z!==24)break;J.incentiveEligible=Q.bool();continue}case 4:{if(Z!==34)break;J.referralId=Q.string();continue}case 5:{if(Z!==40)break;J.inviteType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vX.fromPartial($??{})},fromPartial($){let K=G7();return K.serviceType=$.serviceType??void 0,K.expiryTimestamp=$.expiryTimestamp??void 0,K.incentiveEligible=$.incentiveEligible??void 0,K.referralId=$.referralId??void 0,K.inviteType=$.inviteType??void 0,K}};function U7(){return{}}var C$={encode($,K=new H){if($.button!==void 0)TX.encode($.button,K.uint32(10).fork()).join();if($.header!==void 0)yX.encode($.header,K.uint32(18).fork()).join();if($.provider!==void 0)fX.encode($.provider,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=U7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.button=TX.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.header=yX.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.provider=fX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return C$.fromPartial($??{})},fromPartial($){let K=U7();return K.button=$.button!==void 0&&$.button!==null?TX.fromPartial($.button):void 0,K.header=$.header!==void 0&&$.header!==null?yX.fromPartial($.header):void 0,K.provider=$.provider!==void 0&&$.provider!==null?fX.fromPartial($.provider):void 0,K}};function C7(){return{}}var TX={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=C7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TX.fromPartial($??{})},fromPartial($){let K=C7();return K.displayText=$.displayText??void 0,K}};function D7(){return{}}var yX={encode($,K=new H){if($.headerType!==void 0)K.uint32(8).int32($.headerType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=D7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.headerType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yX.fromPartial($??{})},fromPartial($){let K=D7();return K.headerType=$.headerType??void 0,K}};function L7(){return{}}var fX={encode($,K=new H){if($.paramsJson!==void 0)K.uint32(10).string($.paramsJson);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=L7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.paramsJson=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fX.fromPartial($??{})},fromPartial($){let K=L7();return K.paramsJson=$.paramsJson??void 0,K}};function P7(){return{}}var _X={encode($,K=new H){if($.reminderId!==void 0)K.uint32(10).string($.reminderId);if($.instanceId!==void 0)K.uint32(18).string($.instanceId);if($.description!==void 0)K.uint32(26).string($.description);if($.frequency!==void 0)K.uint32(32).int32($.frequency);if($.status!==void 0)K.uint32(40).int32($.status);if($.payeeVpa!==void 0)K.uint32(50).string($.payeeVpa);if($.payeeJid!==void 0)K.uint32(58).string($.payeeJid);if($.payerJid!==void 0)K.uint32(66).string($.payerJid);if($.amount!==void 0)r.encode($.amount,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=P7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.reminderId=Q.string();continue}case 2:{if(Z!==18)break;J.instanceId=Q.string();continue}case 3:{if(Z!==26)break;J.description=Q.string();continue}case 4:{if(Z!==32)break;J.frequency=Q.int32();continue}case 5:{if(Z!==40)break;J.status=Q.int32();continue}case 6:{if(Z!==50)break;J.payeeVpa=Q.string();continue}case 7:{if(Z!==58)break;J.payeeJid=Q.string();continue}case 8:{if(Z!==66)break;J.payerJid=Q.string();continue}case 9:{if(Z!==74)break;J.amount=r.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _X.fromPartial($??{})},fromPartial($){let K=P7();return K.reminderId=$.reminderId??void 0,K.instanceId=$.instanceId??void 0,K.description=$.description??void 0,K.frequency=$.frequency??void 0,K.status=$.status??void 0,K.payeeVpa=$.payeeVpa??void 0,K.payeeJid=$.payeeJid??void 0,K.payerJid=$.payerJid??void 0,K.amount=$.amount!==void 0&&$.amount!==null?r.fromPartial($.amount):void 0,K}};function F7(){return{}}var hX={encode($,K=new H){if($.peerDataOperationRequestType!==void 0)K.uint32(8).int32($.peerDataOperationRequestType);if($.requestStickerReupload!==void 0&&$.requestStickerReupload.length!==0)for(let Q of $.requestStickerReupload)oX.encode(Q,K.uint32(18).fork()).join();if($.requestUrlPreview!==void 0&&$.requestUrlPreview.length!==0)for(let Q of $.requestUrlPreview)bX.encode(Q,K.uint32(26).fork()).join();if($.historySyncOnDemandRequest!==void 0)jX.encode($.historySyncOnDemandRequest,K.uint32(34).fork()).join();if($.placeholderMessageResendRequest!==void 0&&$.placeholderMessageResendRequest.length!==0)for(let Q of $.placeholderMessageResendRequest)cX.encode(Q,K.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequest!==void 0)wX.encode($.fullHistorySyncOnDemandRequest,K.uint32(50).fork()).join();if($.syncdCollectionFatalRecoveryRequest!==void 0)iX.encode($.syncdCollectionFatalRecoveryRequest,K.uint32(58).fork()).join();if($.historySyncChunkRetryRequest!==void 0)dX.encode($.historySyncChunkRetryRequest,K.uint32(66).fork()).join();if($.galaxyFlowAction!==void 0)nX.encode($.galaxyFlowAction,K.uint32(74).fork()).join();if($.companionCanonicalUserNonceFetchRequest!==void 0)uX.encode($.companionCanonicalUserNonceFetchRequest,K.uint32(82).fork()).join();if($.bizBroadcastInsightsContactListRequest!==void 0)lX.encode($.bizBroadcastInsightsContactListRequest,K.uint32(90).fork()).join();if($.bizBroadcastInsightsRefreshRequest!==void 0)pX.encode($.bizBroadcastInsightsRefreshRequest,K.uint32(98).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=F7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.peerDataOperationRequestType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.requestStickerReupload===void 0)J.requestStickerReupload=[];let Y=oX.decode(Q,Q.uint32());if(Y!==void 0)J.requestStickerReupload.push(Y);continue}case 3:{if(Z!==26)break;if(J.requestUrlPreview===void 0)J.requestUrlPreview=[];let Y=bX.decode(Q,Q.uint32());if(Y!==void 0)J.requestUrlPreview.push(Y);continue}case 4:{if(Z!==34)break;J.historySyncOnDemandRequest=jX.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;if(J.placeholderMessageResendRequest===void 0)J.placeholderMessageResendRequest=[];let Y=cX.decode(Q,Q.uint32());if(Y!==void 0)J.placeholderMessageResendRequest.push(Y);continue}case 6:{if(Z!==50)break;J.fullHistorySyncOnDemandRequest=wX.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.syncdCollectionFatalRecoveryRequest=iX.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.historySyncChunkRetryRequest=dX.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.galaxyFlowAction=nX.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.companionCanonicalUserNonceFetchRequest=uX.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.bizBroadcastInsightsContactListRequest=lX.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.bizBroadcastInsightsRefreshRequest=pX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hX.fromPartial($??{})},fromPartial($){let K=F7();return K.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,K.requestStickerReupload=$.requestStickerReupload?.map((Q)=>oX.fromPartial(Q))||void 0,K.requestUrlPreview=$.requestUrlPreview?.map((Q)=>bX.fromPartial(Q))||void 0,K.historySyncOnDemandRequest=$.historySyncOnDemandRequest!==void 0&&$.historySyncOnDemandRequest!==null?jX.fromPartial($.historySyncOnDemandRequest):void 0,K.placeholderMessageResendRequest=$.placeholderMessageResendRequest?.map((Q)=>cX.fromPartial(Q))||void 0,K.fullHistorySyncOnDemandRequest=$.fullHistorySyncOnDemandRequest!==void 0&&$.fullHistorySyncOnDemandRequest!==null?wX.fromPartial($.fullHistorySyncOnDemandRequest):void 0,K.syncdCollectionFatalRecoveryRequest=$.syncdCollectionFatalRecoveryRequest!==void 0&&$.syncdCollectionFatalRecoveryRequest!==null?iX.fromPartial($.syncdCollectionFatalRecoveryRequest):void 0,K.historySyncChunkRetryRequest=$.historySyncChunkRetryRequest!==void 0&&$.historySyncChunkRetryRequest!==null?dX.fromPartial($.historySyncChunkRetryRequest):void 0,K.galaxyFlowAction=$.galaxyFlowAction!==void 0&&$.galaxyFlowAction!==null?nX.fromPartial($.galaxyFlowAction):void 0,K.companionCanonicalUserNonceFetchRequest=$.companionCanonicalUserNonceFetchRequest!==void 0&&$.companionCanonicalUserNonceFetchRequest!==null?uX.fromPartial($.companionCanonicalUserNonceFetchRequest):void 0,K.bizBroadcastInsightsContactListRequest=$.bizBroadcastInsightsContactListRequest!==void 0&&$.bizBroadcastInsightsContactListRequest!==null?lX.fromPartial($.bizBroadcastInsightsContactListRequest):void 0,K.bizBroadcastInsightsRefreshRequest=$.bizBroadcastInsightsRefreshRequest!==void 0&&$.bizBroadcastInsightsRefreshRequest!==null?pX.fromPartial($.bizBroadcastInsightsRefreshRequest):void 0,K}};function x7(){return{}}var lX={encode($,K=new H){if($.campaignId!==void 0)K.uint32(10).string($.campaignId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=x7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.campaignId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lX.fromPartial($??{})},fromPartial($){let K=x7();return K.campaignId=$.campaignId??void 0,K}};function k7(){return{}}var pX={encode($,K=new H){if($.campaignId!==void 0)K.uint32(10).string($.campaignId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=k7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.campaignId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pX.fromPartial($??{})},fromPartial($){let K=k7();return K.campaignId=$.campaignId??void 0,K}};function N7(){return{}}var uX={encode($,K=new H){if($.registrationTraceId!==void 0)K.uint32(10).string($.registrationTraceId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=N7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.registrationTraceId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uX.fromPartial($??{})},fromPartial($){let K=N7();return K.registrationTraceId=$.registrationTraceId??void 0,K}};function R7(){return{}}var wX={encode($,K=new H){if($.requestMetadata!==void 0)x0.encode($.requestMetadata,K.uint32(10).fork()).join();if($.historySyncConfig!==void 0)X$.encode($.historySyncConfig,K.uint32(18).fork()).join();if($.fullHistorySyncOnDemandConfig!==void 0)bJ.encode($.fullHistorySyncOnDemandConfig,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=R7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.requestMetadata=x0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.historySyncConfig=X$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.fullHistorySyncOnDemandConfig=bJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wX.fromPartial($??{})},fromPartial($){let K=R7();return K.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?x0.fromPartial($.requestMetadata):void 0,K.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?X$.fromPartial($.historySyncConfig):void 0,K.fullHistorySyncOnDemandConfig=$.fullHistorySyncOnDemandConfig!==void 0&&$.fullHistorySyncOnDemandConfig!==null?bJ.fromPartial($.fullHistorySyncOnDemandConfig):void 0,K}};function B7(){return{}}var nX={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.flowId!==void 0)K.uint32(18).string($.flowId);if($.stanzaId!==void 0)K.uint32(26).string($.stanzaId);if($.galaxyFlowDownloadRequestId!==void 0)K.uint32(34).string($.galaxyFlowDownloadRequestId);if($.agmId!==void 0)K.uint32(42).string($.agmId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=B7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.flowId=Q.string();continue}case 3:{if(Z!==26)break;J.stanzaId=Q.string();continue}case 4:{if(Z!==34)break;J.galaxyFlowDownloadRequestId=Q.string();continue}case 5:{if(Z!==42)break;J.agmId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nX.fromPartial($??{})},fromPartial($){let K=B7();return K.type=$.type??void 0,K.flowId=$.flowId??void 0,K.stanzaId=$.stanzaId??void 0,K.galaxyFlowDownloadRequestId=$.galaxyFlowDownloadRequestId??void 0,K.agmId=$.agmId??void 0,K}};function O7(){return{}}var dX={encode($,K=new H){if($.syncType!==void 0)K.uint32(8).int32($.syncType);if($.chunkOrder!==void 0)K.uint32(16).uint32($.chunkOrder);if($.chunkNotificationId!==void 0)K.uint32(26).string($.chunkNotificationId);if($.regenerateChunk!==void 0)K.uint32(32).bool($.regenerateChunk);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=O7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.syncType=Q.int32();continue}case 2:{if(Z!==16)break;J.chunkOrder=Q.uint32();continue}case 3:{if(Z!==26)break;J.chunkNotificationId=Q.string();continue}case 4:{if(Z!==32)break;J.regenerateChunk=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dX.fromPartial($??{})},fromPartial($){let K=O7();return K.syncType=$.syncType??void 0,K.chunkOrder=$.chunkOrder??void 0,K.chunkNotificationId=$.chunkNotificationId??void 0,K.regenerateChunk=$.regenerateChunk??void 0,K}};function A7(){return{}}var jX={encode($,K=new H){if($.chatJid!==void 0)K.uint32(10).string($.chatJid);if($.oldestMsgId!==void 0)K.uint32(18).string($.oldestMsgId);if($.oldestMsgFromMe!==void 0)K.uint32(24).bool($.oldestMsgFromMe);if($.onDemandMsgCount!==void 0)K.uint32(32).int32($.onDemandMsgCount);if($.oldestMsgTimestampMs!==void 0)K.uint32(40).int64($.oldestMsgTimestampMs);if($.accountLid!==void 0)K.uint32(50).string($.accountLid);if($.supportInlineResponse!==void 0)K.uint32(56).bool($.supportInlineResponse);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=A7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.chatJid=Q.string();continue}case 2:{if(Z!==18)break;J.oldestMsgId=Q.string();continue}case 3:{if(Z!==24)break;J.oldestMsgFromMe=Q.bool();continue}case 4:{if(Z!==32)break;J.onDemandMsgCount=Q.int32();continue}case 5:{if(Z!==40)break;J.oldestMsgTimestampMs=Q.int64Number();continue}case 6:{if(Z!==50)break;J.accountLid=Q.string();continue}case 7:{if(Z!==56)break;J.supportInlineResponse=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jX.fromPartial($??{})},fromPartial($){let K=A7();return K.chatJid=$.chatJid??void 0,K.oldestMsgId=$.oldestMsgId??void 0,K.oldestMsgFromMe=$.oldestMsgFromMe??void 0,K.onDemandMsgCount=$.onDemandMsgCount??void 0,K.oldestMsgTimestampMs=$.oldestMsgTimestampMs??void 0,K.accountLid=$.accountLid??void 0,K.supportInlineResponse=$.supportInlineResponse??void 0,K}};function E7(){return{}}var cX={encode($,K=new H){if($.messageKey!==void 0)x.encode($.messageKey,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=E7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageKey=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cX.fromPartial($??{})},fromPartial($){let K=E7();return K.messageKey=$.messageKey!==void 0&&$.messageKey!==null?x.fromPartial($.messageKey):void 0,K}};function M7(){return{}}var oX={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).string($.fileSha256);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=M7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oX.fromPartial($??{})},fromPartial($){let K=M7();return K.fileSha256=$.fileSha256??void 0,K}};function W7(){return{}}var bX={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.includeHqThumbnail!==void 0)K.uint32(16).bool($.includeHqThumbnail);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=W7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==16)break;J.includeHqThumbnail=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bX.fromPartial($??{})},fromPartial($){let K=W7();return K.url=$.url??void 0,K.includeHqThumbnail=$.includeHqThumbnail??void 0,K}};function I7(){return{}}var iX={encode($,K=new H){if($.collectionName!==void 0)K.uint32(10).string($.collectionName);if($.timestamp!==void 0)K.uint32(16).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=I7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.collectionName=Q.string();continue}case 2:{if(Z!==16)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iX.fromPartial($??{})},fromPartial($){let K=I7();return K.collectionName=$.collectionName??void 0,K.timestamp=$.timestamp??void 0,K}};function S7(){return{}}var mX={encode($,K=new H){if($.peerDataOperationRequestType!==void 0)K.uint32(8).int32($.peerDataOperationRequestType);if($.stanzaId!==void 0)K.uint32(18).string($.stanzaId);if($.peerDataOperationResult!==void 0&&$.peerDataOperationResult.length!==0)for(let Q of $.peerDataOperationResult)gX.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=S7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.peerDataOperationRequestType=Q.int32();continue}case 2:{if(Z!==18)break;J.stanzaId=Q.string();continue}case 3:{if(Z!==26)break;if(J.peerDataOperationResult===void 0)J.peerDataOperationResult=[];let Y=gX.decode(Q,Q.uint32());if(Y!==void 0)J.peerDataOperationResult.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mX.fromPartial($??{})},fromPartial($){let K=S7();return K.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,K.stanzaId=$.stanzaId??void 0,K.peerDataOperationResult=$.peerDataOperationResult?.map((Q)=>gX.fromPartial(Q))||void 0,K}};function v7(){return{}}var gX={encode($,K=new H){if($.mediaUploadResult!==void 0)K.uint32(8).int32($.mediaUploadResult);if($.stickerMessage!==void 0)L$.encode($.stickerMessage,K.uint32(18).fork()).join();if($.linkPreviewResponse!==void 0)Q8.encode($.linkPreviewResponse,K.uint32(26).fork()).join();if($.placeholderMessageResendResponse!==void 0)X8.encode($.placeholderMessageResendResponse,K.uint32(34).fork()).join();if($.waffleNonceFetchRequestResponse!==void 0)Y8.encode($.waffleNonceFetchRequestResponse,K.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequestResponse!==void 0)$8.encode($.fullHistorySyncOnDemandRequestResponse,K.uint32(50).fork()).join();if($.companionMetaNonceFetchRequestResponse!==void 0)sX.encode($.companionMetaNonceFetchRequestResponse,K.uint32(58).fork()).join();if($.syncdSnapshotFatalRecoveryResponse!==void 0)q8.encode($.syncdSnapshotFatalRecoveryResponse,K.uint32(66).fork()).join();if($.companionCanonicalUserNonceFetchRequestResponse!==void 0)aX.encode($.companionCanonicalUserNonceFetchRequestResponse,K.uint32(74).fork()).join();if($.historySyncChunkRetryResponse!==void 0)K8.encode($.historySyncChunkRetryResponse,K.uint32(82).fork()).join();if($.flowResponsesCsvBundle!==void 0)eX.encode($.flowResponsesCsvBundle,K.uint32(90).fork()).join();if($.bizBroadcastInsightsContactListResponse!==void 0)tX.encode($.bizBroadcastInsightsContactListResponse,K.uint32(98).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=v7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.mediaUploadResult=Q.int32();continue}case 2:{if(Z!==18)break;J.stickerMessage=L$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.linkPreviewResponse=Q8.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.placeholderMessageResendResponse=X8.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.waffleNonceFetchRequestResponse=Y8.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.fullHistorySyncOnDemandRequestResponse=$8.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.companionMetaNonceFetchRequestResponse=sX.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.syncdSnapshotFatalRecoveryResponse=q8.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.companionCanonicalUserNonceFetchRequestResponse=aX.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.historySyncChunkRetryResponse=K8.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.flowResponsesCsvBundle=eX.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.bizBroadcastInsightsContactListResponse=tX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gX.fromPartial($??{})},fromPartial($){let K=v7();return K.mediaUploadResult=$.mediaUploadResult??void 0,K.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?L$.fromPartial($.stickerMessage):void 0,K.linkPreviewResponse=$.linkPreviewResponse!==void 0&&$.linkPreviewResponse!==null?Q8.fromPartial($.linkPreviewResponse):void 0,K.placeholderMessageResendResponse=$.placeholderMessageResendResponse!==void 0&&$.placeholderMessageResendResponse!==null?X8.fromPartial($.placeholderMessageResendResponse):void 0,K.waffleNonceFetchRequestResponse=$.waffleNonceFetchRequestResponse!==void 0&&$.waffleNonceFetchRequestResponse!==null?Y8.fromPartial($.waffleNonceFetchRequestResponse):void 0,K.fullHistorySyncOnDemandRequestResponse=$.fullHistorySyncOnDemandRequestResponse!==void 0&&$.fullHistorySyncOnDemandRequestResponse!==null?$8.fromPartial($.fullHistorySyncOnDemandRequestResponse):void 0,K.companionMetaNonceFetchRequestResponse=$.companionMetaNonceFetchRequestResponse!==void 0&&$.companionMetaNonceFetchRequestResponse!==null?sX.fromPartial($.companionMetaNonceFetchRequestResponse):void 0,K.syncdSnapshotFatalRecoveryResponse=$.syncdSnapshotFatalRecoveryResponse!==void 0&&$.syncdSnapshotFatalRecoveryResponse!==null?q8.fromPartial($.syncdSnapshotFatalRecoveryResponse):void 0,K.companionCanonicalUserNonceFetchRequestResponse=$.companionCanonicalUserNonceFetchRequestResponse!==void 0&&$.companionCanonicalUserNonceFetchRequestResponse!==null?aX.fromPartial($.companionCanonicalUserNonceFetchRequestResponse):void 0,K.historySyncChunkRetryResponse=$.historySyncChunkRetryResponse!==void 0&&$.historySyncChunkRetryResponse!==null?K8.fromPartial($.historySyncChunkRetryResponse):void 0,K.flowResponsesCsvBundle=$.flowResponsesCsvBundle!==void 0&&$.flowResponsesCsvBundle!==null?eX.fromPartial($.flowResponsesCsvBundle):void 0,K.bizBroadcastInsightsContactListResponse=$.bizBroadcastInsightsContactListResponse!==void 0&&$.bizBroadcastInsightsContactListResponse!==null?tX.fromPartial($.bizBroadcastInsightsContactListResponse):void 0,K}};function T7(){return{}}var tX={encode($,K=new H){if($.campaignId!==void 0)K.uint32(10).string($.campaignId);if($.timestampMs!==void 0)K.uint32(16).int64($.timestampMs);if($.contacts!==void 0&&$.contacts.length!==0)for(let Q of $.contacts)rX.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=T7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.campaignId=Q.string();continue}case 2:{if(Z!==16)break;J.timestampMs=Q.int64Number();continue}case 3:{if(Z!==26)break;if(J.contacts===void 0)J.contacts=[];let Y=rX.decode(Q,Q.uint32());if(Y!==void 0)J.contacts.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tX.fromPartial($??{})},fromPartial($){let K=T7();return K.campaignId=$.campaignId??void 0,K.timestampMs=$.timestampMs??void 0,K.contacts=$.contacts?.map((Q)=>rX.fromPartial(Q))||void 0,K}};function y7(){return{}}var rX={encode($,K=new H){if($.contactJid!==void 0)K.uint32(10).string($.contactJid);if($.state!==void 0)K.uint32(16).int32($.state);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=y7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contactJid=Q.string();continue}case 2:{if(Z!==16)break;J.state=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rX.fromPartial($??{})},fromPartial($){let K=y7();return K.contactJid=$.contactJid??void 0,K.state=$.state??void 0,K}};function f7(){return{}}var aX={encode($,K=new H){if($.nonce!==void 0)K.uint32(10).string($.nonce);if($.waFbid!==void 0)K.uint32(18).string($.waFbid);if($.forceRefresh!==void 0)K.uint32(24).bool($.forceRefresh);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=f7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.nonce=Q.string();continue}case 2:{if(Z!==18)break;J.waFbid=Q.string();continue}case 3:{if(Z!==24)break;J.forceRefresh=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aX.fromPartial($??{})},fromPartial($){let K=f7();return K.nonce=$.nonce??void 0,K.waFbid=$.waFbid??void 0,K.forceRefresh=$.forceRefresh??void 0,K}};function _7(){return{}}var sX={encode($,K=new H){if($.nonce!==void 0)K.uint32(10).string($.nonce);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.nonce=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sX.fromPartial($??{})},fromPartial($){let K=_7();return K.nonce=$.nonce??void 0,K}};function h7(){return{}}var eX={encode($,K=new H){if($.flowId!==void 0)K.uint32(10).string($.flowId);if($.galaxyFlowDownloadRequestId!==void 0)K.uint32(18).string($.galaxyFlowDownloadRequestId);if($.fileName!==void 0)K.uint32(26).string($.fileName);if($.mimetype!==void 0)K.uint32(34).string($.mimetype);if($.fileSha256!==void 0)K.uint32(42).bytes($.fileSha256);if($.mediaKey!==void 0)K.uint32(50).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(58).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(66).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(72).int64($.mediaKeyTimestamp);if($.fileLength!==void 0)K.uint32(80).uint64($.fileLength);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=h7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.flowId=Q.string();continue}case 2:{if(Z!==18)break;J.galaxyFlowDownloadRequestId=Q.string();continue}case 3:{if(Z!==26)break;J.fileName=Q.string();continue}case 4:{if(Z!==34)break;J.mimetype=Q.string();continue}case 5:{if(Z!==42)break;J.fileSha256=Q.bytes();continue}case 6:{if(Z!==50)break;J.mediaKey=Q.bytes();continue}case 7:{if(Z!==58)break;J.fileEncSha256=Q.bytes();continue}case 8:{if(Z!==66)break;J.directPath=Q.string();continue}case 9:{if(Z!==72)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 10:{if(Z!==80)break;J.fileLength=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eX.fromPartial($??{})},fromPartial($){let K=h7();return K.flowId=$.flowId??void 0,K.galaxyFlowDownloadRequestId=$.galaxyFlowDownloadRequestId??void 0,K.fileName=$.fileName??void 0,K.mimetype=$.mimetype??void 0,K.fileSha256=$.fileSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.fileLength=$.fileLength??void 0,K}};function l7(){return{}}var $8={encode($,K=new H){if($.requestMetadata!==void 0)x0.encode($.requestMetadata,K.uint32(10).fork()).join();if($.responseCode!==void 0)K.uint32(16).int32($.responseCode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=l7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.requestMetadata=x0.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.responseCode=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $8.fromPartial($??{})},fromPartial($){let K=l7();return K.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?x0.fromPartial($.requestMetadata):void 0,K.responseCode=$.responseCode??void 0,K}};function p7(){return{}}var K8={encode($,K=new H){if($.syncType!==void 0)K.uint32(8).int32($.syncType);if($.chunkOrder!==void 0)K.uint32(16).uint32($.chunkOrder);if($.requestId!==void 0)K.uint32(26).string($.requestId);if($.responseCode!==void 0)K.uint32(32).int32($.responseCode);if($.canRecover!==void 0)K.uint32(40).bool($.canRecover);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=p7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.syncType=Q.int32();continue}case 2:{if(Z!==16)break;J.chunkOrder=Q.uint32();continue}case 3:{if(Z!==26)break;J.requestId=Q.string();continue}case 4:{if(Z!==32)break;J.responseCode=Q.int32();continue}case 5:{if(Z!==40)break;J.canRecover=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return K8.fromPartial($??{})},fromPartial($){let K=p7();return K.syncType=$.syncType??void 0,K.chunkOrder=$.chunkOrder??void 0,K.requestId=$.requestId??void 0,K.responseCode=$.responseCode??void 0,K.canRecover=$.canRecover??void 0,K}};function u7(){return{}}var Q8={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.title!==void 0)K.uint32(18).string($.title);if($.description!==void 0)K.uint32(26).string($.description);if($.thumbData!==void 0)K.uint32(34).bytes($.thumbData);if($.matchText!==void 0)K.uint32(50).string($.matchText);if($.previewType!==void 0)K.uint32(58).string($.previewType);if($.hqThumbnail!==void 0)Z8.encode($.hqThumbnail,K.uint32(66).fork()).join();if($.previewMetadata!==void 0)J8.encode($.previewMetadata,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=u7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.title=Q.string();continue}case 3:{if(Z!==26)break;J.description=Q.string();continue}case 4:{if(Z!==34)break;J.thumbData=Q.bytes();continue}case 6:{if(Z!==50)break;J.matchText=Q.string();continue}case 7:{if(Z!==58)break;J.previewType=Q.string();continue}case 8:{if(Z!==66)break;J.hqThumbnail=Z8.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.previewMetadata=J8.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Q8.fromPartial($??{})},fromPartial($){let K=u7();return K.url=$.url??void 0,K.title=$.title??void 0,K.description=$.description??void 0,K.thumbData=$.thumbData??void 0,K.matchText=$.matchText??void 0,K.previewType=$.previewType??void 0,K.hqThumbnail=$.hqThumbnail!==void 0&&$.hqThumbnail!==null?Z8.fromPartial($.hqThumbnail):void 0,K.previewMetadata=$.previewMetadata!==void 0&&$.previewMetadata!==null?J8.fromPartial($.previewMetadata):void 0,K}};function w7(){return{}}var Z8={encode($,K=new H){if($.directPath!==void 0)K.uint32(10).string($.directPath);if($.thumbHash!==void 0)K.uint32(18).string($.thumbHash);if($.encThumbHash!==void 0)K.uint32(26).string($.encThumbHash);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestampMs!==void 0)K.uint32(40).int64($.mediaKeyTimestampMs);if($.thumbWidth!==void 0)K.uint32(48).int32($.thumbWidth);if($.thumbHeight!==void 0)K.uint32(56).int32($.thumbHeight);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=w7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.directPath=Q.string();continue}case 2:{if(Z!==18)break;J.thumbHash=Q.string();continue}case 3:{if(Z!==26)break;J.encThumbHash=Q.string();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestampMs=Q.int64Number();continue}case 6:{if(Z!==48)break;J.thumbWidth=Q.int32();continue}case 7:{if(Z!==56)break;J.thumbHeight=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Z8.fromPartial($??{})},fromPartial($){let K=w7();return K.directPath=$.directPath??void 0,K.thumbHash=$.thumbHash??void 0,K.encThumbHash=$.encThumbHash??void 0,K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestampMs=$.mediaKeyTimestampMs??void 0,K.thumbWidth=$.thumbWidth??void 0,K.thumbHeight=$.thumbHeight??void 0,K}};function n7(){return{}}var J8={encode($,K=new H){if($.isBusinessVerified!==void 0)K.uint32(8).bool($.isBusinessVerified);if($.providerName!==void 0)K.uint32(18).string($.providerName);if($.amount!==void 0)K.uint32(26).string($.amount);if($.offset!==void 0)K.uint32(34).string($.offset);if($.currency!==void 0)K.uint32(42).string($.currency);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=n7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isBusinessVerified=Q.bool();continue}case 2:{if(Z!==18)break;J.providerName=Q.string();continue}case 3:{if(Z!==26)break;J.amount=Q.string();continue}case 4:{if(Z!==34)break;J.offset=Q.string();continue}case 5:{if(Z!==42)break;J.currency=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return J8.fromPartial($??{})},fromPartial($){let K=n7();return K.isBusinessVerified=$.isBusinessVerified??void 0,K.providerName=$.providerName??void 0,K.amount=$.amount??void 0,K.offset=$.offset??void 0,K.currency=$.currency??void 0,K}};function d7(){return{}}var X8={encode($,K=new H){if($.webMessageInfoBytes!==void 0)K.uint32(10).bytes($.webMessageInfoBytes);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=d7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.webMessageInfoBytes=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return X8.fromPartial($??{})},fromPartial($){let K=d7();return K.webMessageInfoBytes=$.webMessageInfoBytes??void 0,K}};function j7(){return{}}var q8={encode($,K=new H){if($.collectionSnapshot!==void 0)K.uint32(10).bytes($.collectionSnapshot);if($.isCompressed!==void 0)K.uint32(16).bool($.isCompressed);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=j7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.collectionSnapshot=Q.bytes();continue}case 2:{if(Z!==16)break;J.isCompressed=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return q8.fromPartial($??{})},fromPartial($){let K=j7();return K.collectionSnapshot=$.collectionSnapshot??void 0,K.isCompressed=$.isCompressed??void 0,K}};function c7(){return{}}var Y8={encode($,K=new H){if($.nonce!==void 0)K.uint32(10).string($.nonce);if($.waEntFbid!==void 0)K.uint32(18).string($.waEntFbid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=c7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.nonce=Q.string();continue}case 2:{if(Z!==18)break;J.waEntFbid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Y8.fromPartial($??{})},fromPartial($){let K=c7();return K.nonce=$.nonce??void 0,K.waEntFbid=$.waEntFbid??void 0,K}};function o7(){return{}}var H8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.type!==void 0)K.uint32(16).int32($.type);if($.senderTimestampMs!==void 0)K.uint32(24).int64($.senderTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=o7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.type=Q.int32();continue}case 3:{if(Z!==24)break;J.senderTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return H8.fromPartial($??{})},fromPartial($){let K=o7();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.type=$.type??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K}};function b7(){return{}}var z8={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=b7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return z8.fromPartial($??{})},fromPartial($){let K=b7();return K.type=$.type??void 0,K}};function i7(){return{}}var V8={encode($,K=new H){if($.pollCreationMessageKey!==void 0)x.encode($.pollCreationMessageKey,K.uint32(10).fork()).join();if($.addOption!==void 0)G0.encode($.addOption,K.uint32(18).fork()).join();if($.metadata!==void 0)N0.encode($.metadata,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=i7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollCreationMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.addOption=G0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.metadata=N0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return V8.fromPartial($??{})},fromPartial($){let K=i7();return K.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?x.fromPartial($.pollCreationMessageKey):void 0,K.addOption=$.addOption!==void 0&&$.addOption!==null?G0.fromPartial($.addOption):void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?N0.fromPartial($.metadata):void 0,K}};function m7(){return{}}var e={encode($,K=new H){if($.encKey!==void 0)K.uint32(10).bytes($.encKey);if($.name!==void 0)K.uint32(18).string($.name);if($.options!==void 0&&$.options.length!==0)for(let Q of $.options)G0.encode(Q,K.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)K.uint32(32).uint32($.selectableOptionsCount);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(42).fork()).join();if($.pollContentType!==void 0)K.uint32(48).int32($.pollContentType);if($.pollType!==void 0)K.uint32(56).int32($.pollType);if($.correctAnswer!==void 0)G0.encode($.correctAnswer,K.uint32(66).fork()).join();if($.endTime!==void 0)K.uint32(72).int64($.endTime);if($.hideParticipantName!==void 0)K.uint32(80).bool($.hideParticipantName);if($.allowAddOption!==void 0)K.uint32(88).bool($.allowAddOption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=m7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.name=Q.string();continue}case 3:{if(Z!==26)break;if(J.options===void 0)J.options=[];let Y=G0.decode(Q,Q.uint32());if(Y!==void 0)J.options.push(Y);continue}case 4:{if(Z!==32)break;J.selectableOptionsCount=Q.uint32();continue}case 5:{if(Z!==42)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 6:{if(Z!==48)break;J.pollContentType=Q.int32();continue}case 7:{if(Z!==56)break;J.pollType=Q.int32();continue}case 8:{if(Z!==66)break;J.correctAnswer=G0.decode(Q,Q.uint32());continue}case 9:{if(Z!==72)break;J.endTime=Q.int64Number();continue}case 10:{if(Z!==80)break;J.hideParticipantName=Q.bool();continue}case 11:{if(Z!==88)break;J.allowAddOption=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e.fromPartial($??{})},fromPartial($){let K=m7();return K.encKey=$.encKey??void 0,K.name=$.name??void 0,K.options=$.options?.map((Q)=>G0.fromPartial(Q))||void 0,K.selectableOptionsCount=$.selectableOptionsCount??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.pollContentType=$.pollContentType??void 0,K.pollType=$.pollType??void 0,K.correctAnswer=$.correctAnswer!==void 0&&$.correctAnswer!==null?G0.fromPartial($.correctAnswer):void 0,K.endTime=$.endTime??void 0,K.hideParticipantName=$.hideParticipantName??void 0,K.allowAddOption=$.allowAddOption??void 0,K}};function g7(){return{}}var G0={encode($,K=new H){if($.optionName!==void 0)K.uint32(10).string($.optionName);if($.optionHash!==void 0)K.uint32(18).string($.optionHash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=g7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.optionName=Q.string();continue}case 2:{if(Z!==18)break;J.optionHash=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return G0.fromPartial($??{})},fromPartial($){let K=g7();return K.optionName=$.optionName??void 0,K.optionHash=$.optionHash??void 0,K}};function t7(){return{}}var G8={encode($,K=new H){if($.encPayload!==void 0)K.uint32(10).bytes($.encPayload);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=t7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return G8.fromPartial($??{})},fromPartial($){let K=t7();return K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function r7(){return{}}var n0={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let Q of $.pollVotes)U8.encode(Q,K.uint32(18).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(26).fork()).join();if($.pollType!==void 0)K.uint32(32).int32($.pollType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=r7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;if(J.pollVotes===void 0)J.pollVotes=[];let Y=U8.decode(Q,Q.uint32());if(Y!==void 0)J.pollVotes.push(Y);continue}case 3:{if(Z!==26)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.pollType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return n0.fromPartial($??{})},fromPartial($){let K=r7();return K.name=$.name??void 0,K.pollVotes=$.pollVotes?.map((Q)=>U8.fromPartial(Q))||void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.pollType=$.pollType??void 0,K}};function a7(){return{}}var U8={encode($,K=new H){if($.optionName!==void 0)K.uint32(10).string($.optionName);if($.optionVoteCount!==void 0)K.uint32(16).int64($.optionVoteCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=a7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.optionName=Q.string();continue}case 2:{if(Z!==16)break;J.optionVoteCount=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return U8.fromPartial($??{})},fromPartial($){let K=a7();return K.optionName=$.optionName??void 0,K.optionVoteCount=$.optionVoteCount??void 0,K}};function s7(){return{}}var C8={encode($,K=new H){if($.pollCreationMessageKey!==void 0)x.encode($.pollCreationMessageKey,K.uint32(10).fork()).join();if($.vote!==void 0)G8.encode($.vote,K.uint32(18).fork()).join();if($.metadata!==void 0)N0.encode($.metadata,K.uint32(26).fork()).join();if($.senderTimestampMs!==void 0)K.uint32(32).int64($.senderTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=s7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollCreationMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.vote=G8.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.metadata=N0.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.senderTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return C8.fromPartial($??{})},fromPartial($){let K=s7();return K.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?x.fromPartial($.pollCreationMessageKey):void 0,K.vote=$.vote!==void 0&&$.vote!==null?G8.fromPartial($.vote):void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?N0.fromPartial($.metadata):void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K}};function e7(){return{}}var N0={encode($,K=new H){if($.pollNameHash!==void 0)K.uint32(10).bytes($.pollNameHash);if($.lastEditStanzaId!==void 0)K.uint32(18).string($.lastEditStanzaId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=e7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollNameHash=Q.bytes();continue}case 2:{if(Z!==18)break;J.lastEditStanzaId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return N0.fromPartial($??{})},fromPartial($){let K=e7();return K.pollNameHash=$.pollNameHash??void 0,K.lastEditStanzaId=$.lastEditStanzaId??void 0,K}};function $C(){return{}}var I0={encode($,K=new H){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let Q of $.selectedOptions)K.uint32(10).bytes(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$C();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.selectedOptions===void 0)J.selectedOptions=[];let Y=Q.bytes();if(Y!==void 0)J.selectedOptions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return I0.fromPartial($??{})},fromPartial($){let K=$C();return K.selectedOptions=$.selectedOptions?.map((Q)=>Q)||void 0,K}};function KC(){return{}}var D$={encode($,K=new H){if($.product!==void 0)L8.encode($.product,K.uint32(10).fork()).join();if($.businessOwnerJid!==void 0)K.uint32(18).string($.businessOwnerJid);if($.catalog!==void 0)D8.encode($.catalog,K.uint32(34).fork()).join();if($.body!==void 0)K.uint32(42).string($.body);if($.footer!==void 0)K.uint32(50).string($.footer);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.product=L8.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.businessOwnerJid=Q.string();continue}case 4:{if(Z!==34)break;J.catalog=D8.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.body=Q.string();continue}case 6:{if(Z!==50)break;J.footer=Q.string();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return D$.fromPartial($??{})},fromPartial($){let K=KC();return K.product=$.product!==void 0&&$.product!==null?L8.fromPartial($.product):void 0,K.businessOwnerJid=$.businessOwnerJid??void 0,K.catalog=$.catalog!==void 0&&$.catalog!==null?D8.fromPartial($.catalog):void 0,K.body=$.body??void 0,K.footer=$.footer??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function QC(){return{}}var D8={encode($,K=new H){if($.catalogImage!==void 0)i.encode($.catalogImage,K.uint32(10).fork()).join();if($.title!==void 0)K.uint32(18).string($.title);if($.description!==void 0)K.uint32(26).string($.description);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.catalogImage=i.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.title=Q.string();continue}case 3:{if(Z!==26)break;J.description=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return D8.fromPartial($??{})},fromPartial($){let K=QC();return K.catalogImage=$.catalogImage!==void 0&&$.catalogImage!==null?i.fromPartial($.catalogImage):void 0,K.title=$.title??void 0,K.description=$.description??void 0,K}};function ZC(){return{}}var L8={encode($,K=new H){if($.productImage!==void 0)i.encode($.productImage,K.uint32(10).fork()).join();if($.productId!==void 0)K.uint32(18).string($.productId);if($.title!==void 0)K.uint32(26).string($.title);if($.description!==void 0)K.uint32(34).string($.description);if($.currencyCode!==void 0)K.uint32(42).string($.currencyCode);if($.priceAmount1000!==void 0)K.uint32(48).int64($.priceAmount1000);if($.retailerId!==void 0)K.uint32(58).string($.retailerId);if($.url!==void 0)K.uint32(66).string($.url);if($.productImageCount!==void 0)K.uint32(72).uint32($.productImageCount);if($.firstImageId!==void 0)K.uint32(90).string($.firstImageId);if($.salePriceAmount1000!==void 0)K.uint32(96).int64($.salePriceAmount1000);if($.signedUrl!==void 0)K.uint32(106).string($.signedUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.productImage=i.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.productId=Q.string();continue}case 3:{if(Z!==26)break;J.title=Q.string();continue}case 4:{if(Z!==34)break;J.description=Q.string();continue}case 5:{if(Z!==42)break;J.currencyCode=Q.string();continue}case 6:{if(Z!==48)break;J.priceAmount1000=Q.int64Number();continue}case 7:{if(Z!==58)break;J.retailerId=Q.string();continue}case 8:{if(Z!==66)break;J.url=Q.string();continue}case 9:{if(Z!==72)break;J.productImageCount=Q.uint32();continue}case 11:{if(Z!==90)break;J.firstImageId=Q.string();continue}case 12:{if(Z!==96)break;J.salePriceAmount1000=Q.int64Number();continue}case 13:{if(Z!==106)break;J.signedUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return L8.fromPartial($??{})},fromPartial($){let K=ZC();return K.productImage=$.productImage!==void 0&&$.productImage!==null?i.fromPartial($.productImage):void 0,K.productId=$.productId??void 0,K.title=$.title??void 0,K.description=$.description??void 0,K.currencyCode=$.currencyCode??void 0,K.priceAmount1000=$.priceAmount1000??void 0,K.retailerId=$.retailerId??void 0,K.url=$.url??void 0,K.productImageCount=$.productImageCount??void 0,K.firstImageId=$.firstImageId??void 0,K.salePriceAmount1000=$.salePriceAmount1000??void 0,K.signedUrl=$.signedUrl??void 0,K}};function JC(){return{}}var P8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.type!==void 0)K.uint32(16).int32($.type);if($.ephemeralExpiration!==void 0)K.uint32(32).uint32($.ephemeralExpiration);if($.ephemeralSettingTimestamp!==void 0)K.uint32(40).int64($.ephemeralSettingTimestamp);if($.historySyncNotification!==void 0)eJ.encode($.historySyncNotification,K.uint32(50).fork()).join();if($.appStateSyncKeyShare!==void 0)LJ.encode($.appStateSyncKeyShare,K.uint32(58).fork()).join();if($.appStateSyncKeyRequest!==void 0)DJ.encode($.appStateSyncKeyRequest,K.uint32(66).fork()).join();if($.initialSecurityNotificationSettingSync!==void 0)$X.encode($.initialSecurityNotificationSettingSync,K.uint32(74).fork()).join();if($.appStateFatalExceptionNotification!==void 0)VJ.encode($.appStateFatalExceptionNotification,K.uint32(82).fork()).join();if($.disappearingMode!==void 0)D0.encode($.disappearingMode,K.uint32(90).fork()).join();if($.editedMessage!==void 0)w.encode($.editedMessage,K.uint32(114).fork()).join();if($.timestampMs!==void 0)K.uint32(120).int64($.timestampMs);if($.peerDataOperationRequestMessage!==void 0)hX.encode($.peerDataOperationRequestMessage,K.uint32(130).fork()).join();if($.peerDataOperationRequestResponseMessage!==void 0)mX.encode($.peerDataOperationRequestResponseMessage,K.uint32(138).fork()).join();if($.botFeedbackMessage!==void 0)AK.encode($.botFeedbackMessage,K.uint32(146).fork()).join();if($.invokerJid!==void 0)K.uint32(154).string($.invokerJid);if($.requestWelcomeMessageMetadata!==void 0)R8.encode($.requestWelcomeMessageMetadata,K.uint32(162).fork()).join();if($.mediaNotifyMessage!==void 0)YJ.encode($.mediaNotifyMessage,K.uint32(170).fork()).join();if($.cloudApiThreadControlNotification!==void 0)yJ.encode($.cloudApiThreadControlNotification,K.uint32(178).fork()).join();if($.lidMigrationMappingSyncMessage!==void 0)eZ.encode($.lidMigrationMappingSyncMessage,K.uint32(186).fork()).join();if($.limitSharing!==void 0)V0.encode($.limitSharing,K.uint32(194).fork()).join();if($.aiPsiMetadata!==void 0)K.uint32(202).bytes($.aiPsiMetadata);if($.aiQueryFanout!==void 0)i$.encode($.aiQueryFanout,K.uint32(210).fork()).join();if($.memberLabel!==void 0)F0.encode($.memberLabel,K.uint32(218).fork()).join();if($.aiMediaCollectionMessage!==void 0)c$.encode($.aiMediaCollectionMessage,K.uint32(226).fork()).join();if($.afterReadDuration!==void 0)K.uint32(232).uint32($.afterReadDuration);if($.chatThemeSetting!==void 0)TJ.encode($.chatThemeSetting,K.uint32(242).fork()).join();if($.aiMetadataOperation!==void 0)b$.encode($.aiMetadataOperation,K.uint32(250).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.type=Q.int32();continue}case 4:{if(Z!==32)break;J.ephemeralExpiration=Q.uint32();continue}case 5:{if(Z!==40)break;J.ephemeralSettingTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.historySyncNotification=eJ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.appStateSyncKeyShare=LJ.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.appStateSyncKeyRequest=DJ.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.initialSecurityNotificationSettingSync=$X.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.appStateFatalExceptionNotification=VJ.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.disappearingMode=D0.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.editedMessage=w.decode(Q,Q.uint32());continue}case 15:{if(Z!==120)break;J.timestampMs=Q.int64Number();continue}case 16:{if(Z!==130)break;J.peerDataOperationRequestMessage=hX.decode(Q,Q.uint32());continue}case 17:{if(Z!==138)break;J.peerDataOperationRequestResponseMessage=mX.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.botFeedbackMessage=AK.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.invokerJid=Q.string();continue}case 20:{if(Z!==162)break;J.requestWelcomeMessageMetadata=R8.decode(Q,Q.uint32());continue}case 21:{if(Z!==170)break;J.mediaNotifyMessage=YJ.decode(Q,Q.uint32());continue}case 22:{if(Z!==178)break;J.cloudApiThreadControlNotification=yJ.decode(Q,Q.uint32());continue}case 23:{if(Z!==186)break;J.lidMigrationMappingSyncMessage=eZ.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.limitSharing=V0.decode(Q,Q.uint32());continue}case 25:{if(Z!==202)break;J.aiPsiMetadata=Q.bytes();continue}case 26:{if(Z!==210)break;J.aiQueryFanout=i$.decode(Q,Q.uint32());continue}case 27:{if(Z!==218)break;J.memberLabel=F0.decode(Q,Q.uint32());continue}case 28:{if(Z!==226)break;J.aiMediaCollectionMessage=c$.decode(Q,Q.uint32());continue}case 29:{if(Z!==232)break;J.afterReadDuration=Q.uint32();continue}case 30:{if(Z!==242)break;J.chatThemeSetting=TJ.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.aiMetadataOperation=b$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return P8.fromPartial($??{})},fromPartial($){let K=JC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.type=$.type??void 0,K.ephemeralExpiration=$.ephemeralExpiration??void 0,K.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,K.historySyncNotification=$.historySyncNotification!==void 0&&$.historySyncNotification!==null?eJ.fromPartial($.historySyncNotification):void 0,K.appStateSyncKeyShare=$.appStateSyncKeyShare!==void 0&&$.appStateSyncKeyShare!==null?LJ.fromPartial($.appStateSyncKeyShare):void 0,K.appStateSyncKeyRequest=$.appStateSyncKeyRequest!==void 0&&$.appStateSyncKeyRequest!==null?DJ.fromPartial($.appStateSyncKeyRequest):void 0,K.initialSecurityNotificationSettingSync=$.initialSecurityNotificationSettingSync!==void 0&&$.initialSecurityNotificationSettingSync!==null?$X.fromPartial($.initialSecurityNotificationSettingSync):void 0,K.appStateFatalExceptionNotification=$.appStateFatalExceptionNotification!==void 0&&$.appStateFatalExceptionNotification!==null?VJ.fromPartial($.appStateFatalExceptionNotification):void 0,K.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?D0.fromPartial($.disappearingMode):void 0,K.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?w.fromPartial($.editedMessage):void 0,K.timestampMs=$.timestampMs??void 0,K.peerDataOperationRequestMessage=$.peerDataOperationRequestMessage!==void 0&&$.peerDataOperationRequestMessage!==null?hX.fromPartial($.peerDataOperationRequestMessage):void 0,K.peerDataOperationRequestResponseMessage=$.peerDataOperationRequestResponseMessage!==void 0&&$.peerDataOperationRequestResponseMessage!==null?mX.fromPartial($.peerDataOperationRequestResponseMessage):void 0,K.botFeedbackMessage=$.botFeedbackMessage!==void 0&&$.botFeedbackMessage!==null?AK.fromPartial($.botFeedbackMessage):void 0,K.invokerJid=$.invokerJid??void 0,K.requestWelcomeMessageMetadata=$.requestWelcomeMessageMetadata!==void 0&&$.requestWelcomeMessageMetadata!==null?R8.fromPartial($.requestWelcomeMessageMetadata):void 0,K.mediaNotifyMessage=$.mediaNotifyMessage!==void 0&&$.mediaNotifyMessage!==null?YJ.fromPartial($.mediaNotifyMessage):void 0,K.cloudApiThreadControlNotification=$.cloudApiThreadControlNotification!==void 0&&$.cloudApiThreadControlNotification!==null?yJ.fromPartial($.cloudApiThreadControlNotification):void 0,K.lidMigrationMappingSyncMessage=$.lidMigrationMappingSyncMessage!==void 0&&$.lidMigrationMappingSyncMessage!==null?eZ.fromPartial($.lidMigrationMappingSyncMessage):void 0,K.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?V0.fromPartial($.limitSharing):void 0,K.aiPsiMetadata=$.aiPsiMetadata??void 0,K.aiQueryFanout=$.aiQueryFanout!==void 0&&$.aiQueryFanout!==null?i$.fromPartial($.aiQueryFanout):void 0,K.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,K.aiMediaCollectionMessage=$.aiMediaCollectionMessage!==void 0&&$.aiMediaCollectionMessage!==null?c$.fromPartial($.aiMediaCollectionMessage):void 0,K.afterReadDuration=$.afterReadDuration??void 0,K.chatThemeSetting=$.chatThemeSetting!==void 0&&$.chatThemeSetting!==null?TJ.fromPartial($.chatThemeSetting):void 0,K.aiMetadataOperation=$.aiMetadataOperation!==void 0&&$.aiMetadataOperation!==null?b$.fromPartial($.aiMetadataOperation):void 0,K}};function XC(){return{}}var F8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return F8.fromPartial($??{})},fromPartial($){let K=XC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K}};function qC(){return{}}var x8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);if($.groupingKey!==void 0)K.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)K.uint32(32).int64($.senderTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}case 3:{if(Z!==26)break;J.groupingKey=Q.string();continue}case 4:{if(Z!==32)break;J.senderTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x8.fromPartial($??{})},fromPartial($){let K=qC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K.groupingKey=$.groupingKey??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K}};function YC(){return{}}var k8={encode($,K=new H){if($.noteMessage!==void 0)w.encode($.noteMessage,K.uint32(34).fork()).join();if($.currencyCodeIso4217!==void 0)K.uint32(10).string($.currencyCodeIso4217);if($.amount1000!==void 0)K.uint32(16).uint64($.amount1000);if($.requestFrom!==void 0)K.uint32(26).string($.requestFrom);if($.expiryTimestamp!==void 0)K.uint32(40).int64($.expiryTimestamp);if($.amount!==void 0)r.encode($.amount,K.uint32(50).fork()).join();if($.background!==void 0)N$.encode($.background,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 4:{if(Z!==34)break;J.noteMessage=w.decode(Q,Q.uint32());continue}case 1:{if(Z!==10)break;J.currencyCodeIso4217=Q.string();continue}case 2:{if(Z!==16)break;J.amount1000=Q.uint64Number();continue}case 3:{if(Z!==26)break;J.requestFrom=Q.string();continue}case 5:{if(Z!==40)break;J.expiryTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.amount=r.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.background=N$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return k8.fromPartial($??{})},fromPartial($){let K=YC();return K.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?w.fromPartial($.noteMessage):void 0,K.currencyCodeIso4217=$.currencyCodeIso4217??void 0,K.amount1000=$.amount1000??void 0,K.requestFrom=$.requestFrom??void 0,K.expiryTimestamp=$.expiryTimestamp??void 0,K.amount=$.amount!==void 0&&$.amount!==null?r.fromPartial($.amount):void 0,K.background=$.background!==void 0&&$.background!==null?N$.fromPartial($.background):void 0,K}};function HC(){return{}}var N8={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return N8.fromPartial($??{})},fromPartial($){let K=HC();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function zC(){return{}}var R8={encode($,K=new H){if($.localChatState!==void 0)K.uint32(8).int32($.localChatState);if($.welcomeTrigger!==void 0)K.uint32(16).int32($.welcomeTrigger);if($.botAgentMetadata!==void 0)NK.encode($.botAgentMetadata,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.localChatState=Q.int32();continue}case 2:{if(Z!==16)break;J.welcomeTrigger=Q.int32();continue}case 3:{if(Z!==26)break;J.botAgentMetadata=NK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return R8.fromPartial($??{})},fromPartial($){let K=zC();return K.localChatState=$.localChatState??void 0,K.welcomeTrigger=$.welcomeTrigger??void 0,K.botAgentMetadata=$.botAgentMetadata!==void 0&&$.botAgentMetadata!==null?NK.fromPartial($.botAgentMetadata):void 0,K}};function VC(){return{}}var B8={encode($,K=new H){if($.chatJid!==void 0)K.uint32(10).string($.chatJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.chatJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return B8.fromPartial($??{})},fromPartial($){let K=VC();return K.chatJid=$.chatJid??void 0,K}};function GC(){return{}}var O8={encode($,K=new H){if($.scheduledTimestampMs!==void 0)K.uint32(8).int64($.scheduledTimestampMs);if($.callType!==void 0)K.uint32(16).int32($.callType);if($.title!==void 0)K.uint32(26).string($.title);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.scheduledTimestampMs=Q.int64Number();continue}case 2:{if(Z!==16)break;J.callType=Q.int32();continue}case 3:{if(Z!==26)break;J.title=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return O8.fromPartial($??{})},fromPartial($){let K=GC();return K.scheduledTimestampMs=$.scheduledTimestampMs??void 0,K.callType=$.callType??void 0,K.title=$.title??void 0,K}};function UC(){return{}}var A8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.editType!==void 0)K.uint32(16).int32($.editType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.editType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return A8.fromPartial($??{})},fromPartial($){let K=UC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.editType=$.editType??void 0,K}};function CC(){return{}}var E8={encode($,K=new H){if($.targetMessageKey!==void 0)x.encode($.targetMessageKey,K.uint32(10).fork()).join();if($.encPayload!==void 0)K.uint32(18).bytes($.encPayload);if($.encIv!==void 0)K.uint32(26).bytes($.encIv);if($.secretEncType!==void 0)K.uint32(32).int32($.secretEncType);if($.remoteKeyId!==void 0)K.uint32(42).string($.remoteKeyId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.targetMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encPayload=Q.bytes();continue}case 3:{if(Z!==26)break;J.encIv=Q.bytes();continue}case 4:{if(Z!==32)break;J.secretEncType=Q.int32();continue}case 5:{if(Z!==42)break;J.remoteKeyId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return E8.fromPartial($??{})},fromPartial($){let K=CC();return K.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?x.fromPartial($.targetMessageKey):void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K.secretEncType=$.secretEncType??void 0,K.remoteKeyId=$.remoteKeyId??void 0,K}};function DC(){return{}}var M8={encode($,K=new H){if($.noteMessage!==void 0)w.encode($.noteMessage,K.uint32(18).fork()).join();if($.requestMessageKey!==void 0)x.encode($.requestMessageKey,K.uint32(26).fork()).join();if($.background!==void 0)N$.encode($.background,K.uint32(34).fork()).join();if($.transactionData!==void 0)K.uint32(42).string($.transactionData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==18)break;J.noteMessage=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.requestMessageKey=x.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.background=N$.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.transactionData=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return M8.fromPartial($??{})},fromPartial($){let K=DC();return K.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?w.fromPartial($.noteMessage):void 0,K.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?x.fromPartial($.requestMessageKey):void 0,K.background=$.background!==void 0&&$.background!==null?N$.fromPartial($.background):void 0,K.transactionData=$.transactionData??void 0,K}};function LC(){return{}}var d0={encode($,K=new H){if($.groupId!==void 0)K.uint32(10).string($.groupId);if($.axolotlSenderKeyDistributionMessage!==void 0)K.uint32(18).bytes($.axolotlSenderKeyDistributionMessage);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupId=Q.string();continue}case 2:{if(Z!==18)break;J.axolotlSenderKeyDistributionMessage=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return d0.fromPartial($??{})},fromPartial($){let K=LC();return K.groupId=$.groupId??void 0,K.axolotlSenderKeyDistributionMessage=$.axolotlSenderKeyDistributionMessage??void 0,K}};function PC(){return{}}var W8={encode($,K=new H){if($.splitId!==void 0)K.uint32(10).string($.splitId);if($.totalAmount!==void 0)r.encode($.totalAmount,K.uint32(18).fork()).join();if($.description!==void 0)K.uint32(26).string($.description);if($.requesterJid!==void 0)K.uint32(34).string($.requesterJid);if($.participants!==void 0&&$.participants.length!==0)for(let Q of $.participants)I8.encode(Q,K.uint32(42).fork()).join();if($.createdAtMs!==void 0)K.uint32(48).int64($.createdAtMs);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.splitId=Q.string();continue}case 2:{if(Z!==18)break;J.totalAmount=r.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.description=Q.string();continue}case 4:{if(Z!==34)break;J.requesterJid=Q.string();continue}case 5:{if(Z!==42)break;if(J.participants===void 0)J.participants=[];let Y=I8.decode(Q,Q.uint32());if(Y!==void 0)J.participants.push(Y);continue}case 6:{if(Z!==48)break;J.createdAtMs=Q.int64Number();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W8.fromPartial($??{})},fromPartial($){let K=PC();return K.splitId=$.splitId??void 0,K.totalAmount=$.totalAmount!==void 0&&$.totalAmount!==null?r.fromPartial($.totalAmount):void 0,K.description=$.description??void 0,K.requesterJid=$.requesterJid??void 0,K.participants=$.participants?.map((Q)=>I8.fromPartial(Q))||void 0,K.createdAtMs=$.createdAtMs??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function FC(){return{}}var I8={encode($,K=new H){if($.jid!==void 0)K.uint32(10).string($.jid);if($.amount!==void 0)r.encode($.amount,K.uint32(18).fork()).join();if($.status!==void 0)K.uint32(24).int32($.status);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.jid=Q.string();continue}case 2:{if(Z!==18)break;J.amount=r.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.status=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return I8.fromPartial($??{})},fromPartial($){let K=FC();return K.jid=$.jid??void 0,K.amount=$.amount!==void 0&&$.amount!==null?r.fromPartial($.amount):void 0,K.status=$.status??void 0,K}};function xC(){return{}}var S8={encode($,K=new H){if($.responseMessageKey!==void 0)x.encode($.responseMessageKey,K.uint32(10).fork()).join();if($.originalMessageKey!==void 0)x.encode($.originalMessageKey,K.uint32(18).fork()).join();if($.type!==void 0)K.uint32(24).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.responseMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.originalMessageKey=x.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return S8.fromPartial($??{})},fromPartial($){let K=xC();return K.responseMessageKey=$.responseMessageKey!==void 0&&$.responseMessageKey!==null?x.fromPartial($.responseMessageKey):void 0,K.originalMessageKey=$.originalMessageKey!==void 0&&$.originalMessageKey!==null?x.fromPartial($.originalMessageKey):void 0,K.type=$.type??void 0,K}};function kC(){return{}}var v8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return v8.fromPartial($??{})},fromPartial($){let K=kC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K}};function NC(){return{}}var T8={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.text!==void 0)K.uint32(18).string($.text);if($.thumbnail!==void 0)K.uint32(26).bytes($.thumbnail);if($.originalStatusId!==void 0)x.encode($.originalStatusId,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}case 3:{if(Z!==26)break;J.thumbnail=Q.bytes();continue}case 4:{if(Z!==34)break;J.originalStatusId=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return T8.fromPartial($??{})},fromPartial($){let K=NC();return K.type=$.type??void 0,K.text=$.text??void 0,K.thumbnail=$.thumbnail??void 0,K.originalStatusId=$.originalStatusId!==void 0&&$.originalStatusId!==null?x.fromPartial($.originalStatusId):void 0,K}};function RC(){return{}}var y8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.stickerKey!==void 0)K.uint32(18).string($.stickerKey);if($.type!==void 0)K.uint32(24).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.stickerKey=Q.string();continue}case 3:{if(Z!==24)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return y8.fromPartial($??{})},fromPartial($){let K=RC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.stickerKey=$.stickerKey??void 0,K.type=$.type??void 0,K}};function BC(){return{}}var L$={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.fileSha256!==void 0)K.uint32(18).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(26).bytes($.fileEncSha256);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mimetype!==void 0)K.uint32(42).string($.mimetype);if($.height!==void 0)K.uint32(48).uint32($.height);if($.width!==void 0)K.uint32(56).uint32($.width);if($.directPath!==void 0)K.uint32(66).string($.directPath);if($.fileLength!==void 0)K.uint32(72).uint64($.fileLength);if($.mediaKeyTimestamp!==void 0)K.uint32(80).int64($.mediaKeyTimestamp);if($.firstFrameLength!==void 0)K.uint32(88).uint32($.firstFrameLength);if($.firstFrameSidecar!==void 0)K.uint32(98).bytes($.firstFrameSidecar);if($.isAnimated!==void 0)K.uint32(104).bool($.isAnimated);if($.pngThumbnail!==void 0)K.uint32(130).bytes($.pngThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.stickerSentTs!==void 0)K.uint32(144).int64($.stickerSentTs);if($.isAvatar!==void 0)K.uint32(152).bool($.isAvatar);if($.isAiSticker!==void 0)K.uint32(160).bool($.isAiSticker);if($.isLottie!==void 0)K.uint32(168).bool($.isLottie);if($.accessibilityLabel!==void 0)K.uint32(178).string($.accessibilityLabel);if($.premium!==void 0)K.uint32(192).int32($.premium);if($.emojis!==void 0)K.uint32(202).string($.emojis);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.fileSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.mimetype=Q.string();continue}case 6:{if(Z!==48)break;J.height=Q.uint32();continue}case 7:{if(Z!==56)break;J.width=Q.uint32();continue}case 8:{if(Z!==66)break;J.directPath=Q.string();continue}case 9:{if(Z!==72)break;J.fileLength=Q.uint64Number();continue}case 10:{if(Z!==80)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 11:{if(Z!==88)break;J.firstFrameLength=Q.uint32();continue}case 12:{if(Z!==98)break;J.firstFrameSidecar=Q.bytes();continue}case 13:{if(Z!==104)break;J.isAnimated=Q.bool();continue}case 16:{if(Z!==130)break;J.pngThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.stickerSentTs=Q.int64Number();continue}case 19:{if(Z!==152)break;J.isAvatar=Q.bool();continue}case 20:{if(Z!==160)break;J.isAiSticker=Q.bool();continue}case 21:{if(Z!==168)break;J.isLottie=Q.bool();continue}case 22:{if(Z!==178)break;J.accessibilityLabel=Q.string();continue}case 24:{if(Z!==192)break;J.premium=Q.int32();continue}case 25:{if(Z!==202)break;J.emojis=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return L$.fromPartial($??{})},fromPartial($){let K=BC();return K.url=$.url??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mimetype=$.mimetype??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.directPath=$.directPath??void 0,K.fileLength=$.fileLength??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.firstFrameLength=$.firstFrameLength??void 0,K.firstFrameSidecar=$.firstFrameSidecar??void 0,K.isAnimated=$.isAnimated??void 0,K.pngThumbnail=$.pngThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.stickerSentTs=$.stickerSentTs??void 0,K.isAvatar=$.isAvatar??void 0,K.isAiSticker=$.isAiSticker??void 0,K.isLottie=$.isLottie??void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K.premium=$.premium??void 0,K.emojis=$.emojis??void 0,K}};function OC(){return{}}var f8={encode($,K=new H){if($.stickerPackId!==void 0)K.uint32(10).string($.stickerPackId);if($.name!==void 0)K.uint32(18).string($.name);if($.publisher!==void 0)K.uint32(26).string($.publisher);if($.stickers!==void 0&&$.stickers.length!==0)for(let Q of $.stickers)_8.encode(Q,K.uint32(34).fork()).join();if($.fileLength!==void 0)K.uint32(40).uint64($.fileLength);if($.fileSha256!==void 0)K.uint32(50).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(58).bytes($.fileEncSha256);if($.mediaKey!==void 0)K.uint32(66).bytes($.mediaKey);if($.directPath!==void 0)K.uint32(74).string($.directPath);if($.caption!==void 0)K.uint32(82).string($.caption);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(90).fork()).join();if($.packDescription!==void 0)K.uint32(98).string($.packDescription);if($.mediaKeyTimestamp!==void 0)K.uint32(104).int64($.mediaKeyTimestamp);if($.trayIconFileName!==void 0)K.uint32(114).string($.trayIconFileName);if($.thumbnailDirectPath!==void 0)K.uint32(122).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(130).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(138).bytes($.thumbnailEncSha256);if($.thumbnailHeight!==void 0)K.uint32(144).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)K.uint32(152).uint32($.thumbnailWidth);if($.imageDataHash!==void 0)K.uint32(162).string($.imageDataHash);if($.stickerPackSize!==void 0)K.uint32(168).uint64($.stickerPackSize);if($.stickerPackOrigin!==void 0)K.uint32(176).int32($.stickerPackOrigin);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stickerPackId=Q.string();continue}case 2:{if(Z!==18)break;J.name=Q.string();continue}case 3:{if(Z!==26)break;J.publisher=Q.string();continue}case 4:{if(Z!==34)break;if(J.stickers===void 0)J.stickers=[];let Y=_8.decode(Q,Q.uint32());if(Y!==void 0)J.stickers.push(Y);continue}case 5:{if(Z!==40)break;J.fileLength=Q.uint64Number();continue}case 6:{if(Z!==50)break;J.fileSha256=Q.bytes();continue}case 7:{if(Z!==58)break;J.fileEncSha256=Q.bytes();continue}case 8:{if(Z!==66)break;J.mediaKey=Q.bytes();continue}case 9:{if(Z!==74)break;J.directPath=Q.string();continue}case 10:{if(Z!==82)break;J.caption=Q.string();continue}case 11:{if(Z!==90)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.packDescription=Q.string();continue}case 13:{if(Z!==104)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 14:{if(Z!==114)break;J.trayIconFileName=Q.string();continue}case 15:{if(Z!==122)break;J.thumbnailDirectPath=Q.string();continue}case 16:{if(Z!==130)break;J.thumbnailSha256=Q.bytes();continue}case 17:{if(Z!==138)break;J.thumbnailEncSha256=Q.bytes();continue}case 18:{if(Z!==144)break;J.thumbnailHeight=Q.uint32();continue}case 19:{if(Z!==152)break;J.thumbnailWidth=Q.uint32();continue}case 20:{if(Z!==162)break;J.imageDataHash=Q.string();continue}case 21:{if(Z!==168)break;J.stickerPackSize=Q.uint64Number();continue}case 22:{if(Z!==176)break;J.stickerPackOrigin=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return f8.fromPartial($??{})},fromPartial($){let K=OC();return K.stickerPackId=$.stickerPackId??void 0,K.name=$.name??void 0,K.publisher=$.publisher??void 0,K.stickers=$.stickers?.map((Q)=>_8.fromPartial(Q))||void 0,K.fileLength=$.fileLength??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.directPath=$.directPath??void 0,K.caption=$.caption??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.packDescription=$.packDescription??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.trayIconFileName=$.trayIconFileName??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.thumbnailHeight=$.thumbnailHeight??void 0,K.thumbnailWidth=$.thumbnailWidth??void 0,K.imageDataHash=$.imageDataHash??void 0,K.stickerPackSize=$.stickerPackSize??void 0,K.stickerPackOrigin=$.stickerPackOrigin??void 0,K}};function AC(){return{}}var _8={encode($,K=new H){if($.fileName!==void 0)K.uint32(10).string($.fileName);if($.isAnimated!==void 0)K.uint32(16).bool($.isAnimated);if($.emojis!==void 0&&$.emojis.length!==0)for(let Q of $.emojis)K.uint32(26).string(Q);if($.accessibilityLabel!==void 0)K.uint32(34).string($.accessibilityLabel);if($.isLottie!==void 0)K.uint32(40).bool($.isLottie);if($.mimetype!==void 0)K.uint32(50).string($.mimetype);if($.premium!==void 0)K.uint32(56).int32($.premium);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileName=Q.string();continue}case 2:{if(Z!==16)break;J.isAnimated=Q.bool();continue}case 3:{if(Z!==26)break;if(J.emojis===void 0)J.emojis=[];let Y=Q.string();if(Y!==void 0)J.emojis.push(Y);continue}case 4:{if(Z!==34)break;J.accessibilityLabel=Q.string();continue}case 5:{if(Z!==40)break;J.isLottie=Q.bool();continue}case 6:{if(Z!==50)break;J.mimetype=Q.string();continue}case 7:{if(Z!==56)break;J.premium=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _8.fromPartial($??{})},fromPartial($){let K=AC();return K.fileName=$.fileName??void 0,K.isAnimated=$.isAnimated??void 0,K.emojis=$.emojis?.map((Q)=>Q)||void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K.isLottie=$.isLottie??void 0,K.mimetype=$.mimetype??void 0,K.premium=$.premium??void 0,K}};function EC(){return{}}var h8={encode($,K=new H){if($.filehash!==void 0&&$.filehash.length!==0)for(let Q of $.filehash)K.uint32(10).string(Q);if($.rmrSource!==void 0)K.uint32(18).string($.rmrSource);if($.requestTimestamp!==void 0)K.uint32(24).int64($.requestTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.filehash===void 0)J.filehash=[];let Y=Q.string();if(Y!==void 0)J.filehash.push(Y);continue}case 2:{if(Z!==18)break;J.rmrSource=Q.string();continue}case 3:{if(Z!==24)break;J.requestTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return h8.fromPartial($??{})},fromPartial($){let K=EC();return K.filehash=$.filehash?.map((Q)=>Q)||void 0,K.rmrSource=$.rmrSource??void 0,K.requestTimestamp=$.requestTimestamp??void 0,K}};function MC(){return{}}var l8={encode($,K=new H){if($.selectedId!==void 0)K.uint32(10).string($.selectedId);if($.selectedDisplayText!==void 0)K.uint32(18).string($.selectedDisplayText);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(26).fork()).join();if($.selectedIndex!==void 0)K.uint32(32).uint32($.selectedIndex);if($.selectedCarouselCardIndex!==void 0)K.uint32(40).uint32($.selectedCarouselCardIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.selectedId=Q.string();continue}case 2:{if(Z!==18)break;J.selectedDisplayText=Q.string();continue}case 3:{if(Z!==26)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.selectedIndex=Q.uint32();continue}case 5:{if(Z!==40)break;J.selectedCarouselCardIndex=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return l8.fromPartial($??{})},fromPartial($){let K=MC();return K.selectedId=$.selectedId??void 0,K.selectedDisplayText=$.selectedDisplayText??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.selectedIndex=$.selectedIndex??void 0,K.selectedCarouselCardIndex=$.selectedCarouselCardIndex??void 0,K}};function WC(){return{}}var P$={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(26).fork()).join();if($.hydratedTemplate!==void 0)j0.encode($.hydratedTemplate,K.uint32(34).fork()).join();if($.templateId!==void 0)K.uint32(74).string($.templateId);if($.fourRowTemplate!==void 0)p8.encode($.fourRowTemplate,K.uint32(10).fork()).join();if($.hydratedFourRowTemplate!==void 0)j0.encode($.hydratedFourRowTemplate,K.uint32(18).fork()).join();if($.interactiveMessageTemplate!==void 0)k0.encode($.interactiveMessageTemplate,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 3:{if(Z!==26)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.hydratedTemplate=j0.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.templateId=Q.string();continue}case 1:{if(Z!==10)break;J.fourRowTemplate=p8.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.hydratedFourRowTemplate=j0.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.interactiveMessageTemplate=k0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return P$.fromPartial($??{})},fromPartial($){let K=WC();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.hydratedTemplate=$.hydratedTemplate!==void 0&&$.hydratedTemplate!==null?j0.fromPartial($.hydratedTemplate):void 0,K.templateId=$.templateId??void 0,K.fourRowTemplate=$.fourRowTemplate!==void 0&&$.fourRowTemplate!==null?p8.fromPartial($.fourRowTemplate):void 0,K.hydratedFourRowTemplate=$.hydratedFourRowTemplate!==void 0&&$.hydratedFourRowTemplate!==null?j0.fromPartial($.hydratedFourRowTemplate):void 0,K.interactiveMessageTemplate=$.interactiveMessageTemplate!==void 0&&$.interactiveMessageTemplate!==null?k0.fromPartial($.interactiveMessageTemplate):void 0,K}};function IC(){return{}}var p8={encode($,K=new H){if($.content!==void 0)c.encode($.content,K.uint32(50).fork()).join();if($.footer!==void 0)c.encode($.footer,K.uint32(58).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let Q of $.buttons)DY.encode(Q,K.uint32(66).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(10).fork()).join();if($.highlyStructuredMessage!==void 0)c.encode($.highlyStructuredMessage,K.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 6:{if(Z!==50)break;J.content=c.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.footer=c.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;if(J.buttons===void 0)J.buttons=[];let Y=DY.decode(Q,Q.uint32());if(Y!==void 0)J.buttons.push(Y);continue}case 1:{if(Z!==10)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.highlyStructuredMessage=c.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.locationMessage=a.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return p8.fromPartial($??{})},fromPartial($){let K=IC();return K.content=$.content!==void 0&&$.content!==null?c.fromPartial($.content):void 0,K.footer=$.footer!==void 0&&$.footer!==null?c.fromPartial($.footer):void 0,K.buttons=$.buttons?.map((Q)=>DY.fromPartial(Q))||void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?c.fromPartial($.highlyStructuredMessage):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K}};function SC(){return{}}var j0={encode($,K=new H){if($.hydratedContentText!==void 0)K.uint32(50).string($.hydratedContentText);if($.hydratedFooterText!==void 0)K.uint32(58).string($.hydratedFooterText);if($.hydratedButtons!==void 0&&$.hydratedButtons.length!==0)for(let Q of $.hydratedButtons)jZ.encode(Q,K.uint32(66).fork()).join();if($.templateId!==void 0)K.uint32(74).string($.templateId);if($.maskLinkedDevices!==void 0)K.uint32(80).bool($.maskLinkedDevices);if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(10).fork()).join();if($.hydratedTitleText!==void 0)K.uint32(18).string($.hydratedTitleText);if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 6:{if(Z!==50)break;J.hydratedContentText=Q.string();continue}case 7:{if(Z!==58)break;J.hydratedFooterText=Q.string();continue}case 8:{if(Z!==66)break;if(J.hydratedButtons===void 0)J.hydratedButtons=[];let Y=jZ.decode(Q,Q.uint32());if(Y!==void 0)J.hydratedButtons.push(Y);continue}case 9:{if(Z!==74)break;J.templateId=Q.string();continue}case 10:{if(Z!==80)break;J.maskLinkedDevices=Q.bool();continue}case 1:{if(Z!==10)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.hydratedTitleText=Q.string();continue}case 3:{if(Z!==26)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.locationMessage=a.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return j0.fromPartial($??{})},fromPartial($){let K=SC();return K.hydratedContentText=$.hydratedContentText??void 0,K.hydratedFooterText=$.hydratedFooterText??void 0,K.hydratedButtons=$.hydratedButtons?.map((Q)=>jZ.fromPartial(Q))||void 0,K.templateId=$.templateId??void 0,K.maskLinkedDevices=$.maskLinkedDevices??void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.hydratedTitleText=$.hydratedTitleText??void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K}};function vC(){return{}}var u8={encode($,K=new H){if($.fbExperimentId!==void 0)K.uint32(8).uint32($.fbExperimentId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.fbExperimentId=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return u8.fromPartial($??{})},fromPartial($){let K=vC();return K.fbExperimentId=$.fbExperimentId??void 0,K}};function TC(){return{}}var w8={encode($,K=new H){if($.username!==void 0)K.uint32(10).string($.username);if($.caption!==void 0)K.uint32(18).string($.caption);if($.thumbnailImageUrl!==void 0)K.uint32(26).string($.thumbnailImageUrl);if($.profilePictureUrl!==void 0)K.uint32(34).string($.profilePictureUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.username=Q.string();continue}case 2:{if(Z!==18)break;J.caption=Q.string();continue}case 3:{if(Z!==26)break;J.thumbnailImageUrl=Q.string();continue}case 4:{if(Z!==34)break;J.profilePictureUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return w8.fromPartial($??{})},fromPartial($){let K=TC();return K.username=$.username??void 0,K.caption=$.caption??void 0,K.thumbnailImageUrl=$.thumbnailImageUrl??void 0,K.profilePictureUrl=$.profilePictureUrl??void 0,K}};function yC(){return{}}var t={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.mimetype!==void 0)K.uint32(18).string($.mimetype);if($.fileSha256!==void 0)K.uint32(26).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(32).uint64($.fileLength);if($.seconds!==void 0)K.uint32(40).uint32($.seconds);if($.mediaKey!==void 0)K.uint32(50).bytes($.mediaKey);if($.caption!==void 0)K.uint32(58).string($.caption);if($.gifPlayback!==void 0)K.uint32(64).bool($.gifPlayback);if($.height!==void 0)K.uint32(72).uint32($.height);if($.width!==void 0)K.uint32(80).uint32($.width);if($.fileEncSha256!==void 0)K.uint32(90).bytes($.fileEncSha256);if($.interactiveAnnotations!==void 0&&$.interactiveAnnotations.length!==0)for(let Q of $.interactiveAnnotations)Q0.encode(Q,K.uint32(98).fork()).join();if($.directPath!==void 0)K.uint32(106).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(112).int64($.mediaKeyTimestamp);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.streamingSidecar!==void 0)K.uint32(146).bytes($.streamingSidecar);if($.gifAttribution!==void 0)K.uint32(152).int32($.gifAttribution);if($.viewOnce!==void 0)K.uint32(160).bool($.viewOnce);if($.thumbnailDirectPath!==void 0)K.uint32(170).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(178).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(186).bytes($.thumbnailEncSha256);if($.staticUrl!==void 0)K.uint32(194).string($.staticUrl);if($.annotations!==void 0&&$.annotations.length!==0)for(let Q of $.annotations)Q0.encode(Q,K.uint32(202).fork()).join();if($.accessibilityLabel!==void 0)K.uint32(210).string($.accessibilityLabel);if($.processedVideos!==void 0&&$.processedVideos.length!==0)for(let Q of $.processedVideos)Jq.encode(Q,K.uint32(218).fork()).join();if($.externalShareFullVideoDurationInSeconds!==void 0)K.uint32(224).uint32($.externalShareFullVideoDurationInSeconds);if($.motionPhotoPresentationOffsetMs!==void 0)K.uint32(232).uint64($.motionPhotoPresentationOffsetMs);if($.metadataUrl!==void 0)K.uint32(242).string($.metadataUrl);if($.videoSourceType!==void 0)K.uint32(248).int32($.videoSourceType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.mimetype=Q.string();continue}case 3:{if(Z!==26)break;J.fileSha256=Q.bytes();continue}case 4:{if(Z!==32)break;J.fileLength=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.seconds=Q.uint32();continue}case 6:{if(Z!==50)break;J.mediaKey=Q.bytes();continue}case 7:{if(Z!==58)break;J.caption=Q.string();continue}case 8:{if(Z!==64)break;J.gifPlayback=Q.bool();continue}case 9:{if(Z!==72)break;J.height=Q.uint32();continue}case 10:{if(Z!==80)break;J.width=Q.uint32();continue}case 11:{if(Z!==90)break;J.fileEncSha256=Q.bytes();continue}case 12:{if(Z!==98)break;if(J.interactiveAnnotations===void 0)J.interactiveAnnotations=[];let Y=Q0.decode(Q,Q.uint32());if(Y!==void 0)J.interactiveAnnotations.push(Y);continue}case 13:{if(Z!==106)break;J.directPath=Q.string();continue}case 14:{if(Z!==112)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.streamingSidecar=Q.bytes();continue}case 19:{if(Z!==152)break;J.gifAttribution=Q.int32();continue}case 20:{if(Z!==160)break;J.viewOnce=Q.bool();continue}case 21:{if(Z!==170)break;J.thumbnailDirectPath=Q.string();continue}case 22:{if(Z!==178)break;J.thumbnailSha256=Q.bytes();continue}case 23:{if(Z!==186)break;J.thumbnailEncSha256=Q.bytes();continue}case 24:{if(Z!==194)break;J.staticUrl=Q.string();continue}case 25:{if(Z!==202)break;if(J.annotations===void 0)J.annotations=[];let Y=Q0.decode(Q,Q.uint32());if(Y!==void 0)J.annotations.push(Y);continue}case 26:{if(Z!==210)break;J.accessibilityLabel=Q.string();continue}case 27:{if(Z!==218)break;if(J.processedVideos===void 0)J.processedVideos=[];let Y=Jq.decode(Q,Q.uint32());if(Y!==void 0)J.processedVideos.push(Y);continue}case 28:{if(Z!==224)break;J.externalShareFullVideoDurationInSeconds=Q.uint32();continue}case 29:{if(Z!==232)break;J.motionPhotoPresentationOffsetMs=Q.uint64Number();continue}case 30:{if(Z!==242)break;J.metadataUrl=Q.string();continue}case 31:{if(Z!==248)break;J.videoSourceType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t.fromPartial($??{})},fromPartial($){let K=yC();return K.url=$.url??void 0,K.mimetype=$.mimetype??void 0,K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.seconds=$.seconds??void 0,K.mediaKey=$.mediaKey??void 0,K.caption=$.caption??void 0,K.gifPlayback=$.gifPlayback??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.interactiveAnnotations=$.interactiveAnnotations?.map((Q)=>Q0.fromPartial(Q))||void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.streamingSidecar=$.streamingSidecar??void 0,K.gifAttribution=$.gifAttribution??void 0,K.viewOnce=$.viewOnce??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.staticUrl=$.staticUrl??void 0,K.annotations=$.annotations?.map((Q)=>Q0.fromPartial(Q))||void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K.processedVideos=$.processedVideos?.map((Q)=>Jq.fromPartial(Q))||void 0,K.externalShareFullVideoDurationInSeconds=$.externalShareFullVideoDurationInSeconds??void 0,K.motionPhotoPresentationOffsetMs=$.motionPhotoPresentationOffsetMs??void 0,K.metadataUrl=$.metadataUrl??void 0,K.videoSourceType=$.videoSourceType??void 0,K}};function fC(){return{}}var n8={encode($,K=new H){if($.messageAddOnType!==void 0)K.uint32(8).int32($.messageAddOnType);if($.messageAddOn!==void 0)w.encode($.messageAddOn,K.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)K.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)K.uint32(32).int64($.serverTimestampMs);if($.status!==void 0)K.uint32(40).int32($.status);if($.addOnContextInfo!==void 0)F$.encode($.addOnContextInfo,K.uint32(50).fork()).join();if($.messageAddOnKey!==void 0)x.encode($.messageAddOnKey,K.uint32(58).fork()).join();if($.legacyMessage!==void 0)KJ.encode($.legacyMessage,K.uint32(66).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.messageAddOnType=Q.int32();continue}case 2:{if(Z!==18)break;J.messageAddOn=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.senderTimestampMs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.serverTimestampMs=Q.int64Number();continue}case 5:{if(Z!==40)break;J.status=Q.int32();continue}case 6:{if(Z!==50)break;J.addOnContextInfo=F$.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.messageAddOnKey=x.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.legacyMessage=KJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return n8.fromPartial($??{})},fromPartial($){let K=fC();return K.messageAddOnType=$.messageAddOnType??void 0,K.messageAddOn=$.messageAddOn!==void 0&&$.messageAddOn!==null?w.fromPartial($.messageAddOn):void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.serverTimestampMs=$.serverTimestampMs??void 0,K.status=$.status??void 0,K.addOnContextInfo=$.addOnContextInfo!==void 0&&$.addOnContextInfo!==null?F$.fromPartial($.addOnContextInfo):void 0,K.messageAddOnKey=$.messageAddOnKey!==void 0&&$.messageAddOnKey!==null?x.fromPartial($.messageAddOnKey):void 0,K.legacyMessage=$.legacyMessage!==void 0&&$.legacyMessage!==null?KJ.fromPartial($.legacyMessage):void 0,K}};function _C(){return{}}var F$={encode($,K=new H){if($.messageAddOnDurationInSecs!==void 0)K.uint32(8).uint32($.messageAddOnDurationInSecs);if($.messageAddOnExpiryType!==void 0)K.uint32(16).int32($.messageAddOnExpiryType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_C();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.messageAddOnDurationInSecs=Q.uint32();continue}case 2:{if(Z!==16)break;J.messageAddOnExpiryType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return F$.fromPartial($??{})},fromPartial($){let K=_C();return K.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,K.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,K}};function hC(){return{}}var d8={encode($,K=new H){if($.associationType!==void 0)K.uint32(8).int32($.associationType);if($.parentMessageKey!==void 0)x.encode($.parentMessageKey,K.uint32(18).fork()).join();if($.messageIndex!==void 0)K.uint32(24).int32($.messageIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.associationType=Q.int32();continue}case 2:{if(Z!==18)break;J.parentMessageKey=x.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.messageIndex=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return d8.fromPartial($??{})},fromPartial($){let K=hC();return K.associationType=$.associationType??void 0,K.parentMessageKey=$.parentMessageKey!==void 0&&$.parentMessageKey!==null?x.fromPartial($.parentMessageKey):void 0,K.messageIndex=$.messageIndex??void 0,K}};function lC(){return{}}var x$={encode($,K=new H){if($.deviceListMetadata!==void 0)kZ.encode($.deviceListMetadata,K.uint32(10).fork()).join();if($.deviceListMetadataVersion!==void 0)K.uint32(16).int32($.deviceListMetadataVersion);if($.messageSecret!==void 0)K.uint32(26).bytes($.messageSecret);if($.paddingBytes!==void 0)K.uint32(34).bytes($.paddingBytes);if($.messageAddOnDurationInSecs!==void 0)K.uint32(40).uint32($.messageAddOnDurationInSecs);if($.botMessageSecret!==void 0)K.uint32(50).bytes($.botMessageSecret);if($.botMetadata!==void 0)oK.encode($.botMetadata,K.uint32(58).fork()).join();if($.reportingTokenVersion!==void 0)K.uint32(64).int32($.reportingTokenVersion);if($.messageAddOnExpiryType!==void 0)K.uint32(72).int32($.messageAddOnExpiryType);if($.messageAssociation!==void 0)d8.encode($.messageAssociation,K.uint32(82).fork()).join();if($.capiCreatedGroup!==void 0)K.uint32(88).bool($.capiCreatedGroup);if($.supportPayload!==void 0)K.uint32(98).string($.supportPayload);if($.limitSharing!==void 0)V0.encode($.limitSharing,K.uint32(106).fork()).join();if($.limitSharingV2!==void 0)V0.encode($.limitSharingV2,K.uint32(114).fork()).join();if($.threadId!==void 0&&$.threadId.length!==0)for(let Q of $.threadId)xY.encode(Q,K.uint32(122).fork()).join();if($.weblinkRenderConfig!==void 0)K.uint32(128).int32($.weblinkRenderConfig);if($.teeBotMetadata!==void 0)K.uint32(138).bytes($.teeBotMetadata);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.deviceListMetadata=kZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.deviceListMetadataVersion=Q.int32();continue}case 3:{if(Z!==26)break;J.messageSecret=Q.bytes();continue}case 4:{if(Z!==34)break;J.paddingBytes=Q.bytes();continue}case 5:{if(Z!==40)break;J.messageAddOnDurationInSecs=Q.uint32();continue}case 6:{if(Z!==50)break;J.botMessageSecret=Q.bytes();continue}case 7:{if(Z!==58)break;J.botMetadata=oK.decode(Q,Q.uint32());continue}case 8:{if(Z!==64)break;J.reportingTokenVersion=Q.int32();continue}case 9:{if(Z!==72)break;J.messageAddOnExpiryType=Q.int32();continue}case 10:{if(Z!==82)break;J.messageAssociation=d8.decode(Q,Q.uint32());continue}case 11:{if(Z!==88)break;J.capiCreatedGroup=Q.bool();continue}case 12:{if(Z!==98)break;J.supportPayload=Q.string();continue}case 13:{if(Z!==106)break;J.limitSharing=V0.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.limitSharingV2=V0.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;if(J.threadId===void 0)J.threadId=[];let Y=xY.decode(Q,Q.uint32());if(Y!==void 0)J.threadId.push(Y);continue}case 16:{if(Z!==128)break;J.weblinkRenderConfig=Q.int32();continue}case 17:{if(Z!==138)break;J.teeBotMetadata=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x$.fromPartial($??{})},fromPartial($){let K=lC();return K.deviceListMetadata=$.deviceListMetadata!==void 0&&$.deviceListMetadata!==null?kZ.fromPartial($.deviceListMetadata):void 0,K.deviceListMetadataVersion=$.deviceListMetadataVersion??void 0,K.messageSecret=$.messageSecret??void 0,K.paddingBytes=$.paddingBytes??void 0,K.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,K.botMessageSecret=$.botMessageSecret??void 0,K.botMetadata=$.botMetadata!==void 0&&$.botMetadata!==null?oK.fromPartial($.botMetadata):void 0,K.reportingTokenVersion=$.reportingTokenVersion??void 0,K.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,K.messageAssociation=$.messageAssociation!==void 0&&$.messageAssociation!==null?d8.fromPartial($.messageAssociation):void 0,K.capiCreatedGroup=$.capiCreatedGroup??void 0,K.supportPayload=$.supportPayload??void 0,K.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?V0.fromPartial($.limitSharing):void 0,K.limitSharingV2=$.limitSharingV2!==void 0&&$.limitSharingV2!==null?V0.fromPartial($.limitSharingV2):void 0,K.threadId=$.threadId?.map((Q)=>xY.fromPartial(Q))||void 0,K.weblinkRenderConfig=$.weblinkRenderConfig??void 0,K.teeBotMetadata=$.teeBotMetadata??void 0,K}};function pC(){return{}}var x={encode($,K=new H){if($.remoteJid!==void 0)K.uint32(10).string($.remoteJid);if($.fromMe!==void 0)K.uint32(16).bool($.fromMe);if($.id!==void 0)K.uint32(26).string($.id);if($.participant!==void 0)K.uint32(34).string($.participant);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.remoteJid=Q.string();continue}case 2:{if(Z!==16)break;J.fromMe=Q.bool();continue}case 3:{if(Z!==26)break;J.id=Q.string();continue}case 4:{if(Z!==34)break;J.participant=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x.fromPartial($??{})},fromPartial($){let K=pC();return K.remoteJid=$.remoteJid??void 0,K.fromMe=$.fromMe??void 0,K.id=$.id??void 0,K.participant=$.participant??void 0,K}};function uC(){return{}}var oN={encode($,K=new H){if($.version!==void 0)K.uint32(13).sfixed32($.version);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);if($.encPayload!==void 0)K.uint32(26).bytes($.encPayload);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==13)break;J.version=Q.sfixed32();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}case 3:{if(Z!==26)break;J.encPayload=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oN.fromPartial($??{})},fromPartial($){let K=uC();return K.version=$.version??void 0,K.encIv=$.encIv??void 0,K.encPayload=$.encPayload??void 0,K}};function wC(){return{}}var m={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let Q of $.mentionedJid)K.uint32(18).string(Q);if($.commands!==void 0&&$.commands.length!==0)for(let Q of $.commands)TQ.encode(Q,K.uint32(26).fork()).join();if($.mentions!==void 0&&$.mentions.length!==0)for(let Q of $.mentions)HJ.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;if(J.mentionedJid===void 0)J.mentionedJid=[];let Y=Q.string();if(Y!==void 0)J.mentionedJid.push(Y);continue}case 3:{if(Z!==26)break;if(J.commands===void 0)J.commands=[];let Y=TQ.decode(Q,Q.uint32());if(Y!==void 0)J.commands.push(Y);continue}case 4:{if(Z!==34)break;if(J.mentions===void 0)J.mentions=[];let Y=HJ.decode(Q,Q.uint32());if(Y!==void 0)J.mentions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m.fromPartial($??{})},fromPartial($){let K=wC();return K.text=$.text??void 0,K.mentionedJid=$.mentionedJid?.map((Q)=>Q)||void 0,K.commands=$.commands?.map((Q)=>TQ.fromPartial(Q))||void 0,K.mentions=$.mentions?.map((Q)=>HJ.fromPartial(Q))||void 0,K}};function nC(){return{}}var r={encode($,K=new H){if($.value!==void 0)K.uint32(8).int64($.value);if($.offset!==void 0)K.uint32(16).uint32($.offset);if($.currencyCode!==void 0)K.uint32(26).string($.currencyCode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.value=Q.int64Number();continue}case 2:{if(Z!==16)break;J.offset=Q.uint32();continue}case 3:{if(Z!==26)break;J.currencyCode=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r.fromPartial($??{})},fromPartial($){let K=nC();return K.value=$.value??void 0,K.offset=$.offset??void 0,K.currencyCode=$.currencyCode??void 0,K}};function dC(){return{}}var c0={encode($,K=new H){if($.body!==void 0)K.uint32(10).string($.body);if($.caption!==void 0)K.uint32(26).string($.caption);if($.lng!==void 0)K.uint32(41).double($.lng);if($.isLive!==void 0)K.uint32(48).bool($.isLive);if($.lat!==void 0)K.uint32(57).double($.lat);if($.paymentAmount1000!==void 0)K.uint32(64).int32($.paymentAmount1000);if($.paymentNoteMsgBody!==void 0)K.uint32(74).string($.paymentNoteMsgBody);if($.matchedText!==void 0)K.uint32(90).string($.matchedText);if($.title!==void 0)K.uint32(98).string($.title);if($.description!==void 0)K.uint32(106).string($.description);if($.futureproofBuffer!==void 0)K.uint32(114).bytes($.futureproofBuffer);if($.clientUrl!==void 0)K.uint32(122).string($.clientUrl);if($.loc!==void 0)K.uint32(130).string($.loc);if($.pollName!==void 0)K.uint32(138).string($.pollName);if($.pollOptions!==void 0&&$.pollOptions.length!==0)for(let Q of $.pollOptions)k$.encode(Q,K.uint32(146).fork()).join();if($.pollSelectableOptionsCount!==void 0)K.uint32(160).uint32($.pollSelectableOptionsCount);if($.messageSecret!==void 0)K.uint32(170).bytes($.messageSecret);if($.originalSelfAuthor!==void 0)K.uint32(410).string($.originalSelfAuthor);if($.senderTimestampMs!==void 0)K.uint32(176).int64($.senderTimestampMs);if($.pollUpdateParentKey!==void 0)K.uint32(186).string($.pollUpdateParentKey);if($.encPollVote!==void 0)Kq.encode($.encPollVote,K.uint32(194).fork()).join();if($.isSentCagPollCreation!==void 0)K.uint32(224).bool($.isSentCagPollCreation);if($.pollContentType!==void 0)K.uint32(336).int32($.pollContentType);if($.pollType!==void 0)K.uint32(368).int32($.pollType);if($.correctOptionIndex!==void 0)K.uint32(376).int32($.correctOptionIndex);if($.pollVotesSnapshot!==void 0)o8.encode($.pollVotesSnapshot,K.uint32(330).fork()).join();if($.encReactionTargetMessageKey!==void 0)K.uint32(202).string($.encReactionTargetMessageKey);if($.encReactionEncPayload!==void 0)K.uint32(210).bytes($.encReactionEncPayload);if($.encReactionEncIv!==void 0)K.uint32(218).bytes($.encReactionEncIv);if($.botMessageSecret!==void 0)K.uint32(234).bytes($.botMessageSecret);if($.targetMessageKey!==void 0)K.uint32(242).string($.targetMessageKey);if($.encPayload!==void 0)K.uint32(250).bytes($.encPayload);if($.encIv!==void 0)K.uint32(258).bytes($.encIv);if($.eventName!==void 0)K.uint32(266).string($.eventName);if($.isEventCanceled!==void 0)K.uint32(272).bool($.isEventCanceled);if($.eventDescription!==void 0)K.uint32(282).string($.eventDescription);if($.eventJoinLink!==void 0)K.uint32(290).string($.eventJoinLink);if($.eventStartTime!==void 0)K.uint32(296).int64($.eventStartTime);if($.eventLocation!==void 0)j8.encode($.eventLocation,K.uint32(306).fork()).join();if($.eventEndTime!==void 0)K.uint32(320).int64($.eventEndTime);if($.eventIsScheduledCall!==void 0)K.uint32(352).bool($.eventIsScheduledCall);if($.eventExtraGuestsAllowed!==void 0)K.uint32(360).bool($.eventExtraGuestsAllowed);if($.plainProtobufBytes!==void 0)K.uint32(346).bytes($.plainProtobufBytes);if($.quarantineExtractedText!==void 0)K.uint32(386).string($.quarantineExtractedText);if($.pollEndTime!==void 0)K.uint32(392).int64($.pollEndTime);if($.pollHideVoterNames!==void 0)K.uint32(400).bool($.pollHideVoterNames);if($.pollAllowAddOption!==void 0)K.uint32(416).bool($.pollAllowAddOption);if($.sharableEventInviteId!==void 0)K.uint32(426).string($.sharableEventInviteId);if($.sharableEventInviteTitle!==void 0)K.uint32(434).string($.sharableEventInviteTitle);if($.sharableEventInviteStartTime!==void 0)K.uint32(440).int64($.sharableEventInviteStartTime);if($.sharableEventInviteEndTime!==void 0)K.uint32(448).int64($.sharableEventInviteEndTime);if($.sharableEventInviteCaption!==void 0)K.uint32(458).string($.sharableEventInviteCaption);if($.sharableEventInviteIsCanceled!==void 0)K.uint32(464).bool($.sharableEventInviteIsCanceled);if($.sharableEventInviteJpegThumbnail!==void 0)K.uint32(474).bytes($.sharableEventInviteJpegThumbnail);if($.sharableEventInviteCallLink!==void 0)K.uint32(482).string($.sharableEventInviteCallLink);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.body=Q.string();continue}case 3:{if(Z!==26)break;J.caption=Q.string();continue}case 5:{if(Z!==41)break;J.lng=Q.double();continue}case 6:{if(Z!==48)break;J.isLive=Q.bool();continue}case 7:{if(Z!==57)break;J.lat=Q.double();continue}case 8:{if(Z!==64)break;J.paymentAmount1000=Q.int32();continue}case 9:{if(Z!==74)break;J.paymentNoteMsgBody=Q.string();continue}case 11:{if(Z!==90)break;J.matchedText=Q.string();continue}case 12:{if(Z!==98)break;J.title=Q.string();continue}case 13:{if(Z!==106)break;J.description=Q.string();continue}case 14:{if(Z!==114)break;J.futureproofBuffer=Q.bytes();continue}case 15:{if(Z!==122)break;J.clientUrl=Q.string();continue}case 16:{if(Z!==130)break;J.loc=Q.string();continue}case 17:{if(Z!==138)break;J.pollName=Q.string();continue}case 18:{if(Z!==146)break;if(J.pollOptions===void 0)J.pollOptions=[];let Y=k$.decode(Q,Q.uint32());if(Y!==void 0)J.pollOptions.push(Y);continue}case 20:{if(Z!==160)break;J.pollSelectableOptionsCount=Q.uint32();continue}case 21:{if(Z!==170)break;J.messageSecret=Q.bytes();continue}case 51:{if(Z!==410)break;J.originalSelfAuthor=Q.string();continue}case 22:{if(Z!==176)break;J.senderTimestampMs=Q.int64Number();continue}case 23:{if(Z!==186)break;J.pollUpdateParentKey=Q.string();continue}case 24:{if(Z!==194)break;J.encPollVote=Kq.decode(Q,Q.uint32());continue}case 28:{if(Z!==224)break;J.isSentCagPollCreation=Q.bool();continue}case 42:{if(Z!==336)break;J.pollContentType=Q.int32();continue}case 46:{if(Z!==368)break;J.pollType=Q.int32();continue}case 47:{if(Z!==376)break;J.correctOptionIndex=Q.int32();continue}case 41:{if(Z!==330)break;J.pollVotesSnapshot=o8.decode(Q,Q.uint32());continue}case 25:{if(Z!==202)break;J.encReactionTargetMessageKey=Q.string();continue}case 26:{if(Z!==210)break;J.encReactionEncPayload=Q.bytes();continue}case 27:{if(Z!==218)break;J.encReactionEncIv=Q.bytes();continue}case 29:{if(Z!==234)break;J.botMessageSecret=Q.bytes();continue}case 30:{if(Z!==242)break;J.targetMessageKey=Q.string();continue}case 31:{if(Z!==250)break;J.encPayload=Q.bytes();continue}case 32:{if(Z!==258)break;J.encIv=Q.bytes();continue}case 33:{if(Z!==266)break;J.eventName=Q.string();continue}case 34:{if(Z!==272)break;J.isEventCanceled=Q.bool();continue}case 35:{if(Z!==282)break;J.eventDescription=Q.string();continue}case 36:{if(Z!==290)break;J.eventJoinLink=Q.string();continue}case 37:{if(Z!==296)break;J.eventStartTime=Q.int64Number();continue}case 38:{if(Z!==306)break;J.eventLocation=j8.decode(Q,Q.uint32());continue}case 40:{if(Z!==320)break;J.eventEndTime=Q.int64Number();continue}case 44:{if(Z!==352)break;J.eventIsScheduledCall=Q.bool();continue}case 45:{if(Z!==360)break;J.eventExtraGuestsAllowed=Q.bool();continue}case 43:{if(Z!==346)break;J.plainProtobufBytes=Q.bytes();continue}case 48:{if(Z!==386)break;J.quarantineExtractedText=Q.string();continue}case 49:{if(Z!==392)break;J.pollEndTime=Q.int64Number();continue}case 50:{if(Z!==400)break;J.pollHideVoterNames=Q.bool();continue}case 52:{if(Z!==416)break;J.pollAllowAddOption=Q.bool();continue}case 53:{if(Z!==426)break;J.sharableEventInviteId=Q.string();continue}case 54:{if(Z!==434)break;J.sharableEventInviteTitle=Q.string();continue}case 55:{if(Z!==440)break;J.sharableEventInviteStartTime=Q.int64Number();continue}case 56:{if(Z!==448)break;J.sharableEventInviteEndTime=Q.int64Number();continue}case 57:{if(Z!==458)break;J.sharableEventInviteCaption=Q.string();continue}case 58:{if(Z!==464)break;J.sharableEventInviteIsCanceled=Q.bool();continue}case 59:{if(Z!==474)break;J.sharableEventInviteJpegThumbnail=Q.bytes();continue}case 60:{if(Z!==482)break;J.sharableEventInviteCallLink=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c0.fromPartial($??{})},fromPartial($){let K=dC();return K.body=$.body??void 0,K.caption=$.caption??void 0,K.lng=$.lng??void 0,K.isLive=$.isLive??void 0,K.lat=$.lat??void 0,K.paymentAmount1000=$.paymentAmount1000??void 0,K.paymentNoteMsgBody=$.paymentNoteMsgBody??void 0,K.matchedText=$.matchedText??void 0,K.title=$.title??void 0,K.description=$.description??void 0,K.futureproofBuffer=$.futureproofBuffer??void 0,K.clientUrl=$.clientUrl??void 0,K.loc=$.loc??void 0,K.pollName=$.pollName??void 0,K.pollOptions=$.pollOptions?.map((Q)=>k$.fromPartial(Q))||void 0,K.pollSelectableOptionsCount=$.pollSelectableOptionsCount??void 0,K.messageSecret=$.messageSecret??void 0,K.originalSelfAuthor=$.originalSelfAuthor??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.pollUpdateParentKey=$.pollUpdateParentKey??void 0,K.encPollVote=$.encPollVote!==void 0&&$.encPollVote!==null?Kq.fromPartial($.encPollVote):void 0,K.isSentCagPollCreation=$.isSentCagPollCreation??void 0,K.pollContentType=$.pollContentType??void 0,K.pollType=$.pollType??void 0,K.correctOptionIndex=$.correctOptionIndex??void 0,K.pollVotesSnapshot=$.pollVotesSnapshot!==void 0&&$.pollVotesSnapshot!==null?o8.fromPartial($.pollVotesSnapshot):void 0,K.encReactionTargetMessageKey=$.encReactionTargetMessageKey??void 0,K.encReactionEncPayload=$.encReactionEncPayload??void 0,K.encReactionEncIv=$.encReactionEncIv??void 0,K.botMessageSecret=$.botMessageSecret??void 0,K.targetMessageKey=$.targetMessageKey??void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K.eventName=$.eventName??void 0,K.isEventCanceled=$.isEventCanceled??void 0,K.eventDescription=$.eventDescription??void 0,K.eventJoinLink=$.eventJoinLink??void 0,K.eventStartTime=$.eventStartTime??void 0,K.eventLocation=$.eventLocation!==void 0&&$.eventLocation!==null?j8.fromPartial($.eventLocation):void 0,K.eventEndTime=$.eventEndTime??void 0,K.eventIsScheduledCall=$.eventIsScheduledCall??void 0,K.eventExtraGuestsAllowed=$.eventExtraGuestsAllowed??void 0,K.plainProtobufBytes=$.plainProtobufBytes??void 0,K.quarantineExtractedText=$.quarantineExtractedText??void 0,K.pollEndTime=$.pollEndTime??void 0,K.pollHideVoterNames=$.pollHideVoterNames??void 0,K.pollAllowAddOption=$.pollAllowAddOption??void 0,K.sharableEventInviteId=$.sharableEventInviteId??void 0,K.sharableEventInviteTitle=$.sharableEventInviteTitle??void 0,K.sharableEventInviteStartTime=$.sharableEventInviteStartTime??void 0,K.sharableEventInviteEndTime=$.sharableEventInviteEndTime??void 0,K.sharableEventInviteCaption=$.sharableEventInviteCaption??void 0,K.sharableEventInviteIsCanceled=$.sharableEventInviteIsCanceled??void 0,K.sharableEventInviteJpegThumbnail=$.sharableEventInviteJpegThumbnail??void 0,K.sharableEventInviteCallLink=$.sharableEventInviteCallLink??void 0,K}};function jC(){return{}}var j8={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.name!==void 0)K.uint32(26).string($.name);if($.address!==void 0)K.uint32(34).string($.address);if($.url!==void 0)K.uint32(42).string($.url);if($.jpegThumbnail!==void 0)K.uint32(50).bytes($.jpegThumbnail);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==34)break;J.address=Q.string();continue}case 5:{if(Z!==42)break;J.url=Q.string();continue}case 6:{if(Z!==50)break;J.jpegThumbnail=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return j8.fromPartial($??{})},fromPartial($){let K=jC();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.name=$.name??void 0,K.address=$.address??void 0,K.url=$.url??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K}};function cC(){return{}}var k$={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.hash!==void 0)K.uint32(18).string($.hash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.hash=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return k$.fromPartial($??{})},fromPartial($){let K=cC();return K.name=$.name??void 0,K.hash=$.hash??void 0,K}};function oC(){return{}}var c8={encode($,K=new H){if($.option!==void 0)k$.encode($.option,K.uint32(10).fork()).join();if($.optionVoteCount!==void 0)K.uint32(16).int32($.optionVoteCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.option=k$.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.optionVoteCount=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c8.fromPartial($??{})},fromPartial($){let K=oC();return K.option=$.option!==void 0&&$.option!==null?k$.fromPartial($.option):void 0,K.optionVoteCount=$.optionVoteCount??void 0,K}};function bC(){return{}}var o8={encode($,K=new H){if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let Q of $.pollVotes)c8.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.pollVotes===void 0)J.pollVotes=[];let Y=c8.decode(Q,Q.uint32());if(Y!==void 0)J.pollVotes.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o8.fromPartial($??{})},fromPartial($){let K=bC();return K.pollVotes=$.pollVotes?.map((Q)=>c8.fromPartial(Q))||void 0,K}};function iC(){return{}}var bN={encode($,K=new H){if($.currentMsg!==void 0)c0.encode($.currentMsg,K.uint32(10).fork()).join();if($.quotedMsg!==void 0)c0.encode($.quotedMsg,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.currentMsg=c0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.quotedMsg=c0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bN.fromPartial($??{})},fromPartial($){let K=iC();return K.currentMsg=$.currentMsg!==void 0&&$.currentMsg!==null?c0.fromPartial($.currentMsg):void 0,K.quotedMsg=$.quotedMsg!==void 0&&$.quotedMsg!==null?c0.fromPartial($.quotedMsg):void 0,K}};function mC(){return{}}var iN={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.signature!==void 0)K.uint32(18).bytes($.signature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.signature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iN.fromPartial($??{})},fromPartial($){let K=mC();return K.details=$.details??void 0,K.signature=$.signature??void 0,K}};function gC(){return{}}var mN={encode($,K=new H){if($.serial!==void 0)K.uint32(8).uint32($.serial);if($.issuer!==void 0)K.uint32(18).string($.issuer);if($.expires!==void 0)K.uint32(24).uint64($.expires);if($.subject!==void 0)K.uint32(34).string($.subject);if($.key!==void 0)K.uint32(42).bytes($.key);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serial=Q.uint32();continue}case 2:{if(Z!==18)break;J.issuer=Q.string();continue}case 3:{if(Z!==24)break;J.expires=Q.uint64Number();continue}case 4:{if(Z!==34)break;J.subject=Q.string();continue}case 5:{if(Z!==42)break;J.key=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mN.fromPartial($??{})},fromPartial($){let K=gC();return K.serial=$.serial??void 0,K.issuer=$.issuer??void 0,K.expires=$.expires??void 0,K.subject=$.subject??void 0,K.key=$.key??void 0,K}};function tC(){return{}}var gN={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();if($.messageTimestamp!==void 0)K.uint32(24).uint64($.messageTimestamp);if($.participant!==void 0)K.uint32(34).string($.participant);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.messageTimestamp=Q.uint64Number();continue}case 4:{if(Z!==34)break;J.participant=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gN.fromPartial($??{})},fromPartial($){let K=tC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.messageTimestamp=$.messageTimestamp??void 0,K.participant=$.participant??void 0,K}};function rC(){return{}}var o0={encode($,K=new H){if($.messageVibrate!==void 0)K.uint32(10).string($.messageVibrate);if($.messagePopup!==void 0)K.uint32(18).string($.messagePopup);if($.messageLight!==void 0)K.uint32(26).string($.messageLight);if($.lowPriorityNotifications!==void 0)K.uint32(32).bool($.lowPriorityNotifications);if($.reactionsMuted!==void 0)K.uint32(40).bool($.reactionsMuted);if($.callVibrate!==void 0)K.uint32(50).string($.callVibrate);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageVibrate=Q.string();continue}case 2:{if(Z!==18)break;J.messagePopup=Q.string();continue}case 3:{if(Z!==26)break;J.messageLight=Q.string();continue}case 4:{if(Z!==32)break;J.lowPriorityNotifications=Q.bool();continue}case 5:{if(Z!==40)break;J.reactionsMuted=Q.bool();continue}case 6:{if(Z!==50)break;J.callVibrate=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o0.fromPartial($??{})},fromPartial($){let K=rC();return K.messageVibrate=$.messageVibrate??void 0,K.messagePopup=$.messagePopup??void 0,K.messageLight=$.messageLight??void 0,K.lowPriorityNotifications=$.lowPriorityNotifications??void 0,K.reactionsMuted=$.reactionsMuted??void 0,K.callVibrate=$.callVibrate??void 0,K}};function aC(){return{}}var b8={encode($,K=new H){if($.orfClientState!==void 0)K.uint32(10).bytes($.orfClientState);if($.threadId!==void 0)K.uint32(18).string($.threadId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.orfClientState=Q.bytes();continue}case 2:{if(Z!==18)break;J.threadId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b8.fromPartial($??{})},fromPartial($){let K=aC();return K.orfClientState=$.orfClientState??void 0,K.threadId=$.threadId??void 0,K}};function sC(){return{}}var tN={encode($,K=new H){if($.orfThreadId!==void 0)K.uint32(10).bytes($.orfThreadId);if($.error!==void 0)K.uint32(18).string($.error);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.orfThreadId=Q.bytes();continue}case 2:{if(Z!==18)break;J.error=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tN.fromPartial($??{})},fromPartial($){let K=sC();return K.orfThreadId=$.orfThreadId??void 0,K.error=$.error??void 0,K}};function eC(){return{}}var rN={encode($,K=new H){if($.companionPublicKey!==void 0)K.uint32(10).bytes($.companionPublicKey);if($.companionIdentityKey!==void 0)K.uint32(18).bytes($.companionIdentityKey);if($.advSecret!==void 0)K.uint32(26).bytes($.advSecret);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.companionPublicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.companionIdentityKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.advSecret=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rN.fromPartial($??{})},fromPartial($){let K=eC();return K.companionPublicKey=$.companionPublicKey??void 0,K.companionIdentityKey=$.companionIdentityKey??void 0,K.advSecret=$.advSecret??void 0,K}};function $D(){return{}}var i8={encode($,K=new H){if($.userJid!==void 0)K.uint32(10).string($.userJid);if($.leaveReason!==void 0)K.uint32(16).int32($.leaveReason);if($.leaveTs!==void 0)K.uint32(24).uint64($.leaveTs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$D();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.userJid=Q.string();continue}case 2:{if(Z!==16)break;J.leaveReason=Q.int32();continue}case 3:{if(Z!==24)break;J.leaveTs=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i8.fromPartial($??{})},fromPartial($){let K=$D();return K.userJid=$.userJid??void 0,K.leaveReason=$.leaveReason??void 0,K.leaveTs=$.leaveTs??void 0,K}};function KD(){return{}}var m8={encode($,K=new H){if($.groupJid!==void 0)K.uint32(10).string($.groupJid);if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let Q of $.pastParticipants)i8.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupJid=Q.string();continue}case 2:{if(Z!==18)break;if(J.pastParticipants===void 0)J.pastParticipants=[];let Y=i8.decode(Q,Q.uint32());if(Y!==void 0)J.pastParticipants.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m8.fromPartial($??{})},fromPartial($){let K=KD();return K.groupJid=$.groupJid??void 0,K.pastParticipants=$.pastParticipants?.map((Q)=>i8.fromPartial(Q))||void 0,K}};function QD(){return{}}var aN={encode($,K=new H){if($.currentLthash!==void 0)K.uint32(10).bytes($.currentLthash);if($.newLthash!==void 0)K.uint32(18).bytes($.newLthash);if($.patchVersion!==void 0)K.uint32(26).bytes($.patchVersion);if($.collectionName!==void 0)K.uint32(34).bytes($.collectionName);if($.firstFourBytesFromAHashOfSnapshotMacKey!==void 0)K.uint32(42).bytes($.firstFourBytesFromAHashOfSnapshotMacKey);if($.newLthashSubtract!==void 0)K.uint32(50).bytes($.newLthashSubtract);if($.numberAdd!==void 0)K.uint32(56).int32($.numberAdd);if($.numberRemove!==void 0)K.uint32(64).int32($.numberRemove);if($.numberOverride!==void 0)K.uint32(72).int32($.numberOverride);if($.senderPlatform!==void 0)K.uint32(80).int32($.senderPlatform);if($.isSenderPrimary!==void 0)K.uint32(88).bool($.isSenderPrimary);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.currentLthash=Q.bytes();continue}case 2:{if(Z!==18)break;J.newLthash=Q.bytes();continue}case 3:{if(Z!==26)break;J.patchVersion=Q.bytes();continue}case 4:{if(Z!==34)break;J.collectionName=Q.bytes();continue}case 5:{if(Z!==42)break;J.firstFourBytesFromAHashOfSnapshotMacKey=Q.bytes();continue}case 6:{if(Z!==50)break;J.newLthashSubtract=Q.bytes();continue}case 7:{if(Z!==56)break;J.numberAdd=Q.int32();continue}case 8:{if(Z!==64)break;J.numberRemove=Q.int32();continue}case 9:{if(Z!==72)break;J.numberOverride=Q.int32();continue}case 10:{if(Z!==80)break;J.senderPlatform=Q.int32();continue}case 11:{if(Z!==88)break;J.isSenderPrimary=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aN.fromPartial($??{})},fromPartial($){let K=QD();return K.currentLthash=$.currentLthash??void 0,K.newLthash=$.newLthash??void 0,K.patchVersion=$.patchVersion??void 0,K.collectionName=$.collectionName??void 0,K.firstFourBytesFromAHashOfSnapshotMacKey=$.firstFourBytesFromAHashOfSnapshotMacKey??void 0,K.newLthashSubtract=$.newLthashSubtract??void 0,K.numberAdd=$.numberAdd??void 0,K.numberRemove=$.numberRemove??void 0,K.numberOverride=$.numberOverride??void 0,K.senderPlatform=$.senderPlatform??void 0,K.isSenderPrimary=$.isSenderPrimary??void 0,K}};function ZD(){return{}}var N$={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.fileLength!==void 0)K.uint32(16).uint64($.fileLength);if($.width!==void 0)K.uint32(24).uint32($.width);if($.height!==void 0)K.uint32(32).uint32($.height);if($.mimetype!==void 0)K.uint32(42).string($.mimetype);if($.placeholderArgb!==void 0)K.uint32(53).fixed32($.placeholderArgb);if($.textArgb!==void 0)K.uint32(61).fixed32($.textArgb);if($.subtextArgb!==void 0)K.uint32(69).fixed32($.subtextArgb);if($.mediaData!==void 0)g8.encode($.mediaData,K.uint32(74).fork()).join();if($.type!==void 0)K.uint32(80).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==16)break;J.fileLength=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.width=Q.uint32();continue}case 4:{if(Z!==32)break;J.height=Q.uint32();continue}case 5:{if(Z!==42)break;J.mimetype=Q.string();continue}case 6:{if(Z!==53)break;J.placeholderArgb=Q.fixed32();continue}case 7:{if(Z!==61)break;J.textArgb=Q.fixed32();continue}case 8:{if(Z!==69)break;J.subtextArgb=Q.fixed32();continue}case 9:{if(Z!==74)break;J.mediaData=g8.decode(Q,Q.uint32());continue}case 10:{if(Z!==80)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return N$.fromPartial($??{})},fromPartial($){let K=ZD();return K.id=$.id??void 0,K.fileLength=$.fileLength??void 0,K.width=$.width??void 0,K.height=$.height??void 0,K.mimetype=$.mimetype??void 0,K.placeholderArgb=$.placeholderArgb??void 0,K.textArgb=$.textArgb??void 0,K.subtextArgb=$.subtextArgb??void 0,K.mediaData=$.mediaData!==void 0&&$.mediaData!==null?g8.fromPartial($.mediaData):void 0,K.type=$.type??void 0,K}};function JD(){return{}}var g8={encode($,K=new H){if($.mediaKey!==void 0)K.uint32(10).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)K.uint32(16).int64($.mediaKeyTimestamp);if($.fileSha256!==void 0)K.uint32(26).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(42).string($.directPath);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.mediaKey=Q.bytes();continue}case 2:{if(Z!==16)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 3:{if(Z!==26)break;J.fileSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.fileEncSha256=Q.bytes();continue}case 5:{if(Z!==42)break;J.directPath=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return g8.fromPartial($??{})},fromPartial($){let K=JD();return K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K}};function XD(){return{}}var b0={encode($,K=new H){if($.currencyDeprecated!==void 0)K.uint32(8).int32($.currencyDeprecated);if($.amount1000!==void 0)K.uint32(16).uint64($.amount1000);if($.receiverJid!==void 0)K.uint32(26).string($.receiverJid);if($.status!==void 0)K.uint32(32).int32($.status);if($.transactionTimestamp!==void 0)K.uint32(40).uint64($.transactionTimestamp);if($.requestMessageKey!==void 0)x.encode($.requestMessageKey,K.uint32(50).fork()).join();if($.expiryTimestamp!==void 0)K.uint32(56).uint64($.expiryTimestamp);if($.futureproofed!==void 0)K.uint32(64).bool($.futureproofed);if($.currency!==void 0)K.uint32(74).string($.currency);if($.txnStatus!==void 0)K.uint32(80).int32($.txnStatus);if($.useNoviFiatFormat!==void 0)K.uint32(88).bool($.useNoviFiatFormat);if($.primaryAmount!==void 0)r.encode($.primaryAmount,K.uint32(98).fork()).join();if($.exchangeAmount!==void 0)r.encode($.exchangeAmount,K.uint32(106).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.currencyDeprecated=Q.int32();continue}case 2:{if(Z!==16)break;J.amount1000=Q.uint64Number();continue}case 3:{if(Z!==26)break;J.receiverJid=Q.string();continue}case 4:{if(Z!==32)break;J.status=Q.int32();continue}case 5:{if(Z!==40)break;J.transactionTimestamp=Q.uint64Number();continue}case 6:{if(Z!==50)break;J.requestMessageKey=x.decode(Q,Q.uint32());continue}case 7:{if(Z!==56)break;J.expiryTimestamp=Q.uint64Number();continue}case 8:{if(Z!==64)break;J.futureproofed=Q.bool();continue}case 9:{if(Z!==74)break;J.currency=Q.string();continue}case 10:{if(Z!==80)break;J.txnStatus=Q.int32();continue}case 11:{if(Z!==88)break;J.useNoviFiatFormat=Q.bool();continue}case 12:{if(Z!==98)break;J.primaryAmount=r.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.exchangeAmount=r.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b0.fromPartial($??{})},fromPartial($){let K=XD();return K.currencyDeprecated=$.currencyDeprecated??void 0,K.amount1000=$.amount1000??void 0,K.receiverJid=$.receiverJid??void 0,K.status=$.status??void 0,K.transactionTimestamp=$.transactionTimestamp??void 0,K.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?x.fromPartial($.requestMessageKey):void 0,K.expiryTimestamp=$.expiryTimestamp??void 0,K.futureproofed=$.futureproofed??void 0,K.currency=$.currency??void 0,K.txnStatus=$.txnStatus??void 0,K.useNoviFiatFormat=$.useNoviFiatFormat??void 0,K.primaryAmount=$.primaryAmount!==void 0&&$.primaryAmount!==null?r.fromPartial($.primaryAmount):void 0,K.exchangeAmount=$.exchangeAmount!==void 0&&$.exchangeAmount!==null?r.fromPartial($.exchangeAmount):void 0,K}};function qD(){return{}}var t8={encode($,K=new H){if($.pnJid!==void 0)K.uint32(10).string($.pnJid);if($.lidJid!==void 0)K.uint32(18).string($.lidJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pnJid=Q.string();continue}case 2:{if(Z!==18)break;J.lidJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t8.fromPartial($??{})},fromPartial($){let K=qD();return K.pnJid=$.pnJid??void 0,K.lidJid=$.lidJid??void 0,K}};function YD(){return{}}var r8={encode($,K=new H){if($.oldPhoto!==void 0)K.uint32(10).bytes($.oldPhoto);if($.newPhoto!==void 0)K.uint32(18).bytes($.newPhoto);if($.newPhotoId!==void 0)K.uint32(24).uint32($.newPhotoId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.oldPhoto=Q.bytes();continue}case 2:{if(Z!==18)break;J.newPhoto=Q.bytes();continue}case 3:{if(Z!==24)break;J.newPhotoId=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r8.fromPartial($??{})},fromPartial($){let K=YD();return K.oldPhoto=$.oldPhoto??void 0,K.newPhoto=$.newPhoto??void 0,K.newPhotoId=$.newPhotoId??void 0,K}};function HD(){return{}}var a8={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.key!==void 0)x.encode($.key,K.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)K.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)K.uint32(32).int64($.serverTimestampMs);if($.messageAddOnContextInfo!==void 0)F$.encode($.messageAddOnContextInfo,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.key=x.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.senderTimestampMs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.serverTimestampMs=Q.int64Number();continue}case 5:{if(Z!==42)break;J.messageAddOnContextInfo=F$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a8.fromPartial($??{})},fromPartial($){let K=HD();return K.type=$.type??void 0,K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.serverTimestampMs=$.serverTimestampMs??void 0,K.messageAddOnContextInfo=$.messageAddOnContextInfo!==void 0&&$.messageAddOnContextInfo!==null?F$.fromPartial($.messageAddOnContextInfo):void 0,K}};function zD(){return{}}var s8={encode($,K=new H){if($.xDeprecated!==void 0)K.uint32(8).int32($.xDeprecated);if($.yDeprecated!==void 0)K.uint32(16).int32($.yDeprecated);if($.x!==void 0)K.uint32(25).double($.x);if($.y!==void 0)K.uint32(33).double($.y);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.xDeprecated=Q.int32();continue}case 2:{if(Z!==16)break;J.yDeprecated=Q.int32();continue}case 3:{if(Z!==25)break;J.x=Q.double();continue}case 4:{if(Z!==33)break;J.y=Q.double();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return s8.fromPartial($??{})},fromPartial($){let K=zD();return K.xDeprecated=$.xDeprecated??void 0,K.yDeprecated=$.yDeprecated??void 0,K.x=$.x??void 0,K.y=$.y??void 0,K}};function VD(){return{}}var e8={encode($,K=new H){if($.pollInvalidated!==void 0)K.uint32(8).bool($.pollInvalidated);if($.pollNameHashHistory!==void 0&&$.pollNameHashHistory.length!==0)for(let Q of $.pollNameHashHistory)$q.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pollInvalidated=Q.bool();continue}case 2:{if(Z!==18)break;if(J.pollNameHashHistory===void 0)J.pollNameHashHistory=[];let Y=$q.decode(Q,Q.uint32());if(Y!==void 0)J.pollNameHashHistory.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e8.fromPartial($??{})},fromPartial($){let K=VD();return K.pollInvalidated=$.pollInvalidated??void 0,K.pollNameHashHistory=$.pollNameHashHistory?.map((Q)=>$q.fromPartial(Q))||void 0,K}};function GD(){return{}}var $q={encode($,K=new H){if($.editStanzaId!==void 0)K.uint32(10).string($.editStanzaId);if($.pollNameHash!==void 0)K.uint32(18).bytes($.pollNameHash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.editStanzaId=Q.string();continue}case 2:{if(Z!==18)break;J.pollNameHash=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $q.fromPartial($??{})},fromPartial($){let K=GD();return K.editStanzaId=$.editStanzaId??void 0,K.pollNameHash=$.pollNameHash??void 0,K}};function UD(){return{}}var Kq={encode($,K=new H){if($.encPayload!==void 0)K.uint32(10).bytes($.encPayload);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Kq.fromPartial($??{})},fromPartial($){let K=UD();return K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function CD(){return{}}var Qq={encode($,K=new H){if($.pollUpdateMessageKey!==void 0)x.encode($.pollUpdateMessageKey,K.uint32(10).fork()).join();if($.vote!==void 0)I0.encode($.vote,K.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)K.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)K.uint32(32).int64($.serverTimestampMs);if($.unread!==void 0)K.uint32(40).bool($.unread);if($.metadata!==void 0)N0.encode($.metadata,K.uint32(50).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollUpdateMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.vote=I0.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.senderTimestampMs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.serverTimestampMs=Q.int64Number();continue}case 5:{if(Z!==40)break;J.unread=Q.bool();continue}case 6:{if(Z!==50)break;J.metadata=N0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Qq.fromPartial($??{})},fromPartial($){let K=CD();return K.pollUpdateMessageKey=$.pollUpdateMessageKey!==void 0&&$.pollUpdateMessageKey!==null?x.fromPartial($.pollUpdateMessageKey):void 0,K.vote=$.vote!==void 0&&$.vote!==null?I0.fromPartial($.vote):void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.serverTimestampMs=$.serverTimestampMs??void 0,K.unread=$.unread??void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?N0.fromPartial($.metadata):void 0,K}};function DD(){return{}}var sN={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.publicKey!==void 0)K.uint32(18).bytes($.publicKey);if($.privateKey!==void 0)K.uint32(26).bytes($.privateKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==18)break;J.publicKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.privateKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sN.fromPartial($??{})},fromPartial($){let K=DD();return K.id=$.id??void 0,K.publicKey=$.publicKey??void 0,K.privateKey=$.privateKey??void 0,K}};function LD(){return{}}var eN={encode($,K=new H){if($.registrationId!==void 0)K.uint32(40).uint32($.registrationId);if($.preKeyId!==void 0)K.uint32(8).uint32($.preKeyId);if($.signedPreKeyId!==void 0)K.uint32(48).uint32($.signedPreKeyId);if($.baseKey!==void 0)K.uint32(18).bytes($.baseKey);if($.identityKey!==void 0)K.uint32(26).bytes($.identityKey);if($.message!==void 0)K.uint32(34).bytes($.message);if($.kyberPreKeyId!==void 0)K.uint32(56).uint32($.kyberPreKeyId);if($.kyberCiphertext!==void 0)K.uint32(66).bytes($.kyberCiphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 5:{if(Z!==40)break;J.registrationId=Q.uint32();continue}case 1:{if(Z!==8)break;J.preKeyId=Q.uint32();continue}case 6:{if(Z!==48)break;J.signedPreKeyId=Q.uint32();continue}case 2:{if(Z!==18)break;J.baseKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.identityKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.message=Q.bytes();continue}case 7:{if(Z!==56)break;J.kyberPreKeyId=Q.uint32();continue}case 8:{if(Z!==66)break;J.kyberCiphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eN.fromPartial($??{})},fromPartial($){let K=LD();return K.registrationId=$.registrationId??void 0,K.preKeyId=$.preKeyId??void 0,K.signedPreKeyId=$.signedPreKeyId??void 0,K.baseKey=$.baseKey??void 0,K.identityKey=$.identityKey??void 0,K.message=$.message??void 0,K.kyberPreKeyId=$.kyberPreKeyId??void 0,K.kyberCiphertext=$.kyberCiphertext??void 0,K}};function PD(){return{}}var Zq={encode($,K=new H){if($.serverCampaignId!==void 0)K.uint32(10).string($.serverCampaignId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.serverCampaignId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Zq.fromPartial($??{})},fromPartial($){let K=PD();return K.serverCampaignId=$.serverCampaignId??void 0,K}};function FD(){return{}}var $R={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.nonce!==void 0)K.uint32(18).bytes($.nonce);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.nonce=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $R.fromPartial($??{})},fromPartial($){let K=FD();return K.publicKey=$.publicKey??void 0,K.nonce=$.nonce??void 0,K}};function xD(){return{}}var Jq={encode($,K=new H){if($.directPath!==void 0)K.uint32(10).string($.directPath);if($.fileSha256!==void 0)K.uint32(18).bytes($.fileSha256);if($.height!==void 0)K.uint32(24).uint32($.height);if($.width!==void 0)K.uint32(32).uint32($.width);if($.fileLength!==void 0)K.uint32(40).uint64($.fileLength);if($.bitrate!==void 0)K.uint32(48).uint32($.bitrate);if($.quality!==void 0)K.uint32(56).int32($.quality);if($.capabilities!==void 0&&$.capabilities.length!==0)for(let Q of $.capabilities)K.uint32(66).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.directPath=Q.string();continue}case 2:{if(Z!==18)break;J.fileSha256=Q.bytes();continue}case 3:{if(Z!==24)break;J.height=Q.uint32();continue}case 4:{if(Z!==32)break;J.width=Q.uint32();continue}case 5:{if(Z!==40)break;J.fileLength=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.bitrate=Q.uint32();continue}case 7:{if(Z!==56)break;J.quality=Q.int32();continue}case 8:{if(Z!==66)break;if(J.capabilities===void 0)J.capabilities=[];let Y=Q.string();if(Y!==void 0)J.capabilities.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Jq.fromPartial($??{})},fromPartial($){let K=xD();return K.directPath=$.directPath??void 0,K.fileSha256=$.fileSha256??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.fileLength=$.fileLength??void 0,K.bitrate=$.bitrate??void 0,K.quality=$.quality??void 0,K.capabilities=$.capabilities?.map((Q)=>Q)||void 0,K}};function kD(){return{}}var KR={encode($,K=new H){if($.companionEphemeralIdentity!==void 0)K.uint32(10).bytes($.companionEphemeralIdentity);if($.commitment!==void 0)fQ.encode($.commitment,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.companionEphemeralIdentity=Q.bytes();continue}case 2:{if(Z!==18)break;J.commitment=fQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KR.fromPartial($??{})},fromPartial($){let K=kD();return K.companionEphemeralIdentity=$.companionEphemeralIdentity??void 0,K.commitment=$.commitment!==void 0&&$.commitment!==null?fQ.fromPartial($.commitment):void 0,K}};function ND(){return{}}var Xq={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.pushname!==void 0)K.uint32(18).string($.pushname);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ND();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==18)break;J.pushname=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Xq.fromPartial($??{})},fromPartial($){let K=ND();return K.id=$.id??void 0,K.pushname=$.pushname??void 0,K}};function RD(){return{}}var QR={encode($,K=new H){return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QR.fromPartial($??{})},fromPartial($){return RD()}};function BD(){return{}}var qq={encode($,K=new H){if($.filterName!==void 0)K.uint32(10).string($.filterName);if($.parameters!==void 0&&$.parameters.length!==0)for(let Q of $.parameters)Yq.encode(Q,K.uint32(18).fork()).join();if($.filterResult!==void 0)K.uint32(24).int32($.filterResult);if($.clientNotSupportedConfig!==void 0)K.uint32(32).int32($.clientNotSupportedConfig);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.filterName=Q.string();continue}case 2:{if(Z!==18)break;if(J.parameters===void 0)J.parameters=[];let Y=Yq.decode(Q,Q.uint32());if(Y!==void 0)J.parameters.push(Y);continue}case 3:{if(Z!==24)break;J.filterResult=Q.int32();continue}case 4:{if(Z!==32)break;J.clientNotSupportedConfig=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qq.fromPartial($??{})},fromPartial($){let K=BD();return K.filterName=$.filterName??void 0,K.parameters=$.parameters?.map((Q)=>Yq.fromPartial(Q))||void 0,K.filterResult=$.filterResult??void 0,K.clientNotSupportedConfig=$.clientNotSupportedConfig??void 0,K}};function OD(){return{}}var j$={encode($,K=new H){if($.clauseType!==void 0)K.uint32(8).int32($.clauseType);if($.clauses!==void 0&&$.clauses.length!==0)for(let Q of $.clauses)j$.encode(Q,K.uint32(18).fork()).join();if($.filters!==void 0&&$.filters.length!==0)for(let Q of $.filters)qq.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.clauseType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.clauses===void 0)J.clauses=[];let Y=j$.decode(Q,Q.uint32());if(Y!==void 0)J.clauses.push(Y);continue}case 3:{if(Z!==26)break;if(J.filters===void 0)J.filters=[];let Y=qq.decode(Q,Q.uint32());if(Y!==void 0)J.filters.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return j$.fromPartial($??{})},fromPartial($){let K=OD();return K.clauseType=$.clauseType??void 0,K.clauses=$.clauses?.map((Q)=>j$.fromPartial(Q))||void 0,K.filters=$.filters?.map((Q)=>qq.fromPartial(Q))||void 0,K}};function AD(){return{}}var Yq={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.value!==void 0)K.uint32(18).string($.value);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.value=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Yq.fromPartial($??{})},fromPartial($){let K=AD();return K.key=$.key??void 0,K.value=$.value??void 0,K}};function ED(){return{}}var Hq={encode($,K=new H){if($.originalData!==void 0)K.uint32(10).bytes($.originalData);if($.extractedText!==void 0)K.uint32(18).string($.extractedText);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ED();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.originalData=Q.bytes();continue}case 2:{if(Z!==18)break;J.extractedText=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Hq.fromPartial($??{})},fromPartial($){let K=ED();return K.originalData=$.originalData??void 0,K.extractedText=$.extractedText??void 0,K}};function MD(){return{}}var zq={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);if($.groupingKey!==void 0)K.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)K.uint32(32).int64($.senderTimestampMs);if($.unread!==void 0)K.uint32(40).bool($.unread);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}case 3:{if(Z!==26)break;J.groupingKey=Q.string();continue}case 4:{if(Z!==32)break;J.senderTimestampMs=Q.int64Number();continue}case 5:{if(Z!==40)break;J.unread=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zq.fromPartial($??{})},fromPartial($){let K=MD();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K.groupingKey=$.groupingKey??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.unread=$.unread??void 0,K}};function WD(){return{}}var Vq={encode($,K=new H){if($.emoji!==void 0)K.uint32(10).string($.emoji);if($.weight!==void 0)K.uint32(21).float($.weight);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.emoji=Q.string();continue}case 2:{if(Z!==21)break;J.weight=Q.float();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Vq.fromPartial($??{})},fromPartial($){let K=WD();return K.emoji=$.emoji??void 0,K.weight=$.weight??void 0,K}};function ID(){return{}}var ZR={encode($,K=new H){if($.currentSession!==void 0)i0.encode($.currentSession,K.uint32(10).fork()).join();if($.previousSessions!==void 0&&$.previousSessions.length!==0)for(let Q of $.previousSessions)i0.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ID();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.currentSession=i0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.previousSessions===void 0)J.previousSessions=[];let Y=i0.decode(Q,Q.uint32());if(Y!==void 0)J.previousSessions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZR.fromPartial($??{})},fromPartial($){let K=ID();return K.currentSession=$.currentSession!==void 0&&$.currentSession!==null?i0.fromPartial($.currentSession):void 0,K.previousSessions=$.previousSessions?.map((Q)=>i0.fromPartial(Q))||void 0,K}};function SD(){return{}}var JR={encode($,K=new H){if($.minVersion!==void 0)K.uint32(8).uint32($.minVersion);if($.maxVersion!==void 0)K.uint32(16).uint32($.maxVersion);if($.notReportableMinVersion!==void 0)K.uint32(24).uint32($.notReportableMinVersion);if($.never!==void 0)K.uint32(32).bool($.never);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.minVersion=Q.uint32();continue}case 2:{if(Z!==16)break;J.maxVersion=Q.uint32();continue}case 3:{if(Z!==24)break;J.notReportableMinVersion=Q.uint32();continue}case 4:{if(Z!==32)break;J.never=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JR.fromPartial($??{})},fromPartial($){let K=SD();return K.minVersion=$.minVersion??void 0,K.maxVersion=$.maxVersion??void 0,K.notReportableMinVersion=$.notReportableMinVersion??void 0,K.never=$.never??void 0,K}};function vD(){return{}}var Gq={encode($,K=new H){if($.reportingTag!==void 0)K.uint32(10).bytes($.reportingTag);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.reportingTag=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Gq.fromPartial($??{})},fromPartial($){let K=vD();return K.reportingTag=$.reportingTag??void 0,K}};function TD(){return{}}var XR={encode($,K=new H){if($.regionId!==void 0&&$.regionId.length!==0)for(let Q of $.regionId)K.uint32(8).int32(Q);if($.clusterId!==void 0&&$.clusterId.length!==0)for(let Q of $.clusterId)K.uint32(16).int32(Q);if($.taskId!==void 0)K.uint32(24).int32($.taskId);if($.debug!==void 0)K.uint32(32).bool($.debug);if($.tcpBbr!==void 0)K.uint32(40).bool($.tcpBbr);if($.tcpKeepalive!==void 0)K.uint32(48).bool($.tcpKeepalive);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.regionId===void 0)J.regionId=[];J.regionId.push(Q.int32());continue}if(Z===10){if(J.regionId===void 0)J.regionId=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.regionId.push(Q.int32());continue}break}case 2:{if(Z===16){if(J.clusterId===void 0)J.clusterId=[];J.clusterId.push(Q.int32());continue}if(Z===18){if(J.clusterId===void 0)J.clusterId=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.clusterId.push(Q.int32());continue}break}case 3:{if(Z!==24)break;J.taskId=Q.int32();continue}case 4:{if(Z!==32)break;J.debug=Q.bool();continue}case 5:{if(Z!==40)break;J.tcpBbr=Q.bool();continue}case 6:{if(Z!==48)break;J.tcpKeepalive=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XR.fromPartial($??{})},fromPartial($){let K=TD();return K.regionId=$.regionId?.map((Q)=>Q)||void 0,K.clusterId=$.clusterId?.map((Q)=>Q)||void 0,K.taskId=$.taskId??void 0,K.debug=$.debug??void 0,K.tcpBbr=$.tcpBbr??void 0,K.tcpKeepalive=$.tcpKeepalive??void 0,K}};function yD(){return{}}var Uq={encode($,K=new H){if($.revealKeyId!==void 0)K.uint32(10).string($.revealKeyId);if($.revealKey!==void 0)K.uint32(18).bytes($.revealKey);if($.scheduledTime!==void 0)K.uint32(24).uint64($.scheduledTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.revealKeyId=Q.string();continue}case 2:{if(Z!==18)break;J.revealKey=Q.bytes();continue}case 3:{if(Z!==24)break;J.scheduledTime=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Uq.fromPartial($??{})},fromPartial($){let K=yD();return K.revealKeyId=$.revealKeyId??void 0,K.revealKey=$.revealKey??void 0,K.scheduledTime=$.scheduledTime??void 0,K}};function fD(){return{}}var gY={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.iteration!==void 0)K.uint32(16).uint32($.iteration);if($.chainKey!==void 0)K.uint32(26).bytes($.chainKey);if($.signingKey!==void 0)K.uint32(34).bytes($.signingKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==16)break;J.iteration=Q.uint32();continue}case 3:{if(Z!==26)break;J.chainKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.signingKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gY.fromPartial($??{})},fromPartial($){let K=fD();return K.id=$.id??void 0,K.iteration=$.iteration??void 0,K.chainKey=$.chainKey??void 0,K.signingKey=$.signingKey??void 0,K}};function _D(){return{}}var tY={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.iteration!==void 0)K.uint32(16).uint32($.iteration);if($.ciphertext!==void 0)K.uint32(26).bytes($.ciphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_D();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==16)break;J.iteration=Q.uint32();continue}case 3:{if(Z!==26)break;J.ciphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tY.fromPartial($??{})},fromPartial($){let K=_D();return K.id=$.id??void 0,K.iteration=$.iteration??void 0,K.ciphertext=$.ciphertext??void 0,K}};function hD(){return{}}var qR={encode($,K=new H){if($.senderKeyStates!==void 0&&$.senderKeyStates.length!==0)for(let Q of $.senderKeyStates)Cq.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.senderKeyStates===void 0)J.senderKeyStates=[];let Y=Cq.decode(Q,Q.uint32());if(Y!==void 0)J.senderKeyStates.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qR.fromPartial($??{})},fromPartial($){let K=hD();return K.senderKeyStates=$.senderKeyStates?.map((Q)=>Cq.fromPartial(Q))||void 0,K}};function lD(){return{}}var Cq={encode($,K=new H){if($.senderKeyId!==void 0)K.uint32(8).uint32($.senderKeyId);if($.senderChainKey!==void 0)Dq.encode($.senderChainKey,K.uint32(18).fork()).join();if($.senderSigningKey!==void 0)Pq.encode($.senderSigningKey,K.uint32(26).fork()).join();if($.senderMessageKeys!==void 0&&$.senderMessageKeys.length!==0)for(let Q of $.senderMessageKeys)Lq.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.senderKeyId=Q.uint32();continue}case 2:{if(Z!==18)break;J.senderChainKey=Dq.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.senderSigningKey=Pq.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;if(J.senderMessageKeys===void 0)J.senderMessageKeys=[];let Y=Lq.decode(Q,Q.uint32());if(Y!==void 0)J.senderMessageKeys.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Cq.fromPartial($??{})},fromPartial($){let K=lD();return K.senderKeyId=$.senderKeyId??void 0,K.senderChainKey=$.senderChainKey!==void 0&&$.senderChainKey!==null?Dq.fromPartial($.senderChainKey):void 0,K.senderSigningKey=$.senderSigningKey!==void 0&&$.senderSigningKey!==null?Pq.fromPartial($.senderSigningKey):void 0,K.senderMessageKeys=$.senderMessageKeys?.map((Q)=>Lq.fromPartial(Q))||void 0,K}};function pD(){return{}}var Dq={encode($,K=new H){if($.iteration!==void 0)K.uint32(8).uint32($.iteration);if($.seed!==void 0)K.uint32(18).bytes($.seed);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.iteration=Q.uint32();continue}case 2:{if(Z!==18)break;J.seed=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Dq.fromPartial($??{})},fromPartial($){let K=pD();return K.iteration=$.iteration??void 0,K.seed=$.seed??void 0,K}};function uD(){return{}}var Lq={encode($,K=new H){if($.iteration!==void 0)K.uint32(8).uint32($.iteration);if($.seed!==void 0)K.uint32(18).bytes($.seed);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.iteration=Q.uint32();continue}case 2:{if(Z!==18)break;J.seed=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Lq.fromPartial($??{})},fromPartial($){let K=uD();return K.iteration=$.iteration??void 0,K.seed=$.seed??void 0,K}};function wD(){return{}}var Pq={encode($,K=new H){if($.public!==void 0)K.uint32(10).bytes($.public);if($.private!==void 0)K.uint32(18).bytes($.private);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.public=Q.bytes();continue}case 2:{if(Z!==18)break;J.private=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Pq.fromPartial($??{})},fromPartial($){let K=wD();return K.public=$.public??void 0,K.private=$.private??void 0,K}};function nD(){return{}}var rY={encode($,K=new H){if($.stanzaId!==void 0)K.uint32(10).string($.stanzaId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stanzaId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rY.fromPartial($??{})},fromPartial($){let K=nD();return K.stanzaId=$.stanzaId??void 0,K}};function dD(){return{}}var i0={encode($,K=new H){if($.sessionVersion!==void 0)K.uint32(8).uint32($.sessionVersion);if($.localIdentityPublic!==void 0)K.uint32(18).bytes($.localIdentityPublic);if($.remoteIdentityPublic!==void 0)K.uint32(26).bytes($.remoteIdentityPublic);if($.rootKey!==void 0)K.uint32(34).bytes($.rootKey);if($.previousCounter!==void 0)K.uint32(40).uint32($.previousCounter);if($.senderChain!==void 0)m0.encode($.senderChain,K.uint32(50).fork()).join();if($.receiverChains!==void 0&&$.receiverChains.length!==0)for(let Q of $.receiverChains)m0.encode(Q,K.uint32(58).fork()).join();if($.pendingKeyExchange!==void 0)kq.encode($.pendingKeyExchange,K.uint32(66).fork()).join();if($.pendingPreKey!==void 0)Nq.encode($.pendingPreKey,K.uint32(74).fork()).join();if($.remoteRegistrationId!==void 0)K.uint32(80).uint32($.remoteRegistrationId);if($.localRegistrationId!==void 0)K.uint32(88).uint32($.localRegistrationId);if($.needsRefresh!==void 0)K.uint32(96).bool($.needsRefresh);if($.aliceBaseKey!==void 0)K.uint32(106).bytes($.aliceBaseKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.sessionVersion=Q.uint32();continue}case 2:{if(Z!==18)break;J.localIdentityPublic=Q.bytes();continue}case 3:{if(Z!==26)break;J.remoteIdentityPublic=Q.bytes();continue}case 4:{if(Z!==34)break;J.rootKey=Q.bytes();continue}case 5:{if(Z!==40)break;J.previousCounter=Q.uint32();continue}case 6:{if(Z!==50)break;J.senderChain=m0.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;if(J.receiverChains===void 0)J.receiverChains=[];let Y=m0.decode(Q,Q.uint32());if(Y!==void 0)J.receiverChains.push(Y);continue}case 8:{if(Z!==66)break;J.pendingKeyExchange=kq.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.pendingPreKey=Nq.decode(Q,Q.uint32());continue}case 10:{if(Z!==80)break;J.remoteRegistrationId=Q.uint32();continue}case 11:{if(Z!==88)break;J.localRegistrationId=Q.uint32();continue}case 12:{if(Z!==96)break;J.needsRefresh=Q.bool();continue}case 13:{if(Z!==106)break;J.aliceBaseKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i0.fromPartial($??{})},fromPartial($){let K=dD();return K.sessionVersion=$.sessionVersion??void 0,K.localIdentityPublic=$.localIdentityPublic??void 0,K.remoteIdentityPublic=$.remoteIdentityPublic??void 0,K.rootKey=$.rootKey??void 0,K.previousCounter=$.previousCounter??void 0,K.senderChain=$.senderChain!==void 0&&$.senderChain!==null?m0.fromPartial($.senderChain):void 0,K.receiverChains=$.receiverChains?.map((Q)=>m0.fromPartial(Q))||void 0,K.pendingKeyExchange=$.pendingKeyExchange!==void 0&&$.pendingKeyExchange!==null?kq.fromPartial($.pendingKeyExchange):void 0,K.pendingPreKey=$.pendingPreKey!==void 0&&$.pendingPreKey!==null?Nq.fromPartial($.pendingPreKey):void 0,K.remoteRegistrationId=$.remoteRegistrationId??void 0,K.localRegistrationId=$.localRegistrationId??void 0,K.needsRefresh=$.needsRefresh??void 0,K.aliceBaseKey=$.aliceBaseKey??void 0,K}};function jD(){return{}}var m0={encode($,K=new H){if($.senderRatchetKey!==void 0)K.uint32(10).bytes($.senderRatchetKey);if($.senderRatchetKeyPrivate!==void 0)K.uint32(18).bytes($.senderRatchetKeyPrivate);if($.chainKey!==void 0)Fq.encode($.chainKey,K.uint32(26).fork()).join();if($.messageKeys!==void 0&&$.messageKeys.length!==0)for(let Q of $.messageKeys)xq.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.senderRatchetKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.senderRatchetKeyPrivate=Q.bytes();continue}case 3:{if(Z!==26)break;J.chainKey=Fq.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;if(J.messageKeys===void 0)J.messageKeys=[];let Y=xq.decode(Q,Q.uint32());if(Y!==void 0)J.messageKeys.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m0.fromPartial($??{})},fromPartial($){let K=jD();return K.senderRatchetKey=$.senderRatchetKey??void 0,K.senderRatchetKeyPrivate=$.senderRatchetKeyPrivate??void 0,K.chainKey=$.chainKey!==void 0&&$.chainKey!==null?Fq.fromPartial($.chainKey):void 0,K.messageKeys=$.messageKeys?.map((Q)=>xq.fromPartial(Q))||void 0,K}};function cD(){return{}}var Fq={encode($,K=new H){if($.index!==void 0)K.uint32(8).uint32($.index);if($.key!==void 0)K.uint32(18).bytes($.key);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.index=Q.uint32();continue}case 2:{if(Z!==18)break;J.key=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Fq.fromPartial($??{})},fromPartial($){let K=cD();return K.index=$.index??void 0,K.key=$.key??void 0,K}};function oD(){return{}}var xq={encode($,K=new H){if($.index!==void 0)K.uint32(8).uint32($.index);if($.cipherKey!==void 0)K.uint32(18).bytes($.cipherKey);if($.macKey!==void 0)K.uint32(26).bytes($.macKey);if($.iv!==void 0)K.uint32(34).bytes($.iv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.index=Q.uint32();continue}case 2:{if(Z!==18)break;J.cipherKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.macKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.iv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xq.fromPartial($??{})},fromPartial($){let K=oD();return K.index=$.index??void 0,K.cipherKey=$.cipherKey??void 0,K.macKey=$.macKey??void 0,K.iv=$.iv??void 0,K}};function bD(){return{}}var kq={encode($,K=new H){if($.sequence!==void 0)K.uint32(8).uint32($.sequence);if($.localBaseKey!==void 0)K.uint32(18).bytes($.localBaseKey);if($.localBaseKeyPrivate!==void 0)K.uint32(26).bytes($.localBaseKeyPrivate);if($.localRatchetKey!==void 0)K.uint32(34).bytes($.localRatchetKey);if($.localRatchetKeyPrivate!==void 0)K.uint32(42).bytes($.localRatchetKeyPrivate);if($.localIdentityKey!==void 0)K.uint32(58).bytes($.localIdentityKey);if($.localIdentityKeyPrivate!==void 0)K.uint32(66).bytes($.localIdentityKeyPrivate);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.sequence=Q.uint32();continue}case 2:{if(Z!==18)break;J.localBaseKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.localBaseKeyPrivate=Q.bytes();continue}case 4:{if(Z!==34)break;J.localRatchetKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.localRatchetKeyPrivate=Q.bytes();continue}case 7:{if(Z!==58)break;J.localIdentityKey=Q.bytes();continue}case 8:{if(Z!==66)break;J.localIdentityKeyPrivate=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kq.fromPartial($??{})},fromPartial($){let K=bD();return K.sequence=$.sequence??void 0,K.localBaseKey=$.localBaseKey??void 0,K.localBaseKeyPrivate=$.localBaseKeyPrivate??void 0,K.localRatchetKey=$.localRatchetKey??void 0,K.localRatchetKeyPrivate=$.localRatchetKeyPrivate??void 0,K.localIdentityKey=$.localIdentityKey??void 0,K.localIdentityKeyPrivate=$.localIdentityKeyPrivate??void 0,K}};function iD(){return{}}var Nq={encode($,K=new H){if($.preKeyId!==void 0)K.uint32(8).uint32($.preKeyId);if($.signedPreKeyId!==void 0)K.uint32(24).int32($.signedPreKeyId);if($.baseKey!==void 0)K.uint32(18).bytes($.baseKey);if($.kyberPreKeyId!==void 0)K.uint32(32).uint32($.kyberPreKeyId);if($.kyberCiphertext!==void 0)K.uint32(42).bytes($.kyberCiphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.preKeyId=Q.uint32();continue}case 3:{if(Z!==24)break;J.signedPreKeyId=Q.int32();continue}case 2:{if(Z!==18)break;J.baseKey=Q.bytes();continue}case 4:{if(Z!==32)break;J.kyberPreKeyId=Q.uint32();continue}case 5:{if(Z!==42)break;J.kyberCiphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Nq.fromPartial($??{})},fromPartial($){let K=iD();return K.preKeyId=$.preKeyId??void 0,K.signedPreKeyId=$.signedPreKeyId??void 0,K.baseKey=$.baseKey??void 0,K.kyberPreKeyId=$.kyberPreKeyId??void 0,K.kyberCiphertext=$.kyberCiphertext??void 0,K}};function mD(){return{}}var Rq={encode($,K=new H){if($.disclaimerText!==void 0)K.uint32(10).string($.disclaimerText);if($.hcaId!==void 0)K.uint32(18).string($.hcaId);if($.sessionTransparencyType!==void 0)K.uint32(24).int32($.sessionTransparencyType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.disclaimerText=Q.string();continue}case 2:{if(Z!==18)break;J.hcaId=Q.string();continue}case 3:{if(Z!==24)break;J.sessionTransparencyType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Rq.fromPartial($??{})},fromPartial($){let K=mD();return K.disclaimerText=$.disclaimerText??void 0,K.hcaId=$.hcaId??void 0,K.sessionTransparencyType=$.sessionTransparencyType??void 0,K}};function gD(){return{}}var YR={encode($,K=new H){if($.ratchetKey!==void 0)K.uint32(10).bytes($.ratchetKey);if($.counter!==void 0)K.uint32(16).uint32($.counter);if($.previousCounter!==void 0)K.uint32(24).uint32($.previousCounter);if($.ciphertext!==void 0)K.uint32(34).bytes($.ciphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.ratchetKey=Q.bytes();continue}case 2:{if(Z!==16)break;J.counter=Q.uint32();continue}case 3:{if(Z!==24)break;J.previousCounter=Q.uint32();continue}case 4:{if(Z!==34)break;J.ciphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YR.fromPartial($??{})},fromPartial($){let K=gD();return K.ratchetKey=$.ratchetKey??void 0,K.counter=$.counter??void 0,K.previousCounter=$.previousCounter??void 0,K.ciphertext=$.ciphertext??void 0,K}};function tD(){return{}}var HR={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.publicKey!==void 0)K.uint32(18).bytes($.publicKey);if($.privateKey!==void 0)K.uint32(26).bytes($.privateKey);if($.signature!==void 0)K.uint32(34).bytes($.signature);if($.timestamp!==void 0)K.uint32(41).fixed64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==18)break;J.publicKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.privateKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.signature=Q.bytes();continue}case 5:{if(Z!==41)break;J.timestamp=Q.fixed64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HR.fromPartial($??{})},fromPartial($){let K=tD();return K.id=$.id??void 0,K.publicKey=$.publicKey??void 0,K.privateKey=$.privateKey??void 0,K.signature=$.signature??void 0,K.timestamp=$.timestamp??void 0,K}};function rD(){return{}}var Bq={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.actionUrl!==void 0)K.uint32(18).string($.actionUrl);if($.statusReshare!==void 0)Iq.encode($.statusReshare,K.uint32(26).fork()).join();if($.externalShare!==void 0)Aq.encode($.externalShare,K.uint32(34).fork()).join();if($.music!==void 0)Mq.encode($.music,K.uint32(42).fork()).join();if($.groupStatus!==void 0)Eq.encode($.groupStatus,K.uint32(50).fork()).join();if($.rlAttribution!==void 0)Wq.encode($.rlAttribution,K.uint32(58).fork()).join();if($.aiCreatedAttribution!==void 0)Oq.encode($.aiCreatedAttribution,K.uint32(66).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.actionUrl=Q.string();continue}case 3:{if(Z!==26)break;J.statusReshare=Iq.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.externalShare=Aq.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.music=Mq.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.groupStatus=Eq.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.rlAttribution=Wq.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.aiCreatedAttribution=Oq.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Bq.fromPartial($??{})},fromPartial($){let K=rD();return K.type=$.type??void 0,K.actionUrl=$.actionUrl??void 0,K.statusReshare=$.statusReshare!==void 0&&$.statusReshare!==null?Iq.fromPartial($.statusReshare):void 0,K.externalShare=$.externalShare!==void 0&&$.externalShare!==null?Aq.fromPartial($.externalShare):void 0,K.music=$.music!==void 0&&$.music!==null?Mq.fromPartial($.music):void 0,K.groupStatus=$.groupStatus!==void 0&&$.groupStatus!==null?Eq.fromPartial($.groupStatus):void 0,K.rlAttribution=$.rlAttribution!==void 0&&$.rlAttribution!==null?Wq.fromPartial($.rlAttribution):void 0,K.aiCreatedAttribution=$.aiCreatedAttribution!==void 0&&$.aiCreatedAttribution!==null?Oq.fromPartial($.aiCreatedAttribution):void 0,K}};function aD(){return{}}var Oq={encode($,K=new H){if($.source!==void 0)K.uint32(8).int32($.source);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.source=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Oq.fromPartial($??{})},fromPartial($){let K=aD();return K.source=$.source??void 0,K}};function sD(){return{}}var Aq={encode($,K=new H){if($.actionUrl!==void 0)K.uint32(10).string($.actionUrl);if($.source!==void 0)K.uint32(16).int32($.source);if($.duration!==void 0)K.uint32(24).int32($.duration);if($.actionFallbackUrl!==void 0)K.uint32(34).string($.actionFallbackUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.actionUrl=Q.string();continue}case 2:{if(Z!==16)break;J.source=Q.int32();continue}case 3:{if(Z!==24)break;J.duration=Q.int32();continue}case 4:{if(Z!==34)break;J.actionFallbackUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Aq.fromPartial($??{})},fromPartial($){let K=sD();return K.actionUrl=$.actionUrl??void 0,K.source=$.source??void 0,K.duration=$.duration??void 0,K.actionFallbackUrl=$.actionFallbackUrl??void 0,K}};function eD(){return{}}var Eq={encode($,K=new H){if($.authorJid!==void 0)K.uint32(10).string($.authorJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.authorJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Eq.fromPartial($??{})},fromPartial($){let K=eD();return K.authorJid=$.authorJid??void 0,K}};function $L(){return{}}var Mq={encode($,K=new H){if($.authorName!==void 0)K.uint32(10).string($.authorName);if($.songId!==void 0)K.uint32(18).string($.songId);if($.title!==void 0)K.uint32(26).string($.title);if($.author!==void 0)K.uint32(34).string($.author);if($.artistAttribution!==void 0)K.uint32(42).string($.artistAttribution);if($.isExplicit!==void 0)K.uint32(48).bool($.isExplicit);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$L();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.authorName=Q.string();continue}case 2:{if(Z!==18)break;J.songId=Q.string();continue}case 3:{if(Z!==26)break;J.title=Q.string();continue}case 4:{if(Z!==34)break;J.author=Q.string();continue}case 5:{if(Z!==42)break;J.artistAttribution=Q.string();continue}case 6:{if(Z!==48)break;J.isExplicit=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Mq.fromPartial($??{})},fromPartial($){let K=$L();return K.authorName=$.authorName??void 0,K.songId=$.songId??void 0,K.title=$.title??void 0,K.author=$.author??void 0,K.artistAttribution=$.artistAttribution??void 0,K.isExplicit=$.isExplicit??void 0,K}};function KL(){return{}}var Wq={encode($,K=new H){if($.source!==void 0)K.uint32(8).int32($.source);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.source=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Wq.fromPartial($??{})},fromPartial($){let K=KL();return K.source=$.source??void 0,K}};function QL(){return{}}var Iq={encode($,K=new H){if($.source!==void 0)K.uint32(8).int32($.source);if($.metadata!==void 0)Sq.encode($.metadata,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.source=Q.int32();continue}case 2:{if(Z!==18)break;J.metadata=Sq.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Iq.fromPartial($??{})},fromPartial($){let K=QL();return K.source=$.source??void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?Sq.fromPartial($.metadata):void 0,K}};function ZL(){return{}}var Sq={encode($,K=new H){if($.duration!==void 0)K.uint32(8).int32($.duration);if($.channelJid!==void 0)K.uint32(18).string($.channelJid);if($.channelMessageId!==void 0)K.uint32(24).int32($.channelMessageId);if($.hasMultipleReshares!==void 0)K.uint32(32).bool($.hasMultipleReshares);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.duration=Q.int32();continue}case 2:{if(Z!==18)break;J.channelJid=Q.string();continue}case 3:{if(Z!==24)break;J.channelMessageId=Q.int32();continue}case 4:{if(Z!==32)break;J.hasMultipleReshares=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Sq.fromPartial($??{})},fromPartial($){let K=ZL();return K.duration=$.duration??void 0,K.channelJid=$.channelJid??void 0,K.channelMessageId=$.channelMessageId??void 0,K.hasMultipleReshares=$.hasMultipleReshares??void 0,K}};function JL(){return{}}var vq={encode($,K=new H){if($.quotedStatus!==void 0)w.encode($.quotedStatus,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.quotedStatus=w.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vq.fromPartial($??{})},fromPartial($){let K=JL();return K.quotedStatus=$.quotedStatus!==void 0&&$.quotedStatus!==null?w.fromPartial($.quotedStatus):void 0,K}};function XL(){return{}}var Tq={encode($,K=new H){if($.campaignId!==void 0)K.uint32(352).uint64($.campaignId);if($.campaignExpirationTimestamp!==void 0)K.uint32(360).uint64($.campaignExpirationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 44:{if(Z!==352)break;J.campaignId=Q.uint64Number();continue}case 45:{if(Z!==360)break;J.campaignExpirationTimestamp=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Tq.fromPartial($??{})},fromPartial($){let K=XL();return K.campaignId=$.campaignId??void 0,K.campaignExpirationTimestamp=$.campaignExpirationTimestamp??void 0,K}};function qL(){return{}}var yq={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.fileSha256!==void 0)K.uint32(18).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(26).bytes($.fileEncSha256);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mimetype!==void 0)K.uint32(42).string($.mimetype);if($.height!==void 0)K.uint32(48).uint32($.height);if($.width!==void 0)K.uint32(56).uint32($.width);if($.directPath!==void 0)K.uint32(66).string($.directPath);if($.fileLength!==void 0)K.uint32(72).uint64($.fileLength);if($.weight!==void 0)K.uint32(85).float($.weight);if($.lastStickerSentTs!==void 0)K.uint32(88).int64($.lastStickerSentTs);if($.isLottie!==void 0)K.uint32(96).bool($.isLottie);if($.imageHash!==void 0)K.uint32(106).string($.imageHash);if($.isAvatarSticker!==void 0)K.uint32(112).bool($.isAvatarSticker);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.fileSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.mimetype=Q.string();continue}case 6:{if(Z!==48)break;J.height=Q.uint32();continue}case 7:{if(Z!==56)break;J.width=Q.uint32();continue}case 8:{if(Z!==66)break;J.directPath=Q.string();continue}case 9:{if(Z!==72)break;J.fileLength=Q.uint64Number();continue}case 10:{if(Z!==85)break;J.weight=Q.float();continue}case 11:{if(Z!==88)break;J.lastStickerSentTs=Q.int64Number();continue}case 12:{if(Z!==96)break;J.isLottie=Q.bool();continue}case 13:{if(Z!==106)break;J.imageHash=Q.string();continue}case 14:{if(Z!==112)break;J.isAvatarSticker=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yq.fromPartial($??{})},fromPartial($){let K=qL();return K.url=$.url??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mimetype=$.mimetype??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.directPath=$.directPath??void 0,K.fileLength=$.fileLength??void 0,K.weight=$.weight??void 0,K.lastStickerSentTs=$.lastStickerSentTs??void 0,K.isLottie=$.isLottie??void 0,K.imageHash=$.imageHash??void 0,K.isAvatarSticker=$.isAvatarSticker??void 0,K}};function YL(){return{}}var o={encode($,K=new H){if($.payload!==void 0)K.uint32(10).bytes($.payload);if($.version!==void 0)K.uint32(16).int32($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.payload=Q.bytes();continue}case 2:{if(Z!==16)break;J.version=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o.fromPartial($??{})},fromPartial($){let K=YL();return K.payload=$.payload??void 0,K.version=$.version??void 0,K}};function HL(){return{}}var I$={encode($,K=new H){if($.index!==void 0)K.uint32(10).bytes($.index);if($.value!==void 0)S$.encode($.value,K.uint32(18).fork()).join();if($.padding!==void 0)K.uint32(26).bytes($.padding);if($.version!==void 0)K.uint32(32).int32($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.index=Q.bytes();continue}case 2:{if(Z!==18)break;J.value=S$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.padding=Q.bytes();continue}case 4:{if(Z!==32)break;J.version=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return I$.fromPartial($??{})},fromPartial($){let K=HL();return K.index=$.index??void 0,K.value=$.value!==void 0&&$.value!==null?S$.fromPartial($.value):void 0,K.padding=$.padding??void 0,K.version=$.version??void 0,K}};function zL(){return{}}var S$={encode($,K=new H){if($.timestamp!==void 0)K.uint32(8).int64($.timestamp);if($.starAction!==void 0)b9.encode($.starAction,K.uint32(18).fork()).join();if($.contactAction!==void 0)rq.encode($.contactAction,K.uint32(26).fork()).join();if($.muteAction!==void 0)O9.encode($.muteAction,K.uint32(34).fork()).join();if($.pinAction!==void 0)y9.encode($.pinAction,K.uint32(42).fork()).join();if($.pushNameSetting!==void 0)n9.encode($.pushNameSetting,K.uint32(58).fork()).join();if($.quickReplyAction!==void 0)d9.encode($.quickReplyAction,K.uint32(66).fork()).join();if($.recentEmojiWeightsAction!==void 0)j9.encode($.recentEmojiWeightsAction,K.uint32(90).fork()).join();if($.labelEditAction!==void 0)U9.encode($.labelEditAction,K.uint32(114).fork()).join();if($.labelAssociationAction!==void 0)G9.encode($.labelAssociationAction,K.uint32(122).fork()).join();if($.localeSetting!==void 0)L9.encode($.localeSetting,K.uint32(130).fork()).join();if($.archiveChatAction!==void 0)lq.encode($.archiveChatAction,K.uint32(138).fork()).join();if($.deleteMessageForMeAction!==void 0)J9.encode($.deleteMessageForMeAction,K.uint32(146).fork()).join();if($.keyExpiration!==void 0)V9.encode($.keyExpiration,K.uint32(154).fork()).join();if($.markChatAsReadAction!==void 0)x9.encode($.markChatAsReadAction,K.uint32(162).fork()).join();if($.clearChatAction!==void 0)gq.encode($.clearChatAction,K.uint32(170).fork()).join();if($.deleteChatAction!==void 0)Q9.encode($.deleteChatAction,K.uint32(178).fork()).join();if($.unarchiveChatsSetting!==void 0)ZY.encode($.unarchiveChatsSetting,K.uint32(186).fork()).join();if($.primaryFeature!==void 0)_9.encode($.primaryFeature,K.uint32(194).fork()).join();if($.androidUnsupportedActions!==void 0)hq.encode($.androidUnsupportedActions,K.uint32(210).fork()).join();if($.agentAction!==void 0)fq.encode($.agentAction,K.uint32(218).fork()).join();if($.subscriptionAction!==void 0)t9.encode($.subscriptionAction,K.uint32(226).fork()).join();if($.userStatusMuteAction!==void 0)JY.encode($.userStatusMuteAction,K.uint32(234).fork()).join();if($.timeFormatAction!==void 0)KY.encode($.timeFormatAction,K.uint32(242).fork()).join();if($.nuxAction!==void 0)I9.encode($.nuxAction,K.uint32(250).fork()).join();if($.primaryVersionAction!==void 0)h9.encode($.primaryVersionAction,K.uint32(258).fork()).join();if($.stickerAction!==void 0)R$.encode($.stickerAction,K.uint32(266).fork()).join();if($.removeRecentStickerAction!==void 0)c9.encode($.removeRecentStickerAction,K.uint32(274).fork()).join();if($.chatAssignment!==void 0)iq.encode($.chatAssignment,K.uint32(282).fork()).join();if($.chatAssignmentOpenedStatus!==void 0)mq.encode($.chatAssignmentOpenedStatus,K.uint32(290).fork()).join();if($.pnForLidChatAction!==void 0)f9.encode($.pnForLidChatAction,K.uint32(298).fork()).join();if($.marketingMessageAction!==void 0)k9.encode($.marketingMessageAction,K.uint32(306).fork()).join();if($.marketingMessageBroadcastAction!==void 0)N9.encode($.marketingMessageBroadcastAction,K.uint32(314).fork()).join();if($.externalWebBetaAction!==void 0)q9.encode($.externalWebBetaAction,K.uint32(322).fork()).join();if($.privacySettingRelayAllCalls!==void 0)u9.encode($.privacySettingRelayAllCalls,K.uint32(330).fork()).join();if($.callLogAction!==void 0)bq.encode($.callLogAction,K.uint32(338).fork()).join();if($.ugcBot!==void 0)QY.encode($.ugcBot,K.uint32(346).fork()).join();if($.statusPrivacy!==void 0)m9.encode($.statusPrivacy,K.uint32(354).fork()).join();if($.botWelcomeRequestAction!==void 0)nq.encode($.botWelcomeRequestAction,K.uint32(362).fork()).join();if($.deleteIndividualCallLog!==void 0)Z9.encode($.deleteIndividualCallLog,K.uint32(370).fork()).join();if($.labelReorderingAction!==void 0)C9.encode($.labelReorderingAction,K.uint32(378).fork()).join();if($.paymentInfoAction!==void 0)v9.encode($.paymentInfoAction,K.uint32(386).fork()).join();if($.customPaymentMethodsAction!==void 0)$9.encode($.customPaymentMethodsAction,K.uint32(394).fork()).join();if($.lockChatAction!==void 0)P9.encode($.lockChatAction,K.uint32(402).fork()).join();if($.chatLockSettings!==void 0)a0.encode($.chatLockSettings,K.uint32(410).fork()).join();if($.wamoUserIdentifierAction!==void 0)zY.encode($.wamoUserIdentifierAction,K.uint32(418).fork()).join();if($.privacySettingDisableLinkPreviewsAction!==void 0)p9.encode($.privacySettingDisableLinkPreviewsAction,K.uint32(426).fork()).join();if($.deviceCapabilities!==void 0)DZ.encode($.deviceCapabilities,K.uint32(434).fork()).join();if($.noteEditAction!==void 0)M9.encode($.noteEditAction,K.uint32(442).fork()).join();if($.favoritesAction!==void 0)Y9.encode($.favoritesAction,K.uint32(450).fork()).join();if($.merchantPaymentPartnerAction!==void 0)R9.encode($.merchantPaymentPartnerAction,K.uint32(458).fork()).join();if($.waffleAccountLinkStateAction!==void 0)HY.encode($.waffleAccountLinkStateAction,K.uint32(466).fork()).join();if($.usernameChatStartMode!==void 0)XY.encode($.usernameChatStartMode,K.uint32(474).fork()).join();if($.notificationActivitySettingAction!==void 0)W9.encode($.notificationActivitySettingAction,K.uint32(482).fork()).join();if($.lidContactAction!==void 0)D9.encode($.lidContactAction,K.uint32(490).fork()).join();if($.ctwaPerCustomerDataSharingAction!==void 0)aq.encode($.ctwaPerCustomerDataSharingAction,K.uint32(498).fork()).join();if($.paymentTosAction!==void 0)T9.encode($.paymentTosAction,K.uint32(506).fork()).join();if($.privacySettingChannelsPersonalisedRecommendationAction!==void 0)l9.encode($.privacySettingChannelsPersonalisedRecommendationAction,K.uint32(514).fork()).join();if($.detectedOutcomesStatusAction!==void 0)X9.encode($.detectedOutcomesStatusAction,K.uint32(530).fork()).join();if($.maibaAiFeaturesControlAction!==void 0)F9.encode($.maibaAiFeaturesControlAction,K.uint32(546).fork()).join();if($.businessBroadcastListAction!==void 0)oq.encode($.businessBroadcastListAction,K.uint32(554).fork()).join();if($.musicUserIdAction!==void 0)B9.encode($.musicUserIdAction,K.uint32(562).fork()).join();if($.statusPostOptInNotificationPreferencesAction!==void 0)i9.encode($.statusPostOptInNotificationPreferencesAction,K.uint32(570).fork()).join();if($.avatarUpdatedAction!==void 0)uq.encode($.avatarUpdatedAction,K.uint32(578).fork()).join();if($.privateProcessingSettingAction!==void 0)w9.encode($.privateProcessingSettingAction,K.uint32(594).fork()).join();if($.newsletterSavedInterestsAction!==void 0)E9.encode($.newsletterSavedInterestsAction,K.uint32(602).fork()).join();if($.aiThreadRenameAction!==void 0)_q.encode($.aiThreadRenameAction,K.uint32(610).fork()).join();if($.interactiveMessageAction!==void 0)z9.encode($.interactiveMessageAction,K.uint32(618).fork()).join();if($.settingsSyncAction!==void 0)o9.encode($.settingsSyncAction,K.uint32(626).fork()).join();if($.outContactAction!==void 0)S9.encode($.outContactAction,K.uint32(634).fork()).join();if($.nctSaltSyncAction!==void 0)A9.encode($.nctSaltSyncAction,K.uint32(642).fork()).join();if($.businessBroadcastCampaignAction!==void 0)jq.encode($.businessBroadcastCampaignAction,K.uint32(650).fork()).join();if($.businessBroadcastInsightsAction!==void 0)cq.encode($.businessBroadcastInsightsAction,K.uint32(658).fork()).join();if($.customerDataAction!==void 0)K9.encode($.customerDataAction,K.uint32(666).fork()).join();if($.subscriptionsSyncV2Action!==void 0)r9.encode($.subscriptionsSyncV2Action,K.uint32(674).fork()).join();if($.threadPinAction!==void 0)$Y.encode($.threadPinAction,K.uint32(682).fork()).join();if($.autoOrganizeBusinessChatSetting!==void 0)pq.encode($.autoOrganizeBusinessChatSetting,K.uint32(690).fork()).join();if($.bizAiSettingsNudgeAction!==void 0)wq.encode($.bizAiSettingsNudgeAction,K.uint32(698).fork()).join();if($.coexV2VersionAction!==void 0)tq.encode($.coexV2VersionAction,K.uint32(706).fork()).join();if($.wasaRootSecretAction!==void 0)qY.encode($.wasaRootSecretAction,K.uint32(714).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.timestamp=Q.int64Number();continue}case 2:{if(Z!==18)break;J.starAction=b9.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.contactAction=rq.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.muteAction=O9.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.pinAction=y9.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.pushNameSetting=n9.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.quickReplyAction=d9.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.recentEmojiWeightsAction=j9.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.labelEditAction=U9.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.labelAssociationAction=G9.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.localeSetting=L9.decode(Q,Q.uint32());continue}case 17:{if(Z!==138)break;J.archiveChatAction=lq.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.deleteMessageForMeAction=J9.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.keyExpiration=V9.decode(Q,Q.uint32());continue}case 20:{if(Z!==162)break;J.markChatAsReadAction=x9.decode(Q,Q.uint32());continue}case 21:{if(Z!==170)break;J.clearChatAction=gq.decode(Q,Q.uint32());continue}case 22:{if(Z!==178)break;J.deleteChatAction=Q9.decode(Q,Q.uint32());continue}case 23:{if(Z!==186)break;J.unarchiveChatsSetting=ZY.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.primaryFeature=_9.decode(Q,Q.uint32());continue}case 26:{if(Z!==210)break;J.androidUnsupportedActions=hq.decode(Q,Q.uint32());continue}case 27:{if(Z!==218)break;J.agentAction=fq.decode(Q,Q.uint32());continue}case 28:{if(Z!==226)break;J.subscriptionAction=t9.decode(Q,Q.uint32());continue}case 29:{if(Z!==234)break;J.userStatusMuteAction=JY.decode(Q,Q.uint32());continue}case 30:{if(Z!==242)break;J.timeFormatAction=KY.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.nuxAction=I9.decode(Q,Q.uint32());continue}case 32:{if(Z!==258)break;J.primaryVersionAction=h9.decode(Q,Q.uint32());continue}case 33:{if(Z!==266)break;J.stickerAction=R$.decode(Q,Q.uint32());continue}case 34:{if(Z!==274)break;J.removeRecentStickerAction=c9.decode(Q,Q.uint32());continue}case 35:{if(Z!==282)break;J.chatAssignment=iq.decode(Q,Q.uint32());continue}case 36:{if(Z!==290)break;J.chatAssignmentOpenedStatus=mq.decode(Q,Q.uint32());continue}case 37:{if(Z!==298)break;J.pnForLidChatAction=f9.decode(Q,Q.uint32());continue}case 38:{if(Z!==306)break;J.marketingMessageAction=k9.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.marketingMessageBroadcastAction=N9.decode(Q,Q.uint32());continue}case 40:{if(Z!==322)break;J.externalWebBetaAction=q9.decode(Q,Q.uint32());continue}case 41:{if(Z!==330)break;J.privacySettingRelayAllCalls=u9.decode(Q,Q.uint32());continue}case 42:{if(Z!==338)break;J.callLogAction=bq.decode(Q,Q.uint32());continue}case 43:{if(Z!==346)break;J.ugcBot=QY.decode(Q,Q.uint32());continue}case 44:{if(Z!==354)break;J.statusPrivacy=m9.decode(Q,Q.uint32());continue}case 45:{if(Z!==362)break;J.botWelcomeRequestAction=nq.decode(Q,Q.uint32());continue}case 46:{if(Z!==370)break;J.deleteIndividualCallLog=Z9.decode(Q,Q.uint32());continue}case 47:{if(Z!==378)break;J.labelReorderingAction=C9.decode(Q,Q.uint32());continue}case 48:{if(Z!==386)break;J.paymentInfoAction=v9.decode(Q,Q.uint32());continue}case 49:{if(Z!==394)break;J.customPaymentMethodsAction=$9.decode(Q,Q.uint32());continue}case 50:{if(Z!==402)break;J.lockChatAction=P9.decode(Q,Q.uint32());continue}case 51:{if(Z!==410)break;J.chatLockSettings=a0.decode(Q,Q.uint32());continue}case 52:{if(Z!==418)break;J.wamoUserIdentifierAction=zY.decode(Q,Q.uint32());continue}case 53:{if(Z!==426)break;J.privacySettingDisableLinkPreviewsAction=p9.decode(Q,Q.uint32());continue}case 54:{if(Z!==434)break;J.deviceCapabilities=DZ.decode(Q,Q.uint32());continue}case 55:{if(Z!==442)break;J.noteEditAction=M9.decode(Q,Q.uint32());continue}case 56:{if(Z!==450)break;J.favoritesAction=Y9.decode(Q,Q.uint32());continue}case 57:{if(Z!==458)break;J.merchantPaymentPartnerAction=R9.decode(Q,Q.uint32());continue}case 58:{if(Z!==466)break;J.waffleAccountLinkStateAction=HY.decode(Q,Q.uint32());continue}case 59:{if(Z!==474)break;J.usernameChatStartMode=XY.decode(Q,Q.uint32());continue}case 60:{if(Z!==482)break;J.notificationActivitySettingAction=W9.decode(Q,Q.uint32());continue}case 61:{if(Z!==490)break;J.lidContactAction=D9.decode(Q,Q.uint32());continue}case 62:{if(Z!==498)break;J.ctwaPerCustomerDataSharingAction=aq.decode(Q,Q.uint32());continue}case 63:{if(Z!==506)break;J.paymentTosAction=T9.decode(Q,Q.uint32());continue}case 64:{if(Z!==514)break;J.privacySettingChannelsPersonalisedRecommendationAction=l9.decode(Q,Q.uint32());continue}case 66:{if(Z!==530)break;J.detectedOutcomesStatusAction=X9.decode(Q,Q.uint32());continue}case 68:{if(Z!==546)break;J.maibaAiFeaturesControlAction=F9.decode(Q,Q.uint32());continue}case 69:{if(Z!==554)break;J.businessBroadcastListAction=oq.decode(Q,Q.uint32());continue}case 70:{if(Z!==562)break;J.musicUserIdAction=B9.decode(Q,Q.uint32());continue}case 71:{if(Z!==570)break;J.statusPostOptInNotificationPreferencesAction=i9.decode(Q,Q.uint32());continue}case 72:{if(Z!==578)break;J.avatarUpdatedAction=uq.decode(Q,Q.uint32());continue}case 74:{if(Z!==594)break;J.privateProcessingSettingAction=w9.decode(Q,Q.uint32());continue}case 75:{if(Z!==602)break;J.newsletterSavedInterestsAction=E9.decode(Q,Q.uint32());continue}case 76:{if(Z!==610)break;J.aiThreadRenameAction=_q.decode(Q,Q.uint32());continue}case 77:{if(Z!==618)break;J.interactiveMessageAction=z9.decode(Q,Q.uint32());continue}case 78:{if(Z!==626)break;J.settingsSyncAction=o9.decode(Q,Q.uint32());continue}case 79:{if(Z!==634)break;J.outContactAction=S9.decode(Q,Q.uint32());continue}case 80:{if(Z!==642)break;J.nctSaltSyncAction=A9.decode(Q,Q.uint32());continue}case 81:{if(Z!==650)break;J.businessBroadcastCampaignAction=jq.decode(Q,Q.uint32());continue}case 82:{if(Z!==658)break;J.businessBroadcastInsightsAction=cq.decode(Q,Q.uint32());continue}case 83:{if(Z!==666)break;J.customerDataAction=K9.decode(Q,Q.uint32());continue}case 84:{if(Z!==674)break;J.subscriptionsSyncV2Action=r9.decode(Q,Q.uint32());continue}case 85:{if(Z!==682)break;J.threadPinAction=$Y.decode(Q,Q.uint32());continue}case 86:{if(Z!==690)break;J.autoOrganizeBusinessChatSetting=pq.decode(Q,Q.uint32());continue}case 87:{if(Z!==698)break;J.bizAiSettingsNudgeAction=wq.decode(Q,Q.uint32());continue}case 88:{if(Z!==706)break;J.coexV2VersionAction=tq.decode(Q,Q.uint32());continue}case 89:{if(Z!==714)break;J.wasaRootSecretAction=qY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return S$.fromPartial($??{})},fromPartial($){let K=zL();return K.timestamp=$.timestamp??void 0,K.starAction=$.starAction!==void 0&&$.starAction!==null?b9.fromPartial($.starAction):void 0,K.contactAction=$.contactAction!==void 0&&$.contactAction!==null?rq.fromPartial($.contactAction):void 0,K.muteAction=$.muteAction!==void 0&&$.muteAction!==null?O9.fromPartial($.muteAction):void 0,K.pinAction=$.pinAction!==void 0&&$.pinAction!==null?y9.fromPartial($.pinAction):void 0,K.pushNameSetting=$.pushNameSetting!==void 0&&$.pushNameSetting!==null?n9.fromPartial($.pushNameSetting):void 0,K.quickReplyAction=$.quickReplyAction!==void 0&&$.quickReplyAction!==null?d9.fromPartial($.quickReplyAction):void 0,K.recentEmojiWeightsAction=$.recentEmojiWeightsAction!==void 0&&$.recentEmojiWeightsAction!==null?j9.fromPartial($.recentEmojiWeightsAction):void 0,K.labelEditAction=$.labelEditAction!==void 0&&$.labelEditAction!==null?U9.fromPartial($.labelEditAction):void 0,K.labelAssociationAction=$.labelAssociationAction!==void 0&&$.labelAssociationAction!==null?G9.fromPartial($.labelAssociationAction):void 0,K.localeSetting=$.localeSetting!==void 0&&$.localeSetting!==null?L9.fromPartial($.localeSetting):void 0,K.archiveChatAction=$.archiveChatAction!==void 0&&$.archiveChatAction!==null?lq.fromPartial($.archiveChatAction):void 0,K.deleteMessageForMeAction=$.deleteMessageForMeAction!==void 0&&$.deleteMessageForMeAction!==null?J9.fromPartial($.deleteMessageForMeAction):void 0,K.keyExpiration=$.keyExpiration!==void 0&&$.keyExpiration!==null?V9.fromPartial($.keyExpiration):void 0,K.markChatAsReadAction=$.markChatAsReadAction!==void 0&&$.markChatAsReadAction!==null?x9.fromPartial($.markChatAsReadAction):void 0,K.clearChatAction=$.clearChatAction!==void 0&&$.clearChatAction!==null?gq.fromPartial($.clearChatAction):void 0,K.deleteChatAction=$.deleteChatAction!==void 0&&$.deleteChatAction!==null?Q9.fromPartial($.deleteChatAction):void 0,K.unarchiveChatsSetting=$.unarchiveChatsSetting!==void 0&&$.unarchiveChatsSetting!==null?ZY.fromPartial($.unarchiveChatsSetting):void 0,K.primaryFeature=$.primaryFeature!==void 0&&$.primaryFeature!==null?_9.fromPartial($.primaryFeature):void 0,K.androidUnsupportedActions=$.androidUnsupportedActions!==void 0&&$.androidUnsupportedActions!==null?hq.fromPartial($.androidUnsupportedActions):void 0,K.agentAction=$.agentAction!==void 0&&$.agentAction!==null?fq.fromPartial($.agentAction):void 0,K.subscriptionAction=$.subscriptionAction!==void 0&&$.subscriptionAction!==null?t9.fromPartial($.subscriptionAction):void 0,K.userStatusMuteAction=$.userStatusMuteAction!==void 0&&$.userStatusMuteAction!==null?JY.fromPartial($.userStatusMuteAction):void 0,K.timeFormatAction=$.timeFormatAction!==void 0&&$.timeFormatAction!==null?KY.fromPartial($.timeFormatAction):void 0,K.nuxAction=$.nuxAction!==void 0&&$.nuxAction!==null?I9.fromPartial($.nuxAction):void 0,K.primaryVersionAction=$.primaryVersionAction!==void 0&&$.primaryVersionAction!==null?h9.fromPartial($.primaryVersionAction):void 0,K.stickerAction=$.stickerAction!==void 0&&$.stickerAction!==null?R$.fromPartial($.stickerAction):void 0,K.removeRecentStickerAction=$.removeRecentStickerAction!==void 0&&$.removeRecentStickerAction!==null?c9.fromPartial($.removeRecentStickerAction):void 0,K.chatAssignment=$.chatAssignment!==void 0&&$.chatAssignment!==null?iq.fromPartial($.chatAssignment):void 0,K.chatAssignmentOpenedStatus=$.chatAssignmentOpenedStatus!==void 0&&$.chatAssignmentOpenedStatus!==null?mq.fromPartial($.chatAssignmentOpenedStatus):void 0,K.pnForLidChatAction=$.pnForLidChatAction!==void 0&&$.pnForLidChatAction!==null?f9.fromPartial($.pnForLidChatAction):void 0,K.marketingMessageAction=$.marketingMessageAction!==void 0&&$.marketingMessageAction!==null?k9.fromPartial($.marketingMessageAction):void 0,K.marketingMessageBroadcastAction=$.marketingMessageBroadcastAction!==void 0&&$.marketingMessageBroadcastAction!==null?N9.fromPartial($.marketingMessageBroadcastAction):void 0,K.externalWebBetaAction=$.externalWebBetaAction!==void 0&&$.externalWebBetaAction!==null?q9.fromPartial($.externalWebBetaAction):void 0,K.privacySettingRelayAllCalls=$.privacySettingRelayAllCalls!==void 0&&$.privacySettingRelayAllCalls!==null?u9.fromPartial($.privacySettingRelayAllCalls):void 0,K.callLogAction=$.callLogAction!==void 0&&$.callLogAction!==null?bq.fromPartial($.callLogAction):void 0,K.ugcBot=$.ugcBot!==void 0&&$.ugcBot!==null?QY.fromPartial($.ugcBot):void 0,K.statusPrivacy=$.statusPrivacy!==void 0&&$.statusPrivacy!==null?m9.fromPartial($.statusPrivacy):void 0,K.botWelcomeRequestAction=$.botWelcomeRequestAction!==void 0&&$.botWelcomeRequestAction!==null?nq.fromPartial($.botWelcomeRequestAction):void 0,K.deleteIndividualCallLog=$.deleteIndividualCallLog!==void 0&&$.deleteIndividualCallLog!==null?Z9.fromPartial($.deleteIndividualCallLog):void 0,K.labelReorderingAction=$.labelReorderingAction!==void 0&&$.labelReorderingAction!==null?C9.fromPartial($.labelReorderingAction):void 0,K.paymentInfoAction=$.paymentInfoAction!==void 0&&$.paymentInfoAction!==null?v9.fromPartial($.paymentInfoAction):void 0,K.customPaymentMethodsAction=$.customPaymentMethodsAction!==void 0&&$.customPaymentMethodsAction!==null?$9.fromPartial($.customPaymentMethodsAction):void 0,K.lockChatAction=$.lockChatAction!==void 0&&$.lockChatAction!==null?P9.fromPartial($.lockChatAction):void 0,K.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?a0.fromPartial($.chatLockSettings):void 0,K.wamoUserIdentifierAction=$.wamoUserIdentifierAction!==void 0&&$.wamoUserIdentifierAction!==null?zY.fromPartial($.wamoUserIdentifierAction):void 0,K.privacySettingDisableLinkPreviewsAction=$.privacySettingDisableLinkPreviewsAction!==void 0&&$.privacySettingDisableLinkPreviewsAction!==null?p9.fromPartial($.privacySettingDisableLinkPreviewsAction):void 0,K.deviceCapabilities=$.deviceCapabilities!==void 0&&$.deviceCapabilities!==null?DZ.fromPartial($.deviceCapabilities):void 0,K.noteEditAction=$.noteEditAction!==void 0&&$.noteEditAction!==null?M9.fromPartial($.noteEditAction):void 0,K.favoritesAction=$.favoritesAction!==void 0&&$.favoritesAction!==null?Y9.fromPartial($.favoritesAction):void 0,K.merchantPaymentPartnerAction=$.merchantPaymentPartnerAction!==void 0&&$.merchantPaymentPartnerAction!==null?R9.fromPartial($.merchantPaymentPartnerAction):void 0,K.waffleAccountLinkStateAction=$.waffleAccountLinkStateAction!==void 0&&$.waffleAccountLinkStateAction!==null?HY.fromPartial($.waffleAccountLinkStateAction):void 0,K.usernameChatStartMode=$.usernameChatStartMode!==void 0&&$.usernameChatStartMode!==null?XY.fromPartial($.usernameChatStartMode):void 0,K.notificationActivitySettingAction=$.notificationActivitySettingAction!==void 0&&$.notificationActivitySettingAction!==null?W9.fromPartial($.notificationActivitySettingAction):void 0,K.lidContactAction=$.lidContactAction!==void 0&&$.lidContactAction!==null?D9.fromPartial($.lidContactAction):void 0,K.ctwaPerCustomerDataSharingAction=$.ctwaPerCustomerDataSharingAction!==void 0&&$.ctwaPerCustomerDataSharingAction!==null?aq.fromPartial($.ctwaPerCustomerDataSharingAction):void 0,K.paymentTosAction=$.paymentTosAction!==void 0&&$.paymentTosAction!==null?T9.fromPartial($.paymentTosAction):void 0,K.privacySettingChannelsPersonalisedRecommendationAction=$.privacySettingChannelsPersonalisedRecommendationAction!==void 0&&$.privacySettingChannelsPersonalisedRecommendationAction!==null?l9.fromPartial($.privacySettingChannelsPersonalisedRecommendationAction):void 0,K.detectedOutcomesStatusAction=$.detectedOutcomesStatusAction!==void 0&&$.detectedOutcomesStatusAction!==null?X9.fromPartial($.detectedOutcomesStatusAction):void 0,K.maibaAiFeaturesControlAction=$.maibaAiFeaturesControlAction!==void 0&&$.maibaAiFeaturesControlAction!==null?F9.fromPartial($.maibaAiFeaturesControlAction):void 0,K.businessBroadcastListAction=$.businessBroadcastListAction!==void 0&&$.businessBroadcastListAction!==null?oq.fromPartial($.businessBroadcastListAction):void 0,K.musicUserIdAction=$.musicUserIdAction!==void 0&&$.musicUserIdAction!==null?B9.fromPartial($.musicUserIdAction):void 0,K.statusPostOptInNotificationPreferencesAction=$.statusPostOptInNotificationPreferencesAction!==void 0&&$.statusPostOptInNotificationPreferencesAction!==null?i9.fromPartial($.statusPostOptInNotificationPreferencesAction):void 0,K.avatarUpdatedAction=$.avatarUpdatedAction!==void 0&&$.avatarUpdatedAction!==null?uq.fromPartial($.avatarUpdatedAction):void 0,K.privateProcessingSettingAction=$.privateProcessingSettingAction!==void 0&&$.privateProcessingSettingAction!==null?w9.fromPartial($.privateProcessingSettingAction):void 0,K.newsletterSavedInterestsAction=$.newsletterSavedInterestsAction!==void 0&&$.newsletterSavedInterestsAction!==null?E9.fromPartial($.newsletterSavedInterestsAction):void 0,K.aiThreadRenameAction=$.aiThreadRenameAction!==void 0&&$.aiThreadRenameAction!==null?_q.fromPartial($.aiThreadRenameAction):void 0,K.interactiveMessageAction=$.interactiveMessageAction!==void 0&&$.interactiveMessageAction!==null?z9.fromPartial($.interactiveMessageAction):void 0,K.settingsSyncAction=$.settingsSyncAction!==void 0&&$.settingsSyncAction!==null?o9.fromPartial($.settingsSyncAction):void 0,K.outContactAction=$.outContactAction!==void 0&&$.outContactAction!==null?S9.fromPartial($.outContactAction):void 0,K.nctSaltSyncAction=$.nctSaltSyncAction!==void 0&&$.nctSaltSyncAction!==null?A9.fromPartial($.nctSaltSyncAction):void 0,K.businessBroadcastCampaignAction=$.businessBroadcastCampaignAction!==void 0&&$.businessBroadcastCampaignAction!==null?jq.fromPartial($.businessBroadcastCampaignAction):void 0,K.businessBroadcastInsightsAction=$.businessBroadcastInsightsAction!==void 0&&$.businessBroadcastInsightsAction!==null?cq.fromPartial($.businessBroadcastInsightsAction):void 0,K.customerDataAction=$.customerDataAction!==void 0&&$.customerDataAction!==null?K9.fromPartial($.customerDataAction):void 0,K.subscriptionsSyncV2Action=$.subscriptionsSyncV2Action!==void 0&&$.subscriptionsSyncV2Action!==null?r9.fromPartial($.subscriptionsSyncV2Action):void 0,K.threadPinAction=$.threadPinAction!==void 0&&$.threadPinAction!==null?$Y.fromPartial($.threadPinAction):void 0,K.autoOrganizeBusinessChatSetting=$.autoOrganizeBusinessChatSetting!==void 0&&$.autoOrganizeBusinessChatSetting!==null?pq.fromPartial($.autoOrganizeBusinessChatSetting):void 0,K.bizAiSettingsNudgeAction=$.bizAiSettingsNudgeAction!==void 0&&$.bizAiSettingsNudgeAction!==null?wq.fromPartial($.bizAiSettingsNudgeAction):void 0,K.coexV2VersionAction=$.coexV2VersionAction!==void 0&&$.coexV2VersionAction!==null?tq.fromPartial($.coexV2VersionAction):void 0,K.wasaRootSecretAction=$.wasaRootSecretAction!==void 0&&$.wasaRootSecretAction!==null?qY.fromPartial($.wasaRootSecretAction):void 0,K}};function VL(){return{}}var fq={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.deviceId!==void 0)K.uint32(16).int32($.deviceId);if($.isDeleted!==void 0)K.uint32(24).bool($.isDeleted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==16)break;J.deviceId=Q.int32();continue}case 3:{if(Z!==24)break;J.isDeleted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fq.fromPartial($??{})},fromPartial($){let K=VL();return K.name=$.name??void 0,K.deviceId=$.deviceId??void 0,K.isDeleted=$.isDeleted??void 0,K}};function GL(){return{}}var _q={encode($,K=new H){if($.newTitle!==void 0)K.uint32(10).string($.newTitle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newTitle=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _q.fromPartial($??{})},fromPartial($){let K=GL();return K.newTitle=$.newTitle??void 0,K}};function UL(){return{}}var hq={encode($,K=new H){if($.allowed!==void 0)K.uint32(8).bool($.allowed);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.allowed=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hq.fromPartial($??{})},fromPartial($){let K=UL();return K.allowed=$.allowed??void 0,K}};function CL(){return{}}var lq={encode($,K=new H){if($.archived!==void 0)K.uint32(8).bool($.archived);if($.messageRange!==void 0)Z0.encode($.messageRange,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.archived=Q.bool();continue}case 2:{if(Z!==18)break;J.messageRange=Z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lq.fromPartial($??{})},fromPartial($){let K=CL();return K.archived=$.archived??void 0,K.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Z0.fromPartial($.messageRange):void 0,K}};function DL(){return{}}var pq={encode($,K=new H){if($.autoOrganize!==void 0)K.uint32(8).bool($.autoOrganize);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.autoOrganize=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pq.fromPartial($??{})},fromPartial($){let K=DL();return K.autoOrganize=$.autoOrganize??void 0,K}};function LL(){return{}}var uq={encode($,K=new H){if($.eventType!==void 0)K.uint32(8).int32($.eventType);if($.recentAvatarStickers!==void 0&&$.recentAvatarStickers.length!==0)for(let Q of $.recentAvatarStickers)R$.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.eventType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.recentAvatarStickers===void 0)J.recentAvatarStickers=[];let Y=R$.decode(Q,Q.uint32());if(Y!==void 0)J.recentAvatarStickers.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uq.fromPartial($??{})},fromPartial($){let K=LL();return K.eventType=$.eventType??void 0,K.recentAvatarStickers=$.recentAvatarStickers?.map((Q)=>R$.fromPartial(Q))||void 0,K}};function PL(){return{}}var wq={encode($,K=new H){if($.category!==void 0)K.uint32(8).int32($.category);if($.version!==void 0)K.uint32(16).int64($.version);if($.updatedAtMs!==void 0)K.uint32(24).int64($.updatedAtMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.category=Q.int32();continue}case 2:{if(Z!==16)break;J.version=Q.int64Number();continue}case 3:{if(Z!==24)break;J.updatedAtMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wq.fromPartial($??{})},fromPartial($){let K=PL();return K.category=$.category??void 0,K.version=$.version??void 0,K.updatedAtMs=$.updatedAtMs??void 0,K}};function FL(){return{}}var nq={encode($,K=new H){if($.isSent!==void 0)K.uint32(8).bool($.isSent);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isSent=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nq.fromPartial($??{})},fromPartial($){let K=FL();return K.isSent=$.isSent??void 0,K}};function xL(){return{}}var dq={encode($,K=new H){if($.lidJid!==void 0)K.uint32(10).string($.lidJid);if($.pnJid!==void 0)K.uint32(18).string($.pnJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.lidJid=Q.string();continue}case 2:{if(Z!==18)break;J.pnJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dq.fromPartial($??{})},fromPartial($){let K=xL();return K.lidJid=$.lidJid??void 0,K.pnJid=$.pnJid??void 0,K}};function kL(){return{}}var zR={encode($,K=new H){if($.deleted!==void 0)K.uint32(8).bool($.deleted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.deleted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zR.fromPartial($??{})},fromPartial($){let K=kL();return K.deleted=$.deleted??void 0,K}};function NL(){return{}}var jq={encode($,K=new H){if($.deviceId!==void 0)K.uint32(8).int32($.deviceId);if($.adId!==void 0)K.uint32(18).string($.adId);if($.name!==void 0)K.uint32(26).string($.name);if($.msgId!==void 0)K.uint32(34).string($.msgId);if($.broadcastJid!==void 0)K.uint32(42).string($.broadcastJid);if($.reservedQuota!==void 0)K.uint32(48).int32($.reservedQuota);if($.scheduledTimestamp!==void 0)K.uint32(56).int64($.scheduledTimestamp);if($.createTimestamp!==void 0)K.uint32(64).int64($.createTimestamp);if($.status!==void 0)K.uint32(72).int32($.status);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.deviceId=Q.int32();continue}case 2:{if(Z!==18)break;J.adId=Q.string();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==34)break;J.msgId=Q.string();continue}case 5:{if(Z!==42)break;J.broadcastJid=Q.string();continue}case 6:{if(Z!==48)break;J.reservedQuota=Q.int32();continue}case 7:{if(Z!==56)break;J.scheduledTimestamp=Q.int64Number();continue}case 8:{if(Z!==64)break;J.createTimestamp=Q.int64Number();continue}case 9:{if(Z!==72)break;J.status=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jq.fromPartial($??{})},fromPartial($){let K=NL();return K.deviceId=$.deviceId??void 0,K.adId=$.adId??void 0,K.name=$.name??void 0,K.msgId=$.msgId??void 0,K.broadcastJid=$.broadcastJid??void 0,K.reservedQuota=$.reservedQuota??void 0,K.scheduledTimestamp=$.scheduledTimestamp??void 0,K.createTimestamp=$.createTimestamp??void 0,K.status=$.status??void 0,K}};function RL(){return{}}var cq={encode($,K=new H){if($.recipientCount!==void 0)K.uint32(8).int32($.recipientCount);if($.deliveredCount!==void 0)K.uint32(16).int32($.deliveredCount);if($.readCount!==void 0)K.uint32(24).int32($.readCount);if($.repliedCount!==void 0)K.uint32(32).int32($.repliedCount);if($.quickReplyCount!==void 0)K.uint32(40).int32($.quickReplyCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.recipientCount=Q.int32();continue}case 2:{if(Z!==16)break;J.deliveredCount=Q.int32();continue}case 3:{if(Z!==24)break;J.readCount=Q.int32();continue}case 4:{if(Z!==32)break;J.repliedCount=Q.int32();continue}case 5:{if(Z!==40)break;J.quickReplyCount=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cq.fromPartial($??{})},fromPartial($){let K=RL();return K.recipientCount=$.recipientCount??void 0,K.deliveredCount=$.deliveredCount??void 0,K.readCount=$.readCount??void 0,K.repliedCount=$.repliedCount??void 0,K.quickReplyCount=$.quickReplyCount??void 0,K}};function BL(){return{}}var oq={encode($,K=new H){if($.deleted!==void 0)K.uint32(8).bool($.deleted);if($.participants!==void 0&&$.participants.length!==0)for(let Q of $.participants)dq.encode(Q,K.uint32(18).fork()).join();if($.listName!==void 0)K.uint32(26).string($.listName);if($.labelIds!==void 0&&$.labelIds.length!==0)for(let Q of $.labelIds)K.uint32(34).string(Q);if($.audienceExpression!==void 0)K.uint32(42).string($.audienceExpression);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.deleted=Q.bool();continue}case 2:{if(Z!==18)break;if(J.participants===void 0)J.participants=[];let Y=dq.decode(Q,Q.uint32());if(Y!==void 0)J.participants.push(Y);continue}case 3:{if(Z!==26)break;J.listName=Q.string();continue}case 4:{if(Z!==34)break;if(J.labelIds===void 0)J.labelIds=[];let Y=Q.string();if(Y!==void 0)J.labelIds.push(Y);continue}case 5:{if(Z!==42)break;J.audienceExpression=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oq.fromPartial($??{})},fromPartial($){let K=BL();return K.deleted=$.deleted??void 0,K.participants=$.participants?.map((Q)=>dq.fromPartial(Q))||void 0,K.listName=$.listName??void 0,K.labelIds=$.labelIds?.map((Q)=>Q)||void 0,K.audienceExpression=$.audienceExpression??void 0,K}};function OL(){return{}}var bq={encode($,K=new H){if($.callLogRecord!==void 0)r0.encode($.callLogRecord,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.callLogRecord=r0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bq.fromPartial($??{})},fromPartial($){let K=OL();return K.callLogRecord=$.callLogRecord!==void 0&&$.callLogRecord!==null?r0.fromPartial($.callLogRecord):void 0,K}};function AL(){return{}}var iq={encode($,K=new H){if($.deviceAgentId!==void 0)K.uint32(10).string($.deviceAgentId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.deviceAgentId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iq.fromPartial($??{})},fromPartial($){let K=AL();return K.deviceAgentId=$.deviceAgentId??void 0,K}};function EL(){return{}}var mq={encode($,K=new H){if($.chatOpened!==void 0)K.uint32(8).bool($.chatOpened);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.chatOpened=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mq.fromPartial($??{})},fromPartial($){let K=EL();return K.chatOpened=$.chatOpened??void 0,K}};function ML(){return{}}var gq={encode($,K=new H){if($.messageRange!==void 0)Z0.encode($.messageRange,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ML();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageRange=Z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gq.fromPartial($??{})},fromPartial($){let K=ML();return K.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Z0.fromPartial($.messageRange):void 0,K}};function WL(){return{}}var tq={encode($,K=new H){if($.version!==void 0)K.uint32(8).uint64($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.version=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tq.fromPartial($??{})},fromPartial($){let K=WL();return K.version=$.version??void 0,K}};function IL(){return{}}var rq={encode($,K=new H){if($.fullName!==void 0)K.uint32(10).string($.fullName);if($.firstName!==void 0)K.uint32(18).string($.firstName);if($.lidJid!==void 0)K.uint32(26).string($.lidJid);if($.saveOnPrimaryAddressbook!==void 0)K.uint32(32).bool($.saveOnPrimaryAddressbook);if($.pnJid!==void 0)K.uint32(42).string($.pnJid);if($.username!==void 0)K.uint32(50).string($.username);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fullName=Q.string();continue}case 2:{if(Z!==18)break;J.firstName=Q.string();continue}case 3:{if(Z!==26)break;J.lidJid=Q.string();continue}case 4:{if(Z!==32)break;J.saveOnPrimaryAddressbook=Q.bool();continue}case 5:{if(Z!==42)break;J.pnJid=Q.string();continue}case 6:{if(Z!==50)break;J.username=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rq.fromPartial($??{})},fromPartial($){let K=IL();return K.fullName=$.fullName??void 0,K.firstName=$.firstName??void 0,K.lidJid=$.lidJid??void 0,K.saveOnPrimaryAddressbook=$.saveOnPrimaryAddressbook??void 0,K.pnJid=$.pnJid??void 0,K.username=$.username??void 0,K}};function SL(){return{}}var aq={encode($,K=new H){if($.isCtwaPerCustomerDataSharingEnabled!==void 0)K.uint32(8).bool($.isCtwaPerCustomerDataSharingEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isCtwaPerCustomerDataSharingEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aq.fromPartial($??{})},fromPartial($){let K=SL();return K.isCtwaPerCustomerDataSharingEnabled=$.isCtwaPerCustomerDataSharingEnabled??void 0,K}};function vL(){return{}}var sq={encode($,K=new H){if($.credentialId!==void 0)K.uint32(10).string($.credentialId);if($.country!==void 0)K.uint32(18).string($.country);if($.type!==void 0)K.uint32(26).string($.type);if($.metadata!==void 0&&$.metadata.length!==0)for(let Q of $.metadata)eq.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.credentialId=Q.string();continue}case 2:{if(Z!==18)break;J.country=Q.string();continue}case 3:{if(Z!==26)break;J.type=Q.string();continue}case 4:{if(Z!==34)break;if(J.metadata===void 0)J.metadata=[];let Y=eq.decode(Q,Q.uint32());if(Y!==void 0)J.metadata.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sq.fromPartial($??{})},fromPartial($){let K=vL();return K.credentialId=$.credentialId??void 0,K.country=$.country??void 0,K.type=$.type??void 0,K.metadata=$.metadata?.map((Q)=>eq.fromPartial(Q))||void 0,K}};function TL(){return{}}var eq={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.value!==void 0)K.uint32(18).string($.value);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.value=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eq.fromPartial($??{})},fromPartial($){let K=TL();return K.key=$.key??void 0,K.value=$.value??void 0,K}};function yL(){return{}}var $9={encode($,K=new H){if($.customPaymentMethods!==void 0&&$.customPaymentMethods.length!==0)for(let Q of $.customPaymentMethods)sq.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.customPaymentMethods===void 0)J.customPaymentMethods=[];let Y=sq.decode(Q,Q.uint32());if(Y!==void 0)J.customPaymentMethods.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $9.fromPartial($??{})},fromPartial($){let K=yL();return K.customPaymentMethods=$.customPaymentMethods?.map((Q)=>sq.fromPartial(Q))||void 0,K}};function fL(){return{}}var K9={encode($,K=new H){if($.chatJid!==void 0)K.uint32(10).string($.chatJid);if($.contactType!==void 0)K.uint32(16).int32($.contactType);if($.email!==void 0)K.uint32(26).string($.email);if($.altPhoneNumbers!==void 0)K.uint32(34).string($.altPhoneNumbers);if($.birthday!==void 0)K.uint32(40).int64($.birthday);if($.address!==void 0)K.uint32(50).string($.address);if($.acquisitionSource!==void 0)K.uint32(56).int32($.acquisitionSource);if($.leadStage!==void 0)K.uint32(64).int32($.leadStage);if($.lastOrder!==void 0)K.uint32(72).int64($.lastOrder);if($.createdAt!==void 0)K.uint32(80).int64($.createdAt);if($.modifiedAt!==void 0)K.uint32(88).int64($.modifiedAt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.chatJid=Q.string();continue}case 2:{if(Z!==16)break;J.contactType=Q.int32();continue}case 3:{if(Z!==26)break;J.email=Q.string();continue}case 4:{if(Z!==34)break;J.altPhoneNumbers=Q.string();continue}case 5:{if(Z!==40)break;J.birthday=Q.int64Number();continue}case 6:{if(Z!==50)break;J.address=Q.string();continue}case 7:{if(Z!==56)break;J.acquisitionSource=Q.int32();continue}case 8:{if(Z!==64)break;J.leadStage=Q.int32();continue}case 9:{if(Z!==72)break;J.lastOrder=Q.int64Number();continue}case 10:{if(Z!==80)break;J.createdAt=Q.int64Number();continue}case 11:{if(Z!==88)break;J.modifiedAt=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return K9.fromPartial($??{})},fromPartial($){let K=fL();return K.chatJid=$.chatJid??void 0,K.contactType=$.contactType??void 0,K.email=$.email??void 0,K.altPhoneNumbers=$.altPhoneNumbers??void 0,K.birthday=$.birthday??void 0,K.address=$.address??void 0,K.acquisitionSource=$.acquisitionSource??void 0,K.leadStage=$.leadStage??void 0,K.lastOrder=$.lastOrder??void 0,K.createdAt=$.createdAt??void 0,K.modifiedAt=$.modifiedAt??void 0,K}};function _L(){return{}}var Q9={encode($,K=new H){if($.messageRange!==void 0)Z0.encode($.messageRange,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_L();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageRange=Z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Q9.fromPartial($??{})},fromPartial($){let K=_L();return K.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Z0.fromPartial($.messageRange):void 0,K}};function hL(){return{}}var Z9={encode($,K=new H){if($.peerJid!==void 0)K.uint32(10).string($.peerJid);if($.isIncoming!==void 0)K.uint32(16).bool($.isIncoming);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.peerJid=Q.string();continue}case 2:{if(Z!==16)break;J.isIncoming=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Z9.fromPartial($??{})},fromPartial($){let K=hL();return K.peerJid=$.peerJid??void 0,K.isIncoming=$.isIncoming??void 0,K}};function lL(){return{}}var J9={encode($,K=new H){if($.deleteMedia!==void 0)K.uint32(8).bool($.deleteMedia);if($.messageTimestamp!==void 0)K.uint32(16).int64($.messageTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.deleteMedia=Q.bool();continue}case 2:{if(Z!==16)break;J.messageTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return J9.fromPartial($??{})},fromPartial($){let K=lL();return K.deleteMedia=$.deleteMedia??void 0,K.messageTimestamp=$.messageTimestamp??void 0,K}};function pL(){return{}}var X9={encode($,K=new H){if($.isEnabled!==void 0)K.uint32(8).bool($.isEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return X9.fromPartial($??{})},fromPartial($){let K=pL();return K.isEnabled=$.isEnabled??void 0,K}};function uL(){return{}}var q9={encode($,K=new H){if($.isOptIn!==void 0)K.uint32(8).bool($.isOptIn);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isOptIn=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return q9.fromPartial($??{})},fromPartial($){let K=uL();return K.isOptIn=$.isOptIn??void 0,K}};function wL(){return{}}var Y9={encode($,K=new H){if($.favorites!==void 0&&$.favorites.length!==0)for(let Q of $.favorites)H9.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.favorites===void 0)J.favorites=[];let Y=H9.decode(Q,Q.uint32());if(Y!==void 0)J.favorites.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Y9.fromPartial($??{})},fromPartial($){let K=wL();return K.favorites=$.favorites?.map((Q)=>H9.fromPartial(Q))||void 0,K}};function nL(){return{}}var H9={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return H9.fromPartial($??{})},fromPartial($){let K=nL();return K.id=$.id??void 0,K}};function dL(){return{}}var z9={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.agmId!==void 0)K.uint32(18).string($.agmId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.agmId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return z9.fromPartial($??{})},fromPartial($){let K=dL();return K.type=$.type??void 0,K.agmId=$.agmId??void 0,K}};function jL(){return{}}var V9={encode($,K=new H){if($.expiredKeyEpoch!==void 0)K.uint32(8).int32($.expiredKeyEpoch);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.expiredKeyEpoch=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return V9.fromPartial($??{})},fromPartial($){let K=jL();return K.expiredKeyEpoch=$.expiredKeyEpoch??void 0,K}};function cL(){return{}}var G9={encode($,K=new H){if($.labeled!==void 0)K.uint32(8).bool($.labeled);if($.modelMetaData!==void 0)K.uint32(18).string($.modelMetaData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.labeled=Q.bool();continue}case 2:{if(Z!==18)break;J.modelMetaData=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return G9.fromPartial($??{})},fromPartial($){let K=cL();return K.labeled=$.labeled??void 0,K.modelMetaData=$.modelMetaData??void 0,K}};function oL(){return{}}var U9={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.color!==void 0)K.uint32(16).int32($.color);if($.predefinedId!==void 0)K.uint32(24).int32($.predefinedId);if($.deleted!==void 0)K.uint32(32).bool($.deleted);if($.orderIndex!==void 0)K.uint32(40).int32($.orderIndex);if($.isActive!==void 0)K.uint32(48).bool($.isActive);if($.type!==void 0)K.uint32(56).int32($.type);if($.isImmutable!==void 0)K.uint32(64).bool($.isImmutable);if($.muteEndTimeMs!==void 0)K.uint32(72).int64($.muteEndTimeMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==16)break;J.color=Q.int32();continue}case 3:{if(Z!==24)break;J.predefinedId=Q.int32();continue}case 4:{if(Z!==32)break;J.deleted=Q.bool();continue}case 5:{if(Z!==40)break;J.orderIndex=Q.int32();continue}case 6:{if(Z!==48)break;J.isActive=Q.bool();continue}case 7:{if(Z!==56)break;J.type=Q.int32();continue}case 8:{if(Z!==64)break;J.isImmutable=Q.bool();continue}case 9:{if(Z!==72)break;J.muteEndTimeMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return U9.fromPartial($??{})},fromPartial($){let K=oL();return K.name=$.name??void 0,K.color=$.color??void 0,K.predefinedId=$.predefinedId??void 0,K.deleted=$.deleted??void 0,K.orderIndex=$.orderIndex??void 0,K.isActive=$.isActive??void 0,K.type=$.type??void 0,K.isImmutable=$.isImmutable??void 0,K.muteEndTimeMs=$.muteEndTimeMs??void 0,K}};function bL(){return{}}var C9={encode($,K=new H){if($.sortedLabelIds!==void 0&&$.sortedLabelIds.length!==0)for(let Q of $.sortedLabelIds)K.uint32(8).int32(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.sortedLabelIds===void 0)J.sortedLabelIds=[];J.sortedLabelIds.push(Q.int32());continue}if(Z===10){if(J.sortedLabelIds===void 0)J.sortedLabelIds=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.sortedLabelIds.push(Q.int32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return C9.fromPartial($??{})},fromPartial($){let K=bL();return K.sortedLabelIds=$.sortedLabelIds?.map((Q)=>Q)||void 0,K}};function iL(){return{}}var D9={encode($,K=new H){if($.fullName!==void 0)K.uint32(10).string($.fullName);if($.firstName!==void 0)K.uint32(18).string($.firstName);if($.username!==void 0)K.uint32(26).string($.username);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fullName=Q.string();continue}case 2:{if(Z!==18)break;J.firstName=Q.string();continue}case 3:{if(Z!==26)break;J.username=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return D9.fromPartial($??{})},fromPartial($){let K=iL();return K.fullName=$.fullName??void 0,K.firstName=$.firstName??void 0,K.username=$.username??void 0,K}};function mL(){return{}}var L9={encode($,K=new H){if($.locale!==void 0)K.uint32(10).string($.locale);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.locale=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return L9.fromPartial($??{})},fromPartial($){let K=mL();return K.locale=$.locale??void 0,K}};function gL(){return{}}var P9={encode($,K=new H){if($.locked!==void 0)K.uint32(8).bool($.locked);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.locked=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return P9.fromPartial($??{})},fromPartial($){let K=gL();return K.locked=$.locked??void 0,K}};function tL(){return{}}var F9={encode($,K=new H){if($.aiFeatureStatus!==void 0)K.uint32(8).int32($.aiFeatureStatus);if($.aiReplyMode!==void 0)K.uint32(16).int32($.aiReplyMode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.aiFeatureStatus=Q.int32();continue}case 2:{if(Z!==16)break;J.aiReplyMode=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return F9.fromPartial($??{})},fromPartial($){let K=tL();return K.aiFeatureStatus=$.aiFeatureStatus??void 0,K.aiReplyMode=$.aiReplyMode??void 0,K}};function rL(){return{}}var x9={encode($,K=new H){if($.read!==void 0)K.uint32(8).bool($.read);if($.messageRange!==void 0)Z0.encode($.messageRange,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.read=Q.bool();continue}case 2:{if(Z!==18)break;J.messageRange=Z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x9.fromPartial($??{})},fromPartial($){let K=rL();return K.read=$.read??void 0,K.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Z0.fromPartial($.messageRange):void 0,K}};function aL(){return{}}var k9={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.message!==void 0)K.uint32(18).string($.message);if($.type!==void 0)K.uint32(24).int32($.type);if($.createdAt!==void 0)K.uint32(32).int64($.createdAt);if($.lastSentAt!==void 0)K.uint32(40).int64($.lastSentAt);if($.isDeleted!==void 0)K.uint32(48).bool($.isDeleted);if($.mediaId!==void 0)K.uint32(58).string($.mediaId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.message=Q.string();continue}case 3:{if(Z!==24)break;J.type=Q.int32();continue}case 4:{if(Z!==32)break;J.createdAt=Q.int64Number();continue}case 5:{if(Z!==40)break;J.lastSentAt=Q.int64Number();continue}case 6:{if(Z!==48)break;J.isDeleted=Q.bool();continue}case 7:{if(Z!==58)break;J.mediaId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return k9.fromPartial($??{})},fromPartial($){let K=aL();return K.name=$.name??void 0,K.message=$.message??void 0,K.type=$.type??void 0,K.createdAt=$.createdAt??void 0,K.lastSentAt=$.lastSentAt??void 0,K.isDeleted=$.isDeleted??void 0,K.mediaId=$.mediaId??void 0,K}};function sL(){return{}}var N9={encode($,K=new H){if($.repliedCount!==void 0)K.uint32(8).int32($.repliedCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.repliedCount=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return N9.fromPartial($??{})},fromPartial($){let K=sL();return K.repliedCount=$.repliedCount??void 0,K}};function eL(){return{}}var R9={encode($,K=new H){if($.status!==void 0)K.uint32(8).int32($.status);if($.country!==void 0)K.uint32(18).string($.country);if($.gatewayName!==void 0)K.uint32(26).string($.gatewayName);if($.credentialId!==void 0)K.uint32(34).string($.credentialId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.status=Q.int32();continue}case 2:{if(Z!==18)break;J.country=Q.string();continue}case 3:{if(Z!==26)break;J.gatewayName=Q.string();continue}case 4:{if(Z!==34)break;J.credentialId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return R9.fromPartial($??{})},fromPartial($){let K=eL();return K.status=$.status??void 0,K.country=$.country??void 0,K.gatewayName=$.gatewayName??void 0,K.credentialId=$.credentialId??void 0,K}};function $4(){return{}}var B9={encode($,K=new H){if($.musicUserId!==void 0)K.uint32(10).string($.musicUserId);return globalThis.Object.entries($.musicUserIdMap||{}).forEach(([Q,X])=>{hY.encode({key:Q,value:X},K.uint32(18).fork()).join()}),K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.musicUserId=Q.string();continue}case 2:{if(Z!==18)break;let Y=hY.decode(Q,Q.uint32());if(Y.value!==void 0&&Y.key!==void 0){if(J.musicUserIdMap===void 0)J.musicUserIdMap={};J.musicUserIdMap[Y.key]=Y.value}continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return B9.fromPartial($??{})},fromPartial($){let K=$4();return K.musicUserId=$.musicUserId??void 0,K.musicUserIdMap=$.musicUserIdMap===void 0||$.musicUserIdMap===null?void 0:globalThis.Object.entries($.musicUserIdMap??{}).reduce((Q,[X,J])=>{if(J!==void 0)Q[X]=globalThis.String(J);return Q},{}),K}};function K4(){return{}}var hY={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.value!==void 0)K.uint32(18).string($.value);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=K4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.value=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hY.fromPartial($??{})},fromPartial($){let K=K4();return K.key=$.key??void 0,K.value=$.value??void 0,K}};function Q4(){return{}}var O9={encode($,K=new H){if($.muted!==void 0)K.uint32(8).bool($.muted);if($.muteEndTimestamp!==void 0)K.uint32(16).int64($.muteEndTimestamp);if($.autoMuted!==void 0)K.uint32(24).bool($.autoMuted);if($.muteEveryoneMentionEndTimestamp!==void 0)K.uint32(32).int64($.muteEveryoneMentionEndTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Q4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.muted=Q.bool();continue}case 2:{if(Z!==16)break;J.muteEndTimestamp=Q.int64Number();continue}case 3:{if(Z!==24)break;J.autoMuted=Q.bool();continue}case 4:{if(Z!==32)break;J.muteEveryoneMentionEndTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return O9.fromPartial($??{})},fromPartial($){let K=Q4();return K.muted=$.muted??void 0,K.muteEndTimestamp=$.muteEndTimestamp??void 0,K.autoMuted=$.autoMuted??void 0,K.muteEveryoneMentionEndTimestamp=$.muteEveryoneMentionEndTimestamp??void 0,K}};function Z4(){return{}}var A9={encode($,K=new H){if($.salt!==void 0)K.uint32(10).bytes($.salt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Z4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.salt=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return A9.fromPartial($??{})},fromPartial($){let K=Z4();return K.salt=$.salt??void 0,K}};function J4(){return{}}var E9={encode($,K=new H){if($.newsletterSavedInterests!==void 0)K.uint32(10).string($.newsletterSavedInterests);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=J4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newsletterSavedInterests=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return E9.fromPartial($??{})},fromPartial($){let K=J4();return K.newsletterSavedInterests=$.newsletterSavedInterests??void 0,K}};function X4(){return{}}var M9={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.chatJid!==void 0)K.uint32(18).string($.chatJid);if($.createdAt!==void 0)K.uint32(24).int64($.createdAt);if($.deleted!==void 0)K.uint32(32).bool($.deleted);if($.unstructuredContent!==void 0)K.uint32(42).string($.unstructuredContent);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=X4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.chatJid=Q.string();continue}case 3:{if(Z!==24)break;J.createdAt=Q.int64Number();continue}case 4:{if(Z!==32)break;J.deleted=Q.bool();continue}case 5:{if(Z!==42)break;J.unstructuredContent=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return M9.fromPartial($??{})},fromPartial($){let K=X4();return K.type=$.type??void 0,K.chatJid=$.chatJid??void 0,K.createdAt=$.createdAt??void 0,K.deleted=$.deleted??void 0,K.unstructuredContent=$.unstructuredContent??void 0,K}};function q4(){return{}}var W9={encode($,K=new H){if($.notificationActivitySetting!==void 0)K.uint32(8).int32($.notificationActivitySetting);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=q4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.notificationActivitySetting=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W9.fromPartial($??{})},fromPartial($){let K=q4();return K.notificationActivitySetting=$.notificationActivitySetting??void 0,K}};function Y4(){return{}}var I9={encode($,K=new H){if($.acknowledged!==void 0)K.uint32(8).bool($.acknowledged);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Y4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.acknowledged=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return I9.fromPartial($??{})},fromPartial($){let K=Y4();return K.acknowledged=$.acknowledged??void 0,K}};function H4(){return{}}var S9={encode($,K=new H){if($.fullName!==void 0)K.uint32(10).string($.fullName);if($.firstName!==void 0)K.uint32(18).string($.firstName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=H4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fullName=Q.string();continue}case 2:{if(Z!==18)break;J.firstName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return S9.fromPartial($??{})},fromPartial($){let K=H4();return K.fullName=$.fullName??void 0,K.firstName=$.firstName??void 0,K}};function z4(){return{}}var v9={encode($,K=new H){if($.cpi!==void 0)K.uint32(10).string($.cpi);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=z4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.cpi=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return v9.fromPartial($??{})},fromPartial($){let K=z4();return K.cpi=$.cpi??void 0,K}};function V4(){return{}}var T9={encode($,K=new H){if($.paymentNotice!==void 0)K.uint32(8).int32($.paymentNotice);if($.accepted!==void 0)K.uint32(16).bool($.accepted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=V4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.paymentNotice=Q.int32();continue}case 2:{if(Z!==16)break;J.accepted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return T9.fromPartial($??{})},fromPartial($){let K=V4();return K.paymentNotice=$.paymentNotice??void 0,K.accepted=$.accepted??void 0,K}};function G4(){return{}}var y9={encode($,K=new H){if($.pinned!==void 0)K.uint32(8).bool($.pinned);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=G4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pinned=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return y9.fromPartial($??{})},fromPartial($){let K=G4();return K.pinned=$.pinned??void 0,K}};function U4(){return{}}var f9={encode($,K=new H){if($.pnJid!==void 0)K.uint32(10).string($.pnJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=U4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pnJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return f9.fromPartial($??{})},fromPartial($){let K=U4();return K.pnJid=$.pnJid??void 0,K}};function C4(){return{}}var _9={encode($,K=new H){if($.flags!==void 0&&$.flags.length!==0)for(let Q of $.flags)K.uint32(10).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=C4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.flags===void 0)J.flags=[];let Y=Q.string();if(Y!==void 0)J.flags.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _9.fromPartial($??{})},fromPartial($){let K=C4();return K.flags=$.flags?.map((Q)=>Q)||void 0,K}};function D4(){return{}}var h9={encode($,K=new H){if($.version!==void 0)K.uint32(10).string($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=D4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.version=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return h9.fromPartial($??{})},fromPartial($){let K=D4();return K.version=$.version??void 0,K}};function L4(){return{}}var l9={encode($,K=new H){if($.isUserOptedOut!==void 0)K.uint32(8).bool($.isUserOptedOut);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=L4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isUserOptedOut=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return l9.fromPartial($??{})},fromPartial($){let K=L4();return K.isUserOptedOut=$.isUserOptedOut??void 0,K}};function P4(){return{}}var p9={encode($,K=new H){if($.isPreviewsDisabled!==void 0)K.uint32(8).bool($.isPreviewsDisabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=P4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isPreviewsDisabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return p9.fromPartial($??{})},fromPartial($){let K=P4();return K.isPreviewsDisabled=$.isPreviewsDisabled??void 0,K}};function F4(){return{}}var u9={encode($,K=new H){if($.isEnabled!==void 0)K.uint32(8).bool($.isEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=F4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return u9.fromPartial($??{})},fromPartial($){let K=F4();return K.isEnabled=$.isEnabled??void 0,K}};function x4(){return{}}var w9={encode($,K=new H){if($.privateProcessingStatus!==void 0)K.uint32(8).int32($.privateProcessingStatus);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=x4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.privateProcessingStatus=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return w9.fromPartial($??{})},fromPartial($){let K=x4();return K.privateProcessingStatus=$.privateProcessingStatus??void 0,K}};function k4(){return{}}var n9={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=k4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return n9.fromPartial($??{})},fromPartial($){let K=k4();return K.name=$.name??void 0,K}};function N4(){return{}}var d9={encode($,K=new H){if($.shortcut!==void 0)K.uint32(10).string($.shortcut);if($.message!==void 0)K.uint32(18).string($.message);if($.keywords!==void 0&&$.keywords.length!==0)for(let Q of $.keywords)K.uint32(26).string(Q);if($.count!==void 0)K.uint32(32).int32($.count);if($.deleted!==void 0)K.uint32(40).bool($.deleted);if($.associatedLabelIds!==void 0&&$.associatedLabelIds.length!==0)for(let Q of $.associatedLabelIds)K.uint32(50).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=N4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.shortcut=Q.string();continue}case 2:{if(Z!==18)break;J.message=Q.string();continue}case 3:{if(Z!==26)break;if(J.keywords===void 0)J.keywords=[];let Y=Q.string();if(Y!==void 0)J.keywords.push(Y);continue}case 4:{if(Z!==32)break;J.count=Q.int32();continue}case 5:{if(Z!==40)break;J.deleted=Q.bool();continue}case 6:{if(Z!==50)break;if(J.associatedLabelIds===void 0)J.associatedLabelIds=[];let Y=Q.string();if(Y!==void 0)J.associatedLabelIds.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return d9.fromPartial($??{})},fromPartial($){let K=N4();return K.shortcut=$.shortcut??void 0,K.message=$.message??void 0,K.keywords=$.keywords?.map((Q)=>Q)||void 0,K.count=$.count??void 0,K.deleted=$.deleted??void 0,K.associatedLabelIds=$.associatedLabelIds?.map((Q)=>Q)||void 0,K}};function R4(){return{}}var j9={encode($,K=new H){if($.weights!==void 0&&$.weights.length!==0)for(let Q of $.weights)Vq.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=R4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.weights===void 0)J.weights=[];let Y=Vq.decode(Q,Q.uint32());if(Y!==void 0)J.weights.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return j9.fromPartial($??{})},fromPartial($){let K=R4();return K.weights=$.weights?.map((Q)=>Vq.fromPartial(Q))||void 0,K}};function B4(){return{}}var c9={encode($,K=new H){if($.lastStickerSentTs!==void 0)K.uint32(8).int64($.lastStickerSentTs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=B4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.lastStickerSentTs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c9.fromPartial($??{})},fromPartial($){let K=B4();return K.lastStickerSentTs=$.lastStickerSentTs??void 0,K}};function O4(){return{}}var o9={encode($,K=new H){if($.startAtLogin!==void 0)K.uint32(8).bool($.startAtLogin);if($.minimizeToTray!==void 0)K.uint32(16).bool($.minimizeToTray);if($.language!==void 0)K.uint32(26).string($.language);if($.replaceTextWithEmoji!==void 0)K.uint32(32).bool($.replaceTextWithEmoji);if($.bannerNotificationDisplayMode!==void 0)K.uint32(40).int32($.bannerNotificationDisplayMode);if($.unreadCounterBadgeDisplayMode!==void 0)K.uint32(48).int32($.unreadCounterBadgeDisplayMode);if($.isMessagesNotificationEnabled!==void 0)K.uint32(56).bool($.isMessagesNotificationEnabled);if($.isCallsNotificationEnabled!==void 0)K.uint32(64).bool($.isCallsNotificationEnabled);if($.isReactionsNotificationEnabled!==void 0)K.uint32(72).bool($.isReactionsNotificationEnabled);if($.isStatusReactionsNotificationEnabled!==void 0)K.uint32(80).bool($.isStatusReactionsNotificationEnabled);if($.isTextPreviewForNotificationEnabled!==void 0)K.uint32(88).bool($.isTextPreviewForNotificationEnabled);if($.defaultNotificationToneId!==void 0)K.uint32(96).int32($.defaultNotificationToneId);if($.groupDefaultNotificationToneId!==void 0)K.uint32(104).int32($.groupDefaultNotificationToneId);if($.appTheme!==void 0)K.uint32(112).int32($.appTheme);if($.wallpaperId!==void 0)K.uint32(120).int32($.wallpaperId);if($.isDoodleWallpaperEnabled!==void 0)K.uint32(128).bool($.isDoodleWallpaperEnabled);if($.fontSize!==void 0)K.uint32(136).int32($.fontSize);if($.isPhotosAutodownloadEnabled!==void 0)K.uint32(144).bool($.isPhotosAutodownloadEnabled);if($.isAudiosAutodownloadEnabled!==void 0)K.uint32(152).bool($.isAudiosAutodownloadEnabled);if($.isVideosAutodownloadEnabled!==void 0)K.uint32(160).bool($.isVideosAutodownloadEnabled);if($.isDocumentsAutodownloadEnabled!==void 0)K.uint32(168).bool($.isDocumentsAutodownloadEnabled);if($.disableLinkPreviews!==void 0)K.uint32(176).bool($.disableLinkPreviews);if($.notificationToneId!==void 0)K.uint32(184).int32($.notificationToneId);if($.mediaUploadQuality!==void 0)K.uint32(192).int32($.mediaUploadQuality);if($.isSpellCheckEnabled!==void 0)K.uint32(200).bool($.isSpellCheckEnabled);if($.isEnterToSendEnabled!==void 0)K.uint32(208).bool($.isEnterToSendEnabled);if($.isGroupMessageNotificationEnabled!==void 0)K.uint32(216).bool($.isGroupMessageNotificationEnabled);if($.isGroupReactionsNotificationEnabled!==void 0)K.uint32(224).bool($.isGroupReactionsNotificationEnabled);if($.isStatusNotificationEnabled!==void 0)K.uint32(232).bool($.isStatusNotificationEnabled);if($.statusNotificationToneId!==void 0)K.uint32(240).int32($.statusNotificationToneId);if($.shouldPlaySoundForCallNotification!==void 0)K.uint32(248).bool($.shouldPlaySoundForCallNotification);if($.chatThemeId!==void 0)K.uint32(258).string($.chatThemeId);if($.colorSchemeId!==void 0)K.uint32(266).string($.colorSchemeId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=O4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.startAtLogin=Q.bool();continue}case 2:{if(Z!==16)break;J.minimizeToTray=Q.bool();continue}case 3:{if(Z!==26)break;J.language=Q.string();continue}case 4:{if(Z!==32)break;J.replaceTextWithEmoji=Q.bool();continue}case 5:{if(Z!==40)break;J.bannerNotificationDisplayMode=Q.int32();continue}case 6:{if(Z!==48)break;J.unreadCounterBadgeDisplayMode=Q.int32();continue}case 7:{if(Z!==56)break;J.isMessagesNotificationEnabled=Q.bool();continue}case 8:{if(Z!==64)break;J.isCallsNotificationEnabled=Q.bool();continue}case 9:{if(Z!==72)break;J.isReactionsNotificationEnabled=Q.bool();continue}case 10:{if(Z!==80)break;J.isStatusReactionsNotificationEnabled=Q.bool();continue}case 11:{if(Z!==88)break;J.isTextPreviewForNotificationEnabled=Q.bool();continue}case 12:{if(Z!==96)break;J.defaultNotificationToneId=Q.int32();continue}case 13:{if(Z!==104)break;J.groupDefaultNotificationToneId=Q.int32();continue}case 14:{if(Z!==112)break;J.appTheme=Q.int32();continue}case 15:{if(Z!==120)break;J.wallpaperId=Q.int32();continue}case 16:{if(Z!==128)break;J.isDoodleWallpaperEnabled=Q.bool();continue}case 17:{if(Z!==136)break;J.fontSize=Q.int32();continue}case 18:{if(Z!==144)break;J.isPhotosAutodownloadEnabled=Q.bool();continue}case 19:{if(Z!==152)break;J.isAudiosAutodownloadEnabled=Q.bool();continue}case 20:{if(Z!==160)break;J.isVideosAutodownloadEnabled=Q.bool();continue}case 21:{if(Z!==168)break;J.isDocumentsAutodownloadEnabled=Q.bool();continue}case 22:{if(Z!==176)break;J.disableLinkPreviews=Q.bool();continue}case 23:{if(Z!==184)break;J.notificationToneId=Q.int32();continue}case 24:{if(Z!==192)break;J.mediaUploadQuality=Q.int32();continue}case 25:{if(Z!==200)break;J.isSpellCheckEnabled=Q.bool();continue}case 26:{if(Z!==208)break;J.isEnterToSendEnabled=Q.bool();continue}case 27:{if(Z!==216)break;J.isGroupMessageNotificationEnabled=Q.bool();continue}case 28:{if(Z!==224)break;J.isGroupReactionsNotificationEnabled=Q.bool();continue}case 29:{if(Z!==232)break;J.isStatusNotificationEnabled=Q.bool();continue}case 30:{if(Z!==240)break;J.statusNotificationToneId=Q.int32();continue}case 31:{if(Z!==248)break;J.shouldPlaySoundForCallNotification=Q.bool();continue}case 32:{if(Z!==258)break;J.chatThemeId=Q.string();continue}case 33:{if(Z!==266)break;J.colorSchemeId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o9.fromPartial($??{})},fromPartial($){let K=O4();return K.startAtLogin=$.startAtLogin??void 0,K.minimizeToTray=$.minimizeToTray??void 0,K.language=$.language??void 0,K.replaceTextWithEmoji=$.replaceTextWithEmoji??void 0,K.bannerNotificationDisplayMode=$.bannerNotificationDisplayMode??void 0,K.unreadCounterBadgeDisplayMode=$.unreadCounterBadgeDisplayMode??void 0,K.isMessagesNotificationEnabled=$.isMessagesNotificationEnabled??void 0,K.isCallsNotificationEnabled=$.isCallsNotificationEnabled??void 0,K.isReactionsNotificationEnabled=$.isReactionsNotificationEnabled??void 0,K.isStatusReactionsNotificationEnabled=$.isStatusReactionsNotificationEnabled??void 0,K.isTextPreviewForNotificationEnabled=$.isTextPreviewForNotificationEnabled??void 0,K.defaultNotificationToneId=$.defaultNotificationToneId??void 0,K.groupDefaultNotificationToneId=$.groupDefaultNotificationToneId??void 0,K.appTheme=$.appTheme??void 0,K.wallpaperId=$.wallpaperId??void 0,K.isDoodleWallpaperEnabled=$.isDoodleWallpaperEnabled??void 0,K.fontSize=$.fontSize??void 0,K.isPhotosAutodownloadEnabled=$.isPhotosAutodownloadEnabled??void 0,K.isAudiosAutodownloadEnabled=$.isAudiosAutodownloadEnabled??void 0,K.isVideosAutodownloadEnabled=$.isVideosAutodownloadEnabled??void 0,K.isDocumentsAutodownloadEnabled=$.isDocumentsAutodownloadEnabled??void 0,K.disableLinkPreviews=$.disableLinkPreviews??void 0,K.notificationToneId=$.notificationToneId??void 0,K.mediaUploadQuality=$.mediaUploadQuality??void 0,K.isSpellCheckEnabled=$.isSpellCheckEnabled??void 0,K.isEnterToSendEnabled=$.isEnterToSendEnabled??void 0,K.isGroupMessageNotificationEnabled=$.isGroupMessageNotificationEnabled??void 0,K.isGroupReactionsNotificationEnabled=$.isGroupReactionsNotificationEnabled??void 0,K.isStatusNotificationEnabled=$.isStatusNotificationEnabled??void 0,K.statusNotificationToneId=$.statusNotificationToneId??void 0,K.shouldPlaySoundForCallNotification=$.shouldPlaySoundForCallNotification??void 0,K.chatThemeId=$.chatThemeId??void 0,K.colorSchemeId=$.colorSchemeId??void 0,K}};function A4(){return{}}var b9={encode($,K=new H){if($.starred!==void 0)K.uint32(8).bool($.starred);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=A4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.starred=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b9.fromPartial($??{})},fromPartial($){let K=A4();return K.starred=$.starred??void 0,K}};function E4(){return{}}var i9={encode($,K=new H){if($.enabled!==void 0)K.uint32(8).bool($.enabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=E4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.enabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i9.fromPartial($??{})},fromPartial($){let K=E4();return K.enabled=$.enabled??void 0,K}};function M4(){return{}}var m9={encode($,K=new H){if($.mode!==void 0)K.uint32(8).int32($.mode);if($.userJid!==void 0&&$.userJid.length!==0)for(let Q of $.userJid)K.uint32(18).string(Q);if($.shareToFb!==void 0)K.uint32(24).bool($.shareToFb);if($.shareToIg!==void 0)K.uint32(32).bool($.shareToIg);if($.customLists!==void 0&&$.customLists.length!==0)for(let Q of $.customLists)g9.encode(Q,K.uint32(42).fork()).join();if($.modes!==void 0&&$.modes.length!==0)for(let Q of $.modes)K.uint32(48).int32(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=M4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.mode=Q.int32();continue}case 2:{if(Z!==18)break;if(J.userJid===void 0)J.userJid=[];let Y=Q.string();if(Y!==void 0)J.userJid.push(Y);continue}case 3:{if(Z!==24)break;J.shareToFb=Q.bool();continue}case 4:{if(Z!==32)break;J.shareToIg=Q.bool();continue}case 5:{if(Z!==42)break;if(J.customLists===void 0)J.customLists=[];let Y=g9.decode(Q,Q.uint32());if(Y!==void 0)J.customLists.push(Y);continue}case 6:{if(Z===48){if(J.modes===void 0)J.modes=[];J.modes.push(Q.int32());continue}if(Z===50){if(J.modes===void 0)J.modes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.modes.push(Q.int32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m9.fromPartial($??{})},fromPartial($){let K=M4();return K.mode=$.mode??void 0,K.userJid=$.userJid?.map((Q)=>Q)||void 0,K.shareToFb=$.shareToFb??void 0,K.shareToIg=$.shareToIg??void 0,K.customLists=$.customLists?.map((Q)=>g9.fromPartial(Q))||void 0,K.modes=$.modes?.map((Q)=>Q)||void 0,K}};function W4(){return{}}var g9={encode($,K=new H){if($.listId!==void 0)K.uint32(10).string($.listId);if($.name!==void 0)K.uint32(18).string($.name);if($.emoji!==void 0)K.uint32(26).string($.emoji);if($.isSelected!==void 0)K.uint32(32).bool($.isSelected);if($.userJid!==void 0&&$.userJid.length!==0)for(let Q of $.userJid)K.uint32(42).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=W4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.listId=Q.string();continue}case 2:{if(Z!==18)break;J.name=Q.string();continue}case 3:{if(Z!==26)break;J.emoji=Q.string();continue}case 4:{if(Z!==32)break;J.isSelected=Q.bool();continue}case 5:{if(Z!==42)break;if(J.userJid===void 0)J.userJid=[];let Y=Q.string();if(Y!==void 0)J.userJid.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return g9.fromPartial($??{})},fromPartial($){let K=W4();return K.listId=$.listId??void 0,K.name=$.name??void 0,K.emoji=$.emoji??void 0,K.isSelected=$.isSelected??void 0,K.userJid=$.userJid?.map((Q)=>Q)||void 0,K}};function I4(){return{}}var R$={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.fileEncSha256!==void 0)K.uint32(18).bytes($.fileEncSha256);if($.mediaKey!==void 0)K.uint32(26).bytes($.mediaKey);if($.mimetype!==void 0)K.uint32(34).string($.mimetype);if($.height!==void 0)K.uint32(40).uint32($.height);if($.width!==void 0)K.uint32(48).uint32($.width);if($.directPath!==void 0)K.uint32(58).string($.directPath);if($.fileLength!==void 0)K.uint32(64).uint64($.fileLength);if($.isFavorite!==void 0)K.uint32(72).bool($.isFavorite);if($.deviceIdHint!==void 0)K.uint32(80).uint32($.deviceIdHint);if($.isLottie!==void 0)K.uint32(88).bool($.isLottie);if($.imageHash!==void 0)K.uint32(98).string($.imageHash);if($.isAvatarSticker!==void 0)K.uint32(104).bool($.isAvatarSticker);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=I4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.fileEncSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.mediaKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.mimetype=Q.string();continue}case 5:{if(Z!==40)break;J.height=Q.uint32();continue}case 6:{if(Z!==48)break;J.width=Q.uint32();continue}case 7:{if(Z!==58)break;J.directPath=Q.string();continue}case 8:{if(Z!==64)break;J.fileLength=Q.uint64Number();continue}case 9:{if(Z!==72)break;J.isFavorite=Q.bool();continue}case 10:{if(Z!==80)break;J.deviceIdHint=Q.uint32();continue}case 11:{if(Z!==88)break;J.isLottie=Q.bool();continue}case 12:{if(Z!==98)break;J.imageHash=Q.string();continue}case 13:{if(Z!==104)break;J.isAvatarSticker=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return R$.fromPartial($??{})},fromPartial($){let K=I4();return K.url=$.url??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mimetype=$.mimetype??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.directPath=$.directPath??void 0,K.fileLength=$.fileLength??void 0,K.isFavorite=$.isFavorite??void 0,K.deviceIdHint=$.deviceIdHint??void 0,K.isLottie=$.isLottie??void 0,K.imageHash=$.imageHash??void 0,K.isAvatarSticker=$.isAvatarSticker??void 0,K}};function S4(){return{}}var t9={encode($,K=new H){if($.isDeactivated!==void 0)K.uint32(8).bool($.isDeactivated);if($.isAutoRenewing!==void 0)K.uint32(16).bool($.isAutoRenewing);if($.expirationDate!==void 0)K.uint32(24).int64($.expirationDate);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=S4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isDeactivated=Q.bool();continue}case 2:{if(Z!==16)break;J.isAutoRenewing=Q.bool();continue}case 3:{if(Z!==24)break;J.expirationDate=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t9.fromPartial($??{})},fromPartial($){let K=S4();return K.isDeactivated=$.isDeactivated??void 0,K.isAutoRenewing=$.isAutoRenewing??void 0,K.expirationDate=$.expirationDate??void 0,K}};function v4(){return{}}var r9={encode($,K=new H){if($.subscriptions!==void 0&&$.subscriptions.length!==0)for(let Q of $.subscriptions)s9.encode(Q,K.uint32(10).fork()).join();if($.paidFeature!==void 0&&$.paidFeature.length!==0)for(let Q of $.paidFeature)a9.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=v4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.subscriptions===void 0)J.subscriptions=[];let Y=s9.decode(Q,Q.uint32());if(Y!==void 0)J.subscriptions.push(Y);continue}case 2:{if(Z!==18)break;if(J.paidFeature===void 0)J.paidFeature=[];let Y=a9.decode(Q,Q.uint32());if(Y!==void 0)J.paidFeature.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r9.fromPartial($??{})},fromPartial($){let K=v4();return K.subscriptions=$.subscriptions?.map((Q)=>s9.fromPartial(Q))||void 0,K.paidFeature=$.paidFeature?.map((Q)=>a9.fromPartial(Q))||void 0,K}};function T4(){return{}}var a9={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.enabled!==void 0)K.uint32(16).bool($.enabled);if($.limit!==void 0)K.uint32(24).int32($.limit);if($.expirationTime!==void 0)K.uint32(32).int64($.expirationTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=T4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==16)break;J.enabled=Q.bool();continue}case 3:{if(Z!==24)break;J.limit=Q.int32();continue}case 4:{if(Z!==32)break;J.expirationTime=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a9.fromPartial($??{})},fromPartial($){let K=T4();return K.name=$.name??void 0,K.enabled=$.enabled??void 0,K.limit=$.limit??void 0,K.expirationTime=$.expirationTime??void 0,K}};function y4(){return{}}var s9={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.tier!==void 0)K.uint32(16).int32($.tier);if($.status!==void 0)K.uint32(26).string($.status);if($.startTime!==void 0)K.uint32(32).int64($.startTime);if($.endTime!==void 0)K.uint32(40).int64($.endTime);if($.isPlatformChanged!==void 0)K.uint32(48).bool($.isPlatformChanged);if($.source!==void 0)K.uint32(58).string($.source);if($.creationTime!==void 0)K.uint32(64).int64($.creationTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=y4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==16)break;J.tier=Q.int32();continue}case 3:{if(Z!==26)break;J.status=Q.string();continue}case 4:{if(Z!==32)break;J.startTime=Q.int64Number();continue}case 5:{if(Z!==40)break;J.endTime=Q.int64Number();continue}case 6:{if(Z!==48)break;J.isPlatformChanged=Q.bool();continue}case 7:{if(Z!==58)break;J.source=Q.string();continue}case 8:{if(Z!==64)break;J.creationTime=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return s9.fromPartial($??{})},fromPartial($){let K=y4();return K.id=$.id??void 0,K.tier=$.tier??void 0,K.status=$.status??void 0,K.startTime=$.startTime??void 0,K.endTime=$.endTime??void 0,K.isPlatformChanged=$.isPlatformChanged??void 0,K.source=$.source??void 0,K.creationTime=$.creationTime??void 0,K}};function f4(){return{}}var e9={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.timestamp!==void 0)K.uint32(16).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=f4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e9.fromPartial($??{})},fromPartial($){let K=f4();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.timestamp=$.timestamp??void 0,K}};function _4(){return{}}var Z0={encode($,K=new H){if($.lastMessageTimestamp!==void 0)K.uint32(8).int64($.lastMessageTimestamp);if($.lastSystemMessageTimestamp!==void 0)K.uint32(16).int64($.lastSystemMessageTimestamp);if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)e9.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.lastMessageTimestamp=Q.int64Number();continue}case 2:{if(Z!==16)break;J.lastSystemMessageTimestamp=Q.int64Number();continue}case 3:{if(Z!==26)break;if(J.messages===void 0)J.messages=[];let Y=e9.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Z0.fromPartial($??{})},fromPartial($){let K=_4();return K.lastMessageTimestamp=$.lastMessageTimestamp??void 0,K.lastSystemMessageTimestamp=$.lastSystemMessageTimestamp??void 0,K.messages=$.messages?.map((Q)=>e9.fromPartial(Q))||void 0,K}};function h4(){return{}}var $Y={encode($,K=new H){if($.pinned!==void 0)K.uint32(8).bool($.pinned);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=h4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pinned=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $Y.fromPartial($??{})},fromPartial($){let K=h4();return K.pinned=$.pinned??void 0,K}};function l4(){return{}}var KY={encode($,K=new H){if($.isTwentyFourHourFormatEnabled!==void 0)K.uint32(8).bool($.isTwentyFourHourFormatEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=l4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isTwentyFourHourFormatEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KY.fromPartial($??{})},fromPartial($){let K=l4();return K.isTwentyFourHourFormatEnabled=$.isTwentyFourHourFormatEnabled??void 0,K}};function p4(){return{}}var QY={encode($,K=new H){if($.definition!==void 0)K.uint32(10).bytes($.definition);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=p4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.definition=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QY.fromPartial($??{})},fromPartial($){let K=p4();return K.definition=$.definition??void 0,K}};function u4(){return{}}var ZY={encode($,K=new H){if($.unarchiveChats!==void 0)K.uint32(8).bool($.unarchiveChats);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=u4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.unarchiveChats=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZY.fromPartial($??{})},fromPartial($){let K=u4();return K.unarchiveChats=$.unarchiveChats??void 0,K}};function w4(){return{}}var JY={encode($,K=new H){if($.muted!==void 0)K.uint32(8).bool($.muted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=w4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.muted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JY.fromPartial($??{})},fromPartial($){let K=w4();return K.muted=$.muted??void 0,K}};function n4(){return{}}var XY={encode($,K=new H){if($.chatStartMode!==void 0)K.uint32(8).int32($.chatStartMode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=n4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.chatStartMode=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XY.fromPartial($??{})},fromPartial($){let K=n4();return K.chatStartMode=$.chatStartMode??void 0,K}};function d4(){return{}}var qY={encode($,K=new H){if($.secrets!==void 0&&$.secrets.length!==0)for(let Q of $.secrets)YY.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=d4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.secrets===void 0)J.secrets=[];let Y=YY.decode(Q,Q.uint32());if(Y!==void 0)J.secrets.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qY.fromPartial($??{})},fromPartial($){let K=d4();return K.secrets=$.secrets?.map((Q)=>YY.fromPartial(Q))||void 0,K}};function j4(){return{}}var YY={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.rootSecret!==void 0)K.uint32(18).bytes($.rootSecret);if($.epoch!==void 0)K.uint32(24).int64($.epoch);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=j4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==18)break;J.rootSecret=Q.bytes();continue}case 3:{if(Z!==24)break;J.epoch=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YY.fromPartial($??{})},fromPartial($){let K=j4();return K.id=$.id??void 0,K.rootSecret=$.rootSecret??void 0,K.epoch=$.epoch??void 0,K}};function c4(){return{}}var HY={encode($,K=new H){if($.linkState!==void 0)K.uint32(16).int32($.linkState);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=c4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==16)break;J.linkState=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HY.fromPartial($??{})},fromPartial($){let K=c4();return K.linkState=$.linkState??void 0,K}};function o4(){return{}}var zY={encode($,K=new H){if($.identifier!==void 0)K.uint32(10).string($.identifier);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=o4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.identifier=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zY.fromPartial($??{})},fromPartial($){let K=o4();return K.identifier=$.identifier??void 0,K}};function b4(){return{}}var VY={encode($,K=new H){if($.blob!==void 0)K.uint32(10).bytes($.blob);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=b4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.blob=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VY.fromPartial($??{})},fromPartial($){let K=b4();return K.blob=$.blob??void 0,K}};function i4(){return{}}var S0={encode($,K=new H){if($.operation!==void 0)K.uint32(8).int32($.operation);if($.record!==void 0)v0.encode($.record,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=i4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.operation=Q.int32();continue}case 2:{if(Z!==18)break;J.record=v0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return S0.fromPartial($??{})},fromPartial($){let K=i4();return K.operation=$.operation??void 0,K.record=$.record!==void 0&&$.record!==null?v0.fromPartial($.record):void 0,K}};function m4(){return{}}var aY={encode($,K=new H){if($.mutations!==void 0&&$.mutations.length!==0)for(let Q of $.mutations)S0.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=m4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.mutations===void 0)J.mutations=[];let Y=S0.decode(Q,Q.uint32());if(Y!==void 0)J.mutations.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aY.fromPartial($??{})},fromPartial($){let K=m4();return K.mutations=$.mutations?.map((Q)=>S0.fromPartial(Q))||void 0,K}};function g4(){return{}}var sY={encode($,K=new H){if($.version!==void 0)R0.encode($.version,K.uint32(10).fork()).join();if($.mutations!==void 0&&$.mutations.length!==0)for(let Q of $.mutations)S0.encode(Q,K.uint32(18).fork()).join();if($.externalMutations!==void 0)W$.encode($.externalMutations,K.uint32(26).fork()).join();if($.snapshotMac!==void 0)K.uint32(34).bytes($.snapshotMac);if($.patchMac!==void 0)K.uint32(42).bytes($.patchMac);if($.keyId!==void 0)P0.encode($.keyId,K.uint32(50).fork()).join();if($.exitCode!==void 0)M$.encode($.exitCode,K.uint32(58).fork()).join();if($.deviceIndex!==void 0)K.uint32(64).uint32($.deviceIndex);if($.clientDebugData!==void 0)K.uint32(74).bytes($.clientDebugData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=g4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.version=R0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.mutations===void 0)J.mutations=[];let Y=S0.decode(Q,Q.uint32());if(Y!==void 0)J.mutations.push(Y);continue}case 3:{if(Z!==26)break;J.externalMutations=W$.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.snapshotMac=Q.bytes();continue}case 5:{if(Z!==42)break;J.patchMac=Q.bytes();continue}case 6:{if(Z!==50)break;J.keyId=P0.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.exitCode=M$.decode(Q,Q.uint32());continue}case 8:{if(Z!==64)break;J.deviceIndex=Q.uint32();continue}case 9:{if(Z!==74)break;J.clientDebugData=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sY.fromPartial($??{})},fromPartial($){let K=g4();return K.version=$.version!==void 0&&$.version!==null?R0.fromPartial($.version):void 0,K.mutations=$.mutations?.map((Q)=>S0.fromPartial(Q))||void 0,K.externalMutations=$.externalMutations!==void 0&&$.externalMutations!==null?W$.fromPartial($.externalMutations):void 0,K.snapshotMac=$.snapshotMac??void 0,K.patchMac=$.patchMac??void 0,K.keyId=$.keyId!==void 0&&$.keyId!==null?P0.fromPartial($.keyId):void 0,K.exitCode=$.exitCode!==void 0&&$.exitCode!==null?M$.fromPartial($.exitCode):void 0,K.deviceIndex=$.deviceIndex??void 0,K.clientDebugData=$.clientDebugData??void 0,K}};function t4(){return{}}var GY={encode($,K=new H){if($.value!==void 0)I$.encode($.value,K.uint32(10).fork()).join();if($.keyId!==void 0)K.uint32(18).bytes($.keyId);if($.mac!==void 0)K.uint32(26).bytes($.mac);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=t4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.value=I$.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.keyId=Q.bytes();continue}case 3:{if(Z!==26)break;J.mac=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GY.fromPartial($??{})},fromPartial($){let K=t4();return K.value=$.value!==void 0&&$.value!==null?I$.fromPartial($.value):void 0,K.keyId=$.keyId??void 0,K.mac=$.mac??void 0,K}};function r4(){return{}}var v0={encode($,K=new H){if($.index!==void 0)VY.encode($.index,K.uint32(10).fork()).join();if($.value!==void 0)UY.encode($.value,K.uint32(18).fork()).join();if($.keyId!==void 0)P0.encode($.keyId,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=r4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.index=VY.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.value=UY.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.keyId=P0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return v0.fromPartial($??{})},fromPartial($){let K=r4();return K.index=$.index!==void 0&&$.index!==null?VY.fromPartial($.index):void 0,K.value=$.value!==void 0&&$.value!==null?UY.fromPartial($.value):void 0,K.keyId=$.keyId!==void 0&&$.keyId!==null?P0.fromPartial($.keyId):void 0,K}};function a4(){return{}}var eY={encode($,K=new H){if($.version!==void 0)R0.encode($.version,K.uint32(10).fork()).join();if($.records!==void 0&&$.records.length!==0)for(let Q of $.records)v0.encode(Q,K.uint32(18).fork()).join();if($.mac!==void 0)K.uint32(26).bytes($.mac);if($.keyId!==void 0)P0.encode($.keyId,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=a4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.version=R0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.records===void 0)J.records=[];let Y=v0.decode(Q,Q.uint32());if(Y!==void 0)J.records.push(Y);continue}case 3:{if(Z!==26)break;J.mac=Q.bytes();continue}case 4:{if(Z!==34)break;J.keyId=P0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eY.fromPartial($??{})},fromPartial($){let K=a4();return K.version=$.version!==void 0&&$.version!==null?R0.fromPartial($.version):void 0,K.records=$.records?.map((Q)=>v0.fromPartial(Q))||void 0,K.mac=$.mac??void 0,K.keyId=$.keyId!==void 0&&$.keyId!==null?P0.fromPartial($.keyId):void 0,K}};function s4(){return{}}var VR={encode($,K=new H){if($.version!==void 0)R0.encode($.version,K.uint32(10).fork()).join();if($.collectionName!==void 0)K.uint32(18).string($.collectionName);if($.mutationRecords!==void 0&&$.mutationRecords.length!==0)for(let Q of $.mutationRecords)GY.encode(Q,K.uint32(26).fork()).join();if($.collectionLthash!==void 0)K.uint32(34).bytes($.collectionLthash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=s4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.version=R0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.collectionName=Q.string();continue}case 3:{if(Z!==26)break;if(J.mutationRecords===void 0)J.mutationRecords=[];let Y=GY.decode(Q,Q.uint32());if(Y!==void 0)J.mutationRecords.push(Y);continue}case 4:{if(Z!==34)break;J.collectionLthash=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VR.fromPartial($??{})},fromPartial($){let K=s4();return K.version=$.version!==void 0&&$.version!==null?R0.fromPartial($.version):void 0,K.collectionName=$.collectionName??void 0,K.mutationRecords=$.mutationRecords?.map((Q)=>GY.fromPartial(Q))||void 0,K.collectionLthash=$.collectionLthash??void 0,K}};function e4(){return{}}var UY={encode($,K=new H){if($.blob!==void 0)K.uint32(10).bytes($.blob);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=e4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.blob=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UY.fromPartial($??{})},fromPartial($){let K=e4();return K.blob=$.blob??void 0,K}};function $P(){return{}}var R0={encode($,K=new H){if($.version!==void 0)K.uint32(8).uint64($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$P();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.version=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return R0.fromPartial($??{})},fromPartial($){let K=$P();return K.version=$.version??void 0,K}};function KP(){return{}}var CY={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.tapUrl!==void 0)K.uint32(18).string($.tapUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.tapUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CY.fromPartial($??{})},fromPartial($){let K=KP();return K.title=$.title??void 0,K.tapUrl=$.tapUrl??void 0,K}};function QP(){return{}}var DY={encode($,K=new H){if($.index!==void 0)K.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)PY.encode($.quickReplyButton,K.uint32(10).fork()).join();if($.urlButton!==void 0)FY.encode($.urlButton,K.uint32(18).fork()).join();if($.callButton!==void 0)LY.encode($.callButton,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 4:{if(Z!==32)break;J.index=Q.uint32();continue}case 1:{if(Z!==10)break;J.quickReplyButton=PY.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.urlButton=FY.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.callButton=LY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DY.fromPartial($??{})},fromPartial($){let K=QP();return K.index=$.index??void 0,K.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?PY.fromPartial($.quickReplyButton):void 0,K.urlButton=$.urlButton!==void 0&&$.urlButton!==null?FY.fromPartial($.urlButton):void 0,K.callButton=$.callButton!==void 0&&$.callButton!==null?LY.fromPartial($.callButton):void 0,K}};function ZP(){return{}}var LY={encode($,K=new H){if($.displayText!==void 0)c.encode($.displayText,K.uint32(10).fork()).join();if($.phoneNumber!==void 0)c.encode($.phoneNumber,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=c.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.phoneNumber=c.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LY.fromPartial($??{})},fromPartial($){let K=ZP();return K.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,K.phoneNumber=$.phoneNumber!==void 0&&$.phoneNumber!==null?c.fromPartial($.phoneNumber):void 0,K}};function JP(){return{}}var PY={encode($,K=new H){if($.displayText!==void 0)c.encode($.displayText,K.uint32(10).fork()).join();if($.id!==void 0)K.uint32(18).string($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=c.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.id=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PY.fromPartial($??{})},fromPartial($){let K=JP();return K.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,K.id=$.id??void 0,K}};function XP(){return{}}var FY={encode($,K=new H){if($.displayText!==void 0)c.encode($.displayText,K.uint32(10).fork()).join();if($.url!==void 0)c.encode($.url,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=c.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.url=c.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FY.fromPartial($??{})},fromPartial($){let K=XP();return K.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,K.url=$.url!==void 0&&$.url!==null?c.fromPartial($.url):void 0,K}};function qP(){return{}}var xY={encode($,K=new H){if($.threadType!==void 0)K.uint32(8).int32($.threadType);if($.threadKey!==void 0)x.encode($.threadKey,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.threadType=Q.int32();continue}case 2:{if(Z!==18)break;J.threadKey=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xY.fromPartial($??{})},fromPartial($){let K=qP();return K.threadType=$.threadType??void 0,K.threadKey=$.threadKey!==void 0&&$.threadKey!==null?x.fromPartial($.threadKey):void 0,K}};function YP(){return{}}var kY={encode($,K=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)b.encode(Q,K.uint32(10).fork()).join();if($.parentMessage!==void 0)x.encode($.parentMessage,K.uint32(18).fork()).join();if($.associationType!==void 0)K.uint32(24).int32($.associationType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.messages===void 0)J.messages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 2:{if(Z!==18)break;J.parentMessage=x.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.associationType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kY.fromPartial($??{})},fromPartial($){let K=YP();return K.messages=$.messages?.map((Q)=>b.fromPartial(Q))||void 0,K.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?x.fromPartial($.parentMessage):void 0,K.associationType=$.associationType??void 0,K}};function HP(){return{}}var NY={encode($,K=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)K0.encode(Q,K.uint32(10).fork()).join();if($.parentMessage!==void 0)x.encode($.parentMessage,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.messages===void 0)J.messages=[];let Y=K0.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 2:{if(Z!==18)break;J.parentMessage=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NY.fromPartial($??{})},fromPartial($){let K=HP();return K.messages=$.messages?.map((Q)=>K0.fromPartial(Q))||void 0,K.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?x.fromPartial($.parentMessage):void 0,K}};function zP(){return{}}var B$={encode($,K=new H){if($.urlTrackingMapElements!==void 0&&$.urlTrackingMapElements.length!==0)for(let Q of $.urlTrackingMapElements)RY.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.urlTrackingMapElements===void 0)J.urlTrackingMapElements=[];let Y=RY.decode(Q,Q.uint32());if(Y!==void 0)J.urlTrackingMapElements.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return B$.fromPartial($??{})},fromPartial($){let K=zP();return K.urlTrackingMapElements=$.urlTrackingMapElements?.map((Q)=>RY.fromPartial(Q))||void 0,K}};function VP(){return{}}var RY={encode($,K=new H){if($.originalUrl!==void 0)K.uint32(10).string($.originalUrl);if($.unconsentedUsersUrl!==void 0)K.uint32(18).string($.unconsentedUsersUrl);if($.consentedUsersUrl!==void 0)K.uint32(26).string($.consentedUsersUrl);if($.cardIndex!==void 0)K.uint32(32).uint32($.cardIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.originalUrl=Q.string();continue}case 2:{if(Z!==18)break;J.unconsentedUsersUrl=Q.string();continue}case 3:{if(Z!==26)break;J.consentedUsersUrl=Q.string();continue}case 4:{if(Z!==32)break;J.cardIndex=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RY.fromPartial($??{})},fromPartial($){let K=VP();return K.originalUrl=$.originalUrl??void 0,K.unconsentedUsersUrl=$.unconsentedUsersUrl??void 0,K.consentedUsersUrl=$.consentedUsersUrl??void 0,K.cardIndex=$.cardIndex??void 0,K}};function GP(){return{}}var BY={encode($,K=new H){if($.encoding!==void 0)K.uint32(8).int32($.encoding);if($.transformer!==void 0)K.uint32(16).int32($.transformer);if($.transformerArg!==void 0&&$.transformerArg.length!==0)for(let Q of $.transformerArg)OY.encode(Q,K.uint32(26).fork()).join();if($.transformedData!==void 0)K.uint32(34).bytes($.transformedData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.encoding=Q.int32();continue}case 2:{if(Z!==16)break;J.transformer=Q.int32();continue}case 3:{if(Z!==26)break;if(J.transformerArg===void 0)J.transformerArg=[];let Y=OY.decode(Q,Q.uint32());if(Y!==void 0)J.transformerArg.push(Y);continue}case 4:{if(Z!==34)break;J.transformedData=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BY.fromPartial($??{})},fromPartial($){let K=GP();return K.encoding=$.encoding??void 0,K.transformer=$.transformer??void 0,K.transformerArg=$.transformerArg?.map((Q)=>OY.fromPartial(Q))||void 0,K.transformedData=$.transformedData??void 0,K}};function UP(){return{}}var OY={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.value!==void 0)AY.encode($.value,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.value=AY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OY.fromPartial($??{})},fromPartial($){let K=UP();return K.key=$.key??void 0,K.value=$.value!==void 0&&$.value!==null?AY.fromPartial($.value):void 0,K}};function CP(){return{}}var AY={encode($,K=new H){if($.asBlob!==void 0)K.uint32(10).bytes($.asBlob);if($.asUnsignedInteger!==void 0)K.uint32(16).uint32($.asUnsignedInteger);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.asBlob=Q.bytes();continue}case 2:{if(Z!==16)break;J.asUnsignedInteger=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AY.fromPartial($??{})},fromPartial($){let K=CP();return K.asBlob=$.asBlob??void 0,K.asUnsignedInteger=$.asUnsignedInteger??void 0,K}};function DP(){return{}}var EY={encode($,K=new H){if($.userJid!==void 0)K.uint32(10).string($.userJid);if($.receiptTimestamp!==void 0)K.uint32(16).int64($.receiptTimestamp);if($.readTimestamp!==void 0)K.uint32(24).int64($.readTimestamp);if($.playedTimestamp!==void 0)K.uint32(32).int64($.playedTimestamp);if($.pendingDeviceJid!==void 0&&$.pendingDeviceJid.length!==0)for(let Q of $.pendingDeviceJid)K.uint32(42).string(Q);if($.deliveredDeviceJid!==void 0&&$.deliveredDeviceJid.length!==0)for(let Q of $.deliveredDeviceJid)K.uint32(50).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.userJid=Q.string();continue}case 2:{if(Z!==16)break;J.receiptTimestamp=Q.int64Number();continue}case 3:{if(Z!==24)break;J.readTimestamp=Q.int64Number();continue}case 4:{if(Z!==32)break;J.playedTimestamp=Q.int64Number();continue}case 5:{if(Z!==42)break;if(J.pendingDeviceJid===void 0)J.pendingDeviceJid=[];let Y=Q.string();if(Y!==void 0)J.pendingDeviceJid.push(Y);continue}case 6:{if(Z!==50)break;if(J.deliveredDeviceJid===void 0)J.deliveredDeviceJid=[];let Y=Q.string();if(Y!==void 0)J.deliveredDeviceJid.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EY.fromPartial($??{})},fromPartial($){let K=DP();return K.userJid=$.userJid??void 0,K.receiptTimestamp=$.receiptTimestamp??void 0,K.readTimestamp=$.readTimestamp??void 0,K.playedTimestamp=$.playedTimestamp??void 0,K.pendingDeviceJid=$.pendingDeviceJid?.map((Q)=>Q)||void 0,K.deliveredDeviceJid=$.deliveredDeviceJid?.map((Q)=>Q)||void 0,K}};function LP(){return{}}var T0={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.signature!==void 0)K.uint32(18).bytes($.signature);if($.serverSignature!==void 0)K.uint32(26).bytes($.serverSignature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.signature=Q.bytes();continue}case 3:{if(Z!==26)break;J.serverSignature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return T0.fromPartial($??{})},fromPartial($){let K=LP();return K.details=$.details??void 0,K.signature=$.signature??void 0,K.serverSignature=$.serverSignature??void 0,K}};function PP(){return{}}var $6={encode($,K=new H){if($.serial!==void 0)K.uint32(8).uint64($.serial);if($.issuer!==void 0)K.uint32(18).string($.issuer);if($.verifiedName!==void 0)K.uint32(34).string($.verifiedName);if($.localizedNames!==void 0&&$.localizedNames.length!==0)for(let Q of $.localizedNames)QJ.encode(Q,K.uint32(66).fork()).join();if($.issueTime!==void 0)K.uint32(80).uint64($.issueTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serial=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.issuer=Q.string();continue}case 4:{if(Z!==34)break;J.verifiedName=Q.string();continue}case 8:{if(Z!==66)break;if(J.localizedNames===void 0)J.localizedNames=[];let Y=QJ.decode(Q,Q.uint32());if(Y!==void 0)J.localizedNames.push(Y);continue}case 10:{if(Z!==80)break;J.issueTime=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $6.fromPartial($??{})},fromPartial($){let K=PP();return K.serial=$.serial??void 0,K.issuer=$.issuer??void 0,K.verifiedName=$.verifiedName??void 0,K.localizedNames=$.localizedNames?.map((Q)=>QJ.fromPartial(Q))||void 0,K.issueTime=$.issueTime??void 0,K}};function FP(){return{}}var MY={encode($,K=new H){if($.vdId!==void 0)K.uint32(10).bytes($.vdId);if($.vdPublicKey!==void 0)K.uint32(18).bytes($.vdPublicKey);if($.vdEpochStoragePublicKey!==void 0)K.uint32(26).bytes($.vdEpochStoragePublicKey);if($.vdEpochStoragePublicKeySig!==void 0)K.uint32(34).bytes($.vdEpochStoragePublicKeySig);if($.ocmfRotationToken!==void 0)K.uint32(42).bytes($.ocmfRotationToken);if($.deviceEpochHmac!==void 0)K.uint32(50).bytes($.deviceEpochHmac);if($.encryptedSecretValues!==void 0)EZ.encode($.encryptedSecretValues,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.vdId=Q.bytes();continue}case 2:{if(Z!==18)break;J.vdPublicKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.vdEpochStoragePublicKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.vdEpochStoragePublicKeySig=Q.bytes();continue}case 5:{if(Z!==42)break;J.ocmfRotationToken=Q.bytes();continue}case 6:{if(Z!==50)break;J.deviceEpochHmac=Q.bytes();continue}case 7:{if(Z!==58)break;J.encryptedSecretValues=EZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MY.fromPartial($??{})},fromPartial($){let K=FP();return K.vdId=$.vdId??void 0,K.vdPublicKey=$.vdPublicKey??void 0,K.vdEpochStoragePublicKey=$.vdEpochStoragePublicKey??void 0,K.vdEpochStoragePublicKeySig=$.vdEpochStoragePublicKeySig??void 0,K.ocmfRotationToken=$.ocmfRotationToken??void 0,K.deviceEpochHmac=$.deviceEpochHmac??void 0,K.encryptedSecretValues=$.encryptedSecretValues!==void 0&&$.encryptedSecretValues!==null?EZ.fromPartial($.encryptedSecretValues):void 0,K}};function xP(){return{}}var U0={encode($,K=new H){if($.filename!==void 0)K.uint32(10).string($.filename);if($.opacity!==void 0)K.uint32(16).uint32($.opacity);if($.isGenAi!==void 0)K.uint32(24).bool($.isGenAi);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.filename=Q.string();continue}case 2:{if(Z!==16)break;J.opacity=Q.uint32();continue}case 3:{if(Z!==24)break;J.isGenAi=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return U0.fromPartial($??{})},fromPartial($){let K=xP();return K.filename=$.filename??void 0,K.opacity=$.opacity??void 0,K.isGenAi=$.isGenAi??void 0,K}};function kP(){return{}}var GR={encode($,K=new H){if($.labelsDisplay!==void 0)K.uint32(8).int32($.labelsDisplay);if($.voipIndividualOutgoing!==void 0)K.uint32(16).int32($.voipIndividualOutgoing);if($.groupsV3!==void 0)K.uint32(24).int32($.groupsV3);if($.groupsV3Create!==void 0)K.uint32(32).int32($.groupsV3Create);if($.changeNumberV2!==void 0)K.uint32(40).int32($.changeNumberV2);if($.queryStatusV3Thumbnail!==void 0)K.uint32(48).int32($.queryStatusV3Thumbnail);if($.liveLocations!==void 0)K.uint32(56).int32($.liveLocations);if($.queryVname!==void 0)K.uint32(64).int32($.queryVname);if($.voipIndividualIncoming!==void 0)K.uint32(72).int32($.voipIndividualIncoming);if($.quickRepliesQuery!==void 0)K.uint32(80).int32($.quickRepliesQuery);if($.payments!==void 0)K.uint32(88).int32($.payments);if($.stickerPackQuery!==void 0)K.uint32(96).int32($.stickerPackQuery);if($.liveLocationsFinal!==void 0)K.uint32(104).int32($.liveLocationsFinal);if($.labelsEdit!==void 0)K.uint32(112).int32($.labelsEdit);if($.mediaUpload!==void 0)K.uint32(120).int32($.mediaUpload);if($.mediaUploadRichQuickReplies!==void 0)K.uint32(144).int32($.mediaUploadRichQuickReplies);if($.vnameV2!==void 0)K.uint32(152).int32($.vnameV2);if($.videoPlaybackUrl!==void 0)K.uint32(160).int32($.videoPlaybackUrl);if($.statusRanking!==void 0)K.uint32(168).int32($.statusRanking);if($.voipIndividualVideo!==void 0)K.uint32(176).int32($.voipIndividualVideo);if($.thirdPartyStickers!==void 0)K.uint32(184).int32($.thirdPartyStickers);if($.frequentlyForwardedSetting!==void 0)K.uint32(192).int32($.frequentlyForwardedSetting);if($.groupsV4JoinPermission!==void 0)K.uint32(200).int32($.groupsV4JoinPermission);if($.recentStickers!==void 0)K.uint32(208).int32($.recentStickers);if($.catalog!==void 0)K.uint32(216).int32($.catalog);if($.starredStickers!==void 0)K.uint32(224).int32($.starredStickers);if($.voipGroupCall!==void 0)K.uint32(232).int32($.voipGroupCall);if($.templateMessage!==void 0)K.uint32(240).int32($.templateMessage);if($.templateMessageInteractivity!==void 0)K.uint32(248).int32($.templateMessageInteractivity);if($.ephemeralMessages!==void 0)K.uint32(256).int32($.ephemeralMessages);if($.e2ENotificationSync!==void 0)K.uint32(264).int32($.e2ENotificationSync);if($.recentStickersV2!==void 0)K.uint32(272).int32($.recentStickersV2);if($.recentStickersV3!==void 0)K.uint32(288).int32($.recentStickersV3);if($.userNotice!==void 0)K.uint32(296).int32($.userNotice);if($.support!==void 0)K.uint32(312).int32($.support);if($.groupUiiCleanup!==void 0)K.uint32(320).int32($.groupUiiCleanup);if($.groupDogfoodingInternalOnly!==void 0)K.uint32(328).int32($.groupDogfoodingInternalOnly);if($.settingsSync!==void 0)K.uint32(336).int32($.settingsSync);if($.archiveV2!==void 0)K.uint32(344).int32($.archiveV2);if($.ephemeralAllowGroupMembers!==void 0)K.uint32(352).int32($.ephemeralAllowGroupMembers);if($.ephemeral24HDuration!==void 0)K.uint32(360).int32($.ephemeral24HDuration);if($.mdForceUpgrade!==void 0)K.uint32(368).int32($.mdForceUpgrade);if($.disappearingMode!==void 0)K.uint32(376).int32($.disappearingMode);if($.externalMdOptInAvailable!==void 0)K.uint32(384).int32($.externalMdOptInAvailable);if($.noDeleteMessageTimeLimit!==void 0)K.uint32(392).int32($.noDeleteMessageTimeLimit);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.labelsDisplay=Q.int32();continue}case 2:{if(Z!==16)break;J.voipIndividualOutgoing=Q.int32();continue}case 3:{if(Z!==24)break;J.groupsV3=Q.int32();continue}case 4:{if(Z!==32)break;J.groupsV3Create=Q.int32();continue}case 5:{if(Z!==40)break;J.changeNumberV2=Q.int32();continue}case 6:{if(Z!==48)break;J.queryStatusV3Thumbnail=Q.int32();continue}case 7:{if(Z!==56)break;J.liveLocations=Q.int32();continue}case 8:{if(Z!==64)break;J.queryVname=Q.int32();continue}case 9:{if(Z!==72)break;J.voipIndividualIncoming=Q.int32();continue}case 10:{if(Z!==80)break;J.quickRepliesQuery=Q.int32();continue}case 11:{if(Z!==88)break;J.payments=Q.int32();continue}case 12:{if(Z!==96)break;J.stickerPackQuery=Q.int32();continue}case 13:{if(Z!==104)break;J.liveLocationsFinal=Q.int32();continue}case 14:{if(Z!==112)break;J.labelsEdit=Q.int32();continue}case 15:{if(Z!==120)break;J.mediaUpload=Q.int32();continue}case 18:{if(Z!==144)break;J.mediaUploadRichQuickReplies=Q.int32();continue}case 19:{if(Z!==152)break;J.vnameV2=Q.int32();continue}case 20:{if(Z!==160)break;J.videoPlaybackUrl=Q.int32();continue}case 21:{if(Z!==168)break;J.statusRanking=Q.int32();continue}case 22:{if(Z!==176)break;J.voipIndividualVideo=Q.int32();continue}case 23:{if(Z!==184)break;J.thirdPartyStickers=Q.int32();continue}case 24:{if(Z!==192)break;J.frequentlyForwardedSetting=Q.int32();continue}case 25:{if(Z!==200)break;J.groupsV4JoinPermission=Q.int32();continue}case 26:{if(Z!==208)break;J.recentStickers=Q.int32();continue}case 27:{if(Z!==216)break;J.catalog=Q.int32();continue}case 28:{if(Z!==224)break;J.starredStickers=Q.int32();continue}case 29:{if(Z!==232)break;J.voipGroupCall=Q.int32();continue}case 30:{if(Z!==240)break;J.templateMessage=Q.int32();continue}case 31:{if(Z!==248)break;J.templateMessageInteractivity=Q.int32();continue}case 32:{if(Z!==256)break;J.ephemeralMessages=Q.int32();continue}case 33:{if(Z!==264)break;J.e2ENotificationSync=Q.int32();continue}case 34:{if(Z!==272)break;J.recentStickersV2=Q.int32();continue}case 36:{if(Z!==288)break;J.recentStickersV3=Q.int32();continue}case 37:{if(Z!==296)break;J.userNotice=Q.int32();continue}case 39:{if(Z!==312)break;J.support=Q.int32();continue}case 40:{if(Z!==320)break;J.groupUiiCleanup=Q.int32();continue}case 41:{if(Z!==328)break;J.groupDogfoodingInternalOnly=Q.int32();continue}case 42:{if(Z!==336)break;J.settingsSync=Q.int32();continue}case 43:{if(Z!==344)break;J.archiveV2=Q.int32();continue}case 44:{if(Z!==352)break;J.ephemeralAllowGroupMembers=Q.int32();continue}case 45:{if(Z!==360)break;J.ephemeral24HDuration=Q.int32();continue}case 46:{if(Z!==368)break;J.mdForceUpgrade=Q.int32();continue}case 47:{if(Z!==376)break;J.disappearingMode=Q.int32();continue}case 48:{if(Z!==384)break;J.externalMdOptInAvailable=Q.int32();continue}case 49:{if(Z!==392)break;J.noDeleteMessageTimeLimit=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GR.fromPartial($??{})},fromPartial($){let K=kP();return K.labelsDisplay=$.labelsDisplay??void 0,K.voipIndividualOutgoing=$.voipIndividualOutgoing??void 0,K.groupsV3=$.groupsV3??void 0,K.groupsV3Create=$.groupsV3Create??void 0,K.changeNumberV2=$.changeNumberV2??void 0,K.queryStatusV3Thumbnail=$.queryStatusV3Thumbnail??void 0,K.liveLocations=$.liveLocations??void 0,K.queryVname=$.queryVname??void 0,K.voipIndividualIncoming=$.voipIndividualIncoming??void 0,K.quickRepliesQuery=$.quickRepliesQuery??void 0,K.payments=$.payments??void 0,K.stickerPackQuery=$.stickerPackQuery??void 0,K.liveLocationsFinal=$.liveLocationsFinal??void 0,K.labelsEdit=$.labelsEdit??void 0,K.mediaUpload=$.mediaUpload??void 0,K.mediaUploadRichQuickReplies=$.mediaUploadRichQuickReplies??void 0,K.vnameV2=$.vnameV2??void 0,K.videoPlaybackUrl=$.videoPlaybackUrl??void 0,K.statusRanking=$.statusRanking??void 0,K.voipIndividualVideo=$.voipIndividualVideo??void 0,K.thirdPartyStickers=$.thirdPartyStickers??void 0,K.frequentlyForwardedSetting=$.frequentlyForwardedSetting??void 0,K.groupsV4JoinPermission=$.groupsV4JoinPermission??void 0,K.recentStickers=$.recentStickers??void 0,K.catalog=$.catalog??void 0,K.starredStickers=$.starredStickers??void 0,K.voipGroupCall=$.voipGroupCall??void 0,K.templateMessage=$.templateMessage??void 0,K.templateMessageInteractivity=$.templateMessageInteractivity??void 0,K.ephemeralMessages=$.ephemeralMessages??void 0,K.e2ENotificationSync=$.e2ENotificationSync??void 0,K.recentStickersV2=$.recentStickersV2??void 0,K.recentStickersV3=$.recentStickersV3??void 0,K.userNotice=$.userNotice??void 0,K.support=$.support??void 0,K.groupUiiCleanup=$.groupUiiCleanup??void 0,K.groupDogfoodingInternalOnly=$.groupDogfoodingInternalOnly??void 0,K.settingsSync=$.settingsSync??void 0,K.archiveV2=$.archiveV2??void 0,K.ephemeralAllowGroupMembers=$.ephemeralAllowGroupMembers??void 0,K.ephemeral24HDuration=$.ephemeral24HDuration??void 0,K.mdForceUpgrade=$.mdForceUpgrade??void 0,K.disappearingMode=$.disappearingMode??void 0,K.externalMdOptInAvailable=$.externalMdOptInAvailable??void 0,K.noDeleteMessageTimeLimit=$.noDeleteMessageTimeLimit??void 0,K}};function NP(){return{}}var b={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();if($.messageTimestamp!==void 0)K.uint32(24).uint64($.messageTimestamp);if($.status!==void 0)K.uint32(32).int32($.status);if($.participant!==void 0)K.uint32(42).string($.participant);if($.messageC2STimestamp!==void 0)K.uint32(48).uint64($.messageC2STimestamp);if($.ignore!==void 0)K.uint32(128).bool($.ignore);if($.starred!==void 0)K.uint32(136).bool($.starred);if($.broadcast!==void 0)K.uint32(144).bool($.broadcast);if($.pushName!==void 0)K.uint32(154).string($.pushName);if($.mediaCiphertextSha256!==void 0)K.uint32(162).bytes($.mediaCiphertextSha256);if($.multicast!==void 0)K.uint32(168).bool($.multicast);if($.urlText!==void 0)K.uint32(176).bool($.urlText);if($.urlNumber!==void 0)K.uint32(184).bool($.urlNumber);if($.messageStubType!==void 0)K.uint32(192).int32($.messageStubType);if($.clearMedia!==void 0)K.uint32(200).bool($.clearMedia);if($.messageStubParameters!==void 0&&$.messageStubParameters.length!==0)for(let Q of $.messageStubParameters)K.uint32(210).string(Q);if($.duration!==void 0)K.uint32(216).uint32($.duration);if($.labels!==void 0&&$.labels.length!==0)for(let Q of $.labels)K.uint32(226).string(Q);if($.paymentInfo!==void 0)b0.encode($.paymentInfo,K.uint32(234).fork()).join();if($.finalLiveLocation!==void 0)V$.encode($.finalLiveLocation,K.uint32(242).fork()).join();if($.quotedPaymentInfo!==void 0)b0.encode($.quotedPaymentInfo,K.uint32(250).fork()).join();if($.ephemeralStartTimestamp!==void 0)K.uint32(256).uint64($.ephemeralStartTimestamp);if($.ephemeralDuration!==void 0)K.uint32(264).uint32($.ephemeralDuration);if($.ephemeralOffToOn!==void 0)K.uint32(272).bool($.ephemeralOffToOn);if($.ephemeralOutOfSync!==void 0)K.uint32(280).bool($.ephemeralOutOfSync);if($.bizPrivacyStatus!==void 0)K.uint32(288).int32($.bizPrivacyStatus);if($.verifiedBizName!==void 0)K.uint32(298).string($.verifiedBizName);if($.mediaData!==void 0)w0.encode($.mediaData,K.uint32(306).fork()).join();if($.photoChange!==void 0)r8.encode($.photoChange,K.uint32(314).fork()).join();if($.userReceipt!==void 0&&$.userReceipt.length!==0)for(let Q of $.userReceipt)EY.encode(Q,K.uint32(322).fork()).join();if($.reactions!==void 0&&$.reactions.length!==0)for(let Q of $.reactions)zq.encode(Q,K.uint32(330).fork()).join();if($.quotedStickerData!==void 0)w0.encode($.quotedStickerData,K.uint32(338).fork()).join();if($.futureproofData!==void 0)K.uint32(346).bytes($.futureproofData);if($.statusPsa!==void 0)Tq.encode($.statusPsa,K.uint32(354).fork()).join();if($.pollUpdates!==void 0&&$.pollUpdates.length!==0)for(let Q of $.pollUpdates)Qq.encode(Q,K.uint32(362).fork()).join();if($.pollAdditionalMetadata!==void 0)e8.encode($.pollAdditionalMetadata,K.uint32(370).fork()).join();if($.agentId!==void 0)K.uint32(378).string($.agentId);if($.statusAlreadyViewed!==void 0)K.uint32(384).bool($.statusAlreadyViewed);if($.messageSecret!==void 0)K.uint32(394).bytes($.messageSecret);if($.keepInChat!==void 0)sZ.encode($.keepInChat,K.uint32(402).fork()).join();if($.originalSelfAuthorUserJidString!==void 0)K.uint32(410).string($.originalSelfAuthorUserJidString);if($.revokeMessageTimestamp!==void 0)K.uint32(416).uint64($.revokeMessageTimestamp);if($.pinInChat!==void 0)a8.encode($.pinInChat,K.uint32(434).fork()).join();if($.premiumMessageInfo!==void 0)Zq.encode($.premiumMessageInfo,K.uint32(442).fork()).join();if($.is1PBizBotMessage!==void 0)K.uint32(448).bool($.is1PBizBotMessage);if($.isGroupHistoryMessage!==void 0)K.uint32(456).bool($.isGroupHistoryMessage);if($.botMessageInvokerJid!==void 0)K.uint32(466).string($.botMessageInvokerJid);if($.commentMetadata!==void 0)yQ.encode($.commentMetadata,K.uint32(474).fork()).join();if($.eventResponses!==void 0&&$.eventResponses.length!==0)for(let Q of $.eventResponses)IZ.encode(Q,K.uint32(490).fork()).join();if($.reportingTokenInfo!==void 0)Gq.encode($.reportingTokenInfo,K.uint32(498).fork()).join();if($.newsletterServerId!==void 0)K.uint32(504).uint64($.newsletterServerId);if($.eventAdditionalMetadata!==void 0)WZ.encode($.eventAdditionalMetadata,K.uint32(514).fork()).join();if($.isMentionedInStatus!==void 0)K.uint32(520).bool($.isMentionedInStatus);if($.statusMentions!==void 0&&$.statusMentions.length!==0)for(let Q of $.statusMentions)K.uint32(530).string(Q);if($.targetMessageId!==void 0)x.encode($.targetMessageId,K.uint32(538).fork()).join();if($.messageAddOns!==void 0&&$.messageAddOns.length!==0)for(let Q of $.messageAddOns)n8.encode(Q,K.uint32(546).fork()).join();if($.statusMentionMessageInfo!==void 0)vq.encode($.statusMentionMessageInfo,K.uint32(554).fork()).join();if($.isSupportAiMessage!==void 0)K.uint32(560).bool($.isSupportAiMessage);if($.statusMentionSources!==void 0&&$.statusMentionSources.length!==0)for(let Q of $.statusMentionSources)K.uint32(570).string(Q);if($.supportAiCitations!==void 0&&$.supportAiCitations.length!==0)for(let Q of $.supportAiCitations)OQ.encode(Q,K.uint32(578).fork()).join();if($.botTargetId!==void 0)K.uint32(586).string($.botTargetId);if($.groupHistoryIndividualMessageInfo!==void 0)yZ.encode($.groupHistoryIndividualMessageInfo,K.uint32(594).fork()).join();if($.groupHistoryBundleInfo!==void 0)TZ.encode($.groupHistoryBundleInfo,K.uint32(602).fork()).join();if($.interactiveMessageAdditionalMetadata!==void 0)aZ.encode($.interactiveMessageAdditionalMetadata,K.uint32(610).fork()).join();if($.quarantinedMessage!==void 0)Hq.encode($.quarantinedMessage,K.uint32(618).fork()).join();if($.nonJidMentions!==void 0)K.uint32(624).uint32($.nonJidMentions);if($.hsmTag!==void 0)K.uint32(634).string($.hsmTag);if($.ephemeralExpirationTimestamp!==void 0)K.uint32(640).uint64($.ephemeralExpirationTimestamp);if($.scheduledMessageMetadata!==void 0)Uq.encode($.scheduledMessageMetadata,K.uint32(650).fork()).join();if($.decisionId!==void 0)K.uint32(658).string($.decisionId);if($.decisionSources!==void 0&&$.decisionSources.length!==0)for(let Q of $.decisionSources)K.uint32(666).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.messageTimestamp=Q.uint64Number();continue}case 4:{if(Z!==32)break;J.status=Q.int32();continue}case 5:{if(Z!==42)break;J.participant=Q.string();continue}case 6:{if(Z!==48)break;J.messageC2STimestamp=Q.uint64Number();continue}case 16:{if(Z!==128)break;J.ignore=Q.bool();continue}case 17:{if(Z!==136)break;J.starred=Q.bool();continue}case 18:{if(Z!==144)break;J.broadcast=Q.bool();continue}case 19:{if(Z!==154)break;J.pushName=Q.string();continue}case 20:{if(Z!==162)break;J.mediaCiphertextSha256=Q.bytes();continue}case 21:{if(Z!==168)break;J.multicast=Q.bool();continue}case 22:{if(Z!==176)break;J.urlText=Q.bool();continue}case 23:{if(Z!==184)break;J.urlNumber=Q.bool();continue}case 24:{if(Z!==192)break;J.messageStubType=Q.int32();continue}case 25:{if(Z!==200)break;J.clearMedia=Q.bool();continue}case 26:{if(Z!==210)break;if(J.messageStubParameters===void 0)J.messageStubParameters=[];let Y=Q.string();if(Y!==void 0)J.messageStubParameters.push(Y);continue}case 27:{if(Z!==216)break;J.duration=Q.uint32();continue}case 28:{if(Z!==226)break;if(J.labels===void 0)J.labels=[];let Y=Q.string();if(Y!==void 0)J.labels.push(Y);continue}case 29:{if(Z!==234)break;J.paymentInfo=b0.decode(Q,Q.uint32());continue}case 30:{if(Z!==242)break;J.finalLiveLocation=V$.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.quotedPaymentInfo=b0.decode(Q,Q.uint32());continue}case 32:{if(Z!==256)break;J.ephemeralStartTimestamp=Q.uint64Number();continue}case 33:{if(Z!==264)break;J.ephemeralDuration=Q.uint32();continue}case 34:{if(Z!==272)break;J.ephemeralOffToOn=Q.bool();continue}case 35:{if(Z!==280)break;J.ephemeralOutOfSync=Q.bool();continue}case 36:{if(Z!==288)break;J.bizPrivacyStatus=Q.int32();continue}case 37:{if(Z!==298)break;J.verifiedBizName=Q.string();continue}case 38:{if(Z!==306)break;J.mediaData=w0.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.photoChange=r8.decode(Q,Q.uint32());continue}case 40:{if(Z!==322)break;if(J.userReceipt===void 0)J.userReceipt=[];let Y=EY.decode(Q,Q.uint32());if(Y!==void 0)J.userReceipt.push(Y);continue}case 41:{if(Z!==330)break;if(J.reactions===void 0)J.reactions=[];let Y=zq.decode(Q,Q.uint32());if(Y!==void 0)J.reactions.push(Y);continue}case 42:{if(Z!==338)break;J.quotedStickerData=w0.decode(Q,Q.uint32());continue}case 43:{if(Z!==346)break;J.futureproofData=Q.bytes();continue}case 44:{if(Z!==354)break;J.statusPsa=Tq.decode(Q,Q.uint32());continue}case 45:{if(Z!==362)break;if(J.pollUpdates===void 0)J.pollUpdates=[];let Y=Qq.decode(Q,Q.uint32());if(Y!==void 0)J.pollUpdates.push(Y);continue}case 46:{if(Z!==370)break;J.pollAdditionalMetadata=e8.decode(Q,Q.uint32());continue}case 47:{if(Z!==378)break;J.agentId=Q.string();continue}case 48:{if(Z!==384)break;J.statusAlreadyViewed=Q.bool();continue}case 49:{if(Z!==394)break;J.messageSecret=Q.bytes();continue}case 50:{if(Z!==402)break;J.keepInChat=sZ.decode(Q,Q.uint32());continue}case 51:{if(Z!==410)break;J.originalSelfAuthorUserJidString=Q.string();continue}case 52:{if(Z!==416)break;J.revokeMessageTimestamp=Q.uint64Number();continue}case 54:{if(Z!==434)break;J.pinInChat=a8.decode(Q,Q.uint32());continue}case 55:{if(Z!==442)break;J.premiumMessageInfo=Zq.decode(Q,Q.uint32());continue}case 56:{if(Z!==448)break;J.is1PBizBotMessage=Q.bool();continue}case 57:{if(Z!==456)break;J.isGroupHistoryMessage=Q.bool();continue}case 58:{if(Z!==466)break;J.botMessageInvokerJid=Q.string();continue}case 59:{if(Z!==474)break;J.commentMetadata=yQ.decode(Q,Q.uint32());continue}case 61:{if(Z!==490)break;if(J.eventResponses===void 0)J.eventResponses=[];let Y=IZ.decode(Q,Q.uint32());if(Y!==void 0)J.eventResponses.push(Y);continue}case 62:{if(Z!==498)break;J.reportingTokenInfo=Gq.decode(Q,Q.uint32());continue}case 63:{if(Z!==504)break;J.newsletterServerId=Q.uint64Number();continue}case 64:{if(Z!==514)break;J.eventAdditionalMetadata=WZ.decode(Q,Q.uint32());continue}case 65:{if(Z!==520)break;J.isMentionedInStatus=Q.bool();continue}case 66:{if(Z!==530)break;if(J.statusMentions===void 0)J.statusMentions=[];let Y=Q.string();if(Y!==void 0)J.statusMentions.push(Y);continue}case 67:{if(Z!==538)break;J.targetMessageId=x.decode(Q,Q.uint32());continue}case 68:{if(Z!==546)break;if(J.messageAddOns===void 0)J.messageAddOns=[];let Y=n8.decode(Q,Q.uint32());if(Y!==void 0)J.messageAddOns.push(Y);continue}case 69:{if(Z!==554)break;J.statusMentionMessageInfo=vq.decode(Q,Q.uint32());continue}case 70:{if(Z!==560)break;J.isSupportAiMessage=Q.bool();continue}case 71:{if(Z!==570)break;if(J.statusMentionSources===void 0)J.statusMentionSources=[];let Y=Q.string();if(Y!==void 0)J.statusMentionSources.push(Y);continue}case 72:{if(Z!==578)break;if(J.supportAiCitations===void 0)J.supportAiCitations=[];let Y=OQ.decode(Q,Q.uint32());if(Y!==void 0)J.supportAiCitations.push(Y);continue}case 73:{if(Z!==586)break;J.botTargetId=Q.string();continue}case 74:{if(Z!==594)break;J.groupHistoryIndividualMessageInfo=yZ.decode(Q,Q.uint32());continue}case 75:{if(Z!==602)break;J.groupHistoryBundleInfo=TZ.decode(Q,Q.uint32());continue}case 76:{if(Z!==610)break;J.interactiveMessageAdditionalMetadata=aZ.decode(Q,Q.uint32());continue}case 77:{if(Z!==618)break;J.quarantinedMessage=Hq.decode(Q,Q.uint32());continue}case 78:{if(Z!==624)break;J.nonJidMentions=Q.uint32();continue}case 79:{if(Z!==634)break;J.hsmTag=Q.string();continue}case 80:{if(Z!==640)break;J.ephemeralExpirationTimestamp=Q.uint64Number();continue}case 81:{if(Z!==650)break;J.scheduledMessageMetadata=Uq.decode(Q,Q.uint32());continue}case 82:{if(Z!==658)break;J.decisionId=Q.string();continue}case 83:{if(Z!==666)break;if(J.decisionSources===void 0)J.decisionSources=[];let Y=Q.string();if(Y!==void 0)J.decisionSources.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b.fromPartial($??{})},fromPartial($){let K=NP();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.messageTimestamp=$.messageTimestamp??void 0,K.status=$.status??void 0,K.participant=$.participant??void 0,K.messageC2STimestamp=$.messageC2STimestamp??void 0,K.ignore=$.ignore??void 0,K.starred=$.starred??void 0,K.broadcast=$.broadcast??void 0,K.pushName=$.pushName??void 0,K.mediaCiphertextSha256=$.mediaCiphertextSha256??void 0,K.multicast=$.multicast??void 0,K.urlText=$.urlText??void 0,K.urlNumber=$.urlNumber??void 0,K.messageStubType=$.messageStubType??void 0,K.clearMedia=$.clearMedia??void 0,K.messageStubParameters=$.messageStubParameters?.map((Q)=>Q)||void 0,K.duration=$.duration??void 0,K.labels=$.labels?.map((Q)=>Q)||void 0,K.paymentInfo=$.paymentInfo!==void 0&&$.paymentInfo!==null?b0.fromPartial($.paymentInfo):void 0,K.finalLiveLocation=$.finalLiveLocation!==void 0&&$.finalLiveLocation!==null?V$.fromPartial($.finalLiveLocation):void 0,K.quotedPaymentInfo=$.quotedPaymentInfo!==void 0&&$.quotedPaymentInfo!==null?b0.fromPartial($.quotedPaymentInfo):void 0,K.ephemeralStartTimestamp=$.ephemeralStartTimestamp??void 0,K.ephemeralDuration=$.ephemeralDuration??void 0,K.ephemeralOffToOn=$.ephemeralOffToOn??void 0,K.ephemeralOutOfSync=$.ephemeralOutOfSync??void 0,K.bizPrivacyStatus=$.bizPrivacyStatus??void 0,K.verifiedBizName=$.verifiedBizName??void 0,K.mediaData=$.mediaData!==void 0&&$.mediaData!==null?w0.fromPartial($.mediaData):void 0,K.photoChange=$.photoChange!==void 0&&$.photoChange!==null?r8.fromPartial($.photoChange):void 0,K.userReceipt=$.userReceipt?.map((Q)=>EY.fromPartial(Q))||void 0,K.reactions=$.reactions?.map((Q)=>zq.fromPartial(Q))||void 0,K.quotedStickerData=$.quotedStickerData!==void 0&&$.quotedStickerData!==null?w0.fromPartial($.quotedStickerData):void 0,K.futureproofData=$.futureproofData??void 0,K.statusPsa=$.statusPsa!==void 0&&$.statusPsa!==null?Tq.fromPartial($.statusPsa):void 0,K.pollUpdates=$.pollUpdates?.map((Q)=>Qq.fromPartial(Q))||void 0,K.pollAdditionalMetadata=$.pollAdditionalMetadata!==void 0&&$.pollAdditionalMetadata!==null?e8.fromPartial($.pollAdditionalMetadata):void 0,K.agentId=$.agentId??void 0,K.statusAlreadyViewed=$.statusAlreadyViewed??void 0,K.messageSecret=$.messageSecret??void 0,K.keepInChat=$.keepInChat!==void 0&&$.keepInChat!==null?sZ.fromPartial($.keepInChat):void 0,K.originalSelfAuthorUserJidString=$.originalSelfAuthorUserJidString??void 0,K.revokeMessageTimestamp=$.revokeMessageTimestamp??void 0,K.pinInChat=$.pinInChat!==void 0&&$.pinInChat!==null?a8.fromPartial($.pinInChat):void 0,K.premiumMessageInfo=$.premiumMessageInfo!==void 0&&$.premiumMessageInfo!==null?Zq.fromPartial($.premiumMessageInfo):void 0,K.is1PBizBotMessage=$.is1PBizBotMessage??void 0,K.isGroupHistoryMessage=$.isGroupHistoryMessage??void 0,K.botMessageInvokerJid=$.botMessageInvokerJid??void 0,K.commentMetadata=$.commentMetadata!==void 0&&$.commentMetadata!==null?yQ.fromPartial($.commentMetadata):void 0,K.eventResponses=$.eventResponses?.map((Q)=>IZ.fromPartial(Q))||void 0,K.reportingTokenInfo=$.reportingTokenInfo!==void 0&&$.reportingTokenInfo!==null?Gq.fromPartial($.reportingTokenInfo):void 0,K.newsletterServerId=$.newsletterServerId??void 0,K.eventAdditionalMetadata=$.eventAdditionalMetadata!==void 0&&$.eventAdditionalMetadata!==null?WZ.fromPartial($.eventAdditionalMetadata):void 0,K.isMentionedInStatus=$.isMentionedInStatus??void 0,K.statusMentions=$.statusMentions?.map((Q)=>Q)||void 0,K.targetMessageId=$.targetMessageId!==void 0&&$.targetMessageId!==null?x.fromPartial($.targetMessageId):void 0,K.messageAddOns=$.messageAddOns?.map((Q)=>n8.fromPartial(Q))||void 0,K.statusMentionMessageInfo=$.statusMentionMessageInfo!==void 0&&$.statusMentionMessageInfo!==null?vq.fromPartial($.statusMentionMessageInfo):void 0,K.isSupportAiMessage=$.isSupportAiMessage??void 0,K.statusMentionSources=$.statusMentionSources?.map((Q)=>Q)||void 0,K.supportAiCitations=$.supportAiCitations?.map((Q)=>OQ.fromPartial(Q))||void 0,K.botTargetId=$.botTargetId??void 0,K.groupHistoryIndividualMessageInfo=$.groupHistoryIndividualMessageInfo!==void 0&&$.groupHistoryIndividualMessageInfo!==null?yZ.fromPartial($.groupHistoryIndividualMessageInfo):void 0,K.groupHistoryBundleInfo=$.groupHistoryBundleInfo!==void 0&&$.groupHistoryBundleInfo!==null?TZ.fromPartial($.groupHistoryBundleInfo):void 0,K.interactiveMessageAdditionalMetadata=$.interactiveMessageAdditionalMetadata!==void 0&&$.interactiveMessageAdditionalMetadata!==null?aZ.fromPartial($.interactiveMessageAdditionalMetadata):void 0,K.quarantinedMessage=$.quarantinedMessage!==void 0&&$.quarantinedMessage!==null?Hq.fromPartial($.quarantinedMessage):void 0,K.nonJidMentions=$.nonJidMentions??void 0,K.hsmTag=$.hsmTag??void 0,K.ephemeralExpirationTimestamp=$.ephemeralExpirationTimestamp??void 0,K.scheduledMessageMetadata=$.scheduledMessageMetadata!==void 0&&$.scheduledMessageMetadata!==null?Uq.fromPartial($.scheduledMessageMetadata):void 0,K.decisionId=$.decisionId??void 0,K.decisionSources=$.decisionSources?.map((Q)=>Q)||void 0,K}};function RP(){return{}}var K0={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.messageBytes!==void 0)K.uint32(18).bytes($.messageBytes);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.messageBytes=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return K0.fromPartial($??{})},fromPartial($){let K=RP();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.messageBytes=$.messageBytes??void 0,K}};function BP(){return{}}var UR={encode($,K=new H){if($.timestamp!==void 0)K.uint32(16).uint64($.timestamp);if($.unreadChats!==void 0)K.uint32(24).uint32($.unreadChats);if($.notifyMessageCount!==void 0)K.uint32(32).uint32($.notifyMessageCount);if($.notifyMessages!==void 0&&$.notifyMessages.length!==0)for(let Q of $.notifyMessages)b.encode(Q,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==16)break;J.timestamp=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.unreadChats=Q.uint32();continue}case 4:{if(Z!==32)break;J.notifyMessageCount=Q.uint32();continue}case 5:{if(Z!==42)break;if(J.notifyMessages===void 0)J.notifyMessages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.notifyMessages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UR.fromPartial($??{})},fromPartial($){let K=BP();return K.timestamp=$.timestamp??void 0,K.unreadChats=$.unreadChats??void 0,K.notifyMessageCount=$.notifyMessageCount??void 0,K.notifyMessages=$.notifyMessages?.map((Q)=>b.fromPartial(Q))||void 0,K}};var EB={Message:w,WebMessageInfo:b,HistorySync:bY,SyncActionData:I$,ClientPayload:jY,AdvSignedDeviceIdentity:pY,AdvSignedKeyIndexList:wY,AdvDeviceIdentity:lY,AdvSignedDeviceIdentityHmac:uY,HandshakeMessage:oY,SyncdRecord:v0,SyncdMutation:S0,SyncdMutations:aY,SyncdPatch:sY,SyncdSnapshot:eY,ExitCode:M$,SyncActionValue:S$,DeviceProps:cY,SenderKeyDistributionMessage:gY,SenderKeyMessage:tY,ServerErrorReceipt:rY,CertChain:nY,"CertChain.NoiseCertificate":E0,"CertChain.NoiseCertificate.Details":dY,ExternalBlobReference:W$,LidMigrationMappingSyncPayload:iY,MediaRetryNotification:mY,VerifiedNameCertificate:T0,"VerifiedNameCertificate.Details":$6,"Message.PollVoteMessage":I0,"Message.EventResponseMessage":W0},MB=WY;function F6($){let K=EB[$];if(K)return K;let Q=$.replace(/\./g,"_"),X=MB[Q];if(X&&typeof X==="object"&&"encode"in X)return X;throw Error(`unknown proto type: ${$}`)}function WB($){return typeof $==="object"&&$!==null&&typeof $.unsigned==="boolean"&&typeof $.low==="number"&&typeof $.high==="number"}function IB($){let K=BigInt($.low>>>0);return($.unsigned?BigInt($.high>>>0):BigInt($.high|0))*4294967296n+K}function K6($){if($===null)return;if(WB($))return IB($);if(typeof $!=="object")return $;if(ArrayBuffer.isView($)||$ instanceof ArrayBuffer)return $;if(Array.isArray($)){let J;for(let Z=0;Z<$.length;Z++){let Y=K6($[Z]);if(Y!==$[Z])(J??=$.slice())[Z]=Y}return J??$}let K=$,Q=Object.getPrototypeOf(K);if(Q!==Object.prototype&&Q!==null){let J={};for(let Z of Object.keys(K)){let Y=K6(K[Z]);if(Y!==void 0)J[Z]=Y}return J}let X;for(let J in K){let Z=K6(K[J]);if(Z!==K[J])(X??={...K})[J]=Z}return X??$}function x6($,K){return F6($).encode(K6(K??{})).finish()}function SB($,K){return F6($).decode(K)}var CR=1;function vB($,K,Q){if(Q.length<CR)throw RangeError("protobuf batch offsets must contain the leading sentinel");if(Q[0]!==0)throw RangeError("protobuf batch offsets must start at zero");let X=Q.length-CR;for(let G=0;G<X;G++)if(Q[G+1]<Q[G])throw RangeError("protobuf batch offsets must be monotonic");if(Q[X]!==K.length)throw RangeError("protobuf batch offsets must end at the data length");let J=F6($),Z=new q(K),Y=Array(X);for(let G=0;G<X;G++){let L=Q[G],C=Q[G+1];if(Z.pos=L,Y[G]=J.decode(Z,C-L),Z.pos!==C)throw RangeError("protobuf decoder did not consume the delimited entry")}return Y}var DR=new TextDecoder,k6=new TextEncoder;function TB($,K){let Q=Array(Math.max(0,K.length-1));for(let X=0;X+1<K.length;X++)Q[X]=DR.decode($.subarray(K[X],K[X+1]));return Q}function yB($){let K=(X)=>{let J=$[X];if(J===void 0)throw RangeError("packed record references a missing table entry");return J};return{required:K,optional:(X)=>X===0?void 0:K(X-1)}}class LR{table=[];indexByValue=new Map;intern($){let K=this.indexByValue.get($);if(K!==void 0)return K;let Q=this.table.length;return this.table.push($),this.indexByValue.set($,Q),Q}internOptional($){return $===void 0?0:this.intern($)+1}pack(){let $=new TextEncoder,K=this.table.map((Z)=>$.encode(Z)),Q=new Uint32Array(K.length+1),X=0;for(let Z=0;Z<K.length;Z++)X+=K[Z].length,Q[Z+1]=X;let J=new Uint8Array(X);for(let Z=0;Z<K.length;Z++)J.set(K[Z],Q[Z]);return{data:J,offsets:Q}}}var _$=10,PR=0,FR=1,xR=2,kR=3,NR=4,RR=5,BR=6,OR=7,AR=8,ER=9,MR=1,WR=2,IR=4,SR=8,O$=24,vR=0,TR=4,yR=8,fR=12,_R=16;function fB($){return($.byteOffset+O$)%8===0?$:new Uint8Array($)}function _B($){let K=fB($);if(K.byteLength<O$)throw RangeError("message wire batch is shorter than its header");let Q=new DataView(K.buffer,K.byteOffset,O$),X=Q.getUint32(vR,!0),J=Q.getUint32(TR,!0),Z=Q.getUint32(yR,!0),Y=Q.getUint32(fR,!0),G=Q.getUint32(_R,!0);if(G!==_$)throw RangeError(`message wire batch record width ${G} does not match the expected ${_$}`);let L=X*G*8,C=(X+1)*4,N=(J+1)*4,y=O$+L+C+N+Z+Y;if(K.byteLength<y)throw RangeError(`message wire batch is truncated: ${K.byteLength} bytes, expected ${y}`);let I=O$,O=new Float64Array(K.buffer,K.byteOffset+I,X*G);I+=L;let M=new Uint32Array(K.buffer,K.byteOffset+I,X+1);I+=C;let n=new Uint32Array(K.buffer,K.byteOffset+I,J+1);I+=N;let S=K.subarray(I,I+Z);I+=Z;let d=K.subarray(I,I+Y),{required:B0,optional:O0}=yB(TB(d,n)),f0=Array(X);for(let A0=0;A0<X;A0++){let l=A0*G,v$=O[l+OR];f0[A0]={chat:B0(O[l+PR]),sender:B0(O[l+FR]),senderAlt:O0(O[l+xR]),recipientAlt:O0(O[l+kR]),isFromMe:(v$&MR)!==0,isGroup:(v$&WR)!==0,id:B0(O[l+NR]),timestamp:O[l+BR],pushName:B0(O[l+RR]),isViewOnce:(v$&IR)!==0,isOffline:(v$&SR)!==0,unavailableRequestId:O0(O[l+AR]),edit:O0(O[l+ER])}}return{messageData:S,messageOffsets:M,infos:f0}}function hB($){let K=new LR,Q=new Float64Array($.length*_$),X=new Uint32Array($.length+1),J=0;for(let y=0;y<$.length;y++){let{payload:I,info:O}=$[y];J+=I.byteLength,X[y+1]=J;let M=y*_$;Q[M+PR]=K.intern(O.chat),Q[M+FR]=K.intern(O.sender),Q[M+xR]=K.internOptional(O.senderAlt),Q[M+kR]=K.internOptional(O.recipientAlt),Q[M+NR]=K.intern(O.id),Q[M+RR]=K.intern(O.pushName),Q[M+BR]=O.timestamp,Q[M+OR]=(O.isFromMe?MR:0)|(O.isGroup?WR:0)|(O.isViewOnce?IR:0)|(O.isOffline?SR:0),Q[M+AR]=K.internOptional(O.unavailableRequestId),Q[M+ER]=K.internOptional(O.edit)}let{data:Z,offsets:Y}=K.pack(),G=O$+Q.byteLength+X.byteLength+Y.byteLength+J+Z.byteLength,L=new Uint8Array(G),C=new DataView(L.buffer,0,O$);C.setUint32(vR,$.length,!0),C.setUint32(TR,Math.max(0,Y.length-1),!0),C.setUint32(yR,J,!0),C.setUint32(fR,Z.byteLength,!0),C.setUint32(_R,_$,!0);let N=O$;L.set(new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),N),N+=Q.byteLength,L.set(new Uint8Array(X.buffer,X.byteOffset,X.byteLength),N),N+=X.byteLength,L.set(new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength),N),N+=Y.byteLength;for(let{payload:y}of $)L.set(y,N),N+=y.byteLength;return L.set(Z,N),L}var Q6=20,hR=1,lB=100,lR=1,pR=2,uR=4,wR=8;class N6{strings=[];jids=[];view;bytes;cursor=0;inlineCursor=0;region="";begin($){if(this.bytes=$,this.view=new DataView($.buffer,$.byteOffset,$.byteLength),$.byteLength<Q6)throw RangeError("packed batch is shorter than its header");let K=this.view.getUint32(0,!0),Q=this.view.getUint32(4,!0),X=this.view.getUint32(8,!0),J=this.view.getUint32(12,!0);if((this.view.getUint32(16,!0)&hR)!==0)this.strings.length=0,this.jids.length=0;let Y=Q6,G=Y;Y+=Q*4;let L=Y;Y+=X*11;let C=Y,N=$.byteLength-J;if(N<C)throw RangeError("packed batch regions overlap");this.region=J===0?"":this.decodeRegion(N,J),this.inlineCursor=0;for(let y=0;y<Q;y++){let I=G+y*4,O=this.view.getUint16(I,!0),M=this.view.getUint16(I+2,!0);this.strings[O]=this.region.substring(this.inlineCursor,this.inlineCursor+=M)}for(let y=0;y<X;y++){let I=L+y*11,O=this.view.getUint16(I,!0),M=this.strings[this.view.getUint16(I+2,!0)],n=this.strings[this.view.getUint16(I+4,!0)];if(M===void 0||n===void 0)throw RangeError("packed jid references a missing string slot");this.jids[O]=Object.freeze({user:M,server:n,agent:this.view.getUint8(I+6),device:this.view.getUint16(I+7,!0),integrator:this.view.getUint16(I+9,!0)})}return this.cursor=C,K}decodeRegion($,K){if(K>=lB)return DR.decode(this.bytes.subarray($,$+K));let Q="",X=$,J=$+(K/4|0)*4;while(X<J){let Z=this.view.getUint32(X,!0);Q+=String.fromCharCode(Z&255,Z>>8&255,Z>>16&255,Z>>>24),X+=4}while(X<$+K)Q+=String.fromCharCode(this.view.getUint8(X++));return Q}u8(){return this.view.getUint8(this.cursor++)}f64(){let $=this.view.getFloat64(this.cursor,!0);return this.cursor+=8,$}inline(){let $=this.view.getUint16(this.cursor,!0);return this.cursor+=2,this.region.substring(this.inlineCursor,this.inlineCursor+=$)}slot(){let $=this.view.getUint16(this.cursor,!0);return this.cursor+=2,$}str(){let $=this.strings[this.slot()];if($===void 0)throw RangeError("packed record references a missing string slot");return $}strOptional(){let $=this.slot();if($===0)return;let K=this.strings[$-1];if(K===void 0)throw RangeError("packed record references a missing string slot");return K}jid(){let $=this.jids[this.slot()];if($===void 0)throw RangeError("packed record references a missing jid slot");return $}jidOptional(){let $=this.slot();if($===0)return;let K=this.jids[$-1];if(K===void 0)throw RangeError("packed record references a missing jid slot");return K}}var J0=new N6,f$=new N6;function pB($){let K=J0.begin($),Q=Array(K);for(let X=0;X<K;X++){let J=J0.u8(),Z=J0.jid(),Y=J0.jid(),G=J0.jidOptional(),L=J0.jidOptional(),C=J0.jidOptional(),N=J0.jidOptional(),y=J0.strOptional(),I=J0.str(),O=J0.f64(),M=J0.u8(),n=Array(M);for(let S=0;S<M;S++)n[S]=J0.inline();Q[X]={source:{chat:Z,sender:Y,is_from_me:(J&lR)!==0,is_group:(J&pR)!==0,addressing_mode:y,sender_alt:G,recipient_alt:L,broadcast_list_owner:C,recipient:N},message_ids:n,timestamp:O,type:(J&wR)!==0?{Other:I}:I,offline:(J&uR)!==0}}return Q}function uB($){let K=f$.begin($),Q=Array(K);for(let X=0;X<K;X++){let J=f$.strOptional(),Z=f$.jidOptional(),Y=f$.strOptional(),G=f$.f64();Q[X]={id:f$.inline(),class:J,from:Z,timestamp:Number.isNaN(G)?void 0:G,error:Y}}return Q}class R6{stringSlots=new Map;jidSlots=new Map;newStrings=[];newJids=[];records=[];definitions=[];inline=[];recordCount=0;cacheStr($){let K=this.stringSlots.get($);if(K!==void 0)return K;let Q=this.stringSlots.size;return this.stringSlots.set($,Q),this.newStrings.push([Q,k6.encode($).length]),this.definitions.push($),Q}cacheStrOptional($){return $===void 0?0:this.cacheStr($)+1}cacheJid($){let K=[$.user,$.server,$.agent,$.device,$.integrator].join(" "),Q=this.jidSlots.get(K);if(Q!==void 0)return Q;let X=this.cacheStr($.user),J=this.cacheStr($.server),Z=this.jidSlots.size;return this.jidSlots.set(K,Z),this.newJids.push([Z,X,J,$.agent,$.device,$.integrator]),Z}cacheJidOptional($){return $===void 0?0:this.cacheJid($)+1}u8($){this.records.push($&255)}slot($){this.records.push($&255,$>>8&255)}f64($){let K=new DataView(new ArrayBuffer(8));K.setFloat64(0,$,!0);for(let Q=0;Q<8;Q++)this.records.push(K.getUint8(Q))}writeInline($){let K=k6.encode($).length;this.records.push(K&255,K>>8&255),this.inline.push($)}endRecord(){this.recordCount++}finish(){let $=k6.encode(this.definitions.join("")+this.inline.join("")),K=Q6+this.newStrings.length*4+this.newJids.length*11+this.records.length+$.length,Q=new Uint8Array(K),X=new DataView(Q.buffer);X.setUint32(0,this.recordCount,!0),X.setUint32(4,this.newStrings.length,!0),X.setUint32(8,this.newJids.length,!0),X.setUint32(12,$.length,!0),X.setUint32(16,hR,!0);let J=Q6;for(let[Z,Y]of this.newStrings)X.setUint16(J,Z,!0),X.setUint16(J+2,Y,!0),J+=4;for(let[Z,Y,G,L,C,N]of this.newJids)X.setUint16(J,Z,!0),X.setUint16(J+2,Y,!0),X.setUint16(J+4,G,!0),X.setUint8(J+6,L),X.setUint16(J+7,C,!0),X.setUint16(J+9,N,!0),J+=11;return Q.set(this.records,J),J+=this.records.length,Q.set($,J),Q}}function wB($){let K=new R6;for(let Q of $){let X=typeof Q.type!=="string",J=K.cacheJid(Q.source.chat),Z=K.cacheJid(Q.source.sender),Y=K.cacheJidOptional(Q.source.sender_alt),G=K.cacheJidOptional(Q.source.recipient_alt),L=K.cacheJidOptional(Q.source.broadcast_list_owner),C=K.cacheJidOptional(Q.source.recipient),N=K.cacheStrOptional(Q.source.addressing_mode),y=K.cacheStr(typeof Q.type==="string"?Q.type:Q.type.Other);K.u8((Q.source.is_from_me?lR:0)|(Q.source.is_group?pR:0)|(Q.offline?uR:0)|(X?wR:0));for(let I of[J,Z,Y,G,L,C,N,y])K.slot(I);K.f64(Q.timestamp),K.u8(Q.message_ids.length);for(let I of Q.message_ids)K.writeInline(I);K.endRecord()}return K.finish()}function nB($){let K=new R6;for(let Q of $)K.slot(K.cacheStrOptional(Q.class)),K.slot(K.cacheJidOptional(Q.from)),K.slot(K.cacheStrOptional(Q.error)),K.f64(Q.timestamp??Number.NaN),K.writeInline(Q.id),K.endRecord();return K.finish()}var O6=($)=>typeof $==="object"&&$!==null&&typeof $.encode==="function"&&typeof $.decode==="function",dR=($)=>typeof $==="object"&&$!==null&&!O6($);function dB(){return this}var nR=($)=>{if($&&typeof $==="object"&&!("toJSON"in $))Object.defineProperty($,"toJSON",{value:dB,enumerable:!1,writable:!0,configurable:!0})},jB=($,K)=>({encode(Q){return{finish(){return x6($,Q)}}},decode(Q,X){let J=Q instanceof q?Q:new q(Q instanceof Uint8Array?Q:ArrayBuffer.isView(Q)?new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength):new Uint8Array(Q)),Z=K.decode(J,X);return nR(Z),Z},create(Q){return Q||{}},fromObject(Q){if(Q&&typeof Q==="object")nR(Q);return Q||{}},toObject(Q){return Q},fromPartial:K.fromPartial?.bind(K)??((Q)=>Q||{})}),cB=()=>({create($){return $||{}},fromObject($){return $||{}}}),B6="_",oB=".",bB="protobufPackage",iB={ADVKeyIndexList:"ADVSignedKeyIndexList"},mB=["Message","WebMessageInfo","ContextInfo","SyncActionValue"],gB=($,K)=>$!==bB&&!$.startsWith(B6)&&typeof K!=="function"&&(O6(K)||dR(K)),tB=($)=>{let K=$.at(0);return K!==void 0&&K===K.toUpperCase()&&K!==K.toLowerCase()},rB=($)=>new Proxy($,{get(K,Q,X){let J=Reflect.get(K,Q,X);if(J!==void 0||typeof Q!=="string"||!tB(Q))return J;let Z=cB();return Reflect.set(K,Q,Z),Z}}),aB=()=>{let $={};for(let[K,Q]of Object.entries(WY)){if(!gB(K,Q))continue;let X=K.split(B6),J=X.pop(),Z=$;for(let Y of X)Z[Y]??={},Z=Z[Y];if(O6(Q)){let Y=jB(K.replaceAll(B6,oB),Q);Z[J]=Object.assign(Y,Z[J]??{})}else if(dR(Q))Z[J]=Object.assign({},Z[J]??{},Q)}for(let[K,Q]of Object.entries(iB))if($[Q]&&!$[K])$[K]=$[Q];for(let K of mB)if($[K])$[K]=rB($[K]);return $},sB=aB();var $O=new URL("whatsapp_rust_bridge_bg.wasm",import.meta.url),KO=eB($O);S6({module:KO});var aO=I6,sO=W6;export{WO as verifySignature,MO as updateLogger,EO as setLogger,sB as proto,AO as projectLegacySessionRecordV1,OO as md5,BO as logMessage,aO as initWasmEngine,S6 as initSync,RO as inflateZlib,NO as importLegacySessionRecordV1,kO as hkdf,xO as hasLogger,FO as getWasmMemoryBytes,PO as getWasmAllocationSnapshot,LO as getPublicFromPrivateKey,DO as getEnabledFeatures,CO as generateKeyPair,UO as encodeSessionRecordComponents,nB as encodeServerAckWireBatch,GO as encodeSenderKeyRecordComponents,wB as encodeReceiptWireBatch,x6 as encodeProto,hB as encodeMessageWireBatch,VO as decryptPollVotePayload,zO as decryptPollVote,HO as decryptEventResponsePayload,YO as decodeSessionRecordComponents,uB as decodeServerAckWireBatch,qO as decodeSenderKeyRecordComponents,pB as decodeReceiptWireBatch,vB as decodeProtoBatch,SB as decodeProto,_B as decodeMessageWireBatch,sO as createWhatsAppClient,XO as calculateSignature,JO as calculateAgreement,ZO as beginWasmAllocationProfile,d$ as WasmWhatsAppClient,_$ as MESSAGE_WIRE_INFO_RECORD_WIDTH,n$ as IntoUnderlyingSource,X6 as IntoUnderlyingSink,J6 as IntoUnderlyingByteSource,q as BinaryReader};