@treasuredata/tdx 2026.3.45 → 2026.3.46
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/cas-command.js +1 -1
- package/dist/commands/cas-segment-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/work-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/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.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/types/workspace.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/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.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/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0xcffe4b=a209_0x3de3;(function(_0x3e552d,_0x524180){const _0x215b40=a209_0x3de3,_0x426051=_0x3e552d();while(!![]){try{const _0x370d65=-parseInt(_0x215b40(0x185))/0x1*(-parseInt(_0x215b40(0x181))/0x2)+-parseInt(_0x215b40(0x171))/0x3*(parseInt(_0x215b40(0x188))/0x4)+parseInt(_0x215b40(0x17c))/0x5+parseInt(_0x215b40(0x17a))/0x6*(parseInt(_0x215b40(0x17f))/0x7)+parseInt(_0x215b40(0x18c))/0x8*(parseInt(_0x215b40(0x176))/0x9)+parseInt(_0x215b40(0x189))/0xa*(-parseInt(_0x215b40(0x173))/0xb)+-parseInt(_0x215b40(0x175))/0xc*(-parseInt(_0x215b40(0x177))/0xd);if(_0x370d65===_0x524180)break;else _0x426051['push'](_0x426051['shift']());}catch(_0x25a928){_0x426051['push'](_0x426051['shift']());}}}(a209_0x4273,0xdd1a3));function a209_0x3de3(_0x50bc93,_0x174647){_0x50bc93=_0x50bc93-0x16f;const _0x4273d8=a209_0x4273();let _0x3de3c5=_0x4273d8[_0x50bc93];return _0x3de3c5;}import*as a209_0x27184c from'chalk';const Chalk=a209_0x27184c[a209_0xcffe4b(0x18b)];export function shouldUseColor(_0x76a7b4={}){const _0x4b504f=a209_0xcffe4b;if(_0x76a7b4['noColor']===!![])return![];if(_0x76a7b4[_0x4b504f(0x183)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x4b504f(0x174)][_0x4b504f(0x180)]??![];}export function getChalk(_0x365b3f={}){if(shouldUseColor(_0x365b3f))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x25f9b8,_0x525c39={}){const _0x356aec=a209_0xcffe4b;return getChalk(_0x525c39)[_0x356aec(0x170)](_0x25f9b8);}export function colorHeader(_0x2072a8,_0x4e7f19={}){return getChalk(_0x4e7f19)['cyan'](_0x2072a8);}export function colorType(_0x33026a,_0x440508={}){const _0x26db12=a209_0xcffe4b;return getChalk(_0x440508)[_0x26db12(0x170)](_0x33026a);}export function colorJSONKey(_0x4d5208,_0x31c042={}){const _0x2cd4b1=a209_0xcffe4b;return getChalk(_0x31c042)[_0x2cd4b1(0x16f)](_0x4d5208);}export function colorJSONString(_0x112ac5,_0x3e73b8={}){return getChalk(_0x3e73b8)['green'](_0x112ac5);}export function colorJSONNumber(_0x3942cf,_0x3f74b9={}){const _0x16b31b=a209_0xcffe4b;return getChalk(_0x3f74b9)[_0x16b31b(0x186)](_0x3942cf);}export function colorJSONBoolean(_0x1a2221,_0x481d4e={}){const _0x2e2d8b=a209_0xcffe4b;return getChalk(_0x481d4e)[_0x2e2d8b(0x184)](_0x1a2221);}export function colorJSONNull(_0x55876d,_0x50b47d={}){const _0x329ad1=a209_0xcffe4b;return getChalk(_0x50b47d)[_0x329ad1(0x170)](_0x55876d);}export function colorizeJSONCompact(_0x3158e4,_0x48b3bc={}){const _0x20dab5=a209_0xcffe4b;if(!shouldUseColor(_0x48b3bc))return JSON[_0x20dab5(0x172)](_0x3158e4);if(_0x3158e4===null)return colorJSONNull(_0x20dab5(0x18d),_0x48b3bc);if(typeof _0x3158e4===_0x20dab5(0x178))return colorJSONBoolean(String(_0x3158e4),_0x48b3bc);if(typeof _0x3158e4==='number')return colorJSONNumber(String(_0x3158e4),_0x48b3bc);if(typeof _0x3158e4==='string')return colorJSONString(JSON[_0x20dab5(0x172)](_0x3158e4),_0x48b3bc);if(Array['isArray'](_0x3158e4)){if(_0x3158e4[_0x20dab5(0x17e)]===0x0)return'[]';const _0x4189f3=_0x3158e4[_0x20dab5(0x182)](_0x282e40=>colorizeJSONCompact(_0x282e40,_0x48b3bc));return'['+_0x4189f3['join'](',')+']';}if(typeof _0x3158e4===_0x20dab5(0x179)){const _0x5c3e03=Object[_0x20dab5(0x17b)](_0x3158e4);if(_0x5c3e03[_0x20dab5(0x17e)]===0x0)return'{}';const _0x1c0408=_0x5c3e03[_0x20dab5(0x182)](([_0x2250c2,_0x50d8bd])=>{const _0x4faf3b=_0x20dab5,_0x294756=colorJSONKey(JSON[_0x4faf3b(0x172)](_0x2250c2),_0x48b3bc),_0x2b2cf9=colorizeJSONCompact(_0x50d8bd,_0x48b3bc);return _0x294756+':'+_0x2b2cf9;});return'{'+_0x1c0408[_0x20dab5(0x187)](',')+'}';}return String(_0x3158e4);}function a209_0x4273(){const _0x45053c=['266260OXgotb','string','length','259IQvhap','isTTY','1392122CqNGSD','map','color','yellow','1AUpiJv','cyan','join','8FxKNje','2930JSHiZH','repeat','Chalk','48YlymAv','null','blue','dim','295521USWkSe','stringify','14267LvKYFi','stdout','12AoCIkZ','741528LaPkRJ','1196533fYZQjk','boolean','object','23832kfkAMK','entries'];a209_0x4273=function(){return _0x45053c;};return a209_0x4273();}export function colorizeJSON(_0x5930f5,_0x43a2fb={},_0x537cb0=0x0){const _0x67a2a8=a209_0xcffe4b;if(!shouldUseColor(_0x43a2fb))return JSON[_0x67a2a8(0x172)](_0x5930f5,null,0x2);const _0x2ab8ff='\x20'[_0x67a2a8(0x18a)](_0x537cb0),_0x383a45=_0x537cb0+0x2;if(_0x5930f5===null)return colorJSONNull(_0x67a2a8(0x18d),_0x43a2fb);if(typeof _0x5930f5===_0x67a2a8(0x178))return colorJSONBoolean(String(_0x5930f5),_0x43a2fb);if(typeof _0x5930f5==='number')return colorJSONNumber(String(_0x5930f5),_0x43a2fb);if(typeof _0x5930f5===_0x67a2a8(0x17d))return colorJSONString(JSON[_0x67a2a8(0x172)](_0x5930f5),_0x43a2fb);if(Array['isArray'](_0x5930f5)){if(_0x5930f5['length']===0x0)return'[]';const _0x319f2a=_0x5930f5['map'](_0x211af6=>{const _0x425e41=colorizeJSON(_0x211af6,_0x43a2fb,_0x383a45);return''+'\x20'['repeat'](_0x383a45)+_0x425e41;});return'[\x0a'+_0x319f2a[_0x67a2a8(0x187)](',\x0a')+('\x0a'+_0x2ab8ff+']');}if(typeof _0x5930f5===_0x67a2a8(0x179)){const _0x4b3d86=Object[_0x67a2a8(0x17b)](_0x5930f5);if(_0x4b3d86['length']===0x0)return'{}';const _0x4c42f8=_0x4b3d86[_0x67a2a8(0x182)](([_0x428878,_0x453546])=>{const _0x59b884=_0x67a2a8,_0xad93a0=colorJSONKey(JSON[_0x59b884(0x172)](_0x428878),_0x43a2fb),_0x3dc232=colorizeJSON(_0x453546,_0x43a2fb,_0x383a45);return''+'\x20'[_0x59b884(0x18a)](_0x383a45)+_0xad93a0+':\x20'+_0x3dc232;});return'{\x0a'+_0x4c42f8[_0x67a2a8(0x187)](',\x0a')+('\x0a'+_0x2ab8ff+'}');}return String(_0x5930f5);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x544c2d,_0x32063d){const _0x41f317=a210_0x2d3b,_0xa1837f=_0x544c2d();while(!![]){try{const _0x42a8e9=-parseInt(_0x41f317(0x130))/0x1+-parseInt(_0x41f317(0x144))/0x2*(parseInt(_0x41f317(0x12d))/0x3)+-parseInt(_0x41f317(0x149))/0x4+-parseInt(_0x41f317(0x141))/0x5+parseInt(_0x41f317(0x134))/0x6*(parseInt(_0x41f317(0x148))/0x7)+-parseInt(_0x41f317(0x13c))/0x8*(parseInt(_0x41f317(0x14c))/0x9)+parseInt(_0x41f317(0x13b))/0xa;if(_0x42a8e9===_0x32063d)break;else _0xa1837f['push'](_0xa1837f['shift']());}catch(_0x312d4c){_0xa1837f['push'](_0xa1837f['shift']());}}}(a210_0x454f,0xa421c));import a210_0x45bfa0 from'chalk';export function generateDiff(_0x50acad,_0x163e82){const _0x11f75e=a210_0x2d3b,_0x5d0a71=_0x50acad[_0x11f75e(0x131)]('\x0a'),_0x24b95b=_0x163e82[_0x11f75e(0x131)]('\x0a'),_0x408104=[],_0xfefb4f=computeLCS(_0x5d0a71,_0x24b95b);let _0x2e6a95=0x0,_0x2731d8=0x0,_0xaf24c0=0x0;while(_0x2e6a95<_0x5d0a71[_0x11f75e(0x143)]||_0x2731d8<_0x24b95b[_0x11f75e(0x143)]){if(_0xaf24c0<_0xfefb4f[_0x11f75e(0x143)]&&_0x2e6a95<_0x5d0a71[_0x11f75e(0x143)]&&_0x5d0a71[_0x2e6a95]===_0xfefb4f[_0xaf24c0])_0x2731d8<_0x24b95b['length']&&_0x24b95b[_0x2731d8]===_0xfefb4f[_0xaf24c0]?(_0x408104[_0x11f75e(0x12c)]({'type':'unchanged','content':_0x5d0a71[_0x2e6a95]}),_0x2e6a95++,_0x2731d8++,_0xaf24c0++):(_0x408104['push']({'type':_0x11f75e(0x12e),'content':_0x24b95b[_0x2731d8]}),_0x2731d8++);else{if(_0xaf24c0<_0xfefb4f[_0x11f75e(0x143)]&&_0x2731d8<_0x24b95b[_0x11f75e(0x143)]&&_0x24b95b[_0x2731d8]===_0xfefb4f[_0xaf24c0])_0x408104[_0x11f75e(0x12c)]({'type':_0x11f75e(0x147),'content':_0x5d0a71[_0x2e6a95]}),_0x2e6a95++;else{if(_0x2e6a95<_0x5d0a71[_0x11f75e(0x143)]&&(_0xaf24c0>=_0xfefb4f[_0x11f75e(0x143)]||_0x5d0a71[_0x2e6a95]!==_0xfefb4f[_0xaf24c0]))_0x408104[_0x11f75e(0x12c)]({'type':_0x11f75e(0x147),'content':_0x5d0a71[_0x2e6a95]}),_0x2e6a95++;else _0x2731d8<_0x24b95b[_0x11f75e(0x143)]&&(_0x408104[_0x11f75e(0x12c)]({'type':_0x11f75e(0x12e),'content':_0x24b95b[_0x2731d8]}),_0x2731d8++);}}}return _0x408104;}function a210_0x454f(){const _0x5cf9e5=['repeat','forEach','red','47118290okVsBo','24JkEfsZ','add','green','\x20\x20...','new','6425220FuLjQS','max','length','2183374higwRE','\x20-\x20','content','removed','427gbkIwg','4731884TdjXCS','old','some','716913ojPHng','unshift','size','push','3wVDfPh','added','join','491582Pvadio','split','type','\x20\x20\x20','24660tzlcjC','map','fill','padStart'];a210_0x454f=function(){return _0x5cf9e5;};return a210_0x454f();}function computeLCS(_0xe43be0,_0x3c918a){const _0x1dbfe5=a210_0x2d3b,_0x5662ba=_0xe43be0['length'],_0x28479d=_0x3c918a['length'],_0x3b2ce8=Array(_0x5662ba+0x1)[_0x1dbfe5(0x136)](null)[_0x1dbfe5(0x135)](()=>Array(_0x28479d+0x1)['fill'](0x0));for(let _0x2a744c=0x1;_0x2a744c<=_0x5662ba;_0x2a744c++){for(let _0x44edeb=0x1;_0x44edeb<=_0x28479d;_0x44edeb++){_0xe43be0[_0x2a744c-0x1]===_0x3c918a[_0x44edeb-0x1]?_0x3b2ce8[_0x2a744c][_0x44edeb]=_0x3b2ce8[_0x2a744c-0x1][_0x44edeb-0x1]+0x1:_0x3b2ce8[_0x2a744c][_0x44edeb]=Math[_0x1dbfe5(0x142)](_0x3b2ce8[_0x2a744c-0x1][_0x44edeb],_0x3b2ce8[_0x2a744c][_0x44edeb-0x1]);}}const _0x4d38e6=[];let _0x53a65e=_0x5662ba,_0x5c709e=_0x28479d;while(_0x53a65e>0x0&&_0x5c709e>0x0){if(_0xe43be0[_0x53a65e-0x1]===_0x3c918a[_0x5c709e-0x1])_0x4d38e6[_0x1dbfe5(0x12a)](_0xe43be0[_0x53a65e-0x1]),_0x53a65e--,_0x5c709e--;else _0x3b2ce8[_0x53a65e-0x1][_0x5c709e]>_0x3b2ce8[_0x53a65e][_0x5c709e-0x1]?_0x53a65e--:_0x5c709e--;}return _0x4d38e6;}function a210_0x2d3b(_0x5c1bc1,_0x553aa7){_0x5c1bc1=_0x5c1bc1-0x12a;const _0x454fdc=a210_0x454f();let _0x2d3b42=_0x454fdc[_0x5c1bc1];return _0x2d3b42;}export function formatDiffWithColors(_0x2c5368,_0x425311=0x3){const _0xaf1a1f=a210_0x2d3b,_0x5d82c3=new Set();_0x2c5368[_0xaf1a1f(0x139)]((_0x260bbe,_0x303e28)=>{const _0xbaf1ba=_0xaf1a1f;_0x260bbe[_0xbaf1ba(0x132)]!=='unchanged'&&_0x5d82c3['add'](_0x303e28);});if(_0x5d82c3[_0xaf1a1f(0x12b)]===0x0)return'';const _0x5c7dcf=new Set();for(const _0xe97390 of _0x5d82c3){for(let _0x457018=Math[_0xaf1a1f(0x142)](0x0,_0xe97390-_0x425311);_0x457018<=Math['min'](_0x2c5368['length']-0x1,_0xe97390+_0x425311);_0x457018++){_0x5c7dcf[_0xaf1a1f(0x13d)](_0x457018);}}const _0x29877a=[];let _0x28ec10=-0x1;const _0x2b7f01=_0x2c5368[_0xaf1a1f(0x143)],_0x1c5066=Math['max'](0x3,String(_0x2b7f01)['length']),_0x58866e=[];let _0x2e7e29=0x0,_0x2dc48e=0x0;for(const _0x5cd899 of _0x2c5368){if(_0x5cd899[_0xaf1a1f(0x132)]==='removed')_0x2e7e29++,_0x58866e['push']({'old':_0x2e7e29,'new':0x0});else _0x5cd899[_0xaf1a1f(0x132)]===_0xaf1a1f(0x12e)?(_0x2dc48e++,_0x58866e[_0xaf1a1f(0x12c)]({'old':0x0,'new':_0x2dc48e})):(_0x2e7e29++,_0x2dc48e++,_0x58866e[_0xaf1a1f(0x12c)]({'old':_0x2e7e29,'new':_0x2dc48e}));}for(let _0x7230e=0x0;_0x7230e<_0x2c5368['length'];_0x7230e++){if(!_0x5c7dcf['has'](_0x7230e))continue;_0x28ec10!==-0x1&&_0x7230e>_0x28ec10+0x1&&_0x29877a['push'](a210_0x45bfa0['cyan'](_0xaf1a1f(0x13f)));_0x28ec10=_0x7230e;const _0x47defe=_0x2c5368[_0x7230e],_0x2fa9f5=_0x58866e[_0x7230e],_0x13de89=_0x2fa9f5[_0xaf1a1f(0x14a)]>0x0?String(_0x2fa9f5[_0xaf1a1f(0x14a)])[_0xaf1a1f(0x137)](_0x1c5066):'\x20'[_0xaf1a1f(0x138)](_0x1c5066),_0x4736b9=_0x2fa9f5[_0xaf1a1f(0x140)]>0x0?String(_0x2fa9f5[_0xaf1a1f(0x140)])[_0xaf1a1f(0x137)](_0x1c5066):'\x20'[_0xaf1a1f(0x138)](_0x1c5066);switch(_0x47defe[_0xaf1a1f(0x132)]){case _0xaf1a1f(0x147):_0x29877a['push'](a210_0x45bfa0[_0xaf1a1f(0x13a)](_0x13de89+'\x20'+_0x4736b9+_0xaf1a1f(0x145)+_0x47defe[_0xaf1a1f(0x146)]));break;case _0xaf1a1f(0x12e):_0x29877a[_0xaf1a1f(0x12c)](a210_0x45bfa0[_0xaf1a1f(0x13e)](_0x13de89+'\x20'+_0x4736b9+'\x20+\x20'+_0x47defe[_0xaf1a1f(0x146)]));break;default:_0x29877a['push'](a210_0x45bfa0['dim'](_0x13de89+'\x20'+_0x4736b9+_0xaf1a1f(0x133)+_0x47defe[_0xaf1a1f(0x146)]));break;}}return _0x29877a[_0xaf1a1f(0x12f)]('\x0a');}export function hasChanges(_0x2e9bee){const _0x255558=a210_0x2d3b;return _0x2e9bee[_0x255558(0x14b)](_0x5188d0=>_0x5188d0[_0x255558(0x132)]!=='unchanged');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29cbdd,_0x39ac1b){const _0x3bd120=a211_0x5e8b,_0x17dd07=_0x29cbdd();while(!![]){try{const _0x2b7f9e=parseInt(_0x3bd120(0x163))/0x1+-parseInt(_0x3bd120(0x15c))/0x2+-parseInt(_0x3bd120(0x164))/0x3*(-parseInt(_0x3bd120(0x16a))/0x4)+parseInt(_0x3bd120(0x15a))/0x5+-parseInt(_0x3bd120(0x15d))/0x6+-parseInt(_0x3bd120(0x167))/0x7*(parseInt(_0x3bd120(0x161))/0x8)+parseInt(_0x3bd120(0x158))/0x9;if(_0x2b7f9e===_0x39ac1b)break;else _0x17dd07['push'](_0x17dd07['shift']());}catch(_0x514ff4){_0x17dd07['push'](_0x17dd07['shift']());}}}(a211_0xa587,0xe5d22));import*as a211_0xafea4a from'node:fs';function a211_0x5e8b(_0xb91f7,_0x1410b9){_0xb91f7=_0xb91f7-0x158;const _0xa587cd=a211_0xa587();let _0x5e8b07=_0xa587cd[_0xb91f7];return _0x5e8b07;}import*as a211_0x40a7d2 from'node:path';export function setSecureFilePermissions(_0x2a06cc){const _0x5bb2b3=a211_0x5e8b;try{a211_0xafea4a[_0x5bb2b3(0x16b)](_0x2a06cc,0x180);}catch{console[_0x5bb2b3(0x169)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x2a06cc);}}export function setSecureDirectoryPermissions(_0x35b55d){const _0x3f701e=a211_0x5e8b;try{a211_0xafea4a['chmodSync'](_0x35b55d,0x1c0);}catch{console['warn'](_0x3f701e(0x162)+_0x35b55d);}}function a211_0xa587(){const _0x540619=['12498399VZavux','Should\x20be\x200600\x20or\x20more\x20restrictive.','1822505PmgNKs','\x20has\x20insecure\x20permissions\x20(','3542604kjjdza','8921166GqIUyX','toString',').\x20','Warning:\x20','8055304UIPJGu','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1876002DaFOfd','36ykQzeT','writeFileSync','mode','7vOCEig','existsSync','warn','525736Sjbjwv','chmodSync','dirname'];a211_0xa587=function(){return _0x540619;};return a211_0xa587();}export function createSecureDirectory(_0x39f1bc){const _0x389bc5=a211_0x5e8b;!a211_0xafea4a[_0x389bc5(0x168)](_0x39f1bc)&&(a211_0xafea4a['mkdirSync'](_0x39f1bc,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x39f1bc));}export function validateSecureFilePermissions(_0xe1bfe8){const _0x4b20b1=a211_0x5e8b;try{const _0x4dbc37=a211_0xafea4a['statSync'](_0xe1bfe8),_0x2e8251=_0x4dbc37[_0x4b20b1(0x166)]&0x1ff,_0x354086=(_0x2e8251&0x3f)!==0x0;if(_0x354086)return console[_0x4b20b1(0x169)](_0x4b20b1(0x160)+_0xe1bfe8+_0x4b20b1(0x15b)+_0x2e8251[_0x4b20b1(0x15e)](0x8)+_0x4b20b1(0x15f)+_0x4b20b1(0x159)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x331841,_0x3ae093){const _0x811f25=a211_0x5e8b,_0x2d045f=a211_0x40a7d2[_0x811f25(0x16c)](_0x331841);createSecureDirectory(_0x2d045f),a211_0xafea4a[_0x811f25(0x165)](_0x331841,_0x3ae093,{'mode':0x180}),setSecureFilePermissions(_0x331841);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a8a0b,_0x5ed60b){const _0x533460=a212_0x1a32,_0x115d39=_0x1a8a0b();while(!![]){try{const _0x743a8e=parseInt(_0x533460(0x130))/0x1+parseInt(_0x533460(0x129))/0x2+-parseInt(_0x533460(0x125))/0x3*(parseInt(_0x533460(0x127))/0x4)+-parseInt(_0x533460(0x12e))/0x5+-parseInt(_0x533460(0x12f))/0x6*(parseInt(_0x533460(0x124))/0x7)+parseInt(_0x533460(0x12b))/0x8+-parseInt(_0x533460(0x12c))/0x9*(-parseInt(_0x533460(0x131))/0xa);if(_0x743a8e===_0x5ed60b)break;else _0x115d39['push'](_0x115d39['shift']());}catch(_0x3f5da5){_0x115d39['push'](_0x115d39['shift']());}}}(a212_0x25fc,0x5a5d1));function a212_0x25fc(){const _0x4706d7=['958608jgnbaC','File\x20\x27','1434200eJwdeh','1575QnntyD','ENOENT','2139350MXOGdX','6qTqdMZ','460332ZILMCU','16630dyDKns','Permission\x20denied\x20reading\x20file\x20\x27','NOT_FOUND','Error\x20reading\x20file\x20\x27','\x27\x20not\x20found','INTERNAL','1652735rDqjfe','2586bkVlQS','code','1744MnrKcC','\x27:\x20'];a212_0x25fc=function(){return _0x4706d7;};return a212_0x25fc();}import{readFileSync}from'fs';function a212_0x1a32(_0xcd8326,_0x18801a){_0xcd8326=_0xcd8326-0x122;const _0x25fc1f=a212_0x25fc();let _0x1a32b7=_0x25fc1f[_0xcd8326];return _0x1a32b7;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x40c270){const _0x469467=a212_0x1a32;try{return readFileSync(_0x40c270,'utf-8');}catch(_0x3a5e83){const _0x764c07=_0x3a5e83[_0x469467(0x126)];if(_0x764c07===_0x469467(0x12d))throw new SDKError(ErrorCode[_0x469467(0x133)],_0x469467(0x12a)+_0x40c270+_0x469467(0x122),_0x3a5e83);else{if(_0x764c07==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x469467(0x132)+_0x40c270+'\x27',_0x3a5e83);else throw new SDKError(ErrorCode[_0x469467(0x123)],_0x469467(0x134)+_0x40c270+_0x469467(0x128)+_0x3a5e83['message'],_0x3a5e83);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a213_0x2c0c(_0x216bde,_0x4cc37d){_0x216bde=_0x216bde-0x17a;const _0x2d65b2=a213_0x2d65();let _0x2c0c40=_0x2d65b2[_0x216bde];return _0x2c0c40;}function a213_0x2d65(){const _0x172fb9=['prerelease','/releases?per_page=20','slice','set','find','4547543gzRgaZ','38bRcLsT','1184769ewwNMI','get','14856leoQty','fetchedAt','data','length','error','24158lphJxB','statusCode','/repos/','2588855zyIRMB','releases','now','next','403240GgABYb','10GXrEfP','6zLJplD','1319544hzYRVY','timeout','destroy','application/vnd.github+json','1036acHmwi'];a213_0x2d65=function(){return _0x172fb9;};return a213_0x2d65();}(function(_0x3d6534,_0x56d155){const _0x18c23d=a213_0x2c0c,_0x4739cc=_0x3d6534();while(!![]){try{const _0x3235e2=-parseInt(_0x18c23d(0x193))/0x1*(parseInt(_0x18c23d(0x18b))/0x2)+parseInt(_0x18c23d(0x180))/0x3+parseInt(_0x18c23d(0x17d))/0x4+-parseInt(_0x18c23d(0x196))/0x5*(-parseInt(_0x18c23d(0x17f))/0x6)+parseInt(_0x18c23d(0x184))/0x7*(parseInt(_0x18c23d(0x18e))/0x8)+-parseInt(_0x18c23d(0x18c))/0x9*(parseInt(_0x18c23d(0x17e))/0xa)+-parseInt(_0x18c23d(0x18a))/0xb;if(_0x3235e2===_0x56d155)break;else _0x4739cc['push'](_0x4739cc['shift']());}catch(_0x5cb3c1){_0x4739cc['push'](_0x4739cc['shift']());}}}(a213_0x2d65,0x505f9));import*as a213_0x2de112 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x26e2d3,_0x30dbe6,_0x3d7fb6){const _0x1ff635=a213_0x2c0c,_0x656228=_0x26e2d3+'/'+_0x30dbe6,_0x9c4f3d=cache['get'](_0x656228);if(_0x9c4f3d&&Date[_0x1ff635(0x17b)]()-_0x9c4f3d[_0x1ff635(0x18f)]<CACHE_TTL_MS)return Promise['resolve'](_0x9c4f3d[_0x1ff635(0x17a)]);return new Promise((_0x58ab8d,_0x283c04)=>{const _0x3ab8c9=_0x1ff635,_0x484558={'hostname':'api.github.com','path':_0x3ab8c9(0x195)+_0x26e2d3+'/'+_0x30dbe6+_0x3ab8c9(0x186),'headers':{'User-Agent':_0x3d7fb6,'Accept':_0x3ab8c9(0x183)},'timeout':REQUEST_TIMEOUT_MS},_0x4931a4=a213_0x2de112[_0x3ab8c9(0x18d)](_0x484558,_0x1407b4=>{const _0x87ceac=_0x3ab8c9;let _0x758db6='';_0x1407b4['on'](_0x87ceac(0x190),_0x216695=>{_0x758db6+=_0x216695['toString']();}),_0x1407b4['on']('end',()=>{const _0x584f6d=_0x87ceac;if(_0x1407b4['statusCode']!==0xc8){_0x283c04(new Error('GitHub\x20API\x20returned\x20'+_0x1407b4[_0x584f6d(0x194)]+':\x20'+_0x758db6[_0x584f6d(0x187)](0x0,0xc8)));return;}try{const _0x2668f2=JSON['parse'](_0x758db6);cache[_0x584f6d(0x188)](_0x656228,{'releases':_0x2668f2,'fetchedAt':Date[_0x584f6d(0x17b)]()}),_0x58ab8d(_0x2668f2);}catch(_0x3e517a){_0x283c04(_0x3e517a);}});});_0x4931a4['on'](_0x3ab8c9(0x181),()=>{const _0x51f8e4=_0x3ab8c9;_0x4931a4[_0x51f8e4(0x182)](),_0x283c04(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x4931a4['on'](_0x3ab8c9(0x192),_0x283c04);});}export async function resolveReleaseTag(_0x23b213,_0x37ad6a,_0x38fe7c,_0x4e6928){const _0x37eccc=a213_0x2c0c;if(_0x23b213===_0x37eccc(0x17c))return null;const _0x35f12f=await fetchGitHubReleases(_0x37ad6a,_0x38fe7c,_0x4e6928);if(_0x35f12f[_0x37eccc(0x191)]===0x0)return null;const _0x352be2=_0x35f12f[_0x37eccc(0x189)](_0x47d44d=>!_0x47d44d[_0x37eccc(0x185)]);return _0x352be2?_0x352be2['tag_name']:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27d9ca,_0x25f380){const _0x5254f0=a214_0x2973,_0x59f5fe=_0x27d9ca();while(!![]){try{const _0x538a49=-parseInt(_0x5254f0(0x177))/0x1+parseInt(_0x5254f0(0x186))/0x2+parseInt(_0x5254f0(0x17e))/0x3*(parseInt(_0x5254f0(0x176))/0x4)+parseInt(_0x5254f0(0x18c))/0x5+parseInt(_0x5254f0(0x17c))/0x6*(-parseInt(_0x5254f0(0x189))/0x7)+parseInt(_0x5254f0(0x187))/0x8*(parseInt(_0x5254f0(0x188))/0x9)+-parseInt(_0x5254f0(0x183))/0xa;if(_0x538a49===_0x25f380)break;else _0x59f5fe['push'](_0x59f5fe['shift']());}catch(_0x29745d){_0x59f5fe['push'](_0x59f5fe['shift']());}}}(a214_0x1c96,0xa0d7a));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a214_0x1c96(){const _0x110b40=['\x22\x20already\x20registered\x20by\x20\x22','26892430xUxxZS','\x22,\x20cannot\x20register\x20for\x20\x22','set','2291850ZbgRpM','9268344hkbegB','9dVZhpp','68131pAAJcD','{profile}','get','1214775qqZvvT','2513628dGjZUs','144728twAvov','stringify','parse','tdx','.cache','192kmzjkY','default','6ZSBzkQ','clear','trim','utf-8'];a214_0x1c96=function(){return _0x110b40;};return a214_0x1c96();}import{homedir}from'os';export function getGlobalCacheDir(){const _0x476cdc=a214_0x2973;return process.env.TDX_CACHE_DIR||join(homedir(),_0x476cdc(0x17b),_0x476cdc(0x17a));}const registry=new Map();export function registerGlobalCacheKey(_0xa19679,_0x5be6d5){const _0x152d83=a214_0x2973,_0x1af9f0=registry[_0x152d83(0x18b)](_0xa19679);if(_0x1af9f0&&_0x1af9f0!==_0x5be6d5)throw new Error('Global\x20cache\x20key\x20\x22'+_0xa19679+_0x152d83(0x182)+_0x1af9f0+_0x152d83(0x184)+_0x5be6d5+'\x22');registry[_0x152d83(0x185)](_0xa19679,_0x5be6d5);}function a214_0x2973(_0x3c7667,_0xe8c387){_0x3c7667=_0x3c7667-0x176;const _0x1c9651=a214_0x1c96();let _0x297399=_0x1c9651[_0x3c7667];return _0x297399;}export function getGlobalCachePath(_0x359b6){return join(getGlobalCacheDir(),_0x359b6);}function ensureGlobalCacheDir(){const _0x4fb867=getGlobalCacheDir();!existsSync(_0x4fb867)&&mkdirSync(_0x4fb867,{'recursive':!![]});}function readCacheJson(_0x1b5904){const _0x51ce06=a214_0x2973,_0x2d4f63=getGlobalCachePath(_0x1b5904);if(!existsSync(_0x2d4f63))return undefined;try{const _0x5e2b32=readFileSync(_0x2d4f63,_0x51ce06(0x181));return JSON[_0x51ce06(0x179)](_0x5e2b32);}catch{return undefined;}}function writeCacheJson(_0x49576b,_0xcd9b1e){const _0x205fe9=a214_0x2973;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x49576b),JSON[_0x205fe9(0x178)](_0xcd9b1e,null,0x2),_0x205fe9(0x181));}function readCacheText(_0x3db4e3){const _0x2b7e9d=getGlobalCachePath(_0x3db4e3);if(!existsSync(_0x2b7e9d))return undefined;try{return readFileSync(_0x2b7e9d,'utf-8');}catch{return undefined;}}function writeCacheText(_0x42bd47,_0x182044){const _0x2534e9=a214_0x2973;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x42bd47),_0x182044,_0x2534e9(0x181));}function clearCache(_0x5160e4){const _0x36fab7=getGlobalCachePath(_0x5160e4);if(existsSync(_0x36fab7))try{unlinkSync(_0x36fab7);}catch{}}function cacheExists(_0x34bf2c){return existsSync(getGlobalCachePath(_0x34bf2c));}export function createGlobalCache(_0x4a8dcf,_0x5288a6){return registerGlobalCacheKey(_0x4a8dcf,_0x5288a6),{'read':()=>readCacheJson(_0x4a8dcf),'write':_0x280c6b=>writeCacheJson(_0x4a8dcf,_0x280c6b),'clear':()=>clearCache(_0x4a8dcf),'exists':()=>cacheExists(_0x4a8dcf),'path':()=>getGlobalCachePath(_0x4a8dcf)};}export function createGlobalTextCache(_0x44dc8d,_0x159b80){const _0x475272=a214_0x2973;return registerGlobalCacheKey(_0x44dc8d,_0x159b80),{'read':()=>readCacheText(_0x44dc8d)?.[_0x475272(0x180)]()||undefined,'write':_0x40d4b7=>writeCacheText(_0x44dc8d,_0x40d4b7),'clear':()=>clearCache(_0x44dc8d),'exists':()=>cacheExists(_0x44dc8d),'path':()=>getGlobalCachePath(_0x44dc8d)};}export function createProfileCache(_0x1c5f93,_0x18e612){const _0x54e862=_0xa0d9b0=>{const _0x32cb55=a214_0x2973,_0x48245e=_0xa0d9b0||_0x32cb55(0x17d);return _0x1c5f93['replace'](_0x32cb55(0x18a),_0x48245e);};return{'read':_0x515a9b=>{const _0xfe7811=_0x54e862(_0x515a9b);return registerGlobalCacheKey(_0xfe7811,_0x18e612),readCacheJson(_0xfe7811);},'write':(_0x5a6131,_0x371b33)=>{const _0x451790=_0x54e862(_0x5a6131);registerGlobalCacheKey(_0x451790,_0x18e612),writeCacheJson(_0x451790,_0x371b33);},'clear':_0x14d08b=>{const _0x2d70c7=_0x54e862(_0x14d08b);clearCache(_0x2d70c7);},'exists':_0x13b150=>{const _0x3e2a6a=_0x54e862(_0x13b150);return cacheExists(_0x3e2a6a);},'path':_0x279fa2=>{const _0x8f9cfe=_0x54e862(_0x279fa2);return getGlobalCachePath(_0x8f9cfe);}};}export function createOptionalProfileCache(_0x27f251,_0x5441ae,_0x455e7a={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x455e7a,_0x17fd81=_0xf85b35=>{return _0xf85b35?''+_0x27f251+profileSeparator+_0xf85b35+suffix:''+_0x27f251+suffix;};return{'read':_0x5c5da9=>{const _0x12d833=_0x17fd81(_0x5c5da9);return registerGlobalCacheKey(_0x12d833,_0x5441ae),readCacheJson(_0x12d833);},'write':(_0x22e616,_0x22d4da)=>{const _0x4ec08c=_0x17fd81(_0x22d4da);registerGlobalCacheKey(_0x4ec08c,_0x5441ae),writeCacheJson(_0x4ec08c,_0x22e616);},'clear':_0x686e8=>{const _0xb62863=_0x17fd81(_0x686e8);clearCache(_0xb62863);},'exists':_0x1835f5=>{const _0x36829f=_0x17fd81(_0x1835f5);return cacheExists(_0x36829f);},'path':_0x25e6db=>{const _0x96dcaa=_0x17fd81(_0x25e6db);return getGlobalCachePath(_0x96dcaa);}};}export function clearGlobalRegistry(){const _0x337d2c=a214_0x2973;registry[_0x337d2c(0x17f)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5682fa,_0x501f61){const _0x68ba87=a215_0x1683,_0x10089a=_0x5682fa();while(!![]){try{const _0xf3ccd6=-parseInt(_0x68ba87(0xe9))/0x1*(-parseInt(_0x68ba87(0xfa))/0x2)+-parseInt(_0x68ba87(0xec))/0x3+parseInt(_0x68ba87(0xe5))/0x4+parseInt(_0x68ba87(0xea))/0x5*(-parseInt(_0x68ba87(0xf8))/0x6)+parseInt(_0x68ba87(0xf7))/0x7*(parseInt(_0x68ba87(0xe6))/0x8)+-parseInt(_0x68ba87(0xf1))/0x9*(-parseInt(_0x68ba87(0xf6))/0xa)+-parseInt(_0x68ba87(0xef))/0xb;if(_0xf3ccd6===_0x501f61)break;else _0x10089a['push'](_0x10089a['shift']());}catch(_0xf2a3a){_0x10089a['push'](_0x10089a['shift']());}}}(a215_0x1ca9,0x5d9cb));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x1683(_0x428bea,_0x8d5afa){_0x428bea=_0x428bea-0xe4;const _0x1ca9fa=a215_0x1ca9();let _0x168396=_0x1ca9fa[_0x428bea];return _0x168396;}export async function loadJSON(_0x2377f9,_0x18f8be){const _0x4408c6=a215_0x1683;try{if(_0x18f8be){const _0x4b202c=await readFile(_0x2377f9,_0x4408c6(0xee));try{return JSON[_0x4408c6(0xeb)](_0x4b202c);}catch(_0x534a37){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4408c6(0xf0)+_0x2377f9+_0x4408c6(0xe8)+(_0x534a37 instanceof Error?_0x534a37[_0x4408c6(0xe7)]:String(_0x534a37)));}}else try{return JSON[_0x4408c6(0xeb)](_0x2377f9);}catch(_0x1e0af9){throw new SDKError(ErrorCode[_0x4408c6(0xe4)],_0x4408c6(0xf2)+(_0x1e0af9 instanceof Error?_0x1e0af9[_0x4408c6(0xe7)]:String(_0x1e0af9)));}}catch(_0x3d5b83){if(_0x3d5b83 instanceof SDKError)throw _0x3d5b83;if(_0x3d5b83 instanceof Error&&_0x4408c6(0xf4)in _0x3d5b83){const _0x51928c=_0x3d5b83;if(_0x51928c[_0x4408c6(0xf4)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x2377f9);else{if(_0x51928c[_0x4408c6(0xf4)]===_0x4408c6(0xf3))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x4408c6(0xf9)+_0x2377f9);}}throw new SDKError(ErrorCode[_0x4408c6(0xf5)],_0x4408c6(0xed)+(_0x3d5b83 instanceof Error?_0x3d5b83['message']:String(_0x3d5b83)));}}function a215_0x1ca9(){const _0x38e4f9=['EACCES','code','INTERNAL','6255390icRkOC','28yJzssa','299508rKpbtF','Permission\x20denied\x20reading\x20file:\x20','94udtRYH','INVALID_ARGUMENT','44044jeMpps','1062952KWKJUF','message','\x27:\x20','3512rIrgGD','5vkMbxx','parse','410319AqCAdu','Failed\x20to\x20load\x20JSON:\x20','utf-8','8392604zBZwwu','Invalid\x20JSON\x20in\x20file\x20\x27','9bgwfvG','Invalid\x20JSON\x20string:\x20'];a215_0x1ca9=function(){return _0x38e4f9;};return a215_0x1ca9();}export async function loadJSONFromOptions(_0x42e94a,_0x352e76){const _0x668e7a=a215_0x1683;if(_0x42e94a&&_0x352e76)throw new SDKError(ErrorCode[_0x668e7a(0xe4)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x42e94a)return await loadJSON(_0x42e94a,![]);if(_0x352e76)return await loadJSON(_0x352e76,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x53a527,_0x47c2c2){const _0x2d5008=a216_0xa626,_0x4b38e4=_0x53a527();while(!![]){try{const _0x2050b7=-parseInt(_0x2d5008(0x12d))/0x1+parseInt(_0x2d5008(0x12b))/0x2+parseInt(_0x2d5008(0x123))/0x3+parseInt(_0x2d5008(0x12e))/0x4+parseInt(_0x2d5008(0x126))/0x5+parseInt(_0x2d5008(0x124))/0x6+-parseInt(_0x2d5008(0x132))/0x7;if(_0x2050b7===_0x47c2c2)break;else _0x4b38e4['push'](_0x4b38e4['shift']());}catch(_0x31c8c4){_0x4b38e4['push'](_0x4b38e4['shift']());}}}(a216_0x41ad,0x34255));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(_0x246943,_0x3358cf){const _0x5ac702=a216_0xa626,_0x36c6c1=registry[_0x5ac702(0x131)](_0x246943);if(_0x36c6c1&&_0x36c6c1!==_0x3358cf)throw new Error(_0x5ac702(0x133)+_0x246943+_0x5ac702(0x130)+_0x36c6c1+_0x5ac702(0x12c)+_0x3358cf+'\x22');registry[_0x5ac702(0x127)](_0x246943,_0x3358cf);}export function getCacheDir(){const _0x40e422=a216_0xa626,_0x30b5c8=process[_0x40e422(0x12f)](),_0x42c07b=_0x30b5c8===parse(_0x30b5c8)[_0x40e422(0x12a)]?homedir():_0x30b5c8;return join(_0x42c07b,LOCAL_CACHE_DIR);}export function getCachePath(_0x2a316e){return join(getCacheDir(),_0x2a316e);}function ensureCacheDir(){const _0x2423f2=getCacheDir();!existsSync(_0x2423f2)&&mkdirSync(_0x2423f2,{'recursive':!![]});}function readCacheJson(_0x3bc347){const _0x5192bb=getCachePath(_0x3bc347);if(!existsSync(_0x5192bb))return undefined;try{const _0x46e543=readFileSync(_0x5192bb,'utf-8');return JSON['parse'](_0x46e543);}catch{return undefined;}}function writeCacheJson(_0x4cf89b,_0x4ad008){const _0xf6531f=a216_0xa626;ensureCacheDir(),writeFileSync(getCachePath(_0x4cf89b),JSON['stringify'](_0x4ad008,null,0x2),_0xf6531f(0x128));}function a216_0x41ad(){const _0x340782=['\x22\x20already\x20registered\x20by\x20\x22','get','8458996lxZgmE','Cache\x20key\x20\x22','1274307brCYRV','715098qpoaBu','trim','2045680mrgqfF','set','utf-8','clear','root','314494FFIxFX','\x22,\x20cannot\x20register\x20for\x20\x22','31565IICgfo','1372988ksaeMj','cwd'];a216_0x41ad=function(){return _0x340782;};return a216_0x41ad();}function readCacheText(_0x13b8b7){const _0x2b4cef=a216_0xa626,_0x21839=getCachePath(_0x13b8b7);if(!existsSync(_0x21839))return undefined;try{return readFileSync(_0x21839,_0x2b4cef(0x128));}catch{return undefined;}}function writeCacheText(_0x123751,_0xb738a4){const _0x1c2b82=a216_0xa626;ensureCacheDir(),writeFileSync(getCachePath(_0x123751),_0xb738a4,_0x1c2b82(0x128));}function clearCache(_0x15d57d){const _0x447c57=getCachePath(_0x15d57d);if(existsSync(_0x447c57))try{unlinkSync(_0x447c57);}catch{}}function cacheExists(_0x37a8be){return existsSync(getCachePath(_0x37a8be));}export function createCache(_0x211874,_0x3b84c7){return registerCacheKey(_0x211874,_0x3b84c7),{'read':()=>readCacheJson(_0x211874),'write':_0x4178c1=>writeCacheJson(_0x211874,_0x4178c1),'clear':()=>clearCache(_0x211874),'exists':()=>cacheExists(_0x211874),'path':()=>getCachePath(_0x211874)};}export function createTextCache(_0x556ab5,_0x1aa862){const _0x4f2c06=a216_0xa626;return registerCacheKey(_0x556ab5,_0x1aa862),{'read':()=>readCacheText(_0x556ab5)?.[_0x4f2c06(0x125)]()||undefined,'write':_0xd67c8d=>writeCacheText(_0x556ab5,_0xd67c8d),'clear':()=>clearCache(_0x556ab5),'exists':()=>cacheExists(_0x556ab5),'path':()=>getCachePath(_0x556ab5)};}function a216_0xa626(_0x48f4e4,_0x72285){_0x48f4e4=_0x48f4e4-0x123;const _0x41ad6c=a216_0x41ad();let _0xa626b6=_0x41ad6c[_0x48f4e4];return _0xa626b6;}export function clearRegistry(){const _0x3fb18f=a216_0xa626;registry[_0x3fb18f(0x129)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a217_0x2028(_0x3bd9b0,_0x26935a){_0x3bd9b0=_0x3bd9b0-0xce;const _0x2e0416=a217_0x2e04();let _0x202882=_0x2e0416[_0x3bd9b0];return _0x202882;}function a217_0x2e04(){const _0x484c5c=['chalk','Chalk','25479ZVvvJH','4351422iCMHGZ','format','TRACE','colorLevel','colors','42932xmeGdC','message','default','35LQhXui','743877WwSvtH','timestamp','1000232FectNa','417796HqhrjL','INFO','215qaTovq','component','ERROR','yellow',']\x20[','500UIbAGG','red','gray','level','WARN','green','cyan','330476gPSkKq'];a217_0x2e04=function(){return _0x484c5c;};return a217_0x2e04();}const a217_0x1559ec=a217_0x2028;(function(_0x4e1cbe,_0xe4ef76){const _0x49236b=a217_0x2028,_0x50e5f9=_0x4e1cbe();while(!![]){try{const _0x1b7afe=-parseInt(_0x49236b(0xd6))/0x1+parseInt(_0x49236b(0xe6))/0x2+-parseInt(_0x49236b(0xe3))/0x3+parseInt(_0x49236b(0xdf))/0x4*(-parseInt(_0x49236b(0xe8))/0x5)+parseInt(_0x49236b(0xda))/0x6+-parseInt(_0x49236b(0xe2))/0x7*(-parseInt(_0x49236b(0xe5))/0x8)+-parseInt(_0x49236b(0xd9))/0x9*(parseInt(_0x49236b(0xcf))/0xa);if(_0x1b7afe===_0xe4ef76)break;else _0x50e5f9['push'](_0x50e5f9['shift']());}catch(_0x514024){_0x50e5f9['push'](_0x50e5f9['shift']());}}}(a217_0x2e04,0x5c3b0));import a217_0x445564 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x445564,ChalkClass=chalkModule['Chalk']||chalkModule[a217_0x1559ec(0xe1)]?.[a217_0x1559ec(0xd8)];export class DefaultLogFormatter{[a217_0x1559ec(0xde)];[a217_0x1559ec(0xd7)];constructor(_0x511eda={}){const _0x38bbe4=a217_0x1559ec;this[_0x38bbe4(0xde)]=_0x511eda[_0x38bbe4(0xde)]??![],this['chalk']=_0x511eda['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x445564;}[a217_0x1559ec(0xdb)](_0x317bfe){const _0x21c965=a217_0x1559ec,_0x2bc95f=formatTimestamp(_0x317bfe[_0x21c965(0xe4)]),_0x29bff7=logLevelToString(_0x317bfe[_0x21c965(0xd2)]);if(!this['colors'])return _0x2bc95f+'\x20['+_0x29bff7+_0x21c965(0xce)+_0x317bfe[_0x21c965(0xe9)]+']\x20'+_0x317bfe[_0x21c965(0xe0)];const _0x163cca=this[_0x21c965(0xd7)]['dim'](_0x2bc95f),_0x25ee26=this[_0x21c965(0xdd)](_0x29bff7,_0x317bfe[_0x21c965(0xd2)]),_0x33e09b=this['chalk']['blue']('['+_0x317bfe[_0x21c965(0xe9)]+']');return _0x163cca+'\x20'+_0x25ee26+'\x20'+_0x33e09b+'\x20'+_0x317bfe[_0x21c965(0xe0)];}[a217_0x1559ec(0xdd)](_0xefb4b2,_0x3c200d){const _0x1cf05d=a217_0x1559ec;switch(_0x3c200d){case LogLevel[_0x1cf05d(0xdc)]:return this[_0x1cf05d(0xd7)][_0x1cf05d(0xd1)]('['+_0xefb4b2+']');case LogLevel['DEBUG']:return this[_0x1cf05d(0xd7)][_0x1cf05d(0xd4)]('['+_0xefb4b2+']');case LogLevel[_0x1cf05d(0xe7)]:return this[_0x1cf05d(0xd7)][_0x1cf05d(0xd5)]('['+_0xefb4b2+']');case LogLevel[_0x1cf05d(0xd3)]:return this[_0x1cf05d(0xd7)][_0x1cf05d(0xeb)]('['+_0xefb4b2+']');case LogLevel[_0x1cf05d(0xea)]:return this['chalk'][_0x1cf05d(0xd0)]('['+_0xefb4b2+']');default:return'['+_0xefb4b2+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a218_0xe2f4(){var _0x2a3479=['1171210YGbebI','4854060xNgPgn','3eLfUyf','3080934bppUbq','279300QQAslS','96ZuuTld','20jlqavi','1217190JzWwmI','684362NxTCKl','636248stFWDq'];a218_0xe2f4=function(){return _0x2a3479;};return a218_0xe2f4();}function a218_0x106f(_0x2e7f76,_0x16a14d){_0x2e7f76=_0x2e7f76-0x126;var _0xe2f473=a218_0xe2f4();var _0x106f80=_0xe2f473[_0x2e7f76];return _0x106f80;}(function(_0x269765,_0xa9dc9c){var _0x5ba7a4=a218_0x106f,_0x242f99=_0x269765();while(!![]){try{var _0x1cc427=-parseInt(_0x5ba7a4(0x12d))/0x1+parseInt(_0x5ba7a4(0x126))/0x2+parseInt(_0x5ba7a4(0x128))/0x3*(parseInt(_0x5ba7a4(0x12a))/0x4)+-parseInt(_0x5ba7a4(0x127))/0x5+parseInt(_0x5ba7a4(0x12b))/0x6*(parseInt(_0x5ba7a4(0x12e))/0x7)+parseInt(_0x5ba7a4(0x12f))/0x8+parseInt(_0x5ba7a4(0x129))/0x9*(parseInt(_0x5ba7a4(0x12c))/0xa);if(_0x1cc427===_0xa9dc9c)break;else _0x242f99['push'](_0x242f99['shift']());}catch(_0x40b909){_0x242f99['push'](_0x242f99['shift']());}}}(a218_0xe2f4,0xc24db));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a219_0x5749(_0xb8ab6a,_0x5aba34){_0xb8ab6a=_0xb8ab6a-0x73;const _0x5f41b6=a219_0x5f41();let _0x5749fa=_0x5f41b6[_0xb8ab6a];return _0x5749fa;}const a219_0x3acbd9=a219_0x5749;(function(_0x58d17f,_0x667ee3){const _0x579c73=a219_0x5749,_0x205369=_0x58d17f();while(!![]){try{const _0x189afc=parseInt(_0x579c73(0x80))/0x1+-parseInt(_0x579c73(0x7d))/0x2+-parseInt(_0x579c73(0x75))/0x3*(parseInt(_0x579c73(0x7c))/0x4)+parseInt(_0x579c73(0x76))/0x5+-parseInt(_0x579c73(0x7b))/0x6+parseInt(_0x579c73(0x82))/0x7*(-parseInt(_0x579c73(0x83))/0x8)+parseInt(_0x579c73(0x7f))/0x9;if(_0x189afc===_0x667ee3)break;else _0x205369['push'](_0x205369['shift']());}catch(_0x53ee7e){_0x205369['push'](_0x205369['shift']());}}}(a219_0x5f41,0x35572));import{LogLevel as a219_0x39b54d}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a219_0x3acbd9(0x7e)];['useStderr'];[a219_0x3acbd9(0x74)];constructor(_0x379c63={}){const _0x19a4c1=a219_0x3acbd9;this[_0x19a4c1(0x7e)]=_0x379c63[_0x19a4c1(0x7e)]??a219_0x39b54d[_0x19a4c1(0x84)],this[_0x19a4c1(0x85)]=_0x379c63['useStderr']??!![],this[_0x19a4c1(0x74)]=new DefaultLogFormatter({'colors':_0x379c63[_0x19a4c1(0x81)]??!![]});}[a219_0x3acbd9(0x73)](_0x553227){const _0x35b9a0=a219_0x3acbd9;if(_0x553227[_0x35b9a0(0x7a)]<this[_0x35b9a0(0x7e)])return;const _0xa6992=this[_0x35b9a0(0x74)][_0x35b9a0(0x77)](_0x553227);this[_0x35b9a0(0x85)]&&_0x553227[_0x35b9a0(0x7a)]>=a219_0x39b54d['WARN']?console[_0x35b9a0(0x78)](_0xa6992):console[_0x35b9a0(0x79)](_0xa6992);}}function a219_0x5f41(){const _0x44166d=['minLevel','6471027WahUDj','382516ruzvBz','colors','1014664qTUmNx','16vwZfwZ','WARN','useStderr','handle','formatter','496830qHdonj','1164030EohHFW','format','error','log','level','2138898NCNcGY','8YNjOIU','276472hfAnFF'];a219_0x5f41=function(){return _0x44166d;};return a219_0x5f41();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x4ae48b=a220_0x5e8e;(function(_0x31bc58,_0x48377d){const _0x42a6cf=a220_0x5e8e,_0x1a77f2=_0x31bc58();while(!![]){try{const _0x4242e7=parseInt(_0x42a6cf(0xca))/0x1+-parseInt(_0x42a6cf(0xbf))/0x2*(parseInt(_0x42a6cf(0xcc))/0x3)+parseInt(_0x42a6cf(0xd7))/0x4+-parseInt(_0x42a6cf(0xd3))/0x5+parseInt(_0x42a6cf(0xd4))/0x6+parseInt(_0x42a6cf(0xbd))/0x7+parseInt(_0x42a6cf(0xd0))/0x8*(parseInt(_0x42a6cf(0xda))/0x9);if(_0x4242e7===_0x48377d)break;else _0x1a77f2['push'](_0x1a77f2['shift']());}catch(_0xb8b1b1){_0x1a77f2['push'](_0x1a77f2['shift']());}}}(a220_0x45b2,0x79bb9));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a220_0x5e8e(_0x109e38,_0x499303){_0x109e38=_0x109e38-0xbd;const _0x45b2d5=a220_0x45b2();let _0x5e8ec5=_0x45b2d5[_0x109e38];return _0x5e8ec5;}import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a220_0x45b2(){const _0x1e499f=['error','message','16679vynMpQ','logPath','19986zaJNQa','split','end','.log','166864XewwJV','rotate','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','352215xAusws','876024oXdxeC','test','close','320856SZrrBy','Warning:\x20Error\x20writing\x20to\x20','logFileName','45NavUFI','toISOString','init','logDir','2299255HDpfNk','getLogPath','32fAooWa','logBaseName','.gz','write','filter','format','logStream','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','Warning:\x20Failed\x20to\x20compress\x20'];a220_0x45b2=function(){return _0x1e499f;};return a220_0x45b2();}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a220_0x4ae48b(0xcb)];['logDir'];[a220_0x4ae48b(0xd9)];['logBaseName'];[a220_0x4ae48b(0xc5)]=null;[a220_0x4ae48b(0xd1)];constructor(_0x1ee86b={}){const _0x5cc174=a220_0x4ae48b;this['logPath']=_0x1ee86b['filePath']??join(getGlobalCacheDir(),'logs','tdx.log'),this[_0x5cc174(0xdd)]=dirname(this[_0x5cc174(0xcb)]),this[_0x5cc174(0xd9)]=basename(this['logPath']),this[_0x5cc174(0xc0)]=this[_0x5cc174(0xd9)]['replace'](/\.log$/,''),this[_0x5cc174(0xd1)]=_0x1ee86b[_0x5cc174(0xd1)]??!![];}async[a220_0x4ae48b(0xdc)](){const _0x24ab11=a220_0x4ae48b;try{await mkdir(this[_0x24ab11(0xdd)],{'recursive':!![]}),this['rotate']&&await this['rotateOldLogs'](),this[_0x24ab11(0xc5)]=createWriteStream(this['logPath'],{'flags':'a'}),this['logStream']['on']('error',_0x4f0907=>{const _0xb4a4e7=_0x24ab11;console[_0xb4a4e7(0xc8)](_0xb4a4e7(0xd8)+this['logFileName']+':',_0x4f0907[_0xb4a4e7(0xc9)]);});}catch(_0x3ddd2e){console[_0x24ab11(0xc8)](_0x24ab11(0xd2),_0x3ddd2e);}}['handle'](_0x4b5f64){const _0x5ad557=a220_0x4ae48b;if(!this[_0x5ad557(0xc5)])return;const _0x5e98cc=Logger[_0x5ad557(0xc4)](_0x4b5f64);this[_0x5ad557(0xc5)][_0x5ad557(0xc2)](_0x5e98cc+'\x0a');}async[a220_0x4ae48b(0xd6)](){return new Promise(_0x47ec3b=>{const _0x52d5d8=a220_0x5e8e;this[_0x52d5d8(0xc5)]?this[_0x52d5d8(0xc5)][_0x52d5d8(0xce)](()=>{const _0x53e087=_0x52d5d8;this[_0x53e087(0xc5)]=null,_0x47ec3b();}):_0x47ec3b();});}[a220_0x4ae48b(0xbe)](){const _0x318ffa=a220_0x4ae48b;return this[_0x318ffa(0xcb)];}async['rotateOldLogs'](){const _0x2b3357=a220_0x4ae48b;try{const _0x5f459c=await readdir(this['logDir']),_0xbbb87d=new Date()[_0x2b3357(0xdb)]()[_0x2b3357(0xcd)]('T')[0x0];if(_0x5f459c['includes'](this[_0x2b3357(0xd9)])){const _0x2bb36a=join(this['logDir'],this[_0x2b3357(0xd9)]),_0x5c7ae6=await stat(_0x2bb36a),_0x2deb8f=new Date(_0x5c7ae6['mtime'])['toISOString']()[_0x2b3357(0xcd)]('T')[0x0];if(_0x2deb8f<_0xbbb87d){const _0x58a646=join(this['logDir'],this['logBaseName']+'-'+_0x2deb8f+_0x2b3357(0xcf));await rename(_0x2bb36a,_0x58a646);}}const _0x565a20=await readdir(this[_0x2b3357(0xdd)]),_0x4bfdfe=this[_0x2b3357(0xc0)]['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x33ee69=new RegExp('^'+_0x4bfdfe+_0x2b3357(0xc6)),_0x1954bc=_0x565a20[_0x2b3357(0xc3)](_0x58993f=>_0x33ee69[_0x2b3357(0xd5)](_0x58993f));for(const _0xe6daef of _0x1954bc){const _0x1e015b=join(this[_0x2b3357(0xdd)],_0xe6daef),_0x23ab0e=join(this[_0x2b3357(0xdd)],_0xe6daef+_0x2b3357(0xc1));try{await pipeline(createReadStream(_0x1e015b),createGzip(),createWriteStream(_0x23ab0e)),await unlink(_0x1e015b);}catch(_0x230ac2){console['error'](_0x2b3357(0xc7)+_0xe6daef+':',_0x230ac2);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a221_0x287d(){var _0x5522cd=['115NjPDTP','687511pPvprn','36376EvLoPo','32972SdAPVc','1414476aEvMoX','98ROtPTh','2780694RemuRS','506204YjYwzk','1787181mQvpBA'];a221_0x287d=function(){return _0x5522cd;};return a221_0x287d();}function a221_0x5556(_0x44aac8,_0x56adaa){_0x44aac8=_0x44aac8-0x1e6;var _0x287dfe=a221_0x287d();var _0x5556ef=_0x287dfe[_0x44aac8];return _0x5556ef;}(function(_0x44b427,_0x226fd9){var _0xa80774=a221_0x5556,_0x429aa1=_0x44b427();while(!![]){try{var _0x1f6625=-parseInt(_0xa80774(0x1ea))/0x1+parseInt(_0xa80774(0x1e7))/0x2+parseInt(_0xa80774(0x1e8))/0x3+parseInt(_0xa80774(0x1ec))/0x4*(parseInt(_0xa80774(0x1e9))/0x5)+-parseInt(_0xa80774(0x1ed))/0x6+-parseInt(_0xa80774(0x1ee))/0x7*(parseInt(_0xa80774(0x1eb))/0x8)+parseInt(_0xa80774(0x1e6))/0x9;if(_0x1f6625===_0x226fd9)break;else _0x429aa1['push'](_0x429aa1['shift']());}catch(_0x61191e){_0x429aa1['push'](_0x429aa1['shift']());}}}(a221_0x287d,0x58015));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a222_0x6f6f7d=a222_0xcc3a;function a222_0xcc3a(_0x2aad9c,_0x827e3d){_0x2aad9c=_0x2aad9c-0x143;var _0x5d9845=a222_0x5d98();var _0xcc3a4e=_0x5d9845[_0x2aad9c];return _0xcc3a4e;}function a222_0x5d98(){var _0x3be115=['88bSsjFd','4RGZRjG','3188060cdjAwo','7598912PiImPf','8701660lUbzsc','4234432wierMf','27TjCXIN','1133268WJggqU','handle','2497590kRnaVW','636505KKDoYT','28gmgSee'];a222_0x5d98=function(){return _0x3be115;};return a222_0x5d98();}(function(_0x5710aa,_0x86d980){var _0x286a1b=a222_0xcc3a,_0x2bad71=_0x5710aa();while(!![]){try{var _0x58448c=-parseInt(_0x286a1b(0x14a))/0x1+-parseInt(_0x286a1b(0x14d))/0x2*(-parseInt(_0x286a1b(0x147))/0x3)+parseInt(_0x286a1b(0x143))/0x4+-parseInt(_0x286a1b(0x144))/0x5+-parseInt(_0x286a1b(0x149))/0x6*(-parseInt(_0x286a1b(0x14b))/0x7)+parseInt(_0x286a1b(0x145))/0x8*(parseInt(_0x286a1b(0x146))/0x9)+parseInt(_0x286a1b(0x14e))/0xa*(-parseInt(_0x286a1b(0x14c))/0xb);if(_0x58448c===_0x86d980)break;else _0x2bad71['push'](_0x2bad71['shift']());}catch(_0x11380e){_0x2bad71['push'](_0x2bad71['shift']());}}}(a222_0x5d98,0xef7bf));export class NullHandler{[a222_0x6f6f7d(0x148)](_0x5692a5){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1917c3,_0x1ded54){var _0x111855=a223_0x108c,_0x513be5=_0x1917c3();while(!![]){try{var _0x59405c=-parseInt(_0x111855(0xbf))/0x1*(parseInt(_0x111855(0xc4))/0x2)+parseInt(_0x111855(0xc0))/0x3*(parseInt(_0x111855(0xc5))/0x4)+parseInt(_0x111855(0xc1))/0x5*(parseInt(_0x111855(0xc9))/0x6)+parseInt(_0x111855(0xc8))/0x7+-parseInt(_0x111855(0xc2))/0x8*(-parseInt(_0x111855(0xc6))/0x9)+-parseInt(_0x111855(0xc3))/0xa+parseInt(_0x111855(0xc7))/0xb*(parseInt(_0x111855(0xca))/0xc);if(_0x59405c===_0x1ded54)break;else _0x513be5['push'](_0x513be5['shift']());}catch(_0x5b10bd){_0x513be5['push'](_0x513be5['shift']());}}}(a223_0x3a73,0xa034b));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';function a223_0x108c(_0x223b91,_0x4c53a3){_0x223b91=_0x223b91-0xbf;var _0x3a733d=a223_0x3a73();var _0x108cc3=_0x3a733d[_0x223b91];return _0x108cc3;}function a223_0x3a73(){var _0xd7687a=['817KDsoam','3BSnkNo','1980245dcgYoU','8QNDsNk','7266850GXLjbB','2960gKBYrW','49636mrARey','5986242XklZfc','11lwRzPY','332794XwlyPY','12nUGwZc','12898332nOwTQU'];a223_0x3a73=function(){return _0xd7687a;};return a223_0x3a73();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a224_0x167998=a224_0x5a8a;(function(_0x1fef43,_0x45065b){const _0x5c932f=a224_0x5a8a,_0x55f948=_0x1fef43();while(!![]){try{const _0x361551=parseInt(_0x5c932f(0xca))/0x1*(-parseInt(_0x5c932f(0x9e))/0x2)+-parseInt(_0x5c932f(0xb9))/0x3+-parseInt(_0x5c932f(0xa8))/0x4+parseInt(_0x5c932f(0xae))/0x5*(-parseInt(_0x5c932f(0xa0))/0x6)+-parseInt(_0x5c932f(0xb7))/0x7+-parseInt(_0x5c932f(0xab))/0x8+parseInt(_0x5c932f(0xbf))/0x9*(parseInt(_0x5c932f(0xa6))/0xa);if(_0x361551===_0x45065b)break;else _0x55f948['push'](_0x55f948['shift']());}catch(_0x967508){_0x55f948['push'](_0x55f948['shift']());}}}(a224_0x4928,0xd3f9d));import{LogLevel as a224_0x202db2,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a224_0x202db2['INFO'],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a224_0x4928(){const _0xf1a852=['stack','addHandler','INFO','382308svRZoK','log','42hGOKhl','function','info','entries','get','DEBUG','3310kpKzVh','formatter','4082912rrgFeb','dispatch',']\x20[','3492808HvJEmi','reset','TRACE','150835ZrsxHg','map','getEffectiveLevel','message','pendingRecords','string','handle','name','format','277368YFETsM','clearHandlers','4159554nEgrXk','has','split','ERROR','levelOverrides','component','123345ZbeANA','level','handlers','initialized','join','push','WARN','trace','defaultLevel','debug','setDefaultLevel','3PkVJxd','close','loggers','timestamp','error','isInitialized','init','setLogLevel','shouldLog','set','clear','length','cause','getFormatter'];a224_0x4928=function(){return _0xf1a852;};return a224_0x4928();}function a224_0x5a8a(_0x3eb050,_0x3e1c0d){_0x3eb050=_0x3eb050-0x91;const _0x49284a=a224_0x4928();let _0x5a8a3c=_0x49284a[_0x3eb050];return _0x5a8a3c;}function safeStringify(_0x55489d){const _0x2c27f8=a224_0x5a8a;if(typeof _0x55489d==='string')return _0x55489d;if(_0x55489d instanceof Error)return _0x55489d[_0x2c27f8(0x9b)]||_0x55489d['name']+':\x20'+_0x55489d['message'];try{return JSON['stringify'](_0x55489d,(_0x146dd1,_0x33a02d)=>{const _0xc474da=_0x2c27f8;if(_0x33a02d instanceof Error)return{'name':_0x33a02d[_0xc474da(0xb5)],'message':_0x33a02d[_0xc474da(0xb1)],'stack':_0x33a02d[_0xc474da(0x9b)],'cause':_0x33a02d[_0xc474da(0x99)]};return _0x33a02d;});}catch{return String(_0x55489d);}}export class Logger{[a224_0x167998(0xbe)];constructor(_0x3942d8){const _0x3b4482=a224_0x167998;this[_0x3b4482(0xbe)]=_0x3942d8;}static['of'](_0x563430){const _0x510a8d=a224_0x167998,_0x5cf807=typeof _0x563430===_0x510a8d(0xb3)?_0x563430:_0x563430[_0x510a8d(0xb5)];let _0x4f4767=state[_0x510a8d(0xcc)]['get'](_0x5cf807);return!_0x4f4767&&(_0x4f4767=new Logger(_0x5cf807),state[_0x510a8d(0xcc)][_0x510a8d(0x96)](_0x5cf807,_0x4f4767)),_0x4f4767;}static async[a224_0x167998(0x93)](_0x3a4a20={}){const _0x1002f5=a224_0x167998;state[_0x1002f5(0xc7)]=_0x3a4a20[_0x1002f5(0xc7)]??a224_0x202db2[_0x1002f5(0x9d)],state[_0x1002f5(0xc1)]=_0x3a4a20[_0x1002f5(0xc1)]??[],state['formatter']=_0x3a4a20['formatter']??null,state[_0x1002f5(0xbd)]['clear']();if(_0x3a4a20[_0x1002f5(0xbd)])for(const [_0x1d25ba,_0x27e266]of Object[_0x1002f5(0xa3)](_0x3a4a20['levelOverrides'])){state[_0x1002f5(0xbd)][_0x1002f5(0x96)](_0x1d25ba,_0x27e266);}for(const _0x19bbdc of state[_0x1002f5(0xc1)]){_0x19bbdc[_0x1002f5(0x93)]&&await _0x19bbdc[_0x1002f5(0x93)]();}state[_0x1002f5(0xc2)]=!![];for(const _0x1410ba of state[_0x1002f5(0xb2)]){Logger[_0x1002f5(0xa9)](_0x1410ba);}state[_0x1002f5(0xb2)]=[];}static[a224_0x167998(0x94)](_0x5a5677,_0x54fa46){const _0x26d291=a224_0x167998;state[_0x26d291(0xbd)]['set'](_0x5a5677,_0x54fa46);}static[a224_0x167998(0xc9)](_0x31584d){state['defaultLevel']=_0x31584d;}static[a224_0x167998(0x9c)](_0x493cf9){const _0x2ba4bf=a224_0x167998;state[_0x2ba4bf(0xc1)][_0x2ba4bf(0xc4)](_0x493cf9),state['initialized']&&_0x493cf9[_0x2ba4bf(0x93)]&&_0x493cf9[_0x2ba4bf(0x93)]();}static[a224_0x167998(0xb8)](){state['handlers']=[];}static async['shutdown'](){const _0x4c4511=a224_0x167998;for(const _0x2f2dd6 of state[_0x4c4511(0xc1)]){_0x2f2dd6[_0x4c4511(0xcb)]&&await _0x2f2dd6[_0x4c4511(0xcb)]();}state[_0x4c4511(0xc1)]=[],state[_0x4c4511(0xc2)]=![],state[_0x4c4511(0xcc)]['clear'](),state[_0x4c4511(0xb2)]=[];}static[a224_0x167998(0xac)](){const _0x475070=a224_0x167998;state[_0x475070(0xc2)]=![],state[_0x475070(0xc7)]=a224_0x202db2[_0x475070(0x9d)],state[_0x475070(0xbd)][_0x475070(0x97)](),state[_0x475070(0xc1)]=[],state[_0x475070(0xa7)]=null,state[_0x475070(0xcc)][_0x475070(0x97)](),state[_0x475070(0xb2)]=[];}static[a224_0x167998(0x92)](){const _0x445d26=a224_0x167998;return state[_0x445d26(0xc2)];}static['getEffectiveLevel'](_0x38e9b8){const _0x2dcba5=a224_0x167998;if(state[_0x2dcba5(0xbd)][_0x2dcba5(0xba)](_0x38e9b8))return state[_0x2dcba5(0xbd)][_0x2dcba5(0xa4)](_0x38e9b8);const _0x4f8062=_0x38e9b8[_0x2dcba5(0xbb)]('.');for(let _0x1fc882=_0x4f8062[_0x2dcba5(0x98)]-0x1;_0x1fc882>0x0;_0x1fc882--){const _0x385ec0=_0x4f8062['slice'](0x0,_0x1fc882)[_0x2dcba5(0xc3)]('.');if(state[_0x2dcba5(0xbd)][_0x2dcba5(0xba)](_0x385ec0))return state[_0x2dcba5(0xbd)][_0x2dcba5(0xa4)](_0x385ec0);}return state[_0x2dcba5(0xc7)];}['shouldLog'](_0x27e2b4){const _0x21ada7=a224_0x167998,_0x2aa999=Logger[_0x21ada7(0xb0)](this[_0x21ada7(0xbe)]);return _0x27e2b4>=_0x2aa999;}static[a224_0x167998(0xa9)](_0x2740a4){const _0x41ef40=a224_0x167998;for(const _0x457972 of state[_0x41ef40(0xc1)]){_0x457972[_0x41ef40(0xb4)](_0x2740a4);}}[a224_0x167998(0x9f)](_0x4fe3b5,_0x562eb5){const _0x2210f0=a224_0x167998;if(!this[_0x2210f0(0x95)](_0x4fe3b5))return;const _0x1d1c2f=_0x562eb5[_0x2210f0(0xaf)](_0x3bb775=>typeof _0x3bb775===_0x2210f0(0xa1)?_0x3bb775():_0x3bb775),_0x4fe36a=_0x1d1c2f[_0x2210f0(0xaf)](safeStringify)[_0x2210f0(0xc3)]('\x20'),_0x28d6c8={'timestamp':new Date(),'level':_0x4fe3b5,'component':this[_0x2210f0(0xbe)],'message':_0x4fe36a};if(!state[_0x2210f0(0xc2)]){state['pendingRecords']['length']<MAX_PENDING_RECORDS&&state[_0x2210f0(0xb2)][_0x2210f0(0xc4)](_0x28d6c8);return;}Logger[_0x2210f0(0xa9)](_0x28d6c8);}[a224_0x167998(0xc6)](..._0x1a8e62){const _0x4b775b=a224_0x167998;this[_0x4b775b(0x9f)](a224_0x202db2[_0x4b775b(0xad)],_0x1a8e62);}[a224_0x167998(0xc8)](..._0x4e137a){const _0x154ee5=a224_0x167998;this[_0x154ee5(0x9f)](a224_0x202db2[_0x154ee5(0xa5)],_0x4e137a);}[a224_0x167998(0xa2)](..._0x3cac91){const _0x3a90bf=a224_0x167998;this[_0x3a90bf(0x9f)](a224_0x202db2['INFO'],_0x3cac91);}['warn'](..._0x4ce6a9){const _0x153178=a224_0x167998;this[_0x153178(0x9f)](a224_0x202db2[_0x153178(0xc5)],_0x4ce6a9);}[a224_0x167998(0x91)](..._0x368330){const _0x39cd54=a224_0x167998;this[_0x39cd54(0x9f)](a224_0x202db2[_0x39cd54(0xbc)],_0x368330);}static[a224_0x167998(0x9a)](){const _0x56bb8d=a224_0x167998;return state[_0x56bb8d(0xa7)];}static[a224_0x167998(0xb6)](_0x978b8c){const _0x5963f8=a224_0x167998;if(state[_0x5963f8(0xa7)])return state[_0x5963f8(0xa7)][_0x5963f8(0xb6)](_0x978b8c);return _0x978b8c[_0x5963f8(0xcd)]['toISOString']()+'\x20['+logLevelToString(_0x978b8c[_0x5963f8(0xc0)])+_0x5963f8(0xaa)+_0x978b8c[_0x5963f8(0xbe)]+']\x20'+_0x978b8c[_0x5963f8(0xb1)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xcab8e5,_0xe1338f){const _0x4ecd61=a225_0x4887,_0x415536=_0xcab8e5();while(!![]){try{const _0x1eab26=parseInt(_0x4ecd61(0xb9))/0x1+parseInt(_0x4ecd61(0xb7))/0x2*(parseInt(_0x4ecd61(0xb6))/0x3)+parseInt(_0x4ecd61(0xa9))/0x4+parseInt(_0x4ecd61(0xb5))/0x5+-parseInt(_0x4ecd61(0xa6))/0x6*(-parseInt(_0x4ecd61(0xa7))/0x7)+-parseInt(_0x4ecd61(0x9c))/0x8*(-parseInt(_0x4ecd61(0x9f))/0x9)+-parseInt(_0x4ecd61(0xb4))/0xa;if(_0x1eab26===_0xe1338f)break;else _0x415536['push'](_0x415536['shift']());}catch(_0x1bd4ac){_0x415536['push'](_0x415536['shift']());}}}(a225_0x1e96,0x50603));export var LogLevel;function a225_0x1e96(){const _0x540b47=['getDate','getSeconds','getTimezoneOffset','debug','93078zZeDaw','203YRclJF','warn','2500228mLvRys','TRACE','trace','ERROR','getMonth','DEBUG','WARN','padStart','toString','abs','floor','23647210HxDRku','2655940xKoNKn','141JlUbWu','17434nAsKbc','getMilliseconds','251712iIGgPr','info','WARNING','3411256zaDUUS','INFO','getFullYear','9rOxkGI','getMinutes','toUpperCase'];a225_0x1e96=function(){return _0x540b47;};return a225_0x1e96();}(function(_0x4c9b6a){const _0x4c615b=a225_0x4887;_0x4c9b6a[_0x4c9b6a[_0x4c615b(0xaa)]=-0x2]=_0x4c615b(0xaa),_0x4c9b6a[_0x4c9b6a[_0x4c615b(0xae)]=-0x1]=_0x4c615b(0xae),_0x4c9b6a[_0x4c9b6a['INFO']=0x0]=_0x4c615b(0x9d),_0x4c9b6a[_0x4c9b6a[_0x4c615b(0xaf)]=0x1]=_0x4c615b(0xaf),_0x4c9b6a[_0x4c9b6a[_0x4c615b(0xac)]=0x2]=_0x4c615b(0xac);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x1a19a5){const _0x2cd52a=a225_0x4887;switch(_0x1a19a5[_0x2cd52a(0xa1)]()){case _0x2cd52a(0xaa):return LogLevel[_0x2cd52a(0xaa)];case _0x2cd52a(0xae):return LogLevel[_0x2cd52a(0xae)];case'INFO':return LogLevel['INFO'];case'WARN':case _0x2cd52a(0x9b):return LogLevel['WARN'];case'ERROR':return LogLevel['ERROR'];default:return LogLevel[_0x2cd52a(0x9d)];}}function a225_0x4887(_0x1f4c65,_0x46e9d1){_0x1f4c65=_0x1f4c65-0x9b;const _0x1e9637=a225_0x1e96();let _0x488734=_0x1e9637[_0x1f4c65];return _0x488734;}export function logLevelToString(_0x440e86){const _0x3b205e=a225_0x4887;switch(_0x440e86){case LogLevel[_0x3b205e(0xaa)]:return _0x3b205e(0xab);case LogLevel[_0x3b205e(0xae)]:return _0x3b205e(0xa5);case LogLevel[_0x3b205e(0x9d)]:return _0x3b205e(0xba);case LogLevel[_0x3b205e(0xaf)]:return _0x3b205e(0xa8);case LogLevel[_0x3b205e(0xac)]:return'error';default:return _0x3b205e(0xba);}}export function formatTimestamp(_0x4423ef){const _0x1990be=a225_0x4887,_0x54cdd6=_0x4423ef[_0x1990be(0x9e)](),_0x24b271=(_0x4423ef[_0x1990be(0xad)]()+0x1)['toString']()[_0x1990be(0xb0)](0x2,'0'),_0x5bd084=_0x4423ef[_0x1990be(0xa2)]()['toString']()['padStart'](0x2,'0'),_0xea5987=_0x4423ef['getHours']()[_0x1990be(0xb1)]()[_0x1990be(0xb0)](0x2,'0'),_0x25906d=_0x4423ef[_0x1990be(0xa0)]()['toString']()[_0x1990be(0xb0)](0x2,'0'),_0x5835c5=_0x4423ef[_0x1990be(0xa3)]()[_0x1990be(0xb1)]()[_0x1990be(0xb0)](0x2,'0'),_0x2774a0=_0x4423ef[_0x1990be(0xb8)]()[_0x1990be(0xb1)]()[_0x1990be(0xb0)](0x3,'0'),_0x468338=-_0x4423ef[_0x1990be(0xa4)](),_0x3092c6=Math[_0x1990be(0xb3)](Math[_0x1990be(0xb2)](_0x468338)/0x3c),_0x3ebb51=Math[_0x1990be(0xb2)](_0x468338)%0x3c,_0x55dc70=_0x468338>=0x0?'+':'-',_0x323d00=''+_0x55dc70+_0x3092c6[_0x1990be(0xb1)]()[_0x1990be(0xb0)](0x2,'0')+_0x3ebb51[_0x1990be(0xb1)]()[_0x1990be(0xb0)](0x2,'0');return _0x54cdd6+'-'+_0x24b271+'-'+_0x5bd084+'\x20'+_0xea5987+':'+_0x25906d+':'+_0x5835c5+'.'+_0x2774a0+_0x323d00;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3af704,_0x20f5c8){const _0x180200=a226_0x13e9,_0x4b55f2=_0x3af704();while(!![]){try{const _0x56cb79=-parseInt(_0x180200(0x151))/0x1+-parseInt(_0x180200(0x150))/0x2+-parseInt(_0x180200(0x14f))/0x3*(parseInt(_0x180200(0x149))/0x4)+parseInt(_0x180200(0x14e))/0x5+parseInt(_0x180200(0x14b))/0x6*(-parseInt(_0x180200(0x158))/0x7)+parseInt(_0x180200(0x152))/0x8+parseInt(_0x180200(0x14c))/0x9;if(_0x56cb79===_0x20f5c8)break;else _0x4b55f2['push'](_0x4b55f2['shift']());}catch(_0x2344a7){_0x4b55f2['push'](_0x4b55f2['shift']());}}}(a226_0x375e,0x8b3b9));export function validateLimitOption(_0x3decab){const _0x566bfa=a226_0x13e9;if(!Number['isInteger'](_0x3decab))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3decab+_0x566bfa(0x14a)};if(_0x3decab<=0x0)return{'isValid':![],'error':_0x566bfa(0x155)+_0x3decab+_0x566bfa(0x14d)};return{'isValid':!![],'value':_0x3decab};}function a226_0x13e9(_0x5d2761,_0x3184d3){_0x5d2761=_0x5d2761-0x149;const _0x375e4c=a226_0x375e();let _0x13e972=_0x375e4c[_0x5d2761];return _0x13e972;}function a226_0x375e(){const _0x33475d=['502198GXAyDc','6262296VJlkvl','.\x20Must\x20be\x20a\x20number.','number','Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20number.','7059164KrMMAV','836tuOIme','.\x20Must\x20be\x20an\x20integer.','6cPPlFm','17321202UaEDfg','.\x20Must\x20be\x20a\x20positive\x20integer.','2881930DmLpkP','11391HVAGJG','818462HWBWCT'];a226_0x375e=function(){return _0x33475d;};return a226_0x375e();}export function validateTimeoutOption(_0x46e7ce,_0x19da1f=0x1e){const _0xa41a68=a226_0x13e9;if(_0x46e7ce===undefined)return{'isValid':!![],'value':_0x19da1f};const _0x1b9fba=typeof _0x46e7ce===_0xa41a68(0x154)?_0x46e7ce:parseFloat(_0x46e7ce);if(isNaN(_0x1b9fba))return{'isValid':![],'error':_0xa41a68(0x156)+_0x46e7ce+_0xa41a68(0x153)};if(_0x1b9fba<=0x0)return{'isValid':![],'error':_0xa41a68(0x156)+_0x1b9fba+_0xa41a68(0x157)};return{'isValid':!![],'value':_0x1b9fba};}
|