@wujie-shell/core 1.0.1 → 1.0.3

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.
Files changed (68) hide show
  1. package/README.md +12 -3
  2. package/bin/wujie-shell.mjs +22 -1
  3. package/dist/bin/wujie-shell.mjs +1 -1
  4. package/dist/src/agents/bundled-agent-skills.mjs +1 -1
  5. package/dist/src/agents/bundled-agents.mjs +1 -1
  6. package/dist/src/agents/runtime-config.mjs +1 -0
  7. package/dist/src/chat/media-archive.mjs +1 -1
  8. package/dist/src/chat/queue.mjs +1 -1
  9. package/dist/src/common/cron-session-key.mjs +1 -0
  10. package/dist/src/common/diagnostics.mjs +1 -1
  11. package/dist/src/common/logging.mjs +1 -1
  12. package/dist/src/common/runtime-logger.mjs +1 -1
  13. package/dist/src/common/sqlite-paths.mjs +1 -0
  14. package/dist/src/common/user-events.mjs +1 -1
  15. package/dist/src/common/utils.mjs +1 -1
  16. package/dist/src/config/controller.mjs +1 -1
  17. package/dist/src/connectors/config-utils.mjs +1 -1
  18. package/dist/src/connectors/constants.mjs +1 -1
  19. package/dist/src/connectors/controller.mjs +1 -1
  20. package/dist/src/connectors/kdocs-cli.mjs +1 -1
  21. package/dist/src/connectors/lark-cli.mjs +1 -0
  22. package/dist/src/electron/main.mjs +1 -1
  23. package/dist/src/electron/preload.mjs +1 -1
  24. package/dist/src/electron/protocol-url-state.mjs +1 -0
  25. package/dist/src/events/domain-event-journal.mjs +1 -0
  26. package/dist/src/files/generated-files-store.mjs +1 -1
  27. package/dist/src/files/handlers.mjs +1 -1
  28. package/dist/src/gateway/chat-delta.mjs +1 -1
  29. package/dist/src/gateway/controller.mjs +1 -1
  30. package/dist/src/gateway/request-id-title-events.mjs +1 -0
  31. package/dist/src/gateway/ws-client.mjs +1 -1
  32. package/dist/src/index.mjs +1 -1
  33. package/dist/src/log-reporting/handlers.mjs +1 -1
  34. package/dist/src/log-reporting/report-logs.mjs +1 -1
  35. package/dist/src/models/handlers.mjs +1 -1
  36. package/dist/src/preferences/store.mjs +1 -1
  37. package/dist/src/request-id/handlers.mjs +1 -0
  38. package/dist/src/request-id/runtime-bridge.mjs +1 -0
  39. package/dist/src/request-id/session-store.mjs +1 -0
  40. package/dist/src/request-id/title.mjs +1 -0
  41. package/dist/src/runtime/cron-missed-run-policy.mjs +1 -0
  42. package/dist/src/runtime/index.mjs +1 -1
  43. package/dist/src/runtime/patch-channel-plugin-runtime.mjs +1 -1
  44. package/dist/src/runtime/patch-chat-history-mixed-tool-content.mjs +1 -1
  45. package/dist/src/runtime/patch-provider-request-id-header.mjs +1 -0
  46. package/dist/src/runtime/patch-qqbot-outbound-session-route.mjs +1 -0
  47. package/dist/src/runtime/patch-request-id-title-runtime.mjs +1 -0
  48. package/dist/src/runtime/patch-session-store-sqlite.mjs +1 -1
  49. package/dist/src/runtime/patch-weixin-outbound-session-route.mjs +1 -0
  50. package/dist/src/runtime/plugin-sync.mjs +1 -1
  51. package/dist/src/sessions/agent-sessions-map-store.mjs +1 -1
  52. package/dist/src/sessions/runtime-bridge.mjs +1 -1
  53. package/dist/src/sessions/session-data-service.mjs +1 -0
  54. package/dist/src/sessions/session-runtime-state-service.mjs +1 -0
  55. package/dist/src/sessions/session-runtime-state.mjs +1 -0
  56. package/dist/src/sessions/session-sqlite-store.mjs +1 -1
  57. package/dist/src/sessions/sql/001_init.sql +2 -1
  58. package/dist/src/sessions/sql/003_session_message_index.sql +29 -0
  59. package/dist/src/sessions/sql/004_request_id_titles.sql +15 -0
  60. package/dist/src/sessions/sql/005_session_subagents.sql +31 -0
  61. package/dist/src/sessions/sql/006_session_process_snapshot.sql +24 -0
  62. package/dist/src/sessions/sql/schema.md +53 -3
  63. package/dist/src/skills/import.mjs +1 -1
  64. package/dist/src/skills/market.mjs +1 -1
  65. package/dist/src/terminal/manager.mjs +1 -1
  66. package/dist/src/updates/controller.mjs +1 -1
  67. package/dist/src/updates/loader.mjs +1 -1
  68. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ function _0x14a6(){const _0x11f4d8=['solveQQB','el).trim','`user:${','*/\x0a\x09\x09\x09lo','tId,\x0a\x09\x09c','get(para','();\x0a\x09con','main`;\x0a}','irect\x22,\x20','atType,\x0a','t)\x20or\x20qq','stripPro','al\x20qqbot','d,\x20route','ute.peer','get(valu','105810AFkYhL','Kind:\x20\x22d','tId:\x20par','||\x20\x22main','found','\x09return\x20','d:\x20id\x20}\x20','Fallback','nKey,\x0a\x09\x09','d\x20(group','hannel-p','function','st\x20witho','roupMirr','sWith(\x22t','t:\x22)\x20?\x20r',');\x0a\x09retu','seSessio','wujieNor','ujieNorm','outProvi','rovider.',').trim()','Target(r',':\x20routeT','ms?.targ','bot\x22\x20:\x20`','rn\x20`agen','route,\x20a','ze\x20commo','wujieRes','ce(/^(gr','esolveQQ','\x20\x22main\x22;','{\x20chatTy','\x0a\x09\x09targe','\x22,\x0a\x09\x09fro','otDirect','nnel-pee','onversat','ix\x20=\x20rou','n\x20QQ\x20Bot','\x09\x09}\x0a\x09},','y(cfg,\x20a','\x22per-cha','y:\x20baseS','rget\x20=\x20w','oute,\x0a\x09\x09','replace(','ssionKey','not-foun',':direct:','ith(\x22roo','-resolve','direct)\x20','erId\x0a\x09};','d:\x20looks','r\x20=\x20with','\x20\x22user\x22\x20','qqbot:${','\x09const\x20t','params.c','421519wUxLwp','\x09}\x0a\x09cons','?\x20\x22\x22),\x20c','peerId)\x20','ring(par','urn\x20null','}:${rout','w.toLowe','th(\x22qqbo','e()\x20||\x20\x22','.peerKin','kind:\x20ro','arget\x20fo','roupid\x20(','ujieReso','rId}`,\x0a\x09','Session(','ionKey,\x0a','rmat:\x20qq','tTarget,','\x20Return\x20','r|direct','uteTarge','roup:\x22)\x20','nst\x20with','toPrefix','id\x20}\x20:\x20n','\x20normali','et,\x20para','.trim();','{\x0a\x09if\x20(n','params)\x20','irror\x20=\x20','{\x0a\x09\x09cons','el\x20=\x20\x22qq','oupMirro','QBotPeer','aw.slice','==\x20\x22qqbo','RouteTar','lower.st','fix(Stri','40NTNthv','\x20null;\x0a\x09','er.start','ault\x22).t','153tVoaoJ','}:${norm','bot\x22;\x0a\x09c','\x20target\x20','`${fromP','m();\x0a\x09co','rn\x20{\x0a\x09\x09s','alizedAc','eStringO','malizeQQ','rmalizeQ',':\x20null;\x0a','e:\x20\x22chan','includes','messagin','werCase(','.startsW','\x09cfg:\x20pa',':/i,\x20\x22\x22)','\x20Normali','Scope\x20==','rn\x20true\x20','eSession','nnel}:${','chatType','openid\x20(','eTarget.','(params)','n\x20=\x20{','rimmed\x20=','formats\x20','s.agentI','{routeTa','String(a','(\x22channe','zed)\x20ret','withoutP','ot-found','LikeId:\x20','\x09const\x20w','nt:${nor','sation:\x22','bot:c2c:',');\x0a\x09cons','ession)\x20','t\x20id\x20=\x20n','\x09\x09from:\x20','-normali','der.repl','er|direc','\x20qqbot:c','2c:openi','rmalized','eOutboun',';\x0a\x09\x09retu','ersation','t\x22,\x20peer','unction\x20',')\x20{\x0a\x09con','ujieQQBo','rim().to','\x20{\x0a\x09\x09con','nKey({\x0a\x09','/^(user|','peer:\x20{\x20','trim();\x0a','Kind\x20!==','\x20resolve','alizedAg','patched','QBotSess','/^g-/i,\x20','d\x20(direc','replace','m|c2c):/','\x09\x09resolv','arams.cf',':\x20\x22chann','ent:${no','untId,\x0a\x09','ope\x20===\x20','tResolve','\x20id\x20=\x20no','11nJFJxn','{channel',':\x20\x22direc',',\x0a\x09\x09agen','nction\x20w','peerId:\x20','\x20routeTa','ingOrEmp','\x09to:\x20`${','untId\x20=\x20','true\x20whe','\x20id\x20look','\x20stripPr','13FGtvGo','tDirectF','Route:\x20w','ad:\x22))\x20{','hannel:\x22','\x20\x22direct','(\x22conver','Provider','Prefix(r','\x20without','\x20=\x20route','5988430aonYip','withoutG','wujieQQB','-shape-n','ng:\x20{\x0a\x09\x09','group)\x22\x0a','eer,\x0a\x09\x09c','channel}','\x0a\x09if\x20(dm','ieBuildQ','Key,\x0a\x09\x09p',')\x20return','onRoute(','hatType:','\x20Bot\x20tar','ithoutGr','aw,\x20para','6nZOqzC','st\x20lower','arams.ch','gentId\x20=',':group:g','routeTar','rCase()\x20','TargetCh','urn\x20`age','Type}`;\x0a','rget(raw','lizeLowe','\x20:\x20raw;\x0a','ntId}:${','\x20chatTyp','kSession','n\x20null;','normaliz','m.\x20*/\x0a\x09\x09','ccountId','!normali','ams.targ','th(\x22thre',');\x0a\x09if\x20(','sion?.dm','QBotTarg','gentId}:','ession','default\x22','r\x20=\x20{\x0a\x09\x09','wer.star','t\x20target','ionKey(p','\x22\x22).trim','hannel).','eResolve','efixes:\x20','${peerId','-functio','el\x22;\x0a\x09co','\x20format:','|\x20lower.','[\x22qqbot\x22','et)\x20retu','\x20QQ\x20Bot\x20','d}:${pee','atType:\x20','solver:\x20','Scope\x20??','artsWith','?.target','QQ\x20Bot\x20t','pe:\x20\x22gro','agentId\x20','Route','oviderPr','\x22).trim(','outeTarg',':...\x20for','get.chat','Scope\x20=\x20','):/i,\x20\x22\x22','n\x20wujieR','erId\x20=\x20w',':${norma','Session\x20','sessionK','or.repla','olveQQBo','group\x22,\x20','BotOutbo','g,\x20param','Id\x20},\x0a\x09\x09','eTarget,','\x0a\x09\x09\x09hint','lveQQBot','=\x20wujieR','already-','\x09peer\x0a\x09}','\x22per-pee','irect\x22\x20?','t\x20peerId','nel)\x20{\x0a\x09',':${chann','|thread)',';\x0a\x09const','und','\x20canonic','\x0a\x09\x09const','ams.agen','\x0a\x09if\x20(ro','193286PfDNeC','zed.toLo','BotPeerT','der\x20=\x20ra','Prefix\x20=','\x20||\x20\x22def','peerId}`','rams.cha','teTarget','essionKe','m:\x20`${pa','existing','onst\x20nor','oksLikeI','r\x22\x20&&\x20pe','tsWith(\x22','\x0a\x09if\x20(!r','!peerId)','irect\x22,\x0a','rams.cfg','=\x20\x22per-a','hannel,\x0a','ey\x20=\x20wuj','annel)\x20!','tboundBa','d)\x20retur','utGroupM','when\x20the','erKind:\x20','tOutboun','r-not-fo','otPeerTa','if\x20(dmSc','const\x20qq','entId}:$','],\x0a\x09\x09/**','rcaseStr','(\x22group:','n\x20the\x20id','\x0a\x09const\x20','rKind:\x20\x22','et?.to\x20?','{\x0a\x09\x09\x09/**','ion:\x22)\x20|','(\x22qqbot:','rget.pee','BotDirec','alizeQQB','countId}','return\x20w','Outbound','ams.acco','{\x0a\x09const','rn\x20id\x20?\x20','m:\x22)\x20||\x20','rCase().',';\x0a\x09if\x20(w','target.\x20','nst\x20norm','t\x20toPref','sWith(\x22c','arget.ch','\x22;\x0a\x09cons','({\x20to\x20})','\x22,\x20peerI','(!trimme','ike\x20a\x20QQ','value\x20??','}`;\x0a\x09}\x0a\x09','fallback','izedAcco','();\x0a\x09if\x20','\x20??\x20\x22\x22);','ce(/^(us','nd,\x20id:\x20','const\x20dm','\x22.length','dSession','n\x20id\x20?\x20{','room:\x22))','\x09\x09\x09looks','ty(witho','5teNRoz','ormalize','\x20return\x20','t\x22\x20?\x20\x22qq','erId)\x20re','QQBotRou','\x22)\x20retur','s\x20like\x20a','allbackS',')\x20||\x20low','p:groupi','vider\x20=\x20','hannel:\x20','\x0a\x09};\x0a}','\x0a\x09return','LikeQQBo','lizedAge','startsWi','\x20String(','et(value','ionKey\x20=','thoutPro','eer\x22\x20&&\x20','turn\x20`ag','Target,\x20','AgentId}','\x20=>\x20wuji','\x20wujieNo','gentId,\x20','eQQBotTa','rn\x20null;','arget','t.peerKi','371556KigVRc','targetRe','const\x20pe','12gtJbRj','n-not-fo','4443924DEYVmw','4568628UQhshA','tFallbac','st\x20chann','}`;\x0a\x09ret','direct|d','.peerId;','nchor-no','n\x20`agent','\x09\x09id:\x20pe','{\x0a\x09\x09sess',')\x22\x0a\x09\x09}\x0a\x09','viderPre','ession;','ccount-c','=\x20\x22direc','ms.chann','indexOf','\x22channel','Lowercas','\x09messagi','st\x20raw\x20=','.replace','efix(par',').toLowe','plugin-a'];_0x14a6=function(){return _0x11f4d8;};return _0x14a6();}(function(_0x2c371c,_0x8f9c54){const _0xe27d38=_0x1a8d,_0x3adfe9=_0x2c371c();while(!![]){try{const _0x534f92=-parseInt(_0xe27d38(0x1b7))/0x1*(-parseInt(_0xe27d38(0x212))/0x2)+-parseInt(_0xe27d38(0x285))/0x3*(-parseInt(_0xe27d38(0x288))/0x4)+parseInt(_0xe27d38(0x264))/0x5*(-parseInt(_0xe27d38(0x28b))/0x6)+-parseInt(_0xe27d38(0x2f2))/0x7*(-parseInt(_0xe27d38(0x31c))/0x8)+-parseInt(_0xe27d38(0x320))/0x9*(-parseInt(_0xe27d38(0x2b4))/0xa)+-parseInt(_0xe27d38(0x18e))/0xb*(-parseInt(_0xe27d38(0x28a))/0xc)+parseInt(_0xe27d38(0x19b))/0xd*(-parseInt(_0xe27d38(0x1a6))/0xe);if(_0x534f92===_0x8f9c54)break;else _0x3adfe9['push'](_0x3adfe9['shift']());}catch(_0x454229){_0x3adfe9['push'](_0x3adfe9['shift']());}}}(_0x14a6,0x95c90));export function patchQQBotOutboundSessionRouteFromSource(_0xe54286){const _0x26d1b7=_0x1a8d;if(_0xe54286[_0x26d1b7(0x32d)](_0x26d1b7(0x2d2)+'olveQQBo'+_0x26d1b7(0x22f)+_0x26d1b7(0x25f)+_0x26d1b7(0x1ed)))return{'patched':![],'reason':'already-'+_0x26d1b7(0x180)};const _0x361a73=_0x26d1b7(0x233)+'botPlugi'+_0x26d1b7(0x157);if(!_0xe54286[_0x26d1b7(0x32d)](_0x361a73))return{'patched':![],'reason':_0x26d1b7(0x2a3)+_0x26d1b7(0x291)+'t-found'};const _0x3c1c02=_0x26d1b7(0x29e)+_0x26d1b7(0x1aa)+'targetPr'+_0x26d1b7(0x1db)+_0x26d1b7(0x1e1)+_0x26d1b7(0x235)+_0x26d1b7(0x333)+_0x26d1b7(0x2d1)+_0x26d1b7(0x2dd)+_0x26d1b7(0x323)+'formats\x20'+'into\x20the'+'\x20canonic'+_0x26d1b7(0x2b0)+_0x26d1b7(0x1f1)+_0x26d1b7(0x1c9)+'normaliz'+_0x26d1b7(0x200)+_0x26d1b7(0x2d7)+_0x26d1b7(0x18c)+'r:\x20{\x0a\x09\x09\x09'+'/**\x20Retu'+_0x26d1b7(0x335)+_0x26d1b7(0x22d)+_0x26d1b7(0x199)+_0x26d1b7(0x26b)+_0x26d1b7(0x1e3)+_0x26d1b7(0x24b)+_0x26d1b7(0x2a7)+_0x26d1b7(0x21f)+_0x26d1b7(0x2ec)+_0x26d1b7(0x273)+_0x26d1b7(0x305)+_0x26d1b7(0x201)+':\x20\x22QQ\x20Bo'+_0x26d1b7(0x1d6)+_0x26d1b7(0x1df)+_0x26d1b7(0x16d)+_0x26d1b7(0x16e)+_0x26d1b7(0x183)+_0x26d1b7(0x2ae)+'bot:grou'+_0x26d1b7(0x26e)+_0x26d1b7(0x2bd)+_0x26d1b7(0x295)+'},';if(!_0xe54286['includes'](_0x3c1c02))return{'patched':![],'reason':_0x26d1b7(0x32e)+'g-shape-'+_0x26d1b7(0x2e6)+'d'};const _0xb3838c=qqBotPluginRouteHelperSource()+'\x0a'+_0x361a73,_0x82dec2=_0x26d1b7(0x29e)+'ng:\x20{\x0a\x09\x09'+'targetPr'+_0x26d1b7(0x1db)+_0x26d1b7(0x1e1)+_0x26d1b7(0x235)+_0x26d1b7(0x333)+'ze\x20commo'+_0x26d1b7(0x2dd)+_0x26d1b7(0x323)+_0x26d1b7(0x159)+'into\x20the'+_0x26d1b7(0x20e)+_0x26d1b7(0x2b0)+_0x26d1b7(0x1f1)+_0x26d1b7(0x1c9)+_0x26d1b7(0x1c8)+'eTarget,'+'\x0a\x09\x09infer'+_0x26d1b7(0x1be)+_0x26d1b7(0x1e5)+_0x26d1b7(0x251)+_0x26d1b7(0x27e)+_0x26d1b7(0x1da)+_0x26d1b7(0x269)+'teTarget'+'(to)?.ch'+_0x26d1b7(0x2ad)+_0x26d1b7(0x186)+_0x26d1b7(0x170)+_0x26d1b7(0x25f)+_0x26d1b7(0x19d)+_0x26d1b7(0x300)+_0x26d1b7(0x202)+_0x26d1b7(0x244)+'SessionR'+_0x26d1b7(0x2e3)+_0x26d1b7(0x286)+_0x26d1b7(0x1e6)+_0x26d1b7(0x23c)+_0x26d1b7(0x306)+_0x26d1b7(0x198)+_0x26d1b7(0x238)+'\x20looks\x20l'+_0x26d1b7(0x254)+_0x26d1b7(0x1b4)+'get.\x20*/\x0a'+_0x26d1b7(0x262)+_0x26d1b7(0x161)+'looksLik'+_0x26d1b7(0x281)+'rget,\x0a\x09\x09'+'\x09hint:\x20\x22'+_0x26d1b7(0x1ea)+_0x26d1b7(0x2fe)+_0x26d1b7(0x304)+_0x26d1b7(0x165)+_0x26d1b7(0x154)+_0x26d1b7(0x2ea)+'or\x20qqbot'+_0x26d1b7(0x1bb)+_0x26d1b7(0x2ff)+_0x26d1b7(0x1ab)+_0x26d1b7(0x2de);return{'patched':!![],'source':_0xe54286['replace'](_0x361a73,_0xb3838c)['replace'](_0x3c1c02,_0x82dec2)};}export function patchQQBotOutboundFallbackFromSource(_0xd6d067){const _0x57e7e4=_0x1a8d;if(_0xd6d067[_0x57e7e4(0x32d)](_0x57e7e4(0x2d2)+'olveQQBo'+'tDirectF'+'allbackS'+_0x57e7e4(0x1d2))){if(!_0xd6d067[_0x57e7e4(0x32d)]('replace('+_0x57e7e4(0x17a)+_0x57e7e4(0x28f)+_0x57e7e4(0x185)+'i'))return upgradeExistingQQBotOutboundFallbackPatch(_0xd6d067);return{'patched':![],'reason':_0x57e7e4(0x204)+_0x57e7e4(0x180)};}const _0x10c8de=_0x57e7e4(0x2bf)+_0x57e7e4(0x17e)+_0x57e7e4(0x2bb)+'Session('+_0x57e7e4(0x311)+'{';if(!_0xd6d067[_0x57e7e4(0x32d)](_0x10c8de))return{'patched':![],'reason':_0x57e7e4(0x257)+_0x57e7e4(0x1dd)+_0x57e7e4(0x289)+_0x57e7e4(0x20d)};const _0x2817cb=_0x57e7e4(0x2f0)+_0x57e7e4(0x158)+_0x57e7e4(0x19a)+_0x57e7e4(0x1ee)+_0x57e7e4(0x2a1)+_0x57e7e4(0x1cc)+_0x57e7e4(0x30e)+_0x57e7e4(0x29a)+'el).trim'+_0x57e7e4(0x259)+_0x57e7e4(0x253)+_0x57e7e4(0x22b)+_0x57e7e4(0x1c7);if(!_0xd6d067[_0x57e7e4(0x32d)](_0x2817cb))return{'patched':![],'reason':_0x57e7e4(0x257)+_0x57e7e4(0x1a9)+_0x57e7e4(0x160)};const _0x4e9c6c=qqBotCoreFallbackHelperSource()+'\x0a'+_0x10c8de,_0x4de6d2=_0x2817cb+(_0x57e7e4(0x239)+_0x57e7e4(0x1a8)+_0x57e7e4(0x2d9)+_0x57e7e4(0x1f8)+_0x57e7e4(0x203)+'esolveQQ'+_0x57e7e4(0x240)+_0x57e7e4(0x28c)+_0x57e7e4(0x1c6)+_0x57e7e4(0x156)+_0x57e7e4(0x24a)+_0x57e7e4(0x176)+'tDirectS'+_0x57e7e4(0x167)+_0x57e7e4(0x243)+'ujieQQBo'+'tDirectS'+_0x57e7e4(0x297));return{'patched':!![],'source':_0xd6d067['replace'](_0x10c8de,_0x4e9c6c)[_0x57e7e4(0x184)](_0x2817cb,_0x4de6d2)};}function _0x1a8d(_0x2d78bb,_0xcacfde){_0x2d78bb=_0x2d78bb-0x154;const _0x14a66d=_0x14a6();let _0x1a8db7=_0x14a66d[_0x2d78bb];return _0x1a8db7;}function qqBotPluginRouteHelperSource(){const _0x4527d8=_0x1a8d;return _0x4527d8(0x2bf)+_0x4527d8(0x27f)+_0x4527d8(0x32a)+_0x4527d8(0x1d0)+_0x4527d8(0x277)+_0x4527d8(0x175)+_0x4527d8(0x29f)+'\x20String('+_0x4527d8(0x255)+'\x20\x22\x22).tri'+_0x4527d8(0x325)+_0x4527d8(0x30a)+_0x4527d8(0x2c8)+_0x4527d8(0x215)+_0x4527d8(0x2f9)+_0x4527d8(0x249)+_0x4527d8(0x275)+_0x4527d8(0x2fa)+_0x4527d8(0x2c3)+_0x4527d8(0x317)+_0x4527d8(0x23e)+_0x4527d8(0x25e)+_0x4527d8(0x2ca)+_0x4527d8(0x1c3)+_0x4527d8(0x2b9)+_0x4527d8(0x15f)+_0x4527d8(0x2c9)+_0x4527d8(0x2e4)+_0x4527d8(0x182)+_0x4527d8(0x1d8)+'();\x0a}\x0afu'+_0x4527d8(0x192)+_0x4527d8(0x300)+_0x4527d8(0x202)+_0x4527d8(0x319)+_0x4527d8(0x2b3)+'e)\x20{\x0a\x09co'+_0x4527d8(0x24c)+'alized\x20='+_0x4527d8(0x27f)+_0x4527d8(0x32a)+_0x4527d8(0x1d0)+_0x4527d8(0x277)+_0x4527d8(0x1ce)+_0x4527d8(0x1cb)+_0x4527d8(0x15e)+_0x4527d8(0x2f7)+_0x4527d8(0x20c)+'\x20lower\x20='+_0x4527d8(0x30d)+_0x4527d8(0x213)+_0x4527d8(0x32f)+_0x4527d8(0x1ce)+_0x4527d8(0x31a)+_0x4527d8(0x1e8)+_0x4527d8(0x237)+'\x22)\x20||\x20lo'+_0x4527d8(0x1d5)+_0x4527d8(0x221)+_0x4527d8(0x261)+_0x4527d8(0x178)+'st\x20id\x20=\x20'+'normaliz'+'ed.repla'+_0x4527d8(0x2d3)+'oup|room'+_0x4527d8(0x1f4)+_0x4527d8(0x2ca)+_0x4527d8(0x171)+_0x4527d8(0x247)+_0x4527d8(0x2d6)+_0x4527d8(0x1eb)+'up\x22,\x20pee'+_0x4527d8(0x23a)+_0x4527d8(0x1fc)+_0x4527d8(0x193)+_0x4527d8(0x30c)+'ull;\x0a\x09}\x0a'+'\x09if\x20(low'+_0x4527d8(0x31e)+'sWith(\x22c'+_0x4527d8(0x19f)+_0x4527d8(0x26d)+'er.start'+_0x4527d8(0x24e)+_0x4527d8(0x2db)+_0x4527d8(0x23d)+_0x4527d8(0x1e0)+'startsWi'+_0x4527d8(0x1cd)+_0x4527d8(0x19e)+_0x4527d8(0x20f)+_0x4527d8(0x18d)+_0x4527d8(0x16f)+_0x4527d8(0x2a0)+'(/^(chan'+'nel|conv'+_0x4527d8(0x172)+_0x4527d8(0x20b)+':/i,\x20\x22\x22)'+_0x4527d8(0x30f)+'\x0a\x09\x09retur'+_0x4527d8(0x260)+_0x4527d8(0x1c5)+_0x4527d8(0x32c)+'nel\x22,\x20pe'+_0x4527d8(0x22e)+_0x4527d8(0x29c)+_0x4527d8(0x252)+_0x4527d8(0x2ba)+_0x4527d8(0x32b)+_0x4527d8(0x2f3)+_0x4527d8(0x168)+_0x4527d8(0x265)+'d.replac'+'e(/^(use'+_0x4527d8(0x307)+'|dm|c2c)'+_0x4527d8(0x332)+'.trim();'+_0x4527d8(0x272)+'\x20id\x20?\x20{\x20'+_0x4527d8(0x338)+_0x4527d8(0x190)+_0x4527d8(0x173)+(_0x4527d8(0x2b5)+_0x4527d8(0x2ac)+'peerId:\x20'+_0x4527d8(0x30c)+'ull;\x0a}\x0af'+_0x4527d8(0x174)+'wujieBui'+'ldQQBotS'+_0x4527d8(0x21b)+_0x4527d8(0x2df)+_0x4527d8(0x280)+_0x4527d8(0x2d0)+_0x4527d8(0x1ca)+_0x4527d8(0x175)+_0x4527d8(0x28d)+_0x4527d8(0x314)+_0x4527d8(0x322)+_0x4527d8(0x21e)+'malizedA'+_0x4527d8(0x1ba)+_0x4527d8(0x276)+_0x4527d8(0x1ec)+_0x4527d8(0x2b7)+_0x4527d8(0x1ef)+_0x4527d8(0x2a2)+_0x4527d8(0x1bd)+_0x4527d8(0x2b7)+_0x4527d8(0x250)+_0x4527d8(0x208)+_0x4527d8(0x1a5)+_0x4527d8(0x290)+_0x4527d8(0x211)+_0x4527d8(0x2b2)+_0x4527d8(0x17d)+_0x4527d8(0x1a0)+_0x4527d8(0x26a)+_0x4527d8(0x292)+_0x4527d8(0x1f7)+_0x4527d8(0x274)+_0x4527d8(0x1c4)+_0x4527d8(0x1ad)+':${route'+_0x4527d8(0x2fc)+_0x4527d8(0x1e4)+'rId}`;\x0a\x09'+_0x4527d8(0x25d)+_0x4527d8(0x1f3)+'cfg?.ses'+_0x4527d8(0x1cf)+_0x4527d8(0x1e7)+_0x4527d8(0x2d5)+_0x4527d8(0x1ae)+_0x4527d8(0x334)+_0x4527d8(0x226)+_0x4527d8(0x298)+_0x4527d8(0x2be)+_0x4527d8(0x27a)+_0x4527d8(0x2f5)+_0x4527d8(0x313)+'t\x20normal'+_0x4527d8(0x258)+_0x4527d8(0x197)+_0x4527d8(0x15c)+_0x4527d8(0x1ca)+_0x4527d8(0x217)+_0x4527d8(0x31f)+_0x4527d8(0x177)+'LowerCas'+_0x4527d8(0x2fb)+_0x4527d8(0x1d3)+_0x4527d8(0x171)+_0x4527d8(0x2cf)+'t:${norm'+_0x4527d8(0x17f)+_0x4527d8(0x234)+_0x4527d8(0x18f)+_0x4527d8(0x321)+_0x4527d8(0x327)+_0x4527d8(0x242)+':direct:'+_0x4527d8(0x1dc)+_0x4527d8(0x256)+_0x4527d8(0x232)+'ope\x20===\x20'+_0x4527d8(0x2e0)+_0x4527d8(0x2da)+_0x4527d8(0x220)+_0x4527d8(0x268)+'turn\x20`ag'+_0x4527d8(0x189)+_0x4527d8(0x16f)+_0x4527d8(0x27d)+_0x4527d8(0x20a)+'el}:dire'+'ct:${pee'+'rId}`;\x0a\x09'+'if\x20(dmSc'+_0x4527d8(0x18b)+_0x4527d8(0x206)+'r\x22\x20&&\x20pe'+_0x4527d8(0x268)+_0x4527d8(0x27b)+_0x4527d8(0x189)+'rmalized'+_0x4527d8(0x27d)+_0x4527d8(0x2e7)+_0x4527d8(0x1dc)+_0x4527d8(0x28e)+_0x4527d8(0x1bf)+_0x4527d8(0x163)+'malizedA'+_0x4527d8(0x1d1)+_0x4527d8(0x2ab)+'\x0afunctio'+_0x4527d8(0x1f5)+_0x4527d8(0x2d4)+_0x4527d8(0x1fd)+'undSessi'+_0x4527d8(0x1b2)+_0x4527d8(0x311)+_0x4527d8(0x246)+_0x4527d8(0x194)+_0x4527d8(0x2e2)+_0x4527d8(0x300)+_0x4527d8(0x202))+('RouteTar'+_0x4527d8(0x2a9)+_0x4527d8(0x2cd)+_0x4527d8(0x23b)+'?\x20params'+_0x4527d8(0x1e9)+_0x4527d8(0x25a)+_0x4527d8(0x222)+_0x4527d8(0x1f0)+_0x4527d8(0x1e2)+_0x4527d8(0x282)+_0x4527d8(0x239)+_0x4527d8(0x1f9)+_0x4527d8(0x228)+_0x4527d8(0x1af)+_0x4527d8(0x181)+_0x4527d8(0x1d7)+_0x4527d8(0x187)+_0x4527d8(0x1fe)+_0x4527d8(0x15a)+_0x4527d8(0x2b1)+_0x4527d8(0x27c)+'params.a'+_0x4527d8(0x1ca)+_0x4527d8(0x166)+_0x4527d8(0x24d)+_0x4527d8(0x2dc)+_0x4527d8(0x21a)+'.chatTyp'+'e\x20===\x20\x22d'+_0x4527d8(0x207)+_0x4527d8(0x2ee)+_0x4527d8(0x188)+_0x4527d8(0x1de)+'nst\x20from'+_0x4527d8(0x216)+_0x4527d8(0x194)+'rget.cha'+'tType\x20=='+_0x4527d8(0x299)+_0x4527d8(0x267)+_0x4527d8(0x2ce)+_0x4527d8(0x2ef)+_0x4527d8(0x1bc)+_0x4527d8(0x1f2)+_0x4527d8(0x1c0)+_0x4527d8(0x2b9)+_0x4527d8(0x294)+_0x4527d8(0x303)+'\x09\x09baseSe'+_0x4527d8(0x2e5)+':\x20sessio'+_0x4527d8(0x2bc)+_0x4527d8(0x17b)+_0x4527d8(0x2fd)+_0x4527d8(0x308)+_0x4527d8(0x284)+_0x4527d8(0x25c)+_0x4527d8(0x1bc)+'get.peer'+_0x4527d8(0x1ff)+_0x4527d8(0x338)+_0x4527d8(0x2cc)+_0x4527d8(0x24f)+_0x4527d8(0x2ad)+_0x4527d8(0x169)+_0x4527d8(0x324)+'refix}:$'+_0x4527d8(0x15b)+_0x4527d8(0x23f)+_0x4527d8(0x301)+_0x4527d8(0x196)+_0x4527d8(0x30b)+_0x4527d8(0x2f8)+_0x4527d8(0x155)+_0x4527d8(0x218)+',\x0a\x09};\x0a}');}function qqBotCoreFallbackHelperSource(){return qqBotNormalizePeerTargetFunctionSource()+'\x0a'+qqBotDirectFallbackFunctionSource();}function qqBotNormalizePeerTargetFunctionSource(){const _0x2799e8=_0x1a8d;return _0x2799e8(0x2bf)+_0x2799e8(0x27f)+'rmalizeQ'+_0x2799e8(0x316)+_0x2799e8(0x2cb)+'aw,\x20chan'+_0x2799e8(0x209)+'const\x20wi'+_0x2799e8(0x279)+_0x2799e8(0x26f)+_0x2799e8(0x2af)+_0x2799e8(0x296)+_0x2799e8(0x31b)+'ng(raw\x20?'+_0x2799e8(0x2f4)+_0x2799e8(0x1d9)+_0x2799e8(0x17c)+_0x2799e8(0x162)+_0x2799e8(0x1b5)+_0x2799e8(0x315)+_0x2799e8(0x2ed)+'outProvi'+_0x2799e8(0x16b)+'ace(/^g-'+'/i,\x20\x22\x22).'+_0x2799e8(0x17c)+'\x09return\x20'+_0x2799e8(0x1a7)+_0x2799e8(0x2c1)+_0x2799e8(0x1fa)+_0x2799e8(0x25b)+_0x2799e8(0x16c)+'t|dm|c2c'+_0x2799e8(0x1f4)+_0x2799e8(0x2ca)+';\x0a}';}function qqBotDirectFallbackFunctionSource(){const _0x3c7cf2=_0x1a8d;return'function'+'\x20wujieRe'+_0x3c7cf2(0x2a4)+_0x3c7cf2(0x2d9)+_0x3c7cf2(0x2bb)+_0x3c7cf2(0x302)+_0x3c7cf2(0x311)+_0x3c7cf2(0x310)+'ormalize'+_0x3c7cf2(0x29d)+_0x3c7cf2(0x328)+'rEmpty(p'+_0x3c7cf2(0x1b9)+_0x3c7cf2(0x229)+_0x3c7cf2(0x318)+'t\x22)\x20retu'+_0x3c7cf2(0x282)+_0x3c7cf2(0x239)+'raw\x20=\x20St'+_0x3c7cf2(0x2f6)+_0x3c7cf2(0x1cc)+'et\x20??\x20\x22\x22'+_0x3c7cf2(0x2ca)+';\x0a\x09const'+_0x3c7cf2(0x1a4)+_0x3c7cf2(0x1a2)+'\x20=\x20strip'+'Provider'+_0x3c7cf2(0x1a3)+_0x3c7cf2(0x1b6)+_0x3c7cf2(0x29a)+_0x3c7cf2(0x2a5)+'();\x0a\x09con'+_0x3c7cf2(0x2c0)+_0x3c7cf2(0x22c)+_0x3c7cf2(0x312)+_0x3c7cf2(0x15f)+_0x3c7cf2(0x2c9)+_0x3c7cf2(0x2e4)+_0x3c7cf2(0x182)+'\x22\x22).trim'+_0x3c7cf2(0x2aa)+_0x3c7cf2(0x1b8)+'\x20=\x20norma'+_0x3c7cf2(0x1c2)+_0x3c7cf2(0x236)+_0x3c7cf2(0x195)+_0x3c7cf2(0x263)+_0x3c7cf2(0x22c)+'irror);\x0a'+'\x09if\x20(low'+_0x3c7cf2(0x31e)+'sWith(\x22g'+_0x3c7cf2(0x309)+'||\x20lower'+_0x3c7cf2(0x330)+_0x3c7cf2(0x2e8)+_0x3c7cf2(0x248)+'lower.st'+_0x3c7cf2(0x1e8)+_0x3c7cf2(0x15d)+'l:\x22)\x20||\x20'+_0x3c7cf2(0x31a)+_0x3c7cf2(0x1e8)+_0x3c7cf2(0x1a1)+_0x3c7cf2(0x164)+_0x3c7cf2(0x26d)+_0x3c7cf2(0x31e)+_0x3c7cf2(0x2c2)+'hread:\x22)'+_0x3c7cf2(0x1b1)+_0x3c7cf2(0x31d)+_0x3c7cf2(0x287)+_0x3c7cf2(0x1f6)+_0x3c7cf2(0x2c7)+_0x3c7cf2(0x241)+_0x3c7cf2(0x231)+_0x3c7cf2(0x1c1)+',\x20params'+'.channel'+_0x3c7cf2(0x1ce)+_0x3c7cf2(0x223)+_0x3c7cf2(0x266)+'null;\x0a\x09c'+'onst\x20pee'+_0x3c7cf2(0x1d4)+'kind:\x20\x22d'+_0x3c7cf2(0x224)+_0x3c7cf2(0x293)+_0x3c7cf2(0x2eb)+_0x3c7cf2(0x239)+'baseSess'+_0x3c7cf2(0x278)+'\x20buildOu'+_0x3c7cf2(0x22a)+_0x3c7cf2(0x2c5)+_0x3c7cf2(0x179)+_0x3c7cf2(0x331)+_0x3c7cf2(0x225)+_0x3c7cf2(0x191)+_0x3c7cf2(0x2b6)+_0x3c7cf2(0x210)+_0x3c7cf2(0x2a8)+_0x3c7cf2(0x270)+_0x3c7cf2(0x2f1)+_0x3c7cf2(0x227)+'\x09\x09accoun'+_0x3c7cf2(0x2b6)+_0x3c7cf2(0x245)+_0x3c7cf2(0x18a)+_0x3c7cf2(0x205)+_0x3c7cf2(0x2c4)+_0x3c7cf2(0x326)+_0x3c7cf2(0x21b)+_0x3c7cf2(0x2e1)+_0x3c7cf2(0x21b)+'y,\x0a\x09\x09bas'+_0x3c7cf2(0x336)+_0x3c7cf2(0x1b0)+_0x3c7cf2(0x1ac)+_0x3c7cf2(0x1b3)+_0x3c7cf2(0x1a0)+_0x3c7cf2(0x2d8)+_0x3c7cf2(0x21c)+_0x3c7cf2(0x219)+(_0x3c7cf2(0x337)+_0x3c7cf2(0x218)+',\x0a\x09\x09to:\x20'+_0x3c7cf2(0x2a6)+_0x3c7cf2(0x218)+_0x3c7cf2(0x271));}function replaceFunction(_0x2e18ca,_0x195abd,_0x4ceb77){const _0x204cd0=_0x1a8d,_0x33df78=_0x2e18ca[_0x204cd0(0x29b)](_0x204cd0(0x2bf)+'\x20'+_0x195abd);if(_0x33df78===-0x1)return null;const _0x283116=_0x2e18ca['indexOf']('{',_0x33df78);if(_0x283116===-0x1)return null;let _0x23520d=0x0,_0x4999df=null,_0x59fec1=![];for(let _0x4ff89b=_0x283116;_0x4ff89b<_0x2e18ca['length'];_0x4ff89b+=0x1){const _0x511dc3=_0x2e18ca[_0x4ff89b];if(_0x4999df){if(_0x59fec1){_0x59fec1=![];continue;}if(_0x511dc3==='\x5c'){_0x59fec1=!![];continue;}if(_0x511dc3===_0x4999df)_0x4999df=null;continue;}if(_0x511dc3==='\x22'||_0x511dc3==='\x27'||_0x511dc3==='`'){_0x4999df=_0x511dc3;continue;}if(_0x511dc3==='{')_0x23520d+=0x1;if(_0x511dc3==='}')_0x23520d-=0x1;if(_0x23520d===0x0)return _0x2e18ca['slice'](0x0,_0x33df78)+_0x4ceb77+_0x2e18ca['slice'](_0x4ff89b+0x1);}return null;}function upgradeExistingQQBotOutboundFallbackPatch(_0x173c28){const _0x364fc9=_0x1a8d;let _0x13170d=replaceFunction(_0x173c28,_0x364fc9(0x2c6)+_0x364fc9(0x329)+_0x364fc9(0x214)+_0x364fc9(0x283),qqBotNormalizePeerTargetFunctionSource());if(!_0x13170d)return{'patched':![],'reason':_0x364fc9(0x21d)+_0x364fc9(0x16a)+'zer-not-'+_0x364fc9(0x2b8)};_0x13170d=replaceFunction(_0x13170d,_0x364fc9(0x2d2)+_0x364fc9(0x1fb)+_0x364fc9(0x19c)+_0x364fc9(0x26c)+'ession',qqBotDirectFallbackFunctionSource());if(!_0x13170d)return{'patched':![],'reason':_0x364fc9(0x21d)+_0x364fc9(0x2e9)+_0x364fc9(0x230)+_0x364fc9(0x20d)};return{'patched':!![],'source':_0x13170d};}
@@ -0,0 +1 @@
1
+ (function(_0x5721a5,_0x174ac1){const _0xdbc6f=_0x5b8d,_0xc6a88=_0x5721a5();while(!![]){try{const _0x122823=-parseInt(_0xdbc6f(0x197))/0x1*(parseInt(_0xdbc6f(0x1b5))/0x2)+parseInt(_0xdbc6f(0x19e))/0x3+-parseInt(_0xdbc6f(0x1a7))/0x4+-parseInt(_0xdbc6f(0x1bf))/0x5+parseInt(_0xdbc6f(0x1ac))/0x6*(-parseInt(_0xdbc6f(0x1b4))/0x7)+-parseInt(_0xdbc6f(0x1a0))/0x8*(parseInt(_0xdbc6f(0x1af))/0x9)+parseInt(_0xdbc6f(0x195))/0xa*(parseInt(_0xdbc6f(0x19d))/0xb);if(_0x122823===_0x174ac1)break;else _0xc6a88['push'](_0xc6a88['shift']());}catch(_0x34f7e2){_0xc6a88['push'](_0xc6a88['shift']());}}}(_0x5bf4,0x4e7dd));function createBridgeImport(_0x416600){const _0x409aaa=_0x5b8d;return _0x409aaa(0x1b7)+_0x409aaa(0x1b9)+'eRequest'+_0x409aaa(0x1a3)+'ridge\x20fr'+_0x409aaa(0x189)+_0x416600+'\x22;';}function _0x5b8d(_0x4ff9d5,_0x2458b2){_0x4ff9d5=_0x4ff9d5-0x188;const _0x5bf483=_0x5bf4();let _0x5b8dee=_0x5bf483[_0x4ff9d5];return _0x5b8dee;}function ensureBridgeImport(_0x3e4c0f,_0x4aedee){const _0x717e87=_0x5b8d,_0x5a6b3d=createBridgeImport(_0x4aedee);if(_0x3e4c0f[_0x717e87(0x1a6)](_0x5a6b3d))return _0x3e4c0f;const _0x2dcef3=_0x3e4c0f['match'](/^import .*;$/m);if(!_0x2dcef3)return _0x5a6b3d+'\x0a'+_0x3e4c0f;return _0x3e4c0f['replace'](_0x2dcef3[0x0],_0x2dcef3[0x0]+'\x0a'+_0x5a6b3d);}function _0x5bf4(){const _0x11fcbe=['551270LezMPY','dTitleBr','runtime\x20','om\x20\x22','bridge-i','=\x20{\x0a\x09\x09\x09\x09','wujieReq','sureWuji','ayload)\x0a','length','uestIdTi','itles\x20??','Bridge.b','e)\x20=>','{\x0a\x09\x09\x09\x09ru','10IRsslI','already-','27oalewx','Titles(p','RequestI','(entry)\x20','slice','e.upsert','13997412NqSMQV','1671630YJOxqh','\x09\x09\x09\x09};\x0a\x09','862640wBUvGy','\x20(runtim','e\x20===\x20\x22o','IdTitleB','const\x20en','RuntimeH','includes','503172bVLVmB','atchGetR',',\x0a\x09\x09\x09\x09ba','ntime.re','elpers\x20=','1615998tiSLLA','=>\x20wujie','&&\x20typeo','45IUJxsI','equestId','mport-no','ieReques','tchGet:\x20','7WlYUeS','34346QzrKUs','questIdT','import\x20*','indexOf','\x20as\x20wuji','f\x20runtim','t-provid',')\x20=>\x20wuj','not-foun','-found'];_0x5bf4=function(){return _0x11fcbe;};return _0x5bf4();}function findFunctionBodyStart(_0x8ef9f4,_0x54221b){const _0x928840=_0x5b8d,_0x5cf7ba=_0x8ef9f4[_0x928840(0x1b8)]('(',_0x54221b);if(_0x5cf7ba===-0x1)return-0x1;let _0x375b79=0x0,_0x1f9586=null,_0xda9318=![];for(let _0x3f225c=_0x5cf7ba;_0x3f225c<_0x8ef9f4[_0x928840(0x18f)];_0x3f225c+=0x1){const _0x2e5953=_0x8ef9f4[_0x3f225c];if(_0x1f9586){if(_0xda9318){_0xda9318=![];continue;}if(_0x2e5953==='\x5c'){_0xda9318=!![];continue;}if(_0x2e5953===_0x1f9586)_0x1f9586=null;continue;}if(_0x2e5953==='\x22'||_0x2e5953==='\x27'||_0x2e5953==='`'){_0x1f9586=_0x2e5953;continue;}if(_0x2e5953==='('){_0x375b79+=0x1;continue;}if(_0x2e5953===')'){_0x375b79-=0x1;continue;}if(_0x2e5953==='{'&&_0x375b79===0x0)return _0x3f225c;}return-0x1;}function insertAfterFunctionOpen(_0x232165,_0x53c17b,_0xf6f6eb){const _0x4ff307=_0x5b8d,_0x3aabc3=_0x232165[_0x4ff307(0x1b8)](_0x53c17b);if(_0x3aabc3===-0x1)return{'patched':![],'reason':_0x4ff307(0x1bd)+'d'};const _0x20e329=findFunctionBodyStart(_0x232165,_0x3aabc3);if(_0x20e329===-0x1)return{'patched':![],'reason':'body-not'+_0x4ff307(0x1be)};return{'patched':!![],'source':''+_0x232165[_0x4ff307(0x19b)](0x0,_0x20e329+0x1)+_0xf6f6eb+_0x232165[_0x4ff307(0x19b)](_0x20e329+0x1)};}export function patchRequestIdTitleRuntimeFromSource(_0x16f459,_0x1353de={}){const _0x31c472=_0x5b8d,_0x6e6a6a=_0x1353de['bridgeIm'+'portPath'];if(!_0x6e6a6a)return{'patched':![],'reason':_0x31c472(0x18a)+_0x31c472(0x1b1)+_0x31c472(0x1bb)+'ed'};if(_0x16f459[_0x31c472(0x1a6)](_0x31c472(0x18c)+_0x31c472(0x190)+'tleBridg'+_0x31c472(0x19c)+_0x31c472(0x199)+'dTitle'))return{'patched':![],'reason':_0x31c472(0x196)+'patched'};const _0x36c10d=_0x31c472(0x1a4)+_0x31c472(0x18d)+'eChannel'+_0x31c472(0x1a5)+_0x31c472(0x1ab)+_0x31c472(0x1a1)+_0x31c472(0x193),_0x500af2='\x0a\x09\x09\x09if\x20('+_0x31c472(0x188)+_0x31c472(0x1ae)+_0x31c472(0x1ba)+_0x31c472(0x1a2)+'bject\x22)\x20'+_0x31c472(0x194)+_0x31c472(0x1aa)+_0x31c472(0x1b6)+_0x31c472(0x191)+_0x31c472(0x18b)+'upsert:\x20'+_0x31c472(0x19a)+_0x31c472(0x1ad)+_0x31c472(0x199)+_0x31c472(0x1c0)+'idge.ups'+'ertReque'+'stIdTitl'+'e(entry)'+_0x31c472(0x1a9)+_0x31c472(0x1b3)+'(payload'+_0x31c472(0x1bc)+_0x31c472(0x1b2)+'tIdTitle'+_0x31c472(0x192)+_0x31c472(0x1a8)+_0x31c472(0x1b0)+_0x31c472(0x198)+_0x31c472(0x18e)+_0x31c472(0x19f)+'\x09\x09}',_0x588837=insertAfterFunctionOpen(ensureBridgeImport(_0x16f459,_0x6e6a6a),_0x36c10d,_0x500af2);return _0x588837;}
@@ -1 +1 @@
1
- (function(_0x28af0a,_0x549004){const _0x5013b0=_0x1939,_0x9ece7c=_0x28af0a();while(!![]){try{const _0xaddf95=-parseInt(_0x5013b0(0xb0))/0x1+-parseInt(_0x5013b0(0xb3))/0x2*(parseInt(_0x5013b0(0xc8))/0x3)+parseInt(_0x5013b0(0xd1))/0x4+-parseInt(_0x5013b0(0xb5))/0x5+-parseInt(_0x5013b0(0xb7))/0x6+parseInt(_0x5013b0(0xc7))/0x7*(parseInt(_0x5013b0(0xac))/0x8)+parseInt(_0x5013b0(0xcf))/0x9;if(_0xaddf95===_0x549004)break;else _0x9ece7c['push'](_0x9ece7c['shift']());}catch(_0x1bcaf0){_0x9ece7c['push'](_0x9ece7c['shift']());}}}(_0x3300,0x679c0));function createBridgeImport(_0x2c4e65){const _0x30b905=_0x1939;return _0x30b905(0xb8)+_0x30b905(0xd8)+'eSession'+_0x30b905(0xd0)+'rom\x20\x22'+_0x2c4e65+'\x22;';}function ensureBridgeImport(_0x7522bd,_0x41baf7){const _0x32ffcc=_0x1939,_0xa32f7c=createBridgeImport(_0x41baf7);if(_0x7522bd['includes'](_0xa32f7c))return _0x7522bd;const _0x425fad=_0x7522bd[_0x32ffcc(0xaa)](/^import .*;$/m);if(!_0x425fad)return _0xa32f7c+'\x0a'+_0x7522bd;return _0x7522bd[_0x32ffcc(0xd2)](_0x425fad[0x0],_0x425fad[0x0]+'\x0a'+_0xa32f7c);}function _0x3300(){const _0x38cb04=['arams)','14ZDciQb','1130106cqHnQX','ore','s\x20=\x20{})','sionBrid','patched','indexOf','ge.loadS','10747224AXdJcl','Bridge\x20f','2153820WHTiBN','replace','\x20opts);\x0a','ath,\x20opt','n\x20wujieS','function','s);\x0a}','\x20as\x20wuji','body-end','essionSt','\x20loadSes','already-','sionStor','length','toreAtom','match','includes','622736QXJhAr','{\x0a\x09retur','body-not','ge.write','109042oOYwZG','riteSess','bridge-i','4XkFPxE','-found','1474655NrjBoA','essionBr','1839084axpFzT','import\x20*','wujieSes','Atomic(p','portPath','ic(param','bridgeIm','test','-not-fou','orePath,','slice','n\x20await\x20','ionStore','e(storeP','mport-no'];_0x3300=function(){return _0x38cb04;};return _0x3300();}function findFunctionBodyStart(_0x5c6d08,_0x47bf8b){const _0x179bf6=_0x1939,_0xb04393=_0x5c6d08['indexOf']('(',_0x47bf8b);if(_0xb04393===-0x1)return-0x1;let _0x3b5a20=0x0,_0x3ecb3c=null,_0x4c812c=![];for(let _0x35b720=_0xb04393;_0x35b720<_0x5c6d08[_0x179bf6(0xa8)];_0x35b720+=0x1){const _0x4f776c=_0x5c6d08[_0x35b720];if(_0x3ecb3c){if(_0x4c812c){_0x4c812c=![];continue;}if(_0x4f776c==='\x5c'){_0x4c812c=!![];continue;}if(_0x4f776c===_0x3ecb3c)_0x3ecb3c=null;continue;}if(_0x4f776c==='\x22'||_0x4f776c==='\x27'||_0x4f776c==='`'){_0x3ecb3c=_0x4f776c;continue;}if(_0x4f776c==='('){_0x3b5a20+=0x1;continue;}if(_0x4f776c===')'){_0x3b5a20-=0x1;continue;}if(_0x4f776c==='{'&&_0x3b5a20===0x0)return _0x35b720;}return-0x1;}function findMatchingBlockEnd(_0x1cf09f,_0x141d73){const _0x2b4d72=_0x1939;let _0x589334=0x0,_0x4030e4=null,_0xae9f0=![];for(let _0x48e102=_0x141d73;_0x48e102<_0x1cf09f[_0x2b4d72(0xa8)];_0x48e102+=0x1){const _0x1fb54b=_0x1cf09f[_0x48e102];if(_0x4030e4){if(_0xae9f0){_0xae9f0=![];continue;}if(_0x1fb54b==='\x5c'){_0xae9f0=!![];continue;}if(_0x1fb54b===_0x4030e4)_0x4030e4=null;continue;}if(_0x1fb54b==='\x22'||_0x1fb54b==='\x27'||_0x1fb54b==='`'){_0x4030e4=_0x1fb54b;continue;}if(_0x1fb54b==='{')_0x589334+=0x1;if(_0x1fb54b==='}')_0x589334-=0x1;if(_0x589334===0x0)return _0x48e102+0x1;}return-0x1;}function findNextNonWhitespace(_0x218ff4,_0x499405){const _0xa8a74f=_0x1939;for(let _0x5f3727=_0x499405;_0x5f3727<_0x218ff4[_0xa8a74f(0xa8)];_0x5f3727+=0x1){if(!/\s/[_0xa8a74f(0xbe)](_0x218ff4[_0x5f3727]))return _0x5f3727;}return-0x1;}function repairMalformedAlreadyPatchedFunction(_0x39c1cb,_0x578a5a){const _0x748289=_0x1939,_0x3bc92f=_0x39c1cb['indexOf'](_0x578a5a);if(_0x3bc92f===-0x1)return{'patched':![],'reason':'not-foun'+'d'};const _0x5dd4db=findFunctionBodyStart(_0x39c1cb,_0x3bc92f);if(_0x5dd4db===-0x1)return{'patched':![],'reason':_0x748289(0xae)+_0x748289(0xb4)};const _0x154700=findMatchingBlockEnd(_0x39c1cb,_0x5dd4db);if(_0x154700===-0x1)return{'patched':![],'reason':_0x748289(0xa3)+_0x748289(0xbf)+'nd'};const _0xb93f26=findNextNonWhitespace(_0x39c1cb,_0x154700);if(_0x39c1cb[_0xb93f26]!==')')return{'patched':![],'reason':_0x748289(0xa6)+_0x748289(0xcc)};const _0x4e64fe=findNextNonWhitespace(_0x39c1cb,_0xb93f26+0x1);if(_0x39c1cb[_0x4e64fe]!=='{')return{'patched':![],'reason':'already-'+_0x748289(0xcc)};const _0x49be29=findMatchingBlockEnd(_0x39c1cb,_0x4e64fe);if(_0x49be29===-0x1)return{'patched':![],'reason':_0x748289(0xa3)+_0x748289(0xbf)+'nd'};return{'patched':!![],'source':_0x39c1cb[_0x748289(0xc1)](0x0,_0x154700)+_0x39c1cb['slice'](_0x49be29)};}function _0x1939(_0x3582fb,_0x5a1106){_0x3582fb=_0x3582fb-0xa3;const _0x330056=_0x3300();let _0x1939ad=_0x330056[_0x3582fb];return _0x1939ad;}function replaceFunctionBody(_0x18bf0d,_0x449e39,_0xe37437){const _0x10d6ee=_0x1939,_0xa27523=_0x18bf0d[_0x10d6ee(0xcd)](_0x449e39);if(_0xa27523===-0x1)return{'patched':![],'reason':'not-foun'+'d'};const _0x55aa1f=findFunctionBodyStart(_0x18bf0d,_0xa27523);if(_0x55aa1f===-0x1)return{'patched':![],'reason':_0x10d6ee(0xae)+_0x10d6ee(0xb4)};const _0x636f4e=findMatchingBlockEnd(_0x18bf0d,_0x55aa1f);if(_0x636f4e===-0x1)return{'patched':![],'reason':_0x10d6ee(0xa3)+_0x10d6ee(0xbf)+'nd'};const _0x3bf99d=_0x449e39+'\x20'+_0xe37437;return{'patched':!![],'source':_0x18bf0d[_0x10d6ee(0xc1)](0x0,_0xa27523)+_0x3bf99d+_0x18bf0d[_0x10d6ee(0xc1)](_0x636f4e)};}export function patchSessionStoreLoadFromSource(_0x10943d,_0x580767={}){const _0x527eb1=_0x1939,_0xc8be21=_0x580767[_0x527eb1(0xbd)+_0x527eb1(0xbb)];if(!_0xc8be21)return{'patched':![],'reason':_0x527eb1(0xb2)+_0x527eb1(0xc5)+'t-provid'+'ed'};if(_0x10943d[_0x527eb1(0xab)](_0x527eb1(0xb9)+_0x527eb1(0xcb)+_0x527eb1(0xce)+_0x527eb1(0xa4)+_0x527eb1(0xc9)))return repairMalformedAlreadyPatchedFunction(_0x10943d,_0x527eb1(0xd6)+_0x527eb1(0xa5)+_0x527eb1(0xa7)+_0x527eb1(0xc4)+_0x527eb1(0xd4)+'s\x20=\x20{})');const _0x193006=replaceFunctionBody(ensureBridgeImport(_0x10943d,_0xc8be21),_0x527eb1(0xd6)+'\x20loadSes'+_0x527eb1(0xa7)+_0x527eb1(0xc4)+'ath,\x20opt'+_0x527eb1(0xca),_0x527eb1(0xad)+_0x527eb1(0xd5)+_0x527eb1(0xb6)+'idge.loa'+'dSession'+'Store(st'+_0x527eb1(0xc0)+_0x527eb1(0xd3)+'}');return _0x193006;}export function patchSessionStoreWriteFromSource(_0x4fa2f6,_0x788555={}){const _0x3536b4=_0x1939,_0x203dc6=_0x788555[_0x3536b4(0xbd)+_0x3536b4(0xbb)];if(!_0x203dc6)return{'patched':![],'reason':_0x3536b4(0xb2)+'mport-no'+'t-provid'+'ed'};const _0x3eeb09=replaceFunctionBody(ensureBridgeImport(_0x4fa2f6,_0x203dc6),'async\x20fu'+'nction\x20w'+_0x3536b4(0xb1)+_0x3536b4(0xc3)+_0x3536b4(0xba)+_0x3536b4(0xc6),'{\x0a\x09retur'+_0x3536b4(0xc2)+'wujieSes'+_0x3536b4(0xcb)+_0x3536b4(0xaf)+'SessionS'+_0x3536b4(0xa9)+_0x3536b4(0xbc)+_0x3536b4(0xd7));if(!_0x3eeb09[_0x3536b4(0xcc)])return _0x3eeb09;return _0x3eeb09;}
1
+ (function(_0xb70694,_0x322182){const _0x4f6320=_0x3eba,_0x2e9b68=_0xb70694();while(!![]){try{const _0x3a70b8=parseInt(_0x4f6320(0x19d))/0x1+-parseInt(_0x4f6320(0x19f))/0x2+parseInt(_0x4f6320(0x17d))/0x3*(parseInt(_0x4f6320(0x185))/0x4)+parseInt(_0x4f6320(0x193))/0x5+-parseInt(_0x4f6320(0x180))/0x6+parseInt(_0x4f6320(0x16b))/0x7+parseInt(_0x4f6320(0x182))/0x8*(-parseInt(_0x4f6320(0x18b))/0x9);if(_0x3a70b8===_0x322182)break;else _0x2e9b68['push'](_0x2e9b68['shift']());}catch(_0xad8f1b){_0x2e9b68['push'](_0x2e9b68['shift']());}}}(_0x1e89,0x3265a));function createBridgeImport(_0x112e9b){const _0x32b061=_0x3eba;return _0x32b061(0x174)+_0x32b061(0x172)+_0x32b061(0x197)+_0x32b061(0x19e)+_0x32b061(0x195)+_0x112e9b+'\x22;';}function _0x1e89(){const _0x33c75e=['orePath,','essionSt','test','\x20loadSes','285133kbCXwh','Bridge\x20f','343426wUCXkn','s\x20=\x20{})','async\x20fu','length','includes','807821FeDPom','toreAtom','match','arams)','patched','Store(st','n\x20await\x20','\x20as\x20wuji','mport-no','import\x20*','t-provid','replace','sionBrid','e(storeP','ge.write','-found','{\x0a\x09retur','ore','5541uOrvpf','not-foun','already-','2049102bnwtva','slice','2717816TKAhcW','portPath','\x20opts);\x0a','876GMzTTz','ge.loadS','dSession','sionStor','function','ic(param','9RzoTzR','s);\x0a}','riteSess','-not-fou','ath,\x20opt','wujieSes','body-end','body-not','1271770BAGLzB','idge.loa','rom\x20\x22','n\x20wujieS','eSession','indexOf'];_0x1e89=function(){return _0x33c75e;};return _0x1e89();}function ensureBridgeImport(_0x26c751,_0x17fa96){const _0x3f2512=_0x3eba,_0x66ada6=createBridgeImport(_0x17fa96);if(_0x26c751[_0x3f2512(0x16a)](_0x66ada6))return _0x26c751;const _0x4f97ef=_0x26c751[_0x3f2512(0x16d)](/^import .*;$/m);if(!_0x4f97ef)return _0x66ada6+'\x0a'+_0x26c751;return _0x26c751[_0x3f2512(0x176)](_0x4f97ef[0x0],_0x4f97ef[0x0]+'\x0a'+_0x66ada6);}function findFunctionBodyStart(_0x28d424,_0x5b5180){const _0x3222b4=_0x3eba,_0x1371f4=_0x28d424['indexOf']('(',_0x5b5180);if(_0x1371f4===-0x1)return-0x1;let _0x29b310=0x0,_0x45ebe1=null,_0x1cb4e4=![];for(let _0x30ea13=_0x1371f4;_0x30ea13<_0x28d424[_0x3222b4(0x169)];_0x30ea13+=0x1){const _0x1882ec=_0x28d424[_0x30ea13];if(_0x45ebe1){if(_0x1cb4e4){_0x1cb4e4=![];continue;}if(_0x1882ec==='\x5c'){_0x1cb4e4=!![];continue;}if(_0x1882ec===_0x45ebe1)_0x45ebe1=null;continue;}if(_0x1882ec==='\x22'||_0x1882ec==='\x27'||_0x1882ec==='`'){_0x45ebe1=_0x1882ec;continue;}if(_0x1882ec==='('){_0x29b310+=0x1;continue;}if(_0x1882ec===')'){_0x29b310-=0x1;continue;}if(_0x1882ec==='{'&&_0x29b310===0x0)return _0x30ea13;}return-0x1;}function findMatchingBlockEnd(_0x2ede1e,_0x3b8425){const _0x1f19e7=_0x3eba;let _0x41c5e8=0x0,_0x3693ef=null,_0x103e54=![];for(let _0x42f2cd=_0x3b8425;_0x42f2cd<_0x2ede1e[_0x1f19e7(0x169)];_0x42f2cd+=0x1){const _0x1689ab=_0x2ede1e[_0x42f2cd];if(_0x3693ef){if(_0x103e54){_0x103e54=![];continue;}if(_0x1689ab==='\x5c'){_0x103e54=!![];continue;}if(_0x1689ab===_0x3693ef)_0x3693ef=null;continue;}if(_0x1689ab==='\x22'||_0x1689ab==='\x27'||_0x1689ab==='`'){_0x3693ef=_0x1689ab;continue;}if(_0x1689ab==='{')_0x41c5e8+=0x1;if(_0x1689ab==='}')_0x41c5e8-=0x1;if(_0x41c5e8===0x0)return _0x42f2cd+0x1;}return-0x1;}function _0x3eba(_0x4e47e8,_0x21f2a0){_0x4e47e8=_0x4e47e8-0x167;const _0x1e8940=_0x1e89();let _0x3eba01=_0x1e8940[_0x4e47e8];return _0x3eba01;}function findNextNonWhitespace(_0x7b6fc8,_0x542659){const _0x22d282=_0x3eba;for(let _0x11a59a=_0x542659;_0x11a59a<_0x7b6fc8[_0x22d282(0x169)];_0x11a59a+=0x1){if(!/\s/[_0x22d282(0x19b)](_0x7b6fc8[_0x11a59a]))return _0x11a59a;}return-0x1;}function repairMalformedAlreadyPatchedFunction(_0x4bb2f1,_0xa8081e){const _0x3b61a5=_0x3eba,_0x4503a6=_0x4bb2f1['indexOf'](_0xa8081e);if(_0x4503a6===-0x1)return{'patched':![],'reason':_0x3b61a5(0x17e)+'d'};const _0x5841a5=findFunctionBodyStart(_0x4bb2f1,_0x4503a6);if(_0x5841a5===-0x1)return{'patched':![],'reason':_0x3b61a5(0x192)+_0x3b61a5(0x17a)};const _0x5554ee=findMatchingBlockEnd(_0x4bb2f1,_0x5841a5);if(_0x5554ee===-0x1)return{'patched':![],'reason':_0x3b61a5(0x191)+_0x3b61a5(0x18e)+'nd'};const _0xe94afd=findNextNonWhitespace(_0x4bb2f1,_0x5554ee);if(_0x4bb2f1[_0xe94afd]!==')')return{'patched':![],'reason':_0x3b61a5(0x17f)+_0x3b61a5(0x16f)};const _0x2dcf37=findNextNonWhitespace(_0x4bb2f1,_0xe94afd+0x1);if(_0x4bb2f1[_0x2dcf37]!=='{')return{'patched':![],'reason':'already-'+_0x3b61a5(0x16f)};const _0x2489d2=findMatchingBlockEnd(_0x4bb2f1,_0x2dcf37);if(_0x2489d2===-0x1)return{'patched':![],'reason':'body-end'+_0x3b61a5(0x18e)+'nd'};return{'patched':!![],'source':_0x4bb2f1[_0x3b61a5(0x181)](0x0,_0x5554ee)+_0x4bb2f1['slice'](_0x2489d2)};}function replaceFunctionBody(_0x45c67c,_0x32271c,_0x128d59){const _0x56e47f=_0x3eba,_0xd2d3d0=_0x45c67c[_0x56e47f(0x198)](_0x32271c);if(_0xd2d3d0===-0x1)return{'patched':![],'reason':_0x56e47f(0x17e)+'d'};const _0x21f7e4=findFunctionBodyStart(_0x45c67c,_0xd2d3d0);if(_0x21f7e4===-0x1)return{'patched':![],'reason':_0x56e47f(0x192)+_0x56e47f(0x17a)};const _0x1d8197=findMatchingBlockEnd(_0x45c67c,_0x21f7e4);if(_0x1d8197===-0x1)return{'patched':![],'reason':_0x56e47f(0x191)+_0x56e47f(0x18e)+'nd'};const _0x209e72=_0x32271c+'\x20'+_0x128d59;return{'patched':!![],'source':_0x45c67c[_0x56e47f(0x181)](0x0,_0xd2d3d0)+_0x209e72+_0x45c67c['slice'](_0x1d8197)};}export function patchSessionStoreLoadFromSource(_0x1bf283,_0x41d866={}){const _0x956c8=_0x3eba,_0x2399ac=_0x41d866['bridgeIm'+_0x956c8(0x183)];if(!_0x2399ac)return{'patched':![],'reason':'bridge-i'+_0x956c8(0x173)+_0x956c8(0x175)+'ed'};if(_0x1bf283[_0x956c8(0x16a)](_0x956c8(0x190)+_0x956c8(0x177)+_0x956c8(0x186)+_0x956c8(0x19a)+_0x956c8(0x17c)))return repairMalformedAlreadyPatchedFunction(_0x1bf283,_0x956c8(0x189)+_0x956c8(0x19c)+_0x956c8(0x188)+_0x956c8(0x178)+_0x956c8(0x18f)+_0x956c8(0x167));const _0x4dbe42=replaceFunctionBody(ensureBridgeImport(_0x1bf283,_0x2399ac),'function'+_0x956c8(0x19c)+_0x956c8(0x188)+_0x956c8(0x178)+'ath,\x20opt'+_0x956c8(0x167),_0x956c8(0x17b)+_0x956c8(0x196)+'essionBr'+_0x956c8(0x194)+_0x956c8(0x187)+_0x956c8(0x170)+_0x956c8(0x199)+_0x956c8(0x184)+'}');return _0x4dbe42;}export function patchSessionStoreWriteFromSource(_0x5df0f6,_0x4a439b={}){const _0x1515b6=_0x3eba,_0x3ebd7c=_0x4a439b['bridgeIm'+_0x1515b6(0x183)];if(!_0x3ebd7c)return{'patched':![],'reason':'bridge-i'+'mport-no'+_0x1515b6(0x175)+'ed'};const _0x476619=replaceFunctionBody(ensureBridgeImport(_0x5df0f6,_0x3ebd7c),_0x1515b6(0x168)+'nction\x20w'+_0x1515b6(0x18d)+'ionStore'+'Atomic(p'+_0x1515b6(0x16e),'{\x0a\x09retur'+_0x1515b6(0x171)+'wujieSes'+_0x1515b6(0x177)+_0x1515b6(0x179)+'SessionS'+_0x1515b6(0x16c)+_0x1515b6(0x18a)+_0x1515b6(0x18c));if(!_0x476619[_0x1515b6(0x16f)])return _0x476619;return _0x476619;}
@@ -0,0 +1 @@
1
+ (function(_0x3fdff8,_0x3a8f67){const _0x236113=_0x5896,_0x46890f=_0x3fdff8();while(!![]){try{const _0x13b7a2=-parseInt(_0x236113(0x29d))/0x1+-parseInt(_0x236113(0x277))/0x2+parseInt(_0x236113(0x244))/0x3*(parseInt(_0x236113(0x201))/0x4)+-parseInt(_0x236113(0x152))/0x5*(-parseInt(_0x236113(0x125))/0x6)+parseInt(_0x236113(0x14e))/0x7*(-parseInt(_0x236113(0x2b8))/0x8)+parseInt(_0x236113(0x28d))/0x9*(-parseInt(_0x236113(0x1e6))/0xa)+parseInt(_0x236113(0x28c))/0xb*(parseInt(_0x236113(0x181))/0xc);if(_0x13b7a2===_0x3a8f67)break;else _0x46890f['push'](_0x46890f['shift']());}catch(_0xc32b8){_0x46890f['push'](_0x46890f['shift']());}}}(_0x403e,0x2f3dd));export function patchWeixinOutboundSessionRouteFromSource(_0x13d0f0){const _0x111155=_0x5896;if(_0x13d0f0['includes'](_0x111155(0x136)+_0x111155(0x2c4)+'inOutbou'+_0x111155(0x1bd)+'nRoute')){if(!_0x13d0f0[_0x111155(0x15e)](_0x111155(0x20e)+_0x111155(0x225)+_0x111155(0x264)+_0x111155(0x27d)))return upgradeExistingWeixinOutboundSessionRoutePatch(_0x13d0f0);return{'patched':![],'reason':_0x111155(0x193)+'patched'};}const _0x551be5='const\x20ME'+_0x111155(0x27a)+_0x111155(0x13e)+_0x111155(0x1d5)+_0x111155(0x214)+_0x111155(0x220)+_0x111155(0x1c3)+_0x111155(0x13b)+_0x111155(0x20f)+_0x111155(0x1f8)+_0x111155(0x209)+'a/outbou'+_0x111155(0x189)+');';if(!_0x13d0f0['includes'](_0x551be5))return{'patched':![],'reason':'helper-a'+_0x111155(0x13c)+_0x111155(0x2b6)};const _0x260675=_0x111155(0x1c6)+'aging:\x20{'+_0x111155(0x1ad)+_0x111155(0x149)+'esolver:'+'\x20{\x0a\x20\x20\x20\x20\x20'+_0x111155(0x265)+'/\x20Weixin'+_0x111155(0x16c)+_0x111155(0x12d)+'\x20end\x20wit'+_0x111155(0x12a)+_0x111155(0x144)+_0x111155(0x23d)+_0x111155(0x238)+'s,\x20skip\x20'+_0x111155(0x200)+_0x111155(0x1b1)+_0x111155(0x239)+_0x111155(0x1cc)+_0x111155(0x25a)+_0x111155(0x124)+_0x111155(0x205)+_0x111155(0x1ec)+_0x111155(0x182)+'chat\x22),\x0a'+_0x111155(0x147)+_0x111155(0x25f)+',';if(!_0x13d0f0[_0x111155(0x15e)](_0x260675))return{'patched':![],'reason':_0x111155(0x140)+_0x111155(0x280)+_0x111155(0x21b)+'d'};const _0x38bc90=_0x551be5+'\x0a'+weixinPluginRouteHelperSource(),_0x1c2a5c=_0x111155(0x1c6)+_0x111155(0x218)+_0x111155(0x1ad)+_0x111155(0x208)+'rgetChat'+_0x111155(0x211)+_0x111155(0x235)+_0x111155(0x26b)+'ormalize'+_0x111155(0x1da)+'uteTarge'+_0x111155(0x1a5)+_0x111155(0x2bf)+_0x111155(0x1bc)+_0x111155(0x29f)+_0x111155(0x213)+_0x111155(0x28b)+_0x111155(0x296)+_0x111155(0x12e)+_0x111155(0x1db)+_0x111155(0x2b2)+_0x111155(0x1e2)+':\x20wujieR'+'esolveWe'+_0x111155(0x242)+'oundSess'+_0x111155(0x1e2)+_0x111155(0x163)+'\x20\x20target'+'Resolver'+_0x111155(0x1ba)+_0x111155(0x147)+_0x111155(0x2ab)+_0x111155(0x1f0)+_0x111155(0x173)+_0x111155(0x2ca)+'th\x20@im.w'+_0x111155(0x2af)+_0x111155(0x1fb)+_0x111155(0x254)+_0x111155(0x164)+_0x111155(0x18b)+_0x111155(0x23f)+_0x111155(0x14f)+_0x111155(0x1a8)+'ooksLike'+_0x111155(0x1bf)+_0x111155(0x129)+'.endsWit'+_0x111155(0x226)+_0x111155(0x1eb)+_0x111155(0x1ad)+_0x111155(0x16f)+'},';return{'patched':!![],'source':_0x13d0f0['replace'](_0x551be5,_0x38bc90)[_0x111155(0x1b6)](_0x260675,_0x1c2a5c)};}export function patchWeixinOutboundFallbackFromSource(_0x1217cb){const _0x262554=_0x5896;if(_0x1217cb[_0x262554(0x15e)](_0x262554(0x136)+'olveWeix'+_0x262554(0x1d6)+_0x262554(0x15b)+_0x262554(0x286)+'n'))return{'patched':![],'reason':_0x262554(0x193)+'patched'};const _0x1003a4=_0x262554(0x1b9)+'\x20resolve'+'Fallback'+_0x262554(0x128)+_0x262554(0x28e)+'{';if(!_0x1217cb['includes'](_0x1003a4))return{'patched':![],'reason':_0x262554(0x1cd)+_0x262554(0x2a9)+_0x262554(0x14b)+_0x262554(0x22a)};const _0x52de32=_0x262554(0x25d)+_0x262554(0x253)+_0x262554(0x22b)+_0x262554(0x161)+_0x262554(0x231)+_0x262554(0x291)+'et,\x20para'+'ms.chann'+_0x262554(0x185)+_0x262554(0x1f3)+_0x262554(0x1a6)+_0x262554(0x1cf)+_0x262554(0x1aa);if(!_0x1217cb[_0x262554(0x15e)](_0x52de32))return{'patched':![],'reason':_0x262554(0x1cd)+_0x262554(0x2a1)+'ot-found'};const _0x4edf5e=weixinCoreFallbackHelperSource()+'\x0a'+_0x1003a4,_0x4e2d86=_0x52de32+(_0x262554(0x26c)+_0x262554(0x17a)+_0x262554(0x167)+_0x262554(0x19e)+'\x20=\x20wujie'+_0x262554(0x271)+_0x262554(0x228)+'irectFal'+'lbackSes'+_0x262554(0x227)+'ams);\x0a\x09i'+'f\x20(wujie'+_0x262554(0x210)+_0x262554(0x18a)+'ion)\x20ret'+_0x262554(0x206)+_0x262554(0x2cd)+_0x262554(0x143)+_0x262554(0x186));return{'patched':!![],'source':_0x1217cb['replace'](_0x1003a4,_0x4edf5e)['replace'](_0x52de32,_0x4e2d86)};}function _0x403e(){const _0x3b71d1=['Route(pa','}:direct','\x0a\x09\x09baseS','eBuildWe','ed,','\x20\x20\x20const','Id(to)','essionKe','d:\x20to\x20},','ams.cfg,','ct\x22,\x20id:','wechat\x22)','\x20\x20\x20from:','rimmed\x20=','direct\x20I','r:\x20{\x20kin','nnel:\x20pa','pe\x20===\x20\x22','direct\x22,','to\x20??\x20\x22\x22','oksLikeI','\x20wujieNo','inferTar','\x09const\x20t','return\x20p','},\x0a\x20\x20\x20\x20}','erId}`\x0a\x09','\x20wujieRe','t(to);\x0a\x20','tId}:mai','ixinRout','\x20\x20\x20\x20\x20\x20\x20/','rim();\x0a\x09','(without','\x0a\x09\x09from:','Kind);\x0a\x09','}:${chan','>\x20wujieN','\x0a\x09const\x20','ider\x20=\x20s','countId)','nKey\x20=\x20b','rovider\x20','ResolveW','claw-wei','d:\x20param',')\x20return','nversati','e(/^g-/i','514026OyjaZy','ormalize','xinOutbo','DIA_OUTB','\x22);\x0a\x20\x20\x20\x20','f\x20(dmSco','eTarget','Key\x20=\x20wu','\x20{\x0a\x09\x09ses','g-shape-','ionKey(p','();\x0a}','slice','\x20session','-normali','ckSessio','owerCase','uteTarge','ser:${to','\x20\x20const\x20',':\x20undefi','6276523myddif','18dTfEJk','params)\x20','normaliz','ain\x22).tr','ams.targ','t\x20to\x20=\x20w','arams?.t','ix(Strin','onKey,\x0a\x20','ned,\x0a\x20\x20\x20','w,\x20chann','ntId,\x20to','at\x22)\x20?\x20p','tFallbac','hannel)\x20','arams.ac','141737qGZSHQ','tId\x20||\x20\x22','at\x22)\x20?\x20\x22','\x20\x20\x20\x20to:\x20','-shape-n','();\x0a}\x0afu','to}`,\x0a\x20\x20',').trim()','uildOutb','erId}`;\x0a','ct\x22,\x0a\x20\x20\x20','\x20\x20\x20baseS','-functio','nst\x20to\x20=','//\x20Weixi','eturn\x20`a','y,\x0a\x20\x20\x20\x20\x20','\x20peerId\x20','echat;\x20t','peerId\x20=','\x22\x20&&\x20pee','oundSess','=\x20\x22per-p','ession?.','nction\x20w','t-found','dWeixinD','296oLlKhp','gOrEmpty','nel}:dir','nst\x20raw\x20','ect:${pe','\x20{\x0a\x09if\x20(','getChatT','dsWith(\x22','\x20to,\x20par','malizedA','per-acco','return\x20n','olveWeix','iderPref',',\x20accoun','|\x20\x22defau','eturn\x20nu','eturn\x20wi','s\x20end\x20wi','t\x22\x20:\x20und','\x22)\x20?\x20raw','eWeixinD','.slice(\x22','\x20}\x0a\x20\x20\x20\x20i','d:\x20(raw)','564dzNATK','Target(p','replaceA','Session(',')\x20=>\x20raw','h\x20@im.we','nclaw-we','arget?.t','s\x20always','\x20\x20\x20\x20\x20res','per-chan','on|room|','nnel,\x0a\x09\x09','indexOf','undSessi','cfg,\x20age','nImDirec','wujieRes','ms.chann','n`;\x0a}\x0afu','onst\x20nor',');\x0a\x20\x20\x20\x20r','edOpenCl','nchor-no','{\x0a\x20\x20\x20\x20co','OUND_TEM','teTarget','messagin','jieBuild','d\x20=\x20stri','irectSes','chat;\x20tr','d\x20=\x20Stri','Key,\x0a\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20','hatType:','\x20targetR','eLowerca','n-not-fo','zeLowerc','ctSessio','9569EceEUF','p.\x0a\x20\x20\x20\x20\x20',';\x0a\x20\x20\x20\x20re','n:${to}`','5780YJtGJl','lt\x22;\x0a\x20\x20\x20','\x20normali','agentId,','zer-not-','onRoute(','${normal','chat\x22))\x20','\x22.length','ctFallba','ujieNorm','ll;\x0a\x09con','includes','th(\x22@im.','alizeWei','oviderPr','ull;\x0a\x20\x20\x20',',\x0a\x20\x20\x20\x20\x20\x20','Ds,\x20skip','y\x20=\x20wuji','d}`;\x0a\x20\x20\x20','xinDirec','nd:\x20\x22dir','s.accoun','rmalizeW','\x20to\x20},\x0a\x20','\x20user\x20ID','tsWith(\x22','seString','\x20},\x0a\x20\x20\x20\x20','nOutboun','default\x22','\x0a\x09if\x20(!p','Ds\x20alway','rn\x20{\x0a\x20\x20\x20','ind:\x20\x22di','pKindPre','openclaw','nel-peer','aseStrin','wujieWei','oundBase','g(accoun','o.endsWi','inOutbou','\x22).trim(','annel).t','12oGSQRY','(\x22@im.we','\x20\x20\x20\x20\x20fro','/^(user|','el).trim','sion;','?\x20\x22direc','\x20\x20\x20\x20\x20ret','nd-temp\x22','rectSess','\x20directo','eer:\x20{\x20k','solveWei','aw-weixi','rId)\x20{\x0a\x20','ixinDire','dmScope\x20','kSession','already-','im().toL','if\x20(!to.','rams)\x20{\x0a','\x20\x20\x20\x20\x20ses','?\x20\x22\x22).tr','to\x20})\x20=>','zeWeixin','\x20\x20if\x20(!t','ype:\x20({\x20','ams.acco','tSession','channel|','}`,\x0a\x20\x20\x20\x20','im();\x0a\x20\x20','ccountId','edAgentI','ixin\x22)\x20r','t(to).en','(!trimme','sionKey(','\x20\x20\x20\x20\x20\x20\x20l','sionKey,','n\x20null;','\x20:\x20raw;\x0a','eerId.en','\x0a\x20\x20\x20\x20\x20\x20\x20','=\x20{\x0a\x09\x09ki','Id\x20||\x20\x22m','echat\x22)\x20','y\x20lookup','id:\x20peer','-resolve','\x20baseSes','??\x20\x22main','replace','el)\x20{\x0a\x09c','d):/i,\x20\x22','function',':\x20{\x0a\x20\x20\x20\x20','.target?','@im.wech','ndSessio','\x20\x20\x20\x20}\x0a\x20\x20','Id:\x20(raw','ImPeerId','(params?','tKind\x20=\x20','ePreferr','tId)\x20{\x0a\x20','\x20undefin','\x20\x20\x20\x20mess','OrEmpty(','accountI','d:\x20\x22dire','Id\x0a\x09};\x0a\x09','-weixin:','\x20\x20\x20\x20\x20\x20lo','fallback','LowerCas','d)\x20retur','.toLower',',\x20\x22\x22).tr','e().star','rovider.','y,\x0a\x09\x09pee','P_DIR\x20=\x20','inImDire','erId}`,\x0a','sionKey:','g,\x20param','WeixinRo','olveOutb','sWith(\x22@','target,\x20','ser:${pe','withoutP','t\x20withou','ujieReso','ionRoute','Scope\x20==','=\x20wujieN','params.c','1128690JEFrsr','el}:${pe','peerId)\x20','ain\x22;\x0a\x20\x20','\x20chatTyp','echat\x22),','endsWith','\x20`agent:','dSession','rams.cha','n\x20user\x20I','\x20\x20\x20\x20\x20pee','\x20channel','();\x0a\x09if\x20','lveWeixi','fix(with','\x20const\x20s','found','(),\x20\x22wei','\x20\x22\x22),\x20ch','=\x20raw.to','reat\x20as\x20','ey({\x0a\x09\x09c','replace(','gentId}:','\x20\x20\x20\x20cons','director','4JXTswJ','dAgentId','()\x20||\x20\x22m','xin\x22;\x0a\x20\x20','\x20=>\x20raw.','urn\x20wuji','r,\x0a\x09\x09cha','\x20inferTa','xin/medi','eerId)\x20r','\x20\x20};\x0a}','s.agentI','untId);\x0a','wujieNor','awTmpDir','WeixinDi','Type:\x20({','irect\x22\x20:','direct\x22\x20','path.joi','l}:${nor','Case()\x20|','izedAgen','aging:\x20{','\x20=\x20Strin','xin:${to','not-foun','eer\x22\x20&&\x20','const\x20wi','d,\x0a\x09\x09cha','\x20null;\x0a\x20','n(resolv','\x09\x09agentI','(value\x20?','dm|threa','thoutKin','malizeWe','h(\x22@im.w','sion(par','eixinImD','const\x20ba','und','\x20stripPr','\x0a\x09return','nRoute','group|co','hannel);','\x22;\x0a\x20\x20\x20\x20i','efix(par','eNormali','y:\x20sessi','der).rep','\x20to\x20})\x20=','\x20\x20\x20\x20\x20\x20\x20s','=\x20cfg?.s','irect\x20ID','.\x0a\x20\x20\x20\x20\x20\x20','existing','ng(agent','im.wecha','eat\x20as\x20d','(value)\x20','ry\x20looku','};\x0a}','eixinRou','ixinOutb','d.replac','567933XGdEvP','st\x20peerI'];_0x403e=function(){return _0x3b71d1;};return _0x403e();}function weixinPluginRouteHelperSource(){const _0x5c7e0b=_0x5896;return _0x5c7e0b(0x1b9)+_0x5c7e0b(0x25b)+_0x5c7e0b(0x16a)+_0x5c7e0b(0x241)+_0x5c7e0b(0x13f)+_0x5c7e0b(0x23e)+_0x5c7e0b(0x13d)+'nst\x20raw\x20'+'=\x20String'+_0x5c7e0b(0x222)+_0x5c7e0b(0x198)+'im();\x0a\x20\x20'+_0x5c7e0b(0x28a)+_0x5c7e0b(0x1df)+_0x5c7e0b(0x270)+'=\x20raw.to'+_0x5c7e0b(0x1ce)+_0x5c7e0b(0x1d2)+_0x5c7e0b(0x16d)+'openclaw'+_0x5c7e0b(0x1cb)+_0x5c7e0b(0x2cc)+_0x5c7e0b(0x2ce)+_0x5c7e0b(0x177)+'-weixin:'+_0x5c7e0b(0x15a)+').trim()'+_0x5c7e0b(0x1ab)+'\x20\x20\x20\x20cons'+_0x5c7e0b(0x1e0)+_0x5c7e0b(0x1c2)+_0x5c7e0b(0x1df)+_0x5c7e0b(0x1d3)+_0x5c7e0b(0x1fd)+_0x5c7e0b(0x184)+_0x5c7e0b(0x19f)+_0x5c7e0b(0x22e)+'nversati'+'on|room|'+_0x5c7e0b(0x223)+_0x5c7e0b(0x1b8)+_0x5c7e0b(0x17f)+_0x5c7e0b(0x13a)+'eturn\x20wi'+_0x5c7e0b(0x224)+'d.replac'+_0x5c7e0b(0x276)+_0x5c7e0b(0x1d1)+'im().toL'+_0x5c7e0b(0x287)+_0x5c7e0b(0x2a2)+_0x5c7e0b(0x2b5)+'ujieBuil'+_0x5c7e0b(0x2b7)+_0x5c7e0b(0x143)+_0x5c7e0b(0x1a7)+_0x5c7e0b(0x134)+_0x5c7e0b(0x298)+_0x5c7e0b(0x2c6)+_0x5c7e0b(0x1c4)+_0x5c7e0b(0x24b)+_0x5c7e0b(0x2ae)+_0x5c7e0b(0x1e4)+_0x5c7e0b(0x278)+_0x5c7e0b(0x1da)+_0x5c7e0b(0x288)+_0x5c7e0b(0x262)+_0x5c7e0b(0x24b)+_0x5c7e0b(0x1f2)+'\x20=\x20\x22open'+'claw-wei'+_0x5c7e0b(0x204)+_0x5c7e0b(0x28a)+_0x5c7e0b(0x28f)+_0x5c7e0b(0x1a3)+_0x5c7e0b(0x145)+_0x5c7e0b(0x23b)+_0x5c7e0b(0x1af)+_0x5c7e0b(0x290)+_0x5c7e0b(0x194)+'owerCase'+_0x5c7e0b(0x203)+_0x5c7e0b(0x1e9)+_0x5c7e0b(0x28a)+_0x5c7e0b(0x191)+_0x5c7e0b(0x237)+_0x5c7e0b(0x2b4)+_0x5c7e0b(0x191)+_0x5c7e0b(0x1b5)+_0x5c7e0b(0x230)+_0x5c7e0b(0x27c)+_0x5c7e0b(0x257)+_0x5c7e0b(0x2c2)+'unt-chan'+_0x5c7e0b(0x178)+_0x5c7e0b(0x2b1)+_0x5c7e0b(0x18f)+'\x20\x20\x20\x20\x20\x20\x20c'+_0x5c7e0b(0x139)+_0x5c7e0b(0x2c1)+'ccountId'+_0x5c7e0b(0x219)+_0x5c7e0b(0x17c)+_0x5c7e0b(0x29e)+_0x5c7e0b(0x171)+_0x5c7e0b(0x2a4)+_0x5c7e0b(0x1d0)+_0x5c7e0b(0x216)+_0x5c7e0b(0x2c7)+_0x5c7e0b(0x153)+_0x5c7e0b(0x188)+'urn\x20`age'+'nt:${nor'+_0x5c7e0b(0x2c1)+_0x5c7e0b(0x1fe)+'${channe'+_0x5c7e0b(0x215)+_0x5c7e0b(0x2c1)+_0x5c7e0b(0x1a2)+_0x5c7e0b(0x247)+':${peerI'+_0x5c7e0b(0x166)+_0x5c7e0b(0x123)+_0x5c7e0b(0x27c)+_0x5c7e0b(0x257)+(_0x5c7e0b(0x12f)+_0x5c7e0b(0x178)+'\x22\x20&&\x20pee'+_0x5c7e0b(0x18f)+'\x20\x20\x20\x20\x20\x20\x20r'+_0x5c7e0b(0x2ac)+'gent:${n'+_0x5c7e0b(0x278)+_0x5c7e0b(0x202)+_0x5c7e0b(0x26a)+_0x5c7e0b(0x2ba)+_0x5c7e0b(0x2bc)+_0x5c7e0b(0x2a6)+_0x5c7e0b(0x1be)+'\x20\x20if\x20(dm'+_0x5c7e0b(0x1e3)+_0x5c7e0b(0x2b3)+_0x5c7e0b(0x21c)+_0x5c7e0b(0x1e8)+'{\x0a\x20\x20\x20\x20\x20\x20'+'\x20\x20return'+'\x20`agent:'+'${normal'+_0x5c7e0b(0x217)+'tId}:dir'+_0x5c7e0b(0x2bc)+_0x5c7e0b(0x2a6)+'\x20\x20\x20\x20}\x0a\x20\x20'+'\x20\x20return'+_0x5c7e0b(0x1ed)+_0x5c7e0b(0x158)+_0x5c7e0b(0x217)+_0x5c7e0b(0x263)+_0x5c7e0b(0x138)+_0x5c7e0b(0x2b5)+_0x5c7e0b(0x1e1)+'lveWeixi'+_0x5c7e0b(0x170)+_0x5c7e0b(0x1ee)+_0x5c7e0b(0x246)+_0x5c7e0b(0x196)+'\x20\x20\x20\x20cons'+_0x5c7e0b(0x292)+_0x5c7e0b(0x15c)+_0x5c7e0b(0x160)+'xinRoute'+_0x5c7e0b(0x126)+_0x5c7e0b(0x293)+_0x5c7e0b(0x12c)+'o\x20??\x20par'+'ams?.tar'+'get\x20??\x20\x22'+_0x5c7e0b(0x27b)+_0x5c7e0b(0x195)+'endsWith'+_0x5c7e0b(0x182)+_0x5c7e0b(0x159)+_0x5c7e0b(0x2c3)+_0x5c7e0b(0x162)+_0x5c7e0b(0x1f6)+_0x5c7e0b(0x24d)+_0x5c7e0b(0x165)+_0x5c7e0b(0x249)+_0x5c7e0b(0x190)+_0x5c7e0b(0x14d)+'nKey(par'+_0x5c7e0b(0x24f)+'\x20params.'+_0x5c7e0b(0x155)+_0x5c7e0b(0x2c0)+_0x5c7e0b(0x19d)+_0x5c7e0b(0x20d)+'\x20\x20\x20\x20retu'+_0x5c7e0b(0x174)+_0x5c7e0b(0x197)+_0x5c7e0b(0x1a9)+_0x5c7e0b(0x1ad)+_0x5c7e0b(0x1b4)+_0x5c7e0b(0x1d8)+'\x20session'+_0x5c7e0b(0x146)+_0x5c7e0b(0x1f1)+_0x5c7e0b(0x255)+_0x5c7e0b(0x1c9)+_0x5c7e0b(0x250)+_0x5c7e0b(0x16b)+'\x20\x20\x20\x20\x20\x20\x20c'+_0x5c7e0b(0x148)+'\x20\x22direct'+'\x22,\x0a\x20\x20\x20\x20\x20'+_0x5c7e0b(0x252)+'\x20`opencl'+_0x5c7e0b(0x18e)+_0x5c7e0b(0x151)+',\x0a\x20\x20\x20\x20\x20\x20'+'\x20\x20to:\x20`u'+_0x5c7e0b(0x289)+_0x5c7e0b(0x1a0)+_0x5c7e0b(0x240));}function weixinCoreFallbackHelperSource(){const _0x572583=_0x5896;return'function'+_0x572583(0x25b)+_0x572583(0x16a)+'eixinImP'+'eerId(ra'+_0x572583(0x297)+_0x572583(0x1b7)+'onst\x20wit'+'houtProv'+_0x572583(0x26d)+'tripProv'+_0x572583(0x2c5)+_0x572583(0x294)+'g(raw\x20??'+_0x572583(0x1f9)+_0x572583(0x180)+_0x572583(0x266)+_0x572583(0x21d)+_0x572583(0x224)+_0x572583(0x142)+_0x572583(0x176)+_0x572583(0x1f5)+'outProvi'+_0x572583(0x234)+'lace(/^g'+'-/i,\x20\x22\x22)'+'.trim();'+_0x572583(0x26c)+_0x572583(0x2b0)+_0x572583(0x154)+_0x572583(0x14c)+_0x572583(0x179)+_0x572583(0x2b9)+_0x572583(0x267)+_0x572583(0x269)+_0x572583(0x25e)+_0x572583(0x1ac)+'dsWith(\x22'+'@im.wech'+_0x572583(0x299)+'eerId\x20:\x20'+'\x22\x22;\x0a}\x0afu'+_0x572583(0x2b5)+_0x572583(0x1e1)+_0x572583(0x1f4)+_0x572583(0x135)+_0x572583(0x29a)+_0x572583(0x192)+'(params)'+_0x572583(0x2bd)+_0x572583(0x28f)+_0x572583(0x14a)+_0x572583(0x16e)+_0x572583(0x1c7)+_0x572583(0x1e5)+_0x572583(0x29b)+'!==\x20\x22ope'+_0x572583(0x12b)+_0x572583(0x1a4)+_0x572583(0x2c8)+_0x572583(0x15d)+_0x572583(0x245)+'d\x20=\x20wuji'+_0x572583(0x232)+_0x572583(0x19a)+_0x572583(0x1c0)+'(params.'+_0x572583(0x1dd)+'params.c'+_0x572583(0x22f)+_0x572583(0x172)+_0x572583(0x20a)+_0x572583(0x2c8)+_0x572583(0x15d)+'st\x20peer\x20'+_0x572583(0x1ae)+_0x572583(0x168)+'ect\x22,\x0a\x09\x09'+_0x572583(0x1b2)+_0x572583(0x1ca)+_0x572583(0x229)+'seSessio'+_0x572583(0x26f)+_0x572583(0x2a5)+_0x572583(0x17b)+'SessionK'+_0x572583(0x1fc)+'fg:\x20para'+'ms.cfg,\x0a'+_0x572583(0x221)+_0x572583(0x273)+_0x572583(0x20c)+_0x572583(0x21e)+_0x572583(0x256)+_0x572583(0x1ef)+_0x572583(0x131)+_0x572583(0x1c8)+'d:\x20param'+_0x572583(0x169)+'tId,\x0a\x09\x09p'+'eer\x0a\x09});'+_0x572583(0x22c)+_0x572583(0x27f)+'sionKey:'+_0x572583(0x1b4)+_0x572583(0x1a9)+_0x572583(0x248)+_0x572583(0x24d)+_0x572583(0x1d4)+_0x572583(0x207)+'tType:\x20\x22'+_0x572583(0x258)+_0x572583(0x268)+'\x20`${para'+_0x572583(0x137)+_0x572583(0x1e7)+_0x572583(0x1d7)+'\x09\x09to:\x20`u'+_0x572583(0x1de)+_0x572583(0x260)+_0x572583(0x240);}function replaceFunction(_0x256bcd,_0x81da64,_0x55c6a3){const _0x5c404a=_0x5896,_0x1ab5c5=_0x256bcd[_0x5c404a(0x132)]('function'+'\x20'+_0x81da64);if(_0x1ab5c5===-0x1)return null;const _0x403212=_0x256bcd[_0x5c404a(0x132)]('{',_0x1ab5c5);if(_0x403212===-0x1)return null;let _0xf0de1c=0x0,_0x2d39bd=null,_0x2e444c=![];for(let _0x1089d7=_0x403212;_0x1089d7<_0x256bcd['length'];_0x1089d7+=0x1){const _0x19a4f4=_0x256bcd[_0x1089d7];if(_0x2d39bd){if(_0x2e444c){_0x2e444c=![];continue;}if(_0x19a4f4==='\x5c'){_0x2e444c=!![];continue;}if(_0x19a4f4===_0x2d39bd)_0x2d39bd=null;continue;}if(_0x19a4f4==='\x22'||_0x19a4f4==='\x27'||_0x19a4f4==='`'){_0x2d39bd=_0x19a4f4;continue;}if(_0x19a4f4==='{')_0xf0de1c+=0x1;if(_0x19a4f4==='}')_0xf0de1c-=0x1;if(_0xf0de1c===0x0)return _0x256bcd['slice'](0x0,_0x1ab5c5)+_0x55c6a3+_0x256bcd[_0x5c404a(0x283)](_0x1089d7+0x1);}return null;}function _0x5896(_0x1e6070,_0x3811a7){_0x1e6070=_0x1e6070-0x123;const _0x403e29=_0x403e();let _0x5896d3=_0x403e29[_0x1e6070];return _0x5896d3;}function upgradeExistingWeixinOutboundSessionRoutePatch(_0x77dba6){const _0x1991d1=_0x5896;let _0x2455c8=replaceFunction(_0x77dba6,_0x1991d1(0x20e)+_0x1991d1(0x225)+'ixinPeer'+'Id',_0x1991d1(0x1b9)+_0x1991d1(0x25b)+_0x1991d1(0x16a)+_0x1991d1(0x241)+_0x1991d1(0x13f)+_0x1991d1(0x23e)+_0x1991d1(0x13d)+_0x1991d1(0x2bb)+'=\x20String'+_0x1991d1(0x222)+_0x1991d1(0x198)+_0x1991d1(0x1a1)+_0x1991d1(0x28a)+'withoutP'+_0x1991d1(0x270)+_0x1991d1(0x1fa)+'LowerCas'+_0x1991d1(0x1d2)+_0x1991d1(0x16d)+_0x1991d1(0x177)+_0x1991d1(0x1cb)+_0x1991d1(0x2cc)+_0x1991d1(0x2ce)+_0x1991d1(0x177)+_0x1991d1(0x1cb)+_0x1991d1(0x15a)+_0x1991d1(0x2a4)+_0x1991d1(0x1ab)+_0x1991d1(0x1ff)+_0x1991d1(0x1e0)+_0x1991d1(0x1c2)+'withoutP'+'rovider.'+_0x1991d1(0x1fd)+_0x1991d1(0x184)+_0x1991d1(0x19f)+'group|co'+_0x1991d1(0x275)+_0x1991d1(0x130)+_0x1991d1(0x223)+_0x1991d1(0x1b8)+_0x1991d1(0x17f)+_0x1991d1(0x13a)+_0x1991d1(0x2c9)+_0x1991d1(0x224)+_0x1991d1(0x243)+'e(/^g-/i'+_0x1991d1(0x1d1)+_0x1991d1(0x194)+_0x1991d1(0x287)+_0x1991d1(0x282));if(!_0x2455c8)return{'patched':![],'reason':_0x1991d1(0x23a)+_0x1991d1(0x285)+_0x1991d1(0x156)+_0x1991d1(0x1f7)};_0x2455c8=replaceFunction(_0x2455c8,_0x1991d1(0x136)+_0x1991d1(0x2c4)+_0x1991d1(0x17e)+_0x1991d1(0x1bd)+_0x1991d1(0x22d),_0x1991d1(0x1b9)+_0x1991d1(0x261)+_0x1991d1(0x18d)+_0x1991d1(0x279)+_0x1991d1(0x133)+_0x1991d1(0x157)+_0x1991d1(0x28e)+_0x1991d1(0x13d)+_0x1991d1(0x2aa)+_0x1991d1(0x25b)+_0x1991d1(0x16a)+_0x1991d1(0x241)+_0x1991d1(0x13f)+_0x1991d1(0x1c1)+_0x1991d1(0x1bb)+'.to\x20??\x20p'+_0x1991d1(0x293)+'arget\x20??'+'\x20\x22\x22);\x0a\x20\x20'+_0x1991d1(0x19b)+_0x1991d1(0x17d)+_0x1991d1(0x15f)+_0x1991d1(0x251)+_0x1991d1(0x274)+_0x1991d1(0x21f)+_0x1991d1(0x24b)+_0x1991d1(0x284)+_0x1991d1(0x27e)+_0x1991d1(0x141)+'WeixinDi'+_0x1991d1(0x18a)+_0x1991d1(0x281)+'arams.cf'+_0x1991d1(0x1d9)+'s.agentI'+'d,\x20to,\x20p'+_0x1991d1(0x29c)+_0x1991d1(0x26e)+_0x1991d1(0x150)+'turn\x20{\x0a\x20'+_0x1991d1(0x236)+_0x1991d1(0x24d)+_0x1991d1(0x2ad)+_0x1991d1(0x2a8)+_0x1991d1(0x24d)+_0x1991d1(0x233)+_0x1991d1(0x295)+'\x20\x20\x20\x20\x20\x20\x20p'+_0x1991d1(0x18c)+_0x1991d1(0x175)+'rect\x22,\x20i'+_0x1991d1(0x24e)+_0x1991d1(0x1ad)+_0x1991d1(0x1ea)+'e:\x20\x22dire'+_0x1991d1(0x2a7)+_0x1991d1(0x183)+'m:\x20`open'+_0x1991d1(0x272)+_0x1991d1(0x21a)+'}`,\x0a\x20\x20\x20\x20'+_0x1991d1(0x2a0)+'`user:${'+_0x1991d1(0x2a3)+_0x1991d1(0x20b));if(!_0x2455c8)return{'patched':![],'reason':_0x1991d1(0x23a)+_0x1991d1(0x1b3)+'r-not-fo'+_0x1991d1(0x22a)};return _0x2455c8=_0x2455c8[_0x1991d1(0x127)+'ll'](_0x1991d1(0x20e)+'malizeWe'+'ixinPeer'+_0x1991d1(0x24c),_0x1991d1(0x20e)+_0x1991d1(0x225)+'ixinRout'+'eTarget('+'to)')[_0x1991d1(0x1b6)](_0x1991d1(0x25c)+_0x1991d1(0x2be)+_0x1991d1(0x19c)+_0x1991d1(0x199)+'\x20String('+_0x1991d1(0x259)+_0x1991d1(0x2a4)+'.endsWit'+_0x1991d1(0x226)+_0x1991d1(0x1b0)+_0x1991d1(0x187)+_0x1991d1(0x2cb)+'efined,',_0x1991d1(0x25c)+_0x1991d1(0x2be)+'ype:\x20({\x20'+'to\x20})\x20=>'+_0x1991d1(0x25b)+_0x1991d1(0x16a)+_0x1991d1(0x241)+_0x1991d1(0x13f)+'(to).end'+_0x1991d1(0x1dc)+_0x1991d1(0x23c)+'t\x22)\x20?\x20\x22d'+_0x1991d1(0x212)+_0x1991d1(0x1c5)+_0x1991d1(0x24a)),{'patched':!![],'source':_0x2455c8};}
@@ -1 +1 @@
1
- (function(_0x4b23e6,_0x488fb9){const _0x3b5b48=_0x10f8,_0x4deecc=_0x4b23e6();while(!![]){try{const _0x209417=-parseInt(_0x3b5b48(0x187))/0x1*(-parseInt(_0x3b5b48(0x190))/0x2)+-parseInt(_0x3b5b48(0x178))/0x3*(-parseInt(_0x3b5b48(0x185))/0x4)+parseInt(_0x3b5b48(0x182))/0x5+parseInt(_0x3b5b48(0x189))/0x6+parseInt(_0x3b5b48(0x181))/0x7+-parseInt(_0x3b5b48(0x18f))/0x8+-parseInt(_0x3b5b48(0x184))/0x9;if(_0x209417===_0x488fb9)break;else _0x4deecc['push'](_0x4deecc['shift']());}catch(_0x428163){_0x4deecc['push'](_0x4deecc['shift']());}}}(_0x318e,0xf0557));import{asRecord,asStringArray,dedupeStrings,getTrimmedString}from'../common/utils.mjs';function _0x10f8(_0x1289dd,_0x5d43b4){_0x1289dd=_0x1289dd-0x178;const _0x318e73=_0x318e();let _0x10f87e=_0x318e73[_0x1289dd];return _0x10f87e;}function _0x318e(){const _0x5460bb=['4ZmqEcJ','entries','11262354IgDSAB','has','uginIdsB','installs','ByDefaul','pluginId','5157112fdXeNw','893434ftoulQ','tPluginI','159jkrDYd','source','yPluginI','enabled','keys','length','includes','local','disabled','2916599BULLAB','9774430HCpRTp','allow','55424097yqKqxO','132212SsyWNQ','filter'];_0x318e=function(){return _0x5460bb;};return _0x318e();}export function syncRuntimeManifestPlugins(_0x3954ae,_0x50805e,_0x1afa3c={}){const _0x27bec9=_0x10f8,_0x433453=new Set(_0x1afa3c[_0x27bec9(0x180)+_0x27bec9(0x18d)+_0x27bec9(0x191)+'ds']??[]),_0x1bd51b=asRecord(_0x1afa3c['legacyPl'+_0x27bec9(0x18b)+_0x27bec9(0x17a)+'d']),_0x556c9b={...asRecord(_0x3954ae)},_0x41e849={...asRecord(_0x556c9b[_0x27bec9(0x188)])},_0x132b34={...asRecord(_0x556c9b['installs'])};let _0x1b8449=asStringArray(_0x556c9b[_0x27bec9(0x183)]),_0x5c56c7=![];for(const _0x336c20 of _0x50805e??[]){const _0x29e9ec=getTrimmedString(_0x336c20[_0x27bec9(0x18e)]);if(!_0x29e9ec)continue;const _0x2239cd=asStringArray(_0x1bd51b[_0x29e9ec]);for(const _0x589c70 of _0x2239cd){_0x589c70 in _0x41e849&&(_0x41e849[_0x29e9ec]={...asRecord(_0x41e849[_0x29e9ec]),...asRecord(_0x41e849[_0x589c70])},delete _0x41e849[_0x589c70],_0x5c56c7=!![]);}if(_0x2239cd[_0x27bec9(0x17d)]>0x0){const _0xaeefc8=_0x1b8449[_0x27bec9(0x186)](_0x14b9a2=>!_0x2239cd[_0x27bec9(0x17e)](_0x14b9a2));_0xaeefc8[_0x27bec9(0x17d)]!==_0x1b8449[_0x27bec9(0x17d)]&&(_0x1b8449=_0xaeefc8,_0x5c56c7=!![]);}!(_0x29e9ec in _0x41e849)&&(_0x41e849[_0x29e9ec]={'enabled':!_0x433453[_0x27bec9(0x18a)](_0x29e9ec)},_0x5c56c7=!![]);if(asRecord(_0x41e849[_0x29e9ec])[_0x27bec9(0x17b)]!==![]){const _0x33993a=dedupeStrings([..._0x1b8449,_0x29e9ec]);_0x33993a[_0x27bec9(0x17d)]!==_0x1b8449[_0x27bec9(0x17d)]&&(_0x1b8449=_0x33993a,_0x5c56c7=!![]);}getTrimmedString(_0x336c20[_0x27bec9(0x179)])===_0x27bec9(0x17f)&&_0x29e9ec in _0x132b34&&(delete _0x132b34[_0x29e9ec],_0x5c56c7=!![]);}_0x556c9b[_0x27bec9(0x188)]=_0x41e849,_0x556c9b[_0x27bec9(0x183)]=_0x1b8449;if(Object[_0x27bec9(0x17c)](_0x132b34)['length']>0x0)_0x556c9b[_0x27bec9(0x18c)]=_0x132b34;else delete _0x556c9b['installs'];return{'plugins':_0x556c9b,'changed':_0x5c56c7};}
1
+ (function(_0x3a7519,_0x23eb14){const _0x299e9c=_0x4503,_0x1bb5d6=_0x3a7519();while(!![]){try{const _0x37c1c0=-parseInt(_0x299e9c(0xfd))/0x1+parseInt(_0x299e9c(0xef))/0x2*(-parseInt(_0x299e9c(0x101))/0x3)+parseInt(_0x299e9c(0xf2))/0x4*(parseInt(_0x299e9c(0xfa))/0x5)+parseInt(_0x299e9c(0xf6))/0x6*(parseInt(_0x299e9c(0xf7))/0x7)+-parseInt(_0x299e9c(0xf0))/0x8*(-parseInt(_0x299e9c(0xfc))/0x9)+-parseInt(_0x299e9c(0x108))/0xa*(-parseInt(_0x299e9c(0xea))/0xb)+-parseInt(_0x299e9c(0xeb))/0xc*(parseInt(_0x299e9c(0x103))/0xd);if(_0x37c1c0===_0x23eb14)break;else _0x1bb5d6['push'](_0x1bb5d6['shift']());}catch(_0xd10533){_0x1bb5d6['push'](_0x1bb5d6['shift']());}}}(_0x224e,0xe663f));function _0x224e(){const _0x451450=['disabled','legacyPl','5025630fufGQE','14QklPAf','ginIds','length','12365lPyVQz','enabled','406242THFOYa','1760858GBlvwg','source','filter','local','3UgtxHL','AllowPlu','167479IsPBlW','entries','yPluginI','includes','tPluginI','18465490VXpzSx','keys','11CSpPcn','1788bSGQwb','ByDefaul','has','installs','996942KQjish','232TacNHG','allow','472kxTAHG','uginIdsB'];_0x224e=function(){return _0x451450;};return _0x224e();}import{asRecord,asStringArray,dedupeStrings,getTrimmedString}from'../common/utils.mjs';function _0x4503(_0x1d6dcc,_0x847a62){_0x1d6dcc=_0x1d6dcc-0xea;const _0x224e72=_0x224e();let _0x450321=_0x224e72[_0x1d6dcc];return _0x450321;}export function syncRuntimeManifestPlugins(_0x15f98f,_0x1955de,_0xe09186={}){const _0x20a338=_0x4503,_0x575c8e=new Set(_0xe09186[_0x20a338(0xf4)+_0x20a338(0xec)+_0x20a338(0x107)+'ds']??[]),_0x211caa=asRecord(_0xe09186[_0x20a338(0xf5)+_0x20a338(0xf3)+_0x20a338(0x105)+'d']),_0x4fd58c=new Set(_0xe09186['preserve'+_0x20a338(0x102)+_0x20a338(0xf8)]??[]),_0x368a2f={...asRecord(_0x15f98f)},_0x25e37b={...asRecord(_0x368a2f[_0x20a338(0x104)])},_0x50c2d1={...asRecord(_0x368a2f['installs'])};let _0x7c405e=asStringArray(_0x368a2f['allow']),_0x91b568=![];for(const _0x374fa9 of _0x1955de??[]){const _0x2030ae=getTrimmedString(_0x374fa9['pluginId']);if(!_0x2030ae)continue;const _0x2b5d09=asStringArray(_0x211caa[_0x2030ae]);for(const _0x1503f7 of _0x2b5d09){_0x1503f7 in _0x25e37b&&(_0x25e37b[_0x2030ae]={...asRecord(_0x25e37b[_0x2030ae]),...asRecord(_0x25e37b[_0x1503f7])},delete _0x25e37b[_0x1503f7],_0x91b568=!![]);}if(_0x2b5d09[_0x20a338(0xf9)]>0x0){const _0x1dcaaa=_0x7c405e[_0x20a338(0xff)](_0x3910ac=>!_0x2b5d09[_0x20a338(0x106)](_0x3910ac));_0x1dcaaa['length']!==_0x7c405e[_0x20a338(0xf9)]&&(_0x7c405e=_0x1dcaaa,_0x91b568=!![]);}!(_0x2030ae in _0x25e37b)&&(_0x25e37b[_0x2030ae]={'enabled':!_0x575c8e[_0x20a338(0xed)](_0x2030ae)},_0x91b568=!![]);if(asRecord(_0x25e37b[_0x2030ae])[_0x20a338(0xfb)]!==![]){const _0x37df04=dedupeStrings([..._0x7c405e,_0x2030ae]);_0x37df04[_0x20a338(0xf9)]!==_0x7c405e['length']&&(_0x7c405e=_0x37df04,_0x91b568=!![]);}getTrimmedString(_0x374fa9[_0x20a338(0xfe)])===_0x20a338(0x100)&&_0x2030ae in _0x50c2d1&&(delete _0x50c2d1[_0x2030ae],_0x91b568=!![]);}_0x368a2f[_0x20a338(0x104)]=_0x25e37b,_0x368a2f[_0x20a338(0xf1)]=dedupeStrings([..._0x7c405e,...[..._0x4fd58c][_0x20a338(0xff)](_0x19a140=>{const _0x41bd63=_0x20a338,_0x9b133e=asRecord(_0x25e37b[_0x19a140]);return _0x9b133e[_0x41bd63(0xfb)]!==![];})]);if(Object[_0x20a338(0x109)](_0x50c2d1)[_0x20a338(0xf9)]>0x0)_0x368a2f[_0x20a338(0xee)]=_0x50c2d1;else delete _0x368a2f[_0x20a338(0xee)];return{'plugins':_0x368a2f,'changed':_0x91b568};}
@@ -1 +1 @@
1
- const _0x39bc44=_0x661b;(function(_0x5b4d4d,_0x52d61c){const _0x390822=_0x661b,_0xc7cae5=_0x5b4d4d();while(!![]){try{const _0x36d349=parseInt(_0x390822(0xf7))/0x1*(-parseInt(_0x390822(0xf1))/0x2)+parseInt(_0x390822(0x11f))/0x3*(parseInt(_0x390822(0x10a))/0x4)+parseInt(_0x390822(0xeb))/0x5*(parseInt(_0x390822(0xef))/0x6)+parseInt(_0x390822(0x102))/0x7+parseInt(_0x390822(0x11e))/0x8*(parseInt(_0x390822(0xf5))/0x9)+parseInt(_0x390822(0xf6))/0xa+-parseInt(_0x390822(0x10b))/0xb;if(_0x36d349===_0x52d61c)break;else _0xc7cae5['push'](_0xc7cae5['shift']());}catch(_0x3d455e){_0xc7cae5['push'](_0xc7cae5['shift']());}}}(_0x597c,0xc134c));import{existsSync}from'node:fs';import{copyFile,mkdir,readFile,writeFile}from'node:fs/promises';import{dirname,extname,join}from'node:path';function _0x661b(_0x3223a3,_0x378f0f){_0x3223a3=_0x3223a3-0xe6;const _0x597ce2=_0x597c();let _0x661bcd=_0x597ce2[_0x3223a3];return _0x661bcd;}import{asRecord}from'../common/utils.mjs';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';const CLONED_AGENT_SESSION_EXCLUDED_FIELDS=new Set([_0x39bc44(0x110)+'ey',_0x39bc44(0xf8)+'d',_0x39bc44(0xe8),_0x39bc44(0x119)+_0x39bc44(0xec)]);function extractAgentIdFromSessionKey(_0x160ae9){const _0x5f1903=_0x39bc44,_0x106c83=String(_0x160ae9||'')['split'](':'),_0x44b971=_0x106c83[0x1]?.['trim']();return _0x44b971||_0x5f1903(0x109);}function resolveNewSessionFilePath(_0x22218b,_0x58044f,_0x1979df,_0x1fda1d,_0x5974f0){const _0x4a8b97=_0x39bc44,_0x234061=typeof _0x58044f['sessionF'+'ile']===_0x4a8b97(0xfd)?_0x58044f[_0x4a8b97(0x119)+_0x4a8b97(0xec)]['trim']():'';if(_0x234061)return _0x234061;const _0x40c8b5=_0x1979df&&typeof _0x1979df[_0x4a8b97(0x119)+_0x4a8b97(0xec)]==='string'?extname(_0x1979df[_0x4a8b97(0x119)+_0x4a8b97(0xec)]['trim']()):'';return join(_0x22218b,'agents',_0x5974f0,_0x4a8b97(0x103),''+_0x1fda1d+(_0x40c8b5||_0x4a8b97(0xee)));}function cloneForkedSessionExtraFields(_0x42b345){const _0x4a97e3=_0x39bc44;if(!_0x42b345)return{};const _0x45ac1d={};for(const [_0x47a18f,_0x3b5553]of Object[_0x4a97e3(0x100)](_0x42b345)){if(CLONED_AGENT_SESSION_EXCLUDED_FIELDS[_0x4a97e3(0x11d)](_0x47a18f))continue;_0x45ac1d[_0x47a18f]=_0x3b5553;}return _0x45ac1d;}async function copySessionFileIfNeeded(_0x19a7ac,_0x45a3a7){const _0x5a85f0=_0x39bc44;if(!_0x19a7ac||!_0x45a3a7)return;const _0x36ea97=typeof _0x19a7ac[_0x5a85f0(0x119)+_0x5a85f0(0xec)]===_0x5a85f0(0xfd)?_0x19a7ac[_0x5a85f0(0x119)+'ile'][_0x5a85f0(0xf3)]():'',_0x208400=String(_0x45a3a7||'')['trim']();if(!_0x36ea97||!_0x208400||_0x36ea97===_0x208400)return;if(!existsSync(_0x36ea97))return;await mkdir(dirname(_0x208400),{'recursive':!![]}),await copyFile(_0x36ea97,_0x208400);}function extractMessageEntryText(_0x22198a){const _0x23f636=_0x39bc44,_0x10af58=asRecord(_0x22198a[_0x23f636(0x10f)]),_0x1355ff=_0x10af58[_0x23f636(0x117)];if(typeof _0x1355ff===_0x23f636(0xfd))return _0x1355ff;if(!Array['isArray'](_0x1355ff))return'';return _0x1355ff[_0x23f636(0x10e)](_0x1220e5=>{const _0x55c353=_0x23f636,_0x123114=asRecord(_0x1220e5);return _0x123114[_0x55c353(0x11c)]==='text'&&typeof _0x123114[_0x55c353(0x113)]===_0x55c353(0xfd)?_0x123114[_0x55c353(0x113)]:'';})[_0x23f636(0x10c)](Boolean)[_0x23f636(0x104)]('\x0a');}function extractMessageEntryRole(_0x432c42){const _0xde95c9=_0x39bc44,_0x585abc=asRecord(_0x432c42['message']);if(typeof _0x585abc['role']===_0xde95c9(0xfd))return _0x585abc['role'];if(typeof _0x432c42[_0xde95c9(0xfa)]===_0xde95c9(0xfd))return _0x432c42['role'];return'';}function parseJsonLine(_0x1864c0){const _0x3231a3=_0x39bc44;try{const _0x3df84b=JSON[_0x3231a3(0x114)](_0x1864c0);return asRecord(_0x3df84b);}catch{return null;}}function entryTimestampMs(_0xe06353){const _0x5f39bc=_0x39bc44,_0xf57998=_0xe06353[_0x5f39bc(0x10d)+'p'];if(typeof _0xf57998===_0x5f39bc(0xfd)){const _0x49ed38=Date[_0x5f39bc(0x114)](_0xf57998);return Number[_0x5f39bc(0x120)](_0x49ed38)?_0x49ed38:null;}if(typeof _0xf57998===_0x5f39bc(0xea)&&Number[_0x5f39bc(0x120)](_0xf57998))return _0xf57998;return null;}async function trimSessionFileForFork(_0x8081dd,_0x473536){const _0x1c9aeb=_0x39bc44;if(!_0x8081dd||!existsSync(_0x8081dd))return;const {keepUntilTs:_0x237b1b,cutoffRole:_0x584e49,cutoffText:_0x5c9f41}=_0x473536,_0x4976a9=typeof _0x237b1b===_0x1c9aeb(0xea)&&Number['isFinite'](_0x237b1b),_0x34efb2=typeof _0x5c9f41===_0x1c9aeb(0xfd)?_0x5c9f41[_0x1c9aeb(0xf3)]():'',_0x44a79c=_0x584e49===_0x1c9aeb(0xfc)?'assistan'+'t':_0x584e49===_0x1c9aeb(0x108)?_0x1c9aeb(0x108):'',_0x280e8e=Boolean(_0x44a79c&&_0x34efb2);if(!_0x4976a9&&!_0x280e8e)return;let _0x1d7d3a='';try{_0x1d7d3a=await readFile(_0x8081dd,_0x1c9aeb(0x11b));}catch{return;}const _0x53bf7a=_0x1d7d3a['split']('\x0a');let _0x47f845=-0x1;const _0x119aa0=_0x4976a9?_0x237b1b+0xa*0x3c*0x3e8:Number['POSITIVE'+_0x1c9aeb(0xfb)+'Y'];if(_0x280e8e)for(let _0x18e333=0x0;_0x18e333<_0x53bf7a[_0x1c9aeb(0xed)];_0x18e333+=0x1){const _0x38003e=_0x53bf7a[_0x18e333][_0x1c9aeb(0xf3)]();if(!_0x38003e)continue;const _0x212509=parseJsonLine(_0x38003e);if(!_0x212509||_0x212509[_0x1c9aeb(0x11c)]!==_0x1c9aeb(0x10f))continue;if(extractMessageEntryRole(_0x212509)!==_0x44a79c)continue;const _0x511128=extractMessageEntryText(_0x212509)['trim']();if(!_0x511128||!_0x511128['includes'](_0x34efb2))continue;const _0xc809=entryTimestampMs(_0x212509);if(_0xc809!==null&&_0xc809>_0x119aa0)continue;_0x47f845=_0x18e333;}let _0x5702b7=[];if(_0x47f845>=0x0)_0x5702b7=_0x53bf7a[_0x1c9aeb(0x118)](0x0,_0x47f845+0x1);else{if(_0x4976a9)for(const _0x4980f0 of _0x53bf7a){const _0x56d60d=_0x4980f0[_0x1c9aeb(0xf3)]();if(!_0x56d60d)continue;const _0x18bb5d=parseJsonLine(_0x56d60d);if(!_0x18bb5d){_0x5702b7[_0x1c9aeb(0x116)](_0x4980f0);continue;}if(_0x18bb5d[_0x1c9aeb(0x11c)]===_0x1c9aeb(0x107)){_0x5702b7[_0x1c9aeb(0x116)](_0x4980f0);continue;}const _0x1f3aa8=entryTimestampMs(_0x18bb5d);if(_0x1f3aa8===null||_0x1f3aa8<=_0x237b1b)_0x5702b7[_0x1c9aeb(0x116)](_0x4980f0);}}while(_0x5702b7[_0x1c9aeb(0xed)]>0x0&&_0x5702b7[_0x5702b7[_0x1c9aeb(0xed)]-0x1][_0x1c9aeb(0xf3)]()==='')_0x5702b7[_0x1c9aeb(0xf2)]();await writeFile(_0x8081dd,_0x5702b7['join']('\x0a')+'\x0a',_0x1c9aeb(0x11b));}export function createAgentSessionsMapStore({stateDir:_0x41ce30}){const _0x3e636b=createSessionSqliteStore({'stateDir':_0x41ce30});async function _0x504762(_0x1189f3={}){const _0xa46561=_0x661b,_0x2abe95=String(_0x1189f3[_0xa46561(0xf9)]||_0xa46561(0x109));return await _0x3e636b[_0xa46561(0x11a)+_0xa46561(0x115)](_0x2abe95);}async function _0x3bc18e(_0x302a3b={}){const _0x41097d=_0x661b,_0x7f269b=String(_0x302a3b[_0x41097d(0x110)+'ey']||'')['trim'](),_0x3ea71a=String(_0x302a3b['sessionI'+'d']||'')[_0x41097d(0xf3)]();if(!_0x7f269b)throw new Error(_0x41097d(0x110)+_0x41097d(0x106)+_0x41097d(0xe6));if(!_0x3ea71a)throw new Error(_0x41097d(0xf8)+_0x41097d(0x105)+_0x41097d(0x101));const _0x39831a=extractAgentIdFromSessionKey(_0x7f269b),_0x17eba9=asRecord(await _0x3e636b[_0x41097d(0x112)+_0x41097d(0xf0)](_0x7f269b)),_0x4db527=String(_0x302a3b['sourceSe'+'ssionKey']||'')[_0x41097d(0xf3)](),_0x286601=_0x4db527?extractAgentIdFromSessionKey(_0x4db527):_0x39831a,_0x2c00c8=_0x4db527?asRecord(await _0x3e636b[_0x41097d(0x112)+_0x41097d(0xf0)](_0x4db527)):null,_0xf2d29d=_0x2c00c8&&Object[_0x41097d(0xf4)](_0x2c00c8)[_0x41097d(0xed)]>0x0,_0x151b83=resolveNewSessionFilePath(_0x41ce30,_0x17eba9,_0xf2d29d?_0x2c00c8:null,_0x3ea71a,_0x39831a),_0x3dfb5d=typeof _0x302a3b[_0x41097d(0x111)+_0x41097d(0xe9)]===_0x41097d(0xea)&&Number[_0x41097d(0x120)](_0x302a3b[_0x41097d(0x111)+'lTs'])?_0x302a3b[_0x41097d(0x111)+_0x41097d(0xe9)]:null,_0xd19ab=typeof _0x302a3b[_0x41097d(0xfe)+'le']==='string'?_0x302a3b[_0x41097d(0xfe)+'le']:null,_0x25e8f1=typeof _0x302a3b[_0x41097d(0xff)+'xt']==='string'?_0x302a3b[_0x41097d(0xff)+'xt']:null,_0x211b22={..._0x17eba9,...cloneForkedSessionExtraFields(_0xf2d29d?_0x2c00c8:null),'agentId':_0x39831a,'sessionKey':_0x7f269b,'sessionId':_0x3ea71a,'sessionFile':_0x151b83,..._0xf2d29d?{'forkedFromParent':!![]}:{}};return await copySessionFileIfNeeded(_0xf2d29d?_0x2c00c8:null,_0x151b83),_0xf2d29d&&(_0x3dfb5d!==null||_0xd19ab&&_0x25e8f1)&&await trimSessionFileForFork(_0x151b83,{'keepUntilTs':_0x3dfb5d,'cutoffRole':_0xd19ab,'cutoffText':_0x25e8f1}),await _0x3e636b[_0x41097d(0xe7)+'ssionEnt'+'ry']({'agentId':_0x39831a,'sessionKey':_0x7f269b,'entry':_0x211b22}),await _0x3e636b[_0x41097d(0x11a)+_0x41097d(0x115)](_0x39831a);}return{'get':_0x504762,'upsert':_0x3bc18e};}function _0x597c(){const _0x5a0d8a=['slice','sessionF','getSessi','utf8','type','has','176klWZDp','3014733tkCbEl','isFinite','quired','upsertSe','label','lTs','number','1119275sGZuzr','ile','length','.jsonl','12KEQNPT','ionEntry','10Itccwn','pop','trim','keys','544239HfciCl','12900780fPBnCk','246821yeGuPc','sessionI','agentId','role','_INFINIT','agent','string','cutoffRo','cutoffTe','entries','uired','1474144WhCQGa','sessions','join','d\x20is\x20req','ey\x20is\x20re','session','user','main','4veVLHy','24839936zHAEru','filter','timestam','map','message','sessionK','keepUnti','readSess','text','parse','onsMap','push','content'];_0x597c=function(){return _0x5a0d8a;};return _0x597c();}
1
+ const _0x10bbcf=_0x284c;(function(_0x32a423,_0x12505f){const _0x171b22=_0x284c,_0xc301c0=_0x32a423();while(!![]){try{const _0x1010ac=-parseInt(_0x171b22(0x1be))/0x1*(-parseInt(_0x171b22(0x19f))/0x2)+parseInt(_0x171b22(0x1bd))/0x3*(-parseInt(_0x171b22(0x18b))/0x4)+parseInt(_0x171b22(0x1b8))/0x5*(-parseInt(_0x171b22(0x1b0))/0x6)+-parseInt(_0x171b22(0x1ab))/0x7*(-parseInt(_0x171b22(0x1bc))/0x8)+parseInt(_0x171b22(0x1a4))/0x9*(parseInt(_0x171b22(0x184))/0xa)+-parseInt(_0x171b22(0x18c))/0xb+parseInt(_0x171b22(0x1a6))/0xc;if(_0x1010ac===_0x12505f)break;else _0xc301c0['push'](_0xc301c0['shift']());}catch(_0x316110){_0xc301c0['push'](_0xc301c0['shift']());}}}(_0x112b,0x68e31));function _0x284c(_0x10e8cf,_0x56fd8c){_0x10e8cf=_0x10e8cf-0x184;const _0x112b98=_0x112b();let _0x284c26=_0x112b98[_0x10e8cf];return _0x284c26;}import{existsSync}from'node:fs';function _0x112b(){const _0x51bb75=['text','push','sourceSe','cutoffTe','4204935wJuZiC','sessionI','8943312FyIQVc','lTs','onsMap','split','ile','28OzBeIj','keepUnti','sessionF','main','cutoffRo','4645788OSURxi','upsertSe','assistan','content','sessionK','uired','.jsonl','agent','5cyDBou','d\x20is\x20req','role','number','1014232PAXOKl','39FMsUwv','47WCxXrk','string','user','sessions','10NidaQA','_INFINIT','getSessi','length','readSess','label','has','99228OFTwXc','2431792cWJYip','pop','isFinite','timestam','map','ssionKey','includes','slice','utf8','entries','keys','message','agentId','trim','ey\x20is\x20re','ionEntry','join','parse','type','1186OGqZqr'];_0x112b=function(){return _0x51bb75;};return _0x112b();}import{copyFile,mkdir,readFile,writeFile}from'node:fs/promises';import{dirname,extname,join}from'node:path';import{asRecord}from'../common/utils.mjs';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';const CLONED_AGENT_SESSION_EXCLUDED_FIELDS=new Set(['sessionK'+'ey',_0x10bbcf(0x1a5)+'d',_0x10bbcf(0x189),_0x10bbcf(0x1ad)+_0x10bbcf(0x1aa)]);function extractAgentIdFromSessionKey(_0x48b58c){const _0x326cf=_0x10bbcf,_0x3f2435=String(_0x48b58c||'')[_0x326cf(0x1a9)](':'),_0x44da07=_0x3f2435[0x1]?.[_0x326cf(0x199)]();return _0x44da07||_0x326cf(0x1ae);}function resolveNewSessionFilePath(_0x43b51b,_0x2ed0a5,_0x3f02af,_0x25488d,_0xe0f849){const _0x2586e4=_0x10bbcf,_0x3288f0=typeof _0x2ed0a5[_0x2586e4(0x1ad)+_0x2586e4(0x1aa)]===_0x2586e4(0x1bf)?_0x2ed0a5[_0x2586e4(0x1ad)+_0x2586e4(0x1aa)][_0x2586e4(0x199)]():'';if(_0x3288f0)return _0x3288f0;const _0x3b9394=_0x3f02af&&typeof _0x3f02af[_0x2586e4(0x1ad)+_0x2586e4(0x1aa)]===_0x2586e4(0x1bf)?extname(_0x3f02af['sessionF'+_0x2586e4(0x1aa)][_0x2586e4(0x199)]()):'';return join(_0x43b51b,'agents',_0xe0f849,_0x2586e4(0x1c1),''+_0x25488d+(_0x3b9394||_0x2586e4(0x1b6)));}function cloneForkedSessionExtraFields(_0x7416dc){const _0x4ae258=_0x10bbcf;if(!_0x7416dc)return{};const _0x6229d7={};for(const [_0x1e8eec,_0x4ebd1d]of Object[_0x4ae258(0x195)](_0x7416dc)){if(CLONED_AGENT_SESSION_EXCLUDED_FIELDS[_0x4ae258(0x18a)](_0x1e8eec))continue;_0x6229d7[_0x1e8eec]=_0x4ebd1d;}return _0x6229d7;}async function copySessionFileIfNeeded(_0xe9b7eb,_0x1e16f5){const _0x3b9772=_0x10bbcf;if(!_0xe9b7eb||!_0x1e16f5)return;const _0x4fb1dd=typeof _0xe9b7eb[_0x3b9772(0x1ad)+_0x3b9772(0x1aa)]===_0x3b9772(0x1bf)?_0xe9b7eb['sessionF'+_0x3b9772(0x1aa)][_0x3b9772(0x199)]():'',_0x3afb9e=String(_0x1e16f5||'')[_0x3b9772(0x199)]();if(!_0x4fb1dd||!_0x3afb9e||_0x4fb1dd===_0x3afb9e)return;if(!existsSync(_0x4fb1dd))return;await mkdir(dirname(_0x3afb9e),{'recursive':!![]}),await copyFile(_0x4fb1dd,_0x3afb9e);}function extractMessageEntryText(_0x343035){const _0xbefe9c=_0x10bbcf,_0x7208a2=asRecord(_0x343035[_0xbefe9c(0x197)]),_0x375001=_0x7208a2[_0xbefe9c(0x1b3)];if(typeof _0x375001==='string')return _0x375001;if(!Array['isArray'](_0x375001))return'';return _0x375001[_0xbefe9c(0x190)](_0x39ab0d=>{const _0x1d90a3=_0xbefe9c,_0x3f38a2=asRecord(_0x39ab0d);return _0x3f38a2['type']==='text'&&typeof _0x3f38a2['text']===_0x1d90a3(0x1bf)?_0x3f38a2[_0x1d90a3(0x1a0)]:'';})['filter'](Boolean)[_0xbefe9c(0x19c)]('\x0a');}function extractMessageEntryRole(_0x4d7a25){const _0x489b1e=_0x10bbcf,_0xb608f6=asRecord(_0x4d7a25['message']);if(typeof _0xb608f6[_0x489b1e(0x1ba)]===_0x489b1e(0x1bf))return _0xb608f6[_0x489b1e(0x1ba)];if(typeof _0x4d7a25[_0x489b1e(0x1ba)]===_0x489b1e(0x1bf))return _0x4d7a25[_0x489b1e(0x1ba)];return'';}function parseJsonLine(_0x45251c){try{const _0x2e2b9f=JSON['parse'](_0x45251c);return asRecord(_0x2e2b9f);}catch{return null;}}function entryTimestampMs(_0x31a426){const _0x1b7549=_0x10bbcf,_0x406f4d=_0x31a426[_0x1b7549(0x18f)+'p'];if(typeof _0x406f4d===_0x1b7549(0x1bf)){const _0x5e465a=Date[_0x1b7549(0x19d)](_0x406f4d);return Number[_0x1b7549(0x18e)](_0x5e465a)?_0x5e465a:null;}if(typeof _0x406f4d===_0x1b7549(0x1bb)&&Number['isFinite'](_0x406f4d))return _0x406f4d;return null;}async function trimSessionFileForFork(_0x3efe1b,_0x3013c8){const _0x3d4181=_0x10bbcf;if(!_0x3efe1b||!existsSync(_0x3efe1b))return;const {keepUntilTs:_0x197acb,cutoffRole:_0x199de9,cutoffText:_0x367828}=_0x3013c8,_0x202a6b=typeof _0x197acb===_0x3d4181(0x1bb)&&Number[_0x3d4181(0x18e)](_0x197acb),_0x4f989a=typeof _0x367828===_0x3d4181(0x1bf)?_0x367828[_0x3d4181(0x199)]():'',_0x348e9d=_0x199de9===_0x3d4181(0x1b7)?_0x3d4181(0x1b2)+'t':_0x199de9===_0x3d4181(0x1c0)?'user':'',_0x4a9c77=Boolean(_0x348e9d&&_0x4f989a);if(!_0x202a6b&&!_0x4a9c77)return;let _0x311dd6='';try{_0x311dd6=await readFile(_0x3efe1b,_0x3d4181(0x194));}catch{return;}const _0xa2ede8=_0x311dd6['split']('\x0a');let _0xd5c569=-0x1;const _0x1c431c=_0x202a6b?_0x197acb+0xa*0x3c*0x3e8:Number['POSITIVE'+_0x3d4181(0x185)+'Y'];if(_0x4a9c77)for(let _0x1b7734=0x0;_0x1b7734<_0xa2ede8[_0x3d4181(0x187)];_0x1b7734+=0x1){const _0x57e44c=_0xa2ede8[_0x1b7734][_0x3d4181(0x199)]();if(!_0x57e44c)continue;const _0x77c30=parseJsonLine(_0x57e44c);if(!_0x77c30||_0x77c30[_0x3d4181(0x19e)]!=='message')continue;if(extractMessageEntryRole(_0x77c30)!==_0x348e9d)continue;const _0x474271=extractMessageEntryText(_0x77c30)['trim']();if(!_0x474271||!_0x474271[_0x3d4181(0x192)](_0x4f989a))continue;const _0x435b1a=entryTimestampMs(_0x77c30);if(_0x435b1a!==null&&_0x435b1a>_0x1c431c)continue;_0xd5c569=_0x1b7734;}let _0x46613e=[];if(_0xd5c569>=0x0)_0x46613e=_0xa2ede8[_0x3d4181(0x193)](0x0,_0xd5c569+0x1);else{if(_0x202a6b)for(const _0x595c95 of _0xa2ede8){const _0x45ba2e=_0x595c95['trim']();if(!_0x45ba2e)continue;const _0x525244=parseJsonLine(_0x45ba2e);if(!_0x525244){_0x46613e[_0x3d4181(0x1a1)](_0x595c95);continue;}if(_0x525244['type']==='session'){_0x46613e['push'](_0x595c95);continue;}const _0x4a8642=entryTimestampMs(_0x525244);if(_0x4a8642===null||_0x4a8642<=_0x197acb)_0x46613e[_0x3d4181(0x1a1)](_0x595c95);}}while(_0x46613e[_0x3d4181(0x187)]>0x0&&_0x46613e[_0x46613e[_0x3d4181(0x187)]-0x1][_0x3d4181(0x199)]()==='')_0x46613e[_0x3d4181(0x18d)]();await writeFile(_0x3efe1b,_0x46613e[_0x3d4181(0x19c)]('\x0a')+'\x0a',_0x3d4181(0x194));}export function createAgentSessionsMapStore({stateDir:_0x1edf3c}){const _0x357af4=createSessionSqliteStore({'stateDir':_0x1edf3c});async function _0x279dd8(_0x988870={}){const _0x14c334=_0x284c,_0xa37da3=String(_0x988870[_0x14c334(0x198)]||_0x14c334(0x1ae));return await _0x357af4[_0x14c334(0x186)+_0x14c334(0x1a8)](_0xa37da3);}async function _0xea6c02(_0x2a0d53={}){const _0x339463=_0x284c,_0x38b346=String(_0x2a0d53[_0x339463(0x1b4)+'ey']||'')[_0x339463(0x199)](),_0x9ef3dd=String(_0x2a0d53['sessionI'+'d']||'')[_0x339463(0x199)]();if(!_0x38b346)throw new Error(_0x339463(0x1b4)+_0x339463(0x19a)+'quired');if(!_0x9ef3dd)throw new Error(_0x339463(0x1a5)+_0x339463(0x1b9)+_0x339463(0x1b5));const _0x5398be=extractAgentIdFromSessionKey(_0x38b346),_0x4300a3=asRecord(await _0x357af4[_0x339463(0x188)+'ionEntry'](_0x38b346)),_0x4f678b=String(_0x2a0d53[_0x339463(0x1a2)+_0x339463(0x191)]||'')['trim'](),_0x3d73e1=_0x4f678b?extractAgentIdFromSessionKey(_0x4f678b):_0x5398be,_0x2c3ec7=_0x4f678b?asRecord(await _0x357af4[_0x339463(0x188)+_0x339463(0x19b)](_0x4f678b)):null,_0xeae249=_0x2c3ec7&&Object[_0x339463(0x196)](_0x2c3ec7)['length']>0x0,_0x3cac9e=resolveNewSessionFilePath(_0x1edf3c,_0x4300a3,_0xeae249?_0x2c3ec7:null,_0x9ef3dd,_0x5398be),_0x3ee94a=typeof _0x2a0d53['keepUnti'+_0x339463(0x1a7)]===_0x339463(0x1bb)&&Number[_0x339463(0x18e)](_0x2a0d53[_0x339463(0x1ac)+_0x339463(0x1a7)])?_0x2a0d53[_0x339463(0x1ac)+_0x339463(0x1a7)]:null,_0x3b161e=typeof _0x2a0d53[_0x339463(0x1af)+'le']==='string'?_0x2a0d53[_0x339463(0x1af)+'le']:null,_0x495918=typeof _0x2a0d53[_0x339463(0x1a3)+'xt']==='string'?_0x2a0d53['cutoffTe'+'xt']:null,_0x4fea6f={..._0x4300a3,...cloneForkedSessionExtraFields(_0xeae249?_0x2c3ec7:null),'agentId':_0x5398be,'sessionKey':_0x38b346,'sessionId':_0x9ef3dd,'sessionFile':_0x3cac9e,..._0xeae249?{'forkedFromParent':!![]}:{}};return await copySessionFileIfNeeded(_0xeae249?_0x2c3ec7:null,_0x3cac9e),_0xeae249&&(_0x3ee94a!==null||_0x3b161e&&_0x495918)&&await trimSessionFileForFork(_0x3cac9e,{'keepUntilTs':_0x3ee94a,'cutoffRole':_0x3b161e,'cutoffText':_0x495918}),await _0x357af4[_0x339463(0x1b1)+'ssionEnt'+'ry']({'agentId':_0x5398be,'sessionKey':_0x38b346,'entry':_0x4fea6f}),await _0x357af4[_0x339463(0x186)+_0x339463(0x1a8)](_0x5398be);}return{'get':_0x279dd8,'upsert':_0xea6c02};}
@@ -1 +1 @@
1
- (function(_0x4da56a,_0x386937){const _0x36b67b=_0x425b,_0x3e0b36=_0x4da56a();while(!![]){try{const _0x2217f0=-parseInt(_0x36b67b(0x1bb))/0x1*(parseInt(_0x36b67b(0x1c6))/0x2)+parseInt(_0x36b67b(0x1b0))/0x3+parseInt(_0x36b67b(0x1d2))/0x4+-parseInt(_0x36b67b(0x1c7))/0x5+parseInt(_0x36b67b(0x1c3))/0x6*(parseInt(_0x36b67b(0x1b7))/0x7)+-parseInt(_0x36b67b(0x1b3))/0x8+-parseInt(_0x36b67b(0x1c2))/0x9*(-parseInt(_0x36b67b(0x1b1))/0xa);if(_0x2217f0===_0x386937)break;else _0x3e0b36['push'](_0x3e0b36['shift']());}catch(_0x4d72ed){_0x3e0b36['push'](_0x3e0b36['shift']());}}}(_0x174f,0xf3af0));import{join}from'node:path';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';function _0x174f(){const _0x3dc9d4=['ssionSto','saveSess','writeSes','4119492XWXAQF','replaceA','/agents/','179877oNmVVv','20EOOXHP','/session','14731888OLsvqE','tch','set','updateSe','7mJDRjU','sionStor','map','storePat','2609BfuiDL','clone','parse','ionStore','split','reEntry','ync','14779350QIysfQ','2686650JeIZQV','eEntryPa','index.sq','1142ZVBBgu','2462770OBNdGf','indexOf','lite','all','values','readStor','eByPathS','clear'];_0x174f=function(){return _0x3dc9d4;};return _0x174f();}const BRIDGE_STORE_CACHE=new Map();function resolveStateDirFromStorePath(_0x3cb394){const _0x4d49c9=_0x425b,_0x25505e=String(_0x3cb394||'')[_0x4d49c9(0x1d3)+'ll']('\x5c','/'),_0x1cbb59=_0x4d49c9(0x1d4),_0x3a6bcd=_0x25505e[_0x4d49c9(0x1c8)](_0x1cbb59);if(_0x3a6bcd<0x0){const _0x2707ad=_0x25505e[_0x4d49c9(0x1bf)](_0x4d49c9(0x1b2)+'s/')[0x0];return _0x2707ad||_0x25505e;}return _0x25505e['slice'](0x0,_0x3a6bcd);}function createBridgeStore(_0x22c254){const _0x346eb3=_0x425b,_0x1230f5=resolveStateDirFromStorePath(_0x22c254),_0x2594f7=join(_0x1230f5,'sessions',_0x346eb3(0x1c5)+_0x346eb3(0x1c9)),_0x12415d=_0x1230f5+'::'+_0x2594f7,_0x4527d2=BRIDGE_STORE_CACHE['get'](_0x12415d);if(_0x4527d2)return _0x4527d2;const _0x32cffd=createSessionSqliteStore({'stateDir':_0x1230f5,'dbPath':_0x2594f7});return BRIDGE_STORE_CACHE[_0x346eb3(0x1b5)](_0x12415d,_0x32cffd),_0x32cffd;}function _0x425b(_0x9a60af,_0x3d01c1){_0x9a60af=_0x9a60af-0x1b0;const _0x174f50=_0x174f();let _0x425be5=_0x174f50[_0x9a60af];return _0x425be5;}function cloneStoreObject(_0x1bcd5c){const _0x192b52=_0x425b;return JSON[_0x192b52(0x1bd)](JSON['stringif'+'y'](_0x1bcd5c||{}));}export function loadSessionStore(_0xb4a652,_0x258d69={}){const _0x52f121=_0x425b,_0x42558e=createBridgeStore(_0xb4a652),_0x4343e7=_0x42558e[_0x52f121(0x1cc)+_0x52f121(0x1cd)+_0x52f121(0x1c1)](_0xb4a652);return _0x258d69[_0x52f121(0x1bc)]===![]?_0x4343e7:cloneStoreObject(_0x4343e7);}export async function saveSessionStore(_0x2013a7,_0x3cfb85){const _0x3a2fc4=_0x425b,_0x486d97=createBridgeStore(_0x2013a7);return await _0x486d97[_0x3a2fc4(0x1d0)+_0x3a2fc4(0x1be)](_0x2013a7,_0x3cfb85);}export async function updateSessionStore(_0x19e255,_0x1d73e7,_0x2bccd7){const _0x34fb3e=_0x425b,_0x2007e4=createBridgeStore(_0x19e255);return await _0x2007e4['updateSe'+_0x34fb3e(0x1cf)+'re'](_0x19e255,_0x1d73e7,_0x2bccd7);}export async function updateSessionStoreEntry(_0x4fe57c){const _0x87838a=_0x425b,_0x4471d7=createBridgeStore(_0x4fe57c['storePat'+'h']);return await _0x4471d7[_0x87838a(0x1b6)+_0x87838a(0x1cf)+_0x87838a(0x1c0)](_0x4fe57c);}export async function applySessionStoreEntryPatch(_0x5e6c70){const _0xc04376=_0x425b,_0x46ca1f=createBridgeStore(_0x5e6c70[_0xc04376(0x1ba)+'h']);return await _0x46ca1f['applySes'+_0xc04376(0x1b8)+_0xc04376(0x1c4)+_0xc04376(0x1b4)](_0x5e6c70);}export async function writeSessionStoreAtomic(_0x479dc5){const _0x413cd3=_0x425b,_0x22fe10=createBridgeStore(_0x479dc5[_0x413cd3(0x1ba)+'h']);return await _0x22fe10[_0x413cd3(0x1d1)+'sionStor'+'eAtomic'](_0x479dc5);}export async function closeBridgeStores(){const _0x248149=_0x425b,_0x37222c=[...BRIDGE_STORE_CACHE[_0x248149(0x1cb)]()];BRIDGE_STORE_CACHE[_0x248149(0x1ce)](),await Promise[_0x248149(0x1ca)](_0x37222c[_0x248149(0x1b9)](_0x33ae13=>_0x33ae13['close']()));}
1
+ (function(_0x4021a1,_0x33aa23){const _0x1eea20=_0x1333,_0x5d5d24=_0x4021a1();while(!![]){try{const _0x200105=-parseInt(_0x1eea20(0x1cd))/0x1*(parseInt(_0x1eea20(0x1c3))/0x2)+parseInt(_0x1eea20(0x1c0))/0x3+parseInt(_0x1eea20(0x1b9))/0x4*(parseInt(_0x1eea20(0x1cc))/0x5)+-parseInt(_0x1eea20(0x1d1))/0x6*(parseInt(_0x1eea20(0x1c6))/0x7)+parseInt(_0x1eea20(0x1c2))/0x8*(parseInt(_0x1eea20(0x1d0))/0x9)+-parseInt(_0x1eea20(0x1d2))/0xa+-parseInt(_0x1eea20(0x1cf))/0xb*(parseInt(_0x1eea20(0x1c8))/0xc);if(_0x200105===_0x33aa23)break;else _0x5d5d24['push'](_0x5d5d24['shift']());}catch(_0x1bef43){_0x5d5d24['push'](_0x5d5d24['shift']());}}}(_0x4944,0xed230));import{join}from'node:path';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';function _0x4944(){const _0x59d0be=['clone','3227169HlUsUt','indexOf','173272FbMptF','1247318LiSskm','storePat','sionStor','483182hCecuF','applySes','120vdqEqh','readStor','sessions','parse','1441045Yjpteb','1sSsZIV','split','726220ELnxuP','441uwCiJY','78biVPQM','1373410WbPfXd','eEntryPa','clear','writeSes','16SCnTEb','ssionSto','lite','values','ionStore','updateSe'];_0x4944=function(){return _0x59d0be;};return _0x4944();}const BRIDGE_STORE_CACHE=new Map();function resolveStateDirFromStorePath(_0x44871f){const _0x272f3f=_0x1333,_0x3b7c93=String(_0x44871f||'')['replaceA'+'ll']('\x5c','/'),_0x51b0a7='/agents/',_0x1ed6b1=_0x3b7c93[_0x272f3f(0x1c1)](_0x51b0a7);if(_0x1ed6b1<0x0){const _0x8c2baf=_0x3b7c93[_0x272f3f(0x1ce)]('/session'+'s/')[0x0];return _0x8c2baf||_0x3b7c93;}return _0x3b7c93['slice'](0x0,_0x1ed6b1);}function createBridgeStore(_0x2c8d18){const _0x13f164=_0x1333,_0x3b0bfe=resolveStateDirFromStorePath(_0x2c8d18),_0x2995fc=join(_0x3b0bfe,_0x13f164(0x1ca),'index.sq'+_0x13f164(0x1bb)),_0x20ba73=_0x3b0bfe+'::'+_0x2995fc,_0x4a8a7b=BRIDGE_STORE_CACHE['get'](_0x20ba73);if(_0x4a8a7b)return _0x4a8a7b;const _0x489abe=createSessionSqliteStore({'stateDir':_0x3b0bfe,'dbPath':_0x2995fc});return BRIDGE_STORE_CACHE['set'](_0x20ba73,_0x489abe),_0x489abe;}function _0x1333(_0x21bbe7,_0x3a84d7){_0x21bbe7=_0x21bbe7-0x1b6;const _0x49447f=_0x4944();let _0x13336c=_0x49447f[_0x21bbe7];return _0x13336c;}function cloneStoreObject(_0x50d83e){const _0x417f8f=_0x1333;return JSON[_0x417f8f(0x1cb)](JSON['stringif'+'y'](_0x50d83e||{}));}export function loadSessionStore(_0x3678d5,_0x330682={}){const _0x30dfe9=_0x1333,_0x269302=createBridgeStore(_0x3678d5),_0x3b7d13=_0x269302[_0x30dfe9(0x1c9)+'eByPathS'+'ync'](_0x3678d5);return _0x330682[_0x30dfe9(0x1bf)]===![]?_0x3b7d13:cloneStoreObject(_0x3b7d13);}export async function saveSessionStore(_0x4b9cf9,_0x364223){const _0x4d35a3=_0x1333,_0x2c014f=createBridgeStore(_0x4b9cf9);return await _0x2c014f['saveSess'+_0x4d35a3(0x1bd)](_0x4b9cf9,_0x364223);}export async function updateSessionStore(_0x196223,_0xddbcf9,_0x573941){const _0x527f3c=_0x1333,_0xb5bc32=createBridgeStore(_0x196223);return await _0xb5bc32['updateSe'+_0x527f3c(0x1ba)+'re'](_0x196223,_0xddbcf9,_0x573941);}export async function updateSessionStoreEntry(_0x24438d){const _0xc02e2f=_0x1333,_0x27ced7=createBridgeStore(_0x24438d[_0xc02e2f(0x1c4)+'h']);return await _0x27ced7[_0xc02e2f(0x1be)+'ssionSto'+'reEntry'](_0x24438d);}export async function applySessionStoreEntryPatch(_0x4b3850){const _0x37d2d5=_0x1333,_0x5dc297=createBridgeStore(_0x4b3850[_0x37d2d5(0x1c4)+'h']);return await _0x5dc297[_0x37d2d5(0x1c7)+_0x37d2d5(0x1c5)+_0x37d2d5(0x1b6)+'tch'](_0x4b3850);}export async function writeSessionStoreAtomic(_0x1effc1){const _0x58a95f=_0x1333,_0x1bdf19=createBridgeStore(_0x1effc1['storePat'+'h']);return await _0x1bdf19[_0x58a95f(0x1b8)+_0x58a95f(0x1c5)+'eAtomic'](_0x1effc1);}export async function closeBridgeStores(){const _0x55b71c=_0x1333,_0x13a97a=[...BRIDGE_STORE_CACHE[_0x55b71c(0x1bc)]()];BRIDGE_STORE_CACHE[_0x55b71c(0x1b7)](),await Promise['all'](_0x13a97a['map'](_0x2fbd4a=>_0x2fbd4a['close']()));}