@treasuredata/tdx 0.16.13 → 0.16.15
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/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-aliases.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x22f4a3=a154_0x2c76;function a154_0x2c76(_0x363864,_0x1b4497){_0x363864=_0x363864-0x15a;const _0x21f5ec=a154_0x21f5();let _0x2c763b=_0x21f5ec[_0x363864];return _0x2c763b;}(function(_0x7a4a6a,_0x13fc30){const _0x436963=a154_0x2c76,_0xf66e76=_0x7a4a6a();while(!![]){try{const _0x3632a4=parseInt(_0x436963(0x1a6))/0x1+-parseInt(_0x436963(0x15a))/0x2*(-parseInt(_0x436963(0x1a3))/0x3)+parseInt(_0x436963(0x174))/0x4+parseInt(_0x436963(0x178))/0x5*(parseInt(_0x436963(0x170))/0x6)+parseInt(_0x436963(0x187))/0x7+-parseInt(_0x436963(0x168))/0x8+parseInt(_0x436963(0x1a4))/0x9*(-parseInt(_0x436963(0x19e))/0xa);if(_0x3632a4===_0x13fc30)break;else _0xf66e76['push'](_0xf66e76['shift']());}catch(_0x727047){_0xf66e76['push'](_0xf66e76['shift']());}}}(a154_0x21f5,0xba9c3));function a154_0x21f5(){const _0x486550=['Registered\x20stubs:\x0a','getRequests','1453988EibaSX','jsonResponse','fetchMock','Bad\x20Gateway','130HVAJAl','\x20\x20(none)','map','Bad\x20Request','includes','register','unnamed\x20stub','registerWithInspector','stubs','split','Request\x20body:\x20','method','push','Unknown','getStatusText','3623669ZDhOik','length','REST','Service\x20Unavailable','application/json','No\x20Content','reset','body','mockImplementation','wasCalled','jsonResponseWithHeaders','every','GET','getLastRequest','createFetch','getMatchCount','isArray','verify','Forbidden','headers','function','filter','Unmatched\x20stub','20hWYbWR','Unprocessable\x20Entity','td-api','matched','simple','3wMtZhd','2857401TXkIqJ','toLowerCase','1057662qvsyny','withQuery','requests','string','Unauthorized','responder','error','withHost','withBody','get','parse','slice','Too\x20Many\x20Requests','stack','url','117274UQviOh','pathname','Conflict','description','https://api.treasuredata.com/errors/','matchCount','stringify','rfc9457','textResponse','text/plain','\x20registered\x20at:\x0a','test','toUpperCase','searchParams','9727328AyDPug','parseRequest','Created','fail','host','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','entries','Not\x20Found','142566AIzNRS','join'];a154_0x21f5=function(){return _0x486550;};return a154_0x21f5();}import{vi}from'vitest';export class HTTPMockRegistry{[a154_0x22f4a3(0x180)]=[];[a154_0x22f4a3(0x1a8)]=[];[a154_0x22f4a3(0x176)]=null;[a154_0x22f4a3(0x189)](_0x3276aa,_0x3030bb){return _0x3a2bc6=>{const _0x4c6b75=a154_0x2c76;if(_0x3a2bc6[_0x4c6b75(0x183)][_0x4c6b75(0x166)]()!==_0x3276aa[_0x4c6b75(0x166)]())return![];const _0x5a34c1=new URL(_0x3a2bc6[_0x4c6b75(0x1b4)]);if(typeof _0x3030bb===_0x4c6b75(0x1a9))return _0x5a34c1[_0x4c6b75(0x15b)]===_0x3030bb||_0x5a34c1['pathname'][_0x4c6b75(0x17c)](_0x3030bb);return _0x3030bb[_0x4c6b75(0x165)](_0x5a34c1['pathname']);};}[a154_0x22f4a3(0x1a7)](_0x24b9ad,_0x1b7676){return _0xea5bc8=>{const _0x5bb194=a154_0x2c76;if(!_0x24b9ad(_0xea5bc8))return![];const _0x2ba460=new URL(_0xea5bc8['url']);return Object[_0x5bb194(0x16e)](_0x1b7676)[_0x5bb194(0x192)](([_0x119401,_0x47552f])=>_0x2ba460[_0x5bb194(0x167)][_0x5bb194(0x1af)](_0x119401)===_0x47552f);};}[a154_0x22f4a3(0x1ae)](_0x4fd2dc,_0x1b777f){return _0x421d49=>{const _0x39df4d=a154_0x2c76;if(!_0x4fd2dc(_0x421d49))return![];if(typeof _0x1b777f===_0x39df4d(0x19b))return _0x1b777f(_0x421d49['body']);return JSON[_0x39df4d(0x160)](_0x421d49['body'])===JSON[_0x39df4d(0x160)](_0x1b777f);};}[a154_0x22f4a3(0x1ad)](_0x23a53e,_0xc0b8fc){return _0x11b61a=>{const _0x4bb0ea=a154_0x2c76;if(!_0x23a53e(_0x11b61a))return![];const _0x330c0f=new URL(_0x11b61a['url']);return _0x330c0f[_0x4bb0ea(0x16c)]===_0xc0b8fc;};}['register'](_0x567a58,_0x5d24f6,_0x562f4c){const _0xe80013=a154_0x22f4a3;this[_0xe80013(0x180)][_0xe80013(0x184)]({'matcher':_0x567a58,'responder':_0x5d24f6,'matched':![],'matchCount':0x0,'stack':new Error()[_0xe80013(0x1b3)]??'','description':_0x562f4c?.['description']});}[a154_0x22f4a3(0x17f)](_0x1ecf0f,_0x138fd5,_0xf9d81){const _0x2a4bd0=a154_0x22f4a3,_0x13543b=_0x2c4ebc=>{const _0x2bf3c7=a154_0x2c76;return _0xf9d81(_0x2c4ebc[_0x2bf3c7(0x18e)],_0x2c4ebc),_0x138fd5(_0x2c4ebc);};this[_0x2a4bd0(0x17d)](_0x1ecf0f,_0x13543b);}static[a154_0x22f4a3(0x175)](_0x3e7b39,_0x142ad7=0xc8){const _0x39c5de=a154_0x22f4a3;return()=>new Response(JSON[_0x39c5de(0x160)](_0x3e7b39),{'status':_0x142ad7,'headers':{'Content-Type':_0x39c5de(0x18b)}});}static['errorResponse'](_0xe97685,_0x987363,_0x57675f=a154_0x22f4a3(0x1a2)){return()=>{const _0x540622=a154_0x2c76;let _0x58dee1;switch(_0x57675f){case _0x540622(0x1a0):_0x58dee1={'errors':{'error':_0x987363,'message':_0x987363,'severity':_0x540622(0x1ac),'status_code':_0xe97685}};break;case _0x540622(0x161):_0x58dee1={'type':_0x540622(0x15e)+_0xe97685,'title':HTTPMockRegistry[_0x540622(0x186)](_0xe97685),'status':_0xe97685,'detail':_0x987363};break;default:_0x58dee1={'error':_0x987363};}return new Response(JSON[_0x540622(0x160)](_0x58dee1),{'status':_0xe97685,'headers':{'Content-Type':_0x540622(0x18b)}});};}static[a154_0x22f4a3(0x191)](_0x20ce20,_0x371aed,_0x263834=0xc8){const _0x56d21e=a154_0x22f4a3;return()=>new Response(JSON[_0x56d21e(0x160)](_0x20ce20),{'status':_0x263834,'headers':{'Content-Type':'application/json',..._0x371aed}});}static[a154_0x22f4a3(0x162)](_0x3354e4,_0x32251a=0xc8){const _0x23286e=a154_0x22f4a3;return()=>new Response(_0x3354e4,{'status':_0x32251a,'headers':{'Content-Type':_0x23286e(0x163)}});}static['networkError'](_0x21d587){return()=>{throw new Error(_0x21d587);};}[a154_0x22f4a3(0x195)](){const _0x1b07fe=a154_0x22f4a3;return this[_0x1b07fe(0x176)]=vi['fn']()[_0x1b07fe(0x18f)](async(_0x11a55d,_0x504b5d)=>{const _0x16e1c9=_0x1b07fe,_0x35fa43=this['parseRequest'](_0x11a55d,_0x504b5d);this[_0x16e1c9(0x1a8)][_0x16e1c9(0x184)](_0x35fa43);for(const _0x30b8c7 of this[_0x16e1c9(0x180)]){if(_0x30b8c7['matcher'](_0x35fa43))return _0x30b8c7[_0x16e1c9(0x1a1)]=!![],_0x30b8c7[_0x16e1c9(0x15f)]++,_0x30b8c7[_0x16e1c9(0x1ab)](_0x35fa43);}const _0x59ab49=this[_0x16e1c9(0x180)]['map']((_0x300f8a,_0x1ce26c)=>'\x20\x20'+(_0x1ce26c+0x1)+'.\x20'+(_0x300f8a[_0x16e1c9(0x15d)]??_0x16e1c9(0x17e)))[_0x16e1c9(0x171)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x35fa43[_0x16e1c9(0x183)]+'\x20'+_0x35fa43[_0x16e1c9(0x1b4)]+'\x0a'+(_0x16e1c9(0x182)+JSON[_0x16e1c9(0x160)](_0x35fa43['body'])+'\x0a')+(_0x16e1c9(0x172)+(_0x59ab49||_0x16e1c9(0x179))));}),this[_0x1b07fe(0x176)];}[a154_0x22f4a3(0x169)](_0x226dd2,_0x1437b3){const _0x2b1879=a154_0x22f4a3,_0x1f8230={};if(_0x1437b3?.[_0x2b1879(0x19a)]){if(_0x1437b3[_0x2b1879(0x19a)]instanceof Headers)_0x1437b3[_0x2b1879(0x19a)]['forEach']((_0x9581e4,_0x284a90)=>{const _0x3ea853=_0x2b1879;_0x1f8230[_0x284a90[_0x3ea853(0x1a5)]()]=_0x9581e4;});else{if(Array[_0x2b1879(0x197)](_0x1437b3[_0x2b1879(0x19a)]))for(const [_0x17cab9,_0x150bb8]of _0x1437b3[_0x2b1879(0x19a)]){_0x1f8230[_0x17cab9[_0x2b1879(0x1a5)]()]=_0x150bb8;}else for(const [_0xba9675,_0x247f10]of Object[_0x2b1879(0x16e)](_0x1437b3[_0x2b1879(0x19a)])){_0x247f10!==undefined&&(_0x1f8230[_0xba9675[_0x2b1879(0x1a5)]()]=_0x247f10);}}}let _0x4177ed;if(_0x1437b3?.['body'])try{_0x4177ed=JSON[_0x2b1879(0x1b0)](_0x1437b3[_0x2b1879(0x18e)]);}catch{_0x4177ed=_0x1437b3['body'];}return{'method':_0x1437b3?.['method']??_0x2b1879(0x193),'url':_0x226dd2,'headers':_0x1f8230,'body':_0x4177ed};}[a154_0x22f4a3(0x198)](_0x3af8de){const _0x20f1bb=a154_0x22f4a3,_0x2d8816=this[_0x20f1bb(0x180)][_0x20f1bb(0x19c)](_0x19eba5=>!_0x19eba5[_0x20f1bb(0x1a1)]);if(_0x2d8816['length']>0x0){const _0x153c03=_0x2d8816[_0x20f1bb(0x17a)](_0x1a4b91=>{const _0x1d7ec=_0x20f1bb,_0x35d1fc=_0x1a4b91[_0x1d7ec(0x15d)]?'\x20('+_0x1a4b91[_0x1d7ec(0x15d)]+')':'',_0x14c508=_0x1a4b91['stack'][_0x1d7ec(0x181)]('\x0a')[_0x1d7ec(0x1b1)](0x2,0x5)['join']('\x0a');return _0x1d7ec(0x19d)+_0x35d1fc+_0x1d7ec(0x164)+_0x14c508;});_0x3af8de[_0x20f1bb(0x16b)](_0x2d8816[_0x20f1bb(0x188)]+_0x20f1bb(0x16d)+_0x153c03[_0x20f1bb(0x171)]('\x0a\x0a'));}}[a154_0x22f4a3(0x173)](){const _0x35aa51=a154_0x22f4a3;return[...this[_0x35aa51(0x1a8)]];}[a154_0x22f4a3(0x194)](){const _0x3d6299=a154_0x22f4a3;return this[_0x3d6299(0x1a8)][this['requests'][_0x3d6299(0x188)]-0x1];}[a154_0x22f4a3(0x190)](_0x5a2c67,_0x46628c){const _0x145880=a154_0x22f4a3;return this[_0x145880(0x1a8)]['some'](_0x2ab74d=>{const _0x920c59=_0x145880;if(_0x2ab74d[_0x920c59(0x183)][_0x920c59(0x166)]()!==_0x5a2c67[_0x920c59(0x166)]())return![];if(typeof _0x46628c===_0x920c59(0x1a9))return _0x2ab74d[_0x920c59(0x1b4)][_0x920c59(0x17c)](_0x46628c);return _0x46628c['test'](_0x2ab74d[_0x920c59(0x1b4)]);});}[a154_0x22f4a3(0x196)](_0x33be9a){const _0x43beb=a154_0x22f4a3;return this[_0x43beb(0x180)][_0x33be9a]?.[_0x43beb(0x15f)]??0x0;}[a154_0x22f4a3(0x18d)](){const _0xfe6084=a154_0x22f4a3;this[_0xfe6084(0x180)]=[],this['requests']=[],this['fetchMock']=null;}static['getStatusText'](_0xe592f7){const _0x514d87=a154_0x22f4a3,_0x580bad={0xc8:'OK',0xc9:_0x514d87(0x16a),0xcc:_0x514d87(0x18c),0x190:_0x514d87(0x17b),0x191:_0x514d87(0x1aa),0x193:_0x514d87(0x199),0x194:_0x514d87(0x16f),0x199:_0x514d87(0x15c),0x1a6:_0x514d87(0x19f),0x1ad:_0x514d87(0x1b2),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0x514d87(0x177),0x1f7:_0x514d87(0x18a)};return _0x580bad[_0xe592f7]??_0x514d87(0x185);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53645b,_0x55bf49){var _0x180739=a155_0x4d31,_0x2ac0d3=_0x53645b();while(!![]){try{var _0x51928b=parseInt(_0x180739(0x168))/0x1*(-parseInt(_0x180739(0x15f))/0x2)+parseInt(_0x180739(0x164))/0x3*(-parseInt(_0x180739(0x165))/0x4)+-parseInt(_0x180739(0x167))/0x5*(parseInt(_0x180739(0x15e))/0x6)+-parseInt(_0x180739(0x161))/0x7+parseInt(_0x180739(0x166))/0x8+parseInt(_0x180739(0x162))/0x9*(-parseInt(_0x180739(0x160))/0xa)+parseInt(_0x180739(0x163))/0xb;if(_0x51928b===_0x55bf49)break;else _0x2ac0d3['push'](_0x2ac0d3['shift']());}catch(_0x2aade2){_0x2ac0d3['push'](_0x2ac0d3['shift']());}}}(a155_0x44eb,0x760bb));function a155_0x44eb(){var _0xbe78a1=['12365JZCKyZ','82591xrkcUu','1608YNPApz','2qhjBef','260OkQFSR','3543330chJpwQ','106668thBSqm','17835829laRjfa','4038nASUpW','1208tKJBGX','6626120RKbWUw'];a155_0x44eb=function(){return _0xbe78a1;};return a155_0x44eb();}function a155_0x4d31(_0x3738de,_0x3f46bc){_0x3738de=_0x3738de-0x15e;var _0x44eb9=a155_0x44eb();var _0x4d3121=_0x44eb9[_0x3738de];return _0x4d3121;}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x12a70f,_0x589230){const _0x49665b=a156_0x4fc4,_0x38cbe9=_0x12a70f();while(!![]){try{const _0x14fa39=parseInt(_0x49665b(0x186))/0x1*(parseInt(_0x49665b(0x183))/0x2)+-parseInt(_0x49665b(0x184))/0x3*(-parseInt(_0x49665b(0x188))/0x4)+parseInt(_0x49665b(0x189))/0x5+-parseInt(_0x49665b(0x18b))/0x6+parseInt(_0x49665b(0x187))/0x7+parseInt(_0x49665b(0x185))/0x8*(parseInt(_0x49665b(0x18c))/0x9)+-parseInt(_0x49665b(0x18a))/0xa;if(_0x14fa39===_0x589230)break;else _0x38cbe9['push'](_0x38cbe9['shift']());}catch(_0x1db5a7){_0x38cbe9['push'](_0x38cbe9['shift']());}}}(a156_0x3dc3,0x7e8fc));function a156_0x4fc4(_0x2a7b22,_0x2e5c90){_0x2a7b22=_0x2a7b22-0x181;const _0x3dc3cf=a156_0x3dc3();let _0x4fc4f2=_0x3dc3cf[_0x2a7b22];return _0x4fc4f2;}function a156_0x3dc3(){const _0x219275=['388616eVOqFI','37511WclCLz','2473226pNtCNv','783572qGTssX','3679675JGChXE','15579100JkRvCn','4271244muSzIS','36vCyZay','all','map','28BxsusN','15hkBnjH'];a156_0x3dc3=function(){return _0x219275;};return a156_0x3dc3();}export async function batchAsync(_0xc8c805,_0x4dc3e6,_0xacbfbb=0xa){const _0x1b8d79=a156_0x4fc4,_0x36c80c=[];for(let _0xb8a589=0x0;_0xb8a589<_0xc8c805['length'];_0xb8a589+=_0xacbfbb){const _0x393e08=_0xc8c805['slice'](_0xb8a589,_0xb8a589+_0xacbfbb),_0x48cf5e=await Promise[_0x1b8d79(0x181)](_0x393e08[_0x1b8d79(0x182)](_0x4dc3e6));_0x36c80c['push'](..._0x48cf5e);}return _0x36c80c;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a157_0x1ffa3b=a157_0x3fe3;(function(_0x3d0999,_0x1d0d0f){const _0x63ed1d=a157_0x3fe3,_0x207fc7=_0x3d0999();while(!![]){try{const _0x12bdb4=-parseInt(_0x63ed1d(0x1f4))/0x1+-parseInt(_0x63ed1d(0x1ff))/0x2*(-parseInt(_0x63ed1d(0x1f1))/0x3)+parseInt(_0x63ed1d(0x206))/0x4*(parseInt(_0x63ed1d(0x1ee))/0x5)+parseInt(_0x63ed1d(0x1f3))/0x6*(-parseInt(_0x63ed1d(0x1fd))/0x7)+-parseInt(_0x63ed1d(0x1f9))/0x8+-parseInt(_0x63ed1d(0x20d))/0x9*(parseInt(_0x63ed1d(0x1fb))/0xa)+-parseInt(_0x63ed1d(0x201))/0xb*(-parseInt(_0x63ed1d(0x200))/0xc);if(_0x12bdb4===_0x1d0d0f)break;else _0x207fc7['push'](_0x207fc7['shift']());}catch(_0x1af103){_0x207fc7['push'](_0x207fc7['shift']());}}}(a157_0x296b,0x47e80));import*as a157_0x23f1dc from'chalk';const Chalk=a157_0x23f1dc[a157_0x1ffa3b(0x207)];export function shouldUseColor(_0x3f45fe={}){const _0x316310=a157_0x1ffa3b;if(_0x3f45fe['noColor']===!![])return![];if(_0x3f45fe[_0x316310(0x1fa)]===!![])return!![];if(process[_0x316310(0x20e)][_0x316310(0x208)]!==undefined)return![];return process[_0x316310(0x20b)][_0x316310(0x20a)]??![];}export function getChalk(_0x79f98c={}){if(shouldUseColor(_0x79f98c))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x5583a3,_0x8fdad3={}){const _0x28287d=a157_0x1ffa3b;return getChalk(_0x8fdad3)[_0x28287d(0x1f8)](_0x5583a3);}function a157_0x3fe3(_0xa99224,_0x43d462){_0xa99224=_0xa99224-0x1ee;const _0x296b48=a157_0x296b();let _0x3fe30f=_0x296b48[_0xa99224];return _0x3fe30f;}export function colorHeader(_0xca9a45,_0x2268fb={}){const _0x4fa8b6=a157_0x1ffa3b;return getChalk(_0x2268fb)[_0x4fa8b6(0x203)](_0xca9a45);}export function colorType(_0xba08cd,_0x2a2527={}){const _0xbaafb7=a157_0x1ffa3b;return getChalk(_0x2a2527)[_0xbaafb7(0x1f8)](_0xba08cd);}export function colorJSONKey(_0x433701,_0xcb91aa={}){return getChalk(_0xcb91aa)['blue'](_0x433701);}export function colorJSONString(_0x506064,_0x76c9dc={}){const _0x84dc72=a157_0x1ffa3b;return getChalk(_0x76c9dc)[_0x84dc72(0x1f0)](_0x506064);}export function colorJSONNumber(_0x372361,_0x165676={}){const _0x17ae07=a157_0x1ffa3b;return getChalk(_0x165676)[_0x17ae07(0x203)](_0x372361);}export function colorJSONBoolean(_0x599ef3,_0x2295b4={}){return getChalk(_0x2295b4)['yellow'](_0x599ef3);}export function colorJSONNull(_0x36ae3a,_0x542977={}){const _0x8993a6=a157_0x1ffa3b;return getChalk(_0x542977)[_0x8993a6(0x1f8)](_0x36ae3a);}export function colorizeJSONCompact(_0x48d930,_0x2229cc={}){const _0x94011c=a157_0x1ffa3b;if(!shouldUseColor(_0x2229cc))return JSON['stringify'](_0x48d930);if(_0x48d930===null)return colorJSONNull(_0x94011c(0x205),_0x2229cc);if(typeof _0x48d930===_0x94011c(0x209))return colorJSONBoolean(String(_0x48d930),_0x2229cc);if(typeof _0x48d930===_0x94011c(0x1fc))return colorJSONNumber(String(_0x48d930),_0x2229cc);if(typeof _0x48d930===_0x94011c(0x1ef))return colorJSONString(JSON['stringify'](_0x48d930),_0x2229cc);if(Array['isArray'](_0x48d930)){if(_0x48d930[_0x94011c(0x204)]===0x0)return'[]';const _0x1e3622=_0x48d930[_0x94011c(0x1f2)](_0x4f6f66=>colorizeJSONCompact(_0x4f6f66,_0x2229cc));return'['+_0x1e3622['join'](',')+']';}if(typeof _0x48d930===_0x94011c(0x1f7)){const _0x4a9d9b=Object[_0x94011c(0x1fe)](_0x48d930);if(_0x4a9d9b['length']===0x0)return'{}';const _0x4ddb7e=_0x4a9d9b[_0x94011c(0x1f2)](([_0x1b3c93,_0x4fec18])=>{const _0x42dac2=_0x94011c,_0x3deae0=colorJSONKey(JSON[_0x42dac2(0x1f5)](_0x1b3c93),_0x2229cc),_0x4d7e9e=colorizeJSONCompact(_0x4fec18,_0x2229cc);return _0x3deae0+':'+_0x4d7e9e;});return'{'+_0x4ddb7e[_0x94011c(0x1f6)](',')+'}';}return String(_0x48d930);}function a157_0x296b(){const _0x522227=['NO_COLOR','boolean','isTTY','stdout','isArray','1108854KbxnSH','env','5dTrBQD','string','green','89322awiSWS','map','888564XIhXcS','546843TUAbOR','stringify','join','object','dim','3024336FJvuxJ','color','10hlcwvM','number','7LAnTpF','entries','34bGNpIK','12YhOOmS','8498787SMVlxp','repeat','cyan','length','null','847752aIuQIn','Chalk'];a157_0x296b=function(){return _0x522227;};return a157_0x296b();}export function colorizeJSON(_0x4a9068,_0x2a1a18={},_0x679199=0x0){const _0x4cd13e=a157_0x1ffa3b;if(!shouldUseColor(_0x2a1a18))return JSON[_0x4cd13e(0x1f5)](_0x4a9068,null,0x2);const _0xc4f82c='\x20'[_0x4cd13e(0x202)](_0x679199),_0x42d698=_0x679199+0x2;if(_0x4a9068===null)return colorJSONNull('null',_0x2a1a18);if(typeof _0x4a9068===_0x4cd13e(0x209))return colorJSONBoolean(String(_0x4a9068),_0x2a1a18);if(typeof _0x4a9068==='number')return colorJSONNumber(String(_0x4a9068),_0x2a1a18);if(typeof _0x4a9068===_0x4cd13e(0x1ef))return colorJSONString(JSON[_0x4cd13e(0x1f5)](_0x4a9068),_0x2a1a18);if(Array[_0x4cd13e(0x20c)](_0x4a9068)){if(_0x4a9068['length']===0x0)return'[]';const _0x4af41d=_0x4a9068['map'](_0x183f20=>{const _0x17cf4c=_0x4cd13e,_0x42ecc3=colorizeJSON(_0x183f20,_0x2a1a18,_0x42d698);return''+'\x20'[_0x17cf4c(0x202)](_0x42d698)+_0x42ecc3;});return'[\x0a'+_0x4af41d[_0x4cd13e(0x1f6)](',\x0a')+('\x0a'+_0xc4f82c+']');}if(typeof _0x4a9068==='object'){const _0x136afb=Object[_0x4cd13e(0x1fe)](_0x4a9068);if(_0x136afb[_0x4cd13e(0x204)]===0x0)return'{}';const _0x40d932=_0x136afb[_0x4cd13e(0x1f2)](([_0x206f16,_0x2c1a7f])=>{const _0x4c6e79=_0x4cd13e,_0x2f7907=colorJSONKey(JSON[_0x4c6e79(0x1f5)](_0x206f16),_0x2a1a18),_0x105495=colorizeJSON(_0x2c1a7f,_0x2a1a18,_0x42d698);return''+'\x20'[_0x4c6e79(0x202)](_0x42d698)+_0x2f7907+':\x20'+_0x105495;});return'{\x0a'+_0x40d932[_0x4cd13e(0x1f6)](',\x0a')+('\x0a'+_0xc4f82c+'}');}return String(_0x4a9068);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a158_0xd0ce(){const _0x12c84a=['join','fill','6699tZYqBn','has','old','unshift','cyan','669708FVSgZH','unchanged','max','added','min','52YbqEEl','red','\x20\x20\x20','1990184Ljzsbd','add','482080ARbLpQ','green','forEach','padStart','some','content','12819186IPUWrg','split','562194erGsJd','repeat','dim','new','\x20+\x20','110340KUDnLT','type','removed','push','582rSuKfy','length','map'];a158_0xd0ce=function(){return _0x12c84a;};return a158_0xd0ce();}(function(_0x9e80b0,_0x57232c){const _0x73bd8d=a158_0x4228,_0x32ecc2=_0x9e80b0();while(!![]){try{const _0x1c8464=-parseInt(_0x73bd8d(0xdd))/0x1+-parseInt(_0x73bd8d(0xd5))/0x2+-parseInt(_0x73bd8d(0xcb))/0x3+-parseInt(_0x73bd8d(0xd0))/0x4*(-parseInt(_0x73bd8d(0xe2))/0x5)+parseInt(_0x73bd8d(0xc1))/0x6*(-parseInt(_0x73bd8d(0xc6))/0x7)+-parseInt(_0x73bd8d(0xd3))/0x8+parseInt(_0x73bd8d(0xdb))/0x9;if(_0x1c8464===_0x57232c)break;else _0x32ecc2['push'](_0x32ecc2['shift']());}catch(_0x44be8a){_0x32ecc2['push'](_0x32ecc2['shift']());}}}(a158_0xd0ce,0x53c7e));import a158_0x4bf17c from'chalk';function a158_0x4228(_0x321398,_0x3e68bd){_0x321398=_0x321398-0xbf;const _0xd0ce1b=a158_0xd0ce();let _0x42283b=_0xd0ce1b[_0x321398];return _0x42283b;}export function generateDiff(_0x15c41c,_0x3faacd){const _0x3fe809=a158_0x4228,_0x1c5755=_0x15c41c[_0x3fe809(0xdc)]('\x0a'),_0x42f873=_0x3faacd[_0x3fe809(0xdc)]('\x0a'),_0x3ac185=[],_0x5f54c3=computeLCS(_0x1c5755,_0x42f873);let _0x231caa=0x0,_0x1685b4=0x0,_0x438b41=0x0;while(_0x231caa<_0x1c5755[_0x3fe809(0xc2)]||_0x1685b4<_0x42f873[_0x3fe809(0xc2)]){if(_0x438b41<_0x5f54c3[_0x3fe809(0xc2)]&&_0x231caa<_0x1c5755['length']&&_0x1c5755[_0x231caa]===_0x5f54c3[_0x438b41])_0x1685b4<_0x42f873[_0x3fe809(0xc2)]&&_0x42f873[_0x1685b4]===_0x5f54c3[_0x438b41]?(_0x3ac185[_0x3fe809(0xc0)]({'type':'unchanged','content':_0x1c5755[_0x231caa]}),_0x231caa++,_0x1685b4++,_0x438b41++):(_0x3ac185[_0x3fe809(0xc0)]({'type':'added','content':_0x42f873[_0x1685b4]}),_0x1685b4++);else{if(_0x438b41<_0x5f54c3[_0x3fe809(0xc2)]&&_0x1685b4<_0x42f873[_0x3fe809(0xc2)]&&_0x42f873[_0x1685b4]===_0x5f54c3[_0x438b41])_0x3ac185[_0x3fe809(0xc0)]({'type':_0x3fe809(0xbf),'content':_0x1c5755[_0x231caa]}),_0x231caa++;else{if(_0x231caa<_0x1c5755['length']&&(_0x438b41>=_0x5f54c3[_0x3fe809(0xc2)]||_0x1c5755[_0x231caa]!==_0x5f54c3[_0x438b41]))_0x3ac185[_0x3fe809(0xc0)]({'type':_0x3fe809(0xbf),'content':_0x1c5755[_0x231caa]}),_0x231caa++;else _0x1685b4<_0x42f873[_0x3fe809(0xc2)]&&(_0x3ac185['push']({'type':_0x3fe809(0xce),'content':_0x42f873[_0x1685b4]}),_0x1685b4++);}}}return _0x3ac185;}function computeLCS(_0x1df66d,_0x1b8961){const _0xf4d39c=a158_0x4228,_0x39c196=_0x1df66d[_0xf4d39c(0xc2)],_0x265b8a=_0x1b8961[_0xf4d39c(0xc2)],_0x57af81=Array(_0x39c196+0x1)[_0xf4d39c(0xc5)](null)[_0xf4d39c(0xc3)](()=>Array(_0x265b8a+0x1)[_0xf4d39c(0xc5)](0x0));for(let _0x5c5bce=0x1;_0x5c5bce<=_0x39c196;_0x5c5bce++){for(let _0x582bcd=0x1;_0x582bcd<=_0x265b8a;_0x582bcd++){_0x1df66d[_0x5c5bce-0x1]===_0x1b8961[_0x582bcd-0x1]?_0x57af81[_0x5c5bce][_0x582bcd]=_0x57af81[_0x5c5bce-0x1][_0x582bcd-0x1]+0x1:_0x57af81[_0x5c5bce][_0x582bcd]=Math[_0xf4d39c(0xcd)](_0x57af81[_0x5c5bce-0x1][_0x582bcd],_0x57af81[_0x5c5bce][_0x582bcd-0x1]);}}const _0x3db1f=[];let _0x19a269=_0x39c196,_0x6d5bcc=_0x265b8a;while(_0x19a269>0x0&&_0x6d5bcc>0x0){if(_0x1df66d[_0x19a269-0x1]===_0x1b8961[_0x6d5bcc-0x1])_0x3db1f[_0xf4d39c(0xc9)](_0x1df66d[_0x19a269-0x1]),_0x19a269--,_0x6d5bcc--;else _0x57af81[_0x19a269-0x1][_0x6d5bcc]>_0x57af81[_0x19a269][_0x6d5bcc-0x1]?_0x19a269--:_0x6d5bcc--;}return _0x3db1f;}export function formatDiffWithColors(_0x18bce5,_0x570401=0x3){const _0x1ed8d2=a158_0x4228,_0x332319=new Set();_0x18bce5[_0x1ed8d2(0xd7)]((_0x1d9aac,_0x18b7f0)=>{const _0x21ff27=_0x1ed8d2;_0x1d9aac[_0x21ff27(0xe3)]!==_0x21ff27(0xcc)&&_0x332319[_0x21ff27(0xd4)](_0x18b7f0);});if(_0x332319['size']===0x0)return'';const _0x1367e2=new Set();for(const _0x3aee48 of _0x332319){for(let _0x2f15bf=Math[_0x1ed8d2(0xcd)](0x0,_0x3aee48-_0x570401);_0x2f15bf<=Math[_0x1ed8d2(0xcf)](_0x18bce5[_0x1ed8d2(0xc2)]-0x1,_0x3aee48+_0x570401);_0x2f15bf++){_0x1367e2[_0x1ed8d2(0xd4)](_0x2f15bf);}}const _0x5d2f0d=[];let _0xbec660=-0x1;const _0x102288=_0x18bce5[_0x1ed8d2(0xc2)],_0x1800c6=Math['max'](0x3,String(_0x102288)[_0x1ed8d2(0xc2)]),_0x5ca4d2=[];let _0x42d7c0=0x0,_0x238fc6=0x0;for(const _0x1cacfb of _0x18bce5){if(_0x1cacfb[_0x1ed8d2(0xe3)]===_0x1ed8d2(0xbf))_0x42d7c0++,_0x5ca4d2[_0x1ed8d2(0xc0)]({'old':_0x42d7c0,'new':0x0});else _0x1cacfb[_0x1ed8d2(0xe3)]===_0x1ed8d2(0xce)?(_0x238fc6++,_0x5ca4d2[_0x1ed8d2(0xc0)]({'old':0x0,'new':_0x238fc6})):(_0x42d7c0++,_0x238fc6++,_0x5ca4d2['push']({'old':_0x42d7c0,'new':_0x238fc6}));}for(let _0x1b1af6=0x0;_0x1b1af6<_0x18bce5['length'];_0x1b1af6++){if(!_0x1367e2[_0x1ed8d2(0xc7)](_0x1b1af6))continue;_0xbec660!==-0x1&&_0x1b1af6>_0xbec660+0x1&&_0x5d2f0d[_0x1ed8d2(0xc0)](a158_0x4bf17c[_0x1ed8d2(0xca)]('\x20\x20...'));_0xbec660=_0x1b1af6;const _0x13e9fb=_0x18bce5[_0x1b1af6],_0x3119dd=_0x5ca4d2[_0x1b1af6],_0x47267f=_0x3119dd['old']>0x0?String(_0x3119dd[_0x1ed8d2(0xc8)])[_0x1ed8d2(0xd8)](_0x1800c6):'\x20'[_0x1ed8d2(0xde)](_0x1800c6),_0x28de87=_0x3119dd[_0x1ed8d2(0xe0)]>0x0?String(_0x3119dd[_0x1ed8d2(0xe0)])[_0x1ed8d2(0xd8)](_0x1800c6):'\x20'[_0x1ed8d2(0xde)](_0x1800c6);switch(_0x13e9fb[_0x1ed8d2(0xe3)]){case _0x1ed8d2(0xbf):_0x5d2f0d[_0x1ed8d2(0xc0)](a158_0x4bf17c[_0x1ed8d2(0xd1)](_0x47267f+'\x20'+_0x28de87+'\x20-\x20'+_0x13e9fb[_0x1ed8d2(0xda)]));break;case _0x1ed8d2(0xce):_0x5d2f0d['push'](a158_0x4bf17c[_0x1ed8d2(0xd6)](_0x47267f+'\x20'+_0x28de87+_0x1ed8d2(0xe1)+_0x13e9fb[_0x1ed8d2(0xda)]));break;default:_0x5d2f0d[_0x1ed8d2(0xc0)](a158_0x4bf17c[_0x1ed8d2(0xdf)](_0x47267f+'\x20'+_0x28de87+_0x1ed8d2(0xd2)+_0x13e9fb['content']));break;}}return _0x5d2f0d[_0x1ed8d2(0xc4)]('\x0a');}export function hasChanges(_0x53af83){const _0x1473de=a158_0x4228;return _0x53af83[_0x1473de(0xd9)](_0x1a6a15=>_0x1a6a15[_0x1473de(0xe3)]!=='unchanged');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x575ca4,_0x37b362){const _0x19cbbd=a159_0x2a00,_0x195a5b=_0x575ca4();while(!![]){try{const _0x28e3ee=parseInt(_0x19cbbd(0xfd))/0x1*(-parseInt(_0x19cbbd(0x101))/0x2)+-parseInt(_0x19cbbd(0xf9))/0x3+-parseInt(_0x19cbbd(0xfc))/0x4+parseInt(_0x19cbbd(0xfb))/0x5*(-parseInt(_0x19cbbd(0x10e))/0x6)+parseInt(_0x19cbbd(0x10c))/0x7*(-parseInt(_0x19cbbd(0x104))/0x8)+-parseInt(_0x19cbbd(0x10b))/0x9+parseInt(_0x19cbbd(0x109))/0xa*(parseInt(_0x19cbbd(0x102))/0xb);if(_0x28e3ee===_0x37b362)break;else _0x195a5b['push'](_0x195a5b['shift']());}catch(_0x51dc86){_0x195a5b['push'](_0x195a5b['shift']());}}}(a159_0x488d,0x33308));import*as a159_0x468573 from'node:fs';import*as a159_0x59a0f0 from'node:path';export function setSecureFilePermissions(_0x235fbf){const _0x53a3cb=a159_0x2a00;try{a159_0x468573[_0x53a3cb(0x106)](_0x235fbf,0x180);}catch{console[_0x53a3cb(0xff)](_0x53a3cb(0xfa)+_0x235fbf);}}function a159_0x488d(){const _0x5b8a53=['existsSync','24618EDnsVo','mode','349896Ttybzt','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','85pINiay','1204396eXoAew','92MKjRqf','\x20has\x20insecure\x20permissions\x20(','warn','Should\x20be\x200600\x20or\x20more\x20restrictive.','908jjeXdk','957wbOIUL','statSync','53112fveWQa','Warning:\x20','chmodSync','dirname','toString','121430jxVQRr','mkdirSync','1363896cQJROu','175SaThzk'];a159_0x488d=function(){return _0x5b8a53;};return a159_0x488d();}export function setSecureDirectoryPermissions(_0x159b3e){const _0x504c95=a159_0x2a00;try{a159_0x468573[_0x504c95(0x106)](_0x159b3e,0x1c0);}catch{console['warn'](_0x504c95(0xfa)+_0x159b3e);}}export function createSecureDirectory(_0x57cfa4){const _0x4eb25e=a159_0x2a00;!a159_0x468573[_0x4eb25e(0x10d)](_0x57cfa4)&&(a159_0x468573[_0x4eb25e(0x10a)](_0x57cfa4,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x57cfa4));}export function validateSecureFilePermissions(_0x3e5534){const _0x59fc95=a159_0x2a00;try{const _0x27ae51=a159_0x468573[_0x59fc95(0x103)](_0x3e5534),_0x13ed3d=_0x27ae51[_0x59fc95(0x10f)]&0x1ff,_0x238dc4=(_0x13ed3d&0x3f)!==0x0;if(_0x238dc4)return console[_0x59fc95(0xff)](_0x59fc95(0x105)+_0x3e5534+_0x59fc95(0xfe)+_0x13ed3d[_0x59fc95(0x108)](0x8)+').\x20'+_0x59fc95(0x100)),![];return!![];}catch{return!![];}}function a159_0x2a00(_0x2d30b9,_0x1a75de){_0x2d30b9=_0x2d30b9-0xf9;const _0x488d19=a159_0x488d();let _0x2a00c7=_0x488d19[_0x2d30b9];return _0x2a00c7;}export function writeSecureFile(_0x22c4eb,_0x198e87){const _0x14c925=a159_0x2a00,_0x2d08ac=a159_0x59a0f0[_0x14c925(0x107)](_0x22c4eb);createSecureDirectory(_0x2d08ac),a159_0x468573['writeFileSync'](_0x22c4eb,_0x198e87,{'mode':0x180}),setSecureFilePermissions(_0x22c4eb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x266a27,_0x617fc7){const _0x26032e=a160_0x21fe,_0x1f5966=_0x266a27();while(!![]){try{const _0x4f46ec=parseInt(_0x26032e(0x113))/0x1+parseInt(_0x26032e(0x10f))/0x2*(-parseInt(_0x26032e(0x112))/0x3)+-parseInt(_0x26032e(0x103))/0x4*(-parseInt(_0x26032e(0x10b))/0x5)+parseInt(_0x26032e(0x108))/0x6*(-parseInt(_0x26032e(0x105))/0x7)+parseInt(_0x26032e(0xff))/0x8+-parseInt(_0x26032e(0x100))/0x9*(parseInt(_0x26032e(0x104))/0xa)+parseInt(_0x26032e(0x109))/0xb*(parseInt(_0x26032e(0x10a))/0xc);if(_0x4f46ec===_0x617fc7)break;else _0x1f5966['push'](_0x1f5966['shift']());}catch(_0xf47a0){_0x1f5966['push'](_0x1f5966['shift']());}}}(a160_0x4915,0x60cdc));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x2796a0=a160_0x21fe;return process[_0x2796a0(0x102)][_0x2796a0(0x111)]||join(homedir(),'.cache','tdx');}const registry=new Map();function a160_0x4915(){const _0x54d36a=['{profile}','env','560132dvLxay','688190GHUeeC','161qhhbjW','clear','set','56778lWNZli','99exELsa','131772sGzBmj','25ofJnNB','get','utf-8','default','974296mDLBSW','replace','TDX_CACHE_DIR','3PDYTtw','298044MKgUew','4989104oEsGSx','81wQrseW'];a160_0x4915=function(){return _0x54d36a;};return a160_0x4915();}export function registerGlobalCacheKey(_0xfb379f,_0x4a98dc){const _0x3f94de=a160_0x21fe,_0x22d644=registry[_0x3f94de(0x10c)](_0xfb379f);if(_0x22d644&&_0x22d644!==_0x4a98dc)throw new Error('Global\x20cache\x20key\x20\x22'+_0xfb379f+'\x22\x20already\x20registered\x20by\x20\x22'+_0x22d644+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x4a98dc+'\x22');registry[_0x3f94de(0x107)](_0xfb379f,_0x4a98dc);}export function getGlobalCachePath(_0x38b03c){return join(getGlobalCacheDir(),_0x38b03c);}function ensureGlobalCacheDir(){const _0x54f8d3=getGlobalCacheDir();!existsSync(_0x54f8d3)&&mkdirSync(_0x54f8d3,{'recursive':!![]});}function readCacheJson(_0x613042){const _0x1c187f=getGlobalCachePath(_0x613042);if(!existsSync(_0x1c187f))return undefined;try{const _0x1aa070=readFileSync(_0x1c187f,'utf-8');return JSON['parse'](_0x1aa070);}catch{return undefined;}}function writeCacheJson(_0x5ed192,_0x46bd08){const _0x551cf2=a160_0x21fe;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5ed192),JSON['stringify'](_0x46bd08,null,0x2),_0x551cf2(0x10d));}function a160_0x21fe(_0xa5a7aa,_0x427741){_0xa5a7aa=_0xa5a7aa-0xff;const _0x49159d=a160_0x4915();let _0x21fe85=_0x49159d[_0xa5a7aa];return _0x21fe85;}function readCacheText(_0x12c04b){const _0x14dfd8=a160_0x21fe,_0x1b5037=getGlobalCachePath(_0x12c04b);if(!existsSync(_0x1b5037))return undefined;try{return readFileSync(_0x1b5037,_0x14dfd8(0x10d));}catch{return undefined;}}function writeCacheText(_0x5afbeb,_0x10394d){const _0x576a28=a160_0x21fe;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5afbeb),_0x10394d,_0x576a28(0x10d));}function clearCache(_0x5d1762){const _0x56240f=getGlobalCachePath(_0x5d1762);if(existsSync(_0x56240f))try{unlinkSync(_0x56240f);}catch{}}function cacheExists(_0x5201c1){return existsSync(getGlobalCachePath(_0x5201c1));}export function createGlobalCache(_0x2dee20,_0x1d027f){return registerGlobalCacheKey(_0x2dee20,_0x1d027f),{'read':()=>readCacheJson(_0x2dee20),'write':_0x1c2a24=>writeCacheJson(_0x2dee20,_0x1c2a24),'clear':()=>clearCache(_0x2dee20),'exists':()=>cacheExists(_0x2dee20),'path':()=>getGlobalCachePath(_0x2dee20)};}export function createGlobalTextCache(_0x19810d,_0x29f3e5){return registerGlobalCacheKey(_0x19810d,_0x29f3e5),{'read':()=>readCacheText(_0x19810d)?.['trim']()||undefined,'write':_0x231da1=>writeCacheText(_0x19810d,_0x231da1),'clear':()=>clearCache(_0x19810d),'exists':()=>cacheExists(_0x19810d),'path':()=>getGlobalCachePath(_0x19810d)};}export function createProfileCache(_0x5422f4,_0x462deb){const _0xcbfd72=_0x5db867=>{const _0xb6efd8=a160_0x21fe,_0x5dd628=_0x5db867||_0xb6efd8(0x10e);return _0x5422f4[_0xb6efd8(0x110)](_0xb6efd8(0x101),_0x5dd628);};return{'read':_0xeb8f11=>{const _0x216c04=_0xcbfd72(_0xeb8f11);return registerGlobalCacheKey(_0x216c04,_0x462deb),readCacheJson(_0x216c04);},'write':(_0x450892,_0x46defe)=>{const _0x25f9cc=_0xcbfd72(_0x450892);registerGlobalCacheKey(_0x25f9cc,_0x462deb),writeCacheJson(_0x25f9cc,_0x46defe);},'clear':_0x351bd8=>{const _0x3fa6c0=_0xcbfd72(_0x351bd8);clearCache(_0x3fa6c0);},'exists':_0x58bcfa=>{const _0x29975b=_0xcbfd72(_0x58bcfa);return cacheExists(_0x29975b);},'path':_0x5e6b31=>{const _0x57c3ef=_0xcbfd72(_0x5e6b31);return getGlobalCachePath(_0x57c3ef);}};}export function createOptionalProfileCache(_0x13f656,_0x11ee4a,_0x278e32={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x278e32,_0x4ab248=_0x2ed07a=>{return _0x2ed07a?''+_0x13f656+profileSeparator+_0x2ed07a+suffix:''+_0x13f656+suffix;};return{'read':_0x2a5df3=>{const _0xf3af3a=_0x4ab248(_0x2a5df3);return registerGlobalCacheKey(_0xf3af3a,_0x11ee4a),readCacheJson(_0xf3af3a);},'write':(_0xcb536f,_0x4497a3)=>{const _0x4712ee=_0x4ab248(_0x4497a3);registerGlobalCacheKey(_0x4712ee,_0x11ee4a),writeCacheJson(_0x4712ee,_0xcb536f);},'clear':_0x5ef521=>{const _0x1ab410=_0x4ab248(_0x5ef521);clearCache(_0x1ab410);},'exists':_0x1402da=>{const _0x2016d9=_0x4ab248(_0x1402da);return cacheExists(_0x2016d9);},'path':_0x26b21f=>{const _0x89621e=_0x4ab248(_0x26b21f);return getGlobalCachePath(_0x89621e);}};}export function clearGlobalRegistry(){const _0x5af689=a160_0x21fe;registry[_0x5af689(0x106)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2b017b,_0x51067c){const _0x58d9f5=a161_0x39b2,_0x279703=_0x2b017b();while(!![]){try{const _0x4fe001=parseInt(_0x58d9f5(0xf6))/0x1+-parseInt(_0x58d9f5(0xfe))/0x2+parseInt(_0x58d9f5(0x100))/0x3+parseInt(_0x58d9f5(0xf2))/0x4*(parseInt(_0x58d9f5(0xf5))/0x5)+-parseInt(_0x58d9f5(0xf9))/0x6+parseInt(_0x58d9f5(0xfd))/0x7+-parseInt(_0x58d9f5(0xf4))/0x8;if(_0x4fe001===_0x51067c)break;else _0x279703['push'](_0x279703['shift']());}catch(_0x2649fb){_0x279703['push'](_0x279703['shift']());}}}(a161_0x2c92,0x2113f));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x4669b1,_0x515386){const _0x196585=a161_0x39b2;try{if(_0x515386){const _0x5cb936=await readFile(_0x4669b1,_0x196585(0x102));try{return JSON[_0x196585(0xff)](_0x5cb936);}catch(_0x31eeb5){throw new SDKError(ErrorCode[_0x196585(0xfa)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x4669b1+_0x196585(0xfb)+(_0x31eeb5 instanceof Error?_0x31eeb5['message']:String(_0x31eeb5)));}}else try{return JSON[_0x196585(0xff)](_0x4669b1);}catch(_0x49e98b){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x49e98b instanceof Error?_0x49e98b['message']:String(_0x49e98b)));}}catch(_0x24565e){if(_0x24565e instanceof SDKError)throw _0x24565e;if(_0x24565e instanceof Error&&_0x196585(0xf8)in _0x24565e){const _0x264325=_0x24565e;if(_0x264325[_0x196585(0xf8)]===_0x196585(0xf3))throw new SDKError(ErrorCode[_0x196585(0xf7)],'File\x20not\x20found:\x20'+_0x4669b1);else{if(_0x264325[_0x196585(0xf8)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x196585(0xfc)+_0x4669b1);}}throw new SDKError(ErrorCode['INTERNAL'],_0x196585(0x101)+(_0x24565e instanceof Error?_0x24565e['message']:String(_0x24565e)));}}function a161_0x39b2(_0x24e319,_0x522994){_0x24e319=_0x24e319-0xf2;const _0x2c9254=a161_0x2c92();let _0x39b2e3=_0x2c9254[_0x24e319];return _0x39b2e3;}function a161_0x2c92(){const _0x49ed82=['1025180miyePE','ENOENT','1321928SNuiOd','5NpfPzK','217614WTHJjz','NOT_FOUND','code','1210884AythyM','INVALID_ARGUMENT','\x27:\x20','Permission\x20denied\x20reading\x20file:\x20','1296141noDyco','503508VYjYqT','parse','285672tRBZTm','Failed\x20to\x20load\x20JSON:\x20','utf-8','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.'];a161_0x2c92=function(){return _0x49ed82;};return a161_0x2c92();}export async function loadJSONFromOptions(_0x3b9d79,_0x572886){const _0x44056d=a161_0x39b2;if(_0x3b9d79&&_0x572886)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x44056d(0x103));if(_0x3b9d79)return await loadJSON(_0x3b9d79,![]);if(_0x572886)return await loadJSON(_0x572886,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x3741c0=a162_0x1477;(function(_0x347841,_0xad26e9){const _0x44fa17=a162_0x1477,_0x474305=_0x347841();while(!![]){try{const _0x411ad1=-parseInt(_0x44fa17(0x177))/0x1*(parseInt(_0x44fa17(0x166))/0x2)+-parseInt(_0x44fa17(0x175))/0x3*(parseInt(_0x44fa17(0x172))/0x4)+-parseInt(_0x44fa17(0x167))/0x5*(-parseInt(_0x44fa17(0x16c))/0x6)+-parseInt(_0x44fa17(0x176))/0x7+parseInt(_0x44fa17(0x16a))/0x8+-parseInt(_0x44fa17(0x16d))/0x9+parseInt(_0x44fa17(0x16e))/0xa;if(_0x411ad1===_0xad26e9)break;else _0x474305['push'](_0x474305['shift']());}catch(_0x1b4182){_0x474305['push'](_0x474305['shift']());}}}(a162_0x1d8a,0xd0f33));function a162_0x1477(_0x5b218a,_0x28ddb9){_0x5b218a=_0x5b218a-0x165;const _0x1d8a96=a162_0x1d8a();let _0x147777=_0x1d8a96[_0x5b218a];return _0x147777;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a162_0x3741c0(0x168),registry=new Map();export function registerCacheKey(_0x2c963d,_0x4a0351){const _0x4448be=a162_0x3741c0,_0x4e6d40=registry[_0x4448be(0x169)](_0x2c963d);if(_0x4e6d40&&_0x4e6d40!==_0x4a0351)throw new Error(_0x4448be(0x16f)+_0x2c963d+_0x4448be(0x171)+_0x4e6d40+_0x4448be(0x165)+_0x4a0351+'\x22');registry['set'](_0x2c963d,_0x4a0351);}export function getCacheDir(){return join(process['cwd'](),LOCAL_CACHE_DIR);}export function getCachePath(_0x1a1b89){return join(getCacheDir(),_0x1a1b89);}function ensureCacheDir(){const _0x10baaa=getCacheDir();!existsSync(_0x10baaa)&&mkdirSync(_0x10baaa,{'recursive':!![]});}function readCacheJson(_0x5caa57){const _0x11aed4=a162_0x3741c0,_0x3ecfe9=getCachePath(_0x5caa57);if(!existsSync(_0x3ecfe9))return undefined;try{const _0x1b3994=readFileSync(_0x3ecfe9,_0x11aed4(0x174));return JSON[_0x11aed4(0x16b)](_0x1b3994);}catch{return undefined;}}function writeCacheJson(_0x963bcd,_0x2b4750){const _0x5af826=a162_0x3741c0;ensureCacheDir(),writeFileSync(getCachePath(_0x963bcd),JSON[_0x5af826(0x173)](_0x2b4750,null,0x2),_0x5af826(0x174));}function readCacheText(_0x3205ab){const _0x522341=a162_0x3741c0,_0x36d09e=getCachePath(_0x3205ab);if(!existsSync(_0x36d09e))return undefined;try{return readFileSync(_0x36d09e,_0x522341(0x174));}catch{return undefined;}}function writeCacheText(_0x9f457e,_0x34b083){const _0x2316ae=a162_0x3741c0;ensureCacheDir(),writeFileSync(getCachePath(_0x9f457e),_0x34b083,_0x2316ae(0x174));}function clearCache(_0x1af0a7){const _0x5c3956=getCachePath(_0x1af0a7);if(existsSync(_0x5c3956))try{unlinkSync(_0x5c3956);}catch{}}function a162_0x1d8a(){const _0x3883c0=['1240226bETMjS','\x22,\x20cannot\x20register\x20for\x20\x22','2iiJZrJ','206730pPaeyU','.cache/tdx','get','298872McUfax','parse','18PMGUsN','8547768JurkYL','39303080nqBsYV','Cache\x20key\x20\x22','clear','\x22\x20already\x20registered\x20by\x20\x22','32GpCgag','stringify','utf-8','1389odEMDb','7295148TXqzYD'];a162_0x1d8a=function(){return _0x3883c0;};return a162_0x1d8a();}function cacheExists(_0x4a42e4){return existsSync(getCachePath(_0x4a42e4));}export function createCache(_0x294ace,_0x46684d){return registerCacheKey(_0x294ace,_0x46684d),{'read':()=>readCacheJson(_0x294ace),'write':_0x4fa256=>writeCacheJson(_0x294ace,_0x4fa256),'clear':()=>clearCache(_0x294ace),'exists':()=>cacheExists(_0x294ace),'path':()=>getCachePath(_0x294ace)};}export function createTextCache(_0xa528b9,_0x5221d6){return registerCacheKey(_0xa528b9,_0x5221d6),{'read':()=>readCacheText(_0xa528b9)?.['trim']()||undefined,'write':_0x14453d=>writeCacheText(_0xa528b9,_0x14453d),'clear':()=>clearCache(_0xa528b9),'exists':()=>cacheExists(_0xa528b9),'path':()=>getCachePath(_0xa528b9)};}export function clearRegistry(){const _0x16bfd7=a162_0x3741c0;registry[_0x16bfd7(0x170)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x524871=a163_0x561b;function a163_0x561b(_0x5b6b86,_0x2c2e47){_0x5b6b86=_0x5b6b86-0xf7;const _0x398b39=a163_0x398b();let _0x561baa=_0x398b39[_0x5b6b86];return _0x561baa;}function a163_0x398b(){const _0x28532a=['2HDAUkC','216ROxVaZ','chalk','red','yellow','INFO','message','5710mxovGL','26YmZSBF','57370kbkCPy','4594476QpRRVy','blue','72ujkpnb','timestamp','12yCOrkY','component','981IBjmLr','colorLevel','WARN','1245752GMNvuy','15395622efdQpf','606879RAYPJe','level','969295PUADEO','gray','colors','TRACE'];a163_0x398b=function(){return _0x28532a;};return a163_0x398b();}(function(_0x2bc47f,_0x3ce0d1){const _0x2273f4=a163_0x561b,_0x32fdca=_0x2bc47f();while(!![]){try{const _0x550a61=parseInt(_0x2273f4(0x110))/0x1*(-parseInt(_0x2273f4(0xf9))/0x2)+-parseInt(_0x2273f4(0x107))/0x3*(-parseInt(_0x2273f4(0x10c))/0x4)+parseInt(_0x2273f4(0x100))/0x5*(-parseInt(_0x2273f4(0xfa))/0x6)+parseInt(_0x2273f4(0x10e))/0x7*(-parseInt(_0x2273f4(0x105))/0x8)+parseInt(_0x2273f4(0x109))/0x9*(parseInt(_0x2273f4(0x102))/0xa)+parseInt(_0x2273f4(0x10d))/0xb+-parseInt(_0x2273f4(0x103))/0xc*(parseInt(_0x2273f4(0x101))/0xd);if(_0x550a61===_0x3ce0d1)break;else _0x32fdca['push'](_0x32fdca['shift']());}catch(_0x1eb56c){_0x32fdca['push'](_0x32fdca['shift']());}}}(a163_0x398b,0xae615));import a163_0x2f1135,{Chalk}from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';export class DefaultLogFormatter{[a163_0x524871(0xf7)];['chalk'];constructor(_0x588277={}){const _0x3e72e4=a163_0x524871;this['colors']=_0x588277[_0x3e72e4(0xf7)]??![],this[_0x3e72e4(0xfb)]=_0x588277[_0x3e72e4(0xf7)]?new Chalk({'level':0x3}):a163_0x2f1135;}['format'](_0x3898d2){const _0x1ee606=a163_0x524871,_0x57c4db=formatTimestamp(_0x3898d2[_0x1ee606(0x106)]),_0x5b6ba8=logLevelToString(_0x3898d2['level']);if(!this[_0x1ee606(0xf7)])return _0x57c4db+'\x20['+_0x5b6ba8+']\x20['+_0x3898d2[_0x1ee606(0x108)]+']\x20'+_0x3898d2['message'];const _0x3a3e33=this[_0x1ee606(0xfb)]['dim'](_0x57c4db),_0xd2b2f=this[_0x1ee606(0x10a)](_0x5b6ba8,_0x3898d2[_0x1ee606(0x10f)]),_0x344ee8=this[_0x1ee606(0xfb)][_0x1ee606(0x104)]('['+_0x3898d2[_0x1ee606(0x108)]+']');return _0x3a3e33+'\x20'+_0xd2b2f+'\x20'+_0x344ee8+'\x20'+_0x3898d2[_0x1ee606(0xff)];}[a163_0x524871(0x10a)](_0x2e7104,_0x289968){const _0x4b8aa5=a163_0x524871;switch(_0x289968){case LogLevel[_0x4b8aa5(0xf8)]:return this[_0x4b8aa5(0xfb)][_0x4b8aa5(0x111)]('['+_0x2e7104+']');case LogLevel['DEBUG']:return this[_0x4b8aa5(0xfb)]['green']('['+_0x2e7104+']');case LogLevel[_0x4b8aa5(0xfe)]:return this[_0x4b8aa5(0xfb)]['cyan']('['+_0x2e7104+']');case LogLevel[_0x4b8aa5(0x10b)]:return this[_0x4b8aa5(0xfb)][_0x4b8aa5(0xfd)]('['+_0x2e7104+']');case LogLevel['ERROR']:return this['chalk'][_0x4b8aa5(0xfc)]('['+_0x2e7104+']');default:return'['+_0x2e7104+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a164_0x33a9(_0x2426c6,_0x30c4f7){_0x2426c6=_0x2426c6-0x14f;var _0x3bf5d4=a164_0x3bf5();var _0x33a9e3=_0x3bf5d4[_0x2426c6];return _0x33a9e3;}(function(_0x12a897,_0x3052ad){var _0x5ed5c5=a164_0x33a9,_0x3739a3=_0x12a897();while(!![]){try{var _0x50fd31=-parseInt(_0x5ed5c5(0x153))/0x1*(parseInt(_0x5ed5c5(0x155))/0x2)+parseInt(_0x5ed5c5(0x157))/0x3+-parseInt(_0x5ed5c5(0x154))/0x4+-parseInt(_0x5ed5c5(0x156))/0x5*(-parseInt(_0x5ed5c5(0x158))/0x6)+parseInt(_0x5ed5c5(0x151))/0x7*(-parseInt(_0x5ed5c5(0x159))/0x8)+parseInt(_0x5ed5c5(0x14f))/0x9*(parseInt(_0x5ed5c5(0x150))/0xa)+parseInt(_0x5ed5c5(0x152))/0xb*(parseInt(_0x5ed5c5(0x15a))/0xc);if(_0x50fd31===_0x3052ad)break;else _0x3739a3['push'](_0x3739a3['shift']());}catch(_0x40af1c){_0x3739a3['push'](_0x3739a3['shift']());}}}(a164_0x3bf5,0xe7812));function a164_0x3bf5(){var _0x4e14bd=['1UQgULi','7143544bqtGrZ','1611762IaKBks','5BkrFOT','1017870eWevaQ','8941146RTfZFH','8LTxMFD','2004360UIIBwF','3271203WROvTW','10IrWxoB','4601093yMnIcS','132mzcJbM'];a164_0x3bf5=function(){return _0x4e14bd;};return a164_0x3bf5();}export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x103bfb=a165_0x57ca;(function(_0x41fc3b,_0x2bec86){const _0xdb7c82=a165_0x57ca,_0xf3baed=_0x41fc3b();while(!![]){try{const _0x4387be=parseInt(_0xdb7c82(0x16d))/0x1*(-parseInt(_0xdb7c82(0x169))/0x2)+parseInt(_0xdb7c82(0x175))/0x3+-parseInt(_0xdb7c82(0x176))/0x4*(-parseInt(_0xdb7c82(0x165))/0x5)+-parseInt(_0xdb7c82(0x171))/0x6+parseInt(_0xdb7c82(0x170))/0x7*(-parseInt(_0xdb7c82(0x178))/0x8)+-parseInt(_0xdb7c82(0x16a))/0x9*(parseInt(_0xdb7c82(0x173))/0xa)+parseInt(_0xdb7c82(0x174))/0xb;if(_0x4387be===_0x2bec86)break;else _0xf3baed['push'](_0xf3baed['shift']());}catch(_0x65253f){_0xf3baed['push'](_0xf3baed['shift']());}}}(a165_0x4b37,0x6011b));import{LogLevel as a165_0x36159c}from'../types.js';function a165_0x57ca(_0x130c82,_0x5ba4c7){_0x130c82=_0x130c82-0x165;const _0x4b3727=a165_0x4b37();let _0x57ca90=_0x4b3727[_0x130c82];return _0x57ca90;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a165_0x103bfb(0x16c)];[a165_0x103bfb(0x166)];[a165_0x103bfb(0x168)];constructor(_0x49a0ec={}){const _0x43bb47=a165_0x103bfb;this['minLevel']=_0x49a0ec[_0x43bb47(0x16c)]??a165_0x36159c[_0x43bb47(0x172)],this[_0x43bb47(0x166)]=_0x49a0ec['useStderr']??!![],this[_0x43bb47(0x168)]=new DefaultLogFormatter({'colors':_0x49a0ec[_0x43bb47(0x16e)]??!![]});}[a165_0x103bfb(0x167)](_0x179754){const _0x557ab4=a165_0x103bfb;if(_0x179754['level']<this[_0x557ab4(0x16c)])return;const _0x261f3d=this[_0x557ab4(0x168)][_0x557ab4(0x179)](_0x179754);this[_0x557ab4(0x166)]&&_0x179754[_0x557ab4(0x16b)]>=a165_0x36159c[_0x557ab4(0x172)]?console[_0x557ab4(0x177)](_0x261f3d):console[_0x557ab4(0x16f)](_0x261f3d);}}function a165_0x4b37(){const _0x3c019b=['326588APJOAE','242856ZxZNtJ','level','minLevel','3JxoSZI','colors','log','17262kVppFv','3888426lKAAYj','WARN','190BwXLVx','17395994hJWYpb','2089218LNSAkJ','348knSWAa','error','1400zYsEse','format','11370JJWRmN','useStderr','handle','formatter'];a165_0x4b37=function(){return _0x3c019b;};return a165_0x4b37();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a166_0x27c9c5=a166_0x2a89;function a166_0x2a89(_0x4e9002,_0x1f963e){_0x4e9002=_0x4e9002-0x160;const _0xe8a275=a166_0xe8a2();let _0x2a894a=_0xe8a275[_0x4e9002];return _0x2a894a;}(function(_0xe72d5a,_0x3bc45e){const _0x49312b=a166_0x2a89,_0x17d1f5=_0xe72d5a();while(!![]){try{const _0x179fa9=parseInt(_0x49312b(0x168))/0x1+-parseInt(_0x49312b(0x175))/0x2+-parseInt(_0x49312b(0x164))/0x3*(-parseInt(_0x49312b(0x184))/0x4)+-parseInt(_0x49312b(0x172))/0x5*(parseInt(_0x49312b(0x16f))/0x6)+parseInt(_0x49312b(0x17a))/0x7*(-parseInt(_0x49312b(0x16c))/0x8)+-parseInt(_0x49312b(0x16a))/0x9*(-parseInt(_0x49312b(0x183))/0xa)+-parseInt(_0x49312b(0x17e))/0xb*(parseInt(_0x49312b(0x180))/0xc);if(_0x179fa9===_0x3bc45e)break;else _0x17d1f5['push'](_0x17d1f5['shift']());}catch(_0x224828){_0x17d1f5['push'](_0x17d1f5['shift']());}}}(a166_0xe8a2,0x36991));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a166_0xe8a2(){const _0x43c515=['Warning:\x20Failed\x20to\x20compress\x20','737ADYFNZ','getLogPath','13512KwSDYu','test','\x5c$&','449520NXmpBz','1772VQEFgj','logStream','close','message','includes','error','507GHJhYi','handle','logDir','rotate','406331ADfWJm','mtime','54DSmzii','rotateOldLogs','72ngQDUz','toISOString','logs','51588ikrgDx','Warning:\x20Error\x20writing\x20to\x20','.gz','10rjQjof','logPath','filePath','555880hxmVfN','logBaseName','init','tdx.log','logFileName','121877jIMaCW','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'];a166_0xe8a2=function(){return _0x43c515;};return a166_0xe8a2();}export class FileHandler{[a166_0x27c9c5(0x173)];['logDir'];['logFileName'];['logBaseName'];['logStream']=null;[a166_0x27c9c5(0x167)];constructor(_0x4a3f85={}){const _0x301e7f=a166_0x27c9c5;this[_0x301e7f(0x173)]=_0x4a3f85[_0x301e7f(0x174)]??join(getGlobalCacheDir(),_0x301e7f(0x16e),_0x301e7f(0x178)),this[_0x301e7f(0x166)]=dirname(this[_0x301e7f(0x173)]),this[_0x301e7f(0x179)]=basename(this[_0x301e7f(0x173)]),this[_0x301e7f(0x176)]=this[_0x301e7f(0x179)]['replace'](/\.log$/,''),this[_0x301e7f(0x167)]=_0x4a3f85[_0x301e7f(0x167)]??!![];}async[a166_0x27c9c5(0x177)](){const _0x41ffd5=a166_0x27c9c5;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x41ffd5(0x167)]&&await this[_0x41ffd5(0x16b)](),this[_0x41ffd5(0x185)]=createWriteStream(this[_0x41ffd5(0x173)],{'flags':'a'}),this['logStream']['on']('error',_0x286e75=>{const _0x34e449=_0x41ffd5;console['error'](_0x34e449(0x170)+this['logFileName']+':',_0x286e75[_0x34e449(0x161)]);});}catch(_0x478a1f){console[_0x41ffd5(0x163)](_0x41ffd5(0x17b),_0x478a1f);}}[a166_0x27c9c5(0x165)](_0x5410f1){const _0x1ab267=a166_0x27c9c5;if(!this['logStream'])return;const _0x23c7bb=Logger['format'](_0x5410f1);this[_0x1ab267(0x185)]['write'](_0x23c7bb+'\x0a');}async[a166_0x27c9c5(0x160)](){return new Promise(_0x9fb619=>{const _0x352a42=a166_0x2a89;this[_0x352a42(0x185)]?this[_0x352a42(0x185)]['end'](()=>{this['logStream']=null,_0x9fb619();}):_0x9fb619();});}[a166_0x27c9c5(0x17f)](){return this['logPath'];}async['rotateOldLogs'](){const _0x327e17=a166_0x27c9c5;try{const _0x44ce25=await readdir(this[_0x327e17(0x166)]),_0x2805b7=new Date()['toISOString']()['split']('T')[0x0];if(_0x44ce25[_0x327e17(0x162)](this[_0x327e17(0x179)])){const _0x3d106f=join(this[_0x327e17(0x166)],this['logFileName']),_0x27aa46=await stat(_0x3d106f),_0x417db7=new Date(_0x27aa46[_0x327e17(0x169)])[_0x327e17(0x16d)]()['split']('T')[0x0];if(_0x417db7<_0x2805b7){const _0x3f3e60=join(this[_0x327e17(0x166)],this['logBaseName']+'-'+_0x417db7+'.log');await rename(_0x3d106f,_0x3f3e60);}}const _0x196871=await readdir(this['logDir']),_0x22b24e=this[_0x327e17(0x176)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x327e17(0x182)),_0x1e9eff=new RegExp('^'+_0x22b24e+_0x327e17(0x17c)),_0x3cbed3=_0x196871['filter'](_0x47f8a7=>_0x1e9eff[_0x327e17(0x181)](_0x47f8a7));for(const _0x4a9a03 of _0x3cbed3){const _0x21d83e=join(this[_0x327e17(0x166)],_0x4a9a03),_0x5344f1=join(this['logDir'],_0x4a9a03+_0x327e17(0x171));try{await pipeline(createReadStream(_0x21d83e),createGzip(),createWriteStream(_0x5344f1)),await unlink(_0x21d83e);}catch(_0x40e20f){console[_0x327e17(0x163)](_0x327e17(0x17d)+_0x4a9a03+':',_0x40e20f);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x349b2d,_0x2d3112){var _0x1c4df1=a167_0x3883,_0x5508a7=_0x349b2d();while(!![]){try{var _0x5a0123=parseInt(_0x1c4df1(0x183))/0x1*(parseInt(_0x1c4df1(0x184))/0x2)+-parseInt(_0x1c4df1(0x186))/0x3+-parseInt(_0x1c4df1(0x187))/0x4*(-parseInt(_0x1c4df1(0x180))/0x5)+parseInt(_0x1c4df1(0x185))/0x6*(parseInt(_0x1c4df1(0x17f))/0x7)+-parseInt(_0x1c4df1(0x182))/0x8+parseInt(_0x1c4df1(0x189))/0x9*(-parseInt(_0x1c4df1(0x181))/0xa)+-parseInt(_0x1c4df1(0x188))/0xb;if(_0x5a0123===_0x2d3112)break;else _0x5508a7['push'](_0x5508a7['shift']());}catch(_0xe688){_0x5508a7['push'](_0x5508a7['shift']());}}}(a167_0x2c06,0x7d586));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a167_0x3883(_0x4b2868,_0x7804db){_0x4b2868=_0x4b2868-0x17f;var _0x2c068b=a167_0x2c06();var _0x3883bc=_0x2c068b[_0x4b2868];return _0x3883bc;}function a167_0x2c06(){var _0x1f74d2=['10YFSnsj','840832OHGEzk','10APLlkm','125366xjaREm','2962122ZXXayr','2336160tKqhGU','4548CBcxTV','1411872jwsyCd','3803967gPNsFZ','7fBkVAs','3640YVrhPs'];a167_0x2c06=function(){return _0x1f74d2;};return a167_0x2c06();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a168_0x517e(_0x587a15,_0x467a2c){_0x587a15=_0x587a15-0x8c;var _0x58ed5c=a168_0x58ed();var _0x517e53=_0x58ed5c[_0x587a15];return _0x517e53;}(function(_0x491de9,_0x1a504e){var _0x1c2520=a168_0x517e,_0x11ba40=_0x491de9();while(!![]){try{var _0x44b3f4=parseInt(_0x1c2520(0x8c))/0x1*(parseInt(_0x1c2520(0x94))/0x2)+-parseInt(_0x1c2520(0x8f))/0x3*(parseInt(_0x1c2520(0x8d))/0x4)+parseInt(_0x1c2520(0x8e))/0x5*(parseInt(_0x1c2520(0x90))/0x6)+parseInt(_0x1c2520(0x95))/0x7+-parseInt(_0x1c2520(0x96))/0x8*(parseInt(_0x1c2520(0x93))/0x9)+-parseInt(_0x1c2520(0x91))/0xa+parseInt(_0x1c2520(0x92))/0xb;if(_0x44b3f4===_0x1a504e)break;else _0x11ba40['push'](_0x11ba40['shift']());}catch(_0x231080){_0x11ba40['push'](_0x11ba40['shift']());}}}(a168_0x58ed,0xea01a));function a168_0x58ed(){var _0x57d76a=['18783QSAgNk','1278muDZEJ','13656120XXWmNZ','2093476lrzgSr','90pcJItl','791004JnVmdV','10396757IkTrji','456400AljdbT','4MXLimZ','1208OFoBdr','35865sHwdSd'];a168_0x58ed=function(){return _0x57d76a;};return a168_0x58ed();}export class NullHandler{['handle'](_0x3ab514){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46c223,_0x51cdac){var _0xf6e188=a169_0x13ed,_0x1aa4cc=_0x46c223();while(!![]){try{var _0x54f551=parseInt(_0xf6e188(0x14f))/0x1*(parseInt(_0xf6e188(0x157))/0x2)+-parseInt(_0xf6e188(0x150))/0x3*(parseInt(_0xf6e188(0x158))/0x4)+parseInt(_0xf6e188(0x154))/0x5*(-parseInt(_0xf6e188(0x159))/0x6)+parseInt(_0xf6e188(0x156))/0x7*(parseInt(_0xf6e188(0x152))/0x8)+-parseInt(_0xf6e188(0x14d))/0x9*(parseInt(_0xf6e188(0x153))/0xa)+-parseInt(_0xf6e188(0x14e))/0xb*(parseInt(_0xf6e188(0x155))/0xc)+-parseInt(_0xf6e188(0x151))/0xd*(-parseInt(_0xf6e188(0x14c))/0xe);if(_0x54f551===_0x51cdac)break;else _0x1aa4cc['push'](_0x1aa4cc['shift']());}catch(_0x3a2493){_0x1aa4cc['push'](_0x1aa4cc['shift']());}}}(a169_0x2025,0x5985c));function a169_0x2025(){var _0x5614ae=['3583547PhVSAR','89BBkwPV','110937CkHrJo','26cufBRu','248Eiurkk','5783460FGwuwR','447145hRNGqG','12iPJbNS','160818rHQBhn','15326ZYdviz','60WMtqrp','42mBNexU','7401058VDzokN','9XnjOwk'];a169_0x2025=function(){return _0x5614ae;};return a169_0x2025();}function a169_0x13ed(_0xde8a83,_0x4d9946){_0xde8a83=_0xde8a83-0x14c;var _0x202538=a169_0x2025();var _0x13ed8b=_0x202538[_0xde8a83];return _0x13ed8b;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a170_0x34e6(_0x103424,_0xb9b9be){_0x103424=_0x103424-0x9a;const _0x176578=a170_0x1765();let _0x34e614=_0x176578[_0x103424];return _0x34e614;}const a170_0x1e573b=a170_0x34e6;(function(_0x3a6af5,_0x3dc945){const _0x2c8d10=a170_0x34e6,_0x1a44f3=_0x3a6af5();while(!![]){try{const _0x8e83fb=parseInt(_0x2c8d10(0xb9))/0x1+-parseInt(_0x2c8d10(0xc0))/0x2+-parseInt(_0x2c8d10(0xb1))/0x3*(-parseInt(_0x2c8d10(0xad))/0x4)+parseInt(_0x2c8d10(0xc9))/0x5*(-parseInt(_0x2c8d10(0xbc))/0x6)+-parseInt(_0x2c8d10(0xa5))/0x7+parseInt(_0x2c8d10(0xc1))/0x8*(-parseInt(_0x2c8d10(0xb8))/0x9)+parseInt(_0x2c8d10(0xb5))/0xa;if(_0x8e83fb===_0x3dc945)break;else _0x1a44f3['push'](_0x1a44f3['shift']());}catch(_0x50bed6){_0x1a44f3['push'](_0x1a44f3['shift']());}}}(a170_0x1765,0x99380));import{LogLevel as a170_0x175583,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a170_0x175583['INFO'],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a170_0x1765(){const _0x1eaf76=['getFormatter','clear','timestamp','618355weyhdt','level','stringify','loggers','initialized','format','map','pendingRecords','ERROR','clearHandlers','name','defaultLevel','length','function','info','TRACE','toISOString','cause','WARN','addHandler','set','DEBUG','3507959xmfvxM','handlers','component','debug','getEffectiveLevel','split','init','levelOverrides','9580AgPFyq','has',']\x20[','close','669iCQDCF','handle','stack','get','26482600AliyxJ','dispatch','slice','94788iFaUdX','904368NPtfQt','shutdown','string','54gzclTu','log','shouldLog','formatter','2468194hTVWkm','464zQbooJ','entries','join','INFO','message'];a170_0x1765=function(){return _0x1eaf76;};return a170_0x1765();}function safeStringify(_0x2bafb2){const _0x587280=a170_0x34e6;if(typeof _0x2bafb2===_0x587280(0xbb))return _0x2bafb2;if(_0x2bafb2 instanceof Error)return _0x2bafb2['stack']||_0x2bafb2[_0x587280(0xd3)]+':\x20'+_0x2bafb2[_0x587280(0xc5)];try{return JSON[_0x587280(0xcb)](_0x2bafb2,(_0x5ab3ad,_0x3ee621)=>{const _0x3d1421=_0x587280;if(_0x3ee621 instanceof Error)return{'name':_0x3ee621[_0x3d1421(0xd3)],'message':_0x3ee621[_0x3d1421(0xc5)],'stack':_0x3ee621[_0x3d1421(0xb3)],'cause':_0x3ee621[_0x3d1421(0xa0)]};return _0x3ee621;});}catch{return String(_0x2bafb2);}}export class Logger{[a170_0x1e573b(0xa7)];constructor(_0x4a6408){const _0x21155d=a170_0x1e573b;this[_0x21155d(0xa7)]=_0x4a6408;}static['of'](_0x477f82){const _0xae01dd=a170_0x1e573b,_0x5111a8=typeof _0x477f82==='string'?_0x477f82:_0x477f82[_0xae01dd(0xd3)];let _0x199653=state[_0xae01dd(0xcc)][_0xae01dd(0xb4)](_0x5111a8);return!_0x199653&&(_0x199653=new Logger(_0x5111a8),state[_0xae01dd(0xcc)]['set'](_0x5111a8,_0x199653)),_0x199653;}static async[a170_0x1e573b(0xab)](_0x46d4b2={}){const _0x531a5d=a170_0x1e573b;state[_0x531a5d(0x9a)]=_0x46d4b2[_0x531a5d(0x9a)]??a170_0x175583['INFO'],state['handlers']=_0x46d4b2[_0x531a5d(0xa6)]??[],state['formatter']=_0x46d4b2[_0x531a5d(0xbf)]??null,state[_0x531a5d(0xac)][_0x531a5d(0xc7)]();if(_0x46d4b2[_0x531a5d(0xac)])for(const [_0x580cb4,_0x89a128]of Object[_0x531a5d(0xc2)](_0x46d4b2[_0x531a5d(0xac)])){state[_0x531a5d(0xac)][_0x531a5d(0xa3)](_0x580cb4,_0x89a128);}for(const _0x328c47 of state[_0x531a5d(0xa6)]){_0x328c47[_0x531a5d(0xab)]&&await _0x328c47[_0x531a5d(0xab)]();}state['initialized']=!![];for(const _0x5618e4 of state[_0x531a5d(0xd0)]){Logger['dispatch'](_0x5618e4);}state[_0x531a5d(0xd0)]=[];}static['setLogLevel'](_0x39d27c,_0x3f770f){const _0x4c98c5=a170_0x1e573b;state['levelOverrides'][_0x4c98c5(0xa3)](_0x39d27c,_0x3f770f);}static['setDefaultLevel'](_0x4f148b){const _0x27b7fb=a170_0x1e573b;state[_0x27b7fb(0x9a)]=_0x4f148b;}static[a170_0x1e573b(0xa2)](_0x3b4584){const _0x26990c=a170_0x1e573b;state[_0x26990c(0xa6)]['push'](_0x3b4584),state[_0x26990c(0xcd)]&&_0x3b4584[_0x26990c(0xab)]&&_0x3b4584['init']();}static[a170_0x1e573b(0xd2)](){state['handlers']=[];}static async[a170_0x1e573b(0xba)](){const _0x4d3406=a170_0x1e573b;for(const _0x264398 of state[_0x4d3406(0xa6)]){_0x264398['close']&&await _0x264398[_0x4d3406(0xb0)]();}state[_0x4d3406(0xa6)]=[],state[_0x4d3406(0xcd)]=![],state[_0x4d3406(0xcc)][_0x4d3406(0xc7)](),state['pendingRecords']=[];}static['reset'](){const _0x2022ec=a170_0x1e573b;state['initialized']=![],state['defaultLevel']=a170_0x175583[_0x2022ec(0xc4)],state['levelOverrides'][_0x2022ec(0xc7)](),state[_0x2022ec(0xa6)]=[],state[_0x2022ec(0xbf)]=null,state[_0x2022ec(0xcc)][_0x2022ec(0xc7)](),state['pendingRecords']=[];}static['isInitialized'](){const _0x1d7100=a170_0x1e573b;return state[_0x1d7100(0xcd)];}static['getEffectiveLevel'](_0x528c68){const _0x1d34ca=a170_0x1e573b;if(state[_0x1d34ca(0xac)][_0x1d34ca(0xae)](_0x528c68))return state[_0x1d34ca(0xac)][_0x1d34ca(0xb4)](_0x528c68);const _0x3eab6a=_0x528c68[_0x1d34ca(0xaa)]('.');for(let _0x20c8a5=_0x3eab6a[_0x1d34ca(0x9b)]-0x1;_0x20c8a5>0x0;_0x20c8a5--){const _0x1b1f3a=_0x3eab6a[_0x1d34ca(0xb7)](0x0,_0x20c8a5)[_0x1d34ca(0xc3)]('.');if(state[_0x1d34ca(0xac)][_0x1d34ca(0xae)](_0x1b1f3a))return state['levelOverrides']['get'](_0x1b1f3a);}return state[_0x1d34ca(0x9a)];}[a170_0x1e573b(0xbe)](_0x123df1){const _0x11907a=a170_0x1e573b,_0x5e99a3=Logger[_0x11907a(0xa9)](this['component']);return _0x123df1>=_0x5e99a3;}static[a170_0x1e573b(0xb6)](_0x864625){const _0x5712a7=a170_0x1e573b;for(const _0x1a7700 of state[_0x5712a7(0xa6)]){_0x1a7700[_0x5712a7(0xb2)](_0x864625);}}[a170_0x1e573b(0xbd)](_0x4b9a84,_0x15ff8a){const _0x1cd6c3=a170_0x1e573b;if(!this[_0x1cd6c3(0xbe)](_0x4b9a84))return;const _0xaadcd7=_0x15ff8a['map'](_0x307fe6=>typeof _0x307fe6===_0x1cd6c3(0x9c)?_0x307fe6():_0x307fe6),_0x3018e2=_0xaadcd7[_0x1cd6c3(0xcf)](safeStringify)[_0x1cd6c3(0xc3)]('\x20'),_0x90476a={'timestamp':new Date(),'level':_0x4b9a84,'component':this[_0x1cd6c3(0xa7)],'message':_0x3018e2};if(!state[_0x1cd6c3(0xcd)]){state[_0x1cd6c3(0xd0)]['length']<MAX_PENDING_RECORDS&&state[_0x1cd6c3(0xd0)]['push'](_0x90476a);return;}Logger[_0x1cd6c3(0xb6)](_0x90476a);}['trace'](..._0x42220a){const _0x4ff06e=a170_0x1e573b;this[_0x4ff06e(0xbd)](a170_0x175583[_0x4ff06e(0x9e)],_0x42220a);}[a170_0x1e573b(0xa8)](..._0x237d9b){const _0x5c7847=a170_0x1e573b;this[_0x5c7847(0xbd)](a170_0x175583[_0x5c7847(0xa4)],_0x237d9b);}[a170_0x1e573b(0x9d)](..._0x1987ab){const _0x2aa3e2=a170_0x1e573b;this[_0x2aa3e2(0xbd)](a170_0x175583[_0x2aa3e2(0xc4)],_0x1987ab);}['warn'](..._0x232e74){const _0x45d0eb=a170_0x1e573b;this[_0x45d0eb(0xbd)](a170_0x175583[_0x45d0eb(0xa1)],_0x232e74);}['error'](..._0x2a9f1d){const _0x3e6229=a170_0x1e573b;this[_0x3e6229(0xbd)](a170_0x175583[_0x3e6229(0xd1)],_0x2a9f1d);}static[a170_0x1e573b(0xc6)](){const _0x53c14a=a170_0x1e573b;return state[_0x53c14a(0xbf)];}static[a170_0x1e573b(0xce)](_0x3fa1f1){const _0x229ba3=a170_0x1e573b;if(state[_0x229ba3(0xbf)])return state[_0x229ba3(0xbf)][_0x229ba3(0xce)](_0x3fa1f1);return _0x3fa1f1[_0x229ba3(0xc8)][_0x229ba3(0x9f)]()+'\x20['+logLevelToString(_0x3fa1f1[_0x229ba3(0xca)])+_0x229ba3(0xaf)+_0x3fa1f1[_0x229ba3(0xa7)]+']\x20'+_0x3fa1f1[_0x229ba3(0xc5)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b7e3f,_0x285ddc){const _0x23ab31=a171_0x458c,_0x185cda=_0x5b7e3f();while(!![]){try{const _0x360a91=-parseInt(_0x23ab31(0xca))/0x1*(parseInt(_0x23ab31(0xda))/0x2)+-parseInt(_0x23ab31(0xd0))/0x3+parseInt(_0x23ab31(0xde))/0x4+parseInt(_0x23ab31(0xd5))/0x5+parseInt(_0x23ab31(0xe4))/0x6+-parseInt(_0x23ab31(0xd9))/0x7*(parseInt(_0x23ab31(0xcf))/0x8)+-parseInt(_0x23ab31(0xe1))/0x9*(-parseInt(_0x23ab31(0xd2))/0xa);if(_0x360a91===_0x285ddc)break;else _0x185cda['push'](_0x185cda['shift']());}catch(_0x1402bc){_0x185cda['push'](_0x185cda['shift']());}}}(a171_0x337d,0xe8028));export var LogLevel;(function(_0x4fcfc3){const _0x3ae821=a171_0x458c;_0x4fcfc3[_0x4fcfc3['TRACE']=-0x2]=_0x3ae821(0xcd),_0x4fcfc3[_0x4fcfc3[_0x3ae821(0xd7)]=-0x1]=_0x3ae821(0xd7),_0x4fcfc3[_0x4fcfc3[_0x3ae821(0xe3)]=0x0]=_0x3ae821(0xe3),_0x4fcfc3[_0x4fcfc3[_0x3ae821(0xce)]=0x1]=_0x3ae821(0xce),_0x4fcfc3[_0x4fcfc3[_0x3ae821(0xd8)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));function a171_0x337d(){const _0x31f157=['1652vVAlwq','warn','getDate','WARNING','1074904NInlDL','padStart','abs','63loEXCq','toUpperCase','INFO','3247182RUQcpS','getFullYear','debug','getMonth','593VLZZRv','floor','getMilliseconds','TRACE','WARN','715168yEhdTH','5002746aaXBCt','info','4028130WFtzLe','trace','error','2307270sTjHhq','toString','DEBUG','ERROR','77HnPtLK'];a171_0x337d=function(){return _0x31f157;};return a171_0x337d();}function a171_0x458c(_0x195733,_0x11a53d){_0x195733=_0x195733-0xc9;const _0x337d3f=a171_0x337d();let _0x458cc4=_0x337d3f[_0x195733];return _0x458cc4;}export function parseLogLevel(_0x45810c){const _0x303a4c=a171_0x458c;switch(_0x45810c[_0x303a4c(0xe2)]()){case _0x303a4c(0xcd):return LogLevel[_0x303a4c(0xcd)];case _0x303a4c(0xd7):return LogLevel['DEBUG'];case _0x303a4c(0xe3):return LogLevel['INFO'];case _0x303a4c(0xce):case _0x303a4c(0xdd):return LogLevel[_0x303a4c(0xce)];case _0x303a4c(0xd8):return LogLevel[_0x303a4c(0xd8)];default:return LogLevel[_0x303a4c(0xe3)];}}export function logLevelToString(_0x5e7279){const _0x48d5fb=a171_0x458c;switch(_0x5e7279){case LogLevel[_0x48d5fb(0xcd)]:return _0x48d5fb(0xd3);case LogLevel[_0x48d5fb(0xd7)]:return _0x48d5fb(0xe6);case LogLevel[_0x48d5fb(0xe3)]:return _0x48d5fb(0xd1);case LogLevel['WARN']:return _0x48d5fb(0xdb);case LogLevel[_0x48d5fb(0xd8)]:return _0x48d5fb(0xd4);default:return'info';}}export function formatTimestamp(_0x41d28f){const _0x160aec=a171_0x458c,_0x48ae37=_0x41d28f[_0x160aec(0xe5)](),_0x503610=(_0x41d28f[_0x160aec(0xc9)]()+0x1)[_0x160aec(0xd6)]()[_0x160aec(0xdf)](0x2,'0'),_0x2bf048=_0x41d28f[_0x160aec(0xdc)]()[_0x160aec(0xd6)]()['padStart'](0x2,'0'),_0xf1db60=_0x41d28f['getHours']()[_0x160aec(0xd6)]()[_0x160aec(0xdf)](0x2,'0'),_0x54fbba=_0x41d28f['getMinutes']()['toString']()[_0x160aec(0xdf)](0x2,'0'),_0x3b32e6=_0x41d28f['getSeconds']()['toString']()[_0x160aec(0xdf)](0x2,'0'),_0x2a4dad=_0x41d28f[_0x160aec(0xcc)]()[_0x160aec(0xd6)]()[_0x160aec(0xdf)](0x3,'0'),_0x121bb1=-_0x41d28f['getTimezoneOffset'](),_0x2139fd=Math[_0x160aec(0xcb)](Math[_0x160aec(0xe0)](_0x121bb1)/0x3c),_0x117dbc=Math[_0x160aec(0xe0)](_0x121bb1)%0x3c,_0x9087d9=_0x121bb1>=0x0?'+':'-',_0x24557b=''+_0x9087d9+_0x2139fd[_0x160aec(0xd6)]()[_0x160aec(0xdf)](0x2,'0')+_0x117dbc[_0x160aec(0xd6)]()[_0x160aec(0xdf)](0x2,'0');return _0x48ae37+'-'+_0x503610+'-'+_0x2bf048+'\x20'+_0xf1db60+':'+_0x54fbba+':'+_0x3b32e6+'.'+_0x2a4dad+_0x24557b;}
|