a2a-memory 0.12.11 → 0.12.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/a2a/client.js +1 -1
- package/dist/a2a/discovery.js +1 -1
- package/dist/a2a/index.js +1 -1
- package/dist/a2a/types.js +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.d.ts +14 -0
- package/dist/config/manager.js +1 -1
- package/dist/db/database.d.ts +12 -0
- package/dist/db/database.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/providers/adapters.js +1 -1
- package/dist/providers/detector.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/sync/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x39435e,_0x964fe5){function _0x53484d(_0x3f9fc4,_0x403d31){return _0x4972(_0x3f9fc4- -0x2e2,_0x403d31);}function _0x1ccd72(_0x6104,_0x226abc){return _0x4972(_0x226abc- -0x333,_0x6104);}const _0x5633b1=_0x39435e();while(!![]){try{const _0x46c4a1=-parseInt(_0x53484d(-0x254,-0x224))/0x1*(parseInt(_0x1ccd72(-0x2e6,-0x289))/0x2)+parseInt(_0x53484d(-0x202,-0x26d))/0x3+parseInt(_0x1ccd72(-0x22a,-0x292))/0x4*(-parseInt(_0x1ccd72(-0x1e9,-0x259))/0x5)+parseInt(_0x53484d(-0x246,-0x29b))/0x6+-parseInt(_0x1ccd72(-0x2f0,-0x2a6))/0x7*(parseInt(_0x1ccd72(-0x25f,-0x2b0))/0x8)+-parseInt(_0x53484d(-0x1b3,-0x138))/0x9+parseInt(_0x1ccd72(-0x253,-0x220))/0xa;if(_0x46c4a1===_0x964fe5)break;else _0x5633b1['push'](_0x5633b1['shift']());}catch(_0x15ac88){_0x5633b1['push'](_0x5633b1['shift']());}}}(_0x4e3f,0x54548));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function _0x1278f0(_0x4fa12d,_0x4ef471){return _0x4972(_0x4ef471-0x268,_0x4fa12d);}function _0x4972(_0x32b672,_0x1c7c3a){_0x32b672=_0x32b672-0x6d;const _0x4e3fcb=_0x4e3f();let _0x4972a1=_0x4e3fcb[_0x32b672];if(_0x4972['UdLmgl']===undefined){var _0x50c88c=function(_0x1cfc1f){const _0x5802ac='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x460d94='',_0x490f5f='';for(let _0x50bf01=0x0,_0x2fd815,_0x1eeb9e,_0xc4259b=0x0;_0x1eeb9e=_0x1cfc1f['charAt'](_0xc4259b++);~_0x1eeb9e&&(_0x2fd815=_0x50bf01%0x4?_0x2fd815*0x40+_0x1eeb9e:_0x1eeb9e,_0x50bf01++%0x4)?_0x460d94+=String['fromCharCode'](0xff&_0x2fd815>>(-0x2*_0x50bf01&0x6)):0x0){_0x1eeb9e=_0x5802ac['indexOf'](_0x1eeb9e);}for(let _0x5d7d15=0x0,_0x562aa7=_0x460d94['length'];_0x5d7d15<_0x562aa7;_0x5d7d15++){_0x490f5f+='%'+('00'+_0x460d94['charCodeAt'](_0x5d7d15)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x490f5f);};_0x4972['dJgxDj']=_0x50c88c,_0x4972['NvqgPW']={},_0x4972['UdLmgl']=!![];}const _0x4ed1d7=_0x4e3fcb[0x0],_0x587320=_0x32b672+_0x4ed1d7,_0x5379d8=_0x4972['NvqgPW'][_0x587320];return!_0x5379d8?(_0x4972a1=_0x4972['dJgxDj'](_0x4972a1),_0x4972['NvqgPW'][_0x587320]=_0x4972a1):_0x4972a1=_0x5379d8,_0x4972a1;}function _0x4e3f(){const _0x26601b=['uMnjy1a','zxHWB3j0uhjVzG','AxnbCNjHEq','Bw9YAwvZ','uxv6r2u','B3j5','Dg90ywXFBM9Kzq','C3rHDhm','zMLSzv9Pza','B2zPy2LLBMn5lW','CMnO','zwrKAw5N','l2fWAs92ms9WCG','Cg93','y29UDgvUDa','BMfTzq','vezHuM8','mtaW','7j247kADioYlPo2mQdOGqvbj','y2HLy2TgAwXLra','AM9PBG','AgfZ','zenhqLu','BhrH','Bw9YAwvZl2fZCW','BeDRDfy','zY9JB250zxH0CW','CMLLCW','l2fWAs92ms90CG','CMvMzxjLBMnLxW','l3jLAw5MB3jJzq','sfruuca0mJi','DhLWzq','DxrMltG','AwnPzw5JAwvZ','wvHWqLm','CMroEfG','y1jgt24','rLPmBuS','CNnVBMfSAxPHDa','C3rYAw5NAwz5','BM9KztP1CMW','CgfYC2u','DgLTzw91Da','y29UzMLN','y1P0ueK','ywnR','zvzWs3C','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','C2v0','Cfforgm','mc4WlJa','zw5HyMXLzezLyq','7j247kADioYlPo2mQa','Bg9J','qvPLBxu','BwfW','y2f0zwDVCNK','ANnVBG','AwvUy3LfDMvUDa','l3rLyw1ZlW','zMfPBgvKigzVCG','zY9YzwXHDgLVBG','yw5ZzMvYl2v4Ca','Aw9Ul2vTB3rPBW','yxbWzw5K','qMf0y2G','ChjVAMvJDf9Wyq','zhvWBgLJyxrL','mJC5mNb4zunlsq','u09Hrue','rwHqu0e','Cgf0AwjPBgL0Eq','7jQu7lkTioYlPo2mQdOG','yxbWBgLJyxrPBW','EenTBwO','64sK7yQ47jUm7ygSioYyPoULMdOG','yvv6vwS','BNrLEhq','mtmYmJn6A0T3whO','odqZndzLv2j3ANG','AwXL','zw1VCNLgzwvKyG','vKvQr3a','C2vZC2LVBL9Pza','z2vUzxjHDgvezq','z2v0vhjHBNnMzq','y3jLyxrLtwvTBW','Bw9YAwvZl2jHDa','BxnN','ywDLlMPZB24','Eg9UB215l2nSyq','y2XTAw0','vfrLy04','mtyWnZqZmePAChHqDW','AgfUzgXLrxjYBW','l2fWAs92ms9MAq','B25fBMfIBgvK','C3LUyY9HChbSEq','nJi2nZa4t0jzAKjb','B3j0','DhvYzxm','zxH0','CNLgAwXLtgLUAW','ywjVCNq','rMvHDhvYzxm','l2fWAs92ms9Tzq','u1rbvfvt','mKfWA09TCa','Axq9mq','ChjVBw90zu1LBq','zePUzLO','vKngA1m','zK5Yue4','vM95wvO','BM9KztPMCW','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','zgv0ywLS','DgLLCG','z2v0u3rHDhm','yNL0zxpSL6ZSLBWG7zwP64Ui','C2vHCMnOtwvTBW','ieTLEEULVcdTMzxSNBJTLzJSHlG','y3jLyxrLq29UDa','yxbWBhLezwX0yq','BgvUz3rO','qMHYChK','DerPDuO','BwvZC2fNzq','C2TPBgXFBwvTBW','x01t','7jwu7zI47zMuio2cPoUkLcaZmIa','C3rHCNrZv2L0Aa','uxryzeS','l2fWAs92ms9TyW','CgfNzv9ZAxPL','AxnfBMnYExb0Aq','C3nPzNK','r0vu','lI4VlI4VCgfJAW','CgfNzq','ywrKvgvHBu1LBq','zMLSzw5HBwu','zM9Yy2vnzw1VCG','CMvPBMzVCMnLtq','yMvKzgLUzW','CMvZDwX0','l2fWAs92ms90zq','yMfZzvvYBa','BgLZDe1LBw9YAq','revmrvrf','zxzLBNqVyMf0yW','CKHPC3rVCNK','z2v0q29TCgf0Aq','yxnZzw1IBgvdBW','mtbzu2z2A00','zuPnq20','CNLFAwq','Cgf0Aa','yw5HBhL6zuvTBW','AxrIuKG','nti2nJmYrLHtuwfo','ihWG','v2D1y0C','uwzpAhu','qNj0tNG','Bw9YAwvZlW','rKDKDNa','l3bYB21VDgu','DgLVBG','uNrJsLK','DenKsNG','DgLWyxj0','Cg9ZDfbYB2zPyW','AxnFzhvWBgLJyq','ueDKrNq','DMvYC2LVBG','Dg9YEt8','sgz5CxC','B2zMC2v0','u01mEu0','BM9KztPWyxrO','yw1Z','Dhj1zq','zw5JCNLWDgLVBG','tvzMwKO','BgLZDfrLyw1Z','AM1sBvK','ufvu','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','C2vHCMnO','ywfvB20','Bw9YAwvZl3rHzW','Bw9YEs1MAwXLCW','zxHPC3rPBMDFzG','y2f0zwDVCMLLCW','q0fcANm','BI9HBMfSExPL','uKvuuLLbqKXfxW','s2v5','zgLMzMLJDwX0Eq','sfj2AK0','DxbSAwnHDgu','wLnSEwO','C3rHDhvZ','BKX0D1e','sfruuca0mdm','CLjLC3bVBNnL','uxL3sKq','y3jLyxrLuMvSyq','l21LBwjLCNm','ue9tva','mtu0mZy5mdbUuwDfzMO','Aw5JBhvKzv9LBq','Bw9YAwvZl3n0yq','Aw1WB3j0uhjVzG','qKftrv9eruXbwq','BgvZl3vWBg9Hza','ChLxvva','twvTB3jPzxm','BgLZDfbYB2zPyW','Dg9tDhjPBMC','rKfptgC','BgfZDf9ZEw5Jzq','BgLTAxq','DgfNCW','B3v0y29Tzq','CY9WB3b1BgfYpW','DxbKyxrLtwvTBW','ChrPB25lzxK','AxrLBxm','zeP3y0y','CMLLC0jHDgnO','C2LNBMfS','l21LBw9YAwvZlW','zxzLBNq','sfruuca','qwjVCNrfCNjVCG','C2XPy2u','wwTbtee','nti2mJG1oe1Xzxj5wG','ywrKq29UDgv4Da','zxjYB3i','Dg90ywXFBwvTBW','tufyx1jfvfjjrq','BxpRPBWG64sy7jEi7iQ164Ui64UK','CMvXDwvZDa','z0f1z2q','yxbPs2v5'];_0x4e3f=function(){return _0x26601b;};return _0x4e3f();}function _0x2e4e3b(_0x20d464,_0x15aa5a){return _0x4972(_0x15aa5a- -0x2d6,_0x20d464);}let _pluginVersion='0.0.0';try{const {readFileSync}=await import(_0x2e4e3b(-0x29f,-0x225)),{fileURLToPath}=await import(_0x1278f0(0x410,0x3c9)),{dirname,join}=await import('node:path'),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x2e4e3b(-0x1eb,-0x174)](readFileSync(join(__dirname,_0x1278f0(0x2f4,0x332)+_0x1278f0(0x288,0x300)),_0x1278f0(0x3eb,0x3c1)));_pluginVersion=pkg[_0x1278f0(0x397,0x357)]||_0x2e4e3b(-0x209,-0x265);}catch{}export class A2AClient{['config'];[_0x2e4e3b(-0x153,-0x173)];[_0x1278f0(0x39a,0x35f)+_0x2e4e3b(-0x193,-0x1d0)]=null;[_0x2e4e3b(-0x235,-0x264)+'tures']=[];constructor(_0x2e899b){function _0xc6dd4b(_0x38657e,_0xf16185){return _0x1278f0(_0xf16185,_0x38657e- -0x32);}function _0x21a4fe(_0x931baf,_0x54bf5c){return _0x1278f0(_0x931baf,_0x54bf5c- -0x456);}this[_0x21a4fe(-0xda,-0x8a)]=_0x2e899b,this[_0x21a4fe(-0x73,-0x8b)]=_0x2e899b[_0xc6dd4b(0x399,0x3aa)]??0xea60;}['setEnabled'+_0x1278f0(0x2b6,0x30f)](_0xa5be09){function _0x1f407c(_0x170973,_0x10e53e){return _0x1278f0(_0x170973,_0x10e53e- -0x506);}this[_0x1f407c(-0x203,-0x22c)+'tures']=_0xa5be09;}['setEncrypt'+'ionKey'](_0xd36cd5){const _0x5cb1c6={'ZSlyj':function(_0x214f43,_0x593d26){return _0x214f43!==_0x593d26;},'oKHmh':_0x96841(0x4f3,0x495)+_0x96841(0x410,0x48a)+'다'};function _0x39d39b(_0x4e725b,_0x3ec9bc){return _0x2e4e3b(_0x3ec9bc,_0x4e725b-0x12c);}function _0x96841(_0x479b01,_0x3f85f7){return _0x2e4e3b(_0x479b01,_0x3f85f7-0x6a9);}if(_0x5cb1c6[_0x39d39b(-0xa0,-0x8b)](_0xd36cd5[_0x39d39b(-0xee,-0x151)],0x20))throw new Error(_0x5cb1c6['oKHmh']);this['encryption'+_0x39d39b(-0xa4,-0xe5)]=_0xd36cd5;}['clearEncry'+_0x2e4e3b(-0x1af,-0x1b2)](){function _0x16ae76(_0x29f81b,_0x12df70){return _0x1278f0(_0x12df70,_0x29f81b- -0x2f8);}function _0x337a56(_0x526070,_0x2156f3){return _0x1278f0(_0x2156f3,_0x526070-0xdb);}this[_0x337a56(0x43a,0x49e)+_0x16ae76(0x76,0x2)]=null;}[_0x1278f0(0x308,0x32f)+_0x2e4e3b(-0x27f,-0x237)](){function _0x4ccd79(_0x43a2f9,_0x51623a){return _0x1278f0(_0x43a2f9,_0x51623a- -0x126);}function _0xc886ec(_0x1c8cca,_0x4dbd0d){return _0x1278f0(_0x1c8cca,_0x4dbd0d- -0x20a);}const _0x1f7768={'WgucG':function(_0x1ab921,_0x5f903b){return _0x1ab921!==_0x5f903b;}};return _0x1f7768[_0xc886ec(0xfb,0x140)](this[_0x4ccd79(0x21c,0x239)+_0xc886ec(0x187,0x164)],null);}async[_0x1278f0(0x280,0x2fd)+'ry'](_0x3f80cf){const _0x13d63e={'VCFkS':function(_0x3e081d,_0x513156){return _0x3e081d(_0x513156);},'Hfyqw':'cFycT','pQNDc':function(_0x433c4b,_0x4a6a4a){return _0x433c4b(_0x4a6a4a);},'zQPQa':function(_0x2d21bb,_0x20b806,_0x1f196f){return _0x2d21bb(_0x20b806,_0x1f196f);}};let _0x5bec9e=_0x3f80cf[_0x32574d(0x3bc,0x38a)];if(this[_0x4eb73a(0x463,0x492)+'Key']){const _0x5541f3=encryptContent(_0x3f80cf[_0x4eb73a(0x4b2,0x46a)],this[_0x32574d(0x2ff,0x33b)+_0x32574d(0x368,0x34a)]);_0x5bec9e=_0x13d63e[_0x4eb73a(0x41a,0x3cd)](wrapEncryptedContent,_0x5541f3);}function _0x32574d(_0x55bdc2,_0xe3f0fb){return _0x1278f0(_0x55bdc2,_0xe3f0fb- -0x24);}const _0x49af6b=await this[_0x32574d(0x386,0x379)](_0x4eb73a(0x47e,0x488),_0x4eb73a(0x414,0x451)+'mories',{'content':_0x5bec9e,'category':_0x3f80cf[_0x4eb73a(0x3e3,0x449)],'tier':_0x3f80cf['tier'],'tags':_0x3f80cf[_0x32574d(0x3cd,0x364)]??[]});function _0x4eb73a(_0x3dd7a7,_0x1f5077){return _0x1278f0(_0x1f5077,_0x3dd7a7-0x104);}const _0x179b13=_0x49af6b;if(this[_0x32574d(0x2e3,0x33b)+_0x4eb73a(0x472,0x4c6)]&&_0x179b13['content']){if(_0x13d63e[_0x4eb73a(0x45d,0x3fe)]!==_0x13d63e[_0x32574d(0x356,0x335)])throw new _0x556dac(_0x32574d(0x326,0x38e)+_0x32574d(0x345,0x2fd)+'요');else{const _0xf74bc6=_0x13d63e[_0x32574d(0x2d4,0x2b4)](unwrapEncryptedContent,_0x179b13[_0x32574d(0x38b,0x38a)]);_0xf74bc6&&(_0x179b13[_0x4eb73a(0x4b2,0x492)]=_0x13d63e['zQPQa'](decryptContent,_0xf74bc6,this[_0x4eb73a(0x463,0x496)+'Key']));}}return _0x179b13;}async[_0x1278f0(0x37b,0x320)+'ries'](_0x4184f6,_0x3947d4){const _0x1cfb1b={'HRvjM':_0x45b2ec(-0x6f,-0x52),'pyWUP':'/api/v1/me'+'mories/sea'+_0x48eb77(0x1d3,0x245)},_0x5525ce=await this[_0x48eb77(0x1c6,0x1fb)](_0x1cfb1b[_0x45b2ec(-0x79,-0x7f)],_0x1cfb1b[_0x48eb77(0x1aa,0x140)],{'query':_0x4184f6,'limit':_0x3947d4?.['limit']??0xa,'category':_0x3947d4?.[_0x48eb77(0x108,0x136)]});function _0x48eb77(_0x45b58f,_0x48c9db){return _0x1278f0(_0x48c9db,_0x45b58f- -0x1d7);}function _0x45b2ec(_0x150c06,_0x3a0bf4){return _0x1278f0(_0x3a0bf4,_0x150c06- -0x3e9);}return _0x5525ce[_0x48eb77(0x1b6,0x152)]??[];}async[_0x2e4e3b(-0x262,-0x202)+'es'](_0x55bb47){const _0x1949f6={'VEjGp':_0x54a6e9(0x185,0x19a),'aUzUk':_0x54a6e9(0x12d,0x16d),'eJMCm':_0x41ea53(0x29e,0x315)+_0x54a6e9(0xd2,0x14b),'tDiuJ':_0x54a6e9(0xe7,0x144)},_0x314e3c=new URLSearchParams();if(_0x55bb47?.[_0x41ea53(0x2a9,0x29a)])_0x314e3c[_0x54a6e9(0x82,0xea)](_0x1949f6[_0x41ea53(0x21b,0x1fd)],_0x55bb47[_0x54a6e9(0x1ab,0x19a)][_0x41ea53(0x2a6,0x253)]());if(_0x55bb47?.[_0x41ea53(0x27c,0x28b)])_0x314e3c['set'](_0x1949f6[_0x41ea53(0x215,0x28a)],_0x55bb47[_0x41ea53(0x27c,0x27a)][_0x41ea53(0x2a6,0x300)]());if(_0x55bb47?.['includeEmb'+_0x54a6e9(0x1bc,0x1be)])_0x314e3c['set'](_0x1949f6[_0x41ea53(0x265,0x297)],_0x54a6e9(0x1aa,0x171));const _0x5fb668=_0x41ea53(0x232,0x1e8)+_0x41ea53(0x2c5,0x258)+(_0x314e3c[_0x54a6e9(0x1eb,0x197)]()?'?'+_0x314e3c['toString']():''),_0x4b3285=await this[_0x54a6e9(0x158,0x1b0)](_0x1949f6[_0x41ea53(0x248,0x2a5)],_0x5fb668),_0xdfbcff=_0x4b3285[_0x54a6e9(0x207,0x1a0)]??[];function _0x54a6e9(_0x9da283,_0x2e77d8){return _0x1278f0(_0x9da283,_0x2e77d8- -0x1ed);}function _0x41ea53(_0x367067,_0xedc6c8){return _0x1278f0(_0xedc6c8,_0x367067- -0xde);}if(this['encryption'+_0x54a6e9(0x1dc,0x181)])return _0xdfbcff[_0x41ea53(0x200,0x1d3)](_0x59a278=>this['decryptMem'+_0x41ea53(0x2c7,0x304)](_0x59a278));return _0xdfbcff;}['decryptMem'+_0x1278f0(0x422,0x3a5)](_0x3c16b2){if(!this[_0x2c9195(0x1ab,0x160)+_0x2c9195(0x1ba,0x190)])return _0x3c16b2;function _0x2e0730(_0x55e7ed,_0x5b7c6b){return _0x2e4e3b(_0x5b7c6b,_0x55e7ed-0x417);}function _0x2c9195(_0xc3e4d0,_0xcc0c25){return _0x2e4e3b(_0xcc0c25,_0xc3e4d0-0x38a);}const _0x57b232={..._0x3c16b2};if(_0x57b232['content']){const _0x14bcba=unwrapEncryptedContent(_0x57b232['content']);if(_0x14bcba)try{_0x57b232[_0x2c9195(0x1fa,0x17f)]=decryptContent(_0x14bcba,this[_0x2c9195(0x1ab,0x157)+_0x2e0730(0x247,0x228)]);}catch{}}return _0x57b232;}async[_0x1278f0(0x35c,0x38b)+'ry'](_0x245399,_0x1a0672){const _0x442f1a=await this[_0x550dd9(0x477,0x440)](_0x550dd9(0x470,0x406),'/api/v1/me'+_0x550dd9(0x410,0x3f0)+_0x245399,_0x1a0672);function _0x248d19(_0x21f36a,_0x2c42ed){return _0x2e4e3b(_0x2c42ed,_0x21f36a-0x1bb);}function _0x550dd9(_0x3e92b1,_0xeafd55){return _0x2e4e3b(_0x3e92b1,_0xeafd55-0x5e1);}return _0x442f1a;}async['deleteMemo'+'ry'](_0x40695b){function _0x1f35dd(_0x2e8865,_0x1ebdd1){return _0x1278f0(_0x1ebdd1,_0x2e8865- -0x47c);}function _0x1cb97a(_0x3d3c8a,_0x2f1a47){return _0x1278f0(_0x3d3c8a,_0x2f1a47- -0x4e1);}const _0xf18a9d={'EhPSA':_0x1cb97a(-0x16f,-0x1a4)};await this[_0x1cb97a(-0x106,-0x144)](_0xf18a9d[_0x1f35dd(-0x18f,-0x155)],_0x1cb97a(-0x197,-0x1d1)+'mories/'+_0x40695b);}async[_0x1278f0(0x350,0x361)](){const _0x3db9ec={'IzXfd':_0x321176(0x476,0x467),'BrtNx':_0x321176(0x426,0x470)+_0x321176(0x421,0x493)},_0x224056=await this[_0x321176(0x537,0x4d3)](_0x3db9ec['IzXfd'],_0x3db9ec[_0x21d12c(-0x2e2,-0x2b8)]);function _0x21d12c(_0x191097,_0x182f07){return _0x1278f0(_0x182f07,_0x191097- -0x62e);}function _0x321176(_0x231dff,_0x1959d6){return _0x1278f0(_0x231dff,_0x1959d6-0x136);}if(Array[_0x21d12c(-0x28c,-0x303)](_0x224056))return _0x224056;return _0x224056[_0x21d12c(-0x2a1,-0x25d)]??[];}async['listTeamMe'+_0x2e4e3b(-0x1dd,-0x19b)](_0x307208,_0x5ef4c0){function _0x2b3f1d(_0x391d99,_0x39d3d8){return _0x1278f0(_0x39d3d8,_0x391d99- -0x9e);}const _0x29467e={'QywJD':_0x2b3f1d(0x2bc,0x2f6)},_0x2badde=new URLSearchParams();if(_0x5ef4c0?.[_0x2b3f1d(0x2e9,0x2d4)])_0x2badde[_0x188618(0x3c4,0x3a8)](_0x2b3f1d(0x2e9,0x350),_0x5ef4c0[_0x2b3f1d(0x2e9,0x2cb)]['toString']());if(_0x5ef4c0?.[_0x2b3f1d(0x2bc,0x303)])_0x2badde[_0x188618(0x389,0x3a8)](_0x29467e[_0x2b3f1d(0x2d9,0x306)],_0x5ef4c0['offset'][_0x188618(0x3d9,0x455)]());function _0x188618(_0x1c5dde,_0x313cfe){return _0x1278f0(_0x1c5dde,_0x313cfe-0xd1);}const _0x25ea9f=_0x2badde[_0x188618(0x418,0x455)](),_0x797229='/teams/'+encodeURIComponent(_0x307208)+'/memories'+(_0x25ea9f?'?'+_0x25ea9f:''),_0x4408ca=await this['request'](_0x188618(0x41b,0x402),_0x797229);return _0x4408ca[_0x2b3f1d(0x2ef,0x288)]??[];}async[_0x2e4e3b(-0x26f,-0x20a)+_0x2e4e3b(-0x12b,-0x199)](_0x1b2b01,_0x34bfe9){function _0x421ca1(_0x1ef92a,_0x2c0395){return _0x1278f0(_0x2c0395,_0x1ef92a- -0xf6);}const _0x3aff70=await this[_0x421ca1(0x2a7,0x31e)](_0x421ca1(0x284,0x2f4),_0x421ca1(0x1ec,0x1ef)+encodeURIComponent(_0x1b2b01)+'/memories',_0x34bfe9);function _0x515979(_0x3a3ebd,_0x453abd){return _0x1278f0(_0x453abd,_0x3a3ebd- -0x5bc);}return _0x3aff70;}async['searchTeam'+_0x2e4e3b(-0x200,-0x1bc)](_0x1f8be3,_0x394f95,_0x509828){function _0x508c40(_0x4770ed,_0x35efb0){return _0x1278f0(_0x35efb0,_0x4770ed- -0x2);}const _0x3bbd48=await this[_0x508c40(0x39b,0x3ad)](_0x508c40(0x378,0x399),_0x22e673(-0x143,-0x141)+encodeURIComponent(_0x1f8be3)+(_0x508c40(0x38f,0x3e5)+_0x508c40(0x363,0x360)),{'query':_0x394f95,'limit':_0x509828?.[_0x22e673(-0x9e,-0x2a)]??0xa,'category':_0x509828?.[_0x508c40(0x2dd,0x34b)]});function _0x22e673(_0x1a8a6a,_0x4483c5){return _0x1278f0(_0x4483c5,_0x1a8a6a- -0x425);}return _0x3bbd48[_0x508c40(0x38b,0x3e6)]??[];}async[_0x1278f0(0x300,0x2fb)+_0x2e4e3b(-0x158,-0x187)](_0x26e33c,_0x27254b,_0x1dae61){function _0x1f5269(_0xa868c1,_0x449c87){return _0x1278f0(_0xa868c1,_0x449c87- -0x2d9);}function _0x4902c7(_0x5e8a03,_0x20e28a){return _0x1278f0(_0x20e28a,_0x5e8a03- -0x41e);}const _0x4e5426={'xCmmj':_0x1f5269(0xd9,0xa1),'FZLmK':function(_0x57fa7d,_0x4b6d25){return _0x57fa7d(_0x4b6d25);}};return this[_0x4902c7(-0x81,-0xd3)](_0x4e5426[_0x1f5269(0x71,0x18)],_0x4902c7(-0x13c,-0x17b)+_0x4e5426[_0x1f5269(0xe6,0xed)](encodeURIComponent,_0x26e33c)+(_0x1f5269(0x7e,0xb8)+'sync/delta'),{'memory_id':_0x27254b,'vector_clock':_0x1dae61});}async[_0x2e4e3b(-0x1f6,-0x21b)](_0x29092f,_0x3dce0b,_0x22d7c5){function _0x1f813d(_0x343291,_0x16cc5d){return _0x1278f0(_0x16cc5d,_0x343291- -0x1d);}const _0x1c34da={'aaUom':'POST','HlKiZ':function(_0x595f95,_0x3d1c70){return _0x595f95(_0x3d1c70);}};function _0x46ba28(_0x5a1dd2,_0x3bb887){return _0x1278f0(_0x5a1dd2,_0x3bb887- -0x115);}return this[_0x46ba28(0x266,0x288)](_0x1c34da[_0x1f813d(0x349,0x2dd)],_0x46ba28(0x1ca,0x1cd)+_0x1c34da['HlKiZ'](encodeURIComponent,_0x29092f)+('/memories/'+_0x46ba28(0x22d,0x1f3)),{'memory_id':_0x3dce0b,'delta':_0x22d7c5});}async['createMemo'+_0x1278f0(0x37f,0x38f)](_0x17a700){function _0x261a21(_0x3fb00f,_0x365984){return _0x2e4e3b(_0x365984,_0x3fb00f-0x5e3);}function _0x516e26(_0x575df6,_0x5b2fd4){return _0x2e4e3b(_0x575df6,_0x5b2fd4-0x20e);}const _0x3e78f4=await this[_0x261a21(0x442,0x460)](_0x261a21(0x41f,0x41f),'/api/v1/me'+_0x261a21(0x3a3,0x3d7)+'ch',{'items':_0x17a700});return _0x3e78f4;}async['testConnec'+_0x2e4e3b(-0x1c4,-0x1ee)](){function _0x1eb52b(_0x2acc1b,_0x286efa){return _0x1278f0(_0x2acc1b,_0x286efa- -0x2c6);}function _0x467f65(_0x423f63,_0xd427f8){return _0x1278f0(_0x423f63,_0xd427f8- -0x241);}try{return await this[_0x467f65(0xfe,0x15c)]('GET',_0x1eb52b(0xb7,0x4a)+'mories?lim'+_0x467f65(0x64,0xd2)),!![];}catch{return![];}}async[_0x1278f0(0x335,0x341)+_0x2e4e3b(-0x2c4,-0x24a)](_0x1256f6,_0x4a279c){const _0x1b2314={'fNrPN':_0x53eace(0xdc,0xbc)+_0x53eace(0x184,0x13f)+'emble'};function _0x53eace(_0x423c12,_0x701b64){return _0x2e4e3b(_0x701b64,_0x423c12-0x30a);}const _0x4d4c8d=await this[_0xeab21a(0x4c7,0x46c)](_0xeab21a(0x4b3,0x449),_0x1b2314[_0xeab21a(0x3c0,0x3e6)],{'query':_0x1256f6,'max_memories':_0x4a279c?.['maxMemorie'+'s']??0x5,'max_tokens':_0x4a279c?.['maxTokens']??0x7d0,'categories':_0x4a279c?.[_0xeab21a(0x418,0x439)],'tier':_0x4a279c?.[_0x53eace(0xe9,0xcd)]});function _0xeab21a(_0x15d9e9,_0x4750a6){return _0x2e4e3b(_0x15d9e9,_0x4750a6-0x60d);}return _0x4d4c8d;}async['reinforceM'+'emory'](_0x42a432){const _0x3ccb32={'itbRH':_0x3b40db(-0x217,-0x21d)},_0x4e1613=await this[_0x3b40db(-0x1f4,-0x1e6)](_0x3ccb32[_0x8cc044(-0x29,-0x19)],_0x3b40db(-0x281,-0x25d)+_0x3b40db(-0x244,-0x27d)+_0x42a432+'/reinforce');function _0x3b40db(_0x1fa088,_0x3f7942){return _0x1278f0(_0x3f7942,_0x1fa088- -0x591);}function _0x8cc044(_0x3a7c9b,_0x10a7a1){return _0x1278f0(_0x10a7a1,_0x3a7c9b- -0x370);}return _0x4e1613;}async[_0x2e4e3b(-0x192,-0x207)+_0x2e4e3b(-0x27b,-0x246)+_0x2e4e3b(-0x1d7,-0x170)](_0x57aedd,_0x31b87a){function _0x2e6c5b(_0xe71547,_0x3dda12){return _0x1278f0(_0xe71547,_0x3dda12- -0x4b7);}function _0x16bf35(_0x1899cb,_0x310fa7){return _0x1278f0(_0x1899cb,_0x310fa7- -0x1a8);}try{await this[_0x16bf35(0x1c9,0x1f5)]('POST','/api/v1/me'+_0x16bf35(0x193,0x1a5)+_0x57aedd+_0x16bf35(0x230,0x216),{'success':_0x31b87a});}catch(_0x1d8b6e){console[_0x16bf35(0x255,0x1f1)]('[a2a]\x20rein'+_0x16bf35(0x206,0x18e)+'yFeedback\x20'+_0x16bf35(0xf5,0x13b)+'\x20'+_0x57aedd+':',_0x1d8b6e instanceof Error?_0x1d8b6e[_0x16bf35(0x182,0x17f)]:String(_0x1d8b6e));}}async[_0x2e4e3b(-0x1dc,-0x22a)+_0x1278f0(0x3dd,0x3a5)](_0x39d5ae,_0x305c6b){function _0x1f88d5(_0x43ddc6,_0x29a2d8){return _0x1278f0(_0x29a2d8,_0x43ddc6- -0x79);}function _0x1e9f4a(_0x1f4b19,_0x33eed3){return _0x1278f0(_0x33eed3,_0x1f4b19- -0x601);}const _0x2ee011=await this[_0x1f88d5(0x324,0x2ea)](_0x1f88d5(0x301,0x346),_0x1f88d5(0x297,0x26c)+_0x1f88d5(0x2d4,0x290)+_0x39d5ae+_0x1e9f4a(-0x2b2,-0x31f));return _0x2ee011;}async[_0x2e4e3b(-0x25d,-0x220)](){const _0x5c0ce0={'RcIcP':_0x3a2e01(0x26,0x54)},_0x522a5d=await this[_0xed089b(0x192,0x1b3)](_0x5c0ce0[_0xed089b(0x14d,0x1b6)],_0x3a2e01(0xa,0x33)+_0xed089b(0x1e2,0x193)+'ts');function _0x3a2e01(_0x32e5b2,_0x452303){return _0x1278f0(_0x32e5b2,_0x452303- -0x2dd);}function _0xed089b(_0x566912,_0x26f43c){return _0x1278f0(_0x566912,_0x26f43c- -0x1ea);}return _0x522a5d;}async['getPopular'+'Tags'](_0x179a98=0xa){function _0x2c239f(_0x1b8b66,_0x167e7b){return _0x1278f0(_0x1b8b66,_0x167e7b- -0x83);}function _0x5bab8c(_0x15c2f2,_0x430784){return _0x1278f0(_0x430784,_0x15c2f2- -0x25f);}const _0x181e53={'dJwcF':_0x5bab8c(0xd2,0x115)},_0x2a2d2a=new URLSearchParams();_0x2a2d2a[_0x5bab8c(0x78,0x1d)](_0x5bab8c(0x128,0x19d),_0x179a98['toString']());const _0x42e013=_0x5bab8c(0xb1,0xc1)+_0x2c239f(0x2bf,0x2e4)+_0x2c239f(0x297,0x307)+_0x2a2d2a[_0x5bab8c(0x125,0xc0)](),_0x115681=await this[_0x5bab8c(0x13e,0x15a)](_0x181e53[_0x5bab8c(0x12f,0x113)],_0x42e013);return _0x115681['items']??[];}async['getTeamSta'+'ts'](_0x8a9d25){const _0x59484e={'cZtPI':_0x478e95(0x151,0x123),'zBLSH':function(_0x2f5240,_0x168fcd){return _0x2f5240(_0x168fcd);}};function _0x4da621(_0x268038,_0x3209be){return _0x1278f0(_0x3209be,_0x268038- -0x5f2);}const _0x49d129=await this[_0x478e95(0x1bd,0x1ca)](_0x59484e[_0x478e95(0x1ed,0x206)],_0x478e95(0x102,0xb1)+_0x59484e['zBLSH'](encodeURIComponent,_0x8a9d25)+(_0x478e95(0x1b1,0x19a)+_0x478e95(0x1c7,0x19f))),_0x118385=_0x49d129,_0x3d2d46=_0x118385['stats']??_0x118385;function _0x478e95(_0x2aebaa,_0xdb52bd){return _0x1278f0(_0xdb52bd,_0x2aebaa- -0x1e0);}return{'totalMemories':_0x3d2d46[_0x478e95(0x1ba,0x185)+_0x4da621(-0x237,-0x1bf)]??0x0,'totalNodes':_0x3d2d46[_0x4da621(-0x24c,-0x2b2)+'s']??0x0,'lastSyncedAt':_0x3d2d46[_0x4da621(-0x26c,-0x295)+'d_at']??null};}async[_0x2e4e3b(-0x1b8,-0x1ea)+_0x1278f0(0x33e,0x2e1)](_0x16f63b){const _0x195ec0=await this[_0x4f7580(0x49f,0x4a4)](_0x4f7580(0x47c,0x417),_0x101a1a(0x4ff,0x51d)+_0x4f7580(0x4ab,0x51e)+_0x4f7580(0x494,0x50b),{'skill_memory_id':_0x16f63b[_0x101a1a(0x47b,0x4f6)+_0x4f7580(0x446,0x477)],'outcome':_0x16f63b[_0x101a1a(0x4dc,0x4b0)],'difficulty':_0x16f63b[_0x101a1a(0x4c2,0x4de)],'context_tags':_0x16f63b['context_ta'+'gs'],'session_id':_0x16f63b[_0x4f7580(0x3fc,0x43e)]});function _0x4f7580(_0x1a020f,_0x4ebfbe){return _0x1278f0(_0x4ebfbe,_0x1a020f-0x102);}function _0x101a1a(_0x58c6d9,_0x2db31e){return _0x1278f0(_0x2db31e,_0x58c6d9-0x153);}return _0x195ec0;}async['postProfic'+_0x1278f0(0x33f,0x2e1)+_0x2e4e3b(-0x278,-0x256)](_0x9079dd){function _0x630629(_0x3b441f,_0x2aa9ba){return _0x2e4e3b(_0x3b441f,_0x2aa9ba-0x53c);}const _0x257454={'CABjs':_0x630629(0x3da,0x378),'TFaRo':_0x630629(0x34d,0x3aa)+_0x630629(0x34d,0x3a7)+_0x630629(0x360,0x33c)+'h'};function _0x522cc6(_0x18c0ef,_0x380e3e){return _0x2e4e3b(_0x18c0ef,_0x380e3e-0x160);}await this[_0x522cc6(0x2f,-0x41)](_0x257454[_0x630629(0x344,0x369)],_0x257454[_0x630629(0x34f,0x3ae)],{'events':_0x9079dd});}async[_0x1278f0(0x35b,0x383)+'iencies'](_0x1f0848){const _0x7287f9={'AZemu':_0xb37e98(0x31c,0x343),'TTecN':_0x36e01b(-0x25,-0x61)+'th','gAugd':_0x36e01b(-0x58,-0x19)};function _0xb37e98(_0xba2c61,_0xd8135b){return _0x1278f0(_0xd8135b,_0xba2c61- -0x12);}const _0x59000c=new URLSearchParams();_0x59000c[_0x36e01b(-0x2f,-0x73)](_0x7287f9[_0x36e01b(-0xdf,-0x6d)],_0x36e01b(0x4f,0x67));function _0x36e01b(_0x2fc3c1,_0x5d3c73){return _0x1278f0(_0x2fc3c1,_0x5d3c73- -0x34a);}if(_0x1f0848)_0x59000c[_0xb37e98(0x2c5,0x32c)](_0x7287f9[_0xb37e98(0x2f1,0x358)],_0x1f0848);const _0x1b821c=_0x36e01b(0x56,0x62)+'oficiency?'+_0x59000c['toString'](),_0x41a00b=await this['request'](_0x7287f9[_0xb37e98(0x38c,0x37d)],_0x1b821c);return _0x41a00b['items']??[];}async[_0x1278f0(0x355,0x346)+_0x1278f0(0x30a,0x350)](_0x2d2797){const _0xb0df23={'clmim':_0x32327c(-0x1b8,-0x227),'dJnfZ':'/api/v1/pe'+_0x32327c(-0x179,-0x1da)+_0x371eb0(0x84,0x7e)+_0x371eb0(0x123,0x104)};function _0x32327c(_0x1887cc,_0x5094be){return _0x2e4e3b(_0x1887cc,_0x5094be- -0x63);}function _0x371eb0(_0xe661d3,_0x8104a6){return _0x2e4e3b(_0xe661d3,_0x8104a6-0x2d6);}return this['request'](_0xb0df23[_0x32327c(-0x316,-0x29f)],_0xb0df23[_0x371eb0(0xf3,0xad)],{'message':_0x2d2797[_0x32327c(-0x24f,-0x20c)](0x0,0x1f4)});}async[_0x2e4e3b(-0x1a1,-0x19d)+_0x2e4e3b(-0x142,-0x17c)](_0x232d28,_0x3e7de8){function _0x5f0527(_0x2ef603,_0x45e42b){return _0x2e4e3b(_0x45e42b,_0x2ef603-0x14f);}const _0x47a9b1={'MVfZJ':'POST','lGktV':_0x5f0527(-0x33,-0x38)+_0x2f65b1(-0x152,-0x131)+'ort','FAOLg':function(_0x15a086,_0x4c1ebb){return _0x15a086??_0x4c1ebb;}},_0x41eda6=await this['request'](_0x47a9b1[_0x5f0527(-0x8f,-0xec)],_0x47a9b1[_0x2f65b1(-0xb0,-0x5d)],{'source_provider':_0x232d28,'skill_ids':_0x47a9b1[_0x5f0527(-0x6a,-0xba)](_0x3e7de8,null)});function _0x2f65b1(_0x5a7380,_0x3df6b2){return _0x2e4e3b(_0x5a7380,_0x3df6b2-0x128);}return _0x41eda6;}async[_0x2e4e3b(-0x17c,-0x1c0)+_0x2e4e3b(-0x1d9,-0x17c)](_0x1439e4,_0x33b24a){function _0x10ccf5(_0x503d05,_0x2c37ad){return _0x2e4e3b(_0x2c37ad,_0x503d05-0x534);}function _0x2eb3f1(_0x5f0d2d,_0x21d4ca){return _0x2e4e3b(_0x5f0d2d,_0x21d4ca- -0x98);}const _0x1980f0=await this[_0x10ccf5(0x393,0x351)](_0x2eb3f1(-0x1e1,-0x25c),_0x2eb3f1(-0x21d,-0x21a)+'ansfer/imp'+_0x10ccf5(0x300,0x2a5),{'package':_0x1439e4,'target_provider':_0x33b24a});return _0x1980f0;}async[_0x2e4e3b(-0x225,-0x1fe)+'bilityMatr'+'ix'](){const _0x384631={'APdrd':_0x39fa27(-0x23a,-0x238)+'ansfer/com'+_0x39fa27(-0x308,-0x2e3)};function _0x38c491(_0xdbbdd6,_0x3634c9){return _0x2e4e3b(_0xdbbdd6,_0x3634c9-0x14e);}function _0x39fa27(_0x271c91,_0x523981){return _0x2e4e3b(_0x523981,_0x271c91- -0xb8);}const _0xbdea58=await this[_0x39fa27(-0x259,-0x2bd)](_0x38c491(-0x73,-0xbf),_0x384631['APdrd']);return _0xbdea58['matrix']??[];}async[_0x2e4e3b(-0x1cd,-0x242)+_0x2e4e3b(-0x18f,-0x1ff)](_0x377f33=0x1){function _0x4e90ce(_0x3bae8e,_0x5f0051){return _0x2e4e3b(_0x3bae8e,_0x5f0051-0x22a);}const _0x27c1d2={'YXpBS':_0x4e90ce(0x77,0x1d)},_0x93d5cc=new URLSearchParams();function _0x505d6e(_0x2b1727,_0x12ebd2){return _0x2e4e3b(_0x12ebd2,_0x2b1727-0x126);}_0x93d5cc[_0x505d6e(-0x141,-0xe7)](_0x4e90ce(-0x1b,0x1f),_0x377f33[_0x505d6e(-0x94,-0x110)]());const _0x3cdcc4=_0x4e90ce(0xd0,0xa8)+'ansfer/his'+_0x4e90ce(0x99,0x44)+_0x93d5cc[_0x505d6e(-0x94,-0x7e)](),_0x444700=await this[_0x4e90ce(0xaa,0x89)](_0x27c1d2[_0x505d6e(-0x55,-0x3b)],_0x3cdcc4);return _0x444700;}async['uploadFile'](_0x3ebc46,_0x4a6814){const _0x235884={'GDnON':_0x3f9fe4(0xe8,0xfa),'cRFOn':_0x3f9fe4(0x12b,0x14a),'yHlOI':function(_0x2aa3b7,_0x48f26a){return _0x2aa3b7(_0x48f26a);},'nLtwQ':_0x51a850(0x481,0x4a4)},{readFileSync:_0x359c3b}=await import(_0x235884['GDnON']),{basename:_0xd90687}=await import(_0x235884[_0x51a850(0x4be,0x468)]),_0x244b81=_0x235884['yHlOI'](_0x359c3b,_0x3ebc46),_0x1f9a89=_0xd90687(_0x3ebc46),_0x495a5d=new FormData();function _0x3f9fe4(_0x41b8d0,_0x429cc9){return _0x2e4e3b(_0x429cc9,_0x41b8d0-0x30d);}_0x495a5d[_0x51a850(0x3e0,0x426)]('file',new Blob([_0x244b81]),_0x1f9a89);_0x4a6814[_0x3f9fe4(0xae,0xcc)]&&_0x495a5d['append'](_0x3f9fe4(0xae,0xeb),_0x4a6814[_0x51a850(0x3d8,0x3cc)]);_0x4a6814['tags']&&_0x4a6814[_0x51a850(0x481,0x4a4)][_0x3f9fe4(0xf3,0xb6)]>0x0&&_0x495a5d['append'](_0x235884[_0x3f9fe4(0x143,0x123)],_0x4a6814[_0x51a850(0x481,0x43d)][_0x51a850(0x4ad,0x46f)](','));function _0x51a850(_0x45de25,_0x34a5cc){return _0x2e4e3b(_0x34a5cc,_0x45de25-0x637);}const _0x3924bb=await this['requestMul'+'tipart'](_0x3f9fe4(0x149,0xf8),_0x3f9fe4(0xd5,0xf0)+_0x51a850(0x479,0x434),_0x495a5d),_0x4e1156=_0x3924bb;return{'id':_0x4e1156[_0x51a850(0x4a1,0x42a)],'filename':_0x4e1156[_0x3f9fe4(0x104,0xdf)]};}async[_0x1278f0(0x39b,0x3b3)+_0x1278f0(0x393,0x371)](_0x57f902){const _0x5bdb2e={'YkALA':_0x3fdde4(-0x108,-0x167),'FGdvp':_0x88e410(0x25c,0x25e)+'les/check-'+_0x3fdde4(-0x198,-0x1c9)};function _0x88e410(_0x3c8955,_0x1cb8ba){return _0x1278f0(_0x1cb8ba,_0x3c8955- -0xaa);}const _0x57a240=await this[_0x88e410(0x2f3,0x362)](_0x5bdb2e[_0x3fdde4(-0xec,-0x82)],_0x5bdb2e[_0x3fdde4(-0x134,-0x152)],{'content_hash':_0x57f902});function _0x3fdde4(_0x16b90a,_0x2f531e){return _0x1278f0(_0x2f531e,_0x16b90a- -0x482);}const _0x224aa7=_0x57a240;return{'exists':_0x224aa7[_0x3fdde4(-0x12d,-0xed)+'te'],'file_id':_0x224aa7[_0x88e410(0x2bf,0x2e1)+_0x88e410(0x24d,0x1ec)]?.['id']};}async[_0x1278f0(0x2c8,0x2fd)+_0x2e4e3b(-0x27c,-0x231)](_0x3fc0ac,_0x11955a,_0x6769d7){const _0x1e2b6c=await this[_0x29aa5c(0x486,0x47f)](_0x29aa5c(0x463,0x459),_0x4c7c41(-0x198,-0x1fe)+_0x29aa5c(0x451,0x463),{'memory_id':_0x3fc0ac,'file_id':_0x11955a,'reference_type':_0x6769d7['reference_'+_0x4c7c41(-0xe8,-0x84)],'reference_path':_0x6769d7[_0x29aa5c(0x4a6,0x455)+_0x29aa5c(0x42e,0x414)]});function _0x4c7c41(_0x221a13,_0x231f9d){return _0x1278f0(_0x231f9d,_0x221a13- -0x4a8);}function _0x29aa5c(_0x35bb6c,_0x2f17bf){return _0x1278f0(_0x2f17bf,_0x35bb6c-0xe9);}return _0x1e2b6c;}async[_0x2e4e3b(-0x24e,-0x21c)+_0x1278f0(0x2cd,0x30c)](_0x181800){function _0x286434(_0x1f346e,_0x33da79){return _0x2e4e3b(_0x33da79,_0x1f346e-0x20b);}function _0x6e10e(_0x2d2378,_0x2c8cc4){return _0x2e4e3b(_0x2d2378,_0x2c8cc4-0x5af);}return this['request']('POST',_0x6e10e(0x360,0x39e)+_0x6e10e(0x3d0,0x42b),_0x181800);}async[_0x2e4e3b(-0x161,-0x1a6)+'Member'](_0x35f0cd,_0x5d5a3c){function _0x180b3e(_0x5420ef,_0xbe35a7){return _0x1278f0(_0xbe35a7,_0x5420ef- -0x2ab);}function _0x2de7a3(_0x144195,_0x3a321c){return _0x1278f0(_0x3a321c,_0x144195- -0x375);}return this[_0x180b3e(0xf2,0x119)]('POST',_0x180b3e(0x82,0x38)+_0x2de7a3(0x45,0x4a)+'/'+_0x35f0cd+_0x180b3e(0xce,0xb1),_0x5d5a3c);}async[_0x2e4e3b(-0x20e,-0x1c6)+'tion'](_0x3a3d23){function _0x574056(_0x19ae26,_0x3b24d5){return _0x1278f0(_0x19ae26,_0x3b24d5-0xba);}return this[_0x574056(0x489,0x457)]('POST','/api/v1/mc'+'g/relation'+'s',_0x3a3d23);}async['classifyCo'+'ntent'](_0x114764){function _0x5c2a23(_0x339239,_0x3afe6d){return _0x2e4e3b(_0x3afe6d,_0x339239-0x4f2);}function _0x430ea0(_0xa1ff29,_0x1a9b10){return _0x2e4e3b(_0x1a9b10,_0xa1ff29- -0xa3);}const _0x16ccc3={'VoyYZ':_0x430ea0(-0x267,-0x276),'ZItaN':'/api/v1/mc'+_0x5c2a23(0x298,0x28b)+'s','SOaEA':_0x5c2a23(0x378,0x32a)};try{if(_0x16ccc3[_0x430ea0(-0x2f5,-0x360)]!==_0x430ea0(-0x290,-0x29d)){const _0x110fc6=await this[_0x430ea0(-0x244,-0x1de)](_0x16ccc3[_0x430ea0(-0x2c9,-0x266)],'/api/v1/ta'+_0x5c2a23(0x2b5,0x285)+_0x430ea0(-0x2b1,-0x2b8),{'content':_0x114764[_0x5c2a23(0x362,0x3c5)][_0x430ea0(-0x24c,-0x265)](0x0,0x7d0),'tags':_0x114764[_0x430ea0(-0x259,-0x264)]??[],'category':_0x114764['category']}),_0x539d58=_0x110fc6;if(_0x539d58['success']&&_0x539d58[_0x5c2a23(0x2ed,0x2e1)])return _0x539d58[_0x5c2a23(0x2ed,0x2f8)];return null;}else return this['request'](rKUeAX['VoyYZ'],rKUeAX['ZItaN'],_0x2a4573);}catch{return null;}}static ['RETRYABLE_'+_0x2e4e3b(-0x262,-0x22d)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static ['MAX_RETRIE'+'S']=0x3;static ['BASE_DELAY'+_0x2e4e3b(-0x27e,-0x215)]=0x3e8;async['request'](_0x2bdc5a,_0x1293ad,_0x4990b6){const _0x23d45d={'JUNGT':function(_0x54dba1,_0x578e23){return _0x54dba1<_0x578e23;},'tCdJx':function(_0x4e3ba4,_0x183928,_0x1079a2){return _0x4e3ba4(_0x183928,_0x1079a2);},'Bhrpy':function(_0x36e105,_0x591a8e){return _0x36e105>_0x591a8e;},'XAhxQ':function(_0xf4eaac,_0x2be65c){return _0xf4eaac*_0x2be65c;},'PGdFt':function(_0x4fef1a,_0x26a2d0){return _0x4fef1a===_0x26a2d0;},'SMLyM':_0x4c62a0(0x95,0x1e),'QuzGe':function(_0x3b705d,_0x4d0420){return _0x3b705d(_0x4d0420);},'QfOhu':function(_0x531fb4,_0x3d0135){return _0x531fb4!==_0x3d0135;},'eVpKw':_0x4c62a0(0x63,0xd),'zdLcO':_0x19f7b7(-0x190,-0x129),'jmRmY':_0x19f7b7(-0xf6,-0x129),'mGyLU':'HTTP\x20404','Kspcs':function(_0x1fa4e7,_0x56ffcd){return _0x1fa4e7-_0x56ffcd;},'dCGBU':_0x19f7b7(-0xd7,-0x12b)};function _0x19f7b7(_0x4c8793,_0x3239df){return _0x2e4e3b(_0x3239df,_0x4c8793-0xd3);}function _0x4c62a0(_0x35579e,_0xd1dbb3){return _0x2e4e3b(_0x35579e,_0xd1dbb3-0x21f);}let _0x400041;for(let _0x467a59=0x0;_0x23d45d['JUNGT'](_0x467a59,A2AClient[_0x4c62a0(0x7,0x7c)+'S']);_0x467a59++){const _0x4fba66=''+this['config'][_0x19f7b7(-0x130,-0x162)]+_0x1293ad,_0x1bed6e=new AbortController(),_0x434247=_0x23d45d[_0x4c62a0(0x33,0x33)](setTimeout,()=>_0x1bed6e[_0x19f7b7(-0x15d,-0x175)](),this[_0x19f7b7(-0xa0,-0xcc)]);try{const _0x3de4cf=await fetch(_0x4fba66,{'method':_0x2bdc5a,'headers':{'Content-Type':_0x19f7b7(-0x17b,-0x158)+'n/json','x-api-key':this[_0x19f7b7(-0x9f,-0x38)][_0x4c62a0(0xfb,0x80)],'X-Plugin-Version':_pluginVersion,..._0x23d45d[_0x4c62a0(-0x7,0x6)](this[_0x4c62a0(-0xb6,-0x45)+_0x4c62a0(0x66,-0x14)][_0x19f7b7(-0x147,-0xeb)],0x0)&&{'X-Plugin-Features':this[_0x4c62a0(0x12,-0x45)+_0x4c62a0(0x69,-0x14)][_0x19f7b7(-0xb7,-0x47)](',')}},'body':_0x4990b6?JSON['stringify'](_0x4990b6):undefined,'signal':_0x1bed6e['signal']});clearTimeout(_0x434247);if(A2AClient[_0x19f7b7(-0xfe,-0x9f)+_0x19f7b7(-0x15a,-0x19e)][_0x4c62a0(0xd1,0x96)](_0x3de4cf['status'])&&_0x467a59<A2AClient['MAX_RETRIE'+'S']-0x1){const _0x2824f1=_0x23d45d['XAhxQ'](A2AClient['BASE_DELAY'+_0x4c62a0(0x2c,0xa)],Math[_0x4c62a0(0x1d,0x8e)](0x2,_0x467a59));await new Promise(_0x5915df=>setTimeout(_0x5915df,_0x2824f1));continue;}!_0x3de4cf['ok']&&await this[_0x4c62a0(-0x76,-0x1a)+_0x19f7b7(-0xf5,-0x107)](_0x3de4cf);if(_0x23d45d[_0x19f7b7(-0x115,-0xa2)](_0x2bdc5a,_0x23d45d[_0x4c62a0(-0x14,0x3c)])&&_0x3de4cf[_0x19f7b7(-0xf8,-0x7d)]===0xcc)return;return await _0x3de4cf[_0x4c62a0(0x2e,-0x3f)]();}catch(_0x5592c2){_0x23d45d[_0x19f7b7(-0xc7,-0xe1)](clearTimeout,_0x434247);if(_0x5592c2 instanceof Error){if(_0x23d45d[_0x19f7b7(-0x120,-0x181)](_0x23d45d[_0x19f7b7(-0x196,-0x148)],_0x19f7b7(-0x13f,-0x105)))this[_0x4c62a0(0x99,0xad)]=_0x50bf01,this['timeout']=_0x2fd815[_0x4c62a0(0xe8,0xac)]??0xea60;else{if(_0x5592c2['message'][_0x4c62a0(0x51,0xc)](_0x23d45d['zdLcO'])||_0x5592c2[_0x4c62a0(-0x66,0x8)][_0x19f7b7(-0x140,-0xe8)](_0x23d45d[_0x19f7b7(-0x109,-0x114)])||_0x5592c2[_0x19f7b7(-0x144,-0x184)][_0x4c62a0(-0x70,0xc)](_0x23d45d['mGyLU'])||_0x5592c2[_0x4c62a0(0x5b,0x8)]['startsWith'](_0x19f7b7(-0xac,-0x11b)))throw _0x5592c2;if(_0x467a59<_0x23d45d['Kspcs'](A2AClient[_0x19f7b7(-0xd0,-0x11d)+'S'],0x1)){_0x400041=_0x5592c2;const _0x5e1935=A2AClient[_0x19f7b7(-0xec,-0x116)+'_MS']*Math['pow'](0x2,_0x467a59);await new Promise(_0x3ae023=>setTimeout(_0x3ae023,_0x5e1935));continue;}if(_0x23d45d['PGdFt'](_0x5592c2[_0x4c62a0(0x46,0x90)],_0x23d45d[_0x19f7b7(-0xb5,-0x79)]))throw new Error(_0x19f7b7(-0x195,-0x1bb)+this[_0x4c62a0(0xcd,0xac)]+_0x19f7b7(-0xcf,-0x9c));throw new Error(_0x4c62a0(-0x5c,-0x2d)+_0x5592c2[_0x19f7b7(-0x144,-0x114)]);}}throw _0x5592c2;}}throw _0x400041??new Error(_0x19f7b7(-0x17c,-0x1ce)+A2AClient[_0x4c62a0(0xc3,0x7c)+'S']+_0x19f7b7(-0x150,-0x19f));}async['requestMul'+_0x2e4e3b(-0x1ad,-0x1eb)](_0x3ed64f,_0x3735d5,_0x5dbd09){const _0x180684=''+this[_0x4f73a3(0x77,0xa5)][_0x4f73a3(-0x1a,0x37)]+_0x3735d5,_0x2d0c32=new AbortController();function _0x4f73a3(_0x3e8a4c,_0x1f7e89){return _0x1278f0(_0x1f7e89,_0x3e8a4c- -0x355);}function _0x936f31(_0x1b9aab,_0x5d12b9){return _0x1278f0(_0x5d12b9,_0x1b9aab-0x1e);}const _0x4df8c1=setTimeout(()=>_0x2d0c32[_0x936f31(0x32c,0x37d)](),this[_0x4f73a3(0x76,0x6a)]);try{const _0x32a560=await fetch(_0x180684,{'method':_0x3ed64f,'headers':{'x-api-key':this['config']['apiKey'],'X-Plugin-Version':_pluginVersion},'body':_0x5dbd09,'signal':_0x2d0c32[_0x936f31(0x3ae,0x39b)]});return clearTimeout(_0x4df8c1),!_0x32a560['ok']&&await this[_0x4f73a3(-0x50,0x14)+_0x4f73a3(0x21,0x81)](_0x32a560),await _0x32a560['json']();}catch(_0x389f20){clearTimeout(_0x4df8c1);if(_0x389f20 instanceof Error&&_0x389f20[_0x4f73a3(0x5a,0xae)]===_0x4f73a3(0x3f,0x47))throw new Error(_0x4f73a3(-0x7f,-0x58)+this[_0x4f73a3(0x76,0x15)]+_0x936f31(0x3ba,0x39b));throw _0x389f20;}}async['handleErro'+_0x2e4e3b(-0x197,-0x1c8)](_0x20123b){const _0x3c939c={'pKbIX':function(_0x22363b,_0x27b744){return _0x22363b===_0x27b744;}},_0x30593f=_0x20123b[_0xb3d1e8(0x25e,0x264)];if(_0x3c939c['pKbIX'](_0x30593f,0x191))throw new Error(_0x42b7ed(-0x265,-0x246)+_0x42b7ed(-0x30f,-0x2d7)+'요');function _0xb3d1e8(_0x41c7c3,_0x5ab293){return _0x1278f0(_0x41c7c3,_0x5ab293- -0x10f);}function _0x42b7ed(_0x4d564d,_0x5b5333){return _0x1278f0(_0x4d564d,_0x5b5333- -0x5f8);}if(_0x3c939c['pKbIX'](_0x30593f,0x1ad))throw new Error(_0x42b7ed(-0x2e7,-0x294)+_0xb3d1e8(0x213,0x20b));let _0x125380=_0xb3d1e8(0x234,0x284)+_0x30593f;try{const _0x3f4026=await _0x20123b['json']();if(Array[_0xb3d1e8(0x247,0x293)](_0x3f4026['detail'])){const _0x4e36de=_0x3f4026['detail'][_0xb3d1e8(0x168,0x1cf)](_0x3f0eaa=>{const _0x3e1b2a=Array[_0x3dd35c(0x56b,0x51f)](_0x3f0eaa[_0x3dd35c(0x3f1,0x459)])?_0x3f0eaa[_0x14f54d(-0x1b8,-0x168)]['join']('.'):'',_0x47886a=_0x3f0eaa[_0x14f54d(-0x195,-0x1b2)]??JSON[_0x3dd35c(0x52f,0x545)](_0x3f0eaa);function _0x14f54d(_0xc4061b,_0x1baf65){return _0x42b7ed(_0x1baf65,_0xc4061b-0x164);}function _0x3dd35c(_0x5264a8,_0x3c8242){return _0x42b7ed(_0x5264a8,_0x3c8242-0x775);}return _0x3e1b2a?_0x3e1b2a+':\x20'+_0x47886a:_0x47886a;})['join'](_0x42b7ed(-0x2c1,-0x2af));_0x125380+=':\x20'+_0x4e36de;}else{if(_0x3f4026['detail'])_0x125380+=':\x20'+_0x3f4026[_0xb3d1e8(0x268,0x20d)];else _0x3f4026[_0x42b7ed(-0x293,-0x2d1)]&&(_0x125380+=':\x20'+_0x3f4026[_0x42b7ed(-0x2e4,-0x2d1)]);}}catch{}throw new Error(_0x125380);}}
|
|
1
|
+
function _0x242c37(_0x5a7736,_0x129f2b){return _0xa2fe(_0x129f2b- -0x2c2,_0x5a7736);}function _0x2f6c(){const _0x59879c=['zw5HyMXLzezLyq','zwj4vuO','B2zMC2v0','BgvZl3vWBg9Hza','DgLWyxj0','AwnPzw5JAwvZ','zxH0','B3v0y29Tzq','CgfNzq','DMvYC2LVBG','Cg93','B1rqzK0','C2vHCMnO','BI9QC29U','sKzyCe4','BNrLBNq','zw1VCNK','zw5JCNLWDgLVBG','qMf0y2G','CMvtue4','rLj1u3C','yMfZzvvYBa','tKnVzhy','zMLSzv9Pza','yxnZzw1IBgvdBW','BxnN','BgLZDfbYB2zPyW','BMfTzq','AxrLBxm','DgfNCW','DMLjswy','s2v5','y2XLyxjfBMnYEq','DgLVBG','CgfNzv9ZAxPL','uunwr1G','wvDrrLy','AxnbCNjHEq','y2XHC3nPzNLdBW','B3j0','CNLgAwXLtgLUAW','yMvKzgLUzW','l2fWAs92ms90CG','z2vUzxjHDgvezq','q3fNz3C','CKDOD1i','Bw9YAwvZl3n0yq','Cgf0Aa','AwXL','Bu9bufm','ntzZvK1cB0q','Dg90ywXFBM9Kzq','Aw5JBhvKzv9LBq','l2fWAs92ms90yq','mtu1nJy2otrlwMPmCKW','zxjYB3i','uKrwtMm','BNrLEhq','BvPbD3q','rMvHDhvYzxm','zM9Yy2vnzw1VCG','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','uuf5CLe','CKHPC3rVCNK','BM9KztPWyxrO','B2zPy2LLBMn5lW','AgfUzgXLrxjYBW','DxrMltG','C3rYAw5NAwz5','zgvJCNLWDe1LBq','l3bYB21VDgu','sefHvvi','zxHWB3j0uhjVzG','AxnFzhvWBgLJyq','mtvMA1L2vLO','BwfW','DKf6vNe','sgH3y0G','y3jLyxrLtwvTBW','C2LNBMfS','s2TyC3G','BM9KztP1CMW','ywPUtK0','C3rHCNrZv2L0Aa','C3rHDhvZ','7j247kADioYlPo2mQa','nde5oty5wev3wgTz','zxzLBNqVyMf0yW','Bw9YAwvZl3rHzW','y2f0zwDVCNK','zY9JB250zxH0CW','v0zVAhm','AwvUy3LfDMvUDa','BgLTAxq','s3fVvNe','nti2mdC0nLzZt3fzBa','Dw9LrNq','l2fWAs92ms9WCG','ywnR','ANDxA2y','CgfYC2u','zY9YzwXHDgLVBG','CY9WB3b1BgfYpW','zMLSzw5HBwu','Bw9YEs1MAwXLCW','wMXUtfa','rfzUz0q','yxbWzw5K','ywHMsha','l2fWAs92ms9Wzq','Aw9Ul2vTB3rPBW','C2v0','Bwf4twvTB3jPzq','x01t','revmrvrf','ywDLlMPZB24','B25fBMfIBgvK','y29UDgvUDa','CLjLC3bVBNnL','mtaYnte2DxPUDvHs','Dg9tDhjPBMC','oti1nhvkvfzPDq','CvHTCLm','qLLPC3K','zgv0ywLS','BxvkuMS','yw5ZzMvYl2HPCW','DhLWzq','Cg9ZDfbYB2zPyW','C2v0rw5HyMXLza','ue9tva','DhvYzxm','AerIwwO','ywDwreW','wK1Ut2O','nJCWntG0zKfTBLfg','mtaW','zun3teO','z2v0vhjHBNnMzq','zLjmugu','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','AgfZ','y29UzMLN','lI4VlI4VCgfJAW','C3nPzNK','Dg90ywXFBwvTBW','7j247kADioYlPo2mQdOGqvbj','whDXzxe','reHrCu0','AuHfD24','twvTB3jPzxm','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','sfruuca0mdq','C3LUyY9KzwX0yq','C3LUyY9HChbSEq','CMLLCW','CNnVBMfSAxPHDa','yMLSAxr5twf0CG','ChjVAMvJDf9Wyq','Cgf0AwjPBgL0Eq','zf9HDa','DgLTzw91Da','uKvuuLLbqKXfxW','BwvZC2fNzq','DxL1rhG','nti1nJq1weXYDu9W','BgvUz3rO','AMPxENe','EuzLzwrIywnRia','y2HLy2TgAwXLra','tMTNt0y','DfbRzeC','vKvKz0C','re1bvu4','whDAzeW','yxbWBhLezwX0yq','l2fWAs92ms9TyW','mc4WlJa','7jQu7lkTioYlPo2mQdOG','BhrH','CMLLC0jHDgnO','uvzhC1q','uxLXBu0','ANnVBG','BM9KztPMCW','sw1Rrwe','zw1VCNLgzwvKyG','Bw9YAwvZl3nLyq','l21LBw9YAwvZ','Bw9YAwvZp2XPBq','q3HgyMi','z2v0vgvHBvn0yq','l2fWAs92ms9Tzq','Aw5JBhvKzuvTyG','l2fWAs92ms9MAq','BxpRPBWG64sy7jEi7iQ164Ui64UK','l21LBwjLCNm','zxzLBNq','B3j5','Bw9YAwvZ','thfxtfq','ChrPB25lzxK','sfruuca0mdm','CMvPBMzVCMnLtq','w2eYyv0GCMvPBG','zxHPC3rPBMDFzG','Dg9YEt8','yw5ZzMvYl2nVBq','BK1pzgm','wMDIu2y','DNHTBge','Bg9J','Dhjbvfi','rLHRD3i','yxbWBgLJyxrPBW','CMnO','DxbSB2fKrMLSzq','DgLLCG','nJK2oeXNyM56vW','CMvXDwvZDe11Ba','CuLise8','uvn4u3K','ufvu','Aw1WB3j0uhjVzG','wKPvrfK','l3rLyw1ZlW','l21LBw9YAwvZlW','yw5ZzMvYl2LTCa','EK5bqNK','rKnoueK','tufyx1jfvfjjrq','zw1IBgu','CMvMzxjLBMnLxW','l2fWAs92ms90zq','C3rHDhm','DwvpsgO','BgLZDfrLyw1Z','C0PHzuS','C2TPBgXFBwvTBW','z2v0u3rHDhm','yxbPs2v5','AxzgrwO','l3jLAw5MB3jJzq','sgfjAMe','A0viwgK','u1rbvfvt','r0vu','qwjVCNrfCNjVCG','C2vHCMnOtwvTBW','64sK7yQ47jUm7ygSioYyPoULMdOG','C2XPy2u','CMvXDwvZDa','mtb4wenwC0m','ywjVCNq','zLbnrxC','vgfNCW','yw1Z','r2DSu3u','BgLZDe1LBw9YAq','Axq9mq','qKftrv9eruXbwq','Bw9YAwvZlW','y29UDgv4Df90yq','AM9PBG','ieTLEEULVcdTMzxSNBJTLzJSHlG','yNL0zxpSL6ZSLBWG7zwP64Ui','s3rvre4','7jwu7zI47zMuio2cPoUkLcaZmIa','C2v0rw5JCNLWDa','BgLZDfrLyw1nzq'];_0x2f6c=function(){return _0x59879c;};return _0x2f6c();}(function(_0x4e1940,_0x57566c){function _0x17740b(_0x2a08a8,_0x1f4e0f){return _0xa2fe(_0x2a08a8- -0x315,_0x1f4e0f);}function _0x3e9b05(_0x27af56,_0x309997){return _0xa2fe(_0x309997-0x36,_0x27af56);}const _0x3ef2f8=_0x4e1940();while(!![]){try{const _0x1ecd1d=parseInt(_0x3e9b05(0x290,0x29d))/0x1+-parseInt(_0x3e9b05(0x205,0x279))/0x2*(parseInt(_0x3e9b05(0x284,0x2be))/0x3)+-parseInt(_0x17740b(-0x7d,-0x37))/0x4*(parseInt(_0x3e9b05(0x285,0x291))/0x5)+-parseInt(_0x17740b(-0xa5,-0xca))/0x6+-parseInt(_0x17740b(-0x8b,-0x4e))/0x7*(-parseInt(_0x17740b(-0x138,-0x13d))/0x8)+-parseInt(_0x17740b(-0x5f,0x7))/0x9*(-parseInt(_0x17740b(-0x116,-0x15f))/0xa)+parseInt(_0x3e9b05(0x28a,0x27d))/0xb;if(_0x1ecd1d===_0x57566c)break;else _0x3ef2f8['push'](_0x3ef2f8['shift']());}catch(_0x9a1c98){_0x3ef2f8['push'](_0x3ef2f8['shift']());}}}(_0x2f6c,0xacf5d));function _0x52424a(_0x34222e,_0x390807){return _0xa2fe(_0x34222e- -0x2a2,_0x390807);}import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function _0xa2fe(_0x43778e,_0x21493a){_0x43778e=_0x43778e-0x1b1;const _0x2f6cfb=_0x2f6c();let _0xa2fe77=_0x2f6cfb[_0x43778e];if(_0xa2fe['WyBrVj']===undefined){var _0x487ea0=function(_0x3578b8){const _0x11b56e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe95386='',_0x493ade='';for(let _0xa49f4c=0x0,_0x32e5d1,_0x4f2aa0,_0x166387=0x0;_0x4f2aa0=_0x3578b8['charAt'](_0x166387++);~_0x4f2aa0&&(_0x32e5d1=_0xa49f4c%0x4?_0x32e5d1*0x40+_0x4f2aa0:_0x4f2aa0,_0xa49f4c++%0x4)?_0xe95386+=String['fromCharCode'](0xff&_0x32e5d1>>(-0x2*_0xa49f4c&0x6)):0x0){_0x4f2aa0=_0x11b56e['indexOf'](_0x4f2aa0);}for(let _0x3bcae0=0x0,_0x48a4da=_0xe95386['length'];_0x3bcae0<_0x48a4da;_0x3bcae0++){_0x493ade+='%'+('00'+_0xe95386['charCodeAt'](_0x3bcae0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x493ade);};_0xa2fe['vOGdWO']=_0x487ea0,_0xa2fe['CmWOEY']={},_0xa2fe['WyBrVj']=!![];}const _0x261252=_0x2f6cfb[0x0],_0x573e2d=_0x43778e+_0x261252,_0x2d2161=_0xa2fe['CmWOEY'][_0x573e2d];return!_0x2d2161?(_0xa2fe77=_0xa2fe['vOGdWO'](_0xa2fe77),_0xa2fe['CmWOEY'][_0x573e2d]=_0xa2fe77):_0xa2fe77=_0x2d2161,_0xa2fe77;}let _pluginVersion=_0x242c37(-0x100,-0x10e);try{const {readFileSync}=await import(_0x242c37(-0xd8,-0x107)),{fileURLToPath}=await import(_0x242c37(-0x78,-0x60)),{dirname,join}=await import(_0x52424a(-0x51,0x2b)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x242c37(-0xb,-0x4d)](readFileSync(join(__dirname,_0x242c37(-0x6a,-0x22)+_0x52424a(-0x1e,-0xa1)),_0x242c37(0x15,-0x6e)));_pluginVersion=pkg[_0x52424a(-0x88,-0xa3)]||_0x52424a(-0xee,-0x136);}catch{}export class A2AClient{[_0x242c37(-0x1d,-0x23)];[_0x242c37(0x3,-0x10)];['encryption'+_0x52424a(-0x72,-0xa7)]=null;[_0x52424a(-0x91,-0x38)+_0x52424a(-0xe,0x58)]=[];constructor(_0x1b8a3d){function _0x2f8917(_0x20391e,_0x4f129c){return _0x242c37(_0x20391e,_0x4f129c- -0x7d);}function _0x22ad0d(_0x577f4a,_0x15b29d){return _0x242c37(_0x577f4a,_0x15b29d-0xc);}this[_0x2f8917(-0x11e,-0xa0)]=_0x1b8a3d,this[_0x2f8917(-0x69,-0x8d)]=_0x1b8a3d[_0x2f8917(-0xc6,-0x8d)]??0xea60;}[_0x242c37(0x2f,-0x30)+_0x242c37(-0xc4,-0x76)](_0x5d8d51){function _0x134fcd(_0x451b92,_0x1c0e57){return _0x242c37(_0x1c0e57,_0x451b92-0x27);}this[_0x134fcd(-0x8a,-0x101)+'tures']=_0x5d8d51;}[_0x52424a(-0x93,-0x119)+'ionKey'](_0x56c54e){function _0x4cef74(_0x3d861e,_0x285bee){return _0x242c37(_0x285bee,_0x3d861e- -0xb2);}if(_0x56c54e[_0x4cef74(-0xbd,-0x11d)]!==0x20)throw new Error(_0x4cef74(-0x166,-0x146)+_0x4cef74(-0x168,-0x102)+'다');function _0x23a5a0(_0x32fa7a,_0x2911c5){return _0x242c37(_0x32fa7a,_0x2911c5-0x460);}this['encryption'+'Key']=_0x56c54e;}[_0x242c37(-0x118,-0x91)+_0x52424a(-0xd6,-0x146)](){function _0x38a280(_0x56b45b,_0x5c372b){return _0x52424a(_0x5c372b-0x229,_0x56b45b);}this[_0x38a280(0x193,0x1a9)+'Key']=null;}['isEncrypti'+_0x242c37(-0x37,-0x3d)](){return this['encryption'+'Key']!==null;}async['createMemo'+'ry'](_0x39990f){const _0x20b97f={'ebxUJ':function(_0x57ba62,_0x56c5ee){return _0x57ba62(_0x56c5ee);},'fPMEw':_0x1c6993(0x1c9,0x17b)+_0x55bde4(0x3a3,0x41d),'zyMyP':function(_0x407ff1,_0x420b25){return _0x407ff1(_0x420b25);},'DMAUN':function(_0x52f2b2,_0x479a36,_0x11f8fe){return _0x52f2b2(_0x479a36,_0x11f8fe);}};let _0x16f3e7=_0x39990f[_0x1c6993(0x2b3,0x23e)];function _0x55bde4(_0x42b773,_0x1436d6){return _0x52424a(_0x1436d6-0x4f5,_0x42b773);}function _0x1c6993(_0x188417,_0x477725){return _0x52424a(_0x477725-0x25a,_0x188417);}if(this[_0x55bde4(0x4cf,0x475)+_0x1c6993(0x1e9,0x1e8)]){const _0x44f892=encryptContent(_0x39990f[_0x1c6993(0x1f5,0x23e)],this[_0x1c6993(0x18f,0x1da)+_0x1c6993(0x249,0x1e8)]);_0x16f3e7=_0x20b97f[_0x1c6993(0x14a,0x1ca)](wrapEncryptedContent,_0x44f892);}const _0x340c62=await this[_0x55bde4(0x3e4,0x451)](_0x1c6993(0x24b,0x24b),_0x20b97f[_0x55bde4(0x452,0x454)],{'content':_0x16f3e7,'category':_0x39990f[_0x1c6993(0x249,0x222)],'tier':_0x39990f['tier'],'tags':_0x39990f[_0x55bde4(0x467,0x481)]??[]}),_0x440d5a=_0x340c62;if(this[_0x1c6993(0x198,0x1da)+_0x55bde4(0x504,0x483)]&&_0x440d5a[_0x1c6993(0x263,0x23e)]){const _0x3a86c4=_0x20b97f['zyMyP'](unwrapEncryptedContent,_0x440d5a[_0x55bde4(0x460,0x4d9)]);_0x3a86c4&&(_0x440d5a['content']=_0x20b97f[_0x1c6993(0x24d,0x276)](decryptContent,_0x3a86c4,this[_0x1c6993(0x18c,0x1da)+_0x1c6993(0x1ca,0x1e8)]));}return _0x440d5a;}async[_0x242c37(-0xb7,-0xc7)+'ries'](_0x57a513,_0x14dcfe){const _0x12c545={'ahfHp':'/api/v1/me'+_0x12cd89(0xfd,0x166)+_0x50e398(0x40c,0x3fc)},_0x21df9e=await this['request'](_0x12cd89(0x1f1,0x23b),_0x12c545[_0x12cd89(0x28b,0x225)],{'query':_0x57a513,'limit':_0x14dcfe?.[_0x12cd89(0x1db,0x216)]??0xa,'category':_0x14dcfe?.[_0x50e398(0x49c,0x523)]});function _0x12cd89(_0x4624bd,_0x5224cf){return _0x52424a(_0x5224cf-0x24a,_0x4624bd);}function _0x50e398(_0x1ec557,_0x4cb7fa){return _0x52424a(_0x1ec557-0x4d4,_0x4cb7fa);}return _0x21df9e[_0x12cd89(0x1c3,0x1d5)]??[];}async[_0x242c37(-0xe1,-0xbd)+'es'](_0x105b29){const _0x141c8={'DVngD':_0x39d7d7(0x260,0x206),'nMKNM':'true'},_0xea026d=new URLSearchParams();function _0x4de53f(_0x3f0a31,_0x4c8095){return _0x242c37(_0x3f0a31,_0x4c8095- -0x41);}if(_0x105b29?.['limit'])_0xea026d['set'](_0x141c8[_0x4de53f(-0x89,-0x88)],_0x105b29[_0x4de53f(-0xd4,-0x95)][_0x4de53f(-0x5d,-0x7a)]());if(_0x105b29?.[_0x4de53f(-0xe9,-0xf0)])_0xea026d[_0x4de53f(-0xc8,-0x83)]('offset',_0x105b29[_0x39d7d7(0x139,0x1ab)][_0x4de53f(-0x5f,-0x7a)]());if(_0x105b29?.[_0x4de53f(-0xf2,-0x13f)+'edding'])_0xea026d[_0x4de53f(-0x80,-0x83)](_0x4de53f(-0x8c,-0xbe)+_0x4de53f(-0x55,-0xc9),_0x141c8['nMKNM']);const _0x428508=_0x4de53f(-0x182,-0x140)+_0x4de53f(-0x197,-0x139)+(_0xea026d['toString']()?'?'+_0xea026d[_0x4de53f(-0x75,-0x7a)]():''),_0x2c7ab2=await this[_0x4de53f(-0x98,-0x105)]('GET',_0x428508);function _0x39d7d7(_0x570a39,_0xfd52df){return _0x242c37(_0x570a39,_0xfd52df-0x25a);}const _0x17b599=_0x2c7ab2[_0x39d7d7(0x1f4,0x1c5)]??[];if(this['encryption'+'Key'])return _0x17b599[_0x4de53f(-0xf9,-0xa7)](_0x2bfcff=>this[_0x39d7d7(0x1ec,0x1ee)+_0x4de53f(-0xec,-0x13a)](_0x2bfcff));return _0x17b599;}['decryptMem'+_0x52424a(-0xd9,-0xf0)](_0x501f58){function _0x1ba8cc(_0x33dd1d,_0x2fd20e){return _0x52424a(_0x33dd1d-0x17b,_0x2fd20e);}const _0x477dd4={'ajnNM':function(_0x33b1ab,_0x120d28,_0x1ea11d){return _0x33b1ab(_0x120d28,_0x1ea11d);}};if(!this['encryption'+'Key'])return _0x501f58;const _0x5df782={..._0x501f58};function _0x3a98e8(_0xa0b4ce,_0x538b98){return _0x52424a(_0x538b98-0x3c1,_0xa0b4ce);}if(_0x5df782[_0x1ba8cc(0x15f,0x162)]){const _0x3e51bb=unwrapEncryptedContent(_0x5df782[_0x3a98e8(0x41d,0x3a5)]);if(_0x3e51bb)try{_0x5df782[_0x3a98e8(0x372,0x3a5)]=_0x477dd4[_0x3a98e8(0x346,0x382)](decryptContent,_0x3e51bb,this[_0x1ba8cc(0xfb,0x11e)+'Key']);}catch{}}return _0x5df782;}async['updateMemo'+'ry'](_0x4f4b00,_0x37211a){function _0x5c0177(_0x2df0f8,_0x3d5c47){return _0x242c37(_0x2df0f8,_0x3d5c47-0x187);}function _0x881422(_0xf02f09,_0x211808){return _0x242c37(_0x211808,_0xf02f09-0xda);}const _0x35a9c6={'kEHXi':_0x881422(-0x7,0x22)},_0x15d6da=await this[_0x5c0177(0x8d,0xc3)](_0x35a9c6[_0x881422(0xf,0x94)],'/api/v1/me'+_0x881422(0x20,0x38)+_0x4f4b00,_0x37211a);return _0x15d6da;}async['deleteMemo'+'ry'](_0xfbf727){function _0x1a675f(_0x273c92,_0x4ac238){return _0x52424a(_0x4ac238-0x23,_0x273c92);}function _0x23cbee(_0x55c8d5,_0x136f0b){return _0x52424a(_0x55c8d5-0x3c0,_0x136f0b);}await this[_0x23cbee(0x31c,0x2a0)](_0x1a675f(-0x4,0x4),_0x23cbee(0x2e1,0x2e5)+_0x23cbee(0x326,0x3a4)+_0xfbf727);}async[_0x242c37(-0xdb,-0xd3)](){const _0x358a65={'mOAPS':_0x5337e0(0x1dd,0x220),'FRuSw':_0x7579c0(0xc1,0x13f)+_0x5337e0(0x1e7,0x198)},_0x345fae=await this[_0x5337e0(0x1e2,0x18f)](_0x358a65[_0x5337e0(0x226,0x1bc)],_0x358a65[_0x5337e0(0x209,0x1f4)]);function _0x5337e0(_0x6517c6,_0x4234b0){return _0x52424a(_0x6517c6-0x286,_0x4234b0);}if(Array[_0x7579c0(0x10b,0x125)](_0x345fae))return _0x345fae;function _0x7579c0(_0x2b45ec,_0x3c8ef5){return _0x52424a(_0x2b45ec-0x177,_0x3c8ef5);}return _0x345fae[_0x5337e0(0x211,0x1f1)]??[];}async[_0x242c37(-0x138,-0xb2)+_0x52424a(-0xd8,-0xb7)](_0x59fb68,_0x40e919){const _0x3c183b={'KtUDN':_0x53c998(0x5ea,0x5e1),'reSPN':function(_0x222d6c,_0x4a5d81){return _0x222d6c(_0x4a5d81);}},_0x30d768=new URLSearchParams();if(_0x40e919?.['limit'])_0x30d768[_0x39b8e2(0xaf,0xe4)](_0x53c998(0x665,0x63c),_0x40e919[_0x53c998(0x647,0x63c)]['toString']());if(_0x40e919?.[_0x53c998(0x657,0x5e1)])_0x30d768[_0x39b8e2(0xaf,0xf9)](_0x3c183b[_0x53c998(0x63d,0x5db)],_0x40e919[_0x39b8e2(0x42,0x8d)][_0x53c998(0x679,0x657)]());function _0x39b8e2(_0x2f67e8,_0x6a5d49){return _0x52424a(_0x2f67e8-0xd1,_0x6a5d49);}const _0x29c61c=_0x30d768['toString'](),_0x4e106c='/teams/'+_0x3c183b[_0x39b8e2(0x53,0x6d)](encodeURIComponent,_0x59fb68)+_0x39b8e2(-0x12,-0x71)+(_0x29c61c?'?'+_0x29c61c:'');function _0x53c998(_0x595c8f,_0x5597b3){return _0x52424a(_0x5597b3-0x670,_0x595c8f);}const _0x2471cb=await this[_0x53c998(0x5e8,0x5cc)](_0x39b8e2(0x28,-0x45),_0x4e106c);return _0x2471cb['items']??[];}async['addTeamMem'+_0x242c37(-0xd9,-0xf9)](_0x59835f,_0x2476f4){function _0xbfa143(_0x403d32,_0x244aa0){return _0x52424a(_0x244aa0- -0x42,_0x403d32);}const _0x57198c={'CxFbb':_0xbfa143(-0xbe,-0x51)};function _0x1cee4e(_0x475cba,_0x51956c){return _0x52424a(_0x51956c-0x669,_0x475cba);}const _0x8f8d59=await this[_0x1cee4e(0x561,0x5c5)](_0x57198c[_0xbfa143(-0xc8,-0x123)],_0xbfa143(-0xb2,-0x100)+encodeURIComponent(_0x59835f)+_0x1cee4e(0x56e,0x586),_0x2476f4);return _0x8f8d59;}async['searchTeam'+_0x242c37(0x6,-0x1b)](_0x43f1ab,_0x5856bf,_0x20d34d){function _0x161298(_0x2d4871,_0x579d34){return _0x52424a(_0x2d4871-0x3ac,_0x579d34);}const _0x51c9c5={'HhwcH':function(_0x5c25e3,_0x2f3bf5){return _0x5c25e3(_0x2f3bf5);}};function _0x58acf9(_0x1a9854,_0x29c9b0){return _0x52424a(_0x29c9b0- -0x144,_0x1a9854);}const _0x292e4c=await this[_0x161298(0x308,0x33e)]('POST',_0x58acf9(-0x1b3,-0x202)+_0x51c9c5[_0x161298(0x368,0x2ed)](encodeURIComponent,_0x43f1ab)+(_0x58acf9(-0x1d7,-0x201)+_0x58acf9(-0x209,-0x1c9)),{'query':_0x5856bf,'limit':_0x20d34d?.[_0x161298(0x378,0x2f5)]??0xa,'category':_0x20d34d?.[_0x161298(0x374,0x3a1)]});return _0x292e4c[_0x58acf9(-0x18b,-0x1b9)]??[];}async[_0x52424a(-0x66,-0x76)+_0x52424a(-0xec,-0xf2)](_0x5dcf27,_0x42400f,_0x3b6516){function _0xe547e7(_0xf33883,_0x2b60e8){return _0x242c37(_0x2b60e8,_0xf33883-0x2fd);}const _0x53a868={'KkXsx':'POST'};function _0x567e5b(_0x1841b3,_0x451af1){return _0x242c37(_0x451af1,_0x1841b3-0x81);}return this[_0xe547e7(0x239,0x1e6)](_0x53a868[_0x567e5b(0x20,0x3a)],'/teams/'+encodeURIComponent(_0x5dcf27)+(_0xe547e7(0x220,0x248)+_0xe547e7(0x2e5,0x294)),{'memory_id':_0x42400f,'vector_clock':_0x3b6516});}async[_0x52424a(-0xf0,-0xed)](_0x11705b,_0x40bb2d,_0x44b5d1){function _0x3f5af4(_0x3436f8,_0x4a994c){return _0x52424a(_0x4a994c-0x513,_0x3436f8);}function _0x3997fc(_0x1aba96,_0x5318a6){return _0x52424a(_0x5318a6-0x437,_0x1aba96);}const _0x67c728={'JFXpN':function(_0x1ee3df,_0x5f2d1a){return _0x1ee3df(_0x5f2d1a);}};return this[_0x3997fc(0x418,0x393)](_0x3997fc(0x3d8,0x428),_0x3f5af4(0x428,0x455)+_0x67c728[_0x3f5af4(0x417,0x490)](encodeURIComponent,_0x11705b)+('/memories/'+_0x3f5af4(0x543,0x51c)),{'memory_id':_0x40bb2d,'delta':_0x44b5d1});}async[_0x242c37(-0x8c,-0x63)+_0x242c37(-0x177,-0x10b)](_0x1adfd1){const _0x38d4d2={'FXkwr':_0x4dc12d(0x450,0x3e7)+'mories/bat'+'ch'},_0x4ef39c=await this['request'](_0x1a5245(0x359,0x2d8),_0x38d4d2[_0x1a5245(0x1e3,0x21d)],{'items':_0x1adfd1});function _0x4dc12d(_0x49bc40,_0x5e9292){return _0x52424a(_0x49bc40-0x52f,_0x5e9292);}function _0x1a5245(_0x3314d7,_0x36a869){return _0x52424a(_0x36a869-0x2e7,_0x3314d7);}return _0x4ef39c;}async['testConnec'+_0x52424a(-0x70,-0xf5)](){function _0x1dd4ef(_0x427237,_0x1b3f6b){return _0x242c37(_0x1b3f6b,_0x427237-0xa8);}const _0x2b1b5d={'ueOHj':_0x13bbe0(0x4ff,0x562)};function _0x13bbe0(_0x19f2a3,_0x98d73b){return _0x242c37(_0x98d73b,_0x19f2a3-0x5c8);}try{return await this[_0x1dd4ef(-0x1c,-0xa1)](_0x2b1b5d[_0x13bbe0(0x4f4,0x53c)],'/api/v1/me'+_0x1dd4ef(-0x5a,-0x1c)+_0x1dd4ef(-0x14,-0x2)),!![];}catch{return![];}}async[_0x242c37(-0x95,-0x99)+_0x242c37(0xd,-0x78)](_0x22e83d,_0x29d5cb){function _0x59c1f5(_0x34e2c7,_0x134ca0){return _0x52424a(_0x134ca0-0x20b,_0x34e2c7);}function _0x19c5ea(_0xed1d69,_0x4d6935){return _0x52424a(_0xed1d69-0x28b,_0x4d6935);}const _0x1dc2eb={'rGhwR':_0x59c1f5(0x1aa,0x1fc),'NkgOF':_0x59c1f5(0x112,0x12c)+'mories/ass'+_0x19c5ea(0x1d3,0x1cf)},_0x413254=await this[_0x59c1f5(0x171,0x167)](_0x1dc2eb[_0x59c1f5(0x185,0x1a7)],_0x1dc2eb[_0x19c5ea(0x2a4,0x227)],{'query':_0x22e83d,'max_memories':_0x29d5cb?.[_0x59c1f5(0x1bc,0x1ea)+'s']??0x5,'max_tokens':_0x29d5cb?.['maxTokens']??0x7d0,'categories':_0x29d5cb?.['categories'],'tier':_0x29d5cb?.[_0x59c1f5(0x1a3,0x145)]});return _0x413254;}async[_0x52424a(-0xd4,-0x95)+_0x52424a(-0x81,-0xb7)](_0x3e49b8){const _0x2449fc=await this[_0x1c4316(0x303,0x341)](_0x11151e(0x255,0x2a5),_0x1c4316(0x2c8,0x27e)+_0x1c4316(0x30d,0x365)+_0x3e49b8+_0x1c4316(0x2fa,0x33c));function _0x11151e(_0x59d166,_0x4573a0){return _0x242c37(_0x4573a0,_0x59d166-0x284);}function _0x1c4316(_0x264fd4,_0x2447ed){return _0x242c37(_0x2447ed,_0x264fd4-0x3c7);}return _0x2449fc;}async[_0x242c37(-0x167,-0xf4)+_0x52424a(-0xe5,-0x156)+_0x52424a(-0x2f,0x6)](_0x371691,_0x529e2a){function _0x2bc919(_0x3f9c6d,_0xf17f64){return _0x242c37(_0x3f9c6d,_0xf17f64-0x680);}function _0x196787(_0x4f0aa3,_0x1ef82a){return _0x242c37(_0x4f0aa3,_0x1ef82a-0x202);}const _0x7d833={'agVDL':function(_0x1318fa,_0x55d7f0,_0x39f628){return _0x1318fa(_0x55d7f0,_0x39f628);},'xYCQe':function(_0x5a020f,_0xb4995c){return _0x5a020f===_0xb4995c;},'LqWLT':function(_0x2f6945,_0x216e06){return _0x2f6945 instanceof _0x216e06;},'hDbYj':function(_0x29ed16,_0x2e0935){return _0x29ed16(_0x2e0935);}};try{await this[_0x196787(0xf1,0x13e)](_0x196787(0x1df,0x1d3),_0x196787(0x9a,0x103)+_0x196787(0xc2,0x148)+_0x371691+_0x196787(0x100,0x135),{'success':_0x529e2a});}catch(_0x2bf88f){if(_0x7d833['xYCQe'](_0x2bc919(0x5bb,0x5e5),_0x196787(0x252,0x1f8))){const _0x3befb7=_0x22009c(_0x2313ab[_0x2bc919(0x676,0x644)]);_0x3befb7&&(_0x220f95['content']=ybLvsU[_0x196787(0x1e6,0x1d6)](_0x5eff20,_0x3befb7,this[_0x196787(0x177,0x162)+_0x196787(0x1ad,0x170)]));}else console[_0x2bc919(0x580,0x606)](_0x2bc919(0x581,0x58d)+_0x196787(0x141,0x18d)+_0x196787(0x280,0x1f9)+'failed\x20for'+'\x20'+_0x371691+':',_0x7d833[_0x2bc919(0x564,0x589)](_0x2bf88f,Error)?_0x2bf88f[_0x196787(0x225,0x1f4)]:_0x7d833[_0x196787(0x158,0x1d5)](String,_0x2bf88f));}}async['promoteMem'+'ory'](_0xb37ad5,_0x109a97){function _0x1ef17c(_0x5720a5,_0x2270af){return _0x52424a(_0x2270af-0x2af,_0x5720a5);}function _0x12b68a(_0x1256b3,_0x4948f4){return _0x52424a(_0x4948f4-0x3cd,_0x1256b3);}const _0x415531={'uoeFt':_0x1ef17c(0x293,0x2a0)},_0x4e3b54=await this[_0x1ef17c(0x25b,0x20b)](_0x415531[_0x12b68a(0x414,0x39c)],_0x12b68a(0x280,0x2ee)+_0x12b68a(0x2b7,0x333)+_0xb37ad5+_0x12b68a(0x2fe,0x382));return _0x4e3b54;}async[_0x52424a(-0xb0,-0x2c)](){function _0x1c170c(_0x29ccb8,_0x5df23c){return _0x52424a(_0x29ccb8-0x2d0,_0x5df23c);}const _0x2283a1={'uyuDx':_0x5424be(0x5c2,0x5c2),'QyqmM':_0x5424be(0x5bb,0x58c)+_0x5424be(0x5b2,0x608)+'ts'},_0x1418ae=await this[_0x5424be(0x560,0x5c7)](_0x2283a1[_0x1c170c(0x2e3,0x34b)],_0x2283a1[_0x1c170c(0x1e7,0x1aa)]);function _0x5424be(_0x28628d,_0x221afd){return _0x52424a(_0x221afd-0x66b,_0x28628d);}return _0x1418ae;}async['getPopular'+_0x52424a(-0xa0,-0x87)](_0x26c990=0xa){const _0x3b1c01={'ZlnLP':'limit','FRXnq':_0x11addc(-0x140,-0xd3)},_0x4e88bc=new URLSearchParams();_0x4e88bc[_0x11addc(-0xb9,-0x57)](_0x3b1c01[_0x11addc(-0xbf,-0x136)],_0x26c990['toString']());const _0x508974='/api/v1/me'+_0x11addc(-0xd0,-0x110)+_0x33c060(0x3b9,0x37e)+_0x4e88bc[_0x11addc(-0xb0,-0xb1)](),_0x2a9380=await this[_0x11addc(-0x13b,-0x195)](_0x3b1c01['FRXnq'],_0x508974);function _0x33c060(_0x43cfd5,_0x3bb75e){return _0x52424a(_0x43cfd5-0x3e4,_0x3bb75e);}function _0x11addc(_0x556337,_0x2216b6){return _0x52424a(_0x556337- -0x97,_0x2216b6);}return _0x2a9380[_0x11addc(-0x10c,-0xfe)]??[];}async[_0x242c37(-0x168,-0x100)+'ts'](_0x368658){const _0x16d496={'nMOdc':function(_0x1e1d62,_0x2f0268){return _0x1e1d62(_0x2f0268);}},_0x6f8d2d=await this[_0x42acff(-0xd0,-0x157)](_0x4b2dba(-0x96,-0x6b),_0x42acff(-0x195,-0x171)+_0x16d496[_0x42acff(-0x117,-0x182)](encodeURIComponent,_0x368658)+(_0x42acff(-0x197,-0x170)+'stats')),_0xc6ddd5=_0x6f8d2d;function _0x4b2dba(_0xbdb546,_0x33cd82){return _0x242c37(_0x33cd82,_0xbdb546-0x33);}const _0x4622cf=_0xc6ddd5[_0x4b2dba(-0xa2,-0x44)]??_0xc6ddd5;function _0x42acff(_0x3a7fd8,_0x235205){return _0x242c37(_0x3a7fd8,_0x235205- -0x93);}return{'totalMemories':_0x4622cf[_0x4b2dba(0x13,0x1b)+_0x42acff(-0x2a,-0xa9)]??0x0,'totalNodes':_0x4622cf[_0x42acff(-0xb8,-0x111)+'s']??0x0,'lastSyncedAt':_0x4622cf['last_synce'+_0x4b2dba(0x22,0x21)]??null};}async[_0x52424a(-0x11,-0x24)+_0x52424a(-0x35,0x2c)](_0x36a413){function _0x525132(_0x883b73,_0x4d75fa){return _0x242c37(_0x883b73,_0x4d75fa-0x586);}const _0x29847c={'FCNPI':_0xb2ee95(-0x5b,-0xa4)},_0x414b5c=await this[_0x525132(0x4c4,0x4c2)](_0x29847c[_0x525132(0x524,0x4ac)],_0xb2ee95(-0xb8,-0xc5)+_0x525132(0x57e,0x516)+_0xb2ee95(-0x14a,-0x16f),{'skill_memory_id':_0x36a413[_0xb2ee95(-0x131,-0x146)+'ry_id'],'outcome':_0x36a413[_0xb2ee95(-0x116,-0x11f)],'difficulty':_0x36a413['difficulty'],'context_tags':_0x36a413[_0xb2ee95(-0x11c,-0x12e)+'gs'],'session_id':_0x36a413['session_id']});function _0xb2ee95(_0x59603e,_0x4fb9ec){return _0x242c37(_0x59603e,_0x4fb9ec- -0x75);}return _0x414b5c;}async['postProfic'+'iencyEvent'+_0x242c37(-0x64,-0x9f)](_0x5f29da){function _0x8cc360(_0x4979fa,_0x19720b){return _0x242c37(_0x4979fa,_0x19720b-0x451);}const _0x32d0c1={'qXmrS':'/api/v1/pr'+_0x42a04f(0x3b7,0x437)+_0x8cc360(0x3e5,0x3f7)+'h'};function _0x42a04f(_0x1efc39,_0x345cc1){return _0x242c37(_0x345cc1,_0x1efc39-0x427);}await this[_0x42a04f(0x363,0x347)](_0x42a04f(0x3f8,0x418),_0x32d0c1[_0x8cc360(0x39c,0x41a)],{'events':_0x5f29da});}async[_0x242c37(-0x104,-0x97)+'iencies'](_0xe48754){function _0x298ba1(_0x48a3b0,_0x1eadf9){return _0x242c37(_0x48a3b0,_0x1eadf9- -0xc);}const _0x22a30d={'ZMnOj':_0xcbc42b(0x4a2,0x4f2)},_0x2fd6b3=new URLSearchParams();_0x2fd6b3['set'](_0xcbc42b(0x501,0x48c),_0x22a30d[_0xcbc42b(0x4e8,0x4f0)]);if(_0xe48754)_0x2fd6b3['set'](_0xcbc42b(0x4cb,0x508)+'th',_0xe48754);const _0x204a17=_0xcbc42b(0x462,0x4cb)+'oficiency?'+_0x2fd6b3[_0xcbc42b(0x4f0,0x4e2)]();function _0xcbc42b(_0x5b499c,_0x34c2f0){return _0x242c37(_0x5b499c,_0x34c2f0-0x51b);}const _0x288e7b=await this[_0xcbc42b(0x3e8,0x457)](_0xcbc42b(0x43a,0x452),_0x204a17);return _0x288e7b[_0x298ba1(-0x7c,-0xa1)]??[];}async['analyzeEmo'+_0x52424a(-0x70,-0xa)](_0x1519e2){function _0x5cbed2(_0x290aa9,_0x21219f){return _0x242c37(_0x21219f,_0x290aa9-0x4c7);}function _0x463318(_0x3c544b,_0x725ed0){return _0x242c37(_0x3c544b,_0x725ed0-0x1ce);}const _0x1edc6a={'vAzVq':'POST'};return this[_0x463318(0x103,0x10a)](_0x1edc6a[_0x463318(0x1ad,0x169)],_0x5cbed2(0x483,0x40a)+_0x5cbed2(0x4b2,0x4b8)+_0x463318(0x16d,0x18b)+'n/analyze',{'message':_0x1519e2[_0x463318(0x17a,0x109)](0x0,0x1f4)});}async[_0x52424a(-0x49,-0x94)+'iciencies'](_0x452909,_0xd68856){function _0x43f480(_0x21f542,_0x44e473){return _0x242c37(_0x21f542,_0x44e473-0x242);}const _0x5b7f2e={'AxsvL':_0x2ff32d(-0x63,-0x2c)+'ansfer/exp'+_0x43f480(0x231,0x1b8),'iHEwn':function(_0x276b21,_0x1992d2){return _0x276b21??_0x1992d2;}};function _0x2ff32d(_0x7c6de9,_0x55c278){return _0x242c37(_0x55c278,_0x7c6de9-0x24);}const _0x12274b=await this['request'](_0x43f480(0x1c1,0x213),_0x5b7f2e['AxsvL'],{'source_provider':_0x452909,'skill_ids':_0x5b7f2e[_0x43f480(0x27a,0x226)](_0xd68856,null)});return _0x12274b;}async[_0x242c37(-0xd8,-0xe0)+_0x242c37(-0x6f,-0xac)](_0x7fd751,_0x1a2218){function _0x21276f(_0x4f65e4,_0x4a9b8c){return _0x52424a(_0x4a9b8c-0x401,_0x4f65e4);}function _0x2654e5(_0x2753f4,_0x35d9a2){return _0x52424a(_0x35d9a2-0x26,_0x2753f4);}const _0xae57ab=await this[_0x2654e5(-0x48,-0x7e)](_0x21276f(0x3d9,0x3f2),_0x21276f(0x3ff,0x39a)+_0x2654e5(-0x1e,-0x96)+'ort',{'package':_0x7fd751,'target_provider':_0x1a2218});return _0xae57ab;}async['getCompati'+_0x242c37(-0x3e,-0x14)+'ix'](){const _0x401c8c={'QVGsT':_0x4ff295(-0xff,-0x133)+_0x4ff295(-0x1f0,-0x19c)+_0x4ff295(-0x67,-0xbe)},_0x1e7670=await this[_0x4ff295(-0x15c,-0x170)](_0x5ccabe(0x528,0x4b3),_0x401c8c[_0x4ff295(-0x180,-0x1b6)]);function _0x5ccabe(_0xef6625,_0x5d4d7f){return _0x52424a(_0x5d4d7f-0x55c,_0xef6625);}function _0x4ff295(_0x29d3f2,_0x34a5a4){return _0x52424a(_0x34a5a4- -0xcc,_0x29d3f2);}return _0x1e7670['matrix']??[];}async[_0x242c37(0x35,-0x27)+_0x242c37(-0xb7,-0x72)](_0xb1730f=0x1){function _0x53357a(_0x167709,_0x2f3ced){return _0x52424a(_0x2f3ced-0x595,_0x167709);}const _0x2cc8f5={'RDVNc':_0x53357a(0x4f3,0x50c)},_0x1a5faf=new URLSearchParams();_0x1a5faf['set'](_0x2cc8f5[_0x1b5a13(0x35b,0x2f9)],_0xb1730f[_0x53357a(0x537,0x57c)]());const _0x5bfe10='/api/v1/tr'+_0x1b5a13(0x2d3,0x33f)+_0x1b5a13(0x2ab,0x281)+_0x1a5faf['toString'](),_0x341e83=await this[_0x1b5a13(0x2c7,0x2ae)](_0x53357a(0x47a,0x4ec),_0x5bfe10);function _0x1b5a13(_0x19ab94,_0xed3ae0){return _0x52424a(_0xed3ae0-0x352,_0x19ab94);}return _0x341e83;}async[_0x242c37(-0x118,-0xe7)](_0x5c1397,_0x1d457c){const _0x27e452={'HaIja':function(_0x2cd947,_0xf1f0b0){return _0x2cd947(_0xf1f0b0);},'tPkdG':'file','VEdgG':'category','aWOdw':function(_0x1d3692,_0x127d27){return _0x1d3692!==_0x127d27;},'jwWkf':'nTyyk','fRLPe':_0x1c4086(0x357,0x2ef),'sJaeK':'POST'},{readFileSync:_0x4a2a84}=await import(_0x1c4086(0x2e4,0x2ae));function _0x1c4086(_0x441a36,_0x4c29f4){return _0x52424a(_0x441a36-0x3cb,_0x4c29f4);}const {basename:_0x4bb0fd}=await import(_0x1c4086(0x37a,0x333)),_0x5b5977=_0x27e452[_0x1c4086(0x31f,0x30f)](_0x4a2a84,_0x5c1397),_0x29e7e6=_0x4bb0fd(_0x5c1397),_0x53919a=new FormData();_0x53919a[_0x3f9e5f(0x12d,0x194)](_0x27e452[_0x3f9e5f(0x16d,0x16f)],new Blob([_0x5b5977]),_0x29e7e6);_0x1d457c[_0x1c4086(0x393,0x3f5)]&&_0x53919a['append'](_0x27e452[_0x3f9e5f(0x16e,0x1a5)],_0x1d457c['category']);if(_0x1d457c[_0x3f9e5f(0xdf,0xd8)]&&_0x1d457c['tags'][_0x3f9e5f(0x168,0xf7)]>0x0){if(_0x27e452['aWOdw'](_0x1c4086(0x398,0x3bc),_0x27e452[_0x1c4086(0x39d,0x389)]))_0x53919a['append'](_0x27e452[_0x1c4086(0x3c5,0x3b9)],_0x1d457c[_0x1c4086(0x357,0x303)]['join'](','));else try{_0x2a35ef[_0x3f9e5f(0x137,0x15a)]=_0x1052c5(_0xff1c0f,this[_0x3f9e5f(0xd3,0xad)+_0x3f9e5f(0xe1,0x96)]);}catch{}}const _0x344ac1=await this[_0x1c4086(0x307,0x307)+_0x3f9e5f(0xc6,0x91)](_0x27e452[_0x3f9e5f(0xa1,0xa9)],_0x1c4086(0x2ee,0x354)+_0x1c4086(0x33d,0x2ea),_0x53919a);function _0x3f9e5f(_0x379208,_0x561a0a){return _0x52424a(_0x379208-0x153,_0x561a0a);}const _0x17d2cb=_0x344ac1;return{'id':_0x17d2cb[_0x1c4086(0x351,0x388)],'filename':_0x17d2cb[_0x1c4086(0x3a1,0x37b)]};}async[_0x242c37(0x17,-0x8)+'uplicate'](_0x302121){function _0x2d40c7(_0x488a2e,_0x2c8e9b){return _0x52424a(_0x2c8e9b-0x2c3,_0x488a2e);}const _0x4b30ab={'DHQqM':_0x19cb0f(-0xbc,-0x126),'oTPfM':'/api/v1/fi'+'les/check-'+'duplicate'};function _0x19cb0f(_0x2befd4,_0xcf01af){return _0x52424a(_0xcf01af- -0x117,_0x2befd4);}const _0x2e4b02=await this[_0x2d40c7(0x23c,0x21f)](_0x4b30ab[_0x2d40c7(0x262,0x2c6)],_0x4b30ab[_0x19cb0f(-0x16e,-0x19d)],{'content_hash':_0x302121}),_0x1c27db=_0x2e4b02;return{'exists':_0x1c27db[_0x19cb0f(-0x11e,-0x15f)+'te'],'file_id':_0x1c27db[_0x2d40c7(0x17e,0x1f1)+_0x2d40c7(0x241,0x262)]?.['id']};}async[_0x242c37(-0xa4,-0x63)+_0x52424a(-0x69,-0x9f)](_0x4556ab,_0x3dfac9,_0x171c99){function _0x4b1379(_0x23640d,_0x4ce11a){return _0x52424a(_0x23640d-0x9e,_0x4ce11a);}function _0x1c3e1d(_0x527db0,_0x41dd9f){return _0x52424a(_0x527db0-0x130,_0x41dd9f);}const _0x255b18={'YWQFV':_0x1c3e1d(0x121,0xdc),'nvIaV':_0x1c3e1d(0x51,0x63)+_0x1c3e1d(0x107,0xd3)},_0x2c04a8=await this[_0x4b1379(-0x6,-0x1a)](_0x255b18[_0x4b1379(0x31,-0x1c)],_0x255b18['nvIaV'],{'memory_id':_0x4556ab,'file_id':_0x3dfac9,'reference_type':_0x171c99[_0x4b1379(-0x19,-0x1)+_0x4b1379(0x8c,0x3f)],'reference_path':_0x171c99[_0x1c3e1d(0x79,0x34)+_0x1c3e1d(0xce,0xba)]});return _0x2c04a8;}async['createCont'+_0x52424a(-0x8b,-0x42)](_0x1a3d9b){function _0x2b2eaf(_0x42cf02,_0x445cf2){return _0x242c37(_0x445cf2,_0x42cf02- -0x106);}function _0x3f9e11(_0x48dc29,_0x378122){return _0x242c37(_0x378122,_0x48dc29-0x36);}return this[_0x2b2eaf(-0x1ca,-0x16a)](_0x2b2eaf(-0x135,-0x113),_0x2b2eaf(-0x215,-0x1d6)+_0x3f9e11(-0x21,-0x73),_0x1a3d9b);}async['addContext'+'Member'](_0x18ddac,_0x1afa81){function _0x2e119d(_0x29a7db,_0x45d1f0){return _0x242c37(_0x45d1f0,_0x29a7db-0x23b);}function _0x514e8a(_0x3e7434,_0x571a2c){return _0x242c37(_0x571a2c,_0x3e7434- -0x33);}const _0x67e6e={'WFohs':_0x514e8a(-0x62,-0x11)};return this[_0x514e8a(-0xf7,-0x158)](_0x67e6e[_0x514e8a(-0x89,-0xe)],'/api/v1/mc'+'g/contexts'+'/'+_0x18ddac+_0x2e119d(0x140,0x157),_0x1afa81);}async['createRela'+_0x52424a(-0x70,-0x5a)](_0x1bc5f8){function _0x320b5a(_0x4a9ea2,_0x353735){return _0x242c37(_0x4a9ea2,_0x353735-0x192);}const _0x1c518a={'ZzzTV':_0x489c2e(-0x292,-0x226)+_0x320b5a(0x12f,0x146)+'s'};function _0x489c2e(_0x5b564f,_0x384eb2){return _0x242c37(_0x5b564f,_0x384eb2- -0x117);}return this['request']('POST',_0x1c518a['ZzzTV'],_0x1bc5f8);}async[_0x242c37(-0xf8,-0x8b)+_0x242c37(-0x72,-0xa2)](_0x132038){const _0x385b42={'ZgbSf':_0x222dd6(0x53b,0x4dd)+'xonomy/cla'+_0x3e3974(0xa4,0xe1),'mSASW':function(_0xc901e4,_0x1db878){return _0xc901e4===_0x1db878;},'qIHHO':_0x3e3974(-0x28,0x15)};function _0x3e3974(_0x52ecfd,_0x592c08){return _0x52424a(_0x592c08-0xe2,_0x52ecfd);}function _0x222dd6(_0x1ca7b9,_0x5b5c1a){return _0x52424a(_0x5b5c1a-0x539,_0x1ca7b9);}try{const _0x38e0d6=await this[_0x222dd6(0x491,0x495)](_0x222dd6(0x501,0x52a),_0x385b42[_0x222dd6(0x458,0x46b)],{'content':_0x132038['content']['slice'](0x0,0x7d0),'tags':_0x132038[_0x3e3974(0x24,0x6e)]??[],'category':_0x132038[_0x3e3974(0xa1,0xaa)]}),_0x2c6d55=_0x38e0d6;if(_0x2c6d55['success']&&_0x2c6d55['result']){if(_0x385b42['mSASW'](_0x222dd6(0x465,0x4e6),_0x385b42[_0x222dd6(0x432,0x476)]))throw new _0x28f1f8('요청\x20시간\x20초과:\x20'+this[_0x3e3974(0x79,0xf2)]+'ms를\x20넘었습니다');else return _0x2c6d55['result'];}return null;}catch{return null;}}static [_0x242c37(-0x25,-0xf)+_0x242c37(-0xb4,-0xca)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static ['MAX_RETRIE'+'S']=0x3;static [_0x52424a(-0x9b,-0xdb)+_0x52424a(-0x20,-0x28)]=0x3e8;async[_0x52424a(-0xa4,-0x35)](_0x22e94b,_0x366230,_0x5d1abb){function _0x819f45(_0x226e3a,_0x4d1df7){return _0x52424a(_0x226e3a- -0xd1,_0x4d1df7);}function _0x443af4(_0x42997b,_0x50468f){return _0x52424a(_0x42997b- -0xdf,_0x50468f);}const _0x31efd8={'Xwqeq':function(_0x3a489f,_0x28c62a){return _0x3a489f(_0x28c62a);},'rNUXF':function(_0x4599d8,_0xd296c){return _0x4599d8<_0xd296c;},'XwZdL':function(_0x1c78c4,_0x5a6e8b,_0x89ccbf){return _0x1c78c4(_0x5a6e8b,_0x89ccbf);},'viIIf':_0x819f45(-0x19a,-0x1f1)+_0x443af4(-0x163,-0x1ae),'THZmX':function(_0x7274f9,_0x3d19c0){return _0x7274f9>_0x3d19c0;},'HAaUR':function(_0x4116bf,_0x3f7d24){return _0x4116bf===_0x3f7d24;},'QSxSy':_0x819f45(-0x190,-0x13a),'BYisy':function(_0x4206f9,_0x4cc2c8){return _0x4206f9*_0x4cc2c8;},'trATR':_0x819f45(-0x1a6,-0x199),'iNQXL':_0x819f45(-0xca,-0x149),'gEafl':'HTTP\x20422','IDSXs':function(_0xb84898,_0xa222ea){return _0xb84898-_0xa222ea;},'smcIr':function(_0x2c624e,_0x6c5d1e){return _0x2c624e*_0x6c5d1e;}};let _0x26b503;for(let _0x3c6ba9=0x0;_0x31efd8['rNUXF'](_0x3c6ba9,A2AClient[_0x819f45(-0x18a,-0x178)+'S']);_0x3c6ba9++){const _0x24100f=''+this['config'][_0x819f45(-0x14d,-0x1b8)]+_0x366230,_0x55210a=new AbortController(),_0x45de89=_0x31efd8[_0x819f45(-0x1c2,-0x158)](setTimeout,()=>_0x55210a[_0x819f45(-0x173,-0x1c5)](),this['timeout']);try{const _0x33fb7d=await _0x31efd8[_0x819f45(-0x1c2,-0x244)](fetch,_0x24100f,{'method':_0x22e94b,'headers':{'Content-Type':_0x31efd8[_0x819f45(-0x144,-0x1b5)],'x-api-key':this['config'][_0x443af4(-0x18e,-0x133)],'X-Plugin-Version':_pluginVersion,..._0x31efd8['THZmX'](this[_0x819f45(-0x162,-0x1e2)+'tures'][_0x819f45(-0xbc,-0x6e)],0x0)&&{'X-Plugin-Features':this[_0x819f45(-0x162,-0x14b)+_0x819f45(-0xdf,-0x72)][_0x443af4(-0x177,-0x1b6)](',')}},'body':_0x5d1abb?JSON['stringify'](_0x5d1abb):undefined,'signal':_0x55210a[_0x443af4(-0x121,-0x120)]});_0x31efd8[_0x443af4(-0xdd,-0x91)](clearTimeout,_0x45de89);if(A2AClient[_0x443af4(-0xce,-0x86)+'STATUS'][_0x819f45(-0xd5,-0xe2)](_0x33fb7d['status'])&&_0x3c6ba9<A2AClient['MAX_RETRIE'+'S']-0x1){if(_0x31efd8[_0x819f45(-0x11b,-0x141)](_0x31efd8[_0x443af4(-0x1a1,-0x1b4)],_0x31efd8['QSxSy'])){const _0x1d3b5d=_0x31efd8[_0x819f45(-0xe7,-0x12e)](A2AClient[_0x819f45(-0x16c,-0x171)+_0x819f45(-0xf1,-0x102)],Math[_0x443af4(-0x166,-0x1e4)](0x2,_0x3c6ba9));await new Promise(_0x21334d=>setTimeout(_0x21334d,_0x1d3b5d));continue;}else _0x399eb3[_0x443af4(-0x139,-0x17d)](_0x443af4(-0x1b2,-0x1b3)+_0x819f45(-0x126,-0x104)+'yFeedback\x20'+'failed\x20for'+'\x20'+_0x474b21+':',_0x2b0f64 instanceof _0x1b4c66?_0x1ba026[_0x819f45(-0xbf,-0x105)]:nmVJjv[_0x819f45(-0xcf,-0x14b)](_0x372369,_0x4a34e9));}!_0x33fb7d['ok']&&await this[_0x443af4(-0x12e,-0xb6)+'rResponse'](_0x33fb7d);if(_0x22e94b===_0x819f45(-0xf0,-0x159)&&_0x33fb7d[_0x443af4(-0x11c,-0x14b)]===0xcc)return;return await _0x33fb7d['json']();}catch(_0x19a99c){_0x31efd8['Xwqeq'](clearTimeout,_0x45de89);if(_0x19a99c instanceof Error){if(_0x19a99c[_0x819f45(-0xbf,-0x90)]['startsWith'](_0x443af4(-0x11b,-0x94))||_0x19a99c['message'][_0x819f45(-0x10f,-0x17c)](_0x31efd8[_0x443af4(-0x1aa,-0x133)])||_0x19a99c[_0x819f45(-0xbf,-0xd4)][_0x443af4(-0x11d,-0x121)](_0x31efd8['iNQXL'])||_0x19a99c[_0x443af4(-0xcd,-0x11d)][_0x819f45(-0x10f,-0x176)](_0x31efd8['gEafl']))throw _0x19a99c;if(_0x3c6ba9<_0x31efd8['IDSXs'](A2AClient[_0x443af4(-0x198,-0x1df)+'S'],0x1)){_0x26b503=_0x19a99c;const _0x3cc743=_0x31efd8['smcIr'](A2AClient[_0x443af4(-0x17a,-0x14f)+_0x819f45(-0xf1,-0xc4)],Math[_0x443af4(-0x166,-0x162)](0x2,_0x3c6ba9));await new Promise(_0x275ea2=>setTimeout(_0x275ea2,_0x3cc743));continue;}if(_0x19a99c['name']===_0x443af4(-0x187,-0x136))throw new Error(_0x819f45(-0x125,-0x19d)+this[_0x819f45(-0xc1,-0x7b)]+'ms를\x20넘었습니다');throw new Error(_0x443af4(-0x185,-0x10f)+_0x19a99c[_0x443af4(-0xcd,-0x7f)]);}throw _0x19a99c;}}throw _0x26b503??new Error(_0x443af4(-0x1cc,-0x192)+A2AClient[_0x443af4(-0x198,-0x1e4)+'S']+'회\x20재시도\x20후\x20실패');}async[_0x52424a(-0xc4,-0x14b)+'tipart'](_0xb5f8c3,_0x4b39c3,_0x475ca7){const _0x260069={'eCwLJ':function(_0x3019aa,_0x279174){return _0x3019aa(_0x279174);},'JoqWE':_0xc410f9(-0xc6,-0x4c),'Cqggw':function(_0x1c69ae,_0x13e3bf){return _0x1c69ae!==_0x13e3bf;}},_0x258a71=''+this[_0xc410f9(0x11,0x59)][_0xc410f9(0x39,-0x20)]+_0x4b39c3;function _0xc410f9(_0x2f4632,_0x13b73e){return _0x52424a(_0x13b73e-0x5c,_0x2f4632);}function _0x4c2451(_0x58d776,_0x960a57){return _0x52424a(_0x58d776-0x157,_0x960a57);}const _0x387304=new AbortController(),_0x42de7a=setTimeout(()=>_0x387304['abort'](),this[_0xc410f9(0xa2,0x6c)]);try{const _0x96d600=await fetch(_0x258a71,{'method':_0xb5f8c3,'headers':{'x-api-key':this['config'][_0x4c2451(0xa8,0x87)],'X-Plugin-Version':_pluginVersion},'body':_0x475ca7,'signal':_0x387304[_0x4c2451(0x115,0xa5)]});return _0x260069['eCwLJ'](clearTimeout,_0x42de7a),!_0x96d600['ok']&&await this[_0xc410f9(0x92,0xd)+'rResponse'](_0x96d600),await _0x96d600[_0xc410f9(-0x56,-0x8c)]();}catch(_0x562c6d){_0x260069[_0xc410f9(-0x10,0x54)](clearTimeout,_0x42de7a);if(_0x562c6d instanceof Error&&_0x562c6d[_0xc410f9(-0x33,-0x1a)]===_0x260069['JoqWE']){if(_0x260069[_0x4c2451(0xf2,0xfb)]('FJiVm',_0x4c2451(0x100,0x127)))throw new Error(_0xc410f9(-0x6a,0x8)+this[_0x4c2451(0x167,0x1cd)]+_0x4c2451(0x7b,0xb8));else this[_0x4c2451(0xd7,0xd4)+_0xc410f9(-0x9b,-0x16)]=null;}throw _0x562c6d;}}async['handleErro'+_0x242c37(0x44,-0x3b)](_0x8644f1){const _0x5f0634={'GglSu':'mlJJU','ImkEa':_0x2c0cec(-0x19,0x7)+_0x51d27a(0x2a5,0x22e)+'요','ivFEj':_0x2c0cec(-0x44,0xc)+_0x2c0cec(-0xb,0x1),'muJRk':_0x2c0cec(-0xcf,-0xb5),'QCVGX':'\x20|\x20'},_0x57d992=_0x8644f1[_0x51d27a(0x2ff,0x2a6)];if(_0x57d992===0x191){if(_0x5f0634[_0x51d27a(0x29e,0x2cf)]!==_0x5f0634[_0x51d27a(0x29e,0x30c)])_0x5b1a83+=':\x20'+_0x52a82d[_0x2c0cec(0x58,0x18)];else throw new Error(_0x5f0634[_0x51d27a(0x256,0x2be)]);}function _0x2c0cec(_0x46cfd0,_0x4f4f26){return _0x52424a(_0x4f4f26-0x6,_0x46cfd0);}function _0x51d27a(_0x241211,_0x3ab0fc){return _0x52424a(_0x241211-0x33c,_0x3ab0fc);}if(_0x57d992===0x1ad)throw new Error(_0x5f0634[_0x2c0cec(-0xe4,-0xa8)]);let _0x5d785c='HTTP\x20'+_0x57d992;try{const _0x3ed396=await _0x8644f1[_0x51d27a(0x254,0x250)]();if(Array[_0x51d27a(0x2d0,0x302)](_0x3ed396[_0x51d27a(0x327,0x348)])){if(_0x5f0634[_0x51d27a(0x328,0x347)]==='zNABy'){const _0x50d181=_0x3ed396[_0x2c0cec(0x52,-0xf)][_0x51d27a(0x2f6,0x299)](_0x1890d8=>{const _0x5ceff=Array[_0xc21f24(0x26f,0x2ef)](_0x1890d8[_0x210e96(0x25,-0x20)])?_0x1890d8[_0x210e96(0x25,-0xe)][_0xc21f24(0x300,0x2c3)]('.'):'';function _0x210e96(_0x38a6de,_0x1425bd){return _0x51d27a(_0x38a6de- -0x24b,_0x1425bd);}const _0x531e90=_0x1890d8[_0x210e96(0x79,0x12)]??JSON[_0xc21f24(0x31b,0x30e)](_0x1890d8);function _0xc21f24(_0x2e79ce,_0x331ac1){return _0x51d27a(_0x331ac1-0x1f,_0x2e79ce);}return _0x5ceff?_0x5ceff+':\x20'+_0x531e90:_0x531e90;})[_0x2c0cec(-0x104,-0x92)](_0x5f0634[_0x2c0cec(-0xe8,-0x68)]);_0x5d785c+=':\x20'+_0x50d181;}else _0x128a69+=':\x20'+_0x1decfd[_0x2c0cec(-0x5c,-0xf)];}else{if(_0x3ed396[_0x2c0cec(0x6f,-0xf)])_0x5d785c+=':\x20'+_0x3ed396['detail'];else _0x3ed396[_0x2c0cec(0x79,0x18)]&&(_0x5d785c+=':\x20'+_0x3ed396['message']);}}catch{}throw new Error(_0x5d785c);}}
|
package/dist/sync/encryption.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x20af59,_0x37bab2){function _0x2046f3(_0x556deb,_0x44021d){return _0x338f(_0x44021d-0x15d,_0x556deb);}const _0x1c15db=_0x20af59();function _0xac85d9(_0x2bdaf8,_0x4fb0bb){return _0x338f(_0x2bdaf8- -0x236,_0x4fb0bb);}while(!![]){try{const _0x30d8c2=-parseInt(_0xac85d9(-0xdd,-0xed))/0x1+-parseInt(_0x2046f3(0x2ae,0x2a5))/0x2*(-parseInt(_0x2046f3(0x2c2,0x2af))/0x3)+parseInt(_0xac85d9(-0xcf,-0xca))/0x4*(-parseInt(_0x2046f3(0x2b2,0x2cd))/0x5)+-parseInt(_0xac85d9(-0xf8,-0x10a))/0x6+parseInt(_0xac85d9(-0xe8,-0xda))/0x7*(-parseInt(_0xac85d9(-0xf6,-0x106))/0x8)+-parseInt(_0x2046f3(0x2a3,0x2bf))/0x9+-parseInt(_0x2046f3(0x2be,0x2a4))/0xa*(-parseInt(_0x2046f3(0x2be,0x2b3))/0xb);if(_0x30d8c2===_0x37bab2)break;else _0x1c15db['push'](_0x1c15db['shift']());}catch(_0x252824){_0x1c15db['push'](_0x1c15db['shift']());}}}(_0x5b94,0x940ca));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM='aes-256-gc'+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0;function _0x11c957(_0x4483b0,_0x46393d){return _0x338f(_0x46393d-0x313,_0x4483b0);}const PBKDF2_DIGEST=_0x11c957(0x467,0x470);export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x556308,_0x388713){const _0x8a24e8={'ETKbF':function(_0xaa9cbc,_0x227cdc,_0x4e40cf,_0x28b1c1,_0x40ee65,_0x817c11){return _0xaa9cbc(_0x227cdc,_0x4e40cf,_0x28b1c1,_0x40ee65,_0x817c11);}},_0x437e35=_0x388713??randomBytes(SALT_LENGTH),_0x4432e0=_0x8a24e8[_0xbb6fe0(0x3c5,0x3ae)](pbkdf2Sync,_0x556308,_0x437e35,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);function _0xbb6fe0(_0x52c28c,_0x55eacc){return _0x11c957(_0x52c28c,_0x55eacc- -0xd8);}return{'key':_0x4432e0,'salt':_0x437e35};}export function encryptContent(_0x2b3bc1,_0x11331f){const _0x3d6f3b={'vaSfN':function(_0x18e12a,_0x913666){return _0x18e12a!==_0x913666;},'tuamX':function(_0x5a92e2,_0x42d16a){return _0x5a92e2(_0x42d16a);},'tdPbJ':function(_0x4a5395,_0x1418fc,_0x148dd3,_0x1461cd){return _0x4a5395(_0x1418fc,_0x148dd3,_0x1461cd);},'mzsBk':_0x424803(0x50b,0x50c)};if(_0x11331f['length']!==KEY_LENGTH){if(_0x3d6f3b['vaSfN'](_0x424803(0x52b,0x544),_0x424803(0x537,0x544)))throw new _0x43e29f('복호화\x20실패:\x20'+_0x10fa67[_0x45c934(0x8e,0x79)]+(_0x424803(0x537,0x525)+_0x424803(0x4fa,0x514)));else throw new Error('암호화\x20키는\x20'+KEY_LENGTH+(_0x424803(0x51f,0x510)+_0x424803(0x516,0x52b))+_0x11331f['length']+')');}const _0x5e1f31=_0x3d6f3b[_0x45c934(0x5f,0x7a)](randomBytes,IV_LENGTH),_0x39eda3=_0x3d6f3b['tdPbJ'](createCipheriv,ALGORITHM,_0x11331f,_0x5e1f31),_0x273883=Buffer['from'](_0x2b3bc1,_0x3d6f3b[_0x45c934(0x6c,0x80)]),_0x35a21e=Buffer[_0x45c934(0x5c,0x51)]([_0x39eda3[_0x45c934(0x3b,0x58)](_0x273883),_0x39eda3[_0x45c934(0x78,0x83)]()]);function _0x424803(_0x377a2c,_0x3ec677){return _0x11c957(_0x377a2c,_0x3ec677-0xb8);}function _0x45c934(_0x37b15e,_0x3f09e2){return _0x11c957(_0x37b15e,_0x3f09e2- -0x3ff);}const _0x2a3bef=_0x39eda3['getAuthTag']();return{'ciphertext':_0x35a21e[_0x424803(0x508,0x50a)](_0x424803(0x515,0x526)),'iv':_0x5e1f31[_0x424803(0x524,0x50a)](_0x424803(0x532,0x526)),'tag':_0x2a3bef['toString'](_0x45c934(0x5d,0x6f))};}export function decryptContent(_0x2ae7c7,_0x599e4c){const _0x4f8248={'ybNRY':'base64','AYpCi':function(_0x4fbadd,_0x3a497d){return _0x4fbadd===_0x3a497d;},'dmumr':_0x592479(-0x22,-0x30),'emxnR':_0xda9278(0x2d8,0x2e1),'RvzfU':function(_0x2c32be,_0x4f1e57){return _0x2c32be instanceof _0x4f1e57;}};if(_0x599e4c[_0xda9278(0x30d,0x304)]!==KEY_LENGTH)throw new Error('암호화\x20키는\x20'+KEY_LENGTH+(_0x592479(-0x65,-0x63)+_0xda9278(0x2f7,0x315))+_0x599e4c[_0xda9278(0x30d,0x311)]+')');function _0xda9278(_0xed3584,_0x3783ba){return _0x11c957(_0x3783ba,_0xed3584- -0x17c);}const _0x2f1979=Buffer['from'](_0x2ae7c7['iv'],'base64');function _0x592479(_0x48cd0e,_0x2ec201){return _0x11c957(_0x48cd0e,_0x2ec201- -0x4bb);}const _0x2f7477=Buffer[_0x592479(-0x5a,-0x51)](_0x2ae7c7[_0x592479(-0x83,-0x65)],_0x592479(-0x4a,-0x4d)),_0x3b5a38=Buffer[_0xda9278(0x2ee,0x2f2)](_0x2ae7c7[_0x592479(-0x40,-0x4a)],_0x4f8248[_0x592479(-0x19,-0x33)]),_0xe6eb50=createDecipheriv(ALGORITHM,_0x599e4c,_0x2f1979);_0xe6eb50[_0xda9278(0x312,0x2fa)](_0x3b5a38);try{if(_0x4f8248['AYpCi'](_0x592479(-0x4d,-0x30),_0x4f8248['dmumr'])){const _0x4cde9d=Buffer[_0xda9278(0x2d4,0x2ca)]([_0xe6eb50[_0x592479(-0x6a,-0x64)](_0x2f7477),_0xe6eb50[_0xda9278(0x306,0x2e8)]()]);return _0x4cde9d['toString'](_0x4f8248['emxnR']);}else{const _0x226a26=_0x599798[_0x592479(-0x59,-0x6b)]([_0x52aa2a[_0xda9278(0x2db,0x2cf)](_0x505cfb),_0x213238[_0x592479(-0x26,-0x39)]()]),_0x5c8da8=new _0x5eaf39(_0x226a26[_0xda9278(0x2e3,0x2e1)],_0x226a26[_0x592479(-0x48,-0x34)],_0x226a26[_0xda9278(0x2f3,0x2e4)]/_0x4e21d6['BYTES_PER_'+_0x592479(-0x5a,-0x5d)]);return _0x2a67be[_0xda9278(0x2ee,0x2e1)](_0x5c8da8);}}catch(_0x375616){if(_0x4f8248[_0x592479(-0x77,-0x5e)](_0x375616,Error))throw new Error(_0x592479(-0x64,-0x50)+_0x375616['message']+('\x20(잘못된\x20키\x20또는'+_0x592479(-0x6b,-0x5f)));throw _0x375616;}}export function encryptEmbedding(_0x5b99ce,_0x9b4801){function _0x1f0c75(_0x59b59e,_0x39f18f){return _0x11c957(_0x59b59e,_0x39f18f- -0x5c3);}const _0x204459={'oEVbk':function(_0x28c288,_0x447e0c){return _0x28c288(_0x447e0c);},'yOfBn':_0x34b304(0x175,0x15a)},_0x21d106=new Float64Array(_0x5b99ce),_0x4b4499=Buffer[_0x34b304(0x171,0x16b)](_0x21d106[_0x1f0c75(-0x16e,-0x164)]),_0x2dc5f7=_0x204459[_0x34b304(0x16f,0x159)](randomBytes,IV_LENGTH);function _0x34b304(_0x48d354,_0x3dc7ac){return _0x11c957(_0x3dc7ac,_0x48d354- -0x2f9);}const _0x38c9dc=createCipheriv(ALGORITHM,_0x9b4801,_0x2dc5f7),_0x354ec1=Buffer[_0x34b304(0x157,0x16a)]([_0x38c9dc[_0x1f0c75(-0x18a,-0x16c)](_0x4b4499),_0x38c9dc[_0x1f0c75(-0x140,-0x141)]()]),_0x39a7c9=_0x38c9dc[_0x1f0c75(-0x14a,-0x143)](),_0x301a61=Buffer[_0x34b304(0x157,0x161)]([_0x2dc5f7,_0x39a7c9,_0x354ec1]);return _0x301a61[_0x1f0c75(-0x157,-0x171)](_0x204459['yOfBn']);}function _0x5b94(){const _0x5b40f5=['EwjouLK','BgvUz3rO','tLrdDei','ufbzsM8','CvnQvuy','z1HeCeG','C2v0qxv0AfrHzW','y29Uy2f0','mtuWmJq0mKfws2vxrG','Dg9tDhjPBMC','mZaXmZi1nKThze5ksG','DxrMltG','wvzSrfC','y2LWAgvYDgv4Da','DxbKyxrL','igj5DgvZ7jES7jw8io2vQq','vw1etuu','mtbfs3jwv0S','mJm1nZCWwu1qvgHH','ioUnSoYDTo2eScdRS4dSOBaP','uNz6zLu','ruXftuvova','yNvMzMvY','uNzmA0S','mJfXq2rqz00','qLLurvnFuevsxW','tfD3v08','AfbnEuK','nKXltMHNzq','C3rYAw5NAwz5','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','B0vwyMS','mZmWnZyYnJnht3rxzwm','zNjVBq','67o17zI47zMuioYlPo2mQdOG','mtyXnZe0v1zUwfnK','icJSNPJRQRVRKjWG7ykKioUyKoUkLa','yMfZzty0','yNL0zuXLBMD0Aa','C2HHnteY','DgfN','uxvvs2u','64Ui64UKicJTMitSNQW6ia','uLvUvhK','mJKWmZq3mKfiwKXwsW','B2jQzwn0','C3vIyxjYyxK','BwvZC2fNzq','DhvHBvG','nffrquDZuW','wfDfvum','C3rYAw5N','sw15AMu','ALzkuxi','BxPZqMS','z2v0qxv0AfrHzW','CM9gCfq','zMLUywW','mZG1nZK2nwrdyM9fCW','zgf0yq','CgfYC2u','rvrlyKy','yNL0zu9MzNnLDa'];_0x5b94=function(){return _0x5b40f5;};return _0x5b94();}function _0x338f(_0x362e72,_0x493f83){_0x362e72=_0x362e72-0x13d;const _0x5b947c=_0x5b94();let _0x338f21=_0x5b947c[_0x362e72];if(_0x338f['Bmxbaa']===undefined){var _0xa2d008=function(_0x207a83){const _0x22bfa7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48c38a='',_0x1ca9cb='';for(let _0x40bdb6=0x0,_0x29230e,_0x2bd5b6,_0x15395e=0x0;_0x2bd5b6=_0x207a83['charAt'](_0x15395e++);~_0x2bd5b6&&(_0x29230e=_0x40bdb6%0x4?_0x29230e*0x40+_0x2bd5b6:_0x2bd5b6,_0x40bdb6++%0x4)?_0x48c38a+=String['fromCharCode'](0xff&_0x29230e>>(-0x2*_0x40bdb6&0x6)):0x0){_0x2bd5b6=_0x22bfa7['indexOf'](_0x2bd5b6);}for(let _0x2e6c1e=0x0,_0x559822=_0x48c38a['length'];_0x2e6c1e<_0x559822;_0x2e6c1e++){_0x1ca9cb+='%'+('00'+_0x48c38a['charCodeAt'](_0x2e6c1e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ca9cb);};_0x338f['egEAlg']=_0xa2d008,_0x338f['ltzXjy']={},_0x338f['Bmxbaa']=!![];}const _0x2d1cc9=_0x5b947c[0x0],_0x3bb957=_0x362e72+_0x2d1cc9,_0x24aed7=_0x338f['ltzXjy'][_0x3bb957];return!_0x24aed7?(_0x338f21=_0x338f['egEAlg'](_0x338f21),_0x338f['ltzXjy'][_0x3bb957]=_0x338f21):_0x338f21=_0x24aed7,_0x338f21;}export function decryptEmbedding(_0x53e7dc,_0x7f7e46){const _0x36a3e5={'QABsQ':'base64','NTCtB':function(_0x243e68,_0x2f84cd){return _0x243e68+_0x2f84cd;},'UmDME':'암호화된\x20임베딩\x20데'+_0x35e247(-0x102,-0xfd)+'다','ioUZQ':function(_0x239d78,_0x4623ef){return _0x239d78+_0x4623ef;},'QuUKe':function(_0x479b05,_0x78bf47){return _0x479b05/_0x78bf47;}},_0x597716=Buffer[_0x237868(0x2b2,0x2a7)](_0x53e7dc,_0x36a3e5['QABsQ']);if(_0x597716[_0x35e247(-0xe0,-0xc8)]<_0x36a3e5[_0x237868(0x2d2,0x2b5)](IV_LENGTH,TAG_LENGTH))throw new Error(_0x36a3e5[_0x35e247(-0x110,-0x121)]);const _0x373b54=_0x597716[_0x35e247(-0xf2,-0xe0)](0x0,IV_LENGTH),_0x4f1fb0=_0x597716[_0x237868(0x2bf,0x2d2)](IV_LENGTH,_0x36a3e5['ioUZQ'](IV_LENGTH,TAG_LENGTH)),_0x548cf9=_0x597716['subarray'](IV_LENGTH+TAG_LENGTH),_0x32c952=createDecipheriv(ALGORITHM,_0x7f7e46,_0x373b54);function _0x237868(_0x169012,_0x31cf29){return _0x11c957(_0x31cf29,_0x169012- -0x1b8);}function _0x35e247(_0x22a8a9,_0x5a9ade){return _0x11c957(_0x5a9ade,_0x22a8a9- -0x569);}_0x32c952['setAuthTag'](_0x4f1fb0);try{const _0x25d7ea=Buffer[_0x237868(0x298,0x284)]([_0x32c952['update'](_0x548cf9),_0x32c952['final']()]),_0x4d4fb7=new Float64Array(_0x25d7ea[_0x35e247(-0x10a,-0x10a)],_0x25d7ea['byteOffset'],_0x36a3e5[_0x35e247(-0xf7,-0x112)](_0x25d7ea['byteLength'],Float64Array[_0x35e247(-0x107,-0x116)+_0x35e247(-0x10b,-0x105)]));return Array[_0x237868(0x2b2,0x2b3)](_0x4d4fb7);}catch(_0x5e774a){if(_0x5e774a instanceof Error)throw new Error('임베딩\x20복호화\x20실패'+':\x20'+_0x5e774a[_0x237868(0x2c0,0x2bc)]);throw _0x5e774a;}}export function isValidEncryptedPayload(_0x4c85e4){const _0x684929={'Imyje':function(_0x34f23e,_0x1e658d){return _0x34f23e!==_0x1e658d;},'LWwWO':function(_0x2c116a,_0x244e55){return _0x2c116a===_0x244e55;},'hPMyI':'string'};if(_0x684929[_0x548c7b(0x310,0x31e)](typeof _0x4c85e4,_0x593a2c(0x403,0x3fa))||_0x4c85e4===null)return![];function _0x548c7b(_0x53ac23,_0x5e8eb4){return _0x11c957(_0x53ac23,_0x5e8eb4- -0x15f);}const _0x3148c8=_0x4c85e4;function _0x593a2c(_0x5d6e42,_0x46cb39){return _0x11c957(_0x5d6e42,_0x46cb39- -0x7c);}return _0x684929[_0x593a2c(0x3f2,0x3e7)](typeof _0x3148c8['ciphertext'],_0x684929[_0x548c7b(0x2ea,0x305)])&&_0x684929[_0x548c7b(0x319,0x304)](typeof _0x3148c8['iv'],_0x548c7b(0x325,0x31d))&&typeof _0x3148c8[_0x548c7b(0x316,0x312)]===_0x684929[_0x593a2c(0x3ff,0x3e8)];}export function wrapEncryptedContent(_0x5df09c){function _0x620bdf(_0x47ac72,_0x59e75b){return _0x11c957(_0x59e75b,_0x47ac72- -0x43f);}function _0x5b13f9(_0x1ca5db,_0x2d4a0b){return _0x11c957(_0x2d4a0b,_0x1ca5db- -0x31e);}return JSON[_0x620bdf(0x27,0x24)]({'encrypted':!![],'data':_0x5df09c['ciphertext'],'iv':_0x5df09c['iv'],'tag':_0x5df09c[_0x5b13f9(0x153,0x169)]});}export function unwrapEncryptedContent(_0xff4bce){const _0x5d230c={'RUnTy':function(_0x950a5f,_0x34ee88){return _0x950a5f!==_0x34ee88;},'gXDpH':function(_0x4b3357,_0x38bb60){return _0x4b3357===_0x38bb60;},'roFpT':'string','XWEUC':function(_0x3d1ae6,_0x2cea4f){return _0x3d1ae6===_0x2cea4f;},'YVlDW':_0x49444f(0x377,0x373),'RvLkK':function(_0x551db1,_0x500e41){return _0x551db1!==_0x500e41;}};function _0x4075bf(_0x52f24f,_0x2e9a56){return _0x11c957(_0x52f24f,_0x2e9a56- -0x3c6);}function _0x49444f(_0x292b05,_0x567e8c){return _0x11c957(_0x567e8c,_0x292b05- -0x107);}try{if(_0x5d230c[_0x4075bf(0xba,0xc7)](_0x5d230c['YVlDW'],_0x5d230c[_0x4075bf(0x77,0x8f)])){const _0x2c6a6b=JSON[_0x49444f(0x37e,0x379)](_0xff4bce);if(_0x5d230c[_0x49444f(0x359,0x33d)](_0x2c6a6b['encrypted'],!![]))return null;if(typeof _0x2c6a6b['data']!==_0x5d230c['roFpT']||_0x5d230c[_0x49444f(0x36d,0x36a)](typeof _0x2c6a6b['iv'],_0x4075bf(0xa5,0xb6))||typeof _0x2c6a6b['tag']!==_0x5d230c[_0x4075bf(0xbf,0xbb)])return null;return{'ciphertext':_0x2c6a6b[_0x4075bf(0xd1,0xbe)],'iv':_0x2c6a6b['iv'],'tag':_0x2c6a6b[_0x4075bf(0x9b,0xab)]};}else{if(ZnoQSD[_0x4075bf(0x9d,0xae)](typeof _0x5f32f7,_0x4075bf(0xa5,0xb0))||_0x3544ac===null)return![];const _0x49a944=_0x1b20dd;return ZnoQSD['gXDpH'](typeof _0x49a944['ciphertext'],_0x49444f(0x375,0x377))&&typeof _0x49a944['iv']===ZnoQSD[_0x49444f(0x37a,0x37f)]&&ZnoQSD[_0x49444f(0x374,0x381)](typeof _0x49a944[_0x49444f(0x36a,0x365)],ZnoQSD[_0x4075bf(0xb2,0xbb)]);}}catch{return null;}}
|
|
1
|
+
function _0x4036(_0x1baed7,_0x3beba7){_0x1baed7=_0x1baed7-0xe8;const _0x46bfeb=_0x46bf();let _0x4036fa=_0x46bfeb[_0x1baed7];if(_0x4036['opJcBL']===undefined){var _0x436766=function(_0x5a8382){const _0xab6c72='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x280c56='',_0xffaf64='';for(let _0x1a0c8a=0x0,_0x1fa3f0,_0x46a993,_0x384bab=0x0;_0x46a993=_0x5a8382['charAt'](_0x384bab++);~_0x46a993&&(_0x1fa3f0=_0x1a0c8a%0x4?_0x1fa3f0*0x40+_0x46a993:_0x46a993,_0x1a0c8a++%0x4)?_0x280c56+=String['fromCharCode'](0xff&_0x1fa3f0>>(-0x2*_0x1a0c8a&0x6)):0x0){_0x46a993=_0xab6c72['indexOf'](_0x46a993);}for(let _0x2efc67=0x0,_0x19afe3=_0x280c56['length'];_0x2efc67<_0x19afe3;_0x2efc67++){_0xffaf64+='%'+('00'+_0x280c56['charCodeAt'](_0x2efc67)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xffaf64);};_0x4036['uPmjHQ']=_0x436766,_0x4036['VohGEl']={},_0x4036['opJcBL']=!![];}const _0x4639ae=_0x46bfeb[0x0],_0x55a78a=_0x1baed7+_0x4639ae,_0x15d153=_0x4036['VohGEl'][_0x55a78a];return!_0x15d153?(_0x4036fa=_0x4036['uPmjHQ'](_0x4036fa),_0x4036['VohGEl'][_0x55a78a]=_0x4036fa):_0x4036fa=_0x15d153,_0x4036fa;}(function(_0x4adcfa,_0x2d99f1){function _0xafb01b(_0x350853,_0x593175){return _0x4036(_0x350853- -0x132,_0x593175);}const _0x141d4f=_0x4adcfa();function _0x5aeb80(_0x21ca17,_0x22eb6f){return _0x4036(_0x22eb6f-0x319,_0x21ca17);}while(!![]){try{const _0x1f563a=parseInt(_0x5aeb80(0x413,0x402))/0x1*(-parseInt(_0x5aeb80(0x405,0x40b))/0x2)+-parseInt(_0xafb01b(-0x46,-0x4d))/0x3*(-parseInt(_0xafb01b(-0x48,-0x37))/0x4)+parseInt(_0x5aeb80(0x3f5,0x406))/0x5+-parseInt(_0x5aeb80(0x44d,0x439))/0x6*(-parseInt(_0x5aeb80(0x436,0x440))/0x7)+-parseInt(_0x5aeb80(0x3f0,0x401))/0x8*(parseInt(_0xafb01b(-0x44,-0x3d))/0x9)+-parseInt(_0x5aeb80(0x425,0x41d))/0xa+-parseInt(_0x5aeb80(0x424,0x431))/0xb*(-parseInt(_0x5aeb80(0x43f,0x435))/0xc);if(_0x1f563a===_0x2d99f1)break;else _0x141d4f['push'](_0x141d4f['shift']());}catch(_0x568a18){_0x141d4f['push'](_0x141d4f['shift']());}}}(_0x46bf,0x90a4e));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM='aes-256-gc'+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST='sha512';export function generateEncryptionKey(){const _0x9b812b={'EYrAP':function(_0x16e05a,_0x3b8eec){return _0x16e05a(_0x3b8eec);}};return _0x9b812b['EYrAP'](randomBytes,KEY_LENGTH);}export function deriveKey(_0x5b0f11,_0x17b20b){const _0x366e24={'Bdnkj':function(_0x3c0d34,_0x5ea32c,_0x504148,_0x5bab61,_0x2cc7ad,_0x8329f7){return _0x3c0d34(_0x5ea32c,_0x504148,_0x5bab61,_0x2cc7ad,_0x8329f7);}},_0x3e6bc9=_0x17b20b??randomBytes(SALT_LENGTH),_0x40189b=_0x366e24['Bdnkj'](pbkdf2Sync,_0x5b0f11,_0x3e6bc9,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x40189b,'salt':_0x3e6bc9};}export function encryptContent(_0x1e1b39,_0x14f1d9){function _0x5cc4b0(_0x352d2e,_0x2b5e14){return _0x4036(_0x352d2e-0x7a,_0x2b5e14);}const _0x59d684={'PhPsA':function(_0x4d438c,_0x5882b8){return _0x4d438c!==_0x5882b8;},'uAOpB':function(_0x489863,_0x1488d3){return _0x489863(_0x1488d3);},'RrSRu':_0x5cc4b0(0x175,0x16d)};if(_0x59d684[_0x5cc4b0(0x173,0x16d)](_0x14f1d9[_0x5cc4b0(0x169,0x186)],KEY_LENGTH))throw new Error(_0x5cc4b0(0x184,0x188)+KEY_LENGTH+(_0x5cc4b0(0x197,0x1b0)+_0x5cc4b0(0x18b,0x19c))+_0x14f1d9[_0x83b7c9(0x37a,0x359)]+')');const _0x2b071f=_0x59d684[_0x83b7c9(0x3aa,0x39f)](randomBytes,IV_LENGTH),_0x3558ec=createCipheriv(ALGORITHM,_0x14f1d9,_0x2b071f),_0x5a6ca8=Buffer[_0x5cc4b0(0x18c,0x194)](_0x1e1b39,_0x83b7c9(0x3b1,0x3a6));function _0x83b7c9(_0x586960,_0x4c500a){return _0x4036(_0x586960-0x28b,_0x4c500a);}const _0x4ab44b=Buffer[_0x5cc4b0(0x16a,0x176)]([_0x3558ec[_0x5cc4b0(0x17d,0x166)](_0x5a6ca8),_0x3558ec[_0x5cc4b0(0x1a6,0x19b)]()]),_0x5b8b0e=_0x3558ec[_0x83b7c9(0x37e,0x37d)]();return{'ciphertext':_0x4ab44b[_0x5cc4b0(0x189,0x19c)](_0x59d684[_0x5cc4b0(0x185,0x163)]),'iv':_0x2b071f[_0x5cc4b0(0x189,0x17a)](_0x5cc4b0(0x175,0x154)),'tag':_0x5b8b0e[_0x83b7c9(0x39a,0x39c)](_0x59d684[_0x83b7c9(0x396,0x3ac)])};}export function decryptContent(_0x504b19,_0x3beb39){const _0x3d0136={'mybhB':function(_0x5beb39,_0x11ea13){return _0x5beb39!==_0x11ea13;},'deiNT':_0x23f4da(-0x80,-0x74),'MReLk':function(_0x2361ff,_0x470d55){return _0x2361ff instanceof _0x470d55;},'GfzRk':_0x23f4da(-0xa1,-0xb5)};if(_0x3d0136['mybhB'](_0x3beb39[_0x23f4da(-0xb7,-0xcd)],KEY_LENGTH))throw new Error(_0x23f4da(-0x9c,-0xa4)+KEY_LENGTH+(_0x2d823a(0x3be,0x39b)+_0x2d823a(0x36d,0x38f))+_0x3beb39[_0x23f4da(-0xb7,-0xbf)]+')');const _0x367c49=Buffer[_0x23f4da(-0x94,-0x9b)](_0x504b19['iv'],'base64'),_0x34224e=Buffer[_0x23f4da(-0x94,-0x96)](_0x504b19[_0x2d823a(0x3a5,0x386)],_0x23f4da(-0xab,-0xa4)),_0x59b919=Buffer[_0x2d823a(0x3a1,0x390)](_0x504b19[_0x23f4da(-0x98,-0xb9)],_0x2d823a(0x397,0x379)),_0x16b4c7=createDecipheriv(ALGORITHM,_0x3beb39,_0x367c49);function _0x2d823a(_0xeb8946,_0x503095){return _0x4036(_0x503095-0x27e,_0xeb8946);}_0x16b4c7['setAuthTag'](_0x59b919);function _0x23f4da(_0x5b81f4,_0x277e7b){return _0x4036(_0x5b81f4- -0x1a6,_0x277e7b);}try{const _0x28b8a4=Buffer['concat']([_0x16b4c7[_0x2d823a(0x3a1,0x381)](_0x34224e),_0x16b4c7[_0x23f4da(-0x7a,-0x6e)]()]);return _0x28b8a4[_0x23f4da(-0x97,-0xa2)](_0x3d0136[_0x2d823a(0x3bd,0x3a7)]);}catch(_0xccb743){if(_0x3d0136['MReLk'](_0xccb743,Error)){if(_0x3d0136[_0x2d823a(0x37f,0x394)]!==_0x2d823a(0x360,0x383))throw new _0x1fcf1f(_0x23f4da(-0x9c,-0xba)+_0x3445f4+(_0x23f4da(-0x89,-0x95)+_0x2d823a(0x380,0x38f))+_0x3fe88d[_0x23f4da(-0xb7,-0x94)]+')');else throw new Error(_0x23f4da(-0x84,-0x72)+_0xccb743[_0x2d823a(0x3b2,0x39f)]+(_0x2d823a(0x376,0x392)+_0x23f4da(-0xaa,-0x89)));}throw _0xccb743;}}export function encryptEmbedding(_0x53b491,_0x2c11d8){const _0xcaa689={'uxZed':function(_0x846d67,_0x2b52e2,_0x5c71f2,_0x3532ee){return _0x846d67(_0x2b52e2,_0x5c71f2,_0x3532ee);},'moCXT':_0x531c2f(-0x19,-0x39)},_0x59f7b4=new Float64Array(_0x53b491),_0xcb0afd=Buffer[_0x531c2f(-0x2,0x4)](_0x59f7b4[_0x531c2f(-0xb,0x13)]),_0x215aac=randomBytes(IV_LENGTH),_0x2174be=_0xcaa689['uxZed'](createCipheriv,ALGORITHM,_0x2c11d8,_0x215aac);function _0x18f732(_0x4b3b83,_0x334fb4){return _0x4036(_0x4b3b83-0x62,_0x334fb4);}const _0x5696ca=Buffer[_0x18f732(0x152,0x166)]([_0x2174be[_0x531c2f(-0x11,-0x7)](_0xcb0afd),_0x2174be[_0x18f732(0x18e,0x18a)]()]),_0x482064=_0x2174be[_0x18f732(0x155,0x161)]();function _0x531c2f(_0x3a4106,_0x2609f0){return _0x4036(_0x3a4106- -0x114,_0x2609f0);}const _0x477ee8=Buffer[_0x18f732(0x152,0x144)]([_0x215aac,_0x482064,_0x5696ca]);return _0x477ee8[_0x531c2f(-0x5,-0x14)](_0xcaa689['moCXT']);}function _0x46bf(){const _0x15cb63=['zgf0yq','ugHqC0e','rxPdEKG','yMfZzty0','ioUnSoYDTo2eScdRS4dSOBaP','C3rYAw5N','y1LYz0C','txLrqwm','z0H1C1u','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','BxvXEuO','DxbKyxrL','mZa2nJC3mfvnANDIzq','BvvvAw4','wM14ugi','B1zHs0e','y2LWAgvYDgv4Da','yNvMzMvY','7jwu7zI47zMuio2cPoUkLca','uNjtuNu','rhvkqxC','C3vIyxjYyxK','DgfN','Dg9tDhjPBMC','z21vDeW','64Ui64UKicJTMitSNQW6ia','zNjVBq','CxnKBKq','icJSNPJRQRVRKjWG7ykKioUyKoUkLa','qxzPvgi','r2z6uMS','CgfYC2u','ntmYndK5z0Tzzef2','qxrWv1m','C2v0qxv0AfrHzW','CffWrNu','mJa0u2T3DNrT','igj5DgvZ7jES7jw8io2vQq','D1Piwhu','DufpCei','mtiYmJHIr0fMtuu','BwvZC2fNzq','67o17zI47zMuioYlPo2mQdOG','Agjlv3q','rKTcsNC','7jwu7zI47zMu65cCioYEHoUYOoUuQsdRJBa','DxrMltG','nda2CwrODKjx','B2jQzwn0','zgvPtLq','zw5JCNLWDgvK','yNL0zuXLBMD0Aa','zMLUywW','ruPqCwO','ogjeD0LisG','mtDSBMLjt1O','mJruseLWEvO','ruXftuvova','mJqYmJaYu0PYsuHq','nti3otm3mfjPCM5cAG','nJq5nty1mxzIqxvIza','BgvUz3rO','y29Uy2f0','yNL0zu9MzNnLDa','mtaXmJqYB1bkCeXT','z2v0qxv0AfrHzW','wKDdsum','D1PruK4','C3rYAw5NAwz5','rwr6BNy'];_0x46bf=function(){return _0x15cb63;};return _0x46bf();}export function decryptEmbedding(_0x10f6b6,_0x27be73){function _0x85d5f6(_0x45c7c5,_0x5da67e){return _0x4036(_0x45c7c5-0x1c0,_0x5da67e);}const _0x5c79e6={'ZGCIC':_0x85d5f6(0x2e8,0x2df),'huAhu':function(_0x13285c,_0x5ec1e3){return _0x13285c===_0x5ec1e3;},'MyQAc':_0x85d5f6(0x2bd,0x2d0),'Edznv':function(_0x1af6b0,_0x5cf2b1){return _0x1af6b0===_0x5cf2b1;},'hbKWt':function(_0xd3915a,_0x18e2b5){return _0xd3915a(_0x18e2b5);},'gmUtL':function(_0x176710,_0x808e3){return _0x176710+_0x808e3;},'pQpFu':_0x85d5f6(0x2e5,0x2db)+'이터가\x20너무\x20짧습니'+'다','EJPqj':_0x85d5f6(0x2ba,0x2b0),'FKBJw':function(_0x5ad486,_0x1e4965){return _0x5ad486!==_0x1e4965;},'qsdnD':function(_0x3cbe3a,_0x3d80c1){return _0x3cbe3a instanceof _0x3d80c1;},'AtpWS':function(_0x596dbe,_0x4f3a45){return _0x596dbe!==_0x4f3a45;},'oVaKA':_0x85d5f6(0x2c6,0x2b5)},_0x58cc18=Buffer[_0x221aa9(0x49b,0x4b2)](_0x10f6b6,_0x221aa9(0x49e,0x49b));if(_0x58cc18['length']<_0x5c79e6[_0x221aa9(0x4cb,0x4b0)](IV_LENGTH,TAG_LENGTH))throw new Error(_0x5c79e6[_0x221aa9(0x4dd,0x4bb)]);const _0x1b946d=_0x58cc18[_0x85d5f6(0x2cd,0x2d0)](0x0,IV_LENGTH),_0x5b37fd=_0x58cc18[_0x221aa9(0x495,0x4ad)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x3abdf5=_0x58cc18['subarray'](IV_LENGTH+TAG_LENGTH),_0x44f349=createDecipheriv(ALGORITHM,_0x27be73,_0x1b946d);_0x44f349[_0x85d5f6(0x2da,0x2c7)](_0x5b37fd);function _0x221aa9(_0xac4250,_0x9ca5ca){return _0x4036(_0x9ca5ca-0x3a0,_0xac4250);}try{if('fKuCs'===_0x5c79e6[_0x221aa9(0x4c5,0x4cd)]){if(typeof _0x49c052!==_0x5c79e6[_0x85d5f6(0x2b4,0x2b3)]||_0x5c79e6['huAhu'](_0x30aa50,null))return![];const _0x551724=_0x3619db;return typeof _0x551724[_0x221aa9(0x4b2,0x4a8)]===_0x221aa9(0x4aa,0x49d)&&typeof _0x551724['iv']===_0x5c79e6[_0x85d5f6(0x2bf,0x2b7)]&&_0x5c79e6[_0x85d5f6(0x2b7,0x2d9)](typeof _0x551724[_0x85d5f6(0x2ce,0x2be)],_0x5c79e6[_0x221aa9(0x48e,0x49f)]);}else{const _0x41b234=Buffer[_0x85d5f6(0x2b0,0x293)]([_0x44f349[_0x85d5f6(0x2c3,0x2c5)](_0x3abdf5),_0x44f349[_0x85d5f6(0x2ec,0x2f0)]()]),_0x30e05c=new Float64Array(_0x41b234['buffer'],_0x41b234[_0x85d5f6(0x2b1,0x2ac)],_0x41b234[_0x221aa9(0x4b1,0x4cb)]/Float64Array['BYTES_PER_'+_0x85d5f6(0x2ab,0x291)]);return Array[_0x221aa9(0x49f,0x4b2)](_0x30e05c);}}catch(_0x43d4a5){if(_0x5c79e6[_0x85d5f6(0x2e4,0x2d0)](_0x85d5f6(0x2de,0x2bc),_0x85d5f6(0x2de,0x2f4))){const _0x15af75=_0x34fff3??QvkMzL[_0x85d5f6(0x2e3,0x2c9)](_0x177d16,_0x41e908),_0x7ef042=_0x4a44bf(_0x47b140,_0x15af75,_0x34176b,_0x56c1c1,_0x3b1b6a);return{'key':_0x7ef042,'salt':_0x15af75};}else{if(_0x5c79e6[_0x221aa9(0x4b4,0x4b3)](_0x43d4a5,Error)){if(_0x5c79e6[_0x85d5f6(0x2d9,0x2fc)](_0x5c79e6[_0x221aa9(0x4bd,0x4a7)],_0x221aa9(0x495,0x4a6)))throw new _0x885e12(_0x221aa9(0x4be,0x4a1)+':\x20'+_0x22b880[_0x85d5f6(0x2e1,0x2f0)]);else throw new Error(_0x221aa9(0x4bc,0x4a1)+':\x20'+_0x43d4a5['message']);}throw _0x43d4a5;}}}export function isValidEncryptedPayload(_0x4e34b1){const _0x13bc16={'DuJAw':function(_0x41415c,_0xee9650){return _0x41415c===_0xee9650;},'QJaRn':function(_0x156edc,_0x203a2c){return _0x156edc===_0x203a2c;},'wZQRN':_0x5c669b(0x301,0x323)};if(typeof _0x4e34b1!=='object'||_0x13bc16[_0xf8545e(0x67,0x4f)](_0x4e34b1,null))return![];function _0x5c669b(_0x3815dc,_0x18bdeb){return _0x4036(_0x3815dc-0x204,_0x18bdeb);}const _0x5704a5=_0x4e34b1;function _0xf8545e(_0x2f46fc,_0x32f06a){return _0x4036(_0x2f46fc- -0xa5,_0x32f06a);}return _0x13bc16['QJaRn'](typeof _0x5704a5[_0xf8545e(0x63,0x53)],'string')&&typeof _0x5704a5['iv']===_0x13bc16[_0xf8545e(0x50,0x38)]&&typeof _0x5704a5[_0xf8545e(0x69,0x60)]===_0x13bc16[_0x5c669b(0x2f9,0x2ed)];}export function wrapEncryptedContent(_0x461696){function _0x20ee67(_0x3cbb00,_0x5c8f27){return _0x4036(_0x5c8f27- -0x379,_0x3cbb00);}function _0x2bc6cc(_0x2c6571,_0x2664f3){return _0x4036(_0x2664f3- -0x30a,_0x2c6571);}return JSON[_0x2bc6cc(-0x222,-0x214)]({'encrypted':!![],'data':_0x461696[_0x20ee67(-0x28e,-0x271)],'iv':_0x461696['iv'],'tag':_0x461696['tag']});}export function unwrapEncryptedContent(_0x3b792d){const _0x116df3={'muqyJ':function(_0x446b2d,_0x26b3c6){return _0x446b2d!==_0x26b3c6;},'cYrgG':function(_0x212d24,_0x4e1145){return _0x212d24!==_0x4e1145;},'gHusU':'string','AviTb':function(_0x2fce25,_0x4b7919){return _0x2fce25!==_0x4b7919;}};function _0x2b4629(_0x4de08c,_0x1e68eb){return _0x4036(_0x1e68eb- -0x14a,_0x4de08c);}function _0x2c20ac(_0x1f5fef,_0x14a387){return _0x4036(_0x1f5fef-0x235,_0x14a387);}try{const _0x558116=JSON[_0x2c20ac(0x34c,0x361)](_0x3b792d);if(_0x116df3[_0x2c20ac(0x337,0x34f)](_0x558116[_0x2c20ac(0x35f,0x36c)],!![]))return null;if(_0x116df3[_0x2b4629(-0x55,-0x4c)](typeof _0x558116[_0x2c20ac(0x32d,0x342)],_0x116df3[_0x2b4629(-0x47,-0x4a)])||typeof _0x558116['iv']!==_0x116df3[_0x2b4629(-0x37,-0x4a)]||_0x116df3[_0x2c20ac(0x34a,0x327)](typeof _0x558116[_0x2c20ac(0x343,0x341)],'string'))return null;return{'ciphertext':_0x558116[_0x2c20ac(0x32d,0x30f)],'iv':_0x558116['iv'],'tag':_0x558116[_0x2b4629(-0x1d,-0x3c)]};}catch{return null;}}
|
package/dist/sync/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4986eb,_0x2cd52a){function _0x43ce48(_0x5c7616,_0x5bb394){return _0x46fc(_0x5bb394-0x1f2,_0x5c7616);}var _0x4e9934=_0x4986eb();function _0x36fd1c(_0x15f32e,_0x24a2bc){return _0x46fc(_0x24a2bc-0x22c,_0x15f32e);}while(!![]){try{var _0x5f38ce=parseInt(_0x43ce48(0x277,0x27b))/0x1+parseInt(_0x36fd1c(0x2bc,0x2b7))/0x2+parseInt(_0x36fd1c(0x2bc,0x2bb))/0x3+-parseInt(_0x43ce48(0x27f,0x280))/0x4*(-parseInt(_0x43ce48(0x282,0x27e))/0x5)+-parseInt(_0x36fd1c(0x2b2,0x2b4))/0x6+-parseInt(_0x43ce48(0x27f,0x27f))/0x7+-parseInt(_0x43ce48(0x278,0x27c))/0x8*(parseInt(_0x36fd1c(0x2ba,0x2bc))/0x9);if(_0x5f38ce===_0x2cd52a)break;else _0x4e9934['push'](_0x4e9934['shift']());}catch(_0x4fcdb0){_0x4e9934['push'](_0x4e9934['shift']());}}}(_0xa2d1,0xdd4a8));function _0x46fc(_0x2b8e95,_0x143a1d){_0x2b8e95=_0x2b8e95-0x88;var _0xa2d1e7=_0xa2d1();var _0x46fc1c=_0xa2d1e7[_0x2b8e95];if(_0x46fc['Lqozct']===undefined){var _0x25dca9=function(_0x1528c2){var _0x36450e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x557377='',_0x5d2a6d='';for(var _0x41da78=0x0,_0x554532,_0x591f51,_0x69d5f9=0x0;_0x591f51=_0x1528c2['charAt'](_0x69d5f9++);~_0x591f51&&(_0x554532=_0x41da78%0x4?_0x554532*0x40+_0x591f51:_0x591f51,_0x41da78++%0x4)?_0x557377+=String['fromCharCode'](0xff&_0x554532>>(-0x2*_0x41da78&0x6)):0x0){_0x591f51=_0x36450e['indexOf'](_0x591f51);}for(var _0x2ceca6=0x0,_0x237e9a=_0x557377['length'];_0x2ceca6<_0x237e9a;_0x2ceca6++){_0x5d2a6d+='%'+('00'+_0x557377['charCodeAt'](_0x2ceca6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5d2a6d);};_0x46fc['aFuDWn']=_0x25dca9,_0x46fc['GvYpss']={},_0x46fc['Lqozct']=!![];}var _0x1e127d=_0xa2d1e7[0x0],_0x1c7efa=_0x2b8e95+_0x1e127d,_0x20ebdc=_0x46fc['GvYpss'][_0x1c7efa];return!_0x20ebdc?(_0x46fc1c=_0x46fc['aFuDWn'](_0x46fc1c),_0x46fc['GvYpss'][_0x1c7efa]=_0x46fc1c):_0x46fc1c=_0x20ebdc,_0x46fc1c;}export{A2AClient}from'./client.js';export{MemorySynchronizer}from'./synchronizer.js';function _0xa2d1(){var _0x3126e8=['mtm4mtmWogvqBvzMrW','mZKZodqYnvb2ANzsrG','nZm1nJu4tvP5z0vP','oenHrMnWra','ndi4nJCZmfbTtvDQvW','mJmZmJuYmwTbuvfmzq','otm3mda2ohjHA09zvW','mtCYoteWnwLdrxjtuG','odHSrwTTruq'];_0xa2d1=function(){return _0x3126e8;};return _0xa2d1();}export{SyncQueue,mapCategory,mapTier}from'./queue.js';export{LocalVectorClock}from'./vector-clock.js';export{TeamSynchronizer}from'./team-synchronizer.js';export{SyncScheduler}from'./scheduler.js';export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
|
package/dist/sync/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1c3085,_0x53790e){function _0x564c60(_0x215c74,_0x36366f){return _0x430d(_0x36366f- -0x2a6,_0x215c74);}function _0x19d319(_0x1bfa8f,_0x499698){return _0x430d(_0x499698-0x184,_0x1bfa8f);}const _0x1e7f44=_0x1c3085();while(!![]){try{const _0x5d8ccb=parseInt(_0x19d319(0x2c3,0x2eb))/0x1+-parseInt(_0x564c60(-0x160,-0x15e))/0x2*(parseInt(_0x19d319(0x2da,0x2e4))/0x3)+-parseInt(_0x19d319(0x314,0x2e3))/0x4+-parseInt(_0x564c60(-0x13e,-0x165))/0x5+parseInt(_0x19d319(0x2c7,0x2d1))/0x6*(parseInt(_0x19d319(0x2ad,0x2d0))/0x7)+-parseInt(_0x564c60(-0x10c,-0x13d))/0x8+parseInt(_0x19d319(0x2d0,0x2cd))/0x9;if(_0x5d8ccb===_0x53790e)break;else _0x1e7f44['push'](_0x1e7f44['shift']());}catch(_0x3ed994){_0x1e7f44['push'](_0x1e7f44['shift']());}}}(_0x1812,0xad534));import{createHash}from'node:crypto';const CATEGORY_MAP={'preference':'convention','rule':'convention'};function _0xaa176a(_0x34b8cc,_0xe46235){return _0x430d(_0x34b8cc- -0xd6,_0xe46235);}function _0x430d(_0x4f7eb8,_0x259136){_0x4f7eb8=_0x4f7eb8-0x10c;const _0x18127a=_0x1812();let _0x430d3b=_0x18127a[_0x4f7eb8];if(_0x430d['JShqmZ']===undefined){var _0x56c9cf=function(_0x36168a){const _0x5bbd27='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36d3c9='',_0x340d76='';for(let _0x56293e=0x0,_0x570c00,_0x33b0ee,_0x1cf062=0x0;_0x33b0ee=_0x36168a['charAt'](_0x1cf062++);~_0x33b0ee&&(_0x570c00=_0x56293e%0x4?_0x570c00*0x40+_0x33b0ee:_0x33b0ee,_0x56293e++%0x4)?_0x36d3c9+=String['fromCharCode'](0xff&_0x570c00>>(-0x2*_0x56293e&0x6)):0x0){_0x33b0ee=_0x5bbd27['indexOf'](_0x33b0ee);}for(let _0x3400a1=0x0,_0x2271aa=_0x36d3c9['length'];_0x3400a1<_0x2271aa;_0x3400a1++){_0x340d76+='%'+('00'+_0x36d3c9['charCodeAt'](_0x3400a1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x340d76);};_0x430d['qJvNSh']=_0x56c9cf,_0x430d['YFZJqR']={},_0x430d['JShqmZ']=!![];}const _0x137890=_0x18127a[0x0],_0x5bd9be=_0x4f7eb8+_0x137890,_0x45b315=_0x430d['YFZJqR'][_0x5bd9be];return!_0x45b315?(_0x430d3b=_0x430d['qJvNSh'](_0x430d3b),_0x430d['YFZJqR'][_0x5bd9be]=_0x430d3b):_0x430d3b=_0x45b315,_0x430d3b;}const TIER_MAP={'procedural':_0x1f05a9(-0x2d0,-0x2a7)};function _0x1812(){const _0x2f168e=['CgvUzgLUzW','reHYtgK','BgvUz3rO','CxvHBgL0EvnJBW','D0XQEuq','zMfPBgvK','C2HHmJu2','CM91BMq','C3vIC3rYAw5N','BwvZC2fNzq','6Rg0ioYEKoUpMsbYzxnLDa','A0Tluu4','tM90iezVDw5K','C2vTyw50Awm','zMLSDgvY','Dgvjza','6RcCignOAwXKiokaLca','y2XPzw50','BM90igzVDw5K','nda0','AwrZ','zxjYB3jZ','y2H1BMTuB3rHBa','AMz4qwq','DgLLCG','Agv4','y3jLyxrLzef0','z2v0vw5ZEw5Jzq','C2v0','CMvTB3rLswq','z2v0u3LUy1n0yq','zgLNzxn0','CMLLC0jHDgnO','AvbwD1G','icJRI6tSNyWGzMX1C2G','q291BNq','y2H1BMTjBMrLEa','B25Lu3LUy2vK','7yoa7j6e7jwe7jUdoIa','ANHqBuC','DhvZ','C3LUy2vKsxrLBq','u3LUy01LBw9YAq','7ikT7kcCioYlPo2mQcaO','BM93','BwfYA1rVBwjZDa','DNPKs2G','DKjWtfa','DxbKyxrL','C2JSL5dSHjWG7j6SChvZAa','BwfW','ELPgCKi','y2f0zwDVCNK','nJe0mZC0nvPQrwHhyW','C2v0u3LUy1n0yq','Bg16DKi','y3jLyxrLtwvTBW','Dg9mB3DLCKnHCW','u05zuvy','q1Lgq20','ntziwNbtz0q','mJK0nZG4nJfkCNzWv3y','ktOG','Aw5JBhvKzxm','mtaWodDZzufuze4','ndqYmNPNsxbNsa','AgfZ','Bwf0y2G','vePsB28','7zAjihbLBMrPBMCG','t0f0Buu','ALPbBu4','y29UDgvUDa','zfrVBwjZDg9Uzq','DgfNCW','C2L6zq','C3LUy2vK','DgLTzw91De1Z','zMPiyuy','zMX1C2HuB21ICW','BNqG','7jEq7isCioYERoYlNoUpHcK','ExPfzxy','ntq3nJCYnhnNs25kvW','otuWnZbfCeTsvvG','BgXYDLm','ChvZAgvK','zhvYyxrPB24','BwvTB3j5swq','ChvZAejHDgnOzq','zw5XDwv1zq','odGXntaXq01jqvzy','ChvZAa','ode5mda1nLbJB0vdtW','CgfYzw50swq','Evn0ywXLuMvTBW','tuzIAva','z2v0','z2v0ugvUzgLUzW','CgfYzw50ihjLBq','CMvZzxrtEw5JqG'];_0x1812=function(){return _0x2f168e;};return _0x1812();}export function mapCategory(_0x959e39){return CATEGORY_MAP[_0x959e39]??_0x959e39;}export function mapTier(_0x37e324){return TIER_MAP[_0x37e324]??_0x37e324;}function _0x1f05a9(_0x4f62d4,_0x5e9542){return _0x430d(_0x5e9542- -0x3c0,_0x4f62d4);}function computeContentHash(_0x5bc2a8){function _0x15e9d0(_0xe1e6fa,_0x57a3b4){return _0x1f05a9(_0xe1e6fa,_0x57a3b4-0x68);}function _0x486cc2(_0x1c0132,_0x4979ef){return _0x1f05a9(_0x4979ef,_0x1c0132-0x2e8);}const _0x2f9657={'yzEev':_0x15e9d0(-0x255,-0x246)};return createHash(_0x2f9657[_0x486cc2(0x86,0x7a)])[_0x486cc2(0x64,0x7c)](_0x5bc2a8['trim']()[_0x15e9d0(-0x21d,-0x213)+'e']())[_0x15e9d0(-0x21f,-0x22d)](_0x486cc2(0x4d,0x67))[_0x15e9d0(-0x24b,-0x244)](0x0,0x10);}export class SyncQueue{['db'];['client'];constructor(_0x44376b,_0x2ff570){function _0x57cd95(_0x21e722,_0x3b9494){return _0x1f05a9(_0x21e722,_0x3b9494-0x752);}this['db']=_0x44376b,this[_0x57cd95(0x480,0x4af)]=_0x2ff570;}[_0x1f05a9(-0x23f,-0x25a)](_0x2d5464){function _0x382637(_0x229df6,_0x5a745e){return _0xaa176a(_0x5a745e-0x1c3,_0x229df6);}function _0x14a7e4(_0xb39f79,_0x5c1044){return _0xaa176a(_0x5c1044- -0x20d,_0xb39f79);}this['db']['setSyncSta'+_0x382637(0x229,0x221)](_0x2d5464,null,_0x382637(0x1d9,0x1f9));}async['flush'](_0x4655ea){function _0x108886(_0x5bca85,_0xbecf99){return _0xaa176a(_0x5bca85-0x46f,_0xbecf99);}const _0x3d1b75={'jxPmG':'synced','iPVwX':function(_0x3b021c,_0x522847){return _0x3b021c===_0x522847;},'lmzvB':function(_0x87b688,_0x71a8cf){return _0x87b688!==_0x71a8cf;},'zZFrB':function(_0xb24414,_0x396e3d){return _0xb24414-_0x396e3d;}},_0x55bd5c=Date['now'](),_0x2efd7a=_0x4655ea?.[_0x328ba1(0x3bc,0x391)]??0x493e0,_0x20c7c0={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x352734=0x64,_0x1eefdb=this['db'][_0x328ba1(0x3d1,0x3da)+'SyncMemori'+'es']();if(_0x1eefdb[_0x328ba1(0x371,0x354)]===0x0)return _0x20c7c0[_0x108886(0x4fc,0x50b)]=Date[_0x108886(0x4d1,0x4a6)]()-_0x55bd5c,_0x20c7c0;const _0x3a45d1=new Map(),_0x33ccd5=_0x1eefdb[_0x108886(0x4b3,0x4cc)](_0x779e2d=>{function _0xf2a007(_0x4f1124,_0x4a3125){return _0x328ba1(_0x4a3125- -0x358,_0x4f1124);}const _0x3ce261=computeContentHash(_0x779e2d[_0xf2a007(0x4b,0x5f)]);if(_0x3a45d1[_0xf2a007(0x28,0x59)](_0x3ce261))return this['db'][_0x56d3ce(-0x43,-0x64)+_0x56d3ce(-0x9f,-0x72)](_0x779e2d['id'],null,_0x3d1b75[_0x56d3ce(-0xa2,-0x73)]),![];_0x3a45d1[_0xf2a007(0x4e,0x33)](_0x3ce261,_0x779e2d['id']);function _0x56d3ce(_0x529688,_0x438a45){return _0x328ba1(_0x438a45- -0x409,_0x529688);}return!![];}),_0x10f359=_0x33ccd5[_0x328ba1(0x37d,0x364)](_0x5477ab=>!_0x5477ab[_0x108886(0x503,0x4ea)]),_0x16e2fc=_0x33ccd5[_0x328ba1(0x37d,0x34d)](_0x16ff7b=>!!_0x16ff7b[_0x328ba1(0x3cd,0x3ba)]),_0x53c368=new Map();for(const _0x35f9b8 of _0x16e2fc){if(_0x35f9b8[_0x108886(0x503,0x507)]&&!_0x53c368[_0x108886(0x4e7,0x4ed)](_0x35f9b8[_0x108886(0x503,0x4e0)])){const _0x469079=this['db']['getSyncSta'+_0x328ba1(0x397,0x39a)](_0x35f9b8[_0x108886(0x503,0x4e6)]);_0x469079?.[_0x328ba1(0x38c,0x3aa)]&&_0x53c368[_0x328ba1(0x38b,0x3a8)](_0x35f9b8[_0x108886(0x503,0x519)],_0x469079[_0x328ba1(0x38c,0x397)]);}}await this[_0x108886(0x4fe,0x4fb)+'s'](_0x10f359,_0x352734,_0x55bd5c,_0x2efd7a,_0x20c7c0,_0x53c368);if(_0x16e2fc['length']>0x0&&(_0x3d1b75[_0x328ba1(0x390,0x388)](_0x2efd7a,0x0)||Date[_0x328ba1(0x39b,0x378)]()-_0x55bd5c<_0x2efd7a)){const _0x538270=_0x16e2fc[_0x108886(0x4b3,0x4c6)](_0x26367c=>_0x53c368['has'](_0x26367c[_0x108886(0x503,0x4eb)])),_0x1bcc6a=_0x16e2fc[_0x328ba1(0x37d,0x381)](_0x57cf3c=>!_0x53c368[_0x328ba1(0x3b1,0x3a6)](_0x57cf3c[_0x108886(0x503,0x532)]));if(_0x1bcc6a['length']>0x0){if(_0x3d1b75[_0x328ba1(0x3a6,0x395)](_0x328ba1(0x39e,0x388),_0x328ba1(0x39e,0x3be))){const _0x55f2a3=_0x5639b5[_0x108886(0x4e8,0x4be)](_0x11d5dc);if(_0x55f2a3)_0x2dd087['add'](_0x55f2a3[0x1]);}else _0x20c7c0[_0x108886(0x4ba,0x4da)][_0x328ba1(0x3cb,0x3bf)](_0x1bcc6a['length']+(_0x328ba1(0x37f,0x3a1)+_0x328ba1(0x3d2,0x3af)+'ote_id\x20미확인'+_0x328ba1(0x391,0x389)+_0x328ba1(0x3c0,0x3eb)));}await this[_0x108886(0x4fe,0x4e8)+'s'](_0x538270,_0x352734,_0x55bd5c,_0x2efd7a,_0x20c7c0,_0x53c368);}_0x20c7c0['duration']=_0x3d1b75[_0x108886(0x4d8,0x4c9)](Date[_0x328ba1(0x39b,0x37a)](),_0x55bd5c);function _0x328ba1(_0x509d2f,_0x41ec6a){return _0xaa176a(_0x509d2f-0x339,_0x41ec6a);}return _0x20c7c0;}async[_0x1f05a9(-0x22c,-0x25b)+'s'](_0x48fed4,_0xfa1faa,_0x5c19e0,_0x1e8e16,_0x35a033,_0x5a5cb4){function _0x1e9900(_0xaec065,_0x3d3db3){return _0x1f05a9(_0xaec065,_0x3d3db3-0x6ee);}function _0x2e1093(_0x3f1080,_0x1fbc87){return _0x1f05a9(_0x3f1080,_0x1fbc87-0x31a);}const _0x4136ba={'wLjyD':function(_0x361381,_0x361e41){return _0x361381!==_0x361e41;},'MFbiP':function(_0x585fed,_0x4b74ad){return _0x585fed/_0x4b74ad;},'DHrLi':function(_0x95b188,_0x3027ad){return _0x95b188(_0x3027ad);},'fjHaF':function(_0x36d7ba,_0x33ada8){return _0x36d7ba===_0x33ada8;},'jZAmN':_0x1e9900(0x44e,0x451),'kidCo':_0x2e1093(0xc2,0xa1),'vzdKh':function(_0x243985,_0xd0ab06){return _0x243985-_0xd0ab06;},'OAtmE':function(_0x422f0a,_0x384c6){return _0x422f0a+_0x384c6;},'llrvS':function(_0x31791d,_0x40b0f4){return _0x31791d<_0x40b0f4;},'sxIjF':_0x2e1093(0xe3,0xb2),'kKKQN':function(_0x228cef,_0x163184){return _0x228cef>_0x163184;},'TJRoo':function(_0x4721f2,_0x131bc0){return _0x4721f2>_0x131bc0;},'SNYQV':function(_0x362d7f,_0x3bd26a){return _0x362d7f instanceof _0x3bd26a;}};for(let _0x1a92a8=0x0;_0x1a92a8<_0x48fed4[_0x2e1093(0x77,0x68)];_0x1a92a8+=_0xfa1faa){if(_0x1e8e16>0x0&&Date['now']()-_0x5c19e0>_0x1e8e16){if(_0x4136ba[_0x1e9900(0x4b9,0x488)](_0x4136ba[_0x2e1093(0x81,0xad)],_0x4136ba['kidCo'])){const _0x3eb45f=_0x4136ba[_0x2e1093(0x73,0x6a)](_0x1f6072['qualitySco'+'re'],_0x4de63f)?_0x4136ba[_0x2e1093(0xf8,0xc6)](_0x50879a[_0x1e9900(0x419,0x441)](_0x3e7103[_0x2e1093(0x4e,0x69)+'re']*0x3e8),0x3e8):_0x3bacbc;return _0x3704b9[_0x1e9900(0x426,0x456)](_0x311e50['id'],_0x3eb45f),{'content':_0xfbae36['content'],'category':_0x560a82(_0x4126fd[_0x2e1093(0xc2,0x9a)]),'tier':_0x4136ba[_0x2e1093(0x43,0x67)](_0x1e4858,_0x983b94[_0x2e1093(0x77,0x7e)]),'tags':_0x24743d[_0x2e1093(0xb5,0xb0)],'created_at':_0x1e3736['createdAt'],'parent_id':_0x481f43[_0x1e9900(0x480,0x498)]?_0x4c44ef[_0x2e1093(0xc9,0xc7)](_0xaabb77['parentId']):_0x164946,'chunk_index':_0x352ef1['chunkIndex']??_0x398f16,'chunk_total':_0x1aed21[_0x1e9900(0x43a,0x450)]??_0x20a71c,'quality_score':_0x3eb45f};}else{const _0x3c6cf4=_0x4136ba[_0x1e9900(0x47b,0x468)](_0x48fed4[_0x1e9900(0x43a,0x43c)],_0x1a92a8);_0x35a033[_0x1e9900(0x47b,0x44f)][_0x1e9900(0x4b6,0x496)](_0x1e9900(0x470,0x460)+_0x3c6cf4+'개\x20미처리'),_0x35a033['failed']+=_0x3c6cf4;break;}}const _0x8cf26e=_0x48fed4['slice'](_0x1a92a8,_0x4136ba[_0x1e9900(0x470,0x480)](_0x1a92a8,_0xfa1faa));try{const _0x3f19ae=new Map(),_0x47dd35=await this['client'][_0x2e1093(0xc0,0x9e)+_0x1e9900(0x47e,0x45a)](_0x8cf26e[_0x1e9900(0x463,0x46c)](_0x5d652d=>{function _0x67a7c5(_0x106a19,_0x489084){return _0x2e1093(_0x106a19,_0x489084- -0x266);}const _0x55b29e=_0x5d652d[_0x67a7c5(-0x1f7,-0x1fd)+'re']!==undefined?_0x4136ba[_0x4afc6d(0x45,0x4b)](Math[_0x4afc6d(-0x14,0x1e)](_0x5d652d[_0x67a7c5(-0x1fd,-0x1fd)+'re']*0x3e8),0x3e8):undefined;function _0x4afc6d(_0x2330c8,_0x358708){return _0x2e1093(_0x358708,_0x2330c8- -0x81);}return _0x3f19ae['set'](_0x5d652d['id'],_0x55b29e),{'content':_0x5d652d[_0x67a7c5(-0x1b7,-0x1b8)],'category':mapCategory(_0x5d652d['category']),'tier':_0x4136ba[_0x67a7c5(-0x22a,-0x1ff)](mapTier,_0x5d652d[_0x67a7c5(-0x1dd,-0x1e8)]),'tags':_0x5d652d[_0x4afc6d(0x2f,0x1d)],'created_at':_0x5d652d[_0x4afc6d(-0x1,0x2c)],'parent_id':_0x5d652d[_0x4afc6d(0x43,0x15)]?_0x5a5cb4['get'](_0x5d652d[_0x67a7c5(-0x1ba,-0x1a2)]):undefined,'chunk_index':_0x5d652d[_0x67a7c5(-0x1ab,-0x1dc)]??undefined,'chunk_total':_0x5d652d[_0x67a7c5(-0x202,-0x1ea)]??undefined,'quality_score':_0x55b29e};}));for(let _0x4e1fa5=0x0;_0x4136ba[_0x2e1093(0xd5,0xbb)](_0x4e1fa5,_0x47dd35[_0x2e1093(0x70,0x7a)][_0x2e1093(0x58,0x68)]);_0x4e1fa5++){if(_0x4e1fa5<_0x8cf26e[_0x2e1093(0x38,0x68)]&&_0x47dd35[_0x1e9900(0x460,0x44e)][_0x4e1fa5]){const _0x28fe6e=_0x8cf26e[_0x4e1fa5]['id'],_0x37ccb5=_0x3f19ae[_0x1e9900(0x48c,0x49b)](_0x28fe6e);if(_0x37ccb5!==undefined&&_0x8cf26e[_0x4e1fa5][_0x1e9900(0x412,0x43d)+'re']===undefined)try{this['db']['updateMemo'+'ry'](_0x28fe6e,{'qualityScore':_0x37ccb5});}catch{}this['db'][_0x1e9900(0x455,0x470)+_0x2e1093(0x97,0x8e)](_0x28fe6e,_0x47dd35[_0x2e1093(0x99,0x7a)][_0x4e1fa5],_0x4136ba['sxIjF']),_0x5a5cb4[_0x1e9900(0x43e,0x456)](_0x28fe6e,_0x47dd35[_0x1e9900(0x41e,0x44e)][_0x4e1fa5]),_0x35a033[_0x1e9900(0x48c,0x463)+'s']['push']({'localId':_0x28fe6e,'remoteId':_0x47dd35[_0x2e1093(0x8a,0x7a)][_0x4e1fa5]});}}_0x35a033[_0x1e9900(0x473,0x490)]+=_0x47dd35['created'],_0x35a033['failed']+=_0x47dd35[_0x1e9900(0x446,0x43f)];if(_0x4136ba[_0x1e9900(0x43c,0x445)](_0x47dd35[_0x2e1093(0x4a,0x7b)]['length'],0x0)){const _0x36431a=new Set(),_0x22a70b=/Parent memory not found:\s*parent_id\s*'([^']+)'/;for(const _0x3360b5 of _0x47dd35[_0x1e9900(0x461,0x44f)]){const _0x43408e=_0x3360b5['match'](_0x22a70b);if(_0x43408e)_0x36431a['add'](_0x43408e[0x1]);}if(_0x4136ba[_0x1e9900(0x496,0x47e)](_0x36431a[_0x1e9900(0x465,0x485)],0x0)){let _0x5a9e0d=0x0;for(const _0x37bbe6 of _0x36431a){_0x5a9e0d+=this['db'][_0x1e9900(0x4a5,0x49e)+_0x1e9900(0x4c7,0x499)+_0x1e9900(0x430,0x449)](_0x37bbe6);}_0x5a9e0d>0x0&&_0x35a033[_0x2e1093(0x4e,0x7b)]['push']('stale\x20pare'+_0x1e9900(0x487,0x48a)+_0x36431a[_0x2e1093(0xc7,0xb1)]+(_0x2e1093(0x62,0x70)+'\x20(')+_0x5a9e0d+(_0x1e9900(0x49b,0x47f)+'전환,\x20다음\x20flu'+_0x1e9900(0x476,0x46b)+')'));}_0x35a033[_0x2e1093(0x53,0x7b)][_0x2e1093(0xe8,0xc2)](..._0x47dd35[_0x1e9900(0x47d,0x44f)]);}}catch(_0x1a4d9d){_0x35a033[_0x1e9900(0x43a,0x44f)][_0x2e1093(0xa4,0xc2)]('배치\x20실패:\x20'+(_0x4136ba[_0x2e1093(0xa4,0xa0)](_0x1a4d9d,Error)?_0x1a4d9d[_0x1e9900(0x45c,0x443)]:String(_0x1a4d9d))),_0x35a033['failed']+=_0x8cf26e[_0x1e9900(0x42b,0x43c)];}}}async[_0xaa176a(0x85,0x93)+'tones'](){const _0x45ae89={'fRexE':function(_0x4d05c9,_0x160555){return _0x4d05c9(_0x160555);}};function _0xcd9412(_0x3a9e31,_0x28108a){return _0x1f05a9(_0x28108a,_0x3a9e31-0x6ed);}const _0x14112d=this['db'][_0xcd9412(0x454,0x44d)+_0x42200e(0x22a,0x214)+'s']();let _0x2d1dd6=0x0;const _0xf5a13e=[];for(const _0x5a1ede of _0x14112d){const _0x42e06e=this['db'][_0x42200e(0x200,0x1e9)+'tus'](_0x5a1ede[_0xcd9412(0x491,0x4b7)]);if(!_0x42e06e?.['remoteId']){this['db'][_0x42200e(0x1e1,0x1f8)+_0x42200e(0x1e1,0x1f0)](_0x5a1ede[_0xcd9412(0x491,0x471)]);continue;}try{await this['client']['deleteMemo'+'ry'](_0x42e06e['remoteId']),this['db']['markTombst'+_0xcd9412(0x45e,0x460)](_0x5a1ede[_0x42200e(0x24a,0x223)]),_0x2d1dd6++;}catch(_0x46df1f){const _0x279d45=_0x46df1f instanceof Error?_0x46df1f['message']:_0x45ae89['fRexE'](String,_0x46df1f);_0x279d45[_0xcd9412(0x478,0x453)](_0x42200e(0x1f8,0x1de))||_0x279d45[_0xcd9412(0x478,0x45f)](_0x42200e(0x1cc,0x1dd))||_0x279d45[_0xcd9412(0x478,0x44f)](_0x42200e(0x1b9,0x1d7))?(this['db'][_0xcd9412(0x466,0x455)+_0xcd9412(0x45e,0x464)](_0x5a1ede[_0xcd9412(0x491,0x480)]),_0x2d1dd6++):_0xf5a13e[_0xcd9412(0x495,0x4bb)](_0xcd9412(0x464,0x45b)+_0x5a1ede[_0x42200e(0x256,0x223)]+_0x42200e(0x1df,0x209)+_0x279d45);}}function _0x42200e(_0x48dec7,_0x4d785d){return _0x1f05a9(_0x48dec7,_0x4d785d-0x47f);}return{'deleted':_0x2d1dd6,'errors':_0xf5a13e};}[_0x1f05a9(-0x24c,-0x252)+_0x1f05a9(-0x2a0,-0x291)](){function _0x3eb4e3(_0xaf4312,_0x51eeb2){return _0x1f05a9(_0xaf4312,_0x51eeb2-0x38);}function _0xb08a77(_0x19e35b,_0x204337){return _0x1f05a9(_0x19e35b,_0x204337-0x425);}return this['db'][_0xb08a77(0x201,0x1d3)+_0x3eb4e3(-0x26b,-0x252)+'es']()[_0x3eb4e3(-0x2a6,-0x27a)];}}
|
|
1
|
+
(function(_0x2812bf,_0x28eb19){function _0x38b0cc(_0x4c4c26,_0x4f1688){return _0x4893(_0x4c4c26- -0xa3,_0x4f1688);}const _0x3c9622=_0x2812bf();function _0x3a06c4(_0x3f2903,_0x1f3500){return _0x4893(_0x3f2903-0x321,_0x1f3500);}while(!![]){try{const _0x383c79=parseInt(_0x38b0cc(0x103,0xcd))/0x1+-parseInt(_0x3a06c4(0x4aa,0x48e))/0x2*(-parseInt(_0x3a06c4(0x487,0x4ad))/0x3)+-parseInt(_0x3a06c4(0x4af,0x49c))/0x4+parseInt(_0x3a06c4(0x49b,0x493))/0x5+parseInt(_0x38b0cc(0x10a,0x122))/0x6+parseInt(_0x3a06c4(0x4b1,0x4cb))/0x7*(parseInt(_0x3a06c4(0x4c9,0x4a4))/0x8)+-parseInt(_0x38b0cc(0x118,0xed))/0x9;if(_0x383c79===_0x28eb19)break;else _0x3c9622['push'](_0x3c9622['shift']());}catch(_0x276114){_0x3c9622['push'](_0x3c9622['shift']());}}}(_0x4f8b,0x9bcab));import{createHash}from'node:crypto';const CATEGORY_MAP={'preference':_0x45cce9(0x566,0x55f),'rule':_0x45cce9(0x566,0x577)};function _0x45cce9(_0x4ca557,_0xad448d){return _0x4893(_0x4ca557-0x3ba,_0xad448d);}function _0x13d0b9(_0x46a954,_0x2cc46e){return _0x4893(_0x46a954-0x6d,_0x2cc46e);}const TIER_MAP={'procedural':_0x13d0b9(0x1ce,0x1cc)};export function mapCategory(_0x50d50d){return CATEGORY_MAP[_0x50d50d]??_0x50d50d;}function _0x4f8b(){const _0x416e44=['C2HHmJu2','tKPSBeq','y29UDMvUDgLVBG','mJGZnZKZnhDlsunsta','Dgvjza','nda0','zxjYB3jZ','CgfYzw50swq','y3jLyxrLzef0','C2L6zq','BM93','t0nYrMu','su54Ewu','Bhjrtum','BNqG','tNjXt08','z2v0u3LUy1n0yq','mJi0oda4ntD5yMTdv1y','ktOG','zMX1C2G','CvfXBeS','C3rHBguGCgfYzq','q291BNq','C3vIC3rYAw5N','6Rg0ioYEKoUpMsbYzxnLDa','7ikT7kcCioYlPo2mQcaO','BxjHCxe','DgLLCG','DhvZ','DKzQvxO','ywrK','DgfNCW','7jEq7isCioYERoYlNoUpHcK','BwfYA1rVBwjZDa','q0rcvxq','6RcCignOAwXKiokaLca','C2vTyw50Awm','CgfYzw50ihjLBq','zMLSDgvY','s2T6Chu','y2f0zwDVCNK','mte4mZuZmeL2yKj6DW','u3LUy01LBw9YAq','Dg9Uzxm','z2v0ugvUzgLUzW','tM90iezVDw5K','Aw5JBhvKzxm','twTqrw4','zMfPBgvK','z2v0vw5ZEw5Jzq','ChvZAejHDgnOzq','DxbKyxrLtwvTBW','zeLyswK','C2JSL5dSHjWG7j6SChvZAa','u2v3y2y','u0nOt0K','C2v0','zhvYyxrPB24','Bwf0y2G','AwrZ','EMLACui','ntuYotiZnvDwsu1ura','AKHnDfa','t3LxC1u','zfrVBwjZDg9Uzq','AgfZ','Evn0ywXLuMvTBW','svfkA1q','y3jLyxrLtwvTBW','BgvUz3rO','y29UDgvUDa','zgvSzxrLtwvTBW','BwvTB3j5swq','7kce7zMylcdRI6tSNyWGzMX1','y2H1BMTjBMrLEa','v0XvwLq','mNj1BfrAqq','B3rLx2LKioUVUo2zLEYDUa','y2XPzw50','wunfswu','67cW7lMyioYlPo2mQdOG','mJGZmZa4mePzDujPCW','DxbKyxrL','mtmZzNHUsvLY','C3LUy2vK','CMLLC0jHDgnO','ChvZAgvK','7zAjihbLBMrPBMCG','CMvZzxrtEw5JqG','CxvHBgL0EvnJBW','CM91BMq','ChvZAa','Awfqwvm','vwvRELi','zw5XDwv1zq','6RcCioUVUoYYMoUMRa','icJRI6tSNyWGzMX1C2G','CMvTB3rLswq','C2v0u3LUy1n0yq','y2H1BMTuB3rHBa','zMX1C2HuB21ICW','B25Lu3LUy2vK','q2juCMS','C2XPy2u','C3LUy2vKsxrLBq','mte0mZm3mLPVs0X0CG','wMv5BNO','mZa2mZm2DgPnB1PQ','D3LqCNu'];_0x4f8b=function(){return _0x416e44;};return _0x4f8b();}function _0x4893(_0x25bfb2,_0x25e832){_0x25bfb2=_0x25bfb2-0x15b;const _0x4f8b93=_0x4f8b();let _0x489329=_0x4f8b93[_0x25bfb2];if(_0x4893['YuVnlL']===undefined){var _0x3bcf91=function(_0x1fd6d3){const _0x4755e0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22befc='',_0x3e86f4='';for(let _0x282389=0x0,_0x4b6fe5,_0x2fbf4f,_0x1f21d5=0x0;_0x2fbf4f=_0x1fd6d3['charAt'](_0x1f21d5++);~_0x2fbf4f&&(_0x4b6fe5=_0x282389%0x4?_0x4b6fe5*0x40+_0x2fbf4f:_0x2fbf4f,_0x282389++%0x4)?_0x22befc+=String['fromCharCode'](0xff&_0x4b6fe5>>(-0x2*_0x282389&0x6)):0x0){_0x2fbf4f=_0x4755e0['indexOf'](_0x2fbf4f);}for(let _0x3d521d=0x0,_0x22d72f=_0x22befc['length'];_0x3d521d<_0x22d72f;_0x3d521d++){_0x3e86f4+='%'+('00'+_0x22befc['charCodeAt'](_0x3d521d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e86f4);};_0x4893['jqRGSr']=_0x3bcf91,_0x4893['wUqJQc']={},_0x4893['YuVnlL']=!![];}const _0x314dcb=_0x4f8b93[0x0],_0x122025=_0x25bfb2+_0x314dcb,_0x1c351c=_0x4893['wUqJQc'][_0x122025];return!_0x1c351c?(_0x489329=_0x4893['jqRGSr'](_0x489329),_0x4893['wUqJQc'][_0x122025]=_0x489329):_0x489329=_0x1c351c,_0x489329;}export function mapTier(_0x31b93d){return TIER_MAP[_0x31b93d]??_0x31b93d;}function computeContentHash(_0x383801){const _0x30f4d1={'MkPEn':_0x4f66c2(0x65,0x87)};function _0x38353f(_0x1679a5,_0x443f73){return _0x13d0b9(_0x443f73- -0x42e,_0x1679a5);}function _0x4f66c2(_0x2535b4,_0x126a58){return _0x13d0b9(_0x2535b4- -0x1b2,_0x126a58);}return createHash(_0x30f4d1[_0x4f66c2(0x27,0x41)])[_0x38353f(-0x268,-0x232)](_0x383801['trim']()['toLowerCas'+'e']())['digest']('hex')[_0x4f66c2(0x7c,0xa6)](0x0,0x10);}export class SyncQueue{['db'];[_0x45cce9(0x545,0x542)];constructor(_0x2ce967,_0xdecf28){this['db']=_0x2ce967;function _0x5dfcc6(_0x12882c,_0x28ba2f){return _0x45cce9(_0x12882c- -0x3d2,_0x28ba2f);}this[_0x5dfcc6(0x173,0x189)]=_0xdecf28;}[_0x13d0b9(0x208,0x218)](_0x37b0b8){const _0x5f338f={'WSTaj':'pending'};function _0x450da5(_0x4657cd,_0x583590){return _0x13d0b9(_0x4657cd-0x147,_0x583590);}function _0x4bebe4(_0x59a5b3,_0x410148){return _0x13d0b9(_0x410148-0x1e3,_0x59a5b3);}this['db'][_0x4bebe4(0x3ef,0x3ef)+_0x450da5(0x37a,0x3a0)](_0x37b0b8,null,_0x5f338f['WSTaj']);}async[_0x13d0b9(0x22a,0x20e)](_0x11a73d){const _0x2c48c3={'Sewcf':function(_0x90b176,_0x26319a){return _0x90b176(_0x26319a);},'SChOI':function(_0x41ca1c,_0x47c06c){return _0x41ca1c-_0x47c06c;},'wyPru':function(_0x559ccd,_0x4841d7){return _0x559ccd===_0x4841d7;},'OCrFe':function(_0x1041b2,_0x208e2f){return _0x1041b2<_0x208e2f;},'UekzR':'huyoc'},_0x274548=Date[_0x26ceab(-0xdb,-0xbc)]();function _0x244111(_0x496c37,_0x3244d2){return _0x13d0b9(_0x496c37-0x3e,_0x3244d2);}const _0x342313=_0x11a73d?.['timeoutMs']??0x493e0,_0x45f396={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x4b3750=0x64,_0x4f826e=this['db'][_0x26ceab(-0xf8,-0x107)+_0x26ceab(-0xe3,-0x109)+'es']();if(_0x4f826e[_0x244111(0x22d,0x203)]===0x0)return _0x45f396[_0x26ceab(-0x112,-0xfa)]=_0x2c48c3[_0x26ceab(-0x10a,-0xfc)](Date[_0x244111(0x25f,0x256)](),_0x274548),_0x45f396;const _0xa67600=new Map(),_0x72aab3=_0x4f826e['filter'](_0x4f7870=>{function _0x3e8d08(_0x410e3b,_0x1882a3){return _0x26ceab(_0x1882a3,_0x410e3b- -0xb5);}function _0x54d185(_0x4b8e9b,_0x1f69bc){return _0x26ceab(_0x4b8e9b,_0x1f69bc- -0x3a);}if(_0x3e8d08(-0x167,-0x186)!=='yQLdl'){const _0x26952d=_0x2c48c3[_0x54d185(-0x16c,-0x137)](computeContentHash,_0x4f7870[_0x54d185(-0x114,-0x127)]);if(_0xa67600['has'](_0x26952d))return this['db'][_0x54d185(-0x119,-0x10b)+_0x54d185(-0x11a,-0xe4)](_0x4f7870['id'],null,'synced'),![];return _0xa67600[_0x3e8d08(-0x1b0,-0x1c1)](_0x26952d,_0x4f7870['id']),!![];}else return _0x29100d['duration']=_0x54acf0['now']()-_0x5cf3a6,_0x36aedd;}),_0x289536=_0x72aab3[_0x244111(0x20e,0x1d8)](_0x10ff67=>!_0x10ff67[_0x244111(0x25c,0x28e)]),_0x135839=_0x72aab3['filter'](_0x2e1239=>!!_0x2e1239[_0x26ceab(-0xed,-0xbf)]),_0x1b51cf=new Map();for(const _0x3d3e97 of _0x135839){if(_0x3d3e97['parentId']&&!_0x1b51cf[_0x244111(0x229,0x251)](_0x3d3e97[_0x26ceab(-0xf1,-0xbf)])){const _0x3f9ea1=this['db']['getSyncSta'+_0x26ceab(-0xe1,-0xaa)](_0x3d3e97[_0x244111(0x25c,0x231)]);_0x3f9ea1?.[_0x244111(0x249,0x257)]&&_0x1b51cf[_0x26ceab(-0x108,-0xfb)](_0x3d3e97['parentId'],_0x3f9ea1['remoteId']);}}await this['pushBatche'+'s'](_0x289536,_0x4b3750,_0x274548,_0x342313,_0x45f396,_0x1b51cf);if(_0x135839['length']>0x0&&(_0x2c48c3[_0x244111(0x254,0x247)](_0x342313,0x0)||_0x2c48c3[_0x26ceab(-0xb8,-0xbb)](_0x2c48c3[_0x26ceab(-0x11c,-0xfc)](Date[_0x26ceab(-0xb4,-0xbc)](),_0x274548),_0x342313))){if(_0x2c48c3[_0x244111(0x245,0x218)]===_0x2c48c3[_0x244111(0x245,0x22e)]){const _0x22cf7c=_0x135839[_0x26ceab(-0xe2,-0x10d)](_0x275f78=>_0x1b51cf[_0x26ceab(-0xdf,-0xf2)](_0x275f78[_0x26ceab(-0x8e,-0xbf)])),_0x578e3b=_0x135839[_0x244111(0x20e,0x203)](_0x30d7e6=>!_0x1b51cf[_0x244111(0x229,0x237)](_0x30d7e6[_0x26ceab(-0xcd,-0xbf)]));_0x578e3b[_0x26ceab(-0xf0,-0xee)]>0x0&&_0x45f396[_0x244111(0x25b,0x249)][_0x26ceab(-0x10e,-0xd8)](_0x578e3b[_0x26ceab(-0x115,-0xee)]+(_0x26ceab(-0xe5,-0x110)+_0x244111(0x20d,0x22d)+_0x26ceab(-0xc8,-0xe6)+_0x244111(0x248,0x22a)+'에서\x20재시도)')),await this[_0x244111(0x21a,0x239)+'s'](_0x22cf7c,_0x4b3750,_0x274548,_0x342313,_0x45f396,_0x1b51cf);}else this['db']['updateMemo'+'ry'](_0x1f5c55,{'qualityScore':_0xf12f0d});}_0x45f396[_0x244111(0x221,0x22d)]=_0x2c48c3['SChOI'](Date[_0x26ceab(-0x9e,-0xbc)](),_0x274548);function _0x26ceab(_0x427ba5,_0x419731){return _0x13d0b9(_0x419731- -0x2dd,_0x427ba5);}return _0x45f396;}async[_0x45cce9(0x529,0x51e)+'s'](_0x3bbac3,_0x1f1a30,_0xe390b7,_0x516d97,_0x188a78,_0x2e57f4){function _0x8909ce(_0x798011,_0x383e82){return _0x13d0b9(_0x798011- -0x32a,_0x383e82);}const _0x167e03={'gaWRx':function(_0x102914,_0x2b1fc0){return _0x102914*_0x2b1fc0;},'jHMtP':function(_0x224bf0,_0x472c39){return _0x224bf0(_0x472c39);},'Kkzpu':function(_0xa51d58,_0x2e0afa){return _0xa51d58>_0x2e0afa;},'CDBUt':function(_0x452fe2,_0x463f2c){return _0x452fe2>_0x463f2c;},'vFjUz':function(_0x50383f,_0x5c0924){return _0x50383f-_0x5c0924;},'mYOct':_0x18fc59(-0x221,-0x229),'iaPYS':_0x18fc59(-0x253,-0x25e),'dIXIi':function(_0x3a07b4,_0x10e940){return _0x3a07b4<_0x10e940;},'INxye':function(_0x4c1bdc,_0x7ce0f1){return _0x4c1bdc===_0x7ce0f1;},'CbTrk':function(_0x53fd5f,_0x5b3fc9){return _0x53fd5f>_0x5b3fc9;},'AlsHS':_0x8909ce(-0x135,-0x12c),'mraqq':_0x8909ce(-0x13d,-0x13f),'yjWJo':function(_0x39ebd,_0x5b494e){return _0x39ebd instanceof _0x5b494e;}};function _0x18fc59(_0x1f80a6,_0x362e82){return _0x13d0b9(_0x1f80a6- -0x439,_0x362e82);}for(let _0x537bf7=0x0;_0x537bf7<_0x3bbac3[_0x18fc59(-0x24a,-0x231)];_0x537bf7+=_0x1f1a30){if(_0x167e03['Kkzpu'](_0x516d97,0x0)&&_0x167e03[_0x8909ce(-0x15e,-0x12f)](Date[_0x18fc59(-0x218,-0x1e4)]()-_0xe390b7,_0x516d97)){const _0x2e958a=_0x167e03[_0x8909ce(-0xf6,-0x11d)](_0x3bbac3[_0x18fc59(-0x24a,-0x21a)],_0x537bf7);_0x188a78[_0x18fc59(-0x21c,-0x20a)][_0x18fc59(-0x234,-0x217)]('타임아웃:\x20'+_0x2e958a+_0x8909ce(-0x121,-0x12b)),_0x188a78[_0x8909ce(-0x150,-0x11c)]+=_0x2e958a;break;}const _0x1a40ff=_0x3bbac3[_0x18fc59(-0x228,-0x209)](_0x537bf7,_0x537bf7+_0x1f1a30);try{if(_0x167e03['mYOct']!==_0x167e03[_0x8909ce(-0x124,-0x14c)]){const _0x4e1e04=new Map(),_0x4167f9=await this[_0x8909ce(-0x132,-0xff)][_0x8909ce(-0x13c,-0x140)+_0x18fc59(-0x23a,-0x230)](_0x1a40ff['map'](_0xeabc12=>{function _0x3e723c(_0x327966,_0x353e19){return _0x8909ce(_0x327966-0x214,_0x353e19);}const _0x573f65=_0xeabc12[_0x3e723c(0xed,0xf5)+'re']!==undefined?Math[_0x3e6dfa(-0x20d,-0x1e4)](_0x167e03['gaWRx'](_0xeabc12['qualitySco'+'re'],0x3e8))/0x3e8:undefined;_0x4e1e04[_0x3e723c(0xcc,0xe3)](_0xeabc12['id'],_0x573f65);function _0x3e6dfa(_0x443073,_0x57e1f0){return _0x8909ce(_0x443073- -0xe7,_0x57e1f0);}return{'content':_0xeabc12[_0x3e723c(0xda,0xcd)],'category':_0x167e03[_0x3e723c(0xd2,0xa7)](mapCategory,_0xeabc12[_0x3e723c(0xbc,0xc5)]),'tier':_0x167e03[_0x3e6dfa(-0x229,-0x22f)](mapTier,_0xeabc12[_0x3e723c(0x11c,0x129)]),'tags':_0xeabc12[_0x3e723c(0xb3,0xdf)],'created_at':_0xeabc12[_0x3e723c(0x109,0x10d)],'parent_id':_0xeabc12['parentId']?_0x2e57f4['get'](_0xeabc12[_0x3e6dfa(-0x1f3,-0x214)]):undefined,'chunk_index':_0xeabc12[_0x3e6dfa(-0x21d,-0x1fc)]??undefined,'chunk_total':_0xeabc12[_0x3e6dfa(-0x204,-0x1df)]??undefined,'quality_score':_0x573f65};}));for(let _0x41ed3d=0x0;_0x41ed3d<_0x4167f9['ids']['length'];_0x41ed3d++){if(_0x167e03[_0x18fc59(-0x25b,-0x250)](_0x41ed3d,_0x1a40ff[_0x8909ce(-0x13b,-0x15d)])&&_0x4167f9[_0x8909ce(-0x145,-0x163)][_0x41ed3d]){const _0x248d5a=_0x1a40ff[_0x41ed3d]['id'],_0xb4679f=_0x4e1e04['get'](_0x248d5a);if(_0xb4679f!==undefined&&_0x167e03[_0x18fc59(-0x216,-0x249)](_0x1a40ff[_0x41ed3d][_0x18fc59(-0x236,-0x22f)+'re'],undefined))try{this['db'][_0x8909ce(-0x14d,-0x16b)+'ry'](_0x248d5a,{'qualityScore':_0xb4679f});}catch{}this['db'][_0x18fc59(-0x22d,-0x25a)+_0x8909ce(-0xf7,-0xe3)](_0x248d5a,_0x4167f9[_0x18fc59(-0x254,-0x26a)][_0x41ed3d],_0x18fc59(-0x23b,-0x25d)),_0x2e57f4[_0x8909ce(-0x148,-0x13f)](_0x248d5a,_0x4167f9[_0x18fc59(-0x254,-0x225)][_0x41ed3d]),_0x188a78[_0x18fc59(-0x227,-0x25e)+'s'][_0x8909ce(-0x125,-0x149)]({'localId':_0x248d5a,'remoteId':_0x4167f9[_0x18fc59(-0x254,-0x230)][_0x41ed3d]});}}_0x188a78[_0x18fc59(-0x239,-0x235)]+=_0x4167f9['created'],_0x188a78['failed']+=_0x4167f9['failed'];if(_0x4167f9[_0x8909ce(-0x10d,-0xe8)]['length']>0x0){const _0x530855=new Set(),_0x3393a7=/Parent memory not found:\s*parent_id\s*'([^']+)'/;for(const _0x388a10 of _0x4167f9[_0x8909ce(-0x10d,-0xfd)]){const _0x16d483=_0x388a10[_0x8909ce(-0x146,-0x153)](_0x3393a7);if(_0x16d483)_0x530855[_0x8909ce(-0x162,-0x158)](_0x16d483[0x1]);}if(_0x167e03[_0x8909ce(-0x11a,-0x100)](_0x530855['size'],0x0)){let _0x319320=0x0;for(const _0x6505a5 of _0x530855){if(_0x167e03[_0x8909ce(-0x107,-0x100)](_0x167e03['AlsHS'],_0x167e03[_0x18fc59(-0x208,-0x200)])){let _0x54b737=0x0;for(const _0x19699d of _0x15e101){_0x54b737+=this['db'][_0x18fc59(-0x237,-0x234)+'yStaleRemo'+_0x8909ce(-0x10f,-0x116)](_0x19699d);}_0x167e03[_0x18fc59(-0x268,-0x288)](_0x54b737,0x0)&&_0x2570ed['errors']['push']('stale\x20pare'+_0x8909ce(-0x105,-0xf5)+_0xbce90b['size']+(_0x8909ce(-0xfb,-0xff)+'\x20(')+_0x54b737+(_0x18fc59(-0x238,-0x239)+_0x18fc59(-0x246,-0x277)+_0x8909ce(-0x14b,-0x136)+')'));}else _0x319320+=this['db'][_0x18fc59(-0x237,-0x257)+_0x18fc59(-0x24d,-0x240)+_0x8909ce(-0x10f,-0x10e)](_0x6505a5);}_0x167e03['CDBUt'](_0x319320,0x0)&&_0x188a78['errors'][_0x18fc59(-0x234,-0x202)]('stale\x20pare'+'nt\x20'+_0x530855[_0x8909ce(-0x10a,-0x141)]+('건\x20자동\x20reset'+'\x20(')+_0x319320+(_0x18fc59(-0x238,-0x268)+'전환,\x20다음\x20flu'+_0x18fc59(-0x25a,-0x27d)+')'));}_0x188a78['errors'][_0x18fc59(-0x234,-0x213)](..._0x4167f9[_0x18fc59(-0x21c,-0x1ea)]);}}else _0x3261f0['errors']['push'](_0x18fc59(-0x20d,-0x1e1)+'nt\x20'+_0x19bae6[_0x18fc59(-0x219,-0x1ef)]+(_0x18fc59(-0x20a,-0x1e6)+'\x20(')+_0x4f664d+('행\x20pending\x20'+_0x8909ce(-0x137,-0x113)+_0x8909ce(-0x14b,-0x115)+')'));}catch(_0xe5e68a){_0x188a78[_0x18fc59(-0x21c,-0x202)]['push'](_0x8909ce(-0x130,-0x11b)+(_0x167e03['yjWJo'](_0xe5e68a,Error)?_0xe5e68a['message']:String(_0xe5e68a))),_0x188a78[_0x18fc59(-0x25f,-0x260)]+=_0x1a40ff[_0x18fc59(-0x24a,-0x23b)];}}}async[_0x13d0b9(0x20e,0x210)+_0x13d0b9(0x1d5,0x1c7)](){const _0x4533cd={'Zeynz':_0x4bc5f3(-0x1e5,-0x1b1),'YCEIe':'RDVYv','NrqOO':_0x4bc5f3(-0x189,-0x17e),'lrQMC':'not\x20found'},_0x5c1f4b=this['db'][_0x10f0ae(0x35b,0x336)+_0x10f0ae(0x33e,0x345)+'s']();let _0x20703f=0x0;const _0x1994da=[];function _0x4bc5f3(_0x7efab,_0x27d46c){return _0x45cce9(_0x27d46c- -0x6e7,_0x7efab);}for(const _0x23d155 of _0x5c1f4b){if(_0x4533cd[_0x4bc5f3(-0x1bc,-0x186)]===_0x4533cd[_0x4bc5f3(-0x179,-0x1a1)])_0x26cdc0['errors']['push'](_0x41a6a0[_0x10f0ae(0x316,0x34a)]+('개\x20child\x20—\x20'+_0x4bc5f3(-0x1f8,-0x1cb)+_0x10f0ae(0x33f,0x352)+_0x10f0ae(0x349,0x365)+_0x4bc5f3(-0x1d5,-0x1d0)));else{const _0x2e3464=this['db'][_0x10f0ae(0x355,0x382)+'tus'](_0x23d155[_0x4bc5f3(-0x1a8,-0x1a8)]);if(!_0x2e3464?.[_0x10f0ae(0x33e,0x366)]){this['db'][_0x4bc5f3(-0x1bb,-0x1cf)+_0x10f0ae(0x354,0x36a)](_0x23d155[_0x10f0ae(0x348,0x34d)]);continue;}try{await this['client'][_0x4bc5f3(-0x1d5,-0x1a9)+'ry'](_0x2e3464[_0x4bc5f3(-0x15c,-0x18f)]),this['db'][_0x4bc5f3(-0x1d0,-0x1cf)+'oneSynced'](_0x23d155[_0x10f0ae(0x373,0x34d)]),_0x20703f++;}catch(_0x28b923){const _0x1a0c9e=_0x28b923 instanceof Error?_0x28b923['message']:String(_0x28b923);_0x1a0c9e['includes'](_0x4533cd[_0x4bc5f3(-0x152,-0x174)])||_0x1a0c9e[_0x10f0ae(0x363,0x333)](_0x4533cd[_0x10f0ae(0x366,0x37f)])||_0x1a0c9e[_0x10f0ae(0x308,0x333)](_0x10f0ae(0x366,0x332))?(this['db'][_0x10f0ae(0x33a,0x326)+_0x4bc5f3(-0x191,-0x18b)](_0x23d155['memoryId']),_0x20703f++):_0x1994da[_0x10f0ae(0x333,0x360)](_0x4bc5f3(-0x197,-0x16a)+_0x23d155[_0x4bc5f3(-0x1c3,-0x1a8)]+_0x4bc5f3(-0x148,-0x171)+_0x1a0c9e);}}}function _0x10f0ae(_0x5ee72c,_0x46badd){return _0x45cce9(_0x46badd- -0x1f2,_0x5ee72c);}return{'deleted':_0x20703f,'errors':_0x1994da};}['getPending'+_0x13d0b9(0x22d,0x20a)](){function _0x168049(_0x318961,_0x3b5172){return _0x45cce9(_0x3b5172- -0x6bf,_0x318961);}function _0x130ef6(_0x29c62e,_0x57b7db){return _0x45cce9(_0x29c62e- -0x48e,_0x57b7db);}return this['db'][_0x168049(-0x1d1,-0x19c)+'SyncMemori'+'es']()[_0x168049(-0x1a7,-0x183)];}}
|
package/dist/sync/scheduler.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x34f883(_0x8144b,_0x4a314d){return _0x4e8e(_0x8144b-0x19f,_0x4a314d);}function _0x413618(_0x4641d7,_0x28ae85){return _0x4e8e(_0x28ae85- -0x2f9,_0x4641d7);}function _0x3c55(){const _0x45a5bb=['twfWELK','CgLUzW','yKnKt1e','mteWnJe1odLfufbjzMK','ntK4ndnmEfLPwwK','B3b0Aw9UCW','ntKYqvDAtLnn','C3rHCNrLza','B2jQzwn0','zhKGAw4GChjVzW','u3LUyYbHBhjLyq','BgfZDfn5BMnbDa','uxLsufm','BgvUz3rO','D2fYBG','zhvYyxrPB24','Aw50zxj2ywXnCW','EM9Qy0O','zgvIDwC','C3rHCNq','DgLJAYbLCNjVCG','BM5PBMC','AxnsDw5UAw5N','DLjczfy','ChvSBgvK','C3LUy0nVDw50','mJu3nKXRD0D6vG','nZa4nJe4mgLgCvrpCq','mJq0ndq4mfjvA0HTza','nMndz0nrtG','tuLHBLi','zxjYB3i','BenrDKq','C3LUyW','Bg9Nz2vY','mJGYmZC1v2roELnN','quTYtKS','mti1nZe4oefduhruzG','Aw5MBW','BgfZDfjLC3vSDa','C3rHCNrLzef0','C3LUy09Uu3rHCG','Dg9ju09tDhjPBG','C3LUy2LUzW','u2nOzwr1BgvYia','A0HouwC','zxrLza','Dw5Yzwy','ovnSqwfTDq','CMvZCYWGC2TPCa','vwDiAwq','mJe2wuD5DNvo','AgnZy1q','q21VD2O','y2r0q0q','zgLZywjSzwqGka','ywXYzwfKEsbYDq','CNvUBMLUzW','z2v0vgLTzq','y2f0y2G','C3LUy05VDW','DgLTzxi','DgLJAW','idW9idaP','C3LUy2HYB25PEG','AM96BvG'];_0x3c55=function(){return _0x45a5bb;};return _0x3c55();}(function(_0x1ac357,_0xf71f1e){const _0x2e6b7a=_0x1ac357();function _0x3a66fe(_0xa73557,_0x435e12){return _0x4e8e(_0xa73557- -0x142,_0x435e12);}function _0x1492a8(_0x36c9de,_0xd00eb7){return _0x4e8e(_0x36c9de-0x347,_0xd00eb7);}while(!![]){try{const _0x256395=parseInt(_0x3a66fe(0x3b,0x2a))/0x1*(parseInt(_0x3a66fe(0x69,0x7a))/0x2)+-parseInt(_0x1492a8(0x4c7,0x4bf))/0x3*(parseInt(_0x1492a8(0x4cf,0x4bd))/0x4)+-parseInt(_0x3a66fe(0x44,0x26))/0x5+parseInt(_0x1492a8(0x4c5,0x4ab))/0x6+-parseInt(_0x1492a8(0x4f0,0x4fb))/0x7*(-parseInt(_0x1492a8(0x4dd,0x4e3))/0x8)+-parseInt(_0x1492a8(0x4da,0x4f4))/0x9*(-parseInt(_0x3a66fe(0x3d,0x2d))/0xa)+-parseInt(_0x1492a8(0x4ef,0x510))/0xb;if(_0x256395===_0xf71f1e)break;else _0x2e6b7a['push'](_0x2e6b7a['shift']());}catch(_0x4935bf){_0x2e6b7a['push'](_0x2e6b7a['shift']());}}}(_0x3c55,0xb1c41));function _0x4e8e(_0x4f73d4,_0x526ed9){_0x4f73d4=_0x4f73d4-0x172;const _0x3c552e=_0x3c55();let _0x4e8ef0=_0x3c552e[_0x4f73d4];if(_0x4e8e['ZaIAOv']===undefined){var _0x45cf19=function(_0x14300d){const _0x5dbda6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b7c91='',_0x11b014='';for(let _0x415334=0x0,_0x519332,_0x226c61,_0x1c0bef=0x0;_0x226c61=_0x14300d['charAt'](_0x1c0bef++);~_0x226c61&&(_0x519332=_0x415334%0x4?_0x519332*0x40+_0x226c61:_0x226c61,_0x415334++%0x4)?_0x3b7c91+=String['fromCharCode'](0xff&_0x519332>>(-0x2*_0x415334&0x6)):0x0){_0x226c61=_0x5dbda6['indexOf'](_0x226c61);}for(let _0x5633ae=0x0,_0x19d7fa=_0x3b7c91['length'];_0x5633ae<_0x19d7fa;_0x5633ae++){_0x11b014+='%'+('00'+_0x3b7c91['charCodeAt'](_0x5633ae)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x11b014);};_0x4e8e['bhlXmk']=_0x45cf19,_0x4e8e['UkpvpE']={},_0x4e8e['ZaIAOv']=!![];}const _0x1dff4b=_0x3c552e[0x0],_0x91855c=_0x4f73d4+_0x1dff4b,_0x17b84e=_0x4e8e['UkpvpE'][_0x91855c];return!_0x17b84e?(_0x4e8ef0=_0x4e8e['bhlXmk'](_0x4e8ef0),_0x4e8e['UkpvpE'][_0x91855c]=_0x4e8ef0):_0x4e8ef0=_0x17b84e,_0x4e8ef0;}export class SyncScheduler{['synchroniz'+'er'];['options'];[_0x413618(-0x157,-0x174)];[_0x34f883(0x33f,0x345)]=null;[_0x413618(-0x162,-0x15d)]=![];[_0x34f883(0x32d,0x34b)]=![];[_0x413618(-0x194,-0x17d)]=0x0;['lastSyncAt']=null;['lastResult']=null;[_0x413618(-0x14f,-0x16e)]=null;constructor(_0x18127f,_0x3ad5db,_0x2cd768){this[_0x49f201(-0x12c,-0x115)+'er']=_0x18127f,this['options']=_0x3ad5db;function _0x49f201(_0x332563,_0x12c840){return _0x34f883(_0x332563- -0x46e,_0x12c840);}this['logger']=_0x2cd768;}async[_0x34f883(0x315,0x329)](){const _0x122cf6={'jozmX':function(_0x307be2,_0x50c146){return _0x307be2!==_0x50c146;},'AKrNK':_0x5e2dc3(-0xeb,-0xcd)+_0x5e2dc3(-0xdf,-0xd1)+_0x2a8d8e(0x1ce,0x1e2),'UgHid':_0x5e2dc3(-0xeb,-0xce)+_0x2a8d8e(0x236,0x216),'bCdOQ':function(_0x3b40c2,_0x466d1b,_0x4faf6b){return _0x3b40c2(_0x466d1b,_0x4faf6b);},'Cmowj':function(_0x2918a5,_0x20a7f2){return _0x2918a5===_0x20a7f2;},'MIanR':_0x5e2dc3(-0xcd,-0xb9),'QyRPS':_0x5e2dc3(-0xe8,-0xd6)};if(this[_0x5e2dc3(-0xde,-0xc2)]){if(_0x122cf6[_0x5e2dc3(-0xd6,-0xc4)]('kHNQg',_0x5e2dc3(-0xea,-0xf3))){const _0x14b94a=new _0x362fb8(this[_0x5e2dc3(-0xef,-0xd0)][_0x2a8d8e(0x200,0x207)]()+this[_0x2a8d8e(0x228,0x214)][_0x5e2dc3(-0x107,-0x10d)]);_0x47fbd5=_0x14b94a[_0x2a8d8e(0x1e3,0x1f7)+'g']();}else{this[_0x2a8d8e(0x1eb,0x1ef)]?.[_0x5e2dc3(-0xc7,-0xb1)](_0x122cf6[_0x2a8d8e(0x20e,0x1f1)]);return;}}if(this[_0x2a8d8e(0x20a,0x214)][_0x5e2dc3(-0x107,-0xf0)]<=0x0){this[_0x2a8d8e(0x1fe,0x1ef)]?.[_0x5e2dc3(-0xc7,-0xdf)]('Scheduler\x20'+_0x5e2dc3(-0xe0,-0xd8)+_0x2a8d8e(0x1cf,0x1dd)+_0x5e2dc3(-0xd8,-0xbc));return;}function _0x5e2dc3(_0xedba85,_0x1071ac){return _0x413618(_0x1071ac,_0xedba85-0x7f);}this['running']=!![],this['startedAt']=new Date(),this[_0x2a8d8e(0x1f7,0x1ef)]?.['info'](_0x122cf6[_0x5e2dc3(-0xe5,-0xf5)],{'intervalMs':this[_0x5e2dc3(-0xd0,-0xd6)][_0x2a8d8e(0x1ce,0x1dd)]});_0x122cf6['jozmX'](this[_0x2a8d8e(0x22c,0x214)][_0x5e2dc3(-0xee,-0xd6)+'t'],![])&&await this['tick']();this[_0x5e2dc3(-0xda,-0xdd)]=_0x122cf6[_0x5e2dc3(-0xd3,-0xb8)](setInterval,()=>{function _0x195c7c(_0x5d5559,_0x42388f){return _0x2a8d8e(_0x42388f,_0x5d5559- -0x17d);}this['tick']()[_0x195c7c(0x8b,0x85)](_0x158270=>{function _0x376a2a(_0xce0cc,_0x13b521){return _0x195c7c(_0xce0cc-0xe0,_0x13b521);}function _0x2bd435(_0x15e17a,_0x323740){return _0x195c7c(_0x323740- -0x1ed,_0x15e17a);}this[_0x376a2a(0x152,0x149)]?.[_0x376a2a(0x14f,0x156)](_0x376a2a(0x15c,0x14b)+_0x376a2a(0x144,0x164),_0x158270 instanceof Error?_0x158270:new Error(String(_0x158270)));});},this['options'][_0x2a8d8e(0x1cb,0x1dd)]);function _0x2a8d8e(_0x39cbb0,_0x13eae2){return _0x413618(_0x39cbb0,_0x13eae2-0x363);}this['timer']&&_0x122cf6[_0x2a8d8e(0x20b,0x202)](typeof this['timer'],_0x122cf6[_0x5e2dc3(-0xf9,-0x116)])&&_0x122cf6[_0x5e2dc3(-0xc9,-0xd1)]in this[_0x5e2dc3(-0xda,-0xed)]&&this[_0x2a8d8e(0x1f6,0x20a)][_0x5e2dc3(-0xe8,-0xc7)]();}['stop'](){const _0x710d2b={'MapzY':function(_0x832633,_0x58ae0a){return _0x832633(_0x58ae0a);}};if(!this[_0x427660(0x138,0x11f)])return;function _0x427660(_0x324230,_0x3a3aeb){return _0x413618(_0x324230,_0x3a3aeb-0x27c);}function _0x11ebbc(_0x539e6a,_0x166caf){return _0x413618(_0x539e6a,_0x166caf-0x5c2);}this[_0x427660(0x108,0x123)]&&(_0x710d2b[_0x427660(0x127,0x128)](clearInterval,this[_0x427660(0x138,0x123)]),this['timer']=null),this[_0x427660(0x13c,0x11f)]=![],this[_0x11ebbc(0x437,0x44e)]?.[_0x11ebbc(0x456,0x452)](_0x427660(0xf6,0x112)+'stopped',{'syncCount':this[_0x427660(0xea,0xff)]});}[_0x34f883(0x318,0x307)](){function _0x160251(_0x1c3912,_0x49a1d1){return _0x34f883(_0x1c3912-0x61,_0x49a1d1);}return this[_0x160251(0x39c,0x395)];}['isSyncing'](){function _0x17f8ac(_0x311e6b,_0x4a1a69){return _0x413618(_0x311e6b,_0x4a1a69-0x56e);}return this[_0x17f8ac(0x3f3,0x403)];}['getStatus'](){function _0x1ab131(_0x484bc5,_0x5d544a){return _0x34f883(_0x484bc5- -0x458,_0x5d544a);}const _0x54c715={'EVrKC':function(_0x408c13,_0x30857d){return _0x408c13+_0x30857d;},'lCQvD':function(_0x51b536,_0x48cb6a){return _0x51b536===_0x48cb6a;},'vRBdV':'GkPuK'};let _0x2cdb82=null;if(this[_0x1ab131(-0x11d,-0x125)]&&this[_0x1ab131(-0x109,-0x10a)]){const _0x64f05f=new Date(_0x54c715['EVrKC'](this[_0x844a04(0xb0,0xc4)][_0x1ab131(-0x11c,-0x11e)](),this[_0x844a04(0xa7,0xbe)][_0x844a04(0x98,0x87)]));_0x2cdb82=_0x64f05f[_0x1ab131(-0x12c,-0x127)+'g']();}else{if(this[_0x1ab131(-0x11d,-0x109)]&&this[_0x844a04(0x81,0x9f)]){if(_0x54c715[_0x844a04(0x79,0x97)](_0x844a04(0x97,0xad),_0x54c715[_0x844a04(0xa1,0x8e)]))this[_0x1ab131(-0x119,-0x138)][_0x844a04(0xa2,0xa6)]();else{const _0x488e6b=new Date(this[_0x1ab131(-0x12e,-0x11c)][_0x1ab131(-0x11c,-0x11c)]()+this[_0x1ab131(-0x10f,-0x11f)][_0x1ab131(-0x146,-0x15a)]);_0x2cdb82=_0x488e6b[_0x1ab131(-0x12c,-0x13e)+'g']();}}}function _0x844a04(_0x584fe7,_0x2b39a2){return _0x34f883(_0x2b39a2- -0x28b,_0x584fe7);}return{'running':this[_0x1ab131(-0x11d,-0x11b)],'syncing':this['syncing'],'syncCount':this[_0x844a04(0x87,0x90)],'lastSyncAt':this[_0x844a04(0xa9,0xc4)]?.[_0x844a04(0x92,0xa1)+'g']()??null,'lastResult':this[_0x1ab131(-0x12f,-0x10e)],'intervalMs':this['options'][_0x1ab131(-0x146,-0x147)],'nextSyncAt':_0x2cdb82};}async[_0x34f883(0x33e,0x328)](){return this['tick']();}async[_0x413618(-0x147,-0x158)](){const _0x151b74={'hcscT':_0x351f07(-0x9f,-0x7e)+_0x4d0ec2(-0x93,-0xb2)+_0x4d0ec2(-0xb8,-0xcc)+_0x351f07(-0x85,-0x87),'zojcJ':'Sync\x20compl'+_0x351f07(-0x82,-0x9c)};if(this[_0x351f07(-0xa8,-0x9f)])return this[_0x351f07(-0x8f,-0xa8)]?.[_0x4d0ec2(-0xf7,-0xeb)](_0x151b74[_0x351f07(-0xa0,-0x96)]),null;function _0x351f07(_0x396121,_0x59d632){return _0x413618(_0x396121,_0x59d632-0xcc);}function _0x4d0ec2(_0x1b6ca6,_0x5ba991){return _0x413618(_0x1b6ca6,_0x5ba991-0x99);}this[_0x4d0ec2(-0xbc,-0xd2)]=!![];try{const _0x4c8225=await this[_0x351f07(-0x78,-0x8a)+'er'][_0x351f07(-0xbf,-0xa9)]();return this[_0x4d0ec2(-0xf8,-0xe4)]++,this[_0x4d0ec2(-0x99,-0xb0)]=new Date(),this['lastResult']=_0x4c8225,this[_0x4d0ec2(-0xfc,-0xdb)]?.['info'](_0x151b74[_0x4d0ec2(-0xfa,-0xec)],{'pushed':_0x4c8225['pushed'],'pulled':_0x4c8225[_0x351f07(-0xc3,-0xb2)],'errors':_0x4c8225['errors'][_0x4d0ec2(-0x9b,-0xae)],'duration':_0x4c8225[_0x4d0ec2(-0xe3,-0xee)]}),this[_0x4d0ec2(-0x9f,-0xb6)]['onSync']?.(_0x4c8225),_0x4c8225;}catch(_0x2e6264){const _0xccdc7=_0x2e6264 instanceof Error?_0x2e6264:new Error(String(_0x2e6264));return this['logger']?.[_0x351f07(-0xc2,-0xab)]('Sync\x20faile'+'d',_0xccdc7),this[_0x4d0ec2(-0xd4,-0xb6)]['onError']?.(_0xccdc7),null;}finally{this[_0x351f07(-0xa7,-0x9f)]=![];}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2b8b57(_0x360dec,_0x287526){return _0x1b8d(_0x360dec-0x39b,_0x287526);}(function(_0x11fe97,_0x4baa6a){function _0x49691c(_0x5db174,_0x6137dd){return _0x1b8d(_0x5db174- -0x3ad,_0x6137dd);}function _0x246bb1(_0x25fc81,_0xe74482){return _0x1b8d(_0xe74482- -0x124,_0x25fc81);}const _0x3598dc=_0x11fe97();while(!![]){try{const _0x1d8d6a=-parseInt(_0x49691c(-0x2fd,-0x326))/0x1*(parseInt(_0x49691c(-0x305,-0x2e8))/0x2)+parseInt(_0x49691c(-0x2ec,-0x2e8))/0x3+parseInt(_0x246bb1(-0xb4,-0x90))/0x4+parseInt(_0x49691c(-0x2ed,-0x2d3))/0x5*(parseInt(_0x246bb1(-0xa1,-0x6d))/0x6)+parseInt(_0x246bb1(-0x57,-0x87))/0x7+parseInt(_0x49691c(-0x2ce,-0x2f7))/0x8*(parseInt(_0x49691c(-0x2f7,-0x317))/0x9)+parseInt(_0x49691c(-0x306,-0x2f5))/0xa*(-parseInt(_0x246bb1(-0x2d,-0x49))/0xb);if(_0x1d8d6a===_0x4baa6a)break;else _0x3598dc['push'](_0x3598dc['shift']());}catch(_0x57ab84){_0x3598dc['push'](_0x3598dc['shift']());}}}(_0x50bb,0x2ee26));function _0x50bb(){const _0x10621d=['Dg9Uzxm','ChvSBgvK','zxjYB3jZ','C2v0u3LUy1n0yq','z2v0u3LUy2vKtq','CxvHBgL0Ev9ZyW','C3HTr1O','mtC0nZy5n2zmrvziqG','zxbPC29KAwm','zuf0','z2v0u3rHDhvZ','z2rMvhO','DxbKyxrLzf9HDa','Bwf4','DxbKyxrLtwvTBW','uMfMCeO','yu1ls2i','ntu0mty3meHkuw9szG','mtG3nNDWq0TuBG','ChvZAa','A1DuzKO','DhvZ','sgXIvvy','AKDnvLi','DxbKyxrLzef0','whbgA3q','mZu5C2TXv2nt','ChvSBa','y29VBgrVD25nCW','Be16B2y','CxvLDwu','zw1VCNLdB3vUDa','nJmYndG0tuvlqxvO','nJaYmtmWz3zNDLDA','zgvSzxrLza','C3LUy2vK','CgfYzw50x2LK','EunPsLe','q291BNq','BM9KzuLK','C3LUy0XVy2fS','u0DiquW','nvzmEfD2za','otuYnJqXtvzSvufi','y3jLyxrLtwvTBW','ywnJzxnZx2nVDq','AhPmrey','Bwf4rMfPBhvYzq','BwvYz2vby2nLCW','zMX1C2G','CMvJB3jKu3vJyW','B21gtK0','qNLszw1VDgvjza','DgLLCG','mxWYFdr8mhWZ','rxb6DuG','uMvfrem','u3PABMO','zxnZ','DxjL','C3bSAxq','y29UzMXPy3rZ','zhvYyxrPB24','q2LYy3vPDcbICG','y2XPzw50','BgfZDezHAwX1CG','y2vKqxq','zMfPBhvYzxm','tfrNwKq','mtfSA1HSuwC','BLDHwwW','BwvZC2fNzq','zwfRzxiGB3bLBG','mtzqDgvpDfK','vgr4twS','ignVBNnLy3v0Aq','y2f0zwDVCNK','Aw5N','C29YDa','DgLTzw91De1Z','zw1IzwrKAw5N','BgvUz3rO','DgHtCfi','ChvZAgvK','BgLZDe1LBw9YAq','C0nVDw50','BM93','B3jL','Cu5oywK','CMvJB3jKrMfPBa','66Mu66QO66ASia','CxzkCgu','CKDwzg8','AxndAxjJDwL0tW','DgfNCW','CgvU','z2v0tgfZDfn5BG','y2H1BMTFAw5Kzq','zhPsr0i','BvPmrMK','y29UDgvUDa','B1DKrLK','C3LUy0rLBhrH','C2f2zuvTyMvKza','oIb0B28GBwfUEq','DMuGzMfPBhvYzq','qwXXtLe','mta5oti4oe9MEKPSra','DgvHBvbHDgG'];_0x50bb=function(){return _0x10621d;};return _0x50bb();}import{SyncQueue,mapCategory,mapTier}from'./queue.js';function _0x1b8d(_0x4c1bd7,_0x295989){_0x4c1bd7=_0x4c1bd7-0x73;const _0x50bb55=_0x50bb();let _0x1b8ddf=_0x50bb55[_0x4c1bd7];if(_0x1b8d['fcIccw']===undefined){var _0x29dd37=function(_0x7b1207){const _0x12813a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x361f4e='',_0x3efbf6='';for(let _0x150ea7=0x0,_0x100f04,_0x278043,_0xee9f94=0x0;_0x278043=_0x7b1207['charAt'](_0xee9f94++);~_0x278043&&(_0x100f04=_0x150ea7%0x4?_0x100f04*0x40+_0x278043:_0x278043,_0x150ea7++%0x4)?_0x361f4e+=String['fromCharCode'](0xff&_0x100f04>>(-0x2*_0x150ea7&0x6)):0x0){_0x278043=_0x12813a['indexOf'](_0x278043);}for(let _0x58699c=0x0,_0x252171=_0x361f4e['length'];_0x58699c<_0x252171;_0x58699c++){_0x3efbf6+='%'+('00'+_0x361f4e['charCodeAt'](_0x58699c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3efbf6);};_0x1b8d['xzLBxg']=_0x29dd37,_0x1b8d['ILnKAA']={},_0x1b8d['fcIccw']=!![];}const _0xd5b763=_0x50bb55[0x0],_0x485b31=_0x4c1bd7+_0xd5b763,_0x5f4bc7=_0x1b8d['ILnKAA'][_0x485b31];return!_0x5f4bc7?(_0x1b8ddf=_0x1b8d['xzLBxg'](_0x1b8ddf),_0x1b8d['ILnKAA'][_0x485b31]=_0x1b8ddf):_0x1b8ddf=_0x5f4bc7,_0x1b8ddf;}import{TeamSynchronizer}from'./team-synchronizer.js';function _0x32e5fd(_0x33de72,_0x5b9072){return _0x1b8d(_0x5b9072-0x353,_0x33de72);}const DEFAULT_PAGE_SIZE=0x64;export class MemorySynchronizer{['db'];[_0x2b8b57(0x471,0x4a1)];[_0x32e5fd(0x408,0x3e8)];[_0x2b8b57(0x458,0x455)];['queue'];['failures']=0x0;[_0x2b8b57(0x472,0x4a5)+_0x32e5fd(0x3e0,0x3f2)]=0x0;[_0x2b8b57(0x460,0x43f)+'s']=0x3;[_0x32e5fd(0x3d7,0x405)]=0x7530;constructor(_0x18164b,_0x1031e0,_0x4d2be9,_0x40c949){function _0x4de9bf(_0x218a15,_0x3ba2d9){return _0x32e5fd(_0x3ba2d9,_0x218a15- -0x701);}function _0x3b560e(_0x5731b3,_0x443894){return _0x32e5fd(_0x443894,_0x5731b3- -0x3f0);}this['db']=_0x18164b,this[_0x4de9bf(-0x2d8,-0x300)]=_0x1031e0,this[_0x4de9bf(-0x319,-0x321)]=_0x4d2be9,this[_0x4de9bf(-0x2f1,-0x31c)]=_0x40c949,this['queue']=new SyncQueue(_0x18164b,_0x1031e0);}[_0x2b8b57(0x421,0x3f3)+_0x2b8b57(0x423,0x403)](){const _0x26c4cf={'thSpR':function(_0x118c34,_0x1f1729){return _0x118c34<_0x1f1729;}};if(_0x26c4cf[_0x298f1c(-0x121,-0x118)](this[_0x6e1bd5(0x33a,0x32e)],this[_0x6e1bd5(0x310,0x31a)+'s']))return![];function _0x298f1c(_0x1f5dd2,_0x252532){return _0x2b8b57(_0x252532- -0x52e,_0x1f5dd2);}function _0x6e1bd5(_0x3c43e7,_0x43bea0){return _0x2b8b57(_0x43bea0- -0x146,_0x3c43e7);}return Date['now']()-this[_0x298f1c(-0x8d,-0xbc)+_0x6e1bd5(0x311,0x2f4)]<this[_0x6e1bd5(0x327,0x307)];}[_0x32e5fd(0x43f,0x41b)+_0x2b8b57(0x46b,0x455)](){function _0x2c3188(_0x346292,_0x4c3286){return _0x32e5fd(_0x4c3286,_0x346292- -0x62b);}this[_0x2c3188(-0x1ff,-0x1d4)]=0x0;}[_0x2b8b57(0x41d,0x414)+_0x32e5fd(0x450,0x424)](){function _0x5421cf(_0x3d8279,_0x35c4ae){return _0x32e5fd(_0x35c4ae,_0x3d8279- -0x659);}this[_0xe27d24(0xa,0x1f)]++;function _0xe27d24(_0x239ac2,_0xd7597d){return _0x32e5fd(_0xd7597d,_0x239ac2- -0x422);}this[_0xe27d24(0x8,0x26)+_0xe27d24(-0x30,0x4)]=Date[_0x5421cf(-0x287,-0x27b)]();}async['sync'](){function _0x23c6f4(_0x528627,_0x38c132){return _0x32e5fd(_0x38c132,_0x528627- -0x2b8);}if(this[_0x2882da(0xf4,0x10f)]&&this[_0x23c6f4(0x158,0x17d)]){const _0x1fa8c4=new TeamSynchronizer(this['db'],this[_0x2882da(0x135,0xfe)],this['teamPath'],this[_0x2882da(0x11c,0xfb)]),_0x2d368f=await _0x1fa8c4[_0x23c6f4(0x12a,0x114)]();return{'pushed':_0x2d368f['pushed'],'pulled':_0x2d368f[_0x2882da(0xf6,0xfc)],'conflicts':_0x2d368f[_0x2882da(0x132,0x149)],'errors':_0x2d368f[_0x2882da(0xf7,0x128)],'duration':_0x2d368f[_0x23c6f4(0x16f,0x143)]};}function _0x2882da(_0x72c93a,_0x1d70a4){return _0x32e5fd(_0x1d70a4,_0x72c93a- -0x2f4);}return this[_0x2882da(0x11d,0xed)]();}async[_0x32e5fd(0x401,0x411)](){const _0x206548={'rGVdo':_0x1421e8(0x3c8,0x3b5)},_0x36bb64=Date[_0x36313f(-0x18f,-0x1a0)](),_0x3691bd={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};function _0x36313f(_0x93e537,_0x45a703){return _0x2b8b57(_0x93e537- -0x5a9,_0x45a703);}try{const _0x38c7f2=await this[_0x1421e8(0x38e,0x395)]();_0x3691bd['pushed']=_0x38c7f2[_0x36313f(-0x192,-0x17a)],_0x3691bd['errors'][_0x1421e8(0x388,0x395)](..._0x38c7f2[_0x36313f(-0x176,-0x19d)]);const _0x26dde1=await this[_0x36313f(-0x15d,-0x136)]();_0x3691bd[_0x1421e8(0x36f,0x383)]=_0x26dde1[_0x1421e8(0x3a5,0x383)],_0x3691bd[_0x36313f(-0x13b,-0x157)]=_0x26dde1[_0x1421e8(0x389,0x3bf)],_0x3691bd[_0x1421e8(0x384,0x384)]['push'](..._0x26dde1[_0x36313f(-0x176,-0x18a)]);}catch(_0x14f5e8){_0x14f5e8 instanceof Error&&(_0x1421e8(0x36e,0x398)===_0x206548[_0x36313f(-0x189,-0x19a)]?this['db'][_0x36313f(-0x148,-0x117)+_0x36313f(-0x190,-0x17e)](_0x4e4478['id'],_0xad5f45[_0x1421e8(0x3b4,0x3af)+'nt']):_0x3691bd[_0x36313f(-0x176,-0x194)]['push'](_0x14f5e8['message']));}_0x3691bd['duration']=Date[_0x36313f(-0x18f,-0x164)]()-_0x36bb64;function _0x1421e8(_0x318d94,_0x52388c){return _0x2b8b57(_0x52388c- -0xaf,_0x318d94);}return _0x3691bd;}async['push'](_0x48a7a5){if(this['isCircuitO'+_0x22a3a4(-0x1b8,-0x1db)]())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x22a3a4(-0x1b0,-0x18e)+_0x22a3a4(-0x18a,-0x185)+_0x484514(-0x1e3,-0x20d)+_0x484514(-0x245,-0x22a)+'ve\x20failure'+'s'],'duration':0x0};const _0x4a4e5b=Date[_0x22a3a4(-0x200,-0x1e4)]();function _0x484514(_0x2168f5,_0x4c2758){return _0x32e5fd(_0x2168f5,_0x4c2758- -0x5f1);}function _0x22a3a4(_0x793895,_0x3d58e8){return _0x32e5fd(_0x793895,_0x3d58e8- -0x5b6);}try{const _0x33f7b1=await this['queue'][_0x484514(-0x1b5,-0x1d7)]({'timeoutMs':_0x48a7a5?.[_0x22a3a4(-0x1f5,-0x1eb)]}),_0x58fbb9=await this[_0x22a3a4(-0x1c4,-0x1af)]['flushTombs'+_0x484514(-0x21c,-0x208)](),_0x1b67d9=[..._0x33f7b1[_0x484514(-0x1d2,-0x206)],..._0x58fbb9[_0x22a3a4(-0x200,-0x1cb)]];return _0x1b67d9[_0x484514(-0x255,-0x224)]>0x0?this['recordFail'+_0x484514(-0x1b1,-0x1cd)]():this['recordSucc'+'ess'](),{'pushed':_0x33f7b1[_0x484514(-0x206,-0x222)],'pulled':_0x58fbb9[_0x22a3a4(-0x191,-0x1ab)],'conflicts':0x0,'errors':_0x1b67d9,'duration':Date['now']()-_0x4a4e5b};}catch(_0x3c7ba6){this[_0x22a3a4(-0x1dd,-0x1e1)+_0x22a3a4(-0x17b,-0x192)]();throw _0x3c7ba6;}}async['pull'](){const _0xcb2bf1={'mZLFi':function(_0x4b7465,_0x35c2fb){return _0x4b7465!==_0x35c2fb;},'oWdFY':function(_0x23cf70,_0x5ddfbf){return _0x23cf70>_0x5ddfbf;},'kWTfJ':function(_0x51b7f6,_0x5d14dd){return _0x51b7f6-_0x5d14dd;},'nWaYl':function(_0x2e801f,_0x1a4fb9){return _0x2e801f<_0x1a4fb9;},'AlqNQ':_0x539797(0x58,0x67)+_0x539797(0x61,0x5f)+_0xc11d08(0x3b6,0x3bf)+_0xc11d08(0x3b7,0x3a2)+_0xc11d08(0x3cf,0x3c0)+'s','TdxMk':function(_0x4a1857,_0x117daa){return _0x4a1857===_0x117daa;},'vhafV':'BqUvt','jGMVR':_0xc11d08(0x3ef,0x3fd),'hzLDF':_0x539797(0x5d,0x53),'sxmGZ':function(_0xb4f3b8,_0x46dbc8){return _0xb4f3b8(_0x46dbc8);},'RafpJ':function(_0x368da9,_0x3a2a5b){return _0x368da9>_0x3a2a5b;},'lMzof':function(_0x4566ae,_0x4ebce9){return _0x4566ae(_0x4ebce9);},'SGHAL':function(_0x59736e,_0x1104f2){return _0x59736e instanceof _0x1104f2;},'qvJpe':function(_0x2b464e,_0x59dace){return _0x2b464e===_0x59dace;},'Pwknw':_0x539797(0x24,-0x8),'XpFkt':function(_0x16ec44,_0x4f8ee9){return _0x16ec44<_0x4f8ee9;}};if(this[_0xc11d08(0x3c8,0x3b4)+_0xc11d08(0x38f,0x3b6)]())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0xcb2bf1[_0xc11d08(0x3b3,0x3c1)]],'duration':0x0};const _0x5446b3=Date[_0x539797(0x2,0x26)]();function _0x539797(_0x4f7026,_0xd335f9){return _0x32e5fd(_0xd335f9,_0x4f7026- -0x3d0);}function _0xc11d08(_0x1a0442,_0x56876b){return _0x32e5fd(_0x1a0442,_0x56876b- -0x25);}const _0xa82061={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};try{let _0x5bd2d6=0x0,_0x302688=!![];while(_0x302688){const _0xbe805f=await this[_0x539797(0x59,0x59)]['listMemori'+'es']({'limit':DEFAULT_PAGE_SIZE,'offset':_0x5bd2d6,'includeEmbedding':!![]});if(_0xcb2bf1[_0x539797(-0xa,-0x28)](_0xbe805f[_0x539797(-0x3,0x25)],0x0)){if(_0xcb2bf1[_0x539797(0xf,-0x27)](_0xcb2bf1['vhafV'],_0xcb2bf1[_0xc11d08(0x3b8,0x3db)])){_0x302688=![];break;}else{this[_0xc11d08(0x3cf,0x3b0)+_0xc11d08(0x407,0x3ff)]();throw _0x47f767;}}_0xbe805f[_0x539797(-0x6,0x10)]((_0x166226,_0x44f56e)=>{function _0x3527ff(_0x4d177f,_0x2b3215){return _0x539797(_0x2b3215-0x3a1,_0x4d177f);}const _0x573f9f={'afSas':function(_0xe8aad1,_0x5879dc){function _0x27b64b(_0x2ecab3,_0x3a8794){return _0x1b8d(_0x3a8794- -0x58,_0x2ecab3);}return _0xcb2bf1[_0x27b64b(0x61,0x34)](_0xe8aad1,_0x5879dc);},'pdlUD':function(_0x37339d,_0xd56ed){function _0x211d14(_0x1bb37f,_0x648e03){return _0x1b8d(_0x1bb37f-0x1e6,_0x648e03);}return _0xcb2bf1[_0x211d14(0x274,0x274)](_0x37339d,_0xd56ed);}};function _0x3df8be(_0x303b20,_0x17958d){return _0x539797(_0x17958d-0x93,_0x303b20);}if(_0x3527ff(0x390,0x3af)===_0x3527ff(0x397,0x3af)){const _0x5464fa=_0x166226[_0x3527ff(0x3bc,0x3de)]?0x1:0x0,_0x19fa43=_0x44f56e[_0x3df8be(0xe9,0xd0)]?0x1:0x0;return _0xcb2bf1[_0x3527ff(0x405,0x3ce)](_0x5464fa,_0x19fa43);}else this['db'][_0x3527ff(0x3e3,0x3c8)+'ry'](_0x29a15f['id'],{'content':_0xe36469[_0x3df8be(0x8d,0xa3)],'category':_0x4f99bc(_0x87242c[_0x3527ff(0x38d,0x399)]),'tier':_0x188d31(_0x3ca903['tier']??_0x54b4d8[_0x3527ff(0x3d6,0x3ef)]),'tags':_0x248a54[_0x3df8be(0xc7,0x9d)]??_0x519eb2[_0x3527ff(0x3b9,0x3ab)],'qualityScore':_0x19db38['quality_sc'+_0x3527ff(0x3a1,0x3a4)]??_0xe7af2}),_0x573f9f['afSas'](_0x5a3841['access_cou'+'nt'],_0x291be9)&&this['db'][_0x3df8be(0x10b,0xdc)+_0x3df8be(0xb7,0x94)](_0x301528['id'],_0x30f5c9[_0x3527ff(0x3e8,0x3e7)+'nt']),_0x4ece78[_0x3df8be(0xc1,0x8f)]&&_0x573f9f['pdlUD'](_0x5cc26d[_0x3df8be(0x6a,0x8f)]['length'],0x0)&&this['db'][_0x3df8be(0x7c,0xa6)+_0x3df8be(0x89,0x8c)](_0x4a2212['id'],_0x4787a0[_0x3df8be(0xa7,0x8f)]),this['db']['setSyncSta'+_0x3df8be(0xec,0xc1)](_0x3fa93f['id'],_0x34ae68['id'],_0x3527ff(0x3de,0x3dd)),_0x258c67[_0x3527ff(0x3e3,0x3f7)]++;});for(const _0x56599f of _0xbe805f){try{if(_0xcb2bf1[_0xc11d08(0x37b,0x3a1)](_0x539797(0x51,0x6a),_0xcb2bf1[_0xc11d08(0x421,0x3f2)])){if(pVTeOL[_0xc11d08(0x430,0x40a)](this[_0xc11d08(0x433,0x407)],this['maxFailure'+'s']))return![];return pVTeOL[_0xc11d08(0x424,0x40a)](pVTeOL[_0xc11d08(0x3ab,0x3d8)](_0x3adb02['now'](),this[_0xc11d08(0x3e7,0x405)+_0xc11d08(0x3f0,0x3cd)]),this[_0xc11d08(0x3f1,0x3e0)]);}else{const _0x4e63e1=this['db']['findMemory'+_0xc11d08(0x3ca,0x3f8)](_0x56599f['id']);if(!_0x4e63e1){const _0x34e44e=this['db'][_0xc11d08(0x3f6,0x3f0)+'ry']({'content':_0x56599f['content'],'category':mapCategory(_0x56599f[_0x539797(-0x8,-0x9)]),'tier':_0xcb2bf1[_0xc11d08(0x3e7,0x3ca)](mapTier,_0x56599f[_0x539797(0x4e,0x72)]??_0x539797(0x21,0x33)),'tags':_0x56599f[_0xc11d08(0x380,0x3b5)]??[],'parentId':_0x56599f[_0xc11d08(0x405,0x3e8)]??undefined,'chunkIndex':_0x56599f[_0x539797(0xd,0x29)+'x']??undefined,'chunkTotal':_0x56599f['chunk_tota'+'l']??undefined,'qualityScore':_0x56599f['quality_sc'+_0xc11d08(0x3df,0x3ae)]??undefined});_0x56599f[_0x539797(0x46,0x15)+'nt']&&_0xcb2bf1['oWdFY'](_0x56599f['access_cou'+'nt'],0x0)&&this['db'][_0x539797(0x49,0x55)+_0xc11d08(0x39f,0x3ac)](_0x34e44e['id'],_0x56599f['access_cou'+'nt']),_0x56599f[_0x539797(-0x4,0x29)]&&_0xcb2bf1[_0x539797(0x28,0x21)](_0x56599f[_0x539797(-0x4,-0x10)][_0x539797(-0x3,-0x18)],0x0)&&this['db'][_0x539797(0x13,-0x22)+'ing'](_0x34e44e['id'],_0x56599f[_0xc11d08(0x388,0x3a7)]),this['db'][_0x539797(0x1c,0x3e)+'tus'](_0x34e44e['id'],_0x56599f['id'],'synced'),_0xa82061['pulled']++;}else{const _0x1de8ff=new Date(_0x56599f[_0xc11d08(0x3f0,0x3d0)]),_0x3e0bd0=new Date(_0x4e63e1[_0xc11d08(0x3bc,0x3dc)]);if(_0x1de8ff>_0x3e0bd0){const _0xada08b=_0x539797(0x4f,0x54)[_0xc11d08(0x3f5,0x400)]('|');let _0x1b6c0d=0x0;while(!![]){switch(_0xada08b[_0x1b6c0d++]){case'0':this['db']['setSyncSta'+_0x539797(0x2e,0x14)](_0x4e63e1['id'],_0x56599f['id'],_0x539797(0x3c,0x34));continue;case'1':this['db'][_0x539797(0x27,0x56)+'ry'](_0x4e63e1['id'],{'content':_0x56599f[_0x539797(0x10,-0x15)],'category':mapCategory(_0x56599f[_0xc11d08(0x39f,0x3a3)]),'tier':_0xcb2bf1[_0x539797(0x36,0x25)](mapTier,_0x56599f[_0xc11d08(0x3c4,0x3f9)]??_0x4e63e1[_0xc11d08(0x3f1,0x3f9)]),'tags':_0x56599f[_0x539797(0xa,0x23)]??_0x4e63e1[_0xc11d08(0x3d5,0x3b5)],'qualityScore':_0x56599f[_0x539797(0x1e,-0xb)+_0x539797(0x3,0x5)]??undefined});continue;case'2':_0xcb2bf1[_0xc11d08(0x386,0x3ba)](_0x56599f['access_cou'+'nt'],undefined)&&this['db'][_0xc11d08(0x3cc,0x3f4)+_0xc11d08(0x3c3,0x3ac)](_0x4e63e1['id'],_0x56599f['access_cou'+'nt']);continue;case'3':_0xa82061[_0xc11d08(0x409,0x401)]++;continue;case'4':_0x56599f[_0x539797(-0x4,0xa)]&&_0x56599f[_0xc11d08(0x3c1,0x3a7)][_0x539797(-0x3,0x19)]>0x0&&this['db']['saveEmbedd'+_0xc11d08(0x38d,0x3a4)](_0x4e63e1['id'],_0x56599f[_0xc11d08(0x3d4,0x3a7)]);continue;}break;}}}}}catch(_0x2dedc2){_0xcb2bf1[_0xc11d08(0x3e5,0x3ed)](_0x2dedc2,Error)&&(_0xcb2bf1[_0xc11d08(0x3d0,0x3b2)](_0xcb2bf1['Pwknw'],_0xc11d08(0x3d0,0x3e9))?_0x140c23[_0x539797(0x1b,-0xe)][_0xc11d08(0x3d3,0x3d7)](_0x28aa5c['message']):_0xa82061['errors'][_0x539797(0x2c,0x41)](_0xc11d08(0x3a2,0x3b1)+_0x56599f['id']+'\x20풀\x20실패:\x20'+_0x2dedc2[_0xc11d08(0x3dd,0x40b)]));}}_0xcb2bf1[_0x539797(0x32,0x68)](_0xbe805f[_0xc11d08(0x3b0,0x3a8)],DEFAULT_PAGE_SIZE)?_0x539797(0x29,0x12)!==_0xc11d08(0x3f2,0x3d4)?_0xda0ddf[_0xc11d08(0x399,0x3c6)][_0xc11d08(0x3ab,0x3d7)](_0x3e878a[_0xc11d08(0x3f7,0x40b)]):_0x302688=![]:_0x5bd2d6+=DEFAULT_PAGE_SIZE;}this[_0xc11d08(0x3d1,0x3f6)+_0xc11d08(0x3fe,0x3fe)]();}catch(_0x3a18f1){this[_0x539797(0x5,0x24)+_0x539797(0x54,0x34)](),_0x3a18f1 instanceof Error&&_0xa82061['errors'][_0xc11d08(0x3ef,0x3d7)](_0x3a18f1['message']);}return _0xa82061[_0x539797(0x57,0x5f)]=Date[_0xc11d08(0x384,0x3ad)]()-_0x5446b3,_0xa82061;}async[_0x32e5fd(0x415,0x3f3)](){function _0x21f361(_0x3c3851,_0x35773c){return _0x2b8b57(_0x35773c- -0x478,_0x3c3851);}const _0x55d1e7={'MkYQO':function(_0xba7d0a,_0x484fa9){return _0xba7d0a!==_0x484fa9;},'EpzuH':'VGHvq','qNNai':function(_0x3dc7ba,_0x43b341){return _0x3dc7ba??_0x43b341;}},_0x4681ce=this[_0xec6cc7(0x345,0x329)]['getPending'+_0xec6cc7(0x332,0x331)]();let _0x1de264=0x0;try{if(_0x55d1e7['MkYQO'](_0x55d1e7[_0xec6cc7(0x312,0x342)],_0x55d1e7[_0xec6cc7(0x315,0x342)]))return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x21f361(0x2,-0x8)+_0x21f361(-0x14,0x1)+_0x21f361(-0x64,-0x4c)+_0x21f361(-0x38,-0x69)+_0xec6cc7(0x30e,0x307)+'s'],'duration':0x0};else{const _0x18b7ed=await this[_0x21f361(0x1d,-0x7)][_0xec6cc7(0x2f5,0x2f2)+'es']({'limit':0x2710}),_0x259a63=this['db'][_0xec6cc7(0x2f6,0x30f)+_0xec6cc7(0x336,0x32a)]();_0x1de264=Math[_0x21f361(-0x32,-0x3a)](0x0,_0x18b7ed['length']-_0x259a63);}}catch{}function _0xec6cc7(_0x33ecfc,_0x557b6f){return _0x2b8b57(_0x557b6f- -0x126,_0x33ecfc);}const _0x45d78f=this['db'][_0x21f361(-0x60,-0x54)+_0xec6cc7(0x379,0x34d)]();return{'pendingPush':_0x4681ce,'pendingPull':_0x1de264,'lastSyncedAt':_0x55d1e7[_0xec6cc7(0x2cb,0x2f6)](_0x45d78f,undefined)};}}
|
|
1
|
+
function _0x345d(_0x105b05,_0x59d645){_0x105b05=_0x105b05-0x7c;const _0x1efe4d=_0x1efe();let _0x345d59=_0x1efe4d[_0x105b05];if(_0x345d['FWgmgD']===undefined){var _0x58fc2f=function(_0x48c639){const _0x38f366='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x446ef8='',_0x50e9c6='';for(let _0x484bee=0x0,_0x4ca772,_0x367dc9,_0x3a2343=0x0;_0x367dc9=_0x48c639['charAt'](_0x3a2343++);~_0x367dc9&&(_0x4ca772=_0x484bee%0x4?_0x4ca772*0x40+_0x367dc9:_0x367dc9,_0x484bee++%0x4)?_0x446ef8+=String['fromCharCode'](0xff&_0x4ca772>>(-0x2*_0x484bee&0x6)):0x0){_0x367dc9=_0x38f366['indexOf'](_0x367dc9);}for(let _0x52034c=0x0,_0xf0c64c=_0x446ef8['length'];_0x52034c<_0xf0c64c;_0x52034c++){_0x50e9c6+='%'+('00'+_0x446ef8['charCodeAt'](_0x52034c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50e9c6);};_0x345d['voBYOk']=_0x58fc2f,_0x345d['lyDhcU']={},_0x345d['FWgmgD']=!![];}const _0x1660c1=_0x1efe4d[0x0],_0x4a4035=_0x105b05+_0x1660c1,_0x224274=_0x345d['lyDhcU'][_0x4a4035];return!_0x224274?(_0x345d59=_0x345d['voBYOk'](_0x345d59),_0x345d['lyDhcU'][_0x4a4035]=_0x345d59):_0x345d59=_0x224274,_0x345d59;}function _0x1efe(){const _0x279203=['C0nVDw50','zMLUze1LBw9YEq','z2v0u3rHDhvZ','C2v0u3LUy1n0yq','zw1IzwrKAw5N','CgvU','mJy1nJKYofHQz054Ea','ywnJzxnZx2nVDq','DgLTzw91De1Z','uhntvLC','zgvSzxrLza','wxboywO','C3LUy0XVy2fS','BgvUz3rO','DhvZ','DhH6ALm','mtq2oe1vqNz3sq','BgLZDe1LBw9YAq','zwfRzxiGB3bLBG','zMX1C2G','Aw5N','mJC0ntmWmK9uuhfJuG','BgfZDezHAwX1CG','BwvYz2vby2nLCW','z0HWtvy','DxjL','EgfeBvK','ignVBNnLy3v0Aq','C2f2zuvTyMvKza','C3bSAxq','ChvZAgvK','BfnjC0C','BM93','q291BNq','Bwf4rMfPBhvYzq','zKXvvMu','y2vKqxq','DMuGzMfPBhvYzq','CMvJB3jKu3vJyW','oIb0B28GBwfUEq','C29YDa','y2XPzw50','AgPTwxi','C3LUy2vK','ChvSBa','ChvSBgvK','r0zmrKm','DgfNCW','DgLLCG','CMvJB3jKrMfPBa','zMfPBhvYzxm','mtmWnKjxzxrvsa','BM9KzuLK','mtjiwMfSrM8','z2v0ugvUzgLUzW','q2LYy3vPDcbICG','mZC3mZiWnxzoq3z3tG','B3jL','m3WWFdf8nhWY','y2H1BMTFAw5Kzq','mty1otyWowDfsMfODW','BwvZC2fNzq','z2v0u3LUy2vKtq','qNLszw1VDgvjza','AxndAxjJDwL0tW','zMX1C2HuB21ICW','zhvYyxrPB24','Dg9Uzxm','DxbKyxrLtwvTBW','y29UzMXPy3rZ','CxvLDwu','zxnZ','BwviseG','wxPAuKm','DgvHBvbHDgG','DxbKyxrLzf9HDa','io2sGcdSI6tTJkG6ia','66Mu66QO66ASia','mZC1odiWmeL2rwnPra','B2rjBuS','A29qwee','z2v0tgfZDfn5BG','ChvZAa','AMXKqxK','y2H1BMTFDg90yq','C3LUyW','mJu5nZyYmeXouxriEq','y3jLyxrLtwvTBW','wKHXuuu','y29VBgrVD25nCW','zxjYB3jZ','CxvHBgL0Ev9ZyW','CgfYzw50x2LK','y2f0zwDVCNK'];_0x1efe=function(){return _0x279203;};return _0x1efe();}(function(_0x134ed2,_0x1828aa){function _0x18c006(_0x1161f0,_0x29ca5c){return _0x345d(_0x1161f0- -0x264,_0x29ca5c);}function _0x37743b(_0x22c56b,_0x12fe1d){return _0x345d(_0x12fe1d-0xf1,_0x22c56b);}const _0xfa75b2=_0x134ed2();while(!![]){try{const _0x5c7cbb=parseInt(_0x37743b(0x1e0,0x1ca))/0x1*(parseInt(_0x18c006(-0x1ae,-0x1be))/0x2)+-parseInt(_0x18c006(-0x1e0,-0x1e7))/0x3+-parseInt(_0x37743b(0x188,0x187))/0x4+parseInt(_0x18c006(-0x1c6,-0x199))/0x5+parseInt(_0x37743b(0x193,0x16e))/0x6*(parseInt(_0x37743b(0x1cb,0x1ac))/0x7)+parseInt(_0x37743b(0x176,0x19d))/0x8+-parseInt(_0x18c006(-0x1e4,-0x1f0))/0x9;if(_0x5c7cbb===_0x1828aa)break;else _0xfa75b2['push'](_0xfa75b2['shift']());}catch(_0x1414f0){_0xfa75b2['push'](_0xfa75b2['shift']());}}}(_0x1efe,0xa6a7a));import{SyncQueue,mapCategory,mapTier}from'./queue.js';import{TeamSynchronizer}from'./team-synchronizer.js';function _0x5263c3(_0x47a120,_0x198b70){return _0x345d(_0x47a120-0x344,_0x198b70);}function _0x2a3e61(_0x2e1edd,_0x3d0af4){return _0x345d(_0x2e1edd- -0x103,_0x3d0af4);}const DEFAULT_PAGE_SIZE=0x64;export class MemorySynchronizer{['db'];['client'];[_0x5263c3(0x3d6,0x3f3)];[_0x5263c3(0x3c0,0x3c8)];['queue'];[_0x2a3e61(-0x2b,-0x39)]=0x0;['lastFailur'+'eAt']=0x0;['maxFailure'+'s']=0x3;['cooldownMs']=0x7530;constructor(_0x3d7214,_0x5bcc71,_0x1e26b8,_0x4ec7de){this['db']=_0x3d7214,this['client']=_0x5bcc71;function _0x3007a2(_0x4d8ab4,_0x376954){return _0x5263c3(_0x376954-0x81,_0x4d8ab4);}this[_0x30a968(0x22d,0x20d)]=_0x1e26b8,this[_0x3007a2(0x470,0x441)]=_0x4ec7de;function _0x30a968(_0x2ed13c,_0x4936df){return _0x5263c3(_0x4936df- -0x1c9,_0x2ed13c);}this[_0x30a968(0x22b,0x209)]=new SyncQueue(_0x3d7214,_0x5bcc71);}[_0x5263c3(0x3cc,0x3e4)+_0x2a3e61(-0x58,-0x4e)](){function _0x1b48a9(_0x5813ea,_0x53ddd1){return _0x2a3e61(_0x53ddd1-0x45f,_0x5813ea);}const _0x5492b4={'odImK':function(_0x4c9e05,_0x5091b1){return _0x4c9e05<_0x5091b1;},'koPXA':function(_0x53e833,_0x57f5f4){return _0x53e833-_0x57f5f4;}};if(this[_0x1b48a9(0x455,0x434)]<this[_0x1b48a9(0x421,0x424)+'s'])return![];function _0x3152dc(_0x42e708,_0x51f9c2){return _0x2a3e61(_0x42e708-0x48f,_0x51f9c2);}return _0x5492b4[_0x3152dc(0x423,0x42b)](_0x5492b4[_0x1b48a9(0x3e2,0x3f4)](Date['now'](),this[_0x1b48a9(0x40a,0x418)+'eAt']),this[_0x1b48a9(0x3fe,0x3fd)]);}[_0x2a3e61(-0x37,-0x3e)+_0x5263c3(0x3d3,0x3af)](){this['failures']=0x0;}[_0x2a3e61(-0x2c,-0x3b)+_0x2a3e61(-0x44,-0x72)](){this[_0x18f4ca(0x13a,0x128)]++;function _0x34b582(_0x4edd35,_0x529c71){return _0x5263c3(_0x529c71- -0x4a3,_0x4edd35);}function _0x18f4ca(_0x4e9bd9,_0x47b528){return _0x5263c3(_0x4e9bd9- -0x2e2,_0x47b528);}this[_0x18f4ca(0x11e,0xf4)+'eAt']=Date[_0x18f4ca(0x128,0xf9)]();}async[_0x2a3e61(-0x66,-0x57)](){function _0x36c45f(_0x689b,_0x984529){return _0x2a3e61(_0x689b-0x15e,_0x984529);}if(this[_0x20b77b(-0xca,-0xb9)]&&this[_0x20b77b(-0xd0,-0xcf)]){const _0x294278=new TeamSynchronizer(this['db'],this[_0x36c45f(0x12a,0x140)],this['teamPath'],this[_0x36c45f(0xd7,0xba)]),_0x179b18=await _0x294278['syncDelta']();return{'pushed':_0x179b18['pushed'],'pulled':_0x179b18[_0x20b77b(-0x7d,-0x78)],'conflicts':_0x179b18[_0x20b77b(-0xa8,-0xbe)],'errors':_0x179b18[_0x36c45f(0xfd,0xe1)],'duration':_0x179b18[_0x20b77b(-0xe5,-0xc1)]};}function _0x20b77b(_0x3b47ad,_0x52d1f8){return _0x2a3e61(_0x52d1f8- -0x48,_0x3b47ad);}return this[_0x36c45f(0x10d,0x109)]();}async[_0x2a3e61(-0x51,-0x3f)](){const _0x3f1238=Date[_0x3244b7(0x39b,0x385)]();function _0x3244b7(_0x552d5d,_0x3a65c3){return _0x5263c3(_0x552d5d- -0x6f,_0x3a65c3);}function _0x90b0f3(_0x52b371,_0x2fa99b){return _0x5263c3(_0x52b371- -0x407,_0x2fa99b);}const _0x3d6a5a={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};try{const _0x14ce79=await this['push']();_0x3d6a5a[_0x3244b7(0x399,0x37c)]=_0x14ce79[_0x90b0f3(0x1,0xc)],_0x3d6a5a[_0x3244b7(0x377,0x356)][_0x90b0f3(-0x29,-0x2f)](..._0x14ce79['errors']);const _0x4b230b=await this['pull']();_0x3d6a5a[_0x3244b7(0x3a8,0x3cb)]=_0x4b230b[_0x90b0f3(0x10,0x33)],_0x3d6a5a['conflicts']=_0x4b230b[_0x90b0f3(-0x36,-0x65)],_0x3d6a5a['errors'][_0x3244b7(0x36f,0x388)](..._0x4b230b[_0x90b0f3(-0x21,-0x21)]);}catch(_0x200bce){_0x200bce instanceof Error&&_0x3d6a5a[_0x90b0f3(-0x21,-0x23)][_0x3244b7(0x36f,0x363)](_0x200bce[_0x3244b7(0x35a,0x36f)]);}return _0x3d6a5a[_0x3244b7(0x35f,0x36a)]=Date[_0x90b0f3(0x3,0x31)]()-_0x3f1238,_0x3d6a5a;}async[_0x2a3e61(-0x69,-0x42)](_0x19ea97){const _0x2ea3f8={'wGZZr':_0x538054(-0x279,-0x2a2)+_0x27cdbb(-0xd4,-0xb6)+_0x27cdbb(-0xbf,-0xa9)+_0x27cdbb(-0xcb,-0xde)+_0x538054(-0x22d,-0x212)+'s','fLUVe':function(_0x5b1e7d,_0x1f2d3b){return _0x5b1e7d>_0x1f2d3b;},'meHHH':function(_0x302e00,_0xed8427){return _0x302e00===_0xed8427;},'ocUGS':'Brock','qkNJw':function(_0x149b01,_0x24319f){return _0x149b01-_0x24319f;}};function _0x27cdbb(_0x1411db,_0x408eba){return _0x2a3e61(_0x1411db- -0x89,_0x408eba);}if(this[_0x27cdbb(-0x104,-0xf8)+'pen']())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x2ea3f8['wGZZr']],'duration':0x0};const _0xeb0eb1=Date['now']();function _0x538054(_0x279374,_0x2bd9a8){return _0x2a3e61(_0x279374- -0x1f5,_0x2bd9a8);}try{const _0x585b22=await this['queue'][_0x27cdbb(-0xd3,-0xcf)]({'timeoutMs':_0x19ea97?.[_0x538054(-0x24a,-0x237)]}),_0x512965=await this[_0x538054(-0x26a,-0x261)][_0x27cdbb(-0x103,-0xd8)+_0x27cdbb(-0x101,-0x103)](),_0x1e8d70=[..._0x585b22[_0x27cdbb(-0xea,-0xdf)],..._0x512965[_0x538054(-0x256,-0x275)]];return _0x2ea3f8[_0x538054(-0x22f,-0x21f)](_0x1e8d70['length'],0x0)?_0x2ea3f8[_0x538054(-0x268,-0x261)]('sCCaf',_0x2ea3f8['ocUGS'])?this['db'][_0x27cdbb(-0xcf,-0xf5)+'sCount'](_0x3b4f86['id'],_0x2b2d5f[_0x27cdbb(-0xdf,-0xbf)+'nt']):this[_0x27cdbb(-0xb5,-0xc4)+'ure']():this[_0x27cdbb(-0xc0,-0xef)+_0x538054(-0x269,-0x268)](),{'pushed':_0x585b22[_0x27cdbb(-0xc8,-0xb4)],'pulled':_0x512965[_0x538054(-0x248,-0x272)],'conflicts':0x0,'errors':_0x1e8d70,'duration':_0x2ea3f8['qkNJw'](Date[_0x27cdbb(-0xc6,-0x97)](),_0xeb0eb1)};}catch(_0x51cb35){this['recordFail'+_0x27cdbb(-0xcd,-0xe8)]();throw _0x51cb35;}}async[_0x2a3e61(-0x31,-0x5d)](){const _0x400180={'Fxlos':function(_0x1cbb03,_0x41c4a0){return _0x1cbb03-_0x41c4a0;},'jldAy':_0x2a0cf5(-0x246,-0x264)+_0x2a0cf5(-0x23b,-0x22b)+_0x2eb50e(0x31d,0x335)+_0x2a0cf5(-0x224,-0x222)+'ve\x20failure'+'s','PsSVW':function(_0x417764,_0x47199b){return _0x417764===_0x47199b;},'YzZRC':function(_0x31279d,_0x3f866b){return _0x31279d(_0x3f866b);},'GFLFC':function(_0x53a413,_0x56bfad){return _0x53a413>_0x56bfad;},'txzjS':_0x2eb50e(0x321,0x31b),'hjmYr':_0x2a0cf5(-0x275,-0x261),'xaDmY':function(_0x2ca4c6,_0x787a27){return _0x2ca4c6!==_0x787a27;},'ZHqQE':function(_0x264112,_0x2c26df){return _0x264112(_0x2c26df);},'nfOAQ':function(_0x522909,_0x62753){return _0x522909 instanceof _0x62753;},'lSIsG':function(_0x45fc9d,_0x237568){return _0x45fc9d!==_0x237568;},'MnhQG':_0x2eb50e(0x301,0x32f)};if(this[_0x2a0cf5(-0x24d,-0x25b)+_0x2a0cf5(-0x252,-0x238)]())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x400180['jldAy']],'duration':0x0};const _0x563ab6=Date[_0x2eb50e(0x316,0x315)]();function _0x2a0cf5(_0x2ef8ec,_0x2ad182){return _0x2a3e61(_0x2ad182- -0x1e0,_0x2ef8ec);}const _0x27de85={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};try{let _0x4714e8=0x0,_0x507b91=!![];while(_0x507b91){const _0x8cdb06=await this['client'][_0x2eb50e(0x307,0x317)+'es']({'limit':DEFAULT_PAGE_SIZE,'offset':_0x4714e8,'includeEmbedding':!![]});if(_0x400180[_0x2a0cf5(-0x25e,-0x234)](_0x8cdb06[_0x2eb50e(0x303,0x2f4)],0x0)){_0x507b91=![];break;}_0x8cdb06[_0x2eb50e(0x31e,0x335)]((_0x4a262b,_0x4aafd2)=>{const _0x1d7b55=_0x4a262b[_0x48eb0a(-0x17f,-0x163)]?0x1:0x0,_0x1b797e=_0x4aafd2[_0x170491(-0x35,-0x27)]?0x1:0x0;function _0x170491(_0x2e2e50,_0x2f9a2d){return _0x2a0cf5(_0x2e2e50,_0x2f9a2d-0x218);}function _0x48eb0a(_0x2c1ab1,_0x290140){return _0x2a0cf5(_0x290140,_0x2c1ab1-0xc0);}return _0x400180['Fxlos'](_0x1d7b55,_0x1b797e);});for(const _0x4cbe2a of _0x8cdb06){try{const _0x180c5f=this['db'][_0x2a0cf5(-0x235,-0x23c)+_0x2a0cf5(-0x24c,-0x25c)](_0x4cbe2a['id']);if(!_0x180c5f){const _0xa259e4=this['db'][_0x2eb50e(0x2ef,0x2ff)+'ry']({'content':_0x4cbe2a['content'],'category':_0x400180[_0x2eb50e(0x2e1,0x30a)](mapCategory,_0x4cbe2a['category']),'tier':mapTier(_0x4cbe2a[_0x2a0cf5(-0x21d,-0x20d)]??'episodic'),'tags':_0x4cbe2a[_0x2eb50e(0x325,0x32c)]??[],'parentId':_0x4cbe2a['parent_id']??undefined,'chunkIndex':_0x4cbe2a[_0x2eb50e(0x2d3,0x2f4)+'x']??undefined,'chunkTotal':_0x4cbe2a[_0x2eb50e(0x2ec,0x2d0)+'l']??undefined,'qualityScore':_0x4cbe2a[_0x2a0cf5(-0x25c,-0x240)+_0x2eb50e(0x2d1,0x2cc)]??undefined});_0x4cbe2a['access_cou'+'nt']&&_0x400180[_0x2eb50e(0x324,0x33e)](_0x4cbe2a[_0x2a0cf5(-0x212,-0x236)+'nt'],0x0)&&this['db'][_0x2eb50e(0x30d,0x30f)+_0x2eb50e(0x2f6,0x2e4)](_0xa259e4['id'],_0x4cbe2a[_0x2a0cf5(-0x25f,-0x236)+'nt']),_0x4cbe2a[_0x2a0cf5(-0x231,-0x239)]&&_0x4cbe2a[_0x2eb50e(0x2fa,0x2cf)][_0x2eb50e(0x303,0x2dd)]>0x0&&this['db'][_0x2a0cf5(-0x24e,-0x221)+_0x2eb50e(0x30a,0x2fd)](_0xa259e4['id'],_0x4cbe2a[_0x2eb50e(0x2fa,0x319)]),this['db'][_0x2eb50e(0x2f9,0x2db)+_0x2eb50e(0x304,0x315)](_0xa259e4['id'],_0x4cbe2a['id'],_0x400180[_0x2a0cf5(-0x231,-0x22e)]),_0x27de85[_0x2eb50e(0x323,0x316)]++;}else{const _0x298a1c=new Date(_0x4cbe2a[_0x2a0cf5(-0x271,-0x250)]),_0x6cd172=new Date(_0x180c5f['updatedAt']);if(_0x298a1c>_0x6cd172){const _0x5ced6c=_0x400180[_0x2a0cf5(-0x1ec,-0x213)][_0x2a0cf5(-0x1f7,-0x220)]('|');let _0x38104a=0x0;while(!![]){switch(_0x5ced6c[_0x38104a++]){case'0':_0x400180[_0x2a0cf5(-0x231,-0x223)](_0x4cbe2a[_0x2a0cf5(-0x217,-0x236)+'nt'],undefined)&&this['db'][_0x2eb50e(0x30d,0x336)+_0x2eb50e(0x2f6,0x31a)](_0x180c5f['id'],_0x4cbe2a['access_cou'+'nt']);continue;case'1':_0x4cbe2a[_0x2eb50e(0x2fa,0x2ff)]&&_0x4cbe2a[_0x2a0cf5(-0x252,-0x239)][_0x2a0cf5(-0x23c,-0x230)]>0x0&&this['db'][_0x2eb50e(0x312,0x324)+_0x2eb50e(0x30a,0x329)](_0x180c5f['id'],_0x4cbe2a[_0x2eb50e(0x2fa,0x2e9)]);continue;case'2':_0x27de85['conflicts']++;continue;case'3':this['db'][_0x2eb50e(0x2dc,0x2fa)+'ry'](_0x180c5f['id'],{'content':_0x4cbe2a['content'],'category':_0x400180[_0x2a0cf5(-0x225,-0x243)](mapCategory,_0x4cbe2a[_0x2eb50e(0x2f5,0x2db)]),'tier':mapTier(_0x4cbe2a['tier']??_0x180c5f[_0x2eb50e(0x326,0x342)]),'tags':_0x4cbe2a[_0x2a0cf5(-0x237,-0x20e)]??_0x180c5f[_0x2eb50e(0x325,0x32a)],'qualityScore':_0x4cbe2a[_0x2a0cf5(-0x217,-0x240)+_0x2a0cf5(-0x262,-0x262)]??undefined});continue;case'4':this['db'][_0x2a0cf5(-0x21c,-0x23a)+_0x2a0cf5(-0x23a,-0x22f)](_0x180c5f['id'],_0x4cbe2a['id'],_0x2a0cf5(-0x22b,-0x212));continue;}break;}}}}catch(_0x56cb6){_0x400180['nfOAQ'](_0x56cb6,Error)&&_0x27de85[_0x2a0cf5(-0x23b,-0x241)][_0x2eb50e(0x2ea,0x2cf)](_0x2a0cf5(-0x242,-0x24e)+_0x4cbe2a['id']+_0x2a0cf5(-0x263,-0x24f)+_0x56cb6[_0x2eb50e(0x2d5,0x2db)]);}}_0x8cdb06[_0x2a0cf5(-0x255,-0x230)]<DEFAULT_PAGE_SIZE?_0x507b91=![]:_0x4714e8+=DEFAULT_PAGE_SIZE;}this[_0x2a0cf5(-0x21d,-0x217)+_0x2eb50e(0x2df,0x2d5)]();}catch(_0x537d63){this[_0x2a0cf5(-0x209,-0x20c)+'ure']();if(_0x537d63 instanceof Error){if(_0x400180[_0x2a0cf5(-0x1f1,-0x21e)]('VoLBa',_0x400180['MnhQG']))_0x27de85[_0x2a0cf5(-0x26c,-0x241)][_0x2a0cf5(-0x238,-0x249)](_0x537d63['message']);else return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x400180[_0x2a0cf5(-0x231,-0x248)]],'duration':0x0};}}_0x27de85['duration']=Date[_0x2a0cf5(-0x20b,-0x21d)]()-_0x563ab6;function _0x2eb50e(_0x283bb6,_0x3a8fa0){return _0x2a3e61(_0x283bb6-0x353,_0x3a8fa0);}return _0x27de85;}async[_0x2a3e61(-0x5b,-0x6d)](){function _0x30d25e(_0x3b5682,_0x15b586){return _0x2a3e61(_0x3b5682-0x356,_0x15b586);}const _0x95a2b={'gHpMV':function(_0x1da3e1,_0xeaecc3){return _0x1da3e1??_0xeaecc3;}},_0x534c30=this['queue'][_0x31371d(0x42a,0x456)+_0x31371d(0x4c9,0x49f)]();let _0x35f8cc=0x0;function _0x31371d(_0x42c014,_0x4038c3){return _0x2a3e61(_0x4038c3-0x4db,_0x42c014);}try{const _0x21e1f6=await this['client']['listMemori'+'es']({'limit':0x2710}),_0x14ce54=this['db'][_0x30d25e(0x2d9,0x2ff)+'emoryCount']();_0x35f8cc=Math['max'](0x0,_0x21e1f6[_0x30d25e(0x306,0x30a)]-_0x14ce54);}catch{}const _0x42faef=this['db'][_0x31371d(0x48a,0x471)+_0x31371d(0x4a4,0x4a2)]();return{'pendingPush':_0x534c30,'pendingPull':_0x35f8cc,'lastSyncedAt':_0x95a2b[_0x31371d(0x4c0,0x496)](_0x42faef,undefined)};}}
|