a2a-memory 0.12.0 → 0.12.2
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.js +1 -1
- package/dist/db/database.d.ts +9 -2
- 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.d.ts +29 -0
- 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.d.ts +27 -0
- package/dist/lifecycle/embedding-backfill.js +1 -0
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.d.ts +9 -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.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/skill/evaluator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x482a7c,_0x2b595e){function _0x27dced(_0x3e5780,_0x4795d7){return _0x2e92(_0x3e5780-0x1bb,_0x4795d7);}function _0x403ff3(_0x8c09e8,_0x2af2f6){return _0x2e92(_0x2af2f6-0x33,_0x8c09e8);}const _0x28914a=_0x482a7c();while(!![]){try{const _0x59ddca=-parseInt(_0x27dced(0x370,0x3cd))/0x1+-parseInt(_0x27dced(0x2d0,0x2f2))/0x2+parseInt(_0x27dced(0x37a,0x3ce))/0x3+-parseInt(_0x403ff3(0x175,0x14d))/0x4+-parseInt(_0x27dced(0x311,0x339))/0x5+-parseInt(_0x403ff3(0x19a,0x196))/0x6+parseInt(_0x403ff3(0x142,0x18b))/0x7;if(_0x59ddca===_0x2b595e)break;else _0x28914a['push'](_0x28914a['shift']());}catch(_0xef74e1){_0x28914a['push'](_0x28914a['shift']());}}}(_0x16b9,0x658be));function _0x16b9(){const _0x3a10f2=['CM5Sq0i','q3LkD1m','tfnuyNa','vgjICfC','BgWVCgf0DgvYBG','C2TPBgXFAwq','BgvHCM5PBMC','zdOG','rxzHBhvHDgLVBG','DvjpsKO','DMfSAwq','BNm6','wLf6v0G','se9eAeK','ig1LBw9YAwvZ','C2L6zq','DvHkzhi','DxrMltG','DvnHqKm','C2TPBgXdB252zq','CgfYC2u','zw9Tshi','EvjWsuq','y2f0zwDVCNK','BMf0DxjLoG','zMXVB3i','Bwf4','C3rYAw5NAwz5','BgXTvMfSAwrHDa','BMf0DxjL','zxzHBhvHDgvdBa','w1nRAwXSxsa','senduNK','CMv2Awv3u2TPBa','D1vZwvu','DMfSAwrHDgvxAq','zMLUza','zvnRAwXS','Aw1PBgfYig1LBq','DLrIzNy','ywn0AxzHDgLVBG','mJaWotmXmhfpq3PetG','runptK5sruzvuW','otKZmJa5n0fHDgP0ta','CNnPB24','z21Awhu','q291BNq','D3z5Ag4','BgfZDefJDgL2yq','y2XeAey','AwyGDgHLC2uGCW','vu5oCLm','DgToueG','C3rHCNrZv2L0Aa','odi4nZGWuM5Swhrv','uwvvCNi','yxPRyNO','ChvZAa','tMPqAeK','zw1IzwrKAw5N','r2XtEuK','Aw9UCW','AMvwAwS','q0P0quu','B2rIDfe','ENHTwNu','DgvKqxq','y1LYy1C','zwrKAw5NCW','BwLU','CMv2Awv3q3LJBa','yxj4q0K','DgGGsLnptJOGEW','EfD6uK8','u2TPBgW','zg9TywLU','s0XssgS','zMLSBa','Cgf0DgvYBG','thHVuNG','DgLTzw91Da','uNzlvNu','Aw5N','Aw9U','BwvZC2fNzq','Bwv0ytO','ywrK','y29UzMLN','BgPNBhu','t2Xvu1q','y3jLyxrLtwvTBW','Dgf4B25VBxK6','BgfZDefJy2vZCW','BM9Nu3a','icjJB25MAwrLBG','CNvLl2zHBhnLla','AvnJv2G','DxbKyxrLzef0','zwrbDa','C2vTyw50Awm','zurHExm','ywnJzxnZq291BG','yNjhCfq','iNzHBgLKiJOGDa','DgHmte0','y29TChjLC3nuBW','z2v0vgLTzq','ruH2Afa','y1j2zKG','CMv2Awv3rhvLqq','CMLLCW','seTOEMC','Afnwswq','y2XHC3nPzNLdBW','q2f0zwDVCNK6ia','C2f2zuvTyMvKza','zxGUANm','BgLZDe1LBw9YAq','sgLKAfa','shr4DLG','C2LTAwXHCML0Eq','rengAMy','q25PvMy','z2v0','C291CMnLtwvTBW','u291CMnLCZOG','zw5HyMXLza','Dg9tDhjPBMC','u09OzNq','C2TPBgW','zw50CMLLCW','yMfZzty0','BwLUq29UzMLKzq','CMfUzg9T','Dg9gAxHLza','qxz6thq','mZa4ntyYy3fzzuz5','u2fTCgXLig1LBq','ywjZB3jIsw50BW','rKvsufO','BfDqtLq','AezgrK4','BwfW','D3D3Efy','C2XPy2u','y29TCgXLDgu','nJG2nJe2v29JsM5b','zxH0CMfJDe1LDa','zNjVBq','y2X1C3rLCK1LBq','zxzHBhvHDgu','rhHRDum','D1D0zLy','BwLUuMvWzxrPDa','C2vZC2LVBKLK','ruPRuha','Dxn0zxi','DxbKyxrLtwvTBW','ugf0DgvYBJOG','CNLjzhm','AxneDxbSAwnHDa','CK1xvfK','BNq6ia','y3j5C3rHBgXPEG','BM93','tMz6AgS','Aw5JBhvKzxm','AM9PBG','rLHKA1G','vxzWAue','B3jPzxm6','vhb3v3G','BgXT','BefmC3G','Dg9ju09tDhjPBG','zMv0y2GGzMfPBa','y29UzMLKzw5Jzq','lJb9','rgv0zxjTAw5Lia','zuvOy2i','u2TPBgWGy3jLyq','DgfNCW','CMfNzvnPBwLSyq','BgvUz3rO','zxnLBNqGysbYzq','CvvYAM4','yxzLCMfNzuvTyG','mJi4nJqWAfDIt0TR','C2v0','uvzIzw4','uMvZCg9Uzcb3Aq','B1ftuMm','mta3ntC0mfLwA01nEG','igzHAwXLzdOG','ywrHDge','AgfZ','C3bSAxq','y29UDgvUDa','yunADfK','B3jPzxm','y2uIoIaWlJaTmq','renYA04','DgLVBIbMywLSzq','lI4VBgXTl2LUza','y29TChv0zuf2zq','tvrdqu0','zMLSDgvY','BuHxCuq','AevVzg0','CffXte4','B2jgA0K'];_0x16b9=function(){return _0x3a10f2;};return _0x16b9();}function _0x4cbf0f(_0x402ad6,_0x1a041b){return _0x2e92(_0x1a041b- -0xcc,_0x402ad6);}import{randomUUID}from'node:crypto';function _0x2e92(_0x12786a,_0x4db40e){_0x12786a=_0x12786a-0x108;const _0x16b9b0=_0x16b9();let _0x2e92f1=_0x16b9b0[_0x12786a];if(_0x2e92['uOODjx']===undefined){var _0x252893=function(_0x5129a1){const _0x5bd17e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xee85e6='',_0x51f0b8='';for(let _0x10dec8=0x0,_0x2a0bed,_0x430246,_0x4ead68=0x0;_0x430246=_0x5129a1['charAt'](_0x4ead68++);~_0x430246&&(_0x2a0bed=_0x10dec8%0x4?_0x2a0bed*0x40+_0x430246:_0x430246,_0x10dec8++%0x4)?_0xee85e6+=String['fromCharCode'](0xff&_0x2a0bed>>(-0x2*_0x10dec8&0x6)):0x0){_0x430246=_0x5bd17e['indexOf'](_0x430246);}for(let _0x13aab5=0x0,_0x3b5102=_0xee85e6['length'];_0x13aab5<_0x3b5102;_0x13aab5++){_0x51f0b8+='%'+('00'+_0xee85e6['charCodeAt'](_0x13aab5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51f0b8);};_0x2e92['mGdsLy']=_0x252893,_0x2e92['pKypIK']={},_0x2e92['uOODjx']=!![];}const _0x243314=_0x16b9b0[0x0],_0x1c413d=_0x12786a+_0x243314,_0x3e7a07=_0x2e92['pKypIK'][_0x1c413d];return!_0x3e7a07?(_0x2e92f1=_0x2e92['mGdsLy'](_0x2e92f1),_0x2e92['pKypIK'][_0x1c413d]=_0x2e92f1):_0x2e92f1=_0x3e7a07,_0x2e92f1;}import{cosineSimilarity}from'../extraction/similarity.js';function _0x272f8f(_0x3880a5,_0x20b674){return _0x2e92(_0x20b674- -0x378,_0x3880a5);}export class SkillEvaluator{['db'];[_0x4cbf0f(0x113,0xb8)];constructor(_0x4ec9b7,_0x3490f2){this['db']=_0x4ec9b7;function _0xa846ae(_0x3b6ac1,_0x1df897){return _0x4cbf0f(_0x1df897,_0x3b6ac1-0x32);}this[_0xa846ae(0xea,0x117)]=_0x3490f2;}async[_0x4cbf0f(0x153,0xf7)](_0x3d4d4b,_0x505895){function _0x36193d(_0x2e7249,_0x29459f){return _0x272f8f(_0x29459f,_0x2e7249-0x5d);}const _0x57d79f={'oCazp':_0x342c21(-0x1c3,-0x228),'ljglu':_0x342c21(-0x235,-0x203),'QVben':function(_0x4fc852,_0x15e001){return _0x4fc852>_0x15e001;},'Nfzhk':function(_0x27b589,_0x4d2153){return _0x27b589<_0x4d2153;},'CniVf':function(_0x4535a3,_0x526355){return _0x4535a3+_0x526355;},'wvyhn':function(_0x4fda74,_0x3a0459){return _0x4fda74-_0x3a0459;},'PzEkO':function(_0x46f5d5,_0x24d8c8){return _0x46f5d5!==_0x24d8c8;},'ZQzWH':function(_0x2ba64d,_0xbab14e){return _0x2ba64d instanceof _0xbab14e;},'jTUUM':function(_0xb89a10,_0x38d463){return _0xb89a10(_0x38d463);}},_0x552911=this['config'][_0x36193d(-0x1db,-0x17a)+_0x36193d(-0x1c2,-0x1bb)];function _0x342c21(_0x3c3208,_0x59277c){return _0x272f8f(_0x59277c,_0x3c3208-0x5);}if(!_0x552911?.['enabled'])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};const _0x55046d=[],_0x260b00=[];let _0x4882f2=0x0,_0x14aa5a=0x0;try{const _0x80f96f=this['db'][_0x342c21(-0x1d1,-0x1bb)+'es']({'limit':0x1f4,'projectPath':_0x3d4d4b}),_0x1766bd=_0x80f96f['filter'](_0x4e17b5=>_0x4e17b5[_0x36193d(-0x1d7,-0x1ad)]!=='skill'&&_0x4e17b5[_0x342c21(-0x20b,-0x255)]&&_0x4e17b5['embedding'][_0x342c21(-0x262,-0x288)]>0x0);if(_0x1766bd[_0x342c21(-0x262,-0x239)]<_0x552911[_0x36193d(-0x155,-0x122)+'ions'])return{'candidates':_0x260b00,'created':_0x4882f2,'skipped':_0x1766bd[_0x342c21(-0x262,-0x2ac)],'errors':_0x55046d};const _0x296dfd=0x12c;let _0x2b0f6c;if(_0x1766bd['length']>_0x296dfd){const _0x20888d=[..._0x1766bd]['sort']((_0xd84935,_0x36110)=>new Date(_0x36110[_0x36193d(-0x18d,-0x183)])[_0x342c21(-0x1dc,-0x1b9)]()-new Date(_0xd84935[_0x342c21(-0x1e5,-0x1b0)])[_0x342c21(-0x1dc,-0x190)]()),_0x26ce56=Math[_0x342c21(-0x22d,-0x295)](_0x296dfd*0.7),_0x4886db=_0x296dfd-_0x26ce56,_0x3be3b6=_0x20888d[_0x342c21(-0x1b6,-0x15f)](0x0,_0x26ce56),_0x527fd6=new Set(_0x3be3b6['map'](_0xe3757d=>_0xe3757d['id'])),_0x2f6318=_0x20888d['slice'](_0x26ce56)[_0x36193d(-0x1f3,-0x249)](_0x3a0263=>!_0x527fd6[_0x342c21(-0x256,-0x240)](_0x3a0263['id'])),_0x51a4e9=[];for(let _0x127c8e=_0x2f6318[_0x36193d(-0x20a,-0x203)]-0x1;_0x57d79f[_0x36193d(-0x204,-0x224)](_0x127c8e,0x0)&&_0x57d79f[_0x342c21(-0x1a1,-0x1ea)](_0x51a4e9[_0x36193d(-0x20a,-0x1c1)],_0x4886db);_0x127c8e--){const _0x118217=Math[_0x36193d(-0x1d5,-0x1cf)](Math[_0x36193d(-0x169,-0x1a8)]()*_0x57d79f[_0x36193d(-0x174,-0x117)](_0x127c8e,0x1));[_0x2f6318[_0x127c8e],_0x2f6318[_0x118217]]=[_0x2f6318[_0x118217],_0x2f6318[_0x127c8e]],_0x51a4e9['push'](_0x2f6318[_0x127c8e]);}_0x2b0f6c=[..._0x3be3b6,..._0x51a4e9];}else _0x2b0f6c=_0x1766bd;const _0x5ccd98=this[_0x36193d(-0x159,-0x1b1)+_0x342c21(-0x252,-0x237)](_0x2b0f6c,_0x552911[_0x36193d(-0x176,-0x1a3)+'Threshold']),_0x41c9c3=_0x80f96f[_0x36193d(-0x1f3,-0x244)](_0x1285da=>_0x1285da[_0x342c21(-0x22f,-0x243)]===_0x36193d(-0x16d,-0x152));let _0x5b98a3=_0x57d79f[_0x342c21(-0x217,-0x246)](_0x552911['maxSkills'],_0x41c9c3['length']);for(const _0x45849b of _0x5ccd98){if(_0x5b98a3<=0x0)break;const _0x3676b5=this[_0x36193d(-0x1d0,-0x16b)+_0x36193d(-0x152,-0x1b9)](_0x45849b,_0x552911[_0x36193d(-0x155,-0x126)+_0x36193d(-0x1b1,-0x1d9)],_0x552911[_0x342c21(-0x1c2,-0x208)+'nce']);if(!_0x3676b5){_0x14aa5a+=_0x45849b['length'];continue;}const _0x2e11c2=this[_0x342c21(-0x1a6,-0x1b3)+_0x36193d(-0x1c9,-0x217)](_0x3676b5,_0x41c9c3);if(_0x2e11c2){_0x14aa5a+=_0x45849b[_0x342c21(-0x262,-0x2bf)];continue;}_0x260b00[_0x36193d(-0x1b5,-0x1ee)](_0x3676b5);if(_0x552911[_0x342c21(-0x22a,-0x27d)+_0x36193d(-0x19b,-0x161)]&&this[_0x342c21(-0x1ef,-0x1ea)][_0x342c21(-0x19a,-0x1f5)]?.[_0x342c21(-0x1c8,-0x21c)]){if(_0x57d79f['PzEkO'](_0x36193d(-0x19f,-0x196),'nEAZD'))try{const _0x31ef74=await this[_0x342c21(-0x223,-0x26b)+'thLLM'](_0x3676b5);if(!_0x31ef74){_0x14aa5a+=_0x45849b[_0x36193d(-0x20a,-0x1af)];continue;}}catch(_0x2ee2ca){_0x55046d[_0x342c21(-0x20d,-0x1c6)]('LLM\x20valida'+_0x36193d(-0x1f7,-0x1bf)+_0x342c21(-0x23f,-0x1e8)+(_0x2ee2ca instanceof Error?_0x2ee2ca[_0x36193d(-0x19a,-0x15d)]:String(_0x2ee2ca)));}else this['db']=_0x10dec8,this[_0x342c21(-0x1ef,-0x1fc)]=_0x2a0bed;}try{if('DCFjf'===_0x342c21(-0x1cd,-0x1af))await this[_0x36193d(-0x185,-0x125)+_0x342c21(-0x1fc,-0x1e3)](_0x3676b5,_0x505895),_0x4882f2++,_0x5b98a3--;else{const _0x172065=_0x2e4c26[_0x342c21(-0x1b2,-0x1f4)](_0x344fb0[_0x342c21(-0x1b6,-0x157)](0x5),_0x57d79f['oCazp'])['toString'](_0x57d79f[_0x342c21(-0x1ee,-0x1b3)]);return _0x1a250d[_0x342c21(-0x232,-0x220)](_0x172065);}}catch(_0x529285){if(_0x342c21(-0x19d,-0x1de)!==_0x36193d(-0x1b7,-0x1d4))_0x55046d[_0x342c21(-0x20d,-0x1c1)](_0x342c21(-0x265,-0x2bf)+_0x342c21(-0x24f,-0x23c)+_0x36193d(-0x1e7,-0x18c)+(_0x57d79f[_0x36193d(-0x1e2,-0x22f)](_0x529285,Error)?_0x529285[_0x342c21(-0x1f2,-0x1f0)]:String(_0x529285)));else for(let _0x3b3f8a=_0x73cef6+0x1;_0x3b3f8a<_0x4530e8[_0x342c21(-0x262,-0x2c5)];_0x3b3f8a++){_0x3847a3[_0x53a26c][_0x36193d(-0x1b3,-0x21b)]&&_0x4af1e4[_0x3b3f8a][_0x342c21(-0x20b,-0x233)]&&(_0x460ab7+=_0x427629(_0x4642ca[_0x51627b]['embedding'],_0x3cce16[_0x3b3f8a]['embedding']),_0x948286++);}}}}catch(_0x4d7616){_0x55046d['push'](_0x342c21(-0x23e,-0x22a)+_0x342c21(-0x258,-0x2c1)+(_0x4d7616 instanceof Error?_0x4d7616[_0x36193d(-0x19a,-0x13d)]:_0x57d79f['jTUUM'](String,_0x4d7616)));}return{'candidates':_0x260b00,'created':_0x4882f2,'skipped':_0x14aa5a,'errors':_0x55046d};}[_0x272f8f(-0x178,-0x1b6)+_0x272f8f(-0x22b,-0x257)](_0x492f28,_0x4df0e7){const _0x9cd5d9={'lWPNT':_0x3c4bee(0x439,0x488),'nogSp':function(_0xcdaea0,_0x5085e2){return _0xcdaea0>=_0x5085e2;},'SNReC':_0x31115b(-0x28c,-0x238)},_0x3e636c=new Set();function _0x3c4bee(_0x3b2bd2,_0xd9ff5a){return _0x272f8f(_0xd9ff5a,_0x3b2bd2-0x64c);}function _0x31115b(_0x4b16c0,_0x436a61){return _0x272f8f(_0x4b16c0,_0x436a61- -0x5c);}const _0x2113ab=[];for(const _0x3f0865 of _0x492f28){if(_0x3e636c[_0x31115b(-0x2c6,-0x2b7)](_0x3f0865['id']))continue;if(!_0x3f0865[_0x31115b(-0x290,-0x26c)])continue;const _0x2e41d9=[_0x3f0865];_0x3e636c[_0x3c4bee(0x457,0x49b)](_0x3f0865['id']);for(const _0x1ea300 of _0x492f28){if(_0x9cd5d9[_0x31115b(-0x236,-0x21b)]!==_0x3c4bee(0x439,0x41d))_0x4fc0e7[_0x31115b(-0x248,-0x26e)]('Evaluation'+_0x31115b(-0x2f7,-0x2b9)+(_0x1783cb instanceof _0x3b14bd?_0x51723f[_0x31115b(-0x28b,-0x253)]:_0x519a87(_0x1ec6a6)));else{if(_0x3e636c[_0x3c4bee(0x3f1,0x3fd)](_0x1ea300['id']))continue;if(!_0x1ea300[_0x31115b(-0x208,-0x26c)])continue;const _0x102f5f=cosineSimilarity(_0x3f0865[_0x3c4bee(0x43c,0x440)],_0x1ea300[_0x31115b(-0x24d,-0x26c)]);_0x9cd5d9[_0x3c4bee(0x45e,0x406)](_0x102f5f,_0x4df0e7)&&('hSDbG'===_0x9cd5d9['SNReC']?(this['db']['updateMemo'+'ry'](_0x3bc6c8['id'],{'category':_0x31115b(-0x2a7,-0x2a1),'tags':_0x462d4a[_0x3c4bee(0x3e3,0x406)][_0x31115b(-0x2d3,-0x2ac)](_0x417659=>!_0x417659[_0x3c4bee(0x436,0x479)]('meta:')&&_0x417659!=='skill'&&_0x417659!==_0x3c4bee(0x4a4,0x484)+'ed')}),_0x2973de++):(_0x2e41d9[_0x3c4bee(0x43a,0x41c)](_0x1ea300),_0x3e636c['add'](_0x1ea300['id'])));}}_0x2113ab[_0x3c4bee(0x43a,0x3fc)](_0x2e41d9);}return _0x2113ab;}[_0x272f8f(-0x288,-0x22d)+'uster'](_0x41f0fe,_0x2d39b5,_0x37ed88){const _0x48a8d1={'KpOJS':function(_0x4e2679,_0x5aebf3){return _0x4e2679>=_0x5aebf3;},'uSaBC':function(_0xd92e0e,_0x36303f){return _0xd92e0e+_0x36303f;},'wWtfV':function(_0x5d284d,_0xea76ae){return _0x5d284d!==_0xea76ae;},'iScWh':function(_0x49084c,_0x437e60){return _0x49084c>_0x437e60;},'tvsRB':function(_0xf62bb0,_0x393039){return _0xf62bb0<_0x393039;},'obFkI':function(_0x4cac46,_0x23a770){return _0x4cac46<_0x23a770;},'cbxws':_0x17ff17(-0x15b,-0x1c2),'hFFFN':_0x17ff17(-0x15f,-0x164),'rMWTY':function(_0x1f660b){return _0x1f660b();}};function _0x17ff17(_0x54c026,_0x3693e4){return _0x272f8f(_0x3693e4,_0x54c026-0xf0);}const _0x154a35=0.5;if(_0x41f0fe[_0xa29ed7(-0x1c4,-0x22c)]<_0x2d39b5)return null;const _0x4ef8e6=this['computeAve'+_0xa29ed7(-0x24c,-0x22d)+'rity'](_0x41f0fe);if(_0x4ef8e6<0.75)return null;let _0x2351d3=_0x4ef8e6;const _0x37d2ce=new Set(_0x41f0fe[_0xa29ed7(-0x169,-0x182)](_0x50eef9=>_0x50eef9[_0xa29ed7(-0x1ad,-0x176)])['filter'](Boolean));_0x48a8d1['KpOJS'](_0x37d2ce[_0x17ff17(-0x14c,-0x1aa)],0x2)&&(_0x2351d3*=1.2);const _0x23973a=new Map();for(const _0x4dee07 of _0x41f0fe){_0x23973a[_0x17ff17(-0x172,-0x1d8)](_0x4dee07['category'],_0x48a8d1[_0x17ff17(-0x149,-0x19b)](_0x23973a[_0x17ff17(-0xe0,-0x9f)](_0x4dee07[_0xa29ed7(-0x1b6,-0x1f9)])??0x0,0x1));}let _0x5f0ece=_0x41f0fe[0x0][_0xa29ed7(-0x205,-0x1f9)],_0x2328ba=0x0;for(const [_0x46dcc8,_0x2b7819]of _0x23973a){if(_0x48a8d1[_0xa29ed7(-0x166,-0x178)](_0xa29ed7(-0x19a,-0x1a5),_0x17ff17(-0xf0,-0x112)))return{'candidates':_0x1e053d,'created':_0x4ea878,'skipped':_0x46ec9f[_0xa29ed7(-0x258,-0x22c)],'errors':_0x5ec4bb};else _0x48a8d1[_0xa29ed7(-0x196,-0x1b0)](_0x2b7819,_0x2328ba)&&(_0x2328ba=_0x2b7819,_0x5f0ece=_0x46dcc8);}_0x2328ba/_0x41f0fe[_0x17ff17(-0x177,-0x112)]>=0.5&&(_0x2351d3*=1.1);_0x2351d3=Math[_0xa29ed7(-0x19c,-0x1cb)](_0x2351d3,0x1);if(_0x48a8d1['tvsRB'](_0x2351d3,_0x154a35))return null;let _0xb8bb40;const _0x5c1cfb=_0x41f0fe[_0x17ff17(-0x160,-0x11c)](_0x599728=>_0x599728['embedding']&&_0x599728[_0xa29ed7(-0x238,-0x1d5)]['length']>0x0);if(_0x48a8d1['KpOJS'](_0x5c1cfb[_0x17ff17(-0x177,-0x193)],0x2)){const _0x205b77=_0x5c1cfb[0x0][_0xa29ed7(-0x199,-0x1d5)][_0x17ff17(-0x177,-0x163)],_0xc7ffee=new Array(_0x205b77)[_0x17ff17(-0x10e,-0x178)](0x0);for(const _0x496119 of _0x5c1cfb){for(let _0x1f223a=0x0;_0x48a8d1[_0x17ff17(-0x15c,-0x1c4)](_0x1f223a,_0x205b77);_0x1f223a++){_0xc7ffee[_0x1f223a]+=_0x496119[_0x17ff17(-0x120,-0x11b)][_0x1f223a]/_0x5c1cfb[_0x17ff17(-0x177,-0x134)];}}let _0x31e9d4=0x0,_0x37c85c=-0x1;for(let _0x30e4f7=0x0;_0x30e4f7<_0x5c1cfb[_0xa29ed7(-0x1e6,-0x22c)];_0x30e4f7++){const _0x47e533=cosineSimilarity(_0xc7ffee,_0x5c1cfb[_0x30e4f7][_0xa29ed7(-0x223,-0x1d5)]);_0x48a8d1[_0x17ff17(-0xfb,-0xb2)](_0x47e533,_0x37c85c)&&(_0x37c85c=_0x47e533,_0x31e9d4=_0x30e4f7);}_0xb8bb40=_0x5c1cfb[_0x31e9d4][_0x17ff17(-0x169,-0x1d0)][_0xa29ed7(-0x125,-0x180)](0x0,0x1f4);}else{if(_0x48a8d1['cbxws']!==_0xa29ed7(-0x227,-0x1fb)){const _0x2384bc=[..._0x41f0fe]['sort']((_0x78c9cb,_0x1af723)=>_0x1af723[_0x17ff17(-0x169,-0x123)]['length']-_0x78c9cb['content']['length']);_0xb8bb40=_0x2384bc[0x0][_0xa29ed7(-0x1b9,-0x21e)][_0x17ff17(-0xcb,-0xef)](0x0,0x1f4);}else return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};}const _0x500efd=new Map();for(const _0x38bde1 of _0x41f0fe){if(_0x48a8d1['wWtfV'](_0x17ff17(-0x175,-0x151),_0x48a8d1[_0xa29ed7(-0x192,-0x183)]))for(const _0x48c653 of _0x38bde1['tags']){_0x500efd[_0x17ff17(-0x172,-0x1a9)](_0x48c653,(_0x500efd[_0xa29ed7(-0x1d2,-0x195)](_0x48c653)??0x0)+0x1);}else _0x1484bf[_0x2c94de]/=_0x13b098['length'];}function _0xa29ed7(_0x313e18,_0x46bcfb){return _0x272f8f(_0x313e18,_0x46bcfb-0x3b);}const _0x34bf5b=Array[_0xa29ed7(-0x13d,-0x17c)](_0x500efd[_0xa29ed7(-0x19f,-0x18e)]())[_0x17ff17(-0x160,-0x15b)](([,_0xbc2f7])=>_0xbc2f7>=0x2)[_0x17ff17(-0xcd,-0x9a)](([_0x4c3ca0])=>_0x4c3ca0);return{'clusterId':_0x48a8d1[_0xa29ed7(-0x1c2,-0x16f)](randomUUID),'sourceMemories':_0x41f0fe,'category':_0x5f0ece,'confidence':_0x2351d3,'pattern':_0xb8bb40,'tags':[..._0x34bf5b,_0xa29ed7(-0x187,-0x18f),_0xa29ed7(-0x15e,-0x16d)+'ed']};}async[_0x272f8f(-0x223,-0x228)+_0x4cbf0f(0x7e,0xc9)](_0x56baa3){function _0x2031d5(_0x2dcc14,_0x18cdae){return _0x272f8f(_0x18cdae,_0x2dcc14-0x195);}function _0x3b78f6(_0x5a104a,_0x19acac){return _0x272f8f(_0x5a104a,_0x19acac-0x15e);}const _0x44ec8c={'KLRHk':_0x3b78f6(-0x119,-0xf5)+_0x3b78f6(-0x81,-0x79),'clDhF':_0x2031d5(-0x2d,-0x87)+_0x3b78f6(-0x2a,-0x43),'HidhP':function(_0x44ac1c,_0xbdc4e3){return _0x44ac1c>=_0xbdc4e3;},'yRpID':function(_0x527316,_0x3395d5){return _0x527316(_0x3395d5);},'oQSRc':_0x3b78f6(-0xe6,-0x9d),'wNtLP':_0x3b78f6(-0x88,-0xc3)+'ED','brGpT':_0x2031d5(-0xda,-0x84)+'ed'};try{const {createLLMClient:_0xf0c868}=await import(_0x44ec8c[_0x2031d5(-0x6a,-0x27)]),_0x2b1094=_0xf0c868(this['config'][_0x3b78f6(-0x54,-0x41)]),_0x122b49=[_0x2031d5(-0xd7,-0xca)+_0x2031d5(-0x84,-0x8e)+_0x2031d5(-0x90,-0xa6)+'ories\x20repr'+_0x2031d5(-0xd1,-0x11b)+'usable\x20ski'+_0x2031d5(-0xb2,-0x9f)+'.',_0x3b78f6(-0x120,-0x102)+_0x2031d5(-0x6e,-0x1e)+_0x2031d5(-0x4f,-0x2a)+_0x2031d5(-0x57,-0x9f)+_0x3b78f6(-0xb0,-0x8f)+_0x3b78f6(-0x93,-0xf8)+_0x3b78f6(-0x15d,-0x10f),'','Category:\x20'+_0x56baa3[_0x3b78f6(-0xde,-0xd6)],_0x3b78f6(-0x4f,-0x4f)+_0x56baa3[_0x2031d5(-0x68,-0xcd)],'Source\x20cou'+_0x2031d5(-0x14,0x31)+_0x56baa3[_0x2031d5(-0x3a,-0x93)+_0x3b78f6(-0x51,-0x7f)]['length'],'',_0x44ec8c[_0x2031d5(-0x85,-0xec)],..._0x56baa3[_0x2031d5(-0x3a,0x8)+_0x2031d5(-0x48,-0xe)][_0x2031d5(-0x26,0x18)](0x0,0x3)['map']((_0x5227a6,_0x1d6790)=>_0x1d6790+0x1+'.\x20'+_0x5227a6[_0x3b78f6(-0xaa,-0xfb)][_0x2031d5(-0x26,-0x21)](0x0,0xc8))][_0x3b78f6(-0x61,-0x46)]('\x0a'),_0x263cf9=await _0x2b1094[_0x3b78f6(-0x59,-0x5c)](_0x122b49),_0x51a3f4=JSON[_0x2031d5(-0xa2,-0x5a)](_0x263cf9);return _0x51a3f4[_0x3b78f6(-0x10c,-0xe3)]===!![]&&_0x44ec8c[_0x3b78f6(-0xa8,-0x77)](_0x51a3f4[_0x2031d5(-0xd9,-0xf1)]??0x0,this[_0x2031d5(-0x5f,-0x72)][_0x2031d5(-0xa3,-0x3b)+_0x2031d5(-0x8a,-0x77)]?.[_0x3b78f6(-0xa2,-0x69)+'nce']??0.7);}catch(_0x2c5103){const _0x47791e=_0x2c5103 instanceof Error?_0x2c5103[_0x3b78f6(-0x52,-0x99)]:_0x44ec8c[_0x3b78f6(-0x6f,-0xd7)](String,_0x2c5103);if(_0x47791e[_0x3b78f6(-0x61,-0x47)](_0x44ec8c[_0x3b78f6(-0xa5,-0x101)])||_0x47791e[_0x2031d5(-0x10,-0x14)](_0x44ec8c['wNtLP'])||_0x47791e[_0x2031d5(-0x10,-0x2e)](_0x44ec8c[_0x2031d5(-0x50,-0x4c)]))return![];return![];}}async[_0x272f8f(-0x20e,-0x1e2)+'Skill'](_0x1f3427,_0x3a2a7f){const _0x1135f6={'ahYCr':function(_0x43506a,_0x6104c6){return _0x43506a*_0x6104c6;},'arxCI':function(_0x586e4c,_0x52ad5e){return _0x586e4c*_0x52ad5e;},'XMdxr':function(_0x1396f1,_0x53b59e){return _0x1396f1*_0x53b59e;},'pQqLN':_0x262861(0x1f6,0x247),'LSTbp':function(_0x374188,_0x5b70c0){return _0x374188&&_0x5b70c0;},'zxmZu':_0x16bd55(-0x53,-0x31),'gmZXu':_0x16bd55(-0xd3,-0x7e),'jeVik':_0x262861(0x23c,0x291),'UNNrS':_0x262861(0x2c3,0x265),'GlSyI':_0x262861(0x2a1,0x288),'hEodm':function(_0x4ca7d7,_0x7b0014){return _0x4ca7d7>_0x7b0014;}},_0x1987c9=new Date()[_0x262861(0x1d2,0x200)+'g'](),_0x512122=new Date(Date['now']()+_0x1135f6['ahYCr'](_0x1135f6[_0x262861(0x214,0x26c)](_0x1135f6['XMdxr'](this['config'][_0x16bd55(-0xc3,-0xf2)+_0x262861(0x276,0x251)]?.[_0x16bd55(-0x90,-0x7e)+_0x262861(0x273,0x289)]??0x5a,0x18)*0x3c,0x3c),0x3e8))[_0x16bd55(-0xfb,-0x124)+'g'](),_0xd38fa4=this['buildSkill'+'Content'](_0x1f3427);let _0x47c4d5=null;if(_0x3a2a7f)try{_0x1135f6[_0x262861(0x284,0x223)]!==_0x1135f6['pQqLN']?(_0x3b079a=_0x232335,_0x5e5529=_0xd39b45):_0x47c4d5=await _0x3a2a7f[_0x262861(0x254,0x296)+'ntent']({'content':_0x1f3427[_0x16bd55(-0x88,-0x80)],'tags':_0x1f3427['tags'][_0x262861(0x209,0x220)](_0x7e3ce8=>!_0x7e3ce8[_0x262861(0x2be,0x25a)](_0x16bd55(-0x81,-0xa4))&&_0x7e3ce8!==_0x262861(0x2a6,0x2a6)&&_0x7e3ce8!=='crystalliz'+'ed'),'category':_0x1f3427[_0x262861(0x2a5,0x23c)]});}catch{}const _0x363892={'sourceMemoryIds':_0x1f3427[_0x16bd55(-0x5a,0x10)+_0x16bd55(-0x68,-0xc6)]['map'](_0x56d875=>_0x56d875['id']),'crystallizedAt':_0x1987c9,'confidence':_0x1f3427['confidence'],'reviewDueAt':_0x512122,'activationCount':0x0,..._0x1135f6[_0x16bd55(-0xd4,-0xdb)](_0x47c4d5,{'taxonomyDomain':_0x47c4d5[_0x262861(0x2d6,0x270)],'taxonomySkillId':_0x47c4d5[_0x262861(0x20b,0x22a)]??undefined,'taxonomyNature':_0x47c4d5[_0x262861(0x222,0x242)]??undefined,'taxonomyStability':_0x47c4d5['stability']??undefined,'taxonomyConfidence':_0x47c4d5[_0x262861(0x238,0x202)]})};function _0x16bd55(_0x408c32,_0x323964){return _0x272f8f(_0x323964,_0x408c32-0x175);}const _0x376691=_0x262861(0x2c7,0x27a)+Buffer[_0x16bd55(-0x42,-0x4a)](JSON[_0x262861(0x20f,0x240)](_0x363892))['toString'](_0x1135f6[_0x16bd55(-0x95,-0xd7)]),_0x4d4fdc=[];if(_0x47c4d5){if(_0x1135f6[_0x262861(0x213,0x252)]===_0x1135f6[_0x262861(0x2c8,0x263)])return{'absorbed':![]};else _0x4d4fdc['push'](_0x16bd55(-0x7b,-0x25)+_0x47c4d5['domain']),_0x47c4d5[_0x16bd55(-0xd1,-0x8b)]&&_0x4d4fdc[_0x262861(0x2c4,0x25e)](_0x262861(0x25a,0x280)+_0x47c4d5['skill_id']),_0x47c4d5[_0x16bd55(-0xb9,-0x51)]&&(_0x262861(0x2ee,0x2d2)===_0x1135f6[_0x16bd55(-0xa3,-0x8e)]?(_0x59dd7a=_0x4e992a,_0x3112d9=_0x2f7dc4):_0x4d4fdc[_0x262861(0x278,0x25e)](_0x262861(0x24f,0x23d)+_0x47c4d5[_0x262861(0x250,0x242)]));}function _0x262861(_0x4392ec,_0x4d389f){return _0x272f8f(_0x4392ec,_0x4d389f-0x470);}const _0xecdde9=this['db'][_0x262861(0x285,0x27f)+'ry']({'content':_0xd38fa4,'category':_0x262861(0x2fb,0x2a6),'tier':_0x1135f6[_0x16bd55(-0x9a,-0xa6)],'tags':[..._0x1f3427[_0x262861(0x200,0x207)],..._0x4d4fdc,_0x376691],'projectPath':_0x1f3427['sourceMemo'+'ries'][0x0]?.['projectPat'+'h']}),_0x445d15=_0x1f3427[_0x16bd55(-0x5a,-0xa8)+_0x262861(0x29b,0x293)]['map'](_0x2f4143=>_0x2f4143[_0x16bd55(-0x9b,-0xca)])[_0x262861(0x1e8,0x220)](_0x4e89e4=>!!_0x4e89e4&&_0x4e89e4[_0x16bd55(-0xf2,-0xe6)]>0x0);if(_0x1135f6[_0x16bd55(-0xd9,-0xe6)](_0x445d15[_0x262861(0x1c3,0x209)],0x0)){const _0x20785a=this[_0x262861(0x1b6,0x20c)+_0x262861(0x27b,0x269)](_0x445d15);this['db'][_0x16bd55(-0x63,-0x63)+_0x16bd55(-0x84,-0x2d)](_0xecdde9['id'],_0x20785a);}return _0xecdde9;}[_0x4cbf0f(0x96,0x82)+'ls'](){const _0x59547a={'FXdkX':_0x5a7d51(0x569,0x504),'wwwxV':function(_0x425043,_0x5d4fba){return _0x425043<_0x5d4fba;},'RvKVu':function(_0x482432,_0x5770b1){return _0x482432<_0x5770b1;},'SOhft':function(_0x348ea6,_0x39de59){return _0x348ea6+_0x39de59;},'jsnvX':function(_0x352e9e,_0x3b47bb){return _0x352e9e*_0x3b47bb;},'DxkuC':function(_0x5863f3,_0x4bf37f){return _0x5863f3*_0x4bf37f;},'AvzLt':_0xa78ecd(0x1ea,0x248)},_0x553c5d=new Date();let _0x18b6ec=0x0,_0x5c8f28=0x0,_0x24788a=0x0;function _0x5a7d51(_0x26cb68,_0x2a1b1b){return _0x272f8f(_0x2a1b1b,_0x26cb68-0x733);}const _0x519b99=this['db']['listMemori'+'es']({'category':_0x59547a[_0x5a7d51(0x590,0x5a5)],'limit':0x3e8});function _0xa78ecd(_0x3e4365,_0x3870fe){return _0x272f8f(_0x3870fe,_0x3e4365-0x3b2);}for(const _0x448d17 of _0x519b99){_0x18b6ec++;const _0x43486f=this[_0x5a7d51(0x57b,0x51a)+_0x5a7d51(0x4d7,0x4ef)](_0x448d17);if(!_0x43486f)continue;const _0xddf1ce=new Date(_0x43486f[_0x5a7d51(0x555,0x53e)+'t']);if(_0x59547a[_0xa78ecd(0x1f6,0x227)](_0x553c5d,_0xddf1ce))continue;if(_0x59547a[_0x5a7d51(0x539,0x51a)](_0x448d17['accessCoun'+'t'],0x2))this['db'][_0xa78ecd(0x204,0x24a)+'ry'](_0x448d17['id'],{'category':_0x5a7d51(0x4ee,0x493),'tags':_0x448d17[_0x5a7d51(0x4ca,0x504)]['filter'](_0x4ee6bb=>!_0x4ee6bb[_0xa78ecd(0x19c,0x195)](_0x5a7d51(0x53d,0x4f5))&&_0x4ee6bb!=='skill'&&_0x4ee6bb!==_0x5a7d51(0x58b,0x579)+'ed')}),_0x5c8f28++;else{const _0x1b06fc=new Date(_0x59547a[_0xa78ecd(0x1e7,0x1bf)](Date[_0x5a7d51(0x58c,0x570)](),_0x59547a['jsnvX'](_0x59547a[_0x5a7d51(0x57f,0x56c)]((this[_0x5a7d51(0x53f,0x57f)][_0x5a7d51(0x4fb,0x527)+_0x5a7d51(0x514,0x52e)]?.[_0x5a7d51(0x52e,0x53a)+_0x5a7d51(0x54c,0x560)]??0x5a)*0x18,0x3c),0x3c)*0x3e8))['toISOStrin'+'g'](),_0x362520={..._0x43486f,'reviewDueAt':_0x1b06fc,'activationCount':_0x448d17[_0xa78ecd(0x1cc,0x1f5)+'t'],'lastActivatedAt':_0x448d17['lastAccess'+_0xa78ecd(0x1c9,0x211)]},_0x152f95=_0x5a7d51(0x53d,0x55b)+Buffer[_0x5a7d51(0x57c,0x591)](JSON[_0xa78ecd(0x182,0x1d4)](_0x362520))[_0xa78ecd(0x1e6,0x23f)](_0x59547a[_0xa78ecd(0x1ee,0x18d)]),_0x1bd89a=_0x448d17[_0xa78ecd(0x149,0x179)][_0xa78ecd(0x162,0x14d)](_0x25f2c7=>!_0x25f2c7['startsWith'](_0x5a7d51(0x53d,0x4e1)));_0x1bd89a[_0x5a7d51(0x521,0x53c)](_0x152f95),this['db']['updateMemo'+'ry'](_0x448d17['id'],{'tags':_0x1bd89a}),_0x24788a++;}}return{'reviewed':_0x18b6ec,'demoted':_0x5c8f28,'renewed':_0x24788a};}[_0x272f8f(-0x24a,-0x252)+_0x272f8f(-0x251,-0x268)+'rity'](_0x259dda){const _0x22dcbb={'aCZtY':function(_0x1ddb0b,_0x56f1d3){return _0x1ddb0b<_0x56f1d3;},'sVoGV':function(_0x424246,_0x1b7c64,_0x44fd12){return _0x424246(_0x1b7c64,_0x44fd12);}};if(_0x22dcbb[_0xe8a3f6(-0x79,-0x66)](_0x259dda[_0x477e08(0x2d7,0x2df)],0x2))return 0x1;let _0x4b8c1c=0x0;function _0xe8a3f6(_0x21c053,_0x3849f2){return _0x4cbf0f(_0x21c053,_0x3849f2- -0xba);}let _0x3019e4=0x0;function _0x477e08(_0x8cd5f5,_0x5a27bb){return _0x4cbf0f(_0x5a27bb,_0x8cd5f5-0x292);}for(let _0x49da1e=0x0;_0x49da1e<_0x259dda[_0x477e08(0x2d7,0x33a)];_0x49da1e++){for(let _0x4c94f0=_0x49da1e+0x1;_0x22dcbb[_0xe8a3f6(-0xba,-0x66)](_0x4c94f0,_0x259dda['length']);_0x4c94f0++){_0x259dda[_0x49da1e][_0x477e08(0x32e,0x391)]&&_0x259dda[_0x4c94f0][_0x477e08(0x32e,0x31e)]&&(_0x4b8c1c+=_0x22dcbb['sVoGV'](cosineSimilarity,_0x259dda[_0x49da1e][_0xe8a3f6(-0x50,-0x1e)],_0x259dda[_0x4c94f0][_0x477e08(0x32e,0x2fb)]),_0x3019e4++);}}return _0x3019e4>0x0?_0x4b8c1c/_0x3019e4:0x0;}[_0x272f8f(-0x195,-0x1ab)+_0x272f8f(-0x1c4,-0x226)](_0x250728,_0x44c781){const _0x215fc9={'xWzRO':function(_0x2b0c85,_0xf29c8b){return _0x2b0c85/_0xf29c8b;}},_0x409f8a=new Set(_0x250728[_0x2088ba(0x1e2,0x246)+_0x2088ba(0x1db,0x238)]['map'](_0x16c0ec=>_0x16c0ec['id']));function _0x2a1a72(_0xbed3bf,_0x23de4d){return _0x4cbf0f(_0x23de4d,_0xbed3bf-0x100);}for(const _0x3209c2 of _0x44c781){const _0x1df134=this['extractMet'+_0x2088ba(0x1ec,0x1b9)](_0x3209c2);if(!_0x1df134)continue;const _0xf017f6=new Set(_0x1df134[_0x2a1a72(0x1dd,0x1ab)+_0x2a1a72(0x200,0x264)]),_0x6193cd=[..._0x409f8a][_0x2a1a72(0x15c,0x1b2)](_0x553ca2=>_0xf017f6[_0x2088ba(0x21f,0x1ba)](_0x553ca2))[_0x2088ba(0x1a0,0x1ae)],_0x356b05=_0x215fc9[_0x2088ba(0x243,0x213)](_0x6193cd,Math[_0x2088ba(0x187,0x1e4)](_0x409f8a[_0x2a1a72(0x170,0x117)],_0xf017f6[_0x2a1a72(0x170,0x181)]));if(_0x356b05>=0.7)return!![];}function _0x2088ba(_0x28b8ec,_0x3dc880){return _0x4cbf0f(_0x28b8ec,_0x3dc880-0x169);}return![];}['buildSkill'+'Content'](_0x135ed0){const _0x394cf4={'HODhI':function(_0xac008,_0x376f62){return _0xac008*_0x376f62;},'TpwWx':function(_0x2b3abf,_0x3d8fa9){return _0x2b3abf*_0x3d8fa9;},'NZBtU':function(_0x724e42,_0x3f5d04){return _0x724e42>_0x3f5d04;},'cYrcW':'Key\x20patter'+_0x545633(0x31c,0x34a),'eEhcb':function(_0x1828ba,_0x105a68){return _0x1828ba===_0x105a68;},'FERPZ':_0x52afb4(0x1ae,0x155),'HCCRy':_0x52afb4(0xcc,0x12a)};function _0x52afb4(_0x438c94,_0x15e2fe){return _0x4cbf0f(_0x438c94,_0x15e2fe-0xc0);}const _0x12ee78=[];_0x12ee78[_0x545633(0x34a,0x3a1)](_0x52afb4(0x172,0x140)+_0x135ed0['pattern']);function _0x545633(_0x1632b4,_0x54d518){return _0x4cbf0f(_0x54d518,_0x1632b4-0x2b0);}_0x12ee78[_0x545633(0x34a,0x315)](''),_0x12ee78[_0x545633(0x34a,0x35a)](_0x545633(0x383,0x346)+_0x135ed0[_0x545633(0x328,0x342)]),_0x12ee78[_0x52afb4(0x184,0x15a)](_0x545633(0x38e,0x332)+_0x135ed0[_0x545633(0x38d,0x373)+_0x545633(0x37f,0x337)][_0x52afb4(0x116,0x105)]+_0x545633(0x31f,0x2e3)),_0x12ee78[_0x52afb4(0x11f,0x15a)]('Confidence'+':\x20'+_0x394cf4[_0x52afb4(0x22f,0x1cc)](_0x135ed0[_0x52afb4(0xf2,0xfe)],0x64)['toFixed'](0x0)+'%');if(_0x394cf4['NZBtU'](_0x135ed0['sourceMemo'+_0x52afb4(0x185,0x18f)][_0x52afb4(0x13e,0x105)],0x1)){_0x12ee78[_0x52afb4(0x11c,0x15a)](''),_0x12ee78[_0x52afb4(0x113,0x15a)](_0x394cf4[_0x545633(0x354,0x32e)]);for(const _0x13028b of _0x135ed0[_0x52afb4(0x19f,0x19d)+_0x545633(0x37f,0x34b)][_0x545633(0x3a1,0x342)](0x0,0x3)){if(_0x394cf4[_0x545633(0x2f1,0x2eb)](_0x394cf4[_0x545633(0x39c,0x405)],_0x394cf4[_0x52afb4(0x135,0x141)])){const _0x13ab22=[];_0x13ab22[_0x545633(0x34a,0x33e)](_0x52afb4(0xf4,0x140)+_0x5e8276[_0x52afb4(0x19c,0x16f)]),_0x13ab22[_0x545633(0x34a,0x35a)](''),_0x13ab22[_0x52afb4(0x17e,0x15a)](_0x52afb4(0x1d6,0x193)+_0x14b5b2[_0x52afb4(0x101,0x138)]),_0x13ab22[_0x52afb4(0xfc,0x15a)](_0x52afb4(0x16e,0x19e)+_0x24c0df[_0x545633(0x38d,0x3cb)+_0x545633(0x37f,0x316)][_0x52afb4(0x167,0x105)]+'\x20memories'),_0x13ab22[_0x545633(0x34a,0x37a)]('Confidence'+':\x20'+_0x394cf4[_0x545633(0x31e,0x2bc)](_0x23668c[_0x52afb4(0xd1,0xfe)],0x64)[_0x545633(0x397,0x377)](0x0)+'%');if(_0x564429[_0x52afb4(0x16d,0x19d)+'ries'][_0x52afb4(0x15c,0x105)]>0x1){_0x13ab22['push'](''),_0x13ab22[_0x52afb4(0x118,0x15a)]('Key\x20patter'+_0x52afb4(0x18a,0x12c));for(const _0x4c2d31 of _0x3e2b56[_0x52afb4(0x1ec,0x19d)+'ries'][_0x545633(0x3a1,0x340)](0x0,0x3)){const _0x48cd02=_0x4c2d31[_0x545633(0x303,0x2e6)][_0x545633(0x302,0x29d)]('\x0a')[0x0]['slice'](0x0,0x96);_0x13ab22[_0x52afb4(0x128,0x15a)]('-\x20'+_0x48cd02);}}return _0x13ab22[_0x52afb4(0x163,0x1c8)]('\x0a');}else{const _0x5a83f3=_0x13028b[_0x52afb4(0x123,0x113)][_0x52afb4(0xb2,0x112)]('\x0a')[0x0][_0x52afb4(0x1df,0x1b1)](0x0,0x96);_0x12ee78[_0x52afb4(0x158,0x15a)]('-\x20'+_0x5a83f3);}}}return _0x12ee78[_0x52afb4(0x16e,0x1c8)]('\x0a');}[_0x4cbf0f(0xfd,0xf4)+_0x4cbf0f(0x6f,0x50)](_0xcf4eac){function _0x29ed66(_0x38562c,_0xcebc30){return _0x4cbf0f(_0x38562c,_0xcebc30-0x3ab);}const _0x3d1c11={'DCrkN':_0x54758a(0x2fa,0x360)},_0x216a57=_0xcf4eac[_0x29ed66(0x442,0x3ee)][_0x29ed66(0x414,0x430)](_0x235212=>_0x235212[_0x29ed66(0x49f,0x441)](_0x29ed66(0x411,0x461)));if(!_0x216a57)return null;function _0x54758a(_0x439028,_0x12deec){return _0x4cbf0f(_0x439028,_0x12deec-0x2ee);}try{const _0x3817a3=Buffer[_0x29ed66(0x4d9,0x4a0)](_0x216a57['slice'](0x5),_0x29ed66(0x492,0x48f))[_0x54758a(0x37f,0x3ce)](_0x3d1c11[_0x54758a(0x324,0x345)]);return JSON['parse'](_0x3817a3);}catch{return null;}}[_0x4cbf0f(0x88,0x48)+_0x4cbf0f(0x88,0xa5)](_0x3b7f87){const _0x4ccf5e={'EJkPp':function(_0x1774ed,_0x5c76f9){return _0x1774ed/_0x5c76f9;},'HtxvX':function(_0x49c964,_0x35dc53){return _0x49c964!==_0x35dc53;},'mDdPi':_0x1e5c49(-0xb5,-0xd2)};if(_0x3b7f87['length']===0x0)return[];const _0x430eb3=_0x3b7f87[0x0][_0x2be8ec(-0x177,-0x1b1)],_0x53437d=new Array(_0x430eb3)[_0x1e5c49(-0xd8,-0xc4)](0x0);for(const _0x5174fb of _0x3b7f87){for(let _0x21df3a=0x0;_0x21df3a<_0x430eb3;_0x21df3a++){_0x53437d[_0x21df3a]+=_0x5174fb[_0x21df3a];}}function _0x1e5c49(_0x3c0cd6,_0x4ebb88){return _0x4cbf0f(_0x4ebb88,_0x3c0cd6- -0x186);}function _0x2be8ec(_0x1577b0,_0x533455){return _0x4cbf0f(_0x533455,_0x1577b0- -0x1bc);}for(let _0x5b0c3e=0x0;_0x5b0c3e<_0x430eb3;_0x5b0c3e++){_0x4ccf5e[_0x1e5c49(-0xae,-0x6b)](_0x4ccf5e['mDdPi'],_0x1e5c49(-0xb5,-0xf3))?_0x592c34[_0x416d42]+=lPeJIY[_0x1e5c49(-0x8a,-0x94)](_0x1b68bd[_0x1e5c49(-0xea,-0xfd)][_0x3cfc12],_0x1bf07a['length']):_0x53437d[_0x5b0c3e]/=_0x3b7f87[_0x1e5c49(-0x141,-0x1a4)];}return _0x53437d;}[_0x272f8f(-0x222,-0x1c1)+_0x4cbf0f(0x7e,0xab)](_0x1cd9c0){const _0x142e59={'NjPhI':function(_0x13834a,_0x41b74b){return _0x13834a+_0x41b74b;},'vTbfv':function(_0x34ef37,_0x174b8b){return _0x34ef37*_0x174b8b;},'MTCAM':function(_0x2de363,_0x41853b){return _0x2de363*_0x41853b;},'YJAPU':function(_0x3f737b,_0x55feb2){return _0x3f737b*_0x55feb2;},'kUkpg':function(_0x3306fb,_0x4d1970,_0x1e5d55){return _0x3306fb(_0x4d1970,_0x1e5d55);},'IIMxY':function(_0x1ed0bb,_0x4b8aac){return _0x1ed0bb===_0x4b8aac;},'uXJdr':_0x2e2e9e(0x398,0x38c),'EyCRH':function(_0x319f6e,_0x2ea25b){return _0x319f6e<_0x2ea25b;},'KmXUt':function(_0x34f1da,_0x29bda7){return _0x34f1da+_0x29bda7;},'CJtAE':function(_0xaf4ff,_0x44a6e6){return _0xaf4ff+_0x44a6e6;}};if(!_0x1cd9c0[_0x497efd(0x1f7,0x21c)]||_0x1cd9c0[_0x497efd(0x1d3,0x1a4)]===_0x497efd(0x23d,0x290))return{'absorbed':![]};const _0x451257=this['db'][_0x497efd(0x231,0x1df)+'es']({'limit':0xc8})['filter'](_0x4543f6=>_0x4543f6[_0x497efd(0x1d3,0x1e4)]===_0x497efd(0x23d,0x252));for(const _0x10e173 of _0x451257){if(!_0x10e173[_0x497efd(0x1f7,0x1b8)])continue;const _0x498e6d=_0x142e59['kUkpg'](cosineSimilarity,_0x1cd9c0['embedding'],_0x10e173[_0x2e2e9e(0x3d2,0x416)]);if(_0x498e6d<0.8)continue;const _0x10ae13=this['extractMet'+'adata'](_0x10e173);if(!_0x10ae13)continue;if(_0x10ae13['sourceMemo'+_0x497efd(0x25b,0x1fb)]['includes'](_0x1cd9c0['id'])){if(_0x142e59['IIMxY'](_0x142e59[_0x497efd(0x1cc,0x17e)],_0x497efd(0x215,0x21c))){const _0x39c65d=new _0x3f2a07(FaIDLW[_0x2e2e9e(0x3d1,0x3fe)](_0x2bbe6c[_0x497efd(0x260,0x233)](),FaIDLW[_0x2e2e9e(0x3be,0x389)](FaIDLW[_0x497efd(0x1b6,0x16c)](FaIDLW['YJAPU'](this['config']['skillConve'+_0x497efd(0x1e8,0x1bc)]?.['reviewCycl'+_0x2e2e9e(0x3fb,0x42b)]??0x5a,0x18)*0x3c,0x3c),0x3e8)))['toISOStrin'+'g'](),_0x5e1069={..._0x310b8b,'reviewDueAt':_0x39c65d,'activationCount':_0x5246e1[_0x497efd(0x221,0x259)+'t'],'lastActivatedAt':_0x579ca2[_0x497efd(0x218,0x1f2)+_0x2e2e9e(0x3f9,0x3a0)]},_0x47ecfa=_0x2e2e9e(0x3ec,0x391)+_0x1dca45[_0x2e2e9e(0x42b,0x41a)](_0x54a924[_0x497efd(0x1d7,0x1a2)](_0x5e1069))[_0x2e2e9e(0x416,0x45d)]('base64'),_0x412fee=_0x2d4cd7['tags']['filter'](_0xfb2ecb=>!_0xfb2ecb['startsWith'](_0x2e2e9e(0x3ec,0x3a8)));_0x412fee[_0x2e2e9e(0x3d0,0x413)](_0x47ecfa),this['db'][_0x2e2e9e(0x434,0x46b)+'ry'](_0x572a94['id'],{'tags':_0x412fee}),_0x10671b++;}else return{'absorbed':![]};}_0x10ae13[_0x497efd(0x238,0x293)+_0x497efd(0x25b,0x29c)]['push'](_0x1cd9c0['id']),_0x10ae13[_0x2e2e9e(0x3bf,0x3da)+_0x497efd(0x1ea,0x242)]=_0x142e59[_0x2e2e9e(0x3d1,0x3cb)](_0x10ae13[_0x2e2e9e(0x3bf,0x386)+_0x497efd(0x1ea,0x210)]||0x0,0x1),_0x10ae13[_0x497efd(0x1ec,0x1a4)+_0x497efd(0x1fe,0x1c4)]=new Date()['toISOStrin'+'g']();const _0x3897a9='meta:'+Buffer[_0x2e2e9e(0x42b,0x417)](JSON[_0x2e2e9e(0x3b2,0x34e)](_0x10ae13))[_0x497efd(0x23b,0x260)](_0x2e2e9e(0x41a,0x3ed)),_0x32c874=_0x10e173[_0x497efd(0x19e,0x1c8)][_0x2e2e9e(0x392,0x332)](_0xfa211c=>!_0xfa211c[_0x497efd(0x1f1,0x18f)](_0x497efd(0x211,0x262))),_0x40d94d='-\x20'+_0x1cd9c0[_0x497efd(0x1ae,0x214)]['split']('\x0a')[0x0]['slice'](0x0,0x96);let _0xc6d7e3=_0x10e173[_0x497efd(0x1ae,0x1ef)];const _0x2fb0fe=_0xc6d7e3[_0x2e2e9e(0x388,0x3ca)]('\x0a')[_0x2e2e9e(0x392,0x3a6)](_0x51cfeb=>_0x51cfeb[_0x497efd(0x1f1,0x248)]('-\x20'));return _0x142e59['EyCRH'](_0x2fb0fe[_0x2e2e9e(0x37b,0x38e)],0x5)&&(_0xc6d7e3=_0x142e59['KmXUt'](_0x142e59[_0x497efd(0x1fb,0x1e7)](_0xc6d7e3['trimEnd'](),'\x0a'),_0x40d94d)),this['db'][_0x2e2e9e(0x434,0x48f)+'ry'](_0x10e173['id'],{'content':_0xc6d7e3,'tags':[..._0x32c874,_0x3897a9]}),{'absorbed':!![],'skillId':_0x10e173['id']};}function _0x497efd(_0x3b589d,_0x515fca){return _0x4cbf0f(_0x515fca,_0x3b589d-0x15b);}function _0x2e2e9e(_0x173cc2,_0x416309){return _0x4cbf0f(_0x416309,_0x173cc2-0x336);}return{'absorbed':![]};}}
|
|
1
|
+
function _0x201cf7(_0x38daee,_0x2a2d79){return _0x716e(_0x38daee- -0x28c,_0x2a2d79);}(function(_0x1cd19d,_0x1e2783){function _0x4f904d(_0x53b90d,_0x28e6e9){return _0x716e(_0x28e6e9-0x208,_0x53b90d);}const _0x5d90d0=_0x1cd19d();function _0x19c437(_0x1bfe1c,_0xb4db60){return _0x716e(_0x1bfe1c- -0x15d,_0xb4db60);}while(!![]){try{const _0x3c2c20=-parseInt(_0x19c437(-0x68,-0x50))/0x1*(parseInt(_0x19c437(-0xb6,-0xc5))/0x2)+parseInt(_0x19c437(-0x3a,0x1d))/0x3*(-parseInt(_0x19c437(-0xba,-0x59))/0x4)+parseInt(_0x4f904d(0x2b3,0x2eb))/0x5+parseInt(_0x4f904d(0x29a,0x2a1))/0x6*(-parseInt(_0x19c437(-0x16,0x1e))/0x7)+-parseInt(_0x4f904d(0x2c1,0x2ee))/0x8+parseInt(_0x4f904d(0x2fb,0x2d7))/0x9+-parseInt(_0x4f904d(0x36c,0x30b))/0xa*(-parseInt(_0x19c437(0x2,-0x4b))/0xb);if(_0x3c2c20===_0x1e2783)break;else _0x5d90d0['push'](_0x5d90d0['shift']());}catch(_0x58ff76){_0x5d90d0['push'](_0x5d90d0['shift']());}}}(_0x55ff,0x74584));function _0x716e(_0x42a8b3,_0xd2df8b){_0x42a8b3=_0x42a8b3-0x98;const _0x55ff6c=_0x55ff();let _0x716e93=_0x55ff6c[_0x42a8b3];if(_0x716e['RVTWln']===undefined){var _0x2b203b=function(_0x256b43){const _0x289cd3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2904c9='',_0x52c392='';for(let _0x15a8b3=0x0,_0x47d43f,_0x5f2593,_0x1ed232=0x0;_0x5f2593=_0x256b43['charAt'](_0x1ed232++);~_0x5f2593&&(_0x47d43f=_0x15a8b3%0x4?_0x47d43f*0x40+_0x5f2593:_0x5f2593,_0x15a8b3++%0x4)?_0x2904c9+=String['fromCharCode'](0xff&_0x47d43f>>(-0x2*_0x15a8b3&0x6)):0x0){_0x5f2593=_0x289cd3['indexOf'](_0x5f2593);}for(let _0x43784c=0x0,_0x3e5d03=_0x2904c9['length'];_0x43784c<_0x3e5d03;_0x43784c++){_0x52c392+='%'+('00'+_0x2904c9['charCodeAt'](_0x43784c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x52c392);};_0x716e['gskWJE']=_0x2b203b,_0x716e['fmYbth']={},_0x716e['RVTWln']=!![];}const _0x59a860=_0x55ff6c[0x0],_0xe10693=_0x42a8b3+_0x59a860,_0x3c6b09=_0x716e['fmYbth'][_0xe10693];return!_0x3c6b09?(_0x716e93=_0x716e['gskWJE'](_0x716e93),_0x716e['fmYbth'][_0xe10693]=_0x716e93):_0x716e93=_0x3c6b09,_0x716e93;}import{randomUUID}from'node:crypto';function _0x2b645c(_0x7d92bf,_0x591111){return _0x716e(_0x7d92bf-0x396,_0x591111);}function _0x55ff(){const _0x5adc50=['yxzLCMfNzuvTyG','CMv2Awv3rhvLqq','ugf0DgvYBJOG','A2LbA2q','r3rdEem','DKfkvem','v2r6sgW','C3bSAxq','y2f0zwDVCNK','vhzYCee','B1jprNm','zNjVBq','Dg9tDhjPBMC','uuPfvNa','BvrTCMu','C3Hgv0i','rM5krwG','uxHVy0G','AwyGDgHLC2uGCW','zurHExm','BwfRDve','tg9HvLq','uMvZCg9Uzcb3Aq','mtrkDKjnv2i','qKfQyui','EMTzrwO','ywnJzxnZq291BG','wLLjALm','DxbKyxrLzef0','vhrvyxC','uKPSDgW','qwnzA3y','DxrMltG','zw50CMLLCW','zvnRAwXS','zw5HyMXLza','BgXT','C2TPBgXFAwq','zMLUza','y2uIoIaWlJaTmq','C2L6zq','C1jWruu','BhHVzuS','C2XPy2u','ywn0AxzHDgLVBG','tfD3tu0','y3jLyxrLtwvTBW','nda2mdu0D0TmDxHP','y29TChjLC3nuBW','zxGUANm','ywrHDge','sNvKu3i','oteZndK0zwToyKrN','C2vZC2LVBKLK','C2f2zuvTyMvKza','zxnLBNqGysbYzq','rufsAve','AM9PBG','teXnihzHBgLKyq','CNLjzhm','C3rHCNrZv2L0Aa','Bwf4','ofHhrvLtrq','EfLSweq','zMXVB3i','zMPiA1e','mZeWEK5rvK1k','z2v0vgLTzq','EgPHA3m','DMfSAwrHDgvxAq','zMLSBa','BMf0DxjL','q2f0zwDVCNK6ia','w1nRAwXSxsa','BwvZC2fNzq','ChjHv0m','y2XHC3nPzNLdBW','BKT5uuq','BMf0DxjLoG','u291CMnLCZOG','CMLLCW','uNvNAxq','EwfQseu','y29UzMLKzw5Jzq','Dwr3Avy','tvrNqui','y29TChv0zuf2zq','AuDssNm','Aw1PBgfYig1LBq','BgWVCgf0DgvYBG','C3rYAw5NAwz5','EgzMsuG','BgvHCM5PBMC','BwfW','Dgf4B25VBxK6','CMfUzg9T','C3rHyMLSAxr5','tuvRrum','AxneDxbSAwnHDa','zurktey','zg9TywLU','lI4VBgXTl2LUza','DgHmte0','zMLSDgvY','Dg9ju09tDhjPBG','qvjbyK8','nda0ndeYm0ruCKrzBW','DgfNCW','yMfZzty0','runptK5sruzvuW','zw1IzwrKAw5N','r1roB3y','Aw5JBhvKzxm','u2TPBgW','ywjZB3jIsw50BW','DgLTzw91Da','zdOG','rxzHBhvHDgLVBG','u291CMnLignVDq','igzHAwXLzdOG','DgGGsLnptJOGEW','vfHqvMe','yNvPBgrtA2LSBa','Cw1Pt2C','tezrwuq','BgvUz3rO','mJG5nZu0nuLfDNLMsG','vuzczw0','BM93','mtu3mdy0DwH0zwfn','C2vTyw50Awm','zwrKAw5NCW','C2TPBgXdB252zq','y29UDgvUDa','ChvZAa','Aw9UCW','q29UzMLKzw5Jzq','BwLUuMvWzxrPDa','Dg9gAxHLza','y3j5C3rHBgXPEG','qNDNwKG','u2TPBgWGy3jLyq','BvnXEey','B0jpwxa','mJC3nu10CwXoyG','q291BNq','sMzru2S','D2jJu2O','B3jPzxm6','q29UDgvUDa','ywrK','C2TPBgW','BMvjvgS','BwLUq29UzMLKzq','B3jPzxm','zMv0y2GGzMfPBa','BgLZDe1LBw9YAq','yxLOrwq','otbwqwrisgW','iNzHBgLKiJOGDa','rKjUCwe','zhLuDvy','rxzuvxq','y21Mz1i','tgnjyxC','zxH0CMfJDe1LDa','z2v0','q0vWtMK','AgfZ','AfvUvu8','CNvLl2zHBhnLla','Agzoz1y','zxzHBhvHDgvdBa','CMfNzvnPBwLSyq','y2X1C3rLCK1LBq','C291CMnLtwvTBW','ExP6Awi','zxzHBhvHDgu','DxbKyxrLtwvTBW','ugHhsgq','Bwv0ytO','CML0Eq','DgLVBIbMywLSzq','vMnWwwC','t2zqreW','y29UzMLN','EufdB0O','Cgf0DgvYBG','zvbgswi','CKX2Cee','mtK1nde3uxrVv2Xw','Dxn0zxi','zwrbDa','CMv2Awv3q3LJBa','ExHABKq','Dw1UDxK','BMnL','Aw5N','yxj3EwW','Aw9U','DgvKqxq','rgv0zxjTAw5Lia','CNnPB24'];_0x55ff=function(){return _0x5adc50;};return _0x55ff();}import{cosineSimilarity}from'../extraction/similarity.js';export class SkillEvaluator{['db'];[_0x2b645c(0x4b4,0x489)];constructor(_0x243afe,_0x3d6e83){this['db']=_0x243afe;function _0x4fe73d(_0x3e83be,_0xa6f80a){return _0x2b645c(_0x3e83be- -0x6d1,_0xa6f80a);}this[_0x4fe73d(-0x21d,-0x20d)]=_0x3d6e83;}async[_0x201cf7(-0x176,-0x14c)](_0x1025f5,_0x283073){const _0x344755={'UpiAV':function(_0x2714ef,_0x43db31){return _0x2714ef>_0x43db31;},'FBnqa':function(_0x10dbaf,_0x5a698e){return _0x10dbaf<_0x5a698e;},'lxoeK':'GiUwR','hUnUO':function(_0x2c486b,_0x33f04){return _0x2c486b*_0x33f04;},'GtCxC':function(_0x478b21,_0x51e9f4){return _0x478b21-_0x51e9f4;},'ARAbO':function(_0x5f1871,_0x30ba1d){return _0x5f1871*_0x30ba1d;},'CEpNi':function(_0x1a8963,_0x3aa2cc){return _0x1a8963!==_0x3aa2cc;},'lbJBg':'PDKGL','neITk':_0x533c62(-0x1cf,-0x16d),'EvTUt':function(_0x212230,_0x5d666a){return _0x212230<=_0x5d666a;},'sRpEE':function(_0x9b6360,_0x149f5a){return _0x9b6360 instanceof _0x149f5a;},'ayhEd':function(_0x2c1e90,_0x2ac80d){return _0x2c1e90(_0x2ac80d);}},_0x483000=this[_0x533c62(-0x1d3,-0x203)][_0x533c62(-0x208,-0x242)+_0x533c62(-0x1c2,-0x17b)];if(!_0x483000?.[_0x533c62(-0x19e,-0x201)])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};const _0x3c7ff0=[],_0x212498=[];function _0x533c62(_0x1fc494,_0x2fda15){return _0x2b645c(_0x1fc494- -0x687,_0x2fda15);}function _0x1308f3(_0x580065,_0x2a48c9){return _0x2b645c(_0x2a48c9- -0xd,_0x580065);}let _0x4486dc=0x0,_0x33ee9b=0x0;try{const _0x1f9183=this['db'][_0x1308f3(0x48f,0x48a)+'es']({'limit':0x1f4,'projectPath':_0x1025f5}),_0x1838e3=_0x1f9183[_0x1308f3(0x4a0,0x455)](_0x21c07a=>_0x21c07a[_0x533c62(-0x1b9,-0x1e7)]!==_0x1308f3(0x497,0x485)&&_0x21c07a[_0x533c62(-0x21e,-0x281)]&&_0x21c07a['embedding'][_0x1308f3(0x470,0x46b)]>0x0);if(_0x344755[_0x1308f3(0x42f,0x48e)](_0x1838e3[_0x533c62(-0x20f,-0x234)],_0x483000[_0x1308f3(0x485,0x477)+_0x1308f3(0x4b9,0x475)]))return{'candidates':_0x212498,'created':_0x4486dc,'skipped':_0x1838e3[_0x533c62(-0x20f,-0x206)],'errors':_0x3c7ff0};const _0x3a0124=0x12c;let _0x370077;if(_0x1838e3['length']>_0x3a0124){if(_0x344755[_0x533c62(-0x197,-0x1c2)]!==_0x1308f3(0x45d,0x445)){const _0x5bc4bf=[..._0x1838e3]['sort']((_0x390625,_0x5ce4d2)=>new Date(_0x5ce4d2[_0x1308f3(0x4a4,0x4d5)])['getTime']()-new Date(_0x390625[_0x533c62(-0x1a5,-0x15f)])[_0x1308f3(0x44e,0x431)]()),_0x2777e1=Math[_0x533c62(-0x24c,-0x210)](_0x344755[_0x533c62(-0x1e3,-0x19b)](_0x3a0124,0.7)),_0x2a9c0b=_0x344755[_0x533c62(-0x1bd,-0x21b)](_0x3a0124,_0x2777e1),_0x2aab7b=_0x5bc4bf[_0x1308f3(0x526,0x4e4)](0x0,_0x2777e1),_0x26795f=new Set(_0x2aab7b['map'](_0x17f284=>_0x17f284['id'])),_0xdfce5d=_0x5bc4bf[_0x1308f3(0x498,0x4e4)](_0x2777e1)[_0x533c62(-0x225,-0x1cc)](_0x481c94=>!_0x26795f['has'](_0x481c94['id'])),_0x38166f=[];for(let _0x39e058=_0xdfce5d[_0x533c62(-0x20f,-0x1e4)]-0x1;_0x39e058>0x0&&_0x38166f[_0x1308f3(0x4b2,0x46b)]<_0x2a9c0b;_0x39e058--){const _0x385c8c=Math['floor'](_0x344755[_0x1308f3(0x42e,0x457)](Math[_0x1308f3(0x4a0,0x44d)](),_0x39e058+0x1));[_0xdfce5d[_0x39e058],_0xdfce5d[_0x385c8c]]=[_0xdfce5d[_0x385c8c],_0xdfce5d[_0x39e058]],_0x38166f[_0x1308f3(0x4a2,0x474)](_0xdfce5d[_0x39e058]);}_0x370077=[..._0x2aab7b,..._0x38166f];}else{const _0x50aa53=_0xabcd8e(_0xd3128,_0x420d3a[_0x53973a]['embedding']);_0x344755['UpiAV'](_0x50aa53,_0x61d25)&&(_0x3e3dc7=_0x50aa53,_0x501b81=_0x47fc4a);}}else _0x370077=_0x1838e3;const _0x519c4c=this['clusterMem'+'ories'](_0x370077,_0x483000['similarity'+'Threshold']),_0x3cdb07=_0x1f9183[_0x533c62(-0x225,-0x1c0)](_0x2fb222=>_0x2fb222[_0x533c62(-0x1b9,-0x164)]==='skill');let _0x2045a2=_0x483000['maxSkills']-_0x3cdb07['length'];for(const _0x229017 of _0x519c4c){if(_0x344755[_0x1308f3(0x4b1,0x495)](_0x344755['lbJBg'],_0x344755[_0x1308f3(0x466,0x486)])){if(_0x344755[_0x533c62(-0x1ea,-0x1b5)](_0x2045a2,0x0))break;const _0x14802d=this[_0x533c62(-0x1e0,-0x209)+_0x1308f3(0x4a8,0x4ad)](_0x229017,_0x483000[_0x1308f3(0x45c,0x477)+_0x533c62(-0x205,-0x251)],_0x483000[_0x1308f3(0x4ab,0x487)+_0x1308f3(0x4a9,0x4b2)]);if(!_0x14802d){_0x33ee9b+=_0x229017[_0x1308f3(0x497,0x46b)];continue;}const _0x2ec799=this[_0x533c62(-0x22a,-0x206)+_0x1308f3(0x48a,0x4db)](_0x14802d,_0x3cdb07);if(_0x2ec799){_0x33ee9b+=_0x229017[_0x1308f3(0x420,0x46b)];continue;}_0x212498[_0x1308f3(0x4c0,0x474)](_0x14802d);if(_0x483000['llmValidat'+_0x533c62(-0x1c5,-0x1d6)]&&this[_0x533c62(-0x1d3,-0x172)]['llm']?.[_0x1308f3(0x51f,0x4dc)])try{const _0xd223db=await this[_0x1308f3(0x3d3,0x433)+_0x1308f3(0x4ab,0x454)](_0x14802d);if(!_0xd223db){_0x33ee9b+=_0x229017['length'];continue;}}catch(_0x35d256){_0x3c7ff0[_0x533c62(-0x206,-0x1d1)](_0x1308f3(0x3d4,0x428)+_0x1308f3(0x44b,0x4a4)+_0x533c62(-0x218,-0x1cb)+(_0x344755[_0x533c62(-0x198,-0x15a)](_0x35d256,Error)?_0x35d256['message']:String(_0x35d256)));}try{await this['compressTo'+_0x533c62(-0x21b,-0x271)](_0x14802d,_0x283073),_0x4486dc++,_0x2045a2--;}catch(_0x428d17){_0x3c7ff0['push'](_0x1308f3(0x4a9,0x47b)+'tion\x20faile'+_0x533c62(-0x218,-0x1ce)+(_0x428d17 instanceof Error?_0x428d17[_0x533c62(-0x242,-0x25a)]:_0x344755[_0x533c62(-0x1ef,-0x1bc)](String,_0x428d17)));}}else for(let _0x560835=0x0;_0x344755[_0x533c62(-0x1ec,-0x1f2)](_0x560835,_0x1fb1e6);_0x560835++){_0x2344af[_0x560835]+=_0x365831[_0x560835];}}}catch(_0x221c27){_0x3c7ff0[_0x533c62(-0x206,-0x239)](_0x533c62(-0x217,-0x1d4)+_0x533c62(-0x215,-0x1d4)+(_0x221c27 instanceof Error?_0x221c27['message']:String(_0x221c27)));}return{'candidates':_0x212498,'created':_0x4486dc,'skipped':_0x33ee9b,'errors':_0x3c7ff0};}[_0x2b645c(0x4a9,0x45f)+_0x2b645c(0x495,0x480)](_0x1a0275,_0x33c7f9){const _0x2e7af7={'UFBem':_0x245f88(0x3eb,0x3b5),'JfQSk':function(_0x3b51d7,_0x4098ac){return _0x3b51d7>=_0x4098ac;}},_0x55b0fc=new Set(),_0x18bbfa=[];function _0x245f88(_0x5a40a6,_0x2920c6){return _0x2b645c(_0x5a40a6- -0x6b,_0x2920c6);}function _0xe9af51(_0x3ae350,_0x1f261a){return _0x2b645c(_0x3ae350- -0x372,_0x1f261a);}for(const _0x36f8f1 of _0x1a0275){if(_0x2e7af7[_0xe9af51(0x108,0xc8)]!==_0x245f88(0x3f3,0x452)){if(_0x55b0fc[_0xe9af51(0x131,0x12f)](_0x36f8f1['id']))continue;if(!_0x36f8f1[_0xe9af51(0xf7,0x140)])continue;const _0x49ec51=[_0x36f8f1];_0x55b0fc[_0x245f88(0x426,0x3e2)](_0x36f8f1['id']);for(const _0x2c2a31 of _0x1a0275){if(_0x55b0fc['has'](_0x2c2a31['id']))continue;if(!_0x2c2a31[_0x245f88(0x3fe,0x3cc)])continue;const _0x42662f=cosineSimilarity(_0x36f8f1['embedding'],_0x2c2a31[_0xe9af51(0xf7,0xc3)]);_0x2e7af7[_0xe9af51(0x11b,0xef)](_0x42662f,_0x33c7f9)&&(_0x49ec51[_0xe9af51(0x10f,0x105)](_0x2c2a31),_0x55b0fc[_0x245f88(0x426,0x40a)](_0x2c2a31['id']));}_0x18bbfa[_0x245f88(0x416,0x3ed)](_0x49ec51);}else _0x1c8b45[_0xe9af51(0x10f,0x127)](_0x4ed325),_0x10b66b[_0xe9af51(0x11f,0xbd)](_0x3c4eb9['id']);}return _0x18bbfa;}['evaluateCl'+'uster'](_0x4dafe5,_0x509362,_0x1db8fa){const _0x377265={'MTgAB':'base64','zcsYk':_0x448ddc(0x521,0x525),'yajHE':function(_0x919339,_0x5b06ac){return _0x919339<_0x5b06ac;},'cmfgR':function(_0x139906,_0x49f4eb){return _0x139906<_0x49f4eb;},'LFQYD':function(_0x4fa6b1,_0xad6f0e){return _0x4fa6b1>=_0xad6f0e;},'wbcSj':function(_0xc4e95,_0x1a11e6){return _0xc4e95!==_0x1a11e6;},'IDJrp':_0x115745(0x127,0x13f),'Rugit':function(_0xa7cb9d,_0x28a056){return _0xa7cb9d+_0x28a056;},'hfNgV':function(_0x554d56,_0x240118){return _0x554d56>=_0x240118;},'gXkUR':function(_0x235662,_0x1b8878){return _0x235662/_0x1b8878;},'yACoJ':function(_0x289a19,_0x399224){return _0x289a19<_0x399224;},'AcYkv':_0x448ddc(0x477,0x445),'BAjaB':function(_0x683b8){return _0x683b8();},'LWwMM':'skill','MXpsV':_0x448ddc(0x4c1,0x462)+'ed'},_0x595e26=0.5;function _0x115745(_0x8ecf3e,_0x133a06){return _0x201cf7(_0x133a06-0x27e,_0x8ecf3e);}if(_0x377265['cmfgR'](_0x4dafe5[_0x115745(0xed,0xd4)],_0x509362))return null;const _0x16e3a3=this['computeAve'+_0x115745(0x129,0x104)+_0x448ddc(0x4eb,0x54c)](_0x4dafe5);if(_0x16e3a3<0.75)return null;let _0x3d1b3e=_0x16e3a3;const _0x62bff0=new Set(_0x4dafe5[_0x448ddc(0x493,0x452)](_0xc4a697=>_0xc4a697[_0x115745(0x95,0x8c)])['filter'](Boolean));if(_0x377265[_0x448ddc(0x4b2,0x4ab)](_0x62bff0[_0x448ddc(0x529,0x53c)],0x2)){if(_0x377265[_0x115745(0xd5,0xea)](_0x448ddc(0x4b1,0x44b),_0x377265['IDJrp']))_0x3d1b3e*=1.2;else{const _0x4f7219=_0x3c761e[_0x448ddc(0x50c,0x4bc)](_0x4cc920[_0x448ddc(0x52c,0x519)](0x5),_0x377265[_0x448ddc(0x48b,0x4dc)])['toString'](_0x377265['zcsYk']);return _0xe57550['parse'](_0x4f7219);}}function _0x448ddc(_0x5db592,_0x1078f1){return _0x201cf7(_0x5db592-0x65d,_0x1078f1);}const _0x1f9a75=new Map();for(const _0x3f34ad of _0x4dafe5){if('jlrGG'!==_0x448ddc(0x475,0x459))_0x1f9a75['set'](_0x3f34ad['category'],_0x377265[_0x448ddc(0x487,0x497)](_0x1f9a75[_0x115745(0x117,0xfd)](_0x3f34ad[_0x115745(0x119,0x12a)])??0x0,0x1));else for(let _0x36a78f=0x0;_0x377265[_0x115745(0x9b,0xa9)](_0x36a78f,_0x54e11b);_0x36a78f++){_0x14aa07[_0x36a78f]+=_0x1bd1b8['embedding'][_0x36a78f]/_0x543c23['length'];}}let _0xc8a447=_0x4dafe5[0x0]['category'],_0x143ec8=0x0;for(const [_0xc4ad7f,_0x725030]of _0x1f9a75){_0x725030>_0x143ec8&&(_0x143ec8=_0x725030,_0xc8a447=_0xc4ad7f);}_0x377265[_0x448ddc(0x4e1,0x4f0)](_0x377265['gXkUR'](_0x143ec8,_0x4dafe5[_0x448ddc(0x4b3,0x4e8)]),0.5)&&(_0x3d1b3e*=1.1);_0x3d1b3e=Math['min'](_0x3d1b3e,0x1);if(_0x377265[_0x115745(0x158,0x111)](_0x3d1b3e,_0x595e26))return null;let _0x743d65;const _0x3ff56a=_0x4dafe5[_0x115745(0x10d,0xbe)](_0x2ab9e6=>_0x2ab9e6[_0x448ddc(0x4a4,0x44d)]&&_0x2ab9e6[_0x115745(0xe9,0xc5)][_0x448ddc(0x4b3,0x470)]>0x0);if(_0x377265[_0x115745(0x131,0x102)](_0x3ff56a[_0x115745(0xb8,0xd4)],0x2)){const _0x27b128=_0x3ff56a[0x0]['embedding'][_0x115745(0xac,0xd4)],_0x3609b9=new Array(_0x27b128)[_0x115745(0x8a,0x9d)](0x0);for(const _0x286bd5 of _0x3ff56a){for(let _0x25b967=0x0;_0x377265[_0x115745(0x9f,0xfa)](_0x25b967,_0x27b128);_0x25b967++){_0x3609b9[_0x25b967]+=_0x377265['gXkUR'](_0x286bd5[_0x448ddc(0x4a4,0x509)][_0x25b967],_0x3ff56a['length']);}}let _0x41f4a3=0x0,_0x2f2030=-0x1;for(let _0x541688=0x0;_0x377265['yajHE'](_0x541688,_0x3ff56a[_0x115745(0xdd,0xd4)]);_0x541688++){const _0x4b94b7=cosineSimilarity(_0x3609b9,_0x3ff56a[_0x541688][_0x448ddc(0x4a4,0x47b)]);_0x4b94b7>_0x2f2030&&(_0x2f2030=_0x4b94b7,_0x41f4a3=_0x541688);}_0x743d65=_0x3ff56a[_0x41f4a3]['content'][_0x448ddc(0x52c,0x583)](0x0,0x1f4);}else{const _0x4b6314=[..._0x4dafe5]['sort']((_0x1ffa18,_0x3ab88b)=>_0x3ab88b[_0x448ddc(0x4bb,0x465)][_0x115745(0x12e,0xd4)]-_0x1ffa18[_0x448ddc(0x4bb,0x4ed)][_0x115745(0xf8,0xd4)]);_0x743d65=_0x4b6314[0x0][_0x115745(0x13b,0xdc)][_0x448ddc(0x52c,0x4fb)](0x0,0x1f4);}const _0x54f059=new Map();for(const _0x169c06 of _0x4dafe5){for(const _0x261422 of _0x169c06['tags']){if('VKvrP'!==_0x377265[_0x448ddc(0x520,0x537)])_0x54f059['set'](_0x261422,(_0x54f059[_0x448ddc(0x4dc,0x50e)](_0x261422)??0x0)+0x1);else{if(_0x568f74[_0x448ddc(0x4b3,0x4ee)]===0x0)return[];const _0x592fb0=_0x5a69ff[0x0][_0x115745(0x120,0xd4)],_0x25f8f4=new _0x5b3a4a(_0x592fb0)[_0x115745(0x39,0x9d)](0x0);for(const _0x19213c of _0xba3a46){for(let _0x3c2986=0x0;_0x377265[_0x448ddc(0x4d9,0x4dd)](_0x3c2986,_0x592fb0);_0x3c2986++){_0x25f8f4[_0x3c2986]+=_0x19213c[_0x3c2986];}}for(let _0x3231f2=0x0;_0x3231f2<_0x592fb0;_0x3231f2++){_0x25f8f4[_0x3231f2]/=_0x11ded5['length'];}return _0x25f8f4;}}}const _0x4303da=Array[_0x448ddc(0x50c,0x557)](_0x54f059[_0x448ddc(0x522,0x539)]())[_0x448ddc(0x49d,0x446)](([,_0xecd2b8])=>_0xecd2b8>=0x2)[_0x448ddc(0x493,0x4c2)](([_0x4faed5])=>_0x4faed5);return{'clusterId':_0x377265[_0x448ddc(0x519,0x4be)](randomUUID),'sourceMemories':_0x4dafe5,'category':_0xc8a447,'confidence':_0x3d1b3e,'pattern':_0x743d65,'tags':[..._0x4303da,_0x377265[_0x115745(0x140,0x14f)],_0x377265['MXpsV']]};}async['validateWi'+_0x2b645c(0x461,0x4a7)](_0x89089e){function _0x3ae4d4(_0x21083e,_0x4a5846){return _0x2b645c(_0x4a5846- -0x6dd,_0x21083e);}function _0x31c0d7(_0x1fa805,_0x3cb6f8){return _0x2b645c(_0x1fa805- -0x34e,_0x3cb6f8);}const _0x2c8d2b={'yzzib':_0x3ae4d4(-0x27b,-0x27d)+_0x31c0d7(0x1a9,0x1c9),'MEkEC':function(_0x28c209,_0x29f08e){return _0x28c209(_0x29f08e);},'vAJTC':_0x3ae4d4(-0x1fb,-0x219)+_0x3ae4d4(-0x211,-0x205)+_0x3ae4d4(-0x258,-0x28a)+'ories\x20repr'+_0x31c0d7(0xe4,0x10c)+'usable\x20ski'+_0x31c0d7(0x106,0x10f)+'.','nKyQD':_0x3ae4d4(-0x1c2,-0x201)+_0x31c0d7(0x125,0x100)+_0x31c0d7(0x14c,0x111)+_0x3ae4d4(-0x1d3,-0x238)+'\x20\x22confiden'+_0x31c0d7(0x19f,0x199)+'.0}','VcpYg':'Sample\x20mem'+_0x31c0d7(0x141,0x143),'QxocH':function(_0x39f520,_0x22fbe3){return _0x39f520(_0x22fbe3);},'LcIaw':_0x3ae4d4(-0x266,-0x26f)};try{const {createLLMClient:_0x152a87}=await import(_0x2c8d2b[_0x3ae4d4(-0x241,-0x232)]),_0x363d1a=_0x2c8d2b[_0x3ae4d4(-0x25a,-0x281)](_0x152a87,this[_0x31c0d7(0x166,0x14b)][_0x31c0d7(0x19c,0x154)]),_0x4f1ce6=[_0x2c8d2b[_0x31c0d7(0x17d,0x1e0)],_0x2c8d2b[_0x3ae4d4(-0x2f5,-0x295)],'',_0x31c0d7(0xf5,0xf0)+_0x89089e[_0x3ae4d4(-0x23b,-0x20f)],_0x3ae4d4(-0x24b,-0x215)+_0x89089e[_0x31c0d7(0x168,0x163)],_0x31c0d7(0x123,0x105)+'nt:\x20'+_0x89089e[_0x31c0d7(0x15c,0x195)+_0x3ae4d4(-0x26d,-0x292)][_0x3ae4d4(-0x2a9,-0x265)],'',_0x2c8d2b[_0x31c0d7(0x164,0x135)],..._0x89089e[_0x3ae4d4(-0x212,-0x233)+'ries']['slice'](0x0,0x3)[_0x3ae4d4(-0x22e,-0x285)]((_0x145f0d,_0x4273a3)=>_0x4273a3+0x1+'.\x20'+_0x145f0d['content']['slice'](0x0,0xc8))][_0x31c0d7(0xe6,0xbf)]('\x0a'),_0x1a10af=await _0x363d1a['complete'](_0x4f1ce6),_0x2275aa=JSON['parse'](_0x1a10af);return _0x2275aa['valid']===!![]&&(_0x2275aa['confidence']??0x0)>=(this[_0x31c0d7(0x166,0x16a)][_0x3ae4d4(-0x27f,-0x25e)+'rsion']?.[_0x3ae4d4(-0x287,-0x249)+_0x3ae4d4(-0x1bf,-0x21e)]??0.7);}catch(_0x15f4eb){const _0xdb7dfc=_0x15f4eb instanceof Error?_0x15f4eb[_0x3ae4d4(-0x2bb,-0x298)]:_0x2c8d2b[_0x31c0d7(0x189,0x164)](String,_0x15f4eb);if(_0xdb7dfc['includes'](_0x2c8d2b[_0x3ae4d4(-0x284,-0x23e)])||_0xdb7dfc[_0x3ae4d4(-0x224,-0x272)](_0x3ae4d4(-0x259,-0x275)+'ED')||_0xdb7dfc['includes'](_0x31c0d7(0x148,0x1a4)+'ed'))return![];return![];}}async[_0x2b645c(0x4f6,0x4b7)+_0x201cf7(-0x1b6,-0x20d)](_0x5aa2b2,_0x12aadd){const _0x4e4e14={'ePFIb':function(_0xdfa68d,_0x83cca3){return _0xdfa68d+_0x83cca3;},'RJltl':function(_0x345bad,_0x10d231){return _0x345bad*_0x10d231;},'oBOYp':function(_0x1ca1a1,_0x1a3c75){return _0x1ca1a1*_0x1a3c75;},'umnuy':function(_0x644c53,_0x366d39){return _0x644c53*_0x366d39;},'QJEVp':function(_0x3b69df,_0x4af1b8){return _0x3b69df&&_0x4af1b8;},'mSqxF':_0x33f8fd(0xc9,0xe9)},_0x547202=new Date()['toISOStrin'+'g']();function _0x33f8fd(_0x12ff93,_0x3875da){return _0x2b645c(_0x3875da- -0x3a9,_0x12ff93);}const _0x4e8324=new Date(_0x4e4e14[_0x33f8fd(0x161,0x10e)](Date[_0x33f8fd(0xe7,0xd2)](),_0x4e4e14[_0x4b2ac5(0x22,-0xb)](_0x4e4e14[_0x33f8fd(0x113,0xe1)](_0x4e4e14[_0x4b2ac5(-0x32,-0x31)](this[_0x33f8fd(0xa9,0x10b)]['skillConve'+_0x33f8fd(0x165,0x11c)]?.[_0x4b2ac5(0x1f,-0x33)+_0x33f8fd(0xcf,0x130)]??0x5a,0x18),0x3c)*0x3c,0x3e8)))[_0x33f8fd(0xd0,0xba)+'g'](),_0x35e4ce=this[_0x33f8fd(0xc8,0xcc)+'Content'](_0x5aa2b2);let _0x4ceb07=null;if(_0x12aadd)try{_0x4ceb07=await _0x12aadd[_0x33f8fd(0x3c,0x9e)+'ntent']({'content':_0x5aa2b2[_0x4b2ac5(0x24,-0x39)],'tags':_0x5aa2b2[_0x33f8fd(0xaa,0xbd)]['filter'](_0x4d9c15=>!_0x4d9c15[_0x33f8fd(0x41,0x8e)](_0x33f8fd(0x15a,0x106))&&_0x4d9c15!==_0x33f8fd(0xdb,0xe9)&&_0x4d9c15!==_0x33f8fd(0xa9,0xdd)+'ed'),'category':_0x5aa2b2[_0x4b2ac5(-0x2d,-0x21)]});}catch{}const _0x3a39b9={'sourceMemoryIds':_0x5aa2b2[_0x33f8fd(0x107,0x101)+'ries'][_0x4b2ac5(-0x7d,-0x97)](_0x3bea35=>_0x3bea35['id']),'crystallizedAt':_0x547202,'confidence':_0x5aa2b2['confidence'],'reviewDueAt':_0x4e8324,'activationCount':0x0,..._0x4e4e14[_0x33f8fd(0x12e,0x12a)](_0x4ceb07,{'taxonomyDomain':_0x4ceb07[_0x4b2ac5(-0xcd,-0x90)],'taxonomySkillId':_0x4ceb07[_0x4b2ac5(-0x28,-0x4)]??undefined,'taxonomyNature':_0x4ceb07[_0x4b2ac5(-0x98,-0xad)]??undefined,'taxonomyStability':_0x4ceb07[_0x4b2ac5(-0x89,-0x94)]??undefined,'taxonomyConfidence':_0x4ceb07[_0x4b2ac5(-0x59,-0xa1)]})},_0x3765d4=_0x33f8fd(0x14d,0x106)+Buffer[_0x33f8fd(0x126,0x128)](JSON[_0x4b2ac5(-0x74,-0x9a)](_0x3a39b9))[_0x4b2ac5(-0x34,-0x1d)](_0x4b2ac5(-0xb2,-0x88)),_0x329a53=[];function _0x4b2ac5(_0x8fe166,_0x559328){return _0x2b645c(_0x559328- -0x4ef,_0x8fe166);}_0x4ceb07&&(_0x329a53[_0x4b2ac5(-0x64,-0x6e)](_0x33f8fd(0xd6,0xb0)+_0x4ceb07[_0x33f8fd(0xe3,0xb6)]),_0x4ceb07[_0x4b2ac5(-0x7,-0x4)]&&_0x329a53[_0x33f8fd(0xfb,0xd8)](_0x33f8fd(0x111,0xb0)+_0x4ceb07[_0x4b2ac5(0xf,-0x4)]),_0x4ceb07[_0x33f8fd(0xdb,0x99)]&&_0x329a53[_0x33f8fd(0xf1,0xd8)](_0x33f8fd(0xa3,0xa0)+_0x4ceb07[_0x4b2ac5(-0x6f,-0xad)]));const _0x405656=this['db'][_0x33f8fd(0x19f,0x14b)+'ry']({'content':_0x35e4ce,'category':_0x4e4e14[_0x33f8fd(0x127,0xe0)],'tier':_0x33f8fd(0x9f,0xd4),'tags':[..._0x5aa2b2[_0x4b2ac5(-0xd6,-0x89)],..._0x329a53,_0x3765d4],'projectPath':_0x5aa2b2['sourceMemo'+_0x4b2ac5(-0x108,-0xa4)][0x0]?.['projectPat'+'h']}),_0x321e4e=_0x5aa2b2[_0x33f8fd(0xe6,0x101)+_0x33f8fd(0x4a,0xa2)][_0x33f8fd(0xea,0xaf)](_0x164a88=>_0x164a88[_0x4b2ac5(-0x2d,-0x86)])[_0x33f8fd(0x100,0xb9)](_0x41f3ff=>!!_0x41f3ff&&_0x41f3ff[_0x4b2ac5(-0xad,-0x77)]>0x0);if(_0x321e4e['length']>0x0){const _0xe5aed0=this[_0x4b2ac5(0xe,-0x29)+_0x33f8fd(0x130,0xd5)](_0x321e4e);this['db'][_0x33f8fd(0x4c,0x88)+_0x4b2ac5(-0x39,-0x2f)](_0x405656['id'],_0xe5aed0);}return _0x405656;}['reviewSkil'+'ls'](){function _0x419ec7(_0x4a44e9,_0x3f1152){return _0x2b645c(_0x4a44e9- -0x54b,_0x3f1152);}const _0x5e24aa={'FnJEh':_0x419ec7(-0xb9,-0xe9),'WdzHl':function(_0xf95eac,_0x196631){return _0xf95eac<_0x196631;},'BwgZH':function(_0x5783dd,_0x2be95a){return _0x5783dd===_0x2be95a;},'mTmre':_0x419ec7(-0xd7,-0xd1),'kiAkd':function(_0x31fa1f,_0x4e4718){return _0x31fa1f*_0x4e4718;},'oROFs':'base64'},_0x2dbf23=new Date();function _0x5a5d09(_0x481279,_0x20aed1){return _0x2b645c(_0x20aed1- -0x1ef,_0x481279);}let _0x2f7c6a=0x0,_0x4015a4=0x0,_0x4568b3=0x0;const _0x14af64=this['db'][_0x5a5d09(0x265,0x2a8)+'es']({'category':_0x5e24aa[_0x5a5d09(0x2d1,0x2e7)],'limit':0x3e8});for(const _0x5f386b of _0x14af64){_0x2f7c6a++;const _0x23f7d5=this[_0x419ec7(-0xab,-0x58)+_0x5a5d09(0x315,0x309)](_0x5f386b);if(!_0x23f7d5)continue;const _0x475839=new Date(_0x23f7d5[_0x5a5d09(0x288,0x2d8)+'t']);if(_0x2dbf23<_0x475839)continue;if(_0x5e24aa[_0x419ec7(-0x7f,-0x51)](_0x5f386b[_0x5a5d09(0x345,0x2f1)+'t'],0x2))this['db'][_0x5a5d09(0x25e,0x2be)+'ry'](_0x5f386b['id'],{'category':_0x5a5d09(0x23f,0x268),'tags':_0x5f386b[_0x419ec7(-0xe5,-0x133)][_0x5a5d09(0x2d7,0x273)](_0x59df69=>!_0x59df69[_0x5a5d09(0x24a,0x248)](_0x419ec7(-0x9c,-0xf8))&&_0x59df69!=='skill'&&_0x59df69!==_0x5a5d09(0x2a5,0x297)+'ed')}),_0x4015a4++;else{if(_0x5e24aa[_0x419ec7(-0xc4,-0xc2)](_0x5e24aa[_0x5a5d09(0x2ef,0x2e5)],'UwHag'))_0x1c5b56=_0x5bbd8d;else{const _0x5f5403=new Date(Date[_0x419ec7(-0xd0,-0xa2)]()+_0x5e24aa['kiAkd'](_0x5e24aa[_0x5a5d09(0x2a6,0x2da)]((this['config'][_0x5a5d09(0x2ea,0x290)+_0x5a5d09(0x319,0x2d6)]?.[_0x419ec7(-0x8f,-0xa3)+_0x419ec7(-0x72,-0x70)]??0x5a)*0x18,0x3c)*0x3c,0x3e8))[_0x419ec7(-0xe8,-0xa6)+'g'](),_0x57c56d={..._0x23f7d5,'reviewDueAt':_0x5f5403,'activationCount':_0x5f386b[_0x5a5d09(0x317,0x2f1)+'t'],'lastActivatedAt':_0x5f386b['lastAccess'+_0x419ec7(-0x90,-0xf0)]},_0x49bbc5=_0x5a5d09(0x26f,0x2c0)+Buffer[_0x5a5d09(0x2d0,0x2e2)](JSON[_0x5a5d09(0x2c3,0x266)](_0x57c56d))[_0x5a5d09(0x2de,0x2e3)](_0x5e24aa[_0x5a5d09(0x2cc,0x2e1)]),_0x360d49=_0x5f386b[_0x5a5d09(0x266,0x277)][_0x419ec7(-0xe9,-0x14a)](_0x1d8ab7=>!_0x1d8ab7[_0x5a5d09(0x2a4,0x248)](_0x419ec7(-0x9c,-0x101)));_0x360d49[_0x419ec7(-0xca,-0x9c)](_0x49bbc5),this['db'][_0x5a5d09(0x30c,0x2be)+'ry'](_0x5f386b['id'],{'tags':_0x360d49}),_0x4568b3++;}}}return{'reviewed':_0x2f7c6a,'demoted':_0x4015a4,'renewed':_0x4568b3};}[_0x2b645c(0x451,0x492)+_0x2b645c(0x4a8,0x4c3)+_0x201cf7(-0x172,-0x1a1)](_0x444270){const _0x3b72cc={'LoaVT':function(_0x57d00e,_0x4669df){return _0x57d00e+_0x4669df;},'ZYIjS':function(_0xa8a549,_0x5f7b6){return _0xa8a549<_0x5f7b6;},'RkABB':function(_0x3947ef,_0x4e9921,_0x59c36a){return _0x3947ef(_0x4e9921,_0x59c36a);},'EARiQ':_0x2a79c9(0x202,0x1f7)};if(_0x3b72cc['ZYIjS'](_0x444270[_0x5a6c2a(0x16f,0x15c)],0x2))return 0x1;function _0x5a6c2a(_0x1df954,_0x313e74){return _0x201cf7(_0x1df954-0x319,_0x313e74);}function _0x2a79c9(_0x14dbe3,_0x5e483b){return _0x201cf7(_0x14dbe3-0x345,_0x5e483b);}let _0x6a6f6b=0x0,_0x3c7459=0x0;for(let _0x10cd5a=0x0;_0x10cd5a<_0x444270[_0x5a6c2a(0x16f,0x1d3)];_0x10cd5a++){for(let _0x5f2776=_0x10cd5a+0x1;_0x5f2776<_0x444270[_0x2a79c9(0x19b,0x1f8)];_0x5f2776++){if(_0x444270[_0x10cd5a]['embedding']&&_0x444270[_0x5f2776][_0x2a79c9(0x18c,0x17e)]){if(_0x2a79c9(0x202,0x25e)!==_0x3b72cc[_0x2a79c9(0x156,0xfa)])for(let _0x35b2e3=_0x3b72cc[_0x2a79c9(0x1fe,0x206)](_0xe8e386,0x1);_0x3b72cc[_0x2a79c9(0x204,0x260)](_0x35b2e3,_0x3fe65b['length']);_0x35b2e3++){_0x155e10[_0x3e14d5][_0x2a79c9(0x18c,0x136)]&&_0xf8fc72[_0x35b2e3]['embedding']&&(_0x6ec39a+=_0x3b72cc['RkABB'](_0x10e597,_0x4110e9[_0x3712f8][_0x2a79c9(0x18c,0x1db)],_0x203bd4[_0x35b2e3][_0x5a6c2a(0x160,0x1ba)]),_0x4d4c32++);}else _0x6a6f6b+=cosineSimilarity(_0x444270[_0x10cd5a][_0x5a6c2a(0x160,0x155)],_0x444270[_0x5f2776][_0x2a79c9(0x18c,0x132)]),_0x3c7459++;}}}return _0x3c7459>0x0?_0x6a6f6b/_0x3c7459:0x0;}[_0x2b645c(0x45d,0x49b)+_0x201cf7(-0x13a,-0x189)](_0x1c23d3,_0x3235a6){const _0x856751=new Set(_0x1c23d3[_0x2232d3(0x325,0x33f)+_0x2232d3(0x2c6,0x2a8)][_0x5b7b35(0x7,0x42)](_0x46d5fc=>_0x46d5fc['id']));for(const _0x438ef8 of _0x3235a6){const _0x1d8305=this[_0x2232d3(0x31b,0x32f)+_0x2232d3(0x373,0x32b)](_0x438ef8);if(!_0x1d8305)continue;const _0x381d8=new Set(_0x1d8305[_0x2232d3(0x325,0x336)+_0x2232d3(0x2b1,0x2c8)]),_0x41cc8a=[..._0x856751]['filter'](_0x5bef81=>_0x381d8[_0x2232d3(0x31e,0x2ed)](_0x5bef81))[_0x5b7b35(0x27,0x7a)],_0x38266c=_0x41cc8a/Math[_0x5b7b35(-0x19,0x12)](_0x856751[_0x5b7b35(0x9d,0xfe)],_0x381d8[_0x5b7b35(0x9d,0x44)]);if(_0x38266c>=0.7)return!![];}function _0x2232d3(_0x4d324f,_0x33ec66){return _0x2b645c(_0x4d324f- -0x185,_0x33ec66);}function _0x5b7b35(_0xfe3627,_0x1a39b1){return _0x2b645c(_0xfe3627- -0x451,_0x1a39b1);}return![];}[_0x201cf7(-0x1ad,-0x1cb)+_0x2b645c(0x490,0x46f)](_0xe8211b){const _0x11f4cc={'CROpj':'Key\x20patter'+'ns:'},_0x2beb02=[];_0x2beb02[_0x2e73d8(0x2b6,0x2a6)](_0x1c3761(0x2f5,0x34c)+_0xe8211b[_0x1c3761(0x367,0x35a)]);function _0x2e73d8(_0x5e6661,_0x3c0c1){return _0x201cf7(_0x5e6661-0x457,_0x3c0c1);}function _0x1c3761(_0x4f9223,_0x48e3ec){return _0x201cf7(_0x4f9223-0x4d3,_0x48e3ec);}_0x2beb02[_0x2e73d8(0x2b6,0x2eb)](''),_0x2beb02['push'](_0x2e73d8(0x278,0x24b)+_0xe8211b[_0x1c3761(0x37f,0x32b)]),_0x2beb02[_0x1c3761(0x332,0x2e7)](_0x1c3761(0x2fb,0x343)+_0xe8211b[_0x1c3761(0x35b,0x328)+_0x2e73d8(0x280,0x2b5)][_0x2e73d8(0x2ad,0x27a)]+'\x20memories'),_0x2beb02[_0x2e73d8(0x2b6,0x312)](_0x2e73d8(0x2b8,0x30d)+':\x20'+(_0xe8211b[_0x1c3761(0x2ff,0x30c)]*0x64)[_0x1c3761(0x336,0x38c)](0x0)+'%');if(_0xe8211b[_0x1c3761(0x35b,0x302)+'ries'][_0x1c3761(0x329,0x2d8)]>0x1){_0x2beb02[_0x1c3761(0x332,0x2fc)](''),_0x2beb02[_0x2e73d8(0x2b6,0x28e)](_0x11f4cc['CROpj']);for(const _0x57a3ad of _0xe8211b[_0x1c3761(0x35b,0x307)+_0x1c3761(0x2fc,0x2c8)][_0x2e73d8(0x326,0x312)](0x0,0x3)){const _0x127395=_0x57a3ad[_0x1c3761(0x331,0x35d)][_0x2e73d8(0x302,0x2f1)]('\x0a')[0x0][_0x1c3761(0x3a2,0x38d)](0x0,0x96);_0x2beb02[_0x2e73d8(0x2b6,0x299)]('-\x20'+_0x127395);}}return _0x2beb02[_0x1c3761(0x2e5,0x334)]('\x0a');}[_0x2b645c(0x4a0,0x446)+'adata'](_0x2cc6a9){function _0x215c0c(_0xa659ae,_0x3d3a04){return _0x2b645c(_0xa659ae- -0x4af,_0x3d3a04);}const _0x2d3c23={'dyTuV':function(_0x416ffd,_0x5f2516){return _0x416ffd===_0x5f2516;},'yxZnD':_0x36b3ff(-0x1f3,-0x1d1),'OfPDL':'base64'},_0xd8fcb9=_0x2cc6a9[_0x215c0c(-0x49,-0x4)][_0x36b3ff(-0x135,-0x17c)](_0x4ecde6=>_0x4ecde6['startsWith'](_0x36b3ff(-0x172,-0x134)));function _0x36b3ff(_0x44c0be,_0x56deaa){return _0x2b645c(_0x44c0be- -0x621,_0x56deaa);}if(!_0xd8fcb9)return null;try{if(_0x2d3c23[_0x36b3ff(-0x185,-0x14e)](_0x2d3c23[_0x36b3ff(-0x164,-0x159)],'JudSr')){const _0x4067f6=Buffer[_0x215c0c(0x22,0x75)](_0xd8fcb9[_0x36b3ff(-0x130,-0x11c)](0x5),_0x2d3c23[_0x36b3ff(-0x16e,-0x138)])[_0x36b3ff(-0x14f,-0x182)]('utf-8');return JSON['parse'](_0x4067f6);}else _0x45b5be*=1.1;}catch{return null;}}[_0x201cf7(-0x15c,-0x138)+_0x2b645c(0x47e,0x444)](_0x3db030){const _0x2c3b3a={'praWC':function(_0xcbee23,_0x391925){return _0xcbee23<_0x391925;}};if(_0x3db030[_0x4efcd6(0xa9,0x85)]===0x0)return[];const _0x328a39=_0x3db030[0x0]['length'];function _0x4efcd6(_0x2b55eb,_0x399598){return _0x201cf7(_0x399598-0x22f,_0x2b55eb);}const _0x4a8854=new Array(_0x328a39)[_0x553e0c(0x288,0x2c6)](0x0);function _0x553e0c(_0x207801,_0x5828fc){return _0x201cf7(_0x5828fc-0x4a7,_0x207801);}for(const _0x3fb7e1 of _0x3db030){for(let _0xe2224=0x0;_0x2c3b3a[_0x553e0c(0x2ad,0x2cb)](_0xe2224,_0x328a39);_0xe2224++){_0x4a8854[_0xe2224]+=_0x3fb7e1[_0xe2224];}}for(let _0x464892=0x0;_0x2c3b3a[_0x553e0c(0x317,0x2cb)](_0x464892,_0x328a39);_0x464892++){_0x4a8854[_0x464892]/=_0x3db030[_0x553e0c(0x2a7,0x2fd)];}return _0x4a8854;}[_0x2b645c(0x46d,0x481)+'Skill'](_0x492cd8){const _0x3be394={'TvrpA':function(_0x22d59e,_0x5c0f58){return _0x22d59e===_0x5c0f58;},'XzoiB':'skill','xjaks':_0x26f1c5(-0x2c0,-0x2e9),'arwyl':function(_0x21d341,_0x15f157){return _0x21d341<_0x15f157;},'OoVib':'makuQ','GTNov':function(_0x53633a,_0x3da9ba){return _0x53633a+_0x3da9ba;},'PhGHd':'base64','wWUEO':function(_0x514a96,_0x174b6b){return _0x514a96+_0x174b6b;}};if(!_0x492cd8[_0x59e73c(0x410,0x41f)]||_0x3be394[_0x26f1c5(-0x213,-0x269)](_0x492cd8[_0x26f1c5(-0x235,-0x26a)],_0x3be394['XzoiB']))return _0x3be394[_0x26f1c5(-0x311,-0x2f9)]!==_0x26f1c5(-0x253,-0x263)?{'absorbed':![]}:{'absorbed':![]};function _0x26f1c5(_0xd420,_0x3fed14){return _0x201cf7(_0x3fed14- -0x116,_0xd420);}const _0x23d357=this['db']['listMemori'+'es']({'limit':0xc8})[_0x59e73c(0x409,0x41e)](_0x25f80c=>_0x25f80c['category']===_0x26f1c5(-0x2ad,-0x2a6));function _0x59e73c(_0x593db1,_0x2b6c7c){return _0x201cf7(_0x593db1-0x5c9,_0x2b6c7c);}for(const _0x89cacd of _0x23d357){if(!_0x89cacd['embedding'])continue;const _0x2b7b23=cosineSimilarity(_0x492cd8[_0x59e73c(0x410,0x450)],_0x89cacd['embedding']);if(_0x3be394[_0x59e73c(0x468,0x43a)](_0x2b7b23,0.8))continue;const _0x21f62b=this[_0x59e73c(0x447,0x47c)+_0x59e73c(0x49f,0x4a9)](_0x89cacd);if(!_0x21f62b)continue;if(_0x21f62b[_0x26f1c5(-0x29c,-0x28e)+_0x59e73c(0x3dd,0x434)][_0x59e73c(0x412,0x3cd)](_0x492cd8['id'])){if(_0x3be394['OoVib']===_0x59e73c(0x481,0x45f))return{'absorbed':![]};else this['db'][_0x59e73c(0x454,0x422)+'ry'](_0x5c08f1['id'],{'category':'learning','tags':_0x2f1ee6[_0x59e73c(0x40d,0x3cf)][_0x59e73c(0x409,0x44c)](_0x942e6f=>!_0x942e6f[_0x26f1c5(-0x2e7,-0x301)]('meta:')&&_0x942e6f!=='skill'&&_0x942e6f!=='crystalliz'+'ed')}),_0x2ca4d3++;}_0x21f62b[_0x59e73c(0x451,0x497)+_0x26f1c5(-0x35c,-0x302)]['push'](_0x492cd8['id']),_0x21f62b['activation'+_0x59e73c(0x433,0x42f)]=_0x3be394[_0x59e73c(0x411,0x475)](_0x21f62b[_0x59e73c(0x499,0x4d5)+_0x59e73c(0x433,0x3f8)]||0x0,0x1),_0x21f62b['lastActiva'+_0x59e73c(0x46a,0x43a)]=new Date()[_0x26f1c5(-0x2cd,-0x2d5)+'g']();const _0x290100=_0x59e73c(0x456,0x45d)+Buffer[_0x26f1c5(-0x22f,-0x267)](JSON[_0x59e73c(0x3fc,0x458)](_0x21f62b))[_0x26f1c5(-0x238,-0x266)](_0x3be394[_0x26f1c5(-0x2b8,-0x28a)]),_0x152ee5=_0x89cacd[_0x59e73c(0x40d,0x432)]['filter'](_0x1449a7=>!_0x1449a7[_0x59e73c(0x3de,0x3f4)](_0x26f1c5(-0x225,-0x289))),_0x5e064d='-\x20'+_0x492cd8['content'][_0x59e73c(0x474,0x475)]('\x0a')[0x0][_0x26f1c5(-0x1fd,-0x247)](0x0,0x96);let _0x189762=_0x89cacd['content'];const _0x32ec3d=_0x189762[_0x59e73c(0x474,0x4b9)]('\x0a')[_0x26f1c5(-0x2d0,-0x2d6)](_0x85cc31=>_0x85cc31[_0x59e73c(0x3de,0x38a)]('-\x20'));return _0x32ec3d[_0x59e73c(0x41f,0x44a)]<0x5&&(_0x189762=_0x3be394['wWUEO'](_0x189762['trimEnd'](),'\x0a')+_0x5e064d),this['db'][_0x59e73c(0x454,0x417)+'ry'](_0x89cacd['id'],{'content':_0x189762,'tags':[..._0x152ee5,_0x290100]}),{'absorbed':!![],'skillId':_0x89cacd['id']};}return{'absorbed':![]};}}
|
package/dist/skill/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x473f53,_0x3f4c63){function _0x39c16c(_0x28c1c7,_0x155e6f){return _0x38d7(_0x155e6f- -0x396,_0x28c1c7);}function _0xcb362e(_0x38e745,_0x3cd3a5){return _0x38d7(_0x3cd3a5- -0x11b,_0x38e745);}var _0x58de39=_0x473f53();while(!![]){try{var _0xa2bf9e=-parseInt(_0xcb362e(-0x8b,-0x8c))/0x1*(-parseInt(_0xcb362e(-0x84,-0x86))/0x2)+-parseInt(_0xcb362e(-0x83,-0x87))/0x3+parseInt(_0x39c16c(-0x302,-0x303))/0x4*(parseInt(_0x39c16c(-0x308,-0x306))/0x5)+parseInt(_0x39c16c(-0x2fc,-0x300))/0x6*(parseInt(_0xcb362e(-0x84,-0x84))/0x7)+-parseInt(_0x39c16c(-0x308,-0x305))/0x8+parseInt(_0xcb362e(-0x84,-0x83))/0x9+-parseInt(_0xcb362e(-0x89,-0x89))/0xa;if(_0xa2bf9e===_0x3f4c63)break;else _0x58de39['push'](_0x58de39['shift']());}catch(_0x2d0a04){_0x58de39['push'](_0x58de39['shift']());}}}(_0x2adf,0x3a27b));function _0x38d7(_0x23e4de,_0x4740f1){_0x23e4de=_0x23e4de-0x8f;var _0x2adfdf=_0x2adf();var _0x38d788=_0x2adfdf[_0x23e4de];if(_0x38d7['MGMIaL']===undefined){var _0x3323cf=function(_0x9df820){var _0x19bd55='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xea70fd='',_0x4d14b5='';for(var _0x1dd6b9=0x0,_0x41b5fd,_0x54dfa0,_0x5ea97=0x0;_0x54dfa0=_0x9df820['charAt'](_0x5ea97++);~_0x54dfa0&&(_0x41b5fd=_0x1dd6b9%0x4?_0x41b5fd*0x40+_0x54dfa0:_0x54dfa0,_0x1dd6b9++%0x4)?_0xea70fd+=String['fromCharCode'](0xff&_0x41b5fd>>(-0x2*_0x1dd6b9&0x6)):0x0){_0x54dfa0=_0x19bd55['indexOf'](_0x54dfa0);}for(var _0x43d759=0x0,_0x55c2d5=_0xea70fd['length'];_0x43d759<_0x55c2d5;_0x43d759++){_0x4d14b5+='%'+('00'+_0xea70fd['charCodeAt'](_0x43d759)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d14b5);};_0x38d7['aNTeJr']=_0x3323cf,_0x38d7['FTxIAk']={},_0x38d7['MGMIaL']=!![];}var _0x4918d5=_0x2adfdf[0x0],_0x16b819=_0x23e4de+_0x4918d5,_0x1029af=_0x38d7['FTxIAk'][_0x16b819];return!_0x1029af?(_0x38d788=_0x38d7['aNTeJr'](_0x38d788),_0x38d7['FTxIAk'][_0x16b819]=_0x38d788):_0x38d788=_0x1029af,_0x38d788;}function _0x2adf(){var _0x469573=['mZC4mJq1nM9PBePVDG','mtu3mZiWmefLEM9tBa','nZiWmZe2r3f5zfPA','ntm1mdyYBgfYBeDs','mtq2odq0yLvqsNzM','mtmXmtm2DNPJq1LY','mte5quLXwNbw','mtGXmJi4nvzuCgzHDa','nfvJCMXnAG','nuDxsMLOzq'];_0x2adf=function(){return _0x469573;};return _0x2adf();}export{SkillEvaluator}from'./evaluator.js';
|
package/dist/sync/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x55b30e,_0x5e5606){function _0x143177(_0x3e894b,_0x172b47){return _0x471d(_0x172b47-0x3bc,_0x3e894b);}const _0x1c710d=_0x55b30e();function _0x56717f(_0x4e508b,_0x74d42){return _0x471d(_0x74d42-0x33e,_0x4e508b);}while(!![]){try{const _0x3e9d45=-parseInt(_0x143177(0x464,0x4b7))/0x1*(-parseInt(_0x56717f(0x45c,0x41a))/0x2)+-parseInt(_0x56717f(0x423,0x417))/0x3*(-parseInt(_0x56717f(0x3f2,0x3e1))/0x4)+parseInt(_0x56717f(0x46b,0x490))/0x5*(parseInt(_0x56717f(0x3d5,0x3e4))/0x6)+parseInt(_0x143177(0x3ec,0x42c))/0x7+-parseInt(_0x143177(0x51a,0x4b3))/0x8*(parseInt(_0x56717f(0x503,0x4a1))/0x9)+-parseInt(_0x56717f(0x432,0x413))/0xa*(parseInt(_0x143177(0x4e7,0x4df))/0xb)+-parseInt(_0x143177(0x4d2,0x4ad))/0xc*(parseInt(_0x143177(0x4aa,0x493))/0xd);if(_0x3e9d45===_0x5e5606)break;else _0x1c710d['push'](_0x1c710d['shift']());}catch(_0x11018b){_0x1c710d['push'](_0x1c710d['shift']());}}}(_0x45e3,0x530cb));function _0x12e6f3(_0x2b2c86,_0x3b50d7){return _0x471d(_0x2b2c86-0x336,_0x3b50d7);}function _0x471d(_0x56f9d7,_0x359f90){_0x56f9d7=_0x56f9d7-0x69;const _0x45e3a0=_0x45e3();let _0x471d44=_0x45e3a0[_0x56f9d7];if(_0x471d['SmYoZI']===undefined){var _0x39c645=function(_0xeeed45){const _0x4c365b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17a1e5='',_0x273cb7='';for(let _0x36b125=0x0,_0xfd8731,_0x577ccc,_0x5af6c2=0x0;_0x577ccc=_0xeeed45['charAt'](_0x5af6c2++);~_0x577ccc&&(_0xfd8731=_0x36b125%0x4?_0xfd8731*0x40+_0x577ccc:_0x577ccc,_0x36b125++%0x4)?_0x17a1e5+=String['fromCharCode'](0xff&_0xfd8731>>(-0x2*_0x36b125&0x6)):0x0){_0x577ccc=_0x4c365b['indexOf'](_0x577ccc);}for(let _0x4318df=0x0,_0x4c6564=_0x17a1e5['length'];_0x4318df<_0x4c6564;_0x4318df++){_0x273cb7+='%'+('00'+_0x17a1e5['charCodeAt'](_0x4318df)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x273cb7);};_0x471d['FpLqxv']=_0x39c645,_0x471d['GEQlxb']={},_0x471d['SmYoZI']=!![];}const _0x2c335b=_0x45e3a0[0x0],_0x1a151d=_0x56f9d7+_0x2c335b,_0x2280b1=_0x471d['GEQlxb'][_0x1a151d];return!_0x2280b1?(_0x471d44=_0x471d['FpLqxv'](_0x471d44),_0x471d['GEQlxb'][_0x1a151d]=_0x471d44):_0x471d44=_0x2280b1,_0x471d44;}import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';let _pluginVersion=_0x12e6f3(0x42c,0x3bd);function _0x13c324(_0x132023,_0x1cab5e){return _0x471d(_0x132023- -0xad,_0x1cab5e);}try{const {readFileSync}=await import(_0x12e6f3(0x42b,0x425)),{fileURLToPath}=await import('node:url'),{dirname,join}=await import(_0x12e6f3(0x3e4,0x365)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x12e6f3(0x458,0x4ad)](readFileSync(join(__dirname,'../../pack'+'age.json'),_0x13c324(0x69,-0x3)));_pluginVersion=pkg[_0x13c324(0xb4,0xf9)]||'0.0.0';}catch{}export class A2AClient{[_0x12e6f3(0x43c,0x49e)];[_0x13c324(0x9a,0x5f)];[_0x12e6f3(0x476,0x482)+_0x13c324(0x2d,0x49)]=null;[_0x13c324(0x1c,0x1e)+_0x12e6f3(0x460,0x4e5)]=[];constructor(_0xc6dc4f){this[_0x13d760(0x21b,0x238)]=_0xc6dc4f;function _0x129f7d(_0x2b5576,_0x3da831){return _0x13c324(_0x2b5576- -0x1cc,_0x3da831);}function _0x13d760(_0x5b4be8,_0x102437){return _0x13c324(_0x5b4be8-0x1c2,_0x102437);}this['timeout']=_0xc6dc4f[_0x129f7d(-0x132,-0x157)]??0xea60;}[_0x12e6f3(0x41c,0x44f)+'Features'](_0x1c4753){function _0x2a9172(_0x12844b,_0x470bdd){return _0x12e6f3(_0x12844b- -0x98,_0x470bdd);}function _0x48f467(_0x39376e,_0x4a82a7){return _0x12e6f3(_0x4a82a7- -0x5ab,_0x39376e);}this[_0x48f467(-0x153,-0x1ac)+_0x48f467(-0x12d,-0x14b)]=_0x1c4753;}['setEncrypt'+_0x12e6f3(0x3ba,0x3f2)](_0x27cdcc){const _0x129386={'EeWLK':function(_0x450873,_0x554733){return _0x450873!==_0x554733;},'YZbEV':'암호화\x20키는\x2032\x20'+_0x350cc1(0x5dd,0x55a)+'다'};if(_0x129386[_0x4944db(0x254,0x226)](_0x27cdcc[_0x350cc1(0x50d,0x4e3)],0x20))throw new Error(_0x129386[_0x350cc1(0x44d,0x473)]);function _0x350cc1(_0x4f485a,_0xfc0d21){return _0x12e6f3(_0xfc0d21-0xb1,_0x4f485a);}function _0x4944db(_0x2e7f2a,_0xb3eefa){return _0x12e6f3(_0x2e7f2a- -0x16d,_0xb3eefa);}this[_0x350cc1(0x54f,0x527)+'Key']=_0x27cdcc;}['clearEncry'+_0x12e6f3(0x3c3,0x372)](){function _0x5805b3(_0x4e972c,_0x192175){return _0x13c324(_0x192175- -0x5a,_0x4e972c);}function _0x10fcb8(_0x5f40ce,_0x384640){return _0x13c324(_0x5f40ce-0x484,_0x384640);}this[_0x5805b3(0x42,0x39)+_0x5805b3(-0x80,-0x2d)]=null;}['isEncrypti'+_0x13c324(0x82,0x6b)](){function _0x2f1393(_0xa7578,_0x4a7fc3){return _0x12e6f3(_0xa7578- -0x711,_0x4a7fc3);}function _0x83fa3e(_0x1b1a30,_0x17e6f6){return _0x12e6f3(_0x1b1a30- -0x594,_0x17e6f6);}const _0x1d253a={'fVdFI':function(_0x2f0fe4,_0xfee800){return _0x2f0fe4!==_0xfee800;}};return _0x1d253a[_0x2f1393(-0x330,-0x3b4)](this[_0x83fa3e(-0x11e,-0xc1)+_0x2f1393(-0x301,-0x317)],null);}async[_0x12e6f3(0x42f,0x44f)+'ry'](_0x45d13f){const _0x3d3dc4={'ANUWF':_0x335602(0x202,0x193)+_0x4d53b7(0x26b,0x223)+'다','thoWd':_0x335602(0x158,0x1ac),'cLlCs':function(_0x5edd84,_0x37f064){return _0x5edd84(_0x37f064);},'UIqWC':function(_0x1fe010,_0x6cb3a8,_0x1fe50d){return _0x1fe010(_0x6cb3a8,_0x1fe50d);}};let _0x470876=_0x45d13f[_0x335602(0x23e,0x228)];function _0x335602(_0x2b3438,_0x32de72){return _0x12e6f3(_0x2b3438- -0x253,_0x32de72);}if(this['encryption'+_0x4d53b7(0x1fc,0x18a)]){const _0x45f32b=encryptContent(_0x45d13f[_0x335602(0x23e,0x1cd)],this[_0x4d53b7(0x231,0x1f0)+_0x4d53b7(0x20d,0x18a)]);_0x470876=wrapEncryptedContent(_0x45f32b);}const _0x375287=await this[_0x4d53b7(0x256,0x204)](_0x3d3dc4[_0x4d53b7(0x147,0x1b9)],_0x4d53b7(0x285,0x20d)+_0x4d53b7(0x1c1,0x15a),{'content':_0x470876,'category':_0x45d13f['category'],'tier':_0x45d13f[_0x4d53b7(0x154,0x1aa)],'tags':_0x45d13f[_0x4d53b7(0x1af,0x21d)]??[]});function _0x4d53b7(_0x345ee1,_0x483524){return _0x12e6f3(_0x483524- -0x286,_0x345ee1);}const _0x2c1a74=_0x375287;if(this[_0x335602(0x223,0x1d5)+_0x335602(0x1bd,0x18e)]&&_0x2c1a74[_0x4d53b7(0x25d,0x20b)]){const _0x44ae35=_0x3d3dc4['cLlCs'](unwrapEncryptedContent,_0x2c1a74[_0x335602(0x23e,0x202)]);if(_0x44ae35){if(_0x335602(0x18a,0x19f)===_0x4d53b7(0xdc,0x136))throw new _0x580574(fSpfNg[_0x335602(0x22d,0x280)]);else _0x2c1a74['content']=_0x3d3dc4[_0x335602(0x1f4,0x1d4)](decryptContent,_0x44ae35,this[_0x335602(0x223,0x1cc)+'Key']);}}return _0x2c1a74;}async[_0x13c324(-0x2c,0x4a)+_0x13c324(-0x10,0x6)](_0xfefc40,_0x30e9b7){function _0x431bc3(_0x32a595,_0x472eb7){return _0x13c324(_0x32a595- -0xbd,_0x472eb7);}function _0x5e3c5c(_0x220fed,_0x3721f8){return _0x13c324(_0x3721f8-0x493,_0x220fed);}const _0x4e447e=await this['request'](_0x431bc3(-0xf5,-0x17a),_0x5e3c5c(0x597,0x543)+'mories/sea'+_0x431bc3(-0x83,-0x90),{'query':_0xfefc40,'limit':_0x30e9b7?.[_0x5e3c5c(0x456,0x463)]??0xa,'category':_0x30e9b7?.[_0x431bc3(-0xb2,-0x7d)]});return _0x4e447e[_0x431bc3(-0xa,-0x48)]??[];}async[_0x12e6f3(0x443,0x42b)+'es'](_0x100112){function _0x1904ec(_0x254c29,_0x4bbafc){return _0x13c324(_0x254c29-0x386,_0x4bbafc);}function _0x1bc1a5(_0x5c14ce,_0x14d2ab){return _0x13c324(_0x14d2ab- -0xe9,_0x5c14ce);}const _0x274d49={'HBSve':_0x1bc1a5(-0x83,-0x6f)+_0x1904ec(0x402,0x432)},_0x597dc6=new URLSearchParams();if(_0x100112?.[_0x1bc1a5(-0x9c,-0x119)])_0x597dc6[_0x1904ec(0x38a,0x36c)](_0x1bc1a5(-0x192,-0x119),_0x100112['limit']['toString']());if(_0x100112?.[_0x1bc1a5(-0x15c,-0x10e)])_0x597dc6[_0x1904ec(0x38a,0x3e3)](_0x1bc1a5(-0xb6,-0x10e),_0x100112['offset'][_0x1904ec(0x392,0x30e)]());if(_0x100112?.['includeEmb'+_0x1904ec(0x440,0x479)])_0x597dc6['set'](_0x274d49[_0x1904ec(0x3d9,0x441)],_0x1904ec(0x40e,0x468));const _0x3a866f='/api/v1/me'+'mories'+(_0x597dc6[_0x1bc1a5(-0x6d,-0xdd)]()?'?'+_0x597dc6['toString']():''),_0xcfcdc7=await this['request']('GET',_0x3a866f),_0x56d087=_0xcfcdc7[_0x1904ec(0x439,0x429)]??[];if(this['encryption'+_0x1bc1a5(-0xdc,-0xbc)])return _0x56d087['map'](_0x22e3f7=>this['decryptMem'+_0x1bc1a5(-0x5,-0x63)](_0x22e3f7));return _0x56d087;}[_0x13c324(0x94,0xc4)+_0x12e6f3(0x469,0x4c1)](_0x4cf9d1){function _0x516e18(_0x48a362,_0x31536d){return _0x12e6f3(_0x48a362- -0x32,_0x31536d);}function _0x3fc96e(_0x20cd4c,_0x997a46){return _0x12e6f3(_0x997a46- -0x622,_0x20cd4c);}const _0x236c6f={'OcjJZ':function(_0x3d690a,_0x1630c0){return _0x3d690a!==_0x1630c0;},'hkuBg':_0x3fc96e(-0x25e,-0x219),'hzenN':function(_0x39647c,_0x368118,_0x21af91){return _0x39647c(_0x368118,_0x21af91);}};if(!this[_0x516e18(0x444,0x3f1)+_0x516e18(0x3de,0x424)])return _0x4cf9d1;const _0x3ac933={..._0x4cf9d1};if(_0x3ac933[_0x516e18(0x45f,0x435)]){const _0x3b2ee5=unwrapEncryptedContent(_0x3ac933['content']);if(_0x3b2ee5)try{if(_0x236c6f[_0x3fc96e(-0x288,-0x240)](_0x3fc96e(-0x195,-0x219),_0x236c6f[_0x3fc96e(-0x20a,-0x220)]))throw new _0x3f97f8(_0x3fc96e(-0x25c,-0x271)+this[_0x516e18(0x44b,0x41a)]+'ms를\x20넘었습니다');else _0x3ac933[_0x516e18(0x45f,0x4b1)]=_0x236c6f[_0x516e18(0x3b8,0x378)](decryptContent,_0x3b2ee5,this[_0x3fc96e(-0x178,-0x1ac)+_0x3fc96e(-0x230,-0x212)]);}catch{}}return _0x3ac933;}async['updateMemo'+'ry'](_0x2b7ef0,_0x3d78ad){function _0x4f21bc(_0x4f64f6,_0x1f34c2){return _0x12e6f3(_0x4f64f6- -0x41,_0x1f34c2);}const _0x20e990={'EJZUP':_0x4f21bc(0x430,0x413)},_0x52ca2a=await this[_0x1a77cf(-0x1c2,-0x1cb)](_0x20e990[_0x1a77cf(-0x2ac,-0x274)],_0x4f21bc(0x452,0x3d7)+_0x1a77cf(-0x203,-0x218)+_0x2b7ef0,_0x3d78ad);function _0x1a77cf(_0x1fffa3,_0x488931){return _0x12e6f3(_0x1fffa3- -0x64c,_0x488931);}return _0x52ca2a;}async[_0x13c324(0xa3,0xa8)+'ry'](_0x433649){function _0x12da10(_0x305516,_0x5c087d){return _0x12e6f3(_0x5c087d- -0x53,_0x305516);}function _0x337564(_0x455d8b,_0x4480cd){return _0x12e6f3(_0x4480cd- -0xb0,_0x455d8b);}await this[_0x337564(0x3a7,0x3da)](_0x12da10(0x44d,0x3f7),_0x12da10(0x472,0x440)+'mories/'+_0x433649);}async[_0x13c324(0x23,0xc)](){const _0x4b3f65={'zGjFV':_0x11328f(-0x10b,-0x168),'zMpEn':'/api/v1/te'+_0x11328f(-0x173,-0x13d)};function _0x256b82(_0x5a72da,_0x34da0c){return _0x13c324(_0x34da0c- -0x19f,_0x5a72da);}const _0x58f882=await this['request'](_0x4b3f65[_0x11328f(-0x9a,-0xe2)],_0x4b3f65['zMpEn']);if(Array[_0x256b82(-0x104,-0xf7)](_0x58f882))return _0x58f882;function _0x11328f(_0x59c0ff,_0x56ad0d){return _0x13c324(_0x56ad0d- -0x124,_0x59c0ff);}return _0x58f882[_0x256b82(-0x158,-0xec)]??[];}async[_0x13c324(0x1e,0xa0)+'mories'](_0x4a2c50,_0x5274b0){const _0x11d20c={'IWKru':_0xfb2f5d(-0x2b3,-0x275)},_0x24485b=new URLSearchParams();function _0x54ab95(_0x1d4701,_0x13544f){return _0x12e6f3(_0x1d4701- -0x426,_0x13544f);}if(_0x5274b0?.[_0x54ab95(-0x73,-0x1e)])_0x24485b[_0xfb2f5d(-0x28a,-0x2d5)](_0xfb2f5d(-0x2be,-0x246),_0x5274b0[_0x54ab95(-0x73,-0x96)][_0xfb2f5d(-0x282,-0x2bb)]());if(_0x5274b0?.[_0x54ab95(-0x68,-0x9e)])_0x24485b[_0x54ab95(-0x3f,0x28)](_0x11d20c['IWKru'],_0x5274b0[_0x54ab95(-0x68,-0x3c)][_0x54ab95(-0x37,-0x54)]());const _0x211f2d=_0x24485b[_0xfb2f5d(-0x282,-0x2b8)](),_0x5c45d8=_0x54ab95(-0x21,-0x47)+encodeURIComponent(_0x4a2c50)+_0x54ab95(0x55,0x61)+(_0x211f2d?'?'+_0x211f2d:'');function _0xfb2f5d(_0x27b715,_0x502e76){return _0x12e6f3(_0x27b715- -0x671,_0x502e76);}const _0x24e343=await this[_0x54ab95(0x64,0xe4)]('GET',_0x5c45d8);return _0x24e343['items']??[];}async['addTeamMem'+'ory'](_0xe59d8,_0x4992d4){const _0x17ef5b={'AyROG':function(_0x5e3a39,_0x113ff2){return _0x5e3a39(_0x113ff2);}};function _0x7848db(_0x35ee63,_0x1a6832){return _0x13c324(_0x1a6832-0x22a,_0x35ee63);}function _0x28be31(_0xd29342,_0x43f726){return _0x13c324(_0x43f726-0x48d,_0xd29342);}const _0x250069=await this[_0x7848db(0x24e,0x2d1)](_0x28be31(0x423,0x455),_0x28be31(0x47d,0x4af)+_0x17ef5b['AyROG'](encodeURIComponent,_0xe59d8)+'/memories',_0x4992d4);return _0x250069;}async[_0x13c324(0x36,0x8)+_0x13c324(-0xf,-0x6d)](_0x598e04,_0x1dc2b1,_0x19f49f){const _0x39f1c6=await this[_0x5a6a3f(-0x136,-0x16f)](_0x2a329b(0x1d6,0x1ae),_0x5a6a3f(-0x250,-0x1f4)+encodeURIComponent(_0x598e04)+(_0x2a329b(0x22d,0x1d9)+_0x2a329b(0x282,0x21e)),{'query':_0x1dc2b1,'limit':_0x19f49f?.[_0x2a329b(0x201,0x1b6)]??0xa,'category':_0x19f49f?.[_0x5a6a3f(-0x23b,-0x20b)]});function _0x2a329b(_0x271605,_0x1d5d85){return _0x13c324(_0x1d5d85-0x1e6,_0x271605);}function _0x5a6a3f(_0x32f6df,_0x12fec3){return _0x13c324(_0x12fec3- -0x216,_0x32f6df);}return _0x39f1c6[_0x2a329b(0x28f,0x299)]??[];}async[_0x12e6f3(0x3cb,0x445)+_0x13c324(0x8a,0x85)](_0x2f649c,_0x5eb672,_0x27a3f4){function _0x512941(_0x56d883,_0x31bf9e){return _0x13c324(_0x31bf9e-0x1a7,_0x56d883);}const _0x42055d={'iiZJq':function(_0x22a824,_0xea2c8d){return _0x22a824(_0xea2c8d);}};function _0x5c47af(_0x5714af,_0x555d13){return _0x13c324(_0x5714af-0x1fd,_0x555d13);}return this[_0x512941(0x1d2,0x24e)](_0x5c47af(0x1c5,0x160),_0x5c47af(0x21f,0x23b)+_0x42055d[_0x5c47af(0x255,0x255)](encodeURIComponent,_0x2f649c)+('/memories/'+'sync/delta'),{'memory_id':_0x5eb672,'vector_clock':_0x27a3f4});}async['applyDelta'](_0x2922a5,_0x51c462,_0x2ca10e){const _0x4559a7={'jrHCe':_0x1e9f3f(-0x34a,-0x36a)};function _0x46cf9e(_0x3f04e9,_0x5132a7){return _0x12e6f3(_0x5132a7- -0x31c,_0x3f04e9);}function _0x1e9f3f(_0x5ebb14,_0xc2a5c8){return _0x12e6f3(_0xc2a5c8- -0x715,_0x5ebb14);}return this['request'](_0x4559a7['jrHCe'],_0x46cf9e(0xe6,0xe9)+encodeURIComponent(_0x2922a5)+(_0x46cf9e(0xea,0xba)+_0x1e9f3f(-0x265,-0x294)),{'memory_id':_0x51c462,'delta':_0x2ca10e});}async['createMemo'+_0x13c324(0x7e,0x30)](_0x594614){function _0x413024(_0x18b442,_0x363eee){return _0x13c324(_0x363eee-0x8a,_0x18b442);}function _0x500546(_0x573c6e,_0x4fa2e6){return _0x13c324(_0x4fa2e6- -0x1cd,_0x573c6e);}const _0x45b4a3=await this[_0x500546(-0x124,-0x126)](_0x500546(-0x1ec,-0x205),_0x500546(-0x183,-0x11d)+'mories/bat'+'ch',{'items':_0x594614});return _0x45b4a3;}async[_0x13c324(0x9f,0x90)+'tion'](){function _0x186140(_0x3cf481,_0x52d745){return _0x13c324(_0x52d745-0x425,_0x3cf481);}function _0x220437(_0x2eb761,_0x4036c8){return _0x13c324(_0x4036c8-0x2be,_0x2eb761);}try{return await this[_0x220437(0x321,0x365)](_0x186140(0x454,0x3e1),'/api/v1/me'+_0x220437(0x317,0x36d)+'it=1'),!![];}catch{return![];}}async[_0x13c324(0x34,0xb2)+_0x13c324(0x43,0x52)](_0x25c738,_0x352636){function _0xc68215(_0x266b2f,_0x5f2f5c){return _0x13c324(_0x266b2f-0x255,_0x5f2f5c);}function _0x6ff3e1(_0x5e4a06,_0x5e6b12){return _0x13c324(_0x5e6b12- -0xe6,_0x5e4a06);}const _0x16aee6={'JUFdE':_0xc68215(0x21d,0x217),'AXeYl':_0xc68215(0x305,0x300)+'mories/ass'+_0x6ff3e1(-0x20,-0x45)},_0x54ae08=await this[_0x6ff3e1(-0x9a,-0x3f)](_0x16aee6[_0xc68215(0x2b2,0x26a)],_0x16aee6[_0x6ff3e1(-0x1a,-0x27)],{'query':_0x25c738,'max_memories':_0x352636?.[_0x6ff3e1(-0x75,-0x39)+'s']??0x5,'max_tokens':_0x352636?.[_0x6ff3e1(-0x78,-0xdc)]??0x7d0,'categories':_0x352636?.[_0xc68215(0x263,0x27a)],'tier':_0x352636?.[_0xc68215(0x2a2,0x280)]});return _0x54ae08;}async['reinforceM'+_0x12e6f3(0x3de,0x3e3)](_0x5d6b26){const _0x82f26={'bVlQY':_0x24d9eb(0x221,0x1cb)};function _0x1eac4e(_0x21046b,_0x4f7f15){return _0x12e6f3(_0x21046b-0x3e,_0x4f7f15);}function _0x24d9eb(_0x47a147,_0x2afffa){return _0x12e6f3(_0x2afffa- -0x1e0,_0x47a147);}const _0x556749=await this['request'](_0x82f26['bVlQY'],_0x1eac4e(0x4d1,0x46b)+_0x1eac4e(0x487,0x4ca)+_0x5d6b26+_0x24d9eb(0x25e,0x253));return _0x556749;}async[_0x12e6f3(0x45b,0x450)+_0x13c324(0xa4,0x30)+_0x13c324(-0x34,0x1c)](_0x2a7544,_0x10d4a7){function _0x20c0b2(_0xc37154,_0x577cbb){return _0x12e6f3(_0xc37154- -0x106,_0x577cbb);}const _0x17a116={'wYmTg':_0x238a14(0x2fa,0x27b),'PKdRh':function(_0x30a82e,_0x2da745){return _0x30a82e(_0x2da745);}};function _0x238a14(_0x2a43c8,_0x38a2ad){return _0x12e6f3(_0x2a43c8- -0xb1,_0x38a2ad);}try{await this['request'](_0x17a116[_0x20c0b2(0x34a,0x340)],'/api/v1/me'+_0x238a14(0x398,0x3b8)+_0x2a7544+'/reinforce',{'success':_0x10d4a7});}catch(_0x53573f){console[_0x20c0b2(0x2ef,0x2cf)]('[a2a]\x20rein'+_0x20c0b2(0x2b9,0x237)+'yFeedback\x20'+_0x238a14(0x3bd,0x3c7)+'\x20'+_0x2a7544+':',_0x53573f instanceof Error?_0x53573f[_0x238a14(0x3c3,0x3bf)]:_0x17a116[_0x238a14(0x3f5,0x37a)](String,_0x53573f));}}async[_0x12e6f3(0x3df,0x390)+'ory'](_0x14f4ea,_0x16bc45){function _0x9f6962(_0x2abf0a,_0xfda9b1){return _0x12e6f3(_0xfda9b1- -0x226,_0x2abf0a);}const _0x125154=await this[_0x493029(0x9b,0x23)]('POST',_0x9f6962(0x1ed,0x26d)+'mories/'+_0x14f4ea+_0x9f6962(0x248,0x23d));function _0x493029(_0xfc2ae7,_0xc119c7){return _0x12e6f3(_0xfc2ae7- -0x3ef,_0xc119c7);}return _0x125154;}async[_0x12e6f3(0x441,0x439)](){function _0x3b3e34(_0x20bc03,_0x4d56f6){return _0x13c324(_0x4d56f6-0x2d9,_0x20bc03);}const _0x146b4a={'ePEMU':_0x55edec(-0x13a,-0xb6)+_0x3b3e34(0x23f,0x2a4)+'ts'},_0xfcfc0a=await this[_0x55edec(-0x126,-0xbf)](_0x55edec(-0x1bd,-0x1aa),_0x146b4a[_0x3b3e34(0x35f,0x38a)]);function _0x55edec(_0x2eb3ba,_0x50343e){return _0x13c324(_0x50343e- -0x166,_0x2eb3ba);}return _0xfcfc0a;}async['getPopular'+'Tags'](_0x5e11fd=0xa){function _0x385761(_0x229c29,_0x1ade28){return _0x12e6f3(_0x1ade28-0x24,_0x229c29);}function _0x139526(_0x5b5c7b,_0x1393b8){return _0x12e6f3(_0x5b5c7b-0xae,_0x1393b8);}const _0x5a91e6={'ePjTx':_0x139526(0x461,0x4e3),'UeWsw':'GET'},_0x289143=new URLSearchParams();_0x289143[_0x385761(0x452,0x40b)](_0x5a91e6['ePjTx'],_0x5e11fd[_0x139526(0x49d,0x511)]());const _0x23334b=_0x139526(0x541,0x4de)+_0x139526(0x4a6,0x518)+_0x385761(0x440,0x49e)+_0x289143[_0x139526(0x49d,0x50e)](),_0x2f118e=await this['request'](_0x5a91e6['UeWsw'],_0x23334b);return _0x2f118e['items']??[];}async['getTeamSta'+'ts'](_0x209303){const _0x5e2d6d={'UgNgC':function(_0x56f414,_0x2f4030){return _0x56f414(_0x2f4030);}},_0x46e29a=await this[_0x483876(0x2e9,0x2f9)]('GET',_0x483876(0x2c0,0x274)+_0x5e2d6d[_0x483876(0x345,0x2c0)](encodeURIComponent,_0x209303)+(_0x3d5cd8(-0x6d,0x3)+_0x3d5cd8(-0x2f,-0x21)));function _0x483876(_0x5a8762,_0x3598fb){return _0x12e6f3(_0x3598fb- -0x191,_0x5a8762);}const _0x248510=_0x46e29a,_0x2be2a7=_0x248510['stats']??_0x248510;function _0x3d5cd8(_0x5934d5,_0x59c700){return _0x12e6f3(_0x5934d5- -0x443,_0x59c700);}return{'totalMemories':_0x2be2a7[_0x483876(0x335,0x314)+_0x483876(0x234,0x242)]??0x0,'totalNodes':_0x2be2a7['total_node'+'s']??0x0,'lastSyncedAt':_0x2be2a7['last_synce'+_0x483876(0x1f8,0x25b)]??null};}async[_0x12e6f3(0x41e,0x3a8)+_0x13c324(0xb2,0xce)](_0x13ea39){function _0x4828a5(_0x2e91ef,_0x5cadeb){return _0x13c324(_0x5cadeb- -0x2c6,_0x2e91ef);}const _0x293646={'eNhEc':_0x4a30f0(0x12e,0x177)};function _0x4a30f0(_0x179bdc,_0x2e6573){return _0x13c324(_0x2e6573-0x1af,_0x179bdc);}const _0x3a7175=await this[_0x4828a5(-0x282,-0x21f)](_0x293646[_0x4a30f0(0x1ea,0x248)],_0x4a30f0(0x263,0x251)+_0x4a30f0(0x19d,0x16f)+_0x4a30f0(0x2db,0x258),{'skill_memory_id':_0x13ea39['skill_memo'+_0x4828a5(-0x29e,-0x255)],'outcome':_0x13ea39[_0x4a30f0(0x1bd,0x1f0)],'difficulty':_0x13ea39['difficulty'],'context_tags':_0x13ea39[_0x4a30f0(0x194,0x17e)+'gs'],'session_id':_0x13ea39['session_id']});return _0x3a7175;}async['postProfic'+'iencyEvent'+_0x12e6f3(0x457,0x47a)](_0x43cbbc){function _0x241bca(_0x37d3b3,_0x427782){return _0x13c324(_0x37d3b3-0x28d,_0x427782);}const _0x25d6a0={'SdeJA':_0x11a13d(0x7d,0x85),'DEAnF':'/api/v1/pr'+_0x241bca(0x24d,0x274)+'event/batc'+'h'};function _0x11a13d(_0x21ecc1,_0x5d2dba){return _0x13c324(_0x5d2dba-0xbd,_0x21ecc1);}await this[_0x241bca(0x334,0x33a)](_0x25d6a0['SdeJA'],_0x25d6a0[_0x11a13d(0xcc,0x102)],{'events':_0x43cbbc});}async['listProfic'+_0x12e6f3(0x3b6,0x3c5)](_0xd962f3){function _0x57063d(_0x3a078a,_0x196a6c){return _0x12e6f3(_0x3a078a- -0x31b,_0x196a6c);}const _0x3ddda9={'rWDlm':_0x3e6f51(0x239,0x2a3),'ijLJI':_0x3e6f51(0x1db,0x16c)+'th','tWVNR':_0x3e6f51(0x1d0,0x1a1)};function _0x3e6f51(_0x1f7542,_0xc69212){return _0x12e6f3(_0x1f7542- -0x1cf,_0xc69212);}const _0x1b8234=new URLSearchParams();_0x1b8234['set']('page_size',_0x3ddda9['rWDlm']);if(_0xd962f3)_0x1b8234[_0x3e6f51(0x218,0x258)](_0x3ddda9[_0x57063d(0xfb,0x10c)],_0xd962f3);const _0x5ee08d=_0x57063d(0x16a,0x1eb)+_0x3e6f51(0x297,0x279)+_0x1b8234['toString'](),_0x59183e=await this['request'](_0x3ddda9[_0x57063d(0x189,0x146)],_0x5ee08d);return _0x59183e[_0x3e6f51(0x2c7,0x2d2)]??[];}async[_0x13c324(-0x3a,0x37)+_0x13c324(0x89,0x39)](_0x959e49){function _0x3f8f9f(_0x23fbf7,_0x447f69){return _0x12e6f3(_0x447f69- -0x616,_0x23fbf7);}function _0x2a98d6(_0x36bd70,_0x1f0151){return _0x12e6f3(_0x36bd70- -0x25f,_0x1f0151);}const _0xb1d934={'YCpbs':_0x2a98d6(0x14c,0x184),'tRabU':'/api/v1/pe'+_0x2a98d6(0x173,0x146)+_0x2a98d6(0x1cb,0x216)+_0x3f8f9f(-0x18f,-0x1c3)};return this['request'](_0xb1d934[_0x3f8f9f(-0x1d4,-0x203)],_0xb1d934['tRabU'],{'message':_0x959e49[_0x3f8f9f(-0x1a3,-0x1df)](0x0,0x1f4)});}async[_0x13c324(0xb7,0x78)+'iciencies'](_0x17b839,_0x2ae4dd){const _0x14c5f0=await this[_0x356e2e(0x3aa,0x40f)]('POST',_0x356e2e(0x38f,0x34e)+_0x356e2e(0x384,0x33f)+_0x245b06(-0x2d9,-0x2e3),{'source_provider':_0x17b839,'skill_ids':_0x2ae4dd??null});function _0x356e2e(_0x46420c,_0x2ed498){return _0x13c324(_0x46420c-0x303,_0x2ed498);}function _0x245b06(_0x44c21d,_0x140e13){return _0x13c324(_0x140e13- -0x2cc,_0x44c21d);}return _0x14c5f0;}async[_0x13c324(0x1a,0x59)+_0x13c324(-0x37,-0x6e)](_0x3d2223,_0x20504d){function _0x4d7d30(_0x4716ef,_0x1e79c6){return _0x13c324(_0x1e79c6-0x190,_0x4716ef);}const _0x1aafe4={'Bcygc':'POST','LUiTA':_0x43b400(0x187,0x152)+_0x4d7d30(0xef,0x15d)+'ort'},_0x4c204f=await this[_0x4d7d30(0x2a8,0x237)](_0x1aafe4['Bcygc'],_0x1aafe4[_0x43b400(0xbf,0xe7)],{'package':_0x3d2223,'target_provider':_0x20504d});function _0x43b400(_0x499821,_0x4f2f9d){return _0x13c324(_0x4f2f9d-0xc6,_0x499821);}return _0x4c204f;}async[_0x12e6f3(0x478,0x497)+_0x13c324(0x24,-0xb)+'ix'](){function _0x1d4a74(_0x53ab94,_0x341f43){return _0x13c324(_0x341f43- -0x320,_0x53ab94);}function _0x25a400(_0x5ec865,_0x1a4006){return _0x13c324(_0x1a4006- -0x31b,_0x5ec865);}const _0x209c22=await this[_0x1d4a74(-0x1fc,-0x279)](_0x25a400(-0x2e8,-0x35f),'/api/v1/tr'+'ansfer/com'+'patibility');return _0x209c22[_0x1d4a74(-0x2a7,-0x2e3)]??[];}async[_0x12e6f3(0x452,0x48e)+'rHistory'](_0x52e3a2=0x1){const _0x2bb2a2=new URLSearchParams();function _0x4a2b1a(_0x29fe1c,_0x289fa2){return _0x13c324(_0x29fe1c- -0x2d1,_0x289fa2);}function _0x2816bc(_0x13e5e4,_0x4d14e9){return _0x13c324(_0x13e5e4-0xe2,_0x4d14e9);}_0x2bb2a2[_0x2816bc(0xe6,0x12d)](_0x2816bc(0xc8,0x11e),_0x52e3a2[_0x2816bc(0xee,0x97)]());const _0x3bd48c=_0x2816bc(0x16e,0x100)+'ansfer/his'+_0x2816bc(0x117,0x127)+_0x2bb2a2['toString'](),_0x1ef068=await this[_0x2816bc(0x189,0x20b)]('GET',_0x3bd48c);return _0x1ef068;}async[_0x12e6f3(0x421,0x3ab)](_0x24187f,_0x3d57fc){const _0x38fc60={'FJyWC':_0x2311f6(0x374,0x391)},{readFileSync:_0x36e97d}=await import(_0x2311f6(0x345,0x39d)),{basename:_0x3071c7}=await import(_0x2311f6(0x3cd,0x356)),_0x58e7b0=_0x36e97d(_0x24187f),_0x1abff9=_0x3071c7(_0x24187f);function _0x2ccc69(_0x429f05,_0x19eec9){return _0x12e6f3(_0x429f05- -0x39f,_0x19eec9);}const _0x51be64=new FormData();_0x51be64['append'](_0x38fc60['FJyWC'],new Blob([_0x58e7b0]),_0x1abff9);_0x3d57fc[_0x2ccc69(0x4f,-0x15)]&&_0x51be64[_0x2ccc69(0x15,-0x33)]('category',_0x3d57fc[_0x2ccc69(0x4f,0xc)]);function _0x2311f6(_0x2781b4,_0x4fdbfa){return _0x12e6f3(_0x4fdbfa- -0x8e,_0x2781b4);}_0x3d57fc[_0x2311f6(0x423,0x415)]&&_0x3d57fc[_0x2ccc69(0x104,0xe2)][_0x2311f6(0x3c6,0x3a4)]>0x0&&_0x51be64['append']('tags',_0x3d57fc[_0x2311f6(0x44e,0x415)][_0x2ccc69(0x39,-0x35)](','));const _0x3bfa72=await this[_0x2311f6(0x39a,0x3d0)+'tipart'](_0x2ccc69(0xc,0x54),_0x2311f6(0x448,0x419)+_0x2ccc69(0x57,0x65),_0x51be64),_0x33b8cf=_0x3bfa72;return{'id':_0x33b8cf[_0x2ccc69(0x28,0x75)],'filename':_0x33b8cf[_0x2ccc69(0x29,-0xc)]};}async['checkFileD'+_0x12e6f3(0x3da,0x422)](_0x3bcbb3){const _0x444bdd={'bEzyD':_0x424fab(0x26b,0x208),'EFWiT':'/api/v1/fi'+_0x424fab(0x337,0x2ec)+_0x424fab(0x30e,0x2dc)};function _0x437c4c(_0x23a612,_0x3d5478){return _0x12e6f3(_0x3d5478- -0x1f3,_0x23a612);}function _0x424fab(_0x11e631,_0x18039e){return _0x12e6f3(_0x18039e- -0x1a3,_0x11e631);}const _0x2d6db9=await this[_0x424fab(0x265,0x2e7)](_0x444bdd[_0x424fab(0x281,0x221)],_0x444bdd[_0x424fab(0x335,0x2db)],{'content_hash':_0x3bcbb3}),_0x331075=_0x2d6db9;return{'exists':_0x331075['is_duplica'+'te'],'file_id':_0x331075[_0x424fab(0x2e9,0x2d6)+'ile']?.['id']};}async[_0x12e6f3(0x42f,0x427)+_0x13c324(0x5b,-0x26)](_0x34b8e6,_0x4b5427,_0x2e4f7){const _0x3da87d={'MZCCW':_0x46d3e4(0x23e,0x1ca)+'mory-files'};function _0x46d3e4(_0x31047a,_0x28f467){return _0x13c324(_0x28f467-0x11a,_0x31047a);}function _0x1b14bd(_0x4cbfb2,_0x473943){return _0x13c324(_0x4cbfb2-0x28f,_0x473943);}const _0x1d08e0=await this[_0x1b14bd(0x336,0x2da)](_0x1b14bd(0x257,0x2bc),_0x3da87d[_0x1b14bd(0x2a7,0x2b4)],{'memory_id':_0x34b8e6,'file_id':_0x4b5427,'reference_type':_0x2e4f7['reference_'+_0x46d3e4(0x160,0x129)],'reference_path':_0x2e4f7[_0x1b14bd(0x2a5,0x2ca)+_0x1b14bd(0x297,0x255)]});return _0x1d08e0;}async['createCont'+_0x12e6f3(0x46a,0x418)](_0x3b8a8f){const _0x36d213={'CxXec':_0x3cdce6(-0xba,-0xee),'nYGXn':_0x1b741c(0x428,0x482)+'g/contexts'};function _0x3cdce6(_0x125190,_0x3a0c64){return _0x13c324(_0x3a0c64- -0xb6,_0x125190);}function _0x1b741c(_0x19ab40,_0x214366){return _0x13c324(_0x19ab40-0x434,_0x214366);}return this[_0x1b741c(0x4db,0x51f)](_0x36d213[_0x1b741c(0x454,0x412)],_0x36d213[_0x1b741c(0x48e,0x42d)],_0x3b8a8f);}async[_0x12e6f3(0x3db,0x38b)+_0x12e6f3(0x3a8,0x3fb)](_0x580589,_0x30fb1a){function _0x4591cc(_0xa840af,_0x239d1f){return _0x13c324(_0x239d1f- -0x8,_0xa840af);}function _0x4d1351(_0x1b8787,_0x188c02){return _0x13c324(_0x1b8787- -0x2f9,_0x188c02);}const _0x331eed={'ZmQqR':_0x4d1351(-0x331,-0x2ac)};return this[_0x4d1351(-0x252,-0x203)](_0x331eed['ZmQqR'],_0x4d1351(-0x305,-0x341)+_0x4591cc(-0x6,0x77)+'/'+_0x580589+'/members',_0x30fb1a);}async[_0x12e6f3(0x3fa,0x3e9)+'tion'](_0x2f549a){const _0x146fbe={'HxAYL':_0x13ab1d(0xb9,0xaa)+_0x13ab1d(0x117,0xa5)+'s'};function _0x668d2d(_0x96702b,_0x3efdfe){return _0x12e6f3(_0x3efdfe-0x6a,_0x96702b);}function _0x13ab1d(_0x4fdfe1,_0x3798b4){return _0x12e6f3(_0x4fdfe1- -0x31e,_0x3798b4);}return this[_0x668d2d(0x4be,0x4f4)](_0x13ab1d(0x8d,0xa),_0x146fbe[_0x13ab1d(0x127,0xfa)],_0x2f549a);}async[_0x12e6f3(0x43a,0x3c3)+_0x12e6f3(0x3a4,0x3a6)](_0x39b0d7){function _0x5a460b(_0x2f5895,_0x1768f){return _0x13c324(_0x1768f- -0x158,_0x2f5895);}function _0x2f4ae4(_0x309d24,_0x58223f){return _0x13c324(_0x309d24-0x26d,_0x58223f);}const _0x5223de={'Hudvy':_0x5a460b(-0xbc,-0xb8)+_0x5a460b(-0x9d,-0xd3)+_0x2f4ae4(0x242,0x2bc)};try{if(_0x2f4ae4(0x2e6,0x2cb)!==_0x5a460b(-0x15c,-0xec)){const _0x386496=await this[_0x2f4ae4(0x314,0x328)]('POST',_0x5223de[_0x2f4ae4(0x2e4,0x33d)],{'content':_0x39b0d7['content'][_0x5a460b(-0x129,-0x104)](0x0,0x7d0),'tags':_0x39b0d7[_0x5a460b(-0xa4,-0x98)]??[],'category':_0x39b0d7[_0x5a460b(-0x165,-0x14d)]}),_0x36ca29=_0x386496;if(_0x36ca29[_0x5a460b(-0x9b,-0xae)]&&_0x36ca29[_0x5a460b(-0x149,-0x147)])return _0x36ca29['result'];return null;}else throw new _0x48e3bc('요청\x20제한:\x20잠시\x20'+_0x2f4ae4(0x2b3,0x31e));}catch{return null;}}static [_0x13c324(0xbe,0x38)+_0x13c324(-0x1d,0x65)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x12e6f3(0x3ce,0x444)+'S']=0x3;static [_0x12e6f3(0x470,0x455)+'_MS']=0x3e8;async[_0x13c324(0xa7,0x5a)](_0xdfa4fd,_0x13a89e,_0x220807){function _0x427fe2(_0x3e2810,_0x979993){return _0x13c324(_0x979993- -0x2cc,_0x3e2810);}function _0x49faf8(_0x2d2268,_0x5e5d43){return _0x13c324(_0x2d2268-0x14f,_0x5e5d43);}const _0x927497={'LMNjK':_0x427fe2(-0x2e2,-0x304),'GrFYz':function(_0x1e35b4,_0x59207b){return _0x1e35b4(_0x59207b);},'ZIVYu':function(_0x50d362,_0xda89c8){return _0x50d362 instanceof _0xda89c8;},'NixSH':function(_0x35faa5,_0xebc4be,_0xe0ef04){return _0x35faa5(_0xebc4be,_0xe0ef04);},'QhRAc':function(_0x8df338,_0x1a163f){return _0x8df338<_0x1a163f;},'gYmcs':function(_0x30c1d0,_0x5d09d7,_0x3fa9c0){return _0x30c1d0(_0x5d09d7,_0x3fa9c0);},'OYTbk':function(_0x5dd726,_0x31962c){return _0x5dd726>_0x31962c;},'ASxRE':function(_0x58cdc8,_0x5ea9f9){return _0x58cdc8*_0x5ea9f9;},'LFMRf':_0x427fe2(-0x294,-0x276),'eeein':function(_0x470a83,_0x2606ca){return _0x470a83===_0x2606ca;},'IIdde':_0x427fe2(-0x2db,-0x265),'squDk':function(_0x5e8920,_0x51beb0){return _0x5e8920===_0x51beb0;},'pOTSU':'pFvjH','ceryq':_0x49faf8(0x14f,0x12c),'WAftA':'HTTP\x20403','dDppi':_0x49faf8(0x1fa,0x1d4),'MXwjg':function(_0x50e190,_0x4fe22d){return _0x50e190===_0x4fe22d;},'SjkGn':_0x49faf8(0x1b2,0x147),'LNUkN':function(_0x414dae,_0x3a9039){return _0x414dae-_0x3a9039;},'AKmgq':function(_0x32a20c,_0x377305){return _0x32a20c!==_0x377305;}};let _0x1e6d0a;for(let _0x55f01a=0x0;_0x927497[_0x427fe2(-0x30f,-0x29a)](_0x55f01a,A2AClient[_0x49faf8(0x13a,0x119)+'S']);_0x55f01a++){const _0x3c2b17=''+this['config'][_0x49faf8(0x139,0x114)]+_0x13a89e,_0x1e4879=new AbortController(),_0x48d65d=_0x927497[_0x49faf8(0x113,0x167)](setTimeout,()=>_0x1e4879[_0x49faf8(0x17a,0x12d)](),this[_0x427fe2(-0x237,-0x232)]);try{const _0x55ba3f=await _0x927497[_0x427fe2(-0x275,-0x2c7)](fetch,_0x3c2b17,{'method':_0xdfa4fd,'headers':{'Content-Type':_0x49faf8(0x16c,0x14e)+_0x49faf8(0x1f5,0x1af),'x-api-key':this[_0x427fe2(-0x247,-0x273)][_0x427fe2(-0x237,-0x281)],'X-Plugin-Version':_pluginVersion,..._0x927497['OYTbk'](this[_0x49faf8(0x16b,0x1ac)+_0x49faf8(0x1cc,0x1ca)]['length'],0x0)&&{'X-Plugin-Features':this['enabledFea'+_0x49faf8(0x1cc,0x238)][_0x49faf8(0x144,0x137)](',')}},'body':_0x220807?JSON[_0x49faf8(0x18e,0x17a)](_0x220807):undefined,'signal':_0x1e4879[_0x49faf8(0x12c,0x10a)]});clearTimeout(_0x48d65d);if(A2AClient[_0x427fe2(-0x228,-0x20e)+_0x49faf8(0x132,0xe0)][_0x49faf8(0x10e,0x16d)](_0x55ba3f[_0x427fe2(-0x1e8,-0x213)])&&_0x927497[_0x49faf8(0x181,0x1d7)](_0x55f01a,A2AClient[_0x427fe2(-0x281,-0x2e1)+'S']-0x1)){const _0x53310a=_0x927497[_0x49faf8(0x129,0xd8)](A2AClient['BASE_DELAY'+_0x427fe2(-0x32d,-0x302)],Math[_0x49faf8(0x1d3,0x1ca)](0x2,_0x55f01a));await new Promise(_0x43e78f=>setTimeout(_0x43e78f,_0x53310a));continue;}if(!_0x55ba3f['ok']){if(_0x927497[_0x49faf8(0x1b0,0x1b0)]!==_0x427fe2(-0x1f8,-0x276))return _0x54ddab[_0x427fe2(-0x237,-0x2bb)];else await this[_0x49faf8(0x18f,0x207)+'rResponse'](_0x55ba3f);}if(_0x927497[_0x49faf8(0x121,0xd5)](_0xdfa4fd,_0x927497[_0x49faf8(0x1a4,0x15f)])&&_0x927497['squDk'](_0x55ba3f[_0x49faf8(0x208,0x1d4)],0xcc))return;return await _0x55ba3f[_0x427fe2(-0x2f0,-0x2ca)]();}catch(_0x239d27){if(_0x927497[_0x427fe2(-0x333,-0x2bf)]!==_0x427fe2(-0x2c9,-0x29e))return this[_0x49faf8(0x1f6,0x279)](qdOzid[_0x49faf8(0x1b9,0x22a)],_0x49faf8(0x171,0x165)+qdOzid['GrFYz'](_0x405bb4,_0x43225c)+(_0x49faf8(0x142,0x180)+_0x49faf8(0x1ed,0x200)),{'memory_id':_0x5b53bc,'delta':_0x1a8acb});else{clearTimeout(_0x48d65d);if(_0x239d27 instanceof Error){if(_0x239d27['message']['startsWith'](_0x927497[_0x427fe2(-0x323,-0x2a3)])||_0x239d27[_0x427fe2(-0x1ca,-0x23b)]['startsWith'](_0x927497['WAftA'])||_0x239d27[_0x427fe2(-0x21b,-0x23b)][_0x49faf8(0x127,0xd2)](_0x427fe2(-0x269,-0x2de))||_0x239d27[_0x427fe2(-0x247,-0x23b)][_0x49faf8(0x127,0x18a)](_0x927497['dDppi'])){if(_0x927497[_0x427fe2(-0x236,-0x2b8)](_0x49faf8(0x186,0x1d1),_0x927497[_0x49faf8(0x168,0x123)]))_0x14d58b[_0x427fe2(-0x2fe,-0x2ba)](_0x427fe2(-0x256,-0x2c9)+_0x427fe2(-0x2cb,-0x2f0)+_0x49faf8(0x204,0x1a3)+_0x49faf8(0x1da,0x1da)+'\x20'+_0x44b27e+':',qdOzid[_0x49faf8(0x16a,0x107)](_0x57ca3c,_0x455c84)?_0x1a73ff[_0x49faf8(0x1e0,0x1fe)]:qdOzid[_0x49faf8(0x1c2,0x1a1)](_0x2f31a0,_0x320e1b));else throw _0x239d27;}if(_0x55f01a<_0x927497['LNUkN'](A2AClient[_0x49faf8(0x13a,0x1b3)+'S'],0x1)){_0x1e6d0a=_0x239d27;const _0x222544=A2AClient[_0x427fe2(-0x1f6,-0x23f)+_0x427fe2(-0x362,-0x302)]*Math[_0x49faf8(0x1d3,0x214)](0x2,_0x55f01a);await new Promise(_0x515aac=>setTimeout(_0x515aac,_0x222544));continue;}if(_0x239d27['name']===_0x49faf8(0x20c,0x1d0)){if(_0x927497[_0x49faf8(0x1ae,0x1da)](_0x49faf8(0x176,0xf2),_0x49faf8(0x111,0x16b)))throw new Error(_0x427fe2(-0x345,-0x2fe)+this[_0x427fe2(-0x295,-0x232)]+_0x49faf8(0x141,0xc4));else try{_0x120a4c[_0x427fe2(-0x245,-0x21e)]=qdOzid[_0x49faf8(0x113,0x11f)](_0xcfaa46,_0x28f182,this[_0x427fe2(-0x202,-0x239)+_0x427fe2(-0x2c3,-0x29f)]);}catch{}}throw new Error(_0x49faf8(0x13b,0x16a)+_0x239d27['message']);}throw _0x239d27;}}}throw _0x1e6d0a??new Error(_0x49faf8(0x1ba,0x1ed)+A2AClient[_0x427fe2(-0x2d8,-0x2e1)+'S']+_0x49faf8(0x15f,0x112));}async[_0x12e6f3(0x45e,0x4c5)+_0x12e6f3(0x44b,0x413)](_0x236c62,_0x453bd3,_0x2fabbd){function _0x4ac83c(_0x128806,_0x255b8f){return _0x13c324(_0x128806- -0x2a7,_0x255b8f);}function _0x21c2c8(_0x3f0480,_0x23a4f0){return _0x13c324(_0x23a4f0-0x386,_0x3f0480);}const _0x363f1b={'KNEYi':function(_0x158192,_0x53d794,_0x2e3558){return _0x158192(_0x53d794,_0x2e3558);},'DixTR':function(_0x5d7906,_0x213d1e,_0x2233f3){return _0x5d7906(_0x213d1e,_0x2233f3);},'FZJne':function(_0x40ec1c,_0x1a45aa){return _0x40ec1c(_0x1a45aa);}},_0x121fbe=''+this['config'][_0x21c2c8(0x306,0x370)]+_0x453bd3,_0x18a921=new AbortController(),_0x2938e1=_0x363f1b[_0x4ac83c(-0x1e2,-0x1a6)](setTimeout,()=>_0x18a921[_0x4ac83c(-0x27c,-0x26e)](),this[_0x21c2c8(0x3fd,0x420)]);try{const _0x277872=await _0x363f1b[_0x21c2c8(0x36d,0x373)](fetch,_0x121fbe,{'method':_0x236c62,'headers':{'x-api-key':this[_0x21c2c8(0x456,0x3df)][_0x21c2c8(0x39b,0x3d1)],'X-Plugin-Version':_pluginVersion},'body':_0x2fabbd,'signal':_0x18a921['signal']});return _0x363f1b[_0x21c2c8(0x454,0x441)](clearTimeout,_0x2938e1),!_0x277872['ok']&&await this['handleErro'+_0x4ac83c(-0x2a1,-0x26a)](_0x277872),await _0x277872[_0x21c2c8(0x3af,0x388)]();}catch(_0x2fe91f){clearTimeout(_0x2938e1);if(_0x2fe91f instanceof Error&&_0x2fe91f[_0x21c2c8(0x3ea,0x416)]===_0x4ac83c(-0x1ea,-0x1c4))throw new Error('요청\x20시간\x20초과:\x20'+this['timeout']+_0x4ac83c(-0x2b5,-0x281));throw _0x2fe91f;}}async[_0x13c324(0x40,0x60)+_0x12e6f3(0x3e9,0x386)](_0x303995){const _0x2f97a2={'Wrhao':_0x10548a(0x2db,0x308),'MZQkR':function(_0x1902f0,_0x5f428e){return _0x1902f0(_0x5f428e);},'baDJr':function(_0x14ae18,_0x2ab361){return _0x14ae18===_0x2ab361;},'fRHfD':'lwYlw'};function _0x5e66f5(_0x41b2f3,_0x2d17ef){return _0x12e6f3(_0x2d17ef- -0x529,_0x41b2f3);}const _0x488471=_0x303995[_0x5e66f5(-0x10d,-0x8d)];if(_0x2f97a2['baDJr'](_0x488471,0x191))throw new Error(_0x5e66f5(-0x105,-0x8e)+_0x5e66f5(-0x92,-0xe1)+'요');function _0x10548a(_0xf9a1d9,_0x2a91ea){return _0x12e6f3(_0xf9a1d9- -0xd0,_0x2a91ea);}if(_0x488471===0x1ad){if(_0x2f97a2[_0x5e66f5(-0xfa,-0x170)]!==_0x5e66f5(-0xf1,-0xb7))throw new Error(_0x5e66f5(-0x1b8,-0x188)+_0x10548a(0x359,0x2de));else return this[_0x10548a(0x3ba,0x42d)](FtIzRI[_0x5e66f5(-0x27,-0x8a)],_0x10548a(0x335,0x2c8)+FtIzRI[_0x5e66f5(-0xfb,-0xb4)](_0x53cbc2,_0x4acb08)+('/memories/'+_0x5e66f5(-0xf5,-0x164)),{'memory_id':_0xbf2f75,'vector_clock':_0x546439});}let _0x12ba1c='HTTP\x20'+_0x488471;try{const _0x4da982=await _0x303995[_0x10548a(0x315,0x37c)]();if(_0x4da982[_0x5e66f5(-0x171,-0xf5)])_0x12ba1c+=':\x20'+_0x4da982[_0x5e66f5(-0x160,-0xf5)];else _0x4da982['message']&&(_0x12ba1c+=':\x20'+_0x4da982[_0x10548a(0x3a4,0x391)]);}catch{}throw new Error(_0x12ba1c);}}function _0x45e3(){const _0xaadb9c=['AM9PBG','ndrkA0D5Dvm','DxbSAwnHDgu','ywrKq29UDgv4Da','nNzcwKz0Ca','sgzZCKS','zw1VCNK','ChjVBw90zu1LBq','Bw9YAwvZ','zLzKrKK','t2nQsLO','7j247kADioYlPo2mQa','BM9KztPWyxrO','ANnVBG','w2eYyv0GCMvPBG','C2v0','z1LTy3m','CLjLC3bVBNnL','AhPLBK4','Cgf0Aa','zf9HDa','Bwf4vg9Rzw5Z','y2f0zwDVCNK','Dg9tDhjPBMC','Ce9uu1u','y2f0zwDVCMLLCW','DhLWzq','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','CMvZDwX0','zxjYB3i','BgvZl3vWBg9Hza','tvH3AMC','Bw9YAwvZl3rHzW','CMvMzxjLBMnLxW','y3jLyxrLuMvSyq','tvPdq1C','u2PRr24','Aw1WB3j0uhjVzG','wKLwwxu','zw5HyMXLzezLyq','yxbWBgLJyxrPBW','BgLZDfrLyw1nzq','AgT1qMC','q3Hyzwm','tfvPvee','l3rLyw1ZlW','BgLZDfrLyw1Z','yMLSAxr5twf0CG','mtaW','EwnywMO','yM53u2m','mJu4mgHwvMLwqG','y2vYExe','odq1otyYtfbWuvzm','ywjVCNq','nJi4ntLVs01MEeq','s2v5','Cez2AKG','mZGZnZK4sgXzBhDV','wunWyNm','C3rHDhm','uwHsqwm','AwPmsKK','yxnZzw1IBgvdBW','Dg9YEt8','C2vHCMnOvgvHBq','wgv1zhO','C2vHCMnO','C2v0rw5HyMXLza','CMnO','Cg9ZDfbYB2zPyW','zMLSzq','Bwf0CML4','DxbSB2fKrMLSzq','C3rYAw5NAwz5','AgfUzgXLrxjYBW','B3v0y29Tzq','EKDQrLy','BNrLEhq','ndHny1v0seO','revbBKy','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','Aw9Ul2vTB3rPBW','BM9KztPMCW','mc4WlJa','mtG0zevot3vr','yxbPs2v5','y3jLyxrLtwvTBW','DgLLCG','munbwezRDG','BgvUz3rO','l3jLAw5MB3jJzq','zgv0ywLS','zY9YzwXHDgLVBG','sejtDMu','C2XPy2u','suLKzgu','BMvjCNq','y2XHC3nPzNLdBW','AwLAsNe','y29UzMLN','BLLhwg4','CNLgAwXLtgLUAW','DgHVv2q','sLvgzeu','z2v0u3rHDhm','quTTz3e','BgLZDe1LBw9YAq','teznuMy','shHbwuW','r1D2tKi','vuLXv0m','ieTLEEULVcdTMzxSNBJTLzJSHlG','Bw9YAwvZlW','revmrvrf','DgLWyxj0','DxrMltG','te1oAKS','7jQu7lkTioYlPo2mQdOG','D1Houve','D1LTvgC','vwDoz0m','z2v0vhjHBNnMzq','BI9HBMfSExPL','CNLFAwq','7jwu7zI47zMuio2cPoUkLcaZmIa','r3jgwxO','qMf0y2G','CgfYC2u','mtKWmtLnCKDpA3K','shvKDNK','CMvPBMzVCMnLtq','Cu5XEwS','Aw5JBhvKzv9LBq','CMvXDwvZDe11Ba','yMvKzgLUzW','DhvYzxm','CMLLC0jHDgnO','zY9JB250zxH0CW','l3bYB21VDgu','yw5ZzMvYl2v4Ca','B25fBMfIBgvK','B2zPy2LLBMn5pW','Cg93','Eg9UB215l2nSyq','B3j5','zxH0','Dhj1zq','DgLVBG','BhrH','zMfPBgvKigzVCG','l2fWAs92ms90CG','qKftrv9eruXbwq','ufvu','B252A1C','BMfTzq','BwvZC2fNzq','tvPrA1i','zw5JCNLWDgLVBG','zgvJCNLWDe1LBq','z2v0q29TCgf0Aq','zxHPC3rPBMDFzG','CY9WB3b1BgfYpW','l21LBw9YAwvZ','zu5Orwm','DgLTzw91Da','ruzxAvq','zhvWBgLJyxrL','qu5vv0y','C3LUyY9HChbSEq','DgvZDenVBM5LyW','l2fWAs92ms90yq','zw1IBgu','l2fWAs92ms9WCG','zgvSzxrLtwvTBW','zw1VCNLgzwvKyG','mZiXnZiYnw9iwwvTEa','BI9QC29U','CMvXDwvZDa','AxnbCNjHEq','zxzLBNq','C3vJy2vZCW','sfruuca0mJi','BgvZl2nOzwnRlq','Bwf4twvTB3jPzq','y29UDgvUDa','Bw9YAwvZp2XPBq','l2fWAs92ms9Tzq','zvbftvu','AwvUy3LfDMvUDa','AxrLBxm','DMvYC2LVBG','EuzLzwrIywnRia','mtGWotKWBNHZv2PZ','zxHWB3j0uhjVzG','7j247kADioYlPo2mQdOGqvbj','C3rHDhvZ','zwrKAw5N','rLPkBMu','v3jOyw8','qwjVCNrfCNjVCG','uKvuuLLbqKXfxW','qvHLwwW','DgfNCW','DfDwtLi','Dg90ywXFBwvTBW','ueTKuMG','l2fWAs92ms9MAq','s05fwwK','yNL0zxpSL6ZSLBWG7zwP64Ui','r0vu','ruPAvva','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','AgfZ','B2zPy2LLBMn5lW','BNrLBNq','sNbRu24','mZeWmJC2neH5AKzpta','tML4u0G','twvTyMvY','yw5HBhL6zuvTBW','ChjVAMvJDf9Wyq','ue9tva','AwnPzw5JAwvZ','x01t','Bw9YAwvZl3n0yq','ywnR','yw5ZzMvYl2LTCa','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','y29UDgv4Df90yq','BgLTAxq','yxbWzw5K','zwvLAw4','AwvUy2LLCW','C2vHCMnOtwvTBW','C3nPzNK','zLjizKq','Aw9Us2v5','C3rHCNrZv2L0Aa','sffvq3y','qvn4uKu','B2zMC2v0','zM9Yy2vnzw1VCG','C2LNBMfS','rwvxteS','wvPIrvy','ChrPB25lzxK','yKv6Euq','C3LUyY9KzwX0yq','u1rbvfvt','zMLSzv9Pza','zMLSzw5HBwu','CgfNzq','yw1Z','z2vUzxjHDgvezq','B3j0','yMfZzvvYBa','tufyx1jfvfjjrq','64sK7yQ47jUm7ygSioYyPoULMdOG','rgL4vfi','sfruuca0mdq','CNnVBMfSAxPHDa','CMLLCW','twvTB3jPzxm','BxpRPBWG64sy7jEi7iQ164Ui64UK','l21LBw9YAwvZlW','l2fWAs92ms9TyW'];_0x45e3=function(){return _0xaadb9c;};return _0x45e3();}
|
|
1
|
+
(function(_0xb82fd1,_0x173d8c){function _0x274994(_0x188442,_0x24989a){return _0x45fc(_0x188442-0x255,_0x24989a);}const _0x4ceadb=_0xb82fd1();function _0x41099b(_0x157960,_0x36e9b5){return _0x45fc(_0x157960-0x349,_0x36e9b5);}while(!![]){try{const _0x153ba4=-parseInt(_0x41099b(0x574,0x5bc))/0x1*(parseInt(_0x41099b(0x530,0x4a9))/0x2)+parseInt(_0x41099b(0x588,0x550))/0x3*(-parseInt(_0x41099b(0x599,0x547))/0x4)+-parseInt(_0x41099b(0x545,0x4e7))/0x5*(parseInt(_0x274994(0x3f3,0x448))/0x6)+parseInt(_0x41099b(0x55e,0x4e9))/0x7+parseInt(_0x41099b(0x570,0x515))/0x8*(parseInt(_0x274994(0x475,0x430))/0x9)+-parseInt(_0x41099b(0x4df,0x527))/0xa+parseInt(_0x41099b(0x4d7,0x466))/0xb;if(_0x153ba4===_0x173d8c)break;else _0x4ceadb['push'](_0x4ceadb['shift']());}catch(_0x289d64){_0x4ceadb['push'](_0x4ceadb['shift']());}}}(_0x2c28,0xa5875));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';let _pluginVersion=_0x3efcb5(0x3a0,0x380);try{const {readFileSync}=await import(_0x3efcb5(0x430,0x432)),{fileURLToPath}=await import(_0x3efcb5(0x41e,0x3da)),{dirname,join}=await import(_0x3efcb5(0x43b,0x406)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x3309ba(0x618,0x593)](readFileSync(join(__dirname,_0x3309ba(0x528,0x51e)+_0x3309ba(0x521,0x523)),_0x3efcb5(0x305,0x333)));_pluginVersion=pkg[_0x3efcb5(0x3fe,0x3c7)]||_0x3efcb5(0x36c,0x380);}catch{}function _0x45fc(_0x1b0f90,_0x30baea){_0x1b0f90=_0x1b0f90-0x166;const _0x2c2842=_0x2c28();let _0x45fcf2=_0x2c2842[_0x1b0f90];if(_0x45fc['vManeK']===undefined){var _0x4537e8=function(_0x3b6c05){const _0x21165f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x167253='',_0x2630d0='';for(let _0x808f5d=0x0,_0x55e914,_0x880dd6,_0x9a77c=0x0;_0x880dd6=_0x3b6c05['charAt'](_0x9a77c++);~_0x880dd6&&(_0x55e914=_0x808f5d%0x4?_0x55e914*0x40+_0x880dd6:_0x880dd6,_0x808f5d++%0x4)?_0x167253+=String['fromCharCode'](0xff&_0x55e914>>(-0x2*_0x808f5d&0x6)):0x0){_0x880dd6=_0x21165f['indexOf'](_0x880dd6);}for(let _0x42fccb=0x0,_0x564de9=_0x167253['length'];_0x42fccb<_0x564de9;_0x42fccb++){_0x2630d0+='%'+('00'+_0x167253['charCodeAt'](_0x42fccb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2630d0);};_0x45fc['qOAzYk']=_0x4537e8,_0x45fc['KqtuQU']={},_0x45fc['vManeK']=!![];}const _0x570015=_0x2c2842[0x0],_0x28052d=_0x1b0f90+_0x570015,_0x19f25b=_0x45fc['KqtuQU'][_0x28052d];return!_0x19f25b?(_0x45fcf2=_0x45fc['qOAzYk'](_0x45fcf2),_0x45fc['KqtuQU'][_0x28052d]=_0x45fcf2):_0x45fcf2=_0x19f25b,_0x45fcf2;}function _0x2c28(){const _0x1ff956=['CMvPBMzVCMnLtq','r2jvtxy','zw5HyMXLzezLyq','CgfNzq','s0vPvhu','yxbWBgLJyxrPBW','BM5dufe','y3jLyxrLtwvTBW','Ee9zv2G','vffQz2K','ChjVBw90zu1LBq','y3jLyxrLq29UDa','zf9HDa','vgfNCW','BhzjA2C','ieTLEEULVcdTMzxSNBJTLzJSHlG','zw5JCNLWDgLVBG','CNrqAM8','l2fWAs92ms9MAq','zM9Yy2vnzw1VCG','DurVtM0','mtaW','sKXzt3y','C3LUyY9KzwX0yq','B2zPy2LLBMn5lW','BgLZDfbYB2zPyW','yxbWBhLezwX0yq','l3bYB21VDgu','zgv0ywLS','AxnbCNjHEq','DerzEK4','DgfNCW','DxbSB2fKrMLSzq','C2LNBMfS','ywjVCNq','zg1cyxO','ywnR','mKvdDe9Ryq','l3jLAw5MB3jJzq','zw1VCNLgzwvKyG','C2vHCMnOvgvHBq','CLvMA2K','AwXL','DgLTzw91Da','C3zis3i','u2D6BvO','t1zhrLy','v3fmzeS','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','rLvquu8','BI9HBMfSExPL','yMfZzvvYBa','DgvZDenVBM5LyW','BxznC1C','r0vu','7jwu7zI47zMuio2cPoUkLcaZmIa','CMnO','tu5ht1a','nJbMve5tAg4','ywrKq29UDgv4Da','sezoC2O','Bw9YAwvZp2XPBq','l2fWAs92ms9WCG','C3vJy2vZCW','vKH6t0q','rfjbthi','DKfAq1e','wxbrDw8','DMvYC2LVBG','z2v0u3rHDhm','Bw9YAwvZl2jHDa','ue9tva','yxbWzw5K','Bw9YAwvZl3n0yq','DhLWzq','vM9VDM8','t2HTC0G','twvTyMvY','C2vZC2LVBL9Pza','v2vcr0K','Ag1nzNa','B2zMC2v0','zgvJCNLWDe1LBq','nJm5mJyYnfjhy3rVAa','C2vHCMnOtwvTBW','CgfYC2u','DgLLCG','BM9KztP1CMW','C2v0','CNLgAwXLtgLUAW','ueX5EMW','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','CNLFAwq','CY9WB3b1BgfYpW','mtqXm25stLPotq','vunLAxO','Eg9UB215l2nSyq','l2fWAs92ms9TyW','z2v0vgvHBvn0yq','AeXtsg0','y29UzMLN','ndu2mJrzy0fWA2u','CLjLC3bVBNnL','Aw5eyKC','Bw9YAwvZl3rHzW','nJuWmZyXBgz3CMjr','Bwf4twvTB3jPzq','7j247kADioYlPo2mQdOGqvbj','zY9YzwXHDgLVBG','BwfW','revmrvrf','yxnZzw1IBgvdBW','B25fBMfIBgvK','CKHOsgK','ChjVAMvJDf9Wyq','CxPUDxO','BgLZDe1LBw9YAq','s2v5','C2v0rw5HyMXLza','yw5HBhL6zuvTBW','Dg9tDhjPBMC','BxpRPBWG64sy7jEi7iQ164Ui64UK','C3rYAw5NAwz5','y3jLyxrLuMvSyq','BgfZDf9ZEw5Jzq','mZqWmZm4y1neu05P','DK9ctLO','Bwf0CML4','Aw1WB3j0uhjVzG','AM9PBG','rNzjt1a','BM9KztPWyxrO','l2fWAs92ms9Wzq','C0zbtvK','C3rHDhm','wND0vwK','wNzyweq','z2v0ug9WDwXHCG','CMXHreq','tLviChO','BgvUz3rO','sfruuca0mdm','ndbztMrbs20','ELLSqui','v25gruy','CMLLCW','q3HsChu','AxnfBMnYExb0Aq','zxzLBNq','vgfvtee','yxbPs2v5','y2f0zwDVCNK','AwvUy3LfDMvUDa','C3nPzNK','BNrLBNq','y29UDgvUDa','qwjVCNrfCNjVCG','Axq9mq','C2TPBgXFBwvTBW','DwrrsNm','ufvu','r1DUvhu','Cg93','BwvZC2fNzq','yMLSAxr5twf0CG','B2zPy2LLBMn5pW','u1jbCu8','zxHWB3j0uhjVzG','l3rLyw1ZlW','v2jTBeC','y2XLyxjfBMnYEq','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','B3j5','tufyx1jfvfjjrq','Aw5JBhvKzuvTyG','BM9KztPMCW','zY9JB250zxH0CW','ruDWzgi','DgLVBG','DeXJy1i','BM15sNu','u1rbvfvt','7j247kADioYlPo2mQa','rMvHDhvYzxm','AwnPzw5JAwvZ','sfruuca','wxHlCKK','zMLSzq','l21LBwjLCNm','wNfOu3q','Dg90ywXFBwvTBW','BKfvEKm','Bw9YAwvZl2fZCW','twvTB3jPzxm','AgfZ','q3vytvG','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','zwfOD0S','Bw9YEs1MAwXLCW','DxrMltG','zxHPC3rPBMDFzG','uKvuuLLbqKXfxW','BgLZDfrLyw1Z','y2HLy2TgAwXLra','AuvNvuS','zgLMzMLJDwX0Eq','DxbSAwnHDgu','l2fWAs92ms90yq','AxrLBxm','7jQu7lkTioYlPo2mQdOG','BgvZl2nOzwnRlq','l2fWAs92ms9Tzq','BMfTzq','v0jWtuS','Dg90ywXFBM9Kzq','DhvYzxm','y29UDgv4Df90yq','CNnVBMfSAxPHDa','yw5ZzMvYl2nVBq','r2XAs3y','z2v0q29TCgf0Aq','CKHPC3rVCNK','zxjYB3i','BKjjru0','yw5ZzMvYl2LTCa','w2eYyv0GCMvPBG','C3rHCNrZv2L0Aa','mtiZndG1mdfHvNLJyLO','u1DhBNC','CMvXDwvZDe11Ba','y2f0zwDVCMLLCW','qKftrv9eruXbwq','ANnVBG','CMvXDwvZDa','l2fWAs92ms90zq','mte4nZi0mhvhtw1uzW','C2XPy2u','sfruuca0mdq','B01ru0O','u1bjBLK','yMvKzgLUzW','y3jdDM4','C0nywg0','mtC0odiYy0jNwxjs','yNL0zxpSL6ZSLBWG7zwP64Ui','vNz3ALK','yNvmAxO','lI4VlI4VCgfJAW','Cg9ZDfbYB2zPyW','C3rHDhvZ','yw1Z','Bw9YAwvZl3nLyq','ywDLlMPZB24','l21LBw9YAwvZlW','sg5RzuC','EuzLzwrIywnRia','Bw9YAwvZ','AwvUy2LLCW','CMvMzxjLBMnLxW','CMvZDwX0','CgfNzv9ZAxPL','AgfUzgXLrxjYBW','Aw9Ul2vTB3rPBW','l21LBw9YAwvZ','z2vUzxjHDgvezq','D0Lcsei','Bw9YAwvZlW','l2fWAs92ms90CG','Dhj1zq','zMLSzv9Pza','zgvSzxrLtwvTBW','r2nlwLm','u2nPyue','qxjAv2q','BgLTAxq','uK5Xt04','mc4WlJa','tNHWBhC','BgLZDfrLyw1nzq'];_0x2c28=function(){return _0x1ff956;};return _0x2c28();}function _0x3309ba(_0x3bb838,_0x41ae2d){return _0x45fc(_0x41ae2d-0x37c,_0x3bb838);}function _0x3efcb5(_0x129f90,_0x358d90){return _0x45fc(_0x358d90-0x1c1,_0x129f90);}export class A2AClient{[_0x3efcb5(0x39e,0x3e7)];[_0x3efcb5(0x424,0x3ae)];[_0x3309ba(0x5c7,0x54e)+'Key']=null;[_0x3efcb5(0x354,0x385)+_0x3309ba(0x536,0x4fe)]=[];constructor(_0x531bb2){function _0x521cd9(_0x5a924c,_0x2821d1){return _0x3efcb5(_0x5a924c,_0x2821d1-0x1a7);}function _0x44359f(_0x2f3834,_0x6f964a){return _0x3efcb5(_0x6f964a,_0x2f3834- -0x12c);}this[_0x521cd9(0x5ac,0x58e)]=_0x531bb2,this[_0x44359f(0x282,0x308)]=_0x531bb2[_0x44359f(0x282,0x21d)]??0xea60;}[_0x3309ba(0x628,0x5b4)+_0x3efcb5(0x3ba,0x43a)](_0x98b9a1){function _0x381ff3(_0x11c9a2,_0x48fc63){return _0x3efcb5(_0x48fc63,_0x11c9a2- -0x53);}function _0x5a4f65(_0x379222,_0x153183){return _0x3efcb5(_0x153183,_0x379222-0xaa);}this[_0x5a4f65(0x42f,0x3c0)+_0x381ff3(0x2f0,0x29f)]=_0x98b9a1;}['setEncrypt'+'ionKey'](_0xb86768){const _0x543b6a={'dmBaz':function(_0x2af96b,_0x5bf214){return _0x2af96b!==_0x5bf214;}};function _0x22f2ec(_0x39de76,_0x5a6c52){return _0x3efcb5(_0x5a6c52,_0x39de76- -0x1f9);}if(_0x543b6a[_0xaa4626(0x1ba,0x23f)](_0xb86768[_0x22f2ec(0x216,0x1bc)],0x20))throw new Error(_0x22f2ec(0x1c1,0x23e)+_0xaa4626(0x230,0x1f9)+'다');function _0xaa4626(_0x1b090e,_0x52f263){return _0x3efcb5(_0x1b090e,_0x52f263- -0x167);}this['encryption'+'Key']=_0xb86768;}[_0x3efcb5(0x479,0x42d)+'ptionKey'](){function _0x43dd12(_0xa5ae04,_0x1294ca){return _0x3efcb5(_0x1294ca,_0xa5ae04- -0x299);}this[_0x43dd12(0xfa,0xa2)+'Key']=null;}[_0x3309ba(0x547,0x5d1)+_0x3309ba(0x53d,0x5ae)](){const _0x4ea040={'SgzmZ':function(_0x2a1b10,_0x1b08a1){return _0x2a1b10!==_0x1b08a1;}};function _0x3e4c38(_0x4cd1ce,_0x3a8929){return _0x3309ba(_0x4cd1ce,_0x3a8929- -0x3b9);}return _0x4ea040[_0x3e4c38(0x18b,0x1b2)](this['encryption'+'Key'],null);}async[_0x3efcb5(0x307,0x38a)+'ry'](_0x357df2){const _0xfac7a3={'SWGnw':function(_0x2be852,_0x3530a7,_0x56c745){return _0x2be852(_0x3530a7,_0x56c745);},'ZwtUi':function(_0x3c9b3e,_0x5ad572){return _0x3c9b3e(_0x5ad572);},'vOBNZ':_0x403137(0x30c,0x344),'Voovo':_0x403137(0x29f,0x2b9)+_0x3637b0(0x401,0x46c),'CuXMX':_0x403137(0x310,0x2f9),'sCXXm':function(_0x57675e,_0x1cef48,_0x25484f){return _0x57675e(_0x1cef48,_0x25484f);}};let _0x284fbb=_0x357df2[_0x3637b0(0x5a9,0x51e)];if(this[_0x403137(0x2b7,0x30d)+_0x3637b0(0x4a1,0x4f8)]){const _0x47f697=_0xfac7a3[_0x403137(0x246,0x2ca)](encryptContent,_0x357df2['content'],this['encryption'+'Key']);_0x284fbb=_0xfac7a3[_0x3637b0(0x4d3,0x50a)](wrapEncryptedContent,_0x47f697);}const _0x15ef7e=await this[_0x403137(0x2da,0x2cf)](_0xfac7a3[_0x3637b0(0x4d7,0x501)],_0xfac7a3[_0x3637b0(0x4e9,0x4ce)],{'content':_0x284fbb,'category':_0x357df2[_0x403137(0x38f,0x394)],'tier':_0x357df2['tier'],'tags':_0x357df2['tags']??[]}),_0x5b523a=_0x15ef7e;function _0x3637b0(_0x5c535d,_0x18ee23){return _0x3309ba(_0x5c535d,_0x18ee23- -0xbb);}function _0x403137(_0x62c01c,_0x2987f5){return _0x3309ba(_0x62c01c,_0x2987f5- -0x241);}if(this[_0x3637b0(0x4d3,0x493)+_0x3637b0(0x476,0x4f8)]&&_0x5b523a[_0x403137(0x34c,0x398)]){if(_0xfac7a3[_0x3637b0(0x426,0x42f)]!==_0x3637b0(0x4fa,0x491)){const _0x23569c=unwrapEncryptedContent(_0x5b523a[_0x403137(0x3ca,0x398)]);_0x23569c&&(_0x5b523a[_0x3637b0(0x55f,0x51e)]=_0xfac7a3[_0x3637b0(0x466,0x45e)](decryptContent,_0x23569c,this[_0x3637b0(0x4f3,0x493)+_0x3637b0(0x48d,0x4f8)]));}else _0x29e339[_0x3637b0(0x4e0,0x51e)]=_0x43f117(_0xfe4d4d,this['encryption'+_0x3637b0(0x554,0x4f8)]);}return _0x5b523a;}async[_0x3efcb5(0x388,0x3d7)+_0x3efcb5(0x3bf,0x414)](_0x4b1dca,_0x5702ed){function _0xff097(_0x4dc5c4,_0x1b7dc2){return _0x3efcb5(_0x1b7dc2,_0x4dc5c4- -0x1df);}function _0x35e460(_0x1c7d49,_0x2a2efc){return _0x3efcb5(_0x2a2efc,_0x1c7d49-0x1f4);}const _0x213c7b={'WeBGI':_0xff097(0x160,0xff)+_0x35e460(0x55b,0x500)+_0x35e460(0x5af,0x544)},_0x2f9eca=await this[_0xff097(0x176,0x14b)]('POST',_0x213c7b[_0x35e460(0x5c6,0x5ed)],{'query':_0x4b1dca,'limit':_0x5702ed?.[_0x35e460(0x572,0x5e9)]??0xa,'category':_0x5702ed?.[_0xff097(0x23b,0x29e)]});return _0x2f9eca['items']??[];}async[_0x3efcb5(0x3b3,0x3f7)+'es'](_0x34fd66){const _0x59bf87={'SRAqO':_0x23e46b(-0x66,0xf),'nmyJu':_0x23e46b(-0x6c,-0x13)};function _0x2ec79b(_0x2ac629,_0x7127e0){return _0x3efcb5(_0x7127e0,_0x2ac629- -0x426);}const _0x487b31=new URLSearchParams();function _0x23e46b(_0x2d21d8,_0x26afae){return _0x3efcb5(_0x26afae,_0x2d21d8- -0x3e4);}if(_0x34fd66?.['limit'])_0x487b31['set'](_0x59bf87[_0x23e46b(0x45,-0x36)],_0x34fd66[_0x2ec79b(-0xa8,-0xc3)][_0x2ec79b(-0x2b,-0x4e)]());if(_0x34fd66?.[_0x2ec79b(-0x52,-0x8f)])_0x487b31[_0x2ec79b(-0x4b,-0xb1)](_0x23e46b(-0x10,-0x17),_0x34fd66['offset'][_0x23e46b(0x17,0x46)]());if(_0x34fd66?.[_0x2ec79b(0xb,-0xc)+'edding'])_0x487b31['set']('include_em'+_0x23e46b(-0x88,-0x9e),_0x59bf87[_0x2ec79b(0x11,0x84)]);const _0x510b76=_0x2ec79b(-0xe7,-0x116)+_0x2ec79b(-0xba,-0x5c)+(_0x487b31[_0x2ec79b(-0x2b,0x4b)]()?'?'+_0x487b31[_0x23e46b(0x17,-0x1)]():''),_0x4793f4=await this[_0x2ec79b(-0xd1,-0xc9)](_0x2ec79b(-0x6d,-0x4b),_0x510b76),_0x24845a=_0x4793f4['items']??[];if(this[_0x23e46b(-0x51,-0xcf)+_0x23e46b(0x14,-0x2)])return _0x24845a[_0x2ec79b(-0x36,-0x57)](_0x249fb3=>this['decryptMem'+_0x2ec79b(0x9,0x13)](_0x249fb3));return _0x24845a;}[_0x3efcb5(0x384,0x3d5)+_0x3309ba(0x600,0x5ea)](_0x5adbc7){const _0x29f4f9={'hmMfp':function(_0x557731,_0x24f515){return _0x557731(_0x24f515);},'SciaA':_0x291626(0xf6,0x16c),'uDoNm':function(_0x1d4067,_0x3afeb9,_0x271195){return _0x1d4067(_0x3afeb9,_0x271195);}};if(!this[_0x291626(0xa7,0xf1)+_0x15bcbc(-0x11e,-0x1a3)])return _0x5adbc7;const _0x28bcac={..._0x5adbc7};if(_0x28bcac['content']){const _0x2098f4=_0x29f4f9[_0x291626(0xe7,0x110)](unwrapEncryptedContent,_0x28bcac[_0x291626(0x132,0x106)]);if(_0x2098f4){if(_0x29f4f9['SciaA']!==_0x29f4f9[_0x15bcbc(-0x19a,-0x1eb)])return null;else try{_0x28bcac[_0x291626(0x132,0xab)]=_0x29f4f9[_0x291626(0xab,0x49)](decryptContent,_0x2098f4,this[_0x15bcbc(-0x183,-0x206)+'Key']);}catch{}}}function _0x15bcbc(_0x2f263b,_0x166be7){return _0x3efcb5(_0x166be7,_0x2f263b- -0x516);}function _0x291626(_0xb0b672,_0x5eaa48){return _0x3efcb5(_0x5eaa48,_0xb0b672- -0x2ec);}return _0x28bcac;}async['updateMemo'+'ry'](_0x10e0ce,_0x313c88){const _0x1adeca={'svHKr':_0xbf99ec(0x52,0x53)};function _0xbf99ec(_0xdeb8de,_0x296e6c){return _0x3309ba(_0xdeb8de,_0x296e6c- -0x58b);}function _0x39e2aa(_0x531a5c,_0x13db72){return _0x3309ba(_0x531a5c,_0x13db72- -0xef);}const _0x32ed1f=await this[_0xbf99ec(-0x95,-0x7b)](_0x1adeca[_0xbf99ec(-0x8e,-0x21)],_0x39e2aa(0x438,0x40b)+_0xbf99ec(-0x9b,-0x5a)+_0x10e0ce,_0x313c88);return _0x32ed1f;}async[_0x3efcb5(0x350,0x37a)+'ry'](_0x18d46c){const _0x3f0ef4={'nAUzC':_0xed1ce1(-0xbf,-0x63)};function _0xed1ce1(_0x1096f5,_0x1f1803){return _0x3309ba(_0x1f1803,_0x1096f5- -0x66b);}function _0x29ea46(_0x204c3c,_0x336fc6){return _0x3309ba(_0x204c3c,_0x336fc6- -0x422);}await this['request'](_0x3f0ef4[_0x29ea46(0xe5,0xc4)],_0x29ea46(0x136,0xd8)+'mories/'+_0x18d46c);}async[_0x3309ba(0x57b,0x4f1)](){const _0x12d9fe={'oMQSJ':_0x79518d(0x431,0x3ce)+_0x79518d(0x421,0x3de)};function _0x16468d(_0x205bad,_0x4057a5){return _0x3309ba(_0x205bad,_0x4057a5- -0x383);}const _0x28d2aa=await this[_0x16468d(0x1b6,0x18d)](_0x16468d(0x21f,0x1f1),_0x12d9fe[_0x16468d(0x113,0x192)]);function _0x79518d(_0x332a88,_0x3329aa){return _0x3309ba(_0x332a88,_0x3329aa- -0x143);}if(Array[_0x16468d(0x222,0x1d8)](_0x28d2aa))return _0x28d2aa;return _0x28d2aa[_0x79518d(0x385,0x3b4)]??[];}async[_0x3309ba(0x54a,0x53d)+_0x3efcb5(0x379,0x36c)](_0x1601c2,_0x5cc203){const _0x1cb6e5=new URLSearchParams();function _0x568c8f(_0x91a267,_0x371341){return _0x3efcb5(_0x91a267,_0x371341- -0x176);}function _0xd7e9ee(_0x452c7d,_0x40fd1a){return _0x3efcb5(_0x452c7d,_0x40fd1a- -0x128);}if(_0x5cc203?.[_0x568c8f(0x1b3,0x208)])_0x1cb6e5[_0xd7e9ee(0x24c,0x2b3)](_0x568c8f(0x21c,0x208),_0x5cc203[_0xd7e9ee(0x1ce,0x256)][_0x568c8f(0x291,0x285)]());if(_0x5cc203?.[_0x568c8f(0x1d8,0x25e)])_0x1cb6e5[_0xd7e9ee(0x235,0x2b3)]('offset',_0x5cc203[_0xd7e9ee(0x2bf,0x2ac)][_0x568c8f(0x2ee,0x285)]());const _0x5a9a5d=_0x1cb6e5[_0xd7e9ee(0x329,0x2d3)](),_0x2d931b=_0x568c8f(0x2e4,0x2b5)+encodeURIComponent(_0x1601c2)+_0x568c8f(0x213,0x1fd)+(_0x5a9a5d?'?'+_0x5a9a5d:''),_0xe60be4=await this[_0x568c8f(0x169,0x1df)](_0x568c8f(0x285,0x243),_0x2d931b);return _0xe60be4[_0xd7e9ee(0x1b3,0x214)]??[];}async['addTeamMem'+_0x3efcb5(0x42d,0x42f)](_0x54e361,_0x250035){const _0x4900b1={'GlZKv':function(_0x4b48b0,_0x402e34){return _0x4b48b0(_0x402e34);}};function _0x450a77(_0xae44eb,_0x39b6ae){return _0x3efcb5(_0x39b6ae,_0xae44eb-0x135);}function _0x1a0890(_0xcb15f1,_0x1fae4d){return _0x3efcb5(_0x1fae4d,_0xcb15f1-0x18e);}const _0x13e674=await this[_0x1a0890(0x4e3,0x4fc)](_0x1a0890(0x558,0x5a6),_0x1a0890(0x5b9,0x606)+_0x4900b1[_0x450a77(0x47c,0x429)](encodeURIComponent,_0x54e361)+_0x1a0890(0x501,0x4c1),_0x250035);return _0x13e674;}async[_0x3309ba(0x4e8,0x566)+_0x3309ba(0x4f0,0x4e8)](_0x31e15c,_0x46fcd2,_0x1b3fb8){const _0x4736d4={'HFNsj':function(_0x5cd18c,_0x464630){return _0x5cd18c(_0x464630);}};function _0x18b780(_0xfbd9ad,_0x327009){return _0x3309ba(_0x327009,_0xfbd9ad- -0x38f);}const _0x429a30=await this[_0x18b780(0x181,0x1cf)](_0x33df4a(-0x89,-0x38),_0x18b780(0x257,0x249)+_0x4736d4[_0x33df4a(-0x94,-0x12)](encodeURIComponent,_0x31e15c)+(_0x18b780(0x195,0x1e8)+'search'),{'query':_0x46fcd2,'limit':_0x1b3fb8?.['limit']??0xa,'category':_0x1b3fb8?.[_0x33df4a(-0x39,0x46)]});function _0x33df4a(_0x18fce9,_0x248562){return _0x3309ba(_0x248562,_0x18fce9- -0x60e);}return _0x429a30['items']??[];}async[_0x3309ba(0x52d,0x52f)+'lta'](_0x39fc8a,_0x4e0050,_0x129e0b){function _0x2acf2f(_0x1c5271,_0x3b42ce){return _0x3efcb5(_0x1c5271,_0x3b42ce- -0x43);}function _0x2a4779(_0x4cbe3a,_0x5648d9){return _0x3efcb5(_0x4cbe3a,_0x5648d9- -0x47);}return this['request'](_0x2acf2f(0x359,0x387),_0x2a4779(0x3de,0x3e4)+encodeURIComponent(_0x39fc8a)+(_0x2acf2f(0x2b6,0x326)+_0x2acf2f(0x373,0x357)),{'memory_id':_0x4e0050,'vector_clock':_0x129e0b});}async[_0x3309ba(0x5e2,0x558)](_0x1b3fbd,_0x366374,_0x3e6ee5){const _0x471623={'FvIOP':_0x20023b(0x3ee,0x41d),'qznuz':function(_0x369dff,_0x2a1538){return _0x369dff(_0x2a1538);}};function _0x45d1e4(_0x1ef2da,_0x587427){return _0x3309ba(_0x587427,_0x1ef2da- -0x2c0);}function _0x20023b(_0x1be70d,_0x328331){return _0x3309ba(_0x1be70d,_0x328331- -0x168);}return this[_0x20023b(0x383,0x3a8)](_0x471623[_0x45d1e4(0x300,0x300)],_0x45d1e4(0x326,0x35c)+_0x471623[_0x20023b(0x3cd,0x449)](encodeURIComponent,_0x1b3fbd)+(_0x20023b(0x400,0x3bc)+'sync/apply'),{'memory_id':_0x366374,'delta':_0x3e6ee5});}async[_0x3309ba(0x506,0x545)+'riesBatch'](_0x27b3c1){const _0xc77f22={'GbUMv':_0x4d6b83(0x4d5,0x45b)+_0x16d621(0x5d7,0x558)+'ch'};function _0x16d621(_0x240e68,_0x288986){return _0x3efcb5(_0x288986,_0x240e68-0x20e);}const _0x2735b8=await this[_0x4d6b83(0x4eb,0x543)](_0x4d6b83(0x560,0x5a7),_0xc77f22[_0x4d6b83(0x51a,0x54c)],{'items':_0x27b3c1});function _0x4d6b83(_0x33c967,_0x469b80){return _0x3efcb5(_0x469b80,_0x33c967-0x196);}return _0x2735b8;}async[_0x3309ba(0x50f,0x572)+'tion'](){function _0x194f89(_0xc790e5,_0x148a26){return _0x3309ba(_0xc790e5,_0x148a26- -0x190);}const _0x4c0e0a={'LVKHs':_0x194f89(0x349,0x36a)+_0x3432e4(-0x166,-0x168)+_0x3432e4(-0x106,-0x164)};function _0x3432e4(_0x319260,_0x6b9135){return _0x3309ba(_0x6b9135,_0x319260- -0x6e1);}try{return await this['request'](_0x3432e4(-0x16d,-0x10a),_0x4c0e0a['LVKHs']),!![];}catch{return![];}}async[_0x3efcb5(0x3f0,0x3f2)+'ntext'](_0x586d4a,_0x2cd733){function _0x399149(_0x151470,_0x3afdad){return _0x3309ba(_0x151470,_0x3afdad-0x52);}function _0x1277e2(_0x2a363f,_0xbe2bb4){return _0x3309ba(_0x2a363f,_0xbe2bb4- -0x695);}const _0x296ded=await this[_0x1277e2(-0x20f,-0x185)](_0x1277e2(-0x19a,-0x110),'/api/v1/me'+_0x399149(0x581,0x539)+'emble',{'query':_0x586d4a,'max_memories':_0x2cd733?.[_0x1277e2(-0x84,-0xed)+'s']??0x5,'max_tokens':_0x2cd733?.['maxTokens']??0x7d0,'categories':_0x2cd733?.[_0x1277e2(-0x1ee,-0x188)],'tier':_0x2cd733?.[_0x399149(0x5d5,0x5e6)]});return _0x296ded;}async['reinforceM'+'emory'](_0x45b5be){const _0x44eff4={'FUPQO':'POST'};function _0x18c4e3(_0x4b762b,_0x1f5e72){return _0x3efcb5(_0x4b762b,_0x1f5e72-0x142);}function _0x3f80c9(_0x336da4,_0x57d45f){return _0x3efcb5(_0x336da4,_0x57d45f-0x12a);}const _0x156ef8=await this[_0x18c4e3(0x49e,0x497)](_0x44eff4[_0x18c4e3(0x50e,0x4f6)],_0x3f80c9(0x43a,0x469)+'mories/'+_0x45b5be+_0x18c4e3(0x567,0x4eb));return _0x156ef8;}async[_0x3efcb5(0x3c8,0x383)+_0x3309ba(0x5ab,0x565)+_0x3309ba(0x5a2,0x562)](_0x40cf3d,_0x4422c6){function _0xff6187(_0x162d40,_0x22b9f4){return _0x3309ba(_0x22b9f4,_0x162d40- -0x4aa);}function _0x124a34(_0x1478d5,_0x2c8867){return _0x3309ba(_0x1478d5,_0x2c8867- -0x15b);}try{await this['request'](_0xff6187(0xdb,0x107),'/api/v1/me'+'mories/'+_0x40cf3d+_0xff6187(0xba,0x58),{'success':_0x4422c6});}catch(_0x1c3f16){console[_0x124a34(0x39e,0x3aa)](_0x124a34(0x3cc,0x3ad)+_0x124a34(0x3b0,0x3f6)+_0xff6187(0x7c,0x8c)+'failed\x20for'+'\x20'+_0x40cf3d+':',_0x1c3f16 instanceof Error?_0x1c3f16[_0xff6187(0x137,0x149)]:String(_0x1c3f16));}}async[_0x3efcb5(0x394,0x38d)+'ory'](_0x5e2988,_0x5c1685){const _0x5e99c5=await this[_0x24dcec(0x40b,0x439)]('POST',_0x24dcec(0x3f5,0x472)+'mories/'+_0x5e2988+_0x1bdbd2(0x5b6,0x622));function _0x1bdbd2(_0x2573d2,_0x5d6d8f){return _0x3309ba(_0x5d6d8f,_0x2573d2-0x5d);}function _0x24dcec(_0x36f7ec,_0xb405f1){return _0x3309ba(_0xb405f1,_0x36f7ec- -0x105);}return _0x5e99c5;}async[_0x3efcb5(0x435,0x3c8)](){const _0x53f0e0={'mvMsW':'GET'},_0x5c9914=await this[_0x393348(-0x180,-0x16d)](_0x53f0e0[_0x393348(-0x11d,-0x191)],_0x1af5f8(0x46b,0x406)+_0x1af5f8(0x410,0x493)+'ts');function _0x393348(_0x3ca5e8,_0x20f8fd){return _0x3efcb5(_0x20f8fd,_0x3ca5e8- -0x4d5);}function _0x1af5f8(_0x2adeaa,_0x3854b4){return _0x3efcb5(_0x2adeaa,_0x3854b4-0xc7);}return _0x5c9914;}async[_0x3efcb5(0x426,0x40c)+_0x3309ba(0x559,0x54b)](_0x4b0f07=0xa){const _0x51d256=new URLSearchParams();function _0x168f73(_0x341a8d,_0x504711){return _0x3309ba(_0x341a8d,_0x504711- -0x3c2);}function _0x39837a(_0x10f7f8,_0x169281){return _0x3309ba(_0x169281,_0x10f7f8- -0x2fc);}_0x51d256[_0x39837a(0x29a,0x27d)]('limit',_0x4b0f07['toString']());const _0xabfdf0=_0x168f73(0x149,0x138)+_0x168f73(0x179,0x1e4)+_0x39837a(0x29f,0x2ab)+_0x51d256[_0x39837a(0x2ba,0x24d)](),_0x51569e=await this[_0x39837a(0x214,0x233)](_0x39837a(0x278,0x233),_0xabfdf0);return _0x51569e[_0x39837a(0x1fb,0x1e9)]??[];}async[_0x3efcb5(0x40b,0x3e5)+'ts'](_0x56d215){function _0x3a0e41(_0x1f520b,_0x2d2320){return _0x3309ba(_0x2d2320,_0x1f520b- -0x569);}const _0x356ffb={'oVYxa':'GET','WBpMK':function(_0x2ca4cd,_0x42765f){return _0x2ca4cd(_0x42765f);}},_0x5188a0=await this[_0x526028(0x1f1,0x1d2)](_0x356ffb['oVYxa'],_0x3a0e41(0x7d,0x37)+_0x356ffb[_0x526028(0x220,0x1be)](encodeURIComponent,_0x56d215)+(_0x526028(0x23f,0x1e6)+_0x3a0e41(0x5b,0x4))),_0x45c974=_0x5188a0,_0x1ebc00=_0x45c974['stats']??_0x45c974;function _0x526028(_0x5d4617,_0x1ea8f3){return _0x3309ba(_0x5d4617,_0x1ea8f3- -0x33e);}return{'totalMemories':_0x1ebc00[_0x526028(0x162,0x1a7)+'ries']??0x0,'totalNodes':_0x1ebc00[_0x526028(0x133,0x1bf)+'s']??0x0,'lastSyncedAt':_0x1ebc00[_0x526028(0x22c,0x27c)+_0x3a0e41(-0x1f,-0x76)]??null};}async['postProfic'+_0x3309ba(0x62c,0x5d6)](_0x5d7b38){const _0x51878c={'crCvn':'POST','nBIEM':_0x1a8e9b(0x202,0x20e)+_0x1a8e9b(0x1dc,0x157)+_0x1a8e9b(0x258,0x2cc)};function _0x1a8e9b(_0x40a61c,_0x27387b){return _0x3efcb5(_0x27387b,_0x40a61c- -0x1bf);}function _0x5f42fa(_0x56e378,_0x27124c){return _0x3efcb5(_0x27124c,_0x56e378- -0x480);}const _0x5a1ec9=await this['request'](_0x51878c[_0x1a8e9b(0x19e,0x1de)],_0x51878c[_0x5f42fa(-0x135,-0xab)],{'skill_memory_id':_0x5d7b38[_0x5f42fa(-0x5f,-0xc9)+_0x5f42fa(-0xa1,-0x63)],'outcome':_0x5d7b38['outcome'],'difficulty':_0x5d7b38[_0x5f42fa(-0x147,-0x18c)],'context_tags':_0x5d7b38[_0x5f42fa(-0x13c,-0x14f)+'gs'],'session_id':_0x5d7b38[_0x5f42fa(-0xaf,-0xb0)]});return _0x5a1ec9;}async[_0x3309ba(0x49f,0x51f)+'iencyEvent'+'Batch'](_0x52d1a8){const _0x45184c={'NEpSI':_0x11a929(0x41,-0x11)+_0x51f742(0x1dd,0x1b7)+'event/batc'+'h'};function _0x11a929(_0x2e2747,_0x213ab9){return _0x3efcb5(_0x213ab9,_0x2e2747- -0x380);}function _0x51f742(_0x2dfe7f,_0x57e24b){return _0x3efcb5(_0x57e24b,_0x2dfe7f- -0x1be);}await this[_0x11a929(-0x2b,-0x29)](_0x51f742(0x20c,0x226),_0x45184c['NEpSI'],{'events':_0x52d1a8});}async[_0x3309ba(0x524,0x557)+_0x3309ba(0x4c8,0x528)](_0x6d04a5){const _0xaa25be={'PLyzl':_0x1b4173(0x18f,0x136)},_0xf6cd09=new URLSearchParams();_0xf6cd09[_0x1b4173(0x1fa,0x1f7)](_0xaa25be[_0x4a45af(0x13e,0x195)],_0x1b4173(0x1b7,0x1ac));if(_0x6d04a5)_0xf6cd09[_0x4a45af(0x13c,0x1af)](_0x4a45af(0x156,0xd2)+'th',_0x6d04a5);function _0x4a45af(_0x354636,_0x1c895e){return _0x3efcb5(_0x1c895e,_0x354636- -0x29f);}const _0x11f420='/api/v1/pr'+_0x4a45af(0x189,0x12f)+_0xf6cd09['toString']();function _0x1b4173(_0x24772d,_0x576cd2){return _0x3efcb5(_0x576cd2,_0x24772d- -0x1e1);}const _0x26b7ca=await this[_0x4a45af(0xb6,0xee)](_0x1b4173(0x1d8,0x150),_0x11f420);return _0x26b7ca[_0x1b4173(0x15b,0xd7)]??[];}async[_0x3309ba(0x559,0x5b5)+_0x3309ba(0x58a,0x5f0)](_0x44fea4){function _0x36af7a(_0xf16e9f,_0x44043e){return _0x3efcb5(_0x44043e,_0xf16e9f- -0x329);}const _0x4ccdae={'OVGFV':_0x36af7a(0xde,0x9e)+_0x36af7a(0x1c,0x72)+_0x743ef(0x35e,0x31b)+_0x36af7a(0x8c,0x90)};function _0x743ef(_0x1131ba,_0x9ba479){return _0x3efcb5(_0x9ba479,_0x1131ba- -0x14);}return this[_0x743ef(0x341,0x2c6)](_0x743ef(0x3b6,0x3cc),_0x4ccdae[_0x36af7a(0x88,0x111)],{'message':_0x44fea4[_0x36af7a(0x2f,0xb5)](0x0,0x1f4)});}async[_0x3309ba(0x66a,0x5e5)+'iciencies'](_0x25407f,_0x5990a2){function _0xb0d278(_0x3311f5,_0x155ac3){return _0x3309ba(_0x155ac3,_0x3311f5- -0x16a);}function _0x3ea293(_0x48b226,_0x1235d9){return _0x3309ba(_0x48b226,_0x1235d9- -0x46f);}const _0x51419a={'hLSHm':_0xb0d278(0x41b,0x496),'EGpdb':_0xb0d278(0x3c8,0x34a)+'ansfer/exp'+'ort','euvqo':function(_0x462cb0,_0x52a97d){return _0x462cb0??_0x52a97d;}},_0x4e9943=await this[_0xb0d278(0x3a6,0x42f)](_0x51419a[_0x3ea293(0x180,0x132)],_0x51419a[_0xb0d278(0x485,0x48e)],{'source_provider':_0x25407f,'skill_ids':_0x51419a['euvqo'](_0x5990a2,null)});return _0x4e9943;}async[_0x3efcb5(0x37c,0x403)+_0x3efcb5(0x4b3,0x43b)](_0x212861,_0xa3f235){const _0x4a358c={'DRALr':_0x4924a8(0x592,0x53d)+_0x4924a8(0x567,0x505)+'ort'};function _0x4924a8(_0x25215f,_0x4cc454){return _0x3efcb5(_0x4cc454,_0x25215f-0x21b);}function _0x81e019(_0x39541c,_0x44774d){return _0x3efcb5(_0x44774d,_0x39541c- -0x351);}const _0x251f0c=await this[_0x81e019(0x4,0x86)]('POST',_0x4a358c[_0x4924a8(0x5df,0x5c9)],{'package':_0x212861,'target_provider':_0xa3f235});return _0x251f0c;}async[_0x3309ba(0x4c1,0x503)+_0x3309ba(0x5f5,0x5e2)+'ix'](){const _0x131557={'eahwK':'GET'};function _0x230ae7(_0x524a0f,_0x38e4a9){return _0x3efcb5(_0x38e4a9,_0x524a0f-0x1a5);}const _0x546df2=await this[_0x230ae7(0x4fa,0x57b)](_0x131557[_0x230ae7(0x4d6,0x53e)],_0x487287(0x2ae,0x24f)+_0x487287(0x1cb,0x21e)+'patibility');function _0x487287(_0x4aa781,_0x13d617){return _0x3efcb5(_0x4aa781,_0x13d617- -0x128);}return _0x546df2[_0x487287(0x2d0,0x2da)]??[];}async['getTransfe'+_0x3efcb5(0x2e0,0x349)](_0x4c3d5d=0x1){function _0x1e3f31(_0x35eb54,_0x7f62d0){return _0x3309ba(_0x7f62d0,_0x35eb54- -0x308);}const _0x432ac7=new URLSearchParams();function _0x19a875(_0x48c938,_0x3ebeac){return _0x3309ba(_0x48c938,_0x3ebeac- -0xcc);}_0x432ac7[_0x1e3f31(0x28e,0x30a)](_0x1e3f31(0x239,0x2ba),_0x4c3d5d[_0x1e3f31(0x2ae,0x336)]());const _0x5c4896='/api/v1/tr'+'ansfer/his'+'tory?'+_0x432ac7[_0x1e3f31(0x2ae,0x29c)](),_0x4a5cd8=await this[_0x1e3f31(0x208,0x215)](_0x19a875(0x4bf,0x4a8),_0x5c4896);return _0x4a5cd8;}async[_0x3efcb5(0x321,0x3a3)](_0x329f3d,_0x211225){function _0x23affa(_0x2a4687,_0x3104fe){return _0x3efcb5(_0x2a4687,_0x3104fe- -0x453);}const _0x26c79b={'KEiTu':function(_0xad1b0b,_0x31bbab){return _0xad1b0b(_0x31bbab);},'tkwrH':_0x23affa(-0x6,-0x39),'ZqhSt':function(_0x38671a,_0x3a8b21){return _0x38671a>_0x3a8b21;},'xOYWh':_0x23affa(-0x7c,-0xb1)},{readFileSync:_0x16b687}=await import(_0x23affa(0x29,-0x21)),{basename:_0x1f715b}=await import(_0x23affa(-0x44,-0x4d)),_0x4f2415=_0x16b687(_0x329f3d),_0x3245a0=_0x26c79b[_0x2e9253(0x250,0x1e1)](_0x1f715b,_0x329f3d),_0x1f1e41=new FormData();_0x1f1e41['append'](_0x23affa(-0x13a,-0x12c),new Blob([_0x4f2415]),_0x3245a0);_0x211225[_0x23affa(0x1c,-0x39)]&&_0x1f1e41[_0x2e9253(0x294,0x214)](_0x26c79b['tkwrH'],_0x211225['category']);_0x211225[_0x23affa(-0xe1,-0xb1)]&&_0x26c79b[_0x23affa(-0x190,-0x12a)](_0x211225['tags'][_0x23affa(-0x6d,-0x44)],0x0)&&_0x1f1e41[_0x23affa(-0x38,-0x88)](_0x26c79b[_0x2e9253(0x254,0x296)],_0x211225['tags'][_0x2e9253(0x2cd,0x2b1)](','));function _0x2e9253(_0x4534b4,_0x20e4e4){return _0x3efcb5(_0x20e4e4,_0x4534b4- -0x137);}const _0x4165f6=await this[_0x23affa(-0xb1,-0x102)+'tipart'](_0x23affa(-0x7c,-0x89),_0x2e9253(0x25e,0x2ab)+'les/upload',_0x1f1e41),_0x36eb93=_0x4165f6;return{'id':_0x36eb93[_0x2e9253(0x242,0x22d)],'filename':_0x36eb93['filename']};}async[_0x3efcb5(0x3b7,0x337)+_0x3309ba(0x489,0x4f5)](_0x42720a){const _0x265991=await this[_0x15879f(0x2ea,0x369)]('POST',_0x43f677(-0x122,-0x18d)+_0x43f677(-0x179,-0x147)+'duplicate',{'content_hash':_0x42720a}),_0x1995d6=_0x265991;function _0x15879f(_0x246570,_0x479c9b){return _0x3309ba(_0x479c9b,_0x246570- -0x226);}function _0x43f677(_0x308f52,_0x31c529){return _0x3309ba(_0x31c529,_0x308f52- -0x672);}return{'exists':_0x1995d6['is_duplica'+'te'],'file_id':_0x1995d6[_0x15879f(0x2c9,0x2e9)+_0x43f677(-0x10a,-0xca)]?.['id']};}async[_0x3309ba(0x4de,0x545)+_0x3efcb5(0x375,0x3dc)](_0x3e47fd,_0xa9376f,_0x1e60e5){const _0x3de05b={'WqLdK':_0x42e9a4(0x310,0x2d1),'wIBHB':_0x50c87a(-0x13f,-0x126)+_0x42e9a4(0x278,0x28d)};function _0x50c87a(_0x4e9e19,_0x380bc2){return _0x3efcb5(_0x4e9e19,_0x380bc2- -0x465);}function _0x42e9a4(_0x1bd146,_0x2b8aa1){return _0x3efcb5(_0x2b8aa1,_0x1bd146- -0xba);}const _0x4b3972=await this[_0x50c87a(-0x172,-0x110)](_0x3de05b[_0x50c87a(-0x119,-0xb3)],_0x3de05b[_0x42e9a4(0x2bb,0x240)],{'memory_id':_0x3e47fd,'file_id':_0xa9376f,'reference_type':_0x1e60e5['reference_'+_0x42e9a4(0x313,0x2e7)],'reference_path':_0x1e60e5[_0x50c87a(-0xa5,-0xf7)+'path']});return _0x4b3972;}async[_0x3efcb5(0x3c6,0x38e)+'ext'](_0xae0b03){function _0x1783fc(_0x5b0dcc,_0x2930e6){return _0x3efcb5(_0x5b0dcc,_0x2930e6- -0x254);}return this[_0x1783fc(0x13c,0x101)]('POST','/api/v1/mc'+'g/contexts',_0xae0b03);}async[_0x3efcb5(0x349,0x3be)+_0x3efcb5(0x354,0x3d0)](_0x33bc7c,_0x3cdfb0){function _0x1e3663(_0x28086c,_0x10d93c){return _0x3efcb5(_0x10d93c,_0x28086c- -0x4a);}const _0x26b3b3={'fUYjh':_0x1e3663(0x380,0x342)};function _0x42d4a6(_0x247df7,_0x3cc24c){return _0x3efcb5(_0x3cc24c,_0x247df7-0xd5);}return this[_0x1e3663(0x30b,0x381)](_0x26b3b3['fUYjh'],_0x1e3663(0x39a,0x3c5)+_0x42d4a6(0x508,0x582)+'/'+_0x33bc7c+_0x1e3663(0x2de,0x2d9),_0x3cdfb0);}async[_0x3efcb5(0x462,0x3fe)+_0x3309ba(0x5fd,0x5f0)](_0x36c5f7){const _0x25aba7={'nnCPQ':_0x5218b2(-0x29,-0x24)+_0x5218b2(-0x1e,0x26)+'s'};function _0x4da646(_0x2f5bb9,_0x394412){return _0x3efcb5(_0x2f5bb9,_0x394412- -0x34);}function _0x5218b2(_0x25dc21,_0x1c75ee){return _0x3efcb5(_0x1c75ee,_0x25dc21- -0x40d);}return this['request'](_0x5218b2(-0x43,0x28),_0x25aba7[_0x5218b2(-0x84,-0xa3)],_0x36c5f7);}async['classifyCo'+_0x3309ba(0x5a9,0x5d8)](_0x150bc2){const _0x15222b={'MNGOP':_0x2a9dd8(0x3e7,0x365),'SPInY':_0x2a9dd8(0x252,0x2d6)+_0x2a9dd8(0x337,0x37e)+_0x2a9dd8(0x3cf,0x3b7),'ABNme':function(_0xd28fb7,_0x3d6773){return _0xd28fb7===_0x3d6773;},'TQjgi':_0x39ef49(0x357,0x3dd)};function _0x2a9dd8(_0x588634,_0x3ab1f2){return _0x3efcb5(_0x588634,_0x3ab1f2- -0x65);}function _0x39ef49(_0x5611fd,_0xe7c4eb){return _0x3efcb5(_0x5611fd,_0xe7c4eb- -0x36);}try{const _0x5d1b61=await this[_0x39ef49(0x39e,0x31f)](_0x15222b[_0x2a9dd8(0x34d,0x357)],_0x15222b[_0x39ef49(0x2c6,0x325)],{'content':_0x150bc2['content']['slice'](0x0,0x7d0),'tags':_0x150bc2[_0x39ef49(0x32f,0x36c)]??[],'category':_0x150bc2[_0x2a9dd8(0x429,0x3b5)]}),_0x8ff2c0=_0x5d1b61;if(_0x8ff2c0[_0x39ef49(0x381,0x38c)]&&_0x8ff2c0[_0x39ef49(0x2bd,0x339)]){if(_0x15222b['ABNme']('WnFEF',_0x15222b[_0x39ef49(0x382,0x356)]))return _0x8ff2c0[_0x39ef49(0x39e,0x339)];else this[_0x2a9dd8(0x3c1,0x382)]=_0x808f5d,this[_0x2a9dd8(0x2f4,0x349)]=_0x55e914[_0x2a9dd8(0x2ee,0x349)]??0xea60;}return null;}catch{return null;}}static [_0x3309ba(0x4f7,0x4f0)+_0x3efcb5(0x3f0,0x438)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x3efcb5(0x4bc,0x430)+'S']=0x3;static [_0x3309ba(0x530,0x50e)+'_MS']=0x3e8;async[_0x3efcb5(0x355,0x355)](_0x48f149,_0x3070d6,_0xb69429){const _0xf630d7={'sFAMY':function(_0x3e522d,_0x5b9e0f){return _0x3e522d===_0x5b9e0f;},'tDYzN':function(_0x12a819,_0xc13352){return _0x12a819>_0xc13352;},'ZvXXD':function(_0x2d601b,_0x1323e0){return _0x2d601b(_0x1323e0);},'rHhHi':function(_0x5f3285,_0x3cf56a){return _0x5f3285<_0x3cf56a;},'iEgUK':function(_0x1e913a,_0x3b4116){return _0x1e913a-_0x3b4116;},'CxRpu':function(_0x4f1c7f,_0x1e9ef8){return _0x4f1c7f===_0x1e9ef8;},'vAZCQ':_0x2e253d(0x238,0x1c9),'VHzOD':_0x2e253d(0x245,0x1ff),'zYlAB':_0x2e253d(0x21c,0x258),'srVhX':'HTTP\x20422','NUHpz':function(_0x28d297,_0x32d095){return _0x28d297-_0x32d095;},'YpQuo':_0x2e253d(0x22b,0x23c)};let _0x12f28d;function _0x134f36(_0x35df94,_0x2a3476){return _0x3309ba(_0x35df94,_0x2a3476-0x0);}function _0x2e253d(_0x3afe60,_0x12bfcf){return _0x3309ba(_0x12bfcf,_0x3afe60- -0x3af);}for(let _0x4634e3=0x0;_0x4634e3<A2AClient['MAX_RETRIE'+'S'];_0x4634e3++){const _0x3ec5d7=''+this[_0x134f36(0x56b,0x5a2)][_0x2e253d(0x1c2,0x21f)]+_0x3070d6,_0x3a08b8=new AbortController(),_0x673d48=setTimeout(()=>_0x3a08b8[_0x2e253d(0x1b1,0x166)](),this[_0x2e253d(0x1ba,0x1b9)]);try{if(_0xf630d7[_0x134f36(0x646,0x5c3)](_0x134f36(0x599,0x51c),_0x134f36(0x637,0x5c8)))this[_0x134f36(0x4e6,0x54e)+_0x2e253d(0x204,0x21e)]=null;else{const _0x3f8a4b=await fetch(_0x3ec5d7,{'method':_0x48f149,'headers':{'Content-Type':_0x2e253d(0x194,0x145)+'n/json','x-api-key':this[_0x134f36(0x59e,0x5a2)][_0x2e253d(0x225,0x1f3)],'X-Plugin-Version':_pluginVersion,..._0xf630d7[_0x2e253d(0x1ad,0x1f7)](this['enabledFea'+_0x2e253d(0x14f,0x130)][_0x134f36(0x64c,0x5ca)],0x0)&&{'X-Plugin-Features':this['enabledFea'+_0x2e253d(0x14f,0x112)][_0x2e253d(0x210,0x1bd)](',')}},'body':_0xb69429?JSON[_0x134f36(0x5ba,0x5b8)](_0xb69429):undefined,'signal':_0x3a08b8[_0x2e253d(0x1b0,0x1a6)]});_0xf630d7[_0x2e253d(0x217,0x1eb)](clearTimeout,_0x673d48);if(A2AClient['RETRYABLE_'+_0x2e253d(0x244,0x1eb)][_0x134f36(0x4a3,0x4e9)](_0x3f8a4b[_0x2e253d(0x171,0x108)])&&_0xf630d7[_0x134f36(0x597,0x5af)](_0x4634e3,_0xf630d7[_0x2e253d(0x144,0x161)](A2AClient['MAX_RETRIE'+'S'],0x1))){const _0x761c68=A2AClient[_0x2e253d(0x15f,0x130)+'_MS']*Math[_0x134f36(0x575,0x5e0)](0x2,_0x4634e3);await new Promise(_0x31b933=>setTimeout(_0x31b933,_0x761c68));continue;}!_0x3f8a4b['ok']&&await this[_0x2e253d(0x17d,0x183)+_0x2e253d(0x1f5,0x1c4)](_0x3f8a4b);if(_0xf630d7['sFAMY'](_0x48f149,_0x134f36(0x5b8,0x5ac))&&_0xf630d7[_0x2e253d(0x221,0x1fb)](_0x3f8a4b[_0x134f36(0x4cc,0x520)],0xcc)){if(_0x2e253d(0x22e,0x1b7)===_0xf630d7[_0x2e253d(0x1d1,0x238)])_0x9cf3b9[_0x134f36(0x572,0x586)](_0x134f36(0x52c,0x55d),_0x10dab0[_0x2e253d(0x1ae,0x166)][_0x2e253d(0x210,0x281)](','));else return;}return await _0x3f8a4b[_0x2e253d(0x160,0x17c)]();}}catch(_0x2391c9){_0xf630d7[_0x134f36(0x570,0x5c6)](clearTimeout,_0x673d48);if(_0x2391c9 instanceof Error){if(_0x2391c9[_0x2e253d(0x232,0x1c6)]['startsWith'](_0xf630d7[_0x2e253d(0x1cf,0x245)])||_0x2391c9['message'][_0x2e253d(0x15a,0xf4)](_0xf630d7[_0x134f36(0x624,0x5cd)])||_0x2391c9['message'][_0x134f36(0x4bd,0x509)](_0x2e253d(0x165,0x108))||_0x2391c9['message']['startsWith'](_0xf630d7['srVhX']))throw _0x2391c9;if(_0xf630d7[_0x2e253d(0x200,0x1d3)](_0x4634e3,_0xf630d7[_0x2e253d(0x21a,0x215)](A2AClient['MAX_RETRIE'+'S'],0x1))){_0x12f28d=_0x2391c9;const _0x317bf4=A2AClient['BASE_DELAY'+'_MS']*Math[_0x2e253d(0x231,0x207)](0x2,_0x4634e3);await new Promise(_0x5293ec=>setTimeout(_0x5293ec,_0x317bf4));continue;}if(_0xf630d7[_0x134f36(0x553,0x5d0)](_0x2391c9[_0x2e253d(0x14c,0x132)],_0xf630d7[_0x2e253d(0x1d2,0x250)]))throw new Error(_0x134f36(0x55b,0x4eb)+this[_0x134f36(0x4f8,0x569)]+_0x134f36(0x55a,0x5b7));throw new Error('네트워크\x20오류:\x20'+_0x2391c9[_0x134f36(0x5f6,0x5e1)]);}throw _0x2391c9;}}throw _0x12f28d??new Error(_0x134f36(0x473,0x4f8)+A2AClient[_0x2e253d(0x23c,0x1c4)+'S']+_0x134f36(0x51c,0x56e));}async['requestMul'+'tipart'](_0x42bc75,_0x5ca378,_0x2f29c5){const _0x25a247={'ROOPx':function(_0x61f13a,_0x550e8b,_0xca4fa5){return _0x61f13a(_0x550e8b,_0xca4fa5);},'JLYOv':function(_0x36d986,_0x8d2115){return _0x36d986!==_0x8d2115;},'tLccR':function(_0x1b331a,_0x107363,_0x210aa9){return _0x1b331a(_0x107363,_0x210aa9);},'YxKrI':function(_0x5d9739,_0x13e2d4){return _0x5d9739(_0x13e2d4);},'HnkeG':_0xc4941(0x2cc,0x2a8),'rUfki':function(_0x65650c,_0x1c79f7){return _0x65650c===_0x1c79f7;},'Nxplw':_0xc4941(0x294,0x20d),'buLiz':_0x464df7(0x252,0x260),'GWnTu':_0x464df7(0x239,0x2aa)},_0x23b2be=''+this[_0x464df7(0x2a5,0x250)][_0x464df7(0x274,0x20f)]+_0x5ca378;function _0xc4941(_0x432c0d,_0x3b6383){return _0x3309ba(_0x432c0d,_0x3b6383- -0x32b);}const _0x5eda1e=new AbortController();function _0x464df7(_0x2d35c7,_0x5c7ce8){return _0x3309ba(_0x5c7ce8,_0x2d35c7- -0x2fd);}const _0x436d1e=_0x25a247['ROOPx'](setTimeout,()=>_0x5eda1e[_0x464df7(0x263,0x232)](),this['timeout']);try{if(_0x25a247[_0xc4941(0x260,0x229)](_0x464df7(0x2a8,0x2de),'SEJuH')){const _0x2e684b=await _0x25a247[_0xc4941(0x333,0x2c6)](fetch,_0x23b2be,{'method':_0x42bc75,'headers':{'x-api-key':this['config'][_0xc4941(0x26d,0x2a9)],'X-Plugin-Version':_pluginVersion},'body':_0x2f29c5,'signal':_0x5eda1e[_0x464df7(0x262,0x2e2)]});return _0x25a247[_0xc4941(0x2d2,0x2cd)](clearTimeout,_0x436d1e),!_0x2e684b['ok']&&(_0x25a247[_0xc4941(0x24a,0x1fa)]===_0xc4941(0x2a4,0x2a8)?await this[_0x464df7(0x22f,0x224)+_0x464df7(0x2a7,0x24a)](_0x2e684b):_0x1c9ddc+=':\x20'+_0x4621b3[_0xc4941(0x1ac,0x22f)]),await _0x2e684b[_0xc4941(0x22f,0x1e4)]();}else return this[_0xc4941(0x233,0x1e5)](_0xc4941(0x22c,0x25a),_0xc4941(0x26b,0x274)+_0xc4941(0x2a1,0x27f)+'s',_0x19c9ea);}catch(_0x1cbf1b){if(_0x25a247[_0x464df7(0x26a,0x2bf)](_0x25a247[_0xc4941(0x228,0x211)],_0x25a247[_0xc4941(0x239,0x1f2)]))return;else{_0x25a247[_0xc4941(0x355,0x2cd)](clearTimeout,_0x436d1e);if(_0x1cbf1b instanceof Error&&_0x25a247[_0xc4941(0x1f6,0x23c)](_0x1cbf1b['name'],_0xc4941(0x2a3,0x2af))){if(_0x25a247[_0xc4941(0x28a,0x2b4)]===_0x464df7(0x239,0x287))throw new Error(_0x464df7(0x1ee,0x246)+this[_0x464df7(0x26c,0x2d1)]+'ms를\x20넘었습니다');else return this[_0xc4941(0x1fb,0x1e5)](_0x464df7(0x288,0x25e),_0xc4941(0x20f,0x274)+_0xc4941(0x2ed,0x2c3),_0x24ef74);}throw _0x1cbf1b;}}}async[_0x3309ba(0x572,0x52c)+_0x3efcb5(0x3c4,0x3e9)](_0x41618b){function _0x17c2ae(_0x242646,_0x47967c){return _0x3309ba(_0x242646,_0x47967c- -0x431);}const _0x1f50f8={'OhmsH':function(_0x16e1cf,_0x526c35){return _0x16e1cf===_0x526c35;}},_0x34411c=_0x41618b[_0x4c284e(0x54f,0x51d)];if(_0x34411c===0x191)throw new Error(_0x4c284e(0x5d8,0x622)+_0x4c284e(0x57c,0x507)+'요');if(_0x1f50f8[_0x17c2ae(0x1dd,0x159)](_0x34411c,0x1ad))throw new Error(_0x4c284e(0x618,0x667)+_0x4c284e(0x5c8,0x5d3));function _0x4c284e(_0x80ab2f,_0x7b9c8){return _0x3309ba(_0x7b9c8,_0x80ab2f-0x2f);}let _0x13c122=_0x17c2ae(0x1c5,0x1c6)+_0x34411c;try{const _0x33acc5=await _0x41618b[_0x4c284e(0x53e,0x586)]();if(_0x33acc5[_0x17c2ae(0xf9,0x129)])_0x13c122+=':\x20'+_0x33acc5[_0x17c2ae(0xb4,0x129)];else _0x33acc5[_0x17c2ae(0x12c,0x1b0)]&&(_0x13c122+=':\x20'+_0x33acc5['message']);}catch{}throw new Error(_0x13c122);}}
|
package/dist/sync/encryption.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5afe(_0x3ff8d6,_0x27ee9c){_0x3ff8d6=_0x3ff8d6-0x1ce;const _0x23c9ad=_0x23c9();let _0x5afe58=_0x23c9ad[_0x3ff8d6];if(_0x5afe['guwJVy']===undefined){var _0x257abc=function(_0x63e7f8){const _0x3e7073='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3f734e='',_0x21ea66='';for(let _0x304676=0x0,_0x50caf4,_0x496ad8,_0x239b6d=0x0;_0x496ad8=_0x63e7f8['charAt'](_0x239b6d++);~_0x496ad8&&(_0x50caf4=_0x304676%0x4?_0x50caf4*0x40+_0x496ad8:_0x496ad8,_0x304676++%0x4)?_0x3f734e+=String['fromCharCode'](0xff&_0x50caf4>>(-0x2*_0x304676&0x6)):0x0){_0x496ad8=_0x3e7073['indexOf'](_0x496ad8);}for(let _0x100cd7=0x0,_0x36b909=_0x3f734e['length'];_0x100cd7<_0x36b909;_0x100cd7++){_0x21ea66+='%'+('00'+_0x3f734e['charCodeAt'](_0x100cd7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21ea66);};_0x5afe['CdxdOV']=_0x257abc,_0x5afe['cEOupa']={},_0x5afe['guwJVy']=!![];}const _0x587741=_0x23c9ad[0x0],_0x1d2bb4=_0x3ff8d6+_0x587741,_0x1c367e=_0x5afe['cEOupa'][_0x1d2bb4];return!_0x1c367e?(_0x5afe58=_0x5afe['CdxdOV'](_0x5afe58),_0x5afe['cEOupa'][_0x1d2bb4]=_0x5afe58):_0x5afe58=_0x1c367e,_0x5afe58;}(function(_0x500570,_0x49c572){function _0x323f3d(_0x4d6e49,_0x4ca735){return _0x5afe(_0x4ca735-0x4a,_0x4d6e49);}function _0x297903(_0x4d16c2,_0x3cd056){return _0x5afe(_0x3cd056-0x19f,_0x4d16c2);}const _0x20f928=_0x500570();while(!![]){try{const _0x407f15=-parseInt(_0x297903(0x38b,0x374))/0x1*(parseInt(_0x323f3d(0x20f,0x229))/0x2)+parseInt(_0x297903(0x3b4,0x398))/0x3+parseInt(_0x323f3d(0x24c,0x241))/0x4*(parseInt(_0x323f3d(0x22a,0x244))/0x5)+-parseInt(_0x323f3d(0x23a,0x24d))/0x6+-parseInt(_0x297903(0x3a4,0x390))/0x7+parseInt(_0x323f3d(0x232,0x23f))/0x8+parseInt(_0x323f3d(0x21a,0x22c))/0x9*(parseInt(_0x297903(0x375,0x36e))/0xa);if(_0x407f15===_0x49c572)break;else _0x20f928['push'](_0x20f928['shift']());}catch(_0x3d6b03){_0x20f928['push'](_0x20f928['shift']());}}}(_0x23c9,0x36742));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM=_0x154548(0x5c3,0x5cc)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST='sha512';export function generateEncryptionKey(){function _0x1b7911(_0x5191bb,_0x20d540){return _0x154548(_0x20d540,_0x5191bb- -0x438);}const _0x12a6b9={'BtDJA':function(_0x1031cf,_0x3342c6){return _0x1031cf(_0x3342c6);}};return _0x12a6b9[_0x1b7911(0x18a,0x1a0)](randomBytes,KEY_LENGTH);}export function deriveKey(_0x22f461,_0x4dc5b7){const _0x4d9d0c={'iVZNx':function(_0x286e2d,_0x1c1e48,_0x32c390,_0x264a93,_0x58b3d2,_0x529844){return _0x286e2d(_0x1c1e48,_0x32c390,_0x264a93,_0x58b3d2,_0x529844);}};function _0x1520d9(_0x671692,_0x39a725){return _0x154548(_0x671692,_0x39a725- -0x61);}const _0x2b1279=_0x4dc5b7??randomBytes(SALT_LENGTH),_0x5e8fbd=_0x4d9d0c[_0x1520d9(0x56d,0x57c)](pbkdf2Sync,_0x22f461,_0x2b1279,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x5e8fbd,'salt':_0x2b1279};}export function encryptContent(_0x2a96d6,_0x4cf602){const _0x23a944={'ofIyq':function(_0xc1e2bb,_0x1307db){return _0xc1e2bb(_0x1307db);}};if(_0x4cf602[_0x1298f2(0x2ea,0x2d6)]!==KEY_LENGTH)throw new Error(_0x1298f2(0x2c5,0x2b1)+KEY_LENGTH+(_0x1832b3(-0x50,-0x5e)+_0x1832b3(-0x82,-0x8c))+_0x4cf602[_0x1298f2(0x2ea,0x2e1)]+')');function _0x1832b3(_0x4cc624,_0x2e6a0e){return _0x154548(_0x2e6a0e,_0x4cc624- -0x636);}const _0x2f081d=_0x23a944[_0x1298f2(0x2d7,0x2e3)](randomBytes,IV_LENGTH);function _0x1298f2(_0x3c47de,_0x5995f3){return _0x154548(_0x5995f3,_0x3c47de- -0x2f7);}const _0x27073d=createCipheriv(ALGORITHM,_0x4cf602,_0x2f081d),_0x8d3101=Buffer[_0x1298f2(0x2c1,0x2ca)](_0x2a96d6,_0x1832b3(-0x6c,-0x5a)),_0x2f94bd=Buffer[_0x1832b3(-0x71,-0x67)]([_0x27073d[_0x1298f2(0x2e8,0x2d9)](_0x8d3101),_0x27073d[_0x1298f2(0x2c3,0x2af)]()]),_0x56e630=_0x27073d[_0x1298f2(0x2d4,0x2e3)]();return{'ciphertext':_0x2f94bd['toString']('base64'),'iv':_0x2f081d[_0x1298f2(0x2ee,0x2e9)](_0x1832b3(-0x72,-0x5a)),'tag':_0x56e630['toString']('base64')};}function _0x154548(_0x1b6a76,_0x5976aa){return _0x5afe(_0x5976aa-0x3e1,_0x1b6a76);}export function decryptContent(_0x103bcf,_0x548282){const _0x30bdf5={'hbahZ':'base64','NcSUI':function(_0x55422e,_0x4583a2){return _0x55422e instanceof _0x4583a2;}};function _0xea2b1f(_0x5d4df2,_0x2e4ec7){return _0x154548(_0x2e4ec7,_0x5d4df2- -0x189);}if(_0x548282[_0xea2b1f(0x458,0x43f)]!==KEY_LENGTH)throw new Error(_0x4c8323(0x153,0x138)+KEY_LENGTH+('\x20bytes여야\x20합'+_0x4c8323(0x14b,0x136))+_0x548282[_0x4c8323(0x178,0x170)]+')');const _0x23e003=Buffer[_0x4c8323(0x14f,0x15e)](_0x103bcf['iv'],_0x4c8323(0x15b,0x160));function _0x4c8323(_0x1d0e28,_0x3efeab){return _0x154548(_0x3efeab,_0x1d0e28- -0x469);}const _0x52d320=Buffer[_0x4c8323(0x14f,0x149)](_0x103bcf['ciphertext'],_0x30bdf5[_0x4c8323(0x173,0x173)]),_0x3f90c0=Buffer['from'](_0x103bcf[_0xea2b1f(0x428,0x43e)],'base64'),_0x135404=createDecipheriv(ALGORITHM,_0x548282,_0x23e003);_0x135404['setAuthTag'](_0x3f90c0);try{const _0x859e65=Buffer[_0xea2b1f(0x43c,0x428)]([_0x135404['update'](_0x52d320),_0x135404[_0x4c8323(0x151,0x14f)]()]);return _0x859e65[_0xea2b1f(0x45c,0x460)]('utf-8');}catch(_0x17455a){if(_0x30bdf5[_0xea2b1f(0x444,0x439)](_0x17455a,Error))throw new Error(_0x4c8323(0x168,0x17a)+_0x17455a['message']+('\x20(잘못된\x20키\x20또는'+_0xea2b1f(0x43d,0x437)));throw _0x17455a;}}export function encryptEmbedding(_0x1018db,_0x207746){const _0x259d50={'IFNpu':function(_0x45cd7a,_0x243e47){return _0x45cd7a(_0x243e47);},'fcWLv':function(_0xd76384,_0x11e108,_0x247621,_0x780daf){return _0xd76384(_0x11e108,_0x247621,_0x780daf);},'WVgeq':_0x4f6a4a(0x2,-0x11)},_0xfcb72d=new Float64Array(_0x1018db),_0x315b7e=Buffer['from'](_0xfcb72d[_0x111613(0x4e6,0x4fe)]),_0x5c41b7=_0x259d50[_0x111613(0x514,0x523)](randomBytes,IV_LENGTH),_0x24fc26=_0x259d50['fcWLv'](createCipheriv,ALGORITHM,_0x207746,_0x5c41b7);function _0x111613(_0x5e775d,_0x48abe6){return _0x154548(_0x5e775d,_0x48abe6- -0xc0);}const _0xd8cf3c=Buffer['concat']([_0x24fc26['update'](_0x315b7e),_0x24fc26[_0x4f6a4a(-0x8,0x13)]()]),_0x48ca0f=_0x24fc26[_0x4f6a4a(0x9,0x23)](),_0x3626ef=Buffer['concat']([_0x5c41b7,_0x48ca0f,_0xd8cf3c]);function _0x4f6a4a(_0x5b9198,_0x2f7ecb){return _0x154548(_0x2f7ecb,_0x5b9198- -0x5c2);}return _0x3626ef[_0x4f6a4a(0x23,0x29)](_0x259d50['WVgeq']);}export function decryptEmbedding(_0x13ba96,_0x37eb45){const _0x1ce47b={'OYwVU':function(_0x47577d,_0x39e669){return _0x47577d+_0x39e669;},'LjMMO':_0x140b5c(0x1aa,0x1a1)+_0x140b5c(0x1a7,0x199)+'다','BFCOo':function(_0x44377e,_0x554030){return _0x44377e/_0x554030;},'xDLBY':function(_0x57565a,_0xb28c69){return _0x57565a instanceof _0xb28c69;}};function _0x140b5c(_0x2ac78f,_0x358e51){return _0x154548(_0x358e51,_0x2ac78f- -0x40b);}const _0xa3f1cb=Buffer[_0x27dbf5(0x256,0x25f)](_0x13ba96,'base64');if(_0xa3f1cb[_0x27dbf5(0x27f,0x272)]<_0x1ce47b['OYwVU'](IV_LENGTH,TAG_LENGTH))throw new Error(_0x1ce47b[_0x140b5c(0x1d5,0x1c8)]);const _0x5cef49=_0xa3f1cb[_0x27dbf5(0x273,0x28f)](0x0,IV_LENGTH),_0x1659d5=_0xa3f1cb[_0x27dbf5(0x273,0x263)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x502514=_0xa3f1cb[_0x140b5c(0x1ca,0x1ba)](IV_LENGTH+TAG_LENGTH),_0x206e4b=createDecipheriv(ALGORITHM,_0x37eb45,_0x5cef49);_0x206e4b[_0x27dbf5(0x26e,0x258)](_0x1659d5);function _0x27dbf5(_0x296f28,_0xf493a3){return _0x154548(_0xf493a3,_0x296f28- -0x362);}try{const _0x5bf497=Buffer['concat']([_0x206e4b[_0x27dbf5(0x27d,0x270)](_0x502514),_0x206e4b[_0x27dbf5(0x258,0x24a)]()]),_0x4a33f3=new Float64Array(_0x5bf497[_0x140b5c(0x1b3,0x1ab)],_0x5bf497[_0x27dbf5(0x257,0x26f)],_0x1ce47b[_0x140b5c(0x1c4,0x1cd)](_0x5bf497[_0x27dbf5(0x25f,0x261)],Float64Array['BYTES_PER_'+_0x140b5c(0x1bd,0x1be)]));return Array[_0x140b5c(0x1ad,0x19d)](_0x4a33f3);}catch(_0x58475c){if(_0x1ce47b['xDLBY'](_0x58475c,Error))throw new Error('임베딩\x20복호화\x20실패'+':\x20'+_0x58475c[_0x140b5c(0x1b0,0x197)]);throw _0x58475c;}}export function isValidEncryptedPayload(_0x3b1654){const _0x3ff7d6={'kcAzi':function(_0x1288c8,_0x27a789){return _0x1288c8!==_0x27a789;},'BtCeK':function(_0x3e495a,_0x5f1126){return _0x3e495a===_0x5f1126;}};function _0x3c1d35(_0x37ed1d,_0x45021c){return _0x154548(_0x45021c,_0x37ed1d- -0x400);}if(_0x3ff7d6[_0x3c1d35(0x1d9,0x1d1)](typeof _0x3b1654,_0x3c1d35(0x1e2,0x1dc))||_0x3b1654===null)return![];const _0xae06f0=_0x3b1654;function _0x11aab8(_0x114e9a,_0x57313e){return _0x154548(_0x57313e,_0x114e9a- -0x729);}return _0x3ff7d6[_0x3c1d35(0x1d3,0x1bc)](typeof _0xae06f0[_0x11aab8(-0x16c,-0x16c)],_0x11aab8(-0x162,-0x14d))&&_0x3ff7d6[_0x3c1d35(0x1d3,0x1c8)](typeof _0xae06f0['iv'],_0x11aab8(-0x162,-0x166))&&typeof _0xae06f0[_0x3c1d35(0x1b1,0x1cb)]===_0x3c1d35(0x1c7,0x1c5);}export function wrapEncryptedContent(_0x5d15e0){function _0x436670(_0x1bdd59,_0x11d41f){return _0x154548(_0x1bdd59,_0x11d41f- -0x1dd);}function _0x4f696c(_0x5e5142,_0x33e89a){return _0x154548(_0x33e89a,_0x5e5142- -0x608);}return JSON[_0x436670(0x418,0x401)]({'encrypted':!![],'data':_0x5d15e0['ciphertext'],'iv':_0x5d15e0['iv'],'tag':_0x5d15e0[_0x4f696c(-0x57,-0x42)]});}function _0x23c9(){const _0x200176=['C3rYAw5N','ruXftuvova','y3LkCfG','DxrMltG','z2v0qxv0AfrHzW','ywvZlti1nI1NyW','tMntvuK','B2zjExe','qKzdt28','C2v0qxv0AfrHzW','67o17zI47zMuioYlPo2mQdOG','mJqXnty4nNvKrLHPtW','qNrdzuS','v2PuBw0','C3vIyxjYyxK','mJa4mtiWsgvbrvru','zgf0yq','mtCYnJy3mM9nyLzlDa','A2nbEMK','odeXodq4zwXHC210','nwPdvMP6AG','AgjHAfO','AvzAtNG','C3rYAw5NAwz5','DxbKyxrL','tgPntu8','BgvUz3rO','B2jQzwn0','suzoChu','mJe0mZC3nMrvqK5Ira','Dg9tDhjPBMC','igj5DgvZ7jES7jw8io2vQq','CgfYC2u','mJiWnZbOy1Dmrwm','DgfN','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','t3HTufO','64Ui64UKicJTMitSNQW6ia','7jwu7zI47zMu65cCioYEHoUYOoUuQsdRJBa','mZe0odG3B1rcAhfh','uxr5uxC','zNjVBq','yNL0zu9MzNnLDa','zMLUywW','BwvZC2fNzq','7jwu7zI47zMuio2cPoUkLca','y2LWAgvYDgv4Da','yNvMzMvY','zw5JCNLWDgvK','mLDrsNPqtq','yNL0zuXLBMD0Aa','qNresKe','mJa4og90A1POAW','yMfZzty0','y29Uy2f0','ioUnSoYDTo2eScdRS4dSOBaP'];_0x23c9=function(){return _0x200176;};return _0x23c9();}export function unwrapEncryptedContent(_0x884303){function _0x3b25c5(_0x3f2185,_0x5516bb){return _0x154548(_0x5516bb,_0x3f2185- -0xbd);}function _0x346d3e(_0x5328a3,_0x1cd198){return _0x154548(_0x5328a3,_0x1cd198- -0x5d8);}const _0x45a19b={'cyJpX':_0x346d3e(-0x29,-0xe),'kVQBR':_0x346d3e(0x5,-0x14),'WjTmm':function(_0x37f75a,_0x516cc0){return _0x37f75a!==_0x516cc0;},'QtyQw':_0x346d3e(-0xb,-0x11),'eTnIq':function(_0x4b315b,_0x4aed54){return _0x4b315b!==_0x4aed54;},'ywUkD':function(_0x8aa130,_0x312a41){return _0x8aa130!==_0x312a41;}};try{const _0x5bb04b=JSON[_0x346d3e(-0x32,-0x29)](_0x884303);if(_0x45a19b[_0x3b25c5(0x517,0x530)](_0x5bb04b[_0x346d3e(-0x27,-0x19)],!![]))return null;if(typeof _0x5bb04b[_0x3b25c5(0x51a,0x52b)]!==_0x3b25c5(0x50a,0x518)||typeof _0x5bb04b['iv']!==_0x45a19b[_0x3b25c5(0x4fa,0x4fa)]||_0x45a19b['eTnIq'](typeof _0x5bb04b['tag'],_0x346d3e(0x8,-0x11))){if(_0x45a19b['ywUkD'](_0x346d3e(-0x13,-0x25),'JyKAz'))return null;else{if(_0x1bd6fc[_0x346d3e(-0x9,0x9)]!==_0x41b582)throw new _0x41b943('암호화\x20키는\x20'+_0x1257a2+(_0x346d3e(0x1a,0xe)+_0x346d3e(-0xf,-0x24))+_0x2a01cd[_0x346d3e(0xe,0x9)]+')');const _0x1c7e3f=_0x117e0e(_0x42f39a),_0x350ca4=_0x1121b4(_0x2ce0d4,_0x5bbcc9,_0x1c7e3f),_0x271066=_0x15f5e9[_0x3b25c5(0x4fb,0x4e3)](_0x56c170,QkfYon[_0x3b25c5(0x50c,0x505)]),_0x5e099c=_0x6fb246['concat']([_0x350ca4['update'](_0x271066),_0x350ca4[_0x3b25c5(0x4fd,0x4f9)]()]),_0x3bdbc0=_0x350ca4[_0x3b25c5(0x50e,0x518)]();return{'ciphertext':_0x5e099c['toString']('base64'),'iv':_0x1c7e3f['toString'](QkfYon['kVQBR']),'tag':_0x3bdbc0['toString']('base64')};}}return{'ciphertext':_0x5bb04b[_0x346d3e(0x10,-0x1)],'iv':_0x5bb04b['iv'],'tag':_0x5bb04b[_0x346d3e(-0x2e,-0x27)]};}catch{return null;}}
|
|
1
|
+
function _0x5a27bd(_0x60a364,_0x399882){return _0x4ebc(_0x60a364- -0x25d,_0x399882);}(function(_0x4eb271,_0x4e6542){function _0x53fa0f(_0x4fa1cf,_0x42b70d){return _0x4ebc(_0x42b70d- -0x2ea,_0x4fa1cf);}function _0x2e625c(_0x2f3613,_0x3333e3){return _0x4ebc(_0x2f3613-0x290,_0x3333e3);}const _0x2ba912=_0x4eb271();while(!![]){try{const _0x5e6412=-parseInt(_0x53fa0f(-0x11e,-0x139))/0x1+-parseInt(_0x53fa0f(-0x124,-0x11f))/0x2*(-parseInt(_0x2e625c(0x430,0x444))/0x3)+-parseInt(_0x53fa0f(-0x12b,-0x125))/0x4+parseInt(_0x2e625c(0x44c,0x45d))/0x5*(-parseInt(_0x2e625c(0x437,0x429))/0x6)+-parseInt(_0x53fa0f(-0x13f,-0x127))/0x7+-parseInt(_0x2e625c(0x435,0x427))/0x8+parseInt(_0x2e625c(0x43d,0x438))/0x9*(parseInt(_0x2e625c(0x42a,0x446))/0xa);if(_0x5e6412===_0x4e6542)break;else _0x2ba912['push'](_0x2ba912['shift']());}catch(_0x52b94b){_0x2ba912['push'](_0x2ba912['shift']());}}}(_0x24cb,0x638aa));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';function _0x4ebc(_0x2ee5ab,_0x101a67){_0x2ee5ab=_0x2ee5ab-0x187;const _0x24cb4a=_0x24cb();let _0x4ebc99=_0x24cb4a[_0x2ee5ab];if(_0x4ebc['rQYGHS']===undefined){var _0x110cda=function(_0x392e54){const _0x11ec8e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x557f3d='',_0xc119ad='';for(let _0x19bd0b=0x0,_0xd56094,_0x1b12ef,_0x17b4ad=0x0;_0x1b12ef=_0x392e54['charAt'](_0x17b4ad++);~_0x1b12ef&&(_0xd56094=_0x19bd0b%0x4?_0xd56094*0x40+_0x1b12ef:_0x1b12ef,_0x19bd0b++%0x4)?_0x557f3d+=String['fromCharCode'](0xff&_0xd56094>>(-0x2*_0x19bd0b&0x6)):0x0){_0x1b12ef=_0x11ec8e['indexOf'](_0x1b12ef);}for(let _0x8feed2=0x0,_0x4d8800=_0x557f3d['length'];_0x8feed2<_0x4d8800;_0x8feed2++){_0xc119ad+='%'+('00'+_0x557f3d['charCodeAt'](_0x8feed2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc119ad);};_0x4ebc['xOPIME']=_0x110cda,_0x4ebc['NxiMCv']={},_0x4ebc['rQYGHS']=!![];}const _0x11d053=_0x24cb4a[0x0],_0x37f74b=_0x2ee5ab+_0x11d053,_0x51a3e1=_0x4ebc['NxiMCv'][_0x37f74b];return!_0x51a3e1?(_0x4ebc99=_0x4ebc['xOPIME'](_0x4ebc99),_0x4ebc['NxiMCv'][_0x37f74b]=_0x4ebc99):_0x4ebc99=_0x51a3e1,_0x4ebc99;}const ALGORITHM=_0x5a27bd(-0xc8,-0xad)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST=_0x5a27bd(-0xcc,-0xec);function _0x466b09(_0x408b10,_0x256fbb){return _0x4ebc(_0x256fbb-0x7f,_0x408b10);}export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x46bb89,_0x20f883){const _0xef094=_0x20f883??randomBytes(SALT_LENGTH),_0x66b572=pbkdf2Sync(_0x46bb89,_0xef094,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x66b572,'salt':_0xef094};}export function encryptContent(_0x58ebb1,_0xe6c93e){const _0xfb8f71={'TfPYR':function(_0x25fec8,_0x47c1b9){return _0x25fec8(_0x47c1b9);},'pUPkh':_0x32df0e(0x36c,0x35f),'aGshQ':function(_0x3d3d38,_0x2ad100){return _0x3d3d38!==_0x2ad100;},'yoAyg':_0x32df0e(0x362,0x351),'ZkvKk':function(_0x3c7d7f,_0x140f93){return _0x3c7d7f(_0x140f93);},'VKBAw':function(_0x1a3a3d,_0x3ff477,_0xa016fa,_0x2335ca){return _0x1a3a3d(_0x3ff477,_0xa016fa,_0x2335ca);}};if(_0xe6c93e['length']!==KEY_LENGTH){if(_0xfb8f71[_0x32df0e(0x322,0x32c)](_0x32df0e(0x30a,0x31d),_0xfb8f71[_0x4b8ae0(0x370,0x38d)]))throw new Error(_0x32df0e(0x351,0x333)+KEY_LENGTH+('\x20bytes여야\x20합'+'니다\x20(현재:\x20')+_0xe6c93e[_0x32df0e(0x32d,0x33f)]+')');else{if(_0x24a755['length']!==_0x127043)throw new _0x2741e6(_0x32df0e(0x34d,0x333)+_0x581a05+(_0x32df0e(0x330,0x350)+_0x4b8ae0(0x368,0x388))+_0x4f09aa['length']+')');const _0x596955=_0xfb8f71[_0x4b8ae0(0x36c,0x36a)](_0x1081a9,_0x1394c8),_0x2f4eb5=_0x543aba(_0x1304db,_0x29a79a,_0x596955),_0x5f3fe9=_0x4eeed1['from'](_0x2f5266,_0x32df0e(0x326,0x321)),_0x1fbed1=_0x1a8eda[_0x4b8ae0(0x391,0x3aa)]([_0x2f4eb5[_0x32df0e(0x339,0x35a)](_0x5f3fe9),_0x2f4eb5[_0x4b8ae0(0x375,0x36d)]()]),_0x28f181=_0x2f4eb5[_0x4b8ae0(0x367,0x34d)]();return{'ciphertext':_0x1fbed1[_0x4b8ae0(0x380,0x399)](_0x4b8ae0(0x39d,0x3ad)),'iv':_0x596955['toString'](_0x32df0e(0x350,0x35f)),'tag':_0x28f181[_0x4b8ae0(0x380,0x39f)](_0xfb8f71['pUPkh'])};}}const _0xda6cef=_0xfb8f71[_0x4b8ae0(0x363,0x382)](randomBytes,IV_LENGTH);function _0x4b8ae0(_0x424570,_0x5d67c7){return _0x5a27bd(_0x424570-0x431,_0x5d67c7);}function _0x32df0e(_0x53c085,_0x57511f){return _0x5a27bd(_0x57511f-0x3f3,_0x53c085);}const _0x146bd1=_0xfb8f71['VKBAw'](createCipheriv,ALGORITHM,_0xe6c93e,_0xda6cef),_0x3a95c6=Buffer[_0x4b8ae0(0x377,0x366)](_0x58ebb1,_0x4b8ae0(0x35f,0x355)),_0x221304=Buffer[_0x32df0e(0x35a,0x353)]([_0x146bd1[_0x32df0e(0x375,0x35a)](_0x3a95c6),_0x146bd1[_0x4b8ae0(0x375,0x38d)]()]),_0x2dae3c=_0x146bd1[_0x4b8ae0(0x367,0x349)]();return{'ciphertext':_0x221304[_0x4b8ae0(0x380,0x360)](_0xfb8f71['pUPkh']),'iv':_0xda6cef[_0x32df0e(0x332,0x342)](_0xfb8f71[_0x32df0e(0x324,0x326)]),'tag':_0x2dae3c['toString'](_0x32df0e(0x352,0x35f))};}function _0x24cb(){const _0x3d82bf=['vgzqwvi','DgfN','ntG3mgLiEgnLvW','vu93tfi','Ew9bEwC','7jwu7zI47zMuio2cPoUkLca','yvPcAhe','ufPpDvu','mJaYotHtANP4ruG','zMLUywW','ioUnSoYDTo2eScdRS4dSOBaP','zNjVBq','zw5JCNLWDgvK','ndq2mZyXnMLtvhjHuW','yNL0zuXLBMD0Aa','nKDvwwrVrW','CgfYC2u','BgvUz3rO','DNr1yM8','ruXftuvova','Dg9tDhjPBMC','ndK2ntnWt2zjAu8','tuDpy0u','y2LWAgvYDgv4Da','B2jQzwn0','nZyXmZG1wKnWuhnd','yNL0zu9MzNnLDa','zgf0yq','C3rYAw5N','7jwu7zI47zMu65cCioYEHoUYOoUuQsdRJBa','s0LRDfK','Eunfuxi','qLLurvnFuevsxW','BwvZC2fNzq','igj5DgvZ7jES7jw8io2vQq','v2nowLy','mZe1ndC2nwDKzNLVta','y29Uy2f0','C2v0qxv0AfrHzW','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','C3vIyxjYyxK','qxjYvgi','ELnZDfq','nda0otaXn0XzqMXqsW','DxbKyxrL','mtCYmJm2mgjHvg5NDW','yvLkufi','yNvMzMvY','ENbrquO','yMfZzty0','CufcEMy','mZHWzgjeDfi','BhbbAuW','icJSNPJRQRVRKjWG7ykKioUyKoUkLa','C3rYAw5NAwz5','DNLfyuC','DxrMltG','v09vA1i','tMHArMu','uNbuBfO','wMT2s2S','CfvqA2G','C2HHnteY','Cw9pCwG','z2v0qxv0AfrHzW','64Ui64UKicJTMitSNQW6ia','ywvZlti1nI1NyW','yuDZAfe','BNDXv2C'];_0x24cb=function(){return _0x3d82bf;};return _0x24cb();}export function decryptContent(_0x358708,_0x42529f){const _0x3d356d={'vyEaG':'base64','aoMMy':function(_0x1eaa9a,_0x1868ef,_0x4b42a2,_0x4c5a84){return _0x1eaa9a(_0x1868ef,_0x4b42a2,_0x4c5a84);},'RpTlZ':_0x81f37f(0x35b,0x358),'WOUkR':_0x53b114(0x461,0x44b),'nwqWg':function(_0x4af389,_0x2b7777){return _0x4af389!==_0x2b7777;}};if(_0x42529f[_0x53b114(0x45e,0x469)]!==KEY_LENGTH)throw new Error('암호화\x20키는\x20'+KEY_LENGTH+(_0x53b114(0x47e,0x47a)+'니다\x20(현재:\x20')+_0x42529f[_0x81f37f(0x35a,0x339)]+')');const _0x96afb1=Buffer[_0x53b114(0x480,0x463)](_0x358708['iv'],_0x3d356d[_0x53b114(0x429,0x44a)]),_0x2373c3=Buffer[_0x81f37f(0x33f,0x333)](_0x358708[_0x53b114(0x466,0x46f)],_0x3d356d[_0x81f37f(0x332,0x31a)]);function _0x81f37f(_0x5b3c43,_0x4884a3){return _0x466b09(_0x5b3c43,_0x4884a3-0x111);}const _0x53091b=Buffer[_0x53b114(0x441,0x463)](_0x358708[_0x53b114(0x469,0x459)],_0x53b114(0x47b,0x489)),_0x1cf253=_0x3d356d['aoMMy'](createDecipheriv,ALGORITHM,_0x42529f,_0x96afb1);function _0x53b114(_0x42ac7a,_0x21df03){return _0x466b09(_0x42ac7a,_0x21df03-0x241);}_0x1cf253['setAuthTag'](_0x53091b);try{if(_0x3d356d[_0x53b114(0x44c,0x44e)]===_0x3d356d[_0x53b114(0x436,0x44e)]){const _0x4c885e=Buffer[_0x81f37f(0x336,0x34d)]([_0x1cf253[_0x81f37f(0x341,0x354)](_0x2373c3),_0x1cf253['final']()]);return _0x4c885e[_0x81f37f(0x31a,0x33c)](_0x3d356d[_0x81f37f(0x326,0x31c)]);}else throw new _0x2c3b29(_0x81f37f(0x344,0x32d)+_0x51ece0+(_0x53b114(0x487,0x47a)+_0x81f37f(0x303,0x324))+_0x25e8a7['length']+')');}catch(_0x400f2a){if(_0x400f2a instanceof Error){if(_0x3d356d[_0x53b114(0x44a,0x457)]('UOwLR',_0x81f37f(0x30a,0x32b)))return null;else throw new Error('복호화\x20실패:\x20'+_0x400f2a[_0x53b114(0x466,0x479)]+(_0x53b114(0x42e,0x448)+_0x53b114(0x464,0x462)));}throw _0x400f2a;}}export function encryptEmbedding(_0x42b7c0,_0x4d465b){const _0x44eea6={'NhZFe':function(_0x188c3c,_0x49dc5e){return _0x188c3c(_0x49dc5e);},'MGOcE':function(_0x4f1834,_0x24bcd8,_0x343ff8,_0x394fae){return _0x4f1834(_0x24bcd8,_0x343ff8,_0x394fae);}};function _0x1f5317(_0x28c10d,_0x331521){return _0x5a27bd(_0x331521-0x283,_0x28c10d);}const _0x117540=new Float64Array(_0x42b7c0),_0x3b9b62=Buffer['from'](_0x117540[_0x40120d(0xc5,0xb9)]);function _0x40120d(_0x48e4ff,_0x54e062){return _0x5a27bd(_0x54e062-0x14f,_0x48e4ff);}const _0x5126c1=_0x44eea6[_0x1f5317(0x1ce,0x1b3)](randomBytes,IV_LENGTH),_0x150706=_0x44eea6[_0x40120d(0xbf,0xa0)](createCipheriv,ALGORITHM,_0x4d465b,_0x5126c1),_0x422528=Buffer['concat']([_0x150706[_0x40120d(0xbe,0xb6)](_0x3b9b62),_0x150706[_0x40120d(0x90,0x93)]()]),_0x4f040d=_0x150706[_0x40120d(0x8f,0x85)](),_0x488644=Buffer[_0x40120d(0xa3,0xaf)]([_0x5126c1,_0x4f040d,_0x422528]);return _0x488644['toString']('base64');}export function decryptEmbedding(_0x31cb85,_0x256ec5){function _0x2d4774(_0x3abb09,_0x51a1e5){return _0x466b09(_0x3abb09,_0x51a1e5- -0x44e);}const _0x34e0c5={'aZBhq':function(_0x33b7d6,_0x1ef1d8){return _0x33b7d6<_0x1ef1d8;},'KIktY':function(_0x3c969f,_0x1abe21){return _0x3c969f+_0x1abe21;},'vtubo':function(_0x132442,_0x4b1265){return _0x132442+_0x4b1265;}},_0x507f2e=Buffer[_0x2d4774(-0x237,-0x22c)](_0x31cb85,_0x5ca034(0x590,0x59c));if(_0x34e0c5[_0x5ca034(0x565,0x57c)](_0x507f2e[_0x5ca034(0x570,0x57d)],_0x34e0c5[_0x2d4774(-0x20d,-0x219)](IV_LENGTH,TAG_LENGTH)))throw new Error(_0x2d4774(-0x238,-0x21a)+_0x5ca034(0x586,0x59d)+'다');const _0x142a1a=_0x507f2e[_0x5ca034(0x587,0x580)](0x0,IV_LENGTH),_0x250678=_0x507f2e[_0x2d4774(-0x21f,-0x20f)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x13e7eb=_0x507f2e[_0x2d4774(-0x206,-0x20f)](_0x34e0c5[_0x2d4774(-0x203,-0x225)](IV_LENGTH,TAG_LENGTH));function _0x5ca034(_0x65fae5,_0x2e1b93){return _0x466b09(_0x2e1b93,_0x65fae5-0x348);}const _0x2b9aaf=createDecipheriv(ALGORITHM,_0x256ec5,_0x142a1a);_0x2b9aaf[_0x2d4774(-0x1f9,-0x211)](_0x250678);try{const _0xdab785=Buffer[_0x2d4774(-0x221,-0x212)]([_0x2b9aaf[_0x5ca034(0x58b,0x58b)](_0x13e7eb),_0x2b9aaf[_0x2d4774(-0x244,-0x22e)]()]),_0x3f865b=new Float64Array(_0xdab785[_0x5ca034(0x58e,0x5a1)],_0xdab785[_0x2d4774(-0x236,-0x21d)],_0xdab785[_0x5ca034(0x56d,0x572)]/Float64Array[_0x2d4774(-0x20b,-0x217)+_0x2d4774(-0x22b,-0x224)]);return Array[_0x5ca034(0x56a,0x54a)](_0x3f865b);}catch(_0x4bd098){if(_0x4bd098 instanceof Error)throw new Error('임베딩\x20복호화\x20실패'+':\x20'+_0x4bd098[_0x2d4774(-0x223,-0x216)]);throw _0x4bd098;}}export function isValidEncryptedPayload(_0x23cc0f){const _0x4260e5={'yCEQr':function(_0x3acd4a,_0xe58dfc){return _0x3acd4a===_0xe58dfc;},'hDfxP':_0x5c1228(0x4cf,0x4f2)};if(typeof _0x23cc0f!==_0x5c1228(0x4cb,0x4c6)||_0x4260e5[_0x11f066(0x549,0x563)](_0x23cc0f,null))return![];const _0x161a95=_0x23cc0f;function _0x11f066(_0x175768,_0x21c38b){return _0x466b09(_0x21c38b,_0x175768-0x313);}function _0x5c1228(_0x1ddbc3,_0x84e2a){return _0x466b09(_0x84e2a,_0x1ddbc3-0x29c);}return typeof _0x161a95[_0x5c1228(0x4ca,0x4b5)]===_0x4260e5['hDfxP']&&_0x4260e5[_0x11f066(0x549,0x527)](typeof _0x161a95['iv'],'string')&&typeof _0x161a95[_0x11f066(0x52b,0x520)]===_0x4260e5['hDfxP'];}export function wrapEncryptedContent(_0x12816b){function _0x280f37(_0x38d015,_0x2077fd){return _0x5a27bd(_0x38d015-0xb3,_0x2077fd);}function _0x37804e(_0x19ec15,_0x225020){return _0x5a27bd(_0x225020-0xb4,_0x19ec15);}return JSON[_0x37804e(-0x3c,-0x20)]({'encrypted':!![],'data':_0x12816b['ciphertext'],'iv':_0x12816b['iv'],'tag':_0x12816b[_0x37804e(0x0,-0x10)]});}export function unwrapEncryptedContent(_0x401643){function _0x221de8(_0x305c1c,_0x47e149){return _0x466b09(_0x47e149,_0x305c1c-0x71);}const _0x1294cb={'zSstT':'object','qOYUe':function(_0x36110e,_0x106dcc){return _0x36110e===_0x106dcc;},'KPGAF':function(_0x2ad61d,_0x4e8f37){return _0x2ad61d===_0x4e8f37;},'ArrTb':function(_0x846ead,_0x4b477b){return _0x846ead===_0x4b477b;},'JgXdi':'string','aYJPR':function(_0x359d12,_0x498a99){return _0x359d12!==_0x498a99;},'PZOuU':function(_0x390d0c,_0x1860bd){return _0x390d0c!==_0x1860bd;}};function _0x24c662(_0x3bd305,_0xed42b7){return _0x466b09(_0xed42b7,_0x3bd305- -0x2f6);}try{const _0x410aa6=JSON[_0x221de8(0x298,0x29e)](_0x401643);if(_0x1294cb[_0x24c662(-0xb1,-0xc4)](_0x410aa6[_0x24c662(-0xd3,-0xe0)],!![]))return null;if(_0x1294cb[_0x24c662(-0xd8,-0xca)](typeof _0x410aa6[_0x24c662(-0xc4,-0xd8)],_0x24c662(-0xc3,-0xb2))||typeof _0x410aa6['iv']!==_0x1294cb['JgXdi']||_0x1294cb[_0x221de8(0x28f,0x2a5)](typeof _0x410aa6[_0x24c662(-0xde,-0xf3)],_0x24c662(-0xc3,-0xe4))){if(_0x24c662(-0xe5,-0xc7)!==_0x221de8(0x2ba,0x2c5))return null;else{if(typeof _0x4638f6!==ZTdgFF[_0x221de8(0x2b2,0x294)]||_0x1ba2c0===null)return![];const _0xe3acf7=_0x180f0e;return ZTdgFF['qOYUe'](typeof _0xe3acf7[_0x24c662(-0xc8,-0xdb)],_0x221de8(0x2a4,0x2ab))&&ZTdgFF['KPGAF'](typeof _0xe3acf7['iv'],_0x221de8(0x2a4,0x2a5))&&ZTdgFF[_0x221de8(0x2b1,0x2d4)](typeof _0xe3acf7[_0x24c662(-0xde,-0xde)],ZTdgFF['JgXdi']);}}return{'ciphertext':_0x410aa6[_0x221de8(0x2a3,0x2a2)],'iv':_0x410aa6['iv'],'tag':_0x410aa6[_0x221de8(0x289,0x2ab)]};}catch{return null;}}
|
package/dist/sync/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26d39e,_0x239040){var _0x12f02a=_0x26d39e();function _0x25288e(_0xfcb55e,_0x3e30ee){return _0x5a24(_0xfcb55e- -0x1c1,_0x3e30ee);}function _0xa1f6cc(_0x51dd56,_0x566e16){return _0x5a24(_0x51dd56- -0x75,_0x566e16);}while(!![]){try{var _0x59046a=parseInt(_0xa1f6cc(0x83,0x88))/0x1+parseInt(_0xa1f6cc(0x89,0x8a))/0x2+parseInt(_0xa1f6cc(0x85,0x89))/0x3*(-parseInt(_0xa1f6cc(0x82,0x84))/0x4)+parseInt(_0xa1f6cc(0x86,0x86))/0x5+parseInt(_0xa1f6cc(0x84,0x89))/0x6*(parseInt(_0xa1f6cc(0x87,0x8b))/0x7)+-parseInt(_0xa1f6cc(0x88,0x85))/0x8*(parseInt(_0x25288e(-0xc1,-0xc3))/0x9)+-parseInt(_0xa1f6cc(0x8a,0x8d))/0xa;if(_0x59046a===_0x239040)break;else _0x12f02a['push'](_0x12f02a['shift']());}catch(_0x17c59e){_0x12f02a['push'](_0x12f02a['shift']());}}}(_0xb016,0xa90a4));export{A2AClient}from'./client.js';export{MemorySynchronizer}from'./synchronizer.js';export{SyncQueue,mapCategory,mapTier}from'./queue.js';export{LocalVectorClock}from'./vector-clock.js';function _0xb016(){var _0x47ca7c=['mJq0mtyWs1brEfnP','nZaWmta3mgrbr05yta','mtiWndKYrM9kwMTA','ndqZmJHAA3LMCKq','ndC5mJK0u3jZEuTz','nNzIr3HTDG','odfbsKPRwxe','nJqXnti1nvfuCxnota','ndGZnJi0nhzushDHtW','nti4rffpq1fr'];_0xb016=function(){return _0x47ca7c;};return _0xb016();}export{TeamSynchronizer}from'./team-synchronizer.js';export{SyncScheduler}from'./scheduler.js';function _0x5a24(_0x4a525d,_0x1823bf){_0x4a525d=_0x4a525d-0xf7;var _0xb016a6=_0xb016();var _0x5a24d2=_0xb016a6[_0x4a525d];if(_0x5a24['AeQbai']===undefined){var _0x55bded=function(_0x2c21c4){var _0x36f57f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3ec662='',_0x4030e1='';for(var _0x33e44c=0x0,_0x2562e4,_0x5bdd6d,_0x4779f8=0x0;_0x5bdd6d=_0x2c21c4['charAt'](_0x4779f8++);~_0x5bdd6d&&(_0x2562e4=_0x33e44c%0x4?_0x2562e4*0x40+_0x5bdd6d:_0x5bdd6d,_0x33e44c++%0x4)?_0x3ec662+=String['fromCharCode'](0xff&_0x2562e4>>(-0x2*_0x33e44c&0x6)):0x0){_0x5bdd6d=_0x36f57f['indexOf'](_0x5bdd6d);}for(var _0x1143e0=0x0,_0x5423ab=_0x3ec662['length'];_0x1143e0<_0x5423ab;_0x1143e0++){_0x4030e1+='%'+('00'+_0x3ec662['charCodeAt'](_0x1143e0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4030e1);};_0x5a24['xwmkru']=_0x55bded,_0x5a24['TauUqn']={},_0x5a24['AeQbai']=!![];}var _0x28dfad=_0xb016a6[0x0],_0x3078de=_0x4a525d+_0x28dfad,_0x18bc3d=_0x5a24['TauUqn'][_0x3078de];return!_0x18bc3d?(_0x5a24d2=_0x5a24['xwmkru'](_0x5a24d2),_0x5a24['TauUqn'][_0x3078de]=_0x5a24d2):_0x5a24d2=_0x18bc3d,_0x5a24d2;}export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
|