@treasuredata/tdx 0.16.9 → 0.16.10
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 +3 -2
- 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.d.ts.map +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/claude-usage-command.js.map +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.d.ts +31 -0
- package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/claude-usage-tracker.js.map +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/passthrough-server.d.ts.map +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/passthrough-server.js.map +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.d.ts +0 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +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
- package/dist/sdk/claude-agent/claude-agent-client.d.ts +0 -73
- package/dist/sdk/claude-agent/claude-agent-client.d.ts.map +0 -1
- package/dist/sdk/claude-agent/claude-agent-client.js +0 -1
- package/dist/sdk/claude-agent/claude-agent-client.js.map +0 -1
- package/dist/sdk/claude-agent/environment.d.ts +0 -59
- package/dist/sdk/claude-agent/environment.d.ts.map +0 -1
- package/dist/sdk/claude-agent/environment.js +0 -1
- package/dist/sdk/claude-agent/environment.js.map +0 -1
- package/dist/sdk/claude-agent/index.d.ts +0 -15
- package/dist/sdk/claude-agent/index.d.ts.map +0 -1
- package/dist/sdk/claude-agent/index.js +0 -1
- package/dist/sdk/claude-agent/index.js.map +0 -1
- package/dist/sdk/claude-agent/system-prompts.d.ts +0 -22
- package/dist/sdk/claude-agent/system-prompts.d.ts.map +0 -1
- package/dist/sdk/claude-agent/system-prompts.js +0 -1
- package/dist/sdk/claude-agent/system-prompts.js.map +0 -1
- package/dist/sdk/claude-agent/types.d.ts +0 -107
- package/dist/sdk/claude-agent/types.d.ts.map +0 -1
- package/dist/sdk/claude-agent/types.js +0 -1
- package/dist/sdk/claude-agent/types.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x31d523=a154_0x75aa;(function(_0x4648d9,_0x32c71f){const _0x12c954=a154_0x75aa,_0x1ea531=_0x4648d9();while(!![]){try{const _0x26273a=-parseInt(_0x12c954(0x143))/0x1+parseInt(_0x12c954(0x157))/0x2+-parseInt(_0x12c954(0x120))/0x3+parseInt(_0x12c954(0x14b))/0x4*(parseInt(_0x12c954(0x121))/0x5)+-parseInt(_0x12c954(0x139))/0x6*(parseInt(_0x12c954(0x150))/0x7)+parseInt(_0x12c954(0x116))/0x8+-parseInt(_0x12c954(0x152))/0x9*(-parseInt(_0x12c954(0x12e))/0xa);if(_0x26273a===_0x32c71f)break;else _0x1ea531['push'](_0x1ea531['shift']());}catch(_0x4f1466){_0x1ea531['push'](_0x1ea531['shift']());}}}(a154_0x57a7,0x46e9f));function a154_0x75aa(_0x143fb9,_0x376d06){_0x143fb9=_0x143fb9-0x10c;const _0x57a764=a154_0x57a7();let _0x75aa16=_0x57a764[_0x143fb9];return _0x75aa16;}function a154_0x57a7(){const _0xaaf696=['withHost','\x20registered\x20at:\x0a','verify','withBody','Unprocessable\x20Entity','https://api.treasuredata.com/errors/','fetchMock','join','register','every','getRequests','errorResponse','10eXNnsW','Service\x20Unavailable','Created','Not\x20Found','length','application/json','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','push','forEach','parseRequest','Forbidden','28416uYcaGM','matched','No\x20Content','map','jsonResponse','Internal\x20Server\x20Error','get','toUpperCase','matchCount','stack','320592kgwASe','getStatusText','stubs','text/plain','some','Conflict','simple','Unauthorized','183332kQWHRZ','td-api','createFetch','searchParams','toLowerCase','175NhTuqv','string','5118597BOKFqW','error','mockImplementation','jsonResponseWithHeaders','host','398558nhmGfD','REST','includes','stringify','function','body','matcher','reset','split','slice','textResponse','parse','networkError','pathname','Unknown','registerWithInspector','headers','entries','1369616HKzvaX','requests','filter','test','description','No\x20stub\x20matched\x20request:\x20','url','Request\x20body:\x20','method','Registered\x20stubs:\x0a','766776PFYjNy','5ayFbPe'];a154_0x57a7=function(){return _0xaaf696;};return a154_0x57a7();}import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];[a154_0x31d523(0x117)]=[];[a154_0x31d523(0x128)]=null;[a154_0x31d523(0x158)](_0xcc7bf5,_0x2258d0){return _0x27f1f1=>{const _0x4a81ce=a154_0x75aa;if(_0x27f1f1[_0x4a81ce(0x11e)][_0x4a81ce(0x140)]()!==_0xcc7bf5['toUpperCase']())return![];const _0x21d396=new URL(_0x27f1f1['url']);if(typeof _0x2258d0===_0x4a81ce(0x151))return _0x21d396[_0x4a81ce(0x111)]===_0x2258d0||_0x21d396[_0x4a81ce(0x111)][_0x4a81ce(0x159)](_0x2258d0);return _0x2258d0[_0x4a81ce(0x119)](_0x21d396[_0x4a81ce(0x111)]);};}['withQuery'](_0x383471,_0x1a84d4){return _0x24e4c6=>{const _0x43b61b=a154_0x75aa;if(!_0x383471(_0x24e4c6))return![];const _0x10d3ac=new URL(_0x24e4c6[_0x43b61b(0x11c)]);return Object[_0x43b61b(0x115)](_0x1a84d4)[_0x43b61b(0x12b)](([_0x90961c,_0x404f2b])=>_0x10d3ac[_0x43b61b(0x14e)][_0x43b61b(0x13f)](_0x90961c)===_0x404f2b);};}[a154_0x31d523(0x125)](_0x8eafe1,_0x412e72){return _0x38a79c=>{const _0x3db2bb=a154_0x75aa;if(!_0x8eafe1(_0x38a79c))return![];if(typeof _0x412e72===_0x3db2bb(0x15b))return _0x412e72(_0x38a79c['body']);return JSON[_0x3db2bb(0x15a)](_0x38a79c[_0x3db2bb(0x15c)])===JSON[_0x3db2bb(0x15a)](_0x412e72);};}[a154_0x31d523(0x122)](_0x23e918,_0x17130f){return _0x39f321=>{const _0x5c6431=a154_0x75aa;if(!_0x23e918(_0x39f321))return![];const _0x597a74=new URL(_0x39f321[_0x5c6431(0x11c)]);return _0x597a74[_0x5c6431(0x156)]===_0x17130f;};}[a154_0x31d523(0x12a)](_0x2b62b2,_0x20fc87,_0x22ff32){const _0x368710=a154_0x31d523;this[_0x368710(0x145)][_0x368710(0x135)]({'matcher':_0x2b62b2,'responder':_0x20fc87,'matched':![],'matchCount':0x0,'stack':new Error()[_0x368710(0x142)]??'','description':_0x22ff32?.[_0x368710(0x11a)]});}[a154_0x31d523(0x113)](_0x20a8d5,_0x431c81,_0x580158){const _0x40977c=a154_0x31d523,_0x3147a7=_0x2fc5d3=>{const _0x52e4b2=a154_0x75aa;return _0x580158(_0x2fc5d3[_0x52e4b2(0x15c)],_0x2fc5d3),_0x431c81(_0x2fc5d3);};this[_0x40977c(0x12a)](_0x20a8d5,_0x3147a7);}static[a154_0x31d523(0x13d)](_0x4d7c22,_0x19a1bb=0xc8){const _0x5021e5=a154_0x31d523;return()=>new Response(JSON[_0x5021e5(0x15a)](_0x4d7c22),{'status':_0x19a1bb,'headers':{'Content-Type':_0x5021e5(0x133)}});}static[a154_0x31d523(0x12d)](_0xe97a70,_0x46f5c3,_0x573930=a154_0x31d523(0x149)){return()=>{const _0x4a7aff=a154_0x75aa;let _0x2e3bce;switch(_0x573930){case _0x4a7aff(0x14c):_0x2e3bce={'errors':{'error':_0x46f5c3,'message':_0x46f5c3,'severity':_0x4a7aff(0x153),'status_code':_0xe97a70}};break;case'rfc9457':_0x2e3bce={'type':_0x4a7aff(0x127)+_0xe97a70,'title':HTTPMockRegistry[_0x4a7aff(0x144)](_0xe97a70),'status':_0xe97a70,'detail':_0x46f5c3};break;default:_0x2e3bce={'error':_0x46f5c3};}return new Response(JSON['stringify'](_0x2e3bce),{'status':_0xe97a70,'headers':{'Content-Type':_0x4a7aff(0x133)}});};}static[a154_0x31d523(0x155)](_0x12d78f,_0x19bb82,_0x3a18d1=0xc8){const _0x59132d=a154_0x31d523;return()=>new Response(JSON[_0x59132d(0x15a)](_0x12d78f),{'status':_0x3a18d1,'headers':{'Content-Type':_0x59132d(0x133),..._0x19bb82}});}static[a154_0x31d523(0x10e)](_0x48f22d,_0x1fde1d=0xc8){const _0x41156a=a154_0x31d523;return()=>new Response(_0x48f22d,{'status':_0x1fde1d,'headers':{'Content-Type':_0x41156a(0x146)}});}static[a154_0x31d523(0x110)](_0x583323){return()=>{throw new Error(_0x583323);};}[a154_0x31d523(0x14d)](){const _0x30aef0=a154_0x31d523;return this[_0x30aef0(0x128)]=vi['fn']()[_0x30aef0(0x154)](async(_0x84e637,_0x24ab71)=>{const _0xf89253=_0x30aef0,_0x511c48=this['parseRequest'](_0x84e637,_0x24ab71);this['requests']['push'](_0x511c48);for(const _0x561ac of this[_0xf89253(0x145)]){if(_0x561ac[_0xf89253(0x15d)](_0x511c48))return _0x561ac[_0xf89253(0x13a)]=!![],_0x561ac[_0xf89253(0x141)]++,_0x561ac['responder'](_0x511c48);}const _0x7f6482=this[_0xf89253(0x145)][_0xf89253(0x13c)]((_0xda6c5f,_0x2cac93)=>'\x20\x20'+(_0x2cac93+0x1)+'.\x20'+(_0xda6c5f[_0xf89253(0x11a)]??'unnamed\x20stub'))[_0xf89253(0x129)]('\x0a');throw new Error(_0xf89253(0x11b)+_0x511c48[_0xf89253(0x11e)]+'\x20'+_0x511c48['url']+'\x0a'+(_0xf89253(0x11d)+JSON['stringify'](_0x511c48[_0xf89253(0x15c)])+'\x0a')+(_0xf89253(0x11f)+(_0x7f6482||'\x20\x20(none)')));}),this[_0x30aef0(0x128)];}[a154_0x31d523(0x137)](_0x1d2271,_0x56c0e4){const _0x264409=a154_0x31d523,_0x302297={};if(_0x56c0e4?.[_0x264409(0x114)]){if(_0x56c0e4['headers']instanceof Headers)_0x56c0e4[_0x264409(0x114)][_0x264409(0x136)]((_0x3f5beb,_0x35ef48)=>{const _0x158b35=_0x264409;_0x302297[_0x35ef48[_0x158b35(0x14f)]()]=_0x3f5beb;});else{if(Array['isArray'](_0x56c0e4[_0x264409(0x114)]))for(const [_0x3a17fc,_0x5f161d]of _0x56c0e4[_0x264409(0x114)]){_0x302297[_0x3a17fc[_0x264409(0x14f)]()]=_0x5f161d;}else for(const [_0x5b344d,_0x50cb72]of Object[_0x264409(0x115)](_0x56c0e4[_0x264409(0x114)])){_0x50cb72!==undefined&&(_0x302297[_0x5b344d[_0x264409(0x14f)]()]=_0x50cb72);}}}let _0x1397ac;if(_0x56c0e4?.['body'])try{_0x1397ac=JSON[_0x264409(0x10f)](_0x56c0e4[_0x264409(0x15c)]);}catch{_0x1397ac=_0x56c0e4[_0x264409(0x15c)];}return{'method':_0x56c0e4?.[_0x264409(0x11e)]??'GET','url':_0x1d2271,'headers':_0x302297,'body':_0x1397ac};}[a154_0x31d523(0x124)](_0x237757){const _0x4cf6b5=a154_0x31d523,_0x1c3570=this['stubs'][_0x4cf6b5(0x118)](_0x9f08ab=>!_0x9f08ab[_0x4cf6b5(0x13a)]);if(_0x1c3570[_0x4cf6b5(0x132)]>0x0){const _0x329c77=_0x1c3570['map'](_0x11c8dd=>{const _0x1c6acd=_0x4cf6b5,_0x1cc372=_0x11c8dd[_0x1c6acd(0x11a)]?'\x20('+_0x11c8dd[_0x1c6acd(0x11a)]+')':'',_0x49e842=_0x11c8dd[_0x1c6acd(0x142)][_0x1c6acd(0x10c)]('\x0a')[_0x1c6acd(0x10d)](0x2,0x5)[_0x1c6acd(0x129)]('\x0a');return'Unmatched\x20stub'+_0x1cc372+_0x1c6acd(0x123)+_0x49e842;});_0x237757['fail'](_0x1c3570[_0x4cf6b5(0x132)]+_0x4cf6b5(0x134)+_0x329c77['join']('\x0a\x0a'));}}[a154_0x31d523(0x12c)](){return[...this['requests']];}['getLastRequest'](){const _0x195113=a154_0x31d523;return this[_0x195113(0x117)][this['requests']['length']-0x1];}['wasCalled'](_0x17f170,_0x14103d){const _0x2a642d=a154_0x31d523;return this[_0x2a642d(0x117)][_0x2a642d(0x147)](_0x262681=>{const _0xff4ba0=_0x2a642d;if(_0x262681[_0xff4ba0(0x11e)][_0xff4ba0(0x140)]()!==_0x17f170[_0xff4ba0(0x140)]())return![];if(typeof _0x14103d===_0xff4ba0(0x151))return _0x262681[_0xff4ba0(0x11c)]['includes'](_0x14103d);return _0x14103d['test'](_0x262681['url']);});}['getMatchCount'](_0x336592){const _0x579768=a154_0x31d523;return this[_0x579768(0x145)][_0x336592]?.[_0x579768(0x141)]??0x0;}[a154_0x31d523(0x15e)](){const _0x1ce229=a154_0x31d523;this[_0x1ce229(0x145)]=[],this[_0x1ce229(0x117)]=[],this[_0x1ce229(0x128)]=null;}static[a154_0x31d523(0x144)](_0x3f7a38){const _0x368e9f=a154_0x31d523,_0x182952={0xc8:'OK',0xc9:_0x368e9f(0x130),0xcc:_0x368e9f(0x13b),0x190:'Bad\x20Request',0x191:_0x368e9f(0x14a),0x193:_0x368e9f(0x138),0x194:_0x368e9f(0x131),0x199:_0x368e9f(0x148),0x1a6:_0x368e9f(0x126),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x368e9f(0x13e),0x1f6:'Bad\x20Gateway',0x1f7:_0x368e9f(0x12f)};return _0x182952[_0x3f7a38]??_0x368e9f(0x112);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x116a47,_0x2a39a3){var _0x171e00=a155_0x341e,_0x5d1a00=_0x116a47();while(!![]){try{var _0x106453=-parseInt(_0x171e00(0x1b7))/0x1*(parseInt(_0x171e00(0x1b4))/0x2)+-parseInt(_0x171e00(0x1ae))/0x3+-parseInt(_0x171e00(0x1ad))/0x4*(-parseInt(_0x171e00(0x1b5))/0x5)+-parseInt(_0x171e00(0x1af))/0x6*(-parseInt(_0x171e00(0x1b2))/0x7)+parseInt(_0x171e00(0x1b3))/0x8+parseInt(_0x171e00(0x1b1))/0x9*(parseInt(_0x171e00(0x1b0))/0xa)+parseInt(_0x171e00(0x1ac))/0xb*(-parseInt(_0x171e00(0x1b6))/0xc);if(_0x106453===_0x2a39a3)break;else _0x5d1a00['push'](_0x5d1a00['shift']());}catch(_0x5fb9e8){_0x5d1a00['push'](_0x5d1a00['shift']());}}}(a155_0xed6a,0xe94d0));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a155_0xed6a(){var _0x23fd5c=['3332690Fbyegw','27WYdIWI','7MjDMPC','9261400yBpyXM','56382hseujN','43255UnRNpb','731964DCPtmf','14aNrHRg','418DZbPKb','272pJEqmE','2567028pgUDMK','10668516PsSdvU'];a155_0xed6a=function(){return _0x23fd5c;};return a155_0xed6a();}function a155_0x341e(_0x48beeb,_0x34690e){_0x48beeb=_0x48beeb-0x1ac;var _0xed6ae0=a155_0xed6a();var _0x341e69=_0xed6ae0[_0x48beeb];return _0x341e69;}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(_0x2d6a8d,_0x47abb0){const _0x502820=a156_0x2a02,_0xc1f995=_0x2d6a8d();while(!![]){try{const _0xfde862=parseInt(_0x502820(0xa2))/0x1*(parseInt(_0x502820(0x9d))/0x2)+parseInt(_0x502820(0x97))/0x3+parseInt(_0x502820(0x94))/0x4+-parseInt(_0x502820(0x9b))/0x5*(parseInt(_0x502820(0x99))/0x6)+parseInt(_0x502820(0x9f))/0x7+-parseInt(_0x502820(0x9a))/0x8*(parseInt(_0x502820(0x98))/0x9)+parseInt(_0x502820(0x9e))/0xa*(parseInt(_0x502820(0xa0))/0xb);if(_0xfde862===_0x47abb0)break;else _0xc1f995['push'](_0xc1f995['shift']());}catch(_0x4c6371){_0xc1f995['push'](_0xc1f995['shift']());}}}(a156_0x45ff,0x29488));function a156_0x45ff(){const _0x4b8d42=['all','44732jOfFkS','116140qEoNgi','984928RVeniV','22NqoxrT','map','8VcBgXY','548456EaVwZO','push','slice','71046fDcBEA','45rJfePM','2670Ppaekt','342344rApAxz','1355oYyBpU'];a156_0x45ff=function(){return _0x4b8d42;};return a156_0x45ff();}function a156_0x2a02(_0xd68c2,_0x3cdbed){_0xd68c2=_0xd68c2-0x94;const _0x45ffe0=a156_0x45ff();let _0x2a028d=_0x45ffe0[_0xd68c2];return _0x2a028d;}export async function batchAsync(_0x29de37,_0x51f5f5,_0x27214a=0xa){const _0x424a22=a156_0x2a02,_0x45b0b1=[];for(let _0x4192ac=0x0;_0x4192ac<_0x29de37['length'];_0x4192ac+=_0x27214a){const _0x45d88e=_0x29de37[_0x424a22(0x96)](_0x4192ac,_0x4192ac+_0x27214a),_0xc6abd8=await Promise[_0x424a22(0x9c)](_0x45d88e[_0x424a22(0xa1)](_0x51f5f5));_0x45b0b1[_0x424a22(0x95)](..._0xc6abd8);}return _0x45b0b1;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a157_0x1857(){const _0x5becbe=['4110402avMlze','dim','map','color','repeat','boolean','286414LemthP','Chalk','2914037yhnVoo','green','number','9391990DXhUeu','string','stdout','954WNFDlH','NO_COLOR','isTTY','100200EdUsCy','cyan','5ekwzFT','stringify','length','3EIxNAt','17688KdmMWK','4207056WRZmKT','entries','object','null','join'];a157_0x1857=function(){return _0x5becbe;};return a157_0x1857();}const a157_0x5eb5d8=a157_0x3099;(function(_0x3eb9fa,_0x2d5798){const _0x54efa4=a157_0x3099,_0x17ef33=_0x3eb9fa();while(!![]){try{const _0x52cc37=parseInt(_0x54efa4(0x9f))/0x1*(parseInt(_0x54efa4(0xac))/0x2)+-parseInt(_0x54efa4(0x9a))/0x3+parseInt(_0x54efa4(0xa1))/0x4+-parseInt(_0x54efa4(0x9c))/0x5*(-parseInt(_0x54efa4(0xa6))/0x6)+-parseInt(_0x54efa4(0xae))/0x7+-parseInt(_0x54efa4(0xa0))/0x8*(parseInt(_0x54efa4(0xb4))/0x9)+-parseInt(_0x54efa4(0xb1))/0xa;if(_0x52cc37===_0x2d5798)break;else _0x17ef33['push'](_0x17ef33['shift']());}catch(_0x41f01c){_0x17ef33['push'](_0x17ef33['shift']());}}}(a157_0x1857,0x849dc));import*as a157_0x2076d5 from'chalk';function a157_0x3099(_0x147560,_0x104519){_0x147560=_0x147560-0x98;const _0x18572e=a157_0x1857();let _0x309932=_0x18572e[_0x147560];return _0x309932;}const Chalk=a157_0x2076d5[a157_0x5eb5d8(0xad)];export function shouldUseColor(_0xe70fad={}){const _0x402ff4=a157_0x5eb5d8;if(_0xe70fad['noColor']===!![])return![];if(_0xe70fad[_0x402ff4(0xa9)]===!![])return!![];if(process['env'][_0x402ff4(0x98)]!==undefined)return![];return process[_0x402ff4(0xb3)][_0x402ff4(0x99)]??![];}export function getChalk(_0x384ddd={}){if(shouldUseColor(_0x384ddd))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x481005,_0x3b17e1={}){const _0x46602e=a157_0x5eb5d8;return getChalk(_0x3b17e1)[_0x46602e(0xa7)](_0x481005);}export function colorHeader(_0x1628e4,_0xd9624d={}){const _0x2a40f6=a157_0x5eb5d8;return getChalk(_0xd9624d)[_0x2a40f6(0x9b)](_0x1628e4);}export function colorType(_0x2f4dcb,_0x100ea7={}){const _0x5b32a9=a157_0x5eb5d8;return getChalk(_0x100ea7)[_0x5b32a9(0xa7)](_0x2f4dcb);}export function colorJSONKey(_0x95c210,_0x13d713={}){return getChalk(_0x13d713)['blue'](_0x95c210);}export function colorJSONString(_0x30393c,_0x2ac646={}){const _0x58773b=a157_0x5eb5d8;return getChalk(_0x2ac646)[_0x58773b(0xaf)](_0x30393c);}export function colorJSONNumber(_0x559c17,_0x2fa50a={}){const _0x3640bc=a157_0x5eb5d8;return getChalk(_0x2fa50a)[_0x3640bc(0x9b)](_0x559c17);}export function colorJSONBoolean(_0x3fa9d8,_0x19b61b={}){return getChalk(_0x19b61b)['yellow'](_0x3fa9d8);}export function colorJSONNull(_0x394d09,_0x125a49={}){return getChalk(_0x125a49)['dim'](_0x394d09);}export function colorizeJSONCompact(_0x39582d,_0x1f3894={}){const _0x2b3242=a157_0x5eb5d8;if(!shouldUseColor(_0x1f3894))return JSON['stringify'](_0x39582d);if(_0x39582d===null)return colorJSONNull(_0x2b3242(0xa4),_0x1f3894);if(typeof _0x39582d===_0x2b3242(0xab))return colorJSONBoolean(String(_0x39582d),_0x1f3894);if(typeof _0x39582d==='number')return colorJSONNumber(String(_0x39582d),_0x1f3894);if(typeof _0x39582d===_0x2b3242(0xb2))return colorJSONString(JSON[_0x2b3242(0x9d)](_0x39582d),_0x1f3894);if(Array['isArray'](_0x39582d)){if(_0x39582d[_0x2b3242(0x9e)]===0x0)return'[]';const _0xd35d82=_0x39582d['map'](_0x1ce7bb=>colorizeJSONCompact(_0x1ce7bb,_0x1f3894));return'['+_0xd35d82[_0x2b3242(0xa5)](',')+']';}if(typeof _0x39582d===_0x2b3242(0xa3)){const _0x451195=Object[_0x2b3242(0xa2)](_0x39582d);if(_0x451195[_0x2b3242(0x9e)]===0x0)return'{}';const _0x1d7402=_0x451195[_0x2b3242(0xa8)](([_0x45c99,_0x4cf34f])=>{const _0x2153a0=_0x2b3242,_0x159323=colorJSONKey(JSON[_0x2153a0(0x9d)](_0x45c99),_0x1f3894),_0x2a0472=colorizeJSONCompact(_0x4cf34f,_0x1f3894);return _0x159323+':'+_0x2a0472;});return'{'+_0x1d7402[_0x2b3242(0xa5)](',')+'}';}return String(_0x39582d);}export function colorizeJSON(_0x31fa36,_0xc587bb={},_0x16cf40=0x0){const _0x478750=a157_0x5eb5d8;if(!shouldUseColor(_0xc587bb))return JSON[_0x478750(0x9d)](_0x31fa36,null,0x2);const _0x52bf27='\x20'[_0x478750(0xaa)](_0x16cf40),_0x539c8c=_0x16cf40+0x2;if(_0x31fa36===null)return colorJSONNull(_0x478750(0xa4),_0xc587bb);if(typeof _0x31fa36===_0x478750(0xab))return colorJSONBoolean(String(_0x31fa36),_0xc587bb);if(typeof _0x31fa36===_0x478750(0xb0))return colorJSONNumber(String(_0x31fa36),_0xc587bb);if(typeof _0x31fa36===_0x478750(0xb2))return colorJSONString(JSON[_0x478750(0x9d)](_0x31fa36),_0xc587bb);if(Array['isArray'](_0x31fa36)){if(_0x31fa36[_0x478750(0x9e)]===0x0)return'[]';const _0xc47d9=_0x31fa36[_0x478750(0xa8)](_0x207f4c=>{const _0x3e844b=_0x478750,_0x4a75cd=colorizeJSON(_0x207f4c,_0xc587bb,_0x539c8c);return''+'\x20'[_0x3e844b(0xaa)](_0x539c8c)+_0x4a75cd;});return'[\x0a'+_0xc47d9['join'](',\x0a')+('\x0a'+_0x52bf27+']');}if(typeof _0x31fa36===_0x478750(0xa3)){const _0x265a9e=Object[_0x478750(0xa2)](_0x31fa36);if(_0x265a9e[_0x478750(0x9e)]===0x0)return'{}';const _0x1e0cc5=_0x265a9e[_0x478750(0xa8)](([_0x499b5c,_0x56b12e])=>{const _0x42eca0=_0x478750,_0x1bec13=colorJSONKey(JSON['stringify'](_0x499b5c),_0xc587bb),_0x26ffab=colorizeJSON(_0x56b12e,_0xc587bb,_0x539c8c);return''+'\x20'[_0x42eca0(0xaa)](_0x539c8c)+_0x1bec13+':\x20'+_0x26ffab;});return'{\x0a'+_0x1e0cc5['join'](',\x0a')+('\x0a'+_0x52bf27+'}');}return String(_0x31fa36);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3672a1,_0x2616d4){const _0x3a6536=a158_0xa972,_0x346b91=_0x3672a1();while(!![]){try{const _0x4f8b9d=-parseInt(_0x3a6536(0xa5))/0x1+-parseInt(_0x3a6536(0x9a))/0x2+parseInt(_0x3a6536(0xa0))/0x3+-parseInt(_0x3a6536(0x94))/0x4+parseInt(_0x3a6536(0x9f))/0x5*(-parseInt(_0x3a6536(0x9b))/0x6)+-parseInt(_0x3a6536(0x98))/0x7+parseInt(_0x3a6536(0xab))/0x8;if(_0x4f8b9d===_0x2616d4)break;else _0x346b91['push'](_0x346b91['shift']());}catch(_0x349f82){_0x346b91['push'](_0x346b91['shift']());}}}(a158_0xf35e,0x8ff9c));import a158_0x940a1c from'chalk';function a158_0xa972(_0x9c62a1,_0x55d6cc){_0x9c62a1=_0x9c62a1-0x8b;const _0xf35ed7=a158_0xf35e();let _0xa972ba=_0xf35ed7[_0x9c62a1];return _0xa972ba;}export function generateDiff(_0x3ab710,_0x6ddb3b){const _0x2e3f48=a158_0xa972,_0x53e32f=_0x3ab710[_0x2e3f48(0x96)]('\x0a'),_0x1144a4=_0x6ddb3b[_0x2e3f48(0x96)]('\x0a'),_0x360d63=[],_0x3f0c8a=computeLCS(_0x53e32f,_0x1144a4);let _0x5a05c1=0x0,_0x35a6c4=0x0,_0x505a84=0x0;while(_0x5a05c1<_0x53e32f[_0x2e3f48(0x90)]||_0x35a6c4<_0x1144a4[_0x2e3f48(0x90)]){if(_0x505a84<_0x3f0c8a['length']&&_0x5a05c1<_0x53e32f['length']&&_0x53e32f[_0x5a05c1]===_0x3f0c8a[_0x505a84])_0x35a6c4<_0x1144a4[_0x2e3f48(0x90)]&&_0x1144a4[_0x35a6c4]===_0x3f0c8a[_0x505a84]?(_0x360d63[_0x2e3f48(0x91)]({'type':_0x2e3f48(0x9d),'content':_0x53e32f[_0x5a05c1]}),_0x5a05c1++,_0x35a6c4++,_0x505a84++):(_0x360d63['push']({'type':_0x2e3f48(0x95),'content':_0x1144a4[_0x35a6c4]}),_0x35a6c4++);else{if(_0x505a84<_0x3f0c8a[_0x2e3f48(0x90)]&&_0x35a6c4<_0x1144a4['length']&&_0x1144a4[_0x35a6c4]===_0x3f0c8a[_0x505a84])_0x360d63[_0x2e3f48(0x91)]({'type':_0x2e3f48(0x8d),'content':_0x53e32f[_0x5a05c1]}),_0x5a05c1++;else{if(_0x5a05c1<_0x53e32f[_0x2e3f48(0x90)]&&(_0x505a84>=_0x3f0c8a['length']||_0x53e32f[_0x5a05c1]!==_0x3f0c8a[_0x505a84]))_0x360d63[_0x2e3f48(0x91)]({'type':_0x2e3f48(0x8d),'content':_0x53e32f[_0x5a05c1]}),_0x5a05c1++;else _0x35a6c4<_0x1144a4[_0x2e3f48(0x90)]&&(_0x360d63[_0x2e3f48(0x91)]({'type':_0x2e3f48(0x95),'content':_0x1144a4[_0x35a6c4]}),_0x35a6c4++);}}}return _0x360d63;}function computeLCS(_0x302e43,_0x5a787f){const _0x135eb4=a158_0xa972,_0xeef779=_0x302e43['length'],_0x3c3b8c=_0x5a787f[_0x135eb4(0x90)],_0x10796c=Array(_0xeef779+0x1)[_0x135eb4(0x8f)](null)['map'](()=>Array(_0x3c3b8c+0x1)[_0x135eb4(0x8f)](0x0));for(let _0x441962=0x1;_0x441962<=_0xeef779;_0x441962++){for(let _0x11ca8d=0x1;_0x11ca8d<=_0x3c3b8c;_0x11ca8d++){_0x302e43[_0x441962-0x1]===_0x5a787f[_0x11ca8d-0x1]?_0x10796c[_0x441962][_0x11ca8d]=_0x10796c[_0x441962-0x1][_0x11ca8d-0x1]+0x1:_0x10796c[_0x441962][_0x11ca8d]=Math[_0x135eb4(0xa7)](_0x10796c[_0x441962-0x1][_0x11ca8d],_0x10796c[_0x441962][_0x11ca8d-0x1]);}}const _0x42a3c8=[];let _0x4c153f=_0xeef779,_0x586f28=_0x3c3b8c;while(_0x4c153f>0x0&&_0x586f28>0x0){if(_0x302e43[_0x4c153f-0x1]===_0x5a787f[_0x586f28-0x1])_0x42a3c8['unshift'](_0x302e43[_0x4c153f-0x1]),_0x4c153f--,_0x586f28--;else _0x10796c[_0x4c153f-0x1][_0x586f28]>_0x10796c[_0x4c153f][_0x586f28-0x1]?_0x4c153f--:_0x586f28--;}return _0x42a3c8;}function a158_0xf35e(){const _0x353669=['min','\x20\x20\x20','old','1170174srSgLW','red','max','\x20+\x20','repeat','new','33115656DXZeao','content','\x20-\x20','size','removed','forEach','fill','length','push','cyan','type','2668552kWyAQq','added','split','padStart','6880419WtvfNs','add','134288JHLlNL','6qbQRkP','dim','unchanged','\x20\x20...','5093385daQbBs','1068951xLTwlR','green'];a158_0xf35e=function(){return _0x353669;};return a158_0xf35e();}export function formatDiffWithColors(_0xc6f6b9,_0x37d447=0x3){const _0x4ec88e=a158_0xa972,_0x152412=new Set();_0xc6f6b9[_0x4ec88e(0x8e)]((_0x582b94,_0x27052d)=>{const _0x4f16a1=_0x4ec88e;_0x582b94[_0x4f16a1(0x93)]!==_0x4f16a1(0x9d)&&_0x152412[_0x4f16a1(0x99)](_0x27052d);});if(_0x152412[_0x4ec88e(0x8c)]===0x0)return'';const _0x51d50a=new Set();for(const _0x3cce3b of _0x152412){for(let _0x158053=Math[_0x4ec88e(0xa7)](0x0,_0x3cce3b-_0x37d447);_0x158053<=Math[_0x4ec88e(0xa2)](_0xc6f6b9[_0x4ec88e(0x90)]-0x1,_0x3cce3b+_0x37d447);_0x158053++){_0x51d50a[_0x4ec88e(0x99)](_0x158053);}}const _0x1f2bfe=[];let _0x2eb9d7=-0x1;const _0x1d43fd=_0xc6f6b9[_0x4ec88e(0x90)],_0x506244=Math[_0x4ec88e(0xa7)](0x3,String(_0x1d43fd)[_0x4ec88e(0x90)]),_0x4b531f=[];let _0x41ca5e=0x0,_0x438c0d=0x0;for(const _0x481392 of _0xc6f6b9){if(_0x481392[_0x4ec88e(0x93)]===_0x4ec88e(0x8d))_0x41ca5e++,_0x4b531f['push']({'old':_0x41ca5e,'new':0x0});else _0x481392[_0x4ec88e(0x93)]===_0x4ec88e(0x95)?(_0x438c0d++,_0x4b531f['push']({'old':0x0,'new':_0x438c0d})):(_0x41ca5e++,_0x438c0d++,_0x4b531f[_0x4ec88e(0x91)]({'old':_0x41ca5e,'new':_0x438c0d}));}for(let _0x2c10e8=0x0;_0x2c10e8<_0xc6f6b9[_0x4ec88e(0x90)];_0x2c10e8++){if(!_0x51d50a['has'](_0x2c10e8))continue;_0x2eb9d7!==-0x1&&_0x2c10e8>_0x2eb9d7+0x1&&_0x1f2bfe[_0x4ec88e(0x91)](a158_0x940a1c[_0x4ec88e(0x92)](_0x4ec88e(0x9e)));_0x2eb9d7=_0x2c10e8;const _0x377f7e=_0xc6f6b9[_0x2c10e8],_0x50bded=_0x4b531f[_0x2c10e8],_0x10fdd9=_0x50bded[_0x4ec88e(0xa4)]>0x0?String(_0x50bded['old'])[_0x4ec88e(0x97)](_0x506244):'\x20'[_0x4ec88e(0xa9)](_0x506244),_0x156844=_0x50bded[_0x4ec88e(0xaa)]>0x0?String(_0x50bded[_0x4ec88e(0xaa)])['padStart'](_0x506244):'\x20'[_0x4ec88e(0xa9)](_0x506244);switch(_0x377f7e[_0x4ec88e(0x93)]){case _0x4ec88e(0x8d):_0x1f2bfe[_0x4ec88e(0x91)](a158_0x940a1c[_0x4ec88e(0xa6)](_0x10fdd9+'\x20'+_0x156844+_0x4ec88e(0x8b)+_0x377f7e['content']));break;case _0x4ec88e(0x95):_0x1f2bfe[_0x4ec88e(0x91)](a158_0x940a1c[_0x4ec88e(0xa1)](_0x10fdd9+'\x20'+_0x156844+_0x4ec88e(0xa8)+_0x377f7e[_0x4ec88e(0xac)]));break;default:_0x1f2bfe[_0x4ec88e(0x91)](a158_0x940a1c[_0x4ec88e(0x9c)](_0x10fdd9+'\x20'+_0x156844+_0x4ec88e(0xa3)+_0x377f7e['content']));break;}}return _0x1f2bfe['join']('\x0a');}export function hasChanges(_0x94ee08){return _0x94ee08['some'](_0x24f441=>_0x24f441['type']!=='unchanged');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c8918,_0x1cbacd){const _0x50a320=a159_0xae77,_0x311cbd=_0x3c8918();while(!![]){try{const _0x3df97d=parseInt(_0x50a320(0x19c))/0x1+parseInt(_0x50a320(0x18f))/0x2*(parseInt(_0x50a320(0x18b))/0x3)+-parseInt(_0x50a320(0x199))/0x4+parseInt(_0x50a320(0x193))/0x5+parseInt(_0x50a320(0x19a))/0x6*(-parseInt(_0x50a320(0x19b))/0x7)+-parseInt(_0x50a320(0x18c))/0x8*(parseInt(_0x50a320(0x191))/0x9)+parseInt(_0x50a320(0x195))/0xa;if(_0x3df97d===_0x1cbacd)break;else _0x311cbd['push'](_0x311cbd['shift']());}catch(_0x44102c){_0x311cbd['push'](_0x311cbd['shift']());}}}(a159_0x1ed9,0xca5e4));import*as a159_0x36bebf from'node:fs';import*as a159_0x42a336 from'node:path';export function setSecureFilePermissions(_0x879d28){const _0x569c8d=a159_0xae77;try{a159_0x36bebf[_0x569c8d(0x197)](_0x879d28,0x180);}catch{console[_0x569c8d(0x18a)](_0x569c8d(0x18d)+_0x879d28);}}export function setSecureDirectoryPermissions(_0x1b1757){const _0xe7d273=a159_0xae77;try{a159_0x36bebf['chmodSync'](_0x1b1757,0x1c0);}catch{console[_0xe7d273(0x18a)](_0xe7d273(0x18d)+_0x1b1757);}}function a159_0xae77(_0xed8cd,_0x319d38){_0xed8cd=_0xed8cd-0x187;const _0x1ed907=a159_0x1ed9();let _0xae775f=_0x1ed907[_0xed8cd];return _0xae775f;}function a159_0x1ed9(){const _0x4bbb77=['Should\x20be\x200600\x20or\x20more\x20restrictive.','5205548rZlKpg','15654qvjwof','3829CCLqRK','386206vvJhCp','existsSync','mkdirSync','\x20has\x20insecure\x20permissions\x20(','warn','363IPpJrq','1144ioVwkn','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','toString','15466KUgsCH','mode','25011LVixQt','statSync','4003035zrfggk',').\x20','18323010gglTSD','writeFileSync','chmodSync'];a159_0x1ed9=function(){return _0x4bbb77;};return a159_0x1ed9();}export function createSecureDirectory(_0x116279){const _0x1dbcc6=a159_0xae77;!a159_0x36bebf[_0x1dbcc6(0x187)](_0x116279)&&(a159_0x36bebf[_0x1dbcc6(0x188)](_0x116279,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x116279));}export function validateSecureFilePermissions(_0x456a08){const _0x4c01c2=a159_0xae77;try{const _0x243e15=a159_0x36bebf[_0x4c01c2(0x192)](_0x456a08),_0xb4da33=_0x243e15[_0x4c01c2(0x190)]&0x1ff,_0x36a093=(_0xb4da33&0x3f)!==0x0;if(_0x36a093)return console[_0x4c01c2(0x18a)]('Warning:\x20'+_0x456a08+_0x4c01c2(0x189)+_0xb4da33[_0x4c01c2(0x18e)](0x8)+_0x4c01c2(0x194)+_0x4c01c2(0x198)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x19070e,_0x26f5e0){const _0x7fc913=a159_0xae77,_0x5bd3cf=a159_0x42a336['dirname'](_0x19070e);createSecureDirectory(_0x5bd3cf),a159_0x36bebf[_0x7fc913(0x196)](_0x19070e,_0x26f5e0,{'mode':0x180}),setSecureFilePermissions(_0x19070e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x469eb9,_0x517d9a){const _0x131f39=a160_0x20d5,_0x7624d0=_0x469eb9();while(!![]){try{const _0x55e6a1=-parseInt(_0x131f39(0x132))/0x1+-parseInt(_0x131f39(0x12f))/0x2+parseInt(_0x131f39(0x136))/0x3+parseInt(_0x131f39(0x13e))/0x4*(-parseInt(_0x131f39(0x13a))/0x5)+-parseInt(_0x131f39(0x139))/0x6*(parseInt(_0x131f39(0x137))/0x7)+parseInt(_0x131f39(0x13b))/0x8+-parseInt(_0x131f39(0x133))/0x9*(-parseInt(_0x131f39(0x12d))/0xa);if(_0x55e6a1===_0x517d9a)break;else _0x7624d0['push'](_0x7624d0['shift']());}catch(_0x11768f){_0x7624d0['push'](_0x7624d0['shift']());}}}(a160_0x1554,0x1a345));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x4c64a=a160_0x20d5;return process[_0x4c64a(0x135)]['TDX_CACHE_DIR']||join(homedir(),_0x4c64a(0x130),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x27d2c2,_0x46aeba){const _0x3257ca=a160_0x20d5,_0x671c67=registry[_0x3257ca(0x138)](_0x27d2c2);if(_0x671c67&&_0x671c67!==_0x46aeba)throw new Error(_0x3257ca(0x13c)+_0x27d2c2+_0x3257ca(0x142)+_0x671c67+_0x3257ca(0x13d)+_0x46aeba+'\x22');registry['set'](_0x27d2c2,_0x46aeba);}export function getGlobalCachePath(_0x440df9){return join(getGlobalCacheDir(),_0x440df9);}function ensureGlobalCacheDir(){const _0x5680b6=getGlobalCacheDir();!existsSync(_0x5680b6)&&mkdirSync(_0x5680b6,{'recursive':!![]});}function readCacheJson(_0x1864d3){const _0x29f296=getGlobalCachePath(_0x1864d3);if(!existsSync(_0x29f296))return undefined;try{const _0x5d8c0f=readFileSync(_0x29f296,'utf-8');return JSON['parse'](_0x5d8c0f);}catch{return undefined;}}function writeCacheJson(_0x6a5d87,_0x153235){const _0x3950d0=a160_0x20d5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x6a5d87),JSON[_0x3950d0(0x141)](_0x153235,null,0x2),_0x3950d0(0x12e));}function readCacheText(_0x8718a8){const _0x5b2662=a160_0x20d5,_0xb410b=getGlobalCachePath(_0x8718a8);if(!existsSync(_0xb410b))return undefined;try{return readFileSync(_0xb410b,_0x5b2662(0x12e));}catch{return undefined;}}function writeCacheText(_0x2025ae,_0x3f9eaa){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2025ae),_0x3f9eaa,'utf-8');}function clearCache(_0x39957f){const _0x4aae3d=getGlobalCachePath(_0x39957f);if(existsSync(_0x4aae3d))try{unlinkSync(_0x4aae3d);}catch{}}function cacheExists(_0x25ec4d){return existsSync(getGlobalCachePath(_0x25ec4d));}export function createGlobalCache(_0x456859,_0x43652f){return registerGlobalCacheKey(_0x456859,_0x43652f),{'read':()=>readCacheJson(_0x456859),'write':_0x251a14=>writeCacheJson(_0x456859,_0x251a14),'clear':()=>clearCache(_0x456859),'exists':()=>cacheExists(_0x456859),'path':()=>getGlobalCachePath(_0x456859)};}function a160_0x1554(){const _0x32c645=['env','453735CbEkpM','35QLKvlR','get','48342GbNMfe','20DfWMSr','1056480mOVcsb','Global\x20cache\x20key\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','101788vdKVtB','{profile}','replace','stringify','\x22\x20already\x20registered\x20by\x20\x22','10QIaCON','utf-8','279940olfjKu','.cache','default','94461OfUUXc','1804788nueLPi','trim'];a160_0x1554=function(){return _0x32c645;};return a160_0x1554();}export function createGlobalTextCache(_0x390979,_0x478ae3){const _0x26f7af=a160_0x20d5;return registerGlobalCacheKey(_0x390979,_0x478ae3),{'read':()=>readCacheText(_0x390979)?.[_0x26f7af(0x134)]()||undefined,'write':_0x4b79da=>writeCacheText(_0x390979,_0x4b79da),'clear':()=>clearCache(_0x390979),'exists':()=>cacheExists(_0x390979),'path':()=>getGlobalCachePath(_0x390979)};}export function createProfileCache(_0x354b0b,_0x21fc94){const _0x3414d7=_0x5eb39e=>{const _0x4008e0=a160_0x20d5,_0x2082ae=_0x5eb39e||_0x4008e0(0x131);return _0x354b0b[_0x4008e0(0x140)](_0x4008e0(0x13f),_0x2082ae);};return{'read':_0x12d2c5=>{const _0x547603=_0x3414d7(_0x12d2c5);return registerGlobalCacheKey(_0x547603,_0x21fc94),readCacheJson(_0x547603);},'write':(_0x1251f4,_0x2bbe18)=>{const _0x39d910=_0x3414d7(_0x1251f4);registerGlobalCacheKey(_0x39d910,_0x21fc94),writeCacheJson(_0x39d910,_0x2bbe18);},'clear':_0x17328c=>{const _0x441942=_0x3414d7(_0x17328c);clearCache(_0x441942);},'exists':_0x4609b5=>{const _0x17dba1=_0x3414d7(_0x4609b5);return cacheExists(_0x17dba1);},'path':_0x1dbcca=>{const _0x1fb59e=_0x3414d7(_0x1dbcca);return getGlobalCachePath(_0x1fb59e);}};}export function createOptionalProfileCache(_0xc33ce0,_0x476ecd,_0x1b55bc={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x1b55bc,_0x413179=_0x56d9e5=>{return _0x56d9e5?''+_0xc33ce0+profileSeparator+_0x56d9e5+suffix:''+_0xc33ce0+suffix;};return{'read':_0x5570be=>{const _0x4d786e=_0x413179(_0x5570be);return registerGlobalCacheKey(_0x4d786e,_0x476ecd),readCacheJson(_0x4d786e);},'write':(_0x324f55,_0x8e9033)=>{const _0x4b695c=_0x413179(_0x8e9033);registerGlobalCacheKey(_0x4b695c,_0x476ecd),writeCacheJson(_0x4b695c,_0x324f55);},'clear':_0x1396e0=>{const _0x2f97cb=_0x413179(_0x1396e0);clearCache(_0x2f97cb);},'exists':_0x13b8d8=>{const _0x7c47e3=_0x413179(_0x13b8d8);return cacheExists(_0x7c47e3);},'path':_0x4a8820=>{const _0x59d131=_0x413179(_0x4a8820);return getGlobalCachePath(_0x59d131);}};}function a160_0x20d5(_0x8c0d2f,_0x3720d6){_0x8c0d2f=_0x8c0d2f-0x12d;const _0x155408=a160_0x1554();let _0x20d58d=_0x155408[_0x8c0d2f];return _0x20d58d;}export function clearGlobalRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a161_0x5027(){const _0x4c4880=['Invalid\x20JSON\x20string:\x20','parse','File\x20not\x20found:\x20','1417493nAIeYz','369yTrWfl','\x27:\x20','843423NiwBMe','ENOENT','5neUfTm','NOT_FOUND','message','INTERNAL','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','8030070mXVqQH','10zblWHl','PERMISSION_DENIED','code','5325164faLUdT','Permission\x20denied\x20reading\x20file:\x20','3ryxROE','utf-8','858274MCrMCX','Failed\x20to\x20load\x20JSON:\x20','680573MvUseO','66824OVWvVh','Invalid\x20JSON\x20in\x20file\x20\x27','INVALID_ARGUMENT'];a161_0x5027=function(){return _0x4c4880;};return a161_0x5027();}(function(_0x45766e,_0x15741e){const _0x3260d6=a161_0x100c,_0x55a65f=_0x45766e();while(!![]){try{const _0x561cd0=parseInt(_0x3260d6(0x1d5))/0x1+-parseInt(_0x3260d6(0x1d3))/0x2*(parseInt(_0x3260d6(0x1d1))/0x3)+-parseInt(_0x3260d6(0x1ea))/0x4*(parseInt(_0x3260d6(0x1e1))/0x5)+parseInt(_0x3260d6(0x1e6))/0x6+parseInt(_0x3260d6(0x1df))/0x7+parseInt(_0x3260d6(0x1d6))/0x8*(parseInt(_0x3260d6(0x1dd))/0x9)+-parseInt(_0x3260d6(0x1e7))/0xa*(-parseInt(_0x3260d6(0x1dc))/0xb);if(_0x561cd0===_0x15741e)break;else _0x55a65f['push'](_0x55a65f['shift']());}catch(_0x268e4c){_0x55a65f['push'](_0x55a65f['shift']());}}}(a161_0x5027,0xcf98b));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x46e805,_0x1aecb0){const _0xfedd87=a161_0x100c;try{if(_0x1aecb0){const _0x15a46d=await readFile(_0x46e805,_0xfedd87(0x1d2));try{return JSON[_0xfedd87(0x1da)](_0x15a46d);}catch(_0x4d3679){throw new SDKError(ErrorCode[_0xfedd87(0x1d8)],_0xfedd87(0x1d7)+_0x46e805+_0xfedd87(0x1de)+(_0x4d3679 instanceof Error?_0x4d3679[_0xfedd87(0x1e3)]:String(_0x4d3679)));}}else try{return JSON[_0xfedd87(0x1da)](_0x46e805);}catch(_0x29d7df){throw new SDKError(ErrorCode[_0xfedd87(0x1d8)],_0xfedd87(0x1d9)+(_0x29d7df instanceof Error?_0x29d7df[_0xfedd87(0x1e3)]:String(_0x29d7df)));}}catch(_0x1b7337){if(_0x1b7337 instanceof SDKError)throw _0x1b7337;if(_0x1b7337 instanceof Error&&_0xfedd87(0x1e9)in _0x1b7337){const _0x4a65e4=_0x1b7337;if(_0x4a65e4['code']===_0xfedd87(0x1e0))throw new SDKError(ErrorCode[_0xfedd87(0x1e2)],_0xfedd87(0x1db)+_0x46e805);else{if(_0x4a65e4[_0xfedd87(0x1e9)]==='EACCES')throw new SDKError(ErrorCode[_0xfedd87(0x1e8)],_0xfedd87(0x1d0)+_0x46e805);}}throw new SDKError(ErrorCode[_0xfedd87(0x1e4)],_0xfedd87(0x1d4)+(_0x1b7337 instanceof Error?_0x1b7337['message']:String(_0x1b7337)));}}function a161_0x100c(_0x58f9c6,_0xb02b42){_0x58f9c6=_0x58f9c6-0x1d0;const _0x5027bf=a161_0x5027();let _0x100ce3=_0x5027bf[_0x58f9c6];return _0x100ce3;}export async function loadJSONFromOptions(_0x57d310,_0x77528c){const _0x42f1f0=a161_0x100c;if(_0x57d310&&_0x77528c)throw new SDKError(ErrorCode[_0x42f1f0(0x1d8)],_0x42f1f0(0x1e5));if(_0x57d310)return await loadJSON(_0x57d310,![]);if(_0x77528c)return await loadJSON(_0x77528c,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x2f2416=a162_0x9297;(function(_0x401855,_0x3ea5f0){const _0x235ffe=a162_0x9297,_0x3f2119=_0x401855();while(!![]){try{const _0x33ac5c=-parseInt(_0x235ffe(0xdc))/0x1+-parseInt(_0x235ffe(0xe3))/0x2*(parseInt(_0x235ffe(0xe8))/0x3)+-parseInt(_0x235ffe(0xde))/0x4+parseInt(_0x235ffe(0xdf))/0x5*(parseInt(_0x235ffe(0xe5))/0x6)+parseInt(_0x235ffe(0xeb))/0x7+parseInt(_0x235ffe(0xe6))/0x8*(-parseInt(_0x235ffe(0xe7))/0x9)+parseInt(_0x235ffe(0xe9))/0xa;if(_0x33ac5c===_0x3ea5f0)break;else _0x3f2119['push'](_0x3f2119['shift']());}catch(_0x542ccf){_0x3f2119['push'](_0x3f2119['shift']());}}}(a162_0x5ac0,0xb0e78));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a162_0x2f2416(0xe1),registry=new Map();export function registerCacheKey(_0x592904,_0x2c7fa4){const _0x5775ad=a162_0x2f2416,_0x2f8cb9=registry[_0x5775ad(0xe0)](_0x592904);if(_0x2f8cb9&&_0x2f8cb9!==_0x2c7fa4)throw new Error('Cache\x20key\x20\x22'+_0x592904+'\x22\x20already\x20registered\x20by\x20\x22'+_0x2f8cb9+_0x5775ad(0xe4)+_0x2c7fa4+'\x22');registry['set'](_0x592904,_0x2c7fa4);}export function getCacheDir(){return join(process['cwd'](),LOCAL_CACHE_DIR);}export function getCachePath(_0x33cf5c){return join(getCacheDir(),_0x33cf5c);}function ensureCacheDir(){const _0x25b6da=getCacheDir();!existsSync(_0x25b6da)&&mkdirSync(_0x25b6da,{'recursive':!![]});}function readCacheJson(_0x5c95db){const _0x45abee=a162_0x2f2416,_0x1080f9=getCachePath(_0x5c95db);if(!existsSync(_0x1080f9))return undefined;try{const _0x47b667=readFileSync(_0x1080f9,_0x45abee(0xe2));return JSON[_0x45abee(0xec)](_0x47b667);}catch{return undefined;}}function a162_0x5ac0(){const _0x162d98=['1160048UvStft','trim','1899944ScrgVh','1516905xkcCAo','get','.cache/tdx','utf-8','2xtLZLp','\x22,\x20cannot\x20register\x20for\x20\x22','24ZVXqLn','499688Njvkfp','99KMwyVE','3512391pGTrtV','21070550AMUdPd','stringify','6278461TJBjPM','parse'];a162_0x5ac0=function(){return _0x162d98;};return a162_0x5ac0();}function a162_0x9297(_0x31c047,_0x835bc6){_0x31c047=_0x31c047-0xdc;const _0x5ac021=a162_0x5ac0();let _0x929723=_0x5ac021[_0x31c047];return _0x929723;}function writeCacheJson(_0x18b4fc,_0x19d9c5){const _0x1589ff=a162_0x2f2416;ensureCacheDir(),writeFileSync(getCachePath(_0x18b4fc),JSON[_0x1589ff(0xea)](_0x19d9c5,null,0x2),'utf-8');}function readCacheText(_0x38d388){const _0x3a6023=a162_0x2f2416,_0x1a3141=getCachePath(_0x38d388);if(!existsSync(_0x1a3141))return undefined;try{return readFileSync(_0x1a3141,_0x3a6023(0xe2));}catch{return undefined;}}function writeCacheText(_0x55f287,_0x4412cb){const _0x101e1e=a162_0x2f2416;ensureCacheDir(),writeFileSync(getCachePath(_0x55f287),_0x4412cb,_0x101e1e(0xe2));}function clearCache(_0x40d7a1){const _0x12d6c0=getCachePath(_0x40d7a1);if(existsSync(_0x12d6c0))try{unlinkSync(_0x12d6c0);}catch{}}function cacheExists(_0x24d849){return existsSync(getCachePath(_0x24d849));}export function createCache(_0x472fd5,_0xa5f9fb){return registerCacheKey(_0x472fd5,_0xa5f9fb),{'read':()=>readCacheJson(_0x472fd5),'write':_0x5520a1=>writeCacheJson(_0x472fd5,_0x5520a1),'clear':()=>clearCache(_0x472fd5),'exists':()=>cacheExists(_0x472fd5),'path':()=>getCachePath(_0x472fd5)};}export function createTextCache(_0x3f14a4,_0x14464c){const _0x24ed4e=a162_0x2f2416;return registerCacheKey(_0x3f14a4,_0x14464c),{'read':()=>readCacheText(_0x3f14a4)?.[_0x24ed4e(0xdd)]()||undefined,'write':_0x193edd=>writeCacheText(_0x3f14a4,_0x193edd),'clear':()=>clearCache(_0x3f14a4),'exists':()=>cacheExists(_0x3f14a4),'path':()=>getCachePath(_0x3f14a4)};}export function clearRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x55d4a6=a163_0x49ce;function a163_0x5541(){const _0x209962=['green','24DMMqPZ','2147688tiriZV','blue','TRACE','INFO','yellow','5756PaqjdT','15dWhAaE','message','dim','ERROR','format','474LYOcCZ','9029zpNSyN','DEBUG','colors','timestamp',']\x20[','11PgKTAc','19655jiwktH','red','221022MAmuiC','WARN','cyan','level','chalk','3285876ygPINZ','component','607649QdVxMR','10vtNAoM'];a163_0x5541=function(){return _0x209962;};return a163_0x5541();}(function(_0x49d417,_0x5aeefc){const _0x54b2bf=a163_0x49ce,_0x305eab=_0x49d417();while(!![]){try{const _0x5c4d71=-parseInt(_0x54b2bf(0x14d))/0x1*(-parseInt(_0x54b2bf(0x140))/0x2)+parseInt(_0x54b2bf(0x147))/0x3*(parseInt(_0x54b2bf(0x146))/0x4)+-parseInt(_0x54b2bf(0x153))/0x5*(parseInt(_0x54b2bf(0x14c))/0x6)+-parseInt(_0x54b2bf(0x13d))/0x7+parseInt(_0x54b2bf(0x141))/0x8+parseInt(_0x54b2bf(0x136))/0x9*(-parseInt(_0x54b2bf(0x13e))/0xa)+-parseInt(_0x54b2bf(0x152))/0xb*(-parseInt(_0x54b2bf(0x13b))/0xc);if(_0x5c4d71===_0x5aeefc)break;else _0x305eab['push'](_0x305eab['shift']());}catch(_0x4fafd5){_0x305eab['push'](_0x305eab['shift']());}}}(a163_0x5541,0x39989));function a163_0x49ce(_0x33efb2,_0x254173){_0x33efb2=_0x33efb2-0x136;const _0x5541bb=a163_0x5541();let _0x49ce44=_0x5541bb[_0x33efb2];return _0x49ce44;}import a163_0x23313f,{Chalk}from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';export class DefaultLogFormatter{[a163_0x55d4a6(0x14f)];[a163_0x55d4a6(0x13a)];constructor(_0x35b27f={}){const _0x2a643d=a163_0x55d4a6;this[_0x2a643d(0x14f)]=_0x35b27f[_0x2a643d(0x14f)]??![],this[_0x2a643d(0x13a)]=_0x35b27f['colors']?new Chalk({'level':0x3}):a163_0x23313f;}[a163_0x55d4a6(0x14b)](_0x3215f3){const _0x539935=a163_0x55d4a6,_0x308337=formatTimestamp(_0x3215f3[_0x539935(0x150)]),_0x119136=logLevelToString(_0x3215f3['level']);if(!this[_0x539935(0x14f)])return _0x308337+'\x20['+_0x119136+_0x539935(0x151)+_0x3215f3[_0x539935(0x13c)]+']\x20'+_0x3215f3[_0x539935(0x148)];const _0x1b88d3=this[_0x539935(0x13a)][_0x539935(0x149)](_0x308337),_0x34dbaf=this['colorLevel'](_0x119136,_0x3215f3[_0x539935(0x139)]),_0x48ec73=this[_0x539935(0x13a)][_0x539935(0x142)]('['+_0x3215f3[_0x539935(0x13c)]+']');return _0x1b88d3+'\x20'+_0x34dbaf+'\x20'+_0x48ec73+'\x20'+_0x3215f3['message'];}['colorLevel'](_0x1f4ef9,_0x387630){const _0x4bb9d3=a163_0x55d4a6;switch(_0x387630){case LogLevel[_0x4bb9d3(0x143)]:return this[_0x4bb9d3(0x13a)]['gray']('['+_0x1f4ef9+']');case LogLevel[_0x4bb9d3(0x14e)]:return this['chalk'][_0x4bb9d3(0x13f)]('['+_0x1f4ef9+']');case LogLevel[_0x4bb9d3(0x144)]:return this['chalk'][_0x4bb9d3(0x138)]('['+_0x1f4ef9+']');case LogLevel[_0x4bb9d3(0x137)]:return this[_0x4bb9d3(0x13a)][_0x4bb9d3(0x145)]('['+_0x1f4ef9+']');case LogLevel[_0x4bb9d3(0x14a)]:return this[_0x4bb9d3(0x13a)][_0x4bb9d3(0x154)]('['+_0x1f4ef9+']');default:return'['+_0x1f4ef9+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5dd3ca,_0xc6f518){var _0x27d81e=a164_0x19d9,_0x175eed=_0x5dd3ca();while(!![]){try{var _0x575939=-parseInt(_0x27d81e(0xc4))/0x1+parseInt(_0x27d81e(0xc7))/0x2+parseInt(_0x27d81e(0xca))/0x3+parseInt(_0x27d81e(0xc8))/0x4*(-parseInt(_0x27d81e(0xc3))/0x5)+parseInt(_0x27d81e(0xc5))/0x6+-parseInt(_0x27d81e(0xc9))/0x7+-parseInt(_0x27d81e(0xc6))/0x8;if(_0x575939===_0xc6f518)break;else _0x175eed['push'](_0x175eed['shift']());}catch(_0x2d19d5){_0x175eed['push'](_0x175eed['shift']());}}}(a164_0xa485,0x85562));function a164_0x19d9(_0x280508,_0x574808){_0x280508=_0x280508-0xc3;var _0xa485ec=a164_0xa485();var _0x19d9cc=_0xa485ec[_0x280508];return _0x19d9cc;}function a164_0xa485(){var _0x5b24ac=['1251272IudNMz','5004yfmDcN','3029355YsBrrX','1794450nmdpWm','5ksJiQy','669815FjdINV','5687796AsnrLH','4174200CaHMny'];a164_0xa485=function(){return _0x5b24ac;};return a164_0xa485();}export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x2148f2=a165_0x46e7;(function(_0x19f805,_0x2ab4a5){const _0x5ecabc=a165_0x46e7,_0xe6f789=_0x19f805();while(!![]){try{const _0x242dbf=parseInt(_0x5ecabc(0x81))/0x1*(-parseInt(_0x5ecabc(0x88))/0x2)+parseInt(_0x5ecabc(0x80))/0x3*(-parseInt(_0x5ecabc(0x8a))/0x4)+-parseInt(_0x5ecabc(0x7e))/0x5*(-parseInt(_0x5ecabc(0x7a))/0x6)+parseInt(_0x5ecabc(0x7f))/0x7*(-parseInt(_0x5ecabc(0x7c))/0x8)+parseInt(_0x5ecabc(0x83))/0x9*(parseInt(_0x5ecabc(0x86))/0xa)+parseInt(_0x5ecabc(0x7d))/0xb+parseInt(_0x5ecabc(0x87))/0xc*(parseInt(_0x5ecabc(0x8b))/0xd);if(_0x242dbf===_0x2ab4a5)break;else _0xe6f789['push'](_0xe6f789['shift']());}catch(_0x47b223){_0xe6f789['push'](_0xe6f789['shift']());}}}(a165_0x186e,0x9c769));function a165_0x186e(){const _0x1761f0=['minLevel','70GzvIwu','218244vXdpPZ','106qaFfnj','useStderr','14404nuUzAz','910iVAglv','format','formatter','10134zjGrMd','colors','392HEJFWo','7688109KcFVDi','2010kMxCCs','165235aQIGbO','1047LgAqfC','3557ZRUNEM','log','760887JnNrTq','level'];a165_0x186e=function(){return _0x1761f0;};return a165_0x186e();}import{LogLevel as a165_0x16e954}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a165_0x46e7(_0x401359,_0x26d335){_0x401359=_0x401359-0x79;const _0x186e59=a165_0x186e();let _0x46e7c5=_0x186e59[_0x401359];return _0x46e7c5;}export class ConsoleHandler{[a165_0x2148f2(0x85)];[a165_0x2148f2(0x89)];['formatter'];constructor(_0x1d8aa7={}){const _0xfd2e3d=a165_0x2148f2;this[_0xfd2e3d(0x85)]=_0x1d8aa7[_0xfd2e3d(0x85)]??a165_0x16e954['WARN'],this[_0xfd2e3d(0x89)]=_0x1d8aa7[_0xfd2e3d(0x89)]??!![],this[_0xfd2e3d(0x79)]=new DefaultLogFormatter({'colors':_0x1d8aa7[_0xfd2e3d(0x7b)]??!![]});}['handle'](_0x1979cc){const _0x9ffe04=a165_0x2148f2;if(_0x1979cc[_0x9ffe04(0x84)]<this[_0x9ffe04(0x85)])return;const _0x4f1d97=this[_0x9ffe04(0x79)][_0x9ffe04(0x8c)](_0x1979cc);this[_0x9ffe04(0x89)]&&_0x1979cc[_0x9ffe04(0x84)]>=a165_0x16e954['WARN']?console['error'](_0x4f1d97):console[_0x9ffe04(0x82)](_0x4f1d97);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a166_0x31b690=a166_0x30ce;(function(_0x8a7db2,_0x4e9f83){const _0x41666a=a166_0x30ce,_0x39e4e6=_0x8a7db2();while(!![]){try{const _0x3d5102=parseInt(_0x41666a(0x1ca))/0x1*(parseInt(_0x41666a(0x1c0))/0x2)+parseInt(_0x41666a(0x1d5))/0x3+-parseInt(_0x41666a(0x1d3))/0x4+-parseInt(_0x41666a(0x1bd))/0x5*(parseInt(_0x41666a(0x1d0))/0x6)+parseInt(_0x41666a(0x1b5))/0x7+-parseInt(_0x41666a(0x1d2))/0x8*(-parseInt(_0x41666a(0x1cf))/0x9)+parseInt(_0x41666a(0x1cc))/0xa*(-parseInt(_0x41666a(0x1c1))/0xb);if(_0x3d5102===_0x4e9f83)break;else _0x39e4e6['push'](_0x39e4e6['shift']());}catch(_0x2732dd){_0x39e4e6['push'](_0x39e4e6['shift']());}}}(a166_0x1522,0x7b1d8));function a166_0x1522(){const _0x4576b1=['logFileName','265161jUGwVA','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','390fYEwpx','logPath','Warning:\x20Error\x20writing\x20to\x20','105849VoUFck','72bcNIqO','rotate','272qYvBVV','985664gFdesM','logBaseName','1476507DmuXou','.log','tdx.log','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logs','576184PYLlDI','logDir','split','toISOString','includes','filter','rotateOldLogs','format','355vbsFig','handle','error','2yyRiuO','137632lZHwlo','.gz','message','\x5c$&','close','write','getLogPath','logStream'];a166_0x1522=function(){return _0x4576b1;};return a166_0x1522();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';function a166_0x30ce(_0x2610e1,_0x33bca6){_0x2610e1=_0x2610e1-0x1b1;const _0x1522ad=a166_0x1522();let _0x30cea0=_0x1522ad[_0x2610e1];return _0x30cea0;}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a166_0x31b690(0x1b6)];[a166_0x31b690(0x1c9)];[a166_0x31b690(0x1d4)];[a166_0x31b690(0x1c8)]=null;['rotate'];constructor(_0x3dcaf0={}){const _0x22593e=a166_0x31b690;this['logPath']=_0x3dcaf0['filePath']??join(getGlobalCacheDir(),_0x22593e(0x1b4),_0x22593e(0x1b2)),this[_0x22593e(0x1b6)]=dirname(this['logPath']),this[_0x22593e(0x1c9)]=basename(this[_0x22593e(0x1cd)]),this[_0x22593e(0x1d4)]=this['logFileName']['replace'](/\.log$/,''),this[_0x22593e(0x1d1)]=_0x3dcaf0[_0x22593e(0x1d1)]??!![];}async['init'](){const _0xfc6610=a166_0x31b690;try{await mkdir(this[_0xfc6610(0x1b6)],{'recursive':!![]}),this[_0xfc6610(0x1d1)]&&await this['rotateOldLogs'](),this[_0xfc6610(0x1c8)]=createWriteStream(this[_0xfc6610(0x1cd)],{'flags':'a'}),this['logStream']['on']('error',_0x5eec46=>{const _0x19a5b2=_0xfc6610;console[_0x19a5b2(0x1bf)](_0x19a5b2(0x1ce)+this[_0x19a5b2(0x1c9)]+':',_0x5eec46[_0x19a5b2(0x1c3)]);});}catch(_0x1eb639){console['error'](_0xfc6610(0x1b3),_0x1eb639);}}[a166_0x31b690(0x1be)](_0x1a72e8){const _0x74166f=a166_0x31b690;if(!this[_0x74166f(0x1c8)])return;const _0x3c6760=Logger[_0x74166f(0x1bc)](_0x1a72e8);this[_0x74166f(0x1c8)][_0x74166f(0x1c6)](_0x3c6760+'\x0a');}async[a166_0x31b690(0x1c5)](){return new Promise(_0x5828a5=>{const _0x1250eb=a166_0x30ce;this['logStream']?this[_0x1250eb(0x1c8)]['end'](()=>{const _0x125460=_0x1250eb;this[_0x125460(0x1c8)]=null,_0x5828a5();}):_0x5828a5();});}[a166_0x31b690(0x1c7)](){const _0x8d63fe=a166_0x31b690;return this[_0x8d63fe(0x1cd)];}async[a166_0x31b690(0x1bb)](){const _0x24e122=a166_0x31b690;try{const _0x33217f=await readdir(this['logDir']),_0x33b697=new Date()[_0x24e122(0x1b8)]()['split']('T')[0x0];if(_0x33217f[_0x24e122(0x1b9)](this[_0x24e122(0x1c9)])){const _0x4d1ba0=join(this['logDir'],this[_0x24e122(0x1c9)]),_0x2337b8=await stat(_0x4d1ba0),_0x4b721c=new Date(_0x2337b8['mtime'])[_0x24e122(0x1b8)]()[_0x24e122(0x1b7)]('T')[0x0];if(_0x4b721c<_0x33b697){const _0x5ba95f=join(this[_0x24e122(0x1b6)],this['logBaseName']+'-'+_0x4b721c+_0x24e122(0x1b1));await rename(_0x4d1ba0,_0x5ba95f);}}const _0x259185=await readdir(this[_0x24e122(0x1b6)]),_0x160975=this['logBaseName']['replace'](/[.*+?^${}()|[\]\\]/g,_0x24e122(0x1c4)),_0x3d174f=new RegExp('^'+_0x160975+_0x24e122(0x1cb)),_0x14d0c3=_0x259185[_0x24e122(0x1ba)](_0x16a504=>_0x3d174f['test'](_0x16a504));for(const _0x3e8079 of _0x14d0c3){const _0xfbb43=join(this[_0x24e122(0x1b6)],_0x3e8079),_0x4a40ad=join(this[_0x24e122(0x1b6)],_0x3e8079+_0x24e122(0x1c2));try{await pipeline(createReadStream(_0xfbb43),createGzip(),createWriteStream(_0x4a40ad)),await unlink(_0xfbb43);}catch(_0x461a65){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x3e8079+':',_0x461a65);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x333f95,_0x42a746){var _0x38a2f1=a167_0xcb75,_0x7b87d6=_0x333f95();while(!![]){try{var _0x418351=parseInt(_0x38a2f1(0x169))/0x1+parseInt(_0x38a2f1(0x166))/0x2*(parseInt(_0x38a2f1(0x16b))/0x3)+-parseInt(_0x38a2f1(0x167))/0x4*(-parseInt(_0x38a2f1(0x168))/0x5)+-parseInt(_0x38a2f1(0x163))/0x6*(parseInt(_0x38a2f1(0x162))/0x7)+-parseInt(_0x38a2f1(0x161))/0x8+-parseInt(_0x38a2f1(0x16a))/0x9*(-parseInt(_0x38a2f1(0x165))/0xa)+-parseInt(_0x38a2f1(0x16c))/0xb*(-parseInt(_0x38a2f1(0x164))/0xc);if(_0x418351===_0x42a746)break;else _0x7b87d6['push'](_0x7b87d6['shift']());}catch(_0x343e8d){_0x7b87d6['push'](_0x7b87d6['shift']());}}}(a167_0x1b4c,0xc0014));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a167_0xcb75(_0x22c91f,_0x1f0d24){_0x22c91f=_0x22c91f-0x161;var _0x1b4cae=a167_0x1b4c();var _0xcb75c9=_0x1b4cae[_0x22c91f];return _0xcb75c9;}export{NullHandler}from'./null-handler.js';function a167_0x1b4c(){var _0x2fb9bf=['352989bPYrPa','308SFbldZ','5258432XwkiRt','7JITIxP','8992806hEwFFl','41988QulWKU','18930gfwnce','22VwgWFg','1729724LgXlNY','5abrcPq','356875GyNLcG','3618hXGRMG'];a167_0x1b4c=function(){return _0x2fb9bf;};return a167_0x1b4c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a168_0x39459d=a168_0x1c30;(function(_0x1000bd,_0x4aa5ac){var _0xfae020=a168_0x1c30,_0x9b538b=_0x1000bd();while(!![]){try{var _0x32df1b=parseInt(_0xfae020(0x14a))/0x1+parseInt(_0xfae020(0x142))/0x2*(parseInt(_0xfae020(0x145))/0x3)+-parseInt(_0xfae020(0x148))/0x4*(parseInt(_0xfae020(0x149))/0x5)+parseInt(_0xfae020(0x147))/0x6*(-parseInt(_0xfae020(0x14b))/0x7)+parseInt(_0xfae020(0x143))/0x8+parseInt(_0xfae020(0x146))/0x9*(parseInt(_0xfae020(0x14d))/0xa)+-parseInt(_0xfae020(0x14c))/0xb;if(_0x32df1b===_0x4aa5ac)break;else _0x9b538b['push'](_0x9b538b['shift']());}catch(_0x5f2dea){_0x9b538b['push'](_0x9b538b['shift']());}}}(a168_0x29b6,0xbb3df));function a168_0x1c30(_0x24732b,_0x949a3f){_0x24732b=_0x24732b-0x142;var _0x29b628=a168_0x29b6();var _0x1c3002=_0x29b628[_0x24732b];return _0x1c3002;}export class NullHandler{[a168_0x39459d(0x144)](_0xeeae79){}}function a168_0x29b6(){var _0x2960a0=['8sptBBN','569770wdioNl','988740nFZFAJ','27769ONumxM','33231704mwAxwQ','790310rtYYpe','2792250RuNWuv','10016976kijRiM','handle','3TeBnLm','171vXEgyv','1698WVySWx'];a168_0x29b6=function(){return _0x2960a0;};return a168_0x29b6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6defd6,_0x45b6b7){var _0x4f22f4=a169_0x4ae3,_0x27857c=_0x6defd6();while(!![]){try{var _0x2c275c=parseInt(_0x4f22f4(0x15f))/0x1+-parseInt(_0x4f22f4(0x158))/0x2+parseInt(_0x4f22f4(0x15e))/0x3+parseInt(_0x4f22f4(0x15b))/0x4*(-parseInt(_0x4f22f4(0x15a))/0x5)+parseInt(_0x4f22f4(0x15d))/0x6+parseInt(_0x4f22f4(0x15c))/0x7+-parseInt(_0x4f22f4(0x159))/0x8;if(_0x2c275c===_0x45b6b7)break;else _0x27857c['push'](_0x27857c['shift']());}catch(_0x317618){_0x27857c['push'](_0x27857c['shift']());}}}(a169_0x352e,0xa3491));function a169_0x352e(){var _0x39c1bd=['3195873wlhYNk','902471AnwZqO','2159146UwiKlr','1433320gHJiKl','5zHjfcs','3640956wifuFi','1828015nzVxQW','3653322hoSTmn'];a169_0x352e=function(){return _0x39c1bd;};return a169_0x352e();}function a169_0x4ae3(_0x4cf881,_0x3b4d1d){_0x4cf881=_0x4cf881-0x158;var _0x352e48=a169_0x352e();var _0x4ae32f=_0x352e48[_0x4cf881];return _0x4ae32f;}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
|
-
|
|
1
|
+
const a170_0x51e76a=a170_0x921a;function a170_0x26f5(){const _0x133ecb=['set','split','function','string','handlers','11IHbpdL','warn','15vYZLNS','185612BlvLTE','1088532lEeFxl','initialized','69lpcMxk','addHandler','828093BKLrFv','2333530ruhFHp','join',']\x20[','isInitialized','handle','map','getEffectiveLevel','reset','entries','shouldLog','levelOverrides','get','message','ERROR','defaultLevel','log','shutdown','dispatch','init','close','clear','length','slice','loggers','formatter','timestamp','component','has','stringify','debug','TRACE','push','9442EEXfvp','info','setLogLevel','8PhXGpJ','trace','863088aFwrlk','INFO','name','format','pendingRecords','setDefaultLevel','2754xjXlAZ'];a170_0x26f5=function(){return _0x133ecb;};return a170_0x26f5();}(function(_0x13c3e3,_0x197b03){const _0x4599d2=a170_0x921a,_0x29e130=_0x13c3e3();while(!![]){try{const _0x3b9dd8=-parseInt(_0x4599d2(0xd8))/0x1+-parseInt(_0x4599d2(0xcd))/0x2*(-parseInt(_0x4599d2(0xe4))/0x3)+parseInt(_0x4599d2(0xe1))/0x4*(parseInt(_0x4599d2(0xe0))/0x5)+-parseInt(_0x4599d2(0xd2))/0x6+-parseInt(_0x4599d2(0xe6))/0x7*(-parseInt(_0x4599d2(0xd0))/0x8)+parseInt(_0x4599d2(0xe2))/0x9+-parseInt(_0x4599d2(0xe7))/0xa*(parseInt(_0x4599d2(0xde))/0xb);if(_0x3b9dd8===_0x197b03)break;else _0x29e130['push'](_0x29e130['shift']());}catch(_0x39db0b){_0x29e130['push'](_0x29e130['shift']());}}}(a170_0x26f5,0x1a24c));import{LogLevel as a170_0x252abe,logLevelToString}from'./types.js';function a170_0x921a(_0x3d6144,_0xbec02b){_0x3d6144=_0x3d6144-0xbd;const _0x26f5e5=a170_0x26f5();let _0x921a10=_0x26f5e5[_0x3d6144];return _0x921a10;}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a170_0x252abe[a170_0x51e76a(0xd3)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x1a2192){const _0x455b25=a170_0x51e76a;if(typeof _0x1a2192===_0x455b25(0xdc))return _0x1a2192;if(_0x1a2192 instanceof Error)return _0x1a2192['stack']||_0x1a2192[_0x455b25(0xd4)]+':\x20'+_0x1a2192[_0x455b25(0xf3)];try{return JSON[_0x455b25(0xc9)](_0x1a2192,(_0x244fa7,_0x2d843e)=>{const _0x7a5677=_0x455b25;if(_0x2d843e instanceof Error)return{'name':_0x2d843e[_0x7a5677(0xd4)],'message':_0x2d843e['message'],'stack':_0x2d843e['stack'],'cause':_0x2d843e['cause']};return _0x2d843e;});}catch{return String(_0x1a2192);}}export class Logger{[a170_0x51e76a(0xc7)];constructor(_0x491997){const _0x184c7e=a170_0x51e76a;this[_0x184c7e(0xc7)]=_0x491997;}static['of'](_0x4e8417){const _0x3c68d4=a170_0x51e76a,_0x4ef226=typeof _0x4e8417===_0x3c68d4(0xdc)?_0x4e8417:_0x4e8417[_0x3c68d4(0xd4)];let _0x442abd=state['loggers'][_0x3c68d4(0xf2)](_0x4ef226);return!_0x442abd&&(_0x442abd=new Logger(_0x4ef226),state[_0x3c68d4(0xc4)]['set'](_0x4ef226,_0x442abd)),_0x442abd;}static async['init'](_0x372950={}){const _0x1f493e=a170_0x51e76a;state['defaultLevel']=_0x372950[_0x1f493e(0xf5)]??a170_0x252abe[_0x1f493e(0xd3)],state[_0x1f493e(0xdd)]=_0x372950[_0x1f493e(0xdd)]??[],state[_0x1f493e(0xc5)]=_0x372950[_0x1f493e(0xc5)]??null,state[_0x1f493e(0xf1)][_0x1f493e(0xc1)]();if(_0x372950[_0x1f493e(0xf1)])for(const [_0x3a1f7e,_0x595309]of Object[_0x1f493e(0xef)](_0x372950[_0x1f493e(0xf1)])){state[_0x1f493e(0xf1)]['set'](_0x3a1f7e,_0x595309);}for(const _0x59536d of state['handlers']){_0x59536d['init']&&await _0x59536d[_0x1f493e(0xbf)]();}state[_0x1f493e(0xe3)]=!![];for(const _0x2ad813 of state[_0x1f493e(0xd6)]){Logger[_0x1f493e(0xbe)](_0x2ad813);}state[_0x1f493e(0xd6)]=[];}static[a170_0x51e76a(0xcf)](_0x190527,_0x121084){const _0x52c808=a170_0x51e76a;state[_0x52c808(0xf1)][_0x52c808(0xd9)](_0x190527,_0x121084);}static[a170_0x51e76a(0xd7)](_0x141d87){state['defaultLevel']=_0x141d87;}static[a170_0x51e76a(0xe5)](_0x36239b){const _0x47e80d=a170_0x51e76a;state[_0x47e80d(0xdd)][_0x47e80d(0xcc)](_0x36239b),state[_0x47e80d(0xe3)]&&_0x36239b['init']&&_0x36239b[_0x47e80d(0xbf)]();}static['clearHandlers'](){const _0x1ef6e0=a170_0x51e76a;state[_0x1ef6e0(0xdd)]=[];}static async[a170_0x51e76a(0xbd)](){const _0x37460c=a170_0x51e76a;for(const _0x446c8a of state['handlers']){_0x446c8a[_0x37460c(0xc0)]&&await _0x446c8a[_0x37460c(0xc0)]();}state[_0x37460c(0xdd)]=[],state[_0x37460c(0xe3)]=![],state[_0x37460c(0xc4)]['clear'](),state[_0x37460c(0xd6)]=[];}static[a170_0x51e76a(0xee)](){const _0x288f00=a170_0x51e76a;state[_0x288f00(0xe3)]=![],state[_0x288f00(0xf5)]=a170_0x252abe['INFO'],state['levelOverrides'][_0x288f00(0xc1)](),state['handlers']=[],state['formatter']=null,state[_0x288f00(0xc4)][_0x288f00(0xc1)](),state[_0x288f00(0xd6)]=[];}static[a170_0x51e76a(0xea)](){const _0x3bfa2d=a170_0x51e76a;return state[_0x3bfa2d(0xe3)];}static[a170_0x51e76a(0xed)](_0x327458){const _0x2419f3=a170_0x51e76a;if(state['levelOverrides']['has'](_0x327458))return state[_0x2419f3(0xf1)][_0x2419f3(0xf2)](_0x327458);const _0x3acc37=_0x327458[_0x2419f3(0xda)]('.');for(let _0x4b6a7a=_0x3acc37[_0x2419f3(0xc2)]-0x1;_0x4b6a7a>0x0;_0x4b6a7a--){const _0x22603a=_0x3acc37[_0x2419f3(0xc3)](0x0,_0x4b6a7a)[_0x2419f3(0xe8)]('.');if(state[_0x2419f3(0xf1)][_0x2419f3(0xc8)](_0x22603a))return state['levelOverrides']['get'](_0x22603a);}return state['defaultLevel'];}[a170_0x51e76a(0xf0)](_0x3d74dd){const _0xb72842=a170_0x51e76a,_0x29915a=Logger[_0xb72842(0xed)](this['component']);return _0x3d74dd>=_0x29915a;}static[a170_0x51e76a(0xbe)](_0x1fbb30){const _0x5be189=a170_0x51e76a;for(const _0x9c99d3 of state[_0x5be189(0xdd)]){_0x9c99d3[_0x5be189(0xeb)](_0x1fbb30);}}[a170_0x51e76a(0xf6)](_0x1438bb,_0x7137a2){const _0xbb9ec4=a170_0x51e76a;if(!this[_0xbb9ec4(0xf0)](_0x1438bb))return;const _0x149573=_0x7137a2[_0xbb9ec4(0xec)](_0x1fc473=>typeof _0x1fc473===_0xbb9ec4(0xdb)?_0x1fc473():_0x1fc473),_0x2caa67=_0x149573[_0xbb9ec4(0xec)](safeStringify)[_0xbb9ec4(0xe8)]('\x20'),_0x2fb79a={'timestamp':new Date(),'level':_0x1438bb,'component':this[_0xbb9ec4(0xc7)],'message':_0x2caa67};if(!state[_0xbb9ec4(0xe3)]){state[_0xbb9ec4(0xd6)][_0xbb9ec4(0xc2)]<MAX_PENDING_RECORDS&&state[_0xbb9ec4(0xd6)][_0xbb9ec4(0xcc)](_0x2fb79a);return;}Logger[_0xbb9ec4(0xbe)](_0x2fb79a);}[a170_0x51e76a(0xd1)](..._0x910114){const _0x292694=a170_0x51e76a;this[_0x292694(0xf6)](a170_0x252abe[_0x292694(0xcb)],_0x910114);}[a170_0x51e76a(0xca)](..._0x59e326){const _0x2e5120=a170_0x51e76a;this[_0x2e5120(0xf6)](a170_0x252abe['DEBUG'],_0x59e326);}[a170_0x51e76a(0xce)](..._0x4b2f0c){const _0x8ded1=a170_0x51e76a;this[_0x8ded1(0xf6)](a170_0x252abe[_0x8ded1(0xd3)],_0x4b2f0c);}[a170_0x51e76a(0xdf)](..._0x447b92){const _0x561e56=a170_0x51e76a;this[_0x561e56(0xf6)](a170_0x252abe['WARN'],_0x447b92);}['error'](..._0x4516a5){const _0x14ac24=a170_0x51e76a;this[_0x14ac24(0xf6)](a170_0x252abe[_0x14ac24(0xf4)],_0x4516a5);}static['getFormatter'](){return state['formatter'];}static[a170_0x51e76a(0xd5)](_0x167e12){const _0xc2a870=a170_0x51e76a;if(state[_0xc2a870(0xc5)])return state['formatter'][_0xc2a870(0xd5)](_0x167e12);return _0x167e12[_0xc2a870(0xc6)]['toISOString']()+'\x20['+logLevelToString(_0x167e12['level'])+_0xc2a870(0xe9)+_0x167e12[_0xc2a870(0xc7)]+']\x20'+_0x167e12[_0xc2a870(0xf3)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x19301f,_0x52e049){const _0x40f846=a171_0x4f42,_0xb136f7=_0x19301f();while(!![]){try{const _0x2b34ca=-parseInt(_0x40f846(0x17f))/0x1+parseInt(_0x40f846(0x18b))/0x2+parseInt(_0x40f846(0x189))/0x3+-parseInt(_0x40f846(0x194))/0x4+-parseInt(_0x40f846(0x180))/0x5+-parseInt(_0x40f846(0x195))/0x6+parseInt(_0x40f846(0x18a))/0x7;if(_0x2b34ca===_0x52e049)break;else _0xb136f7['push'](_0xb136f7['shift']());}catch(_0xe81564){_0xb136f7['push'](_0xb136f7['shift']());}}}(a171_0x523b,0x90955));function a171_0x4f42(_0x5625b3,_0x2d4680){_0x5625b3=_0x5625b3-0x17e;const _0x523b27=a171_0x523b();let _0x4f42d5=_0x523b27[_0x5625b3];return _0x4f42d5;}export var LogLevel;function a171_0x523b(){const _0x4f8f1c=['WARN','INFO','getFullYear','warn','DEBUG','getMilliseconds','getMinutes','toString','2684908EMRjaw','5962500tnAujK','abs','TRACE','1115726GVKXQV','5411945DGhIlo','padStart','info','getTimezoneOffset','trace','error','debug','ERROR','getHours','570549JryBTB','28476616Cikqig','394068hCROrD'];a171_0x523b=function(){return _0x4f8f1c;};return a171_0x523b();}(function(_0x8dd660){const _0x553844=a171_0x4f42;_0x8dd660[_0x8dd660['TRACE']=-0x2]='TRACE',_0x8dd660[_0x8dd660['DEBUG']=-0x1]=_0x553844(0x190),_0x8dd660[_0x8dd660[_0x553844(0x18d)]=0x0]='INFO',_0x8dd660[_0x8dd660[_0x553844(0x18c)]=0x1]=_0x553844(0x18c),_0x8dd660[_0x8dd660['ERROR']=0x2]=_0x553844(0x187);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x259e67){const _0x1d257e=a171_0x4f42;switch(_0x259e67['toUpperCase']()){case _0x1d257e(0x17e):return LogLevel[_0x1d257e(0x17e)];case _0x1d257e(0x190):return LogLevel['DEBUG'];case _0x1d257e(0x18d):return LogLevel['INFO'];case'WARN':case'WARNING':return LogLevel[_0x1d257e(0x18c)];case _0x1d257e(0x187):return LogLevel[_0x1d257e(0x187)];default:return LogLevel[_0x1d257e(0x18d)];}}export function logLevelToString(_0x1ade22){const _0x40d3a6=a171_0x4f42;switch(_0x1ade22){case LogLevel[_0x40d3a6(0x17e)]:return _0x40d3a6(0x184);case LogLevel[_0x40d3a6(0x190)]:return _0x40d3a6(0x186);case LogLevel[_0x40d3a6(0x18d)]:return'info';case LogLevel[_0x40d3a6(0x18c)]:return _0x40d3a6(0x18f);case LogLevel['ERROR']:return _0x40d3a6(0x185);default:return _0x40d3a6(0x182);}}export function formatTimestamp(_0xaa01b5){const _0x2ee5d8=a171_0x4f42,_0x4b4acb=_0xaa01b5[_0x2ee5d8(0x18e)](),_0x403969=(_0xaa01b5['getMonth']()+0x1)[_0x2ee5d8(0x193)]()['padStart'](0x2,'0'),_0x295be6=_0xaa01b5['getDate']()[_0x2ee5d8(0x193)]()[_0x2ee5d8(0x181)](0x2,'0'),_0x39de5d=_0xaa01b5[_0x2ee5d8(0x188)]()[_0x2ee5d8(0x193)]()[_0x2ee5d8(0x181)](0x2,'0'),_0x3e3245=_0xaa01b5[_0x2ee5d8(0x192)]()['toString']()[_0x2ee5d8(0x181)](0x2,'0'),_0x5e3b62=_0xaa01b5['getSeconds']()[_0x2ee5d8(0x193)]()[_0x2ee5d8(0x181)](0x2,'0'),_0x3c593b=_0xaa01b5[_0x2ee5d8(0x191)]()['toString']()[_0x2ee5d8(0x181)](0x3,'0'),_0x239c00=-_0xaa01b5[_0x2ee5d8(0x183)](),_0x3087f5=Math['floor'](Math[_0x2ee5d8(0x196)](_0x239c00)/0x3c),_0x47116e=Math['abs'](_0x239c00)%0x3c,_0x5e5ff1=_0x239c00>=0x0?'+':'-',_0xf3d765=''+_0x5e5ff1+_0x3087f5[_0x2ee5d8(0x193)]()[_0x2ee5d8(0x181)](0x2,'0')+_0x47116e['toString']()[_0x2ee5d8(0x181)](0x2,'0');return _0x4b4acb+'-'+_0x403969+'-'+_0x295be6+'\x20'+_0x39de5d+':'+_0x3e3245+':'+_0x5e3b62+'.'+_0x3c593b+_0xf3d765;}
|