a2a-memory 0.12.37 → 0.12.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +5 -5
  2. package/dist/adapters/anthropic.js +1 -1
  3. package/dist/chunking/chunker.js +1 -1
  4. package/dist/claude/sync.js +1 -1
  5. package/dist/cli/commands/add.js +1 -1
  6. package/dist/cli/commands/claude-sync.js +1 -1
  7. package/dist/cli/commands/cleanup.js +1 -1
  8. package/dist/cli/commands/config.js +1 -1
  9. package/dist/cli/commands/contextrank.js +1 -1
  10. package/dist/cli/commands/edit.js +1 -1
  11. package/dist/cli/commands/embed.js +1 -1
  12. package/dist/cli/commands/export.js +1 -1
  13. package/dist/cli/commands/extract.js +1 -1
  14. package/dist/cli/commands/health.js +1 -1
  15. package/dist/cli/commands/list.js +1 -1
  16. package/dist/cli/commands/migrate-chunks.js +1 -1
  17. package/dist/cli/commands/migrate-file-refs.js +1 -1
  18. package/dist/cli/commands/proficiency.js +1 -1
  19. package/dist/cli/commands/review.js +1 -1
  20. package/dist/cli/commands/rm.js +1 -1
  21. package/dist/cli/commands/search.js +1 -1
  22. package/dist/cli/commands/session-extract.js +1 -1
  23. package/dist/cli/commands/setup-wizard.js +1 -1
  24. package/dist/cli/commands/setup.js +1 -1
  25. package/dist/cli/commands/skill.js +1 -1
  26. package/dist/cli/commands/status.js +1 -1
  27. package/dist/cli/commands/sync.js +1 -1
  28. package/dist/cli/commands/team.js +1 -1
  29. package/dist/cli/commands/usage.js +1 -1
  30. package/dist/cli/index.js +1 -1
  31. package/dist/config/manager.js +1 -1
  32. package/dist/contextrank/edge-builder.js +1 -1
  33. package/dist/contextrank/rank-builder.js +1 -1
  34. package/dist/contextrank/signal-builder.js +1 -1
  35. package/dist/db/database.d.ts +15 -0
  36. package/dist/db/database.js +1 -1
  37. package/dist/db/usage-spool.js +1 -1
  38. package/dist/embedding/e5-provider.js +1 -1
  39. package/dist/embedding/index.js +1 -1
  40. package/dist/embedding/local-provider.js +1 -1
  41. package/dist/embedding/openai-provider.js +1 -1
  42. package/dist/embedding/quantization.js +1 -1
  43. package/dist/extraction/dedup-manager.js +1 -1
  44. package/dist/extraction/emotion-filter.js +1 -1
  45. package/dist/extraction/extractor.js +1 -1
  46. package/dist/extraction/file-reference.js +1 -1
  47. package/dist/extraction/filter.js +1 -1
  48. package/dist/extraction/scorer.js +1 -1
  49. package/dist/extraction/similarity.js +1 -1
  50. package/dist/hooks/client-factory.js +1 -1
  51. package/dist/hooks/post-tool-use.js +1 -1
  52. package/dist/hooks/pre-compact.d.ts +31 -5
  53. package/dist/hooks/pre-compact.js +1 -1
  54. package/dist/hooks/session-end.js +1 -1
  55. package/dist/hooks/session-start.js +1 -1
  56. package/dist/hooks/shared.js +1 -1
  57. package/dist/hooks/stop.js +1 -1
  58. package/dist/hooks/user-prompt-submit.js +1 -1
  59. package/dist/i18n/index.js +1 -1
  60. package/dist/i18n/messages.js +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/lifecycle/cleanup-scheduler.js +1 -1
  63. package/dist/lifecycle/cleanup.d.ts +79 -1
  64. package/dist/lifecycle/cleanup.js +1 -1
  65. package/dist/lifecycle/consolidation.js +1 -1
  66. package/dist/lifecycle/contradiction.js +1 -1
  67. package/dist/lifecycle/embedding-backfill.d.ts +1 -1
  68. package/dist/lifecycle/embedding-backfill.js +1 -1
  69. package/dist/lifecycle/index.js +1 -1
  70. package/dist/lifecycle/injection-flush.d.ts +1 -1
  71. package/dist/lifecycle/injection-flush.js +1 -1
  72. package/dist/lifecycle/quality-scorer.js +1 -1
  73. package/dist/lifecycle/session-extract.js +1 -1
  74. package/dist/lifecycle/shadow-rebuild.js +1 -1
  75. package/dist/lifecycle/tiering.js +1 -1
  76. package/dist/llm/client.js +1 -1
  77. package/dist/llm/index.js +1 -1
  78. package/dist/proficiency/actr-engine.js +1 -1
  79. package/dist/proficiency/detection.js +1 -1
  80. package/dist/proficiency/index.js +1 -1
  81. package/dist/proficiency/tracker.js +1 -1
  82. package/dist/search/adaptive-router.js +1 -1
  83. package/dist/search/index.js +1 -1
  84. package/dist/search/injection-filter.js +1 -1
  85. package/dist/search/memoryrank-rerank.js +1 -1
  86. package/dist/search/ranker.js +1 -1
  87. package/dist/search/reranker.js +1 -1
  88. package/dist/session/parser.js +1 -1
  89. package/dist/skill/evaluator.js +1 -1
  90. package/dist/skill/index.js +1 -1
  91. package/dist/sync/client.js +1 -1
  92. package/dist/sync/encryption.js +1 -1
  93. package/dist/sync/index.js +1 -1
  94. package/dist/sync/queue.js +1 -1
  95. package/dist/sync/scheduler.js +1 -1
  96. package/dist/sync/synchronizer.js +1 -1
  97. package/dist/sync/team-synchronizer.js +1 -1
  98. package/dist/sync/vector-clock.js +1 -1
  99. package/dist/types/index.js +1 -1
  100. package/dist/utils/keychain.js +1 -1
  101. package/dist/utils/logger.js +1 -1
  102. package/dist/utils/test-isolation.js +1 -1
  103. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x11c78f,_0xf5707e){function _0x3dd44e(_0x334ab7,_0x25179f){return _0x144f(_0x334ab7-0x339,_0x25179f);}function _0x33bb84(_0xa638d5,_0x31fd4d){return _0x144f(_0x31fd4d- -0x307,_0xa638d5);}const _0x4fbdb9=_0x11c78f();while(!![]){try{const _0x39366a=-parseInt(_0x33bb84(-0x19c,-0x176))/0x1+parseInt(_0x3dd44e(0x4eb,0x480))/0x2*(parseInt(_0x3dd44e(0x486,0x465))/0x3)+-parseInt(_0x33bb84(-0xf4,-0x128))/0x4*(-parseInt(_0x3dd44e(0x513,0x4d3))/0x5)+parseInt(_0x33bb84(-0x149,-0x156))/0x6*(parseInt(_0x33bb84(-0xef,-0xfc))/0x7)+parseInt(_0x33bb84(-0x18c,-0x13e))/0x8+-parseInt(_0x3dd44e(0x4b1,0x516))/0x9*(-parseInt(_0x3dd44e(0x477,0x499))/0xa)+parseInt(_0x3dd44e(0x500,0x517))/0xb*(-parseInt(_0x33bb84(-0x20e,-0x1cf))/0xc);if(_0x39366a===_0xf5707e)break;else _0x4fbdb9['push'](_0x4fbdb9['shift']());}catch(_0x398386){_0x4fbdb9['push'](_0x4fbdb9['shift']());}}}(_0x3d73,0x79ff6));function _0x144f(_0x2d929a,_0x4dc2e6){_0x2d929a=_0x2d929a-0x138;const _0x3d736a=_0x3d73();let _0x144f89=_0x3d736a[_0x2d929a];if(_0x144f['YHNpMU']===undefined){var _0x5138ac=function(_0x231ba2){const _0x1b8dd9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x160b91='',_0x4bc9f6='';for(let _0x37fbff=0x0,_0x3be68f,_0x2ef78c,_0x536eb3=0x0;_0x2ef78c=_0x231ba2['charAt'](_0x536eb3++);~_0x2ef78c&&(_0x3be68f=_0x37fbff%0x4?_0x3be68f*0x40+_0x2ef78c:_0x2ef78c,_0x37fbff++%0x4)?_0x160b91+=String['fromCharCode'](0xff&_0x3be68f>>(-0x2*_0x37fbff&0x6)):0x0){_0x2ef78c=_0x1b8dd9['indexOf'](_0x2ef78c);}for(let _0x449a92=0x0,_0x3a5759=_0x160b91['length'];_0x449a92<_0x3a5759;_0x449a92++){_0x4bc9f6+='%'+('00'+_0x160b91['charCodeAt'](_0x449a92)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4bc9f6);};_0x144f['wrSfcm']=_0x5138ac,_0x144f['mtxPCf']={},_0x144f['YHNpMU']=!![];}const _0x1de582=_0x3d736a[0x0],_0x3d9323=_0x2d929a+_0x1de582,_0x303f83=_0x144f['mtxPCf'][_0x3d9323];return!_0x303f83?(_0x144f89=_0x144f['wrSfcm'](_0x144f89),_0x144f['mtxPCf'][_0x3d9323]=_0x144f89):_0x144f89=_0x303f83,_0x144f89;}import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function _0x45f060(_0x4a4569,_0x586150){return _0x144f(_0x586150-0xba,_0x4a4569);}function withStatus(_0x12400b,_0x98821a){return _0x12400b['status']=_0x98821a,_0x12400b;}export function getErrorStatus(_0x5c2c36){function _0x36eec6(_0x416ca0,_0x34b35b){return _0x144f(_0x416ca0-0x1ab,_0x34b35b);}return _0x5c2c36 instanceof Error?_0x5c2c36[_0x36eec6(0x30a,0x2fa)]:undefined;}function _0x5d8c06(_0x1632b1,_0x1d5216){return _0x144f(_0x1632b1-0x2bb,_0x1d5216);}let _pluginVersion=_0x45f060(0x21d,0x1fd);try{const {readFileSync}=await import('node:fs'),{fileURLToPath}=await import(_0x5d8c06(0x443,0x437)),{dirname,join}=await import('node:path'),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x5d8c06(0x40d,0x43a)](readFileSync(join(__dirname,_0x5d8c06(0x44e,0x4a1)+_0x45f060(0x266,0x24f)),_0x5d8c06(0x40a,0x463)));_pluginVersion=pkg['version']||_0x5d8c06(0x3fe,0x3f9);}catch{}function _0x3d73(){const _0x3f44ce=['vgfNCW','mJmXn2nprwr6qq','CY9WB3b1BgfYpW','BwfW','ndi5ndKYyMXAEuzm','yxbWBhLezwX0yq','BxnN','CMvPBMzVCMnLtq','B25fBMfIBgvK','DxbSB2fKrMLSzq','ndm0nteWrLD6uNr6','yNL0zxpSL6ZSLBWG7zwP64Ui','vhHjD20','twvTB3jPzxm','BM9KztPWyxrO','mc4WlJa','B2zMC2v0','zw1VCNK','y3jLyxrLtwvTBW','CMLLC0jHDgnO','y3jLyxrLq29UDa','C2LNBMfS','Dg9YEt8','tufyx1jfvfjjrq','qMf0y2G','nJa3odLICvLcu3q','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','DxrMltG','Bw9YAwvZlW','ywnR','CgfYC2u','l2fWAs92ms90CG','yxnZzw1IBgvdBW','twvTyMvY','DgLWyxj0','zw5HyMXLzezLyq','l3jLAw5MB3jJzq','ufvu','CLjLC3bVBNnL','r0vu','yw1Z','BhrH','qKftrv9eruXbwq','C3rHDhvZ','Bw9YAwvZl3n0yq','Bw9YAwvZl2jHDa','Bwf4twvTB3jPzq','7jwu7zI47zMuio2cPoUkLcaZmIa','rMvHDhvYzxm','Cg93','B3j0','yw5ZzMvYl2LTCa','ChjVBw90zu1LBq','zgv0ywLS','zxzLBNqVyMf0yW','BwvZC2fNzq','ieTLEEULVcdTMzxSNBJTLzJSHlG','zw5JCNLWDgLVBG','uKvuuLLbqKXfxW','z2v0ug9WDwXHCG','C3nPzNK','AwnPzw5JAwvZ','z2v0q29TCgf0Aq','sfruuca0mJi','CMvMzxjLBMnLxW','Bg9J','t09cq3C','AgfUzgXLrxjYBW','mtGWwuH3vvDJ','Dhj1zq','7j247kADioYlPo2mQa','Bw9YAwvZp2XPBq','BxpRPBWG64sy7jEi7iQ164Ui64UK','AwvUy2LLCW','yMfZzvvYBa','zY9JB250zxH0CW','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','y3jLyxrLuMvSyq','y29UzMLN','Aw5JBhvKzuvTyG','C3rYAw5NAwz5','l2fWAs92ms9Wzq','u1rbvfvt','DhLWzq','BM9KztP1CMW','ywjVCNq','C2TPBgXFBwvTBW','Aw9Ul2vTB3rPBW','qLLHrxq','Cgf0AwjPBgL0Eq','Dg90ywXFBwvTBW','BMfTzq','CNLgAwXLtgLUAW','mtGYnti3Bvzrs29W','zf9HDa','lI4VlI4VCgfJAW','yxbWzw5K','ywDLlMPZB24','l2fWAs92ms9Tzq','y29UDgv4Df90yq','BI9QC29U','BgLZDfrLyw1Z','yw5ZzMvYl2nVBq','l3rLyw1ZlW','C2v0','C2XPy2u','Bw9YEs1MAwXLCW','zMLSzw5HBwu','Dg90ywXFBM9Kzq','64sK7yQ47jUm7ygSioYyPoULMdOG','DxbKyxrLtwvTBW','AxnFzhvWBgLJyq','DgLTzw91Da','CMvXDwvZDe11Ba','CgfNzv9ZAxPL','l2fWAs92ms9TyW','C2vZC2LVBL9Pza','yMvKzgLUzW','y2HLy2TgAwXLra','BgLZDe1LBw9YAq','l21LBw9YAwvZ','y29UDgvUDa','DgLVBG','l21LBw9YAwvZlW','zxHWB3j0uhjVzG','otG0t3D3yNjZ','mJzdAMzmteS','CMvXDwvZDa','DxbSAwnHDgu','zgvJCNLWDe1LBq','C2v0rw5HyMXLza','Eg9UB215l2nSyq','BgLZDfbYB2zPyW','AxnbCNjHEq','AxnfBMnYExb0Aq','z2v0vhjHBNnMzq','CKHPC3rVCNK','Aw5JBhvKzv9LBq','zMfPBgvKigzVCG','yxbPs2v5','AwvUy3LfDMvUDa','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','Bw9YAwvZ','DgvZDenVBM5LyW','w2eYyv0GCMvPBG','zxzLBNq','Dg9tDhjPBMC','nJGYDKPMtLbm','BM9KztPMCW','ntG4mtuWngrbqMXiDG','sfruuca0mdm','wK15vxK','y2XLyxjfBMnYEq','Bw9YAwvZl2fZCW','revmrvrf','sfruuca','AxrLBxm','7jQu7lkTioYlPo2mQdOG','BvPqvhC','s2v5','z2v0vgvHBvn0yq','y2XHC3nPzNLdBW','zxHPC3rPBMDFzG','ChrPB25lzxK','Bwf4vg9Rzw5Z','ue9tva','ndG5nJGWmhrKC0TfAq','CgfNzq','yvb5uNu','C3rHDhm','zhvWBgLJyxrL','neviyKzPAG','mtaW','ChjVAMvJDf9Wyq','B3v0y29Tzq','B2zPy2LLBMn5lW','Bwf0CML4','Cg9ZDfbYB2zPyW','AwXL','y2f0zwDVCMLLCW','zxjYB3i','yw5HBhL6zuvTBW','l2fWAs92ms9WCG','z2vUzxjHDgvezq','AM9PBG','l2fWAs92ms9MAq','BI9HBMfSExPL','DgfNCW','Cgf0Aa','BgvUz3rO','ANnVBG','zxH0','C3vJy2vZCW','qwjVCNrfCNjVCG','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','l2fWAs92ms90zq','C3rHCNrZv2L0Aa','x01t','y2f0zwDVCNK','Bw9YAwvZl3rHzW','C2vHCMnO','EuzLzwrIywnRia','zwrKAw5N','ywrKq29UDgv4Da','BgvZl3vWBg9Hza','l2fWAs92ms90yq','zM9Yy2vnzw1VCG','B3j5','Bw9YAwvZl3nLyq','l21LBwjLCNm','BgLTAxq','z2v0u3rHDhm','DhvYzxm','C3LUyY9KzwX0yq'];_0x3d73=function(){return _0x3f44ce;};return _0x3d73();}export class A2AClient{[_0x45f060(0x23b,0x23c)];[_0x5d8c06(0x45f,0x4a3)];[_0x45f060(0x1ff,0x227)+_0x45f060(0x2d7,0x28d)]=null;[_0x45f060(0x27c,0x211)+'tures']=[];constructor(_0xae09ab){function _0x2e3231(_0x474e62,_0x321131){return _0x5d8c06(_0x474e62- -0x28d,_0x321131);}this['config']=_0xae09ab,this['timeout']=_0xae09ab[_0x2e3231(0x1d2,0x1b1)]??0xea60;}[_0x5d8c06(0x471,0x40e)+_0x5d8c06(0x41f,0x461)](_0x1a091d){function _0xdc14dd(_0x19e269,_0x3f40a8){return _0x45f060(_0x3f40a8,_0x19e269- -0x110);}function _0x1167e0(_0x4f88ac,_0x113318){return _0x45f060(_0x113318,_0x4f88ac- -0x413);}this[_0x1167e0(-0x202,-0x1ff)+_0xdc14dd(0x1b2,0x14c)]=_0x1a091d;}['setEncrypt'+'ionKey'](_0x198d83){function _0x3acb0e(_0x59d5d8,_0xba43f7){return _0x5d8c06(_0x59d5d8- -0xf2,_0xba43f7);}if(_0x198d83[_0x1d6c8e(0x32a,0x36e)]!==0x20)throw new Error(_0x3acb0e(0x32c,0x354)+_0x3acb0e(0x308,0x2ea)+'다');function _0x1d6c8e(_0x4edaa2,_0x3a351e){return _0x5d8c06(_0x4edaa2- -0x182,_0x3a351e);}this[_0x1d6c8e(0x2a6,0x307)+'Key']=_0x198d83;}[_0x45f060(0x2ed,0x286)+_0x5d8c06(0x492,0x4aa)](){function _0x4ac5b6(_0x105b96,_0x5d2e19){return _0x45f060(_0x105b96,_0x5d2e19- -0x21b);}function _0x48fc55(_0x536989,_0x26ada0){return _0x45f060(_0x26ada0,_0x536989-0x176);}this[_0x4ac5b6(0x60,0xc)+_0x4ac5b6(0x4c,0x72)]=null;}[_0x45f060(0x238,0x274)+_0x5d8c06(0x3f7,0x414)](){function _0x14287a(_0x19f4e8,_0x2b554e){return _0x5d8c06(_0x2b554e-0xc3,_0x19f4e8);}return this[_0x14287a(0x4b4,0x4eb)+'Key']!==null;}async[_0x45f060(0x1bb,0x200)+'ry'](_0x17866b){let _0x19887b=_0x17866b['content'];function _0xd0c25d(_0x9c7704,_0x148136){return _0x5d8c06(_0x9c7704- -0x28e,_0x148136);}if(this[_0x5b30ba(-0x129,-0x127)+_0xd0c25d(0x200,0x1ea)]){const _0x2849e7=encryptContent(_0x17866b[_0xd0c25d(0x1da,0x1b8)],this[_0xd0c25d(0x19a,0x134)+_0xd0c25d(0x200,0x222)]);_0x19887b=wrapEncryptedContent(_0x2849e7);}const _0x1fb438=await this[_0xd0c25d(0x1e0,0x189)](_0x5b30ba(-0xc8,-0xbb),_0xd0c25d(0x1c3,0x1e5)+'mories',{'content':_0x19887b,'category':_0x17866b[_0xd0c25d(0x227,0x27a)],'tier':_0x17866b['tier'],'tags':_0x17866b[_0xd0c25d(0x21c,0x23e)]??[]});function _0x5b30ba(_0x3466b5,_0x4fc9e7){return _0x5d8c06(_0x4fc9e7- -0x54f,_0x3466b5);}const _0x24962e=_0x1fb438;if(this[_0x5b30ba(-0x181,-0x127)+'Key']&&_0x24962e['content']){const _0x2171e5=unwrapEncryptedContent(_0x24962e[_0x5b30ba(-0x106,-0xe7)]);_0x2171e5&&(_0x24962e['content']=decryptContent(_0x2171e5,this[_0xd0c25d(0x19a,0x136)+'Key']));}return _0x24962e;}async['searchMemo'+'ries'](_0x6fa353,_0x4413bf){function _0x204fd7(_0x36a815,_0x5c990f){return _0x5d8c06(_0x36a815- -0x69c,_0x5c990f);}function _0x44df46(_0x54978a,_0x51b95d){return _0x5d8c06(_0x51b95d- -0xb8,_0x54978a);}const _0x1a6b52=await this[_0x44df46(0x3c4,0x3b6)](_0x204fd7(-0x208,-0x1db),_0x44df46(0x32f,0x399)+_0x204fd7(-0x1dd,-0x233)+'rch',{'query':_0x6fa353,'limit':_0x4413bf?.['limit']??0xa,'category':_0x4413bf?.[_0x44df46(0x3ab,0x3fd)]});return _0x1a6b52[_0x44df46(0x3c2,0x3d3)]??[];}async[_0x5d8c06(0x466,0x450)+'es'](_0x406d40){const _0x238d7d=new URLSearchParams();if(_0x406d40?.[_0x43e653(0x12,0x5a)])_0x238d7d[_0x3793e7(-0xf9,-0x9e)](_0x43e653(0x2,0x5a),_0x406d40[_0x3793e7(-0x11,-0x34)]['toString']());function _0x3793e7(_0x2f78d4,_0x22141c){return _0x5d8c06(_0x22141c- -0x4f5,_0x2f78d4);}if(_0x406d40?.[_0x43e653(-0x23,-0x68)])_0x238d7d['set'](_0x43e653(-0x81,-0x68),_0x406d40[_0x43e653(-0x51,-0x68)][_0x3793e7(-0x84,-0x74)]());if(_0x406d40?.[_0x3793e7(-0xb6,-0xb7)+_0x43e653(0xb2,0x52)])_0x238d7d['set'](_0x3793e7(-0xb5,-0x7d)+_0x43e653(0x57,-0x3),_0x43e653(-0x9c,-0x33));const _0x5c8195='/api/v1/me'+_0x3793e7(-0xb5,-0x78)+(_0x238d7d[_0x43e653(-0x2a,0x1a)]()?'?'+_0x238d7d['toString']():''),_0x26cada=await this[_0x3793e7(-0xf2,-0x87)](_0x3793e7(-0xe7,-0xdf),_0x5c8195),_0x4b109a=_0x26cada['items']??[];if(this[_0x43e653(-0xf,-0x3f)+_0x43e653(0x6c,0x27)])return _0x4b109a[_0x3793e7(-0x19,-0x2d)](_0x3a4b42=>this[_0x3793e7(-0x9f,-0x85)+_0x3793e7(0x32,-0x37)](_0x3a4b42));function _0x43e653(_0x4dc216,_0x31b4ff){return _0x5d8c06(_0x31b4ff- -0x467,_0x4dc216);}return _0x4b109a;}[_0x5d8c06(0x470,0x490)+'ory'](_0x3b7228){function _0x2dc517(_0x2a7436,_0x3853b5){return _0x5d8c06(_0x2a7436-0xa7,_0x3853b5);}if(!this[_0x2dc517(0x4cf,0x518)+'Key'])return _0x3b7228;const _0x5c42f5={..._0x3b7228};function _0x4ff831(_0x9109a6,_0xeb38b4){return _0x5d8c06(_0xeb38b4- -0x2ae,_0x9109a6);}if(_0x5c42f5[_0x2dc517(0x50f,0x4e0)]){const _0x32f275=unwrapEncryptedContent(_0x5c42f5[_0x4ff831(0x190,0x1ba)]);if(_0x32f275)try{_0x5c42f5['content']=decryptContent(_0x32f275,this[_0x4ff831(0x181,0x17a)+_0x2dc517(0x535,0x4f4)]);}catch{}}return _0x5c42f5;}async[_0x5d8c06(0x45d,0x3f3)+'ry'](_0x409d9c,_0xa0e33d){const _0x66b04c=await this['request'](_0x281d42(0x2c9,0x286),_0x281d42(0x306,0x364)+'mories/'+_0x409d9c,_0xa0e33d);function _0x281d42(_0x539507,_0xc233be){return _0x45f060(_0xc233be,_0x539507-0xb6);}function _0x590415(_0xdaca35,_0x391189){return _0x45f060(_0x391189,_0xdaca35- -0x3ed);}return _0x66b04c;}async['deleteMemo'+'ry'](_0x3423a6){function _0x45a067(_0x491301,_0x4b6231){return _0x5d8c06(_0x491301- -0x628,_0x4b6231);}function _0x4be6bb(_0x34ab86,_0x3e10b1){return _0x5d8c06(_0x34ab86- -0x406,_0x3e10b1);}await this['request'](_0x45a067(-0x19f,-0x135),'/api/v1/me'+_0x45a067(-0x21d,-0x215)+_0x3423a6);}async[_0x5d8c06(0x454,0x411)](){const _0x31b5fe=await this['request'](_0x516322(0x480,0x454),_0x516322(0x51c,0x533)+_0x516322(0x481,0x458));function _0x3e4264(_0x35df3c,_0x2fa36a){return _0x5d8c06(_0x2fa36a- -0x51,_0x35df3c);}function _0x516322(_0x229cab,_0x216bb4){return _0x5d8c06(_0x229cab-0x6a,_0x216bb4);}if(Array['isArray'](_0x31b5fe))return _0x31b5fe;return _0x31b5fe['items']??[];}async['listTeamMe'+_0x5d8c06(0x47d,0x486)](_0x288188,_0x49fbc8){const _0x58b49c=new URLSearchParams();if(_0x49fbc8?.['limit'])_0x58b49c[_0x3f37ac(0x105,0xed)]('limit',_0x49fbc8[_0x3f37ac(0xec,0x157)][_0x1359a5(0x1f3,0x1c9)]());if(_0x49fbc8?.[_0x1359a5(0x171,0x14c)])_0x58b49c[_0x1359a5(0x1c9,0x1f4)]('offset',_0x49fbc8[_0x1359a5(0x171,0x159)][_0x3f37ac(0x118,0x117)]());function _0x3f37ac(_0xe22e11,_0x1006f5){return _0x45f060(_0xe22e11,_0x1006f5- -0x169);}const _0x18acfd=_0x58b49c[_0x3f37ac(0x11f,0x117)](),_0x359d2e='/teams/'+encodeURIComponent(_0x288188)+'/memories'+(_0x18acfd?'?'+_0x18acfd:'');function _0x1359a5(_0x30cfd9,_0xac4afd){return _0x45f060(_0xac4afd,_0x30cfd9- -0x8d);}const _0x58e0c1=await this[_0x3f37ac(0xc7,0x104)](_0x3f37ac(0x10f,0xac),_0x359d2e);return _0x58e0c1['items']??[];}async['addTeamMem'+_0x5d8c06(0x4be,0x50b)](_0x2a30d7,_0x2da815){function _0xb54f6a(_0x1c4765,_0x428a94){return _0x5d8c06(_0x1c4765- -0x2cb,_0x428a94);}const _0x12ed25=await this[_0x1a9fea(0x4f9,0x4bc)](_0x1a9fea(0x51f,0x587),_0x1a9fea(0x4e1,0x4d9)+encodeURIComponent(_0x2a30d7)+_0x1a9fea(0x4f2,0x4ec),_0x2da815);function _0x1a9fea(_0x257cc8,_0x179797){return _0x5d8c06(_0x257cc8-0x8b,_0x179797);}return _0x12ed25;}async['searchTeam'+_0x45f060(0x263,0x1fb)](_0x46e344,_0x34d573,_0x3dd2d8){function _0x42ffe4(_0xf773aa,_0x5bce58){return _0x45f060(_0x5bce58,_0xf773aa-0x1fd);}const _0x7b0361=await this[_0x42ffe4(0x46a,0x49f)](_0x750873(0x427,0x407),_0x42ffe4(0x452,0x494)+encodeURIComponent(_0x46e344)+(_0x42ffe4(0x466,0x498)+_0x42ffe4(0x4b3,0x4cc)),{'query':_0x34d573,'limit':_0x3dd2d8?.[_0x750873(0x472,0x434)]??0xa,'category':_0x3dd2d8?.['category']});function _0x750873(_0xcf32f0,_0xaa0dcb){return _0x45f060(_0xcf32f0,_0xaa0dcb-0x174);}return _0x7b0361[_0x42ffe4(0x487,0x4a4)]??[];}async[_0x45f060(0x2ac,0x2a5)+_0x45f060(0x1b8,0x217)](_0x376687,_0x290985,_0x274aa6){function _0x4f64c6(_0x5ecf4a,_0x361c25){return _0x5d8c06(_0x5ecf4a- -0x353,_0x361c25);}function _0xc09f82(_0x4ad0c7,_0x486682){return _0x5d8c06(_0x4ad0c7- -0x51e,_0x486682);}return this[_0x4f64c6(0x11b,0xb0)](_0x4f64c6(0x141,0xe7),_0xc09f82(-0xc8,-0xc9)+encodeURIComponent(_0x376687)+(_0xc09f82(-0xb4,-0x117)+_0xc09f82(-0x5a,0xf)),{'memory_id':_0x290985,'vector_clock':_0x274aa6});}async[_0x45f060(0x1ed,0x1f3)](_0x582c8b,_0x2e02cd,_0x217da5){function _0x265771(_0x58fc9d,_0x121af6){return _0x45f060(_0x58fc9d,_0x121af6- -0x455);}function _0x5388dd(_0x316357,_0x2418e6){return _0x45f060(_0x316357,_0x2418e6- -0x31e);}return this[_0x265771(-0x223,-0x1e8)](_0x5388dd(-0x96,-0x8b),_0x5388dd(-0xf2,-0xc9)+encodeURIComponent(_0x582c8b)+(_0x5388dd(-0x103,-0xb5)+'sync/apply'),{'memory_id':_0x2e02cd,'delta':_0x217da5});}async['createMemo'+_0x5d8c06(0x402,0x466)](_0x4d139a){function _0xa85a47(_0x42d119,_0x4265a0){return _0x45f060(_0x4265a0,_0x42d119- -0x188);}function _0x59f65e(_0x56195e,_0x485d74){return _0x45f060(_0x485d74,_0x56195e- -0x47a);}const _0x340242=await this['request'](_0x59f65e(-0x1e7,-0x1a2),'/api/v1/me'+_0x59f65e(-0x25f,-0x25d)+'ch',{'items':_0x4d139a});return _0x340242;}async[_0x5d8c06(0x47e,0x4e0)+_0x45f060(0x219,0x268)](){function _0x2be40a(_0x27a9ff,_0x4000a5){return _0x45f060(_0x4000a5,_0x27a9ff- -0x182);}function _0x5d9b8a(_0x313133,_0x14136c){return _0x45f060(_0x313133,_0x14136c- -0x290);}try{return await this['request'](_0x5d9b8a(-0xa7,-0x7b),_0x2be40a(0xce,0xb0)+_0x5d9b8a(-0x6f,-0x5b)+'it=1'),!![];}catch{return![];}}async[_0x5d8c06(0x40f,0x46a)+'ntext'](_0x594380,_0x442070){function _0x432d52(_0x34ff59,_0x47e0b9){return _0x45f060(_0x34ff59,_0x47e0b9- -0x3e6);}function _0x3431c7(_0x49982e,_0x1863cb){return _0x45f060(_0x1863cb,_0x49982e- -0x1a5);}const _0x426bf4=await this[_0x432d52(-0x1b7,-0x179)]('POST',_0x432d52(-0x181,-0x196)+_0x3431c7(0xe2,0xee)+'emble',{'query':_0x594380,'max_memories':_0x442070?.[_0x432d52(-0x1c3,-0x1ca)+'s']??0x5,'max_tokens':_0x442070?.[_0x3431c7(0xed,0x119)]??0x7d0,'categories':_0x442070?.[_0x3431c7(0xfc,0xfb)],'tier':_0x442070?.['tier']});return _0x426bf4;}async[_0x45f060(0x1be,0x1f5)+_0x5d8c06(0x400,0x3f1)](_0x497dbb){function _0x4cd32f(_0xb965bd,_0x6a4626){return _0x45f060(_0x6a4626,_0xb965bd-0xff);}const _0x567a9d=await this[_0x4cd32f(0x36c,0x342)]('POST',_0x4cd32f(0x34f,0x334)+_0x4cd32f(0x309,0x355)+_0x497dbb+_0x555772(0x12,0x62));function _0x555772(_0x497787,_0x509bd6){return _0x45f060(_0x509bd6,_0x497787- -0x200);}return _0x567a9d;}async[_0x45f060(0x1f0,0x1f5)+'emoryFeedb'+_0x5d8c06(0x40c,0x43a)](_0x3c158f,_0x199914){function _0x31f238(_0x3bdf2b,_0x39d5a4){return _0x5d8c06(_0x39d5a4- -0x5a4,_0x3bdf2b);}function _0x3b431e(_0x4aacfd,_0x25169e){return _0x5d8c06(_0x25169e- -0x103,_0x4aacfd);}try{await this[_0x31f238(-0xf2,-0x136)]('POST','/api/v1/me'+'mories/'+_0x3c158f+_0x31f238(-0x142,-0x191),{'success':_0x199914});}catch(_0x174a75){console[_0x3b431e(0x3a3,0x3a0)](_0x31f238(-0xf6,-0x125)+_0x3b431e(0x3a9,0x3ba)+_0x3b431e(0x3fe,0x3b5)+_0x3b431e(0x39f,0x376)+'\x20'+_0x3c158f+':',_0x174a75 instanceof Error?_0x174a75[_0x31f238(-0x189,-0x17e)]:String(_0x174a75));}}async[_0x45f060(0x205,0x222)+'ory'](_0x11f1b4,_0x1de6a3){const _0x47c9b1=await this[_0x233257(0x3b3,0x382)](_0x233257(0x3d9,0x385),'/api/v1/me'+_0x233257(0x350,0x39d)+_0x11f1b4+'/promote');function _0x1f82ca(_0xcf7e27,_0x33b357){return _0x45f060(_0xcf7e27,_0x33b357-0x149);}function _0x233257(_0x246d09,_0x39c8fb){return _0x45f060(_0x39c8fb,_0x246d09-0x146);}return _0x47c9b1;}async[_0x5d8c06(0x4c2,0x4db)](){function _0x57f163(_0x5b9bb8,_0x990183){return _0x45f060(_0x5b9bb8,_0x990183- -0x15);}const _0x240dd5=await this[_0x570723(0x29c,0x231)](_0x57f163(0x205,0x200),_0x570723(0x27f,0x253)+_0x57f163(0x219,0x205)+'ts');function _0x570723(_0x2684d3,_0xd83391){return _0x45f060(_0xd83391,_0x2684d3-0x2f);}return _0x240dd5;}async[_0x5d8c06(0x42a,0x40a)+_0x45f060(0x25e,0x2c4)](_0x961959=0xa){const _0x327375=new URLSearchParams();_0x327375[_0x5a3aa9(0x1b0,0x17f)](_0x148899(0x573,0x552),_0x961959[_0x148899(0x533,0x4f5)]());const _0x3bd907=_0x5a3aa9(0x1aa,0x1e1)+_0x5a3aa9(0x20f,0x1a6)+_0x5a3aa9(0x220,0x270)+_0x327375['toString'](),_0x447c24=await this[_0x148899(0x520,0x4e8)](_0x5a3aa9(0x16f,0x15b),_0x3bd907);function _0x5a3aa9(_0x4b09ac,_0x141dd5){return _0x45f060(_0x141dd5,_0x4b09ac- -0xa6);}function _0x148899(_0x34dc58,_0xdb3d78){return _0x45f060(_0xdb3d78,_0x34dc58-0x2b3);}return _0x447c24[_0x148899(0x53d,0x51d)]??[];}async[_0x45f060(0x2a9,0x28e)+'ts'](_0x5784ee){function _0x5dccfc(_0x3c6f3a,_0x34b38d){return _0x45f060(_0x34b38d,_0x3c6f3a-0x49);}const _0xeee44=await this['request'](_0x24157e(0x1b1,0x1ca),_0x24157e(0x1f1,0x186)+encodeURIComponent(_0x5784ee)+('/memories/'+_0x24157e(0x233,0x210))),_0x29250e=_0xeee44,_0x47413e=_0x29250e[_0x24157e(0x233,0x253)]??_0x29250e;function _0x24157e(_0x59462f,_0x2ab229){return _0x45f060(_0x2ab229,_0x59462f- -0x64);}return{'totalMemories':_0x47413e[_0x5dccfc(0x291,0x2f0)+'ries']??0x0,'totalNodes':_0x47413e[_0x5dccfc(0x2a3,0x2dd)+'s']??0x0,'lastSyncedAt':_0x47413e['last_synce'+_0x24157e(0x1e8,0x1ce)]??null};}async[_0x5d8c06(0x4a0,0x4da)+_0x45f060(0x2b6,0x27a)](_0x1e423f){function _0x4c20a5(_0x23ffc7,_0x2f4da9){return _0x5d8c06(_0x2f4da9- -0x286,_0x23ffc7);}const _0x529a36=await this['request'](_0x4c20a5(0x1fe,0x20e),_0x4c20a5(0x230,0x21f)+_0x31aada(-0x1a1,-0x1fb)+_0x31aada(-0x284,-0x219),{'skill_memory_id':_0x1e423f[_0x4c20a5(0x220,0x1bf)+'ry_id'],'outcome':_0x1e423f[_0x4c20a5(0x1c6,0x217)],'difficulty':_0x1e423f['difficulty'],'context_tags':_0x1e423f[_0x4c20a5(0x216,0x1cc)+'gs'],'session_id':_0x1e423f[_0x4c20a5(0x1a3,0x1dd)]});function _0x31aada(_0x34c1a1,_0x8fc93f){return _0x5d8c06(_0x8fc93f- -0x699,_0x34c1a1);}return _0x529a36;}async['postProfic'+_0x45f060(0x272,0x27a)+_0x5d8c06(0x407,0x44e)](_0x4c8e5e){function _0x50af7b(_0x17c467,_0x66cd6c){return _0x5d8c06(_0x17c467- -0x301,_0x66cd6c);}function _0x2a44e1(_0x2b43,_0x58b8fb){return _0x5d8c06(_0x2b43- -0x305,_0x58b8fb);}await this['request']('POST',_0x2a44e1(0x1a0,0x1a1)+'oficiency/'+_0x50af7b(0x124,0x168)+'h',{'events':_0x4c8e5e});}async[_0x5d8c06(0x473,0x47a)+_0x5d8c06(0x438,0x3cf)](_0x5d9941){const _0x3e9d51=new URLSearchParams();function _0x5da79b(_0x393a7f,_0x4e2fd8){return _0x45f060(_0x393a7f,_0x4e2fd8- -0x20f);}_0x3e9d51['set'](_0x8d5a15(0xea,0x84),_0x5da79b(0x2d,0x8b));if(_0x5d9941)_0x3e9d51[_0x5da79b(0xd,0x47)](_0x8d5a15(0x59,0xbf)+'th',_0x5d9941);function _0x8d5a15(_0x4d33c3,_0x260ce1){return _0x45f060(_0x4d33c3,_0x260ce1- -0x1dc);}const _0x2e9ff1='/api/v1/pr'+'oficiency?'+_0x3e9d51['toString'](),_0x3c3fcf=await this[_0x5da79b(0x1c,0x5e)](_0x8d5a15(0x9,0x39),_0x2e9ff1);return _0x3c3fcf[_0x8d5a15(0xdc,0xae)]??[];}async[_0x45f060(0x24b,0x2a3)+_0x45f060(0x257,0x268)](_0x510054){function _0x1bf191(_0x4cc22d,_0x75afb7){return _0x5d8c06(_0x75afb7- -0x331,_0x4cc22d);}function _0x2daa80(_0x1ba058,_0x4ad793){return _0x5d8c06(_0x1ba058- -0x19d,_0x4ad793);}return this[_0x2daa80(0x2d1,0x2bf)]('POST',_0x1bf191(0x162,0x10f)+'rsonalizat'+_0x2daa80(0x2a9,0x2e4)+_0x2daa80(0x30c,0x367),{'message':_0x510054[_0x2daa80(0x2bb,0x305)](0x0,0x1f4)});}async[_0x45f060(0x202,0x26a)+_0x5d8c06(0x42c,0x3ee)](_0x48f1a1,_0x5c5f4d){function _0x41df92(_0x16fef5,_0xb01487){return _0x5d8c06(_0x16fef5- -0x545,_0xb01487);}const _0x2a57bf=await this['request'](_0x4cf762(0x350,0x30d),_0x41df92(-0x137,-0x156)+'ansfer/exp'+_0x41df92(-0x124,-0xe5),{'source_provider':_0x48f1a1,'skill_ids':_0x5c5f4d??null});function _0x4cf762(_0x316418,_0x1585ae){return _0x5d8c06(_0x316418- -0x144,_0x1585ae);}return _0x2a57bf;}async['importProf'+_0x5d8c06(0x42c,0x481)](_0x424ac4,_0x247b61){const _0x2ff96a=await this[_0x3aa075(0xf2,0x114)]('POST',_0x551434(-0x1b5,-0x16a)+_0x3aa075(0xa6,0x70)+_0x3aa075(0xa5,0x109),{'package':_0x424ac4,'target_provider':_0x247b61});function _0x551434(_0x38a43f,_0x56c382){return _0x45f060(_0x56c382,_0x38a43f- -0x3c2);}function _0x3aa075(_0xce86,_0x344d27){return _0x45f060(_0x344d27,_0xce86- -0x17b);}return _0x2ff96a;}async[_0x45f060(0x269,0x22c)+'bilityMatr'+'ix'](){const _0x21ecb0=await this[_0x5faf03(-0x96,-0x4f)](_0x266b71(0x56,0x76),_0x266b71(0x9a,0x6e)+_0x5faf03(-0xaf,-0xd7)+_0x266b71(0xef,0xa8));function _0x5faf03(_0x38e330,_0x1f544a){return _0x5d8c06(_0x38e330- -0x504,_0x1f544a);}function _0x266b71(_0x33a002,_0x54421c){return _0x5d8c06(_0x54421c- -0x3a0,_0x33a002);}return _0x21ecb0[_0x5faf03(-0x65,-0x6f)]??[];}async[_0x5d8c06(0x476,0x4a3)+_0x5d8c06(0x477,0x4c2)](_0xf444df=0x1){const _0x2d5258=new URLSearchParams();_0x2d5258[_0x336d27(0x415,0x400)](_0x336d27(0x465,0x43f),_0xf444df[_0x336d27(0x3ea,0x42a)]());function _0x336d27(_0x5a6124,_0x14e3f5){return _0x5d8c06(_0x14e3f5- -0x57,_0x5a6124);}const _0x509e89='/api/v1/tr'+'ansfer/his'+_0x336d27(0x3fe,0x3ae)+_0x2d5258['toString'](),_0x3c4e99=await this[_0x336d27(0x3ae,0x417)](_0x1c99e3(0x9f,0x69),_0x509e89);function _0x1c99e3(_0x110bca,_0x4ced10){return _0x5d8c06(_0x4ced10- -0x3ad,_0x110bca);}return _0x3c4e99;}async[_0x45f060(0x202,0x1f7)](_0x358b63,_0x4b600f){const {readFileSync:_0xa41120}=await import(_0x14ceb5(-0x21b,-0x1d4)),{basename:_0x31db03}=await import(_0x36e24e(0x3f2,0x45a)),_0x5714f8=_0xa41120(_0x358b63);function _0x14ceb5(_0x1c605d,_0x58d6b6){return _0x45f060(_0x58d6b6,_0x1c605d- -0x49d);}const _0x63dca5=_0x31db03(_0x358b63),_0x38729b=new FormData();_0x38729b['append']('file',new Blob([_0x5714f8]),_0x63dca5);_0x4b600f[_0x14ceb5(-0x1e9,-0x206)]&&_0x38729b[_0x14ceb5(-0x24f,-0x211)](_0x36e24e(0x54d,0x512),_0x4b600f['category']);_0x4b600f['tags']&&_0x4b600f['tags']['length']>0x0&&_0x38729b[_0x36e24e(0x4ad,0x4ac)](_0x14ceb5(-0x1f4,-0x230),_0x4b600f[_0x36e24e(0x523,0x507)][_0x14ceb5(-0x1f7,-0x18e)](','));function _0x36e24e(_0x252e3a,_0x294c80){return _0x45f060(_0x252e3a,_0x294c80-0x25e);}const _0x5952be=await this[_0x14ceb5(-0x23e,-0x23a)+_0x36e24e(0x42f,0x46e)](_0x14ceb5(-0x20a,-0x24d),_0x14ceb5(-0x1f6,-0x1e5)+_0x14ceb5(-0x1e3,-0x230),_0x38729b),_0x3d8a46=_0x5952be;return{'id':_0x3d8a46['file_id'],'filename':_0x3d8a46[_0x14ceb5(-0x244,-0x23c)]};}async[_0x5d8c06(0x465,0x44a)+_0x5d8c06(0x46f,0x485)](_0x3ad6b2){function _0x20ce95(_0x3ccce4,_0x36f953){return _0x5d8c06(_0x3ccce4- -0x625,_0x36f953);}const _0x1845f6=await this['request'](_0xd5e403(0x222,0x255),_0x20ce95(-0x17d,-0x118)+'les/check-'+_0xd5e403(0x227,0x250),{'content_hash':_0x3ad6b2});function _0xd5e403(_0x1541d8,_0x26b00e){return _0x5d8c06(_0x1541d8- -0x272,_0x26b00e);}const _0x266432=_0x1845f6;return{'exists':_0x266432[_0x20ce95(-0x1c7,-0x16d)+'te'],'file_id':_0x266432[_0x20ce95(-0x194,-0x183)+_0xd5e403(0x22f,0x1c6)]?.['id']};}async[_0x5d8c06(0x401,0x443)+_0x45f060(0x1f1,0x24a)](_0x21c992,_0x191bd6,_0x19e9a1){function _0x320917(_0x57bc22,_0x3a9abd){return _0x45f060(_0x57bc22,_0x3a9abd-0x1a6);}const _0x5ebca2=await this[_0x439587(0x2b7,0x26e)](_0x439587(0x24d,0x294),'/api/v1/me'+_0x320917(0x3f7,0x3fe),{'memory_id':_0x21c992,'file_id':_0x191bd6,'reference_type':_0x19e9a1[_0x439587(0x218,0x22f)+_0x439587(0x229,0x242)],'reference_path':_0x19e9a1[_0x439587(0x289,0x22f)+_0x439587(0x266,0x2ab)]});function _0x439587(_0x2a857a,_0x491f07){return _0x45f060(_0x2a857a,_0x491f07-0x1);}return _0x5ebca2;}async[_0x5d8c06(0x403,0x430)+_0x5d8c06(0x4ae,0x483)](_0x367bdc){function _0x4b786a(_0x689247,_0x559aa9){return _0x45f060(_0x689247,_0x559aa9-0x202);}function _0x47ec89(_0x58f056,_0x3f158d){return _0x45f060(_0x3f158d,_0x58f056- -0x93);}return this[_0x4b786a(0x4a9,0x46f)](_0x47ec89(0x200,0x1e1),'/api/v1/mc'+_0x4b786a(0x471,0x43b),_0x367bdc);}async[_0x45f060(0x2c0,0x2b9)+_0x5d8c06(0x410,0x454)](_0x5f5180,_0x543cb3){function _0x2a1cab(_0x5ae381,_0x2580b8){return _0x45f060(_0x2580b8,_0x5ae381-0x12);}function _0x49e85f(_0x53fc01,_0x5cf82c){return _0x45f060(_0x53fc01,_0x5cf82c-0x290);}return this[_0x49e85f(0x558,0x4fd)](_0x2a1cab(0x2a5,0x2c9),_0x2a1cab(0x273,0x266)+_0x2a1cab(0x24b,0x25f)+'/'+_0x5f5180+_0x49e85f(0x54b,0x54f),_0x543cb3);}async[_0x5d8c06(0x43c,0x498)+_0x5d8c06(0x469,0x4ba)](_0xa15118){function _0x121cd2(_0x54a8be,_0x1c2240){return _0x45f060(_0x1c2240,_0x54a8be-0xf0);}function _0x17935a(_0x294433,_0x2bd10c){return _0x45f060(_0x294433,_0x2bd10c- -0x3d1);}return this[_0x121cd2(0x35d,0x2f7)](_0x17935a(-0x175,-0x13e),'/api/v1/mc'+'g/relation'+'s',_0xa15118);}async[_0x45f060(0x2cb,0x28f)+'ntent'](_0x1e4261){function _0x4a54eb(_0xf36b44,_0x22af42){return _0x5d8c06(_0xf36b44- -0x5f3,_0x22af42);}function _0x3edfaf(_0x2be2bd,_0x75ab0f){return _0x5d8c06(_0x75ab0f- -0x2f7,_0x2be2bd);}try{const _0x38ccf8=await this['request']('POST',_0x4a54eb(-0x137,-0xda)+_0x3edfaf(0x17b,0x17b)+_0x4a54eb(-0x1c8,-0x1e3),{'content':_0x1e4261[_0x3edfaf(0x14b,0x171)][_0x4a54eb(-0x19b,-0x1c5)](0x0,0x7d0),'tags':_0x1e4261[_0x4a54eb(-0x149,-0x14e)]??[],'category':_0x1e4261['category']}),_0x5bcd2b=_0x38ccf8;if(_0x5bcd2b[_0x3edfaf(0x19b,0x1b8)]&&_0x5bcd2b['result']){if(_0x4a54eb(-0x15c,-0x157)!==_0x3edfaf(0x200,0x1a0)){const _0x432f89=_0x52deef[_0x3edfaf(0x1b9,0x17d)](_0x498073[_0x4a54eb(-0x1c3,-0x1e6)])?_0x7e3a9c[_0x3edfaf(0xf5,0x139)][_0x4a54eb(-0x14c,-0x15b)]('.'):'',_0x1d26a2=_0x55d031['msg']??_0x6e65ee[_0x4a54eb(-0x1b4,-0x1e2)](_0xd91f08);return _0x432f89?_0x432f89+':\x20'+_0x1d26a2:_0x1d26a2;}else return _0x5bcd2b['result'];}return null;}catch{return null;}}static [_0x5d8c06(0x429,0x491)+_0x45f060(0x205,0x240)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x5d8c06(0x406,0x460)+'S']=0x3;static [_0x45f060(0x1e3,0x218)+_0x45f060(0x252,0x2b3)]=0x3e8;async[_0x5d8c06(0x46e,0x474)](_0x5743f7,_0x41f392,_0x2f3b1a){function _0xd11ce0(_0x43b8ee,_0x32b903){return _0x45f060(_0x43b8ee,_0x32b903- -0x365);}let _0x466e75;function _0x4ea11d(_0x276847,_0x4cc15d){return _0x45f060(_0x4cc15d,_0x276847-0x6);}for(let _0x298c22=0x0;_0x298c22<A2AClient[_0xd11ce0(-0x1ca,-0x160)+'S'];_0x298c22++){const _0x27cdbe=''+this[_0xd11ce0(-0xd0,-0x129)]['baseUrl']+_0x41f392,_0x3de7a6=new AbortController(),_0x34a9f9=setTimeout(()=>_0x3de7a6[_0x4ea11d(0x249,0x2aa)](),this[_0x4ea11d(0x264,0x27f)]);try{const _0x397859=await fetch(_0x27cdbe,{'method':_0x5743f7,'headers':{'Content-Type':'applicatio'+_0xd11ce0(-0x175,-0x113),'x-api-key':this['config']['apiKey'],'X-Plugin-Version':_pluginVersion,...this[_0x4ea11d(0x217,0x228)+'tures'][_0x4ea11d(0x2b1,0x287)]>0x0&&{'X-Plugin-Features':this[_0x4ea11d(0x217,0x1fb)+_0x4ea11d(0x2c8,0x284)][_0x4ea11d(0x2ac,0x298)](',')}},'body':_0x2f3b1a?JSON['stringify'](_0x2f3b1a):undefined,'signal':_0x3de7a6['signal']});clearTimeout(_0x34a9f9);if(A2AClient[_0xd11ce0(-0x108,-0x13d)+'STATUS']['has'](_0x397859['status'])&&_0x298c22<A2AClient[_0x4ea11d(0x20b,0x223)+'S']-0x1){const _0x466e66=A2AClient[_0x4ea11d(0x21e,0x227)+_0xd11ce0(-0x94,-0xb2)]*Math[_0x4ea11d(0x225,0x1bd)](0x2,_0x298c22);await new Promise(_0x363545=>setTimeout(_0x363545,_0x466e66));continue;}!_0x397859['ok']&&(_0x4ea11d(0x24c,0x227)===_0x4ea11d(0x200,0x1c3)?(this[_0x4ea11d(0x242,0x285)]=_0x1c03d6,this[_0x4ea11d(0x264,0x286)]=_0x46ee67[_0xd11ce0(-0x138,-0x107)]??0xea60):await this[_0x4ea11d(0x237,0x275)+_0x4ea11d(0x21a,0x1cf)](_0x397859));if(_0x5743f7===_0xd11ce0(-0x108,-0xdd)&&_0x397859[_0x4ea11d(0x21f,0x1e6)]===0xcc)return;return await _0x397859[_0xd11ce0(-0xe6,-0xb9)]();}catch(_0x1710f4){clearTimeout(_0x34a9f9);if(_0x1710f4 instanceof Error){if(getErrorStatus(_0x1710f4)!==undefined)throw _0x1710f4;if(_0x1710f4[_0xd11ce0(-0x114,-0x140)][_0xd11ce0(-0x6c,-0xb3)](_0xd11ce0(-0x14e,-0x131))||_0x1710f4[_0xd11ce0(-0xd5,-0x140)][_0xd11ce0(-0x8e,-0xb3)](_0xd11ce0(-0x7e,-0xe1))||_0x1710f4[_0xd11ce0(-0x188,-0x140)]['startsWith']('HTTP\x20404')||_0x1710f4[_0x4ea11d(0x22b,0x24e)][_0xd11ce0(-0x6f,-0xb3)](_0x4ea11d(0x233,0x20c))){if(_0x4ea11d(0x236,0x201)===_0xd11ce0(-0xe5,-0xe0))return _0x2a4563['map'](_0x5a9fe3=>this[_0xd11ce0(-0x126,-0xf6)+_0xd11ce0(-0xb4,-0xa8)](_0x5a9fe3));else throw _0x1710f4;}if(_0x298c22<A2AClient[_0x4ea11d(0x20b,0x216)+'S']-0x1){_0x466e75=_0x1710f4;const _0xe1443b=A2AClient[_0x4ea11d(0x21e,0x1ce)+_0x4ea11d(0x2b9,0x252)]*Math[_0xd11ce0(-0x157,-0x146)](0x2,_0x298c22);await new Promise(_0x5bafd4=>setTimeout(_0x5bafd4,_0xe1443b));continue;}if(_0x1710f4[_0xd11ce0(-0x122,-0x11c)]===_0xd11ce0(-0x66,-0xb6))throw new Error(_0x4ea11d(0x281,0x2b9)+this[_0xd11ce0(-0x165,-0x107)]+_0x4ea11d(0x23c,0x277));throw new Error(_0xd11ce0(-0xfb,-0x10a)+_0x1710f4['message']);}throw _0x1710f4;}}throw _0x466e75??new Error(_0x4ea11d(0x291,0x265)+A2AClient['MAX_RETRIE'+'S']+_0xd11ce0(-0xb6,-0xb5));}async[_0x45f060(0x21b,0x25f)+_0x5d8c06(0x411,0x44f)](_0x333f07,_0xd8afc,_0x828abd){const _0x4c4fd0=''+this[_0x2a6f68(0x32a,0x350)][_0x2a6f68(0x326,0x2d6)]+_0xd8afc;function _0xca042c(_0x391d2e,_0x1f2b3d){return _0x5d8c06(_0x1f2b3d- -0x1ba,_0x391d2e);}function _0x2a6f68(_0x10bcb1,_0x32298a){return _0x5d8c06(_0x10bcb1- -0x113,_0x32298a);}const _0x58d671=new AbortController(),_0x4150e7=setTimeout(()=>_0x58d671[_0xca042c(0x2af,0x28a)](),this[_0x2a6f68(0x34c,0x2e3)]);try{const _0x120ab1=await fetch(_0x4c4fd0,{'method':_0x333f07,'headers':{'x-api-key':this['config'][_0xca042c(0x310,0x2c0)],'X-Plugin-Version':_pluginVersion},'body':_0x828abd,'signal':_0x58d671[_0xca042c(0x297,0x24a)]});clearTimeout(_0x4150e7);if(!_0x120ab1['ok']){if('sGSbC'===_0x2a6f68(0x37a,0x3a2))return![];else await this[_0x2a6f68(0x31f,0x376)+_0xca042c(0x1f6,0x25b)](_0x120ab1);}return await _0x120ab1[_0x2a6f68(0x39a,0x3ba)]();}catch(_0x169a13){clearTimeout(_0x4150e7);if(_0x169a13 instanceof Error&&_0x169a13[_0x2a6f68(0x337,0x39b)]===_0xca042c(0x354,0x2f6))throw new Error(_0x2a6f68(0x369,0x36d)+this['timeout']+_0x2a6f68(0x324,0x34f));throw _0x169a13;}}async[_0x45f060(0x1e3,0x231)+_0x5d8c06(0x415,0x42c)](_0x788b1d){const _0x3604d8=_0x788b1d[_0x2948c8(0x23d,0x1dd)];if(_0x3604d8===0x191)throw withStatus(new Error('인증\x20실패:\x20API'+_0x3d8d17(-0x154,-0x1aa)+'요'),0x191);function _0x2948c8(_0x4358de,_0x104257){return _0x45f060(_0x4358de,_0x104257- -0x3c);}if(_0x3604d8===0x1ad)throw withStatus(new Error(_0x2948c8(0x1ca,0x1fe)+_0x2948c8(0x1fe,0x1cc)),0x1ad);function _0x3d8d17(_0x41cf51,_0x31e9d1){return _0x45f060(_0x31e9d1,_0x41cf51- -0x37a);}let _0x3c15cd=_0x3d8d17(-0xf1,-0x10f)+_0x3604d8;try{const _0xb8f7f8=await _0x788b1d[_0x3d8d17(-0xce,-0xdc)]();if(Array[_0x3d8d17(-0x107,-0x138)](_0xb8f7f8[_0x3d8d17(-0x157,-0x14a)])){const _0x47f3fb=_0xb8f7f8['detail'][_0x2948c8(0x262,0x28b)](_0x3713ea=>{function _0x24f959(_0x2a0c74,_0x2451b2){return _0x3d8d17(_0x2451b2-0x5b2,_0x2a0c74);}const _0x5a5c1b=Array[_0x2a122a(-0x1a7,-0x1fe)](_0x3713ea[_0x2a122a(-0x1eb,-0x222)])?_0x3713ea['loc'][_0x24f959(0x4d2,0x4de)]('.'):'',_0x481bdc=_0x3713ea[_0x24f959(0x3d1,0x42c)]??JSON['stringify'](_0x3713ea);function _0x2a122a(_0x235129,_0x5ed4fc){return _0x3d8d17(_0x235129- -0xa0,_0x5ed4fc);}return _0x5a5c1b?_0x5a5c1b+':\x20'+_0x481bdc:_0x481bdc;})[_0x3d8d17(-0xd4,-0x71)]('\x20|\x20');_0x3c15cd+=':\x20'+_0x47f3fb;}else{if(_0xb8f7f8[_0x2948c8(0x243,0x1e7)])_0x3c15cd+=':\x20'+_0xb8f7f8['detail'];else _0xb8f7f8[_0x2948c8(0x21a,0x1e9)]&&(_0x3c15cd+=':\x20'+_0xb8f7f8[_0x2948c8(0x1a9,0x1e9)]);}}catch{}throw withStatus(new Error(_0x3c15cd),_0x3604d8);}}
1
+ function _0x566b1b(_0x3fe9e3,_0x513ead){return _0x372f(_0x3fe9e3-0x2d0,_0x513ead);}(function(_0x5106f2,_0x358cda){function _0x187025(_0x59257e,_0x15170b){return _0x372f(_0x15170b- -0xf3,_0x59257e);}const _0x41ac15=_0x5106f2();function _0x4198e2(_0x1f29ce,_0x57b1cb){return _0x372f(_0x1f29ce- -0x1bc,_0x57b1cb);}while(!![]){try{const _0x4ba623=parseInt(_0x4198e2(0x1d,0x34))/0x1*(-parseInt(_0x4198e2(0x8,0x69))/0x2)+parseInt(_0x4198e2(-0x47,-0x54))/0x3+-parseInt(_0x4198e2(0x4c,0x29))/0x4+-parseInt(_0x187025(0x5d,0xc3))/0x5*(-parseInt(_0x187025(0xc6,0x87))/0x6)+parseInt(_0x187025(0xa3,0xf6))/0x7*(-parseInt(_0x187025(0x92,0xa2))/0x8)+-parseInt(_0x187025(0xb8,0xb1))/0x9*(parseInt(_0x4198e2(0x3a,0x23))/0xa)+parseInt(_0x4198e2(0x4e,0x47))/0xb;if(_0x4ba623===_0x358cda)break;else _0x41ac15['push'](_0x41ac15['shift']());}catch(_0x3d932d){_0x41ac15['push'](_0x41ac15['shift']());}}}(_0x5865,0x51556));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function withStatus(_0x426203,_0x3c6b3f){function _0x33279e(_0x40a183,_0x3e8119){return _0x372f(_0x3e8119- -0x106,_0x40a183);}return _0x426203[_0x33279e(0x25,0x82)]=_0x3c6b3f,_0x426203;}function _0x372f(_0xd10209,_0x1d34a2){_0xd10209=_0xd10209-0x148;const _0x5865a3=_0x5865();let _0x372fb4=_0x5865a3[_0xd10209];if(_0x372f['zyClhe']===undefined){var _0x17a39c=function(_0x585bd9){const _0x580216='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2190f0='',_0x29b3c7='';for(let _0x1fde57=0x0,_0x232ef3,_0x347198,_0x13e10f=0x0;_0x347198=_0x585bd9['charAt'](_0x13e10f++);~_0x347198&&(_0x232ef3=_0x1fde57%0x4?_0x232ef3*0x40+_0x347198:_0x347198,_0x1fde57++%0x4)?_0x2190f0+=String['fromCharCode'](0xff&_0x232ef3>>(-0x2*_0x1fde57&0x6)):0x0){_0x347198=_0x580216['indexOf'](_0x347198);}for(let _0x12e535=0x0,_0x4276d0=_0x2190f0['length'];_0x12e535<_0x4276d0;_0x12e535++){_0x29b3c7+='%'+('00'+_0x2190f0['charCodeAt'](_0x12e535)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29b3c7);};_0x372f['deiEdR']=_0x17a39c,_0x372f['luizzM']={},_0x372f['zyClhe']=!![];}const _0x3f5328=_0x5865a3[0x0],_0x5115a7=_0xd10209+_0x3f5328,_0x5647a6=_0x372f['luizzM'][_0x5115a7];return!_0x5647a6?(_0x372fb4=_0x372f['deiEdR'](_0x372fb4),_0x372f['luizzM'][_0x5115a7]=_0x372fb4):_0x372fb4=_0x5647a6,_0x372fb4;}export function getErrorStatus(_0x3aca34){function _0x7e7d56(_0x113132,_0x4bd656){return _0x372f(_0x4bd656- -0x227,_0x113132);}return _0x3aca34 instanceof Error?_0x3aca34[_0x7e7d56(-0xd8,-0x9f)]:undefined;}function _0x528cb8(_0x1c361e,_0x5cc190){return _0x372f(_0x5cc190- -0xed,_0x1c361e);}function _0x5865(){const _0x5b282f=['BM9KztPWyxrO','CMvMzxjLBMnLxW','BM9KztP1CMW','C3vJy2vZCW','B25fBMfIBgvK','ChrPB25lzxK','tufyx1jfvfjjrq','zgLMzMLJDwX0Eq','7j247kADioYlPo2mQdOGqvbj','l2fWAs92ms9MAq','C3LUyY9KzwX0yq','ihWG','Dhj1zq','zxH0','Aw5JBhvKzuvTyG','z2v0q29TCgf0Aq','Dg9tDhjPBMC','C2vHCMnOvgvHBq','ChjVBw90zu1LBq','DxbSAwnHDgu','C2vZC2LVBL9Pza','CMnO','sfruuca0mdq','Aw5JBhvKzv9LBq','zw5HyMXLzezLyq','BgLTAxq','l2fWAs92ms9Wzq','Cgf0AwjPBgL0Eq','zY9JB250zxH0CW','Bwf4twvTB3jPzq','C2XPy2u','C3rHCNrZv2L0Aa','BgvUz3rO','w2eYyv0GCMvPBG','wuLiu1G','qxDOqMW','zMLSzv9Pza','zM9Yy2vnzw1VCG','AxrLBxm','C3nPzNK','CMvXDwvZDa','B3j5','zxzLBNqVyMf0yW','tKDTEfm','BxpRPBWG64sy7jEi7iQ164Ui64UK','zw1VCNK','zMLSzq','qMf0y2G','y2XHC3nPzNLdBW','y2XLyxjfBMnYEq','CMvXDwvZDe11Ba','CMLLC0jHDgnO','CgfYC2u','ue9tva','BgLZDfbYB2zPyW','Dg90ywXFBM9Kzq','z2v0ug9WDwXHCG','zw1VCNLgzwvKyG','q2zlBgy','mZCYmdG3EezQywvR','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','ywDLlMPZB24','CY9WB3b1BgfYpW','CfH4ueu','mtiWnZmWmKrvEuzMza','DgfNCW','l2fWAs92ms90zq','C2LNBMfS','BgLZDfrLyw1nzq','CMvZDwX0','Eg9UB215l2nSyq','l2fWAs92ms90yq','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','EuzLzwrIywnRia','s2v5','z2v0u3rHDhm','qKftrv9eruXbwq','yw1Z','C3rHDhvZ','yuLcwMu','zMfPBgvKigzVCG','Aw1WB3j0uhjVzG','l2fWAs92ms9Tzq','l2fWAs92ms90CG','y3jLyxrLuMvSyq','DgLWyxj0','BhrH','zgv0ywLS','C2TPBgXFBwvTBW','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','sfruuca0mJi','nJaWq1zTqKD2','DgLLCG','y2HLy2TgAwXLra','r0vu','l3bYB21VDgu','Bg9J','A2rMv1y','ufvu','BMfTzq','y2f0zwDVCNK','BxnN','DMvYC2LVBG','yxbWBhLezwX0yq','Aw9Ul2vTB3rPBW','y29UzMLN','ntKZotfXCgLAA0m','Bw9YAwvZ','uKvuuLLbqKXfxW','Cg9ZDfbYB2zPyW','rMvHDhvYzxm','AwXL','Bw9YAwvZl3nLyq','Bwf4vg9Rzw5Z','AM9PBG','revmrvrf','BgvZl3vWBg9Hza','BNrLEhq','yNL0zxpSL6ZSLBWG7zwP64Ui','BI9HBMfSExPL','BgvZl2nOzwnRlq','BM9KztPMCW','l2fWAs92ms9WCG','zxHPC3rPBMDFzG','mtvev3zPq1C','l3rLyw1ZlW','l2fWAs92ms9TyW','Bw9YEs1MAwXLCW','Cgf0Aa','yw5ZzMvYl2v4Ca','BgLZDfrLyw1Z','64sK7yQ47jUm7ygSioYyPoULMdOG','C2vHCMnOtwvTBW','y29UDgvUDa','C2v0rw5JCNLWDa','C2vHCMnO','x01t','ChjVAMvJDf9Wyq','mtqYmtGYsxzhA216','yxnZzw1IBgvdBW','zw5JCNLWDgLVBG','Cg93','BwvZC2fNzq','B3j0','ywjVCNq','Bw9YAwvZl3n0yq','yxbWBgLJyxrPBW','y3jLyxrLtwvTBW','l21LBw9YAwvZ','CNLFAwq','AxnbCNjHEq','C2v0','DhvYzxm','ANnVBG','z2v0vhjHBNnMzq','Axq9mq','l21LBw9YAwvZlW','y2f0zwDVCMLLCW','vgfNCW','m1flDKHLqG','AxnFzhvWBgLJyq','yw5HBhL6zuvTBW','B2zPy2LLBMn5lW','B3v0y29Tzq','CNnVBMfSAxPHDa','zgvJCNLWDe1LBq','CMvPBMzVCMnLtq','twvTyMvY','DgLVBG','yw5ZzMvYl2HPCW','B2zMC2v0','C3rHDhm','AwvUy3LfDMvUDa','l3jLAw5MB3jJzq','AgfUzgXLrxjYBW','mJa2odvUuvjeufC','yxbPs2v5','Bw9YAwvZl2fZCW','yMfZzvvYBa','BNrLBNq','AxnfBMnYExb0Aq','zY9YzwXHDgLVBG','Bw9YAwvZlW','zxHWB3j0uhjVzG','BgLZDe1LBw9YAq','zf9HDa','lI4VlI4VCgfJAW','BwfW','ntyWzMrcuunP','yw5ZzMvYl2nVBq','yw5ZzMvYl2LTCa','qwjVCNrfCNjVCG','CLjLC3bVBNnL','C2v0rw5HyMXLza','l21LBwjLCNm','CKHPC3rVCNK','Bw9YAwvZl3rHzW','ywrKvgvHBu1LBq','zxjYB3i','z2v0vgvHBvn0yq','BNDxt24','mc4WlJa','DgvZDenVBM5LyW','yxbWzw5K','DgLTzw91Da','CMLLCW','mtq5mZmZmKrHBgviuW','AwnPzw5JAwvZ','odyXntyWn1zvuNjksa','z2vUzxjHDgvezq'];_0x5865=function(){return _0x5b282f;};return _0x5865();}let _pluginVersion=_0x566b1b(0x4d3,0x529);try{const {readFileSync}=await import(_0x528cb8(0xc4,0xc6)),{fileURLToPath}=await import(_0x566b1b(0x4de,0x513)),{dirname,join}=await import(_0x566b1b(0x4dc,0x53b)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x566b1b(0x43e,0x408)](readFileSync(join(__dirname,_0x528cb8(0xb6,0x107)+_0x528cb8(0x52,0x8a)),'utf-8'));_pluginVersion=pkg[_0x528cb8(0x61,0xb3)]||'0.0.0';}catch{}export class A2AClient{[_0x528cb8(0x68,0xb6)];[_0x528cb8(0x131,0x119)];['encryption'+'Key']=null;[_0x528cb8(0x12,0x65)+_0x566b1b(0x4a2,0x4c7)]=[];constructor(_0x2110d9){this[_0x1142b0(0x11b,0x164)]=_0x2110d9;function _0x1142b0(_0x3b65a9,_0x438f08){return _0x566b1b(_0x3b65a9- -0x358,_0x438f08);}function _0x2fe126(_0x1d385e,_0x38e785){return _0x566b1b(_0x38e785- -0x665,_0x1d385e);}this['timeout']=_0x2110d9[_0x2fe126(-0x1ad,-0x18f)]??0xea60;}[_0x566b1b(0x4cb,0x4b7)+_0x566b1b(0x478,0x429)](_0x460ffe){function _0x4785f5(_0x42ab74,_0x281a47){return _0x528cb8(_0x281a47,_0x42ab74-0x1f6);}function _0x446b95(_0x5535a4,_0x27064a){return _0x528cb8(_0x5535a4,_0x27064a-0x362);}this[_0x446b95(0x39f,0x3c7)+_0x446b95(0x466,0x447)]=_0x460ffe;}[_0x566b1b(0x490,0x44e)+'ionKey'](_0x90750b){function _0x48518d(_0x2b6884,_0x3cdc92){return _0x528cb8(_0x2b6884,_0x3cdc92-0x49f);}if(_0x90750b[_0x48518d(0x4de,0x50c)]!==0x20)throw new Error('암호화\x20키는\x2032\x20'+_0x48518d(0x534,0x562)+'다');function _0x1f0af9(_0x408bbe,_0x5ef073){return _0x528cb8(_0x5ef073,_0x408bbe- -0xc1);}this[_0x48518d(0x515,0x578)+_0x48518d(0x54f,0x536)]=_0x90750b;}[_0x528cb8(0xb9,0x7e)+_0x566b1b(0x4e1,0x4c0)](){function _0x54e1fa(_0xe97df1,_0x4546d5){return _0x528cb8(_0xe97df1,_0x4546d5-0x4ad);}function _0xf2e0fe(_0x2319d3,_0x364dab){return _0x528cb8(_0x364dab,_0x2319d3-0x278);}this[_0x54e1fa(0x5b7,0x586)+_0xf2e0fe(0x30f,0x366)]=null;}[_0x528cb8(0xad,0x101)+_0x528cb8(0x182,0x123)](){function _0x462c39(_0x245c25,_0x13a1cb){return _0x528cb8(_0x245c25,_0x13a1cb-0x20e);}return this[_0x462c39(0x2a0,0x2e7)+'Key']!==null;}async[_0x566b1b(0x49d,0x439)+'ry'](_0x5b2b01){let _0x285558=_0x5b2b01[_0x1d0105(-0x205,-0x254)];function _0x53273b(_0x5e4777,_0x129dcc){return _0x566b1b(_0x5e4777- -0x143,_0x129dcc);}if(this[_0x1d0105(-0x1fe,-0x239)+'Key']){if('vElUh'!=='SyjYV'){const _0x2535b8=encryptContent(_0x5b2b01['content'],this['encryption'+'Key']);_0x285558=wrapEncryptedContent(_0x2535b8);}else throw new _0x16bd52('암호화\x20키는\x2032\x20'+_0x1d0105(-0x214,-0x1cd)+'다');}function _0x1d0105(_0x4cc37b,_0x501188){return _0x566b1b(_0x4cc37b- -0x694,_0x501188);}const _0x41e426=await this[_0x53273b(0x2ef,0x297)](_0x53273b(0x2fc,0x2cd),_0x1d0105(-0x238,-0x29d)+_0x53273b(0x332,0x342),{'content':_0x285558,'category':_0x5b2b01[_0x1d0105(-0x226,-0x202)],'tier':_0x5b2b01[_0x53273b(0x323,0x383)],'tags':_0x5b2b01[_0x53273b(0x308,0x2ed)]??[]}),_0x7a757d=_0x41e426;if(this[_0x53273b(0x353,0x32a)+_0x1d0105(-0x240,-0x22c)]&&_0x7a757d[_0x53273b(0x34c,0x349)]){const _0x17a951=unwrapEncryptedContent(_0x7a757d[_0x1d0105(-0x205,-0x1d1)]);_0x17a951&&(_0x7a757d[_0x53273b(0x34c,0x2ff)]=decryptContent(_0x17a951,this[_0x1d0105(-0x1fe,-0x1f0)+'Key']));}return _0x7a757d;}async[_0x566b1b(0x48e,0x4a7)+_0x566b1b(0x4d7,0x4a3)](_0x1d84cc,_0x2e14bd){function _0x2db3ab(_0x438286,_0x480614){return _0x528cb8(_0x438286,_0x480614-0x44b);}const _0x2085dd=await this[_0x3658d8(-0x158,-0x183)](_0x3658d8(-0x134,-0x176),_0x3658d8(-0x11f,-0x159)+_0x2db3ab(0x52a,0x508)+_0x2db3ab(0x511,0x4ad),{'query':_0x1d84cc,'limit':_0x2e14bd?.[_0x2db3ab(0x496,0x4b1)]??0xa,'category':_0x2e14bd?.[_0x2db3ab(0x4e3,0x4fc)]});function _0x3658d8(_0x3c4695,_0xa17da3){return _0x528cb8(_0x3c4695,_0xa17da3- -0x1f8);}return _0x2085dd[_0x3658d8(-0x1cd,-0x185)]??[];}async[_0x566b1b(0x4c2,0x4d2)+'es'](_0x18112f){const _0xacacf=new URLSearchParams();if(_0x18112f?.[_0x362afd(-0x221,-0x24c)])_0xacacf[_0x5c2e52(0x57d,0x542)](_0x5c2e52(0x4b7,0x4c4),_0x18112f['limit']['toString']());if(_0x18112f?.[_0x362afd(-0x179,-0x1bb)])_0xacacf[_0x5c2e52(0x544,0x542)]('offset',_0x18112f[_0x5c2e52(0x54d,0x555)][_0x5c2e52(0x502,0x4bb)]());function _0x362afd(_0x10d5b8,_0x3ae453){return _0x566b1b(_0x3ae453- -0x66f,_0x10d5b8);}if(_0x18112f?.[_0x5c2e52(0x48e,0x4b9)+'edding'])_0xacacf[_0x362afd(-0x1a0,-0x1ce)](_0x362afd(-0x207,-0x24e)+'bedding',_0x5c2e52(0x59d,0x589));const _0x4396d1='/api/v1/me'+_0x5c2e52(0x500,0x516)+(_0xacacf[_0x5c2e52(0x4f7,0x4bb)]()?'?'+_0xacacf[_0x362afd(-0x2a5,-0x255)]():''),_0x2e7a6e=await this['request'](_0x5c2e52(0x504,0x509),_0x4396d1);function _0x5c2e52(_0x1c248b,_0x21d019){return _0x566b1b(_0x21d019-0xa1,_0x1c248b);}const _0x2a4ef8=_0x2e7a6e[_0x362afd(-0x265,-0x23f)]??[];if(this[_0x5c2e52(0x4e1,0x537)+_0x5c2e52(0x4a3,0x4f5)]){if(_0x5c2e52(0x5dc,0x573)===_0x362afd(-0x281,-0x242))this[_0x5c2e52(0x594,0x537)+_0x362afd(-0x1cb,-0x21b)]=null;else return _0x2a4ef8[_0x362afd(-0x1d4,-0x1aa)](_0x539b77=>this['decryptMem'+'ory'](_0x539b77));}return _0x2a4ef8;}[_0x528cb8(0xd1,0xf2)+_0x528cb8(0x48,0x76)](_0x568d60){if(!this[_0x3ab45a(0x117,0x151)+_0x282567(0x503,0x524)])return _0x568d60;const _0x5e38ff={..._0x568d60};if(_0x5e38ff['content']){const _0x488168=unwrapEncryptedContent(_0x5e38ff[_0x282567(0x53e,0x555)]);if(_0x488168)try{if(_0x3ab45a(0x150,0x126)===_0x3ab45a(0xf4,0x126))_0x5e38ff[_0x3ab45a(0x1b1,0x14a)]=decryptContent(_0x488168,this[_0x3ab45a(0x152,0x151)+'Key']);else return this['encryption'+_0x3ab45a(0x12a,0x10f)]!==null;}catch{}}function _0x3ab45a(_0x10330b,_0x4ac38f){return _0x528cb8(_0x10330b,_0x4ac38f-0x78);}function _0x282567(_0x4c6069,_0x13dd7a){return _0x528cb8(_0x13dd7a,_0x4c6069-0x46c);}return _0x5e38ff;}async['updateMemo'+'ry'](_0x1e72b3,_0x2c973b){function _0x3c69e3(_0x1488af,_0x2ac17a){return _0x528cb8(_0x2ac17a,_0x1488af-0x48b);}function _0x1cf1b4(_0x50472c,_0x2f0036){return _0x528cb8(_0x2f0036,_0x50472c- -0x136);}const _0x509b4f=await this[_0x1cf1b4(-0xc1,-0x7a)](_0x1cf1b4(-0x87,-0x5b),_0x1cf1b4(-0x97,-0x43)+'mories/'+_0x1e72b3,_0x2c973b);return _0x509b4f;}async['deleteMemo'+'ry'](_0x27603f){function _0x4de82c(_0x32a8ea,_0x2ee484){return _0x528cb8(_0x2ee484,_0x32a8ea- -0x1d8);}function _0xf22305(_0x31bff7,_0x257bbf){return _0x528cb8(_0x31bff7,_0x257bbf-0x472);}await this[_0xf22305(0x4a5,0x4e7)](_0xf22305(0x508,0x532),_0x4de82c(-0x139,-0xf0)+_0x4de82c(-0xd5,-0xbe)+_0x27603f);}async[_0x528cb8(0x102,0xcf)](){function _0x35be29(_0x20ef90,_0x1be7db){return _0x566b1b(_0x20ef90- -0x2de,_0x1be7db);}function _0xb4f6cc(_0x24c324,_0x219895){return _0x566b1b(_0x219895- -0x5dc,_0x24c324);}const _0x44325b=await this[_0xb4f6cc(-0x1b7,-0x1aa)](_0xb4f6cc(-0x1c4,-0x174),_0x35be29(0x16e,0x154)+_0xb4f6cc(-0x187,-0x185));if(Array[_0xb4f6cc(-0x131,-0x13c)](_0x44325b))return _0x44325b;return _0x44325b[_0xb4f6cc(-0x1ef,-0x1ac)]??[];}async[_0x566b1b(0x44e,0x3e9)+_0x566b1b(0x475,0x499)](_0x45875c,_0x3e4937){const _0x49d20c=new URLSearchParams();if(_0x3e4937?.[_0x31195e(-0x126,-0x15e)])_0x49d20c[_0x320419(0x28d,0x2c4)](_0x31195e(-0x19d,-0x15e),_0x3e4937['limit'][_0x31195e(-0x155,-0x167)]());function _0x320419(_0xf67ab5,_0x170ce7){return _0x528cb8(_0x170ce7,_0xf67ab5-0x1a9);}if(_0x3e4937?.[_0x31195e(-0xb9,-0xcd)])_0x49d20c[_0x320419(0x28d,0x2ec)]('offset',_0x3e4937[_0x320419(0x2a0,0x2a5)][_0x320419(0x206,0x25c)]());function _0x31195e(_0x3dfa3b,_0x344964){return _0x528cb8(_0x3dfa3b,_0x344964- -0x1c4);}const _0x58e240=_0x49d20c[_0x320419(0x206,0x253)](),_0x3c37a2=_0x31195e(-0xb8,-0xfa)+encodeURIComponent(_0x45875c)+_0x31195e(-0x120,-0xe3)+(_0x58e240?'?'+_0x58e240:''),_0x4dbf8d=await this[_0x320419(0x21e,0x1db)](_0x31195e(-0x144,-0x119),_0x3c37a2);return _0x4dbf8d[_0x320419(0x21c,0x233)]??[];}async[_0x566b1b(0x4cf,0x473)+_0x566b1b(0x433,0x401)](_0x3c8bae,_0x6a0ed6){const _0x1fa108=await this['request'](_0x51528f(0x160,0x11c),'/teams/'+encodeURIComponent(_0x3c8bae)+_0x2afe8a(0xe1,0xec),_0x6a0ed6);function _0x51528f(_0xc112a7,_0x13b62d){return _0x528cb8(_0x13b62d,_0xc112a7-0xde);}function _0x2afe8a(_0x18bc41,_0x146b4a){return _0x528cb8(_0x146b4a,_0x18bc41-0x0);}return _0x1fa108;}async[_0x566b1b(0x41b,0x43b)+'Memories'](_0x1b9b69,_0x14ea07,_0x240243){function _0x50d2d7(_0x84836a,_0xdf465a){return _0x528cb8(_0x84836a,_0xdf465a-0x138);}function _0x48b5e9(_0x38811a,_0x392de6){return _0x528cb8(_0x38811a,_0x392de6- -0x1df);}const _0x1b26d4=await this[_0x50d2d7(0x1e6,0x1ad)](_0x50d2d7(0x19e,0x1ba),'/teams/'+encodeURIComponent(_0x1b9b69)+('/memories/'+_0x50d2d7(0x206,0x20c)),{'query':_0x14ea07,'limit':_0x240243?.[_0x48b5e9(-0x1d1,-0x179)]??0xa,'category':_0x240243?.[_0x48b5e9(-0xcd,-0x12e)]});return _0x1b26d4[_0x48b5e9(-0x187,-0x16c)]??[];}async[_0x566b1b(0x4db,0x4a8)+_0x566b1b(0x460,0x4c1)](_0x44a8e0,_0xb6b63e,_0x59e554){function _0x3f9997(_0x291201,_0x4f91cc){return _0x528cb8(_0x4f91cc,_0x291201- -0x296);}function _0x51d3a1(_0x428266,_0x1a1be4){return _0x528cb8(_0x428266,_0x1a1be4-0x292);}return this[_0x51d3a1(0x362,0x307)]('POST',_0x51d3a1(0x35a,0x35c)+encodeURIComponent(_0x44a8e0)+(_0x3f9997(-0x1ad,-0x201)+_0x3f9997(-0x16d,-0x14e)),{'memory_id':_0xb6b63e,'vector_clock':_0x59e554});}async[_0x528cb8(0xac,0xb4)](_0x49b84d,_0x518653,_0x2abab1){function _0x49e4a0(_0x5e454b,_0x4ecfc0){return _0x528cb8(_0x4ecfc0,_0x5e454b-0x82);}function _0x4c4cce(_0x760bfb,_0x56028d){return _0x528cb8(_0x56028d,_0x760bfb-0x314);}return this[_0x49e4a0(0xf7,0xd9)](_0x4c4cce(0x396,0x3ff),_0x49e4a0(0x14c,0x19e)+encodeURIComponent(_0x49b84d)+(_0x4c4cce(0x3fd,0x43e)+'sync/apply'),{'memory_id':_0x518653,'delta':_0x2abab1});}async['createMemo'+_0x566b1b(0x43d,0x416)](_0x500d79){const _0x308ba9=await this[_0x537f9e(0x248,0x292)](_0x30fd49(0x481,0x4af),_0x30fd49(0x49e,0x4f2)+'mories/bat'+'ch',{'items':_0x500d79});function _0x30fd49(_0x547d7c,_0xc8b343){return _0x566b1b(_0x547d7c-0x42,_0xc8b343);}function _0x537f9e(_0x545c87,_0x5766b6){return _0x566b1b(_0x545c87- -0x1ea,_0x5766b6);}return _0x308ba9;}async[_0x566b1b(0x4d4,0x477)+_0x528cb8(0x10d,0xf5)](){function _0x5cb243(_0x11f34e,_0x1e9db9){return _0x566b1b(_0x1e9db9- -0x626,_0x11f34e);}function _0x3e9c39(_0x551fb,_0xb28823){return _0x566b1b(_0x551fb- -0x1c0,_0xb28823);}try{return await this[_0x5cb243(-0x1f5,-0x1f4)](_0x5cb243(-0x1bb,-0x1be),_0x5cb243(-0x1b2,-0x1ca)+'mories?lim'+_0x5cb243(-0x1da,-0x181)),!![];}catch{return![];}}async[_0x566b1b(0x495,0x463)+_0x528cb8(0xef,0xc2)](_0x16e489,_0x33a680){function _0x41a9f0(_0x483c8f,_0xce3fb7){return _0x528cb8(_0xce3fb7,_0x483c8f-0x3ba);}const _0x1bea35=await this[_0x52c934(0x11e,0x13b)](_0x52c934(0x12b,0x165),'/api/v1/me'+_0x52c934(0x1a7,0x1ff)+'emble',{'query':_0x16e489,'max_memories':_0x33a680?.[_0x41a9f0(0x424,0x3ef)+'s']??0x5,'max_tokens':_0x33a680?.[_0x41a9f0(0x478,0x4bf)]??0x7d0,'categories':_0x33a680?.[_0x52c934(0x193,0x185)],'tier':_0x33a680?.['tier']});function _0x52c934(_0x325a4c,_0x3967d5){return _0x528cb8(_0x3967d5,_0x325a4c-0xa9);}return _0x1bea35;}async[_0x566b1b(0x4b0,0x474)+_0x528cb8(0x59,0x7a)](_0x29cb5e){const _0x2260e3=await this[_0x31ecc0(0x40b,0x3dd)](_0xffada0(0x2f8,0x296),_0x31ecc0(0x435,0x423)+_0x31ecc0(0x499,0x4fc)+_0x29cb5e+_0x31ecc0(0x490,0x440));function _0x31ecc0(_0x3dadf2,_0x92b857){return _0x528cb8(_0x92b857,_0x3dadf2-0x396);}function _0xffada0(_0x1d8025,_0x3f0f62){return _0x528cb8(_0x3f0f62,_0x1d8025-0x276);}return _0x2260e3;}async[_0x528cb8(0xe8,0xf3)+_0x528cb8(0x77,0x86)+'ack'](_0x320cd8,_0x2afc32){function _0x5d91a9(_0x33e52c,_0x35f9e4){return _0x528cb8(_0x33e52c,_0x35f9e4- -0x16a);}function _0x331a5c(_0x7eaa1b,_0x54d4ff){return _0x528cb8(_0x7eaa1b,_0x54d4ff-0x3be);}try{await this[_0x331a5c(0x423,0x433)]('POST',_0x331a5c(0x4bf,0x45d)+'mories/'+_0x320cd8+'/reinforce',{'success':_0x2afc32});}catch(_0x27c9de){console[_0x5d91a9(-0x46,-0x57)](_0x331a5c(0x48a,0x42c)+_0x331a5c(0x47b,0x430)+_0x5d91a9(-0xb0,-0xd4)+_0x5d91a9(-0x12d,-0xcd)+'\x20'+_0x320cd8+':',_0x27c9de instanceof Error?_0x27c9de[_0x331a5c(0x43f,0x499)]:String(_0x27c9de));}}async[_0x566b1b(0x41c,0x474)+_0x528cb8(0x78,0x76)](_0x4e554e,_0x3b9d4a){function _0x1bf44e(_0x3a4a97,_0x30fb04){return _0x528cb8(_0x30fb04,_0x3a4a97-0xbe);}const _0x33fafa=await this['request'](_0x1bf44e(0x140,0xf1),_0x1bf44e(0x15d,0x165)+_0x119aa4(0x441,0x489)+_0x4e554e+_0x1bf44e(0x16a,0x185));function _0x119aa4(_0x4ef44a,_0x41cad2){return _0x528cb8(_0x41cad2,_0x4ef44a-0x33e);}return _0x33fafa;}async[_0x566b1b(0x455,0x3fd)](){const _0x263099=await this[_0xb15869(0x380,0x375)](_0xb15869(0x348,0x3ab),_0x1bab16(-0xd2,-0xf8)+_0xb15869(0x3eb,0x3de)+'ts');function _0xb15869(_0x4e3395,_0x3f4873){return _0x528cb8(_0x4e3395,_0x3f4873-0x300);}function _0x1bab16(_0x5686c6,_0x1bc998){return _0x528cb8(_0x1bc998,_0x5686c6- -0x171);}return _0x263099;}async[_0x528cb8(0x90,0x85)+_0x528cb8(0xe9,0xeb)](_0x364fe3=0xa){function _0x1bbf4b(_0x1eee7e,_0x116826){return _0x528cb8(_0x1eee7e,_0x116826-0x41f);}function _0x3d8652(_0x4ef712,_0x2838e6){return _0x528cb8(_0x2838e6,_0x4ef712-0x37b);}const _0x5984ff=new URLSearchParams();_0x5984ff['set'](_0x1bbf4b(0x436,0x485),_0x364fe3[_0x3d8652(0x3d8,0x419)]());const _0x1ea77d='/api/v1/me'+_0x1bbf4b(0x55a,0x530)+_0x1bbf4b(0x4ec,0x4aa)+_0x5984ff[_0x3d8652(0x3d8,0x3c1)](),_0x4affad=await this[_0x1bbf4b(0x4bb,0x494)]('GET',_0x1ea77d);return _0x4affad[_0x3d8652(0x3ee,0x3ca)]??[];}async[_0x566b1b(0x4d1,0x48a)+'ts'](_0x47dfe8){function _0x30527f(_0x13878d,_0x16a12d){return _0x528cb8(_0x16a12d,_0x13878d-0x6d);}const _0x483361=await this[_0x2beaee(0x337,0x325)](_0x2beaee(0x36d,0x3a1),_0x30527f(0x137,0xd4)+encodeURIComponent(_0x47dfe8)+(_0x30527f(0x156,0xef)+_0x30527f(0x165,0x133))),_0x36bd4e=_0x483361;function _0x2beaee(_0x4f73e8,_0x2ca85b){return _0x528cb8(_0x2ca85b,_0x4f73e8-0x2c2);}const _0x960b29=_0x36bd4e[_0x2beaee(0x3ba,0x3df)]??_0x36bd4e;return{'totalMemories':_0x960b29['total_memo'+_0x2beaee(0x3dc,0x391)]??0x0,'totalNodes':_0x960b29[_0x2beaee(0x346,0x374)+'s']??0x0,'lastSyncedAt':_0x960b29['last_synce'+_0x30527f(0x173,0x1c5)]??null};}async[_0x528cb8(0xbe,0xba)+'iencyEvent'](_0x34ab73){const _0x32844a=await this[_0x49f122(0x46c,0x485)](_0x4e6f03(0x138,0xea),_0x4e6f03(0x151,0x12f)+'oficiency/'+'event',{'skill_memory_id':_0x34ab73[_0x49f122(0x4e7,0x4b5)+_0x49f122(0x4e3,0x4f2)],'outcome':_0x34ab73[_0x4e6f03(0xf6,0x158)],'difficulty':_0x34ab73[_0x4e6f03(0x13e,0x18e)],'context_tags':_0x34ab73['context_ta'+'gs'],'session_id':_0x34ab73[_0x4e6f03(0x87,0xc9)]});function _0x49f122(_0x56bd02,_0x2124c6){return _0x566b1b(_0x2124c6-0x53,_0x56bd02);}function _0x4e6f03(_0x350413,_0x1549dd){return _0x566b1b(_0x1549dd- -0x355,_0x350413);}return _0x32844a;}async[_0x566b1b(0x477,0x44d)+_0x566b1b(0x4b6,0x510)+_0x566b1b(0x439,0x45e)](_0x23b29d){function _0x32694c(_0x1b1908,_0x51d088){return _0x528cb8(_0x1b1908,_0x51d088-0x40f);}function _0x2e4321(_0x3a3a8e,_0x4ccd69){return _0x528cb8(_0x3a3a8e,_0x4ccd69- -0xf6);}await this['request'](_0x32694c(0x4cc,0x491),'/api/v1/pr'+_0x32694c(0x4e9,0x4fe)+_0x2e4321(-0x7e,-0x7f)+'h',{'events':_0x23b29d});}async[_0x566b1b(0x440,0x405)+'iencies'](_0x525de5){function _0x52a9d5(_0x11c166,_0x819e62){return _0x528cb8(_0x11c166,_0x819e62- -0x197);}const _0x55df4c=new URLSearchParams();_0x55df4c[_0x52a9d5(-0x113,-0xb3)]('page_size','100');if(_0x525de5)_0x55df4c['set'](_0x52a9d5(-0xf4,-0xc1)+'th',_0x525de5);const _0x309f09='/api/v1/pr'+'oficiency?'+_0x55df4c['toString']();function _0x51519e(_0x1dbff9,_0x5bcbb0){return _0x528cb8(_0x5bcbb0,_0x1dbff9-0x2eb);}const _0x2bb041=await this[_0x51519e(0x360,0x35b)](_0x52a9d5(-0x95,-0xec),_0x309f09);return _0x2bb041[_0x52a9d5(-0x14e,-0x124)]??[];}async[_0x566b1b(0x4ab,0x4d3)+_0x566b1b(0x4b2,0x4c5)](_0x3ac94e){function _0x48f581(_0x264b35,_0x568b4b){return _0x528cb8(_0x568b4b,_0x264b35- -0x235);}function _0x2cd7b2(_0xf4767f,_0x435e32){return _0x528cb8(_0xf4767f,_0x435e32- -0x208);}return this['request']('POST',_0x2cd7b2(-0x1e6,-0x1a1)+_0x48f581(-0x144,-0x105)+_0x2cd7b2(-0x141,-0x153)+_0x2cd7b2(-0x174,-0x144),{'message':_0x3ac94e[_0x2cd7b2(-0x14b,-0x19d)](0x0,0x1f4)});}async[_0x566b1b(0x4c1,0x474)+'iciencies'](_0x310632,_0x276aef){function _0x1724ce(_0x23ec84,_0x5a3e0c){return _0x566b1b(_0x23ec84- -0xd1,_0x5a3e0c);}function _0x1d3dc8(_0x45c192,_0x291128){return _0x566b1b(_0x45c192- -0x57f,_0x291128);}const _0x643d68=await this[_0x1724ce(0x361,0x39e)]('POST',_0x1724ce(0x38c,0x36f)+_0x1724ce(0x3ba,0x38b)+_0x1724ce(0x3c8,0x392),{'source_provider':_0x310632,'skill_ids':_0x276aef??null});return _0x643d68;}async[_0x566b1b(0x45b,0x46b)+_0x528cb8(0xd6,0x11c)](_0x60113e,_0x5883f4){const _0x778226=await this[_0x3e36be(-0x215,-0x1e9)](_0x3e36be(-0x191,-0x1dc),_0x4e804f(0x188,0x1db)+_0x4e804f(0x262,0x246)+_0x4e804f(0x1fa,0x217),{'package':_0x60113e,'target_provider':_0x5883f4});function _0x3e36be(_0x3d5252,_0x201b89){return _0x566b1b(_0x201b89- -0x61b,_0x3d5252);}function _0x4e804f(_0x203e0f,_0x20e259){return _0x566b1b(_0x20e259- -0x282,_0x203e0f);}return _0x778226;}async[_0x528cb8(0x21,0x5c)+'bilityMatr'+'ix'](){function _0x3896ac(_0x8652f3,_0x5493af){return _0x566b1b(_0x8652f3- -0x1ff,_0x5493af);}function _0xecef0d(_0xc63513,_0x54c4f4){return _0x566b1b(_0x54c4f4- -0xa8,_0xc63513);}const _0x134ebd=await this['request'](_0x3896ac(0x269,0x239),_0x3896ac(0x25e,0x281)+_0x3896ac(0x2c8,0x2de)+_0xecef0d(0x37f,0x37d));return _0x134ebd['matrix']??[];}async[_0x528cb8(0xc1,0xe7)+_0x566b1b(0x4cd,0x4a4)](_0x37770b=0x1){const _0x4cdeb1=new URLSearchParams();function _0x56dd53(_0x391873,_0x548e8a){return _0x566b1b(_0x391873- -0x17,_0x548e8a);}_0x4cdeb1[_0x401d96(0x200,0x1dd)]('page',_0x37770b[_0x56dd53(0x403,0x403)]());function _0x401d96(_0x504ac0,_0x2a2780){return _0x566b1b(_0x504ac0- -0x2a1,_0x2a2780);}const _0x2a5055=_0x401d96(0x1bc,0x15d)+_0x401d96(0x212,0x279)+'tory?'+_0x4cdeb1['toString'](),_0x4fd1a2=await this['request'](_0x56dd53(0x451,0x472),_0x2a5055);return _0x4fd1a2;}async['uploadFile'](_0x1936a1,_0x41684c){const {readFileSync:_0x1cd90a}=await import('node:fs'),{basename:_0xa313d6}=await import(_0xa94eb1(0x1e0,0x21f)),_0x25bb50=_0x1cd90a(_0x1936a1);function _0x3a8a81(_0x3a8cf7,_0x8cbc92){return _0x528cb8(_0x3a8cf7,_0x8cbc92- -0x13f);}const _0x16fa96=_0xa313d6(_0x1936a1),_0x2d0213=new FormData();_0x2d0213[_0xa94eb1(0x1c5,0x218)](_0x3a8a81(-0xbf,-0xc4),new Blob([_0x25bb50]),_0x16fa96);_0x41684c[_0x3a8a81(-0xbe,-0x8e)]&&_0x2d0213['append'](_0x3a8a81(-0xf7,-0x8e),_0x41684c['category']);_0x41684c[_0x3a8a81(-0xf0,-0xb1)]&&_0x41684c['tags'][_0x3a8a81(-0xd5,-0xd2)]>0x0&&_0x2d0213[_0x3a8a81(-0x10,-0x27)](_0xa94eb1(0x1e8,0x18e),_0x41684c[_0xa94eb1(0x1a8,0x18e)][_0x3a8a81(-0x41,-0x80)](','));const _0x5a22b9=await this['requestMul'+'tipart'](_0x3a8a81(-0x8e,-0xbd),'/api/v1/fi'+_0xa94eb1(0x17f,0x1c1),_0x2d0213);function _0xa94eb1(_0x3ad001,_0x3900f8){return _0x528cb8(_0x3ad001,_0x3900f8-0x100);}const _0x9f54a8=_0x5a22b9;return{'id':_0x9f54a8[_0xa94eb1(0x18b,0x171)],'filename':_0x9f54a8['filename']};}async[_0x528cb8(0x9a,0xaa)+_0x528cb8(0x4f,0x60)](_0xad1803){const _0x86c065=await this[_0x123902(0x157,0x127)]('POST',_0x4ca1e2(0x1b4,0x189)+_0x4ca1e2(0xc6,0x126)+'duplicate',{'content_hash':_0xad1803});function _0x4ca1e2(_0x31c4f0,_0x511a31){return _0x566b1b(_0x511a31- -0x35c,_0x31c4f0);}function _0x123902(_0x51c926,_0x275e37){return _0x566b1b(_0x275e37- -0x30b,_0x51c926);}const _0x57616f=_0x86c065;return{'exists':_0x57616f[_0x123902(0x194,0x19f)+'te'],'file_id':_0x57616f[_0x4ca1e2(0xfe,0x129)+_0x4ca1e2(0x17e,0x11d)]?.['id']};}async[_0x566b1b(0x49d,0x4f9)+'ryFileLink'](_0x52edf5,_0x5cd4e5,_0x56dd9e){function _0xc40608(_0x1037fa,_0x8e75f3){return _0x566b1b(_0x1037fa- -0x2ab,_0x8e75f3);}function _0x504efb(_0x5d42dc,_0x57935f){return _0x566b1b(_0x57935f- -0x208,_0x5d42dc);}const _0x16cf3a=await this['request'](_0xc40608(0x194,0x136),_0x504efb(0x281,0x254)+_0xc40608(0x1de,0x23a),{'memory_id':_0x52edf5,'file_id':_0x5cd4e5,'reference_type':_0x56dd9e['reference_'+'type'],'reference_path':_0x56dd9e[_0xc40608(0x232,0x1d8)+_0x504efb(0x254,0x282)]});return _0x16cf3a;}async['createCont'+_0x566b1b(0x4e9,0x480)](_0x28569f){function _0x2b1dee(_0x581ad9,_0x190d97){return _0x528cb8(_0x581ad9,_0x190d97-0x2c1);}function _0x296be1(_0x3cb281,_0x4a9699){return _0x528cb8(_0x3cb281,_0x4a9699-0x1fb);}return this[_0x296be1(0x2b6,0x270)](_0x2b1dee(0x37a,0x343),_0x2b1dee(0x3c2,0x38c)+_0x296be1(0x25f,0x264),_0x28569f);}async['addContext'+_0x566b1b(0x4b1,0x473)](_0xb71d85,_0x15057c){function _0xd9be1d(_0x262f87,_0x1f8321){return _0x528cb8(_0x262f87,_0x1f8321-0x3df);}function _0x350143(_0x22fdac,_0x47a748){return _0x528cb8(_0x47a748,_0x22fdac- -0x1a6);}return this[_0x350143(-0x131,-0xcd)]('POST',_0x350143(-0xdb,-0xa1)+_0xd9be1d(0x3df,0x448)+'/'+_0xb71d85+_0xd9be1d(0x48b,0x4ee),_0x15057c);}async[_0x528cb8(0x50,0xa1)+_0x528cb8(0x156,0xf5)](_0x2e743f){function _0x6155b6(_0x2d0f27,_0x80eb4){return _0x566b1b(_0x80eb4- -0x41c,_0x2d0f27);}function _0x33fd7f(_0x30a02e,_0x7a3380){return _0x566b1b(_0x7a3380- -0x219,_0x30a02e);}return this[_0x33fd7f(0x281,0x219)](_0x6155b6(0x3b,0x23),_0x6155b6(0xa0,0x6c)+_0x33fd7f(0x271,0x2a6)+'s',_0x2e743f);}async[_0x528cb8(0xa9,0x7d)+_0x528cb8(0x14f,0x100)](_0xe7f0b2){function _0x2796f4(_0x147f75,_0x5283e9){return _0x566b1b(_0x5283e9- -0x640,_0x147f75);}function _0x5db7cc(_0x5784ac,_0x174300){return _0x566b1b(_0x5784ac- -0x2a9,_0x174300);}try{const _0x55e8bd=await this['request'](_0x2796f4(-0x1de,-0x201),_0x5db7cc(0x1a8,0x16b)+_0x2796f4(-0x1a4,-0x1f0)+_0x2796f4(-0x1df,-0x20f),{'content':_0xe7f0b2['content'][_0x5db7cc(0x17f,0x152)](0x0,0x7d0),'tags':_0xe7f0b2[_0x2796f4(-0x238,-0x1f5)]??[],'category':_0xe7f0b2['category']}),_0x5a9433=_0x55e8bd;if(_0x5a9433[_0x2796f4(-0x12c,-0x161)]&&_0x5a9433[_0x5db7cc(0x1a6,0x202)])return _0x5a9433[_0x5db7cc(0x1a6,0x1a6)];return null;}catch{return _0x2796f4(-0x1b9,-0x20b)===_0x2796f4(-0x1f0,-0x20b)?null:this['request'](_0x5db7cc(0x196,0x18d),_0x5db7cc(0x1df,0x1a6)+_0x5db7cc(0x17d,0x18d),_0x15dcfa);}}static [_0x528cb8(0x70,0xb9)+'STATUS']=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x566b1b(0x4e2,0x4c7)+'S']=0x3;static ['BASE_DELAY'+_0x566b1b(0x492,0x48a)]=0x3e8;async[_0x566b1b(0x432,0x447)](_0x3808e0,_0x500136,_0x4d1c41){let _0x2c2fbd;function _0x59210d(_0x29a263,_0x1e0b9f){return _0x566b1b(_0x1e0b9f- -0x39d,_0x29a263);}for(let _0x438c75=0x0;_0x438c75<A2AClient[_0x545460(0x1d3,0x1d9)+'S'];_0x438c75++){if('RZbro'!==_0x59210d(0xd2,0xbc)){const _0x229953=''+this[_0x545460(0x164,0x1cb)][_0x59210d(0xc1,0x11f)]+_0x500136,_0x322464=new AbortController(),_0x40f1bc=setTimeout(()=>_0x322464[_0x545460(0x18b,0x19b)](),this[_0x59210d(0x134,0x139)]);try{const _0x2c5e9d=await fetch(_0x229953,{'method':_0x3808e0,'headers':{'Content-Type':_0x59210d(0x11a,0xff)+'n/json','x-api-key':this[_0x545460(0x164,0x185)][_0x59210d(0x127,0x11d)],'X-Plugin-Version':_pluginVersion,...this[_0x59210d(0x31,0x85)+_0x59210d(0xf6,0x105)]['length']>0x0&&{'X-Plugin-Features':this[_0x59210d(0x71,0x85)+_0x59210d(0xa8,0x105)][_0x545460(0x16d,0x123)](',')}},'body':_0x4d1c41?JSON['stringify'](_0x4d1c41):undefined,'signal':_0x322464[_0x545460(0x13e,0xe3)]});clearTimeout(_0x40f1bc);if(A2AClient[_0x545460(0x167,0x1b2)+'STATUS']['has'](_0x2c5e9d[_0x545460(0x149,0x16d)])&&_0x438c75<A2AClient['MAX_RETRIE'+'S']-0x1){const _0x718034=A2AClient[_0x545460(0x147,0x179)+_0x59210d(0x90,0xf5)]*Math[_0x59210d(0xf7,0xfa)](0x2,_0x438c75);await new Promise(_0x32630f=>setTimeout(_0x32630f,_0x718034));continue;}!_0x2c5e9d['ok']&&await this[_0x59210d(0x10e,0x11b)+_0x59210d(0x14b,0x12d)](_0x2c5e9d);if(_0x3808e0===_0x545460(0x16e,0x1a6)&&_0x2c5e9d[_0x59210d(0xbf,0xbb)]===0xcc)return;return await _0x2c5e9d[_0x545460(0x194,0x1b9)]();}catch(_0x289c6f){clearTimeout(_0x40f1bc);if(_0x289c6f instanceof Error){if(getErrorStatus(_0x289c6f)!==undefined)throw _0x289c6f;if(_0x289c6f[_0x59210d(0x94,0xfb)][_0x545460(0x11a,0xf2)]('인증\x20실패')||_0x289c6f[_0x545460(0x189,0x1c6)][_0x59210d(0xd0,0x8c)]('HTTP\x20403')||_0x289c6f[_0x545460(0x189,0x14c)]['startsWith'](_0x545460(0x111,0x173))||_0x289c6f['message'][_0x545460(0x11a,0x131)](_0x545460(0x155,0x10c)))throw _0x289c6f;if(_0x438c75<A2AClient[_0x59210d(0xde,0x145)+'S']-0x1){_0x2c2fbd=_0x289c6f;const _0xf37247=A2AClient[_0x545460(0x147,0x14f)+_0x59210d(0x144,0xf5)]*Math['pow'](0x2,_0x438c75);await new Promise(_0x5489ca=>setTimeout(_0x5489ca,_0xf37247));continue;}if(_0x289c6f[_0x59210d(0x87,0xd0)]===_0x545460(0x1ba,0x15b)){if(_0x545460(0x135,0x13b)!=='CfKlf')_0x5b24ab[_0x59210d(0x107,0xf2)]=_0x104896(_0x5a141d,this['encryption'+_0x545460(0x145,0x19d)]);else throw new Error(_0x545460(0x154,0xf6)+this[_0x59210d(0x112,0x139)]+_0x545460(0x127,0x163));}throw new Error(_0x545460(0x17e,0x133)+_0x289c6f[_0x545460(0x189,0x1cf)]);}throw _0x289c6f;}}else throw _0x12e0ec;}function _0x545460(_0x22ebda,_0x3c19c9){return _0x566b1b(_0x22ebda- -0x30f,_0x3c19c9);}throw _0x2c2fbd??new Error('요청\x20실패:\x20'+A2AClient[_0x545460(0x1d3,0x1cb)+'S']+_0x545460(0x137,0x163));}async[_0x566b1b(0x43c,0x498)+_0x528cb8(0x93,0xa2)](_0x5649d2,_0x3092d8,_0xbf585){const _0xff96fa=''+this[_0x193420(0x3c3,0x39b)][_0x5ddb70(-0x94,-0xea)]+_0x3092d8;function _0x193420(_0x2dea50,_0x340b91){return _0x528cb8(_0x340b91,_0x2dea50-0x30d);}const _0x41016b=new AbortController(),_0x1c0bb7=setTimeout(()=>_0x41016b['abort'](),this[_0x5ddb70(-0xbe,-0xd0)]);function _0x5ddb70(_0x134f55,_0xdc162){return _0x528cb8(_0x134f55,_0xdc162- -0x1e9);}try{const _0x554890=await fetch(_0xff96fa,{'method':_0x5649d2,'headers':{'x-api-key':this[_0x5ddb70(-0x130,-0x133)]['apiKey'],'X-Plugin-Version':_pluginVersion},'body':_0xbf585,'signal':_0x41016b[_0x5ddb70(-0x11d,-0x159)]});return clearTimeout(_0x1c0bb7),!_0x554890['ok']&&await this['handleErro'+'rResponse'](_0x554890),await _0x554890['json']();}catch(_0x4d060b){clearTimeout(_0x1c0bb7);if(_0x4d060b instanceof Error&&_0x4d060b[_0x5ddb70(-0x165,-0x139)]===_0x193420(0x419,0x47f))throw new Error(_0x193420(0x3b3,0x40e)+this['timeout']+_0x193420(0x386,0x345));throw _0x4d060b;}}async[_0x528cb8(0xfc,0xfb)+'rResponse'](_0x21a632){const _0x404366=_0x21a632['status'];if(_0x404366===0x191){if(_0x58221c(0x227,0x1e6)===_0x368c26(0x14d,0x124))throw withStatus(new Error(_0x58221c(0x2c2,0x27c)+'\x20Key를\x20확인하세'+'요'),0x191);else _0x1cbbfc[_0x368c26(0x15a,0x1ab)](_0x58221c(0x209,0x247)+_0x368c26(0xfb,0x10a)+_0x58221c(0x231,0x24a)+_0x368c26(0x179,0x135)+'\x20'+_0x388f13+':',_0x1dbf97 instanceof _0x965650?_0x503c85[_0x58221c(0x276,0x2b0)]:_0x20100f(_0x21aa48));}function _0x368c26(_0x562433,_0x430a00){return _0x528cb8(_0x562433,_0x430a00-0x98);}if(_0x404366===0x1ad)throw withStatus(new Error('요청\x20제한:\x20잠시\x20'+_0x58221c(0x230,0x1cf)),0x1ad);let _0xf539a4='HTTP\x20'+_0x404366;function _0x58221c(_0x551b25,_0x13794b){return _0x528cb8(_0x13794b,_0x551b25-0x19b);}try{const _0x4b0828=await _0x21a632[_0x58221c(0x281,0x234)]();if(Array[_0x368c26(0x1db,0x17b)](_0x4b0828['detail'])){if('wBoCZ'===_0x58221c(0x20a,0x1fd))_0x1e41ce[_0x368c26(0x1a7,0x1b0)](_0x58221c(0x229,0x1c4),_0x661f87[_0x368c26(0x111,0x126)][_0x368c26(0x1a7,0x157)](','));else{const _0x4d3409=_0x4b0828[_0x58221c(0x23f,0x22d)][_0x58221c(0x2a3,0x279)](_0x1f84e6=>{function _0x29692b(_0x53f64c,_0x526448){return _0x58221c(_0x53f64c- -0x3d4,_0x526448);}function _0x16f81c(_0x781e07,_0x25b8be){return _0x58221c(_0x781e07-0x302,_0x25b8be);}const _0x2d90bb=Array[_0x16f81c(0x580,0x559)](_0x1f84e6[_0x29692b(-0x18c,-0x14b)])?_0x1f84e6[_0x29692b(-0x18c,-0x191)][_0x29692b(-0x17a,-0x1c5)]('.'):'',_0x290c48=_0x1f84e6[_0x16f81c(0x54f,0x53a)]??JSON['stringify'](_0x1f84e6);return _0x2d90bb?_0x2d90bb+':\x20'+_0x290c48:_0x290c48;})[_0x368c26(0x14a,0x157)](_0x58221c(0x2c5,0x260));_0xf539a4+=':\x20'+_0x4d3409;}}else{if(_0x4b0828[_0x368c26(0x178,0x13c)])_0xf539a4+=':\x20'+_0x4b0828['detail'];else _0x4b0828[_0x58221c(0x276,0x22b)]&&(_0xf539a4+=':\x20'+_0x4b0828[_0x368c26(0x159,0x173)]);}}catch{}throw withStatus(new Error(_0xf539a4),_0x404366);}}
@@ -1 +1 @@
1
- (function(_0x2494a4,_0x5452b5){const _0x26757d=_0x2494a4();function _0x19f887(_0x41040b,_0x5d0d6a){return _0x4b79(_0x41040b-0x11f,_0x5d0d6a);}function _0x469aa2(_0x19fa01,_0x54c1dd){return _0x4b79(_0x54c1dd-0x26d,_0x19fa01);}while(!![]){try{const _0xbd45b8=parseInt(_0x469aa2(0x427,0x417))/0x1*(parseInt(_0x469aa2(0x436,0x438))/0x2)+parseInt(_0x469aa2(0x434,0x435))/0x3*(-parseInt(_0x19f887(0x2c5,0x2ca))/0x4)+-parseInt(_0x19f887(0x2e2,0x2d2))/0x5+-parseInt(_0x19f887(0x2ca,0x2db))/0x6*(parseInt(_0x469aa2(0x3fd,0x40f))/0x7)+-parseInt(_0x469aa2(0x42c,0x416))/0x8*(-parseInt(_0x19f887(0x2e8,0x2e5))/0x9)+parseInt(_0x19f887(0x2c6,0x2bf))/0xa+parseInt(_0x19f887(0x2d9,0x2d3))/0xb;if(_0xbd45b8===_0x5452b5)break;else _0x26757d['push'](_0x26757d['shift']());}catch(_0x5e6376){_0x26757d['push'](_0x26757d['shift']());}}}(_0x34d4,0x93d1b));function _0x2561d1(_0x1872a7,_0x1746e7){return _0x4b79(_0x1746e7- -0xca,_0x1872a7);}function _0x4b79(_0x1da759,_0x1c2ecb){_0x1da759=_0x1da759-0x1a1;const _0x34d43d=_0x34d4();let _0x4b7992=_0x34d43d[_0x1da759];if(_0x4b79['cweDuR']===undefined){var _0x16711d=function(_0xfaaeee){const _0x20479b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc5f721='',_0xbfb626='';for(let _0x218ccf=0x0,_0x369fdb,_0x3af028,_0x27abe7=0x0;_0x3af028=_0xfaaeee['charAt'](_0x27abe7++);~_0x3af028&&(_0x369fdb=_0x218ccf%0x4?_0x369fdb*0x40+_0x3af028:_0x3af028,_0x218ccf++%0x4)?_0xc5f721+=String['fromCharCode'](0xff&_0x369fdb>>(-0x2*_0x218ccf&0x6)):0x0){_0x3af028=_0x20479b['indexOf'](_0x3af028);}for(let _0x2b5892=0x0,_0x3082a4=_0xc5f721['length'];_0x2b5892<_0x3082a4;_0x2b5892++){_0xbfb626+='%'+('00'+_0xc5f721['charCodeAt'](_0x2b5892)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xbfb626);};_0x4b79['ndeWLz']=_0x16711d,_0x4b79['TuuVdK']={},_0x4b79['cweDuR']=!![];}const _0x364d8d=_0x34d43d[0x0],_0x3d80c1=_0x1da759+_0x364d8d,_0xe822a8=_0x4b79['TuuVdK'][_0x3d80c1];return!_0xe822a8?(_0x4b7992=_0x4b79['ndeWLz'](_0x4b7992),_0x4b79['TuuVdK'][_0x3d80c1]=_0x4b7992):_0x4b7992=_0xe822a8,_0x4b7992;}import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM=_0x1d3656(-0x1f,-0x18)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST=_0x1d3656(-0x32,-0x30);export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x4b5c35,_0x5d89f8){const _0x2c9a3a=_0x5d89f8??randomBytes(SALT_LENGTH),_0x2815c3=pbkdf2Sync(_0x4b5c35,_0x2c9a3a,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x2815c3,'salt':_0x2c9a3a};}export function encryptContent(_0x46f189,_0x37a7af){if(_0x37a7af[_0x11674b(0x3ad,0x39c)]!==KEY_LENGTH){if(_0x2d0bff(0x16,0x8)==='HBIBX')throw new Error(_0x11674b(0x37e,0x377)+KEY_LENGTH+(_0x11674b(0x380,0x38b)+'니다\x20(현재:\x20')+_0x37a7af['length']+')');else throw new _0x4a033d('암호화\x20키는\x20'+_0x28da47+(_0x2d0bff(0xb,0x7)+_0x2d0bff(0xf,0x18))+_0x3febad[_0x2d0bff(0x1c,0x2a)]+')');}function _0x2d0bff(_0x206e7e,_0x1f45fd){return _0x1d3656(_0x1f45fd,_0x206e7e-0x3a);}const _0xd9dc9a=randomBytes(IV_LENGTH),_0x2cb9f2=createCipheriv(ALGORITHM,_0x37a7af,_0xd9dc9a),_0x204bb1=Buffer[_0x2d0bff(0x1,-0x13)](_0x46f189,_0x11674b(0x38e,0x382)),_0x1b2de7=Buffer[_0x11674b(0x3af,0x39e)]([_0x2cb9f2[_0x11674b(0x399,0x386)](_0x204bb1),_0x2cb9f2[_0x2d0bff(0x1f,0x24)]()]);function _0x11674b(_0x22077a,_0x2cb859){return _0x1d3656(_0x22077a,_0x2cb859-0x3ba);}const _0x43b056=_0x2cb9f2[_0x11674b(0x381,0x391)]();return{'ciphertext':_0x1b2de7[_0x11674b(0x3a1,0x398)](_0x2d0bff(-0xa,0x6)),'iv':_0xd9dc9a[_0x2d0bff(0x18,0x6)](_0x2d0bff(-0xa,0xe)),'tag':_0x43b056['toString'](_0x2d0bff(-0xa,0xc))};}function _0x34d4(){const _0x1de557=['ywvZlti1nI1NyW','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','mtu4mK1ewNzyBG','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','yMfZzty0','7jwu7zI47zMuio2cPoUkLca','nJHAEwvnufG','mte5ntGXmJbksxjbswK','BwvZC2fNzq','ndaYmdHRD2nPvKe','nZHZsNrKvhq','mJm0mZbKquLbvNa','icJSNPJRQRVRKjWG7ykKioUyKoUkLa','ruXftuvova','67o17zI47zMuioYlPo2mQdOG','zNjVBq','DxrMltG','zgf0yq','y2LWAgvYDgv4Da','C3rYAw5NAwz5','DxbKyxrL','C2v0qxv0AfrHzW','DgfN','yNL0zuXLBMD0Aa','C2HHnteY','igj5DgvZ7jES7jw8io2vQq','ntGXnta1mxboBhbptW','yNL0zu9MzNnLDa','7jwu7zI47zMu65cCioYEHoUYOoUuQsdRJBa','64Ui64UKicJTMitSNQW6ia','yNvMzMvY','z2v0qxv0AfrHzW','vMHTwKC','C3rYAw5N','ioUnSoYDTo2eScdRS4dSOBaP','nJeYotC1C2r0yurU','sejjqLG','CgfYC2u','Dg9tDhjPBMC','zw5JCNLWDgvK','mJa0ntqZuLv4Auno','mtmWnuHkvKLOAW','BgvUz3rO','odeXnfHZD2DWAq','y29Uy2f0','zMLUywW','C3vIyxjYyxK','B2jQzwn0'];_0x34d4=function(){return _0x1de557;};return _0x34d4();}function _0x1d3656(_0x58b99e,_0x16ed79){return _0x4b79(_0x16ed79- -0x1e8,_0x58b99e);}export function decryptContent(_0x4d0a5d,_0x428ec8){if(_0x428ec8[_0x3e907d(0x596,0x57f)]!==KEY_LENGTH)throw new Error(_0x3e907d(0x549,0x55a)+KEY_LENGTH+(_0x3e907d(0x570,0x56e)+_0x3e907d(0x57d,0x572))+_0x428ec8[_0x3e907d(0x574,0x57f)]+')');const _0x2d1597=Buffer[_0x3e907d(0x57a,0x564)](_0x4d0a5d['iv'],_0x45b4a9(0x1ab,0x1bb)),_0x2fb19a=Buffer[_0x45b4a9(0x1bd,0x1c6)](_0x4d0a5d[_0x3e907d(0x57b,0x567)],'base64'),_0x452cf6=Buffer[_0x45b4a9(0x1b3,0x1c6)](_0x4d0a5d[_0x3e907d(0x567,0x56b)],_0x45b4a9(0x1ca,0x1bb)),_0x85c792=createDecipheriv(ALGORITHM,_0x428ec8,_0x2d1597);_0x85c792[_0x45b4a9(0x1bd,0x1cc)](_0x452cf6);function _0x45b4a9(_0x3f7bd2,_0x2c59aa){return _0x2561d1(_0x3f7bd2,_0x2c59aa-0xe1);}function _0x3e907d(_0x4ba9b8,_0x50941b){return _0x2561d1(_0x4ba9b8,_0x50941b-0x47f);}try{const _0x4d84b9=Buffer['concat']([_0x85c792[_0x45b4a9(0x1d6,0x1cb)](_0x2fb19a),_0x85c792[_0x45b4a9(0x1db,0x1e4)]()]);return _0x4d84b9[_0x45b4a9(0x1f4,0x1dd)](_0x45b4a9(0x1d1,0x1c7));}catch(_0xecb3d7){if(_0xecb3d7 instanceof Error)throw new Error(_0x3e907d(0x553,0x563)+_0xecb3d7[_0x45b4a9(0x1a9,0x1bf)]+(_0x45b4a9(0x1b2,0x1c3)+_0x3e907d(0x56f,0x577)));throw _0xecb3d7;}}export function encryptEmbedding(_0x38df18,_0x18b509){const _0x4a838a=new Float64Array(_0x38df18);function _0x3627e9(_0x14cfba,_0x3e6507){return _0x2561d1(_0x3e6507,_0x14cfba- -0x2a3);}const _0x4426a5=Buffer['from'](_0x4a838a[_0x35c1b2(0x540,0x52b)]),_0x5e26d1=randomBytes(IV_LENGTH),_0x1ff284=createCipheriv(ALGORITHM,_0x18b509,_0x5e26d1),_0x2dadeb=Buffer['concat']([_0x1ff284[_0x3627e9(-0x1b9,-0x1a3)](_0x4426a5),_0x1ff284[_0x35c1b2(0x54e,0x53a)]()]),_0x425deb=_0x1ff284[_0x35c1b2(0x525,0x52c)]();function _0x35c1b2(_0x1ab4bb,_0x477039){return _0x2561d1(_0x1ab4bb,_0x477039-0x437);}const _0x380367=Buffer[_0x35c1b2(0x52d,0x539)]([_0x5e26d1,_0x425deb,_0x2dadeb]);return _0x380367['toString'](_0x35c1b2(0x528,0x511));}export function decryptEmbedding(_0x310107,_0x4a04bb){function _0x3b19a1(_0x1ceda2,_0x412604){return _0x1d3656(_0x1ceda2,_0x412604-0x373);}const _0x590289=Buffer[_0x367971(-0x17c,-0x165)](_0x310107,_0x3b19a1(0x331,0x32f));if(_0x590289[_0x3b19a1(0x347,0x355)]<IV_LENGTH+TAG_LENGTH)throw new Error(_0x367971(-0x14a,-0x158)+_0x3b19a1(0x32d,0x32c)+'다');const _0x4f7ee4=_0x590289[_0x3b19a1(0x36d,0x359)](0x0,IV_LENGTH),_0x3ff853=_0x590289[_0x367971(-0x152,-0x146)](IV_LENGTH,IV_LENGTH+TAG_LENGTH);function _0x367971(_0x15acc8,_0x262fec){return _0x1d3656(_0x15acc8,_0x262fec- -0x12c);}const _0x4891a0=_0x590289[_0x3b19a1(0x345,0x359)](IV_LENGTH+TAG_LENGTH),_0x5b692c=createDecipheriv(ALGORITHM,_0x4a04bb,_0x4f7ee4);_0x5b692c[_0x3b19a1(0x357,0x340)](_0x3ff853);try{const _0x3efeba=Buffer[_0x3b19a1(0x343,0x357)]([_0x5b692c[_0x367971(-0x150,-0x160)](_0x4891a0),_0x5b692c[_0x367971(-0x148,-0x147)]()]),_0x54cd26=new Float64Array(_0x3efeba[_0x367971(-0x14e,-0x156)],_0x3efeba[_0x3b19a1(0x353,0x346)],_0x3efeba[_0x367971(-0x146,-0x15d)]/Float64Array['BYTES_PER_'+_0x3b19a1(0x338,0x338)]);return Array[_0x3b19a1(0x335,0x33a)](_0x54cd26);}catch(_0x5c8a97){if(_0x5c8a97 instanceof Error)throw new Error(_0x3b19a1(0x328,0x32e)+':\x20'+_0x5c8a97['message']);throw _0x5c8a97;}}export function isValidEncryptedPayload(_0x2e4708){if(typeof _0x2e4708!==_0x15b576(0x1ae,0x1ae)||_0x2e4708===null)return![];function _0x3fc5ae(_0x187bdc,_0x21c1b6){return _0x2561d1(_0x21c1b6,_0x187bdc-0x73);}const _0x2deeba=_0x2e4708;function _0x15b576(_0xb4877b,_0x3e641d){return _0x2561d1(_0xb4877b,_0x3e641d-0xa9);}return typeof _0x2deeba[_0x15b576(0x18a,0x191)]===_0x15b576(0x1b7,0x1a0)&&typeof _0x2deeba['iv']==='string'&&typeof _0x2deeba[_0x15b576(0x185,0x195)]===_0x3fc5ae(0x16a,0x179);}export function wrapEncryptedContent(_0xa5b823){function _0x413008(_0x16030c,_0x4d8f1f){return _0x1d3656(_0x16030c,_0x4d8f1f-0x55b);}function _0x2a3357(_0xe2a2f1,_0x45e68d){return _0x1d3656(_0x45e68d,_0xe2a2f1- -0xc9);}return JSON[_0x413008(0x538,0x526)]({'encrypted':!![],'data':_0xa5b823[_0x413008(0x536,0x525)],'iv':_0xa5b823['iv'],'tag':_0xa5b823[_0x413008(0x51d,0x529)]});}export function unwrapEncryptedContent(_0x1a9a1c){function _0x4c274e(_0x331e04,_0x174ac3){return _0x2561d1(_0x174ac3,_0x331e04- -0x2da);}function _0x9f08cc(_0x5bdb15,_0x105a14){return _0x2561d1(_0x5bdb15,_0x105a14- -0x2e1);}try{const _0x406267=JSON[_0x9f08cc(-0x1f9,-0x1e6)](_0x1a9a1c);if(_0x406267[_0x4c274e(-0x1dd,-0x1ec)]!==!![])return null;if(typeof _0x406267[_0x4c274e(-0x1f3,-0x1e1)]!==_0x9f08cc(-0x1ea,-0x1ea)||typeof _0x406267['iv']!==_0x9f08cc(-0x1d3,-0x1ea)||typeof _0x406267[_0x9f08cc(-0x1f3,-0x1f5)]!=='string'){if(_0x9f08cc(-0x1d3,-0x1eb)==='VhmZG')return null;else throw new _0x1cb917(_0x9f08cc(-0x1fd,-0x206)+_0x3ad73a+(_0x4c274e(-0x1eb,-0x1f4)+_0x9f08cc(-0x203,-0x1ee))+_0x7b074a['length']+')');}return{'ciphertext':_0x406267['data'],'iv':_0x406267['iv'],'tag':_0x406267[_0x9f08cc(-0x208,-0x1f5)]};}catch{return null;}}
1
+ (function(_0x5ee9cb,_0x9405dc){const _0xc41fc0=_0x5ee9cb();function _0x2bd204(_0x5e2f67,_0x3bc540){return _0xceae(_0x3bc540-0x39f,_0x5e2f67);}function _0x5451c6(_0x212f9b,_0x2ad361){return _0xceae(_0x2ad361- -0x222,_0x212f9b);}while(!![]){try{const _0x582824=parseInt(_0x5451c6(-0x54,-0x62))/0x1+parseInt(_0x5451c6(-0x65,-0x50))/0x2*(parseInt(_0x2bd204(0x588,0x574))/0x3)+-parseInt(_0x5451c6(-0x79,-0x64))/0x4+-parseInt(_0x5451c6(-0x5c,-0x49))/0x5*(-parseInt(_0x2bd204(0x580,0x576))/0x6)+-parseInt(_0x5451c6(-0x66,-0x4f))/0x7+parseInt(_0x5451c6(-0x64,-0x67))/0x8+-parseInt(_0x2bd204(0x583,0x56d))/0x9;if(_0x582824===_0x9405dc)break;else _0xc41fc0['push'](_0xc41fc0['shift']());}catch(_0x31a1d1){_0xc41fc0['push'](_0xc41fc0['shift']());}}}(_0x5439,0x70b67));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM=_0xf944c6(0x113,0x107)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST=_0x1ad6a4(0x4c2,0x4c2);export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x263bc8,_0x1d55f2){const _0x97d96b=_0x1d55f2??randomBytes(SALT_LENGTH),_0x577557=pbkdf2Sync(_0x263bc8,_0x97d96b,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x577557,'salt':_0x97d96b};}export function encryptContent(_0x1355ff,_0x3fcc19){if(_0x3fcc19[_0x3855b7(-0x155,-0x140)]!==KEY_LENGTH){if('iMEeg'!==_0x18f456(0x4c,0x58))throw new _0x367250('암호화\x20키는\x20'+_0x504d32+(_0x3855b7(-0x148,-0x13c)+'니다\x20(현재:\x20')+_0x4c6d0f[_0x18f456(0x55,0x53)]+')');else throw new Error('암호화\x20키는\x20'+KEY_LENGTH+(_0x3855b7(-0x13d,-0x13c)+_0x3855b7(-0x145,-0x14e))+_0x3fcc19[_0x3855b7(-0x130,-0x140)]+')');}const _0x4605f3=randomBytes(IV_LENGTH),_0x208b5f=createCipheriv(ALGORITHM,_0x3fcc19,_0x4605f3),_0x2457f2=Buffer[_0x18f456(0x34,0x47)](_0x1355ff,'utf-8');function _0x3855b7(_0x515554,_0x537eb2){return _0x1ad6a4(_0x537eb2- -0x601,_0x515554);}const _0x4e4502=Buffer[_0x3855b7(-0x13e,-0x137)]([_0x208b5f[_0x18f456(0x45,0x55)](_0x2457f2),_0x208b5f[_0x3855b7(-0x13a,-0x139)]()]),_0x2b2d81=_0x208b5f[_0x3855b7(-0x112,-0x129)]();function _0x18f456(_0x348178,_0x107a53){return _0x1ad6a4(_0x107a53- -0x46e,_0x348178);}return{'ciphertext':_0x4e4502[_0x18f456(0x50,0x52)]('base64'),'iv':_0x4605f3[_0x18f456(0x45,0x52)](_0x18f456(0x7b,0x6d)),'tag':_0x2b2d81[_0x18f456(0x52,0x52)](_0x18f456(0x7e,0x6d))};}export function decryptContent(_0x3d72ed,_0x316f51){if(_0x316f51['length']!==KEY_LENGTH)throw new Error(_0x5bc65f(0x460,0x466)+KEY_LENGTH+('\x20bytes여야\x20합'+_0x5bc65f(0x478,0x463))+_0x316f51[_0x3ce124(0x365,0x352)]+')');function _0x5bc65f(_0x2f4392,_0x36703d){return _0x1ad6a4(_0x36703d- -0x50,_0x2f4392);}const _0x474c40=Buffer[_0x3ce124(0x359,0x34e)](_0x3d72ed['iv'],_0x5bc65f(0x491,0x48b)),_0x962e9f=Buffer[_0x3ce124(0x359,0x368)](_0x3d72ed[_0x3ce124(0x363,0x376)],_0x3ce124(0x37f,0x389)),_0x34ca07=Buffer['from'](_0x3d72ed[_0x5bc65f(0x48e,0x48c)],_0x3ce124(0x37f,0x372)),_0xa603de=createDecipheriv(ALGORITHM,_0x316f51,_0x474c40);function _0x3ce124(_0x510c2e,_0x9755af){return _0x1ad6a4(_0x510c2e- -0x15c,_0x9755af);}_0xa603de['setAuthTag'](_0x34ca07);try{if(_0x3ce124(0x373,0x35c)!==_0x3ce124(0x375,0x362)){const _0x4598c3=Buffer[_0x3ce124(0x36e,0x36b)]([_0xa603de['update'](_0x962e9f),_0xa603de[_0x5bc65f(0x477,0x478)]()]);return _0x4598c3[_0x3ce124(0x364,0x359)](_0x3ce124(0x377,0x37c));}else throw new _0x550c78(_0x5bc65f(0x451,0x466)+_0x2e67a8+(_0x3ce124(0x369,0x372)+'니다\x20(현재:\x20')+_0x37ed30[_0x3ce124(0x365,0x355)]+')');}catch(_0x2ee367){if(_0x2ee367 instanceof Error)throw new Error(_0x3ce124(0x355,0x352)+_0x2ee367[_0x3ce124(0x361,0x35a)]+(_0x5bc65f(0x46c,0x46b)+_0x5bc65f(0x459,0x46e)));throw _0x2ee367;}}export function encryptEmbedding(_0x4c2dbb,_0x105755){const _0x4440e8=new Float64Array(_0x4c2dbb),_0x326d02=Buffer[_0x42c41a(-0x127,-0x112)](_0x4440e8[_0x56af38(0x593,0x583)]),_0x298d96=randomBytes(IV_LENGTH),_0x2459ab=createCipheriv(ALGORITHM,_0x105755,_0x298d96);function _0x42c41a(_0x12f688,_0x90eb94){return _0xf944c6(_0x12f688- -0x240,_0x90eb94);}const _0x4cdd02=Buffer[_0x42c41a(-0x112,-0x119)]([_0x2459ab[_0x42c41a(-0x119,-0x12c)](_0x326d02),_0x2459ab['final']()]),_0x16b996=_0x2459ab[_0x42c41a(-0x104,-0x10e)]();function _0x56af38(_0x17b1c7,_0x24cf49){return _0xf944c6(_0x17b1c7-0x459,_0x24cf49);}const _0xf9504d=Buffer[_0x42c41a(-0x112,-0x128)]([_0x298d96,_0x16b996,_0x4cdd02]);return _0xf9504d['toString'](_0x42c41a(-0x101,-0xf2));}function _0xf944c6(_0x4e1a94,_0x29dbd8){return _0xceae(_0x4e1a94- -0xa3,_0x29dbd8);}export function decryptEmbedding(_0x465756,_0xa0da47){const _0x4a0681=Buffer[_0x39ed19(0x150,0x13e)](_0x465756,_0x39ed19(0x176,0x164));if(_0x4a0681[_0x39ed19(0x15c,0x169)]<IV_LENGTH+TAG_LENGTH){if(_0x51ce8f(0x4f4,0x4f9)==='NFmte')throw new Error('암호화된\x20임베딩\x20데'+_0x39ed19(0x170,0x159)+'다');else{if(typeof _0xd4c05a!=='object'||_0x3ef62f===null)return![];const _0x271030=_0x3725b7;return typeof _0x271030[_0x39ed19(0x15a,0x14a)]===_0x39ed19(0x14d,0x156)&&typeof _0x271030['iv']==='string'&&typeof _0x271030[_0x39ed19(0x177,0x182)]==='string';}}const _0x2dbf0=_0x4a0681[_0x51ce8f(0x51d,0x50e)](0x0,IV_LENGTH);function _0x39ed19(_0x53e6b1,_0x4254a8){return _0x1ad6a4(_0x53e6b1- -0x365,_0x4254a8);}const _0x4beed6=_0x4a0681['subarray'](IV_LENGTH,IV_LENGTH+TAG_LENGTH);function _0x51ce8f(_0x270832,_0x430932){return _0x1ad6a4(_0x430932-0x35,_0x270832);}const _0xe1f493=_0x4a0681[_0x39ed19(0x174,0x16e)](IV_LENGTH+TAG_LENGTH),_0x4d22c3=createDecipheriv(ALGORITHM,_0xa0da47,_0x2dbf0);_0x4d22c3['setAuthTag'](_0x4beed6);try{const _0x4cd574=Buffer[_0x39ed19(0x165,0x152)]([_0x4d22c3['update'](_0xe1f493),_0x4d22c3[_0x51ce8f(0x4f5,0x4fd)]()]),_0xc1dd45=new Float64Array(_0x4cd574[_0x51ce8f(0x521,0x50b)],_0x4cd574[_0x51ce8f(0x51c,0x50f)],_0x4cd574[_0x51ce8f(0x4e6,0x4f1)]/Float64Array['BYTES_PER_'+_0x51ce8f(0x513,0x502)]);return Array[_0x39ed19(0x150,0x162)](_0xc1dd45);}catch(_0x542fb8){if(_0x542fb8 instanceof Error){if(_0x39ed19(0x164,0x15b)!=='wjbgt')throw new _0xdfb886(_0x51ce8f(0x4f2,0x4e6)+_0xbab976[_0x39ed19(0x158,0x159)]+('\x20(잘못된\x20키\x20또는'+_0x39ed19(0x159,0x148)));else throw new Error(_0x39ed19(0x153,0x163)+':\x20'+_0x542fb8[_0x39ed19(0x158,0x168)]);}throw _0x542fb8;}}function _0x1ad6a4(_0x20d525,_0x5f2725){return _0xceae(_0x20d525-0x2f9,_0x5f2725);}function _0x5439(){const _0x26c907=['C3rYAw5NAwz5','z2v0qxv0AfrHzW','C3vIyxjYyxK','yNL0zu9MzNnLDa','yMfZzty0','DgfN','ywvZlti1nI1NyW','qxPwwwG','67o17zI47zMuioYlPo2mQdOG','C3rYAw5N','64Ui64UKicJTMitSNQW6ia','nJC4nJqZmMvtte1XrW','zNjVBq','7jwu7zI47zMuio2cPoUkLca','otuZotCYA094sgzj','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','nZq0ntq0vwPovu5W','B2jQzwn0','icJSNPJRQRVRKjWG7ykKioUyKoUkLa','yNL0zuXLBMD0Aa','BwvZC2fNzq','ioUnSoYDTo2eScdRS4dSOBaP','y2LWAgvYDgv4Da','Dg9tDhjPBMC','BgvUz3rO','C2HHnteY','DxbKyxrL','tKzTDgu','igj5DgvZ7jES7jw8io2vQq','Au1fzwC','mti0ndaYntL4ANn4qLa','zMLUywW','D2PIz3q','y29Uy2f0','mMvTzgLTqq','ntmYmZC4n01SD1vrAa','ruXftuvova','mJm1ndm5n1vSD2Plsq','u2jRBui','nZH0zhHUuK8','uLDYqNi','mtC4oty1suner1zo','DxrMltG','zw5JCNLWDgvK','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','yNvMzMvY'];_0x5439=function(){return _0x26c907;};return _0x5439();}export function isValidEncryptedPayload(_0x25185c){function _0x45f9eb(_0x3f190f,_0x3d8f33){return _0xf944c6(_0x3f190f-0x38a,_0x3d8f33);}function _0x5acd5a(_0x10e865,_0x5e2db6){return _0xf944c6(_0x10e865-0xe6,_0x5e2db6);}if(typeof _0x25185c!==_0x45f9eb(0x4a8,0x4af)||_0x25185c===null)return![];const _0x47d401=_0x25185c;return typeof _0x47d401[_0x5acd5a(0x209,0x202)]==='string'&&typeof _0x47d401['iv']===_0x45f9eb(0x4a0,0x48b)&&typeof _0x47d401[_0x5acd5a(0x226,0x22a)]==='string';}export function wrapEncryptedContent(_0x347c64){function _0x170049(_0x2dc532,_0x399f22){return _0x1ad6a4(_0x2dc532- -0x3b0,_0x399f22);}function _0x9acae8(_0x529ced,_0x37f0d9){return _0x1ad6a4(_0x529ced- -0x5b,_0x37f0d9);}return JSON[_0x170049(0x127,0x113)]({'encrypted':!![],'data':_0x347c64[_0x170049(0x10f,0x124)],'iv':_0x347c64['iv'],'tag':_0x347c64[_0x9acae8(0x481,0x48e)]});}function _0xceae(_0x30ea8e,_0x24dc35){_0x30ea8e=_0x30ea8e-0x1b6;const _0x5439f5=_0x5439();let _0xceae88=_0x5439f5[_0x30ea8e];if(_0xceae['IPZiUP']===undefined){var _0x477c46=function(_0x33e35e){const _0x4324c7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14307f='',_0x2c7e6f='';for(let _0x2cb1e0=0x0,_0x2e77ae,_0x35fdb4,_0x222a66=0x0;_0x35fdb4=_0x33e35e['charAt'](_0x222a66++);~_0x35fdb4&&(_0x2e77ae=_0x2cb1e0%0x4?_0x2e77ae*0x40+_0x35fdb4:_0x35fdb4,_0x2cb1e0++%0x4)?_0x14307f+=String['fromCharCode'](0xff&_0x2e77ae>>(-0x2*_0x2cb1e0&0x6)):0x0){_0x35fdb4=_0x4324c7['indexOf'](_0x35fdb4);}for(let _0x2caa67=0x0,_0xd8683e=_0x14307f['length'];_0x2caa67<_0xd8683e;_0x2caa67++){_0x2c7e6f+='%'+('00'+_0x14307f['charCodeAt'](_0x2caa67)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c7e6f);};_0xceae['oQXISu']=_0x477c46,_0xceae['HABFTU']={},_0xceae['IPZiUP']=!![];}const _0x3a9995=_0x5439f5[0x0],_0x26ff9e=_0x30ea8e+_0x3a9995,_0x409fb4=_0xceae['HABFTU'][_0x26ff9e];return!_0x409fb4?(_0xceae88=_0xceae['oQXISu'](_0xceae88),_0xceae['HABFTU'][_0x26ff9e]=_0xceae88):_0xceae88=_0x409fb4,_0xceae88;}export function unwrapEncryptedContent(_0x21fcbe){function _0x2fa45d(_0x2e7fba,_0x4216ce){return _0xf944c6(_0x4216ce-0x242,_0x2e7fba);}function _0x278f1c(_0x5a19bb,_0x33f5e6){return _0xf944c6(_0x5a19bb- -0x6,_0x33f5e6);}try{const _0x225c7f=JSON['parse'](_0x21fcbe);if(_0x225c7f[_0x2fa45d(0x376,0x37a)]!==!![])return null;if(typeof _0x225c7f['data']!==_0x2fa45d(0x360,0x358)||typeof _0x225c7f['iv']!==_0x2fa45d(0x36a,0x358)||typeof _0x225c7f['tag']!==_0x278f1c(0x110,0x10a))return _0x2fa45d(0x357,0x356)===_0x278f1c(0x10e,0x10f)?null:null;return{'ciphertext':_0x225c7f['data'],'iv':_0x225c7f['iv'],'tag':_0x225c7f['tag']};}catch{return null;}}
@@ -1 +1 @@
1
- function _0x59ca(){var _0x42e0a6=['mti2m3PZthrMDa','nZbMsxfoy3G','mtG3mtrfCKTqDuu','odC5nJeZDeLTrKvv','mtm1mJa0tu5rDK1f','mZqWsLLQu25o','mtK0odKXAxzwBKzo','oeLSv2jtsa','mtK4mtmYm1DmB0fwEq','mtu4mefVt3PwCq','nte2nZaZvKPMvgTl'];_0x59ca=function(){return _0x42e0a6;};return _0x59ca();}(function(_0x55b814,_0x444d1){function _0x52be57(_0x511bcb,_0x323ce4){return _0x36d1(_0x511bcb-0x174,_0x323ce4);}function _0x5ca315(_0x29fc5d,_0x29403f){return _0x36d1(_0x29fc5d-0x2a3,_0x29403f);}var _0x207a05=_0x55b814();while(!![]){try{var _0x16a496=parseInt(_0x52be57(0x21a,0x216))/0x1+parseInt(_0x5ca315(0x347,0x34b))/0x2+-parseInt(_0x52be57(0x214,0x218))/0x3*(parseInt(_0x52be57(0x21d,0x221))/0x4)+-parseInt(_0x52be57(0x219,0x21e))/0x5*(parseInt(_0x52be57(0x216,0x21b))/0x6)+parseInt(_0x52be57(0x217,0x216))/0x7+-parseInt(_0x52be57(0x21b,0x21b))/0x8*(parseInt(_0x52be57(0x21c,0x221))/0x9)+parseInt(_0x5ca315(0x344,0x33f))/0xa*(parseInt(_0x52be57(0x21e,0x220))/0xb);if(_0x16a496===_0x444d1)break;else _0x207a05['push'](_0x207a05['shift']());}catch(_0xfa1136){_0x207a05['push'](_0x207a05['shift']());}}}(_0x59ca,0x1ce9d));export{A2AClient}from'./client.js';export{MemorySynchronizer}from'./synchronizer.js';export{SyncQueue,mapCategory,mapTier}from'./queue.js';export{LocalVectorClock}from'./vector-clock.js';export{TeamSynchronizer}from'./team-synchronizer.js';function _0x36d1(_0x188625,_0x18531f){_0x188625=_0x188625-0xa0;var _0x59ca77=_0x59ca();var _0x36d15f=_0x59ca77[_0x188625];if(_0x36d1['zmquGJ']===undefined){var _0x13264b=function(_0x1d3097){var _0x4575d6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1f6560='',_0x56eb63='';for(var _0x3d4beb=0x0,_0xe36bd8,_0x4febc0,_0x48fbbd=0x0;_0x4febc0=_0x1d3097['charAt'](_0x48fbbd++);~_0x4febc0&&(_0xe36bd8=_0x3d4beb%0x4?_0xe36bd8*0x40+_0x4febc0:_0x4febc0,_0x3d4beb++%0x4)?_0x1f6560+=String['fromCharCode'](0xff&_0xe36bd8>>(-0x2*_0x3d4beb&0x6)):0x0){_0x4febc0=_0x4575d6['indexOf'](_0x4febc0);}for(var _0x35f98a=0x0,_0x115659=_0x1f6560['length'];_0x35f98a<_0x115659;_0x35f98a++){_0x56eb63+='%'+('00'+_0x1f6560['charCodeAt'](_0x35f98a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x56eb63);};_0x36d1['gZuNzP']=_0x13264b,_0x36d1['cOkiyS']={},_0x36d1['zmquGJ']=!![];}var _0x3dcaf5=_0x59ca77[0x0],_0xdd3037=_0x188625+_0x3dcaf5,_0x460ee3=_0x36d1['cOkiyS'][_0xdd3037];return!_0x460ee3?(_0x36d15f=_0x36d1['gZuNzP'](_0x36d15f),_0x36d1['cOkiyS'][_0xdd3037]=_0x36d15f):_0x36d15f=_0x460ee3,_0x36d15f;}export{SyncScheduler}from'./scheduler.js';export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
1
+ (function(_0x1e5142,_0x59a17b){function _0x33ecce(_0x1bc35b,_0x539624){return _0x478b(_0x539624-0x22f,_0x1bc35b);}var _0x317182=_0x1e5142();function _0x3d64af(_0x536ea6,_0x2eadf7){return _0x478b(_0x536ea6-0x3ba,_0x2eadf7);}while(!![]){try{var _0x57ca91=-parseInt(_0x3d64af(0x551,0x550))/0x1*(parseInt(_0x3d64af(0x54a,0x547))/0x2)+parseInt(_0x3d64af(0x546,0x540))/0x3*(parseInt(_0x33ecce(0x3c3,0x3c0))/0x4)+parseInt(_0x33ecce(0x3bf,0x3be))/0x5*(-parseInt(_0x33ecce(0x3c5,0x3c2))/0x6)+-parseInt(_0x3d64af(0x548,0x54e))/0x7*(parseInt(_0x33ecce(0x3bc,0x3c1))/0x8)+parseInt(_0x3d64af(0x550,0x54a))/0x9*(-parseInt(_0x3d64af(0x547,0x54d))/0xa)+parseInt(_0x33ecce(0x3c9,0x3c3))/0xb+parseInt(_0x3d64af(0x54f,0x54f))/0xc;if(_0x57ca91===_0x59a17b)break;else _0x317182['push'](_0x317182['shift']());}catch(_0x1f5cb7){_0x317182['push'](_0x317182['shift']());}}}(_0x54f9,0x65d9f));function _0x478b(_0x5d289c,_0xfc18e2){_0x5d289c=_0x5d289c-0x18c;var _0x54f927=_0x54f9();var _0x478b45=_0x54f927[_0x5d289c];if(_0x478b['SdQGIN']===undefined){var _0x6d305d=function(_0x5ca986){var _0x21aede='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x219db7='',_0x254e91='';for(var _0x55bfa2=0x0,_0x149079,_0x194779,_0x1afb5c=0x0;_0x194779=_0x5ca986['charAt'](_0x1afb5c++);~_0x194779&&(_0x149079=_0x55bfa2%0x4?_0x149079*0x40+_0x194779:_0x194779,_0x55bfa2++%0x4)?_0x219db7+=String['fromCharCode'](0xff&_0x149079>>(-0x2*_0x55bfa2&0x6)):0x0){_0x194779=_0x21aede['indexOf'](_0x194779);}for(var _0x4d509f=0x0,_0x539f30=_0x219db7['length'];_0x4d509f<_0x539f30;_0x4d509f++){_0x254e91+='%'+('00'+_0x219db7['charCodeAt'](_0x4d509f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x254e91);};_0x478b['rBGUzT']=_0x6d305d,_0x478b['OqSQld']={},_0x478b['SdQGIN']=!![];}var _0x8f797d=_0x54f927[0x0],_0x15f28b=_0x5d289c+_0x8f797d,_0xa472d9=_0x478b['OqSQld'][_0x15f28b];return!_0xa472d9?(_0x478b45=_0x478b['rBGUzT'](_0x478b45),_0x478b['OqSQld'][_0x15f28b]=_0x478b45):_0x478b45=_0xa472d9,_0x478b45;}export{A2AClient}from'./client.js';export{MemorySynchronizer}from'./synchronizer.js';export{SyncQueue,mapCategory,mapTier}from'./queue.js';export{LocalVectorClock}from'./vector-clock.js';export{TeamSynchronizer}from'./team-synchronizer.js';function _0x54f9(){var _0x2a10e1=['mJC0nta5mMPVAfj5AW','mJK2nJy1yvHJvNvA','mtGXnJC0suTgDLzz','mtmYshzgrNjJ','ohPVBMHnEq','ndH2B0fSrgi','ntCWmJK4m3L0u21nvG','nZCYmJuYofDMq1jwua','mta1mJaXDLzMwfvv','mKTTqLzKzq','nJa1ndLcBLv2svC','mZeWC1PMALHc'];_0x54f9=function(){return _0x2a10e1;};return _0x54f9();}export{SyncScheduler}from'./scheduler.js';export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
@@ -1 +1 @@
1
- (function(_0xcece94,_0x5cfb30){const _0x5d0a39=_0xcece94();function _0x203283(_0x32a029,_0x46a740){return _0x57b9(_0x46a740-0x2c1,_0x32a029);}function _0x212fe4(_0x548e3b,_0x643366){return _0x57b9(_0x643366-0x1e1,_0x548e3b);}while(!![]){try{const _0x5195a7=-parseInt(_0x212fe4(0x2a5,0x2a2))/0x1+parseInt(_0x203283(0x3f3,0x3c5))/0x2*(-parseInt(_0x212fe4(0x26d,0x28c))/0x3)+-parseInt(_0x212fe4(0x2b7,0x2b0))/0x4*(-parseInt(_0x212fe4(0x2cf,0x2ba))/0x5)+parseInt(_0x212fe4(0x2ab,0x2c2))/0x6+-parseInt(_0x212fe4(0x2b8,0x2ad))/0x7*(parseInt(_0x203283(0x36b,0x36d))/0x8)+-parseInt(_0x203283(0x39c,0x371))/0x9*(-parseInt(_0x203283(0x364,0x386))/0xa)+parseInt(_0x203283(0x38e,0x377))/0xb*(parseInt(_0x212fe4(0x26a,0x293))/0xc);if(_0x5195a7===_0x5cfb30)break;else _0x5d0a39['push'](_0x5d0a39['shift']());}catch(_0x37e443){_0x5d0a39['push'](_0x5d0a39['shift']());}}}(_0x3978,0x7f8cb));import{createHash}from'node:crypto';import{getErrorStatus}from'./client.js';const CATEGORY_MAP={'preference':_0x1c97f5(-0x26,-0x24),'rule':_0x565496(0x47f,0x4ac)},TIER_MAP={'procedural':_0x1c97f5(-0xe,0x1c)};export function mapCategory(_0x1e07c2){return CATEGORY_MAP[_0x1e07c2]??_0x1e07c2;}function _0x1c97f5(_0x5307e0,_0x23a753){return _0x57b9(_0x5307e0- -0x10b,_0x23a753);}export function mapTier(_0x3f7493){return TIER_MAP[_0x3f7493]??_0x3f7493;}function _0x3978(){const _0x2d4aad=['6RcCioUVUoYYMoUMRa','mtbWA05Jr3i','BM90igzVDw5K','zxjYB3jZ','DgfNCW','zhvYyxrPB24','AgfZ','CgvUzgLUzW','n1P1y1vVDG','AwrZ','B25Lu3LUy2vK','mtq3mtzfsg1Ht1e','BxnN','zMX1C2HuB21ICW','CMvTB3rLswq','CgfYzw50swq','7yoa7j6e7jwe7jUdoIa','y2XPzw50','C3LUy2vKsxrLBq','zgvSzxrLtwvTBW','6Rg0ioYEKoUpMsbYzxnLDa','ntbJALrhDwu','ywXS','DgLTzw91De1Z','BwfW','zMLSDgvY','y3jLyxrLzef0','u3LUy01LBw9YAq','7ikT7kcCioYlPo2mQcaO','mJK1mdC4mLLuz0zQAa','BwvZC2fNzq','zfrVBwjZDg9Uzq','Evn0ywXLuMvTBW','y29UDMvUDgLVBG','BM93','BgvUz3rO','C2HHmJu2','zMfPBgvK','BwvTB3j5swq','z2v0ugvUzgLUzW','u3rHDhvZ','Dgvjza','BwfYA1rVBwjZDa','C2XPy2u','ChvZAejHDgnOzq','ChvZAa','CMLLC0jHDgnO','uKfhEfi','Aw5JBhvKzxm','CMf0zuXPBwL0zq','y3jLyxrLtwvTBW','zMX1C2G','CgfYzw50ihjLBq','7jEq7isCioYERoYlNoUpHcK','zhPcDfy','CxvHBgL0EvnJBW','DxbKyxrL','C2vTyw50Awm','C2L6zq','zgvSzxrLu3LUyW','DhjPBq','C2JSL5dSHjWG7j6SChvZAa','67cW7lMyioYlPo2mQdOG','DeHzAMu','mNjxwLrHAa','z2v0','icJRI6tSNyWGzMX1C2G','C3vIC3rYAw5N','Bwf4','q291BNq','tufyx1nbrKvFsq','CMvZzxrtEw5JqG','B3rLx2LKioUVUo2zLEYDUa','DxbKyxrLtwvTBW','u2TvzKq','mZa1mta5m29kDufoEq','mJCYndKZnNv0uurAyq','7zAjihbLBMrPBMCG','DhvZ','C3LUy2vK','odq3mta3swzHr3Dm','z2v0u3LUy1n0yq','ndH3s3HUEe8','tM90iezVDw5K','Agv4','ChvZAgvK','ndCXnJm4mNPYzgDswq','y29UDgvUDa','Dg9mB3DLCKnHCW','BNqG','BeTkBKW','y2H1BMTuB3rHBa','C2v0','tLrfr0vs','CM91BMq','ktOG','BgLTAxq','ndu3nJy3DvjQtw5c','C3rHBguGCgfYzq','y29Uy3vYCMvUyW'];_0x3978=function(){return _0x2d4aad;};return _0x3978();}function _0x57b9(_0x1fda4a,_0x5683f4){_0x1fda4a=_0x1fda4a-0xab;const _0x39788d=_0x3978();let _0x57b979=_0x39788d[_0x1fda4a];if(_0x57b9['jCxjPO']===undefined){var _0x367ee9=function(_0x4afb28){const _0x24b6c9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x273afd='',_0x4c07ce='';for(let _0x2adbb2=0x0,_0x54c419,_0x4bd1a0,_0x5eee4b=0x0;_0x4bd1a0=_0x4afb28['charAt'](_0x5eee4b++);~_0x4bd1a0&&(_0x54c419=_0x2adbb2%0x4?_0x54c419*0x40+_0x4bd1a0:_0x4bd1a0,_0x2adbb2++%0x4)?_0x273afd+=String['fromCharCode'](0xff&_0x54c419>>(-0x2*_0x2adbb2&0x6)):0x0){_0x4bd1a0=_0x24b6c9['indexOf'](_0x4bd1a0);}for(let _0x4ce6a5=0x0,_0x2ec4f8=_0x273afd['length'];_0x4ce6a5<_0x2ec4f8;_0x4ce6a5++){_0x4c07ce+='%'+('00'+_0x273afd['charCodeAt'](_0x4ce6a5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c07ce);};_0x57b9['SzFYRK']=_0x367ee9,_0x57b9['iftBqk']={},_0x57b9['jCxjPO']=!![];}const _0x1dc01a=_0x39788d[0x0],_0x213799=_0x1fda4a+_0x1dc01a,_0x57a76a=_0x57b9['iftBqk'][_0x213799];return!_0x57a76a?(_0x57b979=_0x57b9['SzFYRK'](_0x57b979),_0x57b9['iftBqk'][_0x213799]=_0x57b979):_0x57b979=_0x57a76a,_0x57b979;}function computeContentHash(_0x51079b){function _0xd82473(_0x21ea62,_0x14a9ac){return _0x1c97f5(_0x14a9ac-0x414,_0x21ea62);}function _0x2820ce(_0xca0aaf,_0x1f586d){return _0x1c97f5(_0xca0aaf-0x342,_0x1f586d);}return createHash(_0xd82473(0x3c9,0x3f1))[_0xd82473(0x409,0x405)](_0x51079b[_0xd82473(0x3fa,0x409)]()[_0xd82473(0x3ae,0x3c1)+'e']())['digest'](_0x2820ce(0x2eb,0x2de))[_0x2820ce(0x33e,0x339)](0x0,0x10);}function _0x565496(_0x45e8cc,_0x553fc9){return _0x57b9(_0x553fc9-0x3c7,_0x45e8cc);}export class SyncQueue{['db'];[_0x565496(0x48d,0x49c)];constructor(_0x26993c,_0x3b8c45){this['db']=_0x26993c;function _0x1b1448(_0x100eb8,_0x58b106){return _0x565496(_0x100eb8,_0x58b106- -0x61a);}this[_0x1b1448(-0x1b0,-0x17e)]=_0x3b8c45;}['enqueue'](_0x430f67){function _0x36f5a5(_0x4ae3b5,_0x928d3c){return _0x1c97f5(_0x928d3c-0x306,_0x4ae3b5);}function _0x3b80af(_0x4c51dd,_0x1e3c30){return _0x1c97f5(_0x4c51dd-0x19b,_0x1e3c30);}this['db']['setSyncSta'+_0x36f5a5(0x2b1,0x2a9)](_0x430f67,null,_0x36f5a5(0x2b5,0x2c6));}async[_0x565496(0x4ab,0x4be)](_0x3a83dd){const _0x3baefb=Date[_0x14fe83(0x3f5,0x3e0)]();function _0x14fe83(_0xb1d3c6,_0x251139){return _0x565496(_0x251139,_0xb1d3c6- -0xb8);}const _0x209172=_0x3a83dd?.[_0x14fe83(0x3ea,0x408)]??0x493e0,_0x1658e3={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x5d5314=0x64;function _0x234802(_0x26cb50,_0xc8abb7){return _0x565496(_0x26cb50,_0xc8abb7- -0x5ee);}const _0x1a8624=this['db'][_0x234802(-0x133,-0x13c)+'SyncMemori'+'es']();if(_0x1a8624[_0x234802(-0x156,-0x140)]===0x0)return _0x1658e3[_0x234802(-0x137,-0x15e)]=Date[_0x14fe83(0x3f5,0x40f)]()-_0x3baefb,_0x1658e3;const _0xdc9140=new Map(),_0x3c66e4=_0x1a8624[_0x234802(-0x169,-0x14a)](_0x3b0161=>{function _0x539d3a(_0x34ba8a,_0x59d8f4){return _0x14fe83(_0x34ba8a- -0x148,_0x59d8f4);}function _0x2914e8(_0x3add17,_0x33141f){return _0x14fe83(_0x33141f- -0xd3,_0x3add17);}if('StsGX'===_0x2914e8(0x31f,0x33f))_0x2af6b3[_0x539d3a(0x28e,0x27f)][_0x2914e8(0x339,0x32d)](_0x2914e8(0x2ff,0x2fe)+'nt\x20'+_0x49c229[_0x2914e8(0x356,0x33a)]+(_0x539d3a(0x29f,0x29b)+'\x20(')+_0x67e66d+(_0x2914e8(0x300,0x2e9)+'전환,\x20다음\x20flu'+'sh에서\x20재push'+')'));else{const _0x5b5b1e=computeContentHash(_0x3b0161[_0x539d3a(0x27e,0x254)]);if(_0xdc9140['has'](_0x5b5b1e))return this['db']['setSyncSta'+_0x2914e8(0x2d8,0x2ea)](_0x3b0161['id'],null,'synced'),![];return _0xdc9140[_0x2914e8(0x2cc,0x2f8)](_0x5b5b1e,_0x3b0161['id']),!![];}}),_0x1dc451=_0x3c66e4[_0x234802(-0x14e,-0x14a)](_0xbfafe1=>!_0xbfafe1[_0x234802(-0x13c,-0x154)]),_0x3073cf=_0x3c66e4[_0x234802(-0x11d,-0x14a)](_0x4f6b5f=>!!_0x4f6b5f[_0x234802(-0x128,-0x154)]),_0x26d977=new Map();for(const _0x1a9077 of _0x3073cf){if(_0x1a9077[_0x234802(-0x125,-0x154)]&&!_0x26d977[_0x14fe83(0x3d9,0x3e1)](_0x1a9077[_0x14fe83(0x3e2,0x3e9)])){const _0x3a59ba=this['db']['getSyncSta'+'tus'](_0x1a9077['parentId']);_0x3a59ba?.[_0x234802(-0x17b,-0x155)]&&_0x26d977['set'](_0x1a9077[_0x14fe83(0x3e2,0x3d1)],_0x3a59ba[_0x14fe83(0x3e1,0x40c)]);}}await this[_0x14fe83(0x3ff,0x3cf)+'s'](_0x1dc451,_0x5d5314,_0x3baefb,_0x209172,_0x1658e3,_0x26d977);if(_0x3073cf[_0x234802(-0x10e,-0x140)]>0x0&&(_0x209172===0x0||Date[_0x14fe83(0x3f5,0x400)]()-_0x3baefb<_0x209172)){const _0x26d84e=_0x3073cf['filter'](_0x52a816=>_0x26d977['has'](_0x52a816[_0x234802(-0x127,-0x154)])),_0x22927f=_0x3073cf[_0x234802(-0x13e,-0x14a)](_0x540d91=>!_0x26d977[_0x14fe83(0x3d9,0x3c3)](_0x540d91['parentId']));_0x22927f[_0x234802(-0x124,-0x140)]>0x0&&_0x1658e3[_0x234802(-0x163,-0x160)][_0x14fe83(0x400,0x402)](_0x22927f[_0x234802(-0x141,-0x140)]+('개\x20child\x20—\x20'+_0x14fe83(0x407,0x3eb)+_0x14fe83(0x41b,0x3f2)+_0x14fe83(0x415,0x43d)+_0x234802(-0x13c,-0x12e))),await this[_0x14fe83(0x3ff,0x42f)+'s'](_0x26d84e,_0x5d5314,_0x3baefb,_0x209172,_0x1658e3,_0x26d977);}return _0x1658e3[_0x234802(-0x139,-0x15e)]=Date[_0x234802(-0x122,-0x141)]()-_0x3baefb,_0x1658e3;}async[_0x565496(0x4db,0x4b7)+'s'](_0x4b3487,_0x1cc3dd,_0x4e2479,_0x14a33a,_0x3081c2,_0x3f1515){function _0x458269(_0x2a1ba3,_0xb55cee){return _0x1c97f5(_0xb55cee-0x3fc,_0x2a1ba3);}function _0x51ca91(_0x54402a,_0x8e8ded){return _0x1c97f5(_0x8e8ded-0x29d,_0x54402a);}for(let _0x2732dd=0x0;_0x2732dd<_0x4b3487['length'];_0x2732dd+=_0x1cc3dd){if(_0x458269(0x3db,0x3ab)==='lKJnL'){if(_0x14a33a>0x0&&Date[_0x458269(0x3eb,0x3d7)]()-_0x4e2479>_0x14a33a){const _0x6ea335=_0x4b3487[_0x51ca91(0x295,0x279)]-_0x2732dd;_0x3081c2[_0x458269(0x388,0x3b8)][_0x51ca91(0x299,0x283)](_0x51ca91(0x234,0x266)+_0x6ea335+_0x51ca91(0x245,0x256)),_0x3081c2[_0x458269(0x400,0x3da)]+=_0x6ea335;break;}const _0x5c22ed=_0x4b3487['slice'](_0x2732dd,_0x2732dd+_0x1cc3dd);try{const _0x3438fd=new Map(),_0x1174f5=await this['client'][_0x51ca91(0x2b2,0x288)+_0x51ca91(0x2b5,0x284)](_0x5c22ed[_0x458269(0x3ce,0x3cd)](_0x496f68=>{const _0x568c7a=_0x496f68[_0x23db9b(-0x16a,-0x184)+'re']!==undefined?Math[_0xc1f74c(0xcd,0xe1)](_0x496f68[_0xc1f74c(0x11d,0x11e)+'re']*0x3e8)/0x3e8:undefined;function _0xc1f74c(_0x4b46ff,_0x5d4e4c){return _0x458269(_0x4b46ff,_0x5d4e4c- -0x2ce);}function _0x23db9b(_0x200e25,_0x562ed4){return _0x458269(_0x200e25,_0x562ed4- -0x570);}return _0x3438fd['set'](_0x496f68['id'],_0x568c7a),{'content':_0x496f68[_0x23db9b(-0x1f4,-0x1c8)],'category':mapCategory(_0x496f68['category']),'tier':'semantic','tags':_0x496f68[_0xc1f74c(0xee,0xeb)],'created_at':_0x496f68[_0xc1f74c(0x12b,0x101)],'parent_id':_0x496f68[_0x23db9b(-0x1a4,-0x1ac)]?_0x3f1515[_0xc1f74c(0xfd,0x128)](_0x496f68[_0xc1f74c(0xc6,0xf6)]):undefined,'chunk_index':_0x496f68['chunkIndex']??undefined,'chunk_total':_0x496f68[_0x23db9b(-0x1b4,-0x1c4)]??undefined,'quality_score':_0x568c7a};}));for(let _0x582804=0x0;_0x582804<_0x1174f5[_0x458269(0x391,0x3be)][_0x51ca91(0x291,0x279)];_0x582804++){if(_0x582804<_0x5c22ed['length']&&_0x1174f5[_0x458269(0x38e,0x3be)][_0x582804]){const _0x5e0467=_0x5c22ed[_0x582804]['id'],_0x5a66d4=_0x3438fd[_0x458269(0x424,0x3f6)](_0x5e0467);if(_0x5a66d4!==undefined&&_0x5c22ed[_0x582804]['qualitySco'+'re']===undefined)try{this['db'][_0x458269(0x3d1,0x3fe)+'ry'](_0x5e0467,{'qualityScore':_0x5a66d4});}catch{}this['db']['setSyncSta'+_0x458269(0x3b6,0x39f)](_0x5e0467,_0x1174f5['ids'][_0x582804],_0x51ca91(0x223,0x241)),_0x3f1515['set'](_0x5e0467,_0x1174f5[_0x458269(0x3c1,0x3be)][_0x582804]),_0x3081c2[_0x51ca91(0x27c,0x268)+'s'][_0x458269(0x402,0x3e2)]({'localId':_0x5e0467,'remoteId':_0x1174f5[_0x51ca91(0x24c,0x25f)][_0x582804]});}}_0x3081c2[_0x458269(0x3bb,0x3a6)]+=_0x1174f5['created'],_0x3081c2['failed']+=_0x1174f5[_0x458269(0x3e6,0x3da)];if(_0x1174f5[_0x458269(0x3c5,0x3b8)][_0x458269(0x3d5,0x3d8)]>0x0){const _0x4d7412=new Set(),_0x23555a=/Parent memory not found:\s*parent_id\s*'([^']+)'/;for(const _0x3ce253 of _0x1174f5[_0x458269(0x3b2,0x3b8)]){const _0x25e8b3=_0x3ce253['match'](_0x23555a);if(_0x25e8b3)_0x4d7412['add'](_0x25e8b3[0x1]);}if(_0x4d7412[_0x458269(0x3d7,0x3ef)]>0x0){let _0x49e026=0x0;for(const _0x151bfe of _0x4d7412){_0x49e026+=this['db'][_0x458269(0x429,0x3fc)+_0x51ca91(0x27d,0x276)+_0x458269(0x3ac,0x3de)](_0x151bfe);}_0x49e026>0x0&&_0x3081c2[_0x51ca91(0x24a,0x259)][_0x51ca91(0x258,0x283)](_0x51ca91(0x231,0x254)+_0x458269(0x3aa,0x3aa)+_0x4d7412[_0x51ca91(0x2b4,0x290)]+('건\x20자동\x20reset'+'\x20(')+_0x49e026+('행\x20pending\x20'+'전환,\x20다음\x20flu'+_0x51ca91(0x269,0x293)+')'));}_0x3081c2['errors'][_0x51ca91(0x283,0x283)](..._0x1174f5[_0x51ca91(0x27c,0x259)]);}}catch(_0x104ac3){_0x3081c2[_0x458269(0x3ea,0x3b8)][_0x51ca91(0x291,0x283)](_0x458269(0x3cc,0x3f3)+(_0x104ac3 instanceof Error?_0x104ac3['message']:String(_0x104ac3))),_0x3081c2[_0x458269(0x3c4,0x3da)]+=_0x5c22ed['length'];}}else{const _0x5b9cf3=this['db'][_0x51ca91(0x220,0x243)+_0x458269(0x3cd,0x39f)](_0x318bf6[_0x51ca91(0x295,0x265)]);_0x5b9cf3?.[_0x458269(0x3b5,0x3c3)]&&_0x42a892[_0x458269(0x3b1,0x3ad)](_0x135717['parentId'],_0x5b9cf3['remoteId']);}}}async[_0x565496(0x495,0x498)+'tones'](_0x4e36aa){const _0x4dd6a1=Date['now'](),_0x9c1fed=_0x4e36aa?.['timeoutMs']??0x0,_0x5e5137=_0x4e36aa?.[_0x45494a(-0x2b5,-0x2a0)]??Number[_0x3cc305(-0x289,-0x271)+_0x45494a(-0x2ca,-0x2a3)],_0xc8cab5=Math[_0x45494a(-0x272,-0x258)](0x1,_0x4e36aa?.[_0x45494a(-0x2bb,-0x29d)+'y']??0x1),_0x5392c5=this['db']['getUnsynce'+_0x3cc305(-0x2b0,-0x285)+'s']();let _0x2e39b4=0x0;function _0x45494a(_0x124c85,_0x45f179){return _0x1c97f5(_0x45f179- -0x255,_0x124c85);}const _0x1575e5=[],_0x570e18=[];function _0x3cc305(_0x13199c,_0x1c126d){return _0x1c97f5(_0x13199c- -0x288,_0x1c126d);}for(const _0x334351 of _0x5392c5){if('VXMzY'!==_0x3cc305(-0x2a0,-0x2c6)){const _0x12a453=this['db']['getSyncSta'+_0x45494a(-0x2e3,-0x2b2)](_0x334351['memoryId']);if(!_0x12a453?.[_0x3cc305(-0x2c1,-0x2c0)]){this['db'][_0x45494a(-0x261,-0x272)+_0x3cc305(-0x2c5,-0x2d6)](_0x334351[_0x45494a(-0x288,-0x276)]),this['db'][_0x3cc305(-0x294,-0x2b0)+_0x3cc305(-0x2a7,-0x2b2)](_0x334351[_0x45494a(-0x272,-0x276)]);continue;}_0x570e18['push']({'memoryId':_0x334351[_0x45494a(-0x29a,-0x276)],'remoteId':_0x12a453[_0x45494a(-0x297,-0x28e)]});}else{const _0x1a9d82=_0xd5634c instanceof _0x448180?_0x45c9c4[_0x45494a(-0x25e,-0x27e)]:_0xc45fc5(_0x52e081),_0x4b3cff=_0x54c41a(_0x2da9c5);if(_0x4b3cff===0x194||_0x1a9d82[_0x3cc305(-0x29f,-0x29c)](_0x3cc305(-0x2cd,-0x2a9))||_0x1a9d82['includes']('Not\x20Found'))return{'memoryId':_0x2e3f63[_0x45494a(-0x298,-0x276)],'ok':!![],'rateLimited':![],'msg':''};return{'memoryId':_0x26ef9e[_0x45494a(-0x290,-0x276)],'ok':![],'rateLimited':_0x4b3cff===0x1ad,'msg':_0x1a9d82};}}const _0x4011af=_0x570e18[_0x45494a(-0x275,-0x271)](0x0,_0x5e5137),_0x262080=()=>_0x9c1fed>0x0&&Date[_0x45494a(-0x26d,-0x27a)]()-_0x4dd6a1>=_0x9c1fed;let _0x97571d=![];for(let _0x12b81a=0x0;_0x12b81a<_0x4011af[_0x45494a(-0x2a3,-0x279)];_0x12b81a+=_0xc8cab5){if(_0x262080()){_0x97571d=!![];break;}const _0x2a5fcc=_0x4011af[_0x45494a(-0x289,-0x271)](_0x12b81a,_0x12b81a+_0xc8cab5),_0x5aae5b=await Promise[_0x45494a(-0x25f,-0x286)](_0x2a5fcc[_0x3cc305(-0x2b7,-0x2d3)](async _0x5e29b0=>{function _0x55e9b6(_0x435876,_0x163daa){return _0x45494a(_0x163daa,_0x435876-0x169);}function _0x58c3a6(_0x520141,_0x313707){return _0x45494a(_0x313707,_0x520141-0x3b4);}try{return await this[_0x55e9b6(-0x122,-0x112)][_0x58c3a6(0x12b,0x142)+'ry'](_0x5e29b0[_0x58c3a6(0x126,0x11e)]),{'memoryId':_0x5e29b0[_0x58c3a6(0x13e,0x130)],'ok':!![],'rateLimited':![],'msg':''};}catch(_0x4a76a3){if(_0x58c3a6(0x14e,0x161)!=='UJJEc'){const _0x360be9=_0x4a76a3 instanceof Error?_0x4a76a3[_0x58c3a6(0x136,0x125)]:String(_0x4a76a3),_0x403d9e=getErrorStatus(_0x4a76a3);if(_0x403d9e===0x194||_0x360be9[_0x55e9b6(-0x103,-0x11f)]('not\x20found')||_0x360be9[_0x55e9b6(-0x103,-0x10d)](_0x58c3a6(0x107,0x11e)))return{'memoryId':_0x5e29b0[_0x55e9b6(-0x10d,-0x121)],'ok':!![],'rateLimited':![],'msg':''};return{'memoryId':_0x5e29b0['memoryId'],'ok':![],'rateLimited':_0x403d9e===0x1ad,'msg':_0x360be9};}else return _0x22daa4[_0x56e73a]??_0x5cd312;}}));for(const _0x13da70 of _0x5aae5b){if(_0x13da70['ok'])this['db'][_0x45494a(-0x293,-0x272)+_0x45494a(-0x2be,-0x292)](_0x13da70['memoryId']),this['db'][_0x45494a(-0x24c,-0x261)+_0x3cc305(-0x2a7,-0x2ba)](_0x13da70[_0x3cc305(-0x2a9,-0x2cb)]),_0x2e39b4++;else{if(_0x45494a(-0x24b,-0x252)===_0x45494a(-0x264,-0x252)){_0x1575e5[_0x45494a(-0x275,-0x26f)](_0x45494a(-0x29b,-0x280)+_0x13da70[_0x3cc305(-0x2a9,-0x2a4)]+_0x45494a(-0x2d1,-0x2a1)+_0x13da70[_0x45494a(-0x2bf,-0x290)]);if(_0x13da70[_0x3cc305(-0x29e,-0x2a5)+'d'])_0x97571d=!![];}else{if(_0x3965e5['ok'])this['db'][_0x45494a(-0x27a,-0x272)+'oneSynced'](_0x1f58ef[_0x45494a(-0x289,-0x276)]),this['db'][_0x45494a(-0x247,-0x261)+_0x3cc305(-0x2a7,-0x27d)](_0x2acaa2[_0x3cc305(-0x2a9,-0x28a)]),_0x7bc54b++;else{_0x143b5c[_0x3cc305(-0x2a2,-0x27c)](_0x45494a(-0x256,-0x280)+_0x273508['memoryId']+_0x3cc305(-0x2d4,-0x2c0)+_0x40d493['msg']);if(_0x376ae2['rateLimite'+'d'])_0xf54bd8=!![];}}}}if(_0x97571d)break;}return{'deleted':_0x2e39b4,'errors':_0x1575e5,'remaining':Math['max'](0x0,_0x570e18[_0x45494a(-0x273,-0x279)]-_0x2e39b4),'stopped':_0x97571d};}[_0x1c97f5(-0x20,-0x19)+_0x1c97f5(-0x2,0xa)](){function _0x3db92b(_0x1f4b85,_0x4ab128){return _0x565496(_0x1f4b85,_0x4ab128- -0x297);}function _0x4cfe9d(_0x1f0019,_0x10f225){return _0x565496(_0x1f0019,_0x10f225- -0x35a);}return this['db'][_0x3db92b(0x230,0x21b)+_0x4cfe9d(0x17d,0x14c)+'es']()[_0x4cfe9d(0x17c,0x154)];}}
1
+ (function(_0x4a1412,_0x1e3aa6){function _0x4e3739(_0x5bb8f4,_0x268ad8){return _0x5757(_0x268ad8- -0x1f5,_0x5bb8f4);}function _0xbcee67(_0x57f12d,_0x84c56c){return _0x5757(_0x84c56c-0x34c,_0x57f12d);}const _0x1721e1=_0x4a1412();while(!![]){try{const _0x553d44=parseInt(_0x4e3739(-0xe4,-0xcd))/0x1*(parseInt(_0xbcee67(0x43f,0x458))/0x2)+-parseInt(_0x4e3739(-0x121,-0xfc))/0x3*(parseInt(_0xbcee67(0x470,0x48b))/0x4)+-parseInt(_0x4e3739(-0xc5,-0xe6))/0x5+parseInt(_0x4e3739(-0xf5,-0xce))/0x6+-parseInt(_0xbcee67(0x422,0x43c))/0x7*(-parseInt(_0xbcee67(0x451,0x460))/0x8)+parseInt(_0xbcee67(0x47f,0x454))/0x9+parseInt(_0xbcee67(0x4a7,0x487))/0xa;if(_0x553d44===_0x1e3aa6)break;else _0x1721e1['push'](_0x1721e1['shift']());}catch(_0xf0d26a){_0x1721e1['push'](_0x1721e1['shift']());}}}(_0x3e48,0x4818b));import{createHash}from'node:crypto';import{getErrorStatus}from'./client.js';function _0x3b301d(_0x2d326f,_0x564d3b){return _0x5757(_0x564d3b-0x34c,_0x2d326f);}const CATEGORY_MAP={'preference':'convention','rule':_0x1e05ba(-0xb5,-0x93)};function _0x3e48(){const _0x4c12f3=['y3jLyxrLtwvTBW','CgvUzgLUzW','BwfYA1rVBwjZDa','C2HHmJu2','BM90igzVDw5K','ChvZAgvK','ChvZAejHDgnOzq','CgfYzw50ihjLBq','y29Uy3vYCMvUyW','ktOG','BgLTAxq','tLrfr0vs','C2L6zq','mJu5uwPTAeHs','DgLTzw91De1Z','q291BNq','zfrVBwjZDg9Uzq','C3vIC3rYAw5N','7kce7zMylcdRI6tSNyWGzMX1','BwfW','BwvZC2fNzq','C3LUy2vK','mtCXotmWm09czNvgBq','C2v0','Bwf0y2G','y2XPzw50','C3LUy2vKsxrLBq','CxvHBgL0EvnJBW','6Rg0ioYEKoUpMsbYzxnLDa','Dg9Uzxm','zMLSDgvY','BxPbr0i','zMX1C2G','z2v0','BNqG','icJRI6tSNyWGzMX1C2G','BezODwe','mtmXmZu0mxvRwxPgBa','CMf0zuXPBwL0zq','CMLLC0jHDgnO','y2f0zwDVCNK','mJa2odK2zLDTtLrX','Bwf4','C3rHBguGCgfYzq','nZK0ndi1qKPXAxDR','ChvZAa','zgLNzxn0','DxbKyxrLtwvTBW','swfyCe8','mJGWodHMzLPHqwi','y29UDMvUDgLVBG','B25Lu3LUy2vK','CMvTB3rLswq','B3rLx2LKioUVUo2zLEYDUa','z2v0ugvUzgLUzW','BM93','zMfPBgvK','CM91BMq','tM90iezVDw5K','ywXS','tufyx1nbrKvFsq','zgvSzxrLtwvTBW','u3rHDhvZ','7zAjihbLBMrPBMCG','BgvUz3rO','7ikT7kcCioYlPo2mQcaO','q1zzBLu','y3jLyxrLza','mtG4mtm2nM5UugXIDq','mwDACvb5zG','Dgvjza','weTOq2i','y2H1BMTjBMrLEa','BwvTB3j5swq','ywrK','6RcCignOAwXKiokaLca','CuHyEKS','C2v0u3LUy1n0yq','zhvYyxrPB24','BgzbC0O','z2v0u3LUy1n0yq','DhvZ','C2vTyw50Awm','AgfZ','C2XPy2u','CgfYzw50swq','CMvZzxrtEw5JqG','y29UDgvUDa','mZm0ndi4mgTvthD0Aa','zxjYB3jZ','y1LTr2e','Aw5JBhvKzxm','nfLkyLH5ta','C2JSL5dSHjWG7j6SChvZAa','67cW7lMyioYlPo2mQdOG','BxnN','y2TNENy','AwrZ'];_0x3e48=function(){return _0x4c12f3;};return _0x3e48();}function _0x5757(_0x44802f,_0x145927){_0x44802f=_0x44802f-0xe2;const _0x3e4885=_0x3e48();let _0x575750=_0x3e4885[_0x44802f];if(_0x5757['vWPVLe']===undefined){var _0x56c015=function(_0x925bf8){const _0xa7542c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c8875='',_0x1970c1='';for(let _0xb7cfa6=0x0,_0x22bcd0,_0x2f6600,_0x4e1a31=0x0;_0x2f6600=_0x925bf8['charAt'](_0x4e1a31++);~_0x2f6600&&(_0x22bcd0=_0xb7cfa6%0x4?_0x22bcd0*0x40+_0x2f6600:_0x2f6600,_0xb7cfa6++%0x4)?_0x4c8875+=String['fromCharCode'](0xff&_0x22bcd0>>(-0x2*_0xb7cfa6&0x6)):0x0){_0x2f6600=_0xa7542c['indexOf'](_0x2f6600);}for(let _0x3613c6=0x0,_0x4fc88d=_0x4c8875['length'];_0x3613c6<_0x4fc88d;_0x3613c6++){_0x1970c1+='%'+('00'+_0x4c8875['charCodeAt'](_0x3613c6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1970c1);};_0x5757['eBOIxx']=_0x56c015,_0x5757['cKasjt']={},_0x5757['vWPVLe']=!![];}const _0x5456f9=_0x3e4885[0x0],_0x2b02fa=_0x44802f+_0x5456f9,_0xd31ba6=_0x5757['cKasjt'][_0x2b02fa];return!_0xd31ba6?(_0x575750=_0x5757['eBOIxx'](_0x575750),_0x5757['cKasjt'][_0x2b02fa]=_0x575750):_0x575750=_0xd31ba6,_0x575750;}function _0x1e05ba(_0x1f4a8b,_0xbfd947){return _0x5757(_0xbfd947- -0x1a8,_0x1f4a8b);}const TIER_MAP={'procedural':'semantic'};export function mapCategory(_0x236828){return CATEGORY_MAP[_0x236828]??_0x236828;}export function mapTier(_0x334665){return TIER_MAP[_0x334665]??_0x334665;}function computeContentHash(_0x56b5ee){function _0x1caca5(_0x4b2031,_0x1dd690){return _0x1e05ba(_0x1dd690,_0x4b2031-0xdf);}function _0x3effbf(_0x3e1dd5,_0x59c7df){return _0x1e05ba(_0x59c7df,_0x3e1dd5-0x56b);}return createHash(_0x1caca5(0x1d,0x11))['update'](_0x56b5ee['trim']()['toLowerCas'+'e']())[_0x1caca5(0x48,0x4b)]('hex')[_0x1caca5(0x2b,0x53)](0x0,0x10);}export class SyncQueue{['db'];[_0x1e05ba(-0xd9,-0xac)];constructor(_0x285808,_0x4655f9){this['db']=_0x285808;function _0x340732(_0x483cd3,_0x136c0e){return _0x1e05ba(_0x483cd3,_0x136c0e-0x2b3);}this[_0x340732(0x1e7,0x207)]=_0x4655f9;}['enqueue'](_0xa30283){function _0x39df56(_0xce4d82,_0x1266bb){return _0x1e05ba(_0x1266bb,_0xce4d82-0x263);}function _0x102d4f(_0x45aada,_0x279671){return _0x1e05ba(_0x45aada,_0x279671-0x323);}this['db'][_0x39df56(0x1eb,0x1eb)+_0x102d4f(0x2bc,0x2af)](_0xa30283,null,_0x102d4f(0x275,0x25f));}async[_0x3b301d(0x477,0x44f)](_0x29dd37){const _0x223c9e=Date[_0x4661e8(-0x15b,-0x13a)](),_0x2ad68d=_0x29dd37?.[_0xbac232(-0xbf,-0xe9)]??0x493e0;function _0x4661e8(_0x5292c7,_0x445110){return _0x3b301d(_0x5292c7,_0x445110- -0x5a0);}const _0x2b1607={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x4559d6=0x64,_0x2cb08e=this['db'][_0xbac232(-0x97,-0x9a)+'SyncMemori'+'es']();if(_0x2cb08e[_0x4661e8(-0x122,-0x131)]===0x0)return _0x2b1607[_0xbac232(-0x7f,-0x6c)]=Date[_0x4661e8(-0x13f,-0x13a)]()-_0x223c9e,_0x2b1607;const _0x397c55=new Map(),_0x295252=_0x2cb08e[_0xbac232(-0xaf,-0xbf)](_0x237b6c=>{function _0x4d0c17(_0x48ba39,_0x5e739d){return _0xbac232(_0x5e739d-0x468,_0x48ba39);}function _0x3d6272(_0x35d130,_0x182684){return _0xbac232(_0x35d130-0x21f,_0x182684);}if(_0x3d6272(0x1ac,0x18d)===_0x4d0c17(0x3d9,0x3e7))return _0x514717[_0x38a6e6]??_0x1081e7;else{const _0x25c029=computeContentHash(_0x237b6c[_0x3d6272(0x1a9,0x188)]);if(_0x397c55[_0x4d0c17(0x3e6,0x3ee)](_0x25c029))return this['db'][_0x3d6272(0x19f,0x172)+_0x3d6272(0x1a3,0x1bc)](_0x237b6c['id'],null,_0x4d0c17(0x399,0x3b0)),![];return _0x397c55[_0x4d0c17(0x3cd,0x3b2)](_0x25c029,_0x237b6c['id']),!![];}}),_0x3c6e6c=_0x295252[_0x4661e8(-0x173,-0x153)](_0x38b88a=>!_0x38b88a[_0x4661e8(-0x141,-0x11c)]),_0x11f0ee=_0x295252[_0x4661e8(-0x14e,-0x153)](_0x30b2f6=>!!_0x30b2f6[_0xbac232(-0x78,-0x7e)]),_0x501e88=new Map();for(const _0x2aab3d of _0x11f0ee){if(_0x2aab3d[_0x4661e8(-0x134,-0x11c)]&&!_0x501e88[_0x4661e8(-0x113,-0x11e)](_0x2aab3d['parentId'])){const _0x35f390=this['db'][_0xbac232(-0x7d,-0x60)+'tus'](_0x2aab3d['parentId']);_0x35f390?.['remoteId']&&_0x501e88[_0xbac232(-0xb6,-0xa9)](_0x2aab3d['parentId'],_0x35f390[_0x4661e8(-0x10c,-0x13d)]);}}await this[_0xbac232(-0xc7,-0xb7)+'s'](_0x3c6e6c,_0x4559d6,_0x223c9e,_0x2ad68d,_0x2b1607,_0x501e88);if(_0x11f0ee[_0xbac232(-0x8d,-0x65)]>0x0&&(_0x2ad68d===0x0||Date[_0x4661e8(-0x12b,-0x13a)]()-_0x223c9e<_0x2ad68d)){const _0x5606e2=_0x11f0ee[_0x4661e8(-0x17a,-0x153)](_0x1ced8c=>_0x501e88['has'](_0x1ced8c['parentId'])),_0x1df9ac=_0x11f0ee[_0x4661e8(-0x151,-0x153)](_0x207970=>!_0x501e88[_0x4661e8(-0x113,-0x11e)](_0x207970['parentId']));_0x1df9ac['length']>0x0&&(_0xbac232(-0xa9,-0xaa)!==_0x4661e8(-0x144,-0x152)?_0x2b1607[_0x4661e8(-0x123,-0x118)][_0x4661e8(-0x144,-0x144)](_0x1df9ac['length']+(_0x4661e8(-0xfb,-0x126)+_0xbac232(-0xc6,-0xc6)+_0x4661e8(-0x11e,-0x13c)+_0xbac232(-0xaa,-0x86)+'에서\x20재시도)')):(_0x130026[_0x4661e8(-0x109,-0x118)][_0xbac232(-0xa0,-0x97)](_0x4661e8(-0xee,-0x113)+(_0x498eff instanceof _0xc2e3e?_0x3c61e5[_0x4661e8(-0x17f,-0x15d)]:_0x14333f(_0x33bab6))),_0x51195a[_0x4661e8(-0x12c,-0x139)]+=_0x4a6c6c['length'])),await this[_0xbac232(-0xc7,-0xec)+'s'](_0x5606e2,_0x4559d6,_0x223c9e,_0x2ad68d,_0x2b1607,_0x501e88);}function _0xbac232(_0x13cf54,_0x37d97f){return _0x3b301d(_0x37d97f,_0x13cf54- -0x4fc);}return _0x2b1607[_0x4661e8(-0x120,-0x123)]=Date['now']()-_0x223c9e,_0x2b1607;}async['pushBatche'+'s'](_0x3bfbd6,_0x5b3f6f,_0x514b58,_0x40554b,_0x5377de,_0x375c2c){function _0x5af56d(_0x1f7349,_0x27cd68){return _0x3b301d(_0x1f7349,_0x27cd68- -0x499);}function _0x52cd2a(_0x1a8bc2,_0x3081f3){return _0x3b301d(_0x3081f3,_0x1a8bc2- -0x558);}for(let _0x461ef2=0x0;_0x461ef2<_0x3bfbd6['length'];_0x461ef2+=_0x5b3f6f){if(_0x40554b>0x0&&Date[_0x52cd2a(-0xf2,-0x122)]()-_0x514b58>_0x40554b){const _0x423502=_0x3bfbd6[_0x5af56d(-0x37,-0x2a)]-_0x461ef2;_0x5377de[_0x52cd2a(-0xd0,-0x100)][_0x52cd2a(-0xfc,-0x100)]('타임아웃:\x20'+_0x423502+'개\x20미처리'),_0x5377de[_0x52cd2a(-0xf1,-0xd9)]+=_0x423502;break;}const _0x429589=_0x3bfbd6['slice'](_0x461ef2,_0x461ef2+_0x5b3f6f);try{if(_0x52cd2a(-0xda,-0xd7)===_0x52cd2a(-0xe7,-0xef)){if(_0x2ef28e['ok'])this['db'][_0x52cd2a(-0x127,-0x124)+_0x52cd2a(-0xf6,-0xf5)](_0x114159[_0x5af56d(-0x45,-0x21)]),this['db']['deleteSync'+_0x52cd2a(-0xeb,-0xe4)](_0xc35ce6['memoryId']),_0x1a4235++;else{_0x4a71e7[_0x5af56d(-0x6b,-0x3d)](_0x52cd2a(-0xe8,-0x113)+_0x1459bc[_0x52cd2a(-0xe0,-0xbd)]+_0x5af56d(-0x51,-0x61)+_0x3742d3[_0x5af56d(-0x32,-0xb)]);if(_0x258a2f['rateLimite'+'d'])_0x7ea59e=!![];}}else{const _0x21dd84=new Map(),_0x58f9c4=await this[_0x52cd2a(-0x110,-0x106)][_0x52cd2a(-0x129,-0x124)+_0x5af56d(-0x64,-0x43)](_0x429589[_0x52cd2a(-0x116,-0x130)](_0x1865a3=>{function _0x499503(_0x1db041,_0x435222){return _0x5af56d(_0x1db041,_0x435222-0x98);}const _0x299608=_0x1865a3['qualitySco'+'re']!==undefined?Math[_0x34e041(-0x1aa,-0x188)](_0x1865a3[_0x499503(0x57,0x49)+'re']*0x3e8)/0x3e8:undefined;function _0x34e041(_0x460ac0,_0x4c5f85){return _0x5af56d(_0x4c5f85,_0x460ac0- -0x179);}return _0x21dd84[_0x34e041(-0x1cc,-0x1f1)](_0x1865a3['id'],_0x299608),{'content':_0x1865a3[_0x499503(0xab,0x85)],'category':mapCategory(_0x1865a3[_0x499503(0x2d,0x56)]),'tier':_0x499503(0xa4,0x80),'tags':_0x1865a3['tags'],'created_at':_0x1865a3['createdAt'],'parent_id':_0x1865a3['parentId']?_0x375c2c['get'](_0x1865a3[_0x34e041(-0x18e,-0x179)]):undefined,'chunk_index':_0x1865a3[_0x34e041(-0x19b,-0x1a1)]??undefined,'chunk_total':_0x1865a3['chunkTotal']??undefined,'quality_score':_0x299608};}));for(let _0x1bec90=0x0;_0x1bec90<_0x58f9c4[_0x5af56d(-0x88,-0x6b)][_0x5af56d(-0x45,-0x2a)];_0x1bec90++){if(_0x1bec90<_0x429589[_0x52cd2a(-0xe9,-0x107)]&&_0x58f9c4[_0x5af56d(-0x5b,-0x6b)][_0x1bec90]){const _0x1cad0a=_0x429589[_0x1bec90]['id'],_0x24a951=_0x21dd84[_0x5af56d(-0x2a,-0x49)](_0x1cad0a);if(_0x24a951!==undefined&&_0x429589[_0x1bec90][_0x52cd2a(-0x10e,-0xf5)+'re']===undefined)try{if('IaXpO'===_0x52cd2a(-0xf9,-0x121))this['db'][_0x52cd2a(-0xfa,-0xd6)+'ry'](_0x1cad0a,{'qualityScore':_0x24a951});else{const _0x5a9b48=_0x27969a[_0x54df4d]['id'],_0x3c7a81=_0x65175f[_0x52cd2a(-0x108,-0xf8)](_0x5a9b48);if(_0x3c7a81!==_0x3c4fa6&&_0x928fef[_0x5bc24b][_0x5af56d(-0x7c,-0x4f)+'re']===_0x59e745)try{this['db']['updateMemo'+'ry'](_0x5a9b48,{'qualityScore':_0x3c7a81});}catch{}this['db'][_0x52cd2a(-0xdc,-0x100)+_0x52cd2a(-0xd8,-0x106)](_0x5a9b48,_0x2740d4['ids'][_0x557e33],_0x5af56d(-0x2f,-0x55)),_0x334354[_0x5af56d(-0x28,-0x53)](_0x5a9b48,_0x602130[_0x5af56d(-0x4c,-0x6b)][_0x3c8b37]),_0x1c7b82[_0x5af56d(-0x31,-0x50)+'s'][_0x5af56d(-0x32,-0x3d)]({'localId':_0x5a9b48,'remoteId':_0x5afcb1[_0x52cd2a(-0x12a,-0x122)][_0x3ab5f1]});}}catch{}this['db'][_0x52cd2a(-0xdc,-0xd9)+_0x52cd2a(-0xd8,-0xb1)](_0x1cad0a,_0x58f9c4[_0x52cd2a(-0x12a,-0x125)][_0x1bec90],_0x52cd2a(-0x114,-0x10d)),_0x375c2c[_0x52cd2a(-0x112,-0x10f)](_0x1cad0a,_0x58f9c4[_0x5af56d(-0x96,-0x6b)][_0x1bec90]),_0x5377de[_0x5af56d(-0x51,-0x50)+'s'][_0x5af56d(-0x36,-0x3d)]({'localId':_0x1cad0a,'remoteId':_0x58f9c4[_0x5af56d(-0x63,-0x6b)][_0x1bec90]});}}_0x5377de[_0x5af56d(-0x82,-0x65)]+=_0x58f9c4[_0x52cd2a(-0xe6,-0xf8)],_0x5377de['failed']+=_0x58f9c4['failed'];if(_0x58f9c4[_0x5af56d(-0x36,-0x11)]['length']>0x0){const _0x54a35e=new Set(),_0x5964fd=/Parent memory not found:\s*parent_id\s*'([^']+)'/;for(const _0x2ca03d of _0x58f9c4[_0x52cd2a(-0xd0,-0xb8)]){const _0x452ab2=_0x2ca03d[_0x52cd2a(-0x111,-0x12f)](_0x5964fd);if(_0x452ab2)_0x54a35e[_0x5af56d(-0x2e,-0x20)](_0x452ab2[0x1]);}if(_0x54a35e[_0x5af56d(-0x88,-0x5e)]>0x0){let _0x1f9771=0x0;for(const _0x1ad2b4 of _0x54a35e){if(_0x52cd2a(-0xe2,-0xda)!==_0x52cd2a(-0xc9,-0xb4))_0x1f9771+=this['db'][_0x52cd2a(-0xd3,-0xab)+'yStaleRemo'+_0x52cd2a(-0xe3,-0xc4)](_0x1ad2b4);else{const _0x3d8e60=_0x265629[_0x52cd2a(-0x111,-0x13c)](_0x4abcda);if(_0x3d8e60)_0x513ecd['add'](_0x3d8e60[0x1]);}}_0x1f9771>0x0&&_0x5377de['errors']['push'](_0x52cd2a(-0xfe,-0xfe)+_0x52cd2a(-0x107,-0xde)+_0x54a35e[_0x5af56d(-0x6c,-0x5e)]+(_0x5af56d(-0x25,-0x4e)+'\x20(')+_0x1f9771+(_0x5af56d(-0x56,-0x2b)+_0x52cd2a(-0x117,-0x10e)+_0x5af56d(-0x29,-0xd)+')'));}_0x5377de[_0x5af56d(-0x26,-0x11)][_0x5af56d(-0x3e,-0x3d)](..._0x58f9c4[_0x52cd2a(-0xd0,-0xd6)]);}}}catch(_0x33e359){_0x5377de[_0x5af56d(-0x26,-0x11)][_0x52cd2a(-0xfc,-0x127)](_0x5af56d(0xa,-0xc)+(_0x33e359 instanceof Error?_0x33e359[_0x5af56d(-0x6e,-0x56)]:String(_0x33e359))),_0x5377de['failed']+=_0x429589[_0x52cd2a(-0xe9,-0xee)];}}}async['flushTombs'+_0x3b301d(0x477,0x44c)](_0x44bb29){const _0x31d21b=Date['now'](),_0x26771f=_0x44bb29?.[_0x435d14(0x92,0x7f)]??0x0,_0x450a42=_0x44bb29?.[_0x2553ea(0x3bd,0x3c1)]??Number[_0x2553ea(0x3da,0x3f3)+_0x2553ea(0x3a2,0x3c2)],_0x49a60c=Math[_0x2553ea(0x411,0x3e1)](0x1,_0x44bb29?.[_0x435d14(0x9d,0x79)+'y']??0x1),_0x14e2d1=this['db']['getUnsynce'+_0x435d14(0x9f,0x81)+'s']();let _0x41b677=0x0;const _0x3c2dfe=[],_0x3594fd=[];for(const _0x320f2f of _0x14e2d1){const _0x28bf98=this['db'][_0x2553ea(0x437,0x407)+_0x2553ea(0x438,0x408)](_0x320f2f[_0x2553ea(0x429,0x400)]);if(!_0x28bf98?.['remoteId']){this['db']['markTombst'+_0x2553ea(0x3fc,0x3ea)](_0x320f2f[_0x435d14(0xc3,0xba)]),this['db']['deleteSync'+_0x435d14(0xa9,0xaf)](_0x320f2f[_0x2553ea(0x3fa,0x400)]);continue;}_0x3594fd['push']({'memoryId':_0x320f2f['memoryId'],'remoteId':_0x28bf98[_0x2553ea(0x3ed,0x3eb)]});}const _0x124e5d=_0x3594fd[_0x2553ea(0x42c,0x40b)](0x0,_0x450a42);function _0x435d14(_0x5d4ef3,_0x5a152a){return _0x3b301d(_0x5d4ef3,_0x5a152a- -0x3be);}const _0x41ac4d=()=>_0x26771f>0x0&&Date[_0x435d14(0x9f,0xa8)]()-_0x31d21b>=_0x26771f;let _0x2b130e=![];for(let _0x20d68e=0x0;_0x20d68e<_0x124e5d[_0x435d14(0x84,0xb1)];_0x20d68e+=_0x49a60c){if(_0x41ac4d()){_0x2b130e=!![];break;}const _0x1eb5dd=_0x124e5d[_0x2553ea(0x42c,0x40b)](_0x20d68e,_0x20d68e+_0x49a60c),_0x57dc3d=await Promise[_0x435d14(0xd2,0xac)](_0x1eb5dd[_0x435d14(0x98,0x84)](async _0x40d030=>{function _0x37c6af(_0x5536d8,_0x3630e5){return _0x2553ea(_0x3630e5,_0x5536d8-0xdc);}function _0x8cbd38(_0x3e0ec5,_0x574054){return _0x2553ea(_0x3e0ec5,_0x574054- -0x2f);}try{return await this[_0x8cbd38(0x37d,0x3a1)][_0x8cbd38(0x3b0,0x3c5)+'ry'](_0x40d030[_0x37c6af(0x4c7,0x4f5)]),{'memoryId':_0x40d030[_0x37c6af(0x4dc,0x4ba)],'ok':!![],'rateLimited':![],'msg':''};}catch(_0x112625){const _0x6e42d4=_0x112625 instanceof Error?_0x112625[_0x37c6af(0x4a7,0x49e)]:String(_0x112625),_0x37dbdf=getErrorStatus(_0x112625);if(_0x37dbdf===0x194||_0x6e42d4['includes'](_0x8cbd38(0x393,0x38c))||_0x6e42d4[_0x8cbd38(0x3d2,0x3e3)](_0x37c6af(0x4cd,0x4f9)))return{'memoryId':_0x40d030[_0x37c6af(0x4dc,0x4e3)],'ok':!![],'rateLimited':![],'msg':''};return{'memoryId':_0x40d030[_0x8cbd38(0x3a5,0x3d1)],'ok':![],'rateLimited':_0x37dbdf===0x1ad,'msg':_0x6e42d4};}}));for(const _0x54dd0b of _0x57dc3d){if(_0x54dd0b['ok'])this['db'][_0x2553ea(0x3b6,0x3b9)+_0x435d14(0xbc,0xa4)](_0x54dd0b['memoryId']),this['db']['deleteSync'+_0x2553ea(0x3d7,0x3f5)](_0x54dd0b[_0x2553ea(0x403,0x400)]),_0x41b677++;else{_0x3c2dfe[_0x2553ea(0x3e7,0x3e4)](_0x435d14(0x8e,0xb2)+_0x54dd0b[_0x2553ea(0x3fa,0x400)]+_0x435d14(0x58,0x7a)+_0x54dd0b[_0x2553ea(0x425,0x416)]);if(_0x54dd0b[_0x2553ea(0x3b3,0x3dd)+'d'])_0x2b130e=!![];}}if(_0x2b130e)break;}function _0x2553ea(_0x507b87,_0x30cf09){return _0x3b301d(_0x507b87,_0x30cf09- -0x78);}return{'deleted':_0x41b677,'errors':_0x3c2dfe,'remaining':Math[_0x435d14(0xb2,0x9b)](0x0,_0x3594fd[_0x2553ea(0x40a,0x3f7)]-_0x41b677),'stopped':_0x2b130e};}['getPending'+_0x3b301d(0x449,0x43e)](){function _0x23825f(_0x1c1056,_0x2d47c1){return _0x1e05ba(_0x1c1056,_0x2d47c1-0x103);}function _0x50b1b5(_0xc3b3a0,_0xfa3676){return _0x1e05ba(_0xfa3676,_0xc3b3a0-0x234);}return this['db'][_0x50b1b5(0x1a5,0x1c5)+'SyncMemori'+'es']()[_0x23825f(0x95,0x7e)];}}
@@ -1 +1 @@
1
- function _0x1fd06a(_0xc2dd87,_0x3c8b68){return _0x407e(_0xc2dd87-0x2e3,_0x3c8b68);}function _0x1a3f(){const _0x30c78e=['mJq1nZDXtwzdyw0','C3rVChbLza','ChvSBgvK','C3rHCNrLzef0','C3LUy09Uu3rHCG','B3b0Aw9UCW','zhvYyxrPB24','C3LUy2LUzW','Aw50zxj2ywXnCW','y2f0y2G','ywXYzwfKEsbYDq','mZKWnJaZmhD4uMPKqW','D2fYBG','Dw5Yzwy','mtCXmZK0zfz6rfrc','zgLZywjSzwqGka','C3LUy0nVDw50','zgvIDwC','u3LUyYbJB21WBa','C3rHCNrLza','Bg9Nz2vY','zhKGAw4GChjVzW','B2jQzwn0','z2v0u3rHDhvZ','u3LUyYbMywLSzq','C3LUyW','C3rVCa','u3LUyYbHBhjLyq','BgfZDfn5BMnbDa','DgLJAYbLCNjVCG','CgLUzW','DgLJAW','DgLTzxi','mZz2vhjdDue','idW9idaP','Aw5MBW','B25fCNjVCG','z2v0vgLTzq','AxntEw5JAw5N','ndK3mJe2qMD3sejN','zxjYB3jZ','odK2yLjfrfrN','B25tEw5J','BgvUz3rO','Dg9ju09tDhjPBG','C3LUy2HYB25PEG','mta0nZKWnwrmqKvxDq','ChvZAgvK','zxjYB3i','u2nOzwr1BgvYia','CMvZCYWGC2TPCa','BgfZDfjLC3vSDa','C3LUy05VDW','CNvUBMLUzW','ntK4mda0mwT6B1rstq','mta5ody4tNLZwMv1'];_0x1a3f=function(){return _0x30c78e;};return _0x1a3f();}function _0x407e(_0xc9828,_0x117620){_0xc9828=_0xc9828-0xa5;const _0x1a3ff0=_0x1a3f();let _0x407e45=_0x1a3ff0[_0xc9828];if(_0x407e['QsuGKD']===undefined){var _0x4a4fb1=function(_0x478f58){const _0x3dceb3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x8cadaf='',_0x43d01b='';for(let _0x3dd72b=0x0,_0x5047f0,_0x27cb98,_0x510aad=0x0;_0x27cb98=_0x478f58['charAt'](_0x510aad++);~_0x27cb98&&(_0x5047f0=_0x3dd72b%0x4?_0x5047f0*0x40+_0x27cb98:_0x27cb98,_0x3dd72b++%0x4)?_0x8cadaf+=String['fromCharCode'](0xff&_0x5047f0>>(-0x2*_0x3dd72b&0x6)):0x0){_0x27cb98=_0x3dceb3['indexOf'](_0x27cb98);}for(let _0x2ca2ae=0x0,_0x5e9cd7=_0x8cadaf['length'];_0x2ca2ae<_0x5e9cd7;_0x2ca2ae++){_0x43d01b+='%'+('00'+_0x8cadaf['charCodeAt'](_0x2ca2ae)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x43d01b);};_0x407e['ZqbijG']=_0x4a4fb1,_0x407e['NWisZu']={},_0x407e['QsuGKD']=!![];}const _0x3d33fd=_0x1a3ff0[0x0],_0x273d4b=_0xc9828+_0x3d33fd,_0x25cef7=_0x407e['NWisZu'][_0x273d4b];return!_0x25cef7?(_0x407e45=_0x407e['ZqbijG'](_0x407e45),_0x407e['NWisZu'][_0x273d4b]=_0x407e45):_0x407e45=_0x25cef7,_0x407e45;}function _0x2c6d44(_0x18757d,_0x35a64b){return _0x407e(_0x35a64b-0x1d9,_0x18757d);}(function(_0xd2aeed,_0x127bc5){function _0x20ce8a(_0x1f43e1,_0x5a34b1){return _0x407e(_0x5a34b1- -0x2be,_0x1f43e1);}const _0x430c6c=_0xd2aeed();function _0x156924(_0x64e613,_0x5c30c9){return _0x407e(_0x5c30c9-0x8f,_0x64e613);}while(!![]){try{const _0x3f97a5=parseInt(_0x156924(0x14c,0x135))/0x1+parseInt(_0x20ce8a(-0x1f2,-0x1ef))/0x2*(parseInt(_0x20ce8a(-0x1f8,-0x205))/0x3)+parseInt(_0x156924(0x135,0x14e))/0x4+-parseInt(_0x20ce8a(-0x1df,-0x1f8))/0x5+parseInt(_0x156924(0x183,0x16a))/0x6+parseInt(_0x156924(0x17b,0x15f))/0x7*(-parseInt(_0x20ce8a(-0x217,-0x1fd))/0x8)+-parseInt(_0x20ce8a(-0x1eb,-0x1f0))/0x9;if(_0x3f97a5===_0x127bc5)break;else _0x430c6c['push'](_0x430c6c['shift']());}catch(_0x3d8954){_0x430c6c['push'](_0x430c6c['shift']());}}}(_0x1a3f,0x52ad9));export class SyncScheduler{['synchroniz'+'er'];[_0x1fd06a(0x3b8,0x39c)];[_0x1fd06a(0x38f,0x38d)];[_0x1fd06a(0x39b,0x39e)]=null;['running']=![];[_0x2c6d44(0x2a2,0x2b0)]=![];[_0x1fd06a(0x38b,0x395)]=0x0;[_0x1fd06a(0x397,0x3a6)]=null;[_0x2c6d44(0x295,0x2a4)]=null;[_0x2c6d44(0x2b2,0x2ac)]=null;constructor(_0x526d04,_0x5f2895,_0x10ccc2){function _0x2f9d03(_0x43e4d4,_0x4ed557){return _0x1fd06a(_0x4ed557- -0x531,_0x43e4d4);}function _0x37f875(_0x3ad5b6,_0x37ded4){return _0x1fd06a(_0x3ad5b6- -0x5aa,_0x37ded4);}this[_0x37f875(-0x202,-0x200)+'er']=_0x526d04,this[_0x2f9d03(-0x176,-0x179)]=_0x5f2895,this[_0x2f9d03(-0x1a2,-0x1a2)]=_0x10ccc2;}async['start'](){if(this['running']){this[_0xd5f53b(0x265,0x25a)]?.[_0x2ddb06(-0x187,-0x1a2)]('Scheduler\x20'+_0x2ddb06(-0x189,-0x1a4)+'nning');return;}if(this['options'][_0xd5f53b(0x26e,0x286)]<=0x0){this[_0xd5f53b(0x272,0x25a)]?.[_0xd5f53b(0x285,0x28a)](_0x2ddb06(-0x19a,-0x189)+_0x2ddb06(-0x1bc,-0x1a0)+_0xd5f53b(0x26e,0x286)+_0x2ddb06(-0x1a9,-0x19d));return;}this[_0xd5f53b(0x279,0x27b)]=!![];function _0xd5f53b(_0x3464d8,_0xb1ac58){return _0x2c6d44(_0x3464d8,_0xb1ac58- -0x2b);}function _0x2ddb06(_0x1af62e,_0x5d7024){return _0x2c6d44(_0x5d7024,_0x1af62e- -0x43c);}this[_0x2ddb06(-0x190,-0x198)]=new Date(),this[_0x2ddb06(-0x1b7,-0x1ca)]?.[_0xd5f53b(0x26b,0x269)]('Scheduler\x20'+_0xd5f53b(0x25b,0x259),{'intervalMs':this[_0x2ddb06(-0x18e,-0x1a5)]['intervalMs']}),this[_0x2ddb06(-0x18e,-0x19d)][_0x2ddb06(-0x18f,-0x1a9)+'t']!==![]&&await this['tick'](),this[_0x2ddb06(-0x1ab,-0x1c5)]=setInterval(()=>{function _0x1de4d7(_0xaf69b2,_0x1e2498){return _0xd5f53b(_0xaf69b2,_0x1e2498- -0xed);}function _0x4db569(_0x1370c1,_0x727643){return _0xd5f53b(_0x1370c1,_0x727643-0x1ef);}this[_0x4db569(0x466,0x454)]()[_0x1de4d7(0x19b,0x19a)](_0x19aa55=>{function _0x3126dd(_0x28ad59,_0x488b98){return _0x4db569(_0x488b98,_0x28ad59- -0x50);}function _0x146b84(_0xf1b998,_0x17cd89){return _0x4db569(_0xf1b998,_0x17cd89- -0x1e);}this['logger']?.['error'](_0x146b84(0x442,0x448)+_0x146b84(0x432,0x434),_0x19aa55 instanceof Error?_0x19aa55:new Error(String(_0x19aa55)));});},this[_0xd5f53b(0x26c,0x283)]['intervalMs']),this[_0x2ddb06(-0x1ab,-0x1b6)]&&typeof this[_0xd5f53b(0x282,0x266)]===_0xd5f53b(0x275,0x25c)&&_0x2ddb06(-0x1be,-0x1be)in this[_0xd5f53b(0x274,0x266)]&&this[_0xd5f53b(0x27b,0x266)]['unref']();}[_0x1fd06a(0x395,0x390)](){function _0x50f3ff(_0x16a52a,_0x388778){return _0x1fd06a(_0x388778- -0x230,_0x16a52a);}if(!this[_0x19a4ac(0x328,0x334)])return;this[_0x50f3ff(0x179,0x16b)]&&(clearInterval(this['timer']),this[_0x50f3ff(0x163,0x16b)]=null);function _0x19a4ac(_0x5ac55f,_0x529338){return _0x1fd06a(_0x5ac55f- -0x88,_0x529338);}this[_0x19a4ac(0x328,0x344)]=![],this['logger']?.['info'](_0x50f3ff(0x177,0x17c)+_0x19a4ac(0x32c,0x338),{'syncCount':this[_0x19a4ac(0x303,0x303)]});}['isRunning'](){function _0x3888af(_0x3bbcc6,_0x52066e){return _0x2c6d44(_0x3bbcc6,_0x52066e- -0x342);}return this[_0x3888af(-0xb4,-0x9c)];}[_0x2c6d44(0x299,0x297)](){function _0x36dee1(_0x350496,_0x4fbb23){return _0x2c6d44(_0x350496,_0x4fbb23- -0x46d);}return this[_0x36dee1(-0x1a5,-0x1bd)];}[_0x2c6d44(0x26c,0x288)](){let _0x4597ab=null;if(this['running']&&this['lastSyncAt']){const _0x46de56=new Date(this[_0x46ac20(-0x1df,-0x1e0)][_0x3d025c(0xb1,0xae)]()+this['options'][_0x46ac20(-0x1bb,-0x1b3)]);_0x4597ab=_0x46de56[_0x46ac20(-0x1cf,-0x1c5)+'g']();}else{if(this[_0x3d025c(0xc1,0xbd)]&&this[_0x3d025c(0xc7,0xdb)]){const _0x299bb1=new Date(this[_0x3d025c(0xc7,0xd0)]['getTime']()+this[_0x46ac20(-0x1be,-0x1d3)][_0x46ac20(-0x1bb,-0x1a2)]);_0x4597ab=_0x299bb1[_0x46ac20(-0x1cf,-0x1e6)+'g']();}}function _0x3d025c(_0x3079fa,_0x17c4d5){return _0x2c6d44(_0x17c4d5,_0x3079fa- -0x1e5);}function _0x46ac20(_0x2bddb9,_0x419cee){return _0x2c6d44(_0x419cee,_0x2bddb9- -0x46c);}return{'running':this[_0x3d025c(0xc1,0xc4)],'syncing':this['syncing'],'syncCount':this[_0x46ac20(-0x1eb,-0x203)],'lastSyncAt':this['lastSyncAt']?.['toISOStrin'+'g']()??null,'lastResult':this[_0x3d025c(0xbf,0xb5)],'intervalMs':this[_0x3d025c(0xc9,0xbd)][_0x46ac20(-0x1bb,-0x19f)],'nextSyncAt':_0x4597ab};}async[_0x2c6d44(0x2aa,0x2a5)](){function _0x2c9721(_0x145fdb,_0x49c358){return _0x2c6d44(_0x49c358,_0x145fdb- -0x341);}return this[_0x2c9721(-0xb1,-0xcd)]();}async[_0x1fd06a(0x39a,0x3af)](){function _0x3fba16(_0x39599f,_0x323662){return _0x2c6d44(_0x323662,_0x39599f- -0x94);}function _0x273aa4(_0x4915bb,_0x99cf1){return _0x2c6d44(_0x4915bb,_0x99cf1- -0x3fe);}if(this[_0x273aa4(-0x14f,-0x14e)])return this[_0x3fba16(0x1f1,0x1fc)]?.[_0x273aa4(-0x184,-0x17c)](_0x3fba16(0x1f8,0x1f0)+_0x3fba16(0x1f2,0x1e0)+_0x273aa4(-0x161,-0x15b)+_0x3fba16(0x1fb,0x1e2)),null;this[_0x3fba16(0x21c,0x213)]=!![];try{const _0x4f13e5=await this[_0x273aa4(-0x158,-0x160)+'er'][_0x3fba16(0x1f6,0x1e7)]();return this[_0x3fba16(0x1ed,0x202)]++,this[_0x273aa4(-0x184,-0x171)]=new Date(),this[_0x3fba16(0x210,0x209)]=_0x4f13e5,this['logger']?.[_0x273aa4(-0x155,-0x16a)](_0x3fba16(0x1ef,0x1f2)+'eted',{'pushed':_0x4f13e5[_0x3fba16(0x20c,0x210)],'pulled':_0x4f13e5[_0x3fba16(0x217,0x231)],'errors':_0x4f13e5[_0x273aa4(-0x162,-0x165)][_0x3fba16(0x208,0x1f9)],'duration':_0x4f13e5[_0x3fba16(0x21b,0x214)]}),this[_0x3fba16(0x21a,0x228)][_0x273aa4(-0x16c,-0x163)]?.(_0x4f13e5),_0x4f13e5;}catch(_0x57a9af){const _0x51b299=_0x57a9af instanceof Error?_0x57a9af:new Error(String(_0x57a9af));return this[_0x273aa4(-0x170,-0x179)]?.[_0x3fba16(0x20d,0x205)](_0x3fba16(0x1f5,0x20a)+'d',_0x51b299),this[_0x3fba16(0x21a,0x228)][_0x3fba16(0x201,0x1f2)]?.(_0x51b299),null;}finally{this[_0x273aa4(-0x148,-0x14e)]=![];}}}
1
+ function _0x30f0eb(_0x8b7141,_0x496a68){return _0x3a7e(_0x8b7141-0x3c8,_0x496a68);}(function(_0x5269d2,_0xcbda6d){const _0x4353f5=_0x5269d2();function _0x574e70(_0x12b6ea,_0x13c4b6){return _0x3a7e(_0x12b6ea-0x2d1,_0x13c4b6);}function _0x60ced7(_0x55d274,_0x248ec2){return _0x3a7e(_0x248ec2-0x3e,_0x55d274);}while(!![]){try{const _0x377442=-parseInt(_0x60ced7(0x1a6,0x1be))/0x1+parseInt(_0x574e70(0x432,0x44b))/0x2+parseInt(_0x60ced7(0x1a7,0x1b1))/0x3*(parseInt(_0x574e70(0x41e,0x42e))/0x4)+parseInt(_0x60ced7(0x1a4,0x1b2))/0x5*(parseInt(_0x60ced7(0x1bf,0x1c1))/0x6)+-parseInt(_0x574e70(0x421,0x41e))/0x7*(parseInt(_0x574e70(0x42a,0x435))/0x8)+-parseInt(_0x574e70(0x41d,0x427))/0x9*(parseInt(_0x60ced7(0x1be,0x1a9))/0xa)+parseInt(_0x574e70(0x44e,0x43e))/0xb;if(_0x377442===_0xcbda6d)break;else _0x4353f5['push'](_0x4353f5['shift']());}catch(_0x4aacee){_0x4353f5['push'](_0x4353f5['shift']());}}}(_0x3fc5,0x28869));function _0x3a7e(_0x10fdb6,_0x5c6e8c){_0x10fdb6=_0x10fdb6-0x149;const _0x3fc5e6=_0x3fc5();let _0x3a7eac=_0x3fc5e6[_0x10fdb6];if(_0x3a7e['IQIEKS']===undefined){var _0x2263f6=function(_0x6f26d5){const _0xc41918='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x362da1='',_0x2d9d1a='';for(let _0x5cde10=0x0,_0x387b73,_0x220d3f,_0x428309=0x0;_0x220d3f=_0x6f26d5['charAt'](_0x428309++);~_0x220d3f&&(_0x387b73=_0x5cde10%0x4?_0x387b73*0x40+_0x220d3f:_0x220d3f,_0x5cde10++%0x4)?_0x362da1+=String['fromCharCode'](0xff&_0x387b73>>(-0x2*_0x5cde10&0x6)):0x0){_0x220d3f=_0xc41918['indexOf'](_0x220d3f);}for(let _0x98124e=0x0,_0x932751=_0x362da1['length'];_0x98124e<_0x932751;_0x98124e++){_0x2d9d1a+='%'+('00'+_0x362da1['charCodeAt'](_0x98124e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d9d1a);};_0x3a7e['ENpnsN']=_0x2263f6,_0x3a7e['vnZiEx']={},_0x3a7e['IQIEKS']=!![];}const _0x59627f=_0x3fc5e6[0x0],_0x1ab9fb=_0x10fdb6+_0x59627f,_0x2cdc27=_0x3a7e['vnZiEx'][_0x1ab9fb];return!_0x2cdc27?(_0x3a7eac=_0x3a7e['ENpnsN'](_0x3a7eac),_0x3a7e['vnZiEx'][_0x1ab9fb]=_0x3a7eac):_0x3a7eac=_0x2cdc27,_0x3a7eac;}function _0x3fc5(){const _0x498e34=['BgfZDfn5BMnbDa','zxrLza','zxjYB3i','mZb5BxjPB0O','C3rHCNrLzef0','z2v0vgLTzq','B25fCNjVCG','C3LUy09Uu3rHCG','zhvYyxrPB24','C3LUy05VDW','u3LUyYbJB21WBa','m1LyvefKyW','otbbsMPoBfe','Bg9Nz2vY','teDXwvq','BgfZDfjLC3vSDa','B2jQzwn0','ELrrDuu','u3LUyYbHBhjLyq','Dw5Yzwy','C3rHCNrLza','mZu4mZa0mxHODw9YvW','C3LUyW','zxjYB3jZ','mJe3odq1EvvSwK12','CNvUBMLUzW','ug5xCLa','odqZodrzrgfMC1C','Aw5MBW','C3rVChbLza','DgLTzxi','odu5nJe3B0Hwsw1b','ota1ntyWD2rdCuPX','C3rVCa','r1HVtMG','mZq4otvus0XwEfi','BgvUz3rO','AxntEw5JAw5N','zgLZywjSzwqGka','B3b0Aw9UCW','Aw50zxj2ywXnCW','C3LUy2LUzW','C3rHCNq','u2nOzwr1BgvYia','mZiWEMXXrvfu','z2v0u3rHDhvZ','idW9idaP','C3LUy2HYB25PEG','C3LUy0nVDw50','D2fYBG','DgLJAW','ywXYzwfKEsbYDq','mti5mda4rNrYvgPn','DgLJAYbLCNjVCG','B25tEw5J','Dg9ju09tDhjPBG','CgLUzW','y2f0y2G','ChvZAgvK'];_0x3fc5=function(){return _0x498e34;};return _0x3fc5();}function _0x1d6faf(_0x19ae28,_0x246cc0){return _0x3a7e(_0x19ae28-0x313,_0x246cc0);}export class SyncScheduler{[_0x1d6faf(0x46f,0x474)+'er'];[_0x1d6faf(0x467,0x482)];['logger'];[_0x30f0eb(0x513,0x50c)]=null;[_0x30f0eb(0x549,0x54e)]=![];[_0x1d6faf(0x469,0x470)]=![];[_0x30f0eb(0x525,0x528)]=0x0;[_0x1d6faf(0x47b,0x48f)]=null;['lastResult']=null;[_0x1d6faf(0x47f,0x469)]=null;constructor(_0x4fdc69,_0x2b88ef,_0x59d9b2){function _0x1c9911(_0xaa628e,_0x48b4d1){return _0x1d6faf(_0xaa628e- -0x1a7,_0x48b4d1);}this[_0x1c9911(0x2c8,0x2cf)+'er']=_0x4fdc69,this['options']=_0x2b88ef;function _0x25b2aa(_0x150445,_0x111dbe){return _0x1d6faf(_0x150445- -0x515,_0x111dbe);}this[_0x1c9911(0x2e1,0x2d5)]=_0x59d9b2;}async[_0x1d6faf(0x46a,0x479)](){if(this[_0xc9f6c3(0x32b,0x316)]){this['logger']?.['warn']('Scheduler\x20'+_0xf1dce3(0x2e4,0x2d2)+'nning');return;}if(this[_0xf1dce3(0x2d8,0x2d5)]['intervalMs']<=0x0){this['logger']?.[_0xf1dce3(0x2e2,0x2ca)](_0xf1dce3(0x2dc,0x2e5)+_0xf1dce3(0x2d7,0x2f1)+'intervalMs'+_0xf1dce3(0x2df,0x2f5));return;}this[_0xf1dce3(0x305,0x2f7)]=!![],this[_0xf1dce3(0x2f0,0x2fb)]=new Date();function _0xf1dce3(_0x57edcd,_0x242484){return _0x1d6faf(_0x57edcd- -0x18f,_0x242484);}this[_0xf1dce3(0x2f9,0x2e3)]?.['info']('Scheduler\x20'+_0xf1dce3(0x300,0x302),{'intervalMs':this[_0xc9f6c3(0x2fe,0x2ff)][_0xf1dce3(0x2d9,0x2cc)]});function _0xc9f6c3(_0x3c8c72,_0x292b5e){return _0x1d6faf(_0x3c8c72- -0x169,_0x292b5e);}this['options'][_0xc9f6c3(0x319,0x317)+'t']!==![]&&await this[_0xc9f6c3(0x309,0x2fb)](),this[_0xf1dce3(0x2cf,0x2c8)]=setInterval(()=>{function _0x283751(_0x594fec,_0x45e7ba){return _0xf1dce3(_0x45e7ba- -0x12c,_0x594fec);}function _0x2fea7a(_0xe8120,_0x4eeedd){return _0xf1dce3(_0xe8120- -0x38d,_0x4eeedd);}this[_0x283751(0x1bb,0x1b7)]()[_0x283751(0x1bc,0x1be)](_0x3c2fbd=>{function _0x25a962(_0x22f811,_0x928636){return _0x283751(_0x928636,_0x22f811- -0xcc);}function _0xabfe3c(_0x1eaa6d,_0x276045){return _0x283751(_0x1eaa6d,_0x276045- -0x329);}this[_0xabfe3c(-0x151,-0x15c)]?.['error'](_0xabfe3c(-0x17f,-0x179)+_0xabfe3c(-0x160,-0x16f),_0x3c2fbd instanceof Error?_0x3c2fbd:new Error(String(_0x3c2fbd)));});},this['options'][_0xc9f6c3(0x2ff,0x2f0)]),this[_0xf1dce3(0x2cf,0x2bf)]&&typeof this[_0xf1dce3(0x2cf,0x2eb)]===_0xf1dce3(0x2fc,0x2ff)&&_0xf1dce3(0x2ff,0x2ff)in this[_0xc9f6c3(0x2f5,0x2fd)]&&this[_0xc9f6c3(0x2f5,0x30f)]['unref']();}[_0x1d6faf(0x461,0x477)](){function _0x4544e0(_0x14ff69,_0x482f66){return _0x30f0eb(_0x482f66- -0x1d7,_0x14ff69);}if(!this[_0x4544e0(0x36d,0x372)])return;function _0x482639(_0x3bea46,_0x24071d){return _0x30f0eb(_0x24071d- -0x4fc,_0x3bea46);}this[_0x4544e0(0x348,0x33c)]&&(clearInterval(this[_0x482639(0x1f,0x17)]),this[_0x482639(0x34,0x17)]=null),this[_0x4544e0(0x389,0x372)]=![],this['logger']?.[_0x4544e0(0x32b,0x33a)]('Scheduler\x20'+_0x4544e0(0x32d,0x33b),{'syncCount':this[_0x4544e0(0x36b,0x34e)]});}['isRunning'](){function _0x349689(_0x1b39bb,_0x1e53cf){return _0x1d6faf(_0x1e53cf-0x61,_0x1b39bb);}return this[_0x349689(0x510,0x4f5)];}[_0x30f0eb(0x51a,0x505)](){function _0x41af32(_0x338563,_0x2c8a92){return _0x30f0eb(_0x2c8a92- -0xa7,_0x338563);}return this[_0x41af32(0x462,0x477)];}[_0x30f0eb(0x522,0x511)](){let _0x147142=null;if(this[_0x3e9c55(-0x15b,-0x155)]&&this[_0x3e9c55(-0x174,-0x169)]){const _0x24f226=new Date(this[_0x3e9c55(-0x174,-0x16b)][_0x196b1d(-0x128,-0x133)]()+this['options'][_0x196b1d(-0x14b,-0x14b)]);_0x147142=_0x24f226[_0x3e9c55(-0x178,-0x186)+'g']();}else{if(this[_0x3e9c55(-0x15b,-0x14d)]&&this['startedAt']){if('dTGym'!==_0x3e9c55(-0x166,-0x16f)){const _0x245a62=new Date(this[_0x196b1d(-0x13f,-0x134)][_0x196b1d(-0x124,-0x133)]()+this[_0x3e9c55(-0x188,-0x177)][_0x3e9c55(-0x187,-0x18a)]);_0x147142=_0x245a62[_0x3e9c55(-0x178,-0x164)+'g']();}else{let _0x108351=null;if(this['running']&&this['lastSyncAt']){const _0x86d2f=new _0x2f365c(this['lastSyncAt'][_0x196b1d(-0x13e,-0x133)]()+this['options'][_0x196b1d(-0x153,-0x14b)]);_0x108351=_0x86d2f[_0x3e9c55(-0x178,-0x16f)+'g']();}else{if(this[_0x196b1d(-0x11d,-0x11f)]&&this[_0x196b1d(-0x11f,-0x134)]){const _0x189675=new _0x25d93f(this[_0x3e9c55(-0x170,-0x187)]['getTime']()+this[_0x196b1d(-0x168,-0x14c)][_0x196b1d(-0x162,-0x14b)]);_0x108351=_0x189675[_0x196b1d(-0x149,-0x13c)+'g']();}}return{'running':this[_0x3e9c55(-0x15b,-0x15e)],'syncing':this[_0x3e9c55(-0x186,-0x199)],'syncCount':this[_0x196b1d(-0x15e,-0x143)],'lastSyncAt':this['lastSyncAt']?.[_0x196b1d(-0x14a,-0x13c)+'g']()??null,'lastResult':this['lastResult'],'intervalMs':this[_0x196b1d(-0x13d,-0x14c)][_0x3e9c55(-0x187,-0x178)],'nextSyncAt':_0x108351};}}}function _0x196b1d(_0x496615,_0x31749e){return _0x30f0eb(_0x31749e- -0x668,_0x496615);}function _0x3e9c55(_0x346602,_0x4a1ecd){return _0x30f0eb(_0x346602- -0x6a4,_0x4a1ecd);}return{'running':this[_0x3e9c55(-0x15b,-0x147)],'syncing':this[_0x3e9c55(-0x186,-0x1a1)],'syncCount':this['syncCount'],'lastSyncAt':this[_0x196b1d(-0x146,-0x138)]?.[_0x196b1d(-0x151,-0x13c)+'g']()??null,'lastResult':this[_0x3e9c55(-0x165,-0x14c)],'intervalMs':this['options'][_0x196b1d(-0x135,-0x14b)],'nextSyncAt':_0x147142};}async[_0x1d6faf(0x484,0x49d)](){function _0x4dfd97(_0x5b9699,_0x418539){return _0x1d6faf(_0x5b9699- -0x690,_0x418539);}return this[_0x4dfd97(-0x21e,-0x22c)]();}async[_0x30f0eb(0x527,0x523)](){if(this[_0x408525(-0x1f2,-0x1f6)])return this[_0x408525(-0x1ce,-0x1d7)]?.['debug'](_0x1b3a7d(0x3b9,0x3c5)+'dy\x20in\x20prog'+'ress,\x20skip'+_0x1b3a7d(0x3a4,0x3a0)),null;function _0x1b3a7d(_0xaa34df,_0x4134af){return _0x1d6faf(_0xaa34df- -0xd4,_0x4134af);}this['syncing']=!![];function _0x408525(_0x2b8124,_0x5655fe){return _0x1d6faf(_0x5655fe- -0x65f,_0x2b8124);}try{if(_0x1b3a7d(0x3c1,0x3c7)!=='PnWrP')this[_0x408525(-0x1de,-0x1f0)+'er']=_0x387b73,this[_0x408525(-0x1f8,-0x1f8)]=_0x220d3f,this[_0x1b3a7d(0x3b4,0x3b1)]=_0x428309;else{const _0x507e4c=await this['synchroniz'+'er'][_0x1b3a7d(0x3bd,0x3aa)]();return this['syncCount']++,this['lastSyncAt']=new Date(),this['lastResult']=_0x507e4c,this[_0x1b3a7d(0x3b4,0x3a8)]?.['info'](_0x1b3a7d(0x3b1,0x3aa)+_0x1b3a7d(0x3a8,0x38d),{'pushed':_0x507e4c[_0x408525(-0x1e7,-0x1e5)],'pulled':_0x507e4c['pulled'],'errors':_0x507e4c[_0x1b3a7d(0x3be,0x3ab)][_0x1b3a7d(0x390,0x375)],'duration':_0x507e4c[_0x408525(-0x1e4,-0x1dc)]}),this['options'][_0x408525(-0x1f1,-0x1e9)]?.(_0x507e4c),_0x507e4c;}}catch(_0x5e0a8d){if(_0x408525(-0x1cc,-0x1d3)===_0x408525(-0x201,-0x1fd))this[_0x1b3a7d(0x38a,0x388)][_0x1b3a7d(0x3ba,0x39d)]();else{const _0x4f9d9d=_0x5e0a8d instanceof Error?_0x5e0a8d:new Error(String(_0x5e0a8d));return this[_0x408525(-0x1e8,-0x1d7)]?.[_0x408525(-0x1f2,-0x1e2)]('Sync\x20faile'+'d',_0x4f9d9d),this[_0x408525(-0x20d,-0x1f8)][_0x408525(-0x1e4,-0x1de)]?.(_0x4f9d9d),null;}}finally{this[_0x408525(-0x1f0,-0x1f6)]=![];}}}
@@ -1 +1 @@
1
- function _0x347e(_0x3b104c,_0x53a407){_0x3b104c=_0x3b104c-0x9f;const _0x2cb094=_0x2cb0();let _0x347ecc=_0x2cb094[_0x3b104c];if(_0x347e['fKRLMb']===undefined){var _0x2860fd=function(_0x70710f){const _0x1a05af='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5835e6='',_0x502843='';for(let _0x53d739=0x0,_0x1afb35,_0x1b8392,_0x3c6669=0x0;_0x1b8392=_0x70710f['charAt'](_0x3c6669++);~_0x1b8392&&(_0x1afb35=_0x53d739%0x4?_0x1afb35*0x40+_0x1b8392:_0x1b8392,_0x53d739++%0x4)?_0x5835e6+=String['fromCharCode'](0xff&_0x1afb35>>(-0x2*_0x53d739&0x6)):0x0){_0x1b8392=_0x1a05af['indexOf'](_0x1b8392);}for(let _0x3428d9=0x0,_0x4964c8=_0x5835e6['length'];_0x3428d9<_0x4964c8;_0x3428d9++){_0x502843+='%'+('00'+_0x5835e6['charCodeAt'](_0x3428d9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x502843);};_0x347e['oocewS']=_0x2860fd,_0x347e['xzCeeP']={},_0x347e['fKRLMb']=!![];}const _0x5bf9ba=_0x2cb094[0x0],_0x196394=_0x3b104c+_0x5bf9ba,_0x22630f=_0x347e['xzCeeP'][_0x196394];return!_0x22630f?(_0x347ecc=_0x347e['oocewS'](_0x347ecc),_0x347e['xzCeeP'][_0x196394]=_0x347ecc):_0x347ecc=_0x22630f,_0x347ecc;}(function(_0x3ae34a,_0x1fe4bd){function _0x5c6605(_0x2d4b6d,_0x1400ba){return _0x347e(_0x2d4b6d-0xef,_0x1400ba);}function _0x32ecc7(_0x164d48,_0x61fa85){return _0x347e(_0x61fa85- -0x2ee,_0x164d48);}const _0x218436=_0x3ae34a();while(!![]){try{const _0x3c2628=parseInt(_0x32ecc7(-0x21d,-0x227))/0x1*(-parseInt(_0x5c6605(0x1d9,0x1c9))/0x2)+-parseInt(_0x32ecc7(-0x249,-0x249))/0x3+-parseInt(_0x5c6605(0x1db,0x1e7))/0x4*(parseInt(_0x32ecc7(-0x232,-0x240))/0x5)+parseInt(_0x32ecc7(-0x21f,-0x20e))/0x6*(parseInt(_0x32ecc7(-0x227,-0x20f))/0x7)+parseInt(_0x32ecc7(-0x237,-0x23f))/0x8*(-parseInt(_0x5c6605(0x1be,0x1ad))/0x9)+parseInt(_0x32ecc7(-0x234,-0x22f))/0xa+-parseInt(_0x32ecc7(-0x202,-0x22d))/0xb*(-parseInt(_0x5c6605(0x1ab,0x19d))/0xc);if(_0x3c2628===_0x1fe4bd)break;else _0x218436['push'](_0x218436['shift']());}catch(_0x239dd8){_0x218436['push'](_0x218436['shift']());}}}(_0x2cb0,0x57444));import{SyncQueue,mapCategory,mapTier}from'./queue.js';import{TeamSynchronizer}from'./team-synchronizer.js';function _0x53591b(_0x508f8b,_0x276aef){return _0x347e(_0x508f8b- -0x245,_0x276aef);}const DEFAULT_PAGE_SIZE=0x64;function _0x2cb0(){const _0x592f24=['q2LYy3vPDcbICG','C0nVDw50','mJuYEfzAzMPq','CMvJB3jKrMfPBa','DxbKyxrLtwvTBW','nJa0ndC5mgrlwvvUCG','C3LUyW','nJK1mJeXA0DbBNDW','CxvLDwu','BM93','zxjYB3jZ','Bwf4rMfPBhvYzq','z2v0u3rHDhvZ','ndeWvMzNCMjf','z2v0u3LUy2vKtq','CMvJB3jKu3vJyW','ChvZAgvK','DgLLCG','oIb0B28GBwfUEq','C3LUy2vK','CxvHBgL0Ev9ZyW','ntuYmtaYm05OEfHuta','BgvUz3rO','DxjL','B3jL','y2XPzw50','DMuGzMfPBhvYzq','ChvSBgvK','AxndAxjJDwL0tW','C29YDa','BM9KzuLK','io2sGcdSI6tTJkG6ia','z2v0tgfZDfn5BG','DxbKyxrLzef0','CgvU','zMLUze1LBw9YEq','y2H1BMTFDg90yq','n0TVuhDOvq','mZi1odiXnNrAze9HrW','BgLZDe1LBw9YAq','qNLszw1VDgvjza','v2T1vw0','DhvZ','zuf0','q291BNq','Dg9Uzxm','CgfYzw50x2LK','C3LUy0XVy2fS','mJq3nLLuy3HsvW','y29UDgvUDa','mtm2sKrsAffk','BwvZC2fNzq','zMX1C2HuB21ICW','zw1VCNLdB3vUDa','DgfNCW','y3jLyxrLtwvTBW','BwP4r1u','zMX1C2G','CgDnveG','ChvZAa','zxbPC29KAwm','BgfZDezHAwX1CG','ywnJzxnZx2nVDq','zhvYyxrPB24','zwfRzxiGB3bLBG','zMfPBhvYzxm','C2f2zuvTyMvKza','mti1nJeYmuTwD2PsCa','66Mu66QO66ASia','DgLTzw91De1Z','Aw5N','zxnZ','y2f0zwDVCNK','C3LUy0rLBhrH','ignVBNnLy3v0Aq','BwvYz2vby2nLCW','odq5mZvlwe5ABMu','ohvTAMfuCW','DxbKyxrLzf9HDa','DgvHBvbHDgG','y2vKqxq','y2H1BMTFAw5Kzq','sMrHBLO','zw1IzwrKAw5N','C2v0u3LUy1n0yq','DgX5rei','y29UzMXPy3rZ','Bwf4'];_0x2cb0=function(){return _0x592f24;};return _0x2cb0();}function _0x1cac33(_0x3f5c44,_0x4e5399){return _0x347e(_0x3f5c44-0x3c7,_0x4e5399);}export class MemorySynchronizer{['db'];['client'];[_0x53591b(-0x194,-0x18c)];[_0x1cac33(0x49f,0x49a)];['queue'];[_0x1cac33(0x46a,0x493)]=0x0;['lastFailur'+'eAt']=0x0;[_0x1cac33(0x48c,0x46a)+'s']=0x3;['cooldownMs']=0x7530;constructor(_0x2043a1,_0x3a9581,_0x46c56f,_0x45c227){function _0x19e7d9(_0x8f72cd,_0x4a87ea){return _0x53591b(_0x4a87ea-0x30d,_0x8f72cd);}function _0xb40157(_0x3c6542,_0x4be38e){return _0x53591b(_0x4be38e-0x478,_0x3c6542);}this['db']=_0x2043a1,this[_0xb40157(0x2f4,0x306)]=_0x3a9581,this[_0xb40157(0x2c9,0x2e4)]=_0x46c56f,this[_0x19e7d9(0x1ba,0x1a0)]=_0x45c227,this[_0xb40157(0x2d3,0x2f5)]=new SyncQueue(_0x2043a1,_0x3a9581);}['isCircuitO'+_0x53591b(-0x169,-0x13d)](){if(this[_0x3bee7c(-0x24a,-0x23f)]<this[_0x4f5888(0x3b6,0x3b4)+'s'])return![];function _0x4f5888(_0x144a41,_0x5ceea2){return _0x53591b(_0x144a41-0x536,_0x5ceea2);}function _0x3bee7c(_0x747aee,_0x2c6373){return _0x53591b(_0x2c6373- -0x9d,_0x747aee);}return Date['now']()-this[_0x4f5888(0x390,0x37e)+'eAt']<this['cooldownMs'];}[_0x53591b(-0x17c,-0x185)+_0x53591b(-0x19c,-0x19f)](){function _0x2a544e(_0x31c615,_0x109878){return _0x53591b(_0x109878-0x68,_0x31c615);}this[_0x2a544e(-0x141,-0x13a)]=0x0;}[_0x1cac33(0x484,0x473)+_0x53591b(-0x174,-0x180)](){this['failures']++;function _0x26adc8(_0x51671f,_0x21bc97){return _0x1cac33(_0x51671f- -0x493,_0x21bc97);}function _0x13e206(_0x1e8c94,_0x3ec61e){return _0x1cac33(_0x3ec61e- -0x491,_0x1e8c94);}this[_0x26adc8(-0x2d,-0x36)+_0x13e206(0x15,0x1b)]=Date[_0x26adc8(-0x9,-0x13)]();}async[_0x53591b(-0x185,-0x166)](){function _0x434f0b(_0x51762d,_0x26990b){return _0x1cac33(_0x26990b- -0x57b,_0x51762d);}function _0x101f91(_0xe4f9cc,_0x743d6c){return _0x1cac33(_0x743d6c-0x16,_0xe4f9cc);}if(this[_0x101f91(0x49d,0x48e)]&&this[_0x434f0b(-0xd5,-0xdc)]){const _0x6d4332=new TeamSynchronizer(this['db'],this[_0x101f91(0x4cb,0x4b0)],this[_0x101f91(0x48d,0x48e)],this[_0x101f91(0x4c5,0x4b5)]),_0x58638e=await _0x6d4332[_0x434f0b(-0x11d,-0x109)]();return{'pushed':_0x58638e[_0x101f91(0x4c9,0x4a7)],'pulled':_0x58638e['pulled'],'conflicts':_0x58638e['conflicts'],'errors':_0x58638e[_0x101f91(0x4ac,0x4a1)],'duration':_0x58638e[_0x434f0b(-0xf6,-0x113)]};}return this[_0x101f91(0x4e4,0x4c6)]();}async[_0x53591b(-0x15c,-0x166)](){const _0x5582e4=Date['now'](),_0x40e202={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};function _0x194dcb(_0x3c328d,_0x43bf27){return _0x53591b(_0x43bf27-0x288,_0x3c328d);}function _0x3421b8(_0x133b61,_0x18c3ca){return _0x53591b(_0x133b61- -0x53,_0x18c3ca);}try{const _0x68afa8=await this[_0x194dcb(0x121,0x138)]();_0x40e202[_0x3421b8(-0x1ce,-0x1ee)]=_0x68afa8['pushed'],_0x40e202[_0x194dcb(0xf2,0x107)][_0x3421b8(-0x1a3,-0x1a6)](..._0x68afa8['errors']);const _0x24ada6=await this['pull']();_0x40e202['pulled']=_0x24ada6[_0x3421b8(-0x1c3,-0x1a5)],_0x40e202[_0x3421b8(-0x1e0,-0x1bc)]=_0x24ada6[_0x3421b8(-0x1e0,-0x1b4)],_0x40e202['errors'][_0x194dcb(0x12c,0x138)](..._0x24ada6['errors']);}catch(_0x319543){_0x319543 instanceof Error&&_0x40e202['errors'][_0x3421b8(-0x1a3,-0x18d)](_0x319543[_0x194dcb(0x12c,0x130)]);}return _0x40e202['duration']=Date[_0x194dcb(0xde,0x106)]()-_0x5582e4,_0x40e202;}async[_0x53591b(-0x150,-0x15b)](_0x3f7c8d){function _0x5e14fb(_0x3ef7b1,_0x51373f){return _0x53591b(_0x3ef7b1-0x586,_0x51373f);}if(this[_0x3f4b83(0x1b5,0x18f)+_0x5e14fb(0x41d,0x3fa)]())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':['Circuit\x20br'+'eaker\x20open'+_0x5e14fb(0x40d,0x3e3)+'\x20consecuti'+_0x5e14fb(0x415,0x441)+'s'],'duration':0x0};const _0x21545a=Date[_0x3f4b83(0x189,0x17c)]();function _0x3f4b83(_0x5ee13e,_0x12ed35){return _0x53591b(_0x12ed35-0x2fe,_0x5ee13e);}try{const _0x55d4b0=await this[_0x3f4b83(0x189,0x17b)][_0x3f4b83(0x1d7,0x1ac)]({'timeoutMs':_0x3f7c8d?.[_0x5e14fb(0x3e8,0x414)]}),_0x517e25=await this[_0x5e14fb(0x403,0x3f6)][_0x3f4b83(0x17d,0x1a7)+_0x3f4b83(0x1a0,0x1a0)](),_0x1f252c=[..._0x55d4b0[_0x3f4b83(0x19b,0x17d)],..._0x517e25[_0x3f4b83(0x18d,0x17d)]];return _0x1f252c[_0x3f4b83(0x18f,0x189)]>0x0?this[_0x3f4b83(0x19f,0x176)+_0x5e14fb(0x412,0x3ed)]():this['recordSucc'+_0x5e14fb(0x3ea,0x405)](),{'pushed':_0x55d4b0[_0x3f4b83(0x1ae,0x183)],'pulled':_0x517e25['deleted'],'conflicts':0x0,'errors':_0x1f252c,'duration':Date['now']()-_0x21545a};}catch(_0x555cf7){this[_0x3f4b83(0x18e,0x176)+_0x5e14fb(0x412,0x41e)]();throw _0x555cf7;}}async['pull'](){if(this[_0x5e381a(-0xa2,-0x8b)+_0x16638c(0x1b8,0x1bc)]())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x16638c(0x176,0x19a)+_0x16638c(0x157,0x182)+_0x16638c(0x19f,0x1ac)+_0x5e381a(-0xbe,-0xb5)+_0x16638c(0x1d0,0x1b4)+'s'],'duration':0x0};const _0x2a484c=Date['now'](),_0x11ca1b={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};function _0x5e381a(_0x448a66,_0x55777f){return _0x1cac33(_0x55777f- -0x528,_0x448a66);}function _0x16638c(_0xc14c63,_0x24abcd){return _0x1cac33(_0x24abcd- -0x2e7,_0xc14c63);}try{let _0x36b3cf=0x0,_0x5db7f3=!![];while(_0x5db7f3){const _0x3cf2f3=await this[_0x5e381a(-0xa7,-0x8e)]['listMemori'+'es']({'limit':DEFAULT_PAGE_SIZE,'offset':_0x36b3cf,'includeEmbedding':!![]});if(_0x3cf2f3[_0x5e381a(-0xa4,-0x91)]===0x0){_0x5db7f3=![];break;}_0x3cf2f3[_0x5e381a(-0x78,-0x8a)]((_0x12278a,_0x38e6d2)=>{const _0x41d6ee=_0x12278a[_0x40bb0e(-0x10f,-0x137)]?0x1:0x0,_0x309668=_0x38e6d2['parent_id']?0x1:0x0;function _0x40bb0e(_0x33c890,_0x198f1c){return _0x16638c(_0x198f1c,_0x33c890- -0x2d7);}return _0x41d6ee-_0x309668;});for(const _0x19b21b of _0x3cf2f3){try{const _0x144591=this['db'][_0x16638c(0x1cd,0x1bd)+_0x16638c(0x1b7,0x1c2)](_0x19b21b['id']);if(!_0x144591){const _0x3104da=this['db'][_0x5e381a(-0x75,-0x70)+'ry']({'content':_0x19b21b['content'],'category':mapCategory(_0x19b21b['category']),'tier':mapTier(_0x19b21b[_0x16638c(0x183,0x1ab)]??_0x16638c(0x1cf,0x1d6)),'tags':_0x19b21b[_0x16638c(0x1eb,0x1d0)]??[],'parentId':_0x19b21b['parent_id']??undefined,'chunkIndex':_0x19b21b[_0x5e381a(-0xa6,-0xae)+'x']??undefined,'chunkTotal':_0x19b21b['chunk_tota'+'l']??undefined,'qualityScore':_0x19b21b[_0x5e381a(-0xa8,-0x93)+_0x5e381a(-0x97,-0x8f)]??undefined});if(_0x19b21b[_0x16638c(0x18f,0x180)+'nt']&&_0x19b21b[_0x5e381a(-0xa6,-0xc1)+'nt']>0x0){if(_0x5e381a(-0x9a,-0xad)!==_0x5e381a(-0xa3,-0xad)){const _0x140ef7=this['db'][_0x16638c(0x1b5,0x1d1)+'ry']({'content':_0x1766f1[_0x5e381a(-0x52,-0x76)],'category':_0x8d76a5(_0x44b000['category']),'tier':_0x40768f(_0x1edd32[_0x16638c(0x197,0x1ab)]??_0x16638c(0x1bd,0x1d6)),'tags':_0x4b5b2e[_0x5e381a(-0x52,-0x71)]??[],'parentId':_0x2bb838[_0x16638c(0x1bb,0x1c8)]??_0x28efb2,'chunkIndex':_0x139edf[_0x16638c(0x1a2,0x193)+'x']??_0x25e73a,'chunkTotal':_0xfd00be[_0x16638c(0x19e,0x1be)+'l']??_0x14d61c,'qualityScore':_0x4249ec[_0x16638c(0x1a8,0x1ae)+_0x16638c(0x18b,0x1b2)]??_0xa9add4});_0x2dbc80[_0x16638c(0x15d,0x180)+'nt']&&_0x3bc08a['access_cou'+'nt']>0x0&&this['db'][_0x16638c(0x17f,0x18d)+_0x5e381a(-0xd1,-0xa6)](_0x140ef7['id'],_0x24464d['access_cou'+'nt']),_0x4bc605[_0x5e381a(-0xb8,-0xac)]&&_0x122511[_0x16638c(0x17a,0x195)][_0x16638c(0x18e,0x1b0)]>0x0&&this['db'][_0x5e381a(-0xe8,-0xbd)+_0x5e381a(-0x9c,-0xb9)](_0x140ef7['id'],_0x267894['embedding']),this['db']['setSyncSta'+_0x16638c(0x1af,0x1c4)](_0x140ef7['id'],_0x3634ec['id'],'synced'),_0x452d1a[_0x16638c(0x194,0x1b5)]++;}else this['db'][_0x5e381a(-0xbf,-0xb4)+'sCount'](_0x3104da['id'],_0x19b21b[_0x16638c(0x174,0x180)+'nt']);}_0x19b21b['embedding']&&_0x19b21b[_0x5e381a(-0xa9,-0xac)]['length']>0x0&&(_0x5e381a(-0xac,-0xaa)!==_0x5e381a(-0x93,-0xaa)?_0x5f5b6b instanceof _0x3e6f77&&_0x388ac8[_0x5e381a(-0x85,-0x9d)]['push']('메모리\x20'+_0x4f056['id']+_0x5e381a(-0xa3,-0x88)+_0x252905[_0x16638c(0x1de,0x1cd)]):this['db'][_0x16638c(0x15c,0x184)+_0x16638c(0x193,0x188)](_0x3104da['id'],_0x19b21b[_0x16638c(0x19e,0x195)])),this['db']['setSyncSta'+_0x16638c(0x1da,0x1c4)](_0x3104da['id'],_0x19b21b['id'],'synced'),_0x11ca1b['pulled']++;}else{const _0x1c0043=new Date(_0x19b21b[_0x5e381a(-0xbf,-0xb1)]),_0x33d293=new Date(_0x144591[_0x16638c(0x1b7,0x1bb)]);if(_0x1c0043>_0x33d293){this['db'][_0x16638c(0x1a8,0x19e)+'ry'](_0x144591['id'],{'content':_0x19b21b[_0x5e381a(-0x88,-0x76)],'category':mapCategory(_0x19b21b[_0x16638c(0x181,0x18a)]),'tier':mapTier(_0x19b21b['tier']??_0x144591[_0x5e381a(-0x82,-0x96)]),'tags':_0x19b21b['tags']??_0x144591['tags'],'qualityScore':_0x19b21b[_0x5e381a(-0xbc,-0x93)+_0x16638c(0x1b2,0x1b2)]??undefined});if(_0x19b21b[_0x5e381a(-0xd7,-0xc1)+'nt']!==undefined){if('Ssmzk'!=='DpSzX')this['db']['mergeAcces'+_0x5e381a(-0x7c,-0xa6)](_0x144591['id'],_0x19b21b[_0x16638c(0x177,0x180)+'nt']);else{this[_0x16638c(0x1b6,0x19d)+'ure']();throw _0x3914e3;}}_0x19b21b['embedding']&&_0x19b21b[_0x5e381a(-0x8c,-0xac)][_0x16638c(0x187,0x1b0)]>0x0&&(_0x16638c(0x1d4,0x1c3)!==_0x5e381a(-0x8a,-0x6f)?this['db'][_0x16638c(0x181,0x184)+'ing'](_0x144591['id'],_0x19b21b[_0x5e381a(-0xa2,-0xac)]):(this['recordFail'+_0x16638c(0x19b,0x1b1)](),_0x42c8c3 instanceof _0xc0dfc3&&_0x297126[_0x16638c(0x192,0x1a4)][_0x5e381a(-0x62,-0x6c)](_0x15d1e7[_0x5e381a(-0x9a,-0x74)]))),this['db'][_0x5e381a(-0xbf,-0xab)+_0x16638c(0x19a,0x1c4)](_0x144591['id'],_0x19b21b['id'],_0x16638c(0x1a0,0x1ad)),_0x11ca1b[_0x16638c(0x1c1,0x198)]++;}}}catch(_0x1a7054){'pgMTH'===_0x5e381a(-0x48,-0x6d)?_0x1a7054 instanceof Error&&_0x11ca1b['errors'][_0x16638c(0x1f7,0x1d5)](_0x16638c(0x1ae,0x186)+_0x19b21b['id']+'\x20풀\x20실패:\x20'+_0x1a7054[_0x16638c(0x1af,0x1cd)]):this['db'][_0x5e381a(-0xb5,-0xbd)+_0x16638c(0x1a3,0x188)](_0x32d41b['id'],_0x3c3a47[_0x5e381a(-0xbb,-0xac)]);}}_0x3cf2f3['length']<DEFAULT_PAGE_SIZE?_0x5db7f3=![]:_0x36b3cf+=DEFAULT_PAGE_SIZE;}this[_0x5e381a(-0x97,-0x98)+_0x5e381a(-0xb3,-0xb8)]();}catch(_0x49fc69){this['recordFail'+'ure'](),_0x49fc69 instanceof Error&&_0x11ca1b['errors'][_0x5e381a(-0x45,-0x6c)](_0x49fc69['message']);}return _0x11ca1b[_0x16638c(0x194,0x181)]=Date['now']()-_0x2a484c,_0x11ca1b;}async[_0x53591b(-0x17f,-0x170)](){const _0x1da270=this['queue']['getPending'+_0x109703(-0x212,-0x238)]();function _0x109703(_0x3728e3,_0x52b3d1){return _0x1cac33(_0x52b3d1- -0x6e5,_0x3728e3);}let _0x3dc107=0x0;function _0x1b04cb(_0x4696e7,_0x3a96c5){return _0x1cac33(_0x3a96c5- -0x4b9,_0x4696e7);}try{const _0x76aa9f=await this[_0x1b04cb(-0x5,-0x1f)][_0x109703(-0x211,-0x23d)+'es']({'limit':0x2710}),_0x54ca07=this['db'][_0x109703(-0x239,-0x256)+_0x109703(-0x250,-0x22f)]();_0x3dc107=Math[_0x109703(-0x28d,-0x265)](0x0,_0x76aa9f[_0x1b04cb(-0xd,-0x22)]-_0x54ca07);}catch{}const _0x3f4fb0=this['db'][_0x109703(-0x26e,-0x244)+_0x109703(-0x241,-0x26c)]();return{'pendingPush':_0x1da270,'pendingPull':_0x3dc107,'lastSyncedAt':_0x3f4fb0??undefined};}}
1
+ function _0x2d3be6(_0x4c7c0a,_0x1564da){return _0x15ba(_0x4c7c0a- -0x378,_0x1564da);}function _0x15ba(_0x11e39c,_0x570c37){_0x11e39c=_0x11e39c-0x124;const _0x22ea1b=_0x22ea();let _0x15bac9=_0x22ea1b[_0x11e39c];if(_0x15ba['JrZEcO']===undefined){var _0x522ac7=function(_0x21d02a){const _0x1e0360='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3f54df='',_0x4209fb='';for(let _0x576689=0x0,_0xa7992b,_0xf2f0c8,_0x5d4596=0x0;_0xf2f0c8=_0x21d02a['charAt'](_0x5d4596++);~_0xf2f0c8&&(_0xa7992b=_0x576689%0x4?_0xa7992b*0x40+_0xf2f0c8:_0xf2f0c8,_0x576689++%0x4)?_0x3f54df+=String['fromCharCode'](0xff&_0xa7992b>>(-0x2*_0x576689&0x6)):0x0){_0xf2f0c8=_0x1e0360['indexOf'](_0xf2f0c8);}for(let _0x302942=0x0,_0x593b6a=_0x3f54df['length'];_0x302942<_0x593b6a;_0x302942++){_0x4209fb+='%'+('00'+_0x3f54df['charCodeAt'](_0x302942)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4209fb);};_0x15ba['ujloCS']=_0x522ac7,_0x15ba['ptbHpj']={},_0x15ba['JrZEcO']=!![];}const _0x180c9c=_0x22ea1b[0x0],_0x5763dd=_0x11e39c+_0x180c9c,_0x3ea42d=_0x15ba['ptbHpj'][_0x5763dd];return!_0x3ea42d?(_0x15bac9=_0x15ba['ujloCS'](_0x15bac9),_0x15ba['ptbHpj'][_0x5763dd]=_0x15bac9):_0x15bac9=_0x3ea42d,_0x15bac9;}(function(_0xe4b7a5,_0x5d83e9){const _0x36c64c=_0xe4b7a5();function _0x34c26f(_0xb75296,_0x3c1a92){return _0x15ba(_0xb75296- -0x3d3,_0x3c1a92);}function _0x43e6ef(_0x33acd6,_0x16783c){return _0x15ba(_0x33acd6-0x2f2,_0x16783c);}while(!![]){try{const _0x18ec64=parseInt(_0x43e6ef(0x461,0x470))/0x1+parseInt(_0x34c26f(-0x28f,-0x28b))/0x2+-parseInt(_0x43e6ef(0x434,0x443))/0x3*(-parseInt(_0x43e6ef(0x44f,0x446))/0x4)+-parseInt(_0x34c26f(-0x295,-0x2a6))/0x5*(parseInt(_0x34c26f(-0x296,-0x2a8))/0x6)+-parseInt(_0x43e6ef(0x448,0x44b))/0x7+parseInt(_0x34c26f(-0x292,-0x2a7))/0x8+-parseInt(_0x43e6ef(0x455,0x45d))/0x9*(-parseInt(_0x43e6ef(0x44b,0x44e))/0xa);if(_0x18ec64===_0x5d83e9)break;else _0x36c64c['push'](_0x36c64c['shift']());}catch(_0x25364f){_0x36c64c['push'](_0x36c64c['shift']());}}}(_0x22ea,0xbbff6));function _0x40070c(_0x58bc98,_0x5af3e1){return _0x15ba(_0x5af3e1- -0xa7,_0x58bc98);}function _0x22ea(){const _0x47c4fb=['ChvSBa','mta2nJyWmZjSAevssNi','nJCWmZuZrvLKs0PP','y29UzMXPy3rZ','mJiXmde4vMvQEhPm','66Mu66QO66ASia','CgvU','DxjL','DxbKyxrLzf9HDa','B3jL','io2sGcdSI6tTJkG6ia','AxndAxjJDwL0tW','zhvYyxrPB24','DxbKyxrLtwvTBW','C2v0u3LUy1n0yq','qNLszw1VDgvjza','z2v0u3LUy2vKtq','zwfRzxiGB3bLBG','y29UDgvUDa','Bwf4rMfPBhvYzq','y2XPzw50','zxjYB3jZ','mtaXmdC5ndrVq2TYr3K','q291BNq','sNzSEuS','mZG1ntmXmgXWA1fYDG','BM93','ywnJzxnZx2nVDq','Bwf4','nfLfD0DXqq','DhvZ','zw1IzwrKAw5N','C29YDa','C0nVDw50','CMvJB3jKu3vJyW','owzVuxn5Eq','zMfPBhvYzxm','ChvZAgvK','DNfUteW','CMvJB3jKrMfPBa','BM9KzuLK','Aw5N','DgLTzw91De1Z','ChvZAa','ChvSBgvK','BgvUz3rO','y2H1BMTFAw5Kzq','mJaWnJG3uNHQv0Dt','Dg9Uzxm','C3LUy0rLBhrH','ignVBNnLy3v0Aq','zMX1C2HuB21ICW','y3jLyxrLtwvTBW','zw1VCNLdB3vUDa','CgfYzw50x2LK','C3LUy0XVy2fS','CxvLDwu','y29VBgrVD25nCW','oIb0B28GBwfUEq','DejvzMS','CxvHBgL0Ev9ZyW','q2LYy3vPDcbICG','zgvSzxrLza','BgfZDezHAwX1CG','DgfNCW','BwvYz2vby2nLCW','y2H1BMTFDg90yq','z2v0ugvUzgLUzW','C3LUy2vK','y2f0zwDVCNK','zuf0','DgLLCG','zMX1C2G','zxnZ','BgLZDe1LBw9YAq','DxbKyxrLzef0','mtmYA2TIDwnx','odK1nxjUwKPQCW','DgvHBvbHDgG'];_0x22ea=function(){return _0x47c4fb;};return _0x22ea();}import{SyncQueue,mapCategory,mapTier}from'./queue.js';import{TeamSynchronizer}from'./team-synchronizer.js';const DEFAULT_PAGE_SIZE=0x64;export class MemorySynchronizer{['db'];[_0x2d3be6(-0x224,-0x243)];[_0x40070c(0x7f,0x98)];[_0x40070c(0xdc,0xc1)];[_0x40070c(0x6a,0x82)];[_0x40070c(0xe4,0xbd)]=0x0;[_0x2d3be6(-0x248,-0x23e)+_0x2d3be6(-0x241,-0x266)]=0x0;[_0x40070c(0xb7,0xac)+'s']=0x3;[_0x2d3be6(-0x24e,-0x24c)]=0x7530;constructor(_0x239340,_0x3d2b95,_0x13785a,_0x280d17){this['db']=_0x239340,this[_0x583893(0x3de,0x3e5)]=_0x3d2b95;function _0xd5729e(_0x2ecc3e,_0x223047){return _0x2d3be6(_0x2ecc3e-0x14f,_0x223047);}this[_0x583893(0x3bb,0x3d0)]=_0x13785a,this['nodeId']=_0x280d17;function _0x583893(_0x2d2922,_0x45aa53){return _0x2d3be6(_0x45aa53-0x609,_0x2d2922);}this[_0xd5729e(-0x100,-0x105)]=new SyncQueue(_0x239340,_0x3d2b95);}[_0x2d3be6(-0x22d,-0x243)+_0x40070c(0x9f,0x9f)](){function _0x5a4f4e(_0x2590ea,_0x572113){return _0x2d3be6(_0x2590ea-0x389,_0x572113);}if(this['failures']<this[_0x1c1e44(-0x139,-0x122)+'s'])return![];function _0x1c1e44(_0x400e83,_0x450572){return _0x2d3be6(_0x450572-0x103,_0x400e83);}return Date['now']()-this['lastFailur'+_0x1c1e44(-0x119,-0x13e)]<this[_0x1c1e44(-0x15c,-0x14b)];}[_0x2d3be6(-0x216,-0x229)+'ess'](){function _0x174998(_0x358837,_0xf0aaf8){return _0x40070c(_0xf0aaf8,_0x358837- -0x29e);}this[_0x174998(-0x1e1,-0x1e0)]=0x0;}[_0x40070c(0x9b,0xc0)+_0x2d3be6(-0x231,-0x232)](){this['failures']++;function _0x4f125a(_0x14aef7,_0x470970){return _0x40070c(_0x14aef7,_0x470970-0x19d);}function _0x1929bc(_0x50593d,_0x5724da){return _0x40070c(_0x5724da,_0x50593d-0x414);}this[_0x4f125a(0x21c,0x226)+_0x4f125a(0x232,0x22d)]=Date[_0x4f125a(0x242,0x250)]();}async['sync'](){function _0x53d4c0(_0x234ea9,_0x5e5673){return _0x40070c(_0x234ea9,_0x5e5673-0x197);}if(this[_0x3526c4(-0xdd,-0xe2)]&&this[_0x53d4c0(0x232,0x258)]){const _0x42ba71=new TeamSynchronizer(this['db'],this['client'],this['teamPath'],this[_0x3526c4(-0xb4,-0xae)]),_0x330f96=await _0x42ba71[_0x53d4c0(0x23a,0x261)]();return{'pushed':_0x330f96[_0x53d4c0(0x27a,0x255)],'pulled':_0x330f96[_0x53d4c0(0x275,0x25c)],'conflicts':_0x330f96['conflicts'],'errors':_0x330f96[_0x3526c4(-0xc7,-0xcc)],'duration':_0x330f96['duration']};}function _0x3526c4(_0x10325e,_0x2781d7){return _0x40070c(_0x2781d7,_0x10325e- -0x175);}return this[_0x53d4c0(0x21e,0x218)]();}async[_0x40070c(0xa5,0x81)](){const _0x573ef6=Date[_0x4109e4(0x3a3,0x392)](),_0x4f1f50={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};try{const _0x1bbeb8=await this[_0x4109e4(0x3b4,0x396)]();_0x4f1f50[_0x4c3b23(-0x186,-0x166)]=_0x1bbeb8['pushed'],_0x4f1f50[_0x4109e4(0x39e,0x3a9)][_0x4109e4(0x3b4,0x38d)](..._0x1bbeb8['errors']);const _0x2047d5=await this[_0x4c3b23(-0x1ab,-0x18c)]();_0x4f1f50[_0x4109e4(0x3b5,0x398)]=_0x2047d5[_0x4c3b23(-0x17f,-0x192)],_0x4f1f50['conflicts']=_0x2047d5[_0x4c3b23(-0x1a8,-0x1c1)],_0x4f1f50[_0x4c3b23(-0x196,-0x18c)]['push'](..._0x2047d5[_0x4c3b23(-0x196,-0x172)]);}catch(_0x26ebdd){_0x26ebdd instanceof Error&&_0x4f1f50[_0x4109e4(0x39e,0x3b4)][_0x4c3b23(-0x180,-0x163)](_0x26ebdd['message']);}function _0x4109e4(_0x32f4bc,_0x38e960){return _0x2d3be6(_0x32f4bc-0x5c1,_0x38e960);}function _0x4c3b23(_0x4a01e3,_0x5db581){return _0x2d3be6(_0x4a01e3-0x8d,_0x5db581);}return _0x4f1f50[_0x4c3b23(-0x19f,-0x18b)]=Date[_0x4c3b23(-0x191,-0x184)]()-_0x573ef6,_0x4f1f50;}async[_0x40070c(0xb9,0xc4)](_0x5e054c){if(this['isCircuitO'+'pen']())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x46c6ed(0x84,0x9f)+_0x604edc(0x101,0x127)+_0x604edc(0xdb,0xf2)+'\x20consecuti'+'ve\x20failure'+'s'],'duration':0x0};const _0x18801a=Date['now']();function _0x604edc(_0x3610ae,_0x43c087){return _0x2d3be6(_0x3610ae-0x328,_0x43c087);}function _0x46c6ed(_0x14a7c7,_0x39f91c){return _0x2d3be6(_0x39f91c-0x2e9,_0x14a7c7);}try{const _0x5e5682=await this[_0x604edc(0xd9,0xd3)][_0x46c6ed(0xcb,0xaa)]({'timeoutMs':_0x5e054c?.[_0x604edc(0x11a,0x12c)]}),_0x57ca65=await this[_0x604edc(0xd9,0xc5)][_0x604edc(0xd4,0xad)+_0x46c6ed(0x106,0xe1)](),_0x4c2f12=[..._0x5e5682[_0x46c6ed(0xaf,0xc6)],..._0x57ca65[_0x604edc(0x105,0x101)]];return _0x4c2f12['length']>0x0?_0x604edc(0x116,0x12c)!==_0x604edc(0x116,0xf7)?this['db']['mergeAcces'+'sCount'](_0x42cd59['id'],_0x172775[_0x604edc(0x10b,0xf6)+'nt']):this['recordFail'+_0x604edc(0xf7,0xe2)]():this['recordSucc'+_0x604edc(0xea,0xe0)](),{'pushed':_0x5e5682['pushed'],'pulled':_0x57ca65[_0x46c6ed(0x9b,0xa0)],'conflicts':0x0,'errors':_0x4c2f12,'duration':Date[_0x604edc(0x10a,0x123)]()-_0x18801a};}catch(_0x5ce04d){this[_0x46c6ed(0xcf,0xd8)+_0x46c6ed(0xb5,0xb8)]();throw _0x5ce04d;}}async[_0x2d3be6(-0x238,-0x239)](){function _0x167753(_0x444baa,_0x20a323){return _0x2d3be6(_0x20a323-0x2ba,_0x444baa);}if(this[_0x375631(0xda,0xf1)+_0x375631(0xd1,0xec)]())return{'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[_0x167753(0x60,0x70)+_0x167753(0xae,0x93)+':\x20too\x20many'+_0x375631(0x130,0x118)+'ve\x20failure'+'s'],'duration':0x0};function _0x375631(_0x50fc79,_0x39bc8f){return _0x2d3be6(_0x39bc8f-0x31e,_0x50fc79);}const _0x184d27=Date[_0x167753(0x84,0x9c)](),_0x470b0b={'pushed':0x0,'pulled':0x0,'conflicts':0x0,'errors':[],'duration':0x0};try{let _0x172707=0x0,_0x4f77d4=!![];while(_0x4f77d4){const _0x52c65b=await this['client'][_0x167753(0x87,0x7d)+'es']({'limit':DEFAULT_PAGE_SIZE,'offset':_0x172707,'includeEmbedding':!![]});if(_0x52c65b[_0x167753(0xaa,0xaf)]===0x0){_0x4f77d4=![];break;}_0x52c65b[_0x375631(0x10e,0x106)]((_0x294956,_0x1a3d86)=>{const _0x1533e3=_0x294956['parent_id']?0x1:0x0,_0x53ff7a=_0x1a3d86['parent_id']?0x1:0x0;return _0x1533e3-_0x53ff7a;});for(const _0x2576ec of _0x52c65b){try{const _0x14eaa4=this['db']['findMemory'+_0x375631(0xd3,0xf5)](_0x2576ec['id']);if(!_0x14eaa4){const _0x2fe786=this['db'][_0x375631(0xd2,0xcb)+'ry']({'content':_0x2576ec[_0x167753(0x73,0x94)],'category':mapCategory(_0x2576ec[_0x167753(0x7a,0x78)]),'tier':mapTier(_0x2576ec[_0x375631(0xd1,0xde)]??'episodic'),'tags':_0x2576ec[_0x375631(0xaf,0xd7)]??[],'parentId':_0x2576ec[_0x375631(0xb6,0xcd)]??undefined,'chunkIndex':_0x2576ec[_0x167753(0x8f,0xb0)+'x']??undefined,'chunkTotal':_0x2576ec[_0x167753(0x4e,0x75)+'l']??undefined,'qualityScore':_0x2576ec[_0x375631(0xc3,0xd3)+_0x375631(0x109,0xef)]??undefined});_0x2576ec['access_cou'+'nt']&&_0x2576ec[_0x167753(0x93,0x9d)+'nt']>0x0&&this['db']['mergeAcces'+_0x167753(0xac,0xa3)](_0x2fe786['id'],_0x2576ec['access_cou'+'nt']),_0x2576ec['embedding']&&_0x2576ec[_0x375631(0x106,0x105)][_0x167753(0x96,0xaf)]>0x0&&this['db']['saveEmbedd'+_0x375631(0x129,0x10f)](_0x2fe786['id'],_0x2576ec[_0x375631(0x118,0x105)]),this['db']['setSyncSta'+_0x375631(0xf2,0x104)](_0x2fe786['id'],_0x2576ec['id'],_0x375631(0xf5,0xdb)),_0x470b0b[_0x167753(0xc8,0xae)]++;}else{const _0x582d43=new Date(_0x2576ec[_0x375631(0x10d,0xee)]),_0x5376de=new Date(_0x14eaa4[_0x167753(0x5e,0x7e)]);_0x582d43>_0x5376de&&(_0x375631(0xf6,0xfe)===_0x167753(0x90,0x6e)?this['db']['saveEmbedd'+'ing'](_0xeb1934['id'],_0x5a40e2[_0x167753(0xc0,0xa1)]):(this['db'][_0x167753(0x6b,0x8f)+'ry'](_0x14eaa4['id'],{'content':_0x2576ec['content'],'category':mapCategory(_0x2576ec[_0x375631(0xf4,0xdc)]),'tier':mapTier(_0x2576ec[_0x375631(0xd5,0xde)]??_0x14eaa4[_0x167753(0x5c,0x7a)]),'tags':_0x2576ec[_0x375631(0xb9,0xd7)]??_0x14eaa4[_0x375631(0xc6,0xd7)],'qualityScore':_0x2576ec[_0x375631(0xca,0xd3)+_0x167753(0x68,0x8b)]??undefined}),_0x2576ec[_0x375631(0x10c,0x101)+'nt']!==undefined&&this['db'][_0x375631(0xb2,0xd8)+_0x375631(0xfb,0x107)](_0x14eaa4['id'],_0x2576ec[_0x167753(0xa2,0x9d)+'nt']),_0x2576ec['embedding']&&_0x2576ec[_0x167753(0xc2,0xa1)][_0x375631(0x129,0x113)]>0x0&&this['db']['saveEmbedd'+'ing'](_0x14eaa4['id'],_0x2576ec[_0x167753(0x80,0xa1)]),this['db'][_0x375631(0xe2,0xf4)+_0x167753(0x90,0xa0)](_0x14eaa4['id'],_0x2576ec['id'],_0x167753(0x8c,0x77)),_0x470b0b['conflicts']++));}}catch(_0x387a24){_0x387a24 instanceof Error&&_0x470b0b[_0x167753(0xa2,0x97)][_0x167753(0x94,0xad)](_0x167753(0xa1,0x87)+_0x2576ec['id']+_0x167753(0x7e,0x8c)+_0x387a24['message']);}}_0x52c65b[_0x375631(0xf5,0x113)]<DEFAULT_PAGE_SIZE?_0x4f77d4=![]:_0x172707+=DEFAULT_PAGE_SIZE;}this[_0x167753(0x80,0xa4)+_0x167753(0x87,0x7c)]();}catch(_0x2b329b){this['recordFail'+'ure'](),_0x2b329b instanceof Error&&_0x470b0b[_0x375631(0xf8,0xfb)][_0x167753(0xa5,0xad)](_0x2b329b['message']);}return _0x470b0b[_0x375631(0xf8,0xf2)]=Date[_0x375631(0x10d,0x100)]()-_0x184d27,_0x470b0b;}async['getStatus'](){const _0x51675e=this['queue'][_0x5e89e9(0x275,0x29b)+_0x3cb1c0(-0xc8,-0xbf)]();let _0x6792a0=0x0;try{const _0x3d0a8e=await this['client']['listMemori'+'es']({'limit':0x2710}),_0x3dfbc8=this['db'][_0x3cb1c0(-0xb6,-0xc6)+_0x5e89e9(0x28d,0x28d)]();_0x6792a0=Math[_0x5e89e9(0x2b5,0x2c3)](0x0,_0x3d0a8e[_0x3cb1c0(-0xb5,-0xa9)]-_0x3dfbc8);}catch{}const _0x4f2ea4=this['db']['getLastSyn'+'cedAt']();function _0x3cb1c0(_0x3233f6,_0x917153){return _0x2d3be6(_0x917153-0x162,_0x3233f6);}function _0x5e89e9(_0x2034b0,_0x199843){return _0x2d3be6(_0x199843-0x4df,_0x2034b0);}return{'pendingPush':_0x51675e,'pendingPull':_0x6792a0,'lastSyncedAt':_0x4f2ea4??undefined};}}