@treasuredata/tdx 2026.3.10 → 2026.3.12
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/auth-login-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/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-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/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/schedule-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/upgrade-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/oauth-keychain.js +1 -1
- package/dist/core/oauth.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/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.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/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-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/oauth-refresh.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/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.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-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.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-validator.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-recovery.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/segment-validator.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/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.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/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.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/file-reader.js +1 -1
- package/dist/utils/github-releases.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/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/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a187_0x19ef(){const _0x213f84=['1168kXjCwC','1027130DeOWuw','359132gdHvaF','6dzAlsK','push','1968470YmlHaM','2337568dnQQwN','4541904kIVmwY','map','1488pYkcnY','all','slice','63327lXsSaI'];a187_0x19ef=function(){return _0x213f84;};return a187_0x19ef();}(function(_0x12711d,_0x153c71){const _0xe197a=a187_0x47aa,_0x46cd20=_0x12711d();while(!![]){try{const _0x3d0ab2=-parseInt(_0xe197a(0x91))/0x1+parseInt(_0xe197a(0x92))/0x2*(parseInt(_0xe197a(0x8e))/0x3)+parseInt(_0xe197a(0x94))/0x4+parseInt(_0xe197a(0x93))/0x5*(-parseInt(_0xe197a(0x95))/0x6)+parseInt(_0xe197a(0x8a))/0x7+parseInt(_0xe197a(0x8b))/0x8+-parseInt(_0xe197a(0x8c))/0x9;if(_0x3d0ab2===_0x153c71)break;else _0x46cd20['push'](_0x46cd20['shift']());}catch(_0x2af0c9){_0x46cd20['push'](_0x46cd20['shift']());}}}(a187_0x19ef,0x2bcf4));function a187_0x47aa(_0x4b762b,_0xfc2b78){_0x4b762b=_0x4b762b-0x8a;const _0x19efbd=a187_0x19ef();let _0x47aac5=_0x19efbd[_0x4b762b];return _0x47aac5;}export async function batchAsync(_0x599779,_0x17b5b1,_0x54f06f=0xa){const _0x2fcaab=a187_0x47aa,_0x11c1cf=[];for(let _0x254367=0x0;_0x254367<_0x599779['length'];_0x254367+=_0x54f06f){const _0x1a2aa0=_0x599779[_0x2fcaab(0x90)](_0x254367,_0x254367+_0x54f06f),_0x5bb1a2=await Promise[_0x2fcaab(0x8f)](_0x1a2aa0[_0x2fcaab(0x8d)](_0x17b5b1));_0x11c1cf[_0x2fcaab(0x96)](..._0x5bb1a2);}return _0x11c1cf;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a188_0xfec9(){const _0x51a42b=['1054770aCEWDe','4KvOnsn','number','86254JDytTw','isTTY','dim','1551aOQCGY','string','18LnegXg','Chalk','stdout','cyan','noColor','boolean','70ZxmcZF','entries','repeat','4059696BSRHMJ','length','1437304lwewlD','stringify','5IyRXUz','null','yellow','80772CWBinr','map','color','blue','join','21543QseHGv','26392mSSDKp'];a188_0xfec9=function(){return _0x51a42b;};return a188_0xfec9();}const a188_0x3a99f8=a188_0x455a;(function(_0x54aa1b,_0x49dbd0){const _0x3a4a79=a188_0x455a,_0x3d5beb=_0x54aa1b();while(!![]){try{const _0x25fd85=parseInt(_0x3a4a79(0x9c))/0x1*(parseInt(_0x3a4a79(0xab))/0x2)+parseInt(_0x3a4a79(0x9b))/0x3*(-parseInt(_0x3a4a79(0x9e))/0x4)+parseInt(_0x3a4a79(0x93))/0x5*(-parseInt(_0x3a4a79(0xae))/0x6)+parseInt(_0x3a4a79(0xa0))/0x7+-parseInt(_0x3a4a79(0xb0))/0x8*(parseInt(_0x3a4a79(0xa5))/0x9)+-parseInt(_0x3a4a79(0x9d))/0xa+-parseInt(_0x3a4a79(0xa3))/0xb*(-parseInt(_0x3a4a79(0x96))/0xc);if(_0x25fd85===_0x49dbd0)break;else _0x3d5beb['push'](_0x3d5beb['shift']());}catch(_0x4580bd){_0x3d5beb['push'](_0x3d5beb['shift']());}}}(a188_0xfec9,0xb3d01));import*as a188_0x3982c0 from'chalk';const Chalk=a188_0x3982c0[a188_0x3a99f8(0xa6)];export function shouldUseColor(_0x3aa098={}){const _0x38888b=a188_0x3a99f8;if(_0x3aa098[_0x38888b(0xa9)]===!![])return![];if(_0x3aa098[_0x38888b(0x98)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x38888b(0xa7)][_0x38888b(0xa1)]??![];}export function getChalk(_0x26c68b={}){if(shouldUseColor(_0x26c68b))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x27342f,_0x1a05da={}){const _0x48e1eb=a188_0x3a99f8;return getChalk(_0x1a05da)[_0x48e1eb(0xa2)](_0x27342f);}export function colorHeader(_0x39a401,_0x3947e2={}){const _0xb0c357=a188_0x3a99f8;return getChalk(_0x3947e2)[_0xb0c357(0xa8)](_0x39a401);}export function colorType(_0x3c4997,_0x2ab05e={}){const _0x4c63bb=a188_0x3a99f8;return getChalk(_0x2ab05e)[_0x4c63bb(0xa2)](_0x3c4997);}export function colorJSONKey(_0x1e1150,_0x561660={}){const _0xb1c2b8=a188_0x3a99f8;return getChalk(_0x561660)[_0xb1c2b8(0x99)](_0x1e1150);}export function colorJSONString(_0x3de0b5,_0x9993b7={}){return getChalk(_0x9993b7)['green'](_0x3de0b5);}function a188_0x455a(_0x28daad,_0x5a5219){_0x28daad=_0x28daad-0x92;const _0xfec942=a188_0xfec9();let _0x455ae3=_0xfec942[_0x28daad];return _0x455ae3;}export function colorJSONNumber(_0x273c16,_0x1c9293={}){return getChalk(_0x1c9293)['cyan'](_0x273c16);}export function colorJSONBoolean(_0x4cffd5,_0x4832df={}){const _0x119085=a188_0x3a99f8;return getChalk(_0x4832df)[_0x119085(0x95)](_0x4cffd5);}export function colorJSONNull(_0x281fee,_0x37209b={}){return getChalk(_0x37209b)['dim'](_0x281fee);}export function colorizeJSONCompact(_0x14d971,_0x2dea4d={}){const _0x2c35f5=a188_0x3a99f8;if(!shouldUseColor(_0x2dea4d))return JSON[_0x2c35f5(0x92)](_0x14d971);if(_0x14d971===null)return colorJSONNull(_0x2c35f5(0x94),_0x2dea4d);if(typeof _0x14d971==='boolean')return colorJSONBoolean(String(_0x14d971),_0x2dea4d);if(typeof _0x14d971==='number')return colorJSONNumber(String(_0x14d971),_0x2dea4d);if(typeof _0x14d971===_0x2c35f5(0xa4))return colorJSONString(JSON['stringify'](_0x14d971),_0x2dea4d);if(Array['isArray'](_0x14d971)){if(_0x14d971['length']===0x0)return'[]';const _0x630fa4=_0x14d971[_0x2c35f5(0x97)](_0x240068=>colorizeJSONCompact(_0x240068,_0x2dea4d));return'['+_0x630fa4[_0x2c35f5(0x9a)](',')+']';}if(typeof _0x14d971==='object'){const _0x533c59=Object['entries'](_0x14d971);if(_0x533c59[_0x2c35f5(0xaf)]===0x0)return'{}';const _0x3b8887=_0x533c59['map'](([_0x5312c8,_0x595a7b])=>{const _0x26891b=_0x2c35f5,_0x442e54=colorJSONKey(JSON[_0x26891b(0x92)](_0x5312c8),_0x2dea4d),_0x203347=colorizeJSONCompact(_0x595a7b,_0x2dea4d);return _0x442e54+':'+_0x203347;});return'{'+_0x3b8887['join'](',')+'}';}return String(_0x14d971);}export function colorizeJSON(_0x4e89cb,_0x53c372={},_0xc0f6bd=0x0){const _0x50fbcc=a188_0x3a99f8;if(!shouldUseColor(_0x53c372))return JSON[_0x50fbcc(0x92)](_0x4e89cb,null,0x2);const _0x1dbb0b='\x20'[_0x50fbcc(0xad)](_0xc0f6bd),_0x15e07d=_0xc0f6bd+0x2;if(_0x4e89cb===null)return colorJSONNull(_0x50fbcc(0x94),_0x53c372);if(typeof _0x4e89cb===_0x50fbcc(0xaa))return colorJSONBoolean(String(_0x4e89cb),_0x53c372);if(typeof _0x4e89cb===_0x50fbcc(0x9f))return colorJSONNumber(String(_0x4e89cb),_0x53c372);if(typeof _0x4e89cb==='string')return colorJSONString(JSON[_0x50fbcc(0x92)](_0x4e89cb),_0x53c372);if(Array['isArray'](_0x4e89cb)){if(_0x4e89cb[_0x50fbcc(0xaf)]===0x0)return'[]';const _0x16e67d=_0x4e89cb[_0x50fbcc(0x97)](_0x531988=>{const _0x563e30=_0x50fbcc,_0x6ca3f2=colorizeJSON(_0x531988,_0x53c372,_0x15e07d);return''+'\x20'[_0x563e30(0xad)](_0x15e07d)+_0x6ca3f2;});return'[\x0a'+_0x16e67d['join'](',\x0a')+('\x0a'+_0x1dbb0b+']');}if(typeof _0x4e89cb==='object'){const _0x5c9c89=Object[_0x50fbcc(0xac)](_0x4e89cb);if(_0x5c9c89['length']===0x0)return'{}';const _0x5472cf=_0x5c9c89[_0x50fbcc(0x97)](([_0x172ce6,_0x129092])=>{const _0x31de4c=_0x50fbcc,_0x5c99e2=colorJSONKey(JSON[_0x31de4c(0x92)](_0x172ce6),_0x53c372),_0x3840f6=colorizeJSON(_0x129092,_0x53c372,_0x15e07d);return''+'\x20'[_0x31de4c(0xad)](_0x15e07d)+_0x5c99e2+':\x20'+_0x3840f6;});return'{\x0a'+_0x5472cf['join'](',\x0a')+('\x0a'+_0x1dbb0b+'}');}return String(_0x4e89cb);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x533503,_0x2359e1){const _0x2129c9=a189_0x14a3,_0x1480ad=_0x533503();while(!![]){try{const _0x3cd8f8=-parseInt(_0x2129c9(0x199))/0x1+parseInt(_0x2129c9(0x190))/0x2*(-parseInt(_0x2129c9(0x189))/0x3)+parseInt(_0x2129c9(0x19e))/0x4+parseInt(_0x2129c9(0x198))/0x5+parseInt(_0x2129c9(0x19c))/0x6*(parseInt(_0x2129c9(0x18b))/0x7)+parseInt(_0x2129c9(0x18c))/0x8+-parseInt(_0x2129c9(0x195))/0x9;if(_0x3cd8f8===_0x2359e1)break;else _0x1480ad['push'](_0x1480ad['shift']());}catch(_0x3a01ad){_0x1480ad['push'](_0x1480ad['shift']());}}}(a189_0x255e,0xe325e));import a189_0x1d1353 from'chalk';export function generateDiff(_0x35c698,_0x142b62){const _0x52b39a=a189_0x14a3,_0x19dc4a=_0x35c698[_0x52b39a(0x185)]('\x0a'),_0x33c5ba=_0x142b62[_0x52b39a(0x185)]('\x0a'),_0x136ed4=[],_0x5b1f04=computeLCS(_0x19dc4a,_0x33c5ba);let _0x18026e=0x0,_0x4a06b9=0x0,_0x1f808c=0x0;while(_0x18026e<_0x19dc4a[_0x52b39a(0x183)]||_0x4a06b9<_0x33c5ba[_0x52b39a(0x183)]){if(_0x1f808c<_0x5b1f04[_0x52b39a(0x183)]&&_0x18026e<_0x19dc4a[_0x52b39a(0x183)]&&_0x19dc4a[_0x18026e]===_0x5b1f04[_0x1f808c])_0x4a06b9<_0x33c5ba[_0x52b39a(0x183)]&&_0x33c5ba[_0x4a06b9]===_0x5b1f04[_0x1f808c]?(_0x136ed4[_0x52b39a(0x18e)]({'type':_0x52b39a(0x19f),'content':_0x19dc4a[_0x18026e]}),_0x18026e++,_0x4a06b9++,_0x1f808c++):(_0x136ed4[_0x52b39a(0x18e)]({'type':'added','content':_0x33c5ba[_0x4a06b9]}),_0x4a06b9++);else{if(_0x1f808c<_0x5b1f04[_0x52b39a(0x183)]&&_0x4a06b9<_0x33c5ba[_0x52b39a(0x183)]&&_0x33c5ba[_0x4a06b9]===_0x5b1f04[_0x1f808c])_0x136ed4[_0x52b39a(0x18e)]({'type':_0x52b39a(0x181),'content':_0x19dc4a[_0x18026e]}),_0x18026e++;else{if(_0x18026e<_0x19dc4a['length']&&(_0x1f808c>=_0x5b1f04['length']||_0x19dc4a[_0x18026e]!==_0x5b1f04[_0x1f808c]))_0x136ed4[_0x52b39a(0x18e)]({'type':_0x52b39a(0x181),'content':_0x19dc4a[_0x18026e]}),_0x18026e++;else _0x4a06b9<_0x33c5ba[_0x52b39a(0x183)]&&(_0x136ed4[_0x52b39a(0x18e)]({'type':_0x52b39a(0x18f),'content':_0x33c5ba[_0x4a06b9]}),_0x4a06b9++);}}}return _0x136ed4;}function a189_0x255e(){const _0xdbe8aa=['cyan','\x20+\x20','size','old','repeat','removed','add','length','forEach','split','dim','fill','red','3GOrIGz','has','7BfrpzY','3572000LFmiPK','content','push','added','2013112ouGRFi','some','green','join','min','8988759eOlEvf','\x20\x20\x20','new','8078285ZvGwiD','1677167kUFfuh','max','type','10768314wIPUpx','\x20-\x20','3023984JLIynR','unchanged','padStart'];a189_0x255e=function(){return _0xdbe8aa;};return a189_0x255e();}function a189_0x14a3(_0x2c1e72,_0x2bd839){_0x2c1e72=_0x2c1e72-0x181;const _0x255e50=a189_0x255e();let _0x14a3ff=_0x255e50[_0x2c1e72];return _0x14a3ff;}function computeLCS(_0x1466b0,_0x2ddf26){const _0x4e400c=a189_0x14a3,_0x23dd91=_0x1466b0[_0x4e400c(0x183)],_0x36ff03=_0x2ddf26[_0x4e400c(0x183)],_0x4039ec=Array(_0x23dd91+0x1)[_0x4e400c(0x187)](null)['map'](()=>Array(_0x36ff03+0x1)[_0x4e400c(0x187)](0x0));for(let _0x3e1d3c=0x1;_0x3e1d3c<=_0x23dd91;_0x3e1d3c++){for(let _0x3674e1=0x1;_0x3674e1<=_0x36ff03;_0x3674e1++){_0x1466b0[_0x3e1d3c-0x1]===_0x2ddf26[_0x3674e1-0x1]?_0x4039ec[_0x3e1d3c][_0x3674e1]=_0x4039ec[_0x3e1d3c-0x1][_0x3674e1-0x1]+0x1:_0x4039ec[_0x3e1d3c][_0x3674e1]=Math[_0x4e400c(0x19a)](_0x4039ec[_0x3e1d3c-0x1][_0x3674e1],_0x4039ec[_0x3e1d3c][_0x3674e1-0x1]);}}const _0x1ed621=[];let _0x520179=_0x23dd91,_0x2aa209=_0x36ff03;while(_0x520179>0x0&&_0x2aa209>0x0){if(_0x1466b0[_0x520179-0x1]===_0x2ddf26[_0x2aa209-0x1])_0x1ed621['unshift'](_0x1466b0[_0x520179-0x1]),_0x520179--,_0x2aa209--;else _0x4039ec[_0x520179-0x1][_0x2aa209]>_0x4039ec[_0x520179][_0x2aa209-0x1]?_0x520179--:_0x2aa209--;}return _0x1ed621;}export function formatDiffWithColors(_0x171217,_0x3e1daa=0x3){const _0x897315=a189_0x14a3,_0x4bd101=new Set();_0x171217[_0x897315(0x184)]((_0x77163b,_0x31501d)=>{const _0x3a3a94=_0x897315;_0x77163b[_0x3a3a94(0x19b)]!==_0x3a3a94(0x19f)&&_0x4bd101['add'](_0x31501d);});if(_0x4bd101[_0x897315(0x1a3)]===0x0)return'';const _0x5570f3=new Set();for(const _0x25fa1f of _0x4bd101){for(let _0x3a8902=Math[_0x897315(0x19a)](0x0,_0x25fa1f-_0x3e1daa);_0x3a8902<=Math[_0x897315(0x194)](_0x171217['length']-0x1,_0x25fa1f+_0x3e1daa);_0x3a8902++){_0x5570f3[_0x897315(0x182)](_0x3a8902);}}const _0x382ae2=[];let _0x38c4fd=-0x1;const _0x1ecbe8=_0x171217[_0x897315(0x183)],_0x3f3bfe=Math[_0x897315(0x19a)](0x3,String(_0x1ecbe8)[_0x897315(0x183)]),_0x2a3ef9=[];let _0x62422d=0x0,_0x6195b3=0x0;for(const _0x310c62 of _0x171217){if(_0x310c62[_0x897315(0x19b)]==='removed')_0x62422d++,_0x2a3ef9[_0x897315(0x18e)]({'old':_0x62422d,'new':0x0});else _0x310c62['type']===_0x897315(0x18f)?(_0x6195b3++,_0x2a3ef9[_0x897315(0x18e)]({'old':0x0,'new':_0x6195b3})):(_0x62422d++,_0x6195b3++,_0x2a3ef9[_0x897315(0x18e)]({'old':_0x62422d,'new':_0x6195b3}));}for(let _0x1fe050=0x0;_0x1fe050<_0x171217[_0x897315(0x183)];_0x1fe050++){if(!_0x5570f3[_0x897315(0x18a)](_0x1fe050))continue;_0x38c4fd!==-0x1&&_0x1fe050>_0x38c4fd+0x1&&_0x382ae2[_0x897315(0x18e)](a189_0x1d1353[_0x897315(0x1a1)]('\x20\x20...'));_0x38c4fd=_0x1fe050;const _0x4c03ec=_0x171217[_0x1fe050],_0x4b0dc7=_0x2a3ef9[_0x1fe050],_0x2f0ef1=_0x4b0dc7[_0x897315(0x1a4)]>0x0?String(_0x4b0dc7[_0x897315(0x1a4)])[_0x897315(0x1a0)](_0x3f3bfe):'\x20'['repeat'](_0x3f3bfe),_0x5f27ff=_0x4b0dc7[_0x897315(0x197)]>0x0?String(_0x4b0dc7[_0x897315(0x197)])[_0x897315(0x1a0)](_0x3f3bfe):'\x20'[_0x897315(0x1a5)](_0x3f3bfe);switch(_0x4c03ec[_0x897315(0x19b)]){case _0x897315(0x181):_0x382ae2[_0x897315(0x18e)](a189_0x1d1353[_0x897315(0x188)](_0x2f0ef1+'\x20'+_0x5f27ff+_0x897315(0x19d)+_0x4c03ec[_0x897315(0x18d)]));break;case _0x897315(0x18f):_0x382ae2['push'](a189_0x1d1353[_0x897315(0x192)](_0x2f0ef1+'\x20'+_0x5f27ff+_0x897315(0x1a2)+_0x4c03ec[_0x897315(0x18d)]));break;default:_0x382ae2[_0x897315(0x18e)](a189_0x1d1353[_0x897315(0x186)](_0x2f0ef1+'\x20'+_0x5f27ff+_0x897315(0x196)+_0x4c03ec[_0x897315(0x18d)]));break;}}return _0x382ae2[_0x897315(0x193)]('\x0a');}export function hasChanges(_0x477ceb){const _0x3608ce=a189_0x14a3;return _0x477ceb[_0x3608ce(0x191)](_0x5e3e6e=>_0x5e3e6e['type']!==_0x3608ce(0x19f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf296c1,_0x173ea0){const _0x46169c=a190_0x4c26,_0x5492e2=_0xf296c1();while(!![]){try{const _0x18f5bb=parseInt(_0x46169c(0x175))/0x1+parseInt(_0x46169c(0x182))/0x2*(-parseInt(_0x46169c(0x181))/0x3)+parseInt(_0x46169c(0x176))/0x4+-parseInt(_0x46169c(0x187))/0x5*(-parseInt(_0x46169c(0x178))/0x6)+-parseInt(_0x46169c(0x189))/0x7*(parseInt(_0x46169c(0x18a))/0x8)+parseInt(_0x46169c(0x179))/0x9+-parseInt(_0x46169c(0x17c))/0xa*(parseInt(_0x46169c(0x17b))/0xb);if(_0x18f5bb===_0x173ea0)break;else _0x5492e2['push'](_0x5492e2['shift']());}catch(_0x48b5d3){_0x5492e2['push'](_0x5492e2['shift']());}}}(a190_0x1f26,0x41138));import*as a190_0x2b6a43 from'node:fs';function a190_0x4c26(_0x2f9545,_0x2cb33a){_0x2f9545=_0x2f9545-0x175;const _0x1f2668=a190_0x1f26();let _0x4c261f=_0x1f2668[_0x2f9545];return _0x4c261f;}function a190_0x1f26(){const _0x3dcf29=['toString','mkdirSync','15TybaiU','96956FFyFox','mode','Should\x20be\x200600\x20or\x20more\x20restrictive.','\x20has\x20insecure\x20permissions\x20(','warn','5MNtffu','writeFileSync','450443tOhuNu','8QTMgqX','statSync','75189DLDhOK','1179292DWVpbR','existsSync','1295610eEfIwM','2252610puSjno','Warning:\x20','11qvmhIM','2629460icqiNV','chmodSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'];a190_0x1f26=function(){return _0x3dcf29;};return a190_0x1f26();}import*as a190_0x4af22f from'node:path';export function setSecureFilePermissions(_0x8aa217){const _0x1ad9a9=a190_0x4c26;try{a190_0x2b6a43[_0x1ad9a9(0x17d)](_0x8aa217,0x180);}catch{console[_0x1ad9a9(0x186)](_0x1ad9a9(0x17e)+_0x8aa217);}}export function setSecureDirectoryPermissions(_0x426c6f){const _0x212a7d=a190_0x4c26;try{a190_0x2b6a43[_0x212a7d(0x17d)](_0x426c6f,0x1c0);}catch{console[_0x212a7d(0x186)](_0x212a7d(0x17e)+_0x426c6f);}}export function createSecureDirectory(_0x326168){const _0x1ecc42=a190_0x4c26;!a190_0x2b6a43[_0x1ecc42(0x177)](_0x326168)&&(a190_0x2b6a43[_0x1ecc42(0x180)](_0x326168,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x326168));}export function validateSecureFilePermissions(_0x30d236){const _0x55b147=a190_0x4c26;try{const _0x48a999=a190_0x2b6a43[_0x55b147(0x18b)](_0x30d236),_0x51fa04=_0x48a999[_0x55b147(0x183)]&0x1ff,_0x25eb40=(_0x51fa04&0x3f)!==0x0;if(_0x25eb40)return console[_0x55b147(0x186)](_0x55b147(0x17a)+_0x30d236+_0x55b147(0x185)+_0x51fa04[_0x55b147(0x17f)](0x8)+').\x20'+_0x55b147(0x184)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x18aac8,_0x382201){const _0x4885c9=a190_0x4c26,_0x51d83c=a190_0x4af22f['dirname'](_0x18aac8);createSecureDirectory(_0x51d83c),a190_0x2b6a43[_0x4885c9(0x188)](_0x18aac8,_0x382201,{'mode':0x180}),setSecureFilePermissions(_0x18aac8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d6758,_0x15cdba){const _0x3b7743=a191_0x5a28,_0x5f4384=_0x2d6758();while(!![]){try{const _0x2bc19b=parseInt(_0x3b7743(0xfa))/0x1+-parseInt(_0x3b7743(0x104))/0x2+-parseInt(_0x3b7743(0xfb))/0x3+-parseInt(_0x3b7743(0xf9))/0x4+parseInt(_0x3b7743(0xfe))/0x5+-parseInt(_0x3b7743(0x103))/0x6+-parseInt(_0x3b7743(0x102))/0x7*(-parseInt(_0x3b7743(0x100))/0x8);if(_0x2bc19b===_0x15cdba)break;else _0x5f4384['push'](_0x5f4384['shift']());}catch(_0x1c2a6d){_0x5f4384['push'](_0x5f4384['shift']());}}}(a191_0x1fd4,0x4c8c2));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a191_0x1fd4(){const _0x46b813=['EACCES','2622945tfCfsX','\x27\x20not\x20found','16INRzNJ','code','2231719etJnWp','588798GhZXXE','173670CSdaeL','\x27:\x20','File\x20\x27','INTERNAL','1160708SulbYA','83350qfnyDo','1370670jBIcuF','utf-8'];a191_0x1fd4=function(){return _0x46b813;};return a191_0x1fd4();}function a191_0x5a28(_0x4ec0a3,_0x35897e){_0x4ec0a3=_0x4ec0a3-0xf8;const _0x1fd457=a191_0x1fd4();let _0x5a2812=_0x1fd457[_0x4ec0a3];return _0x5a2812;}export function readFileContent(_0x2d2922){const _0x19c6f2=a191_0x5a28;try{return readFileSync(_0x2d2922,_0x19c6f2(0xfc));}catch(_0x2a5240){const _0x5446e7=_0x2a5240[_0x19c6f2(0x101)];if(_0x5446e7==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x19c6f2(0x106)+_0x2d2922+_0x19c6f2(0xff),_0x2a5240);else{if(_0x5446e7===_0x19c6f2(0xfd))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x2d2922+'\x27',_0x2a5240);else throw new SDKError(ErrorCode[_0x19c6f2(0xf8)],'Error\x20reading\x20file\x20\x27'+_0x2d2922+_0x19c6f2(0x105)+_0x2a5240['message'],_0x2a5240);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4eff0e,_0x58955b){const _0x3ec27e=a192_0x409b,_0x4774eb=_0x4eff0e();while(!![]){try{const _0x27c76e=-parseInt(_0x3ec27e(0x17a))/0x1+parseInt(_0x3ec27e(0x181))/0x2*(-parseInt(_0x3ec27e(0x170))/0x3)+-parseInt(_0x3ec27e(0x16e))/0x4+parseInt(_0x3ec27e(0x16d))/0x5*(parseInt(_0x3ec27e(0x17e))/0x6)+-parseInt(_0x3ec27e(0x180))/0x7+parseInt(_0x3ec27e(0x175))/0x8+parseInt(_0x3ec27e(0x17f))/0x9*(parseInt(_0x3ec27e(0x17c))/0xa);if(_0x27c76e===_0x58955b)break;else _0x4774eb['push'](_0x4774eb['shift']());}catch(_0x2f7f49){_0x4774eb['push'](_0x4774eb['shift']());}}}(a192_0x4b36,0x46f78));import*as a192_0x57b0b4 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a192_0x4b36(){const _0x1b2690=['1155408pJAJeh','tag_name','94215qDKovk','data','find','fetchedAt','timeout','257656OKVLtr','statusCode','destroy','resolve','set','220801NyqfZw','now','200QOLNPD','application/vnd.github+json','2872146WKBMyU','241173jVnUxw','1285865mOUtHQ','4OybUlQ','get','end','parse','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','toString','5XdDcCC'];a192_0x4b36=function(){return _0x1b2690;};return a192_0x4b36();}export function fetchGitHubReleases(_0x3c3d19,_0x2c8b24,_0x59cd1e){const _0x353869=a192_0x409b,_0x28065d=_0x3c3d19+'/'+_0x2c8b24,_0x3a0763=cache[_0x353869(0x182)](_0x28065d);if(_0x3a0763&&Date[_0x353869(0x17b)]()-_0x3a0763[_0x353869(0x173)]<CACHE_TTL_MS)return Promise[_0x353869(0x178)](_0x3a0763['releases']);return new Promise((_0x4411e9,_0x588962)=>{const _0x4ec3bd=_0x353869,_0x19dfb6={'hostname':'api.github.com','path':'/repos/'+_0x3c3d19+'/'+_0x2c8b24+'/releases?per_page=20','headers':{'User-Agent':_0x59cd1e,'Accept':_0x4ec3bd(0x17d)},'timeout':REQUEST_TIMEOUT_MS},_0x5f4295=a192_0x57b0b4[_0x4ec3bd(0x182)](_0x19dfb6,_0x543b93=>{const _0x5aacd8=_0x4ec3bd;let _0x6865fe='';_0x543b93['on'](_0x5aacd8(0x171),_0x2cf448=>{const _0x18db3b=_0x5aacd8;_0x6865fe+=_0x2cf448[_0x18db3b(0x16c)]();}),_0x543b93['on'](_0x5aacd8(0x183),()=>{const _0x4c0dfc=_0x5aacd8;if(_0x543b93[_0x4c0dfc(0x176)]!==0xc8){_0x588962(new Error('GitHub\x20API\x20returned\x20'+_0x543b93[_0x4c0dfc(0x176)]+':\x20'+_0x6865fe['slice'](0x0,0xc8)));return;}try{const _0x25c123=JSON[_0x4c0dfc(0x184)](_0x6865fe);cache[_0x4c0dfc(0x179)](_0x28065d,{'releases':_0x25c123,'fetchedAt':Date[_0x4c0dfc(0x17b)]()}),_0x4411e9(_0x25c123);}catch(_0x1461e8){_0x588962(_0x1461e8);}});});_0x5f4295['on'](_0x4ec3bd(0x174),()=>{const _0x58444b=_0x4ec3bd;_0x5f4295[_0x58444b(0x177)](),_0x588962(new Error(_0x58444b(0x16b)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5f4295['on']('error',_0x588962);});}function a192_0x409b(_0x162514,_0x4c0ca1){_0x162514=_0x162514-0x16b;const _0x4b3600=a192_0x4b36();let _0x409b71=_0x4b3600[_0x162514];return _0x409b71;}export async function resolveReleaseTag(_0x375ebc,_0x18c53e,_0x583c1a,_0xe8167c){const _0x25fea6=a192_0x409b,_0x463cda=await fetchGitHubReleases(_0x18c53e,_0x583c1a,_0xe8167c);if(_0x463cda['length']===0x0)return null;if(_0x375ebc==='next')return _0x463cda[0x0][_0x25fea6(0x16f)];const _0x224631=_0x463cda[_0x25fea6(0x172)](_0x346674=>!_0x346674['prerelease']);return _0x224631?_0x224631[_0x25fea6(0x16f)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56f711,_0x384b03){const _0x3b5031=a193_0x2fdd,_0xa102a6=_0x56f711();while(!![]){try{const _0x26b321=parseInt(_0x3b5031(0x177))/0x1+-parseInt(_0x3b5031(0x181))/0x2+-parseInt(_0x3b5031(0x179))/0x3+parseInt(_0x3b5031(0x178))/0x4*(-parseInt(_0x3b5031(0x182))/0x5)+-parseInt(_0x3b5031(0x17f))/0x6*(-parseInt(_0x3b5031(0x17d))/0x7)+parseInt(_0x3b5031(0x183))/0x8+parseInt(_0x3b5031(0x17e))/0x9;if(_0x26b321===_0x384b03)break;else _0xa102a6['push'](_0xa102a6['shift']());}catch(_0x57e0f2){_0xa102a6['push'](_0xa102a6['shift']());}}}(a193_0x2488,0xe0852));function a193_0x2fdd(_0x1d0dae,_0x1e50a0){_0x1d0dae=_0x1d0dae-0x170;const _0x248803=a193_0x2488();let _0x2fdd5c=_0x248803[_0x1d0dae];return _0x2fdd5c;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x3fe54e=a193_0x2fdd;return process.env.TDX_CACHE_DIR||join(homedir(),_0x3fe54e(0x17c),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x25b726,_0xd6b980){const _0x167afb=a193_0x2fdd,_0x3642d4=registry['get'](_0x25b726);if(_0x3642d4&&_0x3642d4!==_0xd6b980)throw new Error(_0x167afb(0x171)+_0x25b726+_0x167afb(0x170)+_0x3642d4+_0x167afb(0x173)+_0xd6b980+'\x22');registry[_0x167afb(0x180)](_0x25b726,_0xd6b980);}export function getGlobalCachePath(_0x5d1b2f){return join(getGlobalCacheDir(),_0x5d1b2f);}function ensureGlobalCacheDir(){const _0xe95ed8=getGlobalCacheDir();!existsSync(_0xe95ed8)&&mkdirSync(_0xe95ed8,{'recursive':!![]});}function readCacheJson(_0x15cef7){const _0x59f28b=a193_0x2fdd,_0x18224a=getGlobalCachePath(_0x15cef7);if(!existsSync(_0x18224a))return undefined;try{const _0x30e1de=readFileSync(_0x18224a,_0x59f28b(0x184));return JSON['parse'](_0x30e1de);}catch{return undefined;}}function a193_0x2488(){const _0x1e67fb=['{profile}','\x22,\x20cannot\x20register\x20for\x20\x22','default','trim','clear','884042PCgTvv','7319364ZTpeKg','3965382XsidMP','replace','stringify','.cache','1072589GOSsSX','28365489xVkSsT','24oUFWCC','set','3162068OvxGqs','5vwhGXH','8029056qBjIKQ','utf-8','\x22\x20already\x20registered\x20by\x20\x22','Global\x20cache\x20key\x20\x22'];a193_0x2488=function(){return _0x1e67fb;};return a193_0x2488();}function writeCacheJson(_0x1cffef,_0x1fd9a0){const _0x9d4ad1=a193_0x2fdd;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1cffef),JSON[_0x9d4ad1(0x17b)](_0x1fd9a0,null,0x2),_0x9d4ad1(0x184));}function readCacheText(_0x30b591){const _0x106237=getGlobalCachePath(_0x30b591);if(!existsSync(_0x106237))return undefined;try{return readFileSync(_0x106237,'utf-8');}catch{return undefined;}}function writeCacheText(_0x290cc6,_0x5afe77){const _0x27e0bf=a193_0x2fdd;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x290cc6),_0x5afe77,_0x27e0bf(0x184));}function clearCache(_0x19e5f1){const _0x319ee0=getGlobalCachePath(_0x19e5f1);if(existsSync(_0x319ee0))try{unlinkSync(_0x319ee0);}catch{}}function cacheExists(_0x7c385b){return existsSync(getGlobalCachePath(_0x7c385b));}export function createGlobalCache(_0x4d1b44,_0x112e3e){return registerGlobalCacheKey(_0x4d1b44,_0x112e3e),{'read':()=>readCacheJson(_0x4d1b44),'write':_0x37eb5f=>writeCacheJson(_0x4d1b44,_0x37eb5f),'clear':()=>clearCache(_0x4d1b44),'exists':()=>cacheExists(_0x4d1b44),'path':()=>getGlobalCachePath(_0x4d1b44)};}export function createGlobalTextCache(_0x1894a3,_0x5371e7){const _0x3417f2=a193_0x2fdd;return registerGlobalCacheKey(_0x1894a3,_0x5371e7),{'read':()=>readCacheText(_0x1894a3)?.[_0x3417f2(0x175)]()||undefined,'write':_0x250ca4=>writeCacheText(_0x1894a3,_0x250ca4),'clear':()=>clearCache(_0x1894a3),'exists':()=>cacheExists(_0x1894a3),'path':()=>getGlobalCachePath(_0x1894a3)};}export function createProfileCache(_0x13ca77,_0x47ab7f){const _0x400b17=_0x1ed26a=>{const _0x264c19=a193_0x2fdd,_0x26d3d3=_0x1ed26a||_0x264c19(0x174);return _0x13ca77[_0x264c19(0x17a)](_0x264c19(0x172),_0x26d3d3);};return{'read':_0xd68c94=>{const _0x4d9058=_0x400b17(_0xd68c94);return registerGlobalCacheKey(_0x4d9058,_0x47ab7f),readCacheJson(_0x4d9058);},'write':(_0x418447,_0x30784e)=>{const _0x120a2f=_0x400b17(_0x418447);registerGlobalCacheKey(_0x120a2f,_0x47ab7f),writeCacheJson(_0x120a2f,_0x30784e);},'clear':_0x1815de=>{const _0x4f37e5=_0x400b17(_0x1815de);clearCache(_0x4f37e5);},'exists':_0x31ae5a=>{const _0xa401dc=_0x400b17(_0x31ae5a);return cacheExists(_0xa401dc);},'path':_0xd92314=>{const _0x59b3cd=_0x400b17(_0xd92314);return getGlobalCachePath(_0x59b3cd);}};}export function createOptionalProfileCache(_0x2e063e,_0x33327a,_0x4e6209={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4e6209,_0x22951d=_0x17f7b1=>{return _0x17f7b1?''+_0x2e063e+profileSeparator+_0x17f7b1+suffix:''+_0x2e063e+suffix;};return{'read':_0x487d5d=>{const _0x5459b0=_0x22951d(_0x487d5d);return registerGlobalCacheKey(_0x5459b0,_0x33327a),readCacheJson(_0x5459b0);},'write':(_0x190ccd,_0xe9d458)=>{const _0x529d69=_0x22951d(_0xe9d458);registerGlobalCacheKey(_0x529d69,_0x33327a),writeCacheJson(_0x529d69,_0x190ccd);},'clear':_0x49d10a=>{const _0x3c6e41=_0x22951d(_0x49d10a);clearCache(_0x3c6e41);},'exists':_0x4ca383=>{const _0x571bf0=_0x22951d(_0x4ca383);return cacheExists(_0x571bf0);},'path':_0xc97c85=>{const _0x39585f=_0x22951d(_0xc97c85);return getGlobalCachePath(_0x39585f);}};}export function clearGlobalRegistry(){const _0x3792a2=a193_0x2fdd;registry[_0x3792a2(0x176)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc4c3ad,_0x5a5c41){const _0x67f575=a194_0x2c19,_0x1d97b1=_0xc4c3ad();while(!![]){try{const _0x23770d=-parseInt(_0x67f575(0x1e4))/0x1+-parseInt(_0x67f575(0x1ed))/0x2*(parseInt(_0x67f575(0x1e3))/0x3)+-parseInt(_0x67f575(0x1ef))/0x4+parseInt(_0x67f575(0x1e7))/0x5*(parseInt(_0x67f575(0x1ee))/0x6)+-parseInt(_0x67f575(0x1f6))/0x7+-parseInt(_0x67f575(0x1df))/0x8*(-parseInt(_0x67f575(0x1ec))/0x9)+-parseInt(_0x67f575(0x1e0))/0xa*(-parseInt(_0x67f575(0x1eb))/0xb);if(_0x23770d===_0x5a5c41)break;else _0x1d97b1['push'](_0x1d97b1['shift']());}catch(_0x26104d){_0x1d97b1['push'](_0x1d97b1['shift']());}}}(a194_0x3f4c,0x9b818));function a194_0x2c19(_0x41fea5,_0x4bd510){_0x41fea5=_0x41fea5-0x1df;const _0x3f4c82=a194_0x3f4c();let _0x2c19ef=_0x3f4c82[_0x41fea5];return _0x2c19ef;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x34b68b,_0x359cc0){const _0x45d52f=a194_0x2c19;try{if(_0x359cc0){const _0x1b3099=await readFile(_0x34b68b,_0x45d52f(0x1f1));try{return JSON[_0x45d52f(0x1f3)](_0x1b3099);}catch(_0x4afeec){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x45d52f(0x1e9)+_0x34b68b+'\x27:\x20'+(_0x4afeec instanceof Error?_0x4afeec[_0x45d52f(0x1e8)]:String(_0x4afeec)));}}else try{return JSON['parse'](_0x34b68b);}catch(_0x4a19ad){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x4a19ad instanceof Error?_0x4a19ad[_0x45d52f(0x1e8)]:String(_0x4a19ad)));}}catch(_0x37ba4e){if(_0x37ba4e instanceof SDKError)throw _0x37ba4e;if(_0x37ba4e instanceof Error&&_0x45d52f(0x1e1)in _0x37ba4e){const _0x314f05=_0x37ba4e;if(_0x314f05[_0x45d52f(0x1e1)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x45d52f(0x1f4)+_0x34b68b);else{if(_0x314f05[_0x45d52f(0x1e1)]===_0x45d52f(0x1e5))throw new SDKError(ErrorCode[_0x45d52f(0x1e2)],_0x45d52f(0x1f0)+_0x34b68b);}}throw new SDKError(ErrorCode[_0x45d52f(0x1f5)],_0x45d52f(0x1e6)+(_0x37ba4e instanceof Error?_0x37ba4e[_0x45d52f(0x1e8)]:String(_0x37ba4e)));}}export async function loadJSONFromOptions(_0x22cc75,_0x267dee){const _0x2a7588=a194_0x2c19;if(_0x22cc75&&_0x267dee)throw new SDKError(ErrorCode[_0x2a7588(0x1ea)],_0x2a7588(0x1f2));if(_0x22cc75)return await loadJSON(_0x22cc75,![]);if(_0x267dee)return await loadJSON(_0x267dee,!![]);return undefined;}function a194_0x3f4c(){const _0x1602d0=['message','Invalid\x20JSON\x20in\x20file\x20\x27','INVALID_ARGUMENT','3334672QLDARX','9DAOYNF','1737328hFTBPC','21426PztVoG','1149876IUUzDU','Permission\x20denied\x20reading\x20file:\x20','utf-8','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','File\x20not\x20found:\x20','INTERNAL','4711266QAKmhU','2851288IEdmPs','70FHcbkX','code','PERMISSION_DENIED','3mAtUKj','26636SLYJIR','EACCES','Failed\x20to\x20load\x20JSON:\x20','20irrOZB'];a194_0x3f4c=function(){return _0x1602d0;};return a194_0x3f4c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a195_0x5d3386=a195_0x5f1d;(function(_0x26d22f,_0x5f295c){const _0x4aea0b=a195_0x5f1d,_0x2a601d=_0x26d22f();while(!![]){try{const _0x1cc7fd=-parseInt(_0x4aea0b(0x9f))/0x1+parseInt(_0x4aea0b(0xa1))/0x2+-parseInt(_0x4aea0b(0x92))/0x3*(-parseInt(_0x4aea0b(0x96))/0x4)+parseInt(_0x4aea0b(0x91))/0x5+parseInt(_0x4aea0b(0x9b))/0x6*(parseInt(_0x4aea0b(0x8f))/0x7)+parseInt(_0x4aea0b(0x98))/0x8*(-parseInt(_0x4aea0b(0x97))/0x9)+-parseInt(_0x4aea0b(0x9a))/0xa*(parseInt(_0x4aea0b(0x90))/0xb);if(_0x1cc7fd===_0x5f295c)break;else _0x2a601d['push'](_0x2a601d['shift']());}catch(_0x5de036){_0x2a601d['push'](_0x2a601d['shift']());}}}(a195_0x3908,0x5a06f));function a195_0x3908(){const _0x247c0e=['6HvXgCe','clear','\x22,\x20cannot\x20register\x20for\x20\x22','Cache\x20key\x20\x22','188646xOcJgU','parse','194352mvfaYY','3051118NErrma','70345SlFzUr','1464400MhlulS','26976tnTQyR','cwd','.cache/tdx','stringify','156qcFoCO','11952RBATUc','2536NIBYhY','utf-8','310nrEeZZ'];a195_0x3908=function(){return _0x247c0e;};return a195_0x3908();}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a195_0x5d3386(0x94),registry=new Map();export function registerCacheKey(_0x2c5afa,_0x5d99f8){const _0xd87ae5=a195_0x5d3386,_0x4a06e8=registry['get'](_0x2c5afa);if(_0x4a06e8&&_0x4a06e8!==_0x5d99f8)throw new Error(_0xd87ae5(0x9e)+_0x2c5afa+'\x22\x20already\x20registered\x20by\x20\x22'+_0x4a06e8+_0xd87ae5(0x9d)+_0x5d99f8+'\x22');registry['set'](_0x2c5afa,_0x5d99f8);}export function getCacheDir(){const _0x59361c=a195_0x5d3386,_0x14ecea=process[_0x59361c(0x93)](),_0x47c1ed=_0x14ecea===parse(_0x14ecea)['root']?homedir():_0x14ecea;return join(_0x47c1ed,LOCAL_CACHE_DIR);}export function getCachePath(_0x253206){return join(getCacheDir(),_0x253206);}function ensureCacheDir(){const _0xa42e1c=getCacheDir();!existsSync(_0xa42e1c)&&mkdirSync(_0xa42e1c,{'recursive':!![]});}function readCacheJson(_0x5eb714){const _0x5672f7=a195_0x5d3386,_0x419791=getCachePath(_0x5eb714);if(!existsSync(_0x419791))return undefined;try{const _0x242444=readFileSync(_0x419791,_0x5672f7(0x99));return JSON[_0x5672f7(0xa0)](_0x242444);}catch{return undefined;}}function writeCacheJson(_0x20a16c,_0x1771d6){const _0x34a0ad=a195_0x5d3386;ensureCacheDir(),writeFileSync(getCachePath(_0x20a16c),JSON[_0x34a0ad(0x95)](_0x1771d6,null,0x2),_0x34a0ad(0x99));}function readCacheText(_0x553056){const _0x5d1960=a195_0x5d3386,_0x2d1c35=getCachePath(_0x553056);if(!existsSync(_0x2d1c35))return undefined;try{return readFileSync(_0x2d1c35,_0x5d1960(0x99));}catch{return undefined;}}function writeCacheText(_0x289ade,_0x56ca29){const _0x3f826f=a195_0x5d3386;ensureCacheDir(),writeFileSync(getCachePath(_0x289ade),_0x56ca29,_0x3f826f(0x99));}function clearCache(_0x5e2aad){const _0xb93385=getCachePath(_0x5e2aad);if(existsSync(_0xb93385))try{unlinkSync(_0xb93385);}catch{}}function cacheExists(_0x55b2d2){return existsSync(getCachePath(_0x55b2d2));}function a195_0x5f1d(_0x28ecb0,_0x651918){_0x28ecb0=_0x28ecb0-0x8f;const _0x390814=a195_0x3908();let _0x5f1d54=_0x390814[_0x28ecb0];return _0x5f1d54;}export function createCache(_0x45b01b,_0x3ac10d){return registerCacheKey(_0x45b01b,_0x3ac10d),{'read':()=>readCacheJson(_0x45b01b),'write':_0x434c8c=>writeCacheJson(_0x45b01b,_0x434c8c),'clear':()=>clearCache(_0x45b01b),'exists':()=>cacheExists(_0x45b01b),'path':()=>getCachePath(_0x45b01b)};}export function createTextCache(_0x299d03,_0x41ae1d){return registerCacheKey(_0x299d03,_0x41ae1d),{'read':()=>readCacheText(_0x299d03)?.['trim']()||undefined,'write':_0x24d1f4=>writeCacheText(_0x299d03,_0x24d1f4),'clear':()=>clearCache(_0x299d03),'exists':()=>cacheExists(_0x299d03),'path':()=>getCachePath(_0x299d03)};}export function clearRegistry(){const _0x5330d6=a195_0x5d3386;registry[_0x5330d6(0x9c)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0x457317=a196_0x1e89;(function(_0x26d5bd,_0x15bc14){const _0x4669f4=a196_0x1e89,_0x39791a=_0x26d5bd();while(!![]){try{const _0x8dc1b5=parseInt(_0x4669f4(0x125))/0x1+-parseInt(_0x4669f4(0x11e))/0x2+parseInt(_0x4669f4(0x117))/0x3*(-parseInt(_0x4669f4(0x111))/0x4)+-parseInt(_0x4669f4(0x115))/0x5+-parseInt(_0x4669f4(0x112))/0x6*(parseInt(_0x4669f4(0x114))/0x7)+-parseInt(_0x4669f4(0x10b))/0x8*(parseInt(_0x4669f4(0x120))/0x9)+parseInt(_0x4669f4(0x119))/0xa;if(_0x8dc1b5===_0x15bc14)break;else _0x39791a['push'](_0x39791a['shift']());}catch(_0x2d4c41){_0x39791a['push'](_0x39791a['shift']());}}}(a196_0x1470,0x46bf7));function a196_0x1e89(_0x319517,_0x14ede3){_0x319517=_0x319517-0x10b;const _0x147059=a196_0x1470();let _0x1e89e4=_0x147059[_0x319517];return _0x1e89e4;}import a196_0xd5c884 from'chalk';function a196_0x1470(){const _0x47e666=['dim','567354TfAhFm','default','9HYKDdG','Chalk','chalk','colors','red','34696ziTUoi','4323848ShdJyM','colorLevel','yellow','level','blue','gray','51596GzXsYI','894252esjzxn','component','7OMqjiP','334670TygXHl','green','57XNUEAT','timestamp','15403020rZucXt','ERROR',']\x20[','message'];a196_0x1470=function(){return _0x47e666;};return a196_0x1470();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0xd5c884,ChalkClass=chalkModule[a196_0x457317(0x121)]||chalkModule[a196_0x457317(0x11f)]?.[a196_0x457317(0x121)];export class DefaultLogFormatter{[a196_0x457317(0x123)];[a196_0x457317(0x122)];constructor(_0x4b2ef7={}){const _0x44bc40=a196_0x457317;this['colors']=_0x4b2ef7[_0x44bc40(0x123)]??![],this[_0x44bc40(0x122)]=_0x4b2ef7[_0x44bc40(0x123)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0xd5c884;}['format'](_0x3898d1){const _0x3c5aa2=a196_0x457317,_0x154931=formatTimestamp(_0x3898d1[_0x3c5aa2(0x118)]),_0x5caed4=logLevelToString(_0x3898d1['level']);if(!this[_0x3c5aa2(0x123)])return _0x154931+'\x20['+_0x5caed4+_0x3c5aa2(0x11b)+_0x3898d1[_0x3c5aa2(0x113)]+']\x20'+_0x3898d1['message'];const _0x524d01=this[_0x3c5aa2(0x122)][_0x3c5aa2(0x11d)](_0x154931),_0x926e7a=this[_0x3c5aa2(0x10c)](_0x5caed4,_0x3898d1[_0x3c5aa2(0x10e)]),_0x403ead=this[_0x3c5aa2(0x122)][_0x3c5aa2(0x10f)]('['+_0x3898d1['component']+']');return _0x524d01+'\x20'+_0x926e7a+'\x20'+_0x403ead+'\x20'+_0x3898d1[_0x3c5aa2(0x11c)];}[a196_0x457317(0x10c)](_0x3c239c,_0xb23046){const _0x434cec=a196_0x457317;switch(_0xb23046){case LogLevel['TRACE']:return this['chalk'][_0x434cec(0x110)]('['+_0x3c239c+']');case LogLevel['DEBUG']:return this[_0x434cec(0x122)][_0x434cec(0x116)]('['+_0x3c239c+']');case LogLevel['INFO']:return this[_0x434cec(0x122)]['cyan']('['+_0x3c239c+']');case LogLevel['WARN']:return this['chalk'][_0x434cec(0x10d)]('['+_0x3c239c+']');case LogLevel[_0x434cec(0x11a)]:return this[_0x434cec(0x122)][_0x434cec(0x124)]('['+_0x3c239c+']');default:return'['+_0x3c239c+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a197_0x17be(_0x1990b7,_0x7dd5f2){_0x1990b7=_0x1990b7-0x104;var _0x1d7c76=a197_0x1d7c();var _0x17beb6=_0x1d7c76[_0x1990b7];return _0x17beb6;}(function(_0x466cd6,_0x51120a){var _0x285c73=a197_0x17be,_0x2e9a45=_0x466cd6();while(!![]){try{var _0x2b18cb=-parseInt(_0x285c73(0x10a))/0x1+parseInt(_0x285c73(0x10b))/0x2*(parseInt(_0x285c73(0x10d))/0x3)+parseInt(_0x285c73(0x109))/0x4*(parseInt(_0x285c73(0x104))/0x5)+parseInt(_0x285c73(0x105))/0x6+-parseInt(_0x285c73(0x106))/0x7+-parseInt(_0x285c73(0x107))/0x8*(-parseInt(_0x285c73(0x108))/0x9)+-parseInt(_0x285c73(0x10c))/0xa*(parseInt(_0x285c73(0x10e))/0xb);if(_0x2b18cb===_0x51120a)break;else _0x2e9a45['push'](_0x2e9a45['shift']());}catch(_0x463a46){_0x2e9a45['push'](_0x2e9a45['shift']());}}}(a197_0x1d7c,0xa1f57));export{DefaultLogFormatter}from'./default-formatter.js';function a197_0x1d7c(){var _0x3a3d9f=['128jMmNXg','20vtbDcw','6186HsMUBS','3623741WZqFPh','858920lwqeRy','6861486ZJVPBC','5027953fmBhyV','8CpFMfx','6726429hJLINR','12OqSbip','497758wyvmzu'];a197_0x1d7c=function(){return _0x3a3d9f;};return a197_0x1d7c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a198_0x35eb(){const _0x5adb31=['8qCqevi','handle','WARN','698365OJXThn','log','colors','level','12rNyctD','43173WbKVSA','minLevel','error','1054144NkbVZE','26823lCurTa','formatter','format','useStderr','162MvXIDZ','580MwWLiZ','12529726bBKzus','7231cHixQe','86HAExSR','950716RHgUtz'];a198_0x35eb=function(){return _0x5adb31;};return a198_0x35eb();}const a198_0x49ba6b=a198_0x19cc;(function(_0x577c8b,_0x230112){const _0x5ccf0f=a198_0x19cc,_0x5a0f5e=_0x577c8b();while(!![]){try{const _0x29aeca=-parseInt(_0x5ccf0f(0x14b))/0x1+parseInt(_0x5ccf0f(0x14a))/0x2*(parseInt(_0x5ccf0f(0x142))/0x3)+parseInt(_0x5ccf0f(0x14c))/0x4*(parseInt(_0x5ccf0f(0x14f))/0x5)+-parseInt(_0x5ccf0f(0x146))/0x6*(-parseInt(_0x5ccf0f(0x149))/0x7)+parseInt(_0x5ccf0f(0x141))/0x8+parseInt(_0x5ccf0f(0x154))/0x9*(-parseInt(_0x5ccf0f(0x147))/0xa)+-parseInt(_0x5ccf0f(0x148))/0xb*(-parseInt(_0x5ccf0f(0x153))/0xc);if(_0x29aeca===_0x230112)break;else _0x5a0f5e['push'](_0x5a0f5e['shift']());}catch(_0x556588){_0x5a0f5e['push'](_0x5a0f5e['shift']());}}}(a198_0x35eb,0xb3198));import{LogLevel as a198_0x249079}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a198_0x19cc(_0x174818,_0x2f32df){_0x174818=_0x174818-0x13f;const _0x35eb40=a198_0x35eb();let _0x19cccf=_0x35eb40[_0x174818];return _0x19cccf;}export class ConsoleHandler{[a198_0x49ba6b(0x13f)];[a198_0x49ba6b(0x145)];['formatter'];constructor(_0x2097f1={}){const _0x372000=a198_0x49ba6b;this[_0x372000(0x13f)]=_0x2097f1['minLevel']??a198_0x249079[_0x372000(0x14e)],this[_0x372000(0x145)]=_0x2097f1['useStderr']??!![],this[_0x372000(0x143)]=new DefaultLogFormatter({'colors':_0x2097f1[_0x372000(0x151)]??!![]});}[a198_0x49ba6b(0x14d)](_0x374585){const _0xfe8688=a198_0x49ba6b;if(_0x374585[_0xfe8688(0x152)]<this[_0xfe8688(0x13f)])return;const _0x47d1d0=this['formatter'][_0xfe8688(0x144)](_0x374585);this['useStderr']&&_0x374585[_0xfe8688(0x152)]>=a198_0x249079[_0xfe8688(0x14e)]?console[_0xfe8688(0x140)](_0x47d1d0):console[_0xfe8688(0x150)](_0x47d1d0);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a199_0x1fa7ba=a199_0xf1b0;function a199_0xf1b0(_0x3ff991,_0x522e73){_0x3ff991=_0x3ff991-0x19e;const _0xd81b10=a199_0xd81b();let _0xf1b062=_0xd81b10[_0x3ff991];return _0xf1b062;}(function(_0x53ffd3,_0x4672be){const _0x321dca=a199_0xf1b0,_0x2fa2ab=_0x53ffd3();while(!![]){try{const _0xee38c2=parseInt(_0x321dca(0x1b7))/0x1*(parseInt(_0x321dca(0x1b0))/0x2)+-parseInt(_0x321dca(0x1b3))/0x3+-parseInt(_0x321dca(0x1b9))/0x4*(parseInt(_0x321dca(0x1b1))/0x5)+parseInt(_0x321dca(0x1a1))/0x6+-parseInt(_0x321dca(0x1c0))/0x7*(-parseInt(_0x321dca(0x1a2))/0x8)+-parseInt(_0x321dca(0x1a6))/0x9+parseInt(_0x321dca(0x1a9))/0xa*(parseInt(_0x321dca(0x1ad))/0xb);if(_0xee38c2===_0x4672be)break;else _0x2fa2ab['push'](_0x2fa2ab['shift']());}catch(_0x3b1c47){_0x2fa2ab['push'](_0x2fa2ab['shift']());}}}(a199_0xd81b,0xb6078));import{createWriteStream,createReadStream}from'fs';function a199_0xd81b(){const _0xf238f7=['logStream','close','logFileName','42645WdmtWc','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','2983576edUJTd','logBaseName','error','rotateOldLogs','toISOString','split','logDir','553spdVFc','test','\x5c$&','filePath','2538426YoJsDY','130264qXlDWF','.gz','handle','getLogPath','1377891UrUrWz','Warning:\x20Failed\x20to\x20compress\x20','logPath','9920xcmzIo','message','replace','Warning:\x20Error\x20writing\x20to\x20','7568XZTQMo','init','includes','14wcKcMZ','5uxHpZe','rotate','3137562QgSDiG'];a199_0xd81b=function(){return _0xf238f7;};return a199_0xd81b();}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';export class FileHandler{[a199_0x1fa7ba(0x1a8)];[a199_0x1fa7ba(0x1bf)];['logFileName'];[a199_0x1fa7ba(0x1ba)];[a199_0x1fa7ba(0x1b4)]=null;[a199_0x1fa7ba(0x1b2)];constructor(_0x4b9d96={}){const _0x518686=a199_0x1fa7ba;this['logPath']=_0x4b9d96[_0x518686(0x1a0)]??join(getGlobalCacheDir(),'logs','tdx.log'),this['logDir']=dirname(this[_0x518686(0x1a8)]),this[_0x518686(0x1b6)]=basename(this[_0x518686(0x1a8)]),this[_0x518686(0x1ba)]=this['logFileName'][_0x518686(0x1ab)](/\.log$/,''),this[_0x518686(0x1b2)]=_0x4b9d96[_0x518686(0x1b2)]??!![];}async[a199_0x1fa7ba(0x1ae)](){const _0x2dd484=a199_0x1fa7ba;try{await mkdir(this[_0x2dd484(0x1bf)],{'recursive':!![]}),this[_0x2dd484(0x1b2)]&&await this[_0x2dd484(0x1bc)](),this[_0x2dd484(0x1b4)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x2dd484(0x1b4)]['on']('error',_0x2f3b8e=>{const _0x19fed6=_0x2dd484;console[_0x19fed6(0x1bb)](_0x19fed6(0x1ac)+this[_0x19fed6(0x1b6)]+':',_0x2f3b8e[_0x19fed6(0x1aa)]);});}catch(_0x718102){console[_0x2dd484(0x1bb)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x718102);}}[a199_0x1fa7ba(0x1a4)](_0x215797){const _0x3f637d=a199_0x1fa7ba;if(!this['logStream'])return;const _0x2f522e=Logger['format'](_0x215797);this[_0x3f637d(0x1b4)]['write'](_0x2f522e+'\x0a');}async[a199_0x1fa7ba(0x1b5)](){return new Promise(_0xd1157e=>{const _0x405c56=a199_0xf1b0;this[_0x405c56(0x1b4)]?this[_0x405c56(0x1b4)]['end'](()=>{const _0x1ef85f=_0x405c56;this[_0x1ef85f(0x1b4)]=null,_0xd1157e();}):_0xd1157e();});}[a199_0x1fa7ba(0x1a5)](){return this['logPath'];}async[a199_0x1fa7ba(0x1bc)](){const _0x3e5d2c=a199_0x1fa7ba;try{const _0xfebfd0=await readdir(this[_0x3e5d2c(0x1bf)]),_0x211200=new Date()[_0x3e5d2c(0x1bd)]()['split']('T')[0x0];if(_0xfebfd0[_0x3e5d2c(0x1af)](this[_0x3e5d2c(0x1b6)])){const _0x1c06b9=join(this[_0x3e5d2c(0x1bf)],this[_0x3e5d2c(0x1b6)]),_0x4951e7=await stat(_0x1c06b9),_0x3dec62=new Date(_0x4951e7['mtime'])[_0x3e5d2c(0x1bd)]()[_0x3e5d2c(0x1be)]('T')[0x0];if(_0x3dec62<_0x211200){const _0xc522f0=join(this[_0x3e5d2c(0x1bf)],this[_0x3e5d2c(0x1ba)]+'-'+_0x3dec62+'.log');await rename(_0x1c06b9,_0xc522f0);}}const _0x148bf3=await readdir(this[_0x3e5d2c(0x1bf)]),_0x3165a9=this[_0x3e5d2c(0x1ba)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x3e5d2c(0x19f)),_0x26af6c=new RegExp('^'+_0x3165a9+_0x3e5d2c(0x1b8)),_0x4da8ca=_0x148bf3['filter'](_0x54349e=>_0x26af6c[_0x3e5d2c(0x19e)](_0x54349e));for(const _0x812a7f of _0x4da8ca){const _0x593c28=join(this[_0x3e5d2c(0x1bf)],_0x812a7f),_0x2bb0ab=join(this['logDir'],_0x812a7f+_0x3e5d2c(0x1a3));try{await pipeline(createReadStream(_0x593c28),createGzip(),createWriteStream(_0x2bb0ab)),await unlink(_0x593c28);}catch(_0x2e7370){console['error'](_0x3e5d2c(0x1a7)+_0x812a7f+':',_0x2e7370);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x3010(_0x2e3f13,_0xcb620b){_0x2e3f13=_0x2e3f13-0x104;var _0x4d6e5d=a200_0x4d6e();var _0x3010a4=_0x4d6e5d[_0x2e3f13];return _0x3010a4;}(function(_0x468a28,_0x162389){var _0xe5506e=a200_0x3010,_0x490240=_0x468a28();while(!![]){try{var _0x1ab716=parseInt(_0xe5506e(0x10d))/0x1*(-parseInt(_0xe5506e(0x10c))/0x2)+parseInt(_0xe5506e(0x107))/0x3+-parseInt(_0xe5506e(0x104))/0x4*(-parseInt(_0xe5506e(0x105))/0x5)+parseInt(_0xe5506e(0x10e))/0x6*(parseInt(_0xe5506e(0x10a))/0x7)+parseInt(_0xe5506e(0x109))/0x8+-parseInt(_0xe5506e(0x10b))/0x9*(parseInt(_0xe5506e(0x106))/0xa)+parseInt(_0xe5506e(0x108))/0xb*(-parseInt(_0xe5506e(0x10f))/0xc);if(_0x1ab716===_0x162389)break;else _0x490240['push'](_0x490240['shift']());}catch(_0x47d44d){_0x490240['push'](_0x490240['shift']());}}}(a200_0x4d6e,0x4c110));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a200_0x4d6e(){var _0x1ae5c5=['6859SUhjuk','203772oUsCOs','10146660bDPeAX','164ZUkRHU','69835XhOWLn','2960KsWbQS','982764SmsdvK','11ExZdAT','1236848rMgdCA','56mPMTGg','4734usMEkt','4eRtCaR'];a200_0x4d6e=function(){return _0x1ae5c5;};return a200_0x4d6e();}export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x383b1e,_0x379bff){var _0x5bac65=a201_0x27ed,_0x457e41=_0x383b1e();while(!![]){try{var _0x91c51d=-parseInt(_0x5bac65(0x75))/0x1*(parseInt(_0x5bac65(0x72))/0x2)+parseInt(_0x5bac65(0x69))/0x3*(parseInt(_0x5bac65(0x74))/0x4)+-parseInt(_0x5bac65(0x6c))/0x5*(parseInt(_0x5bac65(0x6a))/0x6)+parseInt(_0x5bac65(0x70))/0x7*(-parseInt(_0x5bac65(0x6b))/0x8)+-parseInt(_0x5bac65(0x6d))/0x9*(parseInt(_0x5bac65(0x6e))/0xa)+-parseInt(_0x5bac65(0x71))/0xb+parseInt(_0x5bac65(0x73))/0xc*(parseInt(_0x5bac65(0x6f))/0xd);if(_0x91c51d===_0x379bff)break;else _0x457e41['push'](_0x457e41['shift']());}catch(_0x41bc92){_0x457e41['push'](_0x457e41['shift']());}}}(a201_0xffa5,0x873b3));function a201_0x27ed(_0x4311c5,_0xeade37){_0x4311c5=_0x4311c5-0x69;var _0xffa5b=a201_0xffa5();var _0x27ed17=_0xffa5b[_0x4311c5];return _0x27ed17;}export class NullHandler{['handle'](_0x4265fa){}}function a201_0xffa5(){var _0x4ce499=['964kGPfPe','741xPrkQl','2854518WdpoCi','104UhxwhM','10SQvJQl','330966srEPcw','230OsRXCC','32164535MVvKQM','379498xMosgo','1517021CBWoxL','58NjLQKO','12sFGdgb','12108orgzyV'];a201_0xffa5=function(){return _0x4ce499;};return a201_0xffa5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x410404,_0x323932){var _0x32f830=a202_0x3552,_0x439679=_0x410404();while(!![]){try{var _0x1ca69e=-parseInt(_0x32f830(0xa5))/0x1*(-parseInt(_0x32f830(0xa1))/0x2)+-parseInt(_0x32f830(0xa8))/0x3*(parseInt(_0x32f830(0xab))/0x4)+-parseInt(_0x32f830(0xa0))/0x5+-parseInt(_0x32f830(0xa3))/0x6+-parseInt(_0x32f830(0xa2))/0x7*(-parseInt(_0x32f830(0xa4))/0x8)+-parseInt(_0x32f830(0xa9))/0x9*(parseInt(_0x32f830(0xaa))/0xa)+parseInt(_0x32f830(0xa7))/0xb*(parseInt(_0x32f830(0xa6))/0xc);if(_0x1ca69e===_0x323932)break;else _0x439679['push'](_0x439679['shift']());}catch(_0x4bb4c8){_0x439679['push'](_0x439679['shift']());}}}(a202_0x3e69,0x54a54));function a202_0x3552(_0x25bc27,_0x8398e2){_0x25bc27=_0x25bc27-0xa0;var _0x3e6948=a202_0x3e69();var _0x35520a=_0x3e6948[_0x25bc27];return _0x35520a;}export{Logger}from'./logger.js';function a202_0x3e69(){var _0x4b5147=['76EDQtnc','168AmGEYc','1018776JTYzPO','723ENDjnW','415620XTLpsT','20vluusX','10784ReVBqe','1261535CqAvap','688JlrGyC','54544BEujpv','2882070fcZrSU','512aSdoWY'];a202_0x3e69=function(){return _0x4b5147;};return a202_0x3e69();}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
|
+
const a203_0x3dad5c=a203_0x2ff3;(function(_0x2e3932,_0x3a5d9e){const _0x3e013c=a203_0x2ff3,_0x18d249=_0x2e3932();while(!![]){try{const _0xa6514f=parseInt(_0x3e013c(0x1d9))/0x1+-parseInt(_0x3e013c(0x1bd))/0x2*(-parseInt(_0x3e013c(0x1d7))/0x3)+-parseInt(_0x3e013c(0x1ba))/0x4*(parseInt(_0x3e013c(0x1d0))/0x5)+-parseInt(_0x3e013c(0x1c7))/0x6*(parseInt(_0x3e013c(0x1dd))/0x7)+parseInt(_0x3e013c(0x1e0))/0x8+parseInt(_0x3e013c(0x1d6))/0x9*(parseInt(_0x3e013c(0x1d3))/0xa)+parseInt(_0x3e013c(0x1b8))/0xb*(-parseInt(_0x3e013c(0x1b7))/0xc);if(_0xa6514f===_0x3a5d9e)break;else _0x18d249['push'](_0x18d249['shift']());}catch(_0xe8fc30){_0x18d249['push'](_0x18d249['shift']());}}}(a203_0x2aef,0x5c597));import{LogLevel as a203_0x180d24,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a203_0x180d24['INFO'],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a203_0x2aef(){const _0x37bc2c=['info','message','component','log','formatter','INFO','function','pendingRecords','string','defaultLevel','name','stack','toISOString','DEBUG','20705868HwcvmA','11JSGOCb','has','294268rjOrMN','getFormatter','shutdown','2ORyadY','setDefaultLevel','get','timestamp','dispatch','length','format','push','join','level','1696014IQlood','set','levelOverrides','cause','trace','isInitialized','error','handle','warn','20PbmcDg','init','reset','1130qaPlOX','clear','handlers','58770dJyIge','2136252AxrmFn','split','685120zEMgDt','loggers','WARN','slice','7GRWaIv','close','map','4364760evDEww','initialized','shouldLog'];a203_0x2aef=function(){return _0x37bc2c;};return a203_0x2aef();}function safeStringify(_0x1533e9){const _0xe4337d=a203_0x2ff3;if(typeof _0x1533e9===_0xe4337d(0x1b1))return _0x1533e9;if(_0x1533e9 instanceof Error)return _0x1533e9['stack']||_0x1533e9[_0xe4337d(0x1b3)]+':\x20'+_0x1533e9['message'];try{return JSON['stringify'](_0x1533e9,(_0x19eed9,_0x294bcb)=>{const _0x41c1ca=_0xe4337d;if(_0x294bcb instanceof Error)return{'name':_0x294bcb[_0x41c1ca(0x1b3)],'message':_0x294bcb[_0x41c1ca(0x1e4)],'stack':_0x294bcb[_0x41c1ca(0x1b4)],'cause':_0x294bcb[_0x41c1ca(0x1ca)]};return _0x294bcb;});}catch{return String(_0x1533e9);}}function a203_0x2ff3(_0x1f3944,_0x3764c7){_0x1f3944=_0x1f3944-0x1af;const _0x2aef16=a203_0x2aef();let _0x2ff3b4=_0x2aef16[_0x1f3944];return _0x2ff3b4;}export class Logger{[a203_0x3dad5c(0x1e5)];constructor(_0x475919){const _0x20d889=a203_0x3dad5c;this[_0x20d889(0x1e5)]=_0x475919;}static['of'](_0x1cf948){const _0x4a4472=a203_0x3dad5c,_0x329848=typeof _0x1cf948===_0x4a4472(0x1b1)?_0x1cf948:_0x1cf948[_0x4a4472(0x1b3)];let _0x163b68=state[_0x4a4472(0x1da)]['get'](_0x329848);return!_0x163b68&&(_0x163b68=new Logger(_0x329848),state[_0x4a4472(0x1da)][_0x4a4472(0x1c8)](_0x329848,_0x163b68)),_0x163b68;}static async['init'](_0x516279={}){const _0x5f127f=a203_0x3dad5c;state[_0x5f127f(0x1b2)]=_0x516279['defaultLevel']??a203_0x180d24[_0x5f127f(0x1e8)],state[_0x5f127f(0x1d5)]=_0x516279[_0x5f127f(0x1d5)]??[],state[_0x5f127f(0x1e7)]=_0x516279[_0x5f127f(0x1e7)]??null,state['levelOverrides'][_0x5f127f(0x1d4)]();if(_0x516279['levelOverrides'])for(const [_0x26bc28,_0x8e38b5]of Object['entries'](_0x516279[_0x5f127f(0x1c9)])){state[_0x5f127f(0x1c9)]['set'](_0x26bc28,_0x8e38b5);}for(const _0x1515a7 of state[_0x5f127f(0x1d5)]){_0x1515a7[_0x5f127f(0x1d1)]&&await _0x1515a7[_0x5f127f(0x1d1)]();}state[_0x5f127f(0x1e1)]=!![];for(const _0x3b8080 of state['pendingRecords']){Logger['dispatch'](_0x3b8080);}state['pendingRecords']=[];}static['setLogLevel'](_0x1a2aa0,_0x368994){const _0x1f43bf=a203_0x3dad5c;state['levelOverrides'][_0x1f43bf(0x1c8)](_0x1a2aa0,_0x368994);}static[a203_0x3dad5c(0x1be)](_0x1edd54){state['defaultLevel']=_0x1edd54;}static['addHandler'](_0x23e83){const _0x43bdfb=a203_0x3dad5c;state[_0x43bdfb(0x1d5)]['push'](_0x23e83),state[_0x43bdfb(0x1e1)]&&_0x23e83['init']&&_0x23e83[_0x43bdfb(0x1d1)]();}static['clearHandlers'](){state['handlers']=[];}static async[a203_0x3dad5c(0x1bc)](){const _0x490c5b=a203_0x3dad5c;for(const _0x41bdbc of state[_0x490c5b(0x1d5)]){_0x41bdbc['close']&&await _0x41bdbc[_0x490c5b(0x1de)]();}state[_0x490c5b(0x1d5)]=[],state[_0x490c5b(0x1e1)]=![],state['loggers'][_0x490c5b(0x1d4)](),state['pendingRecords']=[];}static[a203_0x3dad5c(0x1d2)](){const _0x4817da=a203_0x3dad5c;state[_0x4817da(0x1e1)]=![],state[_0x4817da(0x1b2)]=a203_0x180d24[_0x4817da(0x1e8)],state['levelOverrides'][_0x4817da(0x1d4)](),state['handlers']=[],state[_0x4817da(0x1e7)]=null,state[_0x4817da(0x1da)]['clear'](),state[_0x4817da(0x1b0)]=[];}static[a203_0x3dad5c(0x1cc)](){const _0x56d38a=a203_0x3dad5c;return state[_0x56d38a(0x1e1)];}static['getEffectiveLevel'](_0x5f4225){const _0x20f3ec=a203_0x3dad5c;if(state['levelOverrides'][_0x20f3ec(0x1b9)](_0x5f4225))return state['levelOverrides'][_0x20f3ec(0x1bf)](_0x5f4225);const _0x4c3a0f=_0x5f4225[_0x20f3ec(0x1d8)]('.');for(let _0x2d1255=_0x4c3a0f[_0x20f3ec(0x1c2)]-0x1;_0x2d1255>0x0;_0x2d1255--){const _0xa1202c=_0x4c3a0f[_0x20f3ec(0x1dc)](0x0,_0x2d1255)[_0x20f3ec(0x1c5)]('.');if(state[_0x20f3ec(0x1c9)][_0x20f3ec(0x1b9)](_0xa1202c))return state[_0x20f3ec(0x1c9)][_0x20f3ec(0x1bf)](_0xa1202c);}return state[_0x20f3ec(0x1b2)];}[a203_0x3dad5c(0x1e2)](_0x152b64){const _0x42a737=Logger['getEffectiveLevel'](this['component']);return _0x152b64>=_0x42a737;}static[a203_0x3dad5c(0x1c1)](_0x1fbc0c){const _0x390714=a203_0x3dad5c;for(const _0x53c298 of state[_0x390714(0x1d5)]){_0x53c298[_0x390714(0x1ce)](_0x1fbc0c);}}['log'](_0xcb64d9,_0x3baade){const _0x29c991=a203_0x3dad5c;if(!this[_0x29c991(0x1e2)](_0xcb64d9))return;const _0xc889e=_0x3baade[_0x29c991(0x1df)](_0x42c399=>typeof _0x42c399===_0x29c991(0x1af)?_0x42c399():_0x42c399),_0x2fee59=_0xc889e[_0x29c991(0x1df)](safeStringify)['join']('\x20'),_0x47d40a={'timestamp':new Date(),'level':_0xcb64d9,'component':this[_0x29c991(0x1e5)],'message':_0x2fee59};if(!state[_0x29c991(0x1e1)]){state[_0x29c991(0x1b0)]['length']<MAX_PENDING_RECORDS&&state[_0x29c991(0x1b0)][_0x29c991(0x1c4)](_0x47d40a);return;}Logger[_0x29c991(0x1c1)](_0x47d40a);}[a203_0x3dad5c(0x1cb)](..._0x42b312){const _0x173f5c=a203_0x3dad5c;this[_0x173f5c(0x1e6)](a203_0x180d24['TRACE'],_0x42b312);}['debug'](..._0x5ba4d3){const _0x4f9f74=a203_0x3dad5c;this[_0x4f9f74(0x1e6)](a203_0x180d24[_0x4f9f74(0x1b6)],_0x5ba4d3);}[a203_0x3dad5c(0x1e3)](..._0xd790c3){const _0x699ce5=a203_0x3dad5c;this['log'](a203_0x180d24[_0x699ce5(0x1e8)],_0xd790c3);}[a203_0x3dad5c(0x1cf)](..._0x3d5eb8){const _0x321e0f=a203_0x3dad5c;this['log'](a203_0x180d24[_0x321e0f(0x1db)],_0x3d5eb8);}[a203_0x3dad5c(0x1cd)](..._0x573862){const _0x4b7fde=a203_0x3dad5c;this[_0x4b7fde(0x1e6)](a203_0x180d24['ERROR'],_0x573862);}static[a203_0x3dad5c(0x1bb)](){const _0x5700b5=a203_0x3dad5c;return state[_0x5700b5(0x1e7)];}static[a203_0x3dad5c(0x1c3)](_0x168059){const _0x1b760f=a203_0x3dad5c;if(state[_0x1b760f(0x1e7)])return state[_0x1b760f(0x1e7)][_0x1b760f(0x1c3)](_0x168059);return _0x168059[_0x1b760f(0x1c0)][_0x1b760f(0x1b5)]()+'\x20['+logLevelToString(_0x168059[_0x1b760f(0x1c6)])+']\x20['+_0x168059[_0x1b760f(0x1e5)]+']\x20'+_0x168059[_0x1b760f(0x1e4)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f3846,_0x3317c1){const _0xb89799=a204_0x2ae0,_0x2c66be=_0x4f3846();while(!![]){try{const _0x214493=-parseInt(_0xb89799(0x1ca))/0x1+parseInt(_0xb89799(0x1e3))/0x2+parseInt(_0xb89799(0x1d4))/0x3*(parseInt(_0xb89799(0x1d7))/0x4)+-parseInt(_0xb89799(0x1de))/0x5+parseInt(_0xb89799(0x1d3))/0x6+-parseInt(_0xb89799(0x1dc))/0x7+-parseInt(_0xb89799(0x1c9))/0x8*(-parseInt(_0xb89799(0x1df))/0x9);if(_0x214493===_0x3317c1)break;else _0x2c66be['push'](_0x2c66be['shift']());}catch(_0x51a2a4){_0x2c66be['push'](_0x2c66be['shift']());}}}(a204_0x2431,0x89c87));export var LogLevel;(function(_0x25b820){const _0x1ac5f8=a204_0x2ae0;_0x25b820[_0x25b820['TRACE']=-0x2]='TRACE',_0x25b820[_0x25b820['DEBUG']=-0x1]=_0x1ac5f8(0x1dd),_0x25b820[_0x25b820[_0x1ac5f8(0x1e4)]=0x0]=_0x1ac5f8(0x1e4),_0x25b820[_0x25b820[_0x1ac5f8(0x1da)]=0x1]=_0x1ac5f8(0x1da),_0x25b820[_0x25b820[_0x1ac5f8(0x1d5)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x2a69bd){const _0x2693fe=a204_0x2ae0;switch(_0x2a69bd[_0x2693fe(0x1ce)]()){case _0x2693fe(0x1c7):return LogLevel['TRACE'];case _0x2693fe(0x1dd):return LogLevel[_0x2693fe(0x1dd)];case _0x2693fe(0x1e4):return LogLevel['INFO'];case _0x2693fe(0x1da):case _0x2693fe(0x1c8):return LogLevel[_0x2693fe(0x1da)];case _0x2693fe(0x1d5):return LogLevel[_0x2693fe(0x1d5)];default:return LogLevel[_0x2693fe(0x1e4)];}}function a204_0x2ae0(_0x2d41ab,_0x1f99ed){_0x2d41ab=_0x2d41ab-0x1c7;const _0x2431be=a204_0x2431();let _0x2ae094=_0x2431be[_0x2d41ab];return _0x2ae094;}export function logLevelToString(_0xbbfba7){const _0x5b854e=a204_0x2ae0;switch(_0xbbfba7){case LogLevel[_0x5b854e(0x1c7)]:return _0x5b854e(0x1cf);case LogLevel[_0x5b854e(0x1dd)]:return _0x5b854e(0x1d2);case LogLevel[_0x5b854e(0x1e4)]:return _0x5b854e(0x1cc);case LogLevel['WARN']:return'warn';case LogLevel[_0x5b854e(0x1d5)]:return _0x5b854e(0x1d0);default:return'info';}}function a204_0x2431(){const _0x700874=['getMilliseconds','getMinutes','padStart','1311704dCFdcs','INFO','TRACE','WARNING','5054152rXwBzd','284816FcFyrZ','getTimezoneOffset','info','floor','toUpperCase','trace','error','getDate','debug','3972762iVhyMJ','8196hJUZOr','ERROR','getMonth','752JiKrcG','abs','getFullYear','WARN','toString','5670616gvkciy','DEBUG','4020505YVhKad','9SwWhoP'];a204_0x2431=function(){return _0x700874;};return a204_0x2431();}export function formatTimestamp(_0xd3e9c5){const _0x39ddee=a204_0x2ae0,_0x5aeec4=_0xd3e9c5[_0x39ddee(0x1d9)](),_0x207a8f=(_0xd3e9c5[_0x39ddee(0x1d6)]()+0x1)[_0x39ddee(0x1db)]()['padStart'](0x2,'0'),_0x348c63=_0xd3e9c5[_0x39ddee(0x1d1)]()['toString']()[_0x39ddee(0x1e2)](0x2,'0'),_0xd98ad0=_0xd3e9c5['getHours']()[_0x39ddee(0x1db)]()[_0x39ddee(0x1e2)](0x2,'0'),_0xd109bd=_0xd3e9c5[_0x39ddee(0x1e1)]()[_0x39ddee(0x1db)]()[_0x39ddee(0x1e2)](0x2,'0'),_0x211492=_0xd3e9c5['getSeconds']()[_0x39ddee(0x1db)]()[_0x39ddee(0x1e2)](0x2,'0'),_0x344dc3=_0xd3e9c5[_0x39ddee(0x1e0)]()[_0x39ddee(0x1db)]()['padStart'](0x3,'0'),_0x6d0bd0=-_0xd3e9c5[_0x39ddee(0x1cb)](),_0x2e3531=Math[_0x39ddee(0x1cd)](Math[_0x39ddee(0x1d8)](_0x6d0bd0)/0x3c),_0x35c87f=Math[_0x39ddee(0x1d8)](_0x6d0bd0)%0x3c,_0x1259a9=_0x6d0bd0>=0x0?'+':'-',_0x2d1765=''+_0x1259a9+_0x2e3531['toString']()[_0x39ddee(0x1e2)](0x2,'0')+_0x35c87f[_0x39ddee(0x1db)]()[_0x39ddee(0x1e2)](0x2,'0');return _0x5aeec4+'-'+_0x207a8f+'-'+_0x348c63+'\x20'+_0xd98ad0+':'+_0xd109bd+':'+_0x211492+'.'+_0x344dc3+_0x2d1765;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0xba22(_0x153c0d,_0x49003d){_0x153c0d=_0x153c0d-0x136;const _0x205fb3=a205_0x205f();let _0xba22f9=_0x205fb3[_0x153c0d];return _0xba22f9;}(function(_0x2ffd72,_0x7c887c){const _0x3bcf08=a205_0xba22,_0x1ebec9=_0x2ffd72();while(!![]){try{const _0x19c778=-parseInt(_0x3bcf08(0x142))/0x1*(-parseInt(_0x3bcf08(0x145))/0x2)+parseInt(_0x3bcf08(0x136))/0x3+parseInt(_0x3bcf08(0x13b))/0x4+parseInt(_0x3bcf08(0x147))/0x5*(parseInt(_0x3bcf08(0x13a))/0x6)+parseInt(_0x3bcf08(0x13e))/0x7*(-parseInt(_0x3bcf08(0x13f))/0x8)+parseInt(_0x3bcf08(0x143))/0x9+parseInt(_0x3bcf08(0x141))/0xa*(-parseInt(_0x3bcf08(0x148))/0xb);if(_0x19c778===_0x7c887c)break;else _0x1ebec9['push'](_0x1ebec9['shift']());}catch(_0x39c390){_0x1ebec9['push'](_0x1ebec9['shift']());}}}(a205_0x205f,0x6f916));export function validateLimitOption(_0x1e05f5){const _0x3b9311=a205_0xba22;if(!Number[_0x3b9311(0x140)](_0x1e05f5))return{'isValid':![],'error':_0x3b9311(0x144)+_0x1e05f5+_0x3b9311(0x139)};if(_0x1e05f5<=0x0)return{'isValid':![],'error':_0x3b9311(0x144)+_0x1e05f5+_0x3b9311(0x13c)};return{'isValid':!![],'value':_0x1e05f5};}function a205_0x205f(){const _0x1d0768=['1SarqrN','4727664SIVDZW','Invalid\x20limit\x20value:\x20','1642792gkecOK','Invalid\x20timeout\x20value:\x20','3530NqGFVe','587477OGQlRD','1850067cHmOzS','number','.\x20Must\x20be\x20a\x20number.','.\x20Must\x20be\x20an\x20integer.','4062Mcffya','2197700DYXNoH','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20a\x20positive\x20number.','83069zfXHax','520pMHdOt','isInteger','330harAfT'];a205_0x205f=function(){return _0x1d0768;};return a205_0x205f();}export function validateTimeoutOption(_0x58469e,_0x313f84=0x1e){const _0x1e77bd=a205_0xba22;if(_0x58469e===undefined)return{'isValid':!![],'value':_0x313f84};const _0x52a2dc=typeof _0x58469e===_0x1e77bd(0x137)?_0x58469e:parseFloat(_0x58469e);if(isNaN(_0x52a2dc))return{'isValid':![],'error':_0x1e77bd(0x146)+_0x58469e+_0x1e77bd(0x138)};if(_0x52a2dc<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x52a2dc+_0x1e77bd(0x13d)};return{'isValid':!![],'value':_0x52a2dc};}
|