a2a-memory 0.12.66 → 0.12.67
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 +7 -7
- 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/contextrank.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.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/measure.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/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/session-extract.js +1 -1
- package/dist/cli/commands/setup-wizard.d.ts +4 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.d.ts +1 -0
- 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/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.d.ts +49 -0
- package/dist/config/manager.js +1 -1
- package/dist/config/prompt-hook.d.ts +52 -0
- package/dist/config/prompt-hook.js +1 -0
- package/dist/contextrank/ac-matcher.js +1 -1
- package/dist/contextrank/edge-builder.js +1 -1
- package/dist/contextrank/rank-builder.js +1 -1
- package/dist/contextrank/signal-builder.js +1 -1
- package/dist/contextrank/since-store.js +1 -1
- package/dist/db/database.js +1 -1
- package/dist/db/integrity-marker.js +1 -1
- package/dist/db/usage-spool.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/channel-metrics.d.ts +23 -4
- package/dist/lifecycle/channel-metrics.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/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/session-extract.js +1 -1
- package/dist/lifecycle/shadow-rebuild.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/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/memoryrank-rerank.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.js +1 -1
- package/dist/utils/file-mode.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/test-isolation.js +1 -1
- package/package.json +1 -1
package/dist/skill/evaluator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4dd450,_0xaa8d6e){function _0x2400bf(_0x482b4d,_0x2fd828){return _0x2dac(_0x482b4d-0x18,_0x2fd828);}function _0x4663f4(_0x3c097d,_0x5b21de){return _0x2dac(_0x5b21de-0x150,_0x3c097d);}const _0x3d9b20=_0x4dd450();while(!![]){try{const _0x21ea29=parseInt(_0x4663f4(0x2f5,0x2c3))/0x1+-parseInt(_0x4663f4(0x295,0x2d9))/0x2+parseInt(_0x2400bf(0x1c2,0x16e))/0x3+parseInt(_0x2400bf(0x1b3,0x205))/0x4*(parseInt(_0x2400bf(0x156,0x14a))/0x5)+parseInt(_0x2400bf(0x14d,0x138))/0x6*(parseInt(_0x4663f4(0x2db,0x2aa))/0x7)+-parseInt(_0x4663f4(0x2bb,0x2f5))/0x8*(parseInt(_0x4663f4(0x25a,0x29b))/0x9)+parseInt(_0x2400bf(0x16a,0x181))/0xa*(parseInt(_0x2400bf(0x148,0x129))/0xb);if(_0x21ea29===_0xaa8d6e)break;else _0x3d9b20['push'](_0x3d9b20['shift']());}catch(_0x4e0c00){_0x3d9b20['push'](_0x3d9b20['shift']());}}}(_0x3f96,0xe0772));function _0x1674ff(_0x150c07,_0x5c74d2){return _0x2dac(_0x5c74d2- -0xab,_0x150c07);}import{randomUUID}from'node:crypto';import{cosineSimilarity}from'../extraction/similarity.js';function _0x4475ab(_0x28eee8,_0x528e22){return _0x2dac(_0x28eee8-0x2a2,_0x528e22);}function _0x2dac(_0x2c8ceb,_0x340c84){_0x2c8ceb=_0x2c8ceb-0x11a;const _0x3f96dd=_0x3f96();let _0x2dacc4=_0x3f96dd[_0x2c8ceb];if(_0x2dac['MxiVoR']===undefined){var _0x402cf2=function(_0x25cbf8){const _0x8fafe4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x339660='',_0x242618='';for(let _0x5c5061=0x0,_0x57b706,_0x29f76c,_0x13a3d2=0x0;_0x29f76c=_0x25cbf8['charAt'](_0x13a3d2++);~_0x29f76c&&(_0x57b706=_0x5c5061%0x4?_0x57b706*0x40+_0x29f76c:_0x29f76c,_0x5c5061++%0x4)?_0x339660+=String['fromCharCode'](0xff&_0x57b706>>(-0x2*_0x5c5061&0x6)):0x0){_0x29f76c=_0x8fafe4['indexOf'](_0x29f76c);}for(let _0x2b936e=0x0,_0x95a4a8=_0x339660['length'];_0x2b936e<_0x95a4a8;_0x2b936e++){_0x242618+='%'+('00'+_0x339660['charCodeAt'](_0x2b936e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x242618);};_0x2dac['ntvtcN']=_0x402cf2,_0x2dac['ylwcsA']={},_0x2dac['MxiVoR']=!![];}const _0x2be4c7=_0x3f96dd[0x0],_0x58ceaa=_0x2c8ceb+_0x2be4c7,_0x1ce6eb=_0x2dac['ylwcsA'][_0x58ceaa];return!_0x1ce6eb?(_0x2dacc4=_0x2dac['ntvtcN'](_0x2dacc4),_0x2dac['ylwcsA'][_0x58ceaa]=_0x2dacc4):_0x2dacc4=_0x1ce6eb,_0x2dacc4;}function _0x3f96(){const _0x3285fd=['C3rYAw5NAwz5','r2PtD0K','DxbKyxrLzef0','C3rHCNrZv2L0Aa','Dg9gAxHLza','BgXT','y2f0zwDVCNK','zg5RzuG','y2XHC3nPzNLdBW','zxzHBhvHDgvdBa','zxGUANm','rgT1Buq','BgvUz3rO','ChvZAa','BNrLBNq','CNvLl2zHBhnLla','y2uIoIaWlJaTmq','DxbKyxrLtwvTBW','DgvKqxq','y2X1C3rLCK1LBq','ywjZB3jIsw50BW','vgHYzxnOB2XK','DgfNCW','zwrKAw5NCW','oty5ntC3ngHpsfHUza','q29UzMLKzw5Jzq','Bwf4u2TPBgXZ','y3j5C3rHBgXPEG','C2TPBgXdB252zq','ntGWmdKYz0LKEeHx','BMnL','zurHExm','zw1IzwrKAw5N','BgfZDefJy2vZCW','zMLUza','C2f2zuvTyMvKza','Bwf4','u2fTCgXLig1LBq','mtCXnxLoANfQAq','EvjyyLO','ChjVAMvJDfbHDa','BgfZDefJDgL2yq','zdOG','CMLLCW','yNvPBgrtA2LSBa','C291CMnLtwvTBW','CKvjtxG','Aw9U','Dg9ju09tDhjPBG','BgXTvMfSAwrHDa','zMv0y2GGzMfPBa','ndvgCvPNCem','igzHAwXLzdOG','y29UzMLN','u2TPBgWGy3jLyq','yxzLCMfNzuvTyG','BNq6ia','CMfNzvnPBwLSyq','mtbWCez4qu0','y29TChv0zuf2zq','DgLTzw91Da','AM9PBG','BwLUuMvWzxrPDa','yMfZzty0','AwyGDgHLC2uGCW','y29UDgvUDa','mJHQCu9Ks24','Ahf3sLi','BMf0DxjL','AMvJDfvZywDL','y29UzMLKzw5Jzq','C2TPBgXFAwq','CML0Eq','C2TPBgW','C3bSAxq','rxzHBhvHDgLVBG','BwvZC2fNzq','Bwv0ytO','qxbbBw0','zg9TywLU','BgvHCM5PBMC','Aw1PBgfYig1LBq','zxH0CMfJDe1LDa','BwLUq29UzMLKzq','BMf0DxjLoG','ywrK','tgPhtxu','zNjVBq','CMv2Awv3q3LJBa','zMXVB3i','BNm6','ntGXoty3wK9Qu3zW','Dxn0zxi','BM93','CNnPB24','zxnLBNqGysbYzq','y29TChjLC3nuBW','y291BNroB25jBG','C2LTAwXHCML0Eq','zvnRAwXS','wfbtwxu','z0XNzxG','BwfW','runptK5sruzvuW','C2L6zq','C2vTyw50Awm','B3jPzxm','u2TPBgW','y29TCgXLDgu','C3rHyMLSAxr5','AxneDxbSAwnHDa','Cgf0DgvYBG','zxzHBhvHDgu','mZqZotuZmLzRCxnAtG','z2v0','v0jbtwu','zMLSDgvY','C29YDa','CMfUzg9T','q29UDgvUDa','q2f0zwDVCNK6ia','zw5HyMXLza','Aw5JBhvKzxm','zgvTB3rLzc1MCG','Dhbyt0i','DgHmte0','teXnihzHBgLKyq','ywnXqMm','B20TC2TPBgW','y3jLyxrLtwvTBW','Dg9tDhjPBMC','nZC2ng1kDvbXwa','q291BNq','lJb9','Dgf4B25VBxK6','DMfSAwrHDgvxAq','w1nRAwXSxsa','CNLjzhm','rujjDLa','z2v0vgLTzq','CgfYC2u','mtmXmtKYofboz0jdua','B0z0zMO','DgLVBIbMywLSzq','Aw9UCW','v1zLtKK','mJGYotCXn256B3jzwq','Aw5N','ywrHDge','DxnHyMXLihnRAq','C2v0','y2zIuvO','DgGGsLnptJOGEW','C2vZC2LVBKLK','B3jPzxm6','s2v5ihbHDhrLCG','C2XPy2u','rgv0zxjTAw5Lia','vfrMu0u','zwrbDa','CMv2Awv3u2TPBa','zw50CMLLCW','zMLSBa','BgLZDe1LBw9YAq','uMvZCg9Uzcb3Aq','AgfZ','DhjPBuvUza'];_0x3f96=function(){return _0x3285fd;};return _0x3f96();}const REAL_USAGE_THRESHOLD=0x2;export class SkillEvaluator{['db'];[_0x1674ff(0x5f,0xa2)];constructor(_0x2bf995,_0x51d049){this['db']=_0x2bf995,this['config']=_0x51d049;}async[_0x4475ab(0x42a,0x452)](_0x5da3f9,_0x326b36){const _0x331b50=this[_0x2b8771(-0x1ba,-0x1a9)]['skillConve'+_0x513f8f(-0x123,-0x173)];if(!_0x331b50?.['enabled'])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};function _0x2b8771(_0x4839af,_0x3f9a8e){return _0x4475ab(_0x3f9a8e- -0x598,_0x4839af);}const _0x3c3fbd=[],_0x42c914=[];let _0x26c90d=0x0,_0x1cea53=0x0;function _0x513f8f(_0x4b69ff,_0x42e2db){return _0x4475ab(_0x42e2db- -0x58b,_0x4b69ff);}try{if(_0x2b8771(-0x1e1,-0x190)!==_0x2b8771(-0x1cf,-0x1d7)){const _0x23ec65=this['db'][_0x513f8f(-0x12a,-0x12e)+'es']({'limit':0x1f4,'projectPath':_0x5da3f9}),_0x1cdacd=_0x23ec65[_0x2b8771(-0x178,-0x16a)](_0x521a41=>_0x521a41[_0x513f8f(-0x1c3,-0x1cb)]!=='skill'&&_0x521a41[_0x2b8771(-0x19e,-0x1be)]&&_0x521a41[_0x2b8771(-0x1f9,-0x1be)]['length']>0x0);if(_0x1cdacd[_0x513f8f(-0x1e3,-0x1c5)]<_0x331b50[_0x513f8f(-0x155,-0x193)+'ions'])return{'candidates':_0x42c914,'created':_0x26c90d,'skipped':_0x1cdacd[_0x513f8f(-0x1e0,-0x1c5)],'errors':_0x3c3fbd};const _0x557aa4=0x12c;let _0x8ddae7;if(_0x1cdacd['length']>_0x557aa4){const _0x224a94=[..._0x1cdacd][_0x2b8771(-0x154,-0x169)]((_0x386077,_0x10b149)=>new Date(_0x10b149['updatedAt'])[_0x513f8f(-0x16d,-0x146)]()-new Date(_0x386077[_0x513f8f(-0x216,-0x1cf)])['getTime']()),_0x3ebfc2=Math[_0x513f8f(-0x178,-0x178)](_0x557aa4*0.7),_0x15cc36=_0x557aa4-_0x3ebfc2,_0x95e294=_0x224a94[_0x513f8f(-0x163,-0x135)](0x0,_0x3ebfc2),_0x313a41=new Set(_0x95e294['map'](_0x26f6d8=>_0x26f6d8['id'])),_0x1d3248=_0x224a94['slice'](_0x3ebfc2)[_0x2b8771(-0x1a2,-0x16a)](_0x1773c6=>!_0x313a41[_0x513f8f(-0xfa,-0x12c)](_0x1773c6['id'])),_0x572b9c=[];for(let _0x325b4c=_0x1d3248[_0x2b8771(-0x1cc,-0x1d2)]-0x1;_0x325b4c>0x0&&_0x572b9c[_0x2b8771(-0x21f,-0x1d2)]<_0x15cc36;_0x325b4c--){const _0x158691=Math[_0x2b8771(-0x169,-0x185)](Math[_0x2b8771(-0x150,-0x168)]()*(_0x325b4c+0x1));[_0x1d3248[_0x325b4c],_0x1d3248[_0x158691]]=[_0x1d3248[_0x158691],_0x1d3248[_0x325b4c]],_0x572b9c[_0x513f8f(-0x179,-0x1c4)](_0x1d3248[_0x325b4c]);}_0x8ddae7=[..._0x95e294,..._0x572b9c];}else _0x8ddae7=_0x1cdacd;const _0x2a2c6b=this[_0x2b8771(-0x1dc,-0x1cb)+_0x513f8f(-0x155,-0x167)](_0x8ddae7,_0x331b50[_0x513f8f(-0x1a0,-0x16f)+_0x2b8771(-0x186,-0x1c9)]),_0x446314=_0x23ec65['filter'](_0x50412a=>_0x50412a[_0x2b8771(-0x19e,-0x1d8)]==='skill');let _0x28b8b7=_0x331b50[_0x2b8771(-0x1fc,-0x1c4)]-_0x446314[_0x2b8771(-0x222,-0x1d2)];for(const _0x4cbfc7 of _0x2a2c6b){if(_0x28b8b7<=0x0)break;const _0xc335dd=this[_0x2b8771(-0x18c,-0x1d5)+_0x2b8771(-0x1c3,-0x182)](_0x4cbfc7,_0x331b50[_0x513f8f(-0x146,-0x193)+_0x513f8f(-0x168,-0x141)],_0x331b50['minConfide'+_0x2b8771(-0x1c8,-0x1c0)]);if(!_0xc335dd){_0x1cea53+=_0x4cbfc7[_0x2b8771(-0x18b,-0x1d2)];continue;}const _0x45ad8f=this[_0x513f8f(-0x14e,-0x163)+_0x513f8f(-0x1b1,-0x16e)](_0xc335dd,_0x446314);if(_0x45ad8f){_0x1cea53+=_0x4cbfc7[_0x2b8771(-0x1e2,-0x1d2)];continue;}_0x42c914[_0x513f8f(-0x174,-0x1c4)](_0xc335dd);if(_0x331b50[_0x513f8f(-0x150,-0x1a0)+_0x513f8f(-0x14f,-0x1a2)]&&this[_0x2b8771(-0x1f3,-0x1a9)][_0x513f8f(-0x1f1,-0x1cc)]?.[_0x513f8f(-0x18a,-0x158)])try{const _0x474580=await this[_0x513f8f(-0x180,-0x14a)+'thLLM'](_0xc335dd);if(!_0x474580){_0x1cea53+=_0x4cbfc7[_0x513f8f(-0x17c,-0x1c5)];continue;}}catch(_0x7815bf){_0x3c3fbd[_0x2b8771(-0x1f7,-0x1d1)]('LLM\x20valida'+'tion\x20faile'+_0x513f8f(-0x177,-0x1a7)+(_0x7815bf instanceof Error?_0x7815bf[_0x513f8f(-0x14f,-0x185)]:String(_0x7815bf)));}try{await this[_0x2b8771(-0x161,-0x17e)+_0x513f8f(-0x158,-0x166)](_0xc335dd,_0x326b36),_0x26c90d++,_0x28b8b7--;}catch(_0xe0f933){_0x3c3fbd[_0x2b8771(-0x1dc,-0x1d1)](_0x513f8f(-0x199,-0x19b)+_0x2b8771(-0x15e,-0x14f)+_0x2b8771(-0x188,-0x1b4)+(_0xe0f933 instanceof Error?_0xe0f933['message']:String(_0xe0f933)));}}}else return![];}catch(_0x2e256d){_0x3c3fbd['push'](_0x2b8771(-0x18e,-0x193)+_0x2b8771(-0x172,-0x1aa)+(_0x2e256d instanceof Error?_0x2e256d[_0x513f8f(-0x146,-0x185)]:String(_0x2e256d)));}return{'candidates':_0x42c914,'created':_0x26c90d,'skipped':_0x1cea53,'errors':_0x3c3fbd};}[_0x1674ff(0x70,0x80)+_0x1674ff(0xc4,0xd7)](_0x4526e6,_0x4d30d8){function _0x484523(_0x314369,_0x402a82){return _0x4475ab(_0x402a82- -0x59c,_0x314369);}const _0x3b8fb3=new Set(),_0x2e961a=[];for(const _0x1d86eb of _0x4526e6){if(_0x3b8fb3[_0x484523(-0x16a,-0x13d)](_0x1d86eb['id']))continue;if(!_0x1d86eb[_0x484523(-0x1f4,-0x1c2)])continue;const _0x13a08d=[_0x1d86eb];_0x3b8fb3[_0x484523(-0x1cb,-0x18d)](_0x1d86eb['id']);for(const _0x5f0333 of _0x4526e6){if(_0x3339de(0x29c,0x269)!=='ixcxR'){if(_0x3b8fb3[_0x3339de(0x299,0x292)](_0x5f0333['id']))continue;if(!_0x5f0333[_0x484523(-0x1d9,-0x1c2)])continue;const _0xfc3717=cosineSimilarity(_0x1d86eb[_0x484523(-0x17a,-0x1c2)],_0x5f0333['embedding']);_0xfc3717>=_0x4d30d8&&(_0x13a08d[_0x3339de(0x1ee,0x1fa)](_0x5f0333),_0x3b8fb3['add'](_0x5f0333['id']));}else _0x8f343d['push']('taxonomy:'+_0x22b50c[_0x3339de(0x215,0x23c)]),_0x22e9dd[_0x3339de(0x224,0x234)]&&_0x1cd89d['push']('taxonomy:'+_0x1cfa3f['skill_id']),_0x483a57[_0x3339de(0x200,0x231)]&&_0x75ac9e[_0x3339de(0x1f0,0x1fa)]('nature:'+_0x32b573[_0x3339de(0x25d,0x231)]);}_0x2e961a['push'](_0x13a08d);}function _0x3339de(_0x2eb44d,_0x16838c){return _0x4475ab(_0x16838c- -0x1cd,_0x2eb44d);}return _0x2e961a;}[_0x4475ab(0x3c3,0x3e1)+'uster'](_0xcdc82f,_0xfbba1c,_0x2f6c49){const _0x494196=0.5;if(_0xcdc82f[_0x530b68(0x287,0x2b7)]<_0xfbba1c)return null;const _0x2de47e=this[_0x3c0099(0x25c,0x236)+_0x3c0099(0x251,0x234)+_0x3c0099(0x24f,0x243)](_0xcdc82f);if(_0x2de47e<0.75)return null;let _0x2d4c09=_0x2de47e;const _0x3e0551=new Set(_0xcdc82f[_0x3c0099(0x283,0x261)](_0x4906e7=>_0x4906e7[_0x3c0099(0x262,0x294)])[_0x530b68(0x2ef,0x2b5)](Boolean));_0x3e0551[_0x3c0099(0x231,0x263)]>=0x2&&(_0x2d4c09*=1.2);const _0x2d94f4=new Map();for(const _0x519ad5 of _0xcdc82f){_0x3c0099(0x29e,0x28c)===_0x530b68(0x2a2,0x261)?_0x15fe60[_0x3c0099(0x27d,0x291)](_0x1a1dda[_0x3c0099(0x22c,0x201)],(_0x24d344[_0x3c0099(0x25e,0x26d)](_0x4b568b['category'])??0x0)+0x1):_0x2d94f4[_0x530b68(0x311,0x35f)](_0x519ad5[_0x530b68(0x281,0x29a)],(_0x2d94f4['get'](_0x519ad5[_0x530b68(0x281,0x2c4)])??0x0)+0x1);}let _0x3ba0fd=_0xcdc82f[0x0][_0x530b68(0x281,0x249)],_0x5c8634=0x0;function _0x3c0099(_0x4f2039,_0x4943e1){return _0x4475ab(_0x4943e1- -0x1bf,_0x4f2039);}for(const [_0x1bd59b,_0x36bc1a]of _0x2d94f4){'oFtfj'!==_0x3c0099(0x291,0x289)?_0x3bce5f[_0x1658e5]+=_0x2c4098[_0x530b68(0x29b,0x2b7)][_0x3e7a49]/_0x38adab[_0x530b68(0x287,0x25f)]:_0x36bc1a>_0x5c8634&&(_0x5c8634=_0x36bc1a,_0x3ba0fd=_0x1bd59b);}_0x5c8634/_0xcdc82f['length']>=0.5&&('XPSYu'===_0x3c0099(0x275,0x25f)?_0x2d4c09*=1.1:(_0x171dac+=_0x3ca108(_0x14191e[_0x72fa09][_0x3c0099(0x22a,0x21b)],_0x4732de[_0x421aff]['embedding']),_0x1ff8e3++));_0x2d4c09=Math['min'](_0x2d4c09,0x1);if(_0x2d4c09<_0x494196)return null;let _0x53df0c;const _0x367f7b=_0xcdc82f[_0x3c0099(0x275,0x26f)](_0x2bac92=>_0x2bac92[_0x3c0099(0x265,0x21b)]&&_0x2bac92['embedding'][_0x3c0099(0x22d,0x207)]>0x0);if(_0x367f7b['length']>=0x2){if(_0x530b68(0x2d1,0x2d4)===_0x3c0099(0x230,0x26e))_0x182a95[_0x3c0099(0x2dc,0x291)](_0x5e834f,(_0x28f4a5[_0x530b68(0x2ed,0x2d8)](_0x255d0c)??0x0)+0x1);else{const _0x100a55=_0x367f7b[0x0][_0x530b68(0x29b,0x28c)][_0x530b68(0x287,0x2bb)],_0x3aa1c5=new Array(_0x100a55)[_0x3c0099(0x2aa,0x29d)](0x0);for(const _0x49fe99 of _0x367f7b){for(let _0x503138=0x0;_0x503138<_0x100a55;_0x503138++){_0x3aa1c5[_0x503138]+=_0x49fe99[_0x3c0099(0x247,0x21b)][_0x503138]/_0x367f7b[_0x530b68(0x287,0x235)];}}let _0x47120b=0x0,_0x12b3f0=-0x1;for(let _0x339e34=0x0;_0x339e34<_0x367f7b[_0x530b68(0x287,0x2cb)];_0x339e34++){const _0xc96a20=cosineSimilarity(_0x3aa1c5,_0x367f7b[_0x339e34][_0x530b68(0x29b,0x29a)]);_0xc96a20>_0x12b3f0&&(_0x12b3f0=_0xc96a20,_0x47120b=_0x339e34);}_0x53df0c=_0x367f7b[_0x47120b]['content'][_0x530b68(0x317,0x2f6)](0x0,0x1f4);}}else{if('HoOuL'!==_0x3c0099(0x248,0x27a)){const _0x2e9cce=[..._0xcdc82f][_0x3c0099(0x2bb,0x270)]((_0x4533f3,_0x4d4752)=>_0x4d4752[_0x530b68(0x2bc,0x26d)]['length']-_0x4533f3[_0x530b68(0x2bc,0x279)][_0x530b68(0x287,0x238)]);_0x53df0c=_0x2e9cce[0x0][_0x530b68(0x2bc,0x2bc)][_0x3c0099(0x28a,0x297)](0x0,0x1f4);}else this['db']=_0x5c5061,this[_0x530b68(0x2b0,0x29f)]=_0x57b706;}function _0x530b68(_0x503435,_0x557615){return _0x4475ab(_0x503435- -0x13f,_0x557615);}const _0xec2981=new Map();for(const _0x511690 of _0xcdc82f){for(const _0x463541 of _0x511690[_0x530b68(0x291,0x2da)]){_0x3c0099(0x26b,0x23e)===_0x530b68(0x312,0x308)?_0x3bb145[_0x3c0099(0x1e5,0x208)](_0x530b68(0x2b1,0x2d2)+_0x530b68(0x30a,0x343)+_0x3c0099(0x1d8,0x225)+(_0x523c58 instanceof _0x3f81d6?_0x2d2713[_0x3c0099(0x297,0x247)]:_0x39e911(_0x16fc60))):_0xec2981['set'](_0x463541,(_0xec2981[_0x3c0099(0x21e,0x26d)](_0x463541)??0x0)+0x1);}}const _0x4ced13=Array[_0x3c0099(0x260,0x252)](_0xec2981[_0x530b68(0x31c,0x301)]())[_0x3c0099(0x21d,0x26f)](([,_0x3f243f])=>_0x3f243f>=0x2)[_0x3c0099(0x272,0x261)](([_0x46fb89])=>_0x46fb89);return{'clusterId':randomUUID(),'sourceMemories':_0xcdc82f,'category':_0x3ba0fd,'confidence':_0x2d4c09,'pattern':_0x53df0c,'tags':[..._0x4ced13,_0x3c0099(0x229,0x244),_0x3c0099(0x21a,0x216)+'ed']};}async[_0x4475ab(0x441,0x3f2)+_0x4475ab(0x437,0x470)](_0x3c6b73){function _0x34c6c0(_0x4a2c92,_0x5da9ed){return _0x4475ab(_0x4a2c92- -0x581,_0x5da9ed);}function _0x5361fe(_0x49a8f3,_0x5f440d){return _0x4475ab(_0x5f440d- -0x160,_0x49a8f3);}try{const {createLLMClient:_0x2eef4f}=await import('../llm/ind'+_0x5361fe(0x293,0x264)),_0x3ef510=_0x2eef4f(this[_0x34c6c0(-0x192,-0x15d)][_0x5361fe(0x286,0x25f)]),_0x2914c5=[_0x34c6c0(-0x12a,-0xdb)+_0x5361fe(0x251,0x29a)+_0x5361fe(0x2a1,0x2ab)+'ories\x20repr'+_0x5361fe(0x29c,0x2b9)+_0x5361fe(0x325,0x2ef)+'ll/pattern'+'.',_0x5361fe(0x34a,0x2fe)+_0x5361fe(0x2b8,0x2f2)+'\x22valid\x22:\x20t'+_0x34c6c0(-0x1b8,-0x1c3)+'\x20\x22confiden'+_0x34c6c0(-0x1b7,-0x18f)+_0x5361fe(0x2b8,0x2df),'',_0x5361fe(0x2bd,0x2d2)+_0x3c6b73[_0x5361fe(0x217,0x260)],'Pattern:\x20'+_0x3c6b73[_0x34c6c0(-0x158,-0x1a0)],'Source\x20cou'+_0x34c6c0(-0x18f,-0x16d)+_0x3c6b73[_0x34c6c0(-0x19a,-0x16e)+'ries'][_0x5361fe(0x2a3,0x266)],'',_0x5361fe(0x278,0x27f)+_0x34c6c0(-0x12d,-0x119),..._0x3c6b73[_0x34c6c0(-0x19a,-0x188)+'ries'][_0x34c6c0(-0x12b,-0x133)](0x0,0x3)[_0x34c6c0(-0x161,-0x12b)]((_0x102c10,_0x34a1d0)=>_0x34a1d0+0x1+'.\x20'+_0x102c10[_0x5361fe(0x24e,0x29b)][_0x34c6c0(-0x12b,-0x155)](0x0,0xc8))][_0x34c6c0(-0x18a,-0x197)]('\x0a'),_0x31349b=await _0x3ef510[_0x5361fe(0x2f8,0x2c6)](_0x2914c5),_0x56940f=JSON[_0x5361fe(0x2fb,0x2e6)](_0x31349b);return _0x56940f['valid']===!![]&&(_0x56940f[_0x34c6c0(-0x181,-0x135)]??0x0)>=(this[_0x34c6c0(-0x192,-0x1ab)][_0x34c6c0(-0x1ab,-0x1a1)+'rsion']?.[_0x34c6c0(-0x174,-0x13f)+_0x5361fe(0x2a1,0x278)]??0.7);}catch(_0x43e517){const _0x253b02=_0x43e517 instanceof Error?_0x43e517[_0x5361fe(0x295,0x2a6)]:String(_0x43e517);if(_0x253b02[_0x34c6c0(-0x14d,-0x129)](_0x34c6c0(-0x18b,-0x188))||_0x253b02[_0x34c6c0(-0x14d,-0x18e)](_0x34c6c0(-0x160,-0x136)+'ED')||_0x253b02[_0x5361fe(0x2fb,0x2d4)](_0x5361fe(0x25e,0x28c)+'ed'))return![];return![];}}async[_0x4475ab(0x41a,0x40e)+_0x1674ff(0xf3,0xd8)](_0x38a62c,_0x458176){function _0x57026a(_0xa06f5d,_0x44b95c){return _0x4475ab(_0x44b95c- -0x2b,_0xa06f5d);}const _0x1b6dde=new Date()[_0x57026a(0x3ba,0x3bf)+'g'](),_0x592899=new Date(Date[_0x118367(0x1af,0x1eb)]()+(this[_0x57026a(0x3c8,0x3c4)]['skillConve'+_0x118367(0x1b0,0x1b3)]?.[_0x118367(0x1aa,0x1d0)+_0x57026a(0x3fa,0x3ae)]??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x118367(0x182,0x1b7)+'g'](),_0x4745d9=this[_0x57026a(0x3d1,0x3bb)+_0x118367(0x1c9,0x1b2)](_0x38a62c);let _0x8edc2e=null;if(_0x458176)try{_0x8edc2e=await _0x458176[_0x118367(0x15a,0x163)+_0x118367(0x160,0x18f)]({'content':_0x38a62c[_0x57026a(0x421,0x3fe)],'tags':_0x38a62c[_0x118367(0x168,0x1a1)][_0x118367(0x1c6,0x1b4)](_0x4ef17c=>!_0x4ef17c[_0x118367(0x155,0x14c)]('meta:')&&_0x4ef17c!==_0x57026a(0x3c8,0x3d8)&&_0x4ef17c!=='crystalliz'+'ed'),'category':_0x38a62c[_0x118367(0x158,0x151)]});}catch{}const _0x1731e9={'sourceMemoryIds':_0x38a62c['sourceMemo'+_0x118367(0x17d,0x152)][_0x118367(0x1b8,0x1c6)](_0x365421=>_0x365421['id']),'crystallizedAt':_0x1b6dde,'confidence':_0x38a62c[_0x57026a(0x41f,0x3d5)],'reviewDueAt':_0x592899,'activationCount':0x0,..._0x8edc2e&&{'taxonomyDomain':_0x8edc2e[_0x118367(0x1a1,0x1d6)],'taxonomySkillId':_0x8edc2e[_0x118367(0x199,0x1e4)]??undefined,'taxonomyNature':_0x8edc2e[_0x57026a(0x386,0x3d3)]??undefined,'taxonomyStability':_0x8edc2e[_0x118367(0x1bf,0x1b3)]??undefined,'taxonomyConfidence':_0x8edc2e['confidence']}},_0x3d5e5c=_0x118367(0x19f,0x188)+Buffer[_0x118367(0x1a9,0x15e)](JSON[_0x118367(0x1f9,0x1a8)](_0x1731e9))['toString'](_0x57026a(0x396,0x3ce)),_0x4ae2f9=[];_0x8edc2e&&(_0x4ae2f9[_0x118367(0x15f,0x110)](_0x118367(0x1d8,0x196)+_0x8edc2e['domain']),_0x8edc2e[_0x57026a(0x3e8,0x3d6)]&&_0x4ae2f9[_0x57026a(0x37f,0x39c)](_0x57026a(0x3ef,0x415)+_0x8edc2e[_0x118367(0x199,0x1d3)]),_0x8edc2e[_0x57026a(0x3d0,0x3d3)]&&_0x4ae2f9[_0x118367(0x15f,0x18c)](_0x57026a(0x3f7,0x3e3)+_0x8edc2e[_0x118367(0x196,0x14f)]));function _0x118367(_0x20d179,_0x5c2757){return _0x4475ab(_0x20d179- -0x268,_0x5c2757);}const _0x11637b=this['db'][_0x118367(0x1d3,0x213)+'ry']({'content':_0x4745d9,'category':'skill','tier':_0x118367(0x1bb,0x1f7),'tags':[..._0x38a62c['tags'],..._0x4ae2f9,_0x3d5e5c],'projectPath':_0x38a62c['sourceMemo'+'ries'][0x0]?.[_0x57026a(0x3f7,0x3b7)+'h']}),_0xb8df6a=_0x38a62c[_0x57026a(0x3b5,0x3bc)+'ries'][_0x118367(0x1b8,0x1b2)](_0x7661b6=>_0x7661b6[_0x57026a(0x3f8,0x3af)])['filter'](_0x3faa46=>!!_0x3faa46&&_0x3faa46[_0x57026a(0x35e,0x39b)]>0x0);if(_0xb8df6a[_0x118367(0x15e,0x12d)]>0x0){const _0x4b6192=this['averageEmb'+_0x118367(0x169,0x192)](_0xb8df6a);this['db'][_0x57026a(0x3c3,0x3b2)+_0x118367(0x1e5,0x219)](_0x11637b['id'],_0x4b6192);}return _0x11637b;}[_0x4475ab(0x45a,0x4aa)+'ls'](){const _0x107173=new Date();let _0x4a3553=0x0;function _0x2e2e77(_0x5da01c,_0x73efda){return _0x4475ab(_0x73efda- -0x325,_0x5da01c);}let _0x37fcaa=0x0;function _0x408219(_0x29e165,_0x84749e){return _0x4475ab(_0x29e165-0x8,_0x84749e);}let _0x2b3e3a=0x0,_0x178548=0x0;const _0x241622=this['db'][_0x2e2e77(0x13f,0x138)+'es']({'category':_0x408219(0x40b,0x44f),'limit':0x3e8});for(const _0x1a91af of _0x241622){_0x4a3553++;const _0x2d734f=this['extractMet'+'adata'](_0x1a91af);if(!_0x2d734f)continue;const _0x2889ff=new Date(_0x2d734f['reviewDueA'+'t']);if(_0x107173<_0x2889ff)continue;let _0x34ebe1;try{_0x34ebe1=this['db'][_0x2e2e77(0xf1,0xf6)+_0x408219(0x407,0x441)](_0x1a91af['id']);}catch{_0x34ebe1=null;}if(_0x34ebe1===null){_0x178548++;continue;}if(_0x34ebe1<REAL_USAGE_THRESHOLD)this['db'][_0x408219(0x3d3,0x3c2)+'ry'](_0x1a91af['id'],{'category':_0x408219(0x412,0x465),'tags':[..._0x1a91af[_0x408219(0x3d8,0x3dd)]['filter'](_0x320b68=>_0x320b68!==_0x408219(0x40b,0x3ec)&&_0x320b68!==_0x408219(0x3dd,0x38d)+'ed'&&_0x320b68!=='demoted-fr'+_0x408219(0x442,0x40e)),_0x408219(0x43d,0x429)+'om-skill']}),_0x37fcaa++;else{if(_0x2e2e77(0x13e,0x13d)===_0x2e2e77(0xd3,0x11f))_0x539d8c[_0x408219(0x3cf,0x405)](_0x2e2e77(0x11e,0x113)+_0x2e2e77(0x119,0x124)+_0x408219(0x3ec,0x3c2)+(_0x2e70a8 instanceof _0x108596?_0x2b2302['message']:_0x27c1ce(_0x2207fa)));else{const _0x6f4850=new Date(Date[_0x2e2e77(0x10e,0xf2)]()+(this[_0x408219(0x3f7,0x430)][_0x2e2e77(0xf5,0xb1)+_0x408219(0x420,0x469)]?.[_0x2e2e77(0xc8,0xed)+'eDays']??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x408219(0x3f2,0x3f4)+'g'](),_0x2dc4df={..._0x2d734f,'reviewDueAt':_0x6f4850,'activationCount':_0x34ebe1,'lastActivatedAt':_0x1a91af[_0x408219(0x3e3,0x40e)+_0x408219(0x461,0x486)]},_0x4fdd37=_0x408219(0x40f,0x413)+Buffer[_0x2e2e77(0x102,0xec)](JSON[_0x2e2e77(0x17f,0x13c)](_0x2dc4df))['toString'](_0x2e2e77(0x108,0xd4)),_0x553a44=_0x1a91af[_0x2e2e77(0xe0,0xab)]['filter'](_0x572871=>!_0x572871[_0x2e2e77(0xdc,0x98)](_0x408219(0x40f,0x439)));_0x553a44['push'](_0x4fdd37),this['db'][_0x2e2e77(0x91,0xa6)+'ry'](_0x1a91af['id'],{'tags':_0x553a44}),_0x2b3e3a++;}}}return{'reviewed':_0x4a3553,'demoted':_0x37fcaa,'renewed':_0x2b3e3a,'unknownUsage':_0x178548};}['computeAve'+_0x1674ff(0x84,0xa6)+_0x1674ff(0xbc,0xb5)](_0x5d18a6){function _0x838a67(_0x2138e1,_0x33b8c5){return _0x4475ab(_0x2138e1- -0x28a,_0x33b8c5);}if(_0x5d18a6['length']<0x2)return 0x1;let _0x3f4a86=0x0;function _0x245c8d(_0x14c959,_0x505b77){return _0x4475ab(_0x505b77- -0x127,_0x14c959);}let _0x4b42f8=0x0;for(let _0x375ccf=0x0;_0x375ccf<_0x5d18a6[_0x838a67(0x13c,0x185)];_0x375ccf++){for(let _0x1a0f7b=_0x375ccf+0x1;_0x1a0f7b<_0x5d18a6[_0x838a67(0x13c,0x14b)];_0x1a0f7b++){if(_0x245c8d(0x289,0x29e)!==_0x245c8d(0x2b2,0x29e)){const _0x43fe1c=[..._0x271ad4][_0x245c8d(0x2b9,0x308)]((_0x5fe651,_0x29a87f)=>new _0x258bb4(_0x29a87f['updatedAt'])[_0x245c8d(0x366,0x31e)]()-new _0x411789(_0x5fe651[_0x245c8d(0x283,0x295)])[_0x245c8d(0x361,0x31e)]()),_0x47ca92=_0x4db994[_0x838a67(0x189,0x1c1)](_0x52feb4*0.7),_0x438731=_0x14824e-_0x47ca92,_0x509c51=_0x43fe1c[_0x245c8d(0x324,0x32f)](0x0,_0x47ca92),_0x15f2bf=new _0x4a9576(_0x509c51[_0x245c8d(0x31b,0x2f9)](_0x135650=>_0x135650['id'])),_0x53c0b3=_0x43fe1c[_0x245c8d(0x34e,0x32f)](_0x47ca92)[_0x838a67(0x1a4,0x1f6)](_0x243fd1=>!_0x15f2bf[_0x838a67(0x1d5,0x224)](_0x243fd1['id'])),_0x1c9627=[];for(let _0x4de777=_0x53c0b3['length']-0x1;_0x4de777>0x0&&_0x1c9627[_0x245c8d(0x2ed,0x29f)]<_0x438731;_0x4de777--){const _0x39ca6e=_0x1463ec[_0x838a67(0x189,0x182)](_0x2793d1[_0x838a67(0x1a6,0x17b)]()*(_0x4de777+0x1));[_0x53c0b3[_0x4de777],_0x53c0b3[_0x39ca6e]]=[_0x53c0b3[_0x39ca6e],_0x53c0b3[_0x4de777]],_0x1c9627[_0x245c8d(0x2a7,0x2a0)](_0x53c0b3[_0x4de777]);}_0x587f91=[..._0x509c51,..._0x1c9627];}else _0x5d18a6[_0x375ccf][_0x838a67(0x150,0x100)]&&_0x5d18a6[_0x1a0f7b][_0x838a67(0x150,0x122)]&&(_0x3f4a86+=cosineSimilarity(_0x5d18a6[_0x375ccf][_0x245c8d(0x28d,0x2b3)],_0x5d18a6[_0x1a0f7b][_0x838a67(0x150,0x11b)]),_0x4b42f8++);}}return _0x4b42f8>0x0?_0x3f4a86/_0x4b42f8:0x0;}['isDuplicat'+_0x4475ab(0x41d,0x458)](_0x1ab176,_0x42350d){const _0x57b953=new Set(_0x1ab176[_0x249086(0x270,0x22b)+'ries']['map'](_0x27f069=>_0x27f069['id']));function _0x3f2f1f(_0xc9f46f,_0x55c303){return _0x1674ff(_0xc9f46f,_0x55c303- -0x174);}for(const _0x4e0cab of _0x42350d){const _0x35a5fc=this[_0x3f2f1f(-0x9b,-0xb5)+_0x249086(0x2d7,0x2c1)](_0x4e0cab);if(!_0x35a5fc)continue;const _0x53b250=new Set(_0x35a5fc[_0x3f2f1f(-0xdf,-0xda)+'ryIds']),_0x451f7f=[..._0x57b953][_0x249086(0x2b7,0x30a)](_0x2ae1e8=>_0x53b250['has'](_0x2ae1e8))['length'],_0x59ece6=_0x451f7f/Math[_0x249086(0x267,0x2a8)](_0x57b953['size'],_0x53b250['size']);if(_0x59ece6>=0.7)return!![];}function _0x249086(_0x493bb3,_0x3a77dc){return _0x1674ff(_0x3a77dc,_0x493bb3-0x1d6);}return![];}[_0x1674ff(0x90,0x99)+_0x1674ff(0x9e,0xe4)](_0x344b41){const _0x5063b6=[];function _0x1a20d4(_0x2d21f9,_0x10c380){return _0x1674ff(_0x10c380,_0x2d21f9- -0x7c);}_0x5063b6[_0xbe1b56(-0x278,-0x24d)](_0x1a20d4(0x79,0x98)+_0x344b41['pattern']),_0x5063b6[_0x1a20d4(-0x2,-0x35)](''),_0x5063b6[_0xbe1b56(-0x24b,-0x24d)](_0xbe1b56(-0x1ab,-0x1e2)+_0x344b41['category']);function _0xbe1b56(_0x25e2f2,_0x5d86cb){return _0x1674ff(_0x25e2f2,_0x5d86cb- -0x2c7);}_0x5063b6[_0x1a20d4(-0x2,-0x8)]('Sources:\x20'+_0x344b41['sourceMemo'+'ries'][_0xbe1b56(-0x288,-0x24e)]+'\x20memories'),_0x5063b6[_0x1a20d4(-0x2,0x5)](_0xbe1b56(-0x276,-0x241)+':\x20'+(_0x344b41[_0xbe1b56(-0x204,-0x214)]*0x64)[_0x1a20d4(-0xb,-0x21)](0x0)+'%');if(_0x344b41[_0xbe1b56(-0x208,-0x22d)+'ries'][_0x1a20d4(-0x3,0x2b)]>0x1){_0x5063b6[_0x1a20d4(-0x2,0x42)](''),_0x5063b6[_0xbe1b56(-0x25b,-0x24d)](_0x1a20d4(0x8c,0xc9)+_0x1a20d4(0x4b,0x2b));for(const _0x4012f2 of _0x344b41[_0x1a20d4(0x1e,0x49)+'ries'][_0xbe1b56(-0x1b6,-0x1be)](0x0,0x3)){const _0x22f810=_0x4012f2['content'][_0x1a20d4(0x3b,0x5b)]('\x0a')[0x0][_0x1a20d4(0x8d,0xb0)](0x0,0x96);_0x5063b6[_0x1a20d4(-0x2,0x50)]('-\x20'+_0x22f810);}}return _0x5063b6[_0x1a20d4(0x2e,0x5f)]('\x0a');}[_0x1674ff(0xd1,0xbf)+'adata'](_0x5cf3c5){const _0x4b21ff=_0x5cf3c5['tags'][_0x1b82b2(-0x71,-0x52)](_0x26f1bd=>_0x26f1bd['startsWith'](_0x1b82b2(-0x46,-0x23)));if(!_0x4b21ff)return null;function _0x1449e4(_0x457158,_0xfe7ead){return _0x1674ff(_0xfe7ead,_0x457158-0x2f8);}function _0x1b82b2(_0x2fd15a,_0x4b7957){return _0x1674ff(_0x4b7957,_0x2fd15a- -0x100);}try{const _0x46cfd0=Buffer['from'](_0x4b21ff['slice'](0x5),'base64')[_0x1449e4(0x3e7,0x41b)]('utf-8');return JSON[_0x1449e4(0x3f1,0x40b)](_0x46cfd0);}catch{return null;}}[_0x4475ab(0x3f1,0x3bc)+_0x4475ab(0x3d1,0x414)](_0xa6e743){if(_0xa6e743[_0x5786cf(0x39e,0x3aa)]===0x0)return[];function _0x42a2f8(_0x55a303,_0x1a3ae5){return _0x4475ab(_0x1a3ae5- -0x1e2,_0x55a303);}const _0x4525d0=_0xa6e743[0x0][_0x42a2f8(0x1e6,0x1e4)],_0x38627f=new Array(_0x4525d0)[_0x5786cf(0x434,0x47c)](0x0);for(const _0x130fc9 of _0xa6e743){for(let _0x513704=0x0;_0x513704<_0x4525d0;_0x513704++){_0x42a2f8(0x21f,0x23d)===_0x42a2f8(0x1f7,0x23d)?_0x38627f[_0x513704]+=_0x130fc9[_0x513704]:_0x520da9*=1.1;}}for(let _0x33c7c6=0x0;_0x33c7c6<_0x4525d0;_0x33c7c6++){_0x38627f[_0x33c7c6]/=_0xa6e743['length'];}function _0x5786cf(_0x36b935,_0x2c4469){return _0x4475ab(_0x36b935- -0x28,_0x2c4469);}return _0x38627f;}[_0x4475ab(0x3ce,0x3dd)+'Skill'](_0x3d1621){if(!_0x3d1621[_0x299951(0x32f,0x334)]||_0x3d1621['category']==='skill')return _0x299951(0x3ad,0x3be)===_0x41f342(-0x1ab,-0x180)?{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]}:{'absorbed':![]};const _0x1276bf=this['db'][_0x41f342(-0xd8,-0x10b)+'es']({'limit':0xc8})[_0x299951(0x383,0x39b)](_0x4a90e0=>_0x4a90e0[_0x299951(0x315,0x356)]===_0x299951(0x358,0x39f));function _0x299951(_0x1dafcb,_0x2a7ca9){return _0x1674ff(_0x2a7ca9,_0x1dafcb-0x2a2);}for(const _0x49e9bb of _0x1276bf){if(!_0x49e9bb[_0x299951(0x32f,0x352)])continue;const _0xc37633=cosineSimilarity(_0x3d1621[_0x41f342(-0x150,-0x18e)],_0x49e9bb['embedding']);if(_0xc37633<0.8)continue;const _0x2616d6=this['extractMet'+'adata'](_0x49e9bb);if(!_0x2616d6)continue;if(_0x2616d6[_0x41f342(-0x146,-0x181)+'ryIds'][_0x299951(0x389,0x3b1)](_0x3d1621['id']))return{'absorbed':![]};_0x2616d6[_0x41f342(-0x1d1,-0x181)+_0x299951(0x398,0x3e1)][_0x41f342(-0x1cb,-0x1a1)](_0x3d1621['id']),_0x2616d6['activation'+_0x41f342(-0xfb,-0x12a)]=(_0x2616d6['activation'+_0x299951(0x393,0x3d7)]||0x0)+0x1,_0x2616d6[_0x41f342(-0x16a,-0x185)+_0x299951(0x321,0x371)]=new Date()[_0x299951(0x33f,0x32e)+'g']();const _0x27c32c=_0x41f342(-0x1ad,-0x161)+Buffer[_0x299951(0x366,0x374)](JSON['stringify'](_0x2616d6))[_0x299951(0x391,0x37e)](_0x41f342(-0x129,-0x16f)),_0x15754e=_0x49e9bb[_0x299951(0x325,0x358)][_0x299951(0x383,0x343)](_0x537447=>!_0x537447[_0x299951(0x312,0x307)](_0x41f342(-0x149,-0x161))),_0x14afd6='-\x20'+_0x3d1621[_0x299951(0x350,0x387)][_0x299951(0x359,0x399)]('\x0a')[0x0][_0x41f342(-0x161,-0x112)](0x0,0x96);let _0x2c6afe=_0x49e9bb[_0x41f342(-0x151,-0x16d)];const _0x430847=_0x2c6afe['split']('\x0a')[_0x41f342(-0x100,-0x13a)](_0x414977=>_0x414977[_0x299951(0x312,0x324)]('-\x20'));return _0x430847[_0x299951(0x31b,0x2f5)]<0x5&&(_0x2c6afe=_0x2c6afe[_0x41f342(-0xee,-0x108)]()+'\x0a'+_0x14afd6),this['db'][_0x299951(0x320,0x30d)+'ry'](_0x49e9bb['id'],{'content':_0x2c6afe,'tags':[..._0x15754e,_0x27c32c]}),{'absorbed':!![],'skillId':_0x49e9bb['id']};}function _0x41f342(_0x297dbb,_0x976e68){return _0x1674ff(_0x297dbb,_0x976e68- -0x21b);}return{'absorbed':![]};}}
|
|
1
|
+
function _0x8861c0(_0xb52ea2,_0x3a4934){return _0x395e(_0x3a4934- -0x294,_0xb52ea2);}(function(_0x627aec,_0x319618){function _0x7d1704(_0x27be63,_0x2b6adb){return _0x395e(_0x27be63- -0x2db,_0x2b6adb);}function _0xa1fd4f(_0x5895b2,_0x10b24d){return _0x395e(_0x5895b2- -0x130,_0x10b24d);}const _0x55e1b5=_0x627aec();while(!![]){try{const _0x1c9598=-parseInt(_0x7d1704(-0x15d,-0x199))/0x1+-parseInt(_0x7d1704(-0x12e,-0x140))/0x2*(-parseInt(_0x7d1704(-0x154,-0x137))/0x3)+-parseInt(_0x7d1704(-0x137,-0x128))/0x4+parseInt(_0x7d1704(-0x147,-0x15f))/0x5*(parseInt(_0x7d1704(-0x10c,-0xc2))/0x6)+-parseInt(_0x7d1704(-0x157,-0x145))/0x7+-parseInt(_0x7d1704(-0x117,-0xe2))/0x8*(parseInt(_0x7d1704(-0x102,-0xd6))/0x9)+-parseInt(_0xa1fd4f(0x24,0xc))/0xa*(-parseInt(_0x7d1704(-0x189,-0x18f))/0xb);if(_0x1c9598===_0x319618)break;else _0x55e1b5['push'](_0x55e1b5['shift']());}catch(_0x4396de){_0x55e1b5['push'](_0x55e1b5['shift']());}}}(_0x264b,0x8cd7e));import{randomUUID}from'node:crypto';import{cosineSimilarity}from'../extraction/similarity.js';const REAL_USAGE_THRESHOLD=0x2;function _0x264b(){const _0x237e33=['mJi3mdbhAfffrgK','y29UzMLKzw5Jzq','w1nRAwXSxsa','u2TPBgW','CNvLl2zHBhnLla','wfHfu08','u291CMnLignVDq','y29TChv0zuf2zq','CMfUzg9T','yMfZzty0','Aw5N','C2XPy2u','zg9TywLU','y3j5C3rHBgXPEG','y2uIoIaWlJaTmq','CMv2Awv3q3LJBa','C2LTAwXHCML0Eq','DvrYvw8','zMLSDgvY','zMLUza','y2X1C3rLCK1LBq','u2fTCgXLig1LBq','zNjVBq','zw1IzwrKAw5N','Aw9UCW','C291CMnLtwvTBW','BgLZDe1LBw9YAq','q291BNq','C2L6zq','DgLVBIbMywLSzq','AgfZ','B3jPzxm6','DxrMltG','Dg9tDhjPBMC','u2TPBgWGy3jLyq','yxzLCMfNzuvTyG','ChjVAMvJDfbHDa','DxnHyMXLihnRAq','ywrK','B20TC2TPBgW','igzHAwXLzdOG','Dxn0zxi','otq1nZr3tLjytuS','zw50CMLLCW','vgHYzxnOB2XK','u291CMnLCZOG','s2v5ihbHDhrLCG','BMnL','nJG5mtqWoxDhEevQwq','DMfSAwq','zwrbDa','nJK5uwj1B2Hx','t1fPuve','y2f0zwDVCNK','Aw5JBhvKzxm','iNzHBgLKiJOGDa','zxzHBhvHDgvdBa','CNLjzhm','rxzHBhvHDgLVBG','zMXVB3i','CgfYC2u','DMfSAwrHDgvxAq','BNrLBNq','q29UDgvUDa','mJK1nJe3nvDMyLrYwG','DxbKyxrLtwvTBW','DgfNCW','zwrKAw5NCW','BMf0DxjLoG','A2HNtMK','ywrHDge','CMfNzvnPBwLSyq','yNvPBgrtA2LSBa','AwyGDgHLC2uGCW','z2v0vgLTzq','BgvUz3rO','zMLSBa','C2vTyw50Awm','BNm6','BM93','mJuZmZeYmgTWsgXrqq','AxneDxbSAwnHDa','BwLUq29UzMLKzq','DgHmte0','zvnRAwXS','BwvZC2fNzq','zgvTB3rLzc1MCG','CMLLCW','wgThsfi','mJyYrxPurM5H','B3jPzxmGCMvWCG','qK5nwuS','ChvZAa','uKDlsvq','C2vZC2LVBKLK','BgvHCM5PBMC','ywn0AxzHDgLVBG','DhjPBuvUza','BgfZDefJDgL2yq','q2f0zwDVCNK6ia','CNnPB24','BMf0DxjL','BwLU','zxnLBNqGysbYzq','zdOG','ywjZB3jIsw50BW','C3rYAw5NAwz5','C2TPBgW','lJb9','C2f2zuvTyMvKza','CMzNyLO','Dg9ju09tDhjPBG','mJrxvLvRuge','Bwf4','Cgf0DgvYBG','zurHExm','C29YDa','zw5HyMXLza','Bwv0ytO','ugf0DgvYBJOG','C2TPBgXdB252zq','C2v0','C3rHCNrZv2L0Aa','nKHQwMfWsq','BwfW','lI4VBgXTl2LUza','DgvKqxq','B3jPzxm','y29UzMLN','icjJB25MAwrLBG','DgLTzw91Da','BNq6ia','BgWVCgf0DgvYBG','mZe3nJm3ourNC3DstW','Dgf4B25VBxK6','AMvJDfvZywDL','y29UDgvUDa','C3bSAxq','CML0Eq','DgGGsLnptJOGEW','Dg9gAxHLza','BgXT','BwLUuMvWzxrPDa','DxbKyxrLzef0','y3jLyxrLtwvTBW','z2v0','mtmYmtfZvNb6uxG','zxH0CMfJDe1LDa'];_0x264b=function(){return _0x237e33;};return _0x264b();}function _0x395e(_0x42dd19,_0x304c8f){_0x42dd19=_0x42dd19-0x14b;const _0x264b09=_0x264b();let _0x395ee3=_0x264b09[_0x42dd19];if(_0x395e['itydlP']===undefined){var _0x2e11f7=function(_0x33f489){const _0x127a7b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f3f0a='',_0x11468f='';for(let _0x44e216=0x0,_0x18e74e,_0x4911b1,_0x48614c=0x0;_0x4911b1=_0x33f489['charAt'](_0x48614c++);~_0x4911b1&&(_0x18e74e=_0x44e216%0x4?_0x18e74e*0x40+_0x4911b1:_0x4911b1,_0x44e216++%0x4)?_0x1f3f0a+=String['fromCharCode'](0xff&_0x18e74e>>(-0x2*_0x44e216&0x6)):0x0){_0x4911b1=_0x127a7b['indexOf'](_0x4911b1);}for(let _0x1f6346=0x0,_0x3aa9cb=_0x1f3f0a['length'];_0x1f6346<_0x3aa9cb;_0x1f6346++){_0x11468f+='%'+('00'+_0x1f3f0a['charCodeAt'](_0x1f6346)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x11468f);};_0x395e['LSJBVh']=_0x2e11f7,_0x395e['aPWfgY']={},_0x395e['itydlP']=!![];}const _0x32395c=_0x264b09[0x0],_0x275c89=_0x42dd19+_0x32395c,_0x1be61f=_0x395e['aPWfgY'][_0x275c89];return!_0x1be61f?(_0x395ee3=_0x395e['LSJBVh'](_0x395ee3),_0x395e['aPWfgY'][_0x275c89]=_0x395ee3):_0x395ee3=_0x1be61f,_0x395ee3;}function _0x3618ef(_0x28f0fe,_0x2f0900){return _0x395e(_0x28f0fe-0x197,_0x2f0900);}export class SkillEvaluator{['db'];[_0x3618ef(0x36b,0x35e)];constructor(_0x15e38c,_0x216b96){function _0x314642(_0x3a5f7b,_0x1bba07){return _0x3618ef(_0x1bba07- -0x499,_0x3a5f7b);}this['db']=_0x15e38c,this[_0x314642(-0x115,-0x12e)]=_0x216b96;}async['evaluate'](_0x28e245,_0x4fed0f){const _0x89a99b=this[_0x490438(0x429,0x463)][_0x14173e(0x4cc,0x4c9)+_0x490438(0x40d,0x408)];if(!_0x89a99b?.[_0x14173e(0x4c9,0x49a)])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};function _0x14173e(_0x195820,_0xa20994){return _0x3618ef(_0x195820-0x169,_0xa20994);}const _0x4f508d=[];function _0x490438(_0x42775f,_0x52e5a5){return _0x3618ef(_0x42775f-0xbe,_0x52e5a5);}const _0x84d512=[];let _0x1bbcba=0x0,_0x28d382=0x0;try{const _0x12a527=this['db'][_0x490438(0x3c3,0x3fc)+'es']({'limit':0x1f4,'projectPath':_0x28e245}),_0x1b54a0=_0x12a527[_0x14173e(0x466,0x4a8)](_0x3f84b7=>_0x3f84b7['category']!==_0x14173e(0x4bf,0x49a)&&_0x3f84b7[_0x490438(0x3c0,0x3f0)]&&_0x3f84b7[_0x14173e(0x46b,0x45c)][_0x14173e(0x49f,0x4e7)]>0x0);if(_0x1b54a0[_0x14173e(0x49f,0x4b0)]<_0x89a99b[_0x14173e(0x44e,0x465)+_0x490438(0x3c1,0x3c9)])return{'candidates':_0x84d512,'created':_0x1bbcba,'skipped':_0x1b54a0[_0x490438(0x3f4,0x43b)],'errors':_0x4f508d};const _0xf1d67e=0x12c;let _0x3a4587;if(_0x1b54a0['length']>_0xf1d67e){const _0x48cfbb=[..._0x1b54a0][_0x490438(0x41d,0x436)]((_0x47b235,_0x22e78e)=>new Date(_0x22e78e[_0x490438(0x3a4,0x397)])['getTime']()-new Date(_0x47b235[_0x490438(0x3a4,0x3dc)])['getTime']()),_0x5787d1=Math['floor'](_0xf1d67e*0.7),_0x44496b=_0xf1d67e-_0x5787d1,_0x579c82=_0x48cfbb['slice'](0x0,_0x5787d1),_0x3f6504=new Set(_0x579c82['map'](_0x2bbf75=>_0x2bbf75['id'])),_0x1ee741=_0x48cfbb[_0x14173e(0x45f,0x484)](_0x5787d1)['filter'](_0x23ce03=>!_0x3f6504[_0x490438(0x3c7,0x3d7)](_0x23ce03['id'])),_0x4b39ee=[];for(let _0x42d847=_0x1ee741[_0x490438(0x3f4,0x3ef)]-0x1;_0x42d847>0x0&&_0x4b39ee[_0x490438(0x3f4,0x423)]<_0x44496b;_0x42d847--){const _0xd1b5ec=Math[_0x14173e(0x48f,0x49e)](Math[_0x14173e(0x45c,0x428)]()*(_0x42d847+0x1));[_0x1ee741[_0x42d847],_0x1ee741[_0xd1b5ec]]=[_0x1ee741[_0xd1b5ec],_0x1ee741[_0x42d847]],_0x4b39ee['push'](_0x1ee741[_0x42d847]);}_0x3a4587=[..._0x579c82,..._0x4b39ee];}else _0x3a4587=_0x1b54a0;const _0x350f47=this[_0x14173e(0x468,0x492)+_0x490438(0x428,0x3ed)](_0x3a4587,_0x89a99b[_0x490438(0x3b9,0x39f)+_0x490438(0x3d5,0x40d)]),_0x763eb0=_0x12a527['filter'](_0x2a27fc=>_0x2a27fc['category']===_0x14173e(0x4bf,0x4ca));let _0x26b258=_0x89a99b['maxSkills']-_0x763eb0[_0x490438(0x3f4,0x3fb)];for(const _0xed5b32 of _0x350f47){if(_0x26b258<=0x0)break;const _0x583da5=this[_0x14173e(0x48c,0x462)+_0x490438(0x3d2,0x3e4)](_0xed5b32,_0x89a99b[_0x490438(0x3a3,0x3b7)+'ions'],_0x89a99b[_0x490438(0x3fb,0x3dc)+'nce']);if(!_0x583da5){_0x28d382+=_0xed5b32[_0x14173e(0x49f,0x4c1)];continue;}const _0x42fa89=this[_0x490438(0x3fa,0x407)+_0x490438(0x3fd,0x3f6)](_0x583da5,_0x763eb0);if(_0x42fa89){_0x28d382+=_0xed5b32['length'];continue;}_0x84d512[_0x14173e(0x4b0,0x4d7)](_0x583da5);if(_0x89a99b['llmValidat'+'ion']&&this[_0x14173e(0x4d4,0x4f0)]['llm']?.['enabled'])try{const _0x8e265b=await this[_0x14173e(0x491,0x466)+_0x490438(0x3fc,0x417)](_0x583da5);if(!_0x8e265b){_0x28d382+=_0xed5b32['length'];continue;}}catch(_0x4342f5){_0x4f508d[_0x14173e(0x4b0,0x47a)]('LLM\x20valida'+_0x490438(0x3c6,0x40c)+_0x490438(0x411,0x447)+(_0x4342f5 instanceof Error?_0x4342f5['message']:String(_0x4342f5)));}try{if(_0x490438(0x417,0x42d)!==_0x14173e(0x4c2,0x505)){if(_0x436bf9[_0x490438(0x3f4,0x409)]<0x2)return 0x1;let _0x395f87=0x0,_0x57c31b=0x0;for(let _0x293a0c=0x0;_0x293a0c<_0x4e21d8[_0x490438(0x3f4,0x3b0)];_0x293a0c++){for(let _0x2ed39f=_0x293a0c+0x1;_0x2ed39f<_0x57107c[_0x490438(0x3f4,0x42f)];_0x2ed39f++){_0x13f091[_0x293a0c]['embedding']&&_0xcf3f41[_0x2ed39f][_0x14173e(0x46b,0x442)]&&(_0x395f87+=_0x45a70f(_0x1fd896[_0x293a0c][_0x14173e(0x46b,0x499)],_0x1c0361[_0x2ed39f]['embedding']),_0x57c31b++);}}return _0x57c31b>0x0?_0x395f87/_0x57c31b:0x0;}else await this['compressTo'+_0x490438(0x3ac,0x3ea)](_0x583da5,_0x4fed0f),_0x1bbcba++,_0x26b258--;}catch(_0x15bb5f){'EyzSS'==='EyzSS'?_0x4f508d[_0x14173e(0x4b0,0x4f8)](_0x14173e(0x476,0x482)+_0x14173e(0x471,0x452)+_0x14173e(0x4bc,0x505)+(_0x15bb5f instanceof Error?_0x15bb5f[_0x14173e(0x4a9,0x4ef)]:String(_0x15bb5f))):(_0x26d405+=_0x40fd80(_0x4d8933[_0x279787]['embedding'],_0x57ad13[_0x576886][_0x490438(0x3c0,0x387)]),_0x274d2f++);}}}catch(_0x19de9f){_0x4f508d['push'](_0x490438(0x3e3,0x39c)+_0x490438(0x3d1,0x3ce)+(_0x19de9f instanceof Error?_0x19de9f[_0x14173e(0x4a9,0x473)]:String(_0x19de9f)));}return{'candidates':_0x84d512,'created':_0x1bbcba,'skipped':_0x28d382,'errors':_0x4f508d};}['clusterMem'+'ories'](_0x4f56f0,_0x284de6){const _0x51a276=new Set();function _0x49e31a(_0x211b02,_0x2adbcf){return _0x3618ef(_0x2adbcf-0x244,_0x211b02);}function _0x39d97b(_0x5c6379,_0x47c75a){return _0x3618ef(_0x5c6379- -0x12b,_0x47c75a);}const _0x10d34b=[];for(const _0x4e6587 of _0x4f56f0){if(_0x51a276[_0x39d97b(0x1de,0x1bf)](_0x4e6587['id']))continue;if(!_0x4e6587[_0x39d97b(0x1d7,0x1cc)])continue;const _0x506301=[_0x4e6587];_0x51a276[_0x39d97b(0x1e6,0x225)](_0x4e6587['id']);for(const _0x1a7281 of _0x4f56f0){if(_0x51a276[_0x49e31a(0x538,0x54d)](_0x1a7281['id']))continue;if(!_0x1a7281[_0x49e31a(0x578,0x546)])continue;const _0xa7f62e=cosineSimilarity(_0x4e6587['embedding'],_0x1a7281[_0x49e31a(0x506,0x546)]);_0xa7f62e>=_0x284de6&&(_0x506301['push'](_0x1a7281),_0x51a276[_0x39d97b(0x1e6,0x1d4)](_0x1a7281['id']));}_0x10d34b[_0x49e31a(0x56d,0x58b)](_0x506301);}return _0x10d34b;}[_0x3618ef(0x323,0x2df)+_0x8861c0(-0xe8,-0x117)](_0x44e039,_0x239fed,_0x421bc6){const _0x115904=0.5;if(_0x44e039[_0xc3b267(0x37f,0x362)]<_0x239fed)return null;const _0x4a0b9a=this['computeAve'+_0x3acafa(-0x23b,-0x24d)+'rity'](_0x44e039);if(_0x4a0b9a<0.75)return null;function _0x3acafa(_0x3d5cc1,_0x2826a0){return _0x3618ef(_0x2826a0- -0x57f,_0x3d5cc1);}let _0x1ed8ee=_0x4a0b9a;const _0x2ee795=new Set(_0x44e039['map'](_0x3d4f03=>_0x3d4f03[_0x3acafa(-0x22b,-0x236)])[_0x3acafa(-0x240,-0x282)](Boolean));_0x2ee795['size']>=0x2&&(_0x1ed8ee*=1.2);const _0x3bd4af=new Map();function _0xc3b267(_0x139985,_0x467335){return _0x3618ef(_0x139985-0x49,_0x467335);}for(const _0x21b310 of _0x44e039){'GnwDx'!==_0x3acafa(-0x272,-0x239)?_0x3bd4af['set'](_0x21b310['category'],(_0x3bd4af[_0x3acafa(-0x288,-0x297)](_0x21b310[_0x3acafa(-0x298,-0x25f)])??0x0)+0x1):_0x592f54>_0x156185&&(_0x22e896=_0x21970b,_0x5617e8=_0x1a2b4b);}let _0x144cda=_0x44e039[0x0][_0x3acafa(-0x271,-0x25f)],_0x26a60f=0x0;for(const [_0x431408,_0x49a93d]of _0x3bd4af){_0x49a93d>_0x26a60f&&(_0xc3b267(0x38c,0x36a)!=='yywzG'?(_0x26a60f=_0x49a93d,_0x144cda=_0x431408):_0x5351e8[_0xc3b267(0x3ad,0x38d)](_0x262666,(_0x5735e7['get'](_0x27c89f)??0x0)+0x1));}_0x26a60f/_0x44e039['length']>=0.5&&(_0x1ed8ee*=1.1);_0x1ed8ee=Math[_0xc3b267(0x39a,0x3cf)](_0x1ed8ee,0x1);if(_0x1ed8ee<_0x115904)return null;let _0x15d605;const _0x8087d2=_0x44e039['filter'](_0x46b0d6=>_0x46b0d6[_0xc3b267(0x34b,0x308)]&&_0x46b0d6[_0xc3b267(0x34b,0x324)][_0x3acafa(-0x226,-0x249)]>0x0);if(_0x8087d2[_0xc3b267(0x37f,0x392)]>=0x2){const _0x71e459=_0x8087d2[0x0][_0xc3b267(0x34b,0x38a)][_0xc3b267(0x37f,0x39a)],_0x16712f=new Array(_0x71e459)['fill'](0x0);for(const _0x5b231f of _0x8087d2){for(let _0x3075ab=0x0;_0x3075ab<_0x71e459;_0x3075ab++){_0x16712f[_0x3075ab]+=_0x5b231f[_0xc3b267(0x34b,0x307)][_0x3075ab]/_0x8087d2[_0xc3b267(0x37f,0x36a)];}}let _0x3e95ca=0x0,_0x37473e=-0x1;for(let _0x1086f7=0x0;_0x1086f7<_0x8087d2[_0xc3b267(0x37f,0x36c)];_0x1086f7++){const _0x4142f4=cosineSimilarity(_0x16712f,_0x8087d2[_0x1086f7][_0x3acafa(-0x23d,-0x27d)]);_0x4142f4>_0x37473e&&(_0x37473e=_0x4142f4,_0x3e95ca=_0x1086f7);}_0x15d605=_0x8087d2[_0x3e95ca][_0xc3b267(0x3bc,0x383)]['slice'](0x0,0x1f4);}else{const _0x4bf2ed=[..._0x44e039]['sort']((_0x17feb2,_0xbd41f4)=>_0xbd41f4[_0x3acafa(-0x231,-0x20c)][_0xc3b267(0x37f,0x3bc)]-_0x17feb2[_0xc3b267(0x3bc,0x3f7)][_0xc3b267(0x37f,0x33b)]);_0x15d605=_0x4bf2ed[0x0][_0x3acafa(-0x1c6,-0x20c)][_0x3acafa(-0x257,-0x289)](0x0,0x1f4);}const _0x19c90a=new Map();for(const _0x54d254 of _0x44e039){if('RGKIT'!==_0x3acafa(-0x27f,-0x237)){const _0x18ec16=this[_0x3acafa(-0x2b1,-0x271)+_0xc3b267(0x377,0x334)](_0x432443);this['db'][_0x3acafa(-0x26b,-0x227)+_0x3acafa(-0x24f,-0x28a)](_0x3794a1['id'],_0x18ec16);}else for(const _0x366244 of _0x54d254[_0xc3b267(0x376,0x384)]){_0x19c90a['set'](_0x366244,(_0x19c90a[_0x3acafa(-0x280,-0x297)](_0x366244)??0x0)+0x1);}}const _0x3602cb=Array[_0x3acafa(-0x28a,-0x27e)](_0x19c90a[_0x3acafa(-0x26d,-0x269)]())[_0x3acafa(-0x238,-0x282)](([,_0x5d6f61])=>_0x5d6f61>=0x2)[_0xc3b267(0x3b0,0x37c)](([_0x153f99])=>_0x153f99);return{'clusterId':randomUUID(),'sourceMemories':_0x44e039,'category':_0x144cda,'confidence':_0x1ed8ee,'pattern':_0x15d605,'tags':[..._0x3602cb,_0x3acafa(-0x268,-0x229),_0xc3b267(0x341,0x308)+'ed']};}async[_0x8861c0(-0x113,-0x103)+_0x8861c0(-0xd1,-0xed)](_0x32e3f7){function _0x59bf07(_0x1a7b59,_0x4293d6){return _0x3618ef(_0x4293d6- -0x26d,_0x1a7b59);}function _0x11d2e4(_0x1a7d4f,_0x3ef959){return _0x3618ef(_0x1a7d4f- -0x18e,_0x3ef959);}try{const {createLLMClient:_0x3c0c90}=await import(_0x11d2e4(0x1da,0x1c5)+'ex.js'),_0x3b3fb1=_0x3c0c90(this[_0x11d2e4(0x1dd,0x1bf)][_0x59bf07(0x61,0x77)]),_0x2cb8d0=['Determine\x20'+_0x11d2e4(0x1a6,0x1d3)+'imilar\x20mem'+_0x59bf07(0x92,0xd8)+_0x59bf07(0xb8,0xe5)+_0x11d2e4(0x182,0x16a)+_0x59bf07(0xe0,0x102)+'.','Respond\x20wi'+_0x11d2e4(0x154,0x17b)+_0x59bf07(0xbe,0xb5)+_0x59bf07(0x62,0x82)+_0x11d2e4(0x1de,0x1ef)+_0x59bf07(0x77,0x8c)+_0x11d2e4(0x1c9,0x20f),'',_0x59bf07(0xf8,0xe1)+_0x32e3f7[_0x11d2e4(0x192,0x18b)],_0x59bf07(0xdf,0xf5)+_0x32e3f7[_0x59bf07(0x124,0xf0)],_0x59bf07(0x67,0x84)+_0x59bf07(0x140,0x101)+_0x32e3f7[_0x11d2e4(0x176,0x1ab)+_0x59bf07(0x9a,0xd5)][_0x59bf07(0x10a,0xc9)],'',_0x11d2e4(0x172,0x15d)+_0x11d2e4(0x17c,0x1ae),..._0x32e3f7[_0x11d2e4(0x176,0x135)+_0x59bf07(0xf1,0xd5)]['slice'](0x0,0x3)[_0x59bf07(0xb8,0xfa)]((_0x1521c7,_0x2f5cf2)=>_0x2f5cf2+0x1+'.\x20'+_0x1521c7['content']['slice'](0x0,0xc8))]['join']('\x0a'),_0x582276=await _0x3b3fb1['complete'](_0x2cb8d0),_0x1a7bdf=JSON[_0x59bf07(0xe6,0xba)](_0x582276);return _0x1a7bdf[_0x11d2e4(0x18e,0x1b3)]===!![]&&(_0x1a7bdf[_0x11d2e4(0x15e,0x11d)]??0x0)>=(this[_0x59bf07(0x142,0xfe)][_0x11d2e4(0x1d5,0x18d)+_0x11d2e4(0x1c1,0x1e2)]?.['minConfide'+_0x59bf07(0x90,0xad)]??0.7);}catch(_0x4304a9){const _0x3523b1=_0x4304a9 instanceof Error?_0x4304a9['message']:String(_0x4304a9);if(_0x3523b1[_0x11d2e4(0x193,0x16d)](_0x11d2e4(0x1df,0x1b8))||_0x3523b1[_0x11d2e4(0x193,0x17e)]('ECONNREFUS'+'ED')||_0x3523b1['includes']('fetch\x20fail'+'ed'))return![];return![];}}async['compressTo'+_0x8861c0(-0x10c,-0x13d)](_0x30ecd7,_0x583e12){const _0x2756c2=new Date()[_0x588f2f(0x3b4,0x391)+'g'](),_0x3ee8b2=new Date(Date['now']()+(this[_0x4d86e5(0x15b,0x126)][_0x4d86e5(0x166,0x11e)+_0x588f2f(0x3a9,0x377)]?.[_0x4d86e5(0xf3,0xb5)+'eDays']??0x5a)*0x18*0x3c*0x3c*0x3e8)['toISOStrin'+'g'](),_0x59bd32=this[_0x588f2f(0x38d,0x38b)+_0x4d86e5(0xc6,0xe5)](_0x30ecd7);let _0x2441f5=null;if(_0x583e12)try{_0x2441f5=await _0x583e12['classifyCo'+_0x588f2f(0x383,0x389)]({'content':_0x30ecd7['pattern'],'tags':_0x30ecd7[_0x588f2f(0x387,0x3b7)][_0x588f2f(0x357,0x337)](_0x409ce8=>!_0x409ce8[_0x588f2f(0x3bf,0x402)](_0x4d86e5(0x154,0x11c))&&_0x409ce8!=='skill'&&_0x409ce8!=='crystalliz'+'ed'),'category':_0x30ecd7[_0x588f2f(0x37a,0x356)]});}catch{}const _0x34e9c7={'sourceMemoryIds':_0x30ecd7['sourceMemo'+_0x588f2f(0x39c,0x366)][_0x588f2f(0x3c1,0x3ae)](_0x111718=>_0x111718['id']),'crystallizedAt':_0x2756c2,'confidence':_0x30ecd7[_0x588f2f(0x346,0x30f)],'reviewDueAt':_0x3ee8b2,'activationCount':0x0,..._0x2441f5&&{'taxonomyDomain':_0x2441f5['domain'],'taxonomySkillId':_0x2441f5['skill_id']??undefined,'taxonomyNature':_0x2441f5['nature']??undefined,'taxonomyStability':_0x2441f5['stability']??undefined,'taxonomyConfidence':_0x2441f5[_0x4d86e5(0x9a,0xa7)]}},_0x1497d4=_0x4d86e5(0x133,0x11c)+Buffer['from'](JSON[_0x588f2f(0x3af,0x37e)](_0x34e9c7))['toString'](_0x588f2f(0x34e,0x335)),_0xef86e1=[];_0x2441f5&&(_0xef86e1[_0x4d86e5(0x142,0x102)](_0x588f2f(0x3cb,0x3ec)+_0x2441f5[_0x588f2f(0x351,0x34d)]),_0x2441f5['skill_id']&&('XXESO'!==_0x588f2f(0x34a,0x352)?(this['db'][_0x588f2f(0x386,0x35d)+'ry'](_0x443ab8['id'],{'category':_0x588f2f(0x3a4,0x3da),'tags':[..._0x2ee1d5['tags'][_0x4d86e5(0x94,0xb8)](_0x4c100e=>_0x4c100e!==_0x4d86e5(0x137,0x111)&&_0x4c100e!==_0x588f2f(0x352,0x345)+'ed'&&_0x4c100e!==_0x588f2f(0x39b,0x379)+_0x588f2f(0x36c,0x346)),'demoted-fr'+_0x588f2f(0x36c,0x355)]}),_0x9f2db8++):_0xef86e1[_0x4d86e5(0xe7,0x102)](_0x4d86e5(0x154,0x12c)+_0x2441f5['skill_id'])),_0x2441f5['nature']&&_0xef86e1[_0x588f2f(0x3a1,0x3eb)]('nature:'+_0x2441f5[_0x4d86e5(0x13d,0x10b)]));const _0x107452=this['db'][_0x4d86e5(0x88,0xa2)+'ry']({'content':_0x59bd32,'category':_0x588f2f(0x3b0,0x3c9),'tier':_0x4d86e5(0x118,0xf3),'tags':[..._0x30ecd7['tags'],..._0xef86e1,_0x1497d4],'projectPath':_0x30ecd7[_0x588f2f(0x35e,0x323)+_0x4d86e5(0xda,0xfd)][0x0]?.[_0x588f2f(0x369,0x34e)+'h']});function _0x4d86e5(_0x2543ea,_0x369787){return _0x3618ef(_0x369787- -0x245,_0x2543ea);}function _0x588f2f(_0x51eb0f,_0x1fbf49){return _0x3618ef(_0x51eb0f-0x5a,_0x1fbf49);}const _0x244049=_0x30ecd7[_0x4d86e5(0xaa,0xbf)+_0x4d86e5(0x13b,0xfd)][_0x4d86e5(0x15e,0x122)](_0x12ad73=>_0x12ad73[_0x588f2f(0x35c,0x31b)])['filter'](_0x3ebb78=>!!_0x3ebb78&&_0x3ebb78[_0x4d86e5(0xd8,0xf1)]>0x0);if(_0x244049[_0x4d86e5(0x111,0xf1)]>0x0){if(_0x588f2f(0x379,0x358)!==_0x588f2f(0x379,0x389))_0x3a6beb[_0x588f2f(0x3a1,0x393)](_0x588f2f(0x389,0x341)+_0x5ccfa9['nature']);else{const _0x448fe1=this['averageEmb'+'eddings'](_0x244049);this['db']['saveEmbedd'+'ing'](_0x107452['id'],_0x448fe1);}}return _0x107452;}['reviewSkil'+'ls'](){const _0x18742c=new Date();let _0x27bf0d=0x0,_0x5451bb=0x0;function _0x4f4ac5(_0x15f5d6,_0x3d749c){return _0x8861c0(_0x15f5d6,_0x3d749c-0x4ff);}let _0x4b03ab=0x0,_0x1abf4b=0x0;const _0x94e6d1=this['db']['listMemori'+'es']({'category':_0x259658(0x1aa,0x17c),'limit':0x3e8});function _0x259658(_0x9f3bc7,_0x1a9fd3){return _0x8861c0(_0x1a9fd3,_0x9f3bc7-0x27f);}for(const _0x33aaf0 of _0x94e6d1){_0x27bf0d++;const _0x5dac01=this[_0x259658(0x13e,0x16b)+_0x259658(0x185,0x169)](_0x33aaf0);if(!_0x5dac01)continue;const _0x167c7c=new Date(_0x5dac01['reviewDueA'+'t']);if(_0x18742c<_0x167c7c)continue;let _0x2e127e;try{_0x2e127e=this['db']['countNonIn'+_0x259658(0x1c6,0x20c)](_0x33aaf0['id']);}catch{_0x2e127e=null;}if(_0x2e127e===null){if(_0x4f4ac5(0x3f2,0x404)==='khgNi'){_0x1abf4b++;continue;}else{const _0x48e097=_0x3e11e4[_0x4f4ac5(0x3a2,0x3d5)](_0x4e2333[_0x4f4ac5(0x3bc,0x3ca)](0x5),_0x259658(0x148,0x11e))[_0x4f4ac5(0x404,0x3e0)](_0x4f4ac5(0x3b4,0x3df));return _0x54ce5f[_0x4f4ac5(0x42a,0x3fb)](_0x48e097);}}if(_0x2e127e<REAL_USAGE_THRESHOLD)this['db'][_0x259658(0x180,0x1bb)+'ry'](_0x33aaf0['id'],{'category':_0x259658(0x19e,0x1e5),'tags':[..._0x33aaf0[_0x259658(0x181,0x153)]['filter'](_0x31204c=>_0x31204c!=='skill'&&_0x31204c!=='crystalliz'+'ed'&&_0x31204c!=='demoted-fr'+_0x259658(0x166,0x189)),_0x4f4ac5(0x45b,0x415)+_0x4f4ac5(0x39f,0x3e6)]}),_0x5451bb++;else{const _0x4f591a=new Date(Date[_0x4f4ac5(0x3d0,0x40e)]()+(this[_0x259658(0x1bf,0x1d6)][_0x4f4ac5(0x451,0x437)+_0x259658(0x1a3,0x1cf)]?.['reviewCycl'+_0x259658(0x1b2,0x16c)]??0x5a)*0x18*0x3c*0x3c*0x3e8)[_0x259658(0x1ae,0x16b)+'g'](),_0x55ad86={..._0x5dac01,'reviewDueAt':_0x4f591a,'activationCount':_0x2e127e,'lastActivatedAt':_0x33aaf0['lastAccess'+_0x259658(0x171,0x136)]},_0x456185='meta:'+Buffer[_0x259658(0x155,0x160)](JSON[_0x259658(0x1a9,0x18f)](_0x55ad86))['toString'](_0x4f4ac5(0x3cc,0x3c8)),_0x19e238=_0x33aaf0[_0x4f4ac5(0x444,0x401)]['filter'](_0x192b6b=>!_0x192b6b['startsWith'](_0x4f4ac5(0x423,0x435)));_0x19e238[_0x4f4ac5(0x425,0x41b)](_0x456185),this['db'][_0x4f4ac5(0x3e1,0x400)+'ry'](_0x33aaf0['id'],{'tags':_0x19e238}),_0x4b03ab++;}}return{'reviewed':_0x27bf0d,'demoted':_0x5451bb,'renewed':_0x4b03ab,'unknownUsage':_0x1abf4b};}[_0x3618ef(0x2f2,0x2b2)+_0x8861c0(-0xf6,-0xf9)+_0x3618ef(0x375,0x32b)](_0xebf1e4){if(_0xebf1e4[_0x39535a(0x54b,0x51e)]<0x2)return 0x1;let _0x3b8d7a=0x0,_0x507564=0x0;function _0x39535a(_0x52aa2d,_0x4b2a32){return _0x3618ef(_0x4b2a32-0x1e8,_0x52aa2d);}for(let _0x48cd80=0x0;_0x48cd80<_0xebf1e4[_0x39535a(0x542,0x51e)];_0x48cd80++){for(let _0x552476=_0x48cd80+0x1;_0x552476<_0xebf1e4[_0x169a06(0x1f,0x19)];_0x552476++){_0xebf1e4[_0x48cd80][_0x39535a(0x4ec,0x4ea)]&&_0xebf1e4[_0x552476][_0x39535a(0x4d5,0x4ea)]&&(_0x3b8d7a+=cosineSimilarity(_0xebf1e4[_0x48cd80][_0x169a06(-0x15,0x31)],_0xebf1e4[_0x552476][_0x39535a(0x4d2,0x4ea)]),_0x507564++);}}function _0x169a06(_0xbec0d8,_0x42adab){return _0x3618ef(_0xbec0d8- -0x317,_0x42adab);}return _0x507564>0x0?_0x3b8d7a/_0x507564:0x0;}[_0x3618ef(0x33c,0x37e)+_0x3618ef(0x33f,0x330)](_0x2d4121,_0x22c476){function _0x14b4c5(_0x10c723,_0x58568e){return _0x3618ef(_0x58568e- -0x4af,_0x10c723);}function _0x29ee7d(_0x12b3e9,_0xa2c22){return _0x3618ef(_0xa2c22- -0x430,_0x12b3e9);}const _0x3b1d5c=new Set(_0x2d4121['sourceMemo'+_0x29ee7d(-0x11a,-0xee)][_0x14b4c5(-0x18e,-0x148)](_0x337ae1=>_0x337ae1['id']));for(const _0x294ec7 of _0x22c476){const _0x5df381=this[_0x29ee7d(-0x102,-0x146)+_0x29ee7d(-0xbd,-0xff)](_0x294ec7);if(!_0x5df381)continue;const _0x3b1288=new Set(_0x5df381[_0x14b4c5(-0x1aa,-0x1ab)+_0x14b4c5(-0x188,-0x18b)]),_0x33683e=[..._0x3b1d5c]['filter'](_0x1d2ceb=>_0x3b1288['has'](_0x1d2ceb))['length'],_0x2731f7=_0x33683e/Math[_0x14b4c5(-0x198,-0x153)](_0x3b1d5c[_0x14b4c5(-0x1c3,-0x1a8)],_0x3b1288['size']);if(_0x2731f7>=0.7)return!![];}return![];}[_0x8861c0(-0x109,-0xf8)+_0x8861c0(-0xee,-0x101)](_0x735f9a){const _0x56ba3f=[];function _0x5793b4(_0x34f745,_0x30248a){return _0x8861c0(_0x30248a,_0x34f745-0x664);}_0x56ba3f[_0x4d284c(0x33d,0x36d)](_0x4d284c(0x2e3,0x32d)+_0x735f9a[_0x4d284c(0x353,0x32a)]),_0x56ba3f['push'](''),_0x56ba3f[_0x4d284c(0x33d,0x2f6)]('Category:\x20'+_0x735f9a[_0x5793b4(0x559,0x520)]),_0x56ba3f[_0x4d284c(0x33d,0x336)](_0x5793b4(0x551,0x536)+_0x735f9a[_0x4d284c(0x2fa,0x301)+'ries'][_0x4d284c(0x32c,0x343)]+'\x20memories'),_0x56ba3f[_0x5793b4(0x580,0x5c6)]('Confidence'+':\x20'+(_0x735f9a[_0x5793b4(0x525,0x565)]*0x64)[_0x5793b4(0x51c,0x564)](0x0)+'%');if(_0x735f9a[_0x4d284c(0x2fa,0x30c)+'ries'][_0x4d284c(0x32c,0x320)]>0x1){_0x56ba3f[_0x4d284c(0x33d,0x33e)](''),_0x56ba3f[_0x5793b4(0x580,0x53b)](_0x5793b4(0x552,0x56e)+_0x5793b4(0x572,0x549));for(const _0x2b1eb2 of _0x735f9a[_0x5793b4(0x53d,0x52a)+_0x5793b4(0x57b,0x596)]['slice'](0x0,0x3)){const _0x1a8258=_0x2b1eb2[_0x5793b4(0x5ac,0x58f)][_0x5793b4(0x5ad,0x5be)]('\x0a')[0x0][_0x4d284c(0x2ec,0x327)](0x0,0x96);_0x56ba3f[_0x4d284c(0x33d,0x34e)]('-\x20'+_0x1a8258);}}function _0x4d284c(_0x3b1443,_0x580b39){return _0x8861c0(_0x580b39,_0x3b1443-0x421);}return _0x56ba3f['join']('\x0a');}[_0x3618ef(0x2ea,0x30d)+_0x3618ef(0x331,0x2f1)](_0x3139b){const _0x4fe7d=_0x3139b[_0x1c7cfc(0x4dc,0x525)][_0x2c32e4(-0x1f2,-0x224)](_0x16711e=>_0x16711e[_0x1c7cfc(0x571,0x55d)](_0x2c32e4(-0x18f,-0x15d)));if(!_0x4fe7d)return null;function _0x1c7cfc(_0x5523d5,_0x43ed72){return _0x8861c0(_0x5523d5,_0x43ed72-0x623);}function _0x2c32e4(_0x356d48,_0x111660){return _0x8861c0(_0x111660,_0x356d48- -0xc5);}try{const _0x181eed=Buffer[_0x1c7cfc(0x4b3,0x4f9)](_0x4fe7d['slice'](0x5),'base64')[_0x1c7cfc(0x4ba,0x504)]('utf-8');return JSON[_0x1c7cfc(0x50c,0x51f)](_0x181eed);}catch{return null;}}[_0x8861c0(-0xf0,-0x11d)+_0x3618ef(0x32e,0x34f)](_0x454320){function _0x2660e3(_0x482c99,_0x2ff344){return _0x8861c0(_0x2ff344,_0x482c99-0x5fa);}function _0x33c22e(_0x2b046b,_0x3ed1ee){return _0x8861c0(_0x3ed1ee,_0x2b046b-0x51b);}if(_0x454320[_0x2660e3(0x505,0x513)]===0x0)return[];const _0x4acd07=_0x454320[0x0][_0x2660e3(0x505,0x4da)],_0x1c38c5=new Array(_0x4acd07)[_0x2660e3(0x506,0x54d)](0x0);for(const _0xc5f282 of _0x454320){for(let _0x2b7bd6=0x0;_0x2b7bd6<_0x4acd07;_0x2b7bd6++){_0x1c38c5[_0x2b7bd6]+=_0xc5f282[_0x2b7bd6];}}for(let _0x55a694=0x0;_0x55a694<_0x4acd07;_0x55a694++){_0x1c38c5[_0x55a694]/=_0x454320[_0x2660e3(0x505,0x545)];}return _0x1c38c5;}[_0x8861c0(-0xfa,-0xd7)+'Skill'](_0x7e609){if(!_0x7e609[_0x31d503(-0x9a,-0x9a)]||_0x7e609[_0xd8eacf(-0x19a,-0x168)]===_0xd8eacf(-0x164,-0x173))return{'absorbed':![]};function _0x31d503(_0xe0ba67,_0x184af5){return _0x3618ef(_0x184af5- -0x39c,_0xe0ba67);}const _0x45d3b8=this['db'][_0x31d503(-0x88,-0x97)+'es']({'limit':0xc8})[_0x31d503(-0x58,-0x9f)](_0x3cb822=>_0x3cb822[_0x31d503(-0x5f,-0x7c)]===_0xd8eacf(-0x164,-0x12f));function _0xd8eacf(_0x25deb0,_0x92b50c){return _0x3618ef(_0x25deb0- -0x4ba,_0x92b50c);}for(const _0x1c014d of _0x45d3b8){if(!_0x1c014d['embedding'])continue;const _0x51edc0=cosineSimilarity(_0x7e609[_0xd8eacf(-0x1b8,-0x1b9)],_0x1c014d[_0xd8eacf(-0x1b8,-0x1c6)]);if(_0x51edc0<0.8)continue;const _0x292e19=this[_0x31d503(-0xb3,-0xb2)+_0x31d503(-0x81,-0x6b)](_0x1c014d);if(!_0x292e19)continue;if(_0x292e19[_0xd8eacf(-0x1b6,-0x19b)+_0x31d503(-0xb3,-0x78)][_0xd8eacf(-0x199,-0x14f)](_0x7e609['id']))return{'absorbed':![]};_0x292e19[_0x31d503(-0x9a,-0x98)+_0xd8eacf(-0x196,-0x1b1)][_0xd8eacf(-0x173,-0x1ab)](_0x7e609['id']),_0x292e19[_0xd8eacf(-0x16f,-0x1aa)+_0x31d503(-0xb0,-0x96)]=(_0x292e19[_0xd8eacf(-0x16f,-0x18a)+_0xd8eacf(-0x1b4,-0x1e0)]||0x0)+0x1,_0x292e19[_0xd8eacf(-0x16d,-0x176)+_0x31d503(-0x1f,-0x33)]=new Date()[_0x31d503(-0x42,-0x42)+'g']();const _0x71f9c6=_0x31d503(-0x71,-0x3b)+Buffer[_0xd8eacf(-0x1b9,-0x195)](JSON[_0x31d503(-0x61,-0x47)](_0x292e19))[_0x31d503(-0x84,-0x90)](_0x31d503(-0xc1,-0xa8)),_0x217230=_0x1c014d['tags'][_0x31d503(-0x8c,-0x9f)](_0x39f577=>!_0x39f577[_0xd8eacf(-0x155,-0x185)]('meta:')),_0x1c47be='-\x20'+_0x7e609[_0x31d503(0x7,-0x29)][_0xd8eacf(-0x146,-0x183)]('\x0a')[0x0]['slice'](0x0,0x96);let _0x316f53=_0x1c014d['content'];const _0x2cdd22=_0x316f53['split']('\x0a')[_0x31d503(-0x5c,-0x9f)](_0x367b1d=>_0x367b1d[_0xd8eacf(-0x155,-0x151)]('-\x20'));if(_0x2cdd22[_0xd8eacf(-0x184,-0x17c)]<0x5){if(_0x31d503(-0x7f,-0xa0)!=='uTrUo'){const _0x5caf3d=[..._0x5cd45b][_0xd8eacf(-0x15b,-0x145)]((_0x303efd,_0x32a785)=>new _0xe0b6cf(_0x32a785[_0x31d503(-0x83,-0xb6)])[_0x31d503(-0x25,-0x67)]()-new _0x9a891e(_0x303efd[_0x31d503(-0xad,-0xb6)])[_0x31d503(-0x97,-0x67)]()),_0x31c54a=_0x15d2e0[_0x31d503(-0x39,-0x76)](_0x59fa03*0.7),_0x5386da=_0x145fe1-_0x31c54a,_0x3cf0a9=_0x5caf3d[_0xd8eacf(-0x1c4,-0x1ca)](0x0,_0x31c54a),_0x4c5204=new _0x3dc34a(_0x3cf0a9[_0xd8eacf(-0x153,-0x146)](_0x2c5a64=>_0x2c5a64['id'])),_0x2630d3=_0x5caf3d[_0xd8eacf(-0x1c4,-0x1b7)](_0x31c54a)[_0x31d503(-0x70,-0x9f)](_0x39c46c=>!_0x4c5204[_0x31d503(-0x7c,-0x93)](_0x39c46c['id'])),_0x51dddc=[];for(let _0x2984d3=_0x2630d3[_0xd8eacf(-0x184,-0x17d)]-0x1;_0x2984d3>0x0&&_0x51dddc[_0x31d503(-0x1e,-0x66)]<_0x5386da;_0x2984d3--){const _0x1c0d53=_0x6e11c9[_0x31d503(-0x60,-0x76)](_0x4da044[_0x31d503(-0xeb,-0xa9)]()*(_0x2984d3+0x1));[_0x2630d3[_0x2984d3],_0x2630d3[_0x1c0d53]]=[_0x2630d3[_0x1c0d53],_0x2630d3[_0x2984d3]],_0x51dddc[_0xd8eacf(-0x173,-0x12d)](_0x2630d3[_0x2984d3]);}_0x357f86=[..._0x3cf0a9,..._0x51dddc];}else _0x316f53=_0x316f53[_0xd8eacf(-0x16e,-0x19e)]()+'\x0a'+_0x1c47be;}return this['db'][_0xd8eacf(-0x18e,-0x19a)+'ry'](_0x1c014d['id'],{'content':_0x316f53,'tags':[..._0x217230,_0x71f9c6]}),{'absorbed':!![],'skillId':_0x1c014d['id']};}return{'absorbed':![]};}}
|
package/dist/skill/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0xd7e559,_0x5470aa){function _0xe33947(_0x125e8e,_0x33bf9f){return _0x2343(_0x125e8e- -0x227,_0x33bf9f);}function _0x42f5ca(_0x346571,_0x4e7b85){return _0x2343(_0x346571-0x229,_0x4e7b85);}var _0x2e956d=_0xd7e559();while(!![]){try{var _0x4035c3=-parseInt(_0x42f5ca(0x2c2,0x2bd))/0x1+parseInt(_0xe33947(-0x189,-0x185))/0x2+parseInt(_0x42f5ca(0x2c8,0x2ca))/0x3*(parseInt(_0xe33947(-0x191,-0x18d))/0x4)+-parseInt(_0xe33947(-0x18f,-0x18d))/0x5+-parseInt(_0xe33947(-0x190,-0x18f))/0x6+-parseInt(_0xe33947(-0x18b,-0x18b))/0x7*(parseInt(_0xe33947(-0x18a,-0x18f))/0x8)+-parseInt(_0xe33947(-0x18c,-0x188))/0x9*(-parseInt(_0x42f5ca(0x2c3,0x2c7))/0xa);if(_0x4035c3===_0x5470aa)break;else _0x2e956d['push'](_0x2e956d['shift']());}catch(_0x1dac60){_0x2e956d['push'](_0x2e956d['shift']());}}}(_0x3763,0x53fa2));function _0x3763(){var _0x117a02=['mJmZnty5uhfxyNj2','mtiWA1LdyMPL','nZq5mZaYtxHVywLu','m3zOA2nwCW','mJmXmZKYmgvNB2D2Eq','mZmXmZu3mLDXBgvMrW','nZe2ntyWD0nVExz6','ndm1mJCYCwXktxjg','mZqWnZmWmeHZAuLQEq','mJDRA3rnsKi'];_0x3763=function(){return _0x117a02;};return _0x3763();}function _0x2343(_0x366777,_0x37c44c){_0x366777=_0x366777-0x96;var _0x37635f=_0x3763();var _0x234349=_0x37635f[_0x366777];if(_0x2343['jznzPV']===undefined){var _0x575157=function(_0x40b0a9){var _0x2204d8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x19dbe2='',_0x11856c='';for(var _0x49a781=0x0,_0x57c7f2,_0x25c18a,_0x969b9f=0x0;_0x25c18a=_0x40b0a9['charAt'](_0x969b9f++);~_0x25c18a&&(_0x57c7f2=_0x49a781%0x4?_0x57c7f2*0x40+_0x25c18a:_0x25c18a,_0x49a781++%0x4)?_0x19dbe2+=String['fromCharCode'](0xff&_0x57c7f2>>(-0x2*_0x49a781&0x6)):0x0){_0x25c18a=_0x2204d8['indexOf'](_0x25c18a);}for(var _0xd0004e=0x0,_0x116c4d=_0x19dbe2['length'];_0xd0004e<_0x116c4d;_0xd0004e++){_0x11856c+='%'+('00'+_0x19dbe2['charCodeAt'](_0xd0004e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x11856c);};_0x2343['IuoYpP']=_0x575157,_0x2343['qPrsCy']={},_0x2343['jznzPV']=!![];}var _0x4912ca=_0x37635f[0x0],_0x103b56=_0x366777+_0x4912ca,_0x1f0846=_0x2343['qPrsCy'][_0x103b56];return!_0x1f0846?(_0x234349=_0x2343['IuoYpP'](_0x234349),_0x2343['qPrsCy'][_0x103b56]=_0x234349):_0x234349=_0x1f0846,_0x234349;}export{SkillEvaluator}from'./evaluator.js';
|
package/dist/sync/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5338(){const _0x27b4af=['BK9TBMO','Axq9mq','AwXL','Bw9YAwvZlW','twvTyMvY','mtu3mJm2BNHHDefv','CNnVBMfSAxPHDa','6RcaioYxHUYkTEUlIoUlPa','BxnN','mJK4mhn2vwPYCq','y29UDgvUDa','DxbKyxrLtwvTBW','tufyx1jfvfjjrq','CNLFAwq','Bwf4vg9Rzw5Z','Bw9YAwvZl3nLyq','zw1IBgu','zxzLBNq','ywrKvgvHBu1LBq','yw5ZzMvYl2LTCa','l21LBwjLCNm','ChrPB25lzxK','mtu0B0nIs2Xr','BgfZDf9ZEw5Jzq','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','7jwu7zI47zMuio2cPoUkLcaZmIa','DgfNCW','y2f0zwDVCMLLCW','sfruuca0mdm','AwnPzw5JAwvZ','C2vHCMnOvgvHBq','y2XLyxjfBMnYEq','C3vJy2vZCW','C2TPBgXFBwvTBW','mJu4odeYmgrQvvnoyG','zxH0oIdSNzhRI7xSL5aGyW','CMvZDwX0','BM9KztPMCW','Aw1WB3j0uhjVzG','BhrH','mJa5mZuYA1jxC0nv','l3jLAw5MB3jJzq','y2XHC3nPzNLdBW','BI9HBMfSExPL','sfruuca0mJi','zw1VCNK','s2v5','DhLWzq','mZiYnJeZnKLUt2vACa','64sK7yQ47jUm7ygSioYyPoULMdOG','rvfPyuK','EuHsrvu','BfPQDhq','B250zxH0lMLKia','mZaXnZu5CxvKAuLb','DgLWyxj0','Aw5JBhvKzuvTyG','B3v0y29Tzq','l3rLyw1ZlW','zf9HDa','ChjVAMvJDf9Wyq','ihWG','C3rHDhvZ','yw5ZzMvYl2HPCW','BNrLBNq','C3rYAw5NAwz5','C2v0','AgfZ','CLjLC3bVBNnL','zLnRyxq','yxbWBgLJyxrPBW','qwjVCNrfCNjVCG','yw5HBhL6zuvTBW','zxH0','mZzdyMD3ExO','w2eYyv0GCMvPBG','y3jLyxrLuMvSyq','l2fWAs92ms9MAq','yMLSAxr5twf0CG','BxpRPBWG64sy7jEi7iQ164Ui64UK','C3rHDhm','yxbWBhLezwX0yq','BgLZDe1LBw9YAq','B2zPy2LLBMn5lW','u1rbvfvt','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','ywrKq29UDgv4Da','B3j0','l3bYB21VDgu','DgLLCG','B2zMC2v0','7jQu7lkTioYlPo2mQdOG','mtaW','BwvZC2fNzq','CKHPC3rVCNK','CMLLC0jHDgnO','yNL0zxpSL6ZSLBWG7zwP64Ui','CMLLCW','Eg9UB215l2nSyq','Bg9J','C2v0rw5HyMXLza','ChjVBw90zu1LBq','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','r0vu','z2v0vgvHBvn0yq','Bw9YAwvZl2jHDa','qKftrv9eruXbwq','BwfW','yxbPs2v5','DMvYC2LVBG','l2fWAs92ms90zq','Bw9YAwvZl3rHzW','yxnZzw1IBgvdBW','mte0mdm4og9oq1vSzG','yw5ZzMvYl2v4Ca','AM9PBG','lI4VlI4VCgfJAW','Dg9YEt8','B3j5','zxHPC3rPBMDFzG','DgLVBG','zY9YzwXHDgLVBG','y3jLyxrLtwvTBW','y2f0zwDVCNK','B25fBMfIBgvK','Dg9tDhjPBMC','l2fWAs92ms90CG','AwvUy2LLCW','zhvWBgLJyxrL','y2HLy2TgAwXLra','AwvUy3LfDMvUDa','C2LNBMfS','yujZweq','l21LBw9YAwvZlW','DxbSAwnHDgu','yxbWzw5K','zw5JCNLWDgLVBG','7j247kADioYlPo2mQdOGqvbj','Aw9Us2v5','zgv0ywLS','CMvMzxjLBMnLxW','Cg93','zMLSzw5HBwu','CMvPBMzVCMnLtq','BI9QC29U','yMfZzvvYBa','zMLSzv9Pza','y29UzMLN','BgvUz3rO','BgvZl2nOzwnRlq','Dhj1zq','sfruuca','Bw9YAwvZ','rMvHDhvYzxm','zw1VCNLgzwvKyG','BMfTzq','zY9JB250zxH0CW','C2XPy2u','BgvZl3vWBg9Hza','ANnVBG','Cg9ZDfbYB2zPyW','zxzLBNqVyMf0yW','l21LBw9YAwvZ','AxrLBxm','yMvKzgLUzW','CNLPDuC','DhvYzxm','l2fWAs92ms90yq','qwfHD3G','zxjYB3i','ufvu','C3rHCNrZv2L0Aa','zxriyvi','Dg90ywXFBwvTBW','t3HZr1O','CMnO','z2v0vhjHBNnMzq','Bw9YAwvZl3n0yq','tvjSDeK','BgLZDfrLyw1Z','uKvuuLLbqKXfxW','zgvJCNLWDe1LBq','z2v0u3rHDhm','C2vZC2LVBL9Pza','yw1Z','CMvXDwvZDe11Ba','l2fWAs92ms9Wzq','zw5HyMXLzezLyq','BgLTAxq','zxHWB3j0uhjVzG','CMvXDwvZDa','nZq4ndi0nwzYqLjKwa','C3LUyY9HChbSEq','ywDLlMPZB24','rKLtrey','BgLZDfrLyw1nzq','y3jLyxrLq29UDa','AxnfBMnYExb0Aq','l2fWAs92ms9TyW','DgLTzw91Da','ue9tva','y29UDgv4Da','DgvZDenVBM5LyW','zMfPBgvKigzVCG','AgfUzgXLrxjYBW','mc4WlJa','nNPTD1H6ua','x01t','CNLgAwXLtgLUAW','CY9WB3b1BgfYpW','l2fWAs92ms9Tzq','sfruuca0mdq','Aw9Ul2vTB3rPBW','BM9KztPWyxrO','Bwf0CML4','BgLZDfbYB2zPyW','revmrvrf','l2fWAs92ms9WCG','AxnbCNjHEq'];_0x5338=function(){return _0x27b4af;};return _0x5338();}(function(_0x451aae,_0x34d940){function _0x4afa50(_0x2609df,_0x276a45){return _0xc3ce(_0x2609df- -0x263,_0x276a45);}const _0x267a58=_0x451aae();function _0x526901(_0x1bbc69,_0x54e500){return _0xc3ce(_0x54e500-0x3d,_0x1bbc69);}while(!![]){try{const _0x1e7b26=-parseInt(_0x526901(0x329,0x2e8))/0x1+-parseInt(_0x4afa50(0x34,0x93))/0x2+-parseInt(_0x4afa50(0x5,0x46))/0x3*(parseInt(_0x4afa50(-0x58,-0x74))/0x4)+-parseInt(_0x526901(0x301,0x296))/0x5+parseInt(_0x526901(0x2de,0x2b7))/0x6*(parseInt(_0x4afa50(0x28,-0x9))/0x7)+-parseInt(_0x526901(0x344,0x2e2))/0x8*(parseInt(_0x526901(0x1bc,0x221))/0x9)+-parseInt(_0x4afa50(0x1b,-0x3a))/0xa*(-parseInt(_0x526901(0x322,0x2da))/0xb);if(_0x1e7b26===_0x34d940)break;else _0x267a58['push'](_0x267a58['shift']());}catch(_0x5dd3d2){_0x267a58['push'](_0x267a58['shift']());}}}(_0x5338,0xed56a));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function _0xc3ce(_0x1fa15d,_0x1a912b){_0x1fa15d=_0x1fa15d-0x1d7;const _0x53381b=_0x5338();let _0xc3ce85=_0x53381b[_0x1fa15d];if(_0xc3ce['DRvjpQ']===undefined){var _0x47ea52=function(_0x55906e){const _0x7dd464='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32fe76='',_0x3f7487='';for(let _0x5d73c5=0x0,_0x21f1d3,_0x37bfe7,_0x31ce00=0x0;_0x37bfe7=_0x55906e['charAt'](_0x31ce00++);~_0x37bfe7&&(_0x21f1d3=_0x5d73c5%0x4?_0x21f1d3*0x40+_0x37bfe7:_0x37bfe7,_0x5d73c5++%0x4)?_0x32fe76+=String['fromCharCode'](0xff&_0x21f1d3>>(-0x2*_0x5d73c5&0x6)):0x0){_0x37bfe7=_0x7dd464['indexOf'](_0x37bfe7);}for(let _0x4b4974=0x0,_0x2f1917=_0x32fe76['length'];_0x4b4974<_0x2f1917;_0x4b4974++){_0x3f7487+='%'+('00'+_0x32fe76['charCodeAt'](_0x4b4974)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f7487);};_0xc3ce['TiDJLb']=_0x47ea52,_0xc3ce['HHFwRa']={},_0xc3ce['DRvjpQ']=!![];}const _0x262ddb=_0x53381b[0x0],_0x5491db=_0x1fa15d+_0x262ddb,_0x23a375=_0xc3ce['HHFwRa'][_0x5491db];return!_0x23a375?(_0xc3ce85=_0xc3ce['TiDJLb'](_0xc3ce85),_0xc3ce['HHFwRa'][_0x5491db]=_0xc3ce85):_0xc3ce85=_0x23a375,_0xc3ce85;}function _0x20d5ca(_0x5a534b,_0x4a7529){return _0xc3ce(_0x5a534b-0x3a9,_0x4a7529);}function withStatus(_0x5cb188,_0x40220e){function _0x3aa06d(_0x4520be,_0x5b18b6){return _0xc3ce(_0x4520be- -0x24e,_0x5b18b6);}return _0x5cb188[_0x3aa06d(-0x76,-0x8e)]=_0x40220e,_0x5cb188;}export function getErrorStatus(_0x3f21ec){function _0x5c3e7e(_0x2cc768,_0x4e65bb){return _0xc3ce(_0x2cc768- -0x61,_0x4e65bb);}return _0x3f21ec instanceof Error?_0x3f21ec[_0x5c3e7e(0x177,0x147)]:undefined;}function _0x1c409f(_0x2e7c5d,_0x4665ff){return _0xc3ce(_0x2e7c5d- -0x2b7,_0x4665ff);}let _pluginVersion=_0x1c409f(-0x50,-0x79);try{const {readFileSync}=await import('node:fs'),{fileURLToPath}=await import('node:url'),{dirname,join}=await import(_0x20d5ca(0x618,0x60d)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON['parse'](readFileSync(join(__dirname,_0x1c409f(-0xa9,-0xb1)+_0x20d5ca(0x604,0x5f7)),'utf-8'));_pluginVersion=pkg[_0x1c409f(-0xb0,-0x77)]||_0x1c409f(-0x50,-0x58);}catch{}export class A2AClient{['config'];[_0x1c409f(-0x56,0x5)];['encryption'+_0x1c409f(-0x14,-0x6)]=null;[_0x20d5ca(0x5fe,0x61b)+_0x20d5ca(0x5e9,0x594)]=[];constructor(_0x22fa2b){function _0x1a0717(_0x433916,_0xdf480c){return _0x20d5ca(_0xdf480c- -0x5d,_0x433916);}this[_0x1a0717(0x5aa,0x579)]=_0x22fa2b;function _0x48347e(_0x1b7723,_0x4c607d){return _0x20d5ca(_0x4c607d- -0x349,_0x1b7723);}this[_0x48347e(0x259,0x2c1)]=_0x22fa2b[_0x48347e(0x2cb,0x2c1)]??0xea60;}[_0x20d5ca(0x5a7,0x565)+_0x1c409f(-0x84,-0x8b)](_0x4bcb74){function _0x4665bb(_0x4a04d9,_0x50e5d0){return _0x20d5ca(_0x4a04d9- -0x653,_0x50e5d0);}function _0x19b15f(_0xbdfbb3,_0xb74f6b){return _0x20d5ca(_0xb74f6b- -0x769,_0xbdfbb3);}this[_0x19b15f(-0x117,-0x16b)+_0x19b15f(-0x1e7,-0x180)]=_0x4bcb74;}['setEncrypt'+_0x1c409f(-0x93,-0x4d)](_0x1814be){function _0x511676(_0x23a81e,_0x50396c){return _0x20d5ca(_0x50396c- -0x62c,_0x23a81e);}if(_0x1814be[_0x21a4e0(0x3dd,0x3a4)]!==0x20){if(_0x21a4e0(0x38e,0x36e)!==_0x511676(-0x47,-0xa4))return this[_0x21a4e0(0x407,0x3ff)](_0x21a4e0(0x411,0x3a7),_0x21a4e0(0x40f,0x3ac)+'g/relation'+'s',_0x1da83d);else throw new Error('암호화\x20키는\x2032\x20'+_0x21a4e0(0x3a9,0x3ef)+'다');}function _0x21a4e0(_0x2f1292,_0x2f343d){return _0x20d5ca(_0x2f1292- -0x1fa,_0x2f343d);}this[_0x511676(0x1,-0x61)+_0x21a4e0(0x452,0x48c)]=_0x1814be;}[_0x20d5ca(0x63d,0x654)+_0x1c409f(-0x2d,-0x61)](){function _0x4d3249(_0x25ee78,_0x389508){return _0x1c409f(_0x25ee78-0x5f5,_0x389508);}function _0x4cd998(_0x24d3ba,_0xca1d0f){return _0x1c409f(_0xca1d0f- -0x8a,_0x24d3ba);}this[_0x4cd998(-0xfe,-0x11f)+_0x4cd998(-0x69,-0x9e)]=null;}[_0x1c409f(-0x58,-0x9)+_0x20d5ca(0x5bf,0x5b3)](){function _0x57dd6e(_0x2f9983,_0x2760ee){return _0x1c409f(_0x2760ee-0x411,_0x2f9983);}function _0x505481(_0x531817,_0x3a48ba){return _0x1c409f(_0x3a48ba-0x4d0,_0x531817);}return this[_0x57dd6e(0x31e,0x37c)+_0x505481(0x4cf,0x4bc)]!==null;}async[_0x20d5ca(0x5bd,0x592)+'ry'](_0x434a22){function _0x43cbc0(_0x5a1690,_0x12c039){return _0x20d5ca(_0x5a1690- -0x6b9,_0x12c039);}function _0x1ed2ea(_0x614891,_0xc60958){return _0x20d5ca(_0x614891- -0x655,_0xc60958);}let _0x2787d3=_0x434a22[_0x1ed2ea(-0x2d,0x1a)];if(this[_0x1ed2ea(-0x8a,-0x88)+_0x43cbc0(-0x6d,-0xa9)]){const _0x252c42=encryptContent(_0x434a22['content'],this[_0x1ed2ea(-0x8a,-0x3f)+_0x1ed2ea(-0x9,-0x38)]);_0x2787d3=wrapEncryptedContent(_0x252c42);}const _0x152370=await this['request']('POST',_0x1ed2ea(-0x40,0x20)+_0x1ed2ea(-0x7a,-0x7b),{'content':_0x2787d3,'category':_0x434a22[_0x43cbc0(-0xfb,-0x90)],'tier':_0x434a22[_0x1ed2ea(-0xb9,-0x6a)],'tags':_0x434a22['tags']??[]}),_0x599c38=_0x152370;if(this[_0x1ed2ea(-0x8a,-0x6a)+_0x1ed2ea(-0x9,-0x27)]&&_0x599c38[_0x43cbc0(-0x91,-0x59)]){const _0x26fed7=unwrapEncryptedContent(_0x599c38[_0x1ed2ea(-0x2d,-0x7f)]);_0x26fed7&&(_0x599c38['content']=decryptContent(_0x26fed7,this[_0x1ed2ea(-0x8a,-0x2f)+'Key']));}return _0x599c38;}async['searchMemo'+_0x1c409f(-0xbc,-0x86)](_0x27463a,_0x11a591){function _0x1818f8(_0x4fd6a2,_0x490266){return _0x20d5ca(_0x4fd6a2-0x7,_0x490266);}function _0x91f0bd(_0x29a90f,_0x1a3f77){return _0x20d5ca(_0x29a90f- -0x753,_0x1a3f77);}const _0x1ac93e=await this['request']('POST',_0x91f0bd(-0x13e,-0xe7)+_0x91f0bd(-0x126,-0x118)+_0x1818f8(0x5f9,0x61b),{'query':_0x27463a,'limit':_0x11a591?.[_0x91f0bd(-0x154,-0x15c)]??0xa,'category':_0x11a591?.[_0x1818f8(0x5c5,0x593)]});return _0x1ac93e[_0x1818f8(0x5ed,0x595)]??[];}async[_0x1c409f(-0xcb,-0xb2)+'es'](_0x36232a){function _0x1a6fe6(_0x522b03,_0x208cac){return _0x1c409f(_0x208cac-0x5cc,_0x522b03);}const _0x196266=new URLSearchParams();if(_0x36232a?.[_0x3dc580(-0x44,-0x85)])_0x196266[_0x3dc580(-0xbe,-0x8f)](_0x3dc580(-0x44,-0x3b),_0x36232a[_0x3dc580(-0x44,-0x80)]['toString']());if(_0x36232a?.[_0x1a6fe6(0x4c8,0x509)])_0x196266['set'](_0x3dc580(-0xa6,-0x6f),_0x36232a[_0x1a6fe6(0x537,0x509)]['toString']());if(_0x36232a?.[_0x1a6fe6(0x60c,0x5c2)+'edding'])_0x196266[_0x3dc580(-0xbe,-0x10d)]('include_em'+_0x1a6fe6(0x5af,0x553),_0x3dc580(-0x6a,-0x8d));const _0x4fc911='/api/v1/me'+_0x3dc580(-0x68,-0x34)+(_0x196266['toString']()?'?'+_0x196266[_0x3dc580(-0x83,-0x19)]():''),_0x43c2c8=await this[_0x3dc580(-0x42,0x23)](_0x3dc580(-0x99,-0x3c),_0x4fc911),_0x1c8a39=_0x43c2c8[_0x3dc580(-0x5d,-0x15)]??[];if(this[_0x1a6fe6(0x4ea,0x537)+_0x3dc580(0x9,-0x41)])return _0x3dc580(-0x52,0x11)===_0x1a6fe6(0x58a,0x58a)?![]:_0x1c8a39[_0x3dc580(-0x95,-0x41)](_0x1cac18=>this[_0x1a6fe6(0x511,0x564)+_0x3dc580(-0x8a,-0x78)](_0x1cac18));function _0x3dc580(_0x587837,_0x615d64){return _0x1c409f(_0x587837-0x1d,_0x615d64);}return _0x1c8a39;}[_0x20d5ca(0x5f8,0x64c)+_0x20d5ca(0x5b9,0x619)](_0x2ff415){function _0xdb5692(_0x36b3e1,_0x5026f8){return _0x20d5ca(_0x36b3e1- -0xe6,_0x5026f8);}if(!this[_0xdb5692(0x4e5,0x52a)+_0x499020(-0x62,-0xcf)])return _0x2ff415;const _0x3df68d={..._0x2ff415};function _0x499020(_0x52cba5,_0x83ca1e){return _0x20d5ca(_0x83ca1e- -0x71b,_0x52cba5);}if(_0x3df68d['content']){const _0x12ce8f=unwrapEncryptedContent(_0x3df68d['content']);if(_0x12ce8f){if(_0xdb5692(0x509,0x4fe)!==_0xdb5692(0x509,0x553))return this[_0xdb5692(0x51b,0x571)](_0xdb5692(0x525,0x52d),_0xdb5692(0x517,0x526)+_0x499020(-0xd8,-0xf7)+'ion/emotio'+_0xdb5692(0x563,0x50e),{'message':_0x595034[_0x499020(-0x131,-0x13b)](0x0,0x1f4)});else try{_0x3df68d[_0xdb5692(0x542,0x595)]=decryptContent(_0x12ce8f,this[_0xdb5692(0x4e5,0x4a7)+_0xdb5692(0x566,0x50c)]);}catch{}}}return _0x3df68d;}async[_0x20d5ca(0x629,0x68b)+'ry'](_0x4f5672,_0x1bc4c9){function _0xa28d6b(_0x4607b7,_0x4f88fa){return _0x20d5ca(_0x4607b7- -0x27f,_0x4f88fa);}const _0xfb732b=await this['request'](_0x5a9c8c(-0xf6,-0x159),'/api/v1/me'+_0xa28d6b(0x3a2,0x3e0)+_0x4f5672,_0x1bc4c9);function _0x5a9c8c(_0x438eab,_0x9e79d4){return _0x20d5ca(_0x9e79d4- -0x746,_0x438eab);}return _0xfb732b;}async['deleteMemo'+'ry'](_0xf87995){function _0x575063(_0x3f322d,_0x4be3aa){return _0x1c409f(_0x4be3aa- -0xea,_0x3f322d);}function _0x63351e(_0x1cbbfc,_0x198e38){return _0x1c409f(_0x1cbbfc-0x36b,_0x198e38);}await this[_0x63351e(0x30c,0x2dc)](_0x63351e(0x326,0x2d8),_0x63351e(0x320,0x33e)+_0x63351e(0x32c,0x398)+_0xf87995);}async[_0x1c409f(-0x6a,-0x23)](){function _0x50ce3d(_0x2d1385,_0x3bbf34){return _0x1c409f(_0x3bbf34-0x5dc,_0x2d1385);}const _0x533d84=await this[_0x1c6689(0x15a,0x1c4)](_0x50ce3d(0x501,0x526),_0x50ce3d(0x4d9,0x52d)+_0x1c6689(0x1f8,0x1be));function _0x1c6689(_0x5a6b70,_0x18a4d7){return _0x1c409f(_0x18a4d7-0x223,_0x5a6b70);}if(Array['isArray'](_0x533d84))return _0x533d84;return _0x533d84[_0x50ce3d(0x56e,0x562)]??[];}async[_0x1c409f(-0x5a,-0x8b)+_0x1c409f(-0x85,-0x73)](_0x4110a8,_0x374f5c){const _0x28b82f=new URLSearchParams();function _0x36bb1b(_0x10cfed,_0x3bf9c6){return _0x20d5ca(_0x10cfed- -0x6b4,_0x3bf9c6);}if(_0x374f5c?.[_0x268e0e(-0x64,-0x1a)])_0x28b82f['set'](_0x268e0e(-0x5d,-0x1a),_0x374f5c[_0x36bb1b(-0xb5,-0x103)][_0x268e0e(-0x54,-0x59)]());if(_0x374f5c?.[_0x36bb1b(-0x117,-0xc5)])_0x28b82f['set']('offset',_0x374f5c[_0x36bb1b(-0x117,-0x13d)][_0x36bb1b(-0xf4,-0x91)]());const _0x43eb40=_0x28b82f[_0x268e0e(-0x1d,-0x59)]();function _0x268e0e(_0x30c0e4,_0x5e303d){return _0x20d5ca(_0x5e303d- -0x619,_0x30c0e4);}const _0x23262c=_0x36bb1b(-0x5c,-0x1)+encodeURIComponent(_0x4110a8)+'/memories'+(_0x43eb40?'?'+_0x43eb40:''),_0x56b2c6=await this[_0x268e0e(-0x5f,-0x18)](_0x268e0e(-0x75,-0x6f),_0x23262c);return _0x56b2c6['items']??[];}async[_0x20d5ca(0x630,0x61e)+_0x1c409f(-0xa7,-0x87)](_0x166ab7,_0x16dbca){function _0x298a3c(_0xe4d75d,_0x463381){return _0x20d5ca(_0x463381- -0x11f,_0xe4d75d);}const _0x79976=await this[_0x298a3c(0x505,0x4e2)](_0x2f883f(0x4da,0x4a7),_0x2f883f(0x52c,0x4f4)+encodeURIComponent(_0x166ab7)+_0x298a3c(0x482,0x4c6),_0x16dbca);function _0x2f883f(_0xf5f370,_0x97d9b4){return _0x20d5ca(_0x97d9b4- -0x164,_0xf5f370);}return _0x79976;}async[_0x1c409f(-0x24,-0x53)+'Memories'](_0x1a341a,_0x263a24,_0x4f4471){const _0x4f8ef9=await this['request'](_0x3fa41c(0x3b7,0x3b3),_0x3fa41c(0x404,0x452)+encodeURIComponent(_0x1a341a)+(_0x3e4538(0x56b,0x51b)+'search'),{'query':_0x263a24,'limit':_0x4f4471?.[_0x3fa41c(0x3ab,0x3a6)]??0xa,'category':_0x4f4471?.['category']});function _0x3fa41c(_0x28b108,_0x5d81b0){return _0x20d5ca(_0x28b108- -0x254,_0x5d81b0);}function _0x3e4538(_0x1df49e,_0x4d4cf4){return _0x20d5ca(_0x4d4cf4- -0xad,_0x1df49e);}return _0x4f8ef9[_0x3e4538(0x54a,0x539)]??[];}async['generateDe'+_0x1c409f(-0x1b,0x12)](_0x40779c,_0x6f6a48,_0x2ec6dc){function _0xe7e8d5(_0xe2465d,_0xb9a45c){return _0x20d5ca(_0xb9a45c- -0x4a2,_0xe2465d);}function _0x2d8e86(_0x381076,_0x57c4bf){return _0x20d5ca(_0x57c4bf- -0x268,_0x381076);}return this['request'](_0x2d8e86(0x381,0x3a3),'/teams/'+encodeURIComponent(_0x40779c)+(_0x2d8e86(0x38c,0x360)+'sync/delta'),{'memory_id':_0x6f6a48,'vector_clock':_0x2ec6dc});}async[_0x1c409f(-0xcc,-0x10b)](_0x227673,_0x56c9a3,_0xe7316d){function _0x56e335(_0x4c6c8c,_0x148464){return _0x20d5ca(_0x148464- -0x297,_0x4c6c8c);}function _0x542d08(_0x19c4de,_0x397144){return _0x20d5ca(_0x397144- -0x627,_0x19c4de);}return this[_0x542d08(-0x80,-0x26)](_0x56e335(0x3b8,0x374),'/teams/'+encodeURIComponent(_0x227673)+(_0x56e335(0x2e9,0x331)+_0x542d08(0x45,-0x24)),{'memory_id':_0x56c9a3,'delta':_0xe7316d});}async[_0x20d5ca(0x5bd,0x5e5)+_0x1c409f(-0xbe,-0xcd)](_0x16dab0){function _0x55f8d8(_0x51f6c2,_0xe5fa85){return _0x20d5ca(_0xe5fa85- -0x334,_0x51f6c2);}function _0x14057c(_0x48314a,_0x59da2f){return _0x20d5ca(_0x59da2f- -0x29c,_0x48314a);}const _0x5669fd=await this[_0x55f8d8(0x299,0x2cd)]('POST',_0x14057c(0x312,0x379)+_0x55f8d8(0x255,0x278)+'ch',{'items':_0x16dab0});return _0x5669fd;}async[_0x1c409f(-0x53,-0x79)+_0x20d5ca(0x5bb,0x5b2)](){function _0x26ed24(_0xd9383d,_0x510ab0){return _0x20d5ca(_0x510ab0- -0x6da,_0xd9383d);}function _0x1c1749(_0x464d04,_0x3895b9){return _0x20d5ca(_0x3895b9- -0x38,_0x464d04);}try{return await this[_0x1c1749(0x568,0x5c9)]('GET',_0x1c1749(0x61f,0x5dd)+'mories?lim'+_0x1c1749(0x59a,0x5e7)),!![];}catch{return![];}}async[_0x1c409f(-0xad,-0x84)+'ntext'](_0xbe51eb,_0x2b91e7){function _0x47aa5c(_0x6f2e31,_0x1489d5){return _0x1c409f(_0x1489d5-0x414,_0x6f2e31);}const _0x41378d=await this[_0xb09805(0x38b,0x3e1)](_0x47aa5c(0x406,0x3bf),_0x47aa5c(0x38c,0x3c9)+'mories/ass'+_0x47aa5c(0x450,0x3e2),{'query':_0xbe51eb,'max_memories':_0x2b91e7?.['maxMemorie'+'s']??0x5,'max_tokens':_0x2b91e7?.[_0x47aa5c(0x427,0x3e0)]??0x7d0,'categories':_0x2b91e7?.[_0xb09805(0x3c3,0x38d)],'tier':_0x2b91e7?.[_0x47aa5c(0x331,0x350)]});function _0xb09805(_0x35989b,_0x3a6ef3){return _0x1c409f(_0x35989b-0x3ea,_0x3a6ef3);}return _0x41378d;}async[_0x20d5ca(0x5d2,0x57c)+_0x1c409f(-0x15,-0x3a)](_0x358d05){const _0x3fa598=await this['request'](_0x187369(0x613,0x640),_0x354a61(0x27f,0x243)+_0x187369(0x629,0x659)+_0x358d05+_0x187369(0x64f,0x6b5));function _0x354a61(_0x41e552,_0x100cfb){return _0x1c409f(_0x100cfb-0x28e,_0x41e552);}function _0x187369(_0x1612dd,_0x5d53e4){return _0x1c409f(_0x1612dd-0x668,_0x5d53e4);}return _0x3fa598;}async[_0x1c409f(-0x8e,-0xca)+_0x20d5ca(0x5dd,0x641)+'ack'](_0x563471,_0x412f7d){function _0x339e4e(_0x20b660,_0x560764){return _0x20d5ca(_0x560764- -0xf9,_0x20b660);}function _0x234b2c(_0x36ef52,_0x188ab9){return _0x20d5ca(_0x188ab9- -0x4c5,_0x36ef52);}try{await this['request'](_0x234b2c(0x14b,0x146),_0x339e4e(0x556,0x51c)+'mories/'+_0x563471+_0x339e4e(0x542,0x54e),{'success':_0x412f7d});}catch(_0x345667){console[_0x234b2c(0x150,0x127)](_0x339e4e(0x4d9,0x495)+'forceMemor'+'yFeedback\x20'+_0x339e4e(0x4f0,0x515)+'\x20'+_0x563471+':',_0x345667 instanceof Error?_0x345667[_0x234b2c(0xc7,0xdb)]:String(_0x345667));}}async[_0x20d5ca(0x5a8,0x60c)+_0x1c409f(-0xa7,-0xa0)](_0x392aaa,_0x271049){function _0x3d4c34(_0x3faec3,_0x15f3ac){return _0x1c409f(_0x15f3ac-0x4ba,_0x3faec3);}function _0x463282(_0x2c501f,_0x1f21d9){return _0x1c409f(_0x1f21d9- -0x91,_0x2c501f);}const _0x4b54e4=await this[_0x3d4c34(0x479,0x45b)](_0x463282(-0x10b,-0xe6),_0x463282(-0x7a,-0xdc)+_0x463282(-0xca,-0xd0)+_0x392aaa+_0x3d4c34(0x3ff,0x3f5));return _0x4b54e4;}async[_0x20d5ca(0x5f9,0x5a9)](){const _0xab0f7e=await this[_0x2776c3(0x28f,0x268)]('GET','/api/v1/me'+_0x2776c3(0x2b4,0x25b)+'ts');function _0x3af61e(_0x59fb20,_0xac879f){return _0x20d5ca(_0x59fb20- -0x765,_0xac879f);}function _0x2776c3(_0x177ec6,_0x4c9b24){return _0x20d5ca(_0x4c9b24- -0x399,_0x177ec6);}return _0xab0f7e;}async['getPopular'+'Tags'](_0x57a6ab=0xa){const _0xa1d38d=new URLSearchParams();_0xa1d38d['set'](_0x3aa96b(0xf1,0x119),_0x57a6ab['toString']());const _0x5c615f=_0x444a9d(-0xae,-0x6f)+_0x444a9d(-0x111,-0xd9)+_0x3aa96b(0x153,0x12e)+_0xa1d38d[_0x444a9d(-0x103,-0x135)]();function _0x3aa96b(_0x196707,_0x4edaa7){return _0x1c409f(_0x4edaa7-0x17a,_0x196707);}function _0x444a9d(_0x48643a,_0x18ff4e){return _0x1c409f(_0x48643a- -0x63,_0x18ff4e);}const _0x24b73d=await this[_0x444a9d(-0xc2,-0xc6)](_0x444a9d(-0x119,-0x10f),_0x5c615f);return _0x24b73d[_0x3aa96b(0xe6,0x100)]??[];}async[_0x20d5ca(0x5ab,0x595)+'ts'](_0xf2e859){function _0x26a1c2(_0x3978cb,_0xd59448){return _0x1c409f(_0xd59448-0x477,_0x3978cb);}const _0x2bda68=await this[_0x190fdd(0x1cf,0x1e5)](_0x26a1c2(0x3ce,0x3c1),_0x190fdd(0x226,0x200)+encodeURIComponent(_0xf2e859)+('/memories/'+_0x26a1c2(0x3f7,0x3aa))),_0x32d020=_0x2bda68,_0x46381b=_0x32d020['stats']??_0x32d020;function _0x190fdd(_0x1384ff,_0xe60078){return _0x1c409f(_0x1384ff-0x22e,_0xe60078);}return{'totalMemories':_0x46381b[_0x26a1c2(0x402,0x407)+_0x26a1c2(0x420,0x3bb)]??0x0,'totalNodes':_0x46381b['total_node'+'s']??0x0,'lastSyncedAt':_0x46381b[_0x190fdd(0x203,0x244)+_0x190fdd(0x227,0x277)]??null};}async['postProfic'+_0x1c409f(-0x9b,-0x70)](_0x4a1e2c){function _0xcfabb9(_0x11e967,_0xa6956d){return _0x20d5ca(_0x11e967- -0x1e2,_0xa6956d);}function _0x245d7e(_0x515a66,_0x3b4131){return _0x20d5ca(_0x515a66- -0x5b5,_0x3b4131);}const _0xf2b891=await this[_0x245d7e(0x4c,0x92)](_0xcfabb9(0x429,0x425),_0xcfabb9(0x43a,0x462)+_0xcfabb9(0x3b4,0x38f)+_0x245d7e(0x7a,0xe1),{'skill_memory_id':_0x4a1e2c[_0x245d7e(0x8a,0x4f)+_0xcfabb9(0x449,0x4a1)],'outcome':_0x4a1e2c[_0x245d7e(0xa2,0xbc)],'difficulty':_0x4a1e2c['difficulty'],'context_tags':_0x4a1e2c['context_ta'+'gs'],'session_id':_0x4a1e2c[_0x245d7e(0x45,0x4f)]});return _0xf2b891;}async[_0x20d5ca(0x5e3,0x5e5)+_0x20d5ca(0x5c5,0x5fe)+'Batch'](_0x24b480){function _0x345660(_0x577ccf,_0x45effb){return _0x1c409f(_0x577ccf-0x136,_0x45effb);}function _0x586f58(_0x48e5c8,_0x12f077){return _0x1c409f(_0x12f077- -0x2c,_0x48e5c8);}await this[_0x586f58(-0xda,-0x8b)](_0x345660(0xe1,0x116),_0x345660(0xf2,0x9e)+_0x586f58(-0xa3,-0xf6)+_0x345660(0xba,0xcc)+'h',{'events':_0x24b480});}async[_0x1c409f(-0x46,-0x15)+_0x20d5ca(0x5c2,0x5a4)](_0x1e43db){const _0x1d7429=new URLSearchParams();function _0x40669a(_0x469508,_0x3bcb9f){return _0x20d5ca(_0x469508- -0x175,_0x3bcb9f);}_0x1d7429[_0xfd9426(0x35f,0x363)]('page_size',_0xfd9426(0x379,0x3c8));function _0xfd9426(_0x3a0777,_0x5c5634){return _0x20d5ca(_0x3a0777- -0x226,_0x5c5634);}if(_0x1e43db)_0x1d7429['set'](_0xfd9426(0x434,0x464)+'th',_0x1e43db);const _0x232ba6='/api/v1/pr'+'oficiency?'+_0x1d7429['toString'](),_0x1e1346=await this[_0xfd9426(0x3db,0x442)](_0xfd9426(0x384,0x3bb),_0x232ba6);return _0x1e1346[_0xfd9426(0x3c0,0x375)]??[];}async[_0x1c409f(-0xd5,-0xea)+'tion'](_0x404c29){function _0x393c08(_0x47b394,_0x1806a9){return _0x1c409f(_0x1806a9-0x64,_0x47b394);}function _0x193e3b(_0x6e849b,_0x5d949a){return _0x1c409f(_0x6e849b- -0xd9,_0x5d949a);}return this[_0x193e3b(-0x138,-0x140)](_0x193e3b(-0x12e,-0x158),_0x193e3b(-0x13c,-0xe9)+'rsonalizat'+_0x393c08(0x1f,0x1b)+_0x193e3b(-0xf0,-0xc1),{'message':_0x404c29[_0x193e3b(-0x159,-0x168)](0x0,0x1f4)});}async[_0x1c409f(-0x60,-0xb)+'iciencies'](_0x3986aa,_0x3347f7){function _0x188975(_0xfe6474,_0x2cf5fa){return _0x20d5ca(_0xfe6474- -0x40b,_0x2cf5fa);}function _0x18cbc5(_0x4f1863,_0x59f53a){return _0x20d5ca(_0x59f53a- -0x475,_0x4f1863);}const _0x4839c1=await this[_0x18cbc5(0x1f0,0x18c)](_0x188975(0x200,0x241),_0x18cbc5(0xe3,0x14c)+_0x188975(0x1aa,0x1ea)+_0x18cbc5(0x180,0x125),{'source_provider':_0x3986aa,'skill_ids':_0x3347f7??null});return _0x4839c1;}async[_0x1c409f(-0x1c,0x10)+_0x20d5ca(0x63b,0x683)](_0x211712,_0x540141){function _0x416e8a(_0x35d5b5,_0x3ec652){return _0x1c409f(_0x35d5b5-0x360,_0x3ec652);}const _0x49e9df=await this[_0x416e8a(0x301,0x363)](_0x120adf(0x467,0x430),'/api/v1/tr'+_0x416e8a(0x331,0x2e6)+_0x120adf(0x3d3,0x3bf),{'package':_0x211712,'target_provider':_0x540141});function _0x120adf(_0x27f62d,_0x3c59d9){return _0x1c409f(_0x3c59d9-0x485,_0x27f62d);}return _0x49e9df;}async['getCompati'+_0x1c409f(-0xcf,-0xc1)+'ix'](){function _0x40d354(_0x439d27,_0x1c8bb0){return _0x1c409f(_0x1c8bb0- -0x119,_0x439d27);}function _0x2c32ee(_0x2441dc,_0x598a3e){return _0x1c409f(_0x598a3e-0x2ad,_0x2441dc);}const _0x1065ea=await this[_0x40d354(-0x1c6,-0x178)](_0x40d354(-0x1f5,-0x1cf),_0x40d354(-0x1db,-0x1b8)+'ansfer/com'+'patibility');return _0x1065ea[_0x40d354(-0x14b,-0x160)]??[];}async[_0x20d5ca(0x5f3,0x58f)+_0x20d5ca(0x5a1,0x5b0)](_0x52d665=0x1){const _0x17a71a=new URLSearchParams();function _0x5bfe65(_0x272273,_0x2e3a21){return _0x20d5ca(_0x272273- -0x453,_0x2e3a21);}function _0x1922b1(_0x2ed0ad,_0x2df98f){return _0x20d5ca(_0x2df98f- -0x200,_0x2ed0ad);}_0x17a71a[_0x5bfe65(0x132,0x103)]('page',_0x52d665[_0x5bfe65(0x16d,0x1ad)]());const _0x965463='/api/v1/tr'+_0x5bfe65(0x12f,0xe3)+_0x1922b1(0x372,0x3b8)+_0x17a71a[_0x5bfe65(0x16d,0x138)](),_0x484d57=await this[_0x1922b1(0x46e,0x401)](_0x5bfe65(0x157,0x14e),_0x965463);return _0x484d57;}async['uploadFile'](_0x5e1aae,_0x2d2c1b){function _0x168a8d(_0x5e0084,_0x4b9a7a){return _0x1c409f(_0x5e0084-0x1b1,_0x4b9a7a);}const {readFileSync:_0x127315}=await import(_0x168a8d(0x194,0x15e)),{basename:_0x4560cf}=await import('node:path'),_0x296266=_0x127315(_0x5e1aae),_0x3235b5=_0x4560cf(_0x5e1aae),_0x4bd399=new FormData();_0x4bd399[_0x168a8d(0x11b,0x15a)]('file',new Blob([_0x296266]),_0x3235b5);_0x2d2c1b['category']&&_0x4bd399[_0x1892a6(0x1de,0x180)](_0x1892a6(0x15c,0x174),_0x2d2c1b['category']);if(_0x2d2c1b['tags']&&_0x2d2c1b[_0x1892a6(0x1d3,0x1ee)]['length']>0x0){if(_0x168a8d(0x118,0x10b)!==_0x1892a6(0x1d1,0x207))_0x4bd399[_0x168a8d(0x11b,0xe1)](_0x1892a6(0x1fc,0x1ee),_0x2d2c1b[_0x1892a6(0x22a,0x1ee)][_0x168a8d(0x107,0xf9)](','));else throw _0x21a190;}function _0x1892a6(_0x2ec39e,_0x4c603b){return _0x1c409f(_0x4c603b-0x216,_0x2ec39e);}const _0x2c099c=await this[_0x168a8d(0x14d,0x128)+_0x1892a6(0x22c,0x20b)]('POST',_0x1892a6(0x189,0x146)+_0x168a8d(0x132,0xff),_0x4bd399),_0x42157d=_0x2c099c;return{'id':_0x42157d[_0x168a8d(0x126,0xce)],'filename':_0x42157d[_0x168a8d(0x122,0x12f)]};}async[_0x1c409f(-0x9c,-0xac)+_0x20d5ca(0x5c9,0x572)](_0x3207bc){function _0x3304a8(_0x48f5b1,_0x16f034){return _0x1c409f(_0x48f5b1-0x405,_0x16f034);}function _0x27c9b6(_0x5bc31d,_0x5d487b){return _0x1c409f(_0x5d487b-0x3d3,_0x5bc31d);}const _0xa89aa4=await this[_0x3304a8(0x3a6,0x3f4)](_0x27c9b6(0x33b,0x37e),_0x3304a8(0x335,0x2e9)+_0x27c9b6(0x352,0x34b)+_0x3304a8(0x368,0x372),{'content_hash':_0x3207bc}),_0x45db8b=_0xa89aa4;return{'exists':_0x45db8b['is_duplica'+'te'],'file_id':_0x45db8b[_0x3304a8(0x35f,0x3c1)+_0x3304a8(0x3c5,0x421)]?.['id']};}async['createMemo'+_0x20d5ca(0x613,0x610)](_0xd8ae62,_0x4497d9,_0x2f92f2){function _0x45f9a3(_0x223759,_0x1c5c0b){return _0x1c409f(_0x223759- -0x11d,_0x1c5c0b);}const _0x46b7d5=await this['request'](_0x47f99b(0x558,0x55d),_0x45f9a3(-0x168,-0x10d)+'mory-files',{'memory_id':_0xd8ae62,'file_id':_0x4497d9,'reference_type':_0x2f92f2[_0x47f99b(0x51c,0x4bf)+_0x47f99b(0x59a,0x5bb)],'reference_path':_0x2f92f2[_0x45f9a3(-0x1ae,-0x203)+'path']});function _0x47f99b(_0xd7af92,_0xe6ba08){return _0x1c409f(_0xd7af92-0x5ad,_0xe6ba08);}return _0x46b7d5;}async[_0x20d5ca(0x607,0x611)+_0x1c409f(-0xd4,-0xce)](_0x58ac59){function _0x4af3af(_0x1ab2dc,_0x5a1435){return _0x20d5ca(_0x5a1435- -0x492,_0x1ab2dc);}const _0x20c324=await this[_0x28c193(0x400,0x45f)](_0x28c193(0x4d0,0x469),_0x4af3af(0x1b8,0x177)+_0x28c193(0x484,0x43d),_0x58ac59),_0x207c7b=_0x20c324?.[_0x28c193(0x495,0x46a)]?.['id']??_0x20c324?.['id'];function _0x28c193(_0x5e2419,_0x2292bf){return _0x20d5ca(_0x2292bf- -0x1a2,_0x5e2419);}if(!_0x207c7b)throw new Error(_0x4af3af(0x10e,0x175)+_0x28c193(0x43b,0x49f)+_0x28c193(0x46b,0x4b1)+_0x28c193(0x44a,0x483));return{'id':_0x207c7b};}async[_0x20d5ca(0x599,0x5df)+_0x1c409f(-0x3e,-0x93)](_0x262b9c,_0x1e062f){function _0x5a64d3(_0x353a35,_0x2f5662){return _0x1c409f(_0x353a35-0x1df,_0x2f5662);}function _0x595c74(_0x29ead0,_0x3112f4){return _0x1c409f(_0x29ead0-0x37e,_0x3112f4);}return this['request'](_0x5a64d3(0x18a,0x12d),_0x595c74(0x327,0x2c7)+'g/contexts'+'/'+_0x262b9c+_0x5a64d3(0x1b1,0x211),_0x1e062f);}async[_0x20d5ca(0x58f,0x560)+_0x1c409f(-0xa5,-0xa1)](_0xe37158){function _0x1ec9ce(_0x1c3058,_0x22aa73){return _0x1c409f(_0x22aa73-0x55e,_0x1c3058);}function _0x2b22e5(_0x1ee025,_0x3d9424){return _0x1c409f(_0x3d9424-0x183,_0x1ee025);}return this[_0x1ec9ce(0x499,0x4ff)](_0x2b22e5(0xdf,0x12e),_0x2b22e5(0xc7,0x12c)+_0x2b22e5(0xfe,0xdf)+'s',_0xe37158);}async[_0x20d5ca(0x648,0x670)+_0x20d5ca(0x583,0x5ba)](_0x147e4e){function _0xce41fb(_0x4ca7b4,_0x3aaf34){return _0x1c409f(_0x4ca7b4- -0xc5,_0x3aaf34);}function _0x12717b(_0x2d56e8,_0x270395){return _0x1c409f(_0x270395-0x403,_0x2d56e8);}try{const _0x44b8f=await this[_0x12717b(0x35d,0x3a4)](_0xce41fb(-0x11a,-0x124),_0xce41fb(-0x13b,-0x15f)+_0x12717b(0x352,0x348)+'ssify',{'content':_0x147e4e[_0x12717b(0x42a,0x3cb)][_0xce41fb(-0x145,-0xfe)](0x0,0x7d0),'tags':_0x147e4e['tags']??[],'category':_0x147e4e['category']}),_0x37390d=_0x44b8f;if(_0x37390d[_0x12717b(0x3b0,0x3e1)]&&_0x37390d['result'])return _0x37390d[_0x12717b(0x3f0,0x3e5)];return null;}catch{return null;}}static [_0x20d5ca(0x5f7,0x620)+_0x1c409f(-0xc9,-0x11c)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x20d5ca(0x62a,0x68b)+'S']=0x3;static [_0x1c409f(-0xb3,-0x4e)+_0x1c409f(-0x4e,-0x82)]=0x3e8;async['request'](_0xbc43f3,_0xb9bc03,_0x1031b8){function _0x218177(_0x1a80dc,_0x564f91){return _0x1c409f(_0x1a80dc-0x371,_0x564f91);}let _0x1c95ec;for(let _0x5eddcd=0x0;_0x5eddcd<A2AClient[_0x301d57(0x40f,0x3c0)+'S'];_0x5eddcd++){if(_0x218177(0x361,0x377)!=='llkYC'){const _0x3a5b3a=''+this[_0x301d57(0x3ce,0x36c)][_0x301d57(0x31c,0x36a)]+_0xb9bc03,_0xe643b5=new AbortController(),_0x49e9e1=setTimeout(()=>_0xe643b5['abort'](),this[_0x218177(0x31b,0x2db)]);try{const _0x4d58ce=await fetch(_0x3a5b3a,{'method':_0xbc43f3,'headers':{'Content-Type':_0x218177(0x29a,0x2e3)+_0x218177(0x2e4,0x2c7),'x-api-key':this[_0x301d57(0x32c,0x36c)][_0x301d57(0x305,0x345)],'X-Plugin-Version':_pluginVersion,...this[_0x218177(0x30f,0x2ab)+_0x301d57(0x376,0x37f)][_0x218177(0x2e8,0x336)]>0x0&&{'X-Plugin-Features':this[_0x301d57(0x3b4,0x394)+'tures'][_0x218177(0x2c7,0x268)](',')}},'body':_0x1031b8?JSON[_0x218177(0x295,0x25a)](_0x1031b8):undefined,'signal':_0xe643b5['signal']});clearTimeout(_0x49e9e1);if(A2AClient[_0x301d57(0x327,0x38d)+_0x301d57(0x346,0x32d)][_0x301d57(0x356,0x31c)](_0x4d58ce[_0x301d57(0x331,0x317)])&&_0x5eddcd<A2AClient['MAX_RETRIE'+'S']-0x1){const _0x196c47=A2AClient[_0x301d57(0x374,0x343)+_0x218177(0x323,0x2ba)]*Math[_0x301d57(0x32b,0x366)](0x2,_0x5eddcd);await new Promise(_0x4afd33=>setTimeout(_0x4afd33,_0x196c47));continue;}!_0x4d58ce['ok']&&await this[_0x301d57(0x38b,0x3a5)+'rResponse'](_0x4d58ce);if(_0xbc43f3===_0x218177(0x32c,0x2e8)&&_0x4d58ce[_0x218177(0x292,0x271)]===0xcc){if(_0x301d57(0x34b,0x39b)==='FISDF')return;else{if(_0x2b70c8[_0x218177(0x2e8,0x2db)]!==0x20)throw new _0x4ef63d(_0x218177(0x348,0x2fa)+_0x218177(0x2b4,0x2be)+'다');this['encryption'+_0x301d57(0x382,0x3e2)]=_0x1042ba;}}return await _0x4d58ce['json']();}catch(_0x4af717){clearTimeout(_0x49e9e1);if(_0x4af717 instanceof Error){if(getErrorStatus(_0x4af717)!==undefined)throw _0x4af717;if(_0x4af717[_0x218177(0x2b1,0x2ce)][_0x301d57(0x3e5,0x384)]('인증\x20실패')||_0x4af717['message'][_0x218177(0x2ff,0x2fd)](_0x301d57(0x426,0x3d0))||_0x4af717[_0x218177(0x2b1,0x259)][_0x301d57(0x3b7,0x384)](_0x218177(0x327,0x2ef))||_0x4af717[_0x301d57(0x312,0x336)][_0x301d57(0x3df,0x384)](_0x218177(0x35b,0x302)))throw _0x4af717;if(_0x5eddcd<A2AClient['MAX_RETRIE'+'S']-0x1){_0x1c95ec=_0x4af717;const _0x432bad=A2AClient[_0x301d57(0x34d,0x343)+'_MS']*Math[_0x301d57(0x310,0x366)](0x2,_0x5eddcd);await new Promise(_0x959d35=>setTimeout(_0x959d35,_0x432bad));continue;}if(_0x4af717['name']===_0x301d57(0x324,0x320))throw new Error(_0x301d57(0x437,0x3cc)+this[_0x301d57(0x3fd,0x3a0)]+_0x301d57(0x303,0x328));throw new Error(_0x301d57(0x3df,0x3e5)+_0x4af717[_0x218177(0x2b1,0x2c9)]);}throw _0x4af717;}}else{const _0x137152=_0x3827cd(_0x18adb7['content']);_0x137152&&(_0x191e98[_0x218177(0x339,0x35b)]=_0x5803aa(_0x137152,this['encryption'+_0x218177(0x35d,0x3bb)]));}}function _0x301d57(_0x1edc63,_0x1f0117){return _0x1c409f(_0x1f0117-0x3f6,_0x1edc63);}throw _0x1c95ec??new Error(_0x218177(0x2af,0x26f)+A2AClient[_0x301d57(0x418,0x3c0)+'S']+'회\x20재시도\x20후\x20실패');}async[_0x20d5ca(0x5fc,0x652)+_0x1c409f(-0xb,-0x2)](_0xd98709,_0x100306,_0x551fe9){const _0x503c76=''+this[_0x55af50(0x250,0x1f0)]['baseUrl']+_0x100306,_0x56e387=new AbortController();function _0x34beed(_0x3fb1ad,_0x4de607){return _0x20d5ca(_0x3fb1ad- -0x4f1,_0x4de607);}function _0x55af50(_0x3bd928,_0x35da21){return _0x20d5ca(_0x3bd928- -0x386,_0x35da21);}const _0x76a8bf=setTimeout(()=>_0x56e387['abort'](),this[_0x55af50(0x284,0x21e)]);try{const _0x4a8a9b=await fetch(_0x503c76,{'method':_0xd98709,'headers':{'x-api-key':this['config'][_0x55af50(0x229,0x1f0)],'X-Plugin-Version':_pluginVersion},'body':_0x551fe9,'signal':_0x56e387[_0x34beed(0xd5,0x8a)]});return clearTimeout(_0x76a8bf),!_0x4a8a9b['ok']&&await this['handleErro'+'rResponse'](_0x4a8a9b),await _0x4a8a9b[_0x55af50(0x25c,0x26f)]();}catch(_0x29a5f4){if('kGssO'!==_0x34beed(0xfa,0x99)){clearTimeout(_0x76a8bf);if(_0x29a5f4 instanceof Error&&_0x29a5f4[_0x55af50(0x258,0x20f)]===_0x55af50(0x204,0x1c7))throw new Error(_0x34beed(0x145,0x11c)+this[_0x34beed(0x119,0x10b)]+'ms를\x20넘었습니다');throw _0x29a5f4;}else _0x6a85b6['content']=_0x37e7bf(_0x249ef7,this[_0x55af50(0x245,0x1ef)+_0x34beed(0x15b,0x1bc)]);}}async['handleErro'+_0x1c409f(-0xd9,-0x72)](_0x348c0d){const _0x3fee89=_0x348c0d[_0x2d84bf(0xd4,0x130)];if(_0x3fee89===0x191)throw withStatus(new Error(_0xed3ff5(-0x174,-0x1a1)+'\x20Key를\x20확인하세'+'요'),0x191);if(_0x3fee89===0x1ad){if(_0xed3ff5(-0x158,-0x114)!==_0x2d84bf(0x13b,0x118))return _0xbfe959 instanceof _0x35d0dd?_0x2f8f15['status']:_0x1ab02e;else throw withStatus(new Error(_0x2d84bf(0xfc,0x99)+_0x2d84bf(0xeb,0x111)),0x1ad);}let _0x5c343b=_0xed3ff5(-0x166,-0x1a7)+_0x3fee89;try{const _0x4e2bd3=await _0x348c0d[_0xed3ff5(-0x15e,-0x125)]();if(Array[_0x2d84bf(0x170,0x11f)](_0x4e2bd3[_0xed3ff5(-0x172,-0x183)])){const _0x3c6ab8=_0x4e2bd3[_0x2d84bf(0x121,0xe0)][_0xed3ff5(-0x192,-0x176)](_0x59f5d6=>{function _0x22502a(_0x567aea,_0x5579e7){return _0x2d84bf(_0x567aea- -0xd6,_0x5579e7);}function _0x85e0b5(_0x35eb30,_0x1cefff){return _0x2d84bf(_0x35eb30-0x1ed,_0x1cefff);}const _0x59ec13=Array['isArray'](_0x59f5d6[_0x22502a(0x23,0x51)])?_0x59f5d6[_0x85e0b5(0x2e6,0x2bc)]['join']('.'):'',_0x1c72ff=_0x59f5d6[_0x22502a(0xa3,0xe9)]??JSON[_0x22502a(0x1,-0x7)](_0x59f5d6);return _0x59ec13?_0x59ec13+':\x20'+_0x1c72ff:_0x1c72ff;})[_0xed3ff5(-0x18a,-0x16e)](_0xed3ff5(-0x1c0,-0x217));_0x5c343b+=':\x20'+_0x3c6ab8;}else{if(_0x4e2bd3[_0xed3ff5(-0x172,-0x188)]){if(_0xed3ff5(-0xee,-0x9e)===_0xed3ff5(-0x14b,-0x187)){const _0x29ca27=_0x2d110f(_0x5e0b66[_0xed3ff5(-0x118,-0x10b)]);if(_0x29ca27)try{_0x599559[_0xed3ff5(-0x118,-0x103)]=_0x1080df(_0x29ca27,this[_0xed3ff5(-0x175,-0x1de)+'Key']);}catch{}}else _0x5c343b+=':\x20'+_0x4e2bd3['detail'];}else _0x4e2bd3['message']&&(_0x5c343b+=':\x20'+_0x4e2bd3['message']);}}catch{}function _0xed3ff5(_0x1b6679,_0x54d678){return _0x1c409f(_0x1b6679- -0xe0,_0x54d678);}function _0x2d84bf(_0x251a01,_0x1153aa){return _0x1c409f(_0x251a01-0x1b3,_0x1153aa);}throw withStatus(new Error(_0x5c343b),_0x3fee89);}}
|
|
1
|
+
(function(_0x104eee,_0x5ad15d){function _0x4de7a5(_0x364c5b,_0x2b7087){return _0x43d1(_0x2b7087-0x30f,_0x364c5b);}function _0x5f4d24(_0x4bfbdc,_0x38f80b){return _0x43d1(_0x4bfbdc- -0xd1,_0x38f80b);}const _0x9857f3=_0x104eee();while(!![]){try{const _0x107935=-parseInt(_0x4de7a5(0x545,0x517))/0x1*(parseInt(_0x5f4d24(0xbb,0x90))/0x2)+parseInt(_0x4de7a5(0x48f,0x48b))/0x3+parseInt(_0x5f4d24(0xe5,0x81))/0x4+parseInt(_0x5f4d24(0x163,0x132))/0x5+parseInt(_0x4de7a5(0x463,0x496))/0x6+parseInt(_0x4de7a5(0x503,0x525))/0x7+-parseInt(_0x4de7a5(0x4c1,0x48e))/0x8*(parseInt(_0x5f4d24(0xdc,0xa8))/0x9);if(_0x107935===_0x5ad15d)break;else _0x9857f3['push'](_0x9857f3['shift']());}catch(_0x28869b){_0x9857f3['push'](_0x9857f3['shift']());}}}(_0x3134,0x450fd));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function withStatus(_0x367dba,_0x50078a){return _0x367dba['status']=_0x50078a,_0x367dba;}function _0x2c5dba(_0x278008,_0xc62af5){return _0x43d1(_0xc62af5- -0x1a6,_0x278008);}function _0x3134(){const _0xd7c893=['zw1VCNLgzwvKyG','nJiYnZuWBgLxCKHA','CgfNzq','yMvKzgLUzW','zw1VCNK','zgv0ywLS','AxnbCNjHEq','ywDLlMPZB24','yw5ZzMvYl2v4Ca','BgvZl3vWBg9Hza','C2LNBMfS','BgfZDf9ZEw5Jzq','Cg93','DgLVBG','EuzLzwrIywnRia','B3v0y29Tzq','y29UDgv4Df90yq','C2vHCMnO','DhLWzq','DgLLCG','Bw9YAwvZl2fZCW','Eg9UB215l2nSyq','y3jLyxrLuMvSyq','BhrH','AwnPzw5JAwvZ','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','C3rHDhvZ','ChjVBw90zu1LBq','s2v5','zgvJCNLWDe1LBq','BI9QC29U','yw5ZzMvYl2LTCa','BM9KztP1CMW','C3rHDhm','zw5JCNLWDgLVBG','C2v0rw5HyMXLza','DgfNCW','zw1IBgu','mtq5mZCYn1LtsKX5wG','yMLSAxr5twf0CG','ihWG','odmYoti0meTZB3vyBa','Bg9J','zxjYB3i','zgLMzMLJDwX0Eq','l2fWAs92ms9Tzq','Cw9Mvey','twvTB3jPzxm','DxbSB2fKrMLSzq','mta1mZe2ohrUvwPOCW','BMfTzq','B25Ws0u','z2v0ug9WDwXHCG','DxrMltG','mtzIrKLlEw4','B250zxH0lMLKia','C2vZC2LVBL9Pza','mc4WlJa','l21LBw9YAwvZlW','CMvXDwvZDe11Ba','yw5ZzMvYl2HPCW','BxpRPBWG64sy7jEi7iQ164Ui64UK','y2XLyxjfBMnYEq','BwvZC2fNzq','l21LBw9YAwvZ','ANnVBG','Bw9YAwvZl3rHzW','CNnVBMfSAxPHDa','sfruuca','lI4VlI4VCgfJAW','rwHJqKK','BM9KztPMCW','BNrLEhq','DMvYC2LVBG','DgLWyxj0','sfruuca0mJi','zMfPBgvKigzVCG','DxbKyxrLtwvTBW','tufyx1jfvfjjrq','BNrLBNq','qwjVCNrfCNjVCG','qKftrv9eruXbwq','Cg9ZDfbYB2zPyW','zMLSzv9Pza','AwvUy3LfDMvUDa','ywjVCNq','Aw9Us2v5','ovvVt0X6sq','yw1Z','CKHPC3rVCNK','yNL0zxpSL6ZSLBWG7zwP64Ui','B3j0','7j247kADioYlPo2mQdOGqvbj','ufvu','B0j0Axi','zgvSzxrLtwvTBW','mtu0mZaWohniz0zqDG','DxbSAwnHDgu','BgvUz3rO','C3rHCNrZv2L0Aa','AxrLBxm','C3LUyY9HChbSEq','y3jLyxrLq29UDa','l2fWAs92ms90zq','C2TPBgXFBwvTBW','l2fWAs92ms9MAq','Cgf0AwjPBgL0Eq','l3jLAw5MB3jJzq','B2zMC2v0','y29UDgvUDa','u1rbvfvt','ChjVAMvJDf9Wyq','ywrKq29UDgv4Da','Bw9YAwvZl2jHDa','y3jLyxrLtwvTBW','zMLSzq','AwXL','Eenwv3a','Dg90ywXFBwvTBW','yxbWzw5K','w2eYyv0GCMvPBG','x01t','ChrPB25lzxK','CMLLC0jHDgnO','y29UDgv4Da','EhPUChq','Aw5JBhvKzuvTyG','BI9HBMfSExPL','uKvuuLLbqKXfxW','BwfW','Dg9tDhjPBMC','zw5HyMXLzezLyq','Bw9YAwvZp2XPBq','qMf0y2G','Bw9YAwvZlW','zY9YzwXHDgLVBG','BM9KztPWyxrO','yxbWBgLJyxrPBW','Dg9YEt8','AM9PBG','ieTLEEULVcdTMzxSNBJTLzJSHlG','CY9WB3b1BgfYpW','mtaW','y2XHC3nPzNLdBW','D3nkuLK','Cgf0Aa','z2v0u3rHDhm','zxzLBNq','y2HLy2TgAwXLra','ugnhvvy','zxH0','7j247kADioYlPo2mQa','Dg90ywXFBM9Kzq','64sK7yQ47jUm7ygSioYyPoULMdOG','CMvZDwX0','y29UzMLN','l2fWAs92ms9Wzq','l2fWAs92ms9WCG','BxnN','zwrKAw5N','DhvYzxm','B2zPy2LLBMn5lW','AxnfBMnYExb0Aq','CMvPBMzVCMnLtq','C2vHCMnOtwvTBW','6RcaioYxHUYkTEUlIoUlPa','Bw9YAwvZl3n0yq','CMLLCW','CNLgAwXLtgLUAW','vgfNCW','l3rLyw1ZlW','AgfUzgXLrxjYBW','sfruuca0mdm','AxnFzhvWBgLJyq','ue9tva','sfruuca0mdq','l2fWAs92ms9TyW','l2fWAs92ms90CG','mZaWmZHhv21Nu3u','zxzLBNqVyMf0yW','CMnO','revmrvrf','BgLTAxq','C2v0','r0vu','B3j5','C3nPzNK','yw5ZzMvYl2nVBq','CgfNzv9ZAxPL','C3rYAw5NAwz5','Bw9YEs1MAwXLCW','DgvZDenVBM5LyW','mJy2nde3ovnUA3zlyq','zxH0oIdSNzhRI7xSL5aGyW','CNLFAwq','z2v0vhjHBNnMzq','C2vHCMnOvgvHBq','DgLTzw91Da','z2vUzxjHDgvezq','CLjLC3bVBNnL','BgLZDe1LBw9YAq','z2v0q29TCgf0Aq','C3vJy2vZCW','zf9HDa','C3LUyY9KzwX0yq','ywrKvgvHBu1LBq','Bw9YAwvZ','7jwu7zI47zMuio2cPoUkLcaZmIa','l21LBwjLCNm','y2f0zwDVCMLLCW','ChL0A08','zxHPC3rPBMDFzG','BgLZDfrLyw1Z','yxbPs2v5','l3bYB21VDgu','Axq9mq','y2f0zwDVCNK','zY9JB250zxH0CW','l2fWAs92ms90yq','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','CMvXDwvZDa'];_0x3134=function(){return _0xd7c893;};return _0x3134();}export function getErrorStatus(_0x22da7c){function _0x28defd(_0x958126,_0x23ef6c){return _0x43d1(_0x23ef6c- -0x135,_0x958126);}return _0x22da7c instanceof Error?_0x22da7c[_0x28defd(-0x14,0x3b)]:undefined;}function _0x115a56(_0x890d77,_0x334029){return _0x43d1(_0x334029- -0x12c,_0x890d77);}function _0x43d1(_0x315cb1,_0x5e0fe0){_0x315cb1=_0x315cb1-0x163;const _0x3134a9=_0x3134();let _0x43d1c3=_0x3134a9[_0x315cb1];if(_0x43d1['ubKvFc']===undefined){var _0x271abd=function(_0x21752d){const _0x9e1739='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d87f9='',_0xa4c50a='';for(let _0xa45916=0x0,_0x3e02b3,_0xaee308,_0x179f59=0x0;_0xaee308=_0x21752d['charAt'](_0x179f59++);~_0xaee308&&(_0x3e02b3=_0xa45916%0x4?_0x3e02b3*0x40+_0xaee308:_0xaee308,_0xa45916++%0x4)?_0x1d87f9+=String['fromCharCode'](0xff&_0x3e02b3>>(-0x2*_0xa45916&0x6)):0x0){_0xaee308=_0x9e1739['indexOf'](_0xaee308);}for(let _0x59570f=0x0,_0x4e0011=_0x1d87f9['length'];_0x59570f<_0x4e0011;_0x59570f++){_0xa4c50a+='%'+('00'+_0x1d87f9['charCodeAt'](_0x59570f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa4c50a);};_0x43d1['mcHKGQ']=_0x271abd,_0x43d1['WAVoLy']={},_0x43d1['ubKvFc']=!![];}const _0x5f54a0=_0x3134a9[0x0],_0x132b5b=_0x315cb1+_0x5f54a0,_0x364a08=_0x43d1['WAVoLy'][_0x132b5b];return!_0x364a08?(_0x43d1c3=_0x43d1['mcHKGQ'](_0x43d1c3),_0x43d1['WAVoLy'][_0x132b5b]=_0x43d1c3):_0x43d1c3=_0x364a08,_0x43d1c3;}let _pluginVersion='0.0.0';try{const {readFileSync}=await import(_0x2c5dba(-0x43,-0x9)),{fileURLToPath}=await import(_0x115a56(0x9f,0x4a)),{dirname,join}=await import(_0x115a56(0x119,0xb2)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON['parse'](readFileSync(join(__dirname,_0x115a56(0x89,0x6f)+_0x115a56(0x107,0x10e)),_0x115a56(0x1f,0x5f)));_pluginVersion=pkg[_0x2c5dba(-0x19,-0x7)]||_0x115a56(-0x3,0x63);}catch{}export class A2AClient{[_0x115a56(0xe5,0xc5)];['timeout'];[_0x115a56(-0xe,0x4c)+_0x115a56(0x74,0x46)]=null;[_0x115a56(0xb3,0xad)+_0x2c5dba(-0xe,0x50)]=[];constructor(_0x156b80){this[_0x12a40d(0x3f9,0x40a)]=_0x156b80;function _0x138086(_0x3eb4bb,_0x8e380){return _0x2c5dba(_0x8e380,_0x3eb4bb-0x4b4);}function _0x12a40d(_0x4c512b,_0x5e0591){return _0x2c5dba(_0x4c512b,_0x5e0591-0x3bf);}this[_0x12a40d(0x44c,0x434)]=_0x156b80['timeout']??0xea60;}[_0x2c5dba(-0x1b,-0x2d)+'Features'](_0x56e926){function _0x4d489f(_0x39090a,_0xb10835){return _0x2c5dba(_0xb10835,_0x39090a-0x40f);}this[_0x4d489f(0x442,0x47d)+'tures']=_0x56e926;}['setEncrypt'+_0x2c5dba(0x22,0x6)](_0xb828e7){function _0x19922e(_0x4e335c,_0x8944b7){return _0x2c5dba(_0x8944b7,_0x4e335c-0x3c7);}function _0xa0f05c(_0x3199bf,_0x510fca){return _0x2c5dba(_0x510fca,_0x3199bf- -0x82);}if(_0xb828e7[_0x19922e(0x3d9,0x418)]!==0x20)throw new Error(_0x19922e(0x446,0x419)+_0x19922e(0x3d1,0x410)+'다');this[_0x19922e(0x399,0x3a6)+_0x19922e(0x393,0x381)]=_0xb828e7;}[_0x115a56(0x6c,0x68)+_0x115a56(0x69,0xa4)](){function _0x2d9bbc(_0x1e11f7,_0x1252b5){return _0x115a56(_0x1e11f7,_0x1252b5- -0x7e);}this[_0x2d9bbc(-0x90,-0x32)+'Key']=null;}[_0x115a56(0xf9,0xcc)+'onEnabled'](){function _0x5d7786(_0x1f1087,_0x421605){return _0x2c5dba(_0x1f1087,_0x421605- -0x17c);}return this[_0x5d7786(-0x1fd,-0x1aa)+'Key']!==null;}async[_0x115a56(0xda,0x9c)+'ry'](_0x3a228c){let _0x196a48=_0x3a228c[_0xa16f69(0xf9,0xe8)];function _0xa16f69(_0x59d1a5,_0x47b268){return _0x115a56(_0x59d1a5,_0x47b268-0x51);}function _0x3ef275(_0x4c1004,_0x1c7434){return _0x115a56(_0x1c7434,_0x4c1004-0x1b9);}if(this[_0xa16f69(0xba,0x9d)+'Key']){const _0x42c118=encryptContent(_0x3a228c[_0xa16f69(0x14a,0xe8)],this['encryption'+'Key']);_0x196a48=wrapEncryptedContent(_0x42c118);}const _0x1c0256=await this[_0xa16f69(0x14a,0x157)](_0xa16f69(0xc6,0x129),'/api/v1/me'+_0x3ef275(0x2b1,0x25f),{'content':_0x196a48,'category':_0x3a228c[_0x3ef275(0x2bb,0x288)],'tier':_0x3a228c[_0xa16f69(0x26,0x8e)],'tags':_0x3a228c[_0xa16f69(0xe3,0x9f)]??[]}),_0x50b137=_0x1c0256;if(this['encryption'+_0x3ef275(0x1ff,0x20d)]&&_0x50b137[_0x3ef275(0x250,0x204)]){const _0x1cc8fb=unwrapEncryptedContent(_0x50b137[_0xa16f69(0x7b,0xe8)]);_0x1cc8fb&&(_0x50b137[_0xa16f69(0x130,0xe8)]=decryptContent(_0x1cc8fb,this[_0xa16f69(0xfe,0x9d)+'Key']));}return _0x50b137;}async[_0x2c5dba(0x2b,0x54)+_0x115a56(0x9d,0xd1)](_0x51a7d0,_0x15e35a){function _0x4b9056(_0x13e143,_0x55ab22){return _0x2c5dba(_0x13e143,_0x55ab22-0x217);}function _0x1b50ff(_0xde2621,_0xee5e8b){return _0x2c5dba(_0xde2621,_0xee5e8b-0x30d);}const _0x8306c=await this['request'](_0x1b50ff(0x326,0x36b),_0x4b9056(0x1f7,0x1f4)+'mories/sea'+_0x4b9056(0x29a,0x27b),{'query':_0x51a7d0,'limit':_0x15e35a?.[_0x4b9056(0x211,0x27d)]??0xa,'category':_0x15e35a?.[_0x1b50ff(0x33f,0x395)]});return _0x8306c[_0x4b9056(0x28d,0x22b)]??[];}async[_0x115a56(0x99,0xf2)+'es'](_0x1a48d3){function _0x4d887e(_0x2d1dbe,_0x1b9580){return _0x115a56(_0x1b9580,_0x2d1dbe-0xd9);}const _0x4844f1=new URLSearchParams();if(_0x1a48d3?.[_0x4d887e(0x1b9,0x20a)])_0x4844f1['set'](_0x351563(0x78,0x55),_0x1a48d3[_0x4d887e(0x1b9,0x17c)][_0x351563(0x18,0x21)]());if(_0x1a48d3?.[_0x4d887e(0x16f,0x169)])_0x4844f1[_0x4d887e(0x1ba,0x198)]('offset',_0x1a48d3['offset'][_0x351563(0x6b,0x21)]());if(_0x1a48d3?.[_0x4d887e(0x181,0x1db)+_0x4d887e(0x1a2,0x1e0)])_0x4844f1[_0x351563(0x6f,0x56)]('include_em'+_0x4d887e(0x1e3,0x1dd),'true');const _0x43de48=_0x4d887e(0x130,0x170)+_0x4d887e(0x1d1,0x18e)+(_0x4844f1[_0x351563(0x3,0x21)]()?'?'+_0x4844f1[_0x351563(0x58,0x21)]():''),_0x4d0f97=await this[_0x4d887e(0x1df,0x216)](_0x4d887e(0x1bb,0x1d2),_0x43de48);function _0x351563(_0x39fc28,_0x520b5e){return _0x115a56(_0x39fc28,_0x520b5e- -0x8b);}const _0x391ca4=_0x4d0f97['items']??[];if(this[_0x4d887e(0x125,0x18f)+'Key'])return _0x391ca4[_0x4d887e(0x184,0x14b)](_0xb47fff=>this['decryptMem'+_0x4d887e(0x1bc,0x1dd)](_0xb47fff));return _0x391ca4;}[_0x115a56(0x3d,0x47)+_0x115a56(0x104,0xe3)](_0x49a13f){if(!this['encryption'+'Key'])return _0x49a13f;function _0xdf07c(_0x38889c,_0x43bcf7){return _0x115a56(_0x38889c,_0x43bcf7- -0x132);}const _0x175bb3={..._0x49a13f};function _0x9c2869(_0x5442d1,_0x3ab25e){return _0x115a56(_0x3ab25e,_0x5442d1-0x426);}if(_0x175bb3[_0x9c2869(0x4bd,0x4e4)]){const _0x40932c=unwrapEncryptedContent(_0x175bb3[_0x9c2869(0x4bd,0x512)]);if(_0x40932c){if(_0xdf07c(-0x5d,-0x8b)==='JSPwy')return![];else try{_0x175bb3[_0x9c2869(0x4bd,0x509)]=decryptContent(_0x40932c,this[_0x9c2869(0x472,0x440)+_0x9c2869(0x46c,0x434)]);}catch{}}}return _0x175bb3;}async[_0x115a56(0x63,0x77)+'ry'](_0x3b9a50,_0x368b24){function _0x237ba3(_0x2beb3e,_0x143992){return _0x2c5dba(_0x143992,_0x2beb3e-0x255);}function _0x194561(_0x5c0c31,_0x3b90ff){return _0x2c5dba(_0x5c0c31,_0x3b90ff-0x2e1);}const _0x5502e6=await this[_0x237ba3(0x2e1,0x2a8)](_0x237ba3(0x262,0x290),'/api/v1/me'+_0x194561(0x2b1,0x317)+_0x3b9a50,_0x368b24);return _0x5502e6;}async[_0x115a56(0xdf,0x89)+'ry'](_0x4cb18c){function _0x4eda51(_0xfaf8c7,_0x5979ec){return _0x2c5dba(_0xfaf8c7,_0x5979ec-0x32b);}function _0x1bc8b3(_0x24ff35,_0x32c6d5){return _0x2c5dba(_0x32c6d5,_0x24ff35- -0x81);}await this[_0x4eda51(0x352,0x3b7)]('DELETE',_0x1bc8b3(-0xa4,-0xdf)+_0x1bc8b3(-0x4b,-0x48)+_0x4cb18c);}async[_0x115a56(0x92,0xfe)](){const _0xb5761a=await this[_0x593f4e(0x312,0x2fb)](_0x593f4e(0x2ee,0x306),_0x13d4b4(0x12d,0xc2)+_0x13d4b4(0x11e,0x17c));if(Array[_0x13d4b4(0x1a9,0x1ae)](_0xb5761a))return _0xb5761a;function _0x13d4b4(_0x33d295,_0x2fcd44){return _0x115a56(_0x2fcd44,_0x33d295-0x9c);}function _0x593f4e(_0x4f5c05,_0x1a7a86){return _0x115a56(_0x1a7a86,_0x4f5c05-0x20c);}return _0xb5761a[_0x13d4b4(0x12a,0x179)]??[];}async['listTeamMe'+'mories'](_0x2a822c,_0x712287){const _0x37dac9=new URLSearchParams();function _0x3523ed(_0xaf9267,_0x466abb){return _0x2c5dba(_0xaf9267,_0x466abb-0x117);}if(_0x712287?.[_0x3523ed(0x18f,0x17d)])_0x37dac9[_0x3523ed(0x1eb,0x17e)](_0x1a0636(0x40e,0x41d),_0x712287[_0x1a0636(0x40e,0x3a4)]['toString']());if(_0x712287?.['offset'])_0x37dac9['set'](_0x3523ed(0x137,0x133),_0x712287[_0x1a0636(0x3c4,0x3e9)][_0x1a0636(0x3da,0x423)]());function _0x1a0636(_0x65c4d1,_0x3a37ae){return _0x2c5dba(_0x3a37ae,_0x65c4d1-0x3a8);}const _0x28ff56=_0x37dac9[_0x3523ed(0xfc,0x149)](),_0x3e9f45=_0x1a0636(0x402,0x465)+encodeURIComponent(_0x2a822c)+_0x3523ed(0xcb,0x107)+(_0x28ff56?'?'+_0x28ff56:''),_0x52ce79=await this[_0x1a0636(0x434,0x486)](_0x1a0636(0x410,0x458),_0x3e9f45);return _0x52ce79[_0x3523ed(0xe5,0x12b)]??[];}async[_0x115a56(0xf3,0xf7)+'ory'](_0x4956b6,_0x17cf90){const _0x78eb38=await this['request']('POST','/teams/'+encodeURIComponent(_0x4956b6)+_0x5e09e3(0x49f,0x464),_0x17cf90);function _0x5e09e3(_0x5ecdd5,_0x1460ce){return _0x2c5dba(_0x5ecdd5,_0x1460ce-0x474);}return _0x78eb38;}async[_0x2c5dba(0x1a,0x74)+_0x115a56(0x63,0x59)](_0x24b989,_0x5931ff,_0x431e3a){const _0x2bc7e4=await this[_0x5ee62e(0x581,0x572)](_0x41a6a2(0x1b5,0x17f),'/teams/'+encodeURIComponent(_0x24b989)+(_0x41a6a2(0x170,0x10b)+_0x41a6a2(0x9d,0xe2)),{'query':_0x5931ff,'limit':_0x431e3a?.[_0x41a6a2(0x198,0x187)]??0xa,'category':_0x431e3a?.[_0x5ee62e(0x507,0x56e)]});function _0x41a6a2(_0x4b5785,_0x15fff4){return _0x2c5dba(_0x4b5785,_0x15fff4-0x121);}function _0x5ee62e(_0x241728,_0x2d4c9f){return _0x2c5dba(_0x241728,_0x2d4c9f-0x4e6);}return _0x2bc7e4[_0x5ee62e(0x4c2,0x4fa)]??[];}async[_0x2c5dba(0x8d,0x76)+_0x2c5dba(-0x63,-0x39)](_0x2ed477,_0x88e2f3,_0x402176){function _0x580a0b(_0x3157ad,_0x1f062b){return _0x115a56(_0x1f062b,_0x3157ad- -0x1a3);}function _0x3599a3(_0x43de92,_0x3a89d2){return _0x115a56(_0x43de92,_0x3a89d2-0xcd);}return this[_0x3599a3(0x174,0x1d3)](_0x580a0b(-0xcb,-0x87),_0x580a0b(-0xcf,-0xb3)+encodeURIComponent(_0x2ed477)+(_0x580a0b(-0x13f,-0xf5)+_0x580a0b(-0xad,-0x7b)),{'memory_id':_0x88e2f3,'vector_clock':_0x402176});}async['applyDelta'](_0x335621,_0x2a67c1,_0x3db9d5){function _0x24ae1d(_0x5a4769,_0x10278a){return _0x2c5dba(_0x5a4769,_0x10278a-0x40c);}function _0x3e6d3e(_0x5c8005,_0x21fc39){return _0x2c5dba(_0x21fc39,_0x5c8005- -0x21e);}return this[_0x24ae1d(0x42b,0x498)](_0x24ae1d(0x410,0x46a),_0x3e6d3e(-0x1c4,-0x18a)+encodeURIComponent(_0x335621)+(_0x24ae1d(0x3cb,0x3f6)+_0x3e6d3e(-0x209,-0x1db)),{'memory_id':_0x2a67c1,'delta':_0x3db9d5});}async[_0x2c5dba(0x49,0x22)+_0x2c5dba(-0x11,0x2b)](_0x58ca99){const _0x799d35=await this[_0x377416(0x5c1,0x5a7)](_0x47fdc3(0x573,0x556),_0x47fdc3(0x4f2,0x4dd)+_0x377416(0x556,0x4fc)+'ch',{'items':_0x58ca99});function _0x377416(_0xb5c073,_0xf7ce2b){return _0x2c5dba(_0xf7ce2b,_0xb5c073-0x535);}function _0x47fdc3(_0x52d3bb,_0x2db2e8){return _0x2c5dba(_0x2db2e8,_0x52d3bb-0x515);}return _0x799d35;}async[_0x115a56(0xd2,0xe9)+_0x115a56(0x37,0x37)](){function _0x267e12(_0x5e19ed,_0x517824){return _0x2c5dba(_0x5e19ed,_0x517824- -0x182);}function _0x9debb7(_0xaf3cfa,_0x8d22f3){return _0x2c5dba(_0xaf3cfa,_0x8d22f3-0x65);}try{return await this[_0x9debb7(0x105,0xf1)](_0x9debb7(0x6a,0xcd),'/api/v1/me'+_0x267e12(-0xe8,-0x14e)+_0x267e12(-0x97,-0xfb)),!![];}catch{return![];}}async['assembleCo'+_0x115a56(0x48,0x72)](_0x4ac207,_0x4f84ac){function _0x20215b(_0x549441,_0x132576){return _0x115a56(_0x132576,_0x549441-0x23a);}const _0x119917=await this['request'](_0x1516c3(0x518,0x4e0),_0x1516c3(0x497,0x49d)+_0x1516c3(0x47e,0x40f)+_0x1516c3(0x48f,0x4d8),{'query':_0x4ac207,'max_memories':_0x4f84ac?.['maxMemorie'+'s']??0x5,'max_tokens':_0x4f84ac?.['maxTokens']??0x7d0,'categories':_0x4f84ac?.[_0x1516c3(0x53b,0x561)],'tier':_0x4f84ac?.[_0x20215b(0x277,0x25f)]});function _0x1516c3(_0x269327,_0x1fbec0){return _0x115a56(_0x1fbec0,_0x269327-0x440);}return _0x119917;}async[_0x115a56(0xeb,0xcd)+_0x2c5dba(0x4d,0x91)](_0x304ff5){function _0x16fb2b(_0x353361,_0x310b43){return _0x2c5dba(_0x310b43,_0x353361- -0x1fb);}const _0x332364=await this[_0x16fb2b(-0x16f,-0x1c4)](_0x351e4e(0x225,0x22d),_0x351e4e(0x1a4,0x1df)+_0x351e4e(0x1fd,0x1e2)+_0x304ff5+_0x16fb2b(-0x1e0,-0x221));function _0x351e4e(_0xf83e79,_0x50bf6b){return _0x2c5dba(_0x50bf6b,_0xf83e79-0x1c7);}return _0x332364;}async[_0x2c5dba(0x7,0x53)+_0x115a56(0x138,0x107)+'ack'](_0x165f29,_0xcfa3c1){function _0x46211c(_0x1dc595,_0x5610be){return _0x115a56(_0x1dc595,_0x5610be-0x206);}function _0x4a11aa(_0x2acc1e,_0x4edd2e){return _0x115a56(_0x2acc1e,_0x4edd2e- -0x112);}try{await this['request'](_0x4a11aa(-0x70,-0x3a),'/api/v1/me'+_0x46211c(0x2d9,0x2b6)+_0x165f29+_0x46211c(0x236,0x29b),{'success':_0xcfa3c1});}catch(_0x6e2f9c){console[_0x46211c(0x29c,0x25b)](_0x46211c(0x2c6,0x2a8)+'forceMemor'+_0x46211c(0x236,0x23e)+_0x4a11aa(-0x70,-0x9c)+'\x20'+_0x165f29+':',_0x6e2f9c instanceof Error?_0x6e2f9c[_0x4a11aa(-0x72,-0xa9)]:String(_0x6e2f9c));}}async[_0x2c5dba(0x6,-0x35)+_0x115a56(0xd4,0xe3)](_0x36f2e7,_0x2a8c68){function _0x31b832(_0x71f6b1,_0x451c4f){return _0x115a56(_0x451c4f,_0x71f6b1-0x2da);}function _0x5ec9bb(_0x7a9088,_0x448dcf){return _0x115a56(_0x448dcf,_0x7a9088- -0x220);}const _0x1b4691=await this['request'](_0x5ec9bb(-0x148,-0x164),_0x5ec9bb(-0x1c9,-0x205)+_0x31b832(0x38a,0x3a8)+_0x36f2e7+_0x5ec9bb(-0x120,-0x11b));return _0x1b4691;}async[_0x2c5dba(-0x7,0x42)](){const _0xe8f2ed=await this['request']('GET','/api/v1/me'+_0x394d8d(0x56,0x2f)+'ts');function _0x394d8d(_0x196cf1,_0x29af9f){return _0x2c5dba(_0x29af9f,_0x196cf1-0x0);}return _0xe8f2ed;}async[_0x115a56(0x37,0x5e)+_0x2c5dba(0x2f,0x59)](_0x433c2f=0xa){const _0x51e1cd=new URLSearchParams();_0x51e1cd[_0x567274(0x2a2,0x2f4)](_0x567274(0x2a1,0x24f),_0x433c2f['toString']());function _0x4e8b37(_0x294932,_0x145161){return _0x115a56(_0x294932,_0x145161- -0x1aa);}const _0x55e49e=_0x567274(0x218,0x22b)+_0x567274(0x22d,0x222)+_0x4e8b37(-0xf8,-0xf3)+_0x51e1cd[_0x4e8b37(-0xa0,-0xfe)]();function _0x567274(_0x41167f,_0x3ab7eb){return _0x115a56(_0x3ab7eb,_0x41167f-0x1c1);}const _0x1a966b=await this['request'](_0x4e8b37(-0x120,-0xc8),_0x55e49e);return _0x1a966b[_0x4e8b37(-0x182,-0x11c)]??[];}async['getTeamSta'+'ts'](_0x450e7d){function _0x3faa5d(_0x39b0f6,_0x12b464){return _0x2c5dba(_0x12b464,_0x39b0f6-0x4b5);}const _0x2f230a=await this[_0x158adb(0x615,0x676)](_0x3faa5d(0x51d,0x560),'/teams/'+encodeURIComponent(_0x450e7d)+(_0x3faa5d(0x49f,0x4f0)+_0x158adb(0x55a,0x576))),_0x42fe4d=_0x2f230a,_0x4344ff=_0x42fe4d['stats']??_0x42fe4d;function _0x158adb(_0x4241f9,_0x6b8a8e){return _0x2c5dba(_0x6b8a8e,_0x4241f9-0x589);}return{'totalMemories':_0x4344ff[_0x158adb(0x5af,0x5ca)+'ries']??0x0,'totalNodes':_0x4344ff[_0x3faa5d(0x4fd,0x506)+'s']??0x0,'lastSyncedAt':_0x4344ff[_0x3faa5d(0x54d,0x4f3)+_0x3faa5d(0x530,0x4f4)]??null};}async[_0x115a56(0x7e,0x7c)+'iencyEvent'](_0x2aad97){function _0x2dca66(_0x2797b3,_0x41a5df){return _0x2c5dba(_0x41a5df,_0x2797b3-0x1cd);}const _0x1790d5=await this[_0x1bd95c(-0xe9,-0x14d)](_0x1bd95c(-0x117,-0x129),_0x2dca66(0x21a,0x214)+_0x1bd95c(-0x124,-0x160)+_0x1bd95c(-0x132,-0x133),{'skill_memory_id':_0x2aad97[_0x1bd95c(-0x15d,-0x13b)+_0x1bd95c(-0x103,-0xca)],'outcome':_0x2aad97[_0x2dca66(0x18c,0x1eb)],'difficulty':_0x2aad97[_0x2dca66(0x1a9,0x177)],'context_tags':_0x2aad97[_0x1bd95c(-0x1b5,-0x170)+'gs'],'session_id':_0x2aad97[_0x1bd95c(-0x18d,-0x1a8)]});function _0x1bd95c(_0x205d37,_0x5a7c70){return _0x2c5dba(_0x5a7c70,_0x205d37- -0x175);}return _0x1790d5;}async[_0x2c5dba(0x1b,0x2)+_0x2c5dba(0x4a,0x4)+_0x2c5dba(0x7,0x35)](_0x57705b){function _0x460055(_0x3d334a,_0x1a8f14){return _0x2c5dba(_0x3d334a,_0x1a8f14- -0x15);}function _0x45cd5c(_0x417388,_0x518f82){return _0x2c5dba(_0x417388,_0x518f82-0x3bb);}await this[_0x460055(0x1d,0x77)](_0x45cd5c(0x44d,0x419),'/api/v1/pr'+_0x45cd5c(0x3cf,0x40c)+_0x45cd5c(0x454,0x41e)+'h',{'events':_0x57705b});}async['listProfic'+'iencies'](_0x40131d){const _0x5d544b=new URLSearchParams();function _0x461db0(_0xc6f7b3,_0x3c1c4e){return _0x2c5dba(_0xc6f7b3,_0x3c1c4e-0x307);}_0x5d544b[_0x461db0(0x38a,0x36e)](_0x461db0(0x342,0x373),_0x461db0(0x317,0x345));if(_0x40131d)_0x5d544b[_0x3103ac(0x269,0x200)](_0x3103ac(0x221,0x216)+'th',_0x40131d);function _0x3103ac(_0x24d6fc,_0x33e8a5){return _0x2c5dba(_0x33e8a5,_0x24d6fc-0x202);}const _0x27e083=_0x3103ac(0x24f,0x258)+'oficiency?'+_0x5d544b[_0x3103ac(0x234,0x287)](),_0x54338e=await this[_0x461db0(0x3d0,0x393)](_0x461db0(0x398,0x36f),_0x27e083);return _0x54338e[_0x461db0(0x346,0x31b)]??[];}async['analyzeEmo'+_0x2c5dba(-0x50,-0x43)](_0x34037f){function _0x502961(_0x2017bb,_0x59ff52){return _0x2c5dba(_0x2017bb,_0x59ff52-0x2d9);}function _0x358606(_0x351912,_0x5484dc){return _0x2c5dba(_0x351912,_0x5484dc-0x2d5);}return this['request']('POST',_0x358606(0x2d5,0x321)+_0x358606(0x2b9,0x2c8)+'ion/emotio'+_0x502961(0x2a5,0x308),{'message':_0x34037f['slice'](0x0,0x1f4)});}async['exportProf'+_0x2c5dba(0x27,-0x38)](_0x383810,_0x1e0f2e){function _0x155bf8(_0xcf1e20,_0x2338ce){return _0x115a56(_0xcf1e20,_0x2338ce- -0x102);}function _0x3baebe(_0x5252ea,_0x291684){return _0x115a56(_0x5252ea,_0x291684- -0x213);}const _0xf12b55=await this[_0x3baebe(-0x109,-0x10d)](_0x155bf8(-0x95,-0x2a),'/api/v1/tr'+_0x3baebe(-0xc6,-0x104)+_0x155bf8(-0x46,-0x7d),{'source_provider':_0x383810,'skill_ids':_0x1e0f2e??null});return _0xf12b55;}async['importProf'+_0x2c5dba(-0x79,-0x38)](_0x51a37a,_0x4a207c){const _0x5e2813=await this['request'](_0x294527(0x3a7,0x360),'/api/v1/tr'+_0x334b4c(0xd9,0xea)+_0x334b4c(0x182,0x126),{'package':_0x51a37a,'target_provider':_0x4a207c});function _0x294527(_0x505fb4,_0x4621d9){return _0x115a56(_0x505fb4,_0x4621d9-0x288);}function _0x334b4c(_0x39dc5a,_0x1a4149){return _0x115a56(_0x39dc5a,_0x1a4149-0xa1);}return _0x5e2813;}async[_0x2c5dba(0x52,0x79)+_0x115a56(0xad,0x51)+'ix'](){const _0x26c455=await this[_0x284123(0x4f,-0x19)](_0x284123(-0x2e,-0x3d),_0xacd026(0x3c3,0x39d)+_0x284123(-0x71,-0x3a)+_0x284123(-0x6b,-0x8b));function _0xacd026(_0x409e9b,_0x2c397e){return _0x2c5dba(_0x2c397e,_0x409e9b-0x362);}function _0x284123(_0x56147b,_0x1dfeca){return _0x2c5dba(_0x56147b,_0x1dfeca- -0xa5);}return _0x26c455['matrix']??[];}async[_0x2c5dba(0xb0,0x73)+_0x115a56(0xe9,0x83)](_0x136b20=0x1){const _0x3716b5=new URLSearchParams();_0x3716b5[_0xca5144(0x507,0x56c)](_0xca5144(0x52f,0x563),_0x136b20[_0xca5144(0x4d2,0x508)]());function _0x356705(_0x3967a4,_0x30b879){return _0x115a56(_0x30b879,_0x3967a4-0x276);}function _0xca5144(_0x2541b9,_0x3533bd){return _0x115a56(_0x3533bd,_0x2541b9-0x426);}const _0x4d821e=_0x356705(0x351,0x342)+_0xca5144(0x48c,0x48c)+_0x356705(0x32a,0x329)+_0x3716b5[_0xca5144(0x4d2,0x492)](),_0xb41a57=await this[_0xca5144(0x52c,0x565)](_0xca5144(0x508,0x4ef),_0x4d821e);return _0xb41a57;}async[_0x2c5dba(-0x45,-0x20)](_0x4b35ea,_0xe2400f){const {readFileSync:_0x595895}=await import(_0x50890c(0x7b,0x9b)),{basename:_0x53d9fd}=await import(_0x50890c(0xdf,0xdc)),_0x3fc89d=_0x595895(_0x4b35ea),_0x5bbbd8=_0x53d9fd(_0x4b35ea),_0x22be88=new FormData();function _0x2ccd26(_0x5d48f9,_0x3ca939){return _0x2c5dba(_0x5d48f9,_0x3ca939- -0x42);}_0x22be88[_0x50890c(0xe0,0xcb)](_0x50890c(0xff,0xc7),new Blob([_0x3fc89d]),_0x5bbbd8);_0xe2400f['category']&&('PcGUV'===_0x50890c(0x123,0xe9)?_0x22be88['append'](_0x50890c(0x161,0x12c),_0xe2400f['category']):_0x344cd1+=':\x20'+_0x43fac2['message']);function _0x50890c(_0x153207,_0x59572d){return _0x2c5dba(_0x153207,_0x59572d-0xa4);}_0xe2400f[_0x2ccd26(-0xc7,-0x6e)]&&_0xe2400f[_0x50890c(0x39,0x78)][_0x50890c(0x7d,0xb6)]>0x0&&_0x22be88[_0x50890c(0xf7,0xcb)]('tags',_0xe2400f[_0x50890c(0x59,0x78)][_0x50890c(0x88,0xdf)](','));const _0x2bd128=await this[_0x50890c(0x2e,0x8f)+'tipart'](_0x50890c(0xbf,0x102),_0x2ccd26(0x2,-0x29)+_0x2ccd26(0x53,0x54),_0x22be88),_0x39c461=_0x2bd128;return{'id':_0x39c461[_0x50890c(0x4b,0xa7)],'filename':_0x39c461['filename']};}async[_0x2c5dba(0x65,0x44)+_0x2c5dba(0x37,0x11)](_0x38220e){function _0x4d6ee7(_0x3d6f72,_0x2d6519){return _0x115a56(_0x2d6519,_0x3d6f72-0xfc);}const _0x1b5cf0=await this['request'](_0x4d6ee7(0x1d4,0x222),_0x45ef17(0x9f,0xdd)+'les/check-'+'duplicate',{'content_hash':_0x38220e}),_0x3883e2=_0x1b5cf0;function _0x45ef17(_0x154362,_0xe45451){return _0x115a56(_0x154362,_0xe45451-0x4a);}return{'exists':_0x3883e2[_0x4d6ee7(0x1d3,0x183)+'te'],'file_id':_0x3883e2[_0x45ef17(0x16c,0x147)+_0x4d6ee7(0x19a,0x200)]?.['id']};}async[_0x115a56(0xc4,0x9c)+_0x2c5dba(-0x2,0x58)](_0x109be2,_0x1c0215,_0x45f8d2){function _0x16c46a(_0x3c2a17,_0x2ef8a3){return _0x115a56(_0x3c2a17,_0x2ef8a3- -0x228);}const _0x4d680e=await this[_0x2becd7(0x537,0x5a2)]('POST',_0x2becd7(0x488,0x41d)+_0x16c46a(-0x127,-0x140),{'memory_id':_0x109be2,'file_id':_0x1c0215,'reference_type':_0x45f8d2['reference_'+_0x2becd7(0x46d,0x4d5)],'reference_path':_0x45f8d2['reference_'+_0x2becd7(0x4ec,0x4e7)]});function _0x2becd7(_0x4a12b9,_0x3d97c4){return _0x115a56(_0x3d97c4,_0x4a12b9-0x431);}return _0x4d680e;}async[_0x2c5dba(0x7f,0x16)+_0x115a56(0xc3,0xc0)](_0x18e843){const _0x3cb2fb=await this[_0x391a16(0x585,0x5f1)](_0x44b7b7(0x1d5,0x1c9),_0x44b7b7(0x1d7,0x19e)+'g/contexts',_0x18e843);function _0x44b7b7(_0x1c2629,_0x3b083f){return _0x115a56(_0x3b083f,_0x1c2629-0xfd);}const _0x55b4b3=_0x3cb2fb?.[_0x391a16(0x533,0x591)]?.['id']??_0x3cb2fb?.['id'];if(!_0x55b4b3)throw new Error(_0x391a16(0x542,0x57b)+_0x44b7b7(0x1e8,0x1cc)+_0x391a16(0x57a,0x54c)+_0x391a16(0x551,0x5ba));function _0x391a16(_0x12f5ce,_0x274817){return _0x115a56(_0x12f5ce,_0x274817-0x4eb);}return{'id':_0x55b4b3};}async[_0x2c5dba(0x44,0x20)+'Member'](_0x415329,_0x3b1587){function _0x4e009d(_0x2adbcd,_0x15736b){return _0x115a56(_0x15736b,_0x2adbcd-0x356);}function _0x536de0(_0x1ae019,_0xc2536a){return _0x115a56(_0x1ae019,_0xc2536a-0x268);}return this[_0x536de0(0x39a,0x36e)](_0x536de0(0x346,0x340),_0x536de0(0x2f6,0x342)+_0x4e009d(0x459,0x4b2)+'/'+_0x415329+_0x4e009d(0x450,0x423),_0x3b1587);}async[_0x115a56(0x4f,0x40)+'tion'](_0x5da8e0){function _0x3c5fb1(_0x4cf5cb,_0x423f8d){return _0x115a56(_0x4cf5cb,_0x423f8d- -0xbe);}function _0x4de93f(_0x3641e0,_0x19c8e1){return _0x115a56(_0x3641e0,_0x19c8e1-0x23);}return this[_0x3c5fb1(0x17,0x48)](_0x4de93f(0x110,0xfb),_0x4de93f(0x147,0xfd)+_0x4de93f(0x80,0xd4)+'s',_0x5da8e0);}async[_0x2c5dba(0x3f,0x3f)+_0x2c5dba(0x1,-0x1)](_0x376585){function _0x1f1afd(_0xe704b5,_0x690cfb){return _0x2c5dba(_0x690cfb,_0xe704b5-0x497);}function _0x990a66(_0x10121f,_0x4236b4){return _0x2c5dba(_0x10121f,_0x4236b4- -0x124);}try{const _0x329cc9=await this[_0x990a66(-0xc9,-0x98)](_0x1f1afd(0x4f5,0x49b),_0x1f1afd(0x521,0x4ca)+_0x1f1afd(0x45c,0x470)+_0x990a66(-0x6c,-0xba),{'content':_0x376585[_0x1f1afd(0x4b4,0x4ac)]['slice'](0x0,0x7d0),'tags':_0x376585['tags']??[],'category':_0x376585['category']}),_0x19c148=_0x329cc9;if(_0x19c148[_0x990a66(-0xe3,-0xaa)]&&_0x19c148['result']){if(_0x1f1afd(0x4a5,0x45e)!==_0x990a66(-0xc3,-0x116))throw new _0x2ffa94(_0x990a66(-0xd0,-0xa5)+_0x990a66(-0xea,-0x11a)+'다');else return _0x19c148[_0x1f1afd(0x4e1,0x496)];}return null;}catch{return null;}}static [_0x115a56(0xb5,0xaa)+'STATUS']=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x2c5dba(0x48,-0x2)+'S']=0x3;static [_0x2c5dba(0x69,0x1)+_0x115a56(0x4b,0xa3)]=0x3e8;async[_0x115a56(0xeb,0x106)](_0x1cb33a,_0x1c393b,_0x41854b){function _0x28edd5(_0x31d30e,_0x4c2b0c){return _0x2c5dba(_0x4c2b0c,_0x31d30e-0x525);}function _0x1ceb04(_0x2c4b68,_0xcc11cf){return _0x2c5dba(_0x2c4b68,_0xcc11cf-0x51e);}let _0x1a1770;for(let _0x1ac1b1=0x0;_0x1ac1b1<A2AClient['MAX_RETRIE'+'S'];_0x1ac1b1++){if(_0x1ceb04(0x4b2,0x501)===_0x1ceb04(0x536,0x5a0))_0x4b4839[_0x1ceb04(0x539,0x4f9)](_0x28edd5(0x54d,0x53e)+'forceMemor'+'yFeedback\x20'+_0x28edd5(0x521,0x527)+'\x20'+_0x4abe6c+':',_0x4fc28d instanceof _0x2c1c6e?_0x7388cf['message']:_0x3f2a6e(_0x3e906c));else{const _0x4d5208=''+this[_0x28edd5(0x570,0x556)]['baseUrl']+_0x1c393b,_0x1a3f67=new AbortController(),_0x33adc4=setTimeout(()=>_0x1a3f67[_0x28edd5(0x52a,0x57c)](),this[_0x28edd5(0x59a,0x5c4)]);try{const _0x1c3afc=await fetch(_0x4d5208,{'method':_0x1cb33a,'headers':{'Content-Type':_0x1ceb04(0x4f2,0x557)+_0x28edd5(0x4f3,0x4be),'x-api-key':this[_0x1ceb04(0x558,0x569)][_0x28edd5(0x5aa,0x53f)],'X-Plugin-Version':_pluginVersion,...this['enabledFea'+_0x1ceb04(0x531,0x56e)]['length']>0x0&&{'X-Plugin-Features':this['enabledFea'+_0x1ceb04(0x596,0x56e)][_0x28edd5(0x560,0x59b)](',')}},'body':_0x41854b?JSON[_0x28edd5(0x592,0x57a)](_0x41854b):undefined,'signal':_0x1a3f67['signal']});clearTimeout(_0x33adc4);if(A2AClient[_0x28edd5(0x555,0x50f)+_0x28edd5(0x543,0x577)]['has'](_0x1c3afc['status'])&&_0x1ac1b1<A2AClient[_0x1ceb04(0x584,0x51c)+'S']-0x1){if(_0x28edd5(0x503,0x4f4)===_0x1ceb04(0x4ba,0x4fc)){const _0x312f5d=A2AClient[_0x28edd5(0x526,0x4c0)+_0x28edd5(0x54e,0x504)]*Math[_0x1ceb04(0x5f6,0x5b7)](0x2,_0x1ac1b1);await new Promise(_0x563f2a=>setTimeout(_0x563f2a,_0x312f5d));continue;}else throw _0x52e722(new _0x3b2f03(_0x28edd5(0x531,0x4de)+_0x28edd5(0x561,0x589)+'요'),0x191);}!_0x1c3afc['ok']&&await this[_0x28edd5(0x580,0x5ae)+_0x28edd5(0x59c,0x5ed)](_0x1c3afc);if(_0x1cb33a===_0x1ceb04(0x5cf,0x583)&&_0x1c3afc[_0x1ceb04(0x4ee,0x4e8)]===0xcc)return;return await _0x1c3afc[_0x28edd5(0x516,0x505)]();}catch(_0x79c518){clearTimeout(_0x33adc4);if(_0x79c518 instanceof Error){if(getErrorStatus(_0x79c518)!==undefined)throw _0x79c518;if(_0x79c518['message']['startsWith'](_0x28edd5(0x56c,0x540))||_0x79c518[_0x28edd5(0x514,0x53d)]['startsWith'](_0x28edd5(0x581,0x5a2))||_0x79c518['message'][_0x1ceb04(0x551,0x531)](_0x1ceb04(0x5b9,0x57d))||_0x79c518[_0x1ceb04(0x4db,0x50d)][_0x28edd5(0x538,0x585)](_0x28edd5(0x520,0x4dc)))throw _0x79c518;if(_0x1ac1b1<A2AClient[_0x1ceb04(0x55d,0x51c)+'S']-0x1){if(_0x28edd5(0x54a,0x532)===_0x28edd5(0x565,0x580)){const _0x3ac91b=_0x1985ba(_0xcfec06[_0x1ceb04(0x4de,0x53b)]);if(_0x3ac91b)try{_0x410ca2[_0x28edd5(0x542,0x5a6)]=_0x345b6d(_0x3ac91b,this[_0x28edd5(0x4f7,0x49b)+'Key']);}catch{}}else{_0x1a1770=_0x79c518;const _0x15379c=A2AClient['BASE_DELAY'+_0x28edd5(0x54e,0x530)]*Math[_0x28edd5(0x5be,0x5b9)](0x2,_0x1ac1b1);await new Promise(_0x1ddc31=>setTimeout(_0x1ddc31,_0x15379c));continue;}}if(_0x79c518[_0x1ceb04(0x53b,0x500)]==='AbortError')throw new Error(_0x28edd5(0x5b0,0x601)+this[_0x1ceb04(0x552,0x593)]+'ms를\x20넘었습니다');throw new Error(_0x28edd5(0x56e,0x598)+_0x79c518['message']);}throw _0x79c518;}}}throw _0x1a1770??new Error('요청\x20실패:\x20'+A2AClient['MAX_RETRIE'+'S']+'회\x20재시도\x20후\x20실패');}async['requestMul'+_0x115a56(0x66,0x74)](_0xb6e0a3,_0x166746,_0x111041){function _0x4cd7c1(_0xe8f208,_0x3b9fb3){return _0x2c5dba(_0x3b9fb3,_0xe8f208- -0x45);}function _0x2eed40(_0x515945,_0x359624){return _0x2c5dba(_0x359624,_0x515945-0x268);}const _0x3e1bcb=''+this['config']['baseUrl']+_0x166746,_0x4d920f=new AbortController(),_0x103a62=setTimeout(()=>_0x4d920f[_0x2eed40(0x26d,0x2a0)](),this['timeout']);try{const _0x5e7f2e=await fetch(_0x3e1bcb,{'method':_0xb6e0a3,'headers':{'x-api-key':this[_0x2eed40(0x2b3,0x2f0)]['apiKey'],'X-Plugin-Version':_pluginVersion},'body':_0x111041,'signal':_0x4d920f[_0x4cd7c1(0x52,-0x18)]});return clearTimeout(_0x103a62),!_0x5e7f2e['ok']&&await this['handleErro'+_0x4cd7c1(0x32,0xe)](_0x5e7f2e),await _0x5e7f2e[_0x4cd7c1(-0x54,-0xad)]();}catch(_0x3523a5){clearTimeout(_0x103a62);if(_0x3523a5 instanceof Error&&_0x3523a5[_0x4cd7c1(-0x63,-0xbc)]===_0x2eed40(0x268,0x23d))throw new Error(_0x4cd7c1(0x46,0x12)+this[_0x2eed40(0x2dd,0x2e1)]+_0x4cd7c1(-0x58,-0x64));throw _0x3523a5;}}async[_0x2c5dba(0x4a,0x5b)+_0x2c5dba(0x4c,0x77)](_0x48dced){const _0x5f0bce=_0x48dced['status'];if(_0x5f0bce===0x191){if('RzGob'!==_0x4be693(0x174,0x178))throw withStatus(new Error(_0x4b08cd(0x26b,0x21f)+_0x4b08cd(0x21e,0x24f)+'요'),0x191);else throw _0x104435;}function _0x4be693(_0x1eea0d,_0x2561f8){return _0x115a56(_0x1eea0d,_0x2561f8-0x108);}if(_0x5f0bce===0x1ad)throw withStatus(new Error(_0x4be693(0x17b,0x14b)+'후\x20다시\x20시도하세요'),0x1ad);let _0x3c63bb=_0x4be693(0x169,0x176)+_0x5f0bce;try{const _0x29c15d=await _0x48dced['json']();if(Array[_0x4b08cd(0x2a7,0x2a6)](_0x29c15d[_0x4be693(0x266,0x214)])){const _0x93ccd3=_0x29c15d[_0x4be693(0x1dd,0x214)][_0x4b08cd(0x1f4,0x244)](_0xac9eb9=>{function _0xf96b72(_0x11501d,_0x581012){return _0x4be693(_0x11501d,_0x581012-0x34b);}const _0x120eb8=Array[_0x8f0406(-0x87,-0xb3)](_0xac9eb9[_0xf96b72(0x443,0x4a7)])?_0xac9eb9[_0x8f0406(-0x182,-0x16c)][_0xf96b72(0x552,0x508)]('.'):'',_0x136621=_0xac9eb9[_0xf96b72(0x574,0x51b)]??JSON[_0x8f0406(-0xf9,-0xd9)](_0xac9eb9);function _0x8f0406(_0x2ed416,_0x19a328){return _0x4be693(_0x2ed416,_0x19a328- -0x2c8);}return _0x120eb8?_0x120eb8+':\x20'+_0x136621:_0x136621;})[_0x4b08cd(0x1f2,0x24e)](_0x4b08cd(0x195,0x1eb));_0x3c63bb+=':\x20'+_0x93ccd3;}else{if(_0x29c15d[_0x4b08cd(0x27a,0x2a5)])_0x3c63bb+=':\x20'+_0x29c15d[_0x4be693(0x26e,0x214)];else _0x29c15d[_0x4be693(0x140,0x171)]&&(_0x3c63bb+=':\x20'+_0x29c15d[_0x4b08cd(0x1c7,0x202)]);}}catch{}function _0x4b08cd(_0x39bc44,_0xf7e64){return _0x115a56(_0x39bc44,_0xf7e64-0x199);}throw withStatus(new Error(_0x3c63bb),_0x5f0bce);}}
|
package/dist/sync/encryption.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bb35c,_0x1594dd){function _0x2f15ed(_0x142254,_0x3864a6){return _0x4844(_0x3864a6-0x1ea,_0x142254);}function _0x2e8735(_0x52a57a,_0x2762b8){return _0x4844(_0x52a57a-0x94,_0x2762b8);}const _0x37f9d0=_0x2bb35c();while(!![]){try{const _0x22ee5a=-parseInt(_0x2f15ed(0x298,0x28f))/0x1+parseInt(_0x2f15ed(0x286,0x299))/0x2+parseInt(_0x2e8735(0x144,0x148))/0x3*(parseInt(_0x2f15ed(0x29f,0x2a9))/0x4)+-parseInt(_0x2e8735(0x14a,0x14c))/0x5+-parseInt(_0x2f15ed(0x285,0x284))/0x6+-parseInt(_0x2e8735(0x13a,0x12a))/0x7*(parseInt(_0x2f15ed(0x28f,0x287))/0x8)+parseInt(_0x2e8735(0x14d,0x13e))/0x9*(parseInt(_0x2e8735(0x14b,0x149))/0xa);if(_0x22ee5a===_0x1594dd)break;else _0x37f9d0['push'](_0x37f9d0['shift']());}catch(_0x48fb17){_0x37f9d0['push'](_0x37f9d0['shift']());}}}(_0x2855,0xb2cd4));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM=_0x12f371(0x3f,0x3e)+'m';function _0x1f7b71(_0x2ca46d,_0x48110a){return _0x4844(_0x2ca46d- -0x1fc,_0x48110a);}const KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST=_0x1f7b71(-0x13f,-0x137);export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x79f11e,_0x24c164){const _0x1e69e3=_0x24c164??randomBytes(SALT_LENGTH),_0x148109=pbkdf2Sync(_0x79f11e,_0x1e69e3,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x148109,'salt':_0x1e69e3};}export function encryptContent(_0x31294e,_0x46dd9f){if(_0x46dd9f[_0x48fff3(0x1e8,0x1f4)]!==KEY_LENGTH)throw new Error(_0xe753eb(0x108,0x116)+KEY_LENGTH+('\x20bytes여야\x20합'+_0x48fff3(0x1f9,0x207))+_0x46dd9f[_0x48fff3(0x1e8,0x1d4)]+')');const _0x20452a=randomBytes(IV_LENGTH),_0x341dcf=createCipheriv(ALGORITHM,_0x46dd9f,_0x20452a),_0x288b8c=Buffer[_0xe753eb(0x107,0x10f)](_0x31294e,_0x48fff3(0x1e9,0x1da));function _0xe753eb(_0x588a36,_0x50aadc){return _0x1f7b71(_0x50aadc-0x258,_0x588a36);}const _0x7efcb=Buffer[_0xe753eb(0x110,0x108)]([_0x341dcf[_0x48fff3(0x1db,0x1e6)](_0x288b8c),_0x341dcf['final']()]);function _0x48fff3(_0x3ec307,_0x4c0260){return _0x1f7b71(_0x3ec307-0x337,_0x4c0260);}const _0x4fd7fa=_0x341dcf[_0xe753eb(0x106,0xfa)]();return{'ciphertext':_0x7efcb['toString'](_0x48fff3(0x1da,0x1de)),'iv':_0x20452a['toString'](_0x48fff3(0x1da,0x1d2)),'tag':_0x4fd7fa['toString'](_0x48fff3(0x1da,0x1c6))};}function _0x2855(){const _0x5dab76=['C3rYAw5N','ioUnSoYDTo2eScdRS4dSOBaP','ntC2rgHltuTA','z2v0qxv0AfrHzW','yMfZzty0','DxbKyxrL','y2LWAgvYDgv4Da','yNL0zuXLBMD0Aa','zgf0yq','icJSNPJRQRVRKjWG7ykKioUyKoUkLa','mtuXodq1B3zdrwrX','oteWmJHkDwf3wLK','C2v0qxv0AfrHzW','DgfN','q3rPswW','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','y29Uy2f0','BgvUz3rO','DxrMltG','mJG5nda2nhPSugjWwG','m0TZvKTbrW','C3vIyxjYyxK','67o17zI47zMuioYlPo2mQdOG','zNjVBq','Dg9tDhjPBMC','zMLUywW','odK3odm1s3jtC1LI','mtbwwMjlv00','zw5JCNLWDgvK','nJe3mZKWmwPJtxfquW','7jwu7zI47zMuio2cPoUkLca','ywvZlti1nI1NyW','CgfYC2u','C2HHnteY','64Ui64UKicJTMitSNQW6ia','mJGYndCZmMrSywvozW','yNL0zu9MzNnLDa','BwvZC2fNzq','ntaZndC5mMPUs3nKBq'];_0x2855=function(){return _0x5dab76;};return _0x2855();}export function decryptContent(_0x27bb6f,_0x4f7ee0){if(_0x4f7ee0[_0x492eea(0x1b2,0x1a1)]!==KEY_LENGTH){if('CtiIl'===_0x7c8071(0x140,0x133))throw new Error(_0x7c8071(0x134,0x144)+KEY_LENGTH+('\x20bytes여야\x20합'+'니다\x20(현재:\x20')+_0x4f7ee0[_0x492eea(0x1b2,0x1b0)]+')');else throw new _0x27e621(_0x7c8071(0x154,0x144)+_0x297d0c+('\x20bytes여야\x20합'+_0x492eea(0x1c3,0x1cf))+_0x2ccd16[_0x7c8071(0x142,0x137)]+')');}const _0x3b4250=Buffer['from'](_0x27bb6f['iv'],_0x7c8071(0x12c,0x129)),_0x1ee8bf=Buffer[_0x7c8071(0x151,0x13d)](_0x27bb6f[_0x7c8071(0x121,0x12b)],'base64'),_0x707cb1=Buffer[_0x492eea(0x1b8,0x1b6)](_0x27bb6f[_0x492eea(0x1ad,0x1ad)],_0x7c8071(0x13c,0x129)),_0x4987cf=createDecipheriv(ALGORITHM,_0x4f7ee0,_0x3b4250);function _0x7c8071(_0x46bbda,_0x2cdbf0){return _0x12f371(_0x46bbda,_0x2cdbf0-0x107);}_0x4987cf[_0x7c8071(0x126,0x131)](_0x707cb1);function _0x492eea(_0x3559cf,_0x223fa5){return _0x12f371(_0x223fa5,_0x3559cf-0x182);}try{const _0x23a21f=Buffer['concat']([_0x4987cf[_0x492eea(0x1a5,0x1ae)](_0x1ee8bf),_0x4987cf[_0x492eea(0x1ba,0x1c7)]()]);return _0x23a21f['toString'](_0x7c8071(0x126,0x138));}catch(_0x256ce9){if(_0x256ce9 instanceof Error)throw new Error(_0x492eea(0x1b7,0x1c3)+_0x256ce9[_0x7c8071(0x148,0x14b)]+(_0x7c8071(0x12c,0x12e)+_0x492eea(0x1a1,0x1b0)));throw _0x256ce9;}}export function encryptEmbedding(_0x236ee2,_0x493c29){function _0x4194f8(_0x1a9a97,_0x4dcd18){return _0x1f7b71(_0x1a9a97- -0x78,_0x4dcd18);}function _0x3580d5(_0x24768c,_0x124eca){return _0x1f7b71(_0x124eca- -0x137,_0x24768c);}const _0x21a761=new Float64Array(_0x236ee2),_0x13bbad=Buffer[_0x3580d5(-0x277,-0x280)](_0x21a761['buffer']),_0x164b12=randomBytes(IV_LENGTH),_0x40967c=createCipheriv(ALGORITHM,_0x493c29,_0x164b12),_0x43f4e5=Buffer[_0x3580d5(-0x27f,-0x287)]([_0x40967c['update'](_0x13bbad),_0x40967c[_0x3580d5(-0x277,-0x27e)]()]),_0x34bcc7=_0x40967c[_0x4194f8(-0x1d6,-0x1c2)](),_0x437e8e=Buffer[_0x4194f8(-0x1c8,-0x1d5)]([_0x164b12,_0x34bcc7,_0x43f4e5]);return _0x437e8e[_0x4194f8(-0x1c0,-0x1bf)](_0x4194f8(-0x1d5,-0x1d8));}export function decryptEmbedding(_0x2a6c0b,_0x503013){function _0x3c51bc(_0x23e996,_0x597391){return _0x1f7b71(_0x23e996-0x480,_0x597391);}const _0x414a29=Buffer['from'](_0x2a6c0b,_0x19ae16(0x322,0x331));if(_0x414a29[_0x19ae16(0x330,0x341)]<IV_LENGTH+TAG_LENGTH)throw new Error('암호화된\x20임베딩\x20데'+_0x3c51bc(0x32f,0x32f)+'다');const _0x4b8a90=_0x414a29[_0x3c51bc(0x335,0x331)](0x0,IV_LENGTH),_0x233256=_0x414a29[_0x3c51bc(0x335,0x327)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x38ada4=_0x414a29[_0x3c51bc(0x335,0x328)](IV_LENGTH+TAG_LENGTH),_0x50c01e=createDecipheriv(ALGORITHM,_0x503013,_0x4b8a90);_0x50c01e[_0x3c51bc(0x32b,0x339)](_0x233256);function _0x19ae16(_0x247180,_0x121363){return _0x1f7b71(_0x247180-0x47f,_0x121363);}try{const _0x4270c1=Buffer[_0x3c51bc(0x330,0x331)]([_0x50c01e[_0x3c51bc(0x324,0x324)](_0x38ada4),_0x50c01e[_0x19ae16(0x338,0x33e)]()]),_0x7e5a3c=new Float64Array(_0x4270c1['buffer'],_0x4270c1[_0x3c51bc(0x344,0x33d)],_0x4270c1[_0x19ae16(0x325,0x31e)]/Float64Array['BYTES_PER_'+'ELEMENT']);return Array['from'](_0x7e5a3c);}catch(_0x164a6a){if(_0x164a6a instanceof Error)throw new Error(_0x19ae16(0x32d,0x33b)+':\x20'+_0x164a6a['message']);throw _0x164a6a;}}function _0x4844(_0x2ef2d4,_0x5a252d){_0x2ef2d4=_0x2ef2d4-0x9a;const _0x285583=_0x2855();let _0x4844a2=_0x285583[_0x2ef2d4];if(_0x4844['dgMEZH']===undefined){var _0x41500c=function(_0x8ffab9){const _0x493d32='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a3aa9='',_0x3a1ba4='';for(let _0xc976cb=0x0,_0x507d13,_0x4cea4b,_0x18b5bd=0x0;_0x4cea4b=_0x8ffab9['charAt'](_0x18b5bd++);~_0x4cea4b&&(_0x507d13=_0xc976cb%0x4?_0x507d13*0x40+_0x4cea4b:_0x4cea4b,_0xc976cb++%0x4)?_0x1a3aa9+=String['fromCharCode'](0xff&_0x507d13>>(-0x2*_0xc976cb&0x6)):0x0){_0x4cea4b=_0x493d32['indexOf'](_0x4cea4b);}for(let _0x5535f2=0x0,_0x239a42=_0x1a3aa9['length'];_0x5535f2<_0x239a42;_0x5535f2++){_0x3a1ba4+='%'+('00'+_0x1a3aa9['charCodeAt'](_0x5535f2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a1ba4);};_0x4844['zRtsJN']=_0x41500c,_0x4844['MKqfcN']={},_0x4844['dgMEZH']=!![];}const _0x128d25=_0x285583[0x0],_0x5ea844=_0x2ef2d4+_0x128d25,_0x15d62e=_0x4844['MKqfcN'][_0x5ea844];return!_0x15d62e?(_0x4844a2=_0x4844['zRtsJN'](_0x4844a2),_0x4844['MKqfcN'][_0x5ea844]=_0x4844a2):_0x4844a2=_0x15d62e,_0x4844a2;}export function isValidEncryptedPayload(_0x1e2da9){function _0x54963f(_0x56ea52,_0xf6148){return _0x12f371(_0x56ea52,_0xf6148- -0x6);}function _0x1cb2d5(_0x1e3ae1,_0x56a98b){return _0x12f371(_0x56a98b,_0x1e3ae1- -0xa4);}if(typeof _0x1e2da9!=='object'||_0x1e2da9===null)return![];const _0x233a7e=_0x1e2da9;return typeof _0x233a7e[_0x54963f(0x27,0x1e)]===_0x54963f(0xa,0x18)&&typeof _0x233a7e['iv']===_0x54963f(0x4,0x18)&&typeof _0x233a7e['tag']===_0x1cb2d5(-0x86,-0x76);}function _0x12f371(_0x4cf837,_0x781af6){return _0x4844(_0x781af6- -0x7d,_0x4cf837);}export function wrapEncryptedContent(_0x195442){function _0x3e2f72(_0x4be827,_0x1b98bf){return _0x1f7b71(_0x1b98bf-0x26c,_0x4be827);}function _0x123dd1(_0x249edf,_0x48d75a){return _0x1f7b71(_0x249edf- -0x15e,_0x48d75a);}return JSON['stringify']({'encrypted':!![],'data':_0x195442[_0x123dd1(-0x2b9,-0x2cd)],'iv':_0x195442['iv'],'tag':_0x195442[_0x3e2f72(0x10f,0x118)]});}export function unwrapEncryptedContent(_0xa0b9dc){function _0x47dd62(_0x55ecc3,_0x1d9162){return _0x12f371(_0x1d9162,_0x55ecc3-0x368);}function _0x199cb1(_0x2fbeed,_0x5c6d24){return _0x12f371(_0x2fbeed,_0x5c6d24-0x1d7);}try{const _0x24f07d=JSON[_0x199cb1(0x220,0x216)](_0xa0b9dc);if(_0x24f07d[_0x199cb1(0x209,0x212)]!==!![])return null;if(typeof _0x24f07d[_0x199cb1(0x204,0x1fd)]!==_0x199cb1(0x1f6,0x1f5)||typeof _0x24f07d['iv']!==_0x199cb1(0x1e5,0x1f5)||typeof _0x24f07d[_0x199cb1(0x1fd,0x202)]!=='string')return null;return{'ciphertext':_0x24f07d[_0x199cb1(0x1ea,0x1fd)],'iv':_0x24f07d['iv'],'tag':_0x24f07d['tag']};}catch{return null;}}
|
package/dist/sync/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8af95d,_0x2feb4b){function _0x4eaa84(_0x121721,_0x1d73f5){return _0x189e(_0x121721-0x28e,_0x1d73f5);}var _0x27062d=_0x8af95d();function _0x4ecd6f(_0x3a4aac,_0x5004d4){return _0x189e(_0x3a4aac-0x2d2,_0x5004d4);}while(!![]){try{var _0x309672=-parseInt(_0x4eaa84(0x45b,0x45d))/0x1+-parseInt(_0x4eaa84(0x45a,0x45d))/0x2*(-parseInt(_0x4eaa84(0x457,0x452))/0x3)+-parseInt(_0x4eaa84(0x45e,0x45c))/0x4*(-parseInt(_0x4ecd6f(0x4a3,0x49f))/0x5)+-parseInt(_0x4eaa84(0x45c,0x45d))/0x6+parseInt(_0x4eaa84(0x455,0x450))/0x7*(parseInt(_0x4eaa84(0x459,0x45c))/0x8)+parseInt(_0x4eaa84(0x456,0x45a))/0x9*(parseInt(_0x4eaa84(0x45d,0x458))/0xa)+parseInt(_0x4eaa84(0x458,0x45b))/0xb;if(_0x309672===_0x2feb4b)break;else _0x27062d['push'](_0x27062d['shift']());}catch(_0xf62455){_0x27062d['push'](_0x27062d['shift']());}}}(_0x35f3,0xa5484));export{A2AClient}from'./client.js';function _0x35f3(){var _0x446732=['mJCZmtbMuvLjAwO','mte5ndm1nNfJv2TLBW','nJe2nZeZnNrMswXPyq','mtbSshvvAeC','mtmYneHNDwXzBq','mtu0nJvlB2L6uvy','ntKZodfHuKzXy1u','mteYnZKZndLQshjcz2K','ntDvENHYyui','mZGWmZi4m0zdqKjjua','mtzNtvnHBxO'];_0x35f3=function(){return _0x446732;};return _0x35f3();}export{MemorySynchronizer}from'./synchronizer.js';export{SyncQueue,mapCategory,mapTier}from'./queue.js';export{LocalVectorClock}from'./vector-clock.js';export{TeamSynchronizer}from'./team-synchronizer.js';export{SyncScheduler}from'./scheduler.js';function _0x189e(_0x25e7e7,_0x4abac5){_0x25e7e7=_0x25e7e7-0x1c7;var _0x35f3a8=_0x35f3();var _0x189e92=_0x35f3a8[_0x25e7e7];if(_0x189e['JilyGv']===undefined){var _0x34a9f7=function(_0x47c7d6){var _0x2e7f79='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3d24e5='',_0x5a1831='';for(var _0x38d311=0x0,_0x53bd53,_0xb7e762,_0x304932=0x0;_0xb7e762=_0x47c7d6['charAt'](_0x304932++);~_0xb7e762&&(_0x53bd53=_0x38d311%0x4?_0x53bd53*0x40+_0xb7e762:_0xb7e762,_0x38d311++%0x4)?_0x3d24e5+=String['fromCharCode'](0xff&_0x53bd53>>(-0x2*_0x38d311&0x6)):0x0){_0xb7e762=_0x2e7f79['indexOf'](_0xb7e762);}for(var _0x5bd1ff=0x0,_0x3b4f87=_0x3d24e5['length'];_0x5bd1ff<_0x3b4f87;_0x5bd1ff++){_0x5a1831+='%'+('00'+_0x3d24e5['charCodeAt'](_0x5bd1ff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a1831);};_0x189e['SVifwC']=_0x34a9f7,_0x189e['OHvGjy']={},_0x189e['JilyGv']=!![];}var _0x1f07b9=_0x35f3a8[0x0],_0x5db587=_0x25e7e7+_0x1f07b9,_0x284367=_0x189e['OHvGjy'][_0x5db587];return!_0x284367?(_0x189e92=_0x189e['SVifwC'](_0x189e92),_0x189e['OHvGjy'][_0x5db587]=_0x189e92):_0x189e92=_0x284367,_0x189e92;}export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
|
package/dist/sync/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x266cae,_0x5b929c){function _0x54dd07(_0x176ccf,_0x4584db){return _0x9864(_0x4584db- -0x18a,_0x176ccf);}const _0x42bfb5=_0x266cae();function _0x574e3e(_0x4f57f8,_0xe5a831){return _0x9864(_0x4f57f8-0x1e0,_0xe5a831);}while(!![]){try{const _0xa0b8ca=-parseInt(_0x54dd07(-0x105,-0xde))/0x1+parseInt(_0x574e3e(0x2ae,0x2d9))/0x2+parseInt(_0x574e3e(0x295,0x2af))/0x3*(-parseInt(_0x54dd07(-0xc5,-0xaa))/0x4)+-parseInt(_0x54dd07(-0x84,-0xa5))/0x5+parseInt(_0x54dd07(-0xc0,-0xce))/0x6+-parseInt(_0x574e3e(0x2c3,0x2f0))/0x7+-parseInt(_0x574e3e(0x27f,0x27b))/0x8*(-parseInt(_0x54dd07(-0xe6,-0xc3))/0x9);if(_0xa0b8ca===_0x5b929c)break;else _0x42bfb5['push'](_0x42bfb5['shift']());}catch(_0x185072){_0x42bfb5['push'](_0x42bfb5['shift']());}}}(_0x1f04,0x3f583));import{createHash}from'node:crypto';import{getErrorStatus}from'./client.js';const CATEGORY_MAP={'preference':'convention','rule':'convention'},TIER_MAP={'procedural':_0x48302f(0x32e,0x31c)};export function mapCategory(_0x2e0fd3){return CATEGORY_MAP[_0x2e0fd3]??_0x2e0fd3;}export function mapTier(_0xe83054){return TIER_MAP[_0xe83054]??_0xe83054;}function _0x282aa5(_0x26977c,_0x1a8a49){return _0x9864(_0x26977c-0x29b,_0x1a8a49);}function computeContentHash(_0x17f512){function _0x47cfbb(_0x38b41a,_0x9ba628){return _0x48302f(_0x38b41a- -0x4c6,_0x9ba628);}function _0x20c556(_0x3a941c,_0x500d44){return _0x48302f(_0x500d44- -0x628,_0x3a941c);}return createHash('sha256')[_0x20c556(-0x329,-0x315)](_0x17f512[_0x20c556(-0x2f5,-0x2eb)]()[_0x20c556(-0x2b8,-0x2dc)+'e']())[_0x47cfbb(-0x164,-0x172)]('hex')['substring'](0x0,0x10);}function _0x1f04(){const _0x5cd9e0=['vwLODNC','z2v0','zxfjz0y','CgvUzgLUzW','BgLTAxq','CM91BMq','DgfNCW','CMvZzxrtEw5JqG','C2XPy2u','Bwf0y2G','y3jLyxrLtwvTBW','nJG4BxvUuwnU','BgvUz3rO','y2f0zwDVCNK','mZmXmZm4yKn5v0vH','CMvTB3rLswq','mtu0nde3mhfgt2vzCa','6RcCignOAwXKiokaLca','zMLSDgvY','zgLNzxn0','y2H1BMTuB3rHBa','C2JSL5dSHjWG7j6SChvZAa','zhvYyxrPB24','ALnzv0S','AwrZ','CgfYzw50swq','CMf0zuXPBwL0zq','BxnN','C3LUy2vKsxrLBq','CxvHBgL0EvnJBW','C3rHBguGCgfYzq','ChvZAa','DxbKyxrL','7zAjihbLBMrPBMCG','B3rLx2LKioUVUo2zLEYDUa','Dgvjza','z2v0u3LUy1n0yq','CgfYzw50ihjLBq','mJa2mJK2EenXvhzS','Bwf4','67cW7lMyioYlPo2mQdOG','zgvSzxrLu3LUyW','q291BNq','ufPbsMS','C2v0u3LUy1n0yq','u3rHDhvZ','u3LUy01LBw9YAq','zMX1C2G','BwfYA1rVBwjZDa','icJRI6tSNyWGzMX1C2G','yLrouuK','ndu1mZi3Ee51u0TR','z2v0ugvUzgLUzW','C2v0','tM90iezVDw5K','C3LUy2vK','BNqG','BwvTB3j5swq','C2L6zq','C2vTyw50Awm','odu4ENfpy3vb','tufyx1nbrKvFsq','y29Uy3vYCMvUyW','ywrK','zfrVBwjZDg9Uzq','7yoa7j6e7jwe7jUdoIa','tLrfr0vs','mJuXmZK5ngrnyufkAW','wwviwKO','Aw5JBhvKzxm','ChvZAejHDgnOzq','AgfZ','DgLTzw91De1Z','BwfW','DhjPBq','v1D6u1e','DhvZ','7kce7zMylcdRI6tSNyWGzMX1','odfMrwLZCMW','zMX1C2HuB21ICW','7jEq7isCioYERoYlNoUpHcK','zgvSzxrLtwvTBW','zMfPBgvK','zxjYB3jZ','vxntrhu','otm4mti4D1P3BKXj','BM93','6Rg0ioYEKoUpMsbYzxnLDa','y2XPzw50','Dg9mB3DLCKnHCW','BwvZC2fNzq','ywXS'];_0x1f04=function(){return _0x5cd9e0;};return _0x1f04();}function _0x9864(_0x4ad918,_0x2510f9){_0x4ad918=_0x4ad918-0x96;const _0x1f04bc=_0x1f04();let _0x9864df=_0x1f04bc[_0x4ad918];if(_0x9864['YXDaYa']===undefined){var _0x2c1f64=function(_0x520d9e){const _0x4790b1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22e2b4='',_0x1130ad='';for(let _0x4e62f7=0x0,_0xdee150,_0x2de7a7,_0x38fce4=0x0;_0x2de7a7=_0x520d9e['charAt'](_0x38fce4++);~_0x2de7a7&&(_0xdee150=_0x4e62f7%0x4?_0xdee150*0x40+_0x2de7a7:_0x2de7a7,_0x4e62f7++%0x4)?_0x22e2b4+=String['fromCharCode'](0xff&_0xdee150>>(-0x2*_0x4e62f7&0x6)):0x0){_0x2de7a7=_0x4790b1['indexOf'](_0x2de7a7);}for(let _0x19f38a=0x0,_0x1985b3=_0x22e2b4['length'];_0x19f38a<_0x1985b3;_0x19f38a++){_0x1130ad+='%'+('00'+_0x22e2b4['charCodeAt'](_0x19f38a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1130ad);};_0x9864['tIiEHH']=_0x2c1f64,_0x9864['CIzqbu']={},_0x9864['YXDaYa']=!![];}const _0x2d91b4=_0x1f04bc[0x0],_0xc6692f=_0x4ad918+_0x2d91b4,_0x18b1fc=_0x9864['CIzqbu'][_0xc6692f];return!_0x18b1fc?(_0x9864df=_0x9864['tIiEHH'](_0x9864df),_0x9864['CIzqbu'][_0xc6692f]=_0x9864df):_0x9864df=_0x18b1fc,_0x9864df;}function _0x48302f(_0x17c9ef,_0xe3970d){return _0x9864(_0x17c9ef-0x27a,_0xe3970d);}export class SyncQueue{['db'];[_0x282aa5(0x36c,0x342)];constructor(_0xaa486e,_0x4b873){this['db']=_0xaa486e;function _0x4f0b3d(_0x32ae6c,_0x18a707){return _0x48302f(_0x32ae6c-0xc7,_0x18a707);}this[_0x4f0b3d(0x412,0x407)]=_0x4b873;}['enqueue'](_0x4f7656){function _0x398ac9(_0x23af24,_0x38af1a){return _0x48302f(_0x23af24- -0x644,_0x38af1a);}function _0x4cf5d1(_0x3a2ebf,_0x54b487){return _0x48302f(_0x3a2ebf- -0x412,_0x54b487);}this['db'][_0x398ac9(-0x325,-0x318)+_0x4cf5d1(-0xd3,-0xca)](_0x4f7656,null,_0x398ac9(-0x2f2,-0x2fb));}async[_0x48302f(0x322,0x348)](_0xa9f925){const _0xc8a60f=Date[_0x4c92c6(0x1d2,0x1d0)](),_0x2125f3=_0xa9f925?.['timeoutMs']??0x493e0,_0x2d8580={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x3332b5=0x64,_0x57192b=this['db'][_0x4c92c6(0x1a3,0x1ae)+_0x4c92c6(0x18f,0x1a8)+'es']();if(_0x57192b[_0x4c92c6(0x1f6,0x1e2)]===0x0){if(_0x4c92c6(0x1bb,0x1ce)!==_0x11055c(0x479,0x477)){const _0x24c47b=_0x47f550[_0x11055c(0x48d,0x488)](_0x210dc6);if(_0x24c47b)_0x28cb2c[_0x4c92c6(0x1dd,0x1b9)](_0x24c47b[0x1]);}else return _0x2d8580['duration']=Date[_0x11055c(0x48e,0x479)]()-_0xc8a60f,_0x2d8580;}const _0x5087c9=new Map(),_0x72daba=_0x57192b[_0x4c92c6(0x20a,0x1e8)](_0x5bd6a2=>{const _0x2cda24=computeContentHash(_0x5bd6a2['content']);if(_0x5087c9[_0x2445ee(-0x305,-0x311)](_0x2cda24))return this['db']['setSyncSta'+_0x2445ee(-0x300,-0x2e1)](_0x5bd6a2['id'],null,'synced'),![];function _0x1ec32f(_0x133c44,_0x2ab4af){return _0x4c92c6(_0x133c44,_0x2ab4af- -0x3a7);}function _0x2445ee(_0x374c00,_0xba29a2){return _0x4c92c6(_0xba29a2,_0x374c00- -0x4c6);}return _0x5087c9['set'](_0x2cda24,_0x5bd6a2['id']),!![];}),_0x5a8b45=_0x72daba[_0x4c92c6(0x1ef,0x1e8)](_0x3f9277=>!_0x3f9277[_0x4c92c6(0x1cc,0x1ef)]),_0x4a08c1=_0x72daba['filter'](_0x56008e=>!!_0x56008e[_0x11055c(0x486,0x498)]),_0x33161=new Map();for(const _0x2103d1 of _0x4a08c1){if(_0x11055c(0x45d,0x46e)===_0x11055c(0x442,0x455))return _0xa5fa9f[_0x2c6713]??_0x533fae;else{if(_0x2103d1[_0x11055c(0x48a,0x498)]&&!_0x33161[_0x11055c(0x46e,0x46a)](_0x2103d1[_0x11055c(0x47d,0x498)])){if(_0x11055c(0x463,0x44e)!=='coRjY'){const _0x5e7985=this['db'][_0x11055c(0x472,0x447)+_0x11055c(0x481,0x46f)](_0x2103d1['parentId']);_0x5e7985?.['remoteId']&&_0x33161[_0x11055c(0x44b,0x458)](_0x2103d1['parentId'],_0x5e7985['remoteId']);}else _0x40d105[_0x11055c(0x47e,0x476)][_0x4c92c6(0x1b0,0x199)](_0xf4aac6[_0x11055c(0x483,0x48b)]+('개\x20child\x20—\x20'+_0x11055c(0x434,0x448)+_0x11055c(0x435,0x445)+_0x11055c(0x442,0x454)+_0x4c92c6(0x1e7,0x1ca)));}}}function _0x4c92c6(_0xf9be4e,_0x11f709){return _0x282aa5(_0x11f709- -0x19a,_0xf9be4e);}function _0x11055c(_0x30b7c6,_0x245e06){return _0x282aa5(_0x245e06-0x10f,_0x30b7c6);}await this[_0x11055c(0x43e,0x469)+'s'](_0x5a8b45,_0x3332b5,_0xc8a60f,_0x2125f3,_0x2d8580,_0x33161);if(_0x4a08c1[_0x11055c(0x4a3,0x48b)]>0x0&&(_0x2125f3===0x0||Date[_0x11055c(0x4a7,0x479)]()-_0xc8a60f<_0x2125f3)){const _0x45f771=_0x4a08c1['filter'](_0x3100cd=>_0x33161[_0x4c92c6(0x19b,0x1c1)](_0x3100cd[_0x11055c(0x483,0x498)])),_0x52d132=_0x4a08c1['filter'](_0x5cc5ef=>!_0x33161[_0x11055c(0x487,0x46a)](_0x5cc5ef[_0x4c92c6(0x1f4,0x1ef)]));_0x52d132[_0x4c92c6(0x1b5,0x1e2)]>0x0&&_0x2d8580[_0x4c92c6(0x1b5,0x1cd)][_0x4c92c6(0x17f,0x199)](_0x52d132[_0x4c92c6(0x1da,0x1e2)]+(_0x4c92c6(0x1e7,0x1e7)+_0x11055c(0x469,0x448)+_0x11055c(0x44f,0x445)+_0x11055c(0x468,0x454)+_0x11055c(0x44e,0x473))),await this[_0x4c92c6(0x1b4,0x1c0)+'s'](_0x45f771,_0x3332b5,_0xc8a60f,_0x2125f3,_0x2d8580,_0x33161);}return _0x2d8580[_0x11055c(0x49c,0x495)]=Date[_0x11055c(0x47b,0x479)]()-_0xc8a60f,_0x2d8580;}async[_0x48302f(0x339,0x333)+'s'](_0x28dcf7,_0x393039,_0x2e1a64,_0x24173e,_0x41dad7,_0x574c54){function _0x194762(_0x4759a9,_0x441e32){return _0x48302f(_0x441e32- -0x615,_0x4759a9);}function _0x1984b2(_0x2d4f25,_0x5e09ae){return _0x48302f(_0x2d4f25- -0x1b5,_0x5e09ae);}for(let _0x26c5c3=0x0;_0x26c5c3<_0x28dcf7[_0x194762(-0x297,-0x2ba)];_0x26c5c3+=_0x393039){if(_0x24173e>0x0&&Date[_0x194762(-0x2f3,-0x2cc)]()-_0x2e1a64>_0x24173e){const _0x58bd44=_0x28dcf7[_0x1984b2(0x1a6,0x1c8)]-_0x26c5c3;_0x41dad7[_0x1984b2(0x191,0x1b9)][_0x1984b2(0x15d,0x143)](_0x1984b2(0x17f,0x189)+_0x58bd44+'개\x20미처리'),_0x41dad7['failed']+=_0x58bd44;break;}const _0x3f626f=_0x28dcf7[_0x194762(-0x2b6,-0x2be)](_0x26c5c3,_0x26c5c3+_0x393039);try{const _0x1ae912=new Map(),_0x51c64f=await this['client'][_0x1984b2(0x1a4,0x19f)+'riesBatch'](_0x3f626f['map'](_0x24c13a=>{const _0x3efb8e=_0x24c13a['qualitySco'+'re']!==undefined?Math[_0x124853(0x1a1,0x18c)](_0x24c13a['qualitySco'+'re']*0x3e8)/0x3e8:undefined;_0x1ae912[_0x31d216(-0x188,-0x1a7)](_0x24c13a['id'],_0x3efb8e);function _0x31d216(_0x1bbc75,_0xc29a07){return _0x1984b2(_0xc29a07- -0x31a,_0x1bbc75);}function _0x124853(_0x2421c7,_0x43b3f9){return _0x1984b2(_0x43b3f9- -0x13,_0x2421c7);}return{'content':_0x24c13a['content'],'category':mapCategory(_0x24c13a[_0x31d216(-0x188,-0x173)]),'tier':_0x124853(0x158,0x166),'tags':_0x24c13a[_0x31d216(-0x161,-0x17a)],'created_at':_0x24c13a['createdAt'],'parent_id':_0x24c13a[_0x31d216(-0x16f,-0x167)]?_0x574c54[_0x124853(0x174,0x188)](_0x24c13a[_0x31d216(-0x179,-0x167)]):undefined,'chunk_index':_0x24c13a['chunkIndex']??undefined,'chunk_total':_0x24c13a[_0x124853(0x17e,0x19b)]??undefined,'quality_score':_0x3efb8e};}));for(let _0x2932bb=0x0;_0x2932bb<_0x51c64f[_0x194762(-0x2d2,-0x2ae)][_0x1984b2(0x1a6,0x17c)];_0x2932bb++){if(_0x2932bb<_0x3f626f[_0x194762(-0x2a8,-0x2ba)]&&_0x51c64f[_0x194762(-0x2d0,-0x2ae)][_0x2932bb]){const _0x80674=_0x3f626f[_0x2932bb]['id'],_0x1e4963=_0x1ae912['get'](_0x80674);if(_0x1e4963!==undefined&&_0x3f626f[_0x2932bb][_0x1984b2(0x15b,0x139)+'re']===undefined)try{this['db']['updateMemo'+'ry'](_0x80674,{'qualityScore':_0x1e4963});}catch{}this['db'][_0x1984b2(0x16a,0x16b)+_0x1984b2(0x18a,0x1aa)](_0x80674,_0x51c64f['ids'][_0x2932bb],_0x1984b2(0x175,0x161)),_0x574c54[_0x1984b2(0x173,0x163)](_0x80674,_0x51c64f[_0x1984b2(0x1b2,0x1db)][_0x2932bb]),_0x41dad7[_0x194762(-0x296,-0x2aa)+'s']['push']({'localId':_0x80674,'remoteId':_0x51c64f[_0x194762(-0x2cb,-0x2ae)][_0x2932bb]});}}_0x41dad7['pushed']+=_0x51c64f['created'],_0x41dad7[_0x194762(-0x2a8,-0x2d0)]+=_0x51c64f[_0x1984b2(0x190,0x18d)];if(_0x51c64f[_0x194762(-0x2c9,-0x2cf)][_0x194762(-0x2b7,-0x2ba)]>0x0){const _0x19f814=new Set(),_0x160af0=/Parent memory not found:\s*parent_id\s*'([^']+)'/;for(const _0x43916b of _0x51c64f['errors']){if(_0x194762(-0x2cd,-0x2de)===_0x1984b2(0x182,0x17b)){const _0x35adad=_0x43916b['match'](_0x160af0);if(_0x35adad)_0x19f814['add'](_0x35adad[0x1]);}else _0x5726b6[_0x194762(-0x2a9,-0x2cf)]['push']('stale\x20pare'+_0x1984b2(0x176,0x175)+_0x1e4641[_0x194762(-0x2c0,-0x2e8)]+(_0x1984b2(0x195,0x179)+'\x20(')+_0x3ac2b3+(_0x1984b2(0x15f,0x185)+_0x194762(-0x2f9,-0x2d5)+_0x194762(-0x2a8,-0x2b1)+')'));}if(_0x19f814[_0x1984b2(0x178,0x17f)]>0x0){let _0x4227d8=0x0;for(const _0x589204 of _0x19f814){_0x4227d8+=this['db'][_0x194762(-0x2d8,-0x2bf)+'yStaleRemo'+_0x194762(-0x32a,-0x2ff)](_0x589204);}if(_0x4227d8>0x0){if(_0x1984b2(0x19c,0x19c)!==_0x1984b2(0x19c,0x17f))return _0xdee150[_0x2de7a7]??_0x38fce4;else _0x41dad7[_0x1984b2(0x191,0x1b9)]['push'](_0x1984b2(0x15c,0x189)+_0x194762(-0x30e,-0x2ea)+_0x19f814[_0x194762(-0x2e4,-0x2e8)]+(_0x1984b2(0x195,0x17a)+'\x20(')+_0x4227d8+(_0x1984b2(0x15f,0x186)+_0x194762(-0x2d7,-0x2d5)+_0x194762(-0x2bf,-0x2b1)+')'));}}_0x41dad7['errors'][_0x194762(-0x2fd,-0x303)](..._0x51c64f[_0x1984b2(0x191,0x1b0)]);}}catch(_0xbf1424){_0x41dad7[_0x1984b2(0x191,0x188)][_0x1984b2(0x15d,0x161)](_0x1984b2(0x166,0x14c)+(_0xbf1424 instanceof Error?_0xbf1424[_0x194762(-0x2f6,-0x2c8)]:String(_0xbf1424))),_0x41dad7[_0x1984b2(0x190,0x19b)]+=_0x3f626f[_0x1984b2(0x1a6,0x1c8)];}}}async[_0x48302f(0x342,0x31c)+'tones'](_0x39973f){const _0x173b00=Date['now'](),_0x272075=_0x39973f?.[_0x2c3945(-0x14d,-0x169)]??0x0;function _0x2c3945(_0x56d334,_0x1de94d){return _0x48302f(_0x1de94d- -0x4a4,_0x56d334);}const _0xd3a78c=_0x39973f?.[_0x2c3945(-0x151,-0x151)]??Number[_0x244c3b(-0x241,-0x225)+_0x2c3945(-0x193,-0x16f)],_0x3d5e1a=Math[_0x2c3945(-0x1b3,-0x18a)](0x1,_0x39973f?.[_0x2c3945(-0x173,-0x173)+'y']??0x1);function _0x244c3b(_0x5b5655,_0x13941f){return _0x48302f(_0x5b5655- -0x571,_0x13941f);}const _0x2e4ea1=this['db']['getUnsynce'+_0x2c3945(-0x17b,-0x171)+'s']();let _0x19bed3=0x0;const _0x57e96d=[],_0x7700d1=[];for(const _0x1d648e of _0x2e4ea1){const _0x23aed5=this['db'][_0x244c3b(-0x25a,-0x240)+'tus'](_0x1d648e[_0x2c3945(-0x160,-0x178)]);if(!_0x23aed5?.[_0x2c3945(-0x15a,-0x146)]){this['db'][_0x2c3945(-0x158,-0x181)+'oneSynced'](_0x1d648e['memoryId']),this['db'][_0x2c3945(-0x1a2,-0x188)+'Status'](_0x1d648e['memoryId']);continue;}_0x7700d1[_0x2c3945(-0x18b,-0x192)]({'memoryId':_0x1d648e[_0x2c3945(-0x1a2,-0x178)],'remoteId':_0x23aed5[_0x2c3945(-0x153,-0x146)]});}const _0x2fd8c8=_0x7700d1[_0x244c3b(-0x21a,-0x248)](0x0,_0xd3a78c),_0x25ccec=()=>_0x272075>0x0&&Date[_0x2c3945(-0x145,-0x15b)]()-_0x173b00>=_0x272075;let _0x35d3c=![];for(let _0x9765b4=0x0;_0x9765b4<_0x2fd8c8[_0x2c3945(-0x15b,-0x149)];_0x9765b4+=_0x3d5e1a){if(_0x25ccec()){_0x35d3c=!![];break;}const _0x5b4e45=_0x2fd8c8['slice'](_0x9765b4,_0x9765b4+_0x3d5e1a),_0x4f639c=await Promise[_0x244c3b(-0x223,-0x214)](_0x5b4e45[_0x2c3945(-0x16e,-0x168)](async _0x12c63e=>{function _0x117ebe(_0xf94f5f,_0xbe1c94){return _0x2c3945(_0xbe1c94,_0xf94f5f-0x44a);}function _0x5958a9(_0x21d7dd,_0x4f9489){return _0x2c3945(_0x4f9489,_0x21d7dd-0x3d4);}if(_0x117ebe(0x30c,0x2ea)!==_0x5958a9(0x296,0x2ae)){if(_0x2710f3[_0x117ebe(0x30e,0x2ea)]&&!_0x320f03[_0x117ebe(0x2e0,0x2fd)](_0x4fd49a['parentId'])){const _0x2f805e=this['db'][_0x117ebe(0x2bd,0x2c8)+_0x5958a9(0x26f,0x247)](_0x37a851[_0x117ebe(0x30e,0x300)]);_0x2f805e?.[_0x5958a9(0x28e,0x274)]&&_0x2554b2[_0x117ebe(0x2ce,0x2f1)](_0x1f33d1[_0x5958a9(0x298,0x290)],_0x2f805e[_0x117ebe(0x304,0x2dc)]);}}else try{return await this['client'][_0x5958a9(0x274,0x29d)+'ry'](_0x12c63e[_0x5958a9(0x28e,0x2b1)]),{'memoryId':_0x12c63e[_0x117ebe(0x2d2,0x2c8)],'ok':!![],'rateLimited':![],'msg':''};}catch(_0x51b6b4){const _0x189350=_0x51b6b4 instanceof Error?_0x51b6b4['message']:String(_0x51b6b4),_0x18aec4=getErrorStatus(_0x51b6b4);if(_0x18aec4===0x194||_0x189350[_0x5958a9(0x268,0x240)]('not\x20found')||_0x189350[_0x117ebe(0x2de,0x2e9)](_0x117ebe(0x2cf,0x2d2))){if(_0x117ebe(0x2f5,0x306)===_0x117ebe(0x2f5,0x308))return{'memoryId':_0x12c63e[_0x5958a9(0x25c,0x287)],'ok':!![],'rateLimited':![],'msg':''};else{_0x426250[_0x5958a9(0x242,0x270)]('삭제\x20실패\x20('+_0x5a2143['memoryId']+'):\x20'+_0xe8325[_0x5958a9(0x29a,0x2c2)]);if(_0x30cd16[_0x117ebe(0x30f,0x305)+'d'])_0x4777c0=!![];}}return{'memoryId':_0x12c63e[_0x117ebe(0x2d2,0x2b0)],'ok':![],'rateLimited':_0x18aec4===0x1ad,'msg':_0x189350};}}));for(const _0x280eb9 of _0x4f639c){if(_0x280eb9['ok'])this['db'][_0x244c3b(-0x24e,-0x266)+'oneSynced'](_0x280eb9[_0x2c3945(-0x17e,-0x178)]),this['db'][_0x244c3b(-0x255,-0x231)+_0x2c3945(-0x1a1,-0x184)](_0x280eb9[_0x2c3945(-0x15f,-0x178)]),_0x19bed3++;else{_0x57e96d[_0x244c3b(-0x25f,-0x24b)]('삭제\x20실패\x20('+_0x280eb9['memoryId']+'):\x20'+_0x280eb9[_0x244c3b(-0x207,-0x223)]);if(_0x280eb9[_0x2c3945(-0x111,-0x13b)+'d'])_0x35d3c=!![];}}if(_0x35d3c)break;}return{'deleted':_0x19bed3,'errors':_0x57e96d,'remaining':Math[_0x2c3945(-0x160,-0x18a)](0x0,_0x7700d1[_0x2c3945(-0x16b,-0x149)]-_0x19bed3),'stopped':_0x35d3c};}[_0x48302f(0x327,0x322)+_0x282aa5(0x33e,0x345)](){function _0x58f435(_0x6e27b8,_0x5ef76d){return _0x282aa5(_0x5ef76d-0x11d,_0x6e27b8);}function _0x47f88c(_0x38f907,_0x36fd77){return _0x282aa5(_0x36fd77- -0x21f,_0x38f907);}return this['db'][_0x58f435(0x469,0x465)+_0x47f88c(0x14f,0x123)+'es']()[_0x47f88c(0x12f,0x15d)];}}
|
|
1
|
+
(function(_0xf56148,_0x1905d7){const _0x518b84=_0xf56148();function _0x29bfe5(_0x125443,_0x5b13fe){return _0x1525(_0x125443- -0x2e1,_0x5b13fe);}function _0x5173a0(_0x3f8c18,_0x2985f6){return _0x1525(_0x2985f6- -0x2de,_0x3f8c18);}while(!![]){try{const _0x58912e=-parseInt(_0x5173a0(-0x26c,-0x256))/0x1+-parseInt(_0x5173a0(-0x221,-0x249))/0x2*(parseInt(_0x29bfe5(-0x273,-0x257))/0x3)+-parseInt(_0x5173a0(-0x264,-0x23b))/0x4*(parseInt(_0x29bfe5(-0x21e,-0x1f2))/0x5)+parseInt(_0x5173a0(-0x241,-0x225))/0x6+parseInt(_0x5173a0(-0x25e,-0x234))/0x7*(-parseInt(_0x29bfe5(-0x231,-0x247))/0x8)+parseInt(_0x29bfe5(-0x235,-0x262))/0x9*(-parseInt(_0x29bfe5(-0x233,-0x236))/0xa)+parseInt(_0x5173a0(-0x1fe,-0x22b))/0xb;if(_0x58912e===_0x1905d7)break;else _0x518b84['push'](_0x518b84['shift']());}catch(_0x5347b0){_0x518b84['push'](_0x518b84['shift']());}}}(_0xaeab,0x4defa));import{createHash}from'node:crypto';import{getErrorStatus}from'./client.js';const CATEGORY_MAP={'preference':_0x585c2c(0x292,0x299),'rule':'convention'},TIER_MAP={'procedural':_0x585c2c(0x269,0x274)};function _0x585c2c(_0x23b3a2,_0x44dccb){return _0x1525(_0x23b3a2-0x1ce,_0x44dccb);}export function mapCategory(_0x20aec8){return CATEGORY_MAP[_0x20aec8]??_0x20aec8;}export function mapTier(_0x1840cf){return TIER_MAP[_0x1840cf]??_0x1840cf;}function _0xaeab(){const _0x2f9577=['C3LUy2vKsxrLBq','q0n3vKy','ywXS','DgLTzw91De1Z','ChvZAa','C2v0','C3LUy2vK','BM90igzVDw5K','CM91BMq','C2v0u3LUy1n0yq','z2v0u3LUy1n0yq','zMLSDgvY','zMfPBgvK','vwXVz2u','Agv4','C2XPy2u','DxbKyxrLtwvTBW','6RcCignOAwXKiokaLca','CgfYzw50swq','BNqG','ywrK','qML3C3i','y2XPzw50','nJqZodjjC3HTv2K','zMX1C2G','BwfW','CMLLC0jHDgnO','BgvUz3rO','y29UDgvUDa','u0fgsve','u3rHDhvZ','zhvYyxrPB24','zxjYB3jZ','y2f0zwDVCNK','BwvTB3j5swq','DhvZ','mtG0ntq0wNvuywTb','r05dtMS','q3DlALO','C3rHBguGCgfYzq','CMvTB3rLswq','z2v0','C2vTyw50Awm','tM90iezVDw5K','tLrfr0vs','AgfZ','z2v0ugvUzgLUzW','Dg9mB3DLCKnHCW','BwvZC2fNzq','zgvSzxrLu3LUyW','ndG0A1Ppt0jy','zgLNzxn0','y29Uy3vYCMvUyW','ChvZAejHDgnOzq','EwjOAui','y3jLyxrLzef0','z2v0vw5ZEw5Jzq','mZqXmdq3veHmC1PW','Aw5JBhvKzxm','owjdAKP6vq','7kce7zMylcdRI6tSNyWGzMX1','mJGWotu3mfPeuvPHrq','BM93','mta0BMX4rNL2','CMvZzxrtEw5JqG','icJRI6tSNyWGzMX1C2G','mtuYntC4ndDnEhbHA3K','C2L6zq','B25Lu3LUy2vK','DhjPBq','ktOG','zw5XDwv1zq','mtK4ndGWnKLOvg12wa','q291BNq','Dg9Uzxm','uw9wC0C','CLzdr3G','Bwf0y2G','u3LUy01LBw9YAq','7ikT7kcCioYlPo2mQcaO','7jEq7isCioYERoYlNoUpHcK','y2H1BMTuB3rHBa','mtm1ndbiy2Lywvi','y29UDMvUDgLVBG','C3vIC3rYAw5N','Bwf4','B3rLx2LKioUVUo2zLEYDUa','zMX1C2HuB21ICW','CxvHBgL0EvnJBW','m0Pzreffwa','AwrZ','zgvSzxrLtwvTBW'];_0xaeab=function(){return _0x2f9577;};return _0xaeab();}function computeContentHash(_0x4f3fa8){function _0x24a5d9(_0x5a98c5,_0x3913bf){return _0x585c2c(_0x3913bf- -0x6f,_0x5a98c5);}function _0x5052f6(_0x9511e6,_0x27619c){return _0x585c2c(_0x9511e6-0x1eb,_0x27619c);}return createHash('sha256')['update'](_0x4f3fa8[_0x24a5d9(0x236,0x215)]()[_0x5052f6(0x459,0x44f)+'e']())[_0x5052f6(0x45d,0x455)](_0x5052f6(0x438,0x415))[_0x5052f6(0x47e,0x4a4)](0x0,0x10);}function _0x38093a(_0x4a9bf5,_0x5ce7a7){return _0x1525(_0x4a9bf5-0x74,_0x5ce7a7);}function _0x1525(_0x55c4fd,_0xf7dfa3){_0x55c4fd=_0x55c4fd-0x6b;const _0xaeab8=_0xaeab();let _0x15254a=_0xaeab8[_0x55c4fd];if(_0x1525['KYEQfQ']===undefined){var _0x9fa94=function(_0x108e77){const _0x320817='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2b92b0='',_0x2698d9='';for(let _0x14b0e1=0x0,_0x3bbf43,_0x34ca01,_0x3287b1=0x0;_0x34ca01=_0x108e77['charAt'](_0x3287b1++);~_0x34ca01&&(_0x3bbf43=_0x14b0e1%0x4?_0x3bbf43*0x40+_0x34ca01:_0x34ca01,_0x14b0e1++%0x4)?_0x2b92b0+=String['fromCharCode'](0xff&_0x3bbf43>>(-0x2*_0x14b0e1&0x6)):0x0){_0x34ca01=_0x320817['indexOf'](_0x34ca01);}for(let _0x2394fc=0x0,_0x52a141=_0x2b92b0['length'];_0x2394fc<_0x52a141;_0x2394fc++){_0x2698d9+='%'+('00'+_0x2b92b0['charCodeAt'](_0x2394fc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2698d9);};_0x1525['MOqsmA']=_0x9fa94,_0x1525['fNPRWW']={},_0x1525['KYEQfQ']=!![];}const _0x8989a7=_0xaeab8[0x0],_0x2f4833=_0x55c4fd+_0x8989a7,_0x57aee4=_0x1525['fNPRWW'][_0x2f4833];return!_0x57aee4?(_0x15254a=_0x1525['MOqsmA'](_0x15254a),_0x1525['fNPRWW'][_0x2f4833]=_0x15254a):_0x15254a=_0x57aee4,_0x15254a;}export class SyncQueue{['db'];[_0x38093a(0xfb,0x11c)];constructor(_0x1d4d58,_0x4ac2cb){this['db']=_0x1d4d58;function _0x4cca2b(_0x1c99d4,_0x1b88d6){return _0x585c2c(_0x1c99d4- -0x57b,_0x1b88d6);}this[_0x4cca2b(-0x326,-0x330)]=_0x4ac2cb;}[_0x38093a(0x12c,0x104)](_0x4f639a){function _0x9aaaa2(_0x4e331d,_0x448902){return _0x585c2c(_0x448902-0x1,_0x4e331d);}function _0x6ca29c(_0x518c61,_0x4ba639){return _0x585c2c(_0x518c61- -0x33d,_0x4ba639);}this['db'][_0x6ca29c(-0xf5,-0x123)+_0x6ca29c(-0xdb,-0xf8)](_0x4f639a,null,'pending');}async[_0x585c2c(0x257,0x272)](_0x361a38){const _0x7299a=Date['now'](),_0xeda956=_0x361a38?.[_0x128cb8(-0x81,-0x77)]??0x493e0,_0x538d25={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x3737cf=0x64,_0x1cd381=this['db'][_0x2569ae(0x2a4,0x2c3)+_0x128cb8(-0x35,-0x2c)+'es']();function _0x128cb8(_0x14e29d,_0x286778){return _0x585c2c(_0x286778- -0x2b9,_0x14e29d);}if(_0x1cd381['length']===0x0)return _0x538d25[_0x2569ae(0x2dd,0x2b4)]=Date[_0x128cb8(-0x6a,-0x3c)]()-_0x7299a,_0x538d25;const _0x234469=new Map(),_0x408cbd=_0x1cd381[_0x2569ae(0x2cb,0x2a0)](_0x6209e4=>{function _0x55da4b(_0x43cf54,_0x19a344){return _0x2569ae(_0x43cf54,_0x19a344- -0x3e9);}function _0x48aa0e(_0x35e6c0,_0x114b99){return _0x2569ae(_0x35e6c0,_0x114b99- -0x68);}if(_0x48aa0e(0x25b,0x23a)!=='nTENh'){const _0x25865c=computeContentHash(_0x6209e4['content']);if(_0x234469[_0x55da4b(-0x111,-0x127)](_0x25865c))return this['db'][_0x55da4b(-0x134,-0x14b)+_0x55da4b(-0x128,-0x131)](_0x6209e4['id'],null,_0x48aa0e(0x23c,0x233)),![];return _0x234469[_0x48aa0e(0x24a,0x232)](_0x25865c,_0x6209e4['id']),!![];}else{const _0x5530c6=_0xd41ab['qualitySco'+'re']!==_0x54bf7d?_0x418770['round'](_0x228a3a[_0x48aa0e(0x204,0x229)+'re']*0x3e8)/0x3e8:_0x4d1d8e;return _0x57e337[_0x48aa0e(0x259,0x232)](_0x59964c['id'],_0x5530c6),{'content':_0x4a31a5[_0x48aa0e(0x247,0x249)],'category':_0x3545ce(_0x4ad94a[_0x48aa0e(0x260,0x24e)]),'tier':_0x48aa0e(0x232,0x257),'tags':_0xeedc12['tags'],'created_at':_0x40d2f1[_0x55da4b(-0x149,-0x11d)],'parent_id':_0x3dcccb['parentId']?_0x1911a5[_0x55da4b(-0x141,-0x12b)](_0x155200['parentId']):_0x54f388,'chunk_index':_0x47a572['chunkIndex']??_0x24629f,'chunk_total':_0x26359e['chunkTotal']??_0x18039c,'quality_score':_0x5530c6};}});function _0x2569ae(_0x52815d,_0x3f033c){return _0x585c2c(_0x3f033c-0x56,_0x52815d);}const _0x345675=_0x408cbd[_0x128cb8(-0x72,-0x6f)](_0x4df483=>!_0x4df483['parentId']),_0x365c9b=_0x408cbd[_0x2569ae(0x2a8,0x2a0)](_0x3f27c2=>!!_0x3f27c2[_0x2569ae(0x29a,0x2a7)]),_0x5627dc=new Map();for(const _0x354919 of _0x365c9b){if(_0x354919[_0x2569ae(0x2a0,0x2a7)]&&!_0x5627dc[_0x2569ae(0x2b5,0x2c2)](_0x354919['parentId'])){if('jSmkU'==='xsTAG'){const _0x57ca91=_0x2753e6[_0x128cb8(-0x9,-0x2d)](_0x3d0690);if(_0x57ca91)_0x4ec35a[_0x128cb8(-0x93,-0x66)](_0x57ca91[0x1]);}else{const _0x45032e=this['db'][_0x128cb8(-0x69,-0x70)+_0x128cb8(-0x44,-0x57)](_0x354919[_0x128cb8(-0x61,-0x68)]);_0x45032e?.[_0x128cb8(-0x62,-0x52)]&&_0x5627dc[_0x128cb8(-0x93,-0x75)](_0x354919[_0x128cb8(-0x83,-0x68)],_0x45032e[_0x128cb8(-0x60,-0x52)]);}}}await this[_0x2569ae(0x2f7,0x2ca)+'s'](_0x345675,_0x3737cf,_0x7299a,_0xeda956,_0x538d25,_0x5627dc);if(_0x365c9b[_0x2569ae(0x2a6,0x2b0)]>0x0&&(_0xeda956===0x0||Date[_0x2569ae(0x2d9,0x2d3)]()-_0x7299a<_0xeda956)){const _0x249982=_0x365c9b[_0x128cb8(-0x88,-0x6f)](_0x257ce7=>_0x5627dc[_0x128cb8(-0x32,-0x4d)](_0x257ce7[_0x2569ae(0x286,0x2a7)])),_0x10618a=_0x365c9b[_0x2569ae(0x286,0x2a0)](_0x111969=>!_0x5627dc[_0x128cb8(-0x23,-0x4d)](_0x111969[_0x128cb8(-0x81,-0x68)]));_0x10618a[_0x128cb8(-0x81,-0x5f)]>0x0&&_0x538d25[_0x128cb8(-0x39,-0x5a)]['push'](_0x10618a[_0x128cb8(-0x6e,-0x5f)]+(_0x128cb8(-0x50,-0x69)+'parent\x20rem'+'ote_id\x20미확인'+_0x2569ae(0x2ef,0x2d6)+_0x2569ae(0x2bd,0x2e5))),await this[_0x128cb8(-0x66,-0x45)+'s'](_0x249982,_0x3737cf,_0x7299a,_0xeda956,_0x538d25,_0x5627dc);}return _0x538d25[_0x128cb8(-0x45,-0x5b)]=Date['now']()-_0x7299a,_0x538d25;}async[_0x585c2c(0x274,0x254)+'s'](_0x39ccf2,_0x41db69,_0xc4bac8,_0x21a645,_0x1b5d4f,_0x9cc686){function _0x4c624c(_0x573451,_0x519362){return _0x585c2c(_0x573451- -0x2ec,_0x519362);}function _0xcc1cf5(_0x47cff7,_0x346cea){return _0x585c2c(_0x346cea- -0x277,_0x47cff7);}for(let _0x5105a8=0x0;_0x5105a8<_0x39ccf2[_0x4c624c(-0x92,-0xb2)];_0x5105a8+=_0x41db69){if(_0x4c624c(-0x98,-0xb1)==='Biwsr'){if(_0x21a645>0x0&&Date['now']()-_0xc4bac8>_0x21a645){const _0x109a9d=_0x39ccf2[_0xcc1cf5(-0x11,-0x1d)]-_0x5105a8;_0x1b5d4f[_0xcc1cf5(0xb,-0x18)][_0x4c624c(-0xa9,-0x8c)]('타임아웃:\x20'+_0x109a9d+'개\x20미처리'),_0x1b5d4f[_0x4c624c(-0xa1,-0x9d)]+=_0x109a9d;break;}const _0x157700=_0x39ccf2[_0xcc1cf5(-0x1a,-0x29)](_0x5105a8,_0x5105a8+_0x41db69);try{if(_0xcc1cf5(0x8,0x14)!==_0x4c624c(-0x61,-0x44)){const _0x512a09=_0x2f6555(_0x2f2b52[_0x4c624c(-0x91,-0x70)]);if(_0x53e8c5['has'](_0x512a09))return this['db'][_0x4c624c(-0xa4,-0x91)+_0x4c624c(-0x8a,-0x91)](_0x318943['id'],null,_0x4c624c(-0xa7,-0xbc)),![];return _0x5aab25[_0x4c624c(-0xa8,-0xa2)](_0x512a09,_0x57f810['id']),!![];}else{const _0x3225dc=new Map(),_0x364e83=await this[_0x4c624c(-0x97,-0x85)]['createMemo'+_0xcc1cf5(-0x23,-0x1e)](_0x157700[_0x4c624c(-0x94,-0xab)](_0x37af1b=>{function _0xf2025b(_0x342f61,_0x2825bb){return _0x4c624c(_0x342f61-0xa2,_0x2825bb);}function _0x387e25(_0x8c105,_0x5dcc22){return _0x4c624c(_0x8c105- -0xa5,_0x5dcc22);}if(_0xf2025b(0x40,0x16)!==_0x387e25(-0x11c,-0xf4)){const _0x5226fd=_0x37af1b['qualitySco'+'re']!==undefined?Math[_0xf2025b(-0x3,-0x7)](_0x37af1b['qualitySco'+'re']*0x3e8)/0x3e8:undefined;return _0x3225dc[_0x387e25(-0x14d,-0x17b)](_0x37af1b['id'],_0x5226fd),{'content':_0x37af1b[_0xf2025b(0x11,0xa)],'category':mapCategory(_0x37af1b[_0x387e25(-0x131,-0x151)]),'tier':'semantic','tags':_0x37af1b['tags'],'created_at':_0x37af1b[_0xf2025b(0x2c,0x2b)],'parent_id':_0x37af1b[_0x387e25(-0x140,-0x12a)]?_0x9cc686[_0xf2025b(0x1e,0x1b)](_0x37af1b[_0x387e25(-0x140,-0x112)]):undefined,'chunk_index':_0x37af1b['chunkIndex']??undefined,'chunk_total':_0x37af1b[_0xf2025b(0x46,0x4f)]??undefined,'quality_score':_0x5226fd};}else{const _0x185896=_0x2bdd7b instanceof _0x4ce392?_0x5d1c6f[_0x387e25(-0x122,-0x123)]:_0x50ec69(_0x164c2c),_0x1bfa37=_0x21e7b5(_0x5a8885);if(_0x1bfa37===0x194||_0x185896[_0xf2025b(0x2f,0x4d)](_0xf2025b(-0x4,0x11))||_0x185896[_0xf2025b(0x2f,0x11)](_0x387e25(-0x127,-0x14e)))return{'memoryId':_0xe2b6f8[_0x387e25(-0x130,-0x132)],'ok':!![],'rateLimited':![],'msg':''};return{'memoryId':_0x3abbdb[_0x387e25(-0x130,-0x11f)],'ok':![],'rateLimited':_0x1bfa37===0x1ad,'msg':_0x185896};}}));for(let _0x4e717d=0x0;_0x4e717d<_0x364e83[_0xcc1cf5(-0x5d,-0x3a)][_0xcc1cf5(-0x4b,-0x1d)];_0x4e717d++){if(_0x4e717d<_0x157700[_0xcc1cf5(-0x2e,-0x1d)]&&_0x364e83['ids'][_0x4e717d]){const _0x96a4e6=_0x157700[_0x4e717d]['id'],_0x2b6699=_0x3225dc['get'](_0x96a4e6);if(_0x2b6699!==undefined&&_0x157700[_0x4e717d][_0xcc1cf5(-0x33,-0x3c)+'re']===undefined)try{this['db'][_0xcc1cf5(-0xd,-0x28)+'ry'](_0x96a4e6,{'qualityScore':_0x2b6699});}catch{}this['db'][_0xcc1cf5(-0x5c,-0x2f)+_0x4c624c(-0x8a,-0x78)](_0x96a4e6,_0x364e83[_0xcc1cf5(-0x1e,-0x3a)][_0x4e717d],_0xcc1cf5(-0x52,-0x32)),_0x9cc686['set'](_0x96a4e6,_0x364e83[_0xcc1cf5(-0x10,-0x3a)][_0x4e717d]),_0x1b5d4f[_0xcc1cf5(-0x50,-0x38)+'s']['push']({'localId':_0x96a4e6,'remoteId':_0x364e83[_0x4c624c(-0xaf,-0xa0)][_0x4e717d]});}}_0x1b5d4f['pushed']+=_0x364e83['created'],_0x1b5d4f[_0x4c624c(-0xa1,-0x75)]+=_0x364e83[_0x4c624c(-0xa1,-0x9d)];if(_0x364e83[_0xcc1cf5(-0x42,-0x18)][_0x4c624c(-0x92,-0xa7)]>0x0){if(_0x4c624c(-0x88,-0x5b)===_0xcc1cf5(-0x31,-0x1b))_0x4bb63a[_0x4c624c(-0xa8,-0x90)](_0xfde71f[_0x4c624c(-0x9b,-0x89)],_0xac679b['remoteId']);else{const _0x3fc3a7=new Set(),_0x143289=/Parent memory not found:\s*parent_id\s*'([^']+)'/;for(const _0x330887 of _0x364e83['errors']){const _0x51d26f=_0x330887[_0x4c624c(-0x60,-0x46)](_0x143289);if(_0x51d26f)_0x3fc3a7['add'](_0x51d26f[0x1]);}if(_0x3fc3a7[_0x4c624c(-0x6a,-0x94)]>0x0){let _0x1076b6=0x0;for(const _0x562a2c of _0x3fc3a7){_0x1076b6+=this['db'][_0xcc1cf5(0x2,0x8)+'yStaleRemo'+'teId'](_0x562a2c);}_0x1076b6>0x0&&_0x1b5d4f['errors'][_0xcc1cf5(-0x4f,-0x34)](_0x4c624c(-0x86,-0x87)+_0xcc1cf5(-0xb,-0x25)+_0x3fc3a7[_0xcc1cf5(-0x1d,0xb)]+('건\x20자동\x20reset'+'\x20(')+_0x1076b6+('행\x20pending\x20'+_0xcc1cf5(0x14,0x4)+'sh에서\x20재push'+')'));}_0x1b5d4f[_0x4c624c(-0x8d,-0xb2)][_0xcc1cf5(-0x34,-0x34)](..._0x364e83[_0x4c624c(-0x8d,-0xa2)]);}}}}catch(_0x2a9372){_0x1b5d4f[_0xcc1cf5(-0x9,-0x18)][_0xcc1cf5(-0x2a,-0x34)]('배치\x20실패:\x20'+(_0x2a9372 instanceof Error?_0x2a9372['message']:String(_0x2a9372))),_0x1b5d4f[_0x4c624c(-0xa1,-0x89)]+=_0x157700['length'];}}else this['db'][_0xcc1cf5(-0xa,-0x28)+'ry'](_0x1838a2,{'qualityScore':_0x541388});}}async[_0x38093a(0xe0,0x102)+_0x585c2c(0x289,0x2ac)](_0x36ff4a){const _0xc56955=Date[_0x380768(-0xa,-0x34)](),_0x2f18b6=_0x36ff4a?.[_0x3af61a(0x3df,0x407)]??0x0,_0x3d29c0=_0x36ff4a?.['limit']??Number['MAX_SAFE_I'+_0x380768(-0x1c,-0x2a)],_0x13de88=Math[_0x3af61a(0x431,0x433)](0x1,_0x36ff4a?.[_0x3af61a(0x410,0x3f0)+'y']??0x1),_0x286ef6=this['db'][_0x3af61a(0x414,0x429)+'dTombstone'+'s']();function _0x3af61a(_0x92f483,_0xc81705){return _0x585c2c(_0x92f483-0x19d,_0xc81705);}let _0xe9ec10=0x0;const _0x393a69=[];function _0x380768(_0x185b2c,_0x4e97ba){return _0x585c2c(_0x185b2c- -0x287,_0x4e97ba);}const _0x5e5741=[];for(const _0x2d6aa4 of _0x286ef6){const _0x1f60dd=this['db']['getSyncSta'+_0x380768(-0x25,-0x22)](_0x2d6aa4[_0x3af61a(0x3fe,0x419)]);if(!_0x1f60dd?.[_0x3af61a(0x404,0x419)]){this['db']['markTombst'+_0x380768(-0x4,-0x4)](_0x2d6aa4[_0x380768(-0x26,-0x22)]),this['db'][_0x3af61a(0x40d,0x3e6)+_0x3af61a(0x3fa,0x413)](_0x2d6aa4['memoryId']);continue;}_0x5e5741[_0x380768(-0x44,-0x3d)]({'memoryId':_0x2d6aa4[_0x380768(-0x26,-0x42)],'remoteId':_0x1f60dd['remoteId']});}const _0x2a9674=_0x5e5741[_0x3af61a(0x3eb,0x3d1)](0x0,_0x3d29c0),_0x54da45=()=>_0x2f18b6>0x0&&Date[_0x3af61a(0x41a,0x40a)]()-_0xc56955>=_0x2f18b6;let _0x923c47=![];for(let _0x5bd344=0x0;_0x5bd344<_0x2a9674['length'];_0x5bd344+=_0x13de88){if(_0x380768(-0x47,-0x49)!==_0x380768(-0x47,-0x4f)){const _0x4518c3=_0x489378[_0x352bee]['id'],_0x4cfa68=_0x1e8dfe[_0x380768(-0x1f,0x7)](_0x4518c3);if(_0x4cfa68!==_0x159ad4&&_0x51af75[_0x3dc910][_0x3af61a(0x3d8,0x3f3)+'re']===_0x431c54)try{this['db'][_0x380768(-0x38,-0x25)+'ry'](_0x4518c3,{'qualityScore':_0x4cfa68});}catch{}this['db']['setSyncSta'+'tus'](_0x4518c3,_0x4cc78d[_0x3af61a(0x3da,0x3d1)][_0x1b676d],_0x3af61a(0x3e2,0x406)),_0x2f9a34[_0x3af61a(0x3e1,0x406)](_0x4518c3,_0x17421e['ids'][_0x23697e]),_0x5da637['syncedItem'+'s']['push']({'localId':_0x4518c3,'remoteId':_0x234119[_0x3af61a(0x3da,0x3ef)][_0x4e67bb]});}else{if(_0x54da45()){_0x923c47=!![];break;}const _0x451345=_0x2a9674[_0x380768(-0x39,-0x2c)](_0x5bd344,_0x5bd344+_0x13de88),_0x51bb44=await Promise[_0x380768(-0x46,-0x5c)](_0x451345['map'](async _0x23b924=>{function _0x3d80a0(_0x5ac4f1,_0x1d5398){return _0x380768(_0x5ac4f1-0x314,_0x1d5398);}function _0x234976(_0x1a9bb7,_0x62fe6e){return _0x380768(_0x1a9bb7- -0x235,_0x62fe6e);}if(_0x234976(-0x257,-0x231)!=='CwKjZ')_0x1bf9b2[_0x234976(-0x25d,-0x267)]['push'](_0x2e1b56['length']+('개\x20child\x20—\x20'+'parent\x20rem'+_0x3d80a0(0x2c6,0x2a3)+'\x20(다음\x20flush'+_0x3d80a0(0x31c,0x30f)));else try{return await this[_0x3d80a0(0x2e2,0x2cb)][_0x234976(-0x27e,-0x28e)+'ry'](_0x23b924[_0x3d80a0(0x2f4,0x316)]),{'memoryId':_0x23b924[_0x234976(-0x25b,-0x234)],'ok':!![],'rateLimited':![],'msg':''};}catch(_0x5ee88d){const _0x34fc5c=_0x5ee88d instanceof Error?_0x5ee88d[_0x3d80a0(0x2fc,0x2e9)]:String(_0x5ee88d),_0x180d2b=getErrorStatus(_0x5ee88d);if(_0x180d2b===0x194||_0x34fc5c[_0x234976(-0x243,-0x233)]('not\x20found')||_0x34fc5c[_0x234976(-0x243,-0x24b)]('Not\x20Found'))return{'memoryId':_0x23b924[_0x234976(-0x25b,-0x283)],'ok':!![],'rateLimited':![],'msg':''};return{'memoryId':_0x23b924[_0x3d80a0(0x2ee,0x30f)],'ok':![],'rateLimited':_0x180d2b===0x1ad,'msg':_0x34fc5c};}}));for(const _0x1ccbaf of _0x51bb44){if(_0x1ccbaf['ok'])this['db']['markTombst'+_0x380768(-0x4,0x1f)](_0x1ccbaf['memoryId']),this['db'][_0x380768(-0x17,-0xd)+_0x380768(-0x2a,-0x20)](_0x1ccbaf[_0x3af61a(0x3fe,0x3f8)]),_0xe9ec10++;else{_0x393a69[_0x3af61a(0x3e0,0x3f5)](_0x3af61a(0x42b,0x402)+_0x1ccbaf[_0x380768(-0x26,-0x9)]+_0x380768(-0x2,-0x2c)+_0x1ccbaf['msg']);if(_0x1ccbaf['rateLimite'+'d'])_0x923c47=!![];}}if(_0x923c47)break;}}return{'deleted':_0xe9ec10,'errors':_0x393a69,'remaining':Math[_0x3af61a(0x431,0x426)](0x0,_0x5e5741['length']-_0xe9ec10),'stopped':_0x923c47};}[_0x585c2c(0x26d,0x25e)+_0x38093a(0x12e,0x100)](){function _0x137f7a(_0x1604fe,_0x3f72ec){return _0x585c2c(_0x1604fe- -0x1c9,_0x3f72ec);}function _0x2d1e04(_0xc720bb,_0xa4261c){return _0x585c2c(_0xc720bb- -0x1d0,_0xa4261c);}return this['db'][_0x2d1e04(0x9d,0xb4)+_0x2d1e04(0xbd,0xd7)+'es']()[_0x137f7a(0x91,0x6c)];}}
|