a2a-memory 0.12.62 → 0.12.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/contextrank.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/session-extract.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/contextrank/ac-matcher.js +1 -1
- package/dist/contextrank/edge-builder.js +1 -1
- package/dist/contextrank/rank-builder.js +1 -1
- package/dist/contextrank/signal-builder.js +1 -1
- package/dist/contextrank/since-store.js +1 -1
- package/dist/db/database.d.ts +55 -1
- package/dist/db/database.js +1 -1
- package/dist/db/integrity-marker.d.ts +40 -0
- package/dist/db/integrity-marker.js +1 -0
- package/dist/db/usage-spool.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/session-extract.js +1 -1
- package/dist/lifecycle/shadow-rebuild.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/memoryrank-rerank.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/file-mode.d.ts +5 -0
- package/dist/utils/file-mode.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/test-isolation.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const INTEGRITY_INTERVAL_MS: number;
|
|
2
|
+
/** 선점 lease — 검사 도중 프로세스가 죽으면 이만큼 뒤에 다른 opener 가 재검사한다 (ADR-099 D2). */
|
|
3
|
+
export declare const INTEGRITY_LEASE_MS: number;
|
|
4
|
+
export type IntegrityReason = 'missing' | 'expired' | 'future' | 'ino' | 'untrusted' | 'shared-dir' | 'non-file' | 'fresh';
|
|
5
|
+
/** 표지 경로. 🔴 이름에 `.corrupt.` 를 넣지 마라 — 손상본을 그 문자열로 세는 회귀가 있다. */
|
|
6
|
+
export declare function integrityMarkerPath(dbPath: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* 비파일 DB 는 **경로 문자열**로 판정한다 (ADR-099 D1).
|
|
9
|
+
* 🔴 `stat` 으로 판정하지 마라 — `openDatabase()` 가 `openSync(path,'a')` 를 먼저 하므로
|
|
10
|
+
* cwd 에 `:memory:` 라는 실제 파일이 생겨 파일 DB 로 오판한다.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isNonFileDb(dbPath: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 표지를 쓸 수 있는 DB 인가. 🔴 부모가 group/other 쓰기 가능하면(공유 디렉토리) **주기화를 끈다** —
|
|
15
|
+
* 다른 계정이 표지를 심어 검사를 영구 생략시키거나 FIFO 로 hook 을 멈출 수 있다 (ADR-099 D8, ADR-094 와 같은 축).
|
|
16
|
+
* 그 경우 변경 전처럼 매 open 마다 검사한다.
|
|
17
|
+
*/
|
|
18
|
+
export declare function integrityMarkerApplies(dbPath: string): boolean;
|
|
19
|
+
/** 이번 open 에서 전체 검사를 할지 판정한다. `fresh` 만 생략이다. */
|
|
20
|
+
export declare function decideIntegrityCheck(dbPath: string, nowMs?: number): IntegrityReason;
|
|
21
|
+
/** 테스트 전용 주입점 — rename 직전에 실패를 모사한다 (ADR-099 회귀 (l)). */
|
|
22
|
+
export interface MarkerWriteHooks {
|
|
23
|
+
beforeRename?: () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 표지를 원자적으로 쓴다 — 고유 임시 파일(`wx` 0600)에 내용 → **같은 fd 로** mtime 설정 → rename (ADR-099 D3).
|
|
27
|
+
* 🔴 순서를 바꾸지 마라: 내용을 나중에 쓰면 mtime 이 now 로 덮여 lease 가 「24h 생략」으로 뒤집힌다.
|
|
28
|
+
* mtime 은 경로가 아니라 fd 로 설정한다 — 이름으로 하면 그 사이 링크로 바꿔치기될 수 있다.
|
|
29
|
+
* 실패하면 false — 호출자는 fail-closed(검사 수행)로 간다 (D4).
|
|
30
|
+
*/
|
|
31
|
+
export declare function writeIntegrityMarker(dbPath: string, mtimeMs: number, hooks?: MarkerWriteHooks): boolean;
|
|
32
|
+
export type MarkerInvalidation = 'deleted' | 'expired' | 'failed';
|
|
33
|
+
/**
|
|
34
|
+
* 표지를 무효화한다 — 손상이 확인됐는데 표지가 신선하면 24시간 동안 모든 hook 이 손상 DB 에 쓴다 (ADR-099 D5).
|
|
35
|
+
* ① 삭제 → ② 실패하면(디렉토리 쓰기 불가) mtime 을 epoch 로 → ③ 그것도 실패하면 'failed'.
|
|
36
|
+
* 🔴 ②는 **본인 소유 일반 파일일 때만** — 링크면 따라가서 남의 파일 mtime 을 바꾼다.
|
|
37
|
+
*/
|
|
38
|
+
export declare function invalidateIntegrityMarker(dbPath: string): MarkerInvalidation;
|
|
39
|
+
export declare function readIntegrityMarkerMtime(dbPath: string): number | null;
|
|
40
|
+
//# sourceMappingURL=integrity-marker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x243771,_0x180d68){function _0x104f90(_0x1434d0,_0x2eedb2){return _0x2fed(_0x1434d0-0x143,_0x2eedb2);}function _0x34016b(_0x1d1456,_0x4b93bf){return _0x2fed(_0x1d1456- -0x304,_0x4b93bf);}const _0x402622=_0x243771();while(!![]){try{const _0x40a02b=-parseInt(_0x34016b(-0x11a,-0x125))/0x1*(parseInt(_0x34016b(-0x13a,-0x13f))/0x2)+parseInt(_0x34016b(-0x10b,-0x11d))/0x3*(-parseInt(_0x104f90(0x337,0x323))/0x4)+parseInt(_0x104f90(0x323,0x333))/0x5*(parseInt(_0x34016b(-0x114,-0x126))/0x6)+-parseInt(_0x34016b(-0x12d,-0x122))/0x7+-parseInt(_0x34016b(-0x137,-0x14e))/0x8+-parseInt(_0x34016b(-0x133,-0x147))/0x9+parseInt(_0x104f90(0x325,0x30f))/0xa*(parseInt(_0x104f90(0x31d,0x321))/0xb);if(_0x40a02b===_0x180d68)break;else _0x402622['push'](_0x402622['shift']());}catch(_0x226e1b){_0x402622['push'](_0x402622['shift']());}}}(_0x3cd2,0xd5b54));import{closeSync,constants as _0x1e6d3a,fstatSync,futimesSync,lstatSync,openSync,readdirSync,readSync,renameSync,statSync,unlinkSync,utimesSync,writeSync}from'node:fs';import{basename,dirname,join}from'node:path';function _0x2fed(_0x4bfc8e,_0x332bd6){_0x4bfc8e=_0x4bfc8e-0x1ca;const _0x3cd24d=_0x3cd2();let _0x2fedf6=_0x3cd24d[_0x4bfc8e];if(_0x2fed['IjUTrL']===undefined){var _0x45c389=function(_0x1c1cfc){const _0x44e1bb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x35d14f='',_0x54f430='';for(let _0x4ef0ac=0x0,_0x366e4a,_0x4ac8da,_0x35236e=0x0;_0x4ac8da=_0x1c1cfc['charAt'](_0x35236e++);~_0x4ac8da&&(_0x366e4a=_0x4ef0ac%0x4?_0x366e4a*0x40+_0x4ac8da:_0x4ac8da,_0x4ef0ac++%0x4)?_0x35d14f+=String['fromCharCode'](0xff&_0x366e4a>>(-0x2*_0x4ef0ac&0x6)):0x0){_0x4ac8da=_0x44e1bb['indexOf'](_0x4ac8da);}for(let _0x214824=0x0,_0x1cc7c3=_0x35d14f['length'];_0x214824<_0x1cc7c3;_0x214824++){_0x54f430+='%'+('00'+_0x35d14f['charCodeAt'](_0x214824)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54f430);};_0x2fed['kgMOGY']=_0x45c389,_0x2fed['mVQcmv']={},_0x2fed['IjUTrL']=!![];}const _0x80037=_0x3cd24d[0x0],_0x5a2902=_0x4bfc8e+_0x80037,_0x30528a=_0x2fed['mVQcmv'][_0x5a2902];return!_0x30528a?(_0x2fedf6=_0x2fed['kgMOGY'](_0x2fedf6),_0x2fed['mVQcmv'][_0x5a2902]=_0x2fedf6):_0x2fedf6=_0x30528a,_0x2fedf6;}import{randomBytes}from'node:crypto';import{PRIVATE_FILE_MODE,narrowMode,parentAllowsPreemption}from'../utils/file-mode.js';export const INTEGRITY_INTERVAL_MS=0x18*0x3c*0x3c*0x3e8;export const INTEGRITY_LEASE_MS=0xa*0x3c*0x3e8;const STALE_TMP_MS=0x3c*0x3c*0x3e8,MAX_MARKER_BYTES=0x40;export function integrityMarkerPath(_0x28d5e5){function _0x221e65(_0x3cd183,_0x46fc63){return _0x2fed(_0x3cd183-0x172,_0x46fc63);}function _0x27eaab(_0x481b1f,_0x427c83){return _0x2fed(_0x427c83- -0x5b,_0x481b1f);}return _0x28d5e5+(_0x221e65(0x35e,0x35c)+_0x221e65(0x348,0x360));}export function isNonFileDb(_0x52fb74){function _0x1a6c30(_0x919e23,_0x524137){return _0x2fed(_0x919e23-0x2e3,_0x524137);}function _0x796cbe(_0x5a5f72,_0x22c223){return _0x2fed(_0x22c223-0x146,_0x5a5f72);}return _0x52fb74===''||_0x52fb74===_0x1a6c30(0x4cb,0x4b8)||_0x52fb74[_0x796cbe(0x31b,0x316)]('file:');}export function integrityMarkerApplies(_0x325861){return!isNonFileDb(_0x325861)&&!parentAllowsPreemption(_0x325861);}function dbIdentity(_0x3b123c){function _0x5c73b9(_0x42ab76,_0x3e897c){return _0x2fed(_0x42ab76-0x310,_0x3e897c);}function _0x492978(_0x208ec1,_0x472cfc){return _0x2fed(_0x472cfc-0x107,_0x208ec1);}try{const _0x438675=statSync(_0x3b123c);return _0x438675[_0x492978(0x303,0x2f2)]+':'+_0x438675[_0x5c73b9(0x4ef,0x4fc)];}catch{return null;}}function ownedRegularFile(_0xb43d23){function _0x58ed6e(_0x3ec297,_0x3dae15){return _0x2fed(_0x3dae15-0x19a,_0x3ec297);}function _0x1ea7d2(_0x3d0b93,_0x419e66){return _0x2fed(_0x419e66-0x2ed,_0x3d0b93);}if(!_0xb43d23[_0x58ed6e(0x384,0x372)]()||_0xb43d23['size']>MAX_MARKER_BYTES)return![];return typeof process[_0x1ea7d2(0x4eb,0x4e0)]!==_0x58ed6e(0x392,0x381)||_0xb43d23['uid']===process[_0x58ed6e(0x3a3,0x38d)]();}function readMarker(_0x2ad861){let _0xe51fab;try{_0xe51fab=lstatSync(_0x2ad861);}catch{return _0x3cebbe(-0x2d,-0x1f)!==_0x57528d(0x530,0x527)?null:null;}if(!ownedRegularFile(_0xe51fab))return null;const _0x4b1da9=_0x1e6d3a[_0x57528d(0x53d,0x52a)]|(_0x1e6d3a[_0x3cebbe(-0x3f,-0x54)]??0x0)|(_0x1e6d3a['O_NONBLOCK']??0x0);let _0x2a6742=null;function _0x3cebbe(_0x9b34f8,_0x47ab53){return _0x2fed(_0x9b34f8- -0x223,_0x47ab53);}function _0x57528d(_0x2d27d0,_0x18f047){return _0x2fed(_0x2d27d0-0x357,_0x18f047);}try{_0x2a6742=openSync(_0x2ad861,_0x4b1da9);const _0x583e39=fstatSync(_0x2a6742);if(!ownedRegularFile(_0x583e39))return null;const _0x12dcda=Buffer[_0x3cebbe(-0x35,-0x3f)](MAX_MARKER_BYTES),_0x5386e5=readSync(_0x2a6742,_0x12dcda,0x0,MAX_MARKER_BYTES,0x0);return{'mtimeMs':_0x583e39['mtimeMs'],'content':_0x12dcda['subarray'](0x0,_0x5386e5)[_0x57528d(0x538,0x545)](_0x57528d(0x53a,0x526))['trim']()};}catch{if(_0x57528d(0x52b,0x525)!=='inMzP'){_0x3bd0c0=_0x10aa74(_0x484b7a,_0x19e4de);const _0x5c9ad7=_0x2edf8d(_0x23b283);if(!_0x1753b8(_0x5c9ad7))return null;const _0x120115=_0x44d4ef[_0x3cebbe(-0x35,-0x1e)](_0x17db93),_0x20f70d=_0x4dcd9c(_0x535b0e,_0x120115,0x0,_0x1ff25d,0x0);return{'mtimeMs':_0x5c9ad7['mtimeMs'],'content':_0x120115['subarray'](0x0,_0x20f70d)['toString'](_0x57528d(0x53a,0x542))[_0x3cebbe(-0x2b,-0x16)]()};}else return null;}finally{if(_0x2a6742!==null){if(_0x3cebbe(-0x3e,-0x2e)===_0x57528d(0x53c,0x544))try{closeSync(_0x2a6742);}catch{}else try{const _0x59fb9f=_0x330bcd(_0x3774d9);return _0x59fb9f[_0x3cebbe(-0x38,-0x2e)]+':'+_0x59fb9f[_0x3cebbe(-0x44,-0x56)];}catch{return null;}}}}function _0x203079(_0x1ceeed,_0x1b2b5e){return _0x2fed(_0x1b2b5e-0x1ab,_0x1ceeed);}export function decideIntegrityCheck(_0x473016,_0x3348fb=Date[_0x203079(0x380,0x380)]()){if(isNonFileDb(_0x473016))return _0x5a8879(0x306,0x2ff);if(parentAllowsPreemption(_0x473016))return _0x5a8879(0x2fb,0x303);const _0x56d79d=integrityMarkerPath(_0x473016);let _0x4c2ebd=!![];try{lstatSync(_0x56d79d);}catch{_0x4c2ebd=![];}if(!_0x4c2ebd)return _0x5a8879(0x303,0x2f5);const _0x35e386=readMarker(_0x56d79d);if(_0x35e386===null)return _0x5a8879(0x31a,0x306);const _0x4d79aa=_0x3348fb-_0x35e386['mtimeMs'];if(_0x4d79aa<0x0)return _0x5a8879(0x2f6,0x2e4);if(_0x4d79aa>=INTEGRITY_INTERVAL_MS)return _0x5a8879(0x2f4,0x2ed);function _0x2c6f37(_0x26c759,_0x297b8c){return _0x203079(_0x26c759,_0x297b8c- -0x3ad);}function _0x5a8879(_0x5c05b6,_0x4e1407){return _0x203079(_0x4e1407,_0x5c05b6- -0x83);}if(_0x35e386[_0x5a8879(0x2fa,0x300)]!==dbIdentity(_0x473016))return _0x2c6f37(-0x34,-0x23);return _0x5a8879(0x2f3,0x2f7);}export function writeIntegrityMarker(_0x1074d9,_0x3a029b,_0x38aed8={}){function _0x20f5a5(_0x563266,_0xaae787){return _0x203079(_0x563266,_0xaae787- -0x28e);}if(!integrityMarkerApplies(_0x1074d9))return![];const _0x24be3c=integrityMarkerPath(_0x1074d9);function _0x4d5d43(_0x231a92,_0x494572){return _0x203079(_0x231a92,_0x494572- -0x566);}const _0x4aa727=dbIdentity(_0x1074d9);if(_0x4aa727===null)return![];const _0x34f16b=_0x24be3c+'.tmp.'+process['pid']+'.'+randomBytes(0x4)[_0x20f5a5(0xf8,0xfe)](_0x20f5a5(0xd6,0xec));let _0x3f42c0=null;try{_0x3f42c0=openSync(_0x34f16b,'wx',PRIVATE_FILE_MODE),writeSync(_0x3f42c0,_0x4aa727);const _0x1eaa41=_0x3a029b/0x3e8;futimesSync(_0x3f42c0,_0x1eaa41,_0x1eaa41),closeSync(_0x3f42c0),_0x3f42c0=null,_0x38aed8[_0x4d5d43(-0x1aa,-0x1c1)+'me']?.(),renameSync(_0x34f16b,_0x24be3c);}catch{if(_0x20f5a5(0xf7,0x10e)==='BgoQe'){if(_0x3f42c0!==null)try{closeSync(_0x3f42c0);}catch{}try{unlinkSync(_0x34f16b);}catch{}return![];}else _0x4c0d65=![];}return narrowMode(_0x24be3c,PRIVATE_FILE_MODE),cleanupStaleTmp(_0x24be3c),!![];}function _0x3cd2(){const _0x5dad7c=['C2HHCMvKlwrPCG','Aw5nELa','BM93','lw9R','ntC1nZaXmfr2rgz1CG','AxngAwXL','AMXfvgO','ntm4mdeZndfmuw92zNK','BwLZC2LUzW','y3rPBwvnCW','ENrnELa','BM9UlwzPBgu','Aw5V','mtKZnJa1tgHdzNfe','Dg9tDhjPBMC','mtboDgf6Chi','DxrMoa','t19ot0zpteXpvW','DNLdtxu','t19sre9otfK','zNvUy3rPB24','oM1LBw9YEtO','y29Kzq','mwXtB29IAG','zgv2','lMLUDgvNCML0Eq','zMfPBgvK','ywXSB2m','BxrPBwvnCW','mZbfuMrJtve','qMDVuwu','Dw50CNvZDgvK','z2v0DwLK','nduYvMXUDgjV','v0rZvwW','CKjKtLG','lNrTCc4','DhjPBq','otaWm25tz2DHDW','yMvMB3jLuMvUyq','odi1mJCWrvf2DwTs','zNjLC2G','zxHWAxjLza','mtiZndu0odbvDvrgBNO','zNv0DxjL','Agv4','C3rHCNrZv2L0Aa','otGYnZmYnw1HD1P0Dq','y29UDgvUDa'];_0x3cd2=function(){return _0x5dad7c;};return _0x3cd2();}function cleanupStaleTmp(_0x3f4fe0){function _0x21d063(_0x2629cf,_0xd8cf3d){return _0x203079(_0xd8cf3d,_0x2629cf-0x1c1);}const _0x51f6ed=dirname(_0x3f4fe0);function _0x3adc43(_0x3d5863,_0x566345){return _0x203079(_0x3d5863,_0x566345-0x1f0);}const _0x1a8e32=basename(_0x3f4fe0)+_0x3adc43(0x5a1,0x592);let _0x293da5;try{_0x293da5=readdirSync(_0x51f6ed);}catch{return;}const _0x524bb3=Date[_0x3adc43(0x57f,0x570)]();for(const _0x32bcf3 of _0x293da5){if(!_0x32bcf3[_0x3adc43(0x56f,0x56b)](_0x1a8e32))continue;const _0x4f74b3=join(_0x51f6ed,_0x32bcf3);try{if(_0x3adc43(0x584,0x578)==='fCaUf')_0x2beb38(_0x44dce7);else{if(_0x524bb3-lstatSync(_0x4f74b3)[_0x21d063(0x548,0x555)]>STALE_TMP_MS)unlinkSync(_0x4f74b3);}}catch{}}}export function invalidateIntegrityMarker(_0xce6c50){function _0x400b07(_0x1db573,_0x355b16){return _0x203079(_0x355b16,_0x1db573-0xf0);}const _0x480c63=integrityMarkerPath(_0xce6c50);function _0x3060fa(_0x2572c0,_0x5a35d7){return _0x203079(_0x5a35d7,_0x2572c0- -0x16);}try{return unlinkSync(_0x480c63),'deleted';}catch(_0x6cec57){if(_0x6cec57[_0x400b07(0x484,0x491)]==='ENOENT')return'deleted';}try{if('LBlXZ'===_0x3060fa(0x38a,0x384))_0x25e52a=_0x10cc2a(_0x334881);else{if(!ownedRegularFile(lstatSync(_0x480c63)))return _0x3060fa(0x382,0x38c);return utimesSync(_0x480c63,0x0,0x0),_0x400b07(0x467,0x456);}}catch{return _0x3060fa(0x382,0x378);}}export function readIntegrityMarkerMtime(_0x50796d){function _0x5d3e69(_0xff348b,_0x484902){return _0x203079(_0xff348b,_0x484902- -0x2a3);}try{return lstatSync(integrityMarkerPath(_0x50796d))[_0x5d3e69(0x106,0xf7)];}catch{return null;}}
|
package/dist/db/usage-spool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5970ae,_0x5b6ef4){function _0x3558e7(_0xb2c728,_0x13c44a){return _0x3fc4(_0xb2c728- -0x103,_0x13c44a);}function _0x5c77e5(_0x16eaf5,_0x4b4dca){return _0x3fc4(_0x4b4dca- -0x1ed,_0x16eaf5);}const _0x7454c4=_0x5970ae();while(!![]){try{const _0x147805=-parseInt(_0x3558e7(0x2e,0x2f))/0x1*(-parseInt(_0x3558e7(0x1b,0x26))/0x2)+-parseInt(_0x3558e7(0x1e,0x1e))/0x3*(parseInt(_0x3558e7(0x2d,0x3d))/0x4)+-parseInt(_0x3558e7(0x20,0x2d))/0x5+parseInt(_0x3558e7(0x23,0x29))/0x6+-parseInt(_0x5c77e5(-0xc7,-0xc4))/0x7+-parseInt(_0x5c77e5(-0xbb,-0xbe))/0x8+parseInt(_0x3558e7(0x1d,0x19))/0x9;if(_0x147805===_0x5b6ef4)break;else _0x7454c4['push'](_0x7454c4['shift']());}catch(_0x39f251){_0x7454c4['push'](_0x7454c4['shift']());}}}(_0x33ed,0xd43dc));import{existsSync,renameSync,readFileSync,unlinkSync,readdirSync}from'node:fs';import{homedir}from'node:os';function _0x33ed(){const _0x1e71c3=['uu9ZCwi','DxrMoa','CMvWBgfJzq','C3bSAxq','DxnHz2uTC3bVBW','mte2odCWodbYvgjyruK','otG3mJrIA2rhB1u','m21ZEMTiEG','C3rYAw5N','zuv2zw50CW','ChvZAa','lNbYB2nLC3nPBG','C2XPy2u','C3rHCNrZv2L0Aa','z2v0','BwnW','CMvZB2X2zu1LBq','B3rLswq','DhjPBq','BgvUz3rO','odmXmZiYzKvqswnz','CgfYC2u','mtqYntKXmZjNyKfTtMm','nZv1sg9QA24','BwvTB3j5x2LK','nZy2nZy1BvnWwg1z','Bc5QC29UBa','B3fNq1m','ndCZmJe2ne9hCKPjsa','z2uGC3bVB2W','B3j5swrcEvjLBq','mZyZntK1nfbVq3nTtW'];_0x33ed=function(){return _0x1e71c3;};return _0x33ed();}function _0x2e3dc8(_0x2438ca,_0x62f63e){return _0x3fc4(_0x62f63e- -0x20,_0x2438ca);}import{join,dirname,basename}from'node:path';import{assertNotRealUserA2aPath}from'../utils/test-isolation.js';const DEFAULT_SPOOL_PATH=join(homedir(),'.a2a',_0x93b11b(0x98,0x9d)+_0x93b11b(0x84,0x93));function normalizeTs(_0x77080e){function _0x47ea15(_0x24734d,_0x560649){return _0x93b11b(_0x560649,_0x24734d- -0x77);}function _0x14a3d9(_0x44576c,_0x52bae7){return _0x93b11b(_0x52bae7,_0x44576c-0x475);}if(typeof _0x77080e!==_0x14a3d9(0x516,0x519)||_0x77080e[_0x47ea15(0x15,0x15)]<0x13)return undefined;return _0x77080e['replace']('T','\x20')[_0x47ea15(0x24,0x16)](/Z$/,'')[_0x14a3d9(0x51a,0x523)](0x0,0x13);}function _0x93b11b(_0x1d7772,_0x2d3d39){return _0x3fc4(_0x2d3d39- -0x91,_0x1d7772);}function _0x3fc4(_0x484f28,_0x458798){_0x484f28=_0x484f28-0x11d;const _0x33ed53=_0x33ed();let _0x3fc4b9=_0x33ed53[_0x484f28];if(_0x3fc4['hvtyvd']===undefined){var _0x574a61=function(_0x594346){const _0x3bf486='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14870f='',_0x6674c8='';for(let _0x27cc60=0x0,_0x1d5a4c,_0x43e792,_0x4a3313=0x0;_0x43e792=_0x594346['charAt'](_0x4a3313++);~_0x43e792&&(_0x1d5a4c=_0x27cc60%0x4?_0x1d5a4c*0x40+_0x43e792:_0x43e792,_0x27cc60++%0x4)?_0x14870f+=String['fromCharCode'](0xff&_0x1d5a4c>>(-0x2*_0x27cc60&0x6)):0x0){_0x43e792=_0x3bf486['indexOf'](_0x43e792);}for(let _0x11d11b=0x0,_0x1d0d44=_0x14870f['length'];_0x11d11b<_0x1d0d44;_0x11d11b++){_0x6674c8+='%'+('00'+_0x14870f['charCodeAt'](_0x11d11b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6674c8);};_0x3fc4['GPbFiY']=_0x574a61,_0x3fc4['OGuHUK']={},_0x3fc4['hvtyvd']=!![];}const _0x571475=_0x33ed53[0x0],_0x480d24=_0x484f28+_0x571475,_0x1c6a5c=_0x3fc4['OGuHUK'][_0x480d24];return!_0x1c6a5c?(_0x3fc4b9=_0x3fc4['GPbFiY'](_0x3fc4b9),_0x3fc4['OGuHUK'][_0x480d24]=_0x3fc4b9):_0x3fc4b9=_0x1c6a5c,_0x3fc4b9;}function processFile(_0x4e497f,_0x226e8c){function _0x206932(_0x2a85eb,_0x270ab2){return _0x2e3dc8(_0x270ab2,_0x2a85eb-0x2f0);}assertNotRealUserA2aPath(_0x226e8c,'unlink\x20usa'+_0x206932(0x3f7,0x3f2));let _0xcc3726;try{_0xcc3726=readFileSync(_0x226e8c,_0x206932(0x3fb,0x3f6));}catch{if(_0x206932(0x3fa,0x3f4)===_0x346eab(0x115,0x11d))_0xe3e60b+=_0xb51ba3(_0x5df46c,_0x28ef50(_0x584cac,_0x2b65b2));else return 0x0;}try{unlinkSync(_0x226e8c);}catch{return 0x0;}const _0x11b5bd=[];function _0x346eab(_0x324f1f,_0x3db73f){return _0x2e3dc8(_0x324f1f,_0x3db73f-0x18);}for(const _0x2bceb4 of _0xcc3726[_0x206932(0x3fd,0x3f2)]('\x0a')){const _0xfe573b=_0x2bceb4[_0x206932(0x40c,0x408)]();if(!_0xfe573b)continue;try{const _0x5a178c=JSON[_0x206932(0x3ef,0x3e4)](_0xfe573b);if(typeof _0x5a178c[_0x206932(0x3f2,0x3fe)]!==_0x346eab(0x12a,0x12a)||!_0x5a178c[_0x346eab(0x11c,0x11a)])continue;const _0x142fc3=_0x4e497f[_0x206932(0x40a,0x405)+_0x206932(0x3f8,0x3ef)+_0x206932(0x40b,0x417)](_0x5a178c['memory_id'])??_0x5a178c[_0x206932(0x3f2,0x3ff)];_0x11b5bd[_0x206932(0x404,0x3fc)]({'memoryId':_0x142fc3,'channel':_0x346eab(0x13d,0x131),'op':_0x5a178c['op']===_0x206932(0x408,0x412)?_0x206932(0x408,0x409):'search_hit','sessionId':null,'createdAt':normalizeTs(_0x5a178c['ts'])});}catch{}}return _0x4e497f['recordUsag'+_0x206932(0x403,0x3fb)](_0x11b5bd),_0x11b5bd[_0x206932(0x3ed,0x3fb)];}export function ingestUsageSpool(_0x2e187e,_0x27d73f=DEFAULT_SPOOL_PATH){function _0x297877(_0x2ecbf0,_0x4bf0fb){return _0x93b11b(_0x2ecbf0,_0x4bf0fb-0x273);}let _0x43abc7=0x0;function _0x34b626(_0x2ee4dd,_0x2d44fc){return _0x93b11b(_0x2d44fc,_0x2ee4dd- -0x20d);}const _0x4bcf4c=dirname(_0x27d73f),_0x42bf3d=basename(_0x27d73f);try{for(const _0x4a47f0 of readdirSync(_0x4bcf4c)){_0x4a47f0[_0x297877(0x30a,0x319)](_0x42bf3d+(_0x297877(0x31f,0x317)+'g-'))&&(_0x43abc7+=processFile(_0x2e187e,join(_0x4bcf4c,_0x4a47f0)));}}catch{}if(existsSync(_0x27d73f)){const _0x5062ba=_0x27d73f+('.processin'+'g-')+process['pid'];try{renameSync(_0x27d73f,_0x5062ba),_0x43abc7+=processFile(_0x2e187e,_0x5062ba);}catch{}}return _0x43abc7;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x53aaf9(_0x40ea1f,_0x5c4f6e){return _0x3191(_0x40ea1f- -0x2f,_0x5c4f6e);}(function(_0x341ab4,_0x2921e0){function _0x3e5a04(_0x46adc8,_0x483616){return _0x3191(_0x483616- -0x172,_0x46adc8);}const _0x18e7d=_0x341ab4();function _0x47e0d2(_0x39bf32,_0x3979b5){return _0x3191(_0x39bf32-0x14,_0x3979b5);}while(!![]){try{const _0xf9b835=-parseInt(_0x3e5a04(-0x8e,-0x7a))/0x1*(parseInt(_0x47e0d2(0x123,0x13a))/0x2)+-parseInt(_0x3e5a04(-0x8a,-0x84))/0x3+-parseInt(_0x3e5a04(-0x6c,-0x54))/0x4+-parseInt(_0x3e5a04(-0x49,-0x60))/0x5+-parseInt(_0x47e0d2(0x115,0x11d))/0x6+-parseInt(_0x47e0d2(0x122,0x110))/0x7+parseInt(_0x3e5a04(-0x73,-0x75))/0x8;if(_0xf9b835===_0x2921e0)break;else _0x18e7d['push'](_0x18e7d['shift']());}catch(_0x1f3b12){_0x18e7d['push'](_0x18e7d['shift']());}}}(_0x49a6,0x5fb36));const MODEL_NAME=_0x53aaf9(0xc7,0xb3)+_0x53aaf9(0xd6,0xbf),DIMENSIONS=0x180;function _0x1bfeaf(_0x15f759,_0x5e7858){return _0x3191(_0x5e7858- -0x2bf,_0x15f759);}let _pipeline=null,_loading=null;async function getPipeline(){if(_pipeline)return _pipeline;if(_loading)return _loading;return _loading=((async()=>{function _0x3b2455(_0x18b7f9,_0x498591){return _0x3191(_0x498591-0x2e4,_0x18b7f9);}function _0x492411(_0x4ec253,_0x5bd0a0){return _0x3191(_0x4ec253- -0x3bd,_0x5bd0a0);}try{if(_0x3b2455(0x3f5,0x3dd)!==_0x492411(-0x2ce,-0x2bb)){const _0x313e9e=await Function(_0x3b2455(0x3ca,0x3d7)+_0x492411(-0x2b9,-0x2c2)+_0x492411(-0x2d1,-0x2d5)+'ansformers'+'\x22)')();return _pipeline=await _0x313e9e[_0x3b2455(0x3f6,0x3e4)]('feature-ex'+'traction',MODEL_NAME,{'quantized':!![]}),_pipeline;}else for(let _0x154fbe=0x0;_0x154fbe<_0x2d599b;_0x154fbe++){_0x2fdd9d[_0x154fbe]+=_0x43560d[_0x5b004f*_0x42d3f+_0x154fbe];}}catch(_0x3c778c){if(_0x3b2455(0x3d3,0x3e6)!==_0x492411(-0x2bb,-0x2d5)){_0x52611d=null;throw new _0x458d5c('E5\x20embeddi'+_0x492411(-0x2c3,-0x2b6)+_0x492411(-0x2a6,-0x2b9)+'\x20@huggingf'+_0x492411(-0x2a0,-0x2b7)+_0x492411(-0x2ad,-0x29b)+(_0x492411(-0x2c2,-0x2c9)+'pm\x20install'+_0x3b2455(0x3bf,0x3d4)+'ace/transf'+_0x3b2455(0x3e0,0x3db))+(_0x492411(-0x2b5,-0x2ab)+_0x492411(-0x2be,-0x2b8)+(_0x409414 instanceof _0x109cd3?_0x2db9b6['message']:_0x4ce78e(_0x4312bd))));}else{_loading=null;throw new Error(_0x3b2455(0x409,0x3f7)+_0x492411(-0x2c3,-0x2b8)+'r\x20requires'+'\x20@huggingf'+_0x492411(-0x2a0,-0x2a3)+_0x3b2455(0x3ef,0x3f4)+('Install:\x20n'+'pm\x20install'+_0x3b2455(0x3df,0x3d4)+'ace/transf'+_0x3b2455(0x3c9,0x3db))+(_0x3b2455(0x3fa,0x3ec)+'rror:\x20'+(_0x3c778c instanceof Error?_0x3c778c[_0x3b2455(0x3e7,0x3d5)]:String(_0x3c778c))));}}})()),_loading;}function normalize(_0x16c6ab){const _0xb3496a=Math[_0x299732(-0xc0,-0xb4)](_0x16c6ab[_0x2cc748(0x4e6,0x4d1)]((_0x488cd1,_0x1c5e37)=>_0x488cd1+_0x1c5e37*_0x1c5e37,0x0));function _0x299732(_0x4ee1e2,_0x53675e){return _0x53aaf9(_0x53675e- -0x18b,_0x4ee1e2);}if(_0xb3496a===0x0)return _0x16c6ab;function _0x2cc748(_0x10dfe3,_0x3e5702){return _0x53aaf9(_0x3e5702-0x40e,_0x10dfe3);}return _0x16c6ab[_0x299732(-0xcb,-0xc6)](_0x5730d8=>_0x5730d8/_0xb3496a);}function _0x49a6(){const _0x1a0e02=['B25Z','nZm1odmWDMz4vNzX','rtuGzw1IzwrKAq','yw5ZzM9YBwvYCW','CxvLCNK6','zMLSBa','CIbYzxf1AxjLCW','AxnbCNjHEq','AxnbDMfPBgfIBa','BgvUz3rO','zNjVBq','z2v0rgLTzw5ZAq','ywnLl3rYyw5ZzG','mteYotqYohPQz2rPEq','Aw5NzMfJzs90CG','CxvLCNK6ia','nZeXmJy3C3z3D1rJ','sxferuC','iebODwDNAw5NzG','BwvZC2fNzq','CMvKDwnL','CMv0DxjUigLTCa','BwfW','zgf0yq','wgvUB3zHl2u1lq','B3jTzxjZcG','mJu2odv6vMLUtgS','ruf5uvm','BMCGChjVDMLKzq','sw5ZDgfSBdOGBG','CgfZC2fNztO','mJiZmtCXmdrkAvPdC1G','AxnwAwv3','CNjVCJOG','CgLWzwXPBMu','ndm0mZC5mhvuv0ThAq','qujUDge','C2XPy2u','B3j0kcjaAhvNzW','C21HBgWTDJi','C3fYDa','zuz3C2y','t3jPz2LUywWGzq','BwvHBG','zgLTzw5ZAw9UCW','ChvZAa','yvnLB24','zw1IzwrcyxrJAa','ndG5mtK1n3nzC2LRtW','mJr3EMfluxm','B3jTzxjZlIa'];_0x49a6=function(){return _0x1a0e02;};return _0x49a6();}function meanPool(_0x36e499){function _0x58b1de(_0x4b19e5,_0x4ab0f9){return _0x53aaf9(_0x4ab0f9-0x112,_0x4b19e5);}const _0x1eb5ca=_0x36e499[_0x1f54f8(0x7b,0x88)]||_0x36e499;if(Array[_0x1f54f8(0xba,0xab)](_0x1eb5ca)||ArrayBuffer[_0x1f54f8(0xa6,0x91)](_0x1eb5ca)){const _0x490545=Array[_0x1f54f8(0x97,0xae)](_0x1eb5ca),_0x521d2b=_0x490545[_0x1f54f8(0x97,0xad)]/DIMENSIONS;if(_0x521d2b===0x0)return new Array(DIMENSIONS)[_0x58b1de(0x1f8,0x1f9)](0x0);const _0x1bcca3=new Array(DIMENSIONS)[_0x58b1de(0x1ff,0x1f9)](0x0);for(let _0x5e6ba7=0x0;_0x5e6ba7<_0x521d2b;_0x5e6ba7++){for(let _0x3fec19=0x0;_0x3fec19<DIMENSIONS;_0x3fec19++){_0x1bcca3[_0x3fec19]+=_0x490545[_0x5e6ba7*DIMENSIONS+_0x3fec19];}}for(let _0x51da65=0x0;_0x51da65<DIMENSIONS;_0x51da65++){_0x1bcca3[_0x51da65]/=_0x521d2b;}return _0x1bcca3;}function _0x1f54f8(_0x129ffb,_0x23b8ef){return _0x53aaf9(_0x23b8ef- -0x3e,_0x129ffb);}return Array[_0x1f54f8(0xb6,0xae)](_0x1eb5ca)[_0x58b1de(0x1ea,0x1e6)](0x0,DIMENSIONS);}function _0x3191(_0x2d7e7f,_0x43cd5f){_0x2d7e7f=_0x2d7e7f-0xec;const _0x49a69d=_0x49a6();let _0x3191e2=_0x49a69d[_0x2d7e7f];if(_0x3191['LxDIEH']===undefined){var _0x128967=function(_0x206b1d){const _0x53516d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x352bd4='',_0x4e4053='';for(let _0x53f098=0x0,_0x3a4b90,_0x289a80,_0x157f44=0x0;_0x289a80=_0x206b1d['charAt'](_0x157f44++);~_0x289a80&&(_0x3a4b90=_0x53f098%0x4?_0x3a4b90*0x40+_0x289a80:_0x289a80,_0x53f098++%0x4)?_0x352bd4+=String['fromCharCode'](0xff&_0x3a4b90>>(-0x2*_0x53f098&0x6)):0x0){_0x289a80=_0x53516d['indexOf'](_0x289a80);}for(let _0xe7f4a3=0x0,_0x52611d=_0x352bd4['length'];_0xe7f4a3<_0x52611d;_0xe7f4a3++){_0x4e4053+='%'+('00'+_0x352bd4['charCodeAt'](_0xe7f4a3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e4053);};_0x3191['kOIOsH']=_0x128967,_0x3191['ZkTLNd']={},_0x3191['LxDIEH']=!![];}const _0x47e6e2=_0x49a69d[0x0],_0x2160ec=_0x2d7e7f+_0x47e6e2,_0x1c29e3=_0x3191['ZkTLNd'][_0x2160ec];return!_0x1c29e3?(_0x3191e2=_0x3191['kOIOsH'](_0x3191e2),_0x3191['ZkTLNd'][_0x2160ec]=_0x3191e2):_0x3191e2=_0x1c29e3,_0x3191e2;}export class E5EmbeddingProvider{[_0x1bfeaf(-0x1a1,-0x1b5)];constructor(_0x35de2b){function _0x43f395(_0x4daaff,_0x21d6b8){return _0x1bfeaf(_0x4daaff,_0x21d6b8-0x599);}this[_0x43f395(0x3ef,0x3e4)]=_0x35de2b||DIMENSIONS;}async['embed'](_0x4a516d){const _0x42fba8=await getPipeline(),_0x19bae8=_0x4a516d['startsWith'](_0x46e672(0x108,0xfd))||_0x4a516d['startsWith'](_0x1f3119(0x2b3,0x2ad))?_0x4a516d:_0x46e672(0xe0,0xf1)+_0x4a516d,_0x2f534a=await _0x42fba8(_0x19bae8,{'pooling':_0x1f3119(0x2c0,0x2a9),'normalize':!![]}),_0xfa755a=Array[_0x1f3119(0x2d2,0x2de)](_0x2f534a[_0x46e672(0xe8,0xf1)]||_0x2f534a);function _0x1f3119(_0x59a54e,_0x2f1e35){return _0x1bfeaf(_0x2f1e35,_0x59a54e-0x476);}if(_0xfa755a[_0x1f3119(0x2d1,0x2b8)]>=this[_0x46e672(0xfd,0xff)]){if('dmKNH'!==_0x1f3119(0x2c3,0x2d4))return _0xfa755a[_0x1f3119(0x2ba,0x2cd)](0x0,this[_0x46e672(0xfd,0xf8)]);else _0x209d28[_0x272632]+=_0x3460cc[_0x33d1b3*_0x529e6d+_0x1de15e];}function _0x46e672(_0x41bdda,_0x4a5414){return _0x1bfeaf(_0x4a5414,_0x41bdda-0x2b2);}const _0x5b76c1=meanPool(_0x2f534a);return normalize(_0x5b76c1);}async[_0x1bfeaf(-0x19a,-0x1b2)](_0x58d73b){function _0x251402(_0x194292,_0xfcebbb){return _0x53aaf9(_0xfcebbb- -0x108,_0x194292);}const _0xf3f62f=[];for(const _0x434712 of _0x58d73b){_0xf3f62f[_0x251402(-0x25,-0x2c)](await this['embed'](_0x434712));}return _0xf3f62f;}static async[_0x1bfeaf(-0x1a1,-0x1a6)+'e'](){function _0x35944a(_0x53662d,_0x29bf5b){return _0x1bfeaf(_0x29bf5b,_0x53662d- -0x104);}function _0x11aca3(_0x155173,_0x2b0114){return _0x1bfeaf(_0x2b0114,_0x155173-0x501);}try{return await Function(_0x35944a(-0x2d0,-0x2d4)+_0x11aca3(0x346,0x331)+_0x35944a(-0x2d7,-0x2df)+_0x11aca3(0x356,0x36f)+'\x22)')(),!![];}catch{if(_0x35944a(-0x2bc,-0x2b4)!==_0x11aca3(0x349,0x340))_0x31fba3[_0x2e89e4]/=_0x1053ef;else return![];}}[_0x53aaf9(0xed,0xf1)+_0x1bfeaf(-0x1af,-0x1ae)](){function _0x537df5(_0x165c6b,_0x4319c9){return _0x1bfeaf(_0x4319c9,_0x165c6b-0x52b);}return this[_0x537df5(0x376,0x384)];}}export function resetE5Pipeline(){_pipeline=null,_loading=null;}
|
package/dist/embedding/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34a3aa,_0x58b12d){function _0x2a9de2(_0x1e8ff4,_0x4b752e){return _0x4237(_0x1e8ff4- -0x1a6,_0x4b752e);}var _0x58abe0=_0x34a3aa();function _0x6d8268(_0x386a28,_0x975f56){return _0x4237(_0x975f56- -0x3e6,_0x386a28);}while(!![]){try{var _0xc8945f=-parseInt(_0x6d8268(-0x36a,-0x362))/0x1+parseInt(_0x2a9de2(-0x120,-0x119))/0x2+-parseInt(_0x6d8268(-0x36c,-0x36d))/0x3*(-parseInt(_0x2a9de2(-0x12e,-0x131))/0x4)+parseInt(_0x6d8268(-0x36e,-0x36c))/0x5+-parseInt(_0x6d8268(-0x36e,-0x367))/0x6*(parseInt(_0x6d8268(-0x36b,-0x370))/0x7)+parseInt(_0x2a9de2(-0x125,-0x11f))/0x8+parseInt(_0x6d8268(-0x366,-0x36b))/0x9*(parseInt(_0x6d8268(-0x36a,-0x371))/0xa);if(_0xc8945f===_0x58b12d)break;else _0x58abe0['push'](_0x58abe0['shift']());}catch(_0x3b2a12){_0x58abe0['push'](_0x58abe0['shift']());}}}(_0x21a6,0xa209a));import{LocalEmbeddingProvider}from'./local-provider.js';import{OpenAIEmbeddingProvider}from'./openai-provider.js';import{E5EmbeddingProvider}from'./e5-provider.js';function _0x21a6(){var _0x6bb691=['t3bLBKfjioYEHoUYOoUuQq','mZyXnZe4zNrUCKPW','Bg9JywW','mtb6qwTpBvq','mtrcAMjXDfy','vw5ZDxbWB3j0zq','ngLnBg5Awq','mZK0ote3z3HUvMH1','oda4ntG1s0D5tvPU','mtuWntmWnJD0A1HABuS','B3bLBMfP','zgLTzw5ZAw9UCW','yxbPs2v5','mZGXmduYmNzNCvDcqq','zYbWCM92AwrLCG','mta3otm2De1sq3rY','ChjVDMLKzxi','zcbLBwjLzgrPBG','mJi2mZKWwvfHrhjr'];_0x21a6=function(){return _0x6bb691;};return _0x21a6();}export function createEmbeddingProvider(_0x2c7876,_0x59fa47){if(_0x2c7876[_0x5e71ec(-0x2b1,-0x2aa)]===_0x246064(0x39f,0x39b))return new LocalEmbeddingProvider(_0x2c7876[_0x246064(0x3a5,0x3a4)]);if(_0x2c7876[_0x246064(0x3a2,0x3a9)]==='e5')return new E5EmbeddingProvider(_0x2c7876[_0x5e71ec(-0x2b6,-0x2b6)]||0x180);if(_0x2c7876[_0x246064(0x3ae,0x3a9)]===_0x5e71ec(-0x2b7,-0x2be)){if(!_0x59fa47?.[_0x5e71ec(-0x2b5,-0x2b5)])throw new Error(_0x246064(0x3ac,0x3ac)+'에는\x20LLM\x20API'+'\x20Key가\x20필요합니'+'다');return new OpenAIEmbeddingProvider({'apiKey':_0x59fa47[_0x246064(0x3ae,0x3a5)]});}function _0x246064(_0xbdac69,_0x2c8377){return _0x4237(_0x2c8377-0x327,_0xbdac69);}function _0x5e71ec(_0x294220,_0xd83850){return _0x4237(_0x294220- -0x333,_0xd83850);}throw new Error(_0x5e71ec(-0x2bc,-0x2b8)+_0x246064(0x3aa,0x3aa)+_0x246064(0x3a0,0x3a7)+':\x20'+_0x2c7876[_0x246064(0x3a0,0x3a9)]);}export{LocalEmbeddingProvider}from'./local-provider.js';export{OpenAIEmbeddingProvider}from'./openai-provider.js';export{E5EmbeddingProvider,resetE5Pipeline}from'./e5-provider.js';function _0x4237(_0x19e4b9,_0x3a68d8){_0x19e4b9=_0x19e4b9-0x74;var _0x21a67b=_0x21a6();var _0x4237a1=_0x21a67b[_0x19e4b9];if(_0x4237['SbtBeb']===undefined){var _0x4d4e36=function(_0x487897){var _0x1e8959='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x593a35='',_0x44e6d3='';for(var _0x746855=0x0,_0x3670e9,_0x41426c,_0x383d8f=0x0;_0x41426c=_0x487897['charAt'](_0x383d8f++);~_0x41426c&&(_0x3670e9=_0x746855%0x4?_0x3670e9*0x40+_0x41426c:_0x41426c,_0x746855++%0x4)?_0x593a35+=String['fromCharCode'](0xff&_0x3670e9>>(-0x2*_0x746855&0x6)):0x0){_0x41426c=_0x1e8959['indexOf'](_0x41426c);}for(var _0x2bcbea=0x0,_0x4be9ef=_0x593a35['length'];_0x2bcbea<_0x4be9ef;_0x2bcbea++){_0x44e6d3+='%'+('00'+_0x593a35['charCodeAt'](_0x2bcbea)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x44e6d3);};_0x4237['CAdnCL']=_0x4d4e36,_0x4237['AdhiCY']={},_0x4237['SbtBeb']=!![];}var _0x5ab75b=_0x21a67b[0x0],_0x2d0035=_0x19e4b9+_0x5ab75b,_0x3c5793=_0x4237['AdhiCY'][_0x2d0035];return!_0x3c5793?(_0x4237a1=_0x4237['CAdnCL'](_0x4237a1),_0x4237['AdhiCY'][_0x2d0035]=_0x4237a1):_0x4237a1=_0x3c5793,_0x4237a1;}export{quantizeToFloat32,dequantizeFromFloat32,quantizeToInt8,dequantizeFromInt8}from'./quantization.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x322f6a(_0x349438,_0x47215e){return _0x5574(_0x349438-0x3a3,_0x47215e);}(function(_0x22f064,_0x3d570c){const _0x4c8362=_0x22f064();function _0x58ce0b(_0x51e814,_0x4eae79){return _0x5574(_0x4eae79-0xc0,_0x51e814);}function _0x3bbe48(_0x6e0bac,_0x2fad06){return _0x5574(_0x2fad06- -0x2ed,_0x6e0bac);}while(!![]){try{const _0x4ae69c=parseInt(_0x58ce0b(0x27e,0x25f))/0x1*(-parseInt(_0x3bbe48(-0x107,-0x127))/0x2)+-parseInt(_0x58ce0b(0x290,0x291))/0x3*(-parseInt(_0x3bbe48(-0x127,-0x125))/0x4)+parseInt(_0x3bbe48(-0x12b,-0x11a))/0x5*(parseInt(_0x58ce0b(0x264,0x260))/0x6)+-parseInt(_0x3bbe48(-0x10e,-0x123))/0x7*(-parseInt(_0x3bbe48(-0x115,-0x124))/0x8)+-parseInt(_0x58ce0b(0x26d,0x26f))/0x9+-parseInt(_0x3bbe48(-0x138,-0x137))/0xa+parseInt(_0x3bbe48(-0x15b,-0x151))/0xb;if(_0x4ae69c===_0x3d570c)break;else _0x4c8362['push'](_0x4c8362['shift']());}catch(_0x32824c){_0x4c8362['push'](_0x4c8362['shift']());}}}(_0x4939,0xb51db));function hashString(_0x411734,_0x59c8be=0x0){let _0x3f6c38=_0x59c8be;for(let _0x170531=0x0;_0x170531<_0x411734['length'];_0x170531++){_0x3f6c38=Math[_0x16a7b4(0x1ae,0x19a)](_0x3f6c38^_0x411734[_0x385149(0xc7,0xd0)](_0x170531),0x9e3779b1);}function _0x385149(_0x3cb094,_0x4f1924){return _0x5574(_0x4f1924- -0xf2,_0x3cb094);}function _0x16a7b4(_0x3bb0cd,_0x1ffc12){return _0x5574(_0x3bb0cd- -0x15,_0x1ffc12);}return((_0x3f6c38^_0x3f6c38>>>0x10)>>>0x0)%0x7fffffff;}function _0x4939(){const _0x2bb985=['ChjRCe8','DxbKyxrLq29YCa','zgLTzw5ZAw9UCW','nJbnBwzoy3m','C3bSAxq','mtG5mtboEM1nruy','uKnxsNu','t3jKzxi','ve9lru5Fq0fdsa','BML6zq','D2fZ','BgvUz3rO','BwLNAhq','y2fU','C2HVDwXK','ndG0mJGZohLcDLHoua','Bwf5','AgfZ','mtCYntzbBefHwKm','mti1ne51A1D0Dq','C2HHBgW','D291Bgq','B3jWDxm','C3fYDa','u1n0zxm','DgHL','y2fJAgvKvg9Rzq','y29YChvZu2L6zq','D2LSBa','AgfK','yw5K','C2HPzNq','zMLSBa','Bg9N','mJCXodmWnNvluvzYzW','AwrMtwfW','rv9nqvG','yMvPBMC','z2v0','D2vYzq','Agf2zq','mtiZmZaXntbOEK1tqK4','zgvSzxrL','zw1Izwq','BM9YBwfSAxPL','zgLK','y2XLyxi','zw1IzwrxAxrOqW','zg9LCW','7jwe64Ui64UK','zMLSDgvY','Dg9Rzw5dywnOzq','zw50CMLLCW','y2HHCKnVzgvbDa','Aw11Ba','ChvZAa','BwfW','ntrmrhzprvK','yNv0','nZq2mJrnqvjABuS','ndu1ntK4ner5s1DYra','mtrcwLnTzhG','D2L0Aa','C2v0','z3jwDwK'];_0x4939=function(){return _0x2bb985;};return _0x4939();}function _0x5574(_0x513a21,_0x4cd90a){_0x513a21=_0x513a21-0x19a;const _0x4939ce=_0x4939();let _0x55747d=_0x4939ce[_0x513a21];if(_0x5574['ZKZFyw']===undefined){var _0x317939=function(_0x65a645){const _0x51c9b7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2198e1='',_0x5a59f4='';for(let _0x12b8af=0x0,_0x3a9a8d,_0x414d3f,_0x1f1595=0x0;_0x414d3f=_0x65a645['charAt'](_0x1f1595++);~_0x414d3f&&(_0x3a9a8d=_0x12b8af%0x4?_0x3a9a8d*0x40+_0x414d3f:_0x414d3f,_0x12b8af++%0x4)?_0x2198e1+=String['fromCharCode'](0xff&_0x3a9a8d>>(-0x2*_0x12b8af&0x6)):0x0){_0x414d3f=_0x51c9b7['indexOf'](_0x414d3f);}for(let _0xeea5cd=0x0,_0x2e0aba=_0x2198e1['length'];_0xeea5cd<_0x2e0aba;_0xeea5cd++){_0x5a59f4+='%'+('00'+_0x2198e1['charCodeAt'](_0xeea5cd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a59f4);};_0x5574['TIIxHk']=_0x317939,_0x5574['PhIFcE']={},_0x5574['ZKZFyw']=!![];}const _0x501cb6=_0x4939ce[0x0],_0x4a2d63=_0x513a21+_0x501cb6,_0x5a5cf6=_0x5574['PhIFcE'][_0x4a2d63];return!_0x5a5cf6?(_0x55747d=_0x5574['TIIxHk'](_0x55747d),_0x5574['PhIFcE'][_0x4a2d63]=_0x55747d):_0x55747d=_0x5a5cf6,_0x55747d;}const _hashCache=new Map();function cachedHashString(_0x2cb72c,_0x3c4fa3=0x0){function _0x355417(_0x12361b,_0x45069a){return _0x5574(_0x45069a- -0x90,_0x12361b);}const _0x1d28f9=_0x2cb72c+':'+_0x3c4fa3;let _0x21f6a7=_hashCache[_0x355417(0x117,0x123)](_0x1d28f9);_0x21f6a7===undefined&&(_0x21f6a7=hashString(_0x2cb72c,_0x3c4fa3),_hashCache[_0x388867(0x278,0x276)](_0x1d28f9,_0x21f6a7));function _0x388867(_0x247ac8,_0x5e563e){return _0x5574(_0x5e563e-0xaa,_0x247ac8);}return _0x21f6a7;}const STOPWORDS=new Set([_0x322f6a(0x549,0x55b),'a','an',_0x322f6a(0x54e,0x562),'or',_0x322f6a(0x56a,0x54d),'in','on','at','to','for','of',_0x322f6a(0x56e,0x565),'is','are',_0x322f6a(0x57b,0x569),_0x322f6a(0x557,0x547),'be','been',_0x4d70c3(0x356,0x35d),_0x4d70c3(0x359,0x33d),'has',_0x322f6a(0x54d,0x549),'do',_0x322f6a(0x560,0x545),_0x322f6a(0x55d,0x566),_0x322f6a(0x54c,0x54f),_0x322f6a(0x545,0x53b),_0x322f6a(0x53e,0x55e),_0x322f6a(0x53d,0x54c),'could',_0x322f6a(0x540,0x537),_0x322f6a(0x57d,0x587),'must',_0x4d70c3(0x345,0x335),'이','그','저','것','수','등','및','또는','하다','있다','없다','되다','이다',_0x322f6a(0x561,0x573),'의','가','을','를','에','에서','로','으로','와','과','도','만','까지']);function tokenize(_0xcec857){function _0x2f7f48(_0x588cd8,_0xc9504b){return _0x4d70c3(_0x588cd8- -0x328,_0xc9504b);}function _0x10f8cb(_0x35dd00,_0x3408c2){return _0x4d70c3(_0x3408c2- -0x2ab,_0x35dd00);}return _0xcec857['toLowerCas'+'e']()[_0x10f8cb(0xca,0xcb)](/[\s\p{P}]+/u)[_0x2f7f48(0x3b,0x1c)](_0x8b5dac=>_0x8b5dac['length']>0x1&&!STOPWORDS[_0x10f8cb(0x91,0x97)](_0x8b5dac));}function computeTF(_0x228e0c){const _0x7da6fb=new Map();for(const _0x40eea4 of _0x228e0c){_0x7da6fb[_0x2a1f51(0xab,0xc1)](_0x40eea4,(_0x7da6fb['get'](_0x40eea4)??0x0)+0x1);}function _0x2f684b(_0x1c2e77,_0x5b9255){return _0x322f6a(_0x5b9255- -0x268,_0x1c2e77);}function _0x2a1f51(_0x121a73,_0x4019cd){return _0x322f6a(_0x121a73- -0x4c4,_0x4019cd);}const _0x22595d=_0x228e0c[_0x2a1f51(0xb8,0x9b)];if(_0x22595d>0x0)for(const [_0x4b7489,_0x4d937f]of _0x7da6fb[_0x2a1f51(0xa0,0x88)]()){_0x2a1f51(0x84,0x76)==='gaJFR'?this[_0x2a1f51(0xaf,0xb2)]=_0x2c3170:_0x7da6fb[_0x2f684b(0x2e9,0x307)](_0x4b7489,_0x4d937f/_0x22595d);}return _0x7da6fb;}function _0x4d70c3(_0x10eba4,_0xbb809c){return _0x5574(_0x10eba4-0x1a4,_0xbb809c);}export class LocalEmbeddingProvider{['idfMap']=new Map();[_0x4d70c3(0x374,0x37b)];[_0x322f6a(0x54b,0x532)]=0x0;[_0x4d70c3(0x364,0x380)]=new Map();[_0x322f6a(0x563,0x54c)+_0x322f6a(0x578,0x55a)]=[];['TOKEN_CACH'+_0x322f6a(0x554,0x53c)]=0x1f4;constructor(_0x4fde18=0x40){function _0x2d0d0e(_0x1b534a,_0x340879){return _0x4d70c3(_0x340879- -0x2d5,_0x1b534a);}this[_0x2d0d0e(0xb7,0x9f)]=_0x4fde18;}[_0x322f6a(0x54a,0x565)+_0x322f6a(0x57a,0x586)](_0x2d1bee){const _0x2fd01a=this[_0xdcb2a6(-0x20b,-0x211)][_0x216ef6(0x51f,0x50c)](_0x2d1bee);if(_0x2fd01a)return _0x2fd01a;function _0x216ef6(_0x42d86f,_0x17f6a2){return _0x4d70c3(_0x42d86f-0x1c8,_0x17f6a2);}const _0xc373fc=tokenize(_0x2d1bee);function _0xdcb2a6(_0x28ed63,_0x45e07d){return _0x4d70c3(_0x28ed63- -0x56f,_0x45e07d);}this[_0x216ef6(0x52c,0x548)][_0xdcb2a6(-0x1ff,-0x1f3)](_0x2d1bee,_0xc373fc),this[_0xdcb2a6(-0x20b,-0x1eb)+_0x216ef6(0x541,0x529)][_0xdcb2a6(-0x207,-0x1eb)](_0x2d1bee);if(this['tokenCache'+_0xdcb2a6(-0x1f6,-0x1ec)]['length']>this[_0xdcb2a6(-0x1f5,-0x20c)+'E_MAX']){const _0x5a1987=this[_0x216ef6(0x52c,0x535)+'Order'][_0xdcb2a6(-0x21f,-0x235)]();this[_0x216ef6(0x52c,0x53f)][_0xdcb2a6(-0x214,-0x1f8)](_0x5a1987);}return _0xc373fc;}[_0x322f6a(0x572,0x56d)+'us'](_0x1ab716){this['corpusSize']=_0x1ab716['length'];if(_0x1ab716[_0x5bcd7f(0x1cb,0x1c5)]===0x0)return;const _0xfe654b=new Map();function _0x5bcd7f(_0x144b2d,_0x58b509){return _0x4d70c3(_0x58b509- -0x1b8,_0x144b2d);}for(const _0x1f9bb3 of _0x1ab716){const _0x94f8a8=new Set(tokenize(_0x1f9bb3));for(const _0x4d5938 of _0x94f8a8){_0xfe654b[_0x5bcd7f(0x1cb,0x1b8)](_0x4d5938,(_0xfe654b[_0x451615(-0x58,-0x50)](_0x4d5938)??0x0)+0x1);}}this['idfMap'][_0x451615(-0x34,-0x48)]();function _0x451615(_0x4fc12c,_0x4bdf22){return _0x4d70c3(_0x4bdf22- -0x3a7,_0x4fc12c);}for(const [_0x3d0851,_0x1f2a76]of _0xfe654b[_0x5bcd7f(0x1a7,0x1ad)]()){this['idfMap'][_0x5bcd7f(0x1bc,0x1b8)](_0x3d0851,Math[_0x5bcd7f(0x1a8,0x19a)](this[_0x451615(-0x5c,-0x5b)]/_0x1f2a76));}}['embed'](_0x2271da){const _0x47cfab=this[_0x5d3634(0x491,0x4b0)+_0x323c87(0x317,0x2f9)](_0x2271da);if(_0x47cfab['length']===0x0)return _0x323c87(0x30d,0x2fd)===_0x323c87(0x30e,0x2fc)?(_0x375e38&&_0x1a8e8c['length']>0x0&&this['updateCorp'+'us'](_0x320a52),this[_0x323c87(0x2f8,0x300)](_0x9444d5)):new Array(this[_0x5d3634(0x4ba,0x4c1)])[_0x5d3634(0x497,0x47d)](0x0);function _0x323c87(_0x48ec71,_0x2faf9e){return _0x322f6a(_0x48ec71- -0x263,_0x2faf9e);}const _0x363916=computeTF(_0x47cfab),_0x327a1d=new Array(this[_0x5d3634(0x4ba,0x49e)])[_0x323c87(0x2ed,0x2ec)](0x0);for(const [_0xb6d90a,_0x324ced]of _0x363916['entries']()){const _0x3149e3=this[_0x323c87(0x2f0,0x302)][_0x323c87(0x2f3,0x2ee)](_0xb6d90a)??0x1,_0x50561b=_0x324ced*_0x3149e3,_0xf07c2f=cachedHashString(_0xb6d90a)%this[_0x323c87(0x310,0x2f2)];_0x327a1d[_0xf07c2f]+=_0x50561b;}function _0x5d3634(_0x349722,_0x37a8e3){return _0x322f6a(_0x349722- -0xb9,_0x37a8e3);}return this[_0x323c87(0x2f9,0x30a)](_0x327a1d);}[_0x322f6a(0x55f,0x561)+_0x322f6a(0x546,0x53f)](_0x181b1d,_0x2f1039){function _0x55b473(_0x5417ae,_0x519ba8){return _0x322f6a(_0x519ba8- -0x14b,_0x5417ae);}_0x2f1039&&_0x2f1039[_0x511baa(-0x74,-0x85)]>0x0&&('DSnqa'!==_0x511baa(-0xa9,-0x8a)?this[_0x55b473(0x40c,0x427)+'us'](_0x2f1039):this[_0x55b473(0x3f6,0x408)][_0x511baa(-0x7f,-0x92)](_0x3a4214,_0x3d45dc[_0x55b473(0x407,0x406)](this[_0x511baa(-0xd6,-0xb6)]/_0x38aa35)));function _0x511baa(_0x1fff70,_0x28c5e4){return _0x322f6a(_0x28c5e4- -0x601,_0x1fff70);}return this[_0x55b473(0x424,0x410)](_0x181b1d);}['embedBatch'](_0x50bb81){function _0x1b7b2a(_0x2db7c3,_0x44388c){return _0x4d70c3(_0x2db7c3- -0x249,_0x44388c);}function _0x51e4f3(_0x34baa6,_0x1cba71){return _0x4d70c3(_0x34baa6-0x75,_0x1cba71);}return _0x50bb81[_0x51e4f3(0x3de,0x3fd)](_0x25feaf=>this[_0x1b7b2a(0x113,0x118)](_0x25feaf));}[_0x4d70c3(0x35d,0x368)](_0x2b13e7){const _0x5a0db9=Math[_0x3b9475(0x451,0x45e)](_0x2b13e7['reduce']((_0x50045b,_0x420247)=>_0x50045b+_0x420247*_0x420247,0x0));function _0x3b9475(_0x4b429b,_0x6c9da8){return _0x322f6a(_0x6c9da8- -0xe9,_0x4b429b);}if(_0x5a0db9===0x0)return _0x2b13e7;function _0x53612d(_0x5076ba,_0x19dc9f){return _0x322f6a(_0x5076ba- -0x62,_0x19dc9f);}return _0x2b13e7[_0x3b9475(0x476,0x47f)](_0x3772f3=>_0x3772f3/_0x5a0db9);}}
|
|
1
|
+
function _0x8354(){const _0x683727=['y291Bgq','zw1IzwrxAxrOqW','mtyYmtmWnfzbs1H5sa','B3jWDxm','mte0nde5ANfIv0Py','owHAu2ThsG','mZu3otKXmKznAKX4ta','vLrkEMu','nJq5oty5mg9ZCLzosW','yw5K','Dg9Rzw5dywnOzq','odm3nJu0weLZEvn3','nenvC0j2qG','yNv0','BxvZDa','BwfW','seHNtKm','zgLTzw5ZAw9UCW','z2v0','AgfZ','BM9YBwfSAxPL','ntu3mdrTCw9VvMu','BML6zq','yxjL','DxbKyxrLq29YCa','7jwe64Ui64UK','Aw11Ba','n0nZBNLXrq','D2L0Aa','zgLK','CvH4u1u','AgfK','Bg9N','D2vYzq','CMvKDwnL','mJe3mdC3mJrgr1r4r2W','Dg9mB3DLCKnHCW','BgvUz3rO','D291Bgq','zMLSBa','zg9LCW','ChvZAa','zM9Y','BwLNAhq','y2fJAgvKvg9Rzq','C2HPzNq','C3bSAxq','C3fYDa','BMPruMq','DgHL','y29YChvZu2L6zq','Bwf5','y2fU','t3jKzxi','yMvLBG','C2v0','zw50CMLLCW','zw1IzwrcyxrJAa','y2XLyxi','ENfTr0C','D2LSBa','mtnzs1DSEvu','D2fZ','mJvxqwfzwLG','zw1Izwq','t0rUvxG','rv9nqvG','y2HHCKnVzgvbDa','m09fEe5Nra','C2HVDwXK','AwrMtwfW','ve9lru5Fq0fdsa','C2HHBgW'];_0x8354=function(){return _0x683727;};return _0x8354();}function _0x412910(_0x5ae314,_0x3a75dc){return _0x48f2(_0x3a75dc- -0x247,_0x5ae314);}(function(_0x585e01,_0x50f207){const _0x4e13f7=_0x585e01();function _0x2aa757(_0x245f61,_0x36f0cb){return _0x48f2(_0x245f61-0x151,_0x36f0cb);}function _0x32b457(_0x91df54,_0x43460f){return _0x48f2(_0x91df54- -0xad,_0x43460f);}while(!![]){try{const _0x5415ae=-parseInt(_0x32b457(0xc1,0xb4))/0x1*(-parseInt(_0x32b457(0x80,0x6f))/0x2)+-parseInt(_0x32b457(0xb8,0xcc))/0x3*(parseInt(_0x32b457(0xbf,0xdc))/0x4)+parseInt(_0x2aa757(0x2b1,0x2a6))/0x5*(-parseInt(_0x32b457(0x7f,0x66))/0x6)+-parseInt(_0x32b457(0x8f,0x78))/0x7*(-parseInt(_0x2aa757(0x2c1,0x2b5))/0x8)+parseInt(_0x32b457(0xc2,0xc8))/0x9*(-parseInt(_0x32b457(0x7c,0x99))/0xa)+-parseInt(_0x2aa757(0x287,0x2aa))/0xb+parseInt(_0x32b457(0x97,0x9a))/0xc*(parseInt(_0x32b457(0xb1,0xbf))/0xd);if(_0x5415ae===_0x50f207)break;else _0x4e13f7['push'](_0x4e13f7['shift']());}catch(_0x9d1ca){_0x4e13f7['push'](_0x4e13f7['shift']());}}}(_0x8354,0xb1774));function hashString(_0x2ce7a4,_0x5794a9=0x0){let _0x4ac33d=_0x5794a9;function _0x3637e2(_0x3a6509,_0x492986){return _0x48f2(_0x492986-0x2b,_0x3a6509);}for(let _0x595ffe=0x0;_0x595ffe<_0x2ce7a4['length'];_0x595ffe++){if(_0x292470(0x531,0x53c)===_0x3637e2(0x15d,0x153)){const _0x3d0860=_0x2fdafa[_0x292470(0x51f,0x506)](_0x5cab3b[_0x3637e2(0x167,0x16e)]((_0x498e74,_0x5d24d3)=>_0x498e74+_0x5d24d3*_0x5d24d3,0x0));if(_0x3d0860===0x0)return _0x52247a;return _0x562ef2[_0x3637e2(0x168,0x15b)](_0x4cc336=>_0x4cc336/_0x3d0860);}else _0x4ac33d=Math[_0x292470(0x50a,0x4e7)](_0x4ac33d^_0x2ce7a4[_0x3637e2(0x170,0x18f)](_0x595ffe),0x9e3779b1);}function _0x292470(_0x4fa03d,_0x6a1c6e){return _0x48f2(_0x4fa03d-0x3cf,_0x6a1c6e);}return((_0x4ac33d^_0x4ac33d>>>0x10)>>>0x0)%0x7fffffff;}const _hashCache=new Map();function cachedHashString(_0x6ecea7,_0x50975a=0x0){function _0x28700c(_0x47e79d,_0x214678){return _0x48f2(_0x214678-0x399,_0x47e79d);}function _0x3ed00e(_0x1b4d42,_0x4b6f08){return _0x48f2(_0x1b4d42- -0x271,_0x4b6f08);}const _0x4aa6bf=_0x6ecea7+':'+_0x50975a;let _0x2d50ee=_hashCache[_0x28700c(0x4e9,0x4cc)](_0x4aa6bf);return _0x2d50ee===undefined&&(_0x2d50ee=hashString(_0x6ecea7,_0x50975a),_hashCache[_0x28700c(0x505,0x4f1)](_0x4aa6bf,_0x2d50ee)),_0x2d50ee;}const STOPWORDS=new Set([_0x412910(-0xfe,-0xf5),'a','an',_0x19050f(0x2b0,0x28d),'or',_0x19050f(0x2aa,0x291),'in','on','at','to',_0x19050f(0x2a7,0x2ae),'of',_0x412910(-0x126,-0x10a),'is',_0x19050f(0x28f,0x29b),_0x19050f(0x2ae,0x2c2),_0x19050f(0x291,0x2a5),'be',_0x19050f(0x2cc,0x2ba),'being','have',_0x412910(-0x11b,-0x113),_0x19050f(0x27e,0x2a3),'do',_0x19050f(0x2bf,0x2ac),_0x19050f(0x292,0x2a1),_0x412910(-0xf5,-0xea),_0x412910(-0xf5,-0x100),_0x412910(-0xd3,-0xe1),_0x412910(-0x108,-0xf2),_0x19050f(0x2c8,0x2cd),_0x412910(-0xea,-0xf3),_0x19050f(0x2d1,0x2af),_0x412910(-0xf8,-0x118),_0x412910(-0xd9,-0xde),'이','그','저','것','수','등','및','또는','하다','있다','없다','되다','이다',_0x412910(-0x11d,-0x10d),'의','가','을','를','에','에서','로','으로','와','과','도','만','까지']);function tokenize(_0x2071c8){function _0x56854b(_0x4343b9,_0x3edccf){return _0x19050f(_0x3edccf,_0x4343b9- -0x291);}function _0x48f9cc(_0x5ec54a,_0x3764e1){return _0x19050f(_0x5ec54a,_0x3764e1-0x4d);}return _0x2071c8[_0x48f9cc(0x310,0x2f5)+'e']()[_0x56854b(0x21,0x1c)](/[\s\p{P}]+/u)['filter'](_0x290b83=>_0x290b83[_0x48f9cc(0x2e5,0x2f6)]>0x1&&!STOPWORDS[_0x48f9cc(0x300,0x2e4)](_0x290b83));}function computeTF(_0x4acfdc){const _0x11c094=new Map();function _0x1e836f(_0x4f2538,_0x5aac0b){return _0x412910(_0x5aac0b,_0x4f2538-0x498);}for(const _0xa2f927 of _0x4acfdc){_0x36709e(-0x26a,-0x28a)!==_0x36709e(-0x279,-0x28a)?this[_0x36709e(-0x2bc,-0x2a9)]=_0x36343e:_0x11c094[_0x1e836f(0x3a9,0x387)](_0xa2f927,(_0x11c094['get'](_0xa2f927)??0x0)+0x1);}function _0x36709e(_0x3ae1c3,_0x138bf9){return _0x412910(_0x3ae1c3,_0x138bf9- -0x194);}const _0x2d00bb=_0x4acfdc[_0x36709e(-0x278,-0x295)];if(_0x2d00bb>0x0)for(const [_0x2c1e72,_0x5002f5]of _0x11c094[_0x36709e(-0x282,-0x282)]()){_0x11c094[_0x36709e(-0x28c,-0x283)](_0x2c1e72,_0x5002f5/_0x2d00bb);}return _0x11c094;}function _0x19050f(_0x51cc08,_0x50b507){return _0x48f2(_0x50b507-0x163,_0x51cc08);}function _0x48f2(_0x1354ca,_0x2641a3){_0x1354ca=_0x1354ca-0x128;const _0x835463=_0x8354();let _0x48f269=_0x835463[_0x1354ca];if(_0x48f2['URqFlU']===undefined){var _0x1bdfdc=function(_0x2ffd2e){const _0x4b2181='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a90fd='',_0x369f86='';for(let _0x15fb5b=0x0,_0x27b38e,_0x1af7ef,_0x250e17=0x0;_0x1af7ef=_0x2ffd2e['charAt'](_0x250e17++);~_0x1af7ef&&(_0x27b38e=_0x15fb5b%0x4?_0x27b38e*0x40+_0x1af7ef:_0x1af7ef,_0x15fb5b++%0x4)?_0x3a90fd+=String['fromCharCode'](0xff&_0x27b38e>>(-0x2*_0x15fb5b&0x6)):0x0){_0x1af7ef=_0x4b2181['indexOf'](_0x1af7ef);}for(let _0x1ff716=0x0,_0x5db48d=_0x3a90fd['length'];_0x1ff716<_0x5db48d;_0x1ff716++){_0x369f86+='%'+('00'+_0x3a90fd['charCodeAt'](_0x1ff716)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x369f86);};_0x48f2['BqINwq']=_0x1bdfdc,_0x48f2['pEngSc']={},_0x48f2['URqFlU']=!![];}const _0x4732fc=_0x835463[0x0],_0x188fd9=_0x1354ca+_0x4732fc,_0x545360=_0x48f2['pEngSc'][_0x188fd9];return!_0x545360?(_0x48f269=_0x48f2['BqINwq'](_0x48f269),_0x48f2['pEngSc'][_0x188fd9]=_0x48f269):_0x48f269=_0x545360,_0x48f269;}export class LocalEmbeddingProvider{[_0x412910(-0xdb,-0xe0)]=new Map();['dimensions'];['corpusSize']=0x0;[_0x19050f(0x27c,0x28e)]=new Map();[_0x19050f(0x29c,0x28e)+_0x19050f(0x2dc,0x2b9)]=[];['TOKEN_CACH'+_0x19050f(0x2b0,0x2c6)]=0x1f4;constructor(_0x25deef=0x40){function _0x1556f7(_0x227f38,_0x37b4e6){return _0x412910(_0x37b4e6,_0x227f38- -0x113);}this[_0x1556f7(-0x228,-0x22b)]=_0x25deef;}[_0x412910(-0xda,-0xfa)+_0x412910(-0x11f,-0x110)](_0x3247c4){const _0xafd2d3=this[_0x183656(0x132,0x12a)]['get'](_0x3247c4);if(_0xafd2d3)return _0xafd2d3;function _0x4a6ff9(_0x4f134d,_0x102f1e){return _0x412910(_0x102f1e,_0x4f134d-0x5a4);}const _0x11a1f2=tokenize(_0x3247c4);this[_0x4a6ff9(0x488,0x4a7)][_0x183656(0x15f,0x16b)](_0x3247c4,_0x11a1f2),this[_0x4a6ff9(0x488,0x48a)+_0x183656(0x15d,0x15e)][_0x183656(0x151,0x160)](_0x3247c4);if(this[_0x183656(0x132,0x112)+_0x183656(0x15d,0x15a)][_0x4a6ff9(0x4a3,0x4c4)]>this[_0x4a6ff9(0x4c5,0x4d9)+_0x183656(0x16a,0x16e)]){const _0x281d6b=this[_0x183656(0x132,0x133)+'Order'][_0x183656(0x155,0x157)]();this[_0x183656(0x132,0x13b)]['delete'](_0x281d6b);}function _0x183656(_0x3c88fb,_0x133804){return _0x412910(_0x133804,_0x3c88fb-0x24e);}return _0x11a1f2;}[_0x412910(-0x11b,-0x10e)+'us'](_0x29b7e9){this[_0x4f2ad1(0x332,0x327)]=_0x29b7e9[_0x4f2ad1(0x325,0x349)];if(_0x29b7e9[_0x43689d(0x457,0x439)]===0x0)return;function _0x43689d(_0x30a07e,_0x442255){return _0x412910(_0x30a07e,_0x442255-0x53a);}const _0x234160=new Map();for(const _0x4f1752 of _0x29b7e9){if('qXxSU'===_0x4f2ad1(0x31e,0x318)){const _0x32d5e8=new Set(tokenize(_0x4f1752));for(const _0x1191a3 of _0x32d5e8){_0x234160[_0x4f2ad1(0x337,0x335)](_0x1191a3,(_0x234160[_0x43689d(0x428,0x426)](_0x1191a3)??0x0)+0x1);}}else{const _0x164a9a=_0x53a041+':'+_0xdb72ae;let _0x41a9ef=_0x5849b0[_0x43689d(0x417,0x426)](_0x164a9a);return _0x41a9ef===_0x10c92f&&(_0x41a9ef=_0x12dd8e(_0x4ed6f3,_0x1b890d),_0x41dc10[_0x43689d(0x44c,0x44b)](_0x164a9a,_0x41a9ef)),_0x41a9ef;}}function _0x4f2ad1(_0x4c734a,_0x4612ec){return _0x412910(_0x4612ec,_0x4c734a-0x426);}this[_0x43689d(0x479,0x45a)][_0x4f2ad1(0x33a,0x320)]();for(const [_0x2a4970,_0x2d2035]of _0x234160['entries']()){this['idfMap']['set'](_0x2a4970,Math[_0x43689d(0x429,0x434)](this[_0x43689d(0x45a,0x446)]/_0x2d2035));}}['embed'](_0x16b8ea){const _0xc0da46=this[_0xe740c(0x56,0x3a)+_0xe740c(0x40,0x63)](_0x16b8ea);if(_0xc0da46['length']===0x0)return new Array(this['dimensions'])[_0x2480b7(0xd8,0xf3)](0x0);const _0x3d2cb9=computeTF(_0xc0da46);function _0x2480b7(_0x57fc2f,_0x30b43f){return _0x412910(_0x30b43f,_0x57fc2f-0x1d7);}function _0xe740c(_0x2a9ea8,_0x12ea6b){return _0x412910(_0x12ea6b,_0x2a9ea8-0x150);}const _0xed8eca=new Array(this[_0xe740c(0x3b,0x3a)])[_0x2480b7(0xd8,0xf8)](0x0);for(const [_0x313d2a,_0x133469]of _0x3d2cb9['entries']()){const _0x24af14=this[_0x2480b7(0xf7,0xdd)][_0xe740c(0x3c,0x28)](_0x313d2a)??0x1,_0x460893=_0x133469*_0x24af14,_0xf9713e=cachedHashString(_0x313d2a)%this[_0xe740c(0x3b,0x5e)];_0xed8eca[_0xf9713e]+=_0x460893;}return this[_0xe740c(0x3e,0x5b)](_0xed8eca);}[_0x19050f(0x2bf,0x2ce)+_0x19050f(0x2af,0x2d0)](_0x29273e,_0x3cddc2){function _0x1fe40d(_0x367e14,_0x1fdac8){return _0x412910(_0x367e14,_0x1fdac8-0x3f3);}_0x3cddc2&&_0x3cddc2[_0x1bd732(-0xfa,-0xf1)]>0x0&&(_0x1fe40d(0x2e3,0x2dd)===_0x1bd732(-0xe4,-0xfa)?this[_0x1fe40d(0x2f4,0x2e5)+'us'](_0x138bce):this[_0x1fe40d(0x2cf,0x2e5)+'us'](_0x3cddc2));function _0x1bd732(_0x1bb7cb,_0x1bc29c){return _0x412910(_0x1bc29c,_0x1bb7cb-0x7);}return this[_0x1fe40d(0x309,0x30d)](_0x29273e);}[_0x19050f(0x29d,0x2bd)](_0x4d5844){function _0x261117(_0x398efc,_0x1a5096){return _0x19050f(_0x398efc,_0x1a5096- -0x221);}function _0x4c8537(_0x5c0064,_0x11fdc5){return _0x19050f(_0x11fdc5,_0x5c0064- -0x198);}return _0x4d5844[_0x261117(0x97,0x72)](_0xb911b0=>this[_0x4c8537(0x12c,0x10d)](_0xb911b0));}[_0x412910(-0x122,-0x112)](_0x4c4cec){const _0x3c1e93=Math[_0x27659d(-0x28b,-0x269)](_0x4c4cec[_0x27659d(-0x298,-0x28e)]((_0x2fd2bb,_0x127df6)=>_0x2fd2bb+_0x127df6*_0x127df6,0x0));if(_0x3c1e93===0x0)return _0x4c4cec;function _0x27659d(_0x10b4e0,_0x503cb8){return _0x412910(_0x503cb8,_0x10b4e0- -0x194);}function _0x37aa68(_0x57550e,_0x124677){return _0x412910(_0x124677,_0x57550e-0xf1);}return _0x4c4cec['map'](_0x3655b5=>_0x3655b5/_0x3c1e93);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5db584(_0x1ecbb6,_0x5d8c5d){return _0x3544(_0x5d8c5d- -0x38b,_0x1ecbb6);}(function(_0x51b1ed,_0x43a11a){function _0x3410d1(_0x2fb060,_0x586e3a){return _0x3544(_0x2fb060- -0xf4,_0x586e3a);}const _0x4e1e15=_0x51b1ed();function _0x4062ec(_0x122ae4,_0x22a18c){return _0x3544(_0x122ae4-0x104,_0x22a18c);}while(!![]){try{const _0x3874b1=parseInt(_0x3410d1(-0x69,-0x57))/0x1+-parseInt(_0x4062ec(0x1a4,0x1ae))/0x2+parseInt(_0x4062ec(0x190,0x17e))/0x3*(-parseInt(_0x3410d1(-0x45,-0x48))/0x4)+-parseInt(_0x3410d1(-0x5a,-0x60))/0x5*(parseInt(_0x3410d1(-0x60,-0x68))/0x6)+parseInt(_0x3410d1(-0x48,-0x45))/0x7*(parseInt(_0x3410d1(-0x50,-0x42))/0x8)+-parseInt(_0x3410d1(-0x64,-0x72))/0x9*(parseInt(_0x3410d1(-0x46,-0x49))/0xa)+parseInt(_0x3410d1(-0x4c,-0x42))/0xb*(parseInt(_0x3410d1(-0x5c,-0x45))/0xc);if(_0x3874b1===_0x43a11a)break;else _0x4e1e15['push'](_0x4e1e15['shift']());}catch(_0x42d384){_0x4e1e15['push'](_0x4e1e15['shift']());}}}(_0xa674,0x64651));function _0x248967(_0x51bccb,_0x5542bd){return _0x3544(_0x51bccb- -0xed,_0x5542bd);}function _0xa674(){const _0x3cc426=['ntu5ote2y2Hhy0jn','ndiWotG3BhbwrKfZ','qMvHCMvYia','BgvUz3rO','CLjLC3bVBNnL','mtHArezivhO','C2LNBMfS','EEULVcdTMzxSNBJTLzJSHlJSMPq','ANnVBG','nMzuDvHJDW','zsbmAw1PDdOG7j6G','zgLUzY0ZlxnTyq','t3bLBKfjieHuva','mtG3mKrtq1nhuq','DgLTzw91Da','mta1nJeXnxr5ELfqza','C29YDa','zxjYB3i','BMfTzq','ywjVCNq','Ahr0Chm6lY9HCa','nZm4nJC4CvL2CwHH','Bw9KzwW','B20VDJe','yxbWBgLJyxrPBW','mtKXmdi0ogrqtMrACa','BwvZC2fNzq','AgfUzgXLrxjYBW','7iUCio2BHcdRI6tSI5WG7iUC64+e7zwy','ode4odrmtxPJvM4','As5VCgvUywKUyW','yMfZzvvYBa','7iUK7yYOoIbbueKGs2u','n1zjuxnnqG','t3bLBKfjioYDUoYMNsa','mZqZnZyYmg9Oze9NuG','ognQywLMCW','qwjVCNrfCNjVCG','C3rYAw5NAwz5','zw1IzwrcyxrJAa','ioYyPoULMdOG','zw1Izwq','zgf0yq','yxbPs2v5','Aw5KzxG'];_0xa674=function(){return _0x3cc426;};return _0xa674();}function _0x3544(_0xf8ce74,_0x391a9d){_0xf8ce74=_0xf8ce74-0x85;const _0xa674b4=_0xa674();let _0x354475=_0xa674b4[_0xf8ce74];if(_0x3544['dcUOOz']===undefined){var _0x2c0dd0=function(_0x38b487){const _0xb5883f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30d30a='',_0x4c87d5='';for(let _0x4eb68c=0x0,_0x4ca1b1,_0x4e9d17,_0x56ee08=0x0;_0x4e9d17=_0x38b487['charAt'](_0x56ee08++);~_0x4e9d17&&(_0x4ca1b1=_0x4eb68c%0x4?_0x4ca1b1*0x40+_0x4e9d17:_0x4e9d17,_0x4eb68c++%0x4)?_0x30d30a+=String['fromCharCode'](0xff&_0x4ca1b1>>(-0x2*_0x4eb68c&0x6)):0x0){_0x4e9d17=_0xb5883f['indexOf'](_0x4e9d17);}for(let _0x103b16=0x0,_0x377684=_0x30d30a['length'];_0x103b16<_0x377684;_0x103b16++){_0x4c87d5+='%'+('00'+_0x30d30a['charCodeAt'](_0x103b16)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c87d5);};_0x3544['CzXWft']=_0x2c0dd0,_0x3544['BsquLL']={},_0x3544['dcUOOz']=!![];}const _0x517ed2=_0xa674b4[0x0],_0x9d45a8=_0xf8ce74+_0x517ed2,_0x317562=_0x3544['BsquLL'][_0x9d45a8];return!_0x317562?(_0x354475=_0x3544['CzXWft'](_0x354475),_0x3544['BsquLL'][_0x9d45a8]=_0x354475):_0x354475=_0x317562,_0x354475;}export class OpenAIEmbeddingProvider{[_0x5db584(-0x319,-0x302)];[_0x248967(-0x4c,-0x5d)];[_0x248967(-0x54,-0x69)];[_0x5db584(-0x2ce,-0x2e1)]=_0x248967(-0x4e,-0x60)+_0x248967(-0x44,-0x3f)+_0x248967(-0x4b,-0x4b);constructor(_0x1a6a30){function _0x50d1b3(_0x7dfa4b,_0x47a891){return _0x5db584(_0x7dfa4b,_0x47a891-0x17b);}function _0x37a65d(_0xcacaa7,_0x1abc04){return _0x5db584(_0x1abc04,_0xcacaa7-0x73e);}this[_0x37a65d(0x43c,0x452)]=_0x1a6a30[_0x50d1b3(-0x188,-0x187)],this[_0x50d1b3(-0x171,-0x16f)]=_0x1a6a30[_0x50d1b3(-0x182,-0x16f)]??'text-embed'+_0x50d1b3(-0x183,-0x17a)+'ll',this[_0x50d1b3(-0x17e,-0x177)]=_0x1a6a30['timeout']??0x7530;}async[_0x248967(-0x66,-0x7a)](_0x8435ce){const _0x85495c=await this[_0x5541ab(0xde,0xe3)]([_0x8435ce]);function _0x5541ab(_0xc5b9b1,_0x1214de){return _0x5db584(_0x1214de,_0xc5b9b1-0x3e4);}return _0x85495c[0x0];}async[_0x248967(-0x68,-0x61)](_0x54616f){if(_0x54616f[_0x1ce2fd(-0x21c,-0x233)]===0x0)return[];const _0xb30fcd=new AbortController(),_0x4266b0=setTimeout(()=>_0xb30fcd[_0x5925d4(0x76,0x64)](),this['timeout']);function _0x5925d4(_0x7532c7,_0x3e248e){return _0x5db584(_0x7532c7,_0x3e248e-0x351);}function _0x1ce2fd(_0x420f78,_0x3b4f57){return _0x5db584(_0x420f78,_0x3b4f57-0xca);}try{const _0x16dc93=await fetch(this[_0x1ce2fd(-0x202,-0x217)]+('/embedding'+'s'),{'method':'POST','headers':{'Content-Type':_0x5925d4(0x6b,0x69)+'n/json','Authorization':_0x5925d4(0x52,0x53)+this['apiKey']},'body':JSON[_0x1ce2fd(-0x202,-0x210)]({'input':_0x54616f,'model':this[_0x5925d4(0x68,0x67)]}),'signal':_0xb30fcd[_0x1ce2fd(-0x235,-0x230)]});clearTimeout(_0x4266b0);!_0x16dc93['ok']&&await this[_0x5925d4(0x73,0x6c)+_0x1ce2fd(-0x230,-0x232)](_0x16dc93);const _0x636efd=await _0x16dc93[_0x1ce2fd(-0x233,-0x22e)](),_0x294a1b=_0x636efd[_0x5925d4(0x5b,0x4e)][_0x5925d4(0x61,0x61)]((_0x429341,_0x314c5b)=>_0x429341[_0x5925d4(0x59,0x50)]-_0x314c5b[_0x1ce2fd(-0x229,-0x237)])['map'](_0x24bc18=>_0x24bc18['embedding']);return _0x294a1b;}catch(_0x78e1e4){clearTimeout(_0x4266b0);if(_0x78e1e4 instanceof Error){if(_0x78e1e4[_0x1ce2fd(-0x233,-0x224)]===_0x5925d4(0x69,0x76))throw new Error('OpenAI\x20요청\x20'+'시간\x20초과:\x20'+this[_0x5925d4(0x59,0x5f)]+'ms');throw new Error('OpenAI\x20API'+_0x5925d4(0x49,0x4c)+_0x78e1e4[_0x5925d4(0x64,0x6b)]);}throw _0x78e1e4;}}async[_0x248967(-0x47,-0x58)+_0x248967(-0x5e,-0x5a)](_0x3a6f86){const _0x4d8a50=_0x3a6f86['status'];function _0x3921f2(_0x191eed,_0x2dec0e){return _0x5db584(_0x2dec0e,_0x191eed- -0x16);}function _0x1c274c(_0x2ef2e6,_0x2f673d){return _0x5db584(_0x2ef2e6,_0x2f673d-0x590);}if(_0x4d8a50===0x191)throw new Error(_0x3921f2(-0x2f4,-0x2dd)+_0x1c274c(0x299,0x2b0)+_0x1c274c(0x28d,0x297));if(_0x4d8a50===0x1ad)throw new Error('OpenAI\x20Rat'+_0x3921f2(-0x30c,-0x311)+_0x1c274c(0x299,0x2ac)+'세요');let _0x1b8365=_0x1c274c(0x2a4,0x29c)+'P\x20'+_0x4d8a50;try{const _0x448a70=await _0x3a6f86[_0x1c274c(0x28d,0x298)]();_0x448a70['error']?.[_0x1c274c(0x2a7,0x2aa)]&&(_0x1b8365+=':\x20'+_0x448a70[_0x1c274c(0x2b2,0x2a1)]['message']);}catch{}throw new Error(_0x1b8365);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ab936,_0x21b220){const _0x93a9d2=_0x5ab936();function _0x5443c8(_0x45b886,_0x24c277){return _0x53f5(_0x24c277-0x2fb,_0x45b886);}function _0x19206e(_0x293245,_0x458fc9){return _0x53f5(_0x293245- -0xd7,_0x458fc9);}while(!![]){try{const _0x38b576=parseInt(_0x5443c8(0x3f4,0x3f9))/0x1+parseInt(_0x5443c8(0x3f4,0x3f2))/0x2*(-parseInt(_0x19206e(0x24,0x26))/0x3)+-parseInt(_0x5443c8(0x3fb,0x405))/0x4+parseInt(_0x5443c8(0x3fa,0x3fb))/0x5*(parseInt(_0x19206e(0x2e,0x3a))/0x6)+parseInt(_0x5443c8(0x40b,0x401))/0x7*(parseInt(_0x19206e(0x21,0x25))/0x8)+parseInt(_0x19206e(0x23,0x1b))/0x9*(parseInt(_0x19206e(0x37,0x3b))/0xa)+-parseInt(_0x5443c8(0x408,0x402))/0xb;if(_0x38b576===_0x21b220)break;else _0x93a9d2['push'](_0x93a9d2['shift']());}catch(_0x391487){_0x93a9d2['push'](_0x93a9d2['shift']());}}}(_0x8c05,0x2a1fa));function _0x8c05(){const _0xab2d5f=['nJuWmtG0AuXgD2rA','odGYmZCXrMT6zuTm','mJCYmJq2n2nlDeDnDG','quL3CfC','zNjVBq','nZiWotG0BxHJAvLw','CM91BMq','thzpsKG','C2XPy2u','mtbfA3zqsfa','yNL0zuXLBMD0Aa','A1jpBvG','mMfPr3bQBq','mtzKBfbbAMy','Bwf4','mtKZmdG2oxPsEfr2ta','mZq4ntmXvhDkywf4','yNL0zu9MzNnLDa','ywXSB2m','mtqXndq3t0rXqLzc','zgLTzw5ZAw9UCW','nu5PvLrjrG','zMLSBa','BwLU','BgvUz3rO','yNvMzMvY'];_0x8c05=function(){return _0xab2d5f;};return _0x8c05();}export function quantizeToFloat32(_0xd2302){function _0x3520c5(_0x19b96b,_0x4c20c2){return _0x53f5(_0x19b96b-0x24f,_0x4c20c2);}function _0x156752(_0x22e7e5,_0x20b64b){return _0x53f5(_0x20b64b-0x12e,_0x22e7e5);}const _0x13f27c=new Float32Array(_0xd2302);return Buffer[_0x156752(0x240,0x237)](_0x13f27c[_0x156752(0x226,0x232)],_0x13f27c['byteOffset'],_0x13f27c['byteLength']);}export function dequantizeFromFloat32(_0x261746){function _0x467d12(_0x479b56,_0x3dded5){return _0x53f5(_0x479b56- -0x3a1,_0x3dded5);}const _0x15f5e7=_0x261746[_0x467d12(-0x29d,-0x2a1)]['slice'](_0x261746['byteOffset'],_0x261746[_0x467d12(-0x2a5,-0x2ac)]+_0x261746['byteLength']);function _0x1bb2bf(_0x453646,_0xdca476){return _0x53f5(_0x453646-0x5c,_0xdca476);}const _0x1fd191=new Float32Array(_0x15f5e7);return Array['from'](_0x1fd191);}function _0x53f5(_0x18154a,_0x423fa9){_0x18154a=_0x18154a-0xf5;const _0x8c0562=_0x8c05();let _0x53f55d=_0x8c0562[_0x18154a];if(_0x53f5['jMgwtq']===undefined){var _0xfc0c50=function(_0x4463a){const _0x5d2065='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x518a3d='',_0x27eaa7='';for(let _0x1dd971=0x0,_0x5a83bc,_0x58f386,_0x1d01ef=0x0;_0x58f386=_0x4463a['charAt'](_0x1d01ef++);~_0x58f386&&(_0x5a83bc=_0x1dd971%0x4?_0x5a83bc*0x40+_0x58f386:_0x58f386,_0x1dd971++%0x4)?_0x518a3d+=String['fromCharCode'](0xff&_0x5a83bc>>(-0x2*_0x1dd971&0x6)):0x0){_0x58f386=_0x5d2065['indexOf'](_0x58f386);}for(let _0x3458fe=0x0,_0x3258eb=_0x518a3d['length'];_0x3458fe<_0x3258eb;_0x3458fe++){_0x27eaa7+='%'+('00'+_0x518a3d['charCodeAt'](_0x3458fe)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27eaa7);};_0x53f5['neUBad']=_0xfc0c50,_0x53f5['CBfvsv']={},_0x53f5['jMgwtq']=!![];}const _0xb4d430=_0x8c0562[0x0],_0x1898e0=_0x18154a+_0xb4d430,_0x55d1d8=_0x53f5['CBfvsv'][_0x1898e0];return!_0x55d1d8?(_0x53f55d=_0x53f5['neUBad'](_0x53f55d),_0x53f5['CBfvsv'][_0x1898e0]=_0x53f55d):_0x53f55d=_0x55d1d8,_0x53f55d;}export function quantizeToInt8(_0x586b7e,_0x511732){if(_0x586b7e['length']===0x0)return{'buffer':Buffer[_0x22fe3b(-0xbc,-0xb3)](0x0),'stats':{'min':0x0,'max':0x0,'dimensions':0x0}};let _0x8f7b5f,_0x4f4845;function _0x22fe3b(_0x5a0674,_0x9427c0){return _0x53f5(_0x9427c0- -0x1b0,_0x5a0674);}_0x511732?(_0x8f7b5f=_0x511732['min'],_0x4f4845=_0x511732[_0x276813(0x3,0xe)]):(_0x8f7b5f=Math[_0x22fe3b(-0xa8,-0xae)](..._0x586b7e),_0x4f4845=Math['max'](..._0x586b7e));const _0x7e312f=_0x4f4845-_0x8f7b5f;function _0x276813(_0x5abe58,_0x950eee){return _0x53f5(_0x5abe58- -0xf6,_0x950eee);}const _0x1ea39f=new Int8Array(_0x586b7e['length']);if(_0x7e312f===0x0)_0x1ea39f[_0x276813(0xb,0x15)](0x0);else for(let _0x55d53c=0x0;_0x55d53c<_0x586b7e[_0x276813(0xd,0x11)];_0x55d53c++){const _0x35d591=(_0x586b7e[_0x55d53c]-_0x8f7b5f)/_0x7e312f,_0x5009d7=Math[_0x276813(0x15,0x10)](_0x35d591*0xff)-0x80;_0x1ea39f[_0x55d53c]=Math[_0x276813(0x3,0x1)](-0x80,Math[_0x22fe3b(-0xb0,-0xae)](0x7f,_0x5009d7));}return{'buffer':Buffer[_0x276813(0x13,0x6)](_0x1ea39f['buffer'],_0x1ea39f[_0x22fe3b(-0xbf,-0xb4)],_0x1ea39f[_0x22fe3b(-0xc2,-0xbb)]),'stats':{'min':_0x8f7b5f,'max':_0x4f4845,'dimensions':_0x586b7e['length']}};}export function dequantizeFromInt8(_0x5bce15,_0x3d8f4c){if(_0x5bce15['length']===0x0||_0x3d8f4c[_0x447ebb(-0x150,-0x15a)]===0x0){if(_0xae997d(0x48f,0x49b)==='fyjVs')_0x5b8665[_0xae997d(0x488,0x48c)](_0x2990ca[_0x447ebb(-0x14d,-0x14d)]);else return[];}const _0x2e095c=_0x5bce15[_0x447ebb(-0x14b,-0x153)][_0xae997d(0x494,0x49b)](_0x5bce15['byteOffset'],_0x5bce15['byteOffset']+_0x5bce15[_0x447ebb(-0x15a,-0x165)]),_0x13affd=new Int8Array(_0x2e095c),_0x53fe82=_0x3d8f4c['max']-_0x3d8f4c[_0xae997d(0x489,0x48b)];function _0xae997d(_0x126944,_0x407b3c){return _0x53f5(_0x126944-0x387,_0x407b3c);}const _0x3a796d=new Array(_0x3d8f4c[_0x447ebb(-0x150,-0x145)]);function _0x447ebb(_0x471986,_0x3b5ad4){return _0x53f5(_0x471986- -0x24f,_0x3b5ad4);}if(_0x53fe82===0x0)_0x3a796d[_0xae997d(0x488,0x487)](_0x3d8f4c[_0xae997d(0x489,0x490)]);else for(let _0x163b88=0x0;_0x163b88<_0x3d8f4c[_0xae997d(0x486,0x480)];_0x163b88++){if(_0xae997d(0x47d,0x48a)!==_0x447ebb(-0x143,-0x142)){const _0x3544ba=(_0x13affd[_0x163b88]+0x80)/0xff;_0x3a796d[_0x163b88]=_0x3544ba*_0x53fe82+_0x3d8f4c[_0xae997d(0x489,0x494)];}else{const _0x1199de=new _0x5a83bc(_0x58f386);return _0x1d01ef[_0x447ebb(-0x146,-0x150)](_0x1199de['buffer'],_0x1199de[_0xae997d(0x483,0x486)],_0x1199de[_0x447ebb(-0x15a,-0x161)]);}}return _0x3a796d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1bb5(_0x1ba186,_0xa5e8b4){_0x1ba186=_0x1ba186-0x17d;const _0x4c15bc=_0x4c15();let _0x1bb579=_0x4c15bc[_0x1ba186];if(_0x1bb5['EgEJVA']===undefined){var _0x44e1f9=function(_0xfaa61f){const _0xa1ecaf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59bcf2='',_0x159b62='';for(let _0x332efd=0x0,_0x3a1b29,_0x57313e,_0x1deb1a=0x0;_0x57313e=_0xfaa61f['charAt'](_0x1deb1a++);~_0x57313e&&(_0x3a1b29=_0x332efd%0x4?_0x3a1b29*0x40+_0x57313e:_0x57313e,_0x332efd++%0x4)?_0x59bcf2+=String['fromCharCode'](0xff&_0x3a1b29>>(-0x2*_0x332efd&0x6)):0x0){_0x57313e=_0xa1ecaf['indexOf'](_0x57313e);}for(let _0x168206=0x0,_0x2bb06a=_0x59bcf2['length'];_0x168206<_0x2bb06a;_0x168206++){_0x159b62+='%'+('00'+_0x59bcf2['charCodeAt'](_0x168206)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x159b62);};_0x1bb5['nnjPDh']=_0x44e1f9,_0x1bb5['sPcbBm']={},_0x1bb5['EgEJVA']=!![];}const _0x3b8460=_0x4c15bc[0x0],_0x1446f0=_0x1ba186+_0x3b8460,_0x30b96f=_0x1bb5['sPcbBm'][_0x1446f0];return!_0x30b96f?(_0x1bb579=_0x1bb5['nnjPDh'](_0x1bb579),_0x1bb5['sPcbBm'][_0x1446f0]=_0x1bb579):_0x1bb579=_0x30b96f,_0x1bb579;}(function(_0x2537cc,_0x13b0e0){function _0x1fdcd2(_0x180407,_0x49d47d){return _0x1bb5(_0x180407- -0x34e,_0x49d47d);}function _0x17262c(_0x15b915,_0x11fb6a){return _0x1bb5(_0x15b915- -0x300,_0x11fb6a);}const _0x57415e=_0x2537cc();while(!![]){try{const _0x4160df=parseInt(_0x17262c(-0x171,-0x18b))/0x1+parseInt(_0x1fdcd2(-0x190,-0x18a))/0x2+parseInt(_0x1fdcd2(-0x1c6,-0x1b2))/0x3*(parseInt(_0x1fdcd2(-0x1b5,-0x1a9))/0x4)+-parseInt(_0x17262c(-0x17b,-0x17f))/0x5+parseInt(_0x17262c(-0x16b,-0x15e))/0x6+parseInt(_0x17262c(-0x182,-0x188))/0x7+-parseInt(_0x1fdcd2(-0x1c1,-0x1cd))/0x8;if(_0x4160df===_0x13b0e0)break;else _0x57415e['push'](_0x57415e['shift']());}catch(_0x4e70bf){_0x57415e['push'](_0x57415e['shift']());}}}(_0x4c15,0xeb7da));function _0xd33504(_0x458977,_0xfd604c){return _0x1bb5(_0x458977-0x208,_0xfd604c);}import{cosineSimilarity}from'./similarity.js';const MERGE_CONTENT_MAX_CHARS=0x7d0,NOOP_THRESHOLD=0.95,UPDATE_THRESHOLD=0.8,DELETE_THRESHOLD=0.92,WEAK_INVALIDATION_KEYWORDS=['fixed','resolved',_0x5657dc(0x27f,0x28f),_0xd33504(0x38b,0x37e)],STRONG_INVALIDATION_KEYWORDS=[_0xd33504(0x3bf,0x3d1),_0xd33504(0x3b7,0x3bc),_0xd33504(0x39a,0x3aa),_0xd33504(0x3bc,0x3b2)+'y',_0xd33504(0x3b2,0x390)+'o',_0xd33504(0x3a2,0x384),_0x5657dc(0x291,0x2a7),_0xd33504(0x392,0x380)+_0xd33504(0x3af,0x3c9)+_0x5657dc(0x28e,0x2a3),_0x5657dc(0x2a9,0x291),_0x5657dc(0x29b,0x2a8),_0xd33504(0x3a4,0x3b0),'폐기'];function detectInvalidation(_0x356ebc,_0x455bfd){function _0x115d33(_0x22ea49,_0x485eae){return _0xd33504(_0x22ea49- -0x166,_0x485eae);}const _0xaf4015=_0x356ebc[_0xbc84f5(0x2ac,0x2ca)+'e']();if(STRONG_INVALIDATION_KEYWORDS[_0xbc84f5(0x2ad,0x2ad)](_0x31f0ab=>_0xaf4015[_0x115d33(0x261,0x273)](_0x31f0ab)))return!![];const _0x2de314=WEAK_INVALIDATION_KEYWORDS[_0xbc84f5(0x280,0x29f)](_0x307886=>_0xaf4015['includes'](_0x307886));function _0xbc84f5(_0x454f29,_0x55bbda){return _0xd33504(_0x454f29- -0x10e,_0x55bbda);}return _0x2de314['length']>=0x2;}function textSimilarity(_0x5974b4,_0x52ed77){function _0x33a032(_0x2cd3f3,_0x1c1f59){return _0xd33504(_0x1c1f59- -0x230,_0x2cd3f3);}function _0x363c32(_0x4578ff,_0x56717f){return _0xd33504(_0x56717f-0x150,_0x4578ff);}const _0x3b3b04=new Set(_0x5974b4[_0x363c32(0x50e,0x50a)+'e']()['split'](/\s+/)[_0x363c32(0x4c1,0x4de)](_0x525765=>_0x525765[_0x363c32(0x4cb,0x4d9)]>0x2)),_0x2b54c7=new Set(_0x52ed77[_0x33a032(0x17a,0x18a)+'e']()['split'](/\s+/)[_0x363c32(0x4f9,0x4de)](_0x354aca=>_0x354aca['length']>0x2));if(_0x3b3b04['size']===0x0||_0x2b54c7[_0x363c32(0x4f9,0x4fb)]===0x0)return 0x0;let _0x3bfe3c=0x0;for(const _0x14f52e of _0x3b3b04){if(_0x2b54c7['has'](_0x14f52e))_0x3bfe3c++;}const _0x3bbd36=new Set([..._0x3b3b04,..._0x2b54c7])[_0x33a032(0x198,0x17b)];return _0x3bbd36>0x0?_0x3bfe3c/_0x3bbd36:0x0;}function _0x5657dc(_0x33c97c,_0x46f972){return _0x1bb5(_0x33c97c-0xef,_0x46f972);}export class DedupManager{[_0x5657dc(0x2a5,0x2b8)](_0x13219c,_0x21c563,_0x216d80){if(_0x21c563['length']===0x0)return{'action':_0x383102(0x512,0x525),'similarity':0x0,'reason':'No\x20existin'+_0x383102(0x4eb,0x50b)+_0x383102(0x52c,0x510)+'e'};let _0x291676=0x0,_0x332529;function _0x1e9b9f(_0x1da1d7,_0x1cfdc4){return _0xd33504(_0x1da1d7- -0x342,_0x1cfdc4);}for(const _0x68337c of _0x21c563){let _0x14d6c0;_0x216d80&&_0x68337c['embedding']&&_0x68337c[_0x1e9b9f(0x76,0x94)][_0x1e9b9f(0x47,0x58)]>0x0&&_0x216d80[_0x383102(0x4d3,0x4e6)]===_0x68337c[_0x1e9b9f(0x76,0x5c)]['length']?_0x14d6c0=cosineSimilarity(_0x216d80,_0x68337c[_0x383102(0x526,0x515)]):_0x14d6c0=textSimilarity(_0x13219c,_0x68337c[_0x383102(0x516,0x4f9)]);if(_0x14d6c0>_0x291676){if(_0x1e9b9f(0x4f,0x4e)!==_0x1e9b9f(0x57,0x5e))_0x291676=_0x14d6c0,_0x332529=_0x68337c;else return!![];}}function _0x383102(_0xa92dc4,_0x41b62c){return _0xd33504(_0x41b62c-0x15d,_0xa92dc4);}if(_0x291676>=NOOP_THRESHOLD&&_0x332529)return{'action':'NOOP','targetMemory':_0x332529,'similarity':_0x291676,'reason':_0x383102(0x4e5,0x4f1)+_0x1e9b9f(0x51,0x4a)+_0x1e9b9f(0x6a,0x6d)+_0x291676[_0x383102(0x52d,0x50e)](0x3)+')'};if(_0x291676>=DELETE_THRESHOLD&&_0x332529&&detectInvalidation(_0x13219c,_0x332529[_0x383102(0x4ef,0x4f9)]))return{'action':_0x1e9b9f(0x5d,0x76),'targetMemory':_0x332529,'similarity':_0x291676,'reason':_0x1e9b9f(0x7e,0x6c)+_0x1e9b9f(0x77,0x93)+_0x1e9b9f(0x82,0x85)+_0x383102(0x4da,0x4ec)+_0x291676[_0x383102(0x51b,0x50e)](0x3)+')'};if(_0x291676>=UPDATE_THRESHOLD&&_0x332529)return{'action':_0x383102(0x4fb,0x4e9),'targetMemory':_0x332529,'similarity':_0x291676,'reason':_0x383102(0x51e,0x4fd)+'ntent\x20foun'+_0x1e9b9f(0x48,0x42)+_0x383102(0x50e,0x522)+_0x383102(0x526,0x51e)+_0x291676[_0x383102(0x524,0x50e)](0x3)+')'};return{'action':'ADD','similarity':_0x291676,'reason':_0x291676>0x0?'Best\x20match'+_0x1e9b9f(0x74,0x88)+_0x383102(0x516,0x512)+_0x291676[_0x383102(0x4f6,0x50e)](0x3)+(_0x1e9b9f(0x5c,0x58)+_0x383102(0x514,0x500)):_0x1e9b9f(0x67,0x74)+'\x20memories\x20'+_0x1e9b9f(0x66,0x4b)};}[_0xd33504(0x388,0x39d)+'nt'](_0x4d5dd5,_0x327bcf){if(_0x4d5dd5['includes'](_0x327bcf[_0x4c562b(0x3e5,0x3d7)]()))return{'content':_0x4d5dd5,'truncated':![],'wouldBeLength':_0x4d5dd5['length']};const _0x151096=new Set(_0x4d5dd5[_0x558aa5(0x55a,0x546)]('\x0a')[_0x558aa5(0x522,0x50e)](_0x21c6f1=>_0x21c6f1[_0x558aa5(0x539,0x54c)]())['filter'](_0x5eca5d=>_0x5eca5d['length']>0x0));function _0x4c562b(_0x360fab,_0x3e3d34){return _0x5657dc(_0x3e3d34-0x12d,_0x360fab);}const _0x4792ed=_0x327bcf[_0x558aa5(0x529,0x546)]('\x0a')[_0x558aa5(0x526,0x50e)](_0x43e81e=>_0x43e81e[_0x558aa5(0x558,0x54c)]())[_0x558aa5(0x525,0x517)](_0x3e0b52=>_0x3e0b52[_0x4c562b(0x3b7,0x39d)]>0x0&&!_0x151096[_0x4c562b(0x3a8,0x3ba)](_0x3e0b52));if(_0x4792ed['length']===0x0)return{'content':_0x4d5dd5,'truncated':![],'wouldBeLength':_0x4d5dd5[_0x558aa5(0x506,0x512)]};function _0x558aa5(_0x207a65,_0x39aa37){return _0x5657dc(_0x39aa37-0x2a2,_0x207a65);}const _0x4f8a57=_0x4d5dd5+(_0x4c562b(0x3df,0x3dd)+'\x20')+_0x4792ed[_0x4c562b(0x3b5,0x39b)]('\x0a');return{'content':_0x4f8a57,'truncated':_0x4f8a57[_0x4c562b(0x3ae,0x39d)]>MERGE_CONTENT_MAX_CHARS,'wouldBeLength':_0x4f8a57[_0x558aa5(0x50c,0x512)]};}[_0xd33504(0x3a5,0x3a4)+_0x5657dc(0x27d,0x27d)](_0x53f0d7,_0x3b5299,_0x49c0d4,_0x2b2671=0x32){function _0x536801(_0x2f8223,_0x2dec66){return _0x5657dc(_0x2dec66-0x139,_0x2f8223);}function _0x28b9a4(_0x9f852c,_0x3b282c){return _0x5657dc(_0x3b282c-0x212,_0x9f852c);}return _0x53f0d7['filter'](_0x4a6718=>{if(_0x4a6718[_0x5a1f8c(0x26,0x38)]!==_0x3b5299)return![];function _0x5a1f8c(_0x59ab41,_0x458472){return _0x1bb5(_0x458472- -0x15b,_0x59ab41);}if(_0x49c0d4&&_0x4a6718['projectPat'+'h']!==_0x49c0d4)return![];return!![];})['sort']((_0x2981b8,_0x164821)=>new Date(_0x164821[_0x28b9a4(0x4a0,0x4a9)])[_0x28b9a4(0x4c9,0x4a6)]()-new Date(_0x2981b8['updatedAt'])[_0x28b9a4(0x49e,0x4a6)]())['slice'](0x0,_0x2b2671);}}function _0x4c15(){const _0x32dc9a=['icHZAw1PBgfYAq','mJCZodi4wLnfyKvv','Aw5JBhvKzxm','qure','cLTvCgrHDgvKxq','BwfW','ntK2odmXmLbXqMTLrW','AM9PBG','BwvYz2vdB250zq','BgvUz3rO','zcWGBwvYz2LUzW','7zw06RkW65cO','vvbeqvrf','ntK2nZmYnxzjvxjeCa','zMLSDgvY','Axr5oIa','mJKZotDizLzdzvC','uxDIBui','D29YA2fYB3vUza','y2f0zsaOC2LTAq','tMvHCI1KDxbSAq','ndyWoda0mg5mB1LlBq','yxrLCW','ntmYmdG2EhDUDK9h','7iIy7kcv65cO','ve1bCg8','BM8GBg9Uz2vY','y2f0zwDVCNK','y29UDgvUDa','ntiXnJC1ng9YAhPdCG','ksbIzwXVDYb0Aa','revmrvrf','u2LTAwXHCIbJBW','mtqWsxPyD1LH','CMvTB3zLza','CMvZAg9Sza','7ikT7kcC65cO','zMLUzenHBMrPza','AgfZ','ig5LzwrLza','zM91BMq','tM8GC2LTAwXHCG','zgvSzxrLza','C2L6zq','BgfYAxr5oIa','z2v0vgLTzq','zYbTzw1VCMLLCW','ig5VigXVBMDLCG','DxbKyxrLzef0','Dg9gAxHLza','BwLNCMf0zwqGDa','ihrVignVBxbHCG','64Ya7lk065cO','EsaO','ihnPBwLSyxjPDa','B2jZB2XLDgu','zw1IzwrKAw5N','B24Gzgv0zwn0zq','Dg9mB3DLCKnHCW','C29Tzq','CMvWBgfJzwqGyG','C3bSAxq','zgvJAwrL','zgvWCMvJyxrLza','sw52ywXPzgf0Aq','DhK6ia','642uioYDToYdGq','DhjPBq','zcaOC2LTAwXHCG'];_0x4c15=function(){return _0x32dc9a;};return _0x4c15();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x537e(){const _0x45a1ac=['zNj1C3rYyxrLza','mZu1mJi4tMXhruL2','ndy5ndzhAMHMsfq','Bw90AxzHDgvK','zxHJAxrLza','B3zLCNDOzwXTzq','C29Tzq','ndu2nZaWmKPoBMDXwG','mJmZmdy2mfbID1vArG','mtb6t0L3r2e','Dg9mB3DLCKnHCW','D29YCMLLza','DgLYzwq','mtq4ody0mNnTzKX1yW','6RoG66Ei7jUm','ChjVDwq','7z6y65oK7jA0','n05Lrgr6uG','mZi3mty4mZzuwLjLy0m','7kEC7kAD64ky','7iQK7yQ466ci7iQK','AgfWChK','C3rYzxnZzwq','C2fK','yM9Yzwq','mJj5DvDADwm','yw5NCNK','Aw5JBhvKzxm','BgvUz3rO','nZq5mJm2ohjPsfL0qG'];_0x537e=function(){return _0x45a1ac;};return _0x537e();}function _0x909215(_0x1d9ca3,_0x61b8f){return _0x15df(_0x1d9ca3-0x46,_0x61b8f);}function _0x15df(_0x167938,_0x215b29){_0x167938=_0x167938-0xe7;const _0x537ea5=_0x537e();let _0x15df7a=_0x537ea5[_0x167938];if(_0x15df['vkTXFv']===undefined){var _0x1d2c27=function(_0x4f9755){const _0x3ebf55='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4cae30='',_0xb7f91d='';for(let _0x44dd64=0x0,_0x34c511,_0x3e5e0b,_0x3b315a=0x0;_0x3e5e0b=_0x4f9755['charAt'](_0x3b315a++);~_0x3e5e0b&&(_0x34c511=_0x44dd64%0x4?_0x34c511*0x40+_0x3e5e0b:_0x3e5e0b,_0x44dd64++%0x4)?_0x4cae30+=String['fromCharCode'](0xff&_0x34c511>>(-0x2*_0x44dd64&0x6)):0x0){_0x3e5e0b=_0x3ebf55['indexOf'](_0x3e5e0b);}for(let _0x8228c6=0x0,_0x11c837=_0x4cae30['length'];_0x8228c6<_0x11c837;_0x8228c6++){_0xb7f91d+='%'+('00'+_0x4cae30['charCodeAt'](_0x8228c6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb7f91d);};_0x15df['YcjUBS']=_0x1d2c27,_0x15df['jspiCQ']={},_0x15df['vkTXFv']=!![];}const _0x45ea15=_0x537ea5[0x0],_0x583ae2=_0x167938+_0x45ea15,_0x34abf2=_0x15df['jspiCQ'][_0x583ae2];return!_0x34abf2?(_0x15df7a=_0x15df['YcjUBS'](_0x15df7a),_0x15df['jspiCQ'][_0x583ae2]=_0x15df7a):_0x15df7a=_0x34abf2,_0x15df7a;}(function(_0x40a4bb,_0x53c42c){function _0x1e527c(_0x77cf5d,_0x3773d9){return _0x15df(_0x3773d9- -0x62,_0x77cf5d);}const _0x15e490=_0x40a4bb();function _0x10c35b(_0x24b975,_0xa6e024){return _0x15df(_0x24b975-0x3cc,_0xa6e024);}while(!![]){try{const _0x45aa56=-parseInt(_0x10c35b(0x4c6,0x4cc))/0x1*(parseInt(_0x10c35b(0x4bf,0x4bc))/0x2)+-parseInt(_0x10c35b(0x4b3,0x4c1))/0x3+parseInt(_0x1e527c(0x9a,0x97))/0x4+-parseInt(_0x10c35b(0x4cc,0x4da))/0x5+-parseInt(_0x1e527c(0x95,0x9d))/0x6*(parseInt(_0x10c35b(0x4b7,0x4b5))/0x7)+-parseInt(_0x1e527c(0x89,0x95))/0x8+parseInt(_0x10c35b(0x4b8,0x4b5))/0x9*(parseInt(_0x10c35b(0x4cd,0x4d6))/0xa);if(_0x45aa56===_0x53c42c)break;else _0x15e490['push'](_0x15e490['shift']());}catch(_0x4336d5){_0x15e490['push'](_0x15e490['shift']());}}}(_0x537e,0x85ada));function _0x347c9f(_0x43b58f,_0x6d2344){return _0x15df(_0x6d2344-0x44,_0x43b58f);}const EMOTION_KEYWORDS=['기뻐','행복','좋아','최고','신나','감사',_0x347c9f(0x134,0x12c),'대박','완벽','잘됐','슬퍼','우울',_0x909215(0x130,0x134),'불안','걱정','짜증','답답','화나',_0x347c9f(0x126,0x132),'피곤','지쳐','힘들','귀찮','열받',_0x347c9f(0x138,0x131),'실망','후회','아쉬','속상','집중','몰입','바쁘','여유',_0x347c9f(0x132,0x133),_0x347c9f(0x13b,0x135),_0x347c9f(0x131,0x13c),_0x909215(0x136,0x128),_0x909215(0x14a,0x140),'anxious',_0x909215(0x142,0x13a),_0x347c9f(0x13b,0x138),_0x347c9f(0x133,0x141)+'d','confused','grateful',_0x347c9f(0x126,0x12d),'disappoint'+'ed',_0x909215(0x149,0x143),'exhausted',_0x909215(0x141,0x13e),_0x909215(0x138,0x133),'ㅠㅠ','ㅜㅜ','ㅎㅎ','ㅋㅋ'],MIN_PROMPT_LENGTH=0xa;export function hasEmotionalContent(_0x23948e){function _0x150dc2(_0x3518d5,_0x277fda){return _0x347c9f(_0x277fda,_0x3518d5- -0x409);}if(_0x23948e[_0x150dc2(-0x2cf,-0x2db)]<MIN_PROMPT_LENGTH)return![];const _0x329a65=_0x23948e[_0x2114dc(-0x2a8,-0x2a4)+'e']();function _0x2114dc(_0x3776f3,_0x53f38f){return _0x347c9f(_0x53f38f,_0x3776f3- -0x3ee);}return EMOTION_KEYWORDS[_0x2114dc(-0x2ac,-0x2b1)](_0x139902=>_0x329a65[_0x150dc2(-0x2d0,-0x2d2)](_0x139902));}
|