@treasuredata/tdx 2026.3.21 → 2026.3.23
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/policy-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/policy.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(_0x29c520,_0x2f261a){const _0xeace10=a190_0x4bd5,_0x26cc31=_0x29c520();while(!![]){try{const _0x3a68b3=parseInt(_0xeace10(0x115))/0x1+parseInt(_0xeace10(0x10f))/0x2*(parseInt(_0xeace10(0x10e))/0x3)+parseInt(_0xeace10(0x111))/0x4+parseInt(_0xeace10(0x118))/0x5+parseInt(_0xeace10(0x10c))/0x6*(parseInt(_0xeace10(0x110))/0x7)+-parseInt(_0xeace10(0x114))/0x8+-parseInt(_0xeace10(0x10d))/0x9;if(_0x3a68b3===_0x2f261a)break;else _0x26cc31['push'](_0x26cc31['shift']());}catch(_0x1de0e1){_0x26cc31['push'](_0x26cc31['shift']());}}}(a190_0x17b6,0xe77b4));function a190_0x17b6(){const _0x4e6064=['245sRxlID','1824968xBttDG','length','map','13144520msrDeW','1488158zIFQZU','slice','push','920175trYGbO','all','319782FPZVWF','16023609uPFEFR','4293JhOYTU','528fzNzvz'];a190_0x17b6=function(){return _0x4e6064;};return a190_0x17b6();}function a190_0x4bd5(_0x229902,_0x31eea4){_0x229902=_0x229902-0x10b;const _0x17b653=a190_0x17b6();let _0x4bd5b2=_0x17b653[_0x229902];return _0x4bd5b2;}export async function batchAsync(_0x232364,_0x46ca5d,_0x479cfa=0xa){const _0x3f73cf=a190_0x4bd5,_0x413448=[];for(let _0x13c2f8=0x0;_0x13c2f8<_0x232364[_0x3f73cf(0x112)];_0x13c2f8+=_0x479cfa){const _0x4dbc44=_0x232364[_0x3f73cf(0x116)](_0x13c2f8,_0x13c2f8+_0x479cfa),_0xdce1c1=await Promise[_0x3f73cf(0x10b)](_0x4dbc44[_0x3f73cf(0x113)](_0x46ca5d));_0x413448[_0x3f73cf(0x117)](..._0xdce1c1);}return _0x413448;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a191_0xa4d7f2=a191_0x27f4;(function(_0x10af8e,_0x595469){const _0x474a2c=a191_0x27f4,_0x2aeb77=_0x10af8e();while(!![]){try{const _0x149c88=-parseInt(_0x474a2c(0xe7))/0x1*(-parseInt(_0x474a2c(0xe9))/0x2)+parseInt(_0x474a2c(0xf0))/0x3+-parseInt(_0x474a2c(0xf7))/0x4+parseInt(_0x474a2c(0xfd))/0x5*(-parseInt(_0x474a2c(0xf6))/0x6)+-parseInt(_0x474a2c(0xf9))/0x7*(parseInt(_0x474a2c(0xe6))/0x8)+-parseInt(_0x474a2c(0xf1))/0x9+parseInt(_0x474a2c(0xe8))/0xa;if(_0x149c88===_0x595469)break;else _0x2aeb77['push'](_0x2aeb77['shift']());}catch(_0x1925ee){_0x2aeb77['push'](_0x2aeb77['shift']());}}}(a191_0x77c9,0xddc3f));import*as a191_0x278449 from'chalk';const Chalk=a191_0x278449[a191_0xa4d7f2(0xea)];function a191_0x77c9(){const _0x287d9e=['isTTY','yellow','string','length','6GRiuaJ','932376hUqxRP','boolean','1589bnQjZc','null','cyan','color','5227525suTOlK','object','number','dim','repeat','join','49256jMTZeE','527kGnIed','28980220GkxFJd','6060MbnvJo','Chalk','map','entries','stdout','stringify','blue','1511757poPhxF','12727458qtfVtN'];a191_0x77c9=function(){return _0x287d9e;};return a191_0x77c9();}export function shouldUseColor(_0x542e50={}){const _0x2a6149=a191_0xa4d7f2;if(_0x542e50['noColor']===!![])return![];if(_0x542e50[_0x2a6149(0xfc)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2a6149(0xed)][_0x2a6149(0xf2)]??![];}function a191_0x27f4(_0x5f1737,_0x10173d){_0x5f1737=_0x5f1737-0xe4;const _0x77c9c1=a191_0x77c9();let _0x27f430=_0x77c9c1[_0x5f1737];return _0x27f430;}export function getChalk(_0x3c2f1f={}){if(shouldUseColor(_0x3c2f1f))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x167f32,_0x56f9bc={}){const _0x44855f=a191_0xa4d7f2;return getChalk(_0x56f9bc)[_0x44855f(0x100)](_0x167f32);}export function colorHeader(_0x4ead53,_0x3aa7ed={}){const _0x4e2b96=a191_0xa4d7f2;return getChalk(_0x3aa7ed)[_0x4e2b96(0xfb)](_0x4ead53);}export function colorType(_0x487ea6,_0x335f1c={}){const _0x24bb20=a191_0xa4d7f2;return getChalk(_0x335f1c)[_0x24bb20(0x100)](_0x487ea6);}export function colorJSONKey(_0x5bb373,_0x4ca38e={}){const _0x3195ce=a191_0xa4d7f2;return getChalk(_0x4ca38e)[_0x3195ce(0xef)](_0x5bb373);}export function colorJSONString(_0x1fcf66,_0x30e164={}){return getChalk(_0x30e164)['green'](_0x1fcf66);}export function colorJSONNumber(_0x51bdfd,_0x377b4a={}){const _0x162d64=a191_0xa4d7f2;return getChalk(_0x377b4a)[_0x162d64(0xfb)](_0x51bdfd);}export function colorJSONBoolean(_0x3661f3,_0x4f6283={}){const _0x23422f=a191_0xa4d7f2;return getChalk(_0x4f6283)[_0x23422f(0xf3)](_0x3661f3);}export function colorJSONNull(_0x500624,_0x20e958={}){const _0x2b951b=a191_0xa4d7f2;return getChalk(_0x20e958)[_0x2b951b(0x100)](_0x500624);}export function colorizeJSONCompact(_0xcbd891,_0x37e5f8={}){const _0x194443=a191_0xa4d7f2;if(!shouldUseColor(_0x37e5f8))return JSON[_0x194443(0xee)](_0xcbd891);if(_0xcbd891===null)return colorJSONNull(_0x194443(0xfa),_0x37e5f8);if(typeof _0xcbd891===_0x194443(0xf8))return colorJSONBoolean(String(_0xcbd891),_0x37e5f8);if(typeof _0xcbd891===_0x194443(0xff))return colorJSONNumber(String(_0xcbd891),_0x37e5f8);if(typeof _0xcbd891===_0x194443(0xf4))return colorJSONString(JSON[_0x194443(0xee)](_0xcbd891),_0x37e5f8);if(Array['isArray'](_0xcbd891)){if(_0xcbd891[_0x194443(0xf5)]===0x0)return'[]';const _0x4649b3=_0xcbd891['map'](_0x15f0bb=>colorizeJSONCompact(_0x15f0bb,_0x37e5f8));return'['+_0x4649b3[_0x194443(0xe5)](',')+']';}if(typeof _0xcbd891===_0x194443(0xfe)){const _0x576db=Object['entries'](_0xcbd891);if(_0x576db[_0x194443(0xf5)]===0x0)return'{}';const _0x4257aa=_0x576db[_0x194443(0xeb)](([_0x2eaa7b,_0x3bd7d6])=>{const _0x5c50ef=_0x194443,_0x5373a3=colorJSONKey(JSON[_0x5c50ef(0xee)](_0x2eaa7b),_0x37e5f8),_0x2b7052=colorizeJSONCompact(_0x3bd7d6,_0x37e5f8);return _0x5373a3+':'+_0x2b7052;});return'{'+_0x4257aa[_0x194443(0xe5)](',')+'}';}return String(_0xcbd891);}export function colorizeJSON(_0x2b2aad,_0x1a1196={},_0x2617d4=0x0){const _0x3b2e68=a191_0xa4d7f2;if(!shouldUseColor(_0x1a1196))return JSON['stringify'](_0x2b2aad,null,0x2);const _0xcd926a='\x20'[_0x3b2e68(0xe4)](_0x2617d4),_0xfb6dbc=_0x2617d4+0x2;if(_0x2b2aad===null)return colorJSONNull('null',_0x1a1196);if(typeof _0x2b2aad===_0x3b2e68(0xf8))return colorJSONBoolean(String(_0x2b2aad),_0x1a1196);if(typeof _0x2b2aad===_0x3b2e68(0xff))return colorJSONNumber(String(_0x2b2aad),_0x1a1196);if(typeof _0x2b2aad===_0x3b2e68(0xf4))return colorJSONString(JSON[_0x3b2e68(0xee)](_0x2b2aad),_0x1a1196);if(Array['isArray'](_0x2b2aad)){if(_0x2b2aad[_0x3b2e68(0xf5)]===0x0)return'[]';const _0x2b90f1=_0x2b2aad[_0x3b2e68(0xeb)](_0x449e92=>{const _0x5d80d6=colorizeJSON(_0x449e92,_0x1a1196,_0xfb6dbc);return''+'\x20'['repeat'](_0xfb6dbc)+_0x5d80d6;});return'[\x0a'+_0x2b90f1[_0x3b2e68(0xe5)](',\x0a')+('\x0a'+_0xcd926a+']');}if(typeof _0x2b2aad===_0x3b2e68(0xfe)){const _0x4ee3b8=Object[_0x3b2e68(0xec)](_0x2b2aad);if(_0x4ee3b8[_0x3b2e68(0xf5)]===0x0)return'{}';const _0x43e5a4=_0x4ee3b8[_0x3b2e68(0xeb)](([_0x911258,_0xd1c7f3])=>{const _0x459bab=_0x3b2e68,_0xbacf45=colorJSONKey(JSON[_0x459bab(0xee)](_0x911258),_0x1a1196),_0x31b73c=colorizeJSON(_0xd1c7f3,_0x1a1196,_0xfb6dbc);return''+'\x20'[_0x459bab(0xe4)](_0xfb6dbc)+_0xbacf45+':\x20'+_0x31b73c;});return'{\x0a'+_0x43e5a4['join'](',\x0a')+('\x0a'+_0xcd926a+'}');}return String(_0x2b2aad);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b9b98,_0x42e418){const _0x5c8fa4=a192_0x3d0c,_0x4bddc1=_0x4b9b98();while(!![]){try{const _0xf18475=parseInt(_0x5c8fa4(0x123))/0x1+parseInt(_0x5c8fa4(0x135))/0x2+-parseInt(_0x5c8fa4(0x13e))/0x3*(parseInt(_0x5c8fa4(0x12f))/0x4)+-parseInt(_0x5c8fa4(0x13a))/0x5+-parseInt(_0x5c8fa4(0x146))/0x6*(parseInt(_0x5c8fa4(0x12c))/0x7)+parseInt(_0x5c8fa4(0x13f))/0x8+parseInt(_0x5c8fa4(0x137))/0x9;if(_0xf18475===_0x42e418)break;else _0x4bddc1['push'](_0x4bddc1['shift']());}catch(_0x26221c){_0x4bddc1['push'](_0x4bddc1['shift']());}}}(a192_0x3775,0x7c5ba));import a192_0x29ab2e from'chalk';export function generateDiff(_0x1c1130,_0x336402){const _0x124d17=a192_0x3d0c,_0x2a48eb=_0x1c1130[_0x124d17(0x126)]('\x0a'),_0x32ef99=_0x336402[_0x124d17(0x126)]('\x0a'),_0x33502b=[],_0x161e6b=computeLCS(_0x2a48eb,_0x32ef99);let _0x459f61=0x0,_0x4e25d3=0x0,_0x4d413b=0x0;while(_0x459f61<_0x2a48eb[_0x124d17(0x134)]||_0x4e25d3<_0x32ef99[_0x124d17(0x134)]){if(_0x4d413b<_0x161e6b[_0x124d17(0x134)]&&_0x459f61<_0x2a48eb[_0x124d17(0x134)]&&_0x2a48eb[_0x459f61]===_0x161e6b[_0x4d413b])_0x4e25d3<_0x32ef99[_0x124d17(0x134)]&&_0x32ef99[_0x4e25d3]===_0x161e6b[_0x4d413b]?(_0x33502b[_0x124d17(0x13b)]({'type':_0x124d17(0x129),'content':_0x2a48eb[_0x459f61]}),_0x459f61++,_0x4e25d3++,_0x4d413b++):(_0x33502b['push']({'type':_0x124d17(0x139),'content':_0x32ef99[_0x4e25d3]}),_0x4e25d3++);else{if(_0x4d413b<_0x161e6b[_0x124d17(0x134)]&&_0x4e25d3<_0x32ef99[_0x124d17(0x134)]&&_0x32ef99[_0x4e25d3]===_0x161e6b[_0x4d413b])_0x33502b[_0x124d17(0x13b)]({'type':_0x124d17(0x13d),'content':_0x2a48eb[_0x459f61]}),_0x459f61++;else{if(_0x459f61<_0x2a48eb[_0x124d17(0x134)]&&(_0x4d413b>=_0x161e6b[_0x124d17(0x134)]||_0x2a48eb[_0x459f61]!==_0x161e6b[_0x4d413b]))_0x33502b['push']({'type':'removed','content':_0x2a48eb[_0x459f61]}),_0x459f61++;else _0x4e25d3<_0x32ef99['length']&&(_0x33502b['push']({'type':'added','content':_0x32ef99[_0x4e25d3]}),_0x4e25d3++);}}}return _0x33502b;}function a192_0x3d0c(_0x31aa5c,_0x5c87ee){_0x31aa5c=_0x31aa5c-0x123;const _0x377501=a192_0x3775();let _0x3d0c45=_0x377501[_0x31aa5c];return _0x3d0c45;}function computeLCS(_0x328278,_0x39fc0a){const _0x49d414=a192_0x3d0c,_0xbd4de4=_0x328278[_0x49d414(0x134)],_0x300fce=_0x39fc0a['length'],_0x14d55b=Array(_0xbd4de4+0x1)[_0x49d414(0x127)](null)[_0x49d414(0x144)](()=>Array(_0x300fce+0x1)[_0x49d414(0x127)](0x0));for(let _0x4f866b=0x1;_0x4f866b<=_0xbd4de4;_0x4f866b++){for(let _0x2a6c44=0x1;_0x2a6c44<=_0x300fce;_0x2a6c44++){_0x328278[_0x4f866b-0x1]===_0x39fc0a[_0x2a6c44-0x1]?_0x14d55b[_0x4f866b][_0x2a6c44]=_0x14d55b[_0x4f866b-0x1][_0x2a6c44-0x1]+0x1:_0x14d55b[_0x4f866b][_0x2a6c44]=Math[_0x49d414(0x142)](_0x14d55b[_0x4f866b-0x1][_0x2a6c44],_0x14d55b[_0x4f866b][_0x2a6c44-0x1]);}}const _0x1d076c=[];let _0x20f6f9=_0xbd4de4,_0x163710=_0x300fce;while(_0x20f6f9>0x0&&_0x163710>0x0){if(_0x328278[_0x20f6f9-0x1]===_0x39fc0a[_0x163710-0x1])_0x1d076c[_0x49d414(0x145)](_0x328278[_0x20f6f9-0x1]),_0x20f6f9--,_0x163710--;else _0x14d55b[_0x20f6f9-0x1][_0x163710]>_0x14d55b[_0x20f6f9][_0x163710-0x1]?_0x20f6f9--:_0x163710--;}return _0x1d076c;}export function formatDiffWithColors(_0x4d001a,_0x1cba17=0x3){const _0x184733=a192_0x3d0c,_0x4441f9=new Set();_0x4d001a[_0x184733(0x138)]((_0x1ea8bf,_0x4baf09)=>{const _0x56b7e0=_0x184733;_0x1ea8bf[_0x56b7e0(0x12e)]!==_0x56b7e0(0x129)&&_0x4441f9['add'](_0x4baf09);});if(_0x4441f9[_0x184733(0x124)]===0x0)return'';const _0xe45b24=new Set();for(const _0x408f24 of _0x4441f9){for(let _0x30e0eb=Math[_0x184733(0x142)](0x0,_0x408f24-_0x1cba17);_0x30e0eb<=Math['min'](_0x4d001a[_0x184733(0x134)]-0x1,_0x408f24+_0x1cba17);_0x30e0eb++){_0xe45b24['add'](_0x30e0eb);}}const _0x5cde60=[];let _0x4b2383=-0x1;const _0x2dc64d=_0x4d001a[_0x184733(0x134)],_0x16b188=Math[_0x184733(0x142)](0x3,String(_0x2dc64d)[_0x184733(0x134)]),_0x3f584d=[];let _0x14aa0a=0x0,_0x28598b=0x0;for(const _0x2ce7cd of _0x4d001a){if(_0x2ce7cd[_0x184733(0x12e)]===_0x184733(0x13d))_0x14aa0a++,_0x3f584d[_0x184733(0x13b)]({'old':_0x14aa0a,'new':0x0});else _0x2ce7cd[_0x184733(0x12e)]===_0x184733(0x139)?(_0x28598b++,_0x3f584d[_0x184733(0x13b)]({'old':0x0,'new':_0x28598b})):(_0x14aa0a++,_0x28598b++,_0x3f584d[_0x184733(0x13b)]({'old':_0x14aa0a,'new':_0x28598b}));}for(let _0x40c515=0x0;_0x40c515<_0x4d001a[_0x184733(0x134)];_0x40c515++){if(!_0xe45b24[_0x184733(0x12d)](_0x40c515))continue;_0x4b2383!==-0x1&&_0x40c515>_0x4b2383+0x1&&_0x5cde60['push'](a192_0x29ab2e[_0x184733(0x131)](_0x184733(0x128)));_0x4b2383=_0x40c515;const _0x96497c=_0x4d001a[_0x40c515],_0x549c82=_0x3f584d[_0x40c515],_0x105431=_0x549c82[_0x184733(0x133)]>0x0?String(_0x549c82[_0x184733(0x133)])[_0x184733(0x141)](_0x16b188):'\x20'[_0x184733(0x125)](_0x16b188),_0x3439e8=_0x549c82[_0x184733(0x143)]>0x0?String(_0x549c82[_0x184733(0x143)])['padStart'](_0x16b188):'\x20'[_0x184733(0x125)](_0x16b188);switch(_0x96497c[_0x184733(0x12e)]){case _0x184733(0x13d):_0x5cde60[_0x184733(0x13b)](a192_0x29ab2e['red'](_0x105431+'\x20'+_0x3439e8+_0x184733(0x12b)+_0x96497c['content']));break;case _0x184733(0x139):_0x5cde60[_0x184733(0x13b)](a192_0x29ab2e[_0x184733(0x12a)](_0x105431+'\x20'+_0x3439e8+'\x20+\x20'+_0x96497c[_0x184733(0x13c)]));break;default:_0x5cde60[_0x184733(0x13b)](a192_0x29ab2e[_0x184733(0x130)](_0x105431+'\x20'+_0x3439e8+_0x184733(0x136)+_0x96497c['content']));break;}}return _0x5cde60[_0x184733(0x140)]('\x0a');}export function hasChanges(_0x593287){const _0x5e3dda=a192_0x3d0c;return _0x593287[_0x5e3dda(0x132)](_0x1bc8ee=>_0x1bc8ee[_0x5e3dda(0x12e)]!==_0x5e3dda(0x129));}function a192_0x3775(){const _0x2e1149=['\x20\x20\x20','14158665kWaEMF','forEach','added','3296760vZrRId','push','content','removed','15ZhPvGb','2055120isQuPc','join','padStart','max','new','map','unshift','6ZSPjhU','197564zhjzdV','size','repeat','split','fill','\x20\x20...','unchanged','green','\x20-\x20','5428101jVYrmY','has','type','95500dMMtiO','dim','cyan','some','old','length','71802ZTCDmx'];a192_0x3775=function(){return _0x2e1149;};return a192_0x3775();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a193_0x583a(_0x50d305,_0x447887){_0x50d305=_0x50d305-0xe4;const _0x35996f=a193_0x3599();let _0x583aec=_0x35996f[_0x50d305];return _0x583aec;}(function(_0xde6bd9,_0x3e90d8){const _0x1a4787=a193_0x583a,_0x134af8=_0xde6bd9();while(!![]){try{const _0x7ed28=-parseInt(_0x1a4787(0xf9))/0x1+-parseInt(_0x1a4787(0xe8))/0x2+parseInt(_0x1a4787(0xf8))/0x3+parseInt(_0x1a4787(0xf2))/0x4*(-parseInt(_0x1a4787(0xe9))/0x5)+parseInt(_0x1a4787(0xfa))/0x6+-parseInt(_0x1a4787(0xf5))/0x7+-parseInt(_0x1a4787(0xeb))/0x8*(-parseInt(_0x1a4787(0xee))/0x9);if(_0x7ed28===_0x3e90d8)break;else _0x134af8['push'](_0x134af8['shift']());}catch(_0x532bef){_0x134af8['push'](_0x134af8['shift']());}}}(a193_0x3599,0x32abc));import*as a193_0x60f322 from'node:fs';import*as a193_0x13a2c2 from'node:path';export function setSecureFilePermissions(_0x4c1831){const _0x158193=a193_0x583a;try{a193_0x60f322[_0x158193(0xf0)](_0x4c1831,0x180);}catch{console[_0x158193(0xf6)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4c1831);}}function a193_0x3599(){const _0x1e87e8=['1121493mdBDKo','179031AfSKyE','2396280nriKBD','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','Should\x20be\x200600\x20or\x20more\x20restrictive.','mkdirSync','statSync','725024XcdljQ','1874330saMChB','writeFileSync','16840tASoyv','\x20has\x20insecure\x20permissions\x20(','Warning:\x20','2007bWuIGF','mode','chmodSync','dirname','4FabcMh',').\x20','toString','830683lBZENX','warn','existsSync'];a193_0x3599=function(){return _0x1e87e8;};return a193_0x3599();}export function setSecureDirectoryPermissions(_0x49d3db){const _0x2f62b2=a193_0x583a;try{a193_0x60f322[_0x2f62b2(0xf0)](_0x49d3db,0x1c0);}catch{console[_0x2f62b2(0xf6)](_0x2f62b2(0xe4)+_0x49d3db);}}export function createSecureDirectory(_0x5f22bb){const _0x5249d1=a193_0x583a;!a193_0x60f322[_0x5249d1(0xf7)](_0x5f22bb)&&(a193_0x60f322[_0x5249d1(0xe6)](_0x5f22bb,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5f22bb));}export function validateSecureFilePermissions(_0x505bbb){const _0x3c52e5=a193_0x583a;try{const _0x589256=a193_0x60f322[_0x3c52e5(0xe7)](_0x505bbb),_0x1da069=_0x589256[_0x3c52e5(0xef)]&0x1ff,_0x2061e1=(_0x1da069&0x3f)!==0x0;if(_0x2061e1)return console[_0x3c52e5(0xf6)](_0x3c52e5(0xed)+_0x505bbb+_0x3c52e5(0xec)+_0x1da069[_0x3c52e5(0xf4)](0x8)+_0x3c52e5(0xf3)+_0x3c52e5(0xe5)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x9f1574,_0x54a8af){const _0x5384c0=a193_0x583a,_0x26b78d=a193_0x13a2c2[_0x5384c0(0xf1)](_0x9f1574);createSecureDirectory(_0x26b78d),a193_0x60f322[_0x5384c0(0xea)](_0x9f1574,_0x54a8af,{'mode':0x180}),setSecureFilePermissions(_0x9f1574);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d5a87,_0x4e77ec){const _0x3471de=a194_0x48f4,_0x3a2861=_0x4d5a87();while(!![]){try{const _0x3a1983=-parseInt(_0x3471de(0x1b9))/0x1*(parseInt(_0x3471de(0x1bf))/0x2)+-parseInt(_0x3471de(0x1b4))/0x3*(parseInt(_0x3471de(0x1b1))/0x4)+-parseInt(_0x3471de(0x1c0))/0x5*(-parseInt(_0x3471de(0x1b8))/0x6)+parseInt(_0x3471de(0x1c3))/0x7+parseInt(_0x3471de(0x1bd))/0x8+-parseInt(_0x3471de(0x1b5))/0x9*(parseInt(_0x3471de(0x1b0))/0xa)+-parseInt(_0x3471de(0x1b3))/0xb;if(_0x3a1983===_0x4e77ec)break;else _0x3a2861['push'](_0x3a2861['shift']());}catch(_0x35686c){_0x3a2861['push'](_0x3a2861['shift']());}}}(a194_0x1438,0x3107f));import{readFileSync}from'fs';function a194_0x48f4(_0x8437e9,_0x4064a3){_0x8437e9=_0x8437e9-0x1af;const _0x14388b=a194_0x1438();let _0x48f403=_0x14388b[_0x8437e9];return _0x48f403;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x4bf9af){const _0x5c7c4c=a194_0x48f4;try{return readFileSync(_0x4bf9af,'utf-8');}catch(_0x309ee5){const _0x216a32=_0x309ee5[_0x5c7c4c(0x1ba)];if(_0x216a32===_0x5c7c4c(0x1c1))throw new SDKError(ErrorCode[_0x5c7c4c(0x1af)],_0x5c7c4c(0x1c2)+_0x4bf9af+_0x5c7c4c(0x1b6),_0x309ee5);else{if(_0x216a32===_0x5c7c4c(0x1be))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x4bf9af+'\x27',_0x309ee5);else throw new SDKError(ErrorCode[_0x5c7c4c(0x1bc)],_0x5c7c4c(0x1bb)+_0x4bf9af+_0x5c7c4c(0x1b2)+_0x309ee5[_0x5c7c4c(0x1b7)],_0x309ee5);}}}function a194_0x1438(){const _0x4c58c7=['NOT_FOUND','40520ZKreAi','452ikePkL','\x27:\x20','613910wcqSYK','1503vjAtlS','81FZIDSh','\x27\x20not\x20found','message','3924ORbaeq','26DKvJNN','code','Error\x20reading\x20file\x20\x27','INTERNAL','2806336BYdcoP','EACCES','4670GhxkAm','430ieCIxy','ENOENT','File\x20\x27','23772xsGZfA'];a194_0x1438=function(){return _0x4c58c7;};return a194_0x1438();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a195_0xc083(_0x2dd659,_0x464b2f){_0x2dd659=_0x2dd659-0x15d;const _0x484170=a195_0x4841();let _0xc083b7=_0x484170[_0x2dd659];return _0xc083b7;}function a195_0x4841(){const _0xc09ba0=['length','5FIosGL','11725XMmbeA','tag_name','end','fetchedAt','timeout','next','error','/repos/','statusCode','prerelease','toString','4731110JqIVvY','4257636bUyeKg','1931960CtaZBj','4104KcTFrS','/releases?per_page=20','8096256oKYazG','destroy','get','find','GitHub\x20API\x20returned\x20','slice','parse','46otGGhv','api.github.com','now','534876FlQLbz','releases','data','101421lhSmlK'];a195_0x4841=function(){return _0xc09ba0;};return a195_0x4841();}(function(_0x4abba9,_0x272b43){const _0x3d17bc=a195_0xc083,_0x12e79a=_0x4abba9();while(!![]){try{const _0x31e835=parseInt(_0x3d17bc(0x175))/0x1+-parseInt(_0x3d17bc(0x172))/0x2*(parseInt(_0x3d17bc(0x178))/0x3)+-parseInt(_0x3d17bc(0x168))/0x4+-parseInt(_0x3d17bc(0x17a))/0x5*(-parseInt(_0x3d17bc(0x167))/0x6)+parseInt(_0x3d17bc(0x17b))/0x7*(-parseInt(_0x3d17bc(0x169))/0x8)+parseInt(_0x3d17bc(0x16b))/0x9+parseInt(_0x3d17bc(0x166))/0xa;if(_0x31e835===_0x272b43)break;else _0x12e79a['push'](_0x12e79a['shift']());}catch(_0x389d35){_0x12e79a['push'](_0x12e79a['shift']());}}}(a195_0x4841,0x796c7));import*as a195_0x2286aa from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x579ba3,_0xf2a20c,_0x2c1e24){const _0x2a4bd7=a195_0xc083,_0x31082e=_0x579ba3+'/'+_0xf2a20c,_0x4385f4=cache[_0x2a4bd7(0x16d)](_0x31082e);if(_0x4385f4&&Date[_0x2a4bd7(0x174)]()-_0x4385f4[_0x2a4bd7(0x15e)]<CACHE_TTL_MS)return Promise['resolve'](_0x4385f4[_0x2a4bd7(0x176)]);return new Promise((_0x84f488,_0x2d4eb1)=>{const _0x1446b1=_0x2a4bd7,_0x259d0a={'hostname':_0x1446b1(0x173),'path':_0x1446b1(0x162)+_0x579ba3+'/'+_0xf2a20c+_0x1446b1(0x16a),'headers':{'User-Agent':_0x2c1e24,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x45f3a1=a195_0x2286aa['get'](_0x259d0a,_0x157ede=>{const _0x22afe5=_0x1446b1;let _0xbea8a6='';_0x157ede['on'](_0x22afe5(0x177),_0x3594c1=>{const _0x2abe5e=_0x22afe5;_0xbea8a6+=_0x3594c1[_0x2abe5e(0x165)]();}),_0x157ede['on'](_0x22afe5(0x15d),()=>{const _0x4ba0d6=_0x22afe5;if(_0x157ede['statusCode']!==0xc8){_0x2d4eb1(new Error(_0x4ba0d6(0x16f)+_0x157ede[_0x4ba0d6(0x163)]+':\x20'+_0xbea8a6[_0x4ba0d6(0x170)](0x0,0xc8)));return;}try{const _0x2503a9=JSON[_0x4ba0d6(0x171)](_0xbea8a6);cache['set'](_0x31082e,{'releases':_0x2503a9,'fetchedAt':Date[_0x4ba0d6(0x174)]()}),_0x84f488(_0x2503a9);}catch(_0x1baa0d){_0x2d4eb1(_0x1baa0d);}});});_0x45f3a1['on'](_0x1446b1(0x15f),()=>{const _0x2b576a=_0x1446b1;_0x45f3a1[_0x2b576a(0x16c)](),_0x2d4eb1(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x45f3a1['on'](_0x1446b1(0x161),_0x2d4eb1);});}export async function resolveReleaseTag(_0x454603,_0x282e28,_0x52d81d,_0x33df2e){const _0x585088=a195_0xc083,_0x4e99d6=await fetchGitHubReleases(_0x282e28,_0x52d81d,_0x33df2e);if(_0x4e99d6[_0x585088(0x179)]===0x0)return null;if(_0x454603===_0x585088(0x160))return _0x4e99d6[0x0]['tag_name'];const _0x1a9b1e=_0x4e99d6[_0x585088(0x16e)](_0x2607bd=>!_0x2607bd[_0x585088(0x164)]);return _0x1a9b1e?_0x1a9b1e[_0x585088(0x17c)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19767a,_0x21bf98){const _0x123532=a196_0x1d91,_0x4f44d0=_0x19767a();while(!![]){try{const _0x59e961=parseInt(_0x123532(0x16a))/0x1+parseInt(_0x123532(0x174))/0x2*(parseInt(_0x123532(0x16b))/0x3)+parseInt(_0x123532(0x173))/0x4+-parseInt(_0x123532(0x169))/0x5+parseInt(_0x123532(0x17d))/0x6*(parseInt(_0x123532(0x176))/0x7)+-parseInt(_0x123532(0x16c))/0x8*(-parseInt(_0x123532(0x16e))/0x9)+-parseInt(_0x123532(0x16d))/0xa;if(_0x59e961===_0x21bf98)break;else _0x4f44d0['push'](_0x4f44d0['shift']());}catch(_0x25d2ef){_0x4f44d0['push'](_0x4f44d0['shift']());}}}(a196_0x29fe,0xf1d4c));function a196_0x1d91(_0x538c23,_0x2d42df){_0x538c23=_0x538c23-0x169;const _0x29fe59=a196_0x29fe();let _0x1d9186=_0x29fe59[_0x538c23];return _0x1d9186;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x21880c=a196_0x1d91;return process.env.TDX_CACHE_DIR||join(homedir(),_0x21880c(0x171),_0x21880c(0x175));}const registry=new Map();export function registerGlobalCacheKey(_0x22ee43,_0x26ec5d){const _0xb953dd=a196_0x1d91,_0x5ea7e2=registry[_0xb953dd(0x17c)](_0x22ee43);if(_0x5ea7e2&&_0x5ea7e2!==_0x26ec5d)throw new Error(_0xb953dd(0x17a)+_0x22ee43+'\x22\x20already\x20registered\x20by\x20\x22'+_0x5ea7e2+_0xb953dd(0x178)+_0x26ec5d+'\x22');registry[_0xb953dd(0x177)](_0x22ee43,_0x26ec5d);}export function getGlobalCachePath(_0x59e4ae){return join(getGlobalCacheDir(),_0x59e4ae);}function ensureGlobalCacheDir(){const _0x14c9b4=getGlobalCacheDir();!existsSync(_0x14c9b4)&&mkdirSync(_0x14c9b4,{'recursive':!![]});}function readCacheJson(_0x4f1043){const _0x49f764=a196_0x1d91,_0x231776=getGlobalCachePath(_0x4f1043);if(!existsSync(_0x231776))return undefined;try{const _0x792e1d=readFileSync(_0x231776,_0x49f764(0x179));return JSON[_0x49f764(0x17b)](_0x792e1d);}catch{return undefined;}}function writeCacheJson(_0x123ca4,_0x2f390f){const _0x5c942f=a196_0x1d91;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x123ca4),JSON[_0x5c942f(0x170)](_0x2f390f,null,0x2),_0x5c942f(0x179));}function readCacheText(_0x434bf){const _0xf017f=a196_0x1d91,_0x30a16c=getGlobalCachePath(_0x434bf);if(!existsSync(_0x30a16c))return undefined;try{return readFileSync(_0x30a16c,_0xf017f(0x179));}catch{return undefined;}}function writeCacheText(_0x27b7cd,_0x38024b){const _0x2f312b=a196_0x1d91;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x27b7cd),_0x38024b,_0x2f312b(0x179));}function clearCache(_0xdfd51d){const _0x38bdea=getGlobalCachePath(_0xdfd51d);if(existsSync(_0x38bdea))try{unlinkSync(_0x38bdea);}catch{}}function cacheExists(_0x22c81c){return existsSync(getGlobalCachePath(_0x22c81c));}export function createGlobalCache(_0x8a30b9,_0x3c997c){return registerGlobalCacheKey(_0x8a30b9,_0x3c997c),{'read':()=>readCacheJson(_0x8a30b9),'write':_0xfd0869=>writeCacheJson(_0x8a30b9,_0xfd0869),'clear':()=>clearCache(_0x8a30b9),'exists':()=>cacheExists(_0x8a30b9),'path':()=>getGlobalCachePath(_0x8a30b9)};}export function createGlobalTextCache(_0x46ba97,_0x5f206d){const _0x1ae927=a196_0x1d91;return registerGlobalCacheKey(_0x46ba97,_0x5f206d),{'read':()=>readCacheText(_0x46ba97)?.[_0x1ae927(0x16f)]()||undefined,'write':_0x1ee170=>writeCacheText(_0x46ba97,_0x1ee170),'clear':()=>clearCache(_0x46ba97),'exists':()=>cacheExists(_0x46ba97),'path':()=>getGlobalCachePath(_0x46ba97)};}function a196_0x29fe(){const _0x2ca3e6=['parse','get','234KERcys','1596525rYyDGO','384872nzjARL','1717887tYXDjI','3480HpWazu','22539380mIHsXz','4437nrauwI','trim','stringify','.cache','replace','1735172iXJhGV','2JYmlDJ','tdx','351442aqANqY','set','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','Global\x20cache\x20key\x20\x22'];a196_0x29fe=function(){return _0x2ca3e6;};return a196_0x29fe();}export function createProfileCache(_0xf2a4cb,_0x61fcbf){const _0x14b8a1=_0x4cd2af=>{const _0x4bd964=a196_0x1d91,_0xe7bc1a=_0x4cd2af||'default';return _0xf2a4cb[_0x4bd964(0x172)]('{profile}',_0xe7bc1a);};return{'read':_0x150665=>{const _0x4f52fd=_0x14b8a1(_0x150665);return registerGlobalCacheKey(_0x4f52fd,_0x61fcbf),readCacheJson(_0x4f52fd);},'write':(_0x45a5f1,_0x5eabe1)=>{const _0x278248=_0x14b8a1(_0x45a5f1);registerGlobalCacheKey(_0x278248,_0x61fcbf),writeCacheJson(_0x278248,_0x5eabe1);},'clear':_0x1451dd=>{const _0x10c487=_0x14b8a1(_0x1451dd);clearCache(_0x10c487);},'exists':_0x8d5bea=>{const _0xe09634=_0x14b8a1(_0x8d5bea);return cacheExists(_0xe09634);},'path':_0xad627b=>{const _0x251829=_0x14b8a1(_0xad627b);return getGlobalCachePath(_0x251829);}};}export function createOptionalProfileCache(_0x4ae8b2,_0x4a841c,_0x13a8d3={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x13a8d3,_0x36cef2=_0x40f27b=>{return _0x40f27b?''+_0x4ae8b2+profileSeparator+_0x40f27b+suffix:''+_0x4ae8b2+suffix;};return{'read':_0x360f35=>{const _0x5acc45=_0x36cef2(_0x360f35);return registerGlobalCacheKey(_0x5acc45,_0x4a841c),readCacheJson(_0x5acc45);},'write':(_0xa292c,_0x546b82)=>{const _0xc23763=_0x36cef2(_0x546b82);registerGlobalCacheKey(_0xc23763,_0x4a841c),writeCacheJson(_0xc23763,_0xa292c);},'clear':_0x2aebb1=>{const _0x10924d=_0x36cef2(_0x2aebb1);clearCache(_0x10924d);},'exists':_0x5bff73=>{const _0x223624=_0x36cef2(_0x5bff73);return cacheExists(_0x223624);},'path':_0x1b9f5a=>{const _0x53df3d=_0x36cef2(_0x1b9f5a);return getGlobalCachePath(_0x53df3d);}};}export function clearGlobalRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2cb819,_0x11feb3){const _0x4019f1=a197_0xfb23,_0x16476f=_0x2cb819();while(!![]){try{const _0x10fa97=parseInt(_0x4019f1(0x184))/0x1+parseInt(_0x4019f1(0x182))/0x2+-parseInt(_0x4019f1(0x187))/0x3*(parseInt(_0x4019f1(0x177))/0x4)+parseInt(_0x4019f1(0x185))/0x5*(-parseInt(_0x4019f1(0x188))/0x6)+-parseInt(_0x4019f1(0x17a))/0x7+-parseInt(_0x4019f1(0x17f))/0x8*(parseInt(_0x4019f1(0x180))/0x9)+parseInt(_0x4019f1(0x173))/0xa*(parseInt(_0x4019f1(0x174))/0xb);if(_0x10fa97===_0x11feb3)break;else _0x16476f['push'](_0x16476f['shift']());}catch(_0x58cd8c){_0x16476f['push'](_0x16476f['shift']());}}}(a197_0x38ef,0x79195));function a197_0xfb23(_0x494cb7,_0x423f42){_0x494cb7=_0x494cb7-0x173;const _0x38ef39=a197_0x38ef();let _0xfb23c5=_0x38ef39[_0x494cb7];return _0xfb23c5;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a197_0x38ef(){const _0x3c8db4=['9596eTbmxW','EACCES','File\x20not\x20found:\x20','3185350pTEqyn','Invalid\x20JSON\x20in\x20file\x20\x27','INVALID_ARGUMENT','parse','INTERNAL','4488YOXfwo','4770YXgoNv','code','1963774fwoLEy','message','320451ARivIz','2160hDeAxI','Permission\x20denied\x20reading\x20file:\x20','339ryyIGd','12780CfOJqO','100zMRyfG','1251041yuwjun','Failed\x20to\x20load\x20JSON:\x20','NOT_FOUND'];a197_0x38ef=function(){return _0x3c8db4;};return a197_0x38ef();}export async function loadJSON(_0x3433de,_0x30b3f6){const _0x1080f6=a197_0xfb23;try{if(_0x30b3f6){const _0xe81219=await readFile(_0x3433de,'utf-8');try{return JSON[_0x1080f6(0x17d)](_0xe81219);}catch(_0x4d41d6){throw new SDKError(ErrorCode[_0x1080f6(0x17c)],_0x1080f6(0x17b)+_0x3433de+'\x27:\x20'+(_0x4d41d6 instanceof Error?_0x4d41d6['message']:String(_0x4d41d6)));}}else try{return JSON[_0x1080f6(0x17d)](_0x3433de);}catch(_0x294acc){throw new SDKError(ErrorCode[_0x1080f6(0x17c)],'Invalid\x20JSON\x20string:\x20'+(_0x294acc instanceof Error?_0x294acc['message']:String(_0x294acc)));}}catch(_0x34cc82){if(_0x34cc82 instanceof SDKError)throw _0x34cc82;if(_0x34cc82 instanceof Error&&_0x1080f6(0x181)in _0x34cc82){const _0xadb18f=_0x34cc82;if(_0xadb18f['code']==='ENOENT')throw new SDKError(ErrorCode[_0x1080f6(0x176)],_0x1080f6(0x179)+_0x3433de);else{if(_0xadb18f['code']===_0x1080f6(0x178))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1080f6(0x186)+_0x3433de);}}throw new SDKError(ErrorCode[_0x1080f6(0x17e)],_0x1080f6(0x175)+(_0x34cc82 instanceof Error?_0x34cc82[_0x1080f6(0x183)]:String(_0x34cc82)));}}export async function loadJSONFromOptions(_0x17e0bd,_0x603909){const _0x416d2e=a197_0xfb23;if(_0x17e0bd&&_0x603909)throw new SDKError(ErrorCode[_0x416d2e(0x17c)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x17e0bd)return await loadJSON(_0x17e0bd,![]);if(_0x603909)return await loadJSON(_0x603909,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1164f9,_0x9e1792){const _0x440cff=a198_0x1581,_0x1d26fe=_0x1164f9();while(!![]){try{const _0x5afb5f=parseInt(_0x440cff(0xcb))/0x1+parseInt(_0x440cff(0xca))/0x2+-parseInt(_0x440cff(0xc7))/0x3*(parseInt(_0x440cff(0xcf))/0x4)+parseInt(_0x440cff(0xcc))/0x5*(parseInt(_0x440cff(0xd0))/0x6)+-parseInt(_0x440cff(0xd4))/0x7+parseInt(_0x440cff(0xda))/0x8*(-parseInt(_0x440cff(0xd7))/0x9)+parseInt(_0x440cff(0xd9))/0xa*(-parseInt(_0x440cff(0xdb))/0xb);if(_0x5afb5f===_0x9e1792)break;else _0x1d26fe['push'](_0x1d26fe['shift']());}catch(_0x53e618){_0x1d26fe['push'](_0x1d26fe['shift']());}}}(a198_0x2618,0x2e747));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x4d75fd,_0x4030a6){const _0x59821d=a198_0x1581,_0x4285d1=registry[_0x59821d(0xd2)](_0x4d75fd);if(_0x4285d1&&_0x4285d1!==_0x4030a6)throw new Error(_0x59821d(0xd1)+_0x4d75fd+_0x59821d(0xd8)+_0x4285d1+_0x59821d(0xd3)+_0x4030a6+'\x22');registry[_0x59821d(0xce)](_0x4d75fd,_0x4030a6);}export function getCacheDir(){const _0x28e66f=a198_0x1581,_0x363f00=process[_0x28e66f(0xc9)](),_0x45a54d=_0x363f00===parse(_0x363f00)['root']?homedir():_0x363f00;return join(_0x45a54d,LOCAL_CACHE_DIR);}export function getCachePath(_0x2891de){return join(getCacheDir(),_0x2891de);}function ensureCacheDir(){const _0x4e6ac5=getCacheDir();!existsSync(_0x4e6ac5)&&mkdirSync(_0x4e6ac5,{'recursive':!![]});}function a198_0x1581(_0x45561b,_0x1d33eb){_0x45561b=_0x45561b-0xc6;const _0x261848=a198_0x2618();let _0x158105=_0x261848[_0x45561b];return _0x158105;}function readCacheJson(_0x564722){const _0x36a2f1=a198_0x1581,_0x4c311d=getCachePath(_0x564722);if(!existsSync(_0x4c311d))return undefined;try{const _0x2aeb7f=readFileSync(_0x4c311d,_0x36a2f1(0xcd));return JSON[_0x36a2f1(0xc8)](_0x2aeb7f);}catch{return undefined;}}function writeCacheJson(_0x37d076,_0x1eccdc){const _0x209727=a198_0x1581;ensureCacheDir(),writeFileSync(getCachePath(_0x37d076),JSON[_0x209727(0xd5)](_0x1eccdc,null,0x2),_0x209727(0xcd));}function readCacheText(_0x57a801){const _0x5ad6c9=a198_0x1581,_0x47d7fb=getCachePath(_0x57a801);if(!existsSync(_0x47d7fb))return undefined;try{return readFileSync(_0x47d7fb,_0x5ad6c9(0xcd));}catch{return undefined;}}function a198_0x2618(){const _0x5bbd24=['\x22\x20already\x20registered\x20by\x20\x22','15560XISmmn','1296UjHMEx','1969aFaGSc','clear','43965uEgynv','parse','cwd','637110jFhCaf','380503bGOarv','542440vkgawz','utf-8','set','20ywxGFL','6UwlmVT','Cache\x20key\x20\x22','get','\x22,\x20cannot\x20register\x20for\x20\x22','124390LCWDYH','stringify','trim','13761PKyAZm'];a198_0x2618=function(){return _0x5bbd24;};return a198_0x2618();}function writeCacheText(_0x2235e8,_0x4901a6){const _0x332db4=a198_0x1581;ensureCacheDir(),writeFileSync(getCachePath(_0x2235e8),_0x4901a6,_0x332db4(0xcd));}function clearCache(_0x15c3dd){const _0x5dcf3f=getCachePath(_0x15c3dd);if(existsSync(_0x5dcf3f))try{unlinkSync(_0x5dcf3f);}catch{}}function cacheExists(_0x4e478f){return existsSync(getCachePath(_0x4e478f));}export function createCache(_0x56d37c,_0x22b0f9){return registerCacheKey(_0x56d37c,_0x22b0f9),{'read':()=>readCacheJson(_0x56d37c),'write':_0x5144e3=>writeCacheJson(_0x56d37c,_0x5144e3),'clear':()=>clearCache(_0x56d37c),'exists':()=>cacheExists(_0x56d37c),'path':()=>getCachePath(_0x56d37c)};}export function createTextCache(_0x2ef2cd,_0x2780cd){const _0x51b7a8=a198_0x1581;return registerCacheKey(_0x2ef2cd,_0x2780cd),{'read':()=>readCacheText(_0x2ef2cd)?.[_0x51b7a8(0xd6)]()||undefined,'write':_0xc4f7d9=>writeCacheText(_0x2ef2cd,_0xc4f7d9),'clear':()=>clearCache(_0x2ef2cd),'exists':()=>cacheExists(_0x2ef2cd),'path':()=>getCachePath(_0x2ef2cd)};}export function clearRegistry(){const _0x43e978=a198_0x1581;registry[_0x43e978(0xc6)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a199_0x4f98(){const _0x5d5a59=['dim','2SpbagT','default','174wvvPHK','7537780CvSvsP','46676qXvKLt','INFO','ERROR','28031991nojRvK','gray','colorLevel','30MEXtrx',']\x20[','1393931DTmhBl','12jARrZC','cyan','level','Chalk','colors','4upetxd','189405qoRDkB','component','red','green','chalk','1609942WPZjte','yellow','TRACE','5342256jIkYtP','264upJzeA'];a199_0x4f98=function(){return _0x5d5a59;};return a199_0x4f98();}function a199_0x5aa0(_0x17923e,_0xf0b07d){_0x17923e=_0x17923e-0x1bb;const _0x4f98c2=a199_0x4f98();let _0x5aa0c9=_0x4f98c2[_0x17923e];return _0x5aa0c9;}const a199_0x4fbd50=a199_0x5aa0;(function(_0x16d814,_0x192c8b){const _0x5b21ef=a199_0x5aa0,_0x3bbf48=_0x16d814();while(!![]){try{const _0x3b4788=-parseInt(_0x5b21ef(0x1d0))/0x1*(-parseInt(_0x5b21ef(0x1ca))/0x2)+-parseInt(_0x5b21ef(0x1cd))/0x3+parseInt(_0x5b21ef(0x1c4))/0x4*(-parseInt(_0x5b21ef(0x1d3))/0x5)+-parseInt(_0x5b21ef(0x1d2))/0x6*(-parseInt(_0x5b21ef(0x1d4))/0x7)+parseInt(_0x5b21ef(0x1ce))/0x8*(parseInt(_0x5b21ef(0x1c5))/0x9)+parseInt(_0x5b21ef(0x1bc))/0xa*(-parseInt(_0x5b21ef(0x1be))/0xb)+-parseInt(_0x5b21ef(0x1bf))/0xc*(-parseInt(_0x5b21ef(0x1d7))/0xd);if(_0x3b4788===_0x192c8b)break;else _0x3bbf48['push'](_0x3bbf48['shift']());}catch(_0x3ec033){_0x3bbf48['push'](_0x3bbf48['shift']());}}}(a199_0x4f98,0xf0a23));import a199_0x4b2fe3 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a199_0x4b2fe3,ChalkClass=chalkModule[a199_0x4fbd50(0x1c2)]||chalkModule[a199_0x4fbd50(0x1d1)]?.[a199_0x4fbd50(0x1c2)];export class DefaultLogFormatter{[a199_0x4fbd50(0x1c3)];[a199_0x4fbd50(0x1c9)];constructor(_0x3096de={}){const _0x29c1b8=a199_0x4fbd50;this['colors']=_0x3096de[_0x29c1b8(0x1c3)]??![],this['chalk']=_0x3096de[_0x29c1b8(0x1c3)]&&ChalkClass?new ChalkClass({'level':0x3}):a199_0x4b2fe3;}['format'](_0x53269d){const _0x411e07=a199_0x4fbd50,_0x5146c3=formatTimestamp(_0x53269d['timestamp']),_0x413a7b=logLevelToString(_0x53269d[_0x411e07(0x1c1)]);if(!this[_0x411e07(0x1c3)])return _0x5146c3+'\x20['+_0x413a7b+_0x411e07(0x1bd)+_0x53269d[_0x411e07(0x1c6)]+']\x20'+_0x53269d['message'];const _0x20ea33=this[_0x411e07(0x1c9)][_0x411e07(0x1cf)](_0x5146c3),_0x508250=this['colorLevel'](_0x413a7b,_0x53269d[_0x411e07(0x1c1)]),_0x1b08ff=this['chalk']['blue']('['+_0x53269d[_0x411e07(0x1c6)]+']');return _0x20ea33+'\x20'+_0x508250+'\x20'+_0x1b08ff+'\x20'+_0x53269d['message'];}[a199_0x4fbd50(0x1bb)](_0x27acfe,_0x151dc5){const _0x57788d=a199_0x4fbd50;switch(_0x151dc5){case LogLevel[_0x57788d(0x1cc)]:return this['chalk'][_0x57788d(0x1d8)]('['+_0x27acfe+']');case LogLevel['DEBUG']:return this[_0x57788d(0x1c9)][_0x57788d(0x1c8)]('['+_0x27acfe+']');case LogLevel[_0x57788d(0x1d5)]:return this[_0x57788d(0x1c9)][_0x57788d(0x1c0)]('['+_0x27acfe+']');case LogLevel['WARN']:return this['chalk'][_0x57788d(0x1cb)]('['+_0x27acfe+']');case LogLevel[_0x57788d(0x1d6)]:return this[_0x57788d(0x1c9)][_0x57788d(0x1c7)]('['+_0x27acfe+']');default:return'['+_0x27acfe+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x5d13(_0x40d7f0,_0x53aafd){_0x40d7f0=_0x40d7f0-0xa1;var _0x235246=a200_0x2352();var _0x5d130f=_0x235246[_0x40d7f0];return _0x5d130f;}(function(_0x5b5bd8,_0x5d1a8a){var _0x28b3c5=a200_0x5d13,_0x3ff74d=_0x5b5bd8();while(!![]){try{var _0x1378de=-parseInt(_0x28b3c5(0xa4))/0x1*(parseInt(_0x28b3c5(0xa3))/0x2)+parseInt(_0x28b3c5(0xaa))/0x3*(parseInt(_0x28b3c5(0xa2))/0x4)+-parseInt(_0x28b3c5(0xa7))/0x5+-parseInt(_0x28b3c5(0xa8))/0x6+parseInt(_0x28b3c5(0xa6))/0x7*(parseInt(_0x28b3c5(0xa1))/0x8)+parseInt(_0x28b3c5(0xa9))/0x9*(parseInt(_0x28b3c5(0xa5))/0xa)+parseInt(_0x28b3c5(0xab))/0xb;if(_0x1378de===_0x5d1a8a)break;else _0x3ff74d['push'](_0x3ff74d['shift']());}catch(_0x45fcc9){_0x3ff74d['push'](_0x3ff74d['shift']());}}}(a200_0x2352,0x357d4));export{DefaultLogFormatter}from'./default-formatter.js';function a200_0x2352(){var _0x3e2082=['20iKOdSR','7AJzRxy','2147855BLikfv','2571468Kfhcqd','606465uUYitV','66DTwseh','11920414Sexbct','421384BdFwrE','10828JaNbcD','101372qkQFxa','5JgXeKD'];a200_0x2352=function(){return _0x3e2082;};return a200_0x2352();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a201_0x11b277=a201_0xd77b;(function(_0x47e95f,_0x54ca6a){const _0xf6ac44=a201_0xd77b,_0x411894=_0x47e95f();while(!![]){try{const _0x3d9be5=-parseInt(_0xf6ac44(0x1e8))/0x1*(-parseInt(_0xf6ac44(0x1de))/0x2)+-parseInt(_0xf6ac44(0x1ef))/0x3+parseInt(_0xf6ac44(0x1e1))/0x4*(parseInt(_0xf6ac44(0x1e7))/0x5)+-parseInt(_0xf6ac44(0x1e0))/0x6+-parseInt(_0xf6ac44(0x1e6))/0x7*(-parseInt(_0xf6ac44(0x1e9))/0x8)+-parseInt(_0xf6ac44(0x1dd))/0x9+parseInt(_0xf6ac44(0x1e3))/0xa;if(_0x3d9be5===_0x54ca6a)break;else _0x411894['push'](_0x411894['shift']());}catch(_0x3d4349){_0x411894['push'](_0x411894['shift']());}}}(a201_0x4b9d,0x6e4d8));import{LogLevel as a201_0x23e519}from'../types.js';function a201_0xd77b(_0x286ed2,_0x366cf2){_0x286ed2=_0x286ed2-0x1dd;const _0x4b9dd3=a201_0x4b9d();let _0xd77b09=_0x4b9dd3[_0x286ed2];return _0xd77b09;}function a201_0x4b9d(){const _0x1ca046=['minLevel','WARN','format','2402604mtEZAp','1316394HVzebW','22394EIKXtL','log','3007842GBDBmo','4qlKJLp','error','1252470FrdPvH','level','colors','35TDODaY','2623635CzUeCr','56XcMfGp','997176rCCjOO','formatter','useStderr'];a201_0x4b9d=function(){return _0x1ca046;};return a201_0x4b9d();}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a201_0x11b277(0x1ec)];[a201_0x11b277(0x1eb)];['formatter'];constructor(_0x4e0021={}){const _0x5235fb=a201_0x11b277;this[_0x5235fb(0x1ec)]=_0x4e0021[_0x5235fb(0x1ec)]??a201_0x23e519[_0x5235fb(0x1ed)],this[_0x5235fb(0x1eb)]=_0x4e0021[_0x5235fb(0x1eb)]??!![],this[_0x5235fb(0x1ea)]=new DefaultLogFormatter({'colors':_0x4e0021[_0x5235fb(0x1e5)]??!![]});}['handle'](_0x3c1346){const _0x20538f=a201_0x11b277;if(_0x3c1346[_0x20538f(0x1e4)]<this[_0x20538f(0x1ec)])return;const _0x1d2662=this[_0x20538f(0x1ea)][_0x20538f(0x1ee)](_0x3c1346);this[_0x20538f(0x1eb)]&&_0x3c1346['level']>=a201_0x23e519[_0x20538f(0x1ed)]?console[_0x20538f(0x1e2)](_0x1d2662):console[_0x20538f(0x1df)](_0x1d2662);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x194c51=a202_0x421e;(function(_0x2006c9,_0x504496){const _0x158ae8=a202_0x421e,_0x1040c0=_0x2006c9();while(!![]){try{const _0x38e44c=-parseInt(_0x158ae8(0x6e))/0x1+-parseInt(_0x158ae8(0x85))/0x2*(-parseInt(_0x158ae8(0x8f))/0x3)+-parseInt(_0x158ae8(0x7e))/0x4+parseInt(_0x158ae8(0x90))/0x5+parseInt(_0x158ae8(0x79))/0x6+parseInt(_0x158ae8(0x83))/0x7+-parseInt(_0x158ae8(0x81))/0x8;if(_0x38e44c===_0x504496)break;else _0x1040c0['push'](_0x1040c0['shift']());}catch(_0x514fb3){_0x1040c0['push'](_0x1040c0['shift']());}}}(a202_0x90ab,0x331cc));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 a202_0x421e(_0x1c4e97,_0x181528){_0x1c4e97=_0x1c4e97-0x6d;const _0x90abd9=a202_0x90ab();let _0x421e74=_0x90abd9[_0x1c4e97];return _0x421e74;}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a202_0x90ab(){const _0x2c4504=['init','handle','format','logDir','includes','logBaseName','rotateOldLogs','.log','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','123jsaRrG','1506075FYGmFh','rotate','203316sQQWmz','message','test','logPath','write','split','error','mtime','toISOString','getLogPath','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','214068bawwrV','Warning:\x20Error\x20writing\x20to\x20','\x5c$&','.gz','logFileName','253228ASdYCM','filter','replace','3753728FYrAqv','logs','1674827TAnLyg','logStream','18002CCzXuU'];a202_0x90ab=function(){return _0x2c4504;};return a202_0x90ab();}export class FileHandler{[a202_0x194c51(0x71)];[a202_0x194c51(0x89)];[a202_0x194c51(0x7d)];['logBaseName'];[a202_0x194c51(0x84)]=null;['rotate'];constructor(_0x318e7f={}){const _0x3b3250=a202_0x194c51;this[_0x3b3250(0x71)]=_0x318e7f['filePath']??join(getGlobalCacheDir(),_0x3b3250(0x82),'tdx.log'),this[_0x3b3250(0x89)]=dirname(this[_0x3b3250(0x71)]),this[_0x3b3250(0x7d)]=basename(this[_0x3b3250(0x71)]),this[_0x3b3250(0x8b)]=this[_0x3b3250(0x7d)][_0x3b3250(0x80)](/\.log$/,''),this[_0x3b3250(0x6d)]=_0x318e7f[_0x3b3250(0x6d)]??!![];}async[a202_0x194c51(0x86)](){const _0x5b3e95=a202_0x194c51;try{await mkdir(this[_0x5b3e95(0x89)],{'recursive':!![]}),this[_0x5b3e95(0x6d)]&&await this[_0x5b3e95(0x8c)](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this['logStream']['on']('error',_0x43cc17=>{const _0x13f2eb=_0x5b3e95;console[_0x13f2eb(0x74)](_0x13f2eb(0x7a)+this[_0x13f2eb(0x7d)]+':',_0x43cc17[_0x13f2eb(0x6f)]);});}catch(_0x212508){console[_0x5b3e95(0x74)](_0x5b3e95(0x8e),_0x212508);}}[a202_0x194c51(0x87)](_0xd5ce8c){const _0x377478=a202_0x194c51;if(!this['logStream'])return;const _0x5a3c95=Logger[_0x377478(0x88)](_0xd5ce8c);this['logStream'][_0x377478(0x72)](_0x5a3c95+'\x0a');}async['close'](){return new Promise(_0x501d8e=>{const _0x2dbf1c=a202_0x421e;this[_0x2dbf1c(0x84)]?this['logStream']['end'](()=>{const _0x3db679=_0x2dbf1c;this[_0x3db679(0x84)]=null,_0x501d8e();}):_0x501d8e();});}[a202_0x194c51(0x77)](){const _0x395ed4=a202_0x194c51;return this[_0x395ed4(0x71)];}async[a202_0x194c51(0x8c)](){const _0x4dfba7=a202_0x194c51;try{const _0x45fb5a=await readdir(this[_0x4dfba7(0x89)]),_0xb07cb5=new Date()[_0x4dfba7(0x76)]()[_0x4dfba7(0x73)]('T')[0x0];if(_0x45fb5a[_0x4dfba7(0x8a)](this[_0x4dfba7(0x7d)])){const _0x1878e6=join(this[_0x4dfba7(0x89)],this[_0x4dfba7(0x7d)]),_0x45b9b6=await stat(_0x1878e6),_0x2e294a=new Date(_0x45b9b6[_0x4dfba7(0x75)])[_0x4dfba7(0x76)]()[_0x4dfba7(0x73)]('T')[0x0];if(_0x2e294a<_0xb07cb5){const _0x4ba7bb=join(this[_0x4dfba7(0x89)],this[_0x4dfba7(0x8b)]+'-'+_0x2e294a+_0x4dfba7(0x8d));await rename(_0x1878e6,_0x4ba7bb);}}const _0x45d990=await readdir(this[_0x4dfba7(0x89)]),_0x99c75f=this[_0x4dfba7(0x8b)][_0x4dfba7(0x80)](/[.*+?^${}()|[\]\\]/g,_0x4dfba7(0x7b)),_0x9e060a=new RegExp('^'+_0x99c75f+_0x4dfba7(0x78)),_0x457743=_0x45d990[_0x4dfba7(0x7f)](_0x127f2a=>_0x9e060a[_0x4dfba7(0x70)](_0x127f2a));for(const _0x486293 of _0x457743){const _0x16d2e6=join(this['logDir'],_0x486293),_0x3af9d7=join(this['logDir'],_0x486293+_0x4dfba7(0x7c));try{await pipeline(createReadStream(_0x16d2e6),createGzip(),createWriteStream(_0x3af9d7)),await unlink(_0x16d2e6);}catch(_0x23ae54){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x486293+':',_0x23ae54);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2e1af8,_0x58c4d6){var _0x9a4cff=a203_0x5c86,_0x58886d=_0x2e1af8();while(!![]){try{var _0x157fde=parseInt(_0x9a4cff(0xda))/0x1*(parseInt(_0x9a4cff(0xdd))/0x2)+-parseInt(_0x9a4cff(0xdc))/0x3+parseInt(_0x9a4cff(0xd6))/0x4*(-parseInt(_0x9a4cff(0xd4))/0x5)+parseInt(_0x9a4cff(0xdb))/0x6+parseInt(_0x9a4cff(0xd9))/0x7+-parseInt(_0x9a4cff(0xd3))/0x8*(-parseInt(_0x9a4cff(0xd8))/0x9)+parseInt(_0x9a4cff(0xd5))/0xa*(-parseInt(_0x9a4cff(0xd7))/0xb);if(_0x157fde===_0x58c4d6)break;else _0x58886d['push'](_0x58886d['shift']());}catch(_0x53190e){_0x58886d['push'](_0x58886d['shift']());}}}(a203_0x39e0,0x6fede));export{FileHandler}from'./file-handler.js';function a203_0x5c86(_0x4f0b72,_0x434955){_0x4f0b72=_0x4f0b72-0xd3;var _0x39e034=a203_0x39e0();var _0x5c869a=_0x39e034[_0x4f0b72];return _0x5c869a;}function a203_0x39e0(){var _0x278c3c=['4DTsSyy','3762561JpmlKy','338949YHBOdJ','3649982omfHCI','107TTweeV','3296532BnSwYX','1074339wwsjmp','4756HyMunI','48YdrtPw','1963170RkSMYO','10qdtotw'];a203_0x39e0=function(){return _0x278c3c;};return a203_0x39e0();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a204_0x3f4d(_0x32db55,_0x2c3234){_0x32db55=_0x32db55-0x73;var _0x2ee3f2=a204_0x2ee3();var _0x3f4dab=_0x2ee3f2[_0x32db55];return _0x3f4dab;}var a204_0x3b0b47=a204_0x3f4d;(function(_0x3a5d03,_0x349236){var _0x32e294=a204_0x3f4d,_0x5054ce=_0x3a5d03();while(!![]){try{var _0x5a2a8a=-parseInt(_0x32e294(0x75))/0x1+parseInt(_0x32e294(0x73))/0x2+-parseInt(_0x32e294(0x7a))/0x3*(parseInt(_0x32e294(0x79))/0x4)+parseInt(_0x32e294(0x74))/0x5+-parseInt(_0x32e294(0x77))/0x6+parseInt(_0x32e294(0x7b))/0x7*(-parseInt(_0x32e294(0x76))/0x8)+-parseInt(_0x32e294(0x78))/0x9*(-parseInt(_0x32e294(0x7c))/0xa);if(_0x5a2a8a===_0x349236)break;else _0x5054ce['push'](_0x5054ce['shift']());}catch(_0x32d02b){_0x5054ce['push'](_0x5054ce['shift']());}}}(a204_0x2ee3,0xa85d2));export class NullHandler{[a204_0x3b0b47(0x7d)](_0x132269){}}function a204_0x2ee3(){var _0x55220b=['2714975vTOjmY','678535frElhP','23992vfVdGz','4369470RkdSvc','18bfFTmj','91780vazYoS','75HZCFPr','3031ewSEek','15220830jiapnx','handle','762858fTsuTD'];a204_0x2ee3=function(){return _0x55220b;};return a204_0x2ee3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x50bc(){var _0xcb3de4=['1425740FYQEpw','102rNkTja','204sKxWxC','77QaXBDq','17HNNxVb','53230tHOJlO','38652cHnPVf','14638GTTKPl','8DYOAje','4447440AgEXzR','1623587dDDpFD','9444384IyYHbj'];a205_0x50bc=function(){return _0xcb3de4;};return a205_0x50bc();}function a205_0x22b9(_0x36e477,_0x1d1767){_0x36e477=_0x36e477-0x1ce;var _0x50bcb0=a205_0x50bc();var _0x22b937=_0x50bcb0[_0x36e477];return _0x22b937;}(function(_0x32e3c9,_0x1a9234){var _0xf7e0c3=a205_0x22b9,_0x10e7cc=_0x32e3c9();while(!![]){try{var _0x3de296=parseInt(_0xf7e0c3(0x1d3))/0x1*(-parseInt(_0xf7e0c3(0x1d6))/0x2)+parseInt(_0xf7e0c3(0x1d0))/0x3*(parseInt(_0xf7e0c3(0x1d5))/0x4)+-parseInt(_0xf7e0c3(0x1d4))/0x5*(-parseInt(_0xf7e0c3(0x1d1))/0x6)+parseInt(_0xf7e0c3(0x1d9))/0x7*(-parseInt(_0xf7e0c3(0x1d7))/0x8)+-parseInt(_0xf7e0c3(0x1ce))/0x9+parseInt(_0xf7e0c3(0x1cf))/0xa*(parseInt(_0xf7e0c3(0x1d2))/0xb)+parseInt(_0xf7e0c3(0x1d8))/0xc;if(_0x3de296===_0x1a9234)break;else _0x10e7cc['push'](_0x10e7cc['shift']());}catch(_0xfaaaeb){_0x10e7cc['push'](_0x10e7cc['shift']());}}}(a205_0x50bc,0x9f85c));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x336cc3=a206_0x531b;(function(_0x1aa042,_0x38f843){const _0x163f77=a206_0x531b,_0x259880=_0x1aa042();while(!![]){try{const _0x352279=-parseInt(_0x163f77(0xdd))/0x1+parseInt(_0x163f77(0xce))/0x2*(-parseInt(_0x163f77(0xd4))/0x3)+-parseInt(_0x163f77(0xdb))/0x4*(-parseInt(_0x163f77(0xc3))/0x5)+parseInt(_0x163f77(0xe2))/0x6*(-parseInt(_0x163f77(0xbb))/0x7)+parseInt(_0x163f77(0xdf))/0x8+-parseInt(_0x163f77(0xd9))/0x9*(-parseInt(_0x163f77(0xb9))/0xa)+-parseInt(_0x163f77(0xbf))/0xb*(-parseInt(_0x163f77(0xd3))/0xc);if(_0x352279===_0x38f843)break;else _0x259880['push'](_0x259880['shift']());}catch(_0x28bb2f){_0x259880['push'](_0x259880['shift']());}}}(a206_0x15f1,0xf12bf));function a206_0x531b(_0x5214d3,_0x1e92e6){_0x5214d3=_0x5214d3-0xa6;const _0x15f11d=a206_0x15f1();let _0x531b2f=_0x15f11d[_0x5214d3];return _0x531b2f;}import{LogLevel as a206_0x34d78b,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a206_0x34d78b[a206_0x336cc3(0xa8)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a206_0x15f1(){const _0x43db51=['format','name','351984wLpQkO','3ALmGXN','DEBUG','slice','split','map','14433057yZQjCU','trace','468uRamdX','formatter','1293805qlxzZb','getEffectiveLevel','15253104rNymDK','pendingRecords','setLogLevel','6wGYKYW','entries','has','close','shouldLog','INFO','WARN','ERROR','clear','function','length','handlers','timestamp','levelOverrides','error','level','toISOString','message','debug','setDefaultLevel','stack','handle','10DduWlx','init','4220839xfbfiP','getFormatter','initialized','isInitialized','22djpUAv','shutdown','TRACE','warn','33645qUiZUw','set','defaultLevel','dispatch','join','log','push','addHandler','cause','string','get','2943294FRlULu','component','loggers'];a206_0x15f1=function(){return _0x43db51;};return a206_0x15f1();}function safeStringify(_0x2966c6){const _0x21cb5d=a206_0x336cc3;if(typeof _0x2966c6===_0x21cb5d(0xcc))return _0x2966c6;if(_0x2966c6 instanceof Error)return _0x2966c6['stack']||_0x2966c6[_0x21cb5d(0xd2)]+':\x20'+_0x2966c6[_0x21cb5d(0xb4)];try{return JSON['stringify'](_0x2966c6,(_0x1a45e0,_0x2424ac)=>{const _0x51364b=_0x21cb5d;if(_0x2424ac instanceof Error)return{'name':_0x2424ac['name'],'message':_0x2424ac[_0x51364b(0xb4)],'stack':_0x2424ac[_0x51364b(0xb7)],'cause':_0x2424ac[_0x51364b(0xcb)]};return _0x2424ac;});}catch{return String(_0x2966c6);}}export class Logger{['component'];constructor(_0x17c33a){const _0x3aafdc=a206_0x336cc3;this[_0x3aafdc(0xcf)]=_0x17c33a;}static['of'](_0x1894d1){const _0x2238b1=a206_0x336cc3,_0xac8921=typeof _0x1894d1===_0x2238b1(0xcc)?_0x1894d1:_0x1894d1['name'];let _0xd2653=state[_0x2238b1(0xd0)][_0x2238b1(0xcd)](_0xac8921);return!_0xd2653&&(_0xd2653=new Logger(_0xac8921),state['loggers'][_0x2238b1(0xc4)](_0xac8921,_0xd2653)),_0xd2653;}static async[a206_0x336cc3(0xba)](_0x2d0502={}){const _0x32e1d2=a206_0x336cc3;state[_0x32e1d2(0xc5)]=_0x2d0502[_0x32e1d2(0xc5)]??a206_0x34d78b[_0x32e1d2(0xa8)],state[_0x32e1d2(0xae)]=_0x2d0502[_0x32e1d2(0xae)]??[],state['formatter']=_0x2d0502[_0x32e1d2(0xdc)]??null,state[_0x32e1d2(0xb0)]['clear']();if(_0x2d0502[_0x32e1d2(0xb0)])for(const [_0x1c81e9,_0x670d6d]of Object[_0x32e1d2(0xe3)](_0x2d0502['levelOverrides'])){state['levelOverrides'][_0x32e1d2(0xc4)](_0x1c81e9,_0x670d6d);}for(const _0x511ecd of state[_0x32e1d2(0xae)]){_0x511ecd['init']&&await _0x511ecd[_0x32e1d2(0xba)]();}state[_0x32e1d2(0xbd)]=!![];for(const _0x4a937d of state[_0x32e1d2(0xe0)]){Logger['dispatch'](_0x4a937d);}state['pendingRecords']=[];}static[a206_0x336cc3(0xe1)](_0x492bb4,_0x4f4431){const _0x4d308f=a206_0x336cc3;state[_0x4d308f(0xb0)][_0x4d308f(0xc4)](_0x492bb4,_0x4f4431);}static[a206_0x336cc3(0xb6)](_0x182aec){const _0x517721=a206_0x336cc3;state[_0x517721(0xc5)]=_0x182aec;}static[a206_0x336cc3(0xca)](_0x43f912){const _0x599787=a206_0x336cc3;state[_0x599787(0xae)]['push'](_0x43f912),state[_0x599787(0xbd)]&&_0x43f912[_0x599787(0xba)]&&_0x43f912[_0x599787(0xba)]();}static['clearHandlers'](){const _0x442eac=a206_0x336cc3;state[_0x442eac(0xae)]=[];}static async[a206_0x336cc3(0xc0)](){const _0x2ab729=a206_0x336cc3;for(const _0x2c0ae4 of state['handlers']){_0x2c0ae4[_0x2ab729(0xa6)]&&await _0x2c0ae4[_0x2ab729(0xa6)]();}state[_0x2ab729(0xae)]=[],state[_0x2ab729(0xbd)]=![],state['loggers'][_0x2ab729(0xab)](),state[_0x2ab729(0xe0)]=[];}static['reset'](){const _0x53bd0e=a206_0x336cc3;state[_0x53bd0e(0xbd)]=![],state['defaultLevel']=a206_0x34d78b[_0x53bd0e(0xa8)],state[_0x53bd0e(0xb0)][_0x53bd0e(0xab)](),state[_0x53bd0e(0xae)]=[],state[_0x53bd0e(0xdc)]=null,state[_0x53bd0e(0xd0)][_0x53bd0e(0xab)](),state['pendingRecords']=[];}static[a206_0x336cc3(0xbe)](){const _0x123021=a206_0x336cc3;return state[_0x123021(0xbd)];}static[a206_0x336cc3(0xde)](_0x466cfe){const _0x198f35=a206_0x336cc3;if(state[_0x198f35(0xb0)][_0x198f35(0xe4)](_0x466cfe))return state[_0x198f35(0xb0)][_0x198f35(0xcd)](_0x466cfe);const _0x5a63d6=_0x466cfe[_0x198f35(0xd7)]('.');for(let _0x45b06b=_0x5a63d6['length']-0x1;_0x45b06b>0x0;_0x45b06b--){const _0xb94039=_0x5a63d6[_0x198f35(0xd6)](0x0,_0x45b06b)[_0x198f35(0xc7)]('.');if(state[_0x198f35(0xb0)][_0x198f35(0xe4)](_0xb94039))return state[_0x198f35(0xb0)][_0x198f35(0xcd)](_0xb94039);}return state['defaultLevel'];}[a206_0x336cc3(0xa7)](_0x3e841c){const _0x200e1c=a206_0x336cc3,_0x4c361f=Logger[_0x200e1c(0xde)](this['component']);return _0x3e841c>=_0x4c361f;}static['dispatch'](_0x4a7401){const _0x445a9e=a206_0x336cc3;for(const _0xb6ccec of state[_0x445a9e(0xae)]){_0xb6ccec[_0x445a9e(0xb8)](_0x4a7401);}}[a206_0x336cc3(0xc8)](_0x13b943,_0x11a077){const _0x27e8f6=a206_0x336cc3;if(!this['shouldLog'](_0x13b943))return;const _0x6d39e4=_0x11a077[_0x27e8f6(0xd8)](_0x1fad7a=>typeof _0x1fad7a===_0x27e8f6(0xac)?_0x1fad7a():_0x1fad7a),_0x2376bd=_0x6d39e4[_0x27e8f6(0xd8)](safeStringify)['join']('\x20'),_0x5da883={'timestamp':new Date(),'level':_0x13b943,'component':this[_0x27e8f6(0xcf)],'message':_0x2376bd};if(!state[_0x27e8f6(0xbd)]){state[_0x27e8f6(0xe0)][_0x27e8f6(0xad)]<MAX_PENDING_RECORDS&&state[_0x27e8f6(0xe0)][_0x27e8f6(0xc9)](_0x5da883);return;}Logger[_0x27e8f6(0xc6)](_0x5da883);}[a206_0x336cc3(0xda)](..._0x2bd634){const _0x112caa=a206_0x336cc3;this[_0x112caa(0xc8)](a206_0x34d78b[_0x112caa(0xc1)],_0x2bd634);}[a206_0x336cc3(0xb5)](..._0x474f44){const _0x5ba7c7=a206_0x336cc3;this[_0x5ba7c7(0xc8)](a206_0x34d78b[_0x5ba7c7(0xd5)],_0x474f44);}['info'](..._0x2754c7){const _0xd15fe6=a206_0x336cc3;this[_0xd15fe6(0xc8)](a206_0x34d78b[_0xd15fe6(0xa8)],_0x2754c7);}[a206_0x336cc3(0xc2)](..._0x29f097){const _0x11ff0c=a206_0x336cc3;this['log'](a206_0x34d78b[_0x11ff0c(0xa9)],_0x29f097);}[a206_0x336cc3(0xb1)](..._0x113b31){const _0x134a7d=a206_0x336cc3;this['log'](a206_0x34d78b[_0x134a7d(0xaa)],_0x113b31);}static[a206_0x336cc3(0xbc)](){const _0x5f2580=a206_0x336cc3;return state[_0x5f2580(0xdc)];}static[a206_0x336cc3(0xd1)](_0x3b1a34){const _0x57576e=a206_0x336cc3;if(state[_0x57576e(0xdc)])return state[_0x57576e(0xdc)]['format'](_0x3b1a34);return _0x3b1a34[_0x57576e(0xaf)][_0x57576e(0xb3)]()+'\x20['+logLevelToString(_0x3b1a34[_0x57576e(0xb2)])+']\x20['+_0x3b1a34[_0x57576e(0xcf)]+']\x20'+_0x3b1a34['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a207_0x1557(_0x2f8c94,_0x5d9a3c){_0x2f8c94=_0x2f8c94-0x177;const _0x27c390=a207_0x27c3();let _0x1557e2=_0x27c390[_0x2f8c94];return _0x1557e2;}(function(_0x8be695,_0x5df1a9){const _0x13b439=a207_0x1557,_0x40becc=_0x8be695();while(!![]){try{const _0x1cae6a=parseInt(_0x13b439(0x18a))/0x1+parseInt(_0x13b439(0x194))/0x2*(parseInt(_0x13b439(0x17d))/0x3)+parseInt(_0x13b439(0x177))/0x4*(-parseInt(_0x13b439(0x186))/0x5)+-parseInt(_0x13b439(0x184))/0x6+-parseInt(_0x13b439(0x178))/0x7*(-parseInt(_0x13b439(0x17e))/0x8)+parseInt(_0x13b439(0x191))/0x9+-parseInt(_0x13b439(0x17b))/0xa*(-parseInt(_0x13b439(0x17f))/0xb);if(_0x1cae6a===_0x5df1a9)break;else _0x40becc['push'](_0x40becc['shift']());}catch(_0x669564){_0x40becc['push'](_0x40becc['shift']());}}}(a207_0x27c3,0x84b55));export var LogLevel;(function(_0x484dd8){const _0x3e91e2=a207_0x1557;_0x484dd8[_0x484dd8[_0x3e91e2(0x195)]=-0x2]=_0x3e91e2(0x195),_0x484dd8[_0x484dd8[_0x3e91e2(0x196)]=-0x1]='DEBUG',_0x484dd8[_0x484dd8[_0x3e91e2(0x18f)]=0x0]=_0x3e91e2(0x18f),_0x484dd8[_0x484dd8[_0x3e91e2(0x189)]=0x1]=_0x3e91e2(0x189),_0x484dd8[_0x484dd8['ERROR']=0x2]=_0x3e91e2(0x17c);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x3abca3){const _0x1d20da=a207_0x1557;switch(_0x3abca3[_0x1d20da(0x190)]()){case'TRACE':return LogLevel[_0x1d20da(0x195)];case'DEBUG':return LogLevel['DEBUG'];case _0x1d20da(0x18f):return LogLevel[_0x1d20da(0x18f)];case'WARN':case'WARNING':return LogLevel[_0x1d20da(0x189)];case _0x1d20da(0x17c):return LogLevel['ERROR'];default:return LogLevel['INFO'];}}function a207_0x27c3(){const _0x1eb78b=['3553720wacxmt','96803czCLql','getMinutes','warn','140afYpqO','ERROR','76377YkuIsW','328qAGYiL','148181CdPlAO','error','getMilliseconds','getMonth','debug','1623672eGkUvD','floor','5ssnuiw','getSeconds','toString','WARN','193038drMciM','padStart','abs','getHours','getDate','INFO','toUpperCase','4723767aXqZKp','trace','info','18bNHGEa','TRACE','DEBUG'];a207_0x27c3=function(){return _0x1eb78b;};return a207_0x27c3();}export function logLevelToString(_0x1cb9ce){const _0x5e3b32=a207_0x1557;switch(_0x1cb9ce){case LogLevel[_0x5e3b32(0x195)]:return _0x5e3b32(0x192);case LogLevel['DEBUG']:return _0x5e3b32(0x183);case LogLevel['INFO']:return _0x5e3b32(0x193);case LogLevel[_0x5e3b32(0x189)]:return _0x5e3b32(0x17a);case LogLevel['ERROR']:return _0x5e3b32(0x180);default:return _0x5e3b32(0x193);}}export function formatTimestamp(_0x2b48cd){const _0x112c33=a207_0x1557,_0x515213=_0x2b48cd['getFullYear'](),_0x4c52e5=(_0x2b48cd[_0x112c33(0x182)]()+0x1)[_0x112c33(0x188)]()[_0x112c33(0x18b)](0x2,'0'),_0x35a85a=_0x2b48cd[_0x112c33(0x18e)]()[_0x112c33(0x188)]()[_0x112c33(0x18b)](0x2,'0'),_0x4a72f6=_0x2b48cd[_0x112c33(0x18d)]()[_0x112c33(0x188)]()['padStart'](0x2,'0'),_0x27f117=_0x2b48cd[_0x112c33(0x179)]()[_0x112c33(0x188)]()[_0x112c33(0x18b)](0x2,'0'),_0x3e73d2=_0x2b48cd[_0x112c33(0x187)]()[_0x112c33(0x188)]()[_0x112c33(0x18b)](0x2,'0'),_0x170354=_0x2b48cd[_0x112c33(0x181)]()[_0x112c33(0x188)]()[_0x112c33(0x18b)](0x3,'0'),_0x4cdc7e=-_0x2b48cd['getTimezoneOffset'](),_0x1c18d6=Math[_0x112c33(0x185)](Math[_0x112c33(0x18c)](_0x4cdc7e)/0x3c),_0xe9053c=Math[_0x112c33(0x18c)](_0x4cdc7e)%0x3c,_0xd830a8=_0x4cdc7e>=0x0?'+':'-',_0x14b3be=''+_0xd830a8+_0x1c18d6[_0x112c33(0x188)]()[_0x112c33(0x18b)](0x2,'0')+_0xe9053c['toString']()['padStart'](0x2,'0');return _0x515213+'-'+_0x4c52e5+'-'+_0x35a85a+'\x20'+_0x4a72f6+':'+_0x27f117+':'+_0x3e73d2+'.'+_0x170354+_0x14b3be;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1eedf7,_0x4904d8){const _0x232bdd=a208_0x3d23,_0x351e91=_0x1eedf7();while(!![]){try{const _0x26cbf1=parseInt(_0x232bdd(0xc1))/0x1+-parseInt(_0x232bdd(0xc0))/0x2*(-parseInt(_0x232bdd(0xc7))/0x3)+-parseInt(_0x232bdd(0xc4))/0x4*(-parseInt(_0x232bdd(0xbe))/0x5)+parseInt(_0x232bdd(0xc8))/0x6+parseInt(_0x232bdd(0xcc))/0x7+parseInt(_0x232bdd(0xbd))/0x8+-parseInt(_0x232bdd(0xcd))/0x9*(parseInt(_0x232bdd(0xc5))/0xa);if(_0x26cbf1===_0x4904d8)break;else _0x351e91['push'](_0x351e91['shift']());}catch(_0x364871){_0x351e91['push'](_0x351e91['shift']());}}}(a208_0x2244,0x2122f));export function validateLimitOption(_0x57fee0){const _0x52b99a=a208_0x3d23;if(!Number[_0x52b99a(0xbf)](_0x57fee0))return{'isValid':![],'error':_0x52b99a(0xc9)+_0x57fee0+_0x52b99a(0xcb)};if(_0x57fee0<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x57fee0+_0x52b99a(0xca)};return{'isValid':!![],'value':_0x57fee0};}function a208_0x3d23(_0x5a251c,_0x35479a){_0x5a251c=_0x5a251c-0xbd;const _0x224426=a208_0x2244();let _0x3d23de=_0x224426[_0x5a251c];return _0x3d23de;}function a208_0x2244(){const _0xfdacc4=['249JlVEUl','889482ONngZe','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20an\x20integer.','945098UtebtQ','99JGiNFR','359088iRlCUu','40915sJPHGh','isInteger','1858KlAAzv','120650myihkG','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20timeout\x20value:\x20','28ardzir','406780rWFAnw','number'];a208_0x2244=function(){return _0xfdacc4;};return a208_0x2244();}export function validateTimeoutOption(_0x48cd52,_0x2d7262=0x1e){const _0x4cffbb=a208_0x3d23;if(_0x48cd52===undefined)return{'isValid':!![],'value':_0x2d7262};const _0x55b3ff=typeof _0x48cd52===_0x4cffbb(0xc6)?_0x48cd52:parseFloat(_0x48cd52);if(isNaN(_0x55b3ff))return{'isValid':![],'error':_0x4cffbb(0xc3)+_0x48cd52+'.\x20Must\x20be\x20a\x20number.'};if(_0x55b3ff<=0x0)return{'isValid':![],'error':_0x4cffbb(0xc3)+_0x55b3ff+_0x4cffbb(0xc2)};return{'isValid':!![],'value':_0x55b3ff};}
|