@treasuredata/tdx 2026.3.28 → 2026.3.29
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 a190_0x130d(){const _0xfd8663=['415032oclzlN','push','452uavLnT','10llqDON','slice','6579108rQTFbE','1832678JgDmyo','map','9159asAVhy','length','all','5145899IrTObs','16ArcLQm','1nxMCVG','10PXzZmn','15441384HrwKcI','2081387XiqBdm'];a190_0x130d=function(){return _0xfd8663;};return a190_0x130d();}function a190_0x2528(_0x4febeb,_0x2861e2){_0x4febeb=_0x4febeb-0x14f;const _0x130dcc=a190_0x130d();let _0x2528b1=_0x130dcc[_0x4febeb];return _0x2528b1;}(function(_0x2892cd,_0x46de4e){const _0xf7dc16=a190_0x2528,_0x57b683=_0x2892cd();while(!![]){try{const _0x3dba28=-parseInt(_0xf7dc16(0x14f))/0x1*(parseInt(_0xf7dc16(0x159))/0x2)+parseInt(_0xf7dc16(0x15b))/0x3*(-parseInt(_0xf7dc16(0x155))/0x4)+parseInt(_0xf7dc16(0x156))/0x5*(parseInt(_0xf7dc16(0x153))/0x6)+-parseInt(_0xf7dc16(0x152))/0x7*(-parseInt(_0xf7dc16(0x15f))/0x8)+-parseInt(_0xf7dc16(0x158))/0x9+-parseInt(_0xf7dc16(0x150))/0xa*(-parseInt(_0xf7dc16(0x15e))/0xb)+parseInt(_0xf7dc16(0x151))/0xc;if(_0x3dba28===_0x46de4e)break;else _0x57b683['push'](_0x57b683['shift']());}catch(_0x48c9d3){_0x57b683['push'](_0x57b683['shift']());}}}(a190_0x130d,0x78ead));export async function batchAsync(_0x5c930b,_0x5d83ef,_0x428e4f=0xa){const _0x2c1b64=a190_0x2528,_0x540f21=[];for(let _0x45c776=0x0;_0x45c776<_0x5c930b[_0x2c1b64(0x15c)];_0x45c776+=_0x428e4f){const _0x4d10ff=_0x5c930b[_0x2c1b64(0x157)](_0x45c776,_0x45c776+_0x428e4f),_0x20c3e1=await Promise[_0x2c1b64(0x15d)](_0x4d10ff[_0x2c1b64(0x15a)](_0x5d83ef));_0x540f21[_0x2c1b64(0x154)](..._0x20c3e1);}return _0x540f21;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a191_0x42b677=a191_0xce9a;(function(_0x4b3720,_0x1b8790){const _0x4e42be=a191_0xce9a,_0x95f68a=_0x4b3720();while(!![]){try{const _0x245c66=parseInt(_0x4e42be(0x6d))/0x1+-parseInt(_0x4e42be(0x67))/0x2+-parseInt(_0x4e42be(0x6f))/0x3+parseInt(_0x4e42be(0x7f))/0x4+parseInt(_0x4e42be(0x71))/0x5*(parseInt(_0x4e42be(0x7d))/0x6)+parseInt(_0x4e42be(0x7a))/0x7*(-parseInt(_0x4e42be(0x6b))/0x8)+-parseInt(_0x4e42be(0x81))/0x9;if(_0x245c66===_0x1b8790)break;else _0x95f68a['push'](_0x95f68a['shift']());}catch(_0x42e726){_0x95f68a['push'](_0x95f68a['shift']());}}}(a191_0xb558,0x498f1));import*as a191_0x5e4b9e from'chalk';const Chalk=a191_0x5e4b9e[a191_0x42b677(0x75)];export function shouldUseColor(_0x463e71={}){const _0x2bb557=a191_0x42b677;if(_0x463e71[_0x2bb557(0x83)]===!![])return![];if(_0x463e71[_0x2bb557(0x70)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2bb557(0x78)]['isTTY']??![];}function a191_0xb558(){const _0x1faaaf=['length','4018tnsvxA','string','join','3126ZZNbMW','stringify','736756HcGRdK','isArray','620235RIINMh','number','noColor','262716eBfIQz','repeat','map','cyan','5024WJlWrb','blue','547313eETICt','entries','191379AzIpVA','color','1865LQVnpp','green','null','dim','Chalk','boolean','object','stdout'];a191_0xb558=function(){return _0x1faaaf;};return a191_0xb558();}export function getChalk(_0x50f15d={}){if(shouldUseColor(_0x50f15d))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4312d0,_0x424eab={}){const _0x3176e0=a191_0x42b677;return getChalk(_0x424eab)[_0x3176e0(0x74)](_0x4312d0);}export function colorHeader(_0x1db542,_0x32885b={}){const _0x186bd0=a191_0x42b677;return getChalk(_0x32885b)[_0x186bd0(0x6a)](_0x1db542);}export function colorType(_0x2bd244,_0xca7a33={}){const _0x2b3b1f=a191_0x42b677;return getChalk(_0xca7a33)[_0x2b3b1f(0x74)](_0x2bd244);}export function colorJSONKey(_0x57dd40,_0x1355f1={}){const _0x17b870=a191_0x42b677;return getChalk(_0x1355f1)[_0x17b870(0x6c)](_0x57dd40);}export function colorJSONString(_0x413f6b,_0x4ba35b={}){const _0x152641=a191_0x42b677;return getChalk(_0x4ba35b)[_0x152641(0x72)](_0x413f6b);}export function colorJSONNumber(_0x4ba93c,_0x411d15={}){const _0x31ed6d=a191_0x42b677;return getChalk(_0x411d15)[_0x31ed6d(0x6a)](_0x4ba93c);}function a191_0xce9a(_0x46927b,_0x444946){_0x46927b=_0x46927b-0x67;const _0xb55823=a191_0xb558();let _0xce9a3a=_0xb55823[_0x46927b];return _0xce9a3a;}export function colorJSONBoolean(_0x152a6f,_0x1f04e9={}){return getChalk(_0x1f04e9)['yellow'](_0x152a6f);}export function colorJSONNull(_0x269c2f,_0x647bfc={}){const _0x49da89=a191_0x42b677;return getChalk(_0x647bfc)[_0x49da89(0x74)](_0x269c2f);}export function colorizeJSONCompact(_0x14fc69,_0xa0c334={}){const _0x25ac83=a191_0x42b677;if(!shouldUseColor(_0xa0c334))return JSON['stringify'](_0x14fc69);if(_0x14fc69===null)return colorJSONNull(_0x25ac83(0x73),_0xa0c334);if(typeof _0x14fc69===_0x25ac83(0x76))return colorJSONBoolean(String(_0x14fc69),_0xa0c334);if(typeof _0x14fc69===_0x25ac83(0x82))return colorJSONNumber(String(_0x14fc69),_0xa0c334);if(typeof _0x14fc69==='string')return colorJSONString(JSON[_0x25ac83(0x7e)](_0x14fc69),_0xa0c334);if(Array['isArray'](_0x14fc69)){if(_0x14fc69[_0x25ac83(0x79)]===0x0)return'[]';const _0x81c58b=_0x14fc69[_0x25ac83(0x69)](_0x51f0e7=>colorizeJSONCompact(_0x51f0e7,_0xa0c334));return'['+_0x81c58b[_0x25ac83(0x7c)](',')+']';}if(typeof _0x14fc69===_0x25ac83(0x77)){const _0x59347f=Object[_0x25ac83(0x6e)](_0x14fc69);if(_0x59347f[_0x25ac83(0x79)]===0x0)return'{}';const _0x25512c=_0x59347f[_0x25ac83(0x69)](([_0xd13922,_0x4db74b])=>{const _0x497435=_0x25ac83,_0x24a977=colorJSONKey(JSON[_0x497435(0x7e)](_0xd13922),_0xa0c334),_0x1e5815=colorizeJSONCompact(_0x4db74b,_0xa0c334);return _0x24a977+':'+_0x1e5815;});return'{'+_0x25512c[_0x25ac83(0x7c)](',')+'}';}return String(_0x14fc69);}export function colorizeJSON(_0x141806,_0x49d191={},_0x117d9f=0x0){const _0x402ee8=a191_0x42b677;if(!shouldUseColor(_0x49d191))return JSON[_0x402ee8(0x7e)](_0x141806,null,0x2);const _0x55192e='\x20'[_0x402ee8(0x68)](_0x117d9f),_0x301db2=_0x117d9f+0x2;if(_0x141806===null)return colorJSONNull(_0x402ee8(0x73),_0x49d191);if(typeof _0x141806===_0x402ee8(0x76))return colorJSONBoolean(String(_0x141806),_0x49d191);if(typeof _0x141806==='number')return colorJSONNumber(String(_0x141806),_0x49d191);if(typeof _0x141806===_0x402ee8(0x7b))return colorJSONString(JSON[_0x402ee8(0x7e)](_0x141806),_0x49d191);if(Array[_0x402ee8(0x80)](_0x141806)){if(_0x141806[_0x402ee8(0x79)]===0x0)return'[]';const _0x491002=_0x141806['map'](_0x319381=>{const _0x53f198=_0x402ee8,_0x5b8559=colorizeJSON(_0x319381,_0x49d191,_0x301db2);return''+'\x20'[_0x53f198(0x68)](_0x301db2)+_0x5b8559;});return'[\x0a'+_0x491002[_0x402ee8(0x7c)](',\x0a')+('\x0a'+_0x55192e+']');}if(typeof _0x141806===_0x402ee8(0x77)){const _0x36ef06=Object[_0x402ee8(0x6e)](_0x141806);if(_0x36ef06[_0x402ee8(0x79)]===0x0)return'{}';const _0x1be840=_0x36ef06[_0x402ee8(0x69)](([_0x1b0f12,_0x53f864])=>{const _0x564976=_0x402ee8,_0x429ba1=colorJSONKey(JSON[_0x564976(0x7e)](_0x1b0f12),_0x49d191),_0x25adb7=colorizeJSON(_0x53f864,_0x49d191,_0x301db2);return''+'\x20'[_0x564976(0x68)](_0x301db2)+_0x429ba1+':\x20'+_0x25adb7;});return'{\x0a'+_0x1be840[_0x402ee8(0x7c)](',\x0a')+('\x0a'+_0x55192e+'}');}return String(_0x141806);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a192_0x5184(){const _0x3faa38=['old','\x20\x20...','red','removed','12vOypcf','fill','min','forEach','808192kgCeoC','added','split','dim','has','unchanged','max','new','push','repeat','2560635RDuyfT','content','unshift','type','1555230TIYjeb','\x20\x20\x20','3380090DKJDzr','size','153500hAjydH','6PenSij','1248178WIZusB','add','length','join','\x20+\x20','16vBebyD','3487527oNZxpV','padStart'];a192_0x5184=function(){return _0x3faa38;};return a192_0x5184();}(function(_0x19844f,_0x5d9bc1){const _0x3e17b7=a192_0x44a7,_0x51094c=_0x19844f();while(!![]){try{const _0x589419=-parseInt(_0x3e17b7(0x142))/0x1+-parseInt(_0x3e17b7(0x132))/0x2+-parseInt(_0x3e17b7(0x131))/0x3*(parseInt(_0x3e17b7(0x130))/0x4)+parseInt(_0x3e17b7(0x12e))/0x5+-parseInt(_0x3e17b7(0x13e))/0x6*(-parseInt(_0x3e17b7(0x14c))/0x7)+-parseInt(_0x3e17b7(0x137))/0x8*(-parseInt(_0x3e17b7(0x138))/0x9)+-parseInt(_0x3e17b7(0x12c))/0xa;if(_0x589419===_0x5d9bc1)break;else _0x51094c['push'](_0x51094c['shift']());}catch(_0xa1f913){_0x51094c['push'](_0x51094c['shift']());}}}(a192_0x5184,0x7e7c0));import a192_0x57ba9d from'chalk';export function generateDiff(_0x39b1dc,_0x7ee587){const _0x24bbbc=a192_0x44a7,_0x519e07=_0x39b1dc[_0x24bbbc(0x144)]('\x0a'),_0x4f4621=_0x7ee587[_0x24bbbc(0x144)]('\x0a'),_0x188b39=[],_0x30025e=computeLCS(_0x519e07,_0x4f4621);let _0x3f8ab4=0x0,_0x53065b=0x0,_0x366e12=0x0;while(_0x3f8ab4<_0x519e07['length']||_0x53065b<_0x4f4621[_0x24bbbc(0x134)]){if(_0x366e12<_0x30025e[_0x24bbbc(0x134)]&&_0x3f8ab4<_0x519e07[_0x24bbbc(0x134)]&&_0x519e07[_0x3f8ab4]===_0x30025e[_0x366e12])_0x53065b<_0x4f4621[_0x24bbbc(0x134)]&&_0x4f4621[_0x53065b]===_0x30025e[_0x366e12]?(_0x188b39[_0x24bbbc(0x14a)]({'type':_0x24bbbc(0x147),'content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++,_0x53065b++,_0x366e12++):(_0x188b39[_0x24bbbc(0x14a)]({'type':'added','content':_0x4f4621[_0x53065b]}),_0x53065b++);else{if(_0x366e12<_0x30025e[_0x24bbbc(0x134)]&&_0x53065b<_0x4f4621[_0x24bbbc(0x134)]&&_0x4f4621[_0x53065b]===_0x30025e[_0x366e12])_0x188b39[_0x24bbbc(0x14a)]({'type':_0x24bbbc(0x13d),'content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++;else{if(_0x3f8ab4<_0x519e07['length']&&(_0x366e12>=_0x30025e[_0x24bbbc(0x134)]||_0x519e07[_0x3f8ab4]!==_0x30025e[_0x366e12]))_0x188b39[_0x24bbbc(0x14a)]({'type':'removed','content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++;else _0x53065b<_0x4f4621['length']&&(_0x188b39[_0x24bbbc(0x14a)]({'type':'added','content':_0x4f4621[_0x53065b]}),_0x53065b++);}}}return _0x188b39;}function computeLCS(_0x1b84ea,_0x5726eb){const _0x5a0029=a192_0x44a7,_0x208e33=_0x1b84ea['length'],_0x373ff1=_0x5726eb[_0x5a0029(0x134)],_0x12864f=Array(_0x208e33+0x1)['fill'](null)['map'](()=>Array(_0x373ff1+0x1)[_0x5a0029(0x13f)](0x0));for(let _0xfb53d=0x1;_0xfb53d<=_0x208e33;_0xfb53d++){for(let _0x10c4ba=0x1;_0x10c4ba<=_0x373ff1;_0x10c4ba++){_0x1b84ea[_0xfb53d-0x1]===_0x5726eb[_0x10c4ba-0x1]?_0x12864f[_0xfb53d][_0x10c4ba]=_0x12864f[_0xfb53d-0x1][_0x10c4ba-0x1]+0x1:_0x12864f[_0xfb53d][_0x10c4ba]=Math[_0x5a0029(0x148)](_0x12864f[_0xfb53d-0x1][_0x10c4ba],_0x12864f[_0xfb53d][_0x10c4ba-0x1]);}}const _0x170a82=[];let _0x3686a6=_0x208e33,_0x238414=_0x373ff1;while(_0x3686a6>0x0&&_0x238414>0x0){if(_0x1b84ea[_0x3686a6-0x1]===_0x5726eb[_0x238414-0x1])_0x170a82[_0x5a0029(0x12a)](_0x1b84ea[_0x3686a6-0x1]),_0x3686a6--,_0x238414--;else _0x12864f[_0x3686a6-0x1][_0x238414]>_0x12864f[_0x3686a6][_0x238414-0x1]?_0x3686a6--:_0x238414--;}return _0x170a82;}function a192_0x44a7(_0x9b778b,_0x2abe2c){_0x9b778b=_0x9b778b-0x12a;const _0x518463=a192_0x5184();let _0x44a78b=_0x518463[_0x9b778b];return _0x44a78b;}export function formatDiffWithColors(_0xd6fda0,_0x27ff21=0x3){const _0x235f80=a192_0x44a7,_0x3ec8a8=new Set();_0xd6fda0[_0x235f80(0x141)]((_0x1233b4,_0x4f9848)=>{const _0x58255b=_0x235f80;_0x1233b4[_0x58255b(0x12b)]!==_0x58255b(0x147)&&_0x3ec8a8[_0x58255b(0x133)](_0x4f9848);});if(_0x3ec8a8[_0x235f80(0x12f)]===0x0)return'';const _0x1f2d12=new Set();for(const _0x601874 of _0x3ec8a8){for(let _0xc1aa2=Math[_0x235f80(0x148)](0x0,_0x601874-_0x27ff21);_0xc1aa2<=Math[_0x235f80(0x140)](_0xd6fda0[_0x235f80(0x134)]-0x1,_0x601874+_0x27ff21);_0xc1aa2++){_0x1f2d12[_0x235f80(0x133)](_0xc1aa2);}}const _0x5cb6ec=[];let _0x2baa0d=-0x1;const _0x1f6898=_0xd6fda0['length'],_0x45ccff=Math['max'](0x3,String(_0x1f6898)['length']),_0x25aa71=[];let _0x2056fd=0x0,_0x406a69=0x0;for(const _0x54bc3b of _0xd6fda0){if(_0x54bc3b[_0x235f80(0x12b)]===_0x235f80(0x13d))_0x2056fd++,_0x25aa71[_0x235f80(0x14a)]({'old':_0x2056fd,'new':0x0});else _0x54bc3b[_0x235f80(0x12b)]===_0x235f80(0x143)?(_0x406a69++,_0x25aa71['push']({'old':0x0,'new':_0x406a69})):(_0x2056fd++,_0x406a69++,_0x25aa71[_0x235f80(0x14a)]({'old':_0x2056fd,'new':_0x406a69}));}for(let _0x5eda7b=0x0;_0x5eda7b<_0xd6fda0['length'];_0x5eda7b++){if(!_0x1f2d12[_0x235f80(0x146)](_0x5eda7b))continue;_0x2baa0d!==-0x1&&_0x5eda7b>_0x2baa0d+0x1&&_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d['cyan'](_0x235f80(0x13b)));_0x2baa0d=_0x5eda7b;const _0x50b757=_0xd6fda0[_0x5eda7b],_0x1ef1eb=_0x25aa71[_0x5eda7b],_0x1a742e=_0x1ef1eb['old']>0x0?String(_0x1ef1eb[_0x235f80(0x13a)])[_0x235f80(0x139)](_0x45ccff):'\x20'[_0x235f80(0x14b)](_0x45ccff),_0x171f7d=_0x1ef1eb[_0x235f80(0x149)]>0x0?String(_0x1ef1eb['new'])[_0x235f80(0x139)](_0x45ccff):'\x20'['repeat'](_0x45ccff);switch(_0x50b757['type']){case _0x235f80(0x13d):_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d[_0x235f80(0x13c)](_0x1a742e+'\x20'+_0x171f7d+'\x20-\x20'+_0x50b757[_0x235f80(0x14d)]));break;case _0x235f80(0x143):_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d['green'](_0x1a742e+'\x20'+_0x171f7d+_0x235f80(0x136)+_0x50b757[_0x235f80(0x14d)]));break;default:_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d[_0x235f80(0x145)](_0x1a742e+'\x20'+_0x171f7d+_0x235f80(0x12d)+_0x50b757[_0x235f80(0x14d)]));break;}}return _0x5cb6ec[_0x235f80(0x135)]('\x0a');}export function hasChanges(_0x298401){const _0x4c306d=a192_0x44a7;return _0x298401['some'](_0x48be5f=>_0x48be5f[_0x4c306d(0x12b)]!==_0x4c306d(0x147));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x235abb,_0x38c1e2){const _0x26ff20=a193_0xacba,_0x26db4f=_0x235abb();while(!![]){try{const _0x2c1f03=-parseInt(_0x26ff20(0xb3))/0x1*(parseInt(_0x26ff20(0xbd))/0x2)+-parseInt(_0x26ff20(0xc0))/0x3+-parseInt(_0x26ff20(0xc3))/0x4+parseInt(_0x26ff20(0xb8))/0x5*(-parseInt(_0x26ff20(0xb5))/0x6)+-parseInt(_0x26ff20(0xc2))/0x7*(-parseInt(_0x26ff20(0xbe))/0x8)+parseInt(_0x26ff20(0xbb))/0x9+parseInt(_0x26ff20(0xb2))/0xa*(parseInt(_0x26ff20(0xc4))/0xb);if(_0x2c1f03===_0x38c1e2)break;else _0x26db4f['push'](_0x26db4f['shift']());}catch(_0x47b8d5){_0x26db4f['push'](_0x26db4f['shift']());}}}(a193_0xc08a,0x655a6));import*as a193_0x49de12 from'node:fs';import*as a193_0x4f68f0 from'node:path';export function setSecureFilePermissions(_0xf46df6){const _0x4d3920=a193_0xacba;try{a193_0x49de12[_0x4d3920(0xb4)](_0xf46df6,0x180);}catch{console[_0x4d3920(0xbf)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xf46df6);}}export function setSecureDirectoryPermissions(_0x4be1e3){const _0x4f4c74=a193_0xacba;try{a193_0x49de12[_0x4f4c74(0xb4)](_0x4be1e3,0x1c0);}catch{console[_0x4f4c74(0xbf)](_0x4f4c74(0xba)+_0x4be1e3);}}export function createSecureDirectory(_0x1b3d35){const _0x1f6aef=a193_0xacba;!a193_0x49de12[_0x1f6aef(0xb1)](_0x1b3d35)&&(a193_0x49de12['mkdirSync'](_0x1b3d35,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1b3d35));}export function validateSecureFilePermissions(_0x50e538){const _0x5e8ac5=a193_0xacba;try{const _0x1da699=a193_0x49de12[_0x5e8ac5(0xb7)](_0x50e538),_0x3decf4=_0x1da699[_0x5e8ac5(0xaf)]&0x1ff,_0x3a0e25=(_0x3decf4&0x3f)!==0x0;if(_0x3a0e25)return console[_0x5e8ac5(0xbf)](_0x5e8ac5(0xc1)+_0x50e538+_0x5e8ac5(0xbc)+_0x3decf4[_0x5e8ac5(0xb9)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}function a193_0xacba(_0xd2bd2f,_0x456480){_0xd2bd2f=_0xd2bd2f-0xaf;const _0xc08ab4=a193_0xc08a();let _0xacbab5=_0xc08ab4[_0xd2bd2f];return _0xacbab5;}export function writeSecureFile(_0x355053,_0x3dd0e7){const _0x259b3b=a193_0xacba,_0x2d35e5=a193_0x4f68f0[_0x259b3b(0xb0)](_0x355053);createSecureDirectory(_0x2d35e5),a193_0x49de12[_0x259b3b(0xb6)](_0x355053,_0x3dd0e7,{'mode':0x180}),setSecureFilePermissions(_0x355053);}function a193_0xc08a(){const _0x485133=['Warning:\x20','52437TMJMUK','3108540oaHNpD','33sfQaxB','mode','dirname','existsSync','6968050dFuKga','777581bCIoQC','chmodSync','6zalJDC','writeFileSync','statSync','961355jMkPBt','toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','788922rpZdOs','\x20has\x20insecure\x20permissions\x20(','2ILQnaR','616pEtkIY','warn','1778253UgbRtE'];a193_0xc08a=function(){return _0x485133;};return a193_0xc08a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1dd4cc,_0x21c6cb){const _0x411131=a194_0x5472,_0x39ecf9=_0x1dd4cc();while(!![]){try{const _0x4c4878=-parseInt(_0x411131(0x1f5))/0x1+-parseInt(_0x411131(0x1fd))/0x2+-parseInt(_0x411131(0x1f7))/0x3*(parseInt(_0x411131(0x1ff))/0x4)+-parseInt(_0x411131(0x1f4))/0x5+-parseInt(_0x411131(0x1f9))/0x6+-parseInt(_0x411131(0x202))/0x7+parseInt(_0x411131(0x201))/0x8;if(_0x4c4878===_0x21c6cb)break;else _0x39ecf9['push'](_0x39ecf9['shift']());}catch(_0x5f1d10){_0x39ecf9['push'](_0x39ecf9['shift']());}}}(a194_0x3092,0x557a4));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x5472(_0x5e09d5,_0x19e92b){_0x5e09d5=_0x5e09d5-0x1f4;const _0x3092fe=a194_0x3092();let _0x5472e6=_0x3092fe[_0x5e09d5];return _0x5472e6;}function a194_0x3092(){const _0x26fa89=['32168LisXgs','ENOENT','12942736dhUwkg','427609oWjzcx','utf-8','NOT_FOUND','File\x20\x27','504025WztNEV','643776DAPHpO','EACCES','99BBvcOe','PERMISSION_DENIED','943842iTLtRS','\x27\x20not\x20found','Permission\x20denied\x20reading\x20file\x20\x27','INTERNAL','78730sufRCE','Error\x20reading\x20file\x20\x27'];a194_0x3092=function(){return _0x26fa89;};return a194_0x3092();}export function readFileContent(_0x39f55a){const _0x1bb939=a194_0x5472;try{return readFileSync(_0x39f55a,_0x1bb939(0x203));}catch(_0x519159){const _0x56b3f2=_0x519159['code'];if(_0x56b3f2===_0x1bb939(0x200))throw new SDKError(ErrorCode[_0x1bb939(0x204)],_0x1bb939(0x205)+_0x39f55a+_0x1bb939(0x1fa),_0x519159);else{if(_0x56b3f2===_0x1bb939(0x1f6))throw new SDKError(ErrorCode[_0x1bb939(0x1f8)],_0x1bb939(0x1fb)+_0x39f55a+'\x27',_0x519159);else throw new SDKError(ErrorCode[_0x1bb939(0x1fc)],_0x1bb939(0x1fe)+_0x39f55a+'\x27:\x20'+_0x519159['message'],_0x519159);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cc2d0,_0x226760){const _0x3b191f=a195_0x3804,_0x71f15d=_0x5cc2d0();while(!![]){try{const _0x90ab4b=parseInt(_0x3b191f(0x1d3))/0x1+parseInt(_0x3b191f(0x1d7))/0x2+-parseInt(_0x3b191f(0x1c9))/0x3+-parseInt(_0x3b191f(0x1e0))/0x4+-parseInt(_0x3b191f(0x1d9))/0x5*(-parseInt(_0x3b191f(0x1c5))/0x6)+parseInt(_0x3b191f(0x1d1))/0x7*(-parseInt(_0x3b191f(0x1df))/0x8)+parseInt(_0x3b191f(0x1db))/0x9;if(_0x90ab4b===_0x226760)break;else _0x71f15d['push'](_0x71f15d['shift']());}catch(_0x3ff118){_0x71f15d['push'](_0x71f15d['shift']());}}}(a195_0x2780,0x47b5e));import*as a195_0x479f5b from'node:https';function a195_0x3804(_0x542406,_0x4024da){_0x542406=_0x542406-0x1c5;const _0x2780f8=a195_0x2780();let _0x38040f=_0x2780f8[_0x542406];return _0x38040f;}function a195_0x2780(){const _0x5e5bd4=['releases','1160415UEyqhg','timeout','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','set','prerelease','find','toString','GitHub\x20API\x20returned\x20','7gxPuoF','api.github.com','127435rsypIr','statusCode','error','end','900410kJyBOt','now','2344015qWpruj','data','3900402cYVkAC','length','next','tag_name','2694232BLUrLt','1850044CbLfgY','fetchedAt','6cDOPmF','resolve','slice'];a195_0x2780=function(){return _0x5e5bd4;};return a195_0x2780();}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x3c66a0,_0x384515,_0x794077){const _0x3a6e7d=a195_0x3804,_0xd207bd=_0x3c66a0+'/'+_0x384515,_0x3b3e07=cache['get'](_0xd207bd);if(_0x3b3e07&&Date[_0x3a6e7d(0x1d8)]()-_0x3b3e07[_0x3a6e7d(0x1e1)]<CACHE_TTL_MS)return Promise[_0x3a6e7d(0x1c6)](_0x3b3e07[_0x3a6e7d(0x1c8)]);return new Promise((_0x5afb01,_0x47df09)=>{const _0x40f420=_0x3a6e7d,_0x2f677b={'hostname':_0x40f420(0x1d2),'path':'/repos/'+_0x3c66a0+'/'+_0x384515+'/releases?per_page=20','headers':{'User-Agent':_0x794077,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x3c0819=a195_0x479f5b['get'](_0x2f677b,_0x23aeee=>{const _0x5bce4f=_0x40f420;let _0x58bb26='';_0x23aeee['on'](_0x5bce4f(0x1da),_0x9b8387=>{const _0x4e52ca=_0x5bce4f;_0x58bb26+=_0x9b8387[_0x4e52ca(0x1cf)]();}),_0x23aeee['on'](_0x5bce4f(0x1d6),()=>{const _0x45557c=_0x5bce4f;if(_0x23aeee['statusCode']!==0xc8){_0x47df09(new Error(_0x45557c(0x1d0)+_0x23aeee[_0x45557c(0x1d4)]+':\x20'+_0x58bb26[_0x45557c(0x1c7)](0x0,0xc8)));return;}try{const _0x3569ff=JSON['parse'](_0x58bb26);cache[_0x45557c(0x1cc)](_0xd207bd,{'releases':_0x3569ff,'fetchedAt':Date[_0x45557c(0x1d8)]()}),_0x5afb01(_0x3569ff);}catch(_0xd3508f){_0x47df09(_0xd3508f);}});});_0x3c0819['on'](_0x40f420(0x1ca),()=>{const _0x6f4db8=_0x40f420;_0x3c0819['destroy'](),_0x47df09(new Error(_0x6f4db8(0x1cb)+REQUEST_TIMEOUT_MS+'ms'));}),_0x3c0819['on'](_0x40f420(0x1d5),_0x47df09);});}export async function resolveReleaseTag(_0x523bca,_0x3be073,_0x3c5ae9,_0x401038){const _0x5a7881=a195_0x3804,_0xd925a8=await fetchGitHubReleases(_0x3be073,_0x3c5ae9,_0x401038);if(_0xd925a8[_0x5a7881(0x1dc)]===0x0)return null;if(_0x523bca===_0x5a7881(0x1dd))return _0xd925a8[0x0]['tag_name'];const _0x2f3ba1=_0xd925a8[_0x5a7881(0x1ce)](_0xa21c9=>!_0xa21c9[_0x5a7881(0x1cd)]);return _0x2f3ba1?_0x2f3ba1[_0x5a7881(0x1de)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5161a5,_0x1ac207){const _0x1f5010=a196_0x3df8,_0x59e71b=_0x5161a5();while(!![]){try{const _0x3be785=-parseInt(_0x1f5010(0x117))/0x1*(-parseInt(_0x1f5010(0x10b))/0x2)+parseInt(_0x1f5010(0x106))/0x3+-parseInt(_0x1f5010(0x116))/0x4*(-parseInt(_0x1f5010(0x112))/0x5)+parseInt(_0x1f5010(0x103))/0x6*(parseInt(_0x1f5010(0x114))/0x7)+-parseInt(_0x1f5010(0x113))/0x8*(parseInt(_0x1f5010(0x10c))/0x9)+-parseInt(_0x1f5010(0x10e))/0xa*(-parseInt(_0x1f5010(0x111))/0xb)+-parseInt(_0x1f5010(0x102))/0xc;if(_0x3be785===_0x1ac207)break;else _0x59e71b['push'](_0x59e71b['shift']());}catch(_0x1a4d36){_0x59e71b['push'](_0x59e71b['shift']());}}}(a196_0x2b2d,0x41872));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x9cfe85=a196_0x3df8;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x9cfe85(0x104));}const registry=new Map();export function registerGlobalCacheKey(_0x27140e,_0x3cb25e){const _0x306634=a196_0x3df8,_0x163962=registry[_0x306634(0x108)](_0x27140e);if(_0x163962&&_0x163962!==_0x3cb25e)throw new Error(_0x306634(0x118)+_0x27140e+_0x306634(0x10d)+_0x163962+_0x306634(0x115)+_0x3cb25e+'\x22');registry[_0x306634(0x107)](_0x27140e,_0x3cb25e);}export function getGlobalCachePath(_0x15a5a0){return join(getGlobalCacheDir(),_0x15a5a0);}function a196_0x2b2d(){const _0x140b18=['\x22\x20already\x20registered\x20by\x20\x22','850YeUOsH','default','parse','4708AWnXPe','10JYtikr','1240mFmdIU','883442vZUziK','\x22,\x20cannot\x20register\x20for\x20\x22','1548odBiOm','5APvjJl','Global\x20cache\x20key\x20\x22','594936WbRFCv','12sZMgwL','tdx','replace','91992XVtcgi','set','get','stringify','utf-8','5734LaePKB','963IuhYEh'];a196_0x2b2d=function(){return _0x140b18;};return a196_0x2b2d();}function ensureGlobalCacheDir(){const _0x4d69ef=getGlobalCacheDir();!existsSync(_0x4d69ef)&&mkdirSync(_0x4d69ef,{'recursive':!![]});}function readCacheJson(_0x17d198){const _0x5c6f53=a196_0x3df8,_0xff69bb=getGlobalCachePath(_0x17d198);if(!existsSync(_0xff69bb))return undefined;try{const _0x4a660a=readFileSync(_0xff69bb,_0x5c6f53(0x10a));return JSON[_0x5c6f53(0x110)](_0x4a660a);}catch{return undefined;}}function a196_0x3df8(_0x370ca7,_0x29d340){_0x370ca7=_0x370ca7-0x102;const _0x2b2d14=a196_0x2b2d();let _0x3df858=_0x2b2d14[_0x370ca7];return _0x3df858;}function writeCacheJson(_0x28d1b0,_0x9f1169){const _0x5ba153=a196_0x3df8;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x28d1b0),JSON[_0x5ba153(0x109)](_0x9f1169,null,0x2),'utf-8');}function readCacheText(_0x4c3682){const _0x4799bc=getGlobalCachePath(_0x4c3682);if(!existsSync(_0x4799bc))return undefined;try{return readFileSync(_0x4799bc,'utf-8');}catch{return undefined;}}function writeCacheText(_0xb0a634,_0x533db9){const _0x128725=a196_0x3df8;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xb0a634),_0x533db9,_0x128725(0x10a));}function clearCache(_0x3205d2){const _0x2d6f54=getGlobalCachePath(_0x3205d2);if(existsSync(_0x2d6f54))try{unlinkSync(_0x2d6f54);}catch{}}function cacheExists(_0x532691){return existsSync(getGlobalCachePath(_0x532691));}export function createGlobalCache(_0x280410,_0x478c7b){return registerGlobalCacheKey(_0x280410,_0x478c7b),{'read':()=>readCacheJson(_0x280410),'write':_0x361a8d=>writeCacheJson(_0x280410,_0x361a8d),'clear':()=>clearCache(_0x280410),'exists':()=>cacheExists(_0x280410),'path':()=>getGlobalCachePath(_0x280410)};}export function createGlobalTextCache(_0x478a37,_0x1f3f8d){return registerGlobalCacheKey(_0x478a37,_0x1f3f8d),{'read':()=>readCacheText(_0x478a37)?.['trim']()||undefined,'write':_0x16ebfa=>writeCacheText(_0x478a37,_0x16ebfa),'clear':()=>clearCache(_0x478a37),'exists':()=>cacheExists(_0x478a37),'path':()=>getGlobalCachePath(_0x478a37)};}export function createProfileCache(_0x24e370,_0x431f6d){const _0x35e611=_0x41ec99=>{const _0x50ee86=a196_0x3df8,_0x6286d2=_0x41ec99||_0x50ee86(0x10f);return _0x24e370[_0x50ee86(0x105)]('{profile}',_0x6286d2);};return{'read':_0x28a6fe=>{const _0x5f2158=_0x35e611(_0x28a6fe);return registerGlobalCacheKey(_0x5f2158,_0x431f6d),readCacheJson(_0x5f2158);},'write':(_0x17bdf1,_0x36ad40)=>{const _0x30ce60=_0x35e611(_0x17bdf1);registerGlobalCacheKey(_0x30ce60,_0x431f6d),writeCacheJson(_0x30ce60,_0x36ad40);},'clear':_0x250ea6=>{const _0x550636=_0x35e611(_0x250ea6);clearCache(_0x550636);},'exists':_0x37e7d4=>{const _0x1c663f=_0x35e611(_0x37e7d4);return cacheExists(_0x1c663f);},'path':_0x1c9902=>{const _0xbcf41c=_0x35e611(_0x1c9902);return getGlobalCachePath(_0xbcf41c);}};}export function createOptionalProfileCache(_0xa50d79,_0x2fde5e,_0x2dbc44={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2dbc44,_0x1535fb=_0x336958=>{return _0x336958?''+_0xa50d79+profileSeparator+_0x336958+suffix:''+_0xa50d79+suffix;};return{'read':_0x5e4963=>{const _0x182582=_0x1535fb(_0x5e4963);return registerGlobalCacheKey(_0x182582,_0x2fde5e),readCacheJson(_0x182582);},'write':(_0x39e1c8,_0xbacf3e)=>{const _0x22de33=_0x1535fb(_0xbacf3e);registerGlobalCacheKey(_0x22de33,_0x2fde5e),writeCacheJson(_0x22de33,_0x39e1c8);},'clear':_0x13910e=>{const _0x256438=_0x1535fb(_0x13910e);clearCache(_0x256438);},'exists':_0x3d2390=>{const _0x498c15=_0x1535fb(_0x3d2390);return cacheExists(_0x498c15);},'path':_0x2a232d=>{const _0x2c14b7=_0x1535fb(_0x2a232d);return getGlobalCachePath(_0x2c14b7);}};}export function clearGlobalRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a197_0x139f(_0x379dbc,_0x5883b4){_0x379dbc=_0x379dbc-0x7d;const _0x9c06ed=a197_0x9c06();let _0x139fe9=_0x9c06ed[_0x379dbc];return _0x139fe9;}(function(_0x5dc485,_0x9e4dbc){const _0x309cc4=a197_0x139f,_0x526407=_0x5dc485();while(!![]){try{const _0x498410=parseInt(_0x309cc4(0x81))/0x1+-parseInt(_0x309cc4(0x8c))/0x2+-parseInt(_0x309cc4(0x88))/0x3+parseInt(_0x309cc4(0x7e))/0x4*(-parseInt(_0x309cc4(0x82))/0x5)+parseInt(_0x309cc4(0x80))/0x6*(-parseInt(_0x309cc4(0x8d))/0x7)+parseInt(_0x309cc4(0x86))/0x8+parseInt(_0x309cc4(0x8b))/0x9;if(_0x498410===_0x9e4dbc)break;else _0x526407['push'](_0x526407['shift']());}catch(_0x33717b){_0x526407['push'](_0x526407['shift']());}}}(a197_0x9c06,0x7d9be));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x35a594,_0x4b628f){const _0x2c5b6a=a197_0x139f;try{if(_0x4b628f){const _0x25b465=await readFile(_0x35a594,_0x2c5b6a(0x8e));try{return JSON[_0x2c5b6a(0x89)](_0x25b465);}catch(_0x4b7648){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x35a594+_0x2c5b6a(0x83)+(_0x4b7648 instanceof Error?_0x4b7648['message']:String(_0x4b7648)));}}else try{return JSON[_0x2c5b6a(0x89)](_0x35a594);}catch(_0x5a64a5){throw new SDKError(ErrorCode[_0x2c5b6a(0x8f)],'Invalid\x20JSON\x20string:\x20'+(_0x5a64a5 instanceof Error?_0x5a64a5[_0x2c5b6a(0x7f)]:String(_0x5a64a5)));}}catch(_0x209bb3){if(_0x209bb3 instanceof SDKError)throw _0x209bb3;if(_0x209bb3 instanceof Error&&'code'in _0x209bb3){const _0x500906=_0x209bb3;if(_0x500906['code']==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x2c5b6a(0x87)+_0x35a594);else{if(_0x500906[_0x2c5b6a(0x85)]==='EACCES')throw new SDKError(ErrorCode[_0x2c5b6a(0x8a)],_0x2c5b6a(0x90)+_0x35a594);}}throw new SDKError(ErrorCode[_0x2c5b6a(0x84)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x209bb3 instanceof Error?_0x209bb3['message']:String(_0x209bb3)));}}export async function loadJSONFromOptions(_0x3a72a6,_0x141eea){const _0x354de6=a197_0x139f;if(_0x3a72a6&&_0x141eea)throw new SDKError(ErrorCode[_0x354de6(0x8f)],_0x354de6(0x7d));if(_0x3a72a6)return await loadJSON(_0x3a72a6,![]);if(_0x141eea)return await loadJSON(_0x141eea,!![]);return undefined;}function a197_0x9c06(){const _0x2e129d=['message','22278xGFaQn','669592HCfLSq','80690bztAZr','\x27:\x20','INTERNAL','code','1768392dmnRTN','File\x20not\x20found:\x20','2365461wbyfFq','parse','PERMISSION_DENIED','8222220dThnJY','249012NcIKug','406ffRQsn','utf-8','INVALID_ARGUMENT','Permission\x20denied\x20reading\x20file:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','40AeWAXM'];a197_0x9c06=function(){return _0x2e129d;};return a197_0x9c06();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f0d7b,_0xce215){const _0x5a9544=a198_0x55aa,_0x5e8a16=_0x4f0d7b();while(!![]){try{const _0xc9279b=-parseInt(_0x5a9544(0x187))/0x1+parseInt(_0x5a9544(0x197))/0x2*(parseInt(_0x5a9544(0x191))/0x3)+-parseInt(_0x5a9544(0x196))/0x4+parseInt(_0x5a9544(0x18a))/0x5*(parseInt(_0x5a9544(0x189))/0x6)+parseInt(_0x5a9544(0x192))/0x7+parseInt(_0x5a9544(0x18e))/0x8+-parseInt(_0x5a9544(0x18d))/0x9*(parseInt(_0x5a9544(0x190))/0xa);if(_0xc9279b===_0xce215)break;else _0x5e8a16['push'](_0x5e8a16['shift']());}catch(_0x239fa0){_0x5e8a16['push'](_0x5e8a16['shift']());}}}(a198_0xfc05,0x5e2b0));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(_0xf1006a,_0x69601f){const _0x36388e=a198_0x55aa,_0x565094=registry['get'](_0xf1006a);if(_0x565094&&_0x565094!==_0x69601f)throw new Error(_0x36388e(0x193)+_0xf1006a+_0x36388e(0x18f)+_0x565094+_0x36388e(0x194)+_0x69601f+'\x22');registry['set'](_0xf1006a,_0x69601f);}export function getCacheDir(){const _0x1d4df9=a198_0x55aa,_0x1d8ebb=process[_0x1d4df9(0x186)](),_0x1fc811=_0x1d8ebb===parse(_0x1d8ebb)[_0x1d4df9(0x198)]?homedir():_0x1d8ebb;return join(_0x1fc811,LOCAL_CACHE_DIR);}function a198_0xfc05(){const _0x2a11d3=['1143ifCnWy','2292312PjuOAt','\x22\x20already\x20registered\x20by\x20\x22','75510vgSAKp','11988ajhysT','934234GPvGlX','Cache\x20key\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','450740DZEBvt','350qBWDeW','root','cwd','172573EamPdT','stringify','180228wQJICA','85OJguos','clear','parse'];a198_0xfc05=function(){return _0x2a11d3;};return a198_0xfc05();}export function getCachePath(_0x352075){return join(getCacheDir(),_0x352075);}function ensureCacheDir(){const _0x22d26f=getCacheDir();!existsSync(_0x22d26f)&&mkdirSync(_0x22d26f,{'recursive':!![]});}function readCacheJson(_0x2a8c54){const _0x828925=a198_0x55aa,_0x39cfb5=getCachePath(_0x2a8c54);if(!existsSync(_0x39cfb5))return undefined;try{const _0x77d76a=readFileSync(_0x39cfb5,'utf-8');return JSON[_0x828925(0x18c)](_0x77d76a);}catch{return undefined;}}function writeCacheJson(_0x5a418c,_0x940eb){const _0x4e865c=a198_0x55aa;ensureCacheDir(),writeFileSync(getCachePath(_0x5a418c),JSON[_0x4e865c(0x188)](_0x940eb,null,0x2),_0x4e865c(0x195));}function a198_0x55aa(_0x20d997,_0xc545c1){_0x20d997=_0x20d997-0x186;const _0xfc0509=a198_0xfc05();let _0x55aa68=_0xfc0509[_0x20d997];return _0x55aa68;}function readCacheText(_0x99de7){const _0x50b33d=getCachePath(_0x99de7);if(!existsSync(_0x50b33d))return undefined;try{return readFileSync(_0x50b33d,'utf-8');}catch{return undefined;}}function writeCacheText(_0x5cf7b9,_0x16438d){ensureCacheDir(),writeFileSync(getCachePath(_0x5cf7b9),_0x16438d,'utf-8');}function clearCache(_0x28237a){const _0x3ae67f=getCachePath(_0x28237a);if(existsSync(_0x3ae67f))try{unlinkSync(_0x3ae67f);}catch{}}function cacheExists(_0x551c69){return existsSync(getCachePath(_0x551c69));}export function createCache(_0xa7cae8,_0x33e98f){return registerCacheKey(_0xa7cae8,_0x33e98f),{'read':()=>readCacheJson(_0xa7cae8),'write':_0x1586b4=>writeCacheJson(_0xa7cae8,_0x1586b4),'clear':()=>clearCache(_0xa7cae8),'exists':()=>cacheExists(_0xa7cae8),'path':()=>getCachePath(_0xa7cae8)};}export function createTextCache(_0x1917ba,_0x2611d9){return registerCacheKey(_0x1917ba,_0x2611d9),{'read':()=>readCacheText(_0x1917ba)?.['trim']()||undefined,'write':_0x307515=>writeCacheText(_0x1917ba,_0x307515),'clear':()=>clearCache(_0x1917ba),'exists':()=>cacheExists(_0x1917ba),'path':()=>getCachePath(_0x1917ba)};}export function clearRegistry(){const _0x58c01c=a198_0x55aa;registry[_0x58c01c(0x18b)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x354345=a199_0x38b8;(function(_0x3d8c6c,_0x26f516){const _0x14502c=a199_0x38b8,_0x3a978e=_0x3d8c6c();while(!![]){try{const _0x200fd2=parseInt(_0x14502c(0xbe))/0x1+parseInt(_0x14502c(0xb3))/0x2+-parseInt(_0x14502c(0xa6))/0x3*(parseInt(_0x14502c(0xaa))/0x4)+parseInt(_0x14502c(0xa4))/0x5*(parseInt(_0x14502c(0xb8))/0x6)+parseInt(_0x14502c(0xbb))/0x7*(parseInt(_0x14502c(0xb1))/0x8)+parseInt(_0x14502c(0xac))/0x9+-parseInt(_0x14502c(0xb4))/0xa;if(_0x200fd2===_0x26f516)break;else _0x3a978e['push'](_0x3a978e['shift']());}catch(_0x317654){_0x3a978e['push'](_0x3a978e['shift']());}}}(a199_0x38d6,0x3c8c4));function a199_0x38b8(_0x4ee668,_0x18165e){_0x4ee668=_0x4ee668-0xa3;const _0x38d685=a199_0x38d6();let _0x38b862=_0x38d685[_0x4ee668];return _0x38b862;}import a199_0x14d964 from'chalk';function a199_0x38d6(){const _0x4891e9=['green','65442rfITTA','INFO','level','139097NZfFSZ','colorLevel','red','45470wilzqf','Chalk','format','colors','130nbRVes','gray','10623wwFOBQ',']\x20[','TRACE','timestamp','388isGOgr','blue','1828422HHspDh','message','cyan','yellow','chalk','8UUVkFe','ERROR','685584pqxgMX','3033920wmfEJs','dim','component'];a199_0x38d6=function(){return _0x4891e9;};return a199_0x38d6();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a199_0x14d964,ChalkClass=chalkModule[a199_0x354345(0xbf)]||chalkModule['default']?.['Chalk'];export class DefaultLogFormatter{['colors'];[a199_0x354345(0xb0)];constructor(_0x4504d2={}){const _0x26460d=a199_0x354345;this[_0x26460d(0xa3)]=_0x4504d2[_0x26460d(0xa3)]??![],this['chalk']=_0x4504d2[_0x26460d(0xa3)]&&ChalkClass?new ChalkClass({'level':0x3}):a199_0x14d964;}[a199_0x354345(0xc0)](_0x2db059){const _0x3fc623=a199_0x354345,_0x19e3f9=formatTimestamp(_0x2db059[_0x3fc623(0xa9)]),_0x123112=logLevelToString(_0x2db059[_0x3fc623(0xba)]);if(!this[_0x3fc623(0xa3)])return _0x19e3f9+'\x20['+_0x123112+_0x3fc623(0xa7)+_0x2db059[_0x3fc623(0xb6)]+']\x20'+_0x2db059[_0x3fc623(0xad)];const _0x1ecbea=this[_0x3fc623(0xb0)][_0x3fc623(0xb5)](_0x19e3f9),_0x23dacb=this[_0x3fc623(0xbc)](_0x123112,_0x2db059[_0x3fc623(0xba)]),_0x50aa44=this[_0x3fc623(0xb0)][_0x3fc623(0xab)]('['+_0x2db059['component']+']');return _0x1ecbea+'\x20'+_0x23dacb+'\x20'+_0x50aa44+'\x20'+_0x2db059[_0x3fc623(0xad)];}[a199_0x354345(0xbc)](_0x2098eb,_0x418d4a){const _0x40d03c=a199_0x354345;switch(_0x418d4a){case LogLevel[_0x40d03c(0xa8)]:return this[_0x40d03c(0xb0)][_0x40d03c(0xa5)]('['+_0x2098eb+']');case LogLevel['DEBUG']:return this[_0x40d03c(0xb0)][_0x40d03c(0xb7)]('['+_0x2098eb+']');case LogLevel[_0x40d03c(0xb9)]:return this[_0x40d03c(0xb0)][_0x40d03c(0xae)]('['+_0x2098eb+']');case LogLevel['WARN']:return this[_0x40d03c(0xb0)][_0x40d03c(0xaf)]('['+_0x2098eb+']');case LogLevel[_0x40d03c(0xb2)]:return this[_0x40d03c(0xb0)][_0x40d03c(0xbd)]('['+_0x2098eb+']');default:return'['+_0x2098eb+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ef255,_0x555cac){var _0x27288a=a200_0x122c,_0x277de6=_0x2ef255();while(!![]){try{var _0x14dcc9=-parseInt(_0x27288a(0x1a0))/0x1+-parseInt(_0x27288a(0x19d))/0x2+parseInt(_0x27288a(0x1a3))/0x3*(parseInt(_0x27288a(0x19c))/0x4)+-parseInt(_0x27288a(0x19e))/0x5+parseInt(_0x27288a(0x1a1))/0x6+-parseInt(_0x27288a(0x19f))/0x7*(-parseInt(_0x27288a(0x1a2))/0x8)+parseInt(_0x27288a(0x19b))/0x9*(parseInt(_0x27288a(0x19a))/0xa);if(_0x14dcc9===_0x555cac)break;else _0x277de6['push'](_0x277de6['shift']());}catch(_0x33e13e){_0x277de6['push'](_0x277de6['shift']());}}}(a200_0x565b,0x30e6c));function a200_0x122c(_0x455a4f,_0x266045){_0x455a4f=_0x455a4f-0x19a;var _0x565b9d=a200_0x565b();var _0x122c62=_0x565b9d[_0x455a4f];return _0x122c62;}export{DefaultLogFormatter}from'./default-formatter.js';function a200_0x565b(){var _0x1a2422=['32PvGcJL','741201oeVwQx','710hzKHeY','4329DAiArG','4kZBctd','270330sLqbeB','267910qjDsir','571802SBYNdw','371338UUFcGv','914538fsTlcz'];a200_0x565b=function(){return _0x1a2422;};return a200_0x565b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a201_0x2c7945=a201_0x535b;function a201_0x48f8(){const _0x49de03=['level','handle','format','6605930BICxnM','1780302emLYMY','minLevel','formatter','12znqYnh','3961864cJzhby','log','WARN','296rimorf','768114yeHlMj','373035sVFfKb','error','698696MterTC','useStderr','2050531uyRETY'];a201_0x48f8=function(){return _0x49de03;};return a201_0x48f8();}(function(_0x9a401f,_0x2a6429){const _0x53b1c3=a201_0x535b,_0x20979f=_0x9a401f();while(!![]){try{const _0x5667f1=parseInt(_0x53b1c3(0x167))/0x1+-parseInt(_0x53b1c3(0x169))/0x2+parseInt(_0x53b1c3(0x170))/0x3+-parseInt(_0x53b1c3(0x174))/0x4+-parseInt(_0x53b1c3(0x16f))/0x5+-parseInt(_0x53b1c3(0x173))/0x6*(parseInt(_0x53b1c3(0x16b))/0x7)+-parseInt(_0x53b1c3(0x165))/0x8*(-parseInt(_0x53b1c3(0x166))/0x9);if(_0x5667f1===_0x2a6429)break;else _0x20979f['push'](_0x20979f['shift']());}catch(_0x1eebf3){_0x20979f['push'](_0x20979f['shift']());}}}(a201_0x48f8,0xd635d));import{LogLevel as a201_0x388d9f}from'../types.js';function a201_0x535b(_0x159b2f,_0x3c3900){_0x159b2f=_0x159b2f-0x164;const _0x48f871=a201_0x48f8();let _0x535b91=_0x48f871[_0x159b2f];return _0x535b91;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a201_0x2c7945(0x171)];[a201_0x2c7945(0x16a)];[a201_0x2c7945(0x172)];constructor(_0x3de981={}){const _0x427e56=a201_0x2c7945;this['minLevel']=_0x3de981['minLevel']??a201_0x388d9f[_0x427e56(0x164)],this[_0x427e56(0x16a)]=_0x3de981[_0x427e56(0x16a)]??!![],this[_0x427e56(0x172)]=new DefaultLogFormatter({'colors':_0x3de981['colors']??!![]});}[a201_0x2c7945(0x16d)](_0xccb636){const _0x212f15=a201_0x2c7945;if(_0xccb636[_0x212f15(0x16c)]<this[_0x212f15(0x171)])return;const _0x36732f=this[_0x212f15(0x172)][_0x212f15(0x16e)](_0xccb636);this[_0x212f15(0x16a)]&&_0xccb636[_0x212f15(0x16c)]>=a201_0x388d9f['WARN']?console[_0x212f15(0x168)](_0x36732f):console[_0x212f15(0x175)](_0x36732f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a202_0x128e(){const _0x114fd5=['Warning:\x20Error\x20writing\x20to\x20','format','close','logDir','init','logBaseName','rotateOldLogs','logs','.gz','mtime','5286jgaELy','toISOString','split','tdx.log','rotate','312sdJTTJ','1951020deSjAN','logFileName','Warning:\x20Failed\x20to\x20compress\x20','.log','filter','write','203352hkwuoJ','4225024VkLsjS','end','946908udunUe','logPath','logStream','error','2932BBYUBL','1435DGyycQ','handle','\x5c$&','362440bBwepL','getLogPath','replace'];a202_0x128e=function(){return _0x114fd5;};return a202_0x128e();}const a202_0x2107e2=a202_0x11b9;(function(_0x471022,_0xf40ca1){const _0x2003a6=a202_0x11b9,_0x2627a0=_0x471022();while(!![]){try{const _0x2bc9ac=-parseInt(_0x2003a6(0x199))/0x1*(parseInt(_0x2003a6(0x1a7))/0x2)+-parseInt(_0x2003a6(0x1a0))/0x3+parseInt(_0x2003a6(0x1a3))/0x4+parseInt(_0x2003a6(0x1ab))/0x5+-parseInt(_0x2003a6(0x1b8))/0x6*(-parseInt(_0x2003a6(0x1a8))/0x7)+parseInt(_0x2003a6(0x1a1))/0x8+-parseInt(_0x2003a6(0x19a))/0x9;if(_0x2bc9ac===_0xf40ca1)break;else _0x2627a0['push'](_0x2627a0['shift']());}catch(_0x19c601){_0x2627a0['push'](_0x2627a0['shift']());}}}(a202_0x128e,0x43618));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a202_0x11b9(_0x26f09e,_0x13fac3){_0x26f09e=_0x26f09e-0x196;const _0x128e64=a202_0x128e();let _0x11b97a=_0x128e64[_0x26f09e];return _0x11b97a;}import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a202_0x2107e2(0x1a4)];['logDir'];[a202_0x2107e2(0x19b)];[a202_0x2107e2(0x1b3)];['logStream']=null;[a202_0x2107e2(0x198)];constructor(_0x761c53={}){const _0xc25f41=a202_0x2107e2;this[_0xc25f41(0x1a4)]=_0x761c53['filePath']??join(getGlobalCacheDir(),_0xc25f41(0x1b5),_0xc25f41(0x197)),this['logDir']=dirname(this[_0xc25f41(0x1a4)]),this[_0xc25f41(0x19b)]=basename(this[_0xc25f41(0x1a4)]),this['logBaseName']=this[_0xc25f41(0x19b)]['replace'](/\.log$/,''),this[_0xc25f41(0x198)]=_0x761c53[_0xc25f41(0x198)]??!![];}async[a202_0x2107e2(0x1b2)](){const _0x1b29a2=a202_0x2107e2;try{await mkdir(this[_0x1b29a2(0x1b1)],{'recursive':!![]}),this[_0x1b29a2(0x198)]&&await this[_0x1b29a2(0x1b4)](),this[_0x1b29a2(0x1a5)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x1b29a2(0x1a5)]['on']('error',_0x5d65e9=>{const _0xfd0ad1=_0x1b29a2;console[_0xfd0ad1(0x1a6)](_0xfd0ad1(0x1ae)+this[_0xfd0ad1(0x19b)]+':',_0x5d65e9['message']);});}catch(_0x9f618c){console[_0x1b29a2(0x1a6)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x9f618c);}}[a202_0x2107e2(0x1a9)](_0xf2050f){const _0x10dc19=a202_0x2107e2;if(!this[_0x10dc19(0x1a5)])return;const _0x67d044=Logger[_0x10dc19(0x1af)](_0xf2050f);this['logStream'][_0x10dc19(0x19f)](_0x67d044+'\x0a');}async[a202_0x2107e2(0x1b0)](){return new Promise(_0x4baceb=>{const _0x2a933c=a202_0x11b9;this[_0x2a933c(0x1a5)]?this[_0x2a933c(0x1a5)][_0x2a933c(0x1a2)](()=>{const _0x3cc911=_0x2a933c;this[_0x3cc911(0x1a5)]=null,_0x4baceb();}):_0x4baceb();});}[a202_0x2107e2(0x1ac)](){const _0x388b52=a202_0x2107e2;return this[_0x388b52(0x1a4)];}async[a202_0x2107e2(0x1b4)](){const _0x491b99=a202_0x2107e2;try{const _0x4ddf0a=await readdir(this[_0x491b99(0x1b1)]),_0xf0bb99=new Date()[_0x491b99(0x1b9)]()[_0x491b99(0x196)]('T')[0x0];if(_0x4ddf0a['includes'](this[_0x491b99(0x19b)])){const _0x449e20=join(this['logDir'],this[_0x491b99(0x19b)]),_0x193307=await stat(_0x449e20),_0x13b4ea=new Date(_0x193307[_0x491b99(0x1b7)])[_0x491b99(0x1b9)]()['split']('T')[0x0];if(_0x13b4ea<_0xf0bb99){const _0x583087=join(this[_0x491b99(0x1b1)],this['logBaseName']+'-'+_0x13b4ea+_0x491b99(0x19d));await rename(_0x449e20,_0x583087);}}const _0x439eb9=await readdir(this['logDir']),_0x2d8cad=this[_0x491b99(0x1b3)][_0x491b99(0x1ad)](/[.*+?^${}()|[\]\\]/g,_0x491b99(0x1aa)),_0x3617cc=new RegExp('^'+_0x2d8cad+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x4ec5b1=_0x439eb9[_0x491b99(0x19e)](_0x23cebd=>_0x3617cc['test'](_0x23cebd));for(const _0x527901 of _0x4ec5b1){const _0xb312c0=join(this[_0x491b99(0x1b1)],_0x527901),_0x3ed48e=join(this[_0x491b99(0x1b1)],_0x527901+_0x491b99(0x1b6));try{await pipeline(createReadStream(_0xb312c0),createGzip(),createWriteStream(_0x3ed48e)),await unlink(_0xb312c0);}catch(_0x1b1619){console[_0x491b99(0x1a6)](_0x491b99(0x19c)+_0x527901+':',_0x1b1619);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3dcab1,_0x3dfbbf){var _0x1ca479=a203_0x1055,_0x6f1bf1=_0x3dcab1();while(!![]){try{var _0x388cdc=-parseInt(_0x1ca479(0xaa))/0x1+-parseInt(_0x1ca479(0xae))/0x2+-parseInt(_0x1ca479(0xaf))/0x3+parseInt(_0x1ca479(0xb0))/0x4+-parseInt(_0x1ca479(0xb1))/0x5*(-parseInt(_0x1ca479(0xac))/0x6)+parseInt(_0x1ca479(0xab))/0x7*(-parseInt(_0x1ca479(0xb2))/0x8)+parseInt(_0x1ca479(0xad))/0x9;if(_0x388cdc===_0x3dfbbf)break;else _0x6f1bf1['push'](_0x6f1bf1['shift']());}catch(_0x2bac4e){_0x6f1bf1['push'](_0x6f1bf1['shift']());}}}(a203_0x4fa1,0x2c446));export{FileHandler}from'./file-handler.js';function a203_0x4fa1(){var _0x1ae23b=['3056vwUsOm','302439FkkAAR','889liHdJz','1332624TBghnB','3848427Fljrtc','433446KmouXd','164394GavcKc','616340QThLgt','5AYrSFi'];a203_0x4fa1=function(){return _0x1ae23b;};return a203_0x4fa1();}export{ConsoleHandler}from'./console-handler.js';function a203_0x1055(_0x2d0c2f,_0x36ac07){_0x2d0c2f=_0x2d0c2f-0xaa;var _0x4fa174=a203_0x4fa1();var _0x105597=_0x4fa174[_0x2d0c2f];return _0x105597;}export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x318ec4,_0x487057){var _0x142992=a204_0x2e99,_0x3634a7=_0x318ec4();while(!![]){try{var _0x2ab122=-parseInt(_0x142992(0x1a5))/0x1*(parseInt(_0x142992(0x19c))/0x2)+parseInt(_0x142992(0x1a4))/0x3+-parseInt(_0x142992(0x19d))/0x4+parseInt(_0x142992(0x1a3))/0x5+parseInt(_0x142992(0x19e))/0x6+parseInt(_0x142992(0x1a2))/0x7*(-parseInt(_0x142992(0x1a0))/0x8)+parseInt(_0x142992(0x19f))/0x9*(parseInt(_0x142992(0x1a1))/0xa);if(_0x2ab122===_0x487057)break;else _0x3634a7['push'](_0x3634a7['shift']());}catch(_0x2fc2fc){_0x3634a7['push'](_0x3634a7['shift']());}}}(a204_0x788a,0x7c1e1));function a204_0x788a(){var _0x3700f2=['1932360FdNUoF','9jUJZSY','568DIvLbX','951550bBdABN','71239rDfojn','4485735HTclPS','2932572LBlNUz','11073SUDJtR','148uuLsSY','966128ZDwQUW'];a204_0x788a=function(){return _0x3700f2;};return a204_0x788a();}function a204_0x2e99(_0x27f4be,_0x23d635){_0x27f4be=_0x27f4be-0x19c;var _0x788ac6=a204_0x788a();var _0x2e9978=_0x788ac6[_0x27f4be];return _0x2e9978;}export class NullHandler{['handle'](_0x5d7114){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3dc3fd,_0x49ff50){var _0x1978dc=a205_0x4a3d,_0x3db7a6=_0x3dc3fd();while(!![]){try{var _0x4f10c1=-parseInt(_0x1978dc(0xb4))/0x1+parseInt(_0x1978dc(0xad))/0x2*(parseInt(_0x1978dc(0xb5))/0x3)+-parseInt(_0x1978dc(0xb0))/0x4*(parseInt(_0x1978dc(0xb2))/0x5)+-parseInt(_0x1978dc(0xae))/0x6+parseInt(_0x1978dc(0xac))/0x7+parseInt(_0x1978dc(0xb1))/0x8*(-parseInt(_0x1978dc(0xaf))/0x9)+parseInt(_0x1978dc(0xb3))/0xa;if(_0x4f10c1===_0x49ff50)break;else _0x3db7a6['push'](_0x3db7a6['shift']());}catch(_0x1c81a1){_0x3db7a6['push'](_0x3db7a6['shift']());}}}(a205_0x471b,0xea465));function a205_0x471b(){var _0x177f90=['2139193NDQzVn','2xWCSkq','10145448uwAVLD','5002209FXeJwI','1508fOGSAo','8hSVXYo','16190tJirNv','37999060EFtwMx','729529rNEYNB','3153144OIFyjh'];a205_0x471b=function(){return _0x177f90;};return a205_0x471b();}function a205_0x4a3d(_0x1210ef,_0x317e56){_0x1210ef=_0x1210ef-0xac;var _0x471b27=a205_0x471b();var _0x4a3d6a=_0x471b27[_0x1210ef];return _0x4a3d6a;}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_0x577757=a206_0x4459;(function(_0xb68bfd,_0x3dad74){const _0x41cafa=a206_0x4459,_0x4e4c6c=_0xb68bfd();while(!![]){try{const _0x3d6ba7=parseInt(_0x41cafa(0x15e))/0x1+parseInt(_0x41cafa(0x16e))/0x2+-parseInt(_0x41cafa(0x15a))/0x3*(parseInt(_0x41cafa(0x15c))/0x4)+parseInt(_0x41cafa(0x163))/0x5+-parseInt(_0x41cafa(0x168))/0x6+parseInt(_0x41cafa(0x179))/0x7+-parseInt(_0x41cafa(0x16a))/0x8;if(_0x3d6ba7===_0x3dad74)break;else _0x4e4c6c['push'](_0x4e4c6c['shift']());}catch(_0x56f763){_0x4e4c6c['push'](_0x4e4c6c['shift']());}}}(a206_0x447e,0x91b8c));function a206_0x447e(){const _0x4ab598=['entries','cause','defaultLevel','2256202yrSWdI','clear','stringify','split','loggers','timestamp','string','length','setDefaultLevel','push','reset','2427747heSJjv','has','handlers','map','ERROR','message','log','get','error','join','formatter','isInitialized','name','INFO','WARN','toISOString','initialized','set',']\x20[','format','getEffectiveLevel','dispatch','12rGCYAD','level','141256xGWogY','levelOverrides','440186RJIWXg','pendingRecords','component','close','shutdown','5646370eppDhF','init','setLogLevel','trace','getFormatter','7148412HkYxET','clearHandlers','8918784hLJSKA'];a206_0x447e=function(){return _0x4ab598;};return a206_0x447e();}function a206_0x4459(_0x39a4fb,_0x555859){_0x39a4fb=_0x39a4fb-0x146;const _0x447e89=a206_0x447e();let _0x4459e2=_0x447e89[_0x39a4fb];return _0x4459e2;}import{LogLevel as a206_0x344af7,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a206_0x344af7['INFO'],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x4acd2b){const _0x471d3b=a206_0x4459;if(typeof _0x4acd2b===_0x471d3b(0x174))return _0x4acd2b;if(_0x4acd2b instanceof Error)return _0x4acd2b['stack']||_0x4acd2b[_0x471d3b(0x150)]+':\x20'+_0x4acd2b[_0x471d3b(0x149)];try{return JSON[_0x471d3b(0x170)](_0x4acd2b,(_0x2e936b,_0xd2917)=>{const _0x26c288=_0x471d3b;if(_0xd2917 instanceof Error)return{'name':_0xd2917[_0x26c288(0x150)],'message':_0xd2917[_0x26c288(0x149)],'stack':_0xd2917['stack'],'cause':_0xd2917[_0x26c288(0x16c)]};return _0xd2917;});}catch{return String(_0x4acd2b);}}export class Logger{[a206_0x577757(0x160)];constructor(_0x1a5a03){const _0x5ba291=a206_0x577757;this[_0x5ba291(0x160)]=_0x1a5a03;}static['of'](_0x1c46fd){const _0x5bd4b7=a206_0x577757,_0x2383e7=typeof _0x1c46fd===_0x5bd4b7(0x174)?_0x1c46fd:_0x1c46fd[_0x5bd4b7(0x150)];let _0x4de5bd=state[_0x5bd4b7(0x172)]['get'](_0x2383e7);return!_0x4de5bd&&(_0x4de5bd=new Logger(_0x2383e7),state[_0x5bd4b7(0x172)][_0x5bd4b7(0x155)](_0x2383e7,_0x4de5bd)),_0x4de5bd;}static async[a206_0x577757(0x164)](_0x581fa0={}){const _0x50981b=a206_0x577757;state[_0x50981b(0x16d)]=_0x581fa0['defaultLevel']??a206_0x344af7[_0x50981b(0x151)],state[_0x50981b(0x146)]=_0x581fa0[_0x50981b(0x146)]??[],state[_0x50981b(0x14e)]=_0x581fa0[_0x50981b(0x14e)]??null,state[_0x50981b(0x15d)][_0x50981b(0x16f)]();if(_0x581fa0[_0x50981b(0x15d)])for(const [_0x3edc24,_0x3cb061]of Object[_0x50981b(0x16b)](_0x581fa0[_0x50981b(0x15d)])){state['levelOverrides'][_0x50981b(0x155)](_0x3edc24,_0x3cb061);}for(const _0x1c6427 of state[_0x50981b(0x146)]){_0x1c6427[_0x50981b(0x164)]&&await _0x1c6427[_0x50981b(0x164)]();}state['initialized']=!![];for(const _0x10e99b of state['pendingRecords']){Logger[_0x50981b(0x159)](_0x10e99b);}state[_0x50981b(0x15f)]=[];}static[a206_0x577757(0x165)](_0x112caf,_0x5b77ae){const _0x25f0ac=a206_0x577757;state[_0x25f0ac(0x15d)]['set'](_0x112caf,_0x5b77ae);}static[a206_0x577757(0x176)](_0x22f721){const _0x12d267=a206_0x577757;state[_0x12d267(0x16d)]=_0x22f721;}static['addHandler'](_0x2b9937){const _0x235058=a206_0x577757;state[_0x235058(0x146)][_0x235058(0x177)](_0x2b9937),state[_0x235058(0x154)]&&_0x2b9937['init']&&_0x2b9937[_0x235058(0x164)]();}static[a206_0x577757(0x169)](){const _0x4ee810=a206_0x577757;state[_0x4ee810(0x146)]=[];}static async[a206_0x577757(0x162)](){const _0x5854d1=a206_0x577757;for(const _0x27a81a of state[_0x5854d1(0x146)]){_0x27a81a[_0x5854d1(0x161)]&&await _0x27a81a[_0x5854d1(0x161)]();}state[_0x5854d1(0x146)]=[],state['initialized']=![],state[_0x5854d1(0x172)][_0x5854d1(0x16f)](),state['pendingRecords']=[];}static[a206_0x577757(0x178)](){const _0x5c3919=a206_0x577757;state[_0x5c3919(0x154)]=![],state[_0x5c3919(0x16d)]=a206_0x344af7[_0x5c3919(0x151)],state['levelOverrides']['clear'](),state['handlers']=[],state[_0x5c3919(0x14e)]=null,state[_0x5c3919(0x172)][_0x5c3919(0x16f)](),state['pendingRecords']=[];}static[a206_0x577757(0x14f)](){return state['initialized'];}static[a206_0x577757(0x158)](_0x486ad1){const _0x1c45b0=a206_0x577757;if(state[_0x1c45b0(0x15d)][_0x1c45b0(0x17a)](_0x486ad1))return state[_0x1c45b0(0x15d)]['get'](_0x486ad1);const _0x558b64=_0x486ad1[_0x1c45b0(0x171)]('.');for(let _0x52cc99=_0x558b64[_0x1c45b0(0x175)]-0x1;_0x52cc99>0x0;_0x52cc99--){const _0x2b3367=_0x558b64['slice'](0x0,_0x52cc99)['join']('.');if(state[_0x1c45b0(0x15d)]['has'](_0x2b3367))return state[_0x1c45b0(0x15d)][_0x1c45b0(0x14b)](_0x2b3367);}return state[_0x1c45b0(0x16d)];}['shouldLog'](_0x34c993){const _0x7affae=a206_0x577757,_0x4e350e=Logger[_0x7affae(0x158)](this[_0x7affae(0x160)]);return _0x34c993>=_0x4e350e;}static[a206_0x577757(0x159)](_0x2e5885){const _0x458820=a206_0x577757;for(const _0x322c08 of state[_0x458820(0x146)]){_0x322c08['handle'](_0x2e5885);}}[a206_0x577757(0x14a)](_0x169e8c,_0x42e363){const _0x43990f=a206_0x577757;if(!this['shouldLog'](_0x169e8c))return;const _0x204461=_0x42e363[_0x43990f(0x147)](_0x15ec8c=>typeof _0x15ec8c==='function'?_0x15ec8c():_0x15ec8c),_0x3c7237=_0x204461[_0x43990f(0x147)](safeStringify)[_0x43990f(0x14d)]('\x20'),_0x754980={'timestamp':new Date(),'level':_0x169e8c,'component':this['component'],'message':_0x3c7237};if(!state[_0x43990f(0x154)]){state[_0x43990f(0x15f)][_0x43990f(0x175)]<MAX_PENDING_RECORDS&&state[_0x43990f(0x15f)][_0x43990f(0x177)](_0x754980);return;}Logger[_0x43990f(0x159)](_0x754980);}[a206_0x577757(0x166)](..._0x1ff173){const _0x3b799e=a206_0x577757;this[_0x3b799e(0x14a)](a206_0x344af7['TRACE'],_0x1ff173);}['debug'](..._0x56fef6){this['log'](a206_0x344af7['DEBUG'],_0x56fef6);}['info'](..._0x5b89ac){const _0x3f2e45=a206_0x577757;this[_0x3f2e45(0x14a)](a206_0x344af7[_0x3f2e45(0x151)],_0x5b89ac);}['warn'](..._0xd9fe29){const _0x167786=a206_0x577757;this[_0x167786(0x14a)](a206_0x344af7[_0x167786(0x152)],_0xd9fe29);}[a206_0x577757(0x14c)](..._0x16dca0){const _0x360902=a206_0x577757;this[_0x360902(0x14a)](a206_0x344af7[_0x360902(0x148)],_0x16dca0);}static[a206_0x577757(0x167)](){const _0xb104b6=a206_0x577757;return state[_0xb104b6(0x14e)];}static[a206_0x577757(0x157)](_0x255489){const _0x4b1b7f=a206_0x577757;if(state[_0x4b1b7f(0x14e)])return state[_0x4b1b7f(0x14e)]['format'](_0x255489);return _0x255489[_0x4b1b7f(0x173)][_0x4b1b7f(0x153)]()+'\x20['+logLevelToString(_0x255489[_0x4b1b7f(0x15b)])+_0x4b1b7f(0x156)+_0x255489[_0x4b1b7f(0x160)]+']\x20'+_0x255489['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c85fe,_0x1faccb){const _0x470e3e=a207_0x2b4b,_0x31258c=_0x4c85fe();while(!![]){try{const _0x2ddc10=-parseInt(_0x470e3e(0x1cf))/0x1*(parseInt(_0x470e3e(0x1d8))/0x2)+-parseInt(_0x470e3e(0x1e0))/0x3+parseInt(_0x470e3e(0x1e4))/0x4+parseInt(_0x470e3e(0x1e3))/0x5*(-parseInt(_0x470e3e(0x1dd))/0x6)+parseInt(_0x470e3e(0x1d4))/0x7+-parseInt(_0x470e3e(0x1d0))/0x8+parseInt(_0x470e3e(0x1ea))/0x9*(parseInt(_0x470e3e(0x1e1))/0xa);if(_0x2ddc10===_0x1faccb)break;else _0x31258c['push'](_0x31258c['shift']());}catch(_0x4f2e2a){_0x31258c['push'](_0x31258c['shift']());}}}(a207_0xfe13,0x39d4c));function a207_0x2b4b(_0x203a15,_0x563dd8){_0x203a15=_0x203a15-0x1cf;const _0xfe13e=a207_0xfe13();let _0x2b4b39=_0xfe13e[_0x203a15];return _0x2b4b39;}export var LogLevel;(function(_0x2d71bb){const _0x5dfe3e=a207_0x2b4b;_0x2d71bb[_0x2d71bb['TRACE']=-0x2]=_0x5dfe3e(0x1e7),_0x2d71bb[_0x2d71bb[_0x5dfe3e(0x1d9)]=-0x1]=_0x5dfe3e(0x1d9),_0x2d71bb[_0x2d71bb['INFO']=0x0]=_0x5dfe3e(0x1d5),_0x2d71bb[_0x2d71bb[_0x5dfe3e(0x1e9)]=0x1]=_0x5dfe3e(0x1e9),_0x2d71bb[_0x2d71bb[_0x5dfe3e(0x1d2)]=0x2]=_0x5dfe3e(0x1d2);}(LogLevel||(LogLevel={})));function a207_0xfe13(){const _0xc8fcdc=['6638330GdCjsy','abs','1878685VkeJYR','1745988uDKQqB','getMonth','toUpperCase','TRACE','error','WARN','9IXYscf','getFullYear','73806Ocwvzq','2028368Axlviw','padStart','ERROR','getDate','2440956EKwWfv','INFO','info','warn','12CXQSoa','DEBUG','getMinutes','toString','getHours','6EWurNR','getTimezoneOffset','getMilliseconds','420129fPyXTH'];a207_0xfe13=function(){return _0xc8fcdc;};return a207_0xfe13();}export function parseLogLevel(_0x46f735){const _0x51af6d=a207_0x2b4b;switch(_0x46f735[_0x51af6d(0x1e6)]()){case'TRACE':return LogLevel[_0x51af6d(0x1e7)];case _0x51af6d(0x1d9):return LogLevel[_0x51af6d(0x1d9)];case'INFO':return LogLevel['INFO'];case _0x51af6d(0x1e9):case'WARNING':return LogLevel['WARN'];case _0x51af6d(0x1d2):return LogLevel['ERROR'];default:return LogLevel['INFO'];}}export function logLevelToString(_0x292070){const _0x2c25c6=a207_0x2b4b;switch(_0x292070){case LogLevel['TRACE']:return'trace';case LogLevel[_0x2c25c6(0x1d9)]:return'debug';case LogLevel[_0x2c25c6(0x1d5)]:return _0x2c25c6(0x1d6);case LogLevel[_0x2c25c6(0x1e9)]:return _0x2c25c6(0x1d7);case LogLevel[_0x2c25c6(0x1d2)]:return _0x2c25c6(0x1e8);default:return _0x2c25c6(0x1d6);}}export function formatTimestamp(_0x4b9f4f){const _0x3152d6=a207_0x2b4b,_0x25c6f0=_0x4b9f4f[_0x3152d6(0x1eb)](),_0x40b10d=(_0x4b9f4f[_0x3152d6(0x1e5)]()+0x1)['toString']()[_0x3152d6(0x1d1)](0x2,'0'),_0x529667=_0x4b9f4f[_0x3152d6(0x1d3)]()['toString']()[_0x3152d6(0x1d1)](0x2,'0'),_0x4c08a1=_0x4b9f4f[_0x3152d6(0x1dc)]()[_0x3152d6(0x1db)]()['padStart'](0x2,'0'),_0x4051e7=_0x4b9f4f[_0x3152d6(0x1da)]()[_0x3152d6(0x1db)]()[_0x3152d6(0x1d1)](0x2,'0'),_0x116cdc=_0x4b9f4f['getSeconds']()[_0x3152d6(0x1db)]()[_0x3152d6(0x1d1)](0x2,'0'),_0x4c6be7=_0x4b9f4f[_0x3152d6(0x1df)]()[_0x3152d6(0x1db)]()['padStart'](0x3,'0'),_0x35e070=-_0x4b9f4f[_0x3152d6(0x1de)](),_0x3b7bd8=Math['floor'](Math['abs'](_0x35e070)/0x3c),_0x4a9372=Math[_0x3152d6(0x1e2)](_0x35e070)%0x3c,_0x357984=_0x35e070>=0x0?'+':'-',_0x4602b8=''+_0x357984+_0x3b7bd8['toString']()[_0x3152d6(0x1d1)](0x2,'0')+_0x4a9372[_0x3152d6(0x1db)]()[_0x3152d6(0x1d1)](0x2,'0');return _0x25c6f0+'-'+_0x40b10d+'-'+_0x529667+'\x20'+_0x4c08a1+':'+_0x4051e7+':'+_0x116cdc+'.'+_0x4c6be7+_0x4602b8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a208_0x30e8(){const _0x4e3b4f=['10pfdoDQ','98wKMxsC','.\x20Must\x20be\x20an\x20integer.','number','1932570yIChFF','1506008NfmTOB','3823092NxoGmC','56500flDvxP','251886YzGtEW','10HJVjZk','12TLPbiW','Invalid\x20limit\x20value:\x20','10802fIdVwX','isInteger','Invalid\x20timeout\x20value:\x20','8JgPuvD','.\x20Must\x20be\x20a\x20positive\x20number.','25299014YOmWvk','.\x20Must\x20be\x20a\x20number.','3310FtvMuu'];a208_0x30e8=function(){return _0x4e3b4f;};return a208_0x30e8();}(function(_0x5d7c94,_0x2d87f6){const _0x4747b4=a208_0x5428,_0xa75ce3=_0x5d7c94();while(!![]){try{const _0x223cb8=-parseInt(_0x4747b4(0x163))/0x1*(parseInt(_0x4747b4(0x165))/0x2)+-parseInt(_0x4747b4(0x160))/0x3+-parseInt(_0x4747b4(0x161))/0x4*(parseInt(_0x4747b4(0x15c))/0x5)+parseInt(_0x4747b4(0x164))/0x6*(-parseInt(_0x4747b4(0x15d))/0x7)+parseInt(_0x4747b4(0x16b))/0x8*(parseInt(_0x4747b4(0x162))/0x9)+-parseInt(_0x4747b4(0x15b))/0xa*(-parseInt(_0x4747b4(0x168))/0xb)+-parseInt(_0x4747b4(0x166))/0xc*(-parseInt(_0x4747b4(0x16d))/0xd);if(_0x223cb8===_0x2d87f6)break;else _0xa75ce3['push'](_0xa75ce3['shift']());}catch(_0x38e5f9){_0xa75ce3['push'](_0xa75ce3['shift']());}}}(a208_0x30e8,0x689c0));export function validateLimitOption(_0x20179a){const _0x49967c=a208_0x5428;if(!Number[_0x49967c(0x169)](_0x20179a))return{'isValid':![],'error':_0x49967c(0x167)+_0x20179a+_0x49967c(0x15e)};if(_0x20179a<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x20179a+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x20179a};}function a208_0x5428(_0x360c36,_0x3e0ca0){_0x360c36=_0x360c36-0x15a;const _0x30e8c4=a208_0x30e8();let _0x542850=_0x30e8c4[_0x360c36];return _0x542850;}export function validateTimeoutOption(_0x5f1f11,_0x219658=0x1e){const _0x553632=a208_0x5428;if(_0x5f1f11===undefined)return{'isValid':!![],'value':_0x219658};const _0x355e42=typeof _0x5f1f11===_0x553632(0x15f)?_0x5f1f11:parseFloat(_0x5f1f11);if(isNaN(_0x355e42))return{'isValid':![],'error':_0x553632(0x16a)+_0x5f1f11+_0x553632(0x15a)};if(_0x355e42<=0x0)return{'isValid':![],'error':_0x553632(0x16a)+_0x355e42+_0x553632(0x16c)};return{'isValid':!![],'value':_0x355e42};}
|