;/*FB_PKG_DELIM*/ __d("LSClientDependencies",[],(function(a,b,c,d,e,f){}),null); __d("LSLocalizedStrings",["fbt"],(function(a,b,c,d,e,f,g){a=function(a,b){switch(a){default:return""}};e.exports=a}),null); __d("LSLocalizedStringsV2",["fbt","bs_caml_int64"],(function(a,b,c,d,e,f,g){a=function(a,c){switch(a){case"2285622730":return g._("__JHASH__bHf-pjjpSrh__JHASH__");case"1919524925":return g._("__JHASH__g2TuGL7kp7W__JHASH__");case"14617150":return g._("__JHASH__KN5FuK9HL68__JHASH__");case"460740012":return g._("__JHASH__PmrYWcLl7s-__JHASH__");case"2353844300":return g._("__JHASH__U3_S6m-Asci__JHASH__");case"2421884758":return g._("__JHASH__6vTlb2bku1-__JHASH__");case"2676961947":return g._("__JHASH__TK1WqTTq979__JHASH__",[g._param("participant_name",c(0))]);case"2352696798":return g._("__JHASH__4w1HQhVySfH__JHASH__");case"3298086032":return g._("__JHASH__AI6Z85qZOTl__JHASH__",[g._param("sender_name",c(0))]);case"3873263038":return g._("__JHASH__1Mq5qyIkjxC__JHASH__",[g._param("sender_name",c(0))]);case"2616853333":return g._("__JHASH__Jm7dkp7Q46M__JHASH__",[g._param("sender_name",c(0)),g._param("reply_source_sender_name",c(1))]);case"4002265907":return g._("__JHASH__YfSaJhpdv0H__JHASH__");case"2663996736":return g._("__JHASH__rouMYaFboPj__JHASH__",[g._param("participant_name",c(0))]);case"2868699317":return g._("__JHASH__gln0mR6BSos__JHASH__",[g._param("sender_name",c(0))]);case"2688620547":return g._("__JHASH__xBthZSMLrSR__JHASH__",[g._param("sender_name",c(0))]);case"3544071775":return g._("__JHASH__Bfn4BTqFbTw__JHASH__",[g._param("sender_name",c(0)),g._param("reply_source_sender_name",c(1))]);case"2375715979":return g._("__JHASH__wwqS06IKURT__JHASH__");case"3810165735":return g._("__JHASH___xK_oqrbVu3__JHASH__",[g._param("user_name",c(0))]);case"1890485478":return g._("__JHASH__r5f8SC2OUWe__JHASH__");case"1299547062":return g._("__JHASH__UxIyHnrkGvQ__JHASH__");case"3621454483":return g._("__JHASH__6CXDyy4pKod__JHASH__",[g._param("user_name",c(0))]);case"3948960063":return g._("__JHASH__4jXDffqGKxc__JHASH__");case"1249692047":return g._("__JHASH__XuMb0GRtMp2__JHASH__",[g._param("user_name",c(0))]);case"2106510577":return g._("__JHASH__adFbSa44M9G__JHASH__");case"3960370133":return g._("__JHASH__WRQpot61Zha__JHASH__",[g._param("user_name",c(0))]);case"3798396796":return g._("__JHASH__AKC6gu2oXen__JHASH__",[g._param("app_name",c(0))]);case"3388601579":return g._("__JHASH__LLEsQ4Y9-C7__JHASH__",[g._param("user_name",c(0)),g._param("app_name",c(1))]);case"1556712457":return g._("__JHASH__pQsKY3JdghI__JHASH__");case"3601791933":return g._("__JHASH__VzXmY6Nofoo__JHASH__",[g._param("user_name",c(0))]);case"3759817031":return g._("__JHASH__C6rFQy3ZqgT__JHASH__");case"2934729541":return g._("__JHASH__5sq-yY8-PHO__JHASH__",[g._param("user_name",c(0))]);case"392493418":return g._("__JHASH__Y9RNnaq--9C__JHASH__");case"4085467454":return g._("__JHASH__Tf8KEtj2NUW__JHASH__",[g._param("user_name",c(0))]);case"2738683656":return g._("__JHASH__VTdyPQ7H4GZ__JHASH__");case"2996525642":return g._("__JHASH__YPG0HYdjvfW__JHASH__",[g._param("user_name",c(0))]);case"2326868239":return g._("__JHASH__j-o8KFpMPxd__JHASH__");case"1001986796":return g._("__JHASH__zsY9ES-V3Ko__JHASH__",[g._param("user_name",c(0))]);case"2285746939":return g._("__JHASH__8PT2JtdeJx9__JHASH__");case"3759448420":return g._("__JHASH__H7eOZ8S6YOP__JHASH__",[g._param("user_name",c(0))]);case"3719716921":return g._("__JHASH__qiicOieyAHd__JHASH__");case"284944921":return g._("__JHASH__TkSIon2AHjf__JHASH__",[g._param("user_name",c(0))]);case"3322002377":return g._("__JHASH__hs-XIkGvPGM__JHASH__",[g._param("user_name",c(0))]);case"2486550278":return g._("__JHASH__78NZ4EbNix1__JHASH__");case"3557790945":return g._("__JHASH__9P29njYEtVJ__JHASH__");case"3756846086":return g._("__JHASH__HqUxJ78yQEs__JHASH__",[g._param("user_name",c(0))]);case"780378803":return g._("__JHASH__4RDpwDU2bxj__JHASH__");case"3918212613":return g._("__JHASH__sfM4caXMU8x__JHASH__",[g._param("user_name",c(0))]);case"3161890215":return g._("__JHASH__rMpUt8zHstd__JHASH__");case"863428456":return g._("__JHASH__ZqoJBBTdmfd__JHASH__",[g._param("user_name",c(0))]);case"2716405471":return g._("__JHASH__3bEfkOlWqZQ__JHASH__");case"3909474073":return g._("__JHASH__0LAhbzE2305__JHASH__",[g._param("user_name",c(0))]);case"1522141193":return g._("__JHASH__Xv5h5VWZ1z-__JHASH__");case"2804766375":return g._("__JHASH__iwXmJRLI5oQ__JHASH__",[g._param("user_name",c(0))]);case"772459202":return g._("__JHASH__da1hGBDyrc0__JHASH__");case"3546068912":return g._("__JHASH__eB3RT9ZRPNU__JHASH__",[g._param("user_name",c(0))]);case"2459540079":return g._("__JHASH__uVYFUqdjsDk__JHASH__");case"1596311291":return g._("__JHASH__JNmnqH9YpVN__JHASH__",[g._param("user_name",c(0))]);case"2253698324":return g._("__JHASH__cjVmAaYlDK5__JHASH__");case"4269602817":return g._("__JHASH__tgAN3WazCx7__JHASH__",[g._param("user_name",c(0))]);case"1739999037":return g._("__JHASH__LG-CVe6YeL2__JHASH__");case"3373597599":return g._("__JHASH__XSfhGJMwPL8__JHASH__");case"259473449":return g._("__JHASH__qL_GOsBRgrZ__JHASH__",[g._param("user_name",c(0))]);case"1338912959":return g._("__JHASH__LrXrY17Mwwh__JHASH__",[g._param("user_name",c(0))]);case"812940701":return g._("__JHASH__NEO9buPurkr__JHASH__",[g._param("user_name",c(0))]);case"1099878966":return g._("__JHASH__Qho_g3FF8mq__JHASH__",[g._param("user_name",c(0))]);case"3443782102":return g._("__JHASH__Xxt66o3iPYX__JHASH__");case"1196128688":return g._("__JHASH__z8eeQq9oV5-__JHASH__");case"2135145355":return g._("__JHASH__woc-8KLy7zj__JHASH__");case"3603511704":return g._("__JHASH__--XUHiOY0Z1__JHASH__",[g._param("user_name",c(0))]);case"705614308":return g._("__JHASH__vsnRcMCSSFJ__JHASH__",[g._plural(b("bs_caml_int64").to_float(c(0)),"number")]);case"313217698":return g._("__JHASH__rG1E-FG-TxB__JHASH__",[g._plural(b("bs_caml_int64").to_float(c(1)),"number"),g._param("user_name",c(0))]);case"3558654267":return g._("__JHASH___H0KEIF4aGq__JHASH__");case"3422266740":return g._("__JHASH__F5OxWfUB9Dy__JHASH__",[g._param("user_name",c(0))]);default:return""}};e.exports=a}),null); __d("LSSetThreadImageURL",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return b.fe(b.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({threadPictureUrl:a[1]===""?d:a[1],threadPictureUrlFallback:a[2],threadPictureUrlExpirationTimestampMs:a[3],isCustomThreadPicture:a[4],shouldRoundThreadPicture:a[5]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertContact",["LSSetThreadImageURL"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return c.i64.eq(a[23],[0,39423])?d[0]=[0,1]:(c.i64.eq(a[23],[0,14342874])?d[1]=[0,2]:d[1]=f,d[0]=d[1]),c.ftr(c.db.table(7).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.id,a[0])&&c.i64.eq([0,1],[0,1])&&c.i64.gt(b.authorityLevel,a[21])}).next().then(function(b){var e=b.done;b.value;return e?c.db.table(7).put({id:a[0],profilePictureUrl:a[2],profilePictureFallbackUrl:a[3],profilePictureUrlExpirationTimestampMs:a[4],profilePictureLargeUrl:a[5],profilePictureLargeFallbackUrl:a[6],profilePictureLargeUrlExpirationTimestampMs:a[7],name:a[9],secondaryName:a[41],normalizedNameForSearch:a[10],normalizedSearchTerms:a[33],isMessengerUser:a[11],isMemorialized:a[12],isManagedByViewer:a[35],blockedByViewerStatus:a[14],rank:a[17],firstName:a[18],contactType:a[19],contactTypeExact:a[20],authorityLevel:a[21],messengerCallLogThirdPartyId:a[22],profileRingColor:a[23],requiresMultiway:a[24],blockedSinceTimestampMs:a[25],fbUnblockedSinceTimestampMs:a[46],canViewerMessage:a[26],profileRingColorExpirationTimestampMs:a[27],phoneNumber:a[28],emailAddress:a[29],workCompanyId:a[30],workCompanyName:a[31],workJobTitle:a[32],deviceContactId:a[34],workForeignEntityType:a[36],capabilities:a[37],capabilities2:a[38],profileRingState:d[0],contactViewerRelationship:a[39],gender:a[40],contactReachabilityStatusType:a[43],restrictionType:a[44],waConnectStatus:a[45]}):0})},function(d){return c.sp(b("LSSetThreadImageURL"),a[0],a[2],a[3],a[4],!1,!0)}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueNewTask",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(d){return b.seq([function(c){return b.db.table(2).add({taskId:void 0,queueName:a[0],context:b.i64.to_string(a[1]),taskValue:a[2],enqueueTimestampMs:b.i64.of_float(Date.now()),httpUrlOverride:a[3],timeoutTimestampMs:a[4],pluginType:a[5],priority:a[6],syncGroupId:a[7],minTimeToSyncTimestampMs:a[9]})},function(d){return b.ftr(b.db.table(2).fetchDesc([[[a[0]]],"queueNameTaskId"]),function(c){return c.queueName===a[0]&&c.context===b.i64.to_string(a[1])&&c.taskValue===a[2]}).next().then(function(a,b){var d=a.done;a=a.value;return d?c[0]=[-1,4294967295]:(b=a.item,c[0]=b.taskId)})},function(a){return function(a){b.logger(a).info(a)}(["NewTask"," ",b.i64.to_string(c[0])].join(""))}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSVerifyContactRowExists",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.ftr(c.db.table(7).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.id,a[0])&&c.i64.eq([0,1],[0,1])}).next().then(function(e){var g=e.done;e.value;return g?c.seq([function(b){return d[0]=a[3]==null?"":a[3],c.fe(c.ftr(c.db.table(7).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.id,a[0])&&c.i64.eq([0,1],[0,1])&&c.i64.lt(b.authorityLevel,a[14])}),function(a){return a["delete"]()})},function(b){return c.db.table(7).add({id:a[0],profilePictureUrl:a[2]==null?"":a[2],profilePictureFallbackUrl:a[5],name:d[0],secondaryName:a[20],normalizedNameForSearch:d[0],isMemorialized:a[9],blockedByViewerStatus:a[11],canViewerMessage:a[12],profilePictureLargeUrl:"",isMessengerUser:!0,rank:0,contactType:a[4],contactTypeExact:[0,0],requiresMultiway:!1,authorityLevel:a[14],workForeignEntityType:[0,0],capabilities:a[15],capabilities2:a[16],contactViewerRelationship:a[19],gender:a[18]})},function(e){return d[1]=new c.Map(),d[1].set("contact_id",a[0]),d[2]=c.toJSON(d[1]),c.sp(b("LSIssueNewTask"),"cpq_v2",[0,207],d[2],f,f,[0,0],[0,0],f,f,[0,0])}]):0})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSExecuteFinallyBlockForSyncTransaction",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d;return b.seq([function(c){return b.seq([function(c){return b.fe(b.ftr(b.db.table(3).fetch([[["",a[1]]]]),function(c){return c.taskQueueName===""&&b.i64.eq(c.syncDatabaseId,a[1])&&b.i64.eq(c.epochId,a[2])}),function(c){var e=c.update;c=c.item;return e({epochId:!a[0]&&b.i64.eq(c.failureCount,[-1,4294967295])?c.epochId:d,failureCount:b.i64.eq(c.failureCount,[-1,4294967295])?[0,0]:b.i64.add(c.failureCount,[0,1])})})},function(a){return b.resolve()}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSAppendDataTraceAddon",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(154).add({addonId:void 0,traceId:a[0],timestampMs:b.i64.of_float(Date.now()),checkPointId:a[1],syncChannel:a[2],errorMessage:a[3],tags:a[4]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSArrayGetObjectAt",["Promise","bs_caml_int64"],(function(a,b,c,d,e,f,g){"use strict";function a(a,c,e,f){return b("Promise").resolve([e[d("bs_caml_int64").to_int32(f)],e])}g.call=a}),98); __d("LSLogEventAnnotate.bs",["Promise"],(function(a,b,c,d,e,f){"use strict";function a(a,c,d,e,f,g){return b("Promise").resolve()}c=a;f.call=c}),66); __d("LSLogEventAnnotate.nop",["LSLogEventAnnotate.bs"],(function(a,b,c,d,e,f,g){"use strict";a=function(a,b,c,e,f,g){return d("LSLogEventAnnotate.bs").call(a,b,c,e,f,g)};g["default"]=a}),98); __d("LSExecuteFirstBlockForSyncTransaction",["LSAppendDataTraceAddon","LSArrayGetObjectAt","LSLogEventAnnotate.nop"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(f){return c.seq([function(a){return c.resolve()},function(e){return c.ftr(c.db.table(3).fetch([[["",a[0]]]]),function(b){return b.taskQueueName===""&&c.i64.eq(b.syncDatabaseId,a[0])&&c.i64.eq(b.epochId,a[1])}).next().then(function(e,f){f=e.done;e=e.value;return f?c.seq([function(e){return function(a){c.logger(a).mustfix(a)}(["epoch mismatch",",",c.i64.to_string(a[0])].join("")),d[2]=new c.Map(),d[2].set("database_id",a[0]),d[2].set("epoch_id",a[1]),d[2].set("sync_status",a[4]),d[2].set("next_cursor",a[3]),d[2].set("error_msg","epoch mismatch"),a[9]?d[3]=!1:d[3]=!0,d[3]?c.resolve():(d[5]=a[9].keys(),d[6]=c.i64.of_int32(d[5].length),c.i64.gt(d[6],[0,0])?c.loopAsync(d[6],function(e){return d[7]=e,c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAt"),d[5],d[7]).then(function(a){return a=a,d[8]=a[0],d[9]=a[1],a})},function(b){return d[10]=a[9].get(d[8]),a[9],d[2].set(d[8],d[10])}])}):c.resolve())},function(a){return c.nop(b("LSLogEventAnnotate.nop"),[0,16],[0,35],[0,0],d[2])},function(a){return d[4]=!1,d[0]=d[4]}]):(e.item,c.seq([function(e){return c.ftr(c.db.table(1).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.groupId,a[0])&&b.currentCursor===a[2]}).next().then(function(e,f){f=e.done;e=e.value;return f?c.seq([function(e){return function(a){c.logger(a).mustfix(a)}(["cursor mismatch",",",c.i64.to_string(a[0])].join("")),d[4]=new c.Map(),d[4].set("database_id",a[0]),d[4].set("epoch_id",a[1]),d[4].set("sync_status",a[4]),d[4].set("next_cursor",a[3]),d[4].set("error_msg","cursor mismatch"),a[9]?d[5]=!1:d[5]=!0,d[5]?c.resolve():(d[7]=a[9].keys(),d[8]=c.i64.of_int32(d[7].length),c.i64.gt(d[8],[0,0])?c.loopAsync(d[8],function(e){return d[9]=e,c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAt"),d[7],d[9]).then(function(a){return a=a,d[10]=a[0],d[11]=a[1],a})},function(b){return d[12]=a[9].get(d[10]),a[9],d[4].set(d[10],d[12])}])}):c.resolve())},function(a){return c.nop(b("LSLogEventAnnotate.nop"),[0,16],[0,35],[0,0],d[4])},function(a){return d[6]=!1,d[2]=d[6]}]):(e.item,c.seq([function(b){return c.fe(c.db.table(1).fetch([[[a[0]]]]),function(b){var d=b.update;b.item;return d({currentCursor:a[3],syncStatus:a[4],sendSyncParams:a[5],minTimeToSyncTimestampMs:c.i64.eq(a[6],[0,0])?[0,0]:c.i64.add(c.i64.of_float(Date.now()),a[6]),canIgnoreTimestamp:a[7],syncChannel:a[8],lastSyncCompletedTimestampMs:c.i64.of_float(Date.now())})})},function(b){return c.fe(c.db.table(3).fetch([[["",a[0]]]]),function(a){var b=a.update;a.item;return b({failureCount:[-1,4294967295]})})},function(e){return d[4]=new c.Map(),d[4].set("database_id",a[0]),d[4].set("epoch_id",a[1]),d[4].set("sync_status",a[4]),d[4].set("next_cursor",a[3]),a[9]?d[5]=!1:d[5]=!0,d[5]?c.resolve():(d[7]=a[9].keys(),d[8]=c.i64.of_int32(d[7].length),c.i64.gt(d[8],[0,0])?c.loopAsync(d[8],function(e){return d[9]=e,c.seq([function(a){return c.ntop("Array",b("LSArrayGetObjectAt"),d[7],d[9]).then(function(a){return a=a,d[10]=a[0],d[11]=a[1],a})},function(b){return d[12]=a[9].get(d[10]),a[9],d[4].set(d[10],d[12])}])}):c.resolve())},function(a){return c.nop(b("LSLogEventAnnotate.nop"),[0,16],[0,35],[0,0],d[4])},function(a){return d[6]=!0,d[2]=d[6]}]))})},function(a){return d[0]=d[2]}]))})},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSGetCursor",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(f){return b.seq([function(d){return b.db.table(1).fetch([[[a[0]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[0]=e:(b=a.item,c[0]=b.currentCursor)})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetViewerFBID",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(a){return b.seq([function(a){return b.db.table(4).fetch([[[[0,1]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[0]=[-1,4294967295]:(b=a.item,c[0]=b.facebookUserId)})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSIssueNewTaskAndGetTaskID",["LSIssueNewTask","LSLogEventAnnotate.nop"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(f){return c.seq([function(d){return c.sp(b("LSIssueNewTask"),a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9])},function(b){return d[3]=c.i64.to_string(a[1]),c.ftr(c.db.table(2).fetchDesc([[[a[0]]],"queueNameTaskId"]),function(b){return b.queueName===a[0]&&b.context===d[3]&&b.taskValue===a[2]}).next().then(function(a,b){var c=a.done;a=a.value;return c?d[0]=[-1,4294967295]:(b=a.item,d[0]=b.taskId)})},function(e){return d[2]=new c.Map(),d[2].set("task_id",d[0]),d[2].set("task_queue_name",a[0]),d[2].set("task_label",d[3]),c.nop(b("LSLogEventAnnotate.nop"),[0,16],[0,23],[0,0],d[2])},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRemoveTask",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(2).fetch([[[a[0]]]]).next().then(function(c,d){var e=c.done;c=c.value;return e?0:(d=c.item,b.fe(b.db.table(2).fetch([[[d.queueName,{lte:a[0]}]],"queueNameTaskId"]),function(a){return a["delete"]()}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSSetRegionHint",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(1).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({regionHint:a[1]})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSTaskExists",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[];return b.seq([function(e){return b.seq([function(d){return b.db.table(2).fetch([[[a[0]]]]).next().then(function(a,b){b=a.done;a=a.value;return b?c[0]=!1:(a.item,c[0]=!0)})},function(a){return d[0]=c[0]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSUpdateLastSyncCompletedTimestampMsToNow",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.fe(b.db.table(1).fetch([[[a[0]]]]),function(a){var c=a.update;a.item;return c({lastSyncCompletedTimestampMs:b.i64.of_float(Date.now())})})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSDeleteThenInsertThread",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.db.table(9).fetch([[[a[7]]]]).next().then(function(d,f){var g=d.done;d=d.value;return g?b.db.table(9).put({threadKey:a[7],lastReadWatermarkTimestampMs:a[1],authorityLevel:a[6],mailboxType:a[8],threadType:a[9],folderName:a[10],ongoingCallState:a[25],parentThreadKey:a[31],lastActivityTimestampMs:a[0],snippet:a[2],threadName:a[3],threadPictureUrl:a[4],needsAdminApprovalForNewParticipant:a[5],threadPictureUrlFallback:a[11],threadPictureUrlExpirationTimestampMs:a[12],removeWatermarkTimestampMs:a[13],muteExpireTimeMs:a[14],muteCallsExpireTimeMs:a[15],isAdminSnippet:a[16],snippetSenderContactId:a[17],snippetStringHash:a[20],snippetStringArgument1:a[21],snippetAttribution:a[22],snippetAttributionStringHash:a[23],cannotReplyReason:a[26],customEmoji:a[27],customEmojiImageUrl:a[28],outgoingBubbleColor:a[29],themeFbid:a[30],nullstateDescriptionText1:a[32],nullstateDescriptionType1:a[33],nullstateDescriptionText2:a[34],nullstateDescriptionType2:a[35],nullstateDescriptionText3:a[36],nullstateDescriptionType3:a[37],draftMessage:a[38],snippetHasEmoji:a[39],hasPersistentMenu:a[40],disableComposerInput:a[41],cannotUnsendReason:a[42],viewedPluginKey:a[43],viewedPluginContext:a[44],clientThreadKey:a[45],capabilities:a[46],shouldRoundThreadPicture:a[47],proactiveWarningDismissTime:a[48],isCustomThreadPicture:a[49],otidOfFirstMessage:a[50],normalizedSearchTerms:a[51],additionalThreadContext:a[52],disappearingThreadKey:a[53],isDisappearingMode:a[54],disappearingModeInitiator:a[55],unreadDisappearingMessageCount:a[56],lastMessageCtaId:a[58],lastMessageCtaType:a[59],threadDescription:a[60],unsendLimitMs:a[61],syncGroup:a[62],threadInvitesEnabled:a[63],threadInviteLink:a[64],threadInvitesEnabledV2:a[65],eventStartTimestampMs:a[66],eventEndTimestampMs:a[67],takedownState:a[68],memberCount:a[69],igFolder:a[70],inviterId:a[71],threadTags:a[72]}):(f=d.item,c[1]=f.lastActivityTimestampMs,c[3]=f.parentThreadKey,c[2]=f.disappearingThreadKey,c[4]=f.isDisappearingMode,b.i64.le(f.authorityLevel,a[6])?b.i64.gt(c[1],a[0])&&b.i64.neq(c[2],e)?(b.i64.eq(a[31],[-1,4294967286])&&b.i64.eq(c[3],[0,0])?(g=[c[3],f.folderName],c[5]=g[0],c[6]=g[1],g):(d=[a[31],a[10]],c[5]=d[0],c[6]=d[1],d),b.db.table(9).put({threadKey:a[7],lastReadWatermarkTimestampMs:f.lastReadWatermarkTimestampMs,authorityLevel:a[6],mailboxType:a[8],threadType:a[9],folderName:c[6],ongoingCallState:a[25],parentThreadKey:c[5],lastActivityTimestampMs:c[1],snippet:a[2],threadName:a[3],threadPictureUrl:a[4],needsAdminApprovalForNewParticipant:a[5],threadPictureUrlFallback:a[11],threadPictureUrlExpirationTimestampMs:a[12],removeWatermarkTimestampMs:a[13],muteExpireTimeMs:a[14],muteCallsExpireTimeMs:a[15],isAdminSnippet:a[16],snippetSenderContactId:a[17],snippetStringHash:a[20],snippetStringArgument1:a[21],snippetAttribution:a[22],snippetAttributionStringHash:a[23],cannotReplyReason:a[26],customEmoji:a[27],customEmojiImageUrl:a[28],outgoingBubbleColor:a[29],themeFbid:a[30],nullstateDescriptionText1:a[32],nullstateDescriptionType1:a[33],nullstateDescriptionText2:a[34],nullstateDescriptionType2:a[35],nullstateDescriptionText3:a[36],nullstateDescriptionType3:a[37],draftMessage:a[38],snippetHasEmoji:a[39],hasPersistentMenu:a[40],disableComposerInput:a[41],cannotUnsendReason:a[42],viewedPluginKey:a[43],viewedPluginContext:a[44],clientThreadKey:a[45],capabilities:a[46],shouldRoundThreadPicture:a[47],proactiveWarningDismissTime:a[48],isCustomThreadPicture:a[49],otidOfFirstMessage:a[50],normalizedSearchTerms:a[51],additionalThreadContext:a[52],disappearingThreadKey:c[2],isDisappearingMode:c[4],disappearingModeInitiator:a[55],unreadDisappearingMessageCount:a[56],lastMessageCtaId:a[58],lastMessageCtaType:a[59],threadDescription:a[60],unsendLimitMs:a[61],syncGroup:a[62],threadInvitesEnabled:a[63],threadInviteLink:a[64],threadInvitesEnabledV2:a[65],eventStartTimestampMs:a[66],eventEndTimestampMs:a[67],takedownState:a[68],memberCount:a[69],igFolder:a[70],inviterId:a[71],threadTags:a[72]})):b.db.table(9).put({threadKey:a[7],lastReadWatermarkTimestampMs:a[1],authorityLevel:a[6],mailboxType:a[8],threadType:a[9],folderName:a[10],ongoingCallState:a[25],parentThreadKey:a[31],lastActivityTimestampMs:a[0],snippet:a[2],threadName:a[3],threadPictureUrl:a[4],needsAdminApprovalForNewParticipant:a[5],threadPictureUrlFallback:a[11],threadPictureUrlExpirationTimestampMs:a[12],removeWatermarkTimestampMs:a[13],muteExpireTimeMs:a[14],muteCallsExpireTimeMs:a[15],isAdminSnippet:a[16],snippetSenderContactId:a[17],snippetStringHash:a[20],snippetStringArgument1:a[21],snippetAttribution:a[22],snippetAttributionStringHash:a[23],cannotReplyReason:a[26],customEmoji:a[27],customEmojiImageUrl:a[28],outgoingBubbleColor:a[29],themeFbid:a[30],nullstateDescriptionText1:a[32],nullstateDescriptionType1:a[33],nullstateDescriptionText2:a[34],nullstateDescriptionType2:a[35],nullstateDescriptionText3:a[36],nullstateDescriptionType3:a[37],draftMessage:a[38],snippetHasEmoji:a[39],hasPersistentMenu:a[40],disableComposerInput:a[41],cannotUnsendReason:a[42],viewedPluginKey:a[43],viewedPluginContext:a[44],clientThreadKey:a[45],capabilities:a[46],shouldRoundThreadPicture:a[47],proactiveWarningDismissTime:a[48],isCustomThreadPicture:a[49],otidOfFirstMessage:a[50],normalizedSearchTerms:a[51],additionalThreadContext:a[52],disappearingThreadKey:c[2],isDisappearingMode:c[4],disappearingModeInitiator:a[55],unreadDisappearingMessageCount:a[56],lastMessageCtaId:a[58],lastMessageCtaType:a[59],threadDescription:a[60],unsendLimitMs:a[61],syncGroup:a[62],threadInvitesEnabled:a[63],threadInviteLink:a[64],threadInvitesEnabledV2:a[65],eventStartTimestampMs:a[66],eventEndTimestampMs:a[67],takedownState:a[68],memberCount:a[69],igFolder:a[70],inviterId:a[71],threadTags:a[72]}):b.resolve())})},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSIssueMessagesRangeQuery",["LSGetCursor","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[2]=c.i64.eq(a[2],[-1,4294967295])?[0,0]:a[2],c.islc(c.ftr(c.db.table(13).fetchDesc([[[a[0]]]]),function(b){return c.i64.eq(b.threadKey,a[0])&&(c.i64.eq(b.minTimestampMs,f)||c.i64.le(b.minTimestampMs,a[1]))}),0,c.i64.to_float([0,1])).next().then(function(e,g){var h=e.done;e=e.value;return h?d[0]=!1:(g=e.item,c.seq([function(e){return d[5]=g.threadKey,d[6]=[0,0],d[7]=g.minTimestampMs,d[8]=g.minMessageId,c.i64.eq(d[2],[0,1])?d[3]=!g.isLoadingAfter:d[3]=!g.isLoadingBefore,d[3]?c.seq([function(e){return c.i64.eq(d[2],[0,1])?d[9]=g.hasMoreAfter:d[9]=g.hasMoreBefore,d[9]?c.seq([function(a){return c.i64.eq(d[2],[0,1])?c.seq([function(a){return c.fe(c.ftr(c.db.table(13).fetch([[[d[5],d[7],d[8]]]]),function(a){return c.i64.eq(a.threadKey,d[5])&&c.i64.eq([0,0],d[6])&&c.i64.eq(a.minTimestampMs,d[7])&&a.minMessageId===d[8]}),function(a){var b=a.update;a.item;return b({isLoadingAfter:!0})})},function(a){return a=[g.maxTimestampMs,g.maxMessageId],d[10]=a[0],d[11]=a[1],a}]):c.seq([function(a){return c.fe(c.ftr(c.db.table(13).fetch([[[d[5],d[7],d[8]]]]),function(a){return c.i64.eq(a.threadKey,d[5])&&c.i64.eq([0,0],d[6])&&c.i64.eq(a.minTimestampMs,d[7])&&a.minMessageId===d[8]}),function(a){var b=a.update;a.item;return b({isLoadingBefore:!0})})},function(a){return a=[d[7],d[8]],d[10]=a[0],d[11]=a[1],a}])},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(b,e){var a=b.done;b=b.value;return a?d[12]=[0,1]:(e=b.item,d[19]=e.syncGroup,c.i64.neq(d[19],f)?d[18]=d[19]:d[18]=[0,1],d[12]=d[18])})},function(a){return c.sp(b("LSGetCursor"),d[12]).then(function(a){return a=a,d[14]=a[0],a})},function(e){return d[15]=new c.Map(),d[15].set("thread_key",a[0]),d[15].set("direction",d[2]),d[15].set("reference_timestamp_ms",d[10]),d[15].set("reference_message_id",d[11]),d[15].set("sync_group",d[12]),d[15].set("cursor",d[14]),d[16]=d[15].get("thread_key"),d[15],d[17]=c.toJSON(d[15]),c.sp(b("LSIssueNewTask"),"mrq.{}".split("{}").join(c.i64.to_string(d[16])),[0,228],d[17],f,f,[0,0],[0,0],f,f,[0,0])}]):c.resolve()},function(a){return d[4]=!0}]):c.resolve(d[4]=!1)},function(a){return d[0]=d[4]}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSetMessageDisplayedContentTypes",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[],d=[],e;return b.seq([function(d){return b.seq([function(d){return b.db.table(16).fetch([[[a[0],a[1]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?(d=[e,e],c[0]=d[0],c[1]=d[1],d):(b=a.item,d=[b.attachmentType,b.xmaLayoutType],c[0]=d[0],c[1]=d[1],d)})},function(d){return b.ftr(b.db.table(12).fetch([[[a[0],a[2],a[1]]]]),function(c){return b.i64.eq(c.threadKey,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.timestampMs,a[2])&&c.messageId===a[1]}).next().then(function(a,b){var d=a.done;a=a.value;return d?(d=[[0,0],e,e],c[3]=d[0],c[4]=d[1],c[5]=d[2],d):(b=a.item,d=[b.replySourceTypeV2,b.replySourceId,b.text],c[3]=d[0],c[4]=d[1],c[5]=d[2],d)})},function(d){return b.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[7]=e:(b=a.item,c[7]=b.customEmoji)})},function(d){return b.i64.eq(c[0],[0,6])?c[9]=[0,64]:(b.i64.eq(c[0],[0,5])?c[15]=[0,4]:(b.i64.eq(c[0],[0,3])?c[16]=[0,16384]:(b.i64.eq(c[0],[0,2])?c[17]=[0,2]:(b.i64.eq(c[0],[0,4])?c[18]=[0,2]:c[18]=a[5]?[0,4096]:[0,0],c[17]=c[18]),c[16]=c[17]),c[15]=c[16]),c[9]=c[15]),c[10]=c[5]!==e&&c[5]!==""&&c[5]!==c[7]?b.i64.or_(c[9],[0,1]):c[9],c[11]=c[7]!==e&&c[7]===c[5]?b.i64.or_(c[10],[0,128]):c[10],c[12]=b.i64.eq(c[0],[0,7])?b.i64.or_(c[11],[0,8]):c[11],c[13]=b.i64.eq(c[1],[0,0])?b.i64.or_(c[12],[0,1024]):b.i64.eq(c[1],[0,1])?b.i64.or_(c[12],[0,2048]):c[12],c[14]=b.i64.eq(c[3],[0,2])&&c[4]!==e?b.i64.or_(c[13],[0,512]):c[13],b.fe(b.ftr(b.db.table(12).fetch([[[a[0],a[2],a[1]]]]),function(c){return b.i64.eq(c.threadKey,a[0])&&b.i64.eq([0,0],[0,0])&&b.i64.eq(c.timestampMs,a[2])&&c.messageId===a[1]}),function(d){var e=d.update;d.item;return e({displayedContentTypes:a[4]?[0,32]:b.i64.eq(c[3],[0,3])?b.i64.or_(c[14],[0,8192]):c[14]})})}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSUpsertReaction",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1];b.n;var c=[];return b.seq([function(c){return b.db.table(8).put({threadKey:a[0],messageId:a[2],actorId:a[3],timestampMs:a[1],reaction:a[4],authorityLevel:a[5]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSUpsertSequenceId",["LSGetViewerFBID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[];return c.seq([function(e){return c.seq([function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(25).put({id:d[0],lastAppliedMailboxSequenceId:a[0]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSVerifyThreadExists",["LSGetViewerFBID","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(b){return[[0,7],[0,8],[0,13],[0,10],[0,11],[0,16]].some(function(b){return c.i64.eq(a[1],b)})?c.resolve((b=[!1,!1,!1],d[0]=b[0],d[1]=b[1],d[2]=b[2],b)):c.seq([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(b,e){var f=b.done;b=b.value;return f?(f=[!0,!0,!1],d[3]=f[0],d[4]=f[1],d[5]=f[2],f):(e=b.item,d[10]=e.authorityLevel,e.folderName==="other"?(f=[!0,!1,!1],d[7]=f[0],d[8]=f[1],d[9]=f[2],f):(c.i64.ge(d[10],a[4])||c.i64.eq(d[10],[0,20])&&(c.i64.eq(a[1],[0,2])||[[0,23],[0,21],[0,18]].some(function(b){return c.i64.eq(a[1],b)}))?(b=[!1,!1,!1],d[11]=b[0],d[12]=b[1],d[13]=b[2],b):(e=[!0,!1,!0],d[11]=e[0],d[12]=e[1],d[13]=e[2],e),f=[d[11],d[12],d[13]],d[7]=f[0],d[8]=f[1],d[9]=f[2],f),b=[d[7],d[8],d[9]],d[3]=b[0],d[4]=b[1],d[5]=b[2],b)})},function(a){return a=[d[3],d[4],d[5]],d[0]=a[0],d[1]=a[1],d[2]=a[2],a}])},function(e){return d[0]?(d[3]=new c.Map(),d[3].set("thread_fbid",a[0]),d[3].set("force_upsert",!1),d[3].set("use_open_messenger_transport",!1),d[3].set("sync_group",a[5]),d[3].set("metadata_only",!1),d[4]=d[3].get("thread_fbid"),d[3],d[5]=c.toJSON(d[3]),c.sp(b("LSIssueNewTask"),c.i64.to_string(d[4]),[0,209],d[5],f,f,[0,0],[0,0],f,f,[0,0])):c.resolve()},function(e){return d[1]?c.seq([function(b){return d[3]=[64,1083495711],d[4]=[0,0],d[5]=[0,0],c.fe(c.ftr(c.db.table(9).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.threadKey,a[0])&&c.i64.lt(b.authorityLevel,a[4])}),function(a){return a["delete"]()})},function(b){return c.db.table(9).add({threadKey:a[0],mailboxType:[0,0],threadType:a[1],folderName:a[2],lastReadWatermarkTimestampMs:[0,0],removeWatermarkTimestampMs:[-1,4294967295],ongoingCallState:[0,0],parentThreadKey:a[3],authorityLevel:a[4],capabilities:d[3],capabilities2:d[4],capabilities3:d[5],unsendLimitMs:[-1,4294967295]})},function(e){return c.i64.eq(a[1],[0,1])?c.seq([function(b){return c.fe(c.ftr(c.db.table(14).fetch([[[a[0],a[0]]]]),function(b){return c.i64.eq(b.threadKey,a[0])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(b.contactId,a[0])&&c.i64.lt(b.authorityLevel,a[4])}),function(a){return a["delete"]()})},function(b){return c.db.table(14).add({threadKey:a[0],contactId:a[0],readWatermarkTimestampMs:[0,0],deliveredWatermarkTimestampMs:[0,0],authorityLevel:a[4],isModerator:!1})},function(a){return c.sp(b("LSGetViewerFBID")).then(function(a){return a=a,d[6]=a[0],a})},function(b){return c.fe(c.ftr(c.db.table(14).fetch([[[a[0],d[6]]]]),function(b){return c.i64.eq(b.threadKey,a[0])&&c.i64.eq([0,0],[0,0])&&c.i64.eq(b.contactId,d[6])&&c.i64.lt(b.authorityLevel,a[4])}),function(a){return a["delete"]()})},function(b){return c.db.table(14).add({threadKey:a[0],contactId:d[6],readWatermarkTimestampMs:[0,0],deliveredWatermarkTimestampMs:[0,0],authorityLevel:a[4],isModerator:!1})}]):c.resolve()}]):c.resolve()},function(b){return d[2]?c.fe(c.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({authorityLevel:a[4]})}):c.resolve()}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSVerifyThreadRowExists",["LSVerifyThreadExists"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[];return c.seq([function(d){return c.sp(b("LSVerifyThreadExists"),a[0],a[1]==null?[0,1]:a[1],"inbox",[0,0],[0,40],a[2])},function(a){return c.resolve(d)}])}e.exports=a}),null); __d("MWChatOpenSecureTabForUserCallback.bs",["bs_curry","cr:614"],(function(a,b,c,d,e,f,g){"use strict";function a(a,d,e){if(!(b("cr:614")==null))return c("bs_curry")._3(b("cr:614").openChatTab,a,d,e)}g.$MAWChatOpenTabForUser$requireCond=b("cr:614");g.openChatTab=a}),98); __d("LSDict",["regeneratorRuntime","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){a.tag="ls-array";return a}a=function(){function a(a){this.size=0;var b=new Map(Array.from(a||[]).map(function(a){var b=a[0];a=a[1];return[JSON.stringify(b),a]}));this.$1=b;Object.defineProperties(this,{size:{get:function(){return b.size}}})}var d=a.prototype;d.get=function(a){return this.$1.get(JSON.stringify(a))};d.set=function(a,b){this.$1.set(JSON.stringify(a),b);return this};d["delete"]=function(a){return this.$1["delete"](JSON.stringify(a))};d.clear=function(){return this.$1.clear()};d.forEach=function(a){var b=this;this.$1.forEach(function(c,d){return a(c,JSON.parse(d),b)})};d.has=function(a){return this.$1.has(JSON.stringify(a))};d.entries=b("regeneratorRuntime").mark(function a(){var c,d,e,f,g,h,i;return b("regeneratorRuntime").wrap(function(a){while(1)switch(a.prev=a.next){case 0:c=this.$1.entries(),d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();case 1:if(!d){a.next=7;break}if(!(e>=c.length)){a.next=4;break}return a.abrupt("break",18);case 4:f=c[e++];a.next=11;break;case 7:e=c.next();if(!e.done){a.next=10;break}return a.abrupt("break",18);case 10:f=e.value;case 11:g=f;h=g[0];i=g[1];a.next=16;return[JSON.parse(h),i];case 16:a.next=1;break;case 18:case"end":return a.stop()}},a,this)});d.keys=function(){return h(Array.from(this.$1.keys()).map(function(a){return JSON.parse(a)}))};d.values=function(){return this.$1.values()};a.fromObject=function(b){return new a(Object.entries(b))};a.shapeToRecord=function(a){return Array.from(a.entries()).reduce(function(a,b){var d=b[0];b=b[1];if(typeof d!=="string")throw c("unrecoverableViolation")("Cannot convert dicts with mixed keys to records","messenger_web_product");return babelHelpers["extends"]({},a,(a={},a[d]=b,a))},{})};return a}();g["default"]=a}),98); __d("LSIterationHelpers",["FBLogger","LSDbKeyComparer","LSDict","ReStoreVaulting","bs_caml_int64"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b=[];while(a!==0)b.push(a.hd),a=a.tl;return b}function i(a){return a.reduceRight(function(a,b){return{hd:b,tl:a}},0)}function j(a,b,c){c===void 0&&(c="asc");var e=a.entries(new WeakMap(),c);function f(){var a;return a={},a[typeof Symbol==="function"?Symbol.asyncIterator:"@@asyncIterator"]=f,a.next=async function(){var a=await e.next();outer:while(!a.done){var f=async function(f){var g=b[f]||{},j=g.end;g=g.start;var k=h(a.value[0]),l=k.slice(0,f);if(g){var m=d("LSDbKeyComparer").compareValue(k[f],g[0]);if(m*(c==="asc"?1:-1)=0;i--)h={hd:b.value.item[c[i]],tl:h};if(e!==void 0&&d("LSDbKeyComparer").compareKey(e,h)!==0){for(var i=g.sort(f),j=Array.isArray(i),k=0,i=j?i:i[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l;if(j){if(k>=i.length)break;l=i[k++]}else{k=i.next();if(k.done)break;l=k.value}l=l;yield l}g=[]}b.done||g.push(b.value);e=h;b=(yield babelHelpers.awaitAsyncGenerator(a.next()))}if(g.length)for(l=g.sort(f),k=Array.isArray(l),j=0,l=k?l:l[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(k){if(j>=l.length)break;i=l[j++]}else{j=l.next();if(j.done)break;i=j.value}h=i;yield h}});return function(){return b.apply(this,arguments)}}();return g()}async function e(a){var b=0,d=await a.next();while(!d.done)b++,d=await a.next();return c("bs_caml_int64").of_int32(b)}function f(a,b){return{forEach:async function(d){var e=await m(a);e=e.reduce(function(a,c){c=c.item[b];var d=(a.get(c)||0)+1;return a.set(c,d)},new(c("LSDict"))());for(var e=e.entries(),f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h,i;if(f){if(g>=e.length)break;i=e[g++]}else{g=e.next();if(g.done)break;i=g.value}i=i;var j=i[0];i=i[1];await d((h={},h[b]=j,h.group_count=c("bs_caml_int64").of_int32(i),h))}}}}function n(a,b,c){return{delete:function(){return c.delete(a)},item:b,update:function(d){return c.upsert(a,babelHelpers.extends({},b,d))}}}function o(a,b){return p.apply(this,arguments)}function p(){p=babelHelpers.wrapAsyncGenerator(function*(a,b){var c=(yield babelHelpers.awaitAsyncGenerator(a.next()));while(!c.done)yield c.value,c=(yield babelHelpers.awaitAsyncGenerator(a.next()));c=(yield babelHelpers.awaitAsyncGenerator(b.next()));while(!c.done)yield c.value,c=(yield babelHelpers.awaitAsyncGenerator(b.next()))});return p.apply(this,arguments)}function q(a,b,c){return r.apply(this,arguments)}function r(){r=babelHelpers.wrapAsyncGenerator(function*(a,b,c){var e=(yield babelHelpers.awaitAsyncGenerator(a.next())),f=(yield babelHelpers.awaitAsyncGenerator(b.next()));while(!e.done&&!f.done){var g=d("LSDbKeyComparer").compareKey(e.value[0],f.value[0]);g===0?(yield e.value,e=(yield babelHelpers.awaitAsyncGenerator(a.next())),f=(yield babelHelpers.awaitAsyncGenerator(b.next()))):g*(c==="asc"?1:-1)<0?(yield e.value,e=(yield babelHelpers.awaitAsyncGenerator(a.next()))):(yield f.value,f=(yield babelHelpers.awaitAsyncGenerator(b.next())))}while(!e.done)yield e.value,e=(yield babelHelpers.awaitAsyncGenerator(a.next()));while(!f.done)yield f.value,f=(yield babelHelpers.awaitAsyncGenerator(b.next()))});return r.apply(this,arguments)}function s(a,b,c,e,f,g){var h=new Set(),k=a.length>1,l=a.length===1&&a[0][1]===void 0,m=a.map(function(a){var h=a[0],k=a[1];return h.map(function(a){e.key_lookup===!0&&a.length!==0;e.table_scan===!0&&a.length===0;var h=a.map(function(a){return g(a,b)});a=h.length===(k===void 0?c.primaryKeyIds:c.indexes[k]).length&&h.every(function(a){var b=a.start;a=a.end;return b&&a&&b[0]===a[0]&&b[1]===0&&a[1]===0});if(a){a=function a(){var b,e=!1;return b={},b[typeof Symbol==="function"?Symbol.asyncIterator:"@@asyncIterator"]=a,b.next=async function(){if(e)return{done:!0};e=!0;var a=i(h.map(function(a){a=a.start;return a[0]})),b=await (k===void 0?f:f.index(k)).get(a);if(!b)return{done:!0};b=d("ReStoreVaulting").maybeUnvaultDbRow(b,c.name);return{value:[a,b],done:!1}},b};return a()}return j(k===void 0?f:f.index(k),h,b)})}).flat().reduce(function(c,d){return a.length>1?o(c,d):q(c,d,b)});function p(){var a;return a={},a[typeof Symbol==="function"?Symbol.asyncIterator:"@@asyncIterator"]=p,a.next=async function(){var a,b,d,e=await m.next();while(!e.done){var g=e.value;b=g[0];d=g[1];a=l?b:c.primaryKeyIds.reduceRight(function(a,b){return{hd:d[b],tl:a}},0);if(k){g=JSON.stringify(a);if(h.has(g)){e=await m.next();continue}h.add(g)}break}return e.done||a===void 0||d===void 0?{done:!0}:{done:!1,value:n(a,d,f)}},a}return p()}g.filter=k;g.slice=l;g.forEach=a;g.toArray=m;g.sortBy=b;g.count=e;g.groupBy=f;g.fetch=s}),98); __d("LSJson",["LSDict","bs_caml_int64","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=512;function i(a,b,e){b===void 0&&(b=0);e===void 0&&(e="");if(b>h)throw c("unrecoverableViolation")("recursion limit exceeded","messenger_comet");if(typeof a==="string"||typeof a==="number")return JSON.stringify(a);else if(typeof a==="boolean")return a?"1":"0";else if(a===void 0)return"null";else if(typeof a==="object")if(Array.isArray(a))return a.tag==="ls-array"?"["+a.map(function(a,c){return i(a,b+1,e+"/"+c.toString())}).join(",")+"]":d("bs_caml_int64").to_string(a);else if(a instanceof c("LSDict"))return"{"+Array.from(a.entries()).map(function(a){var d=a[0];a=a[1];if(typeof d==="string")return JSON.stringify(d)+":"+i(a,b+1,e+"/"+d);else throw c("unrecoverableViolation")("key must be a string","messenger_comet")}).join(",")+"}";throw c("unrecoverableViolation")("type not supported: "+(a===null?"null":typeof a)+", path: "+e,"messenger_comet")}g.stringify=i}),98); __d("LSLogHistory",["performance"],(function(a,b,c,d,e,f,g){"use strict";var h=[];function a(){return h}function b(){h=[]}function d(a,b){var d;c("performance").timing!=null?d=Math.round(c("performance").timing.navigationStart+c("performance").now()):d=Date.now();h.push([d.toString(),b,"lightspeed_log","lightspeed_log_event",a].join(" | "))}g.getEntries=a;g.clearEntries=b;g.log=d}),98); __d("LS",["FBLogger","I64","LSDbKeyComparer","LSDict","LSIterationHelpers","LSJson","LSLogHistory","ODS","base64-js","bs_caml","bs_caml_format","bs_caml_int64","cr:3109","emptyFunction","gkx","qpl","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["2"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["0"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["0"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["2"]);k=function(){return a};return a}var l="LS_WEB";function m(a){return a.name.match(/secure_|inbox(?!_)/i)}var n=babelHelpers.extends({},c("bs_caml_int64"),{eq:function(a,b){return a==null&&b==null||a!=null&&b!=null&&c("bs_caml").i64_eq(a,b)},neq:function(a,b){return a==null&&b!=null||a!=null&&b==null||a!=null&&b!=null&&c("bs_caml").i64_neq(a,b)},lt:c("bs_caml").i64_lt,gt:c("bs_caml").i64_gt,le:c("bs_caml").i64_le,ge:c("bs_caml").i64_ge,min:c("bs_caml").i64_min,max:c("bs_caml").i64_max,to_int32:function(a){return a==null?a:c("bs_caml_int64").to_int32(a)},to_string:function(a){return a==null?a:c("bs_caml_int64").to_string(a)},from_string:function(a){try{return c("bs_caml_format").caml_int64_of_string(a)}catch(b){throw c("unrecoverableViolation")('Unable to cast "'+a+'" to int64',"messenger_comet")}},random:function(){var b=a.crypto||a.msCrypto;b=Array.from(b.getRandomValues(new Uint32Array(2)));b[0]>>>=1;return b}});function o(a){return c("base64-js").toByteArray(a).buffer}var p={to_string:function(a){if(a==null)return void 0;var b=new TextDecoder();return b.decode(a)},of_string:function(a){if(a==null)return void 0;var b=new TextEncoder();return b.encode(a).buffer},eq:function(a,b){if(a==null&&b==null)return!0;if(a==null||b==null)return!1;a=new Uint8Array(a);b=new Uint8Array(b);if(a.length!==b.length)return!1;for(var c=0;c=0},gt:function(a,b){return p.compareTo(a,b)>0}};function q(a){if(a.length!==1)throw c("unrecoverableViolation")("only literal strings supported","messenger_web_product");a=a[0];var b=parseInt(a.substr(-8),16);a=parseInt(a.substr(0,a.length-8),16);return d("I64").asI64([a>>>1^-(b&1),((b>>>1)+(a&1)*2147483648^-(b&1))>>>0])}function r(a,b){if(typeof a==="object"&&!Array.isArray(a)){var d,e;if(b==="asc"){Object.prototype.hasOwnProperty.call(a,"gt")&&(d=[a.gt,1]);if(Object.prototype.hasOwnProperty.call(a,"gte")){if(d!==void 0)throw c("unrecoverableViolation")("Cannot specify both gt and gte","messenger_web_product");d=[a.gte,0]}Object.prototype.hasOwnProperty.call(a,"lt")&&(e=[a.lt,1]);if(Object.prototype.hasOwnProperty.call(a,"lte")){if(e!==void 0)throw c("unrecoverableViolation")("Cannot specify both lt and lte","messenger_web_product");e=[a.lte,0]}}else{Object.prototype.hasOwnProperty.call(a,"lt")&&(d=[a.lt,1]);if(Object.prototype.hasOwnProperty.call(a,"lte")){if(d!==void 0)throw c("unrecoverableViolation")("Cannot specify both lt and lte","messenger_web_product");d=[a.lte,0]}Object.prototype.hasOwnProperty.call(a,"gt")&&(e=[a.gt,1]);if(Object.prototype.hasOwnProperty.call(a,"gte")){if(e!==void 0)throw c("unrecoverableViolation")("Cannot specify both gt and gte","messenger_web_product");e=[a.gte,0]}}return{start:d,end:e}}return{start:[a,0],end:[a,0]}}function s(a,b,c){var e=a.table(b.name);return{add:function(a){return e.add(a)},fetch:function(){for(var a=arguments.length,f=new Array(a),g=0;g0?a:b}function b(a,b){return d("LSDbKeyComparer").compareValue([a[0],-a[1]],[b[0],-b[1]])<0?a:b}for(var c=arguments.length,e=new Array(c),f=0;f1?f-1:0),h=1;h2?g-2:0),i=2;i1?o-1:0),q=1;q=a.length)break;i=a[g++]}else{g=a.next();if(g.done)break;i=g.value}i=i;var j=i.name;j!=null&&!(j in h)&&c.push(i)}var k=b("Promise").all(c.map(function(e){var c,a;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:c=e.name;if(!(c==null)){f.next=3;break}return f.abrupt("return");case 3:h[c]={load:function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(k);case 2:return a.abrupt("return",h[c]);case 3:case"end":return a.stop()}},null,this)}};f.next=6;return b("regeneratorRuntime").awrap(d("RelayFBModuleLoader").load(e.value));case 6:a=f.sent,h[c]=a;case 8:case"end":return f.stop()}},null,this)})).then(function(a){});return k}function i(a,b,c){a.loadModules.call(a,b,function(){for(var a=arguments.length,b=new Array(a),d=0;d=a.length)break;l=a[k++]}else{k=a.next();if(k.done)break;l=k.value}l=l;l in h||f.set(l,"LS"+j(l))}for(k=(l=d)!=null?l:[],g=Array.isArray(k),a=0,k=g?k:k[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(g){if(a>=k.length)break;d=k[a++]}else{a=k.next();if(a.done)break;d=a.value}l=d;d=l+".bs";d in h||f.set(d,"LS"+j(l)+".nop")}for(l=(d=e)!=null?d:[],a=Array.isArray(l),g=0,l=a?l:l[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(a){if(g>=l.length)break;k=l[g++]}else{g=l.next();if(g.done)break;k=g.value}e=k;e in h||f.set(e,"LS"+j(e))}if(f.size===0)return b("Promise").resolve();var m=new(b("Promise"))(function(a){var d={},e=[],g=function(){if(k){if(l>=j.length)return"break";n=j[l++]}else{l=j.next();if(l.done)return"break";n=l.value}var a=n,c=a[0];a=a[1];d[a]={be:1,r:[]};e.push(a);h[c]={load:function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(m);case 2:return a.abrupt("return",h[c]);case 3:case"end":return a.stop()}},null,this)}}};for(var j=f,k=Array.isArray(j),l=0,j=k?j:j[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var n,o=g();if(o==="break")break}c("Bootloader").handlePayload({compMap:d,consistency:{rev:c("SiteData").client_revision}});i(c("Bootloader"),e,function(b){Array.from(f.entries()).forEach(function(a,c){var d=a[0];a[1];h[d]=b[c]}),a()})});return m}g.cachedModules=h;g.downloadRelayDependencies=a;g.downloadBootloaderDependencies=e}),98); __d("LS.bs",["LS","LSDynamicDependencies","LSLocalizedStrings","LSLocalizedStringsV2","LSMetadata"],(function(a,b,c,d,e,f){"use strict";var g=b("LSLocalizedStringsV2"),h=b("LSLocalizedStrings"),i=b("LSDynamicDependencies").cachedModules,j=b("LSMetadata").metadata;function a(a){return b("LS")(1,j,i,h,g,a,0)}c=b("LSDynamicDependencies").cachedModules;f.make=a;f.cachedModules=c}),null); __d("LSDatabaseType.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];b=[0,4];var g=[0,5],h=[0,6],i=[0,7],j=[0,8],k=[0,9],l=[0,10],m=[0,11],n=[0,12],o=[0,13],p=[0,14],q=[0,15],r=[0,16],s=[0,17],t=[0,18],u=[0,19],v=[0,20],w=[0,21],x=[0,22],y=[0,23],z=[0,24],A=[0,25],B=[0,26],C=[0,27],D=[0,28],E=[0,29],F=[0,30],G=[0,31],H=[0,32],I=[0,33],J=[0,34],K=[0,35],L=[0,36],M=[0,37],N=[0,38],O=[0,39],P=[0,40],Q=[0,41],R=[0,42],S=[0,43],T=[0,44],U=[0,45],V=[0,46],W=[0,47],X=[0,48],Y=[0,49],Z=[0,50],$=[0,51],aa=[0,52],ba=[0,53],ca=[0,54],da=[0,55],ea=[0,56],fa=[0,57],ga=[0,59],ha=[0,60],ia=[0,61],ja=[0,62],ka=[0,63],la=[0,64],ma=[0,65],na=[0,66],oa=[0,67],pa=[0,68],qa=[0,69],ra=[0,70],sa=[0,71],ta=[0,72],ua=[0,73],va=[0,74],wa=[0,75],xa=[0,76],ya=[0,77],za=[0,78],Aa=[0,79],Ba=[0,80],Ca=[0,81],Da=[0,82],Ea=[0,84],Fa=[0,85],Ga=[0,86],Ha=[0,87],Ia=[0,88],Ja=[0,89],Ka=[0,90],La=[0,91],Ma=[0,92],Na=[0,93],Oa=[0,94],Pa=[0,95],Qa=[0,96],Ra=[0,97],Sa=[0,98],Ta=[0,99],Ua=[0,100],Va=[0,101],Wa=[0,102],Xa=[0,103],Ya=[0,104],Za=[0,105],$a=[0,106],ab=[0,107],bb=[0,108],cb=[0,109],db=[0,110],eb=[0,111],fb=[0,112],gb=[0,113],hb=[0,114],ib=[0,115],jb=[0,116],kb=[0,117],lb=[0,118],mb=[0,119],nb=[0,120],ob=[0,121],pb=[0,122],qb=[0,123],rb=[0,124],sb=[0,125],tb=[0,126],ub=[0,127],vb=[0,128],wb=[0,129],xb=[0,130],yb=[0,131],zb=[0,132],Ab=[0,133],Bb=[0,134],Cb=[0,135],Db=[0,136];f.test=a;f.mailbox=c;f.contact=d;f.appAlerts=e;f.core=b;f.stories=g;f.presence=h;f.ranking=i;f.experiment=j;f.search=k;f.securemailbox=l;f.inboxAds=m;f.sticker=n;f.omnistoreRevisionTest=o;f.frx=p;f.payments=q;f.settings=r;f.gif=s;f.arEffects=t;f.platformExtensionSdk=u;f.businessTab=v;f.composerMenus=w;f.experimentalContactPhoneNumber=x;f.forwardContents=y;f.typing=z;f.qp=A;f.inthreadbanner=B;f.logSampling=C;f.threadTheme=D;f.mediaSend=E;f.contactUpload=F;f.aloha=G;f.omnistoreSimpleTest=H;f.booking=I;f.oneTimeSyncTest=J;f.threadEmoji=K;f.universalLinks=L;f.counters=M;f.emptyTest=N;f.accountSettings=O;f.videoChatLink=P;f.zeroRating=Q;f.connectivity=R;f.switchAccountBadging=S;f.emergencyPoll=T;f.cowatch=U;f.switchAccountProfiles=V;f.$$location=W;f.syncWatchdog=X;f.bloks=Y;f.mediaEditing=Z;f.pushNotifications=$;f.switchAccountBadgingRealtime=aa;f.dasmDebug=ba;f.testTwo=ca;f.dataTrace=da;f.mediaSharing=ea;f.pluginExtensions=fa;f.localUserSettings=ga;f.groups=ha;f.dabl=ia;f.linkedGroups=ja;f.fxcal=ka;f.rooms=la;f.proactiveWarnings=ma;f.messagingAds=na;f.supportInbox=oa;f.coreClient=pa;f.threadCoPresence=qa;f.marketplace=ra;f.carrierMessaging=sa;f.notificationsClient=ta;f.cat=ua;f.composerSettings=va;f.groupThreadImage=wa;f.coplayMetadata=xa;f.searchUserGroups=ya;f.tutorial=za;f.paidAds=Aa;f.avatarsCoPresence=Ba;f.graphql=Ca;f.transcribe=Da;f.ixtServerTrigger=Ea;f.novi=Fa;f.testFramework=Ga;f.broker=Ha;f.openMessenger=Ia;f.anonymousCredentials=Ja;f.mlModel=Ka;f.localAuth=La;f.soundBite=Ma;f.encryptedBackups=Na;f.businessOrderManagement=Oa;f.e2eeMessagingMetadataMailbox=Pa;f.communitiesMailbox=Qa;f.mostLikelyToPollQuestions=Ra;f.breakoutSessions=Sa;f.messagingNotificationConfigs=Ta;f.sandboxSelector=Ua;f.gamesBotThread=Va;f.atcDaemon=Wa;f.coPresence=Xa;f.communityExclusive=Ya;f.clientOnlySample=Za;f.urlBlackhole=$a;f.sharing=ab;f.encryptedBackupsVersioning=bb;f.rpPolls=cb;f.everythingTogether=db;f.immersiveModesSpaces=eb;f.inAppPurchaseKit=fb;f.decentralizedTypes=gb;f.armadilloDevice=hb;f.staticEntryPoint=ib;f.giphyCategory=jb;f.communityMessagingPresence=kb;f.reactionsV2=lb;f.threadSubscription=mb;f.communityMessagingSearch=nb;f.communityMessagingDiscovery=ob;f.communityMessagingTrending=pb;f.widget=qb;f.messengerCallsTab=rb;f.botSuggestions=sb;f.testThree=tb;f.unifiedBusinessInboxIgdMailbox=ub;f.testOmnistoreBatchable=vb;f.contentExplorer=wb;f.unifiedBusinessInboxWaMailbox=xb;f.lsStoriesParticipantSettingsV2=yb;f.lsFeatureLimits=zb;f.lsUniversalUserPrefs=Ab;f.step=Bb;f.workroomsCoPresence=Cb;f.tam=Db}),null); __d("LSMailboxMessagesRangeQueryDirection.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").neg_one;c=b("bs_caml_int64").zero;d=b("bs_caml_int64").one;f.beforeLegacy=a;f.before=c;f.after=d}),null); __d("LSBitOffset.bs",["LSBitFlag.bs","bs_caml_int64"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){a=c("bs_caml_int64").lsl_(c("bs_caml_int64").one,c("bs_caml_int64").to_int32(a));return d("LSBitFlag.bs").set(a,b)}function b(a,b){a=c("bs_caml_int64").lsl_(c("bs_caml_int64").one,c("bs_caml_int64").to_int32(a));return d("LSBitFlag.bs").clear(a,b)}g.set=a;g.clear=b;g.empty=c("bs_caml_int64").zero}),98); __d("LSContactBitOffset.bs",["LSBitFlag.bs","LSBitOffset.bs","bs_belt_Option","bs_caml","bs_caml_int64"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){if(c("bs_caml").i64_ge(a,[0,64])){var e=b.capabilities2;if(e===void 0)return;e=c("bs_caml_int64").sub(a,[0,64]);e=c("bs_caml_int64").lsl_(c("bs_caml_int64").one,c("bs_caml_int64").to_int32(e));return d("LSBitFlag.bs").has(e,c("bs_belt_Option").getWithDefault(b.capabilities2,d("LSBitOffset.bs").empty))}e=b.capabilities;if(e===void 0)return;e=c("bs_caml_int64").lsl_(c("bs_caml_int64").one,c("bs_caml_int64").to_int32(a));return d("LSBitFlag.bs").has(e,c("bs_belt_Option").getWithDefault(b.capabilities,d("LSBitOffset.bs").empty))}b=a;g.has=b}),98); __d("LSContactCapabilityBitOffset.bs",["bs_caml_int64"],(function(a,b,c,d,e,f){"use strict";a=b("bs_caml_int64").zero;c=b("bs_caml_int64").one;d=[0,2];e=[0,3];b=[0,4];var g=[0,5],h=[0,6],i=[0,7],j=[0,8],k=[0,9],l=[0,10],m=[0,11],n=[0,12],o=[0,13],p=[0,14],q=[0,15],r=[0,16],s=[0,17],t=[0,18],u=[0,19],v=[0,20],w=[0,21],x=[0,22],y=[0,23],z=[0,24],A=[0,25],B=[0,26],C=[0,27],D=[0,28],E=[0,29],F=[0,64],G=[0,65],H=[0,66],I=[0,67],J=[0,68],K=[0,69],L=[0,70],M=[0,71],N=[0,72],O=[0,73],P=[0,74],Q=[0,75],R=[0,76],S=[0,77],T=[0,78],U=[0,79],V=[0,80],W=[0,81];f.message=a;f.replyMessage=c;f.joinGroup=d;f.block=e;f.see=b;f.seeFacebookProfile=g;f.payment=h;f.camera=i;f.mediaPicker=j;f.sticker=k;f.gif=l;f.audioClips=m;f.sharedMedia=n;f.reactions=o;f.seenHeads=p;f.threadDetails=q;f.rtcVideoCall=r;f.rtcVoiceCall=s;f.threadFeedbackAndReport=t;f.goToSecretConversation=u;f.makeAdmin=v;f.removeFromGroup=w;f.removeAsAdmin=x;f.verified=y;f.disappearingMode=z;f.seeMessage=A;f.pseudoBlock=B;f.pushable=C;f.messageBlockPlaced=D;f.facebookBlockPlaced=E;f.viewerIsUnconnected=F;f.pagePlatformBot=G;f.restrictPlaced=H;f.isXacEligible=I;f.isGroupsXacEligible=J;f.isGroupsXacCallingEligible=K;f.isE2eeOnly=L;f.isEligibleForSafetyNotice=M;f.novi=N;f.isContactShareable=O;f.isHidden=P;f.isThreadCutoverUser=Q;f.hasCutoverThread=R;f.isCommunityBotPage=S;f.isNotSearchable=T;f.canUpsellVoicemail=U;f.defaultE2eeThreads=V;f.incallCaptions=W}),null); __d("ReQL.bs",["ReQL","bs_js_dict","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var d=function a(b){var d=b.NAME;if(d!=="range")if(d==="lessThan")return c("bs_js_dict").fromArray([["lt",b.VAL]]);else if(d==="greaterThan")return c("bs_js_dict").fromArray([["gt",b.VAL]]);else if(d==="greaterThanOrEqual")return c("bs_js_dict").fromArray([["gte",b.VAL]]);else return c("bs_js_dict").fromArray([["lte",b.VAL]]);d=b.VAL;return c("bs_js_dict").fromArray(c("bs_js_dict").entries(a(d[0])).concat(c("bs_js_dict").entries(a(d[1]))))};return a.bounds(d(b))}function b(a,b){if(!b)return c("unrecoverableViolation")("only support 5","messenger_web_product");var d=b.tl;b=b.hd;if(!d)return a.getKeyRange(b);var e=d.tl;d=d.hd;if(!e)return a.getKeyRange(b,d);var f=e.tl;e=e.hd;if(!f)return a.getKeyRange(b,d,e);var g=f.tl;f=f.hd;if(g)if(g.tl)return c("unrecoverableViolation")("only support 5","messenger_web_product");else return a.getKeyRange(b,d,e,f,g.hd);else return a.getKeyRange(b,d,e,f)}function e(a,b){return a.filter(b)}function f(a,b){return a.map(b)}function h(a){return d("ReQL").toArrayAsync(a)}function i(a,b){return d("ReQL").mergeJoin(a,b)}function j(a,b){return d("ReQL").leftJoin(a,b)}function k(a,b){return a.take(b)}function l(a){return d("ReQL").firstAsync(a)}function m(a){return d("ReQL").firstExnAsync(a)}function n(a){return d("ReQL").fromTableAscending(a)}function o(a){return d("ReQL").fromTableDescending(a)}function p(a){return d("ReQL").fromTableAscending(a)}function q(a){return d("ReQL").fromTableDescending(a)}e=e;f=f;h=h;i=i;j=j;a=a;b=b;k=k;l=l;m=m;n=n;o=o;p=p;q=q;g.filter=e;g.map=f;g.toArray=h;g.mergeJoin=i;g.leftJoin=j;g.bounds=a;g.getKeyRange=b;g.take=k;g.first=l;g.firstExn=m;g.fromTableAscending=n;g.fromTableDescending=o;g.fromIndexAscending=p;g.fromIndexDescending=q}),98); __d("MAWVerifyThreadCutover.bs",["LSContactBitOffset.bs","LSContactCapabilityBitOffset.bs","MAWGating","Promise","ReQL.bs","bs_belt_Option","bs_caml_format"],(function(a,b,c,d,e,f,g){"use strict";function h(a,e){if(d("MAWGating").isThreadLevelCutoverEnabled())return a.then(function(a){var f=d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("cutover_threads")),{hd:e,tl:0})).then(c("bs_belt_Option").isSome);a=d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(a.table("contacts")),{hd:e,tl:0})).then(function(a){return a});return b("Promise").all([f,a]).then(function(a){var b=c("bs_belt_Option").mapWithDefault(a[1],!1,function(a){return c("bs_belt_Option").getWithDefault(d("LSContactBitOffset.bs").has(d("LSContactCapabilityBitOffset.bs").hasCutoverThread,a),!1)});if(a[0])return!0;else return b})});else return b("Promise").resolve(!1)}function a(a,d){if(d==null)return b("Promise").resolve(!1);else return h(a,c("bs_caml_format").caml_int64_of_string(d))}g.verifyThreadCutover=h;g.verifyThreadCutoverWithStringInput=a}),98); __d("MWLSPreloadThreadForContact.bs",["LS.bs","LSDatabaseDeferred.bs","LSDatabaseType.bs","LSIssueMessagesRangeQuery","LSMailboxMessagesRangeQueryDirection.bs","LSVerifyThreadRowExists","MAWVerifyThreadCutover.bs","ReQL.bs","bs_caml_format","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b=d("LSDatabaseDeferred.bs").db.then(function(b){return b.runInTransaction(function(b){var e=c("bs_caml_format").caml_int64_of_string(a);return d("MAWVerifyThreadCutover.bs").verifyThreadCutover(d("LSDatabaseDeferred.bs").db,e).then(function(a){if(a)return;else return d("ReQL.bs").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("messages_ranges_v2__generated")),{hd:e,tl:0})).then(function(a){if(a!==void 0)if(a.minMessageId===a.maxMessageId&&a.minMessageId!=="")return c("LSIssueMessagesRangeQuery")(e,a.minTimestampMs,d("LSMailboxMessagesRangeQueryDirection.bs").before,d("LS.bs").make(b));else return;else return c("LSVerifyThreadRowExists")(e,void 0,d("LSDatabaseType.bs").mailbox,d("LS.bs").make(b))})})},"readwrite")});c("promiseDone")(b)}function a(){return h}g.verifyThreadExists=h;g.usePreloaderForUser=a}),98);